xref: /freebsd/contrib/openbsm/configure (revision 39beb93c3f8bdbf72a61fda42300b5ebed7390c8)
1#! /bin/sh
2# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#49 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenBSM 1.1alpha5.
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.1alpha5'
733PACKAGE_STRING='OpenBSM 1.1alpha5'
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
815USE_NATIVE_INCLUDES_TRUE
816USE_NATIVE_INCLUDES_FALSE
817MIG
818CC
819CFLAGS
820LDFLAGS
821CPPFLAGS
822ac_ct_CC
823EXEEXT
824OBJEXT
825INSTALL_PROGRAM
826INSTALL_SCRIPT
827INSTALL_DATA
828build
829build_cpu
830build_vendor
831build_os
832host
833host_cpu
834host_vendor
835host_os
836SED
837GREP
838EGREP
839LN_S
840ECHO
841AR
842RANLIB
843STRIP
844CPP
845CXX
846CXXFLAGS
847ac_ct_CXX
848CXXCPP
849F77
850FFLAGS
851ac_ct_F77
852LIBTOOL
853am__isrc
854CYGPATH_W
855PACKAGE
856VERSION
857ACLOCAL
858AUTOCONF
859AUTOMAKE
860AUTOHEADER
861MAKEINFO
862install_sh
863INSTALL_STRIP_PROGRAM
864mkdir_p
865AWK
866SET_MAKE
867am__leading_dot
868AMTAR
869am__tar
870am__untar
871DEPDIR
872am__include
873am__quote
874AMDEP_TRUE
875AMDEP_FALSE
876AMDEPBACKSLASH
877CCDEPMODE
878am__fastdepCC_TRUE
879am__fastdepCC_FALSE
880CXXDEPMODE
881am__fastdepCXX_TRUE
882am__fastdepCXX_FALSE
883LIBOBJS
884HAVE_AUDIT_SYSCALLS_TRUE
885HAVE_AUDIT_SYSCALLS_FALSE
886USE_MACH_IPC_TRUE
887USE_MACH_IPC_FALSE
888LTLIBOBJS'
889ac_subst_files=''
890      ac_precious_vars='build_alias
891host_alias
892target_alias
893CC
894CFLAGS
895LDFLAGS
896LIBS
897CPPFLAGS
898CPP
899CXX
900CXXFLAGS
901CCC
902CXXCPP
903F77
904FFLAGS'
905
906
907# Initialize some variables set by options.
908ac_init_help=
909ac_init_version=false
910# The variables have the same names as the options, with
911# dashes changed to underlines.
912cache_file=/dev/null
913exec_prefix=NONE
914no_create=
915no_recursion=
916prefix=NONE
917program_prefix=NONE
918program_suffix=NONE
919program_transform_name=s,x,x,
920silent=
921site=
922srcdir=
923verbose=
924x_includes=NONE
925x_libraries=NONE
926
927# Installation directory options.
928# These are left unexpanded so users can "make install exec_prefix=/foo"
929# and all the variables that are supposed to be based on exec_prefix
930# by default will actually change.
931# Use braces instead of parens because sh, perl, etc. also accept them.
932# (The list follows the same order as the GNU Coding Standards.)
933bindir='${exec_prefix}/bin'
934sbindir='${exec_prefix}/sbin'
935libexecdir='${exec_prefix}/libexec'
936datarootdir='${prefix}/share'
937datadir='${datarootdir}'
938sysconfdir='${prefix}/etc'
939sharedstatedir='${prefix}/com'
940localstatedir='${prefix}/var'
941includedir='${prefix}/include'
942oldincludedir='/usr/include'
943docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944infodir='${datarootdir}/info'
945htmldir='${docdir}'
946dvidir='${docdir}'
947pdfdir='${docdir}'
948psdir='${docdir}'
949libdir='${exec_prefix}/lib'
950localedir='${datarootdir}/locale'
951mandir='${datarootdir}/man'
952
953ac_prev=
954ac_dashdash=
955for ac_option
956do
957  # If the previous option needs an argument, assign it.
958  if test -n "$ac_prev"; then
959    eval $ac_prev=\$ac_option
960    ac_prev=
961    continue
962  fi
963
964  case $ac_option in
965  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966  *)	ac_optarg=yes ;;
967  esac
968
969  # Accept the important Cygnus configure options, so we can diagnose typos.
970
971  case $ac_dashdash$ac_option in
972  --)
973    ac_dashdash=yes ;;
974
975  -bindir | --bindir | --bindi | --bind | --bin | --bi)
976    ac_prev=bindir ;;
977  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978    bindir=$ac_optarg ;;
979
980  -build | --build | --buil | --bui | --bu)
981    ac_prev=build_alias ;;
982  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983    build_alias=$ac_optarg ;;
984
985  -cache-file | --cache-file | --cache-fil | --cache-fi \
986  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987    ac_prev=cache_file ;;
988  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990    cache_file=$ac_optarg ;;
991
992  --config-cache | -C)
993    cache_file=config.cache ;;
994
995  -datadir | --datadir | --datadi | --datad)
996    ac_prev=datadir ;;
997  -datadir=* | --datadir=* | --datadi=* | --datad=*)
998    datadir=$ac_optarg ;;
999
1000  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001  | --dataroo | --dataro | --datar)
1002    ac_prev=datarootdir ;;
1003  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005    datarootdir=$ac_optarg ;;
1006
1007  -disable-* | --disable-*)
1008    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012   { (exit 1); exit 1; }; }
1013    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014    eval enable_$ac_feature=no ;;
1015
1016  -docdir | --docdir | --docdi | --doc | --do)
1017    ac_prev=docdir ;;
1018  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019    docdir=$ac_optarg ;;
1020
1021  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022    ac_prev=dvidir ;;
1023  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024    dvidir=$ac_optarg ;;
1025
1026  -enable-* | --enable-*)
1027    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028    # Reject names that are not valid shell variable names.
1029    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031   { (exit 1); exit 1; }; }
1032    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033    eval enable_$ac_feature=\$ac_optarg ;;
1034
1035  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037  | --exec | --exe | --ex)
1038    ac_prev=exec_prefix ;;
1039  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041  | --exec=* | --exe=* | --ex=*)
1042    exec_prefix=$ac_optarg ;;
1043
1044  -gas | --gas | --ga | --g)
1045    # Obsolete; use --with-gas.
1046    with_gas=yes ;;
1047
1048  -help | --help | --hel | --he | -h)
1049    ac_init_help=long ;;
1050  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051    ac_init_help=recursive ;;
1052  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053    ac_init_help=short ;;
1054
1055  -host | --host | --hos | --ho)
1056    ac_prev=host_alias ;;
1057  -host=* | --host=* | --hos=* | --ho=*)
1058    host_alias=$ac_optarg ;;
1059
1060  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061    ac_prev=htmldir ;;
1062  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063  | --ht=*)
1064    htmldir=$ac_optarg ;;
1065
1066  -includedir | --includedir | --includedi | --included | --include \
1067  | --includ | --inclu | --incl | --inc)
1068    ac_prev=includedir ;;
1069  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070  | --includ=* | --inclu=* | --incl=* | --inc=*)
1071    includedir=$ac_optarg ;;
1072
1073  -infodir | --infodir | --infodi | --infod | --info | --inf)
1074    ac_prev=infodir ;;
1075  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076    infodir=$ac_optarg ;;
1077
1078  -libdir | --libdir | --libdi | --libd)
1079    ac_prev=libdir ;;
1080  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081    libdir=$ac_optarg ;;
1082
1083  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084  | --libexe | --libex | --libe)
1085    ac_prev=libexecdir ;;
1086  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087  | --libexe=* | --libex=* | --libe=*)
1088    libexecdir=$ac_optarg ;;
1089
1090  -localedir | --localedir | --localedi | --localed | --locale)
1091    ac_prev=localedir ;;
1092  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093    localedir=$ac_optarg ;;
1094
1095  -localstatedir | --localstatedir | --localstatedi | --localstated \
1096  | --localstate | --localstat | --localsta | --localst | --locals)
1097    ac_prev=localstatedir ;;
1098  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100    localstatedir=$ac_optarg ;;
1101
1102  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103    ac_prev=mandir ;;
1104  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105    mandir=$ac_optarg ;;
1106
1107  -nfp | --nfp | --nf)
1108    # Obsolete; use --without-fp.
1109    with_fp=no ;;
1110
1111  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112  | --no-cr | --no-c | -n)
1113    no_create=yes ;;
1114
1115  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117    no_recursion=yes ;;
1118
1119  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121  | --oldin | --oldi | --old | --ol | --o)
1122    ac_prev=oldincludedir ;;
1123  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126    oldincludedir=$ac_optarg ;;
1127
1128  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129    ac_prev=prefix ;;
1130  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131    prefix=$ac_optarg ;;
1132
1133  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134  | --program-pre | --program-pr | --program-p)
1135    ac_prev=program_prefix ;;
1136  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138    program_prefix=$ac_optarg ;;
1139
1140  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141  | --program-suf | --program-su | --program-s)
1142    ac_prev=program_suffix ;;
1143  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145    program_suffix=$ac_optarg ;;
1146
1147  -program-transform-name | --program-transform-name \
1148  | --program-transform-nam | --program-transform-na \
1149  | --program-transform-n | --program-transform- \
1150  | --program-transform | --program-transfor \
1151  | --program-transfo | --program-transf \
1152  | --program-trans | --program-tran \
1153  | --progr-tra | --program-tr | --program-t)
1154    ac_prev=program_transform_name ;;
1155  -program-transform-name=* | --program-transform-name=* \
1156  | --program-transform-nam=* | --program-transform-na=* \
1157  | --program-transform-n=* | --program-transform-=* \
1158  | --program-transform=* | --program-transfor=* \
1159  | --program-transfo=* | --program-transf=* \
1160  | --program-trans=* | --program-tran=* \
1161  | --progr-tra=* | --program-tr=* | --program-t=*)
1162    program_transform_name=$ac_optarg ;;
1163
1164  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165    ac_prev=pdfdir ;;
1166  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167    pdfdir=$ac_optarg ;;
1168
1169  -psdir | --psdir | --psdi | --psd | --ps)
1170    ac_prev=psdir ;;
1171  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172    psdir=$ac_optarg ;;
1173
1174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175  | -silent | --silent | --silen | --sile | --sil)
1176    silent=yes ;;
1177
1178  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179    ac_prev=sbindir ;;
1180  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181  | --sbi=* | --sb=*)
1182    sbindir=$ac_optarg ;;
1183
1184  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186  | --sharedst | --shareds | --shared | --share | --shar \
1187  | --sha | --sh)
1188    ac_prev=sharedstatedir ;;
1189  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192  | --sha=* | --sh=*)
1193    sharedstatedir=$ac_optarg ;;
1194
1195  -site | --site | --sit)
1196    ac_prev=site ;;
1197  -site=* | --site=* | --sit=*)
1198    site=$ac_optarg ;;
1199
1200  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201    ac_prev=srcdir ;;
1202  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203    srcdir=$ac_optarg ;;
1204
1205  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206  | --syscon | --sysco | --sysc | --sys | --sy)
1207    ac_prev=sysconfdir ;;
1208  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210    sysconfdir=$ac_optarg ;;
1211
1212  -target | --target | --targe | --targ | --tar | --ta | --t)
1213    ac_prev=target_alias ;;
1214  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215    target_alias=$ac_optarg ;;
1216
1217  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218    verbose=yes ;;
1219
1220  -version | --version | --versio | --versi | --vers | -V)
1221    ac_init_version=: ;;
1222
1223  -with-* | --with-*)
1224    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227      { echo "$as_me: error: invalid package name: $ac_package" >&2
1228   { (exit 1); exit 1; }; }
1229    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230    eval with_$ac_package=\$ac_optarg ;;
1231
1232  -without-* | --without-*)
1233    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234    # Reject names that are not valid shell variable names.
1235    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236      { echo "$as_me: error: invalid package name: $ac_package" >&2
1237   { (exit 1); exit 1; }; }
1238    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239    eval with_$ac_package=no ;;
1240
1241  --x)
1242    # Obsolete; use --with-x.
1243    with_x=yes ;;
1244
1245  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246  | --x-incl | --x-inc | --x-in | --x-i)
1247    ac_prev=x_includes ;;
1248  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250    x_includes=$ac_optarg ;;
1251
1252  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254    ac_prev=x_libraries ;;
1255  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257    x_libraries=$ac_optarg ;;
1258
1259  -*) { echo "$as_me: error: unrecognized option: $ac_option
1260Try \`$0 --help' for more information." >&2
1261   { (exit 1); exit 1; }; }
1262    ;;
1263
1264  *=*)
1265    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266    # Reject names that are not valid shell variable names.
1267    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269   { (exit 1); exit 1; }; }
1270    eval $ac_envvar=\$ac_optarg
1271    export $ac_envvar ;;
1272
1273  *)
1274    # FIXME: should be removed in autoconf 3.0.
1275    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279    ;;
1280
1281  esac
1282done
1283
1284if test -n "$ac_prev"; then
1285  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286  { echo "$as_me: error: missing argument to $ac_option" >&2
1287   { (exit 1); exit 1; }; }
1288fi
1289
1290# Be sure to have absolute directory names.
1291for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292		datadir sysconfdir sharedstatedir localstatedir includedir \
1293		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294		libdir localedir mandir
1295do
1296  eval ac_val=\$$ac_var
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302   { (exit 1); exit 1; }; }
1303done
1304
1305# There might be people who depend on the old broken behavior: `$host'
1306# used to hold the argument of --host etc.
1307# FIXME: To remove some day.
1308build=$build_alias
1309host=$host_alias
1310target=$target_alias
1311
1312# FIXME: To remove some day.
1313if test "x$host_alias" != x; then
1314  if test "x$build_alias" = x; then
1315    cross_compiling=maybe
1316    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317    If a cross compiler is detected then cross compile mode will be used." >&2
1318  elif test "x$build_alias" != "x$host_alias"; then
1319    cross_compiling=yes
1320  fi
1321fi
1322
1323ac_tool_prefix=
1324test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326test "$silent" = yes && exec 6>/dev/null
1327
1328
1329ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330ac_ls_di=`ls -di .` &&
1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332  { echo "$as_me: error: Working directory cannot be determined" >&2
1333   { (exit 1); exit 1; }; }
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335  { echo "$as_me: error: pwd does not report name of working directory" >&2
1336   { (exit 1); exit 1; }; }
1337
1338
1339# Find the source files, if location was not specified.
1340if test -z "$srcdir"; then
1341  ac_srcdir_defaulted=yes
1342  # Try the directory containing this script, then the parent directory.
1343  ac_confdir=`$as_dirname -- "$0" ||
1344$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345	 X"$0" : 'X\(//\)[^/]' \| \
1346	 X"$0" : 'X\(//\)$' \| \
1347	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1348echo X"$0" |
1349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\/\)[^/].*/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\/\)$/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\).*/{
1362	    s//\1/
1363	    q
1364	  }
1365	  s/.*/./; q'`
1366  srcdir=$ac_confdir
1367  if test ! -r "$srcdir/$ac_unique_file"; then
1368    srcdir=..
1369  fi
1370else
1371  ac_srcdir_defaulted=no
1372fi
1373if test ! -r "$srcdir/$ac_unique_file"; then
1374  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376   { (exit 1); exit 1; }; }
1377fi
1378ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379ac_abs_confdir=`(
1380	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381   { (exit 1); exit 1; }; }
1382	pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385  srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
1393for ac_var in $ac_precious_vars; do
1394  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395  eval ac_env_${ac_var}_value=\$${ac_var}
1396  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398done
1399
1400#
1401# Report the --help message.
1402#
1403if test "$ac_init_help" = "long"; then
1404  # Omit some internal or obsolete options to make the list less imposing.
1405  # This message is too long to be a string in the A/UX 3.1 sh.
1406  cat <<_ACEOF
1407\`configure' configures OpenBSM 1.1alpha5 to adapt to many kinds of systems.
1408
1409Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414Defaults for the options are specified in brackets.
1415
1416Configuration:
1417  -h, --help              display this help and exit
1418      --help=short        display options specific to this package
1419      --help=recursive    display the short help of all the included packages
1420  -V, --version           display version information and exit
1421  -q, --quiet, --silent   do not print \`checking...' messages
1422      --cache-file=FILE   cache test results in FILE [disabled]
1423  -C, --config-cache      alias for \`--cache-file=config.cache'
1424  -n, --no-create         do not create output files
1425      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427Installation directories:
1428  --prefix=PREFIX         install architecture-independent files in PREFIX
1429			  [$ac_default_prefix]
1430  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431			  [PREFIX]
1432
1433By default, \`make install' will install all the files in
1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436for instance \`--prefix=\$HOME'.
1437
1438For better control, use the options below.
1439
1440Fine tuning of the installation directories:
1441  --bindir=DIR           user executables [EPREFIX/bin]
1442  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1443  --libexecdir=DIR       program executables [EPREFIX/libexec]
1444  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1445  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1446  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1447  --libdir=DIR           object code libraries [EPREFIX/lib]
1448  --includedir=DIR       C header files [PREFIX/include]
1449  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1450  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1451  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1452  --infodir=DIR          info documentation [DATAROOTDIR/info]
1453  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1454  --mandir=DIR           man documentation [DATAROOTDIR/man]
1455  --docdir=DIR           documentation root [DATAROOTDIR/doc/openbsm]
1456  --htmldir=DIR          html documentation [DOCDIR]
1457  --dvidir=DIR           dvi documentation [DOCDIR]
1458  --pdfdir=DIR           pdf documentation [DOCDIR]
1459  --psdir=DIR            ps documentation [DOCDIR]
1460_ACEOF
1461
1462  cat <<\_ACEOF
1463
1464Program names:
1465  --program-prefix=PREFIX            prepend PREFIX to installed program names
1466  --program-suffix=SUFFIX            append SUFFIX to installed program names
1467  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1468
1469System types:
1470  --build=BUILD     configure for building on BUILD [guessed]
1471  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1472_ACEOF
1473fi
1474
1475if test -n "$ac_init_help"; then
1476  case $ac_init_help in
1477     short | recursive ) echo "Configuration of OpenBSM 1.1alpha5:";;
1478   esac
1479  cat <<\_ACEOF
1480
1481Optional Features:
1482  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1483  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1484  --enable-maintainer-mode  enable make rules and dependencies not useful
1485			  (and sometimes confusing) to the casual installer
1486  --enable-shared[=PKGS]  build shared libraries [default=yes]
1487  --enable-static[=PKGS]  build static libraries [default=yes]
1488  --enable-fast-install[=PKGS]
1489                          optimize for fast installation [default=yes]
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --disable-dependency-tracking  speeds up one-time build
1492  --enable-dependency-tracking   do not reject slow dependency extractors
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-native-includes  Use the system native include files instead of those
1498                          included with openbsm.
1499  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500  --with-pic              try to use only PIC/non-PIC objects [default=use
1501                          both]
1502  --with-tags[=TAGS]      include additional configurations [automatic]
1503
1504Some influential environment variables:
1505  CC          C compiler command
1506  CFLAGS      C compiler flags
1507  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508              nonstandard directory <lib dir>
1509  LIBS        libraries to pass to the linker, e.g. -l<library>
1510  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511              you have headers in a nonstandard directory <include dir>
1512  CPP         C preprocessor
1513  CXX         C++ compiler command
1514  CXXFLAGS    C++ compiler flags
1515  CXXCPP      C++ preprocessor
1516  F77         Fortran 77 compiler command
1517  FFLAGS      Fortran 77 compiler flags
1518
1519Use these variables to override the choices made by `configure' or to help
1520it to find libraries and programs with nonstandard names/locations.
1521
1522Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1523_ACEOF
1524ac_status=$?
1525fi
1526
1527if test "$ac_init_help" = "recursive"; then
1528  # If there are subdirs, report their specific --help.
1529  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530    test -d "$ac_dir" || continue
1531    ac_builddir=.
1532
1533case "$ac_dir" in
1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535*)
1536  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537  # A ".." for each directory in $ac_dir_suffix.
1538  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539  case $ac_top_builddir_sub in
1540  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542  esac ;;
1543esac
1544ac_abs_top_builddir=$ac_pwd
1545ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546# for backward compatibility:
1547ac_top_builddir=$ac_top_build_prefix
1548
1549case $srcdir in
1550  .)  # We are building in place.
1551    ac_srcdir=.
1552    ac_top_srcdir=$ac_top_builddir_sub
1553    ac_abs_top_srcdir=$ac_pwd ;;
1554  [\\/]* | ?:[\\/]* )  # Absolute name.
1555    ac_srcdir=$srcdir$ac_dir_suffix;
1556    ac_top_srcdir=$srcdir
1557    ac_abs_top_srcdir=$srcdir ;;
1558  *) # Relative name.
1559    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560    ac_top_srcdir=$ac_top_build_prefix$srcdir
1561    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562esac
1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565    cd "$ac_dir" || { ac_status=$?; continue; }
1566    # Check for guested configure.
1567    if test -f "$ac_srcdir/configure.gnu"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570    elif test -f "$ac_srcdir/configure"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure" --help=recursive
1573    else
1574      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575    fi || ac_status=$?
1576    cd "$ac_pwd" || { ac_status=$?; break; }
1577  done
1578fi
1579
1580test -n "$ac_init_help" && exit $ac_status
1581if $ac_init_version; then
1582  cat <<\_ACEOF
1583OpenBSM configure 1.1alpha5
1584generated by GNU Autoconf 2.61
1585
1586Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15872002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588This configure script is free software; the Free Software Foundation
1589gives unlimited permission to copy, distribute and modify it.
1590_ACEOF
1591  exit
1592fi
1593cat >config.log <<_ACEOF
1594This file contains any messages produced by compilers while
1595running configure, to aid debugging if configure makes a mistake.
1596
1597It was created by OpenBSM $as_me 1.1alpha5, which was
1598generated by GNU Autoconf 2.61.  Invocation command line was
1599
1600  $ $0 $@
1601
1602_ACEOF
1603exec 5>>config.log
1604{
1605cat <<_ASUNAME
1606## --------- ##
1607## Platform. ##
1608## --------- ##
1609
1610hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627_ASUNAME
1628
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632  IFS=$as_save_IFS
1633  test -z "$as_dir" && as_dir=.
1634  echo "PATH: $as_dir"
1635done
1636IFS=$as_save_IFS
1637
1638} >&5
1639
1640cat >&5 <<_ACEOF
1641
1642
1643## ----------- ##
1644## Core tests. ##
1645## ----------- ##
1646
1647_ACEOF
1648
1649
1650# Keep a trace of the command line.
1651# Strip out --no-create and --no-recursion so they do not pile up.
1652# Strip out --silent because we don't want to record it for future runs.
1653# Also quote any args containing shell meta-characters.
1654# Make two passes to allow for proper duplicate-argument suppression.
1655ac_configure_args=
1656ac_configure_args0=
1657ac_configure_args1=
1658ac_must_keep_next=false
1659for ac_pass in 1 2
1660do
1661  for ac_arg
1662  do
1663    case $ac_arg in
1664    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666    | -silent | --silent | --silen | --sile | --sil)
1667      continue ;;
1668    *\'*)
1669      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670    esac
1671    case $ac_pass in
1672    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673    2)
1674      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675      if test $ac_must_keep_next = true; then
1676	ac_must_keep_next=false # Got value, back to normal.
1677      else
1678	case $ac_arg in
1679	  *=* | --config-cache | -C | -disable-* | --disable-* \
1680	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682	  | -with-* | --with-* | -without-* | --without-* | --x)
1683	    case "$ac_configure_args0 " in
1684	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685	    esac
1686	    ;;
1687	  -* ) ac_must_keep_next=true ;;
1688	esac
1689      fi
1690      ac_configure_args="$ac_configure_args '$ac_arg'"
1691      ;;
1692    esac
1693  done
1694done
1695$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698# When interrupted or exit'd, cleanup temporary files, and complete
1699# config.log.  We remove comments because anyway the quotes in there
1700# would cause problems or look ugly.
1701# WARNING: Use '\'' to represent an apostrophe within the trap.
1702# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703trap 'exit_status=$?
1704  # Save into config.log some information that might help in debugging.
1705  {
1706    echo
1707
1708    cat <<\_ASBOX
1709## ---------------- ##
1710## Cache variables. ##
1711## ---------------- ##
1712_ASBOX
1713    echo
1714    # The following way of writing the cache mishandles newlines in values,
1715(
1716  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717    eval ac_val=\$$ac_var
1718    case $ac_val in #(
1719    *${as_nl}*)
1720      case $ac_var in #(
1721      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723      esac
1724      case $ac_var in #(
1725      _ | IFS | as_nl) ;; #(
1726      *) $as_unset $ac_var ;;
1727      esac ;;
1728    esac
1729  done
1730  (set) 2>&1 |
1731    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732    *${as_nl}ac_space=\ *)
1733      sed -n \
1734	"s/'\''/'\''\\\\'\'''\''/g;
1735	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736      ;; #(
1737    *)
1738      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739      ;;
1740    esac |
1741    sort
1742)
1743    echo
1744
1745    cat <<\_ASBOX
1746## ----------------- ##
1747## Output variables. ##
1748## ----------------- ##
1749_ASBOX
1750    echo
1751    for ac_var in $ac_subst_vars
1752    do
1753      eval ac_val=\$$ac_var
1754      case $ac_val in
1755      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756      esac
1757      echo "$ac_var='\''$ac_val'\''"
1758    done | sort
1759    echo
1760
1761    if test -n "$ac_subst_files"; then
1762      cat <<\_ASBOX
1763## ------------------- ##
1764## File substitutions. ##
1765## ------------------- ##
1766_ASBOX
1767      echo
1768      for ac_var in $ac_subst_files
1769      do
1770	eval ac_val=\$$ac_var
1771	case $ac_val in
1772	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773	esac
1774	echo "$ac_var='\''$ac_val'\''"
1775      done | sort
1776      echo
1777    fi
1778
1779    if test -s confdefs.h; then
1780      cat <<\_ASBOX
1781## ----------- ##
1782## confdefs.h. ##
1783## ----------- ##
1784_ASBOX
1785      echo
1786      cat confdefs.h
1787      echo
1788    fi
1789    test "$ac_signal" != 0 &&
1790      echo "$as_me: caught signal $ac_signal"
1791    echo "$as_me: exit $exit_status"
1792  } >&5
1793  rm -f core *.core core.conftest.* &&
1794    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795    exit $exit_status
1796' 0
1797for ac_signal in 1 2 13 15; do
1798  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799done
1800ac_signal=0
1801
1802# confdefs.h avoids OS command line length limits that DEFS can exceed.
1803rm -f -r conftest* confdefs.h
1804
1805# Predefined preprocessor variables.
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_NAME "$PACKAGE_NAME"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814_ACEOF
1815
1816
1817cat >>confdefs.h <<_ACEOF
1818#define PACKAGE_VERSION "$PACKAGE_VERSION"
1819_ACEOF
1820
1821
1822cat >>confdefs.h <<_ACEOF
1823#define PACKAGE_STRING "$PACKAGE_STRING"
1824_ACEOF
1825
1826
1827cat >>confdefs.h <<_ACEOF
1828#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829_ACEOF
1830
1831
1832# Let the site file select an alternate cache file if it wants to.
1833# Prefer explicitly selected file to automatically selected ones.
1834if test -n "$CONFIG_SITE"; then
1835  set x "$CONFIG_SITE"
1836elif test "x$prefix" != xNONE; then
1837  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838else
1839  set x "$ac_default_prefix/share/config.site" \
1840	"$ac_default_prefix/etc/config.site"
1841fi
1842shift
1843for ac_site_file
1844do
1845  if test -r "$ac_site_file"; then
1846    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847echo "$as_me: loading site script $ac_site_file" >&6;}
1848    sed 's/^/| /' "$ac_site_file" >&5
1849    . "$ac_site_file"
1850  fi
1851done
1852
1853if test -r "$cache_file"; then
1854  # Some versions of bash will fail to source /dev/null (special
1855  # files actually), so we avoid doing that.
1856  if test -f "$cache_file"; then
1857    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858echo "$as_me: loading cache $cache_file" >&6;}
1859    case $cache_file in
1860      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861      *)                      . "./$cache_file";;
1862    esac
1863  fi
1864else
1865  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866echo "$as_me: creating cache $cache_file" >&6;}
1867  >$cache_file
1868fi
1869
1870ac_header_list="$ac_header_list sys/time.h"
1871ac_header_list="$ac_header_list unistd.h"
1872ac_func_list="$ac_func_list alarm"
1873# Check that the precious variables saved in the cache have kept the same
1874# value.
1875ac_cache_corrupted=false
1876for ac_var in $ac_precious_vars; do
1877  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878  eval ac_new_set=\$ac_env_${ac_var}_set
1879  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880  eval ac_new_val=\$ac_env_${ac_var}_value
1881  case $ac_old_set,$ac_new_set in
1882    set,)
1883      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885      ac_cache_corrupted=: ;;
1886    ,set)
1887      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889      ac_cache_corrupted=: ;;
1890    ,);;
1891    *)
1892      if test "x$ac_old_val" != "x$ac_new_val"; then
1893	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896echo "$as_me:   former value:  $ac_old_val" >&2;}
1897	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898echo "$as_me:   current value: $ac_new_val" >&2;}
1899	ac_cache_corrupted=:
1900      fi;;
1901  esac
1902  # Pass precious variables to config.status.
1903  if test "$ac_new_set" = set; then
1904    case $ac_new_val in
1905    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906    *) ac_arg=$ac_var=$ac_new_val ;;
1907    esac
1908    case " $ac_configure_args " in
1909      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911    esac
1912  fi
1913done
1914if $ac_cache_corrupted; then
1915  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919   { (exit 1); exit 1; }; }
1920fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954
1955ac_aux_dir=
1956for ac_dir in config "$srcdir"/config; do
1957  if test -f "$ac_dir/install-sh"; then
1958    ac_aux_dir=$ac_dir
1959    ac_install_sh="$ac_aux_dir/install-sh -c"
1960    break
1961  elif test -f "$ac_dir/install.sh"; then
1962    ac_aux_dir=$ac_dir
1963    ac_install_sh="$ac_aux_dir/install.sh -c"
1964    break
1965  elif test -f "$ac_dir/shtool"; then
1966    ac_aux_dir=$ac_dir
1967    ac_install_sh="$ac_aux_dir/shtool install -c"
1968    break
1969  fi
1970done
1971if test -z "$ac_aux_dir"; then
1972  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1973echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1974   { (exit 1); exit 1; }; }
1975fi
1976
1977# These three variables are undocumented and unsupported,
1978# and are intended to be withdrawn in a future Autoconf release.
1979# They can cause serious problems if a builder's source tree is in a directory
1980# whose full name contains unusual characters.
1981ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1982ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1983ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984
1985
1986ac_config_headers="$ac_config_headers config/config.h"
1987
1988{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1989echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1990    # Check whether --enable-maintainer-mode was given.
1991if test "${enable_maintainer_mode+set}" = set; then
1992  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1993else
1994  USE_MAINTAINER_MODE=no
1995fi
1996
1997  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1998echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1999   if test $USE_MAINTAINER_MODE = yes; then
2000  MAINTAINER_MODE_TRUE=
2001  MAINTAINER_MODE_FALSE='#'
2002else
2003  MAINTAINER_MODE_TRUE='#'
2004  MAINTAINER_MODE_FALSE=
2005fi
2006
2007  MAINT=$MAINTAINER_MODE_TRUE
2008
2009
2010
2011# --with-native-includes forces the use of the system bsm headers.
2012
2013# Check whether --with-native-includes was given.
2014if test "${with_native_includes+set}" = set; then
2015  withval=$with_native_includes;
2016
2017cat >>confdefs.h <<\_ACEOF
2018#define USE_NATIVE_INCLUDES
2019_ACEOF
2020
2021use_native_includes=true
2022
2023else
2024  use_native_includes=false
2025fi
2026
2027 if $use_native_includes; then
2028  USE_NATIVE_INCLUDES_TRUE=
2029  USE_NATIVE_INCLUDES_FALSE='#'
2030else
2031  USE_NATIVE_INCLUDES_TRUE='#'
2032  USE_NATIVE_INCLUDES_FALSE=
2033fi
2034
2035
2036for ac_prog in mig
2037do
2038  # Extract the first word of "$ac_prog", so it can be a program name with args.
2039set dummy $ac_prog; ac_word=$2
2040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042if test "${ac_cv_path_MIG+set}" = set; then
2043  echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045  case $MIG in
2046  [\\/]* | ?:[\\/]*)
2047  ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2048  ;;
2049  *)
2050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055  for ac_exec_ext in '' $ac_executable_extensions; do
2056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2057    ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059    break 2
2060  fi
2061done
2062done
2063IFS=$as_save_IFS
2064
2065  ;;
2066esac
2067fi
2068MIG=$ac_cv_path_MIG
2069if test -n "$MIG"; then
2070  { echo "$as_me:$LINENO: result: $MIG" >&5
2071echo "${ECHO_T}$MIG" >&6; }
2072else
2073  { echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6; }
2075fi
2076
2077
2078  test -n "$MIG" && break
2079done
2080
2081
2082# Checks for programs.
2083ac_ext=c
2084ac_cpp='$CPP $CPPFLAGS'
2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088if test -n "$ac_tool_prefix"; then
2089  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2090set dummy ${ac_tool_prefix}gcc; ac_word=$2
2091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093if test "${ac_cv_prog_CC+set}" = set; then
2094  echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096  if test -n "$CC"; then
2097  ac_cv_prog_CC="$CC" # Let the user override the test.
2098else
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104  for ac_exec_ext in '' $ac_executable_extensions; do
2105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108    break 2
2109  fi
2110done
2111done
2112IFS=$as_save_IFS
2113
2114fi
2115fi
2116CC=$ac_cv_prog_CC
2117if test -n "$CC"; then
2118  { echo "$as_me:$LINENO: result: $CC" >&5
2119echo "${ECHO_T}$CC" >&6; }
2120else
2121  { echo "$as_me:$LINENO: result: no" >&5
2122echo "${ECHO_T}no" >&6; }
2123fi
2124
2125
2126fi
2127if test -z "$ac_cv_prog_CC"; then
2128  ac_ct_CC=$CC
2129  # Extract the first word of "gcc", so it can be a program name with args.
2130set dummy gcc; ac_word=$2
2131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134  echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136  if test -n "$ac_ct_CC"; then
2137  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138else
2139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142  IFS=$as_save_IFS
2143  test -z "$as_dir" && as_dir=.
2144  for ac_exec_ext in '' $ac_executable_extensions; do
2145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146    ac_cv_prog_ac_ct_CC="gcc"
2147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148    break 2
2149  fi
2150done
2151done
2152IFS=$as_save_IFS
2153
2154fi
2155fi
2156ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157if test -n "$ac_ct_CC"; then
2158  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159echo "${ECHO_T}$ac_ct_CC" >&6; }
2160else
2161  { echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6; }
2163fi
2164
2165  if test "x$ac_ct_CC" = x; then
2166    CC=""
2167  else
2168    case $cross_compiling:$ac_tool_warned in
2169yes:)
2170{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2171whose name does not start with the host triplet.  If you think this
2172configuration is useful to you, please write to autoconf@gnu.org." >&5
2173echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2174whose name does not start with the host triplet.  If you think this
2175configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2176ac_tool_warned=yes ;;
2177esac
2178    CC=$ac_ct_CC
2179  fi
2180else
2181  CC="$ac_cv_prog_CC"
2182fi
2183
2184if test -z "$CC"; then
2185          if test -n "$ac_tool_prefix"; then
2186    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187set dummy ${ac_tool_prefix}cc; ac_word=$2
2188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190if test "${ac_cv_prog_CC+set}" = set; then
2191  echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193  if test -n "$CC"; then
2194  ac_cv_prog_CC="$CC" # Let the user override the test.
2195else
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199  IFS=$as_save_IFS
2200  test -z "$as_dir" && as_dir=.
2201  for ac_exec_ext in '' $ac_executable_extensions; do
2202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203    ac_cv_prog_CC="${ac_tool_prefix}cc"
2204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205    break 2
2206  fi
2207done
2208done
2209IFS=$as_save_IFS
2210
2211fi
2212fi
2213CC=$ac_cv_prog_CC
2214if test -n "$CC"; then
2215  { echo "$as_me:$LINENO: result: $CC" >&5
2216echo "${ECHO_T}$CC" >&6; }
2217else
2218  { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
2220fi
2221
2222
2223  fi
2224fi
2225if test -z "$CC"; then
2226  # Extract the first word of "cc", so it can be a program name with args.
2227set dummy cc; ac_word=$2
2228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230if test "${ac_cv_prog_CC+set}" = set; then
2231  echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233  if test -n "$CC"; then
2234  ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
2236  ac_prog_rejected=no
2237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238for as_dir in $PATH
2239do
2240  IFS=$as_save_IFS
2241  test -z "$as_dir" && as_dir=.
2242  for ac_exec_ext in '' $ac_executable_extensions; do
2243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245       ac_prog_rejected=yes
2246       continue
2247     fi
2248    ac_cv_prog_CC="cc"
2249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250    break 2
2251  fi
2252done
2253done
2254IFS=$as_save_IFS
2255
2256if test $ac_prog_rejected = yes; then
2257  # We found a bogon in the path, so make sure we never use it.
2258  set dummy $ac_cv_prog_CC
2259  shift
2260  if test $# != 0; then
2261    # We chose a different compiler from the bogus one.
2262    # However, it has the same basename, so the bogon will be chosen
2263    # first if we set CC to just the basename; use the full file name.
2264    shift
2265    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2266  fi
2267fi
2268fi
2269fi
2270CC=$ac_cv_prog_CC
2271if test -n "$CC"; then
2272  { echo "$as_me:$LINENO: result: $CC" >&5
2273echo "${ECHO_T}$CC" >&6; }
2274else
2275  { echo "$as_me:$LINENO: result: no" >&5
2276echo "${ECHO_T}no" >&6; }
2277fi
2278
2279
2280fi
2281if test -z "$CC"; then
2282  if test -n "$ac_tool_prefix"; then
2283  for ac_prog in cl.exe
2284  do
2285    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289if test "${ac_cv_prog_CC+set}" = set; then
2290  echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292  if test -n "$CC"; then
2293  ac_cv_prog_CC="$CC" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298  IFS=$as_save_IFS
2299  test -z "$as_dir" && as_dir=.
2300  for ac_exec_ext in '' $ac_executable_extensions; do
2301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304    break 2
2305  fi
2306done
2307done
2308IFS=$as_save_IFS
2309
2310fi
2311fi
2312CC=$ac_cv_prog_CC
2313if test -n "$CC"; then
2314  { echo "$as_me:$LINENO: result: $CC" >&5
2315echo "${ECHO_T}$CC" >&6; }
2316else
2317  { echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6; }
2319fi
2320
2321
2322    test -n "$CC" && break
2323  done
2324fi
2325if test -z "$CC"; then
2326  ac_ct_CC=$CC
2327  for ac_prog in cl.exe
2328do
2329  # Extract the first word of "$ac_prog", so it can be a program name with args.
2330set dummy $ac_prog; ac_word=$2
2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  if test -n "$ac_ct_CC"; then
2337  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342  IFS=$as_save_IFS
2343  test -z "$as_dir" && as_dir=.
2344  for ac_exec_ext in '' $ac_executable_extensions; do
2345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346    ac_cv_prog_ac_ct_CC="$ac_prog"
2347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348    break 2
2349  fi
2350done
2351done
2352IFS=$as_save_IFS
2353
2354fi
2355fi
2356ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357if test -n "$ac_ct_CC"; then
2358  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359echo "${ECHO_T}$ac_ct_CC" >&6; }
2360else
2361  { echo "$as_me:$LINENO: result: no" >&5
2362echo "${ECHO_T}no" >&6; }
2363fi
2364
2365
2366  test -n "$ac_ct_CC" && break
2367done
2368
2369  if test "x$ac_ct_CC" = x; then
2370    CC=""
2371  else
2372    case $cross_compiling:$ac_tool_warned in
2373yes:)
2374{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375whose name does not start with the host triplet.  If you think this
2376configuration is useful to you, please write to autoconf@gnu.org." >&5
2377echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378whose name does not start with the host triplet.  If you think this
2379configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380ac_tool_warned=yes ;;
2381esac
2382    CC=$ac_ct_CC
2383  fi
2384fi
2385
2386fi
2387
2388
2389test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: no acceptable C compiler found in \$PATH
2392See \`config.log' for more details." >&2;}
2393   { (exit 1); exit 1; }; }
2394
2395# Provide some information about the compiler.
2396echo "$as_me:$LINENO: checking for C compiler version" >&5
2397ac_compiler=`set X $ac_compile; echo $2`
2398{ (ac_try="$ac_compiler --version >&5"
2399case "(($ac_try" in
2400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401  *) ac_try_echo=$ac_try;;
2402esac
2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404  (eval "$ac_compiler --version >&5") 2>&5
2405  ac_status=$?
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); }
2408{ (ac_try="$ac_compiler -v >&5"
2409case "(($ac_try" in
2410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411  *) ac_try_echo=$ac_try;;
2412esac
2413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414  (eval "$ac_compiler -v >&5") 2>&5
2415  ac_status=$?
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); }
2418{ (ac_try="$ac_compiler -V >&5"
2419case "(($ac_try" in
2420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421  *) ac_try_echo=$ac_try;;
2422esac
2423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424  (eval "$ac_compiler -V >&5") 2>&5
2425  ac_status=$?
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); }
2428
2429cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h.  */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h.  */
2435
2436int
2437main ()
2438{
2439
2440  ;
2441  return 0;
2442}
2443_ACEOF
2444ac_clean_files_save=$ac_clean_files
2445ac_clean_files="$ac_clean_files a.out a.exe b.out"
2446# Try to create an executable without -o first, disregard a.out.
2447# It will help us diagnose broken compilers, and finding out an intuition
2448# of exeext.
2449{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2451ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2452#
2453# List of possible output files, starting from the most likely.
2454# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2455# only as a last resort.  b.out is created by i960 compilers.
2456ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2457#
2458# The IRIX 6 linker writes into existing files which may not be
2459# executable, retaining their permissions.  Remove them first so a
2460# subsequent execution test works.
2461ac_rmfiles=
2462for ac_file in $ac_files
2463do
2464  case $ac_file in
2465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2466    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2467  esac
2468done
2469rm -f $ac_rmfiles
2470
2471if { (ac_try="$ac_link_default"
2472case "(($ac_try" in
2473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474  *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477  (eval "$ac_link_default") 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; then
2481  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2482# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2483# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2484# so that the user can short-circuit this test for compilers unknown to
2485# Autoconf.
2486for ac_file in $ac_files ''
2487do
2488  test -f "$ac_file" || continue
2489  case $ac_file in
2490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2491	;;
2492    [ab].out )
2493	# We found the default executable, but exeext='' is most
2494	# certainly right.
2495	break;;
2496    *.* )
2497        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2498	then :; else
2499	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500	fi
2501	# We set ac_cv_exeext here because the later test for it is not
2502	# safe: cross compilers may not add the suffix if given an `-o'
2503	# argument, so we may need to know it at that point already.
2504	# Even if this section looks crufty: it has the advantage of
2505	# actually working.
2506	break;;
2507    * )
2508	break;;
2509  esac
2510done
2511test "$ac_cv_exeext" = no && ac_cv_exeext=
2512
2513else
2514  ac_file=''
2515fi
2516
2517{ echo "$as_me:$LINENO: result: $ac_file" >&5
2518echo "${ECHO_T}$ac_file" >&6; }
2519if test -z "$ac_file"; then
2520  echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524See \`config.log' for more details." >&5
2525echo "$as_me: error: C compiler cannot create executables
2526See \`config.log' for more details." >&2;}
2527   { (exit 77); exit 77; }; }
2528fi
2529
2530ac_exeext=$ac_cv_exeext
2531
2532# Check that the compiler produces executables we can run.  If not, either
2533# the compiler is broken, or we cross compile.
2534{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2535echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2536# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2537# If not cross compiling, check that we can run a simple program.
2538if test "$cross_compiling" != yes; then
2539  if { ac_try='./$ac_file'
2540  { (case "(($ac_try" in
2541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542  *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545  (eval "$ac_try") 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }; }; then
2549    cross_compiling=no
2550  else
2551    if test "$cross_compiling" = maybe; then
2552	cross_compiling=yes
2553    else
2554	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2555If you meant to cross compile, use \`--host'.
2556See \`config.log' for more details." >&5
2557echo "$as_me: error: cannot run C compiled programs.
2558If you meant to cross compile, use \`--host'.
2559See \`config.log' for more details." >&2;}
2560   { (exit 1); exit 1; }; }
2561    fi
2562  fi
2563fi
2564{ echo "$as_me:$LINENO: result: yes" >&5
2565echo "${ECHO_T}yes" >&6; }
2566
2567rm -f a.out a.exe conftest$ac_cv_exeext b.out
2568ac_clean_files=$ac_clean_files_save
2569# Check that the compiler produces executables we can run.  If not, either
2570# the compiler is broken, or we cross compile.
2571{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2572echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2573{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2574echo "${ECHO_T}$cross_compiling" >&6; }
2575
2576{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2577echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2578if { (ac_try="$ac_link"
2579case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584  (eval "$ac_link") 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; then
2588  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2590# work properly (i.e., refer to `conftest.exe'), while it won't with
2591# `rm'.
2592for ac_file in conftest.exe conftest conftest.*; do
2593  test -f "$ac_file" || continue
2594  case $ac_file in
2595    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597	  break;;
2598    * ) break;;
2599  esac
2600done
2601else
2602  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2603See \`config.log' for more details." >&5
2604echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2605See \`config.log' for more details." >&2;}
2606   { (exit 1); exit 1; }; }
2607fi
2608
2609rm -f conftest$ac_cv_exeext
2610{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2611echo "${ECHO_T}$ac_cv_exeext" >&6; }
2612
2613rm -f conftest.$ac_ext
2614EXEEXT=$ac_cv_exeext
2615ac_exeext=$EXEEXT
2616{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2617echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2618if test "${ac_cv_objext+set}" = set; then
2619  echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621  cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h.  */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h.  */
2627
2628int
2629main ()
2630{
2631
2632  ;
2633  return 0;
2634}
2635_ACEOF
2636rm -f conftest.o conftest.obj
2637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640  *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643  (eval "$ac_compile") 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; then
2647  for ac_file in conftest.o conftest.obj conftest.*; do
2648  test -f "$ac_file" || continue;
2649  case $ac_file in
2650    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2651    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2652       break;;
2653  esac
2654done
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660See \`config.log' for more details." >&5
2661echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662See \`config.log' for more details." >&2;}
2663   { (exit 1); exit 1; }; }
2664fi
2665
2666rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667fi
2668{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669echo "${ECHO_T}$ac_cv_objext" >&6; }
2670OBJEXT=$ac_cv_objext
2671ac_objext=$OBJEXT
2672{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2674if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675  echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677  cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h.  */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h.  */
2683
2684int
2685main ()
2686{
2687#ifndef __GNUC__
2688       choke me
2689#endif
2690
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (ac_try="$ac_compile"
2697case "(($ac_try" in
2698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699  *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702  (eval "$ac_compile") 2>conftest.er1
2703  ac_status=$?
2704  grep -v '^ *+' conftest.er1 >conftest.err
2705  rm -f conftest.er1
2706  cat conftest.err >&5
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } && {
2709	 test -z "$ac_c_werror_flag" ||
2710	 test ! -s conftest.err
2711       } && test -s conftest.$ac_objext; then
2712  ac_compiler_gnu=yes
2713else
2714  echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717	ac_compiler_gnu=no
2718fi
2719
2720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721ac_cv_c_compiler_gnu=$ac_compiler_gnu
2722
2723fi
2724{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2726GCC=`test $ac_compiler_gnu = yes && echo yes`
2727ac_test_CFLAGS=${CFLAGS+set}
2728ac_save_CFLAGS=$CFLAGS
2729{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2730echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2731if test "${ac_cv_prog_cc_g+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  ac_save_c_werror_flag=$ac_c_werror_flag
2735   ac_c_werror_flag=yes
2736   ac_cv_prog_cc_g=no
2737   CFLAGS="-g"
2738   cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h.  */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h.  */
2744
2745int
2746main ()
2747{
2748
2749  ;
2750  return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (ac_try="$ac_compile"
2755case "(($ac_try" in
2756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757  *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760  (eval "$ac_compile") 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } && {
2767	 test -z "$ac_c_werror_flag" ||
2768	 test ! -s conftest.err
2769       } && test -s conftest.$ac_objext; then
2770  ac_cv_prog_cc_g=yes
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775	CFLAGS=""
2776      cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h.  */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h.  */
2782
2783int
2784main ()
2785{
2786
2787  ;
2788  return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (ac_try="$ac_compile"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798  (eval "$ac_compile") 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } && {
2805	 test -z "$ac_c_werror_flag" ||
2806	 test ! -s conftest.err
2807       } && test -s conftest.$ac_objext; then
2808  :
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813	ac_c_werror_flag=$ac_save_c_werror_flag
2814	 CFLAGS="-g"
2815	 cat >conftest.$ac_ext <<_ACEOF
2816/* confdefs.h.  */
2817_ACEOF
2818cat confdefs.h >>conftest.$ac_ext
2819cat >>conftest.$ac_ext <<_ACEOF
2820/* end confdefs.h.  */
2821
2822int
2823main ()
2824{
2825
2826  ;
2827  return 0;
2828}
2829_ACEOF
2830rm -f conftest.$ac_objext
2831if { (ac_try="$ac_compile"
2832case "(($ac_try" in
2833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834  *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837  (eval "$ac_compile") 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } && {
2844	 test -z "$ac_c_werror_flag" ||
2845	 test ! -s conftest.err
2846       } && test -s conftest.$ac_objext; then
2847  ac_cv_prog_cc_g=yes
2848else
2849  echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852
2853fi
2854
2855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856fi
2857
2858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859fi
2860
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862   ac_c_werror_flag=$ac_save_c_werror_flag
2863fi
2864{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2865echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2866if test "$ac_test_CFLAGS" = set; then
2867  CFLAGS=$ac_save_CFLAGS
2868elif test $ac_cv_prog_cc_g = yes; then
2869  if test "$GCC" = yes; then
2870    CFLAGS="-g -O2"
2871  else
2872    CFLAGS="-g"
2873  fi
2874else
2875  if test "$GCC" = yes; then
2876    CFLAGS="-O2"
2877  else
2878    CFLAGS=
2879  fi
2880fi
2881{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2882echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2883if test "${ac_cv_prog_cc_c89+set}" = set; then
2884  echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886  ac_cv_prog_cc_c89=no
2887ac_save_CC=$CC
2888cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h.  */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h.  */
2894#include <stdarg.h>
2895#include <stdio.h>
2896#include <sys/types.h>
2897#include <sys/stat.h>
2898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2899struct buf { int x; };
2900FILE * (*rcsopen) (struct buf *, struct stat *, int);
2901static char *e (p, i)
2902     char **p;
2903     int i;
2904{
2905  return p[i];
2906}
2907static char *f (char * (*g) (char **, int), char **p, ...)
2908{
2909  char *s;
2910  va_list v;
2911  va_start (v,p);
2912  s = g (p, va_arg (v,int));
2913  va_end (v);
2914  return s;
2915}
2916
2917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2918   function prototypes and stuff, but not '\xHH' hex character constants.
2919   These don't provoke an error unfortunately, instead are silently treated
2920   as 'x'.  The following induces an error, until -std is added to get
2921   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2922   array size at least.  It's necessary to write '\x00'==0 to get something
2923   that's true only with -std.  */
2924int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2925
2926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2927   inside strings and character constants.  */
2928#define FOO(x) 'x'
2929int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2930
2931int test (int i, double x);
2932struct s1 {int (*f) (int a);};
2933struct s2 {int (*f) (double a);};
2934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935int argc;
2936char **argv;
2937int
2938main ()
2939{
2940return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2946	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2947do
2948  CC="$ac_save_CC $ac_arg"
2949  rm -f conftest.$ac_objext
2950if { (ac_try="$ac_compile"
2951case "(($ac_try" in
2952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953  *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956  (eval "$ac_compile") 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } && {
2963	 test -z "$ac_c_werror_flag" ||
2964	 test ! -s conftest.err
2965       } && test -s conftest.$ac_objext; then
2966  ac_cv_prog_cc_c89=$ac_arg
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971
2972fi
2973
2974rm -f core conftest.err conftest.$ac_objext
2975  test "x$ac_cv_prog_cc_c89" != "xno" && break
2976done
2977rm -f conftest.$ac_ext
2978CC=$ac_save_CC
2979
2980fi
2981# AC_CACHE_VAL
2982case "x$ac_cv_prog_cc_c89" in
2983  x)
2984    { echo "$as_me:$LINENO: result: none needed" >&5
2985echo "${ECHO_T}none needed" >&6; } ;;
2986  xno)
2987    { echo "$as_me:$LINENO: result: unsupported" >&5
2988echo "${ECHO_T}unsupported" >&6; } ;;
2989  *)
2990    CC="$CC $ac_cv_prog_cc_c89"
2991    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2992echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2993esac
2994
2995
2996ac_ext=c
2997ac_cpp='$CPP $CPPFLAGS'
2998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001
3002# Find a good install program.  We prefer a C program (faster),
3003# so one script is as good as another.  But avoid the broken or
3004# incompatible versions:
3005# SysV /etc/install, /usr/sbin/install
3006# SunOS /usr/etc/install
3007# IRIX /sbin/install
3008# AIX /bin/install
3009# AmigaOS /C/install, which installs bootblocks on floppy discs
3010# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3011# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3012# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3013# OS/2's system install, which has a completely different semantic
3014# ./install, which can be erroneously created by make from ./install.sh.
3015{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3016echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3017if test -z "$INSTALL"; then
3018if test "${ac_cv_path_install+set}" = set; then
3019  echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026  # Account for people who put trailing slashes in PATH elements.
3027case $as_dir/ in
3028  ./ | .// | /cC/* | \
3029  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3030  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3031  /usr/ucb/* ) ;;
3032  *)
3033    # OSF1 and SCO ODT 3.0 have their own names for install.
3034    # Don't use installbsd from OSF since it installs stuff as root
3035    # by default.
3036    for ac_prog in ginstall scoinst install; do
3037      for ac_exec_ext in '' $ac_executable_extensions; do
3038	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3039	  if test $ac_prog = install &&
3040	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041	    # AIX install.  It has an incompatible calling convention.
3042	    :
3043	  elif test $ac_prog = install &&
3044	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045	    # program-specific install script used by HP pwplus--don't use.
3046	    :
3047	  else
3048	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3049	    break 3
3050	  fi
3051	fi
3052      done
3053    done
3054    ;;
3055esac
3056done
3057IFS=$as_save_IFS
3058
3059
3060fi
3061  if test "${ac_cv_path_install+set}" = set; then
3062    INSTALL=$ac_cv_path_install
3063  else
3064    # As a last resort, use the slow shell script.  Don't cache a
3065    # value for INSTALL within a source directory, because that will
3066    # break other packages using the cache if that directory is
3067    # removed, or if the value is a relative name.
3068    INSTALL=$ac_install_sh
3069  fi
3070fi
3071{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3072echo "${ECHO_T}$INSTALL" >&6; }
3073
3074# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075# It thinks the first close brace ends the variable substitution.
3076test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077
3078test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3079
3080test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3081
3082# Check whether --enable-shared was given.
3083if test "${enable_shared+set}" = set; then
3084  enableval=$enable_shared; p=${PACKAGE-default}
3085    case $enableval in
3086    yes) enable_shared=yes ;;
3087    no) enable_shared=no ;;
3088    *)
3089      enable_shared=no
3090      # Look at the argument we got.  We use all the common list separators.
3091      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3092      for pkg in $enableval; do
3093	IFS="$lt_save_ifs"
3094	if test "X$pkg" = "X$p"; then
3095	  enable_shared=yes
3096	fi
3097      done
3098      IFS="$lt_save_ifs"
3099      ;;
3100    esac
3101else
3102  enable_shared=yes
3103fi
3104
3105
3106# Check whether --enable-static was given.
3107if test "${enable_static+set}" = set; then
3108  enableval=$enable_static; p=${PACKAGE-default}
3109    case $enableval in
3110    yes) enable_static=yes ;;
3111    no) enable_static=no ;;
3112    *)
3113     enable_static=no
3114      # Look at the argument we got.  We use all the common list separators.
3115      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3116      for pkg in $enableval; do
3117	IFS="$lt_save_ifs"
3118	if test "X$pkg" = "X$p"; then
3119	  enable_static=yes
3120	fi
3121      done
3122      IFS="$lt_save_ifs"
3123      ;;
3124    esac
3125else
3126  enable_static=yes
3127fi
3128
3129
3130# Check whether --enable-fast-install was given.
3131if test "${enable_fast_install+set}" = set; then
3132  enableval=$enable_fast_install; p=${PACKAGE-default}
3133    case $enableval in
3134    yes) enable_fast_install=yes ;;
3135    no) enable_fast_install=no ;;
3136    *)
3137      enable_fast_install=no
3138      # Look at the argument we got.  We use all the common list separators.
3139      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3140      for pkg in $enableval; do
3141	IFS="$lt_save_ifs"
3142	if test "X$pkg" = "X$p"; then
3143	  enable_fast_install=yes
3144	fi
3145      done
3146      IFS="$lt_save_ifs"
3147      ;;
3148    esac
3149else
3150  enable_fast_install=yes
3151fi
3152
3153
3154# Make sure we can run config.sub.
3155$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3156  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3157echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3158   { (exit 1); exit 1; }; }
3159
3160{ echo "$as_me:$LINENO: checking build system type" >&5
3161echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3162if test "${ac_cv_build+set}" = set; then
3163  echo $ECHO_N "(cached) $ECHO_C" >&6
3164else
3165  ac_build_alias=$build_alias
3166test "x$ac_build_alias" = x &&
3167  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168test "x$ac_build_alias" = x &&
3169  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3170echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3171   { (exit 1); exit 1; }; }
3172ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3173  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3174echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3175   { (exit 1); exit 1; }; }
3176
3177fi
3178{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3179echo "${ECHO_T}$ac_cv_build" >&6; }
3180case $ac_cv_build in
3181*-*-*) ;;
3182*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3183echo "$as_me: error: invalid value of canonical build" >&2;}
3184   { (exit 1); exit 1; }; };;
3185esac
3186build=$ac_cv_build
3187ac_save_IFS=$IFS; IFS='-'
3188set x $ac_cv_build
3189shift
3190build_cpu=$1
3191build_vendor=$2
3192shift; shift
3193# Remember, the first character of IFS is used to create $*,
3194# except with old shells:
3195build_os=$*
3196IFS=$ac_save_IFS
3197case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3198
3199
3200{ echo "$as_me:$LINENO: checking host system type" >&5
3201echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3202if test "${ac_cv_host+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205  if test "x$host_alias" = x; then
3206  ac_cv_host=$ac_cv_build
3207else
3208  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3209    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3211   { (exit 1); exit 1; }; }
3212fi
3213
3214fi
3215{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3216echo "${ECHO_T}$ac_cv_host" >&6; }
3217case $ac_cv_host in
3218*-*-*) ;;
3219*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3220echo "$as_me: error: invalid value of canonical host" >&2;}
3221   { (exit 1); exit 1; }; };;
3222esac
3223host=$ac_cv_host
3224ac_save_IFS=$IFS; IFS='-'
3225set x $ac_cv_host
3226shift
3227host_cpu=$1
3228host_vendor=$2
3229shift; shift
3230# Remember, the first character of IFS is used to create $*,
3231# except with old shells:
3232host_os=$*
3233IFS=$ac_save_IFS
3234case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3235
3236
3237{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3238echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3239if test "${lt_cv_path_SED+set}" = set; then
3240  echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242  # Loop through the user's path and test for sed and gsed.
3243# Then use that list of sed's as ones to test for truncation.
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for lt_ac_prog in sed gsed; do
3250    for ac_exec_ext in '' $ac_executable_extensions; do
3251      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3252        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3253      fi
3254    done
3255  done
3256done
3257IFS=$as_save_IFS
3258lt_ac_max=0
3259lt_ac_count=0
3260# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3261# along with /bin/sed that truncates output.
3262for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3263  test ! -f $lt_ac_sed && continue
3264  cat /dev/null > conftest.in
3265  lt_ac_count=0
3266  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3267  # Check for GNU sed and select it if it is found.
3268  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3269    lt_cv_path_SED=$lt_ac_sed
3270    break
3271  fi
3272  while true; do
3273    cat conftest.in conftest.in >conftest.tmp
3274    mv conftest.tmp conftest.in
3275    cp conftest.in conftest.nl
3276    echo >>conftest.nl
3277    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3278    cmp -s conftest.out conftest.nl || break
3279    # 10000 chars as input seems more than enough
3280    test $lt_ac_count -gt 10 && break
3281    lt_ac_count=`expr $lt_ac_count + 1`
3282    if test $lt_ac_count -gt $lt_ac_max; then
3283      lt_ac_max=$lt_ac_count
3284      lt_cv_path_SED=$lt_ac_sed
3285    fi
3286  done
3287done
3288
3289fi
3290
3291SED=$lt_cv_path_SED
3292
3293{ echo "$as_me:$LINENO: result: $SED" >&5
3294echo "${ECHO_T}$SED" >&6; }
3295
3296{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3297echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3298if test "${ac_cv_path_GREP+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  # Extract the first word of "grep ggrep" to use in msg output
3302if test -z "$GREP"; then
3303set dummy grep ggrep; ac_prog_name=$2
3304if test "${ac_cv_path_GREP+set}" = set; then
3305  echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307  ac_path_GREP_found=false
3308# Loop through the user's path and test for each of PROGNAME-LIST
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314  for ac_prog in grep ggrep; do
3315  for ac_exec_ext in '' $ac_executable_extensions; do
3316    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3317    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3318    # Check for GNU ac_path_GREP and select it if it is found.
3319  # Check for GNU $ac_path_GREP
3320case `"$ac_path_GREP" --version 2>&1` in
3321*GNU*)
3322  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3323*)
3324  ac_count=0
3325  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3326  while :
3327  do
3328    cat "conftest.in" "conftest.in" >"conftest.tmp"
3329    mv "conftest.tmp" "conftest.in"
3330    cp "conftest.in" "conftest.nl"
3331    echo 'GREP' >> "conftest.nl"
3332    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3333    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3334    ac_count=`expr $ac_count + 1`
3335    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3336      # Best one so far, save it but keep looking for a better one
3337      ac_cv_path_GREP="$ac_path_GREP"
3338      ac_path_GREP_max=$ac_count
3339    fi
3340    # 10*(2^10) chars as input seems more than enough
3341    test $ac_count -gt 10 && break
3342  done
3343  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3344esac
3345
3346
3347    $ac_path_GREP_found && break 3
3348  done
3349done
3350
3351done
3352IFS=$as_save_IFS
3353
3354
3355fi
3356
3357GREP="$ac_cv_path_GREP"
3358if test -z "$GREP"; then
3359  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3360echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3361   { (exit 1); exit 1; }; }
3362fi
3363
3364else
3365  ac_cv_path_GREP=$GREP
3366fi
3367
3368
3369fi
3370{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3371echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3372 GREP="$ac_cv_path_GREP"
3373
3374
3375{ echo "$as_me:$LINENO: checking for egrep" >&5
3376echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3377if test "${ac_cv_path_EGREP+set}" = set; then
3378  echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3381   then ac_cv_path_EGREP="$GREP -E"
3382   else
3383     # Extract the first word of "egrep" to use in msg output
3384if test -z "$EGREP"; then
3385set dummy egrep; ac_prog_name=$2
3386if test "${ac_cv_path_EGREP+set}" = set; then
3387  echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389  ac_path_EGREP_found=false
3390# Loop through the user's path and test for each of PROGNAME-LIST
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396  for ac_prog in egrep; do
3397  for ac_exec_ext in '' $ac_executable_extensions; do
3398    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3399    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3400    # Check for GNU ac_path_EGREP and select it if it is found.
3401  # Check for GNU $ac_path_EGREP
3402case `"$ac_path_EGREP" --version 2>&1` in
3403*GNU*)
3404  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3405*)
3406  ac_count=0
3407  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3408  while :
3409  do
3410    cat "conftest.in" "conftest.in" >"conftest.tmp"
3411    mv "conftest.tmp" "conftest.in"
3412    cp "conftest.in" "conftest.nl"
3413    echo 'EGREP' >> "conftest.nl"
3414    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3415    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3416    ac_count=`expr $ac_count + 1`
3417    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3418      # Best one so far, save it but keep looking for a better one
3419      ac_cv_path_EGREP="$ac_path_EGREP"
3420      ac_path_EGREP_max=$ac_count
3421    fi
3422    # 10*(2^10) chars as input seems more than enough
3423    test $ac_count -gt 10 && break
3424  done
3425  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3426esac
3427
3428
3429    $ac_path_EGREP_found && break 3
3430  done
3431done
3432
3433done
3434IFS=$as_save_IFS
3435
3436
3437fi
3438
3439EGREP="$ac_cv_path_EGREP"
3440if test -z "$EGREP"; then
3441  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3442echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3443   { (exit 1); exit 1; }; }
3444fi
3445
3446else
3447  ac_cv_path_EGREP=$EGREP
3448fi
3449
3450
3451   fi
3452fi
3453{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3454echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3455 EGREP="$ac_cv_path_EGREP"
3456
3457
3458
3459# Check whether --with-gnu-ld was given.
3460if test "${with_gnu_ld+set}" = set; then
3461  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3462else
3463  with_gnu_ld=no
3464fi
3465
3466ac_prog=ld
3467if test "$GCC" = yes; then
3468  # Check if gcc -print-prog-name=ld gives a path.
3469  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3470echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3471  case $host in
3472  *-*-mingw*)
3473    # gcc leaves a trailing carriage return which upsets mingw
3474    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3475  *)
3476    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3477  esac
3478  case $ac_prog in
3479    # Accept absolute paths.
3480    [\\/]* | ?:[\\/]*)
3481      re_direlt='/[^/][^/]*/\.\./'
3482      # Canonicalize the pathname of ld
3483      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3484      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3485	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3486      done
3487      test -z "$LD" && LD="$ac_prog"
3488      ;;
3489  "")
3490    # If it fails, then pretend we aren't using GCC.
3491    ac_prog=ld
3492    ;;
3493  *)
3494    # If it is relative, then search for the first ld in PATH.
3495    with_gnu_ld=unknown
3496    ;;
3497  esac
3498elif test "$with_gnu_ld" = yes; then
3499  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3500echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3501else
3502  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3503echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3504fi
3505if test "${lt_cv_path_LD+set}" = set; then
3506  echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508  if test -z "$LD"; then
3509  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3510  for ac_dir in $PATH; do
3511    IFS="$lt_save_ifs"
3512    test -z "$ac_dir" && ac_dir=.
3513    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3514      lt_cv_path_LD="$ac_dir/$ac_prog"
3515      # Check to see if the program is GNU ld.  I'd rather use --version,
3516      # but apparently some variants of GNU ld only accept -v.
3517      # Break only if it was the GNU/non-GNU ld that we prefer.
3518      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3519      *GNU* | *'with BFD'*)
3520	test "$with_gnu_ld" != no && break
3521	;;
3522      *)
3523	test "$with_gnu_ld" != yes && break
3524	;;
3525      esac
3526    fi
3527  done
3528  IFS="$lt_save_ifs"
3529else
3530  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3531fi
3532fi
3533
3534LD="$lt_cv_path_LD"
3535if test -n "$LD"; then
3536  { echo "$as_me:$LINENO: result: $LD" >&5
3537echo "${ECHO_T}$LD" >&6; }
3538else
3539  { echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6; }
3541fi
3542test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3543echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3544   { (exit 1); exit 1; }; }
3545{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3546echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3547if test "${lt_cv_prog_gnu_ld+set}" = set; then
3548  echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3551case `$LD -v 2>&1 </dev/null` in
3552*GNU* | *'with BFD'*)
3553  lt_cv_prog_gnu_ld=yes
3554  ;;
3555*)
3556  lt_cv_prog_gnu_ld=no
3557  ;;
3558esac
3559fi
3560{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3561echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3562with_gnu_ld=$lt_cv_prog_gnu_ld
3563
3564
3565{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3566echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3567if test "${lt_cv_ld_reload_flag+set}" = set; then
3568  echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570  lt_cv_ld_reload_flag='-r'
3571fi
3572{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3573echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3574reload_flag=$lt_cv_ld_reload_flag
3575case $reload_flag in
3576"" | " "*) ;;
3577*) reload_flag=" $reload_flag" ;;
3578esac
3579reload_cmds='$LD$reload_flag -o $output$reload_objs'
3580case $host_os in
3581  darwin*)
3582    if test "$GCC" = yes; then
3583      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3584    else
3585      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3586    fi
3587    ;;
3588esac
3589
3590{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3591echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3592if test "${lt_cv_path_NM+set}" = set; then
3593  echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595  if test -n "$NM"; then
3596  # Let the user override the test.
3597  lt_cv_path_NM="$NM"
3598else
3599  lt_nm_to_check="${ac_tool_prefix}nm"
3600  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3601    lt_nm_to_check="$lt_nm_to_check nm"
3602  fi
3603  for lt_tmp_nm in $lt_nm_to_check; do
3604    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3606      IFS="$lt_save_ifs"
3607      test -z "$ac_dir" && ac_dir=.
3608      tmp_nm="$ac_dir/$lt_tmp_nm"
3609      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3610	# Check to see if the nm accepts a BSD-compat flag.
3611	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3612	#   nm: unknown option "B" ignored
3613	# Tru64's nm complains that /dev/null is an invalid object file
3614	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3615	*/dev/null* | *'Invalid file or object type'*)
3616	  lt_cv_path_NM="$tmp_nm -B"
3617	  break
3618	  ;;
3619	*)
3620	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3621	  */dev/null*)
3622	    lt_cv_path_NM="$tmp_nm -p"
3623	    break
3624	    ;;
3625	  *)
3626	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3627	    continue # so that we can try to find one that supports BSD flags
3628	    ;;
3629	  esac
3630	  ;;
3631	esac
3632      fi
3633    done
3634    IFS="$lt_save_ifs"
3635  done
3636  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3637fi
3638fi
3639{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3640echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3641NM="$lt_cv_path_NM"
3642
3643{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3644echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3645LN_S=$as_ln_s
3646if test "$LN_S" = "ln -s"; then
3647  { echo "$as_me:$LINENO: result: yes" >&5
3648echo "${ECHO_T}yes" >&6; }
3649else
3650  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3651echo "${ECHO_T}no, using $LN_S" >&6; }
3652fi
3653
3654{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3655echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3656if test "${lt_cv_deplibs_check_method+set}" = set; then
3657  echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659  lt_cv_file_magic_cmd='$MAGIC_CMD'
3660lt_cv_file_magic_test_file=
3661lt_cv_deplibs_check_method='unknown'
3662# Need to set the preceding variable on all platforms that support
3663# interlibrary dependencies.
3664# 'none' -- dependencies not supported.
3665# `unknown' -- same as none, but documents that we really don't know.
3666# 'pass_all' -- all dependencies passed with no checks.
3667# 'test_compile' -- check by making test program.
3668# 'file_magic [[regex]]' -- check by looking for files in library path
3669# which responds to the $file_magic_cmd with a given extended regex.
3670# If you have `file' or equivalent on your system and you're not sure
3671# whether `pass_all' will *always* work, you probably want this one.
3672
3673case $host_os in
3674aix4* | aix5*)
3675  lt_cv_deplibs_check_method=pass_all
3676  ;;
3677
3678beos*)
3679  lt_cv_deplibs_check_method=pass_all
3680  ;;
3681
3682bsdi[45]*)
3683  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3684  lt_cv_file_magic_cmd='/usr/bin/file -L'
3685  lt_cv_file_magic_test_file=/shlib/libc.so
3686  ;;
3687
3688cygwin*)
3689  # func_win32_libid is a shell function defined in ltmain.sh
3690  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3691  lt_cv_file_magic_cmd='func_win32_libid'
3692  ;;
3693
3694mingw* | pw32*)
3695  # Base MSYS/MinGW do not provide the 'file' command needed by
3696  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3697  # unless we find 'file', for example because we are cross-compiling.
3698  if ( file / ) >/dev/null 2>&1; then
3699    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3700    lt_cv_file_magic_cmd='func_win32_libid'
3701  else
3702    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3703    lt_cv_file_magic_cmd='$OBJDUMP -f'
3704  fi
3705  ;;
3706
3707darwin* | rhapsody*)
3708  lt_cv_deplibs_check_method=pass_all
3709  ;;
3710
3711freebsd* | dragonfly*)
3712  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3713    case $host_cpu in
3714    i*86 )
3715      # Not sure whether the presence of OpenBSD here was a mistake.
3716      # Let's accept both of them until this is cleared up.
3717      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3718      lt_cv_file_magic_cmd=/usr/bin/file
3719      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3720      ;;
3721    esac
3722  else
3723    lt_cv_deplibs_check_method=pass_all
3724  fi
3725  ;;
3726
3727gnu*)
3728  lt_cv_deplibs_check_method=pass_all
3729  ;;
3730
3731hpux10.20* | hpux11*)
3732  lt_cv_file_magic_cmd=/usr/bin/file
3733  case $host_cpu in
3734  ia64*)
3735    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3736    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3737    ;;
3738  hppa*64*)
3739    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]'
3740    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3741    ;;
3742  *)
3743    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3744    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3745    ;;
3746  esac
3747  ;;
3748
3749interix[3-9]*)
3750  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3751  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3752  ;;
3753
3754irix5* | irix6* | nonstopux*)
3755  case $LD in
3756  *-32|*"-32 ") libmagic=32-bit;;
3757  *-n32|*"-n32 ") libmagic=N32;;
3758  *-64|*"-64 ") libmagic=64-bit;;
3759  *) libmagic=never-match;;
3760  esac
3761  lt_cv_deplibs_check_method=pass_all
3762  ;;
3763
3764# This must be Linux ELF.
3765linux* | k*bsd*-gnu)
3766  lt_cv_deplibs_check_method=pass_all
3767  ;;
3768
3769netbsd*)
3770  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3771    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3772  else
3773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3774  fi
3775  ;;
3776
3777newos6*)
3778  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3779  lt_cv_file_magic_cmd=/usr/bin/file
3780  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3781  ;;
3782
3783nto-qnx*)
3784  lt_cv_deplibs_check_method=unknown
3785  ;;
3786
3787openbsd*)
3788  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3789    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3790  else
3791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3792  fi
3793  ;;
3794
3795osf3* | osf4* | osf5*)
3796  lt_cv_deplibs_check_method=pass_all
3797  ;;
3798
3799rdos*)
3800  lt_cv_deplibs_check_method=pass_all
3801  ;;
3802
3803solaris*)
3804  lt_cv_deplibs_check_method=pass_all
3805  ;;
3806
3807sysv4 | sysv4.3*)
3808  case $host_vendor in
3809  motorola)
3810    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]'
3811    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3812    ;;
3813  ncr)
3814    lt_cv_deplibs_check_method=pass_all
3815    ;;
3816  sequent)
3817    lt_cv_file_magic_cmd='/bin/file'
3818    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3819    ;;
3820  sni)
3821    lt_cv_file_magic_cmd='/bin/file'
3822    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3823    lt_cv_file_magic_test_file=/lib/libc.so
3824    ;;
3825  siemens)
3826    lt_cv_deplibs_check_method=pass_all
3827    ;;
3828  pc)
3829    lt_cv_deplibs_check_method=pass_all
3830    ;;
3831  esac
3832  ;;
3833
3834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3835  lt_cv_deplibs_check_method=pass_all
3836  ;;
3837esac
3838
3839fi
3840{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3841echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3842file_magic_cmd=$lt_cv_file_magic_cmd
3843deplibs_check_method=$lt_cv_deplibs_check_method
3844test -z "$deplibs_check_method" && deplibs_check_method=unknown
3845
3846
3847
3848
3849# If no C compiler was specified, use CC.
3850LTCC=${LTCC-"$CC"}
3851
3852# If no C compiler flags were specified, use CFLAGS.
3853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3854
3855# Allow CC to be a program name with arguments.
3856compiler=$CC
3857
3858
3859# Check whether --enable-libtool-lock was given.
3860if test "${enable_libtool_lock+set}" = set; then
3861  enableval=$enable_libtool_lock;
3862fi
3863
3864test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3865
3866# Some flags need to be propagated to the compiler or linker for good
3867# libtool support.
3868case $host in
3869ia64-*-hpux*)
3870  # Find out which ABI we are using.
3871  echo 'int i;' > conftest.$ac_ext
3872  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873  (eval $ac_compile) 2>&5
3874  ac_status=$?
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); }; then
3877    case `/usr/bin/file conftest.$ac_objext` in
3878    *ELF-32*)
3879      HPUX_IA64_MODE="32"
3880      ;;
3881    *ELF-64*)
3882      HPUX_IA64_MODE="64"
3883      ;;
3884    esac
3885  fi
3886  rm -rf conftest*
3887  ;;
3888*-*-irix6*)
3889  # Find out which ABI we are using.
3890  echo '#line 3890 "configure"' > conftest.$ac_ext
3891  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892  (eval $ac_compile) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; then
3896   if test "$lt_cv_prog_gnu_ld" = yes; then
3897    case `/usr/bin/file conftest.$ac_objext` in
3898    *32-bit*)
3899      LD="${LD-ld} -melf32bsmip"
3900      ;;
3901    *N32*)
3902      LD="${LD-ld} -melf32bmipn32"
3903      ;;
3904    *64-bit*)
3905      LD="${LD-ld} -melf64bmip"
3906      ;;
3907    esac
3908   else
3909    case `/usr/bin/file conftest.$ac_objext` in
3910    *32-bit*)
3911      LD="${LD-ld} -32"
3912      ;;
3913    *N32*)
3914      LD="${LD-ld} -n32"
3915      ;;
3916    *64-bit*)
3917      LD="${LD-ld} -64"
3918      ;;
3919    esac
3920   fi
3921  fi
3922  rm -rf conftest*
3923  ;;
3924
3925x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3926s390*-*linux*|sparc*-*linux*)
3927  # Find out which ABI we are using.
3928  echo 'int i;' > conftest.$ac_ext
3929  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930  (eval $ac_compile) 2>&5
3931  ac_status=$?
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); }; then
3934    case `/usr/bin/file conftest.o` in
3935    *32-bit*)
3936      case $host in
3937        x86_64-*kfreebsd*-gnu)
3938          LD="${LD-ld} -m elf_i386_fbsd"
3939          ;;
3940        x86_64-*linux*)
3941          LD="${LD-ld} -m elf_i386"
3942          ;;
3943        ppc64-*linux*|powerpc64-*linux*)
3944          LD="${LD-ld} -m elf32ppclinux"
3945          ;;
3946        s390x-*linux*)
3947          LD="${LD-ld} -m elf_s390"
3948          ;;
3949        sparc64-*linux*)
3950          LD="${LD-ld} -m elf32_sparc"
3951          ;;
3952      esac
3953      ;;
3954    *64-bit*)
3955      case $host in
3956        x86_64-*kfreebsd*-gnu)
3957          LD="${LD-ld} -m elf_x86_64_fbsd"
3958          ;;
3959        x86_64-*linux*)
3960          LD="${LD-ld} -m elf_x86_64"
3961          ;;
3962        ppc*-*linux*|powerpc*-*linux*)
3963          LD="${LD-ld} -m elf64ppc"
3964          ;;
3965        s390*-*linux*)
3966          LD="${LD-ld} -m elf64_s390"
3967          ;;
3968        sparc*-*linux*)
3969          LD="${LD-ld} -m elf64_sparc"
3970          ;;
3971      esac
3972      ;;
3973    esac
3974  fi
3975  rm -rf conftest*
3976  ;;
3977
3978*-*-sco3.2v5*)
3979  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3980  SAVE_CFLAGS="$CFLAGS"
3981  CFLAGS="$CFLAGS -belf"
3982  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3983echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3984if test "${lt_cv_cc_needs_belf+set}" = set; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  ac_ext=c
3988ac_cpp='$CPP $CPPFLAGS'
3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993     cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h.  */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h.  */
3999
4000int
4001main ()
4002{
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008rm -f conftest.$ac_objext conftest$ac_exeext
4009if { (ac_try="$ac_link"
4010case "(($ac_try" in
4011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012  *) ac_try_echo=$ac_try;;
4013esac
4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015  (eval "$ac_link") 2>conftest.er1
4016  ac_status=$?
4017  grep -v '^ *+' conftest.er1 >conftest.err
4018  rm -f conftest.er1
4019  cat conftest.err >&5
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); } && {
4022	 test -z "$ac_c_werror_flag" ||
4023	 test ! -s conftest.err
4024       } && test -s conftest$ac_exeext &&
4025       $as_test_x conftest$ac_exeext; then
4026  lt_cv_cc_needs_belf=yes
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031	lt_cv_cc_needs_belf=no
4032fi
4033
4034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035      conftest$ac_exeext conftest.$ac_ext
4036     ac_ext=c
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042fi
4043{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4044echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4045  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4046    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4047    CFLAGS="$SAVE_CFLAGS"
4048  fi
4049  ;;
4050sparc*-*solaris*)
4051  # Find out which ABI we are using.
4052  echo 'int i;' > conftest.$ac_ext
4053  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054  (eval $ac_compile) 2>&5
4055  ac_status=$?
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); }; then
4058    case `/usr/bin/file conftest.o` in
4059    *64-bit*)
4060      case $lt_cv_prog_gnu_ld in
4061      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4062      *)    LD="${LD-ld} -64" ;;
4063      esac
4064      ;;
4065    esac
4066  fi
4067  rm -rf conftest*
4068  ;;
4069
4070
4071esac
4072
4073need_locks="$enable_libtool_lock"
4074
4075
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4082echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4083# On Suns, sometimes $CPP names a directory.
4084if test -n "$CPP" && test -d "$CPP"; then
4085  CPP=
4086fi
4087if test -z "$CPP"; then
4088  if test "${ac_cv_prog_CPP+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091      # Double quotes because CPP needs to be expanded
4092    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093    do
4094      ac_preproc_ok=false
4095for ac_c_preproc_warn_flag in '' yes
4096do
4097  # Use a header file that comes with gcc, so configuring glibc
4098  # with a fresh cross-compiler works.
4099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100  # <limits.h> exists even on freestanding compilers.
4101  # On the NeXT, cc -E runs the code through the compiler's parser,
4102  # not just through cpp. "Syntax error" is here to catch this case.
4103  cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h.  */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h.  */
4109#ifdef __STDC__
4110# include <limits.h>
4111#else
4112# include <assert.h>
4113#endif
4114		     Syntax error
4115_ACEOF
4116if { (ac_try="$ac_cpp conftest.$ac_ext"
4117case "(($ac_try" in
4118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119  *) ac_try_echo=$ac_try;;
4120esac
4121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4123  ac_status=$?
4124  grep -v '^ *+' conftest.er1 >conftest.err
4125  rm -f conftest.er1
4126  cat conftest.err >&5
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); } >/dev/null && {
4129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4130	 test ! -s conftest.err
4131       }; then
4132  :
4133else
4134  echo "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
4137  # Broken: fails on valid input.
4138continue
4139fi
4140
4141rm -f conftest.err conftest.$ac_ext
4142
4143  # OK, works on sane cases.  Now check whether nonexistent headers
4144  # can be detected and how.
4145  cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151#include <ac_nonexistent.h>
4152_ACEOF
4153if { (ac_try="$ac_cpp conftest.$ac_ext"
4154case "(($ac_try" in
4155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156  *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4160  ac_status=$?
4161  grep -v '^ *+' conftest.er1 >conftest.err
4162  rm -f conftest.er1
4163  cat conftest.err >&5
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); } >/dev/null && {
4166	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167	 test ! -s conftest.err
4168       }; then
4169  # Broken: success on invalid input.
4170continue
4171else
4172  echo "$as_me: failed program was:" >&5
4173sed 's/^/| /' conftest.$ac_ext >&5
4174
4175  # Passes both tests.
4176ac_preproc_ok=:
4177break
4178fi
4179
4180rm -f conftest.err conftest.$ac_ext
4181
4182done
4183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184rm -f conftest.err conftest.$ac_ext
4185if $ac_preproc_ok; then
4186  break
4187fi
4188
4189    done
4190    ac_cv_prog_CPP=$CPP
4191
4192fi
4193  CPP=$ac_cv_prog_CPP
4194else
4195  ac_cv_prog_CPP=$CPP
4196fi
4197{ echo "$as_me:$LINENO: result: $CPP" >&5
4198echo "${ECHO_T}$CPP" >&6; }
4199ac_preproc_ok=false
4200for ac_c_preproc_warn_flag in '' yes
4201do
4202  # Use a header file that comes with gcc, so configuring glibc
4203  # with a fresh cross-compiler works.
4204  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205  # <limits.h> exists even on freestanding compilers.
4206  # On the NeXT, cc -E runs the code through the compiler's parser,
4207  # not just through cpp. "Syntax error" is here to catch this case.
4208  cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h.  */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h.  */
4214#ifdef __STDC__
4215# include <limits.h>
4216#else
4217# include <assert.h>
4218#endif
4219		     Syntax error
4220_ACEOF
4221if { (ac_try="$ac_cpp conftest.$ac_ext"
4222case "(($ac_try" in
4223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224  *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4228  ac_status=$?
4229  grep -v '^ *+' conftest.er1 >conftest.err
4230  rm -f conftest.er1
4231  cat conftest.err >&5
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); } >/dev/null && {
4234	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4235	 test ! -s conftest.err
4236       }; then
4237  :
4238else
4239  echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242  # Broken: fails on valid input.
4243continue
4244fi
4245
4246rm -f conftest.err conftest.$ac_ext
4247
4248  # OK, works on sane cases.  Now check whether nonexistent headers
4249  # can be detected and how.
4250  cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h.  */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h.  */
4256#include <ac_nonexistent.h>
4257_ACEOF
4258if { (ac_try="$ac_cpp conftest.$ac_ext"
4259case "(($ac_try" in
4260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261  *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4265  ac_status=$?
4266  grep -v '^ *+' conftest.er1 >conftest.err
4267  rm -f conftest.er1
4268  cat conftest.err >&5
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); } >/dev/null && {
4271	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4272	 test ! -s conftest.err
4273       }; then
4274  # Broken: success on invalid input.
4275continue
4276else
4277  echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280  # Passes both tests.
4281ac_preproc_ok=:
4282break
4283fi
4284
4285rm -f conftest.err conftest.$ac_ext
4286
4287done
4288# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289rm -f conftest.err conftest.$ac_ext
4290if $ac_preproc_ok; then
4291  :
4292else
4293  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4294See \`config.log' for more details." >&5
4295echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4296See \`config.log' for more details." >&2;}
4297   { (exit 1); exit 1; }; }
4298fi
4299
4300ac_ext=c
4301ac_cpp='$CPP $CPPFLAGS'
4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306
4307{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4308echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4309if test "${ac_cv_header_stdc+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h.  */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h.  */
4318#include <stdlib.h>
4319#include <stdarg.h>
4320#include <string.h>
4321#include <float.h>
4322
4323int
4324main ()
4325{
4326
4327  ;
4328  return 0;
4329}
4330_ACEOF
4331rm -f conftest.$ac_objext
4332if { (ac_try="$ac_compile"
4333case "(($ac_try" in
4334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335  *) ac_try_echo=$ac_try;;
4336esac
4337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338  (eval "$ac_compile") 2>conftest.er1
4339  ac_status=$?
4340  grep -v '^ *+' conftest.er1 >conftest.err
4341  rm -f conftest.er1
4342  cat conftest.err >&5
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); } && {
4345	 test -z "$ac_c_werror_flag" ||
4346	 test ! -s conftest.err
4347       } && test -s conftest.$ac_objext; then
4348  ac_cv_header_stdc=yes
4349else
4350  echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353	ac_cv_header_stdc=no
4354fi
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357
4358if test $ac_cv_header_stdc = yes; then
4359  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360  cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h.  */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h.  */
4366#include <string.h>
4367
4368_ACEOF
4369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370  $EGREP "memchr" >/dev/null 2>&1; then
4371  :
4372else
4373  ac_cv_header_stdc=no
4374fi
4375rm -f conftest*
4376
4377fi
4378
4379if test $ac_cv_header_stdc = yes; then
4380  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381  cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h.  */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h.  */
4387#include <stdlib.h>
4388
4389_ACEOF
4390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391  $EGREP "free" >/dev/null 2>&1; then
4392  :
4393else
4394  ac_cv_header_stdc=no
4395fi
4396rm -f conftest*
4397
4398fi
4399
4400if test $ac_cv_header_stdc = yes; then
4401  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4402  if test "$cross_compiling" = yes; then
4403  :
4404else
4405  cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411#include <ctype.h>
4412#include <stdlib.h>
4413#if ((' ' & 0x0FF) == 0x020)
4414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416#else
4417# define ISLOWER(c) \
4418		   (('a' <= (c) && (c) <= 'i') \
4419		     || ('j' <= (c) && (c) <= 'r') \
4420		     || ('s' <= (c) && (c) <= 'z'))
4421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422#endif
4423
4424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425int
4426main ()
4427{
4428  int i;
4429  for (i = 0; i < 256; i++)
4430    if (XOR (islower (i), ISLOWER (i))
4431	|| toupper (i) != TOUPPER (i))
4432      return 2;
4433  return 0;
4434}
4435_ACEOF
4436rm -f conftest$ac_exeext
4437if { (ac_try="$ac_link"
4438case "(($ac_try" in
4439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440  *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443  (eval "$ac_link") 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447  { (case "(($ac_try" in
4448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449  *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452  (eval "$ac_try") 2>&5
4453  ac_status=$?
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; }; then
4456  :
4457else
4458  echo "$as_me: program exited with status $ac_status" >&5
4459echo "$as_me: failed program was:" >&5
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
4462( exit $ac_status )
4463ac_cv_header_stdc=no
4464fi
4465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4466fi
4467
4468
4469fi
4470fi
4471{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4472echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4473if test $ac_cv_header_stdc = yes; then
4474
4475cat >>confdefs.h <<\_ACEOF
4476#define STDC_HEADERS 1
4477_ACEOF
4478
4479fi
4480
4481# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4492		  inttypes.h stdint.h unistd.h
4493do
4494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h.  */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h.  */
4506$ac_includes_default
4507
4508#include <$ac_header>
4509_ACEOF
4510rm -f conftest.$ac_objext
4511if { (ac_try="$ac_compile"
4512case "(($ac_try" in
4513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514  *) ac_try_echo=$ac_try;;
4515esac
4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517  (eval "$ac_compile") 2>conftest.er1
4518  ac_status=$?
4519  grep -v '^ *+' conftest.er1 >conftest.err
4520  rm -f conftest.er1
4521  cat conftest.err >&5
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); } && {
4524	 test -z "$ac_c_werror_flag" ||
4525	 test ! -s conftest.err
4526       } && test -s conftest.$ac_objext; then
4527  eval "$as_ac_Header=yes"
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532	eval "$as_ac_Header=no"
4533fi
4534
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536fi
4537ac_res=`eval echo '${'$as_ac_Header'}'`
4538	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4539echo "${ECHO_T}$ac_res" >&6; }
4540if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541  cat >>confdefs.h <<_ACEOF
4542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543_ACEOF
4544
4545fi
4546
4547done
4548
4549
4550
4551for ac_header in dlfcn.h
4552do
4553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4555  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558  echo $ECHO_N "(cached) $ECHO_C" >&6
4559fi
4560ac_res=`eval echo '${'$as_ac_Header'}'`
4561	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4562echo "${ECHO_T}$ac_res" >&6; }
4563else
4564  # Is the header compilable?
4565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4567cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h.  */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h.  */
4573$ac_includes_default
4574#include <$ac_header>
4575_ACEOF
4576rm -f conftest.$ac_objext
4577if { (ac_try="$ac_compile"
4578case "(($ac_try" in
4579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580  *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583  (eval "$ac_compile") 2>conftest.er1
4584  ac_status=$?
4585  grep -v '^ *+' conftest.er1 >conftest.err
4586  rm -f conftest.er1
4587  cat conftest.err >&5
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } && {
4590	 test -z "$ac_c_werror_flag" ||
4591	 test ! -s conftest.err
4592       } && test -s conftest.$ac_objext; then
4593  ac_header_compiler=yes
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598	ac_header_compiler=no
4599fi
4600
4601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4603echo "${ECHO_T}$ac_header_compiler" >&6; }
4604
4605# Is the header present?
4606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4608cat >conftest.$ac_ext <<_ACEOF
4609/* confdefs.h.  */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h.  */
4614#include <$ac_header>
4615_ACEOF
4616if { (ac_try="$ac_cpp conftest.$ac_ext"
4617case "(($ac_try" in
4618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619  *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } >/dev/null && {
4629	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4630	 test ! -s conftest.err
4631       }; then
4632  ac_header_preproc=yes
4633else
4634  echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637  ac_header_preproc=no
4638fi
4639
4640rm -f conftest.err conftest.$ac_ext
4641{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4642echo "${ECHO_T}$ac_header_preproc" >&6; }
4643
4644# So?  What about this header?
4645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4646  yes:no: )
4647    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4651    ac_header_preproc=yes
4652    ;;
4653  no:yes:* )
4654    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4656    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4657echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4658    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4660    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4661echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4664    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4666    ( cat <<\_ASBOX
4667## ----------------------------------------------- ##
4668## Report this to trustedbsd-audit@TrustesdBSD.org ##
4669## ----------------------------------------------- ##
4670_ASBOX
4671     ) | sed "s/^/$as_me: WARNING:     /" >&2
4672    ;;
4673esac
4674{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4677  echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679  eval "$as_ac_Header=\$ac_header_preproc"
4680fi
4681ac_res=`eval echo '${'$as_ac_Header'}'`
4682	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4683echo "${ECHO_T}$ac_res" >&6; }
4684
4685fi
4686if test `eval echo '${'$as_ac_Header'}'` = yes; then
4687  cat >>confdefs.h <<_ACEOF
4688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689_ACEOF
4690
4691fi
4692
4693done
4694
4695ac_ext=cpp
4696ac_cpp='$CXXCPP $CPPFLAGS'
4697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4700if test -z "$CXX"; then
4701  if test -n "$CCC"; then
4702    CXX=$CCC
4703  else
4704    if test -n "$ac_tool_prefix"; then
4705  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4706  do
4707    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711if test "${ac_cv_prog_CXX+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  if test -n "$CXX"; then
4715  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  test -z "$as_dir" && as_dir=.
4722  for ac_exec_ext in '' $ac_executable_extensions; do
4723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726    break 2
4727  fi
4728done
4729done
4730IFS=$as_save_IFS
4731
4732fi
4733fi
4734CXX=$ac_cv_prog_CXX
4735if test -n "$CXX"; then
4736  { echo "$as_me:$LINENO: result: $CXX" >&5
4737echo "${ECHO_T}$CXX" >&6; }
4738else
4739  { echo "$as_me:$LINENO: result: no" >&5
4740echo "${ECHO_T}no" >&6; }
4741fi
4742
4743
4744    test -n "$CXX" && break
4745  done
4746fi
4747if test -z "$CXX"; then
4748  ac_ct_CXX=$CXX
4749  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4750do
4751  # Extract the first word of "$ac_prog", so it can be a program name with args.
4752set dummy $ac_prog; ac_word=$2
4753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  if test -n "$ac_ct_CXX"; then
4759  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764  IFS=$as_save_IFS
4765  test -z "$as_dir" && as_dir=.
4766  for ac_exec_ext in '' $ac_executable_extensions; do
4767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768    ac_cv_prog_ac_ct_CXX="$ac_prog"
4769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770    break 2
4771  fi
4772done
4773done
4774IFS=$as_save_IFS
4775
4776fi
4777fi
4778ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4779if test -n "$ac_ct_CXX"; then
4780  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4781echo "${ECHO_T}$ac_ct_CXX" >&6; }
4782else
4783  { echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6; }
4785fi
4786
4787
4788  test -n "$ac_ct_CXX" && break
4789done
4790
4791  if test "x$ac_ct_CXX" = x; then
4792    CXX="g++"
4793  else
4794    case $cross_compiling:$ac_tool_warned in
4795yes:)
4796{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4797whose name does not start with the host triplet.  If you think this
4798configuration is useful to you, please write to autoconf@gnu.org." >&5
4799echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4800whose name does not start with the host triplet.  If you think this
4801configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4802ac_tool_warned=yes ;;
4803esac
4804    CXX=$ac_ct_CXX
4805  fi
4806fi
4807
4808  fi
4809fi
4810# Provide some information about the compiler.
4811echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4812ac_compiler=`set X $ac_compile; echo $2`
4813{ (ac_try="$ac_compiler --version >&5"
4814case "(($ac_try" in
4815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816  *) ac_try_echo=$ac_try;;
4817esac
4818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819  (eval "$ac_compiler --version >&5") 2>&5
4820  ac_status=$?
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); }
4823{ (ac_try="$ac_compiler -v >&5"
4824case "(($ac_try" in
4825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826  *) ac_try_echo=$ac_try;;
4827esac
4828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829  (eval "$ac_compiler -v >&5") 2>&5
4830  ac_status=$?
4831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832  (exit $ac_status); }
4833{ (ac_try="$ac_compiler -V >&5"
4834case "(($ac_try" in
4835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836  *) ac_try_echo=$ac_try;;
4837esac
4838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839  (eval "$ac_compiler -V >&5") 2>&5
4840  ac_status=$?
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); }
4843
4844{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4845echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4846if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4847  echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849  cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855
4856int
4857main ()
4858{
4859#ifndef __GNUC__
4860       choke me
4861#endif
4862
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (ac_try="$ac_compile"
4869case "(($ac_try" in
4870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871  *) ac_try_echo=$ac_try;;
4872esac
4873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874  (eval "$ac_compile") 2>conftest.er1
4875  ac_status=$?
4876  grep -v '^ *+' conftest.er1 >conftest.err
4877  rm -f conftest.er1
4878  cat conftest.err >&5
4879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880  (exit $ac_status); } && {
4881	 test -z "$ac_cxx_werror_flag" ||
4882	 test ! -s conftest.err
4883       } && test -s conftest.$ac_objext; then
4884  ac_compiler_gnu=yes
4885else
4886  echo "$as_me: failed program was:" >&5
4887sed 's/^/| /' conftest.$ac_ext >&5
4888
4889	ac_compiler_gnu=no
4890fi
4891
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4894
4895fi
4896{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4897echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4898GXX=`test $ac_compiler_gnu = yes && echo yes`
4899ac_test_CXXFLAGS=${CXXFLAGS+set}
4900ac_save_CXXFLAGS=$CXXFLAGS
4901{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4902echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4903if test "${ac_cv_prog_cxx_g+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4907   ac_cxx_werror_flag=yes
4908   ac_cv_prog_cxx_g=no
4909   CXXFLAGS="-g"
4910   cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h.  */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h.  */
4916
4917int
4918main ()
4919{
4920
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925rm -f conftest.$ac_objext
4926if { (ac_try="$ac_compile"
4927case "(($ac_try" in
4928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929  *) ac_try_echo=$ac_try;;
4930esac
4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932  (eval "$ac_compile") 2>conftest.er1
4933  ac_status=$?
4934  grep -v '^ *+' conftest.er1 >conftest.err
4935  rm -f conftest.er1
4936  cat conftest.err >&5
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); } && {
4939	 test -z "$ac_cxx_werror_flag" ||
4940	 test ! -s conftest.err
4941       } && test -s conftest.$ac_objext; then
4942  ac_cv_prog_cxx_g=yes
4943else
4944  echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
4947	CXXFLAGS=""
4948      cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h.  */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h.  */
4954
4955int
4956main ()
4957{
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963rm -f conftest.$ac_objext
4964if { (ac_try="$ac_compile"
4965case "(($ac_try" in
4966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967  *) ac_try_echo=$ac_try;;
4968esac
4969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970  (eval "$ac_compile") 2>conftest.er1
4971  ac_status=$?
4972  grep -v '^ *+' conftest.er1 >conftest.err
4973  rm -f conftest.er1
4974  cat conftest.err >&5
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); } && {
4977	 test -z "$ac_cxx_werror_flag" ||
4978	 test ! -s conftest.err
4979       } && test -s conftest.$ac_objext; then
4980  :
4981else
4982  echo "$as_me: failed program was:" >&5
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
4985	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4986	 CXXFLAGS="-g"
4987	 cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993
4994int
4995main ()
4996{
4997
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002rm -f conftest.$ac_objext
5003if { (ac_try="$ac_compile"
5004case "(($ac_try" in
5005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006  *) ac_try_echo=$ac_try;;
5007esac
5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009  (eval "$ac_compile") 2>conftest.er1
5010  ac_status=$?
5011  grep -v '^ *+' conftest.er1 >conftest.err
5012  rm -f conftest.er1
5013  cat conftest.err >&5
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); } && {
5016	 test -z "$ac_cxx_werror_flag" ||
5017	 test ! -s conftest.err
5018       } && test -s conftest.$ac_objext; then
5019  ac_cv_prog_cxx_g=yes
5020else
5021  echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024
5025fi
5026
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5035fi
5036{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5037echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5038if test "$ac_test_CXXFLAGS" = set; then
5039  CXXFLAGS=$ac_save_CXXFLAGS
5040elif test $ac_cv_prog_cxx_g = yes; then
5041  if test "$GXX" = yes; then
5042    CXXFLAGS="-g -O2"
5043  else
5044    CXXFLAGS="-g"
5045  fi
5046else
5047  if test "$GXX" = yes; then
5048    CXXFLAGS="-O2"
5049  else
5050    CXXFLAGS=
5051  fi
5052fi
5053ac_ext=cpp
5054ac_cpp='$CXXCPP $CPPFLAGS'
5055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058
5059
5060
5061if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5062    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5063    (test "X$CXX" != "Xg++"))) ; then
5064  ac_ext=cpp
5065ac_cpp='$CXXCPP $CPPFLAGS'
5066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5069{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5070echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5071if test -z "$CXXCPP"; then
5072  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5073  echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075      # Double quotes because CXXCPP needs to be expanded
5076    for CXXCPP in "$CXX -E" "/lib/cpp"
5077    do
5078      ac_preproc_ok=false
5079for ac_cxx_preproc_warn_flag in '' yes
5080do
5081  # Use a header file that comes with gcc, so configuring glibc
5082  # with a fresh cross-compiler works.
5083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084  # <limits.h> exists even on freestanding compilers.
5085  # On the NeXT, cc -E runs the code through the compiler's parser,
5086  # not just through cpp. "Syntax error" is here to catch this case.
5087  cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h.  */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h.  */
5093#ifdef __STDC__
5094# include <limits.h>
5095#else
5096# include <assert.h>
5097#endif
5098		     Syntax error
5099_ACEOF
5100if { (ac_try="$ac_cpp conftest.$ac_ext"
5101case "(($ac_try" in
5102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103  *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107  ac_status=$?
5108  grep -v '^ *+' conftest.er1 >conftest.err
5109  rm -f conftest.er1
5110  cat conftest.err >&5
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); } >/dev/null && {
5113	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5114	 test ! -s conftest.err
5115       }; then
5116  :
5117else
5118  echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121  # Broken: fails on valid input.
5122continue
5123fi
5124
5125rm -f conftest.err conftest.$ac_ext
5126
5127  # OK, works on sane cases.  Now check whether nonexistent headers
5128  # can be detected and how.
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135#include <ac_nonexistent.h>
5136_ACEOF
5137if { (ac_try="$ac_cpp conftest.$ac_ext"
5138case "(($ac_try" in
5139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140  *) ac_try_echo=$ac_try;;
5141esac
5142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144  ac_status=$?
5145  grep -v '^ *+' conftest.er1 >conftest.err
5146  rm -f conftest.er1
5147  cat conftest.err >&5
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); } >/dev/null && {
5150	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5151	 test ! -s conftest.err
5152       }; then
5153  # Broken: success on invalid input.
5154continue
5155else
5156  echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159  # Passes both tests.
5160ac_preproc_ok=:
5161break
5162fi
5163
5164rm -f conftest.err conftest.$ac_ext
5165
5166done
5167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168rm -f conftest.err conftest.$ac_ext
5169if $ac_preproc_ok; then
5170  break
5171fi
5172
5173    done
5174    ac_cv_prog_CXXCPP=$CXXCPP
5175
5176fi
5177  CXXCPP=$ac_cv_prog_CXXCPP
5178else
5179  ac_cv_prog_CXXCPP=$CXXCPP
5180fi
5181{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5182echo "${ECHO_T}$CXXCPP" >&6; }
5183ac_preproc_ok=false
5184for ac_cxx_preproc_warn_flag in '' yes
5185do
5186  # Use a header file that comes with gcc, so configuring glibc
5187  # with a fresh cross-compiler works.
5188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189  # <limits.h> exists even on freestanding compilers.
5190  # On the NeXT, cc -E runs the code through the compiler's parser,
5191  # not just through cpp. "Syntax error" is here to catch this case.
5192  cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h.  */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h.  */
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
5203		     Syntax error
5204_ACEOF
5205if { (ac_try="$ac_cpp conftest.$ac_ext"
5206case "(($ac_try" in
5207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208  *) ac_try_echo=$ac_try;;
5209esac
5210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } >/dev/null && {
5218	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5219	 test ! -s conftest.err
5220       }; then
5221  :
5222else
5223  echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226  # Broken: fails on valid input.
5227continue
5228fi
5229
5230rm -f conftest.err conftest.$ac_ext
5231
5232  # OK, works on sane cases.  Now check whether nonexistent headers
5233  # can be detected and how.
5234  cat >conftest.$ac_ext <<_ACEOF
5235/* confdefs.h.  */
5236_ACEOF
5237cat confdefs.h >>conftest.$ac_ext
5238cat >>conftest.$ac_ext <<_ACEOF
5239/* end confdefs.h.  */
5240#include <ac_nonexistent.h>
5241_ACEOF
5242if { (ac_try="$ac_cpp conftest.$ac_ext"
5243case "(($ac_try" in
5244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245  *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249  ac_status=$?
5250  grep -v '^ *+' conftest.er1 >conftest.err
5251  rm -f conftest.er1
5252  cat conftest.err >&5
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); } >/dev/null && {
5255	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5256	 test ! -s conftest.err
5257       }; then
5258  # Broken: success on invalid input.
5259continue
5260else
5261  echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264  # Passes both tests.
5265ac_preproc_ok=:
5266break
5267fi
5268
5269rm -f conftest.err conftest.$ac_ext
5270
5271done
5272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273rm -f conftest.err conftest.$ac_ext
5274if $ac_preproc_ok; then
5275  :
5276else
5277  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5278See \`config.log' for more details." >&5
5279echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5280See \`config.log' for more details." >&2;}
5281   { (exit 1); exit 1; }; }
5282fi
5283
5284ac_ext=cpp
5285ac_cpp='$CXXCPP $CPPFLAGS'
5286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5289
5290fi
5291
5292
5293ac_ext=f
5294ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5295ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5297if test -n "$ac_tool_prefix"; then
5298  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
5299  do
5300    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5304if test "${ac_cv_prog_F77+set}" = set; then
5305  echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307  if test -n "$F77"; then
5308  ac_cv_prog_F77="$F77" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  test -z "$as_dir" && as_dir=.
5315  for ac_exec_ext in '' $ac_executable_extensions; do
5316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319    break 2
5320  fi
5321done
5322done
5323IFS=$as_save_IFS
5324
5325fi
5326fi
5327F77=$ac_cv_prog_F77
5328if test -n "$F77"; then
5329  { echo "$as_me:$LINENO: result: $F77" >&5
5330echo "${ECHO_T}$F77" >&6; }
5331else
5332  { echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6; }
5334fi
5335
5336
5337    test -n "$F77" && break
5338  done
5339fi
5340if test -z "$F77"; then
5341  ac_ct_F77=$F77
5342  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
5343do
5344  # Extract the first word of "$ac_prog", so it can be a program name with args.
5345set dummy $ac_prog; ac_word=$2
5346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5349  echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351  if test -n "$ac_ct_F77"; then
5352  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357  IFS=$as_save_IFS
5358  test -z "$as_dir" && as_dir=.
5359  for ac_exec_ext in '' $ac_executable_extensions; do
5360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361    ac_cv_prog_ac_ct_F77="$ac_prog"
5362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363    break 2
5364  fi
5365done
5366done
5367IFS=$as_save_IFS
5368
5369fi
5370fi
5371ac_ct_F77=$ac_cv_prog_ac_ct_F77
5372if test -n "$ac_ct_F77"; then
5373  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5374echo "${ECHO_T}$ac_ct_F77" >&6; }
5375else
5376  { echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6; }
5378fi
5379
5380
5381  test -n "$ac_ct_F77" && break
5382done
5383
5384  if test "x$ac_ct_F77" = x; then
5385    F77=""
5386  else
5387    case $cross_compiling:$ac_tool_warned in
5388yes:)
5389{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5390whose name does not start with the host triplet.  If you think this
5391configuration is useful to you, please write to autoconf@gnu.org." >&5
5392echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5393whose name does not start with the host triplet.  If you think this
5394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5395ac_tool_warned=yes ;;
5396esac
5397    F77=$ac_ct_F77
5398  fi
5399fi
5400
5401
5402# Provide some information about the compiler.
5403echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5404ac_compiler=`set X $ac_compile; echo $2`
5405{ (ac_try="$ac_compiler --version >&5"
5406case "(($ac_try" in
5407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408  *) ac_try_echo=$ac_try;;
5409esac
5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411  (eval "$ac_compiler --version >&5") 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }
5415{ (ac_try="$ac_compiler -v >&5"
5416case "(($ac_try" in
5417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418  *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421  (eval "$ac_compiler -v >&5") 2>&5
5422  ac_status=$?
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); }
5425{ (ac_try="$ac_compiler -V >&5"
5426case "(($ac_try" in
5427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428  *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431  (eval "$ac_compiler -V >&5") 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }
5435rm -f a.out
5436
5437# If we don't use `.F' as extension, the preprocessor is not run on the
5438# input file.  (Note that this only needs to work for GNU compilers.)
5439ac_save_ext=$ac_ext
5440ac_ext=F
5441{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5442echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5443if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446  cat >conftest.$ac_ext <<_ACEOF
5447      program main
5448#ifndef __GNUC__
5449       choke me
5450#endif
5451
5452      end
5453_ACEOF
5454rm -f conftest.$ac_objext
5455if { (ac_try="$ac_compile"
5456case "(($ac_try" in
5457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458  *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461  (eval "$ac_compile") 2>conftest.er1
5462  ac_status=$?
5463  grep -v '^ *+' conftest.er1 >conftest.err
5464  rm -f conftest.er1
5465  cat conftest.err >&5
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); } && {
5468	 test -z "$ac_f77_werror_flag" ||
5469	 test ! -s conftest.err
5470       } && test -s conftest.$ac_objext; then
5471  ac_compiler_gnu=yes
5472else
5473  echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
5475
5476	ac_compiler_gnu=no
5477fi
5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5481
5482fi
5483{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5484echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5485ac_ext=$ac_save_ext
5486ac_test_FFLAGS=${FFLAGS+set}
5487ac_save_FFLAGS=$FFLAGS
5488FFLAGS=
5489{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5490echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5491if test "${ac_cv_prog_f77_g+set}" = set; then
5492  echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494  FFLAGS=-g
5495cat >conftest.$ac_ext <<_ACEOF
5496      program main
5497
5498      end
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (ac_try="$ac_compile"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507  (eval "$ac_compile") 2>conftest.er1
5508  ac_status=$?
5509  grep -v '^ *+' conftest.er1 >conftest.err
5510  rm -f conftest.er1
5511  cat conftest.err >&5
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); } && {
5514	 test -z "$ac_f77_werror_flag" ||
5515	 test ! -s conftest.err
5516       } && test -s conftest.$ac_objext; then
5517  ac_cv_prog_f77_g=yes
5518else
5519  echo "$as_me: failed program was:" >&5
5520sed 's/^/| /' conftest.$ac_ext >&5
5521
5522	ac_cv_prog_f77_g=no
5523fi
5524
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527fi
5528{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5529echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5530if test "$ac_test_FFLAGS" = set; then
5531  FFLAGS=$ac_save_FFLAGS
5532elif test $ac_cv_prog_f77_g = yes; then
5533  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5534    FFLAGS="-g -O2"
5535  else
5536    FFLAGS="-g"
5537  fi
5538else
5539  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5540    FFLAGS="-O2"
5541  else
5542    FFLAGS=
5543  fi
5544fi
5545
5546G77=`test $ac_compiler_gnu = yes && echo yes`
5547ac_ext=c
5548ac_cpp='$CPP $CPPFLAGS'
5549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553
5554
5555# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5556
5557# find the maximum length of command line arguments
5558{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5559echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5560if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563    i=0
5564  teststring="ABCD"
5565
5566  case $build_os in
5567  msdosdjgpp*)
5568    # On DJGPP, this test can blow up pretty badly due to problems in libc
5569    # (any single argument exceeding 2000 bytes causes a buffer overrun
5570    # during glob expansion).  Even if it were fixed, the result of this
5571    # check would be larger than it should be.
5572    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5573    ;;
5574
5575  gnu*)
5576    # Under GNU Hurd, this test is not required because there is
5577    # no limit to the length of command line arguments.
5578    # Libtool will interpret -1 as no limit whatsoever
5579    lt_cv_sys_max_cmd_len=-1;
5580    ;;
5581
5582  cygwin* | mingw*)
5583    # On Win9x/ME, this test blows up -- it succeeds, but takes
5584    # about 5 minutes as the teststring grows exponentially.
5585    # Worse, since 9x/ME are not pre-emptively multitasking,
5586    # you end up with a "frozen" computer, even though with patience
5587    # the test eventually succeeds (with a max line length of 256k).
5588    # Instead, let's just punt: use the minimum linelength reported by
5589    # all of the supported platforms: 8192 (on NT/2K/XP).
5590    lt_cv_sys_max_cmd_len=8192;
5591    ;;
5592
5593  amigaos*)
5594    # On AmigaOS with pdksh, this test takes hours, literally.
5595    # So we just punt and use a minimum line length of 8192.
5596    lt_cv_sys_max_cmd_len=8192;
5597    ;;
5598
5599  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5600    # This has been around since 386BSD, at least.  Likely further.
5601    if test -x /sbin/sysctl; then
5602      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5603    elif test -x /usr/sbin/sysctl; then
5604      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5605    else
5606      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5607    fi
5608    # And add a safety zone
5609    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5610    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5611    ;;
5612
5613  interix*)
5614    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5615    lt_cv_sys_max_cmd_len=196608
5616    ;;
5617
5618  osf*)
5619    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5620    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5621    # nice to cause kernel panics so lets avoid the loop below.
5622    # First set a reasonable default.
5623    lt_cv_sys_max_cmd_len=16384
5624    #
5625    if test -x /sbin/sysconfig; then
5626      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5627        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5628      esac
5629    fi
5630    ;;
5631  sco3.2v5*)
5632    lt_cv_sys_max_cmd_len=102400
5633    ;;
5634  sysv5* | sco5v6* | sysv4.2uw2*)
5635    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5636    if test -n "$kargmax"; then
5637      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5638    else
5639      lt_cv_sys_max_cmd_len=32768
5640    fi
5641    ;;
5642  *)
5643    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5644    if test -n "$lt_cv_sys_max_cmd_len"; then
5645      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5646      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5647    else
5648      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5649      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5650	       = "XX$teststring") >/dev/null 2>&1 &&
5651	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
5652	      lt_cv_sys_max_cmd_len=$new_result &&
5653	      test $i != 17 # 1/2 MB should be enough
5654      do
5655        i=`expr $i + 1`
5656        teststring=$teststring$teststring
5657      done
5658      teststring=
5659      # Add a significant safety factor because C++ compilers can tack on massive
5660      # amounts of additional arguments before passing them to the linker.
5661      # It appears as though 1/2 is a usable value.
5662      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5663    fi
5664    ;;
5665  esac
5666
5667fi
5668
5669if test -n $lt_cv_sys_max_cmd_len ; then
5670  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5671echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5672else
5673  { echo "$as_me:$LINENO: result: none" >&5
5674echo "${ECHO_T}none" >&6; }
5675fi
5676
5677
5678
5679
5680
5681# Check for command to grab the raw symbol name followed by C symbol from nm.
5682{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5683echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5684if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687
5688# These are sane defaults that work on at least a few old systems.
5689# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5690
5691# Character class describing NM global symbol codes.
5692symcode='[BCDEGRST]'
5693
5694# Regexp to match symbols that can be accessed directly from C.
5695sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5696
5697# Transform an extracted symbol line into a proper C declaration
5698lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5699
5700# Transform an extracted symbol line into symbol name and symbol address
5701lt_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'"
5702
5703# Define system-specific variables.
5704case $host_os in
5705aix*)
5706  symcode='[BCDT]'
5707  ;;
5708cygwin* | mingw* | pw32*)
5709  symcode='[ABCDGISTW]'
5710  ;;
5711hpux*) # Its linker distinguishes data from code symbols
5712  if test "$host_cpu" = ia64; then
5713    symcode='[ABCDEGRST]'
5714  fi
5715  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5716  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'"
5717  ;;
5718linux* | k*bsd*-gnu)
5719  if test "$host_cpu" = ia64; then
5720    symcode='[ABCDGIRSTW]'
5721    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5722    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'"
5723  fi
5724  ;;
5725irix* | nonstopux*)
5726  symcode='[BCDEGRST]'
5727  ;;
5728osf*)
5729  symcode='[BCDEGQRST]'
5730  ;;
5731solaris*)
5732  symcode='[BDRT]'
5733  ;;
5734sco3.2v5*)
5735  symcode='[DT]'
5736  ;;
5737sysv4.2uw2*)
5738  symcode='[DT]'
5739  ;;
5740sysv5* | sco5v6* | unixware* | OpenUNIX*)
5741  symcode='[ABDT]'
5742  ;;
5743sysv4)
5744  symcode='[DFNSTU]'
5745  ;;
5746esac
5747
5748# Handle CRLF in mingw tool chain
5749opt_cr=
5750case $build_os in
5751mingw*)
5752  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5753  ;;
5754esac
5755
5756# If we're using GNU nm, then use its standard symbol codes.
5757case `$NM -V 2>&1` in
5758*GNU* | *'with BFD'*)
5759  symcode='[ABCDGIRSTW]' ;;
5760esac
5761
5762# Try without a prefix undercore, then with it.
5763for ac_symprfx in "" "_"; do
5764
5765  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5766  symxfrm="\\1 $ac_symprfx\\2 \\2"
5767
5768  # Write the raw and C identifiers.
5769  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5770
5771  # Check to see that the pipe works correctly.
5772  pipe_works=no
5773
5774  rm -f conftest*
5775  cat > conftest.$ac_ext <<EOF
5776#ifdef __cplusplus
5777extern "C" {
5778#endif
5779char nm_test_var;
5780void nm_test_func(){}
5781#ifdef __cplusplus
5782}
5783#endif
5784int main(){nm_test_var='a';nm_test_func();return(0);}
5785EOF
5786
5787  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788  (eval $ac_compile) 2>&5
5789  ac_status=$?
5790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791  (exit $ac_status); }; then
5792    # Now try to grab the symbols.
5793    nlist=conftest.nm
5794    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5795  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5796  ac_status=$?
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } && test -s "$nlist"; then
5799      # Try sorting and uniquifying the output.
5800      if sort "$nlist" | uniq > "$nlist"T; then
5801	mv -f "$nlist"T "$nlist"
5802      else
5803	rm -f "$nlist"T
5804      fi
5805
5806      # Make sure that we snagged all the symbols we need.
5807      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5808	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5809	  cat <<EOF > conftest.$ac_ext
5810#ifdef __cplusplus
5811extern "C" {
5812#endif
5813
5814EOF
5815	  # Now generate the symbol file.
5816	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5817
5818	  cat <<EOF >> conftest.$ac_ext
5819#if defined (__STDC__) && __STDC__
5820# define lt_ptr_t void *
5821#else
5822# define lt_ptr_t char *
5823# define const
5824#endif
5825
5826/* The mapping between symbol names and symbols. */
5827const struct {
5828  const char *name;
5829  lt_ptr_t address;
5830}
5831lt_preloaded_symbols[] =
5832{
5833EOF
5834	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5835	  cat <<\EOF >> conftest.$ac_ext
5836  {0, (lt_ptr_t) 0}
5837};
5838
5839#ifdef __cplusplus
5840}
5841#endif
5842EOF
5843	  # Now try linking the two files.
5844	  mv conftest.$ac_objext conftstm.$ac_objext
5845	  lt_save_LIBS="$LIBS"
5846	  lt_save_CFLAGS="$CFLAGS"
5847	  LIBS="conftstm.$ac_objext"
5848	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5849	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850  (eval $ac_link) 2>&5
5851  ac_status=$?
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5854	    pipe_works=yes
5855	  fi
5856	  LIBS="$lt_save_LIBS"
5857	  CFLAGS="$lt_save_CFLAGS"
5858	else
5859	  echo "cannot find nm_test_func in $nlist" >&5
5860	fi
5861      else
5862	echo "cannot find nm_test_var in $nlist" >&5
5863      fi
5864    else
5865      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5866    fi
5867  else
5868    echo "$progname: failed program was:" >&5
5869    cat conftest.$ac_ext >&5
5870  fi
5871  rm -f conftest* conftst*
5872
5873  # Do not use the global_symbol_pipe unless it works.
5874  if test "$pipe_works" = yes; then
5875    break
5876  else
5877    lt_cv_sys_global_symbol_pipe=
5878  fi
5879done
5880
5881fi
5882
5883if test -z "$lt_cv_sys_global_symbol_pipe"; then
5884  lt_cv_sys_global_symbol_to_cdecl=
5885fi
5886if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5887  { echo "$as_me:$LINENO: result: failed" >&5
5888echo "${ECHO_T}failed" >&6; }
5889else
5890  { echo "$as_me:$LINENO: result: ok" >&5
5891echo "${ECHO_T}ok" >&6; }
5892fi
5893
5894{ echo "$as_me:$LINENO: checking for objdir" >&5
5895echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5896if test "${lt_cv_objdir+set}" = set; then
5897  echo $ECHO_N "(cached) $ECHO_C" >&6
5898else
5899  rm -f .libs 2>/dev/null
5900mkdir .libs 2>/dev/null
5901if test -d .libs; then
5902  lt_cv_objdir=.libs
5903else
5904  # MS-DOS does not allow filenames that begin with a dot.
5905  lt_cv_objdir=_libs
5906fi
5907rmdir .libs 2>/dev/null
5908fi
5909{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5910echo "${ECHO_T}$lt_cv_objdir" >&6; }
5911objdir=$lt_cv_objdir
5912
5913
5914
5915
5916
5917case $host_os in
5918aix3*)
5919  # AIX sometimes has problems with the GCC collect2 program.  For some
5920  # reason, if we set the COLLECT_NAMES environment variable, the problems
5921  # vanish in a puff of smoke.
5922  if test "X${COLLECT_NAMES+set}" != Xset; then
5923    COLLECT_NAMES=
5924    export COLLECT_NAMES
5925  fi
5926  ;;
5927esac
5928
5929# Sed substitution that helps us do robust quoting.  It backslashifies
5930# metacharacters that are still active within double-quoted strings.
5931Xsed='sed -e 1s/^X//'
5932sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5933
5934# Same as above, but do not quote variable references.
5935double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5936
5937# Sed substitution to delay expansion of an escaped shell variable in a
5938# double_quote_subst'ed string.
5939delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5940
5941# Sed substitution to avoid accidental globbing in evaled expressions
5942no_glob_subst='s/\*/\\\*/g'
5943
5944# Constants:
5945rm="rm -f"
5946
5947# Global variables:
5948default_ofile=libtool
5949can_build_shared=yes
5950
5951# All known linkers require a `.a' archive for static linking (except MSVC,
5952# which needs '.lib').
5953libext=a
5954ltmain="$ac_aux_dir/ltmain.sh"
5955ofile="$default_ofile"
5956with_gnu_ld="$lt_cv_prog_gnu_ld"
5957
5958if test -n "$ac_tool_prefix"; then
5959  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5960set dummy ${ac_tool_prefix}ar; ac_word=$2
5961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963if test "${ac_cv_prog_AR+set}" = set; then
5964  echo $ECHO_N "(cached) $ECHO_C" >&6
5965else
5966  if test -n "$AR"; then
5967  ac_cv_prog_AR="$AR" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972  IFS=$as_save_IFS
5973  test -z "$as_dir" && as_dir=.
5974  for ac_exec_ext in '' $ac_executable_extensions; do
5975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976    ac_cv_prog_AR="${ac_tool_prefix}ar"
5977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978    break 2
5979  fi
5980done
5981done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986AR=$ac_cv_prog_AR
5987if test -n "$AR"; then
5988  { echo "$as_me:$LINENO: result: $AR" >&5
5989echo "${ECHO_T}$AR" >&6; }
5990else
5991  { echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6; }
5993fi
5994
5995
5996fi
5997if test -z "$ac_cv_prog_AR"; then
5998  ac_ct_AR=$AR
5999  # Extract the first word of "ar", so it can be a program name with args.
6000set dummy ar; ac_word=$2
6001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6004  echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006  if test -n "$ac_ct_AR"; then
6007  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014  for ac_exec_ext in '' $ac_executable_extensions; do
6015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016    ac_cv_prog_ac_ct_AR="ar"
6017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026ac_ct_AR=$ac_cv_prog_ac_ct_AR
6027if test -n "$ac_ct_AR"; then
6028  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6029echo "${ECHO_T}$ac_ct_AR" >&6; }
6030else
6031  { echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6; }
6033fi
6034
6035  if test "x$ac_ct_AR" = x; then
6036    AR="false"
6037  else
6038    case $cross_compiling:$ac_tool_warned in
6039yes:)
6040{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041whose name does not start with the host triplet.  If you think this
6042configuration is useful to you, please write to autoconf@gnu.org." >&5
6043echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044whose name does not start with the host triplet.  If you think this
6045configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046ac_tool_warned=yes ;;
6047esac
6048    AR=$ac_ct_AR
6049  fi
6050else
6051  AR="$ac_cv_prog_AR"
6052fi
6053
6054if test -n "$ac_tool_prefix"; then
6055  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6056set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059if test "${ac_cv_prog_RANLIB+set}" = set; then
6060  echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062  if test -n "$RANLIB"; then
6063  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068  IFS=$as_save_IFS
6069  test -z "$as_dir" && as_dir=.
6070  for ac_exec_ext in '' $ac_executable_extensions; do
6071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074    break 2
6075  fi
6076done
6077done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082RANLIB=$ac_cv_prog_RANLIB
6083if test -n "$RANLIB"; then
6084  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6085echo "${ECHO_T}$RANLIB" >&6; }
6086else
6087  { echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6; }
6089fi
6090
6091
6092fi
6093if test -z "$ac_cv_prog_RANLIB"; then
6094  ac_ct_RANLIB=$RANLIB
6095  # Extract the first word of "ranlib", so it can be a program name with args.
6096set dummy ranlib; ac_word=$2
6097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6100  echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102  if test -n "$ac_ct_RANLIB"; then
6103  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108  IFS=$as_save_IFS
6109  test -z "$as_dir" && as_dir=.
6110  for ac_exec_ext in '' $ac_executable_extensions; do
6111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112    ac_cv_prog_ac_ct_RANLIB="ranlib"
6113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114    break 2
6115  fi
6116done
6117done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6123if test -n "$ac_ct_RANLIB"; then
6124  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6125echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6126else
6127  { echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6; }
6129fi
6130
6131  if test "x$ac_ct_RANLIB" = x; then
6132    RANLIB=":"
6133  else
6134    case $cross_compiling:$ac_tool_warned in
6135yes:)
6136{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6137whose name does not start with the host triplet.  If you think this
6138configuration is useful to you, please write to autoconf@gnu.org." >&5
6139echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6140whose name does not start with the host triplet.  If you think this
6141configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6142ac_tool_warned=yes ;;
6143esac
6144    RANLIB=$ac_ct_RANLIB
6145  fi
6146else
6147  RANLIB="$ac_cv_prog_RANLIB"
6148fi
6149
6150if test -n "$ac_tool_prefix"; then
6151  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152set dummy ${ac_tool_prefix}strip; ac_word=$2
6153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155if test "${ac_cv_prog_STRIP+set}" = set; then
6156  echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158  if test -n "$STRIP"; then
6159  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164  IFS=$as_save_IFS
6165  test -z "$as_dir" && as_dir=.
6166  for ac_exec_ext in '' $ac_executable_extensions; do
6167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170    break 2
6171  fi
6172done
6173done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178STRIP=$ac_cv_prog_STRIP
6179if test -n "$STRIP"; then
6180  { echo "$as_me:$LINENO: result: $STRIP" >&5
6181echo "${ECHO_T}$STRIP" >&6; }
6182else
6183  { echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6; }
6185fi
6186
6187
6188fi
6189if test -z "$ac_cv_prog_STRIP"; then
6190  ac_ct_STRIP=$STRIP
6191  # Extract the first word of "strip", so it can be a program name with args.
6192set dummy strip; ac_word=$2
6193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6196  echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198  if test -n "$ac_ct_STRIP"; then
6199  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206  for ac_exec_ext in '' $ac_executable_extensions; do
6207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208    ac_cv_prog_ac_ct_STRIP="strip"
6209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219if test -n "$ac_ct_STRIP"; then
6220  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6221echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6222else
6223  { echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6; }
6225fi
6226
6227  if test "x$ac_ct_STRIP" = x; then
6228    STRIP=":"
6229  else
6230    case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6233whose name does not start with the host triplet.  If you think this
6234configuration is useful to you, please write to autoconf@gnu.org." >&5
6235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6236whose name does not start with the host triplet.  If you think this
6237configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6238ac_tool_warned=yes ;;
6239esac
6240    STRIP=$ac_ct_STRIP
6241  fi
6242else
6243  STRIP="$ac_cv_prog_STRIP"
6244fi
6245
6246
6247old_CC="$CC"
6248old_CFLAGS="$CFLAGS"
6249
6250# Set sane defaults for various variables
6251test -z "$AR" && AR=ar
6252test -z "$AR_FLAGS" && AR_FLAGS=cru
6253test -z "$AS" && AS=as
6254test -z "$CC" && CC=cc
6255test -z "$LTCC" && LTCC=$CC
6256test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6257test -z "$DLLTOOL" && DLLTOOL=dlltool
6258test -z "$LD" && LD=ld
6259test -z "$LN_S" && LN_S="ln -s"
6260test -z "$MAGIC_CMD" && MAGIC_CMD=file
6261test -z "$NM" && NM=nm
6262test -z "$SED" && SED=sed
6263test -z "$OBJDUMP" && OBJDUMP=objdump
6264test -z "$RANLIB" && RANLIB=:
6265test -z "$STRIP" && STRIP=:
6266test -z "$ac_objext" && ac_objext=o
6267
6268# Determine commands to create old-style static archives.
6269old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6270old_postinstall_cmds='chmod 644 $oldlib'
6271old_postuninstall_cmds=
6272
6273if test -n "$RANLIB"; then
6274  case $host_os in
6275  openbsd*)
6276    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6277    ;;
6278  *)
6279    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6280    ;;
6281  esac
6282  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6283fi
6284
6285for cc_temp in $compiler""; do
6286  case $cc_temp in
6287    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6288    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6289    \-*) ;;
6290    *) break;;
6291  esac
6292done
6293cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6294
6295
6296# Only perform the check for file, if the check method requires it
6297case $deplibs_check_method in
6298file_magic*)
6299  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6300    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6301echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6302if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6303  echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305  case $MAGIC_CMD in
6306[\\/*] |  ?:[\\/]*)
6307  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6308  ;;
6309*)
6310  lt_save_MAGIC_CMD="$MAGIC_CMD"
6311  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6313  for ac_dir in $ac_dummy; do
6314    IFS="$lt_save_ifs"
6315    test -z "$ac_dir" && ac_dir=.
6316    if test -f $ac_dir/${ac_tool_prefix}file; then
6317      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6318      if test -n "$file_magic_test_file"; then
6319	case $deplibs_check_method in
6320	"file_magic "*)
6321	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6322	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6323	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6324	    $EGREP "$file_magic_regex" > /dev/null; then
6325	    :
6326	  else
6327	    cat <<EOF 1>&2
6328
6329*** Warning: the command libtool uses to detect shared libraries,
6330*** $file_magic_cmd, produces output that libtool cannot recognize.
6331*** The result is that libtool may fail to recognize shared libraries
6332*** as such.  This will affect the creation of libtool libraries that
6333*** depend on shared libraries, but programs linked with such libtool
6334*** libraries will work regardless of this problem.  Nevertheless, you
6335*** may want to report the problem to your system manager and/or to
6336*** bug-libtool@gnu.org
6337
6338EOF
6339	  fi ;;
6340	esac
6341      fi
6342      break
6343    fi
6344  done
6345  IFS="$lt_save_ifs"
6346  MAGIC_CMD="$lt_save_MAGIC_CMD"
6347  ;;
6348esac
6349fi
6350
6351MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6352if test -n "$MAGIC_CMD"; then
6353  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6354echo "${ECHO_T}$MAGIC_CMD" >&6; }
6355else
6356  { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358fi
6359
6360if test -z "$lt_cv_path_MAGIC_CMD"; then
6361  if test -n "$ac_tool_prefix"; then
6362    { echo "$as_me:$LINENO: checking for file" >&5
6363echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6364if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6365  echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367  case $MAGIC_CMD in
6368[\\/*] |  ?:[\\/]*)
6369  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6370  ;;
6371*)
6372  lt_save_MAGIC_CMD="$MAGIC_CMD"
6373  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6374  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6375  for ac_dir in $ac_dummy; do
6376    IFS="$lt_save_ifs"
6377    test -z "$ac_dir" && ac_dir=.
6378    if test -f $ac_dir/file; then
6379      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6380      if test -n "$file_magic_test_file"; then
6381	case $deplibs_check_method in
6382	"file_magic "*)
6383	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6384	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6385	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6386	    $EGREP "$file_magic_regex" > /dev/null; then
6387	    :
6388	  else
6389	    cat <<EOF 1>&2
6390
6391*** Warning: the command libtool uses to detect shared libraries,
6392*** $file_magic_cmd, produces output that libtool cannot recognize.
6393*** The result is that libtool may fail to recognize shared libraries
6394*** as such.  This will affect the creation of libtool libraries that
6395*** depend on shared libraries, but programs linked with such libtool
6396*** libraries will work regardless of this problem.  Nevertheless, you
6397*** may want to report the problem to your system manager and/or to
6398*** bug-libtool@gnu.org
6399
6400EOF
6401	  fi ;;
6402	esac
6403      fi
6404      break
6405    fi
6406  done
6407  IFS="$lt_save_ifs"
6408  MAGIC_CMD="$lt_save_MAGIC_CMD"
6409  ;;
6410esac
6411fi
6412
6413MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6414if test -n "$MAGIC_CMD"; then
6415  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6416echo "${ECHO_T}$MAGIC_CMD" >&6; }
6417else
6418  { echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6; }
6420fi
6421
6422  else
6423    MAGIC_CMD=:
6424  fi
6425fi
6426
6427  fi
6428  ;;
6429esac
6430
6431enable_dlopen=no
6432enable_win32_dll=no
6433
6434# Check whether --enable-libtool-lock was given.
6435if test "${enable_libtool_lock+set}" = set; then
6436  enableval=$enable_libtool_lock;
6437fi
6438
6439test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441
6442# Check whether --with-pic was given.
6443if test "${with_pic+set}" = set; then
6444  withval=$with_pic; pic_mode="$withval"
6445else
6446  pic_mode=default
6447fi
6448
6449test -z "$pic_mode" && pic_mode=default
6450
6451# Use C for the default configuration in the libtool script
6452tagname=
6453lt_save_CC="$CC"
6454ac_ext=c
6455ac_cpp='$CPP $CPPFLAGS'
6456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459
6460
6461# Source file extension for C test sources.
6462ac_ext=c
6463
6464# Object file extension for compiled C test sources.
6465objext=o
6466objext=$objext
6467
6468# Code to be used in simple compile tests
6469lt_simple_compile_test_code="int some_variable = 0;"
6470
6471# Code to be used in simple link tests
6472lt_simple_link_test_code='int main(){return(0);}'
6473
6474
6475# If no C compiler was specified, use CC.
6476LTCC=${LTCC-"$CC"}
6477
6478# If no C compiler flags were specified, use CFLAGS.
6479LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6480
6481# Allow CC to be a program name with arguments.
6482compiler=$CC
6483
6484
6485# save warnings/boilerplate of simple test code
6486ac_outfile=conftest.$ac_objext
6487echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6488eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6489_lt_compiler_boilerplate=`cat conftest.err`
6490$rm conftest*
6491
6492ac_outfile=conftest.$ac_objext
6493echo "$lt_simple_link_test_code" >conftest.$ac_ext
6494eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6495_lt_linker_boilerplate=`cat conftest.err`
6496$rm conftest*
6497
6498
6499
6500lt_prog_compiler_no_builtin_flag=
6501
6502if test "$GCC" = yes; then
6503  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6504
6505
6506{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6507echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6508if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6509  echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511  lt_cv_prog_compiler_rtti_exceptions=no
6512  ac_outfile=conftest.$ac_objext
6513   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6514   lt_compiler_flag="-fno-rtti -fno-exceptions"
6515   # Insert the option either (1) after the last *FLAGS variable, or
6516   # (2) before a word containing "conftest.", or (3) at the end.
6517   # Note that $ac_compile itself does not contain backslashes and begins
6518   # with a dollar sign (not a hyphen), so the echo should work correctly.
6519   # The option is referenced via a variable to avoid confusing sed.
6520   lt_compile=`echo "$ac_compile" | $SED \
6521   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6522   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6523   -e 's:$: $lt_compiler_flag:'`
6524   (eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
6525   (eval "$lt_compile" 2>conftest.err)
6526   ac_status=$?
6527   cat conftest.err >&5
6528   echo "$as_me:6528: \$? = $ac_status" >&5
6529   if (exit $ac_status) && test -s "$ac_outfile"; then
6530     # The compiler can only warn and ignore the option if not recognized
6531     # So say no if there are warnings other than the usual output.
6532     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6533     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6534     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6535       lt_cv_prog_compiler_rtti_exceptions=yes
6536     fi
6537   fi
6538   $rm conftest*
6539
6540fi
6541{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6542echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6543
6544if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6545    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6546else
6547    :
6548fi
6549
6550fi
6551
6552lt_prog_compiler_wl=
6553lt_prog_compiler_pic=
6554lt_prog_compiler_static=
6555
6556{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6557echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6558
6559  if test "$GCC" = yes; then
6560    lt_prog_compiler_wl='-Wl,'
6561    lt_prog_compiler_static='-static'
6562
6563    case $host_os in
6564      aix*)
6565      # All AIX code is PIC.
6566      if test "$host_cpu" = ia64; then
6567	# AIX 5 now supports IA64 processor
6568	lt_prog_compiler_static='-Bstatic'
6569      fi
6570      ;;
6571
6572    amigaos*)
6573      # FIXME: we need at least 68020 code to build shared libraries, but
6574      # adding the `-m68020' flag to GCC prevents building anything better,
6575      # like `-m68040'.
6576      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6577      ;;
6578
6579    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6580      # PIC is the default for these OSes.
6581      ;;
6582
6583    mingw* | cygwin* | pw32* | os2*)
6584      # This hack is so that the source file can tell whether it is being
6585      # built for inclusion in a dll (and should export symbols for example).
6586      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6587      # (--disable-auto-import) libraries
6588      lt_prog_compiler_pic='-DDLL_EXPORT'
6589      ;;
6590
6591    darwin* | rhapsody*)
6592      # PIC is the default on this platform
6593      # Common symbols not allowed in MH_DYLIB files
6594      lt_prog_compiler_pic='-fno-common'
6595      ;;
6596
6597    interix[3-9]*)
6598      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6599      # Instead, we relocate shared libraries at runtime.
6600      ;;
6601
6602    msdosdjgpp*)
6603      # Just because we use GCC doesn't mean we suddenly get shared libraries
6604      # on systems that don't support them.
6605      lt_prog_compiler_can_build_shared=no
6606      enable_shared=no
6607      ;;
6608
6609    sysv4*MP*)
6610      if test -d /usr/nec; then
6611	lt_prog_compiler_pic=-Kconform_pic
6612      fi
6613      ;;
6614
6615    hpux*)
6616      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6617      # not for PA HP-UX.
6618      case $host_cpu in
6619      hppa*64*|ia64*)
6620	# +Z the default
6621	;;
6622      *)
6623	lt_prog_compiler_pic='-fPIC'
6624	;;
6625      esac
6626      ;;
6627
6628    *)
6629      lt_prog_compiler_pic='-fPIC'
6630      ;;
6631    esac
6632  else
6633    # PORTME Check for flag to pass linker flags through the system compiler.
6634    case $host_os in
6635    aix*)
6636      lt_prog_compiler_wl='-Wl,'
6637      if test "$host_cpu" = ia64; then
6638	# AIX 5 now supports IA64 processor
6639	lt_prog_compiler_static='-Bstatic'
6640      else
6641	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6642      fi
6643      ;;
6644      darwin*)
6645        # PIC is the default on this platform
6646        # Common symbols not allowed in MH_DYLIB files
6647       case $cc_basename in
6648         xlc*)
6649         lt_prog_compiler_pic='-qnocommon'
6650         lt_prog_compiler_wl='-Wl,'
6651         ;;
6652       esac
6653       ;;
6654
6655    mingw* | cygwin* | pw32* | os2*)
6656      # This hack is so that the source file can tell whether it is being
6657      # built for inclusion in a dll (and should export symbols for example).
6658      lt_prog_compiler_pic='-DDLL_EXPORT'
6659      ;;
6660
6661    hpux9* | hpux10* | hpux11*)
6662      lt_prog_compiler_wl='-Wl,'
6663      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6664      # not for PA HP-UX.
6665      case $host_cpu in
6666      hppa*64*|ia64*)
6667	# +Z the default
6668	;;
6669      *)
6670	lt_prog_compiler_pic='+Z'
6671	;;
6672      esac
6673      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6674      lt_prog_compiler_static='${wl}-a ${wl}archive'
6675      ;;
6676
6677    irix5* | irix6* | nonstopux*)
6678      lt_prog_compiler_wl='-Wl,'
6679      # PIC (with -KPIC) is the default.
6680      lt_prog_compiler_static='-non_shared'
6681      ;;
6682
6683    newsos6)
6684      lt_prog_compiler_pic='-KPIC'
6685      lt_prog_compiler_static='-Bstatic'
6686      ;;
6687
6688    linux* | k*bsd*-gnu)
6689      case $cc_basename in
6690      icc* | ecc*)
6691	lt_prog_compiler_wl='-Wl,'
6692	lt_prog_compiler_pic='-KPIC'
6693	lt_prog_compiler_static='-static'
6694        ;;
6695      pgcc* | pgf77* | pgf90* | pgf95*)
6696        # Portland Group compilers (*not* the Pentium gcc compiler,
6697	# which looks to be a dead project)
6698	lt_prog_compiler_wl='-Wl,'
6699	lt_prog_compiler_pic='-fpic'
6700	lt_prog_compiler_static='-Bstatic'
6701        ;;
6702      ccc*)
6703        lt_prog_compiler_wl='-Wl,'
6704        # All Alpha code is PIC.
6705        lt_prog_compiler_static='-non_shared'
6706        ;;
6707      *)
6708        case `$CC -V 2>&1 | sed 5q` in
6709	*Sun\ C*)
6710	  # Sun C 5.9
6711	  lt_prog_compiler_pic='-KPIC'
6712	  lt_prog_compiler_static='-Bstatic'
6713	  lt_prog_compiler_wl='-Wl,'
6714	  ;;
6715	*Sun\ F*)
6716	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6717	  lt_prog_compiler_pic='-KPIC'
6718	  lt_prog_compiler_static='-Bstatic'
6719	  lt_prog_compiler_wl=''
6720	  ;;
6721	esac
6722	;;
6723      esac
6724      ;;
6725
6726    osf3* | osf4* | osf5*)
6727      lt_prog_compiler_wl='-Wl,'
6728      # All OSF/1 code is PIC.
6729      lt_prog_compiler_static='-non_shared'
6730      ;;
6731
6732    rdos*)
6733      lt_prog_compiler_static='-non_shared'
6734      ;;
6735
6736    solaris*)
6737      lt_prog_compiler_pic='-KPIC'
6738      lt_prog_compiler_static='-Bstatic'
6739      case $cc_basename in
6740      f77* | f90* | f95*)
6741	lt_prog_compiler_wl='-Qoption ld ';;
6742      *)
6743	lt_prog_compiler_wl='-Wl,';;
6744      esac
6745      ;;
6746
6747    sunos4*)
6748      lt_prog_compiler_wl='-Qoption ld '
6749      lt_prog_compiler_pic='-PIC'
6750      lt_prog_compiler_static='-Bstatic'
6751      ;;
6752
6753    sysv4 | sysv4.2uw2* | sysv4.3*)
6754      lt_prog_compiler_wl='-Wl,'
6755      lt_prog_compiler_pic='-KPIC'
6756      lt_prog_compiler_static='-Bstatic'
6757      ;;
6758
6759    sysv4*MP*)
6760      if test -d /usr/nec ;then
6761	lt_prog_compiler_pic='-Kconform_pic'
6762	lt_prog_compiler_static='-Bstatic'
6763      fi
6764      ;;
6765
6766    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6767      lt_prog_compiler_wl='-Wl,'
6768      lt_prog_compiler_pic='-KPIC'
6769      lt_prog_compiler_static='-Bstatic'
6770      ;;
6771
6772    unicos*)
6773      lt_prog_compiler_wl='-Wl,'
6774      lt_prog_compiler_can_build_shared=no
6775      ;;
6776
6777    uts4*)
6778      lt_prog_compiler_pic='-pic'
6779      lt_prog_compiler_static='-Bstatic'
6780      ;;
6781
6782    *)
6783      lt_prog_compiler_can_build_shared=no
6784      ;;
6785    esac
6786  fi
6787
6788{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6789echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6790
6791#
6792# Check to make sure the PIC flag actually works.
6793#
6794if test -n "$lt_prog_compiler_pic"; then
6795
6796{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6797echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6798if test "${lt_prog_compiler_pic_works+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801  lt_prog_compiler_pic_works=no
6802  ac_outfile=conftest.$ac_objext
6803   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6804   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6805   # Insert the option either (1) after the last *FLAGS variable, or
6806   # (2) before a word containing "conftest.", or (3) at the end.
6807   # Note that $ac_compile itself does not contain backslashes and begins
6808   # with a dollar sign (not a hyphen), so the echo should work correctly.
6809   # The option is referenced via a variable to avoid confusing sed.
6810   lt_compile=`echo "$ac_compile" | $SED \
6811   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6813   -e 's:$: $lt_compiler_flag:'`
6814   (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
6815   (eval "$lt_compile" 2>conftest.err)
6816   ac_status=$?
6817   cat conftest.err >&5
6818   echo "$as_me:6818: \$? = $ac_status" >&5
6819   if (exit $ac_status) && test -s "$ac_outfile"; then
6820     # The compiler can only warn and ignore the option if not recognized
6821     # So say no if there are warnings other than the usual output.
6822     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6823     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6824     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6825       lt_prog_compiler_pic_works=yes
6826     fi
6827   fi
6828   $rm conftest*
6829
6830fi
6831{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6832echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6833
6834if test x"$lt_prog_compiler_pic_works" = xyes; then
6835    case $lt_prog_compiler_pic in
6836     "" | " "*) ;;
6837     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6838     esac
6839else
6840    lt_prog_compiler_pic=
6841     lt_prog_compiler_can_build_shared=no
6842fi
6843
6844fi
6845case $host_os in
6846  # For platforms which do not support PIC, -DPIC is meaningless:
6847  *djgpp*)
6848    lt_prog_compiler_pic=
6849    ;;
6850  *)
6851    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6852    ;;
6853esac
6854
6855#
6856# Check to make sure the static flag actually works.
6857#
6858wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6859{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6860echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6861if test "${lt_prog_compiler_static_works+set}" = set; then
6862  echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864  lt_prog_compiler_static_works=no
6865   save_LDFLAGS="$LDFLAGS"
6866   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6867   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6868   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6869     # The linker can only warn and ignore the option if not recognized
6870     # So say no if there are warnings
6871     if test -s conftest.err; then
6872       # Append any errors to the config.log.
6873       cat conftest.err 1>&5
6874       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6875       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6876       if diff conftest.exp conftest.er2 >/dev/null; then
6877         lt_prog_compiler_static_works=yes
6878       fi
6879     else
6880       lt_prog_compiler_static_works=yes
6881     fi
6882   fi
6883   $rm conftest*
6884   LDFLAGS="$save_LDFLAGS"
6885
6886fi
6887{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6888echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6889
6890if test x"$lt_prog_compiler_static_works" = xyes; then
6891    :
6892else
6893    lt_prog_compiler_static=
6894fi
6895
6896
6897{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6898echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6899if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6900  echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902  lt_cv_prog_compiler_c_o=no
6903   $rm -r conftest 2>/dev/null
6904   mkdir conftest
6905   cd conftest
6906   mkdir out
6907   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6908
6909   lt_compiler_flag="-o out/conftest2.$ac_objext"
6910   # Insert the option either (1) after the last *FLAGS variable, or
6911   # (2) before a word containing "conftest.", or (3) at the end.
6912   # Note that $ac_compile itself does not contain backslashes and begins
6913   # with a dollar sign (not a hyphen), so the echo should work correctly.
6914   lt_compile=`echo "$ac_compile" | $SED \
6915   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6916   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6917   -e 's:$: $lt_compiler_flag:'`
6918   (eval echo "\"\$as_me:6918: $lt_compile\"" >&5)
6919   (eval "$lt_compile" 2>out/conftest.err)
6920   ac_status=$?
6921   cat out/conftest.err >&5
6922   echo "$as_me:6922: \$? = $ac_status" >&5
6923   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6924   then
6925     # The compiler can only warn and ignore the option if not recognized
6926     # So say no if there are warnings
6927     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6928     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6929     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6930       lt_cv_prog_compiler_c_o=yes
6931     fi
6932   fi
6933   chmod u+w . 2>&5
6934   $rm conftest*
6935   # SGI C++ compiler will create directory out/ii_files/ for
6936   # template instantiation
6937   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6938   $rm out/* && rmdir out
6939   cd ..
6940   rmdir conftest
6941   $rm conftest*
6942
6943fi
6944{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6945echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6946
6947
6948hard_links="nottested"
6949if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6950  # do not overwrite the value of need_locks provided by the user
6951  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6952echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6953  hard_links=yes
6954  $rm conftest*
6955  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6956  touch conftest.a
6957  ln conftest.a conftest.b 2>&5 || hard_links=no
6958  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6959  { echo "$as_me:$LINENO: result: $hard_links" >&5
6960echo "${ECHO_T}$hard_links" >&6; }
6961  if test "$hard_links" = no; then
6962    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6963echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6964    need_locks=warn
6965  fi
6966else
6967  need_locks=no
6968fi
6969
6970{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6972
6973  runpath_var=
6974  allow_undefined_flag=
6975  enable_shared_with_static_runtimes=no
6976  archive_cmds=
6977  archive_expsym_cmds=
6978  old_archive_From_new_cmds=
6979  old_archive_from_expsyms_cmds=
6980  export_dynamic_flag_spec=
6981  whole_archive_flag_spec=
6982  thread_safe_flag_spec=
6983  hardcode_libdir_flag_spec=
6984  hardcode_libdir_flag_spec_ld=
6985  hardcode_libdir_separator=
6986  hardcode_direct=no
6987  hardcode_minus_L=no
6988  hardcode_shlibpath_var=unsupported
6989  link_all_deplibs=unknown
6990  hardcode_automatic=no
6991  module_cmds=
6992  module_expsym_cmds=
6993  always_export_symbols=no
6994  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6995  # include_expsyms should be a list of space-separated symbols to be *always*
6996  # included in the symbol list
6997  include_expsyms=
6998  # exclude_expsyms can be an extended regexp of symbols to exclude
6999  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7000  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7001  # as well as any symbol that contains `d'.
7002  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7003  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7004  # platforms (ab)use it in PIC code, but their linkers get confused if
7005  # the symbol is explicitly referenced.  Since portable code cannot
7006  # rely on this symbol name, it's probably fine to never include it in
7007  # preloaded symbol tables.
7008  extract_expsyms_cmds=
7009  # Just being paranoid about ensuring that cc_basename is set.
7010  for cc_temp in $compiler""; do
7011  case $cc_temp in
7012    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7013    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7014    \-*) ;;
7015    *) break;;
7016  esac
7017done
7018cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7019
7020  case $host_os in
7021  cygwin* | mingw* | pw32*)
7022    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7023    # When not using gcc, we currently assume that we are using
7024    # Microsoft Visual C++.
7025    if test "$GCC" != yes; then
7026      with_gnu_ld=no
7027    fi
7028    ;;
7029  interix*)
7030    # we just hope/assume this is gcc and not c89 (= MSVC++)
7031    with_gnu_ld=yes
7032    ;;
7033  openbsd*)
7034    with_gnu_ld=no
7035    ;;
7036  esac
7037
7038  ld_shlibs=yes
7039  if test "$with_gnu_ld" = yes; then
7040    # If archive_cmds runs LD, not CC, wlarc should be empty
7041    wlarc='${wl}'
7042
7043    # Set some defaults for GNU ld with shared library support. These
7044    # are reset later if shared libraries are not supported. Putting them
7045    # here allows them to be overridden if necessary.
7046    runpath_var=LD_RUN_PATH
7047    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7048    export_dynamic_flag_spec='${wl}--export-dynamic'
7049    # ancient GNU ld didn't support --whole-archive et. al.
7050    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7051	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7052      else
7053  	whole_archive_flag_spec=
7054    fi
7055    supports_anon_versioning=no
7056    case `$LD -v 2>/dev/null` in
7057      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7058      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7059      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7060      *\ 2.11.*) ;; # other 2.11 versions
7061      *) supports_anon_versioning=yes ;;
7062    esac
7063
7064    # See if GNU ld supports shared libraries.
7065    case $host_os in
7066    aix3* | aix4* | aix5*)
7067      # On AIX/PPC, the GNU linker is very broken
7068      if test "$host_cpu" != ia64; then
7069	ld_shlibs=no
7070	cat <<EOF 1>&2
7071
7072*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7073*** to be unable to reliably create shared libraries on AIX.
7074*** Therefore, libtool is disabling shared libraries support.  If you
7075*** really care for shared libraries, you may want to modify your PATH
7076*** so that a non-GNU linker is found, and then restart.
7077
7078EOF
7079      fi
7080      ;;
7081
7082    amigaos*)
7083      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)'
7084      hardcode_libdir_flag_spec='-L$libdir'
7085      hardcode_minus_L=yes
7086
7087      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7088      # that the semantics of dynamic libraries on AmigaOS, at least up
7089      # to version 4, is to share data among multiple programs linked
7090      # with the same dynamic library.  Since this doesn't match the
7091      # behavior of shared libraries on other platforms, we can't use
7092      # them.
7093      ld_shlibs=no
7094      ;;
7095
7096    beos*)
7097      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7098	allow_undefined_flag=unsupported
7099	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7100	# support --undefined.  This deserves some investigation.  FIXME
7101	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7102      else
7103	ld_shlibs=no
7104      fi
7105      ;;
7106
7107    cygwin* | mingw* | pw32*)
7108      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7109      # as there is no search path for DLLs.
7110      hardcode_libdir_flag_spec='-L$libdir'
7111      allow_undefined_flag=unsupported
7112      always_export_symbols=no
7113      enable_shared_with_static_runtimes=yes
7114      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7115
7116      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7117        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7118	# If the export-symbols file already is a .def file (1st line
7119	# is EXPORTS), use it as is; otherwise, prepend...
7120	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7121	  cp $export_symbols $output_objdir/$soname.def;
7122	else
7123	  echo EXPORTS > $output_objdir/$soname.def;
7124	  cat $export_symbols >> $output_objdir/$soname.def;
7125	fi~
7126	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7127      else
7128	ld_shlibs=no
7129      fi
7130      ;;
7131
7132    interix[3-9]*)
7133      hardcode_direct=no
7134      hardcode_shlibpath_var=no
7135      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7136      export_dynamic_flag_spec='${wl}-E'
7137      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7138      # Instead, shared libraries are loaded at an image base (0x10000000 by
7139      # default) and relocated if they conflict, which is a slow very memory
7140      # consuming and fragmenting process.  To avoid this, we pick a random,
7141      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7142      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7143      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7144      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'
7145      ;;
7146
7147    gnu* | linux* | k*bsd*-gnu)
7148      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7149	tmp_addflag=
7150	case $cc_basename,$host_cpu in
7151	pgcc*)				# Portland Group C compiler
7152	  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'
7153	  tmp_addflag=' $pic_flag'
7154	  ;;
7155	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7156	  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'
7157	  tmp_addflag=' $pic_flag -Mnomain' ;;
7158	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7159	  tmp_addflag=' -i_dynamic' ;;
7160	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7161	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7162	ifc* | ifort*)			# Intel Fortran compiler
7163	  tmp_addflag=' -nofor_main' ;;
7164	esac
7165	case `$CC -V 2>&1 | sed 5q` in
7166	*Sun\ C*)			# Sun C 5.9
7167	  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'
7168	  tmp_sharedflag='-G' ;;
7169	*Sun\ F*)			# Sun Fortran 8.3
7170	  tmp_sharedflag='-G' ;;
7171	*)
7172	  tmp_sharedflag='-shared' ;;
7173	esac
7174	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7175
7176	if test $supports_anon_versioning = yes; then
7177	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7178  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7179  $echo "local: *; };" >> $output_objdir/$libname.ver~
7180	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7181	fi
7182      else
7183	ld_shlibs=no
7184      fi
7185      ;;
7186
7187    netbsd*)
7188      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7189	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7190	wlarc=
7191      else
7192	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7193	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7194      fi
7195      ;;
7196
7197    solaris*)
7198      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7199	ld_shlibs=no
7200	cat <<EOF 1>&2
7201
7202*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7203*** create shared libraries on Solaris systems.  Therefore, libtool
7204*** is disabling shared libraries support.  We urge you to upgrade GNU
7205*** binutils to release 2.9.1 or newer.  Another option is to modify
7206*** your PATH or compiler configuration so that the native linker is
7207*** used, and then restart.
7208
7209EOF
7210      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7211	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7212	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7213      else
7214	ld_shlibs=no
7215      fi
7216      ;;
7217
7218    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7219      case `$LD -v 2>&1` in
7220        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7221	ld_shlibs=no
7222	cat <<_LT_EOF 1>&2
7223
7224*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7225*** reliably create shared libraries on SCO systems.  Therefore, libtool
7226*** is disabling shared libraries support.  We urge you to upgrade GNU
7227*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7228*** your PATH or compiler configuration so that the native linker is
7229*** used, and then restart.
7230
7231_LT_EOF
7232	;;
7233	*)
7234	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7235	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7236	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7237	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7238	  else
7239	    ld_shlibs=no
7240	  fi
7241	;;
7242      esac
7243      ;;
7244
7245    sunos4*)
7246      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7247      wlarc=
7248      hardcode_direct=yes
7249      hardcode_shlibpath_var=no
7250      ;;
7251
7252    *)
7253      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7255	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7256      else
7257	ld_shlibs=no
7258      fi
7259      ;;
7260    esac
7261
7262    if test "$ld_shlibs" = no; then
7263      runpath_var=
7264      hardcode_libdir_flag_spec=
7265      export_dynamic_flag_spec=
7266      whole_archive_flag_spec=
7267    fi
7268  else
7269    # PORTME fill in a description of your system's linker (not GNU ld)
7270    case $host_os in
7271    aix3*)
7272      allow_undefined_flag=unsupported
7273      always_export_symbols=yes
7274      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'
7275      # Note: this linker hardcodes the directories in LIBPATH if there
7276      # are no directories specified by -L.
7277      hardcode_minus_L=yes
7278      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7279	# Neither direct hardcoding nor static linking is supported with a
7280	# broken collect2.
7281	hardcode_direct=unsupported
7282      fi
7283      ;;
7284
7285    aix4* | aix5*)
7286      if test "$host_cpu" = ia64; then
7287	# On IA64, the linker does run time linking by default, so we don't
7288	# have to do anything special.
7289	aix_use_runtimelinking=no
7290	exp_sym_flag='-Bexport'
7291	no_entry_flag=""
7292      else
7293	# If we're using GNU nm, then we don't want the "-C" option.
7294	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7295	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296	  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'
7297	else
7298	  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'
7299	fi
7300	aix_use_runtimelinking=no
7301
7302	# Test if we are trying to use run time linking or normal
7303	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7304	# need to do runtime linking.
7305	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7306	  for ld_flag in $LDFLAGS; do
7307  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7308  	    aix_use_runtimelinking=yes
7309  	    break
7310  	  fi
7311	  done
7312	  ;;
7313	esac
7314
7315	exp_sym_flag='-bexport'
7316	no_entry_flag='-bnoentry'
7317      fi
7318
7319      # When large executables or shared objects are built, AIX ld can
7320      # have problems creating the table of contents.  If linking a library
7321      # or program results in "error TOC overflow" add -mminimal-toc to
7322      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7323      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7324
7325      archive_cmds=''
7326      hardcode_direct=yes
7327      hardcode_libdir_separator=':'
7328      link_all_deplibs=yes
7329
7330      if test "$GCC" = yes; then
7331	case $host_os in aix4.[012]|aix4.[012].*)
7332	# We only want to do this on AIX 4.2 and lower, the check
7333	# below for broken collect2 doesn't work under 4.3+
7334	  collect2name=`${CC} -print-prog-name=collect2`
7335	  if test -f "$collect2name" && \
7336  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7337	  then
7338  	  # We have reworked collect2
7339  	  :
7340	  else
7341  	  # We have old collect2
7342  	  hardcode_direct=unsupported
7343  	  # It fails to find uninstalled libraries when the uninstalled
7344  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7345  	  # to unsupported forces relinking
7346  	  hardcode_minus_L=yes
7347  	  hardcode_libdir_flag_spec='-L$libdir'
7348  	  hardcode_libdir_separator=
7349	  fi
7350	  ;;
7351	esac
7352	shared_flag='-shared'
7353	if test "$aix_use_runtimelinking" = yes; then
7354	  shared_flag="$shared_flag "'${wl}-G'
7355	fi
7356      else
7357	# not using gcc
7358	if test "$host_cpu" = ia64; then
7359  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7360  	# chokes on -Wl,-G. The following line is correct:
7361	  shared_flag='-G'
7362	else
7363	  if test "$aix_use_runtimelinking" = yes; then
7364	    shared_flag='${wl}-G'
7365	  else
7366	    shared_flag='${wl}-bM:SRE'
7367	  fi
7368	fi
7369      fi
7370
7371      # It seems that -bexpall does not export symbols beginning with
7372      # underscore (_), so it is better to generate a list of symbols to export.
7373      always_export_symbols=yes
7374      if test "$aix_use_runtimelinking" = yes; then
7375	# Warning - without using the other runtime loading flags (-brtl),
7376	# -berok will link without error, but may produce a broken library.
7377	allow_undefined_flag='-berok'
7378       # Determine the default libpath from the value encoded in an empty executable.
7379       cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h.  */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h.  */
7385
7386int
7387main ()
7388{
7389
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394rm -f conftest.$ac_objext conftest$ac_exeext
7395if { (ac_try="$ac_link"
7396case "(($ac_try" in
7397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398  *) ac_try_echo=$ac_try;;
7399esac
7400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401  (eval "$ac_link") 2>conftest.er1
7402  ac_status=$?
7403  grep -v '^ *+' conftest.er1 >conftest.err
7404  rm -f conftest.er1
7405  cat conftest.err >&5
7406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407  (exit $ac_status); } && {
7408	 test -z "$ac_c_werror_flag" ||
7409	 test ! -s conftest.err
7410       } && test -s conftest$ac_exeext &&
7411       $as_test_x conftest$ac_exeext; then
7412
7413lt_aix_libpath_sed='
7414    /Import File Strings/,/^$/ {
7415	/^0/ {
7416	    s/^0  *\(.*\)$/\1/
7417	    p
7418	}
7419    }'
7420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7421# Check for a 64-bit object if we didn't find anything.
7422if test -z "$aix_libpath"; then
7423  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7424fi
7425else
7426  echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429
7430fi
7431
7432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7433      conftest$ac_exeext conftest.$ac_ext
7434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7435
7436       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7437	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"
7438       else
7439	if test "$host_cpu" = ia64; then
7440	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7441	  allow_undefined_flag="-z nodefs"
7442	  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"
7443	else
7444	 # Determine the default libpath from the value encoded in an empty executable.
7445	 cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h.  */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h.  */
7451
7452int
7453main ()
7454{
7455
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460rm -f conftest.$ac_objext conftest$ac_exeext
7461if { (ac_try="$ac_link"
7462case "(($ac_try" in
7463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464  *) ac_try_echo=$ac_try;;
7465esac
7466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467  (eval "$ac_link") 2>conftest.er1
7468  ac_status=$?
7469  grep -v '^ *+' conftest.er1 >conftest.err
7470  rm -f conftest.er1
7471  cat conftest.err >&5
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); } && {
7474	 test -z "$ac_c_werror_flag" ||
7475	 test ! -s conftest.err
7476       } && test -s conftest$ac_exeext &&
7477       $as_test_x conftest$ac_exeext; then
7478
7479lt_aix_libpath_sed='
7480    /Import File Strings/,/^$/ {
7481	/^0/ {
7482	    s/^0  *\(.*\)$/\1/
7483	    p
7484	}
7485    }'
7486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7487# Check for a 64-bit object if we didn't find anything.
7488if test -z "$aix_libpath"; then
7489  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7490fi
7491else
7492  echo "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495
7496fi
7497
7498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499      conftest$ac_exeext conftest.$ac_ext
7500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7501
7502	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7503	  # Warning - without using the other run time loading flags,
7504	  # -berok will link without error, but may produce a broken library.
7505	  no_undefined_flag=' ${wl}-bernotok'
7506	  allow_undefined_flag=' ${wl}-berok'
7507	  # Exported symbols can be pulled into shared objects from archives
7508	  whole_archive_flag_spec='$convenience'
7509	  archive_cmds_need_lc=yes
7510	  # This is similar to how AIX traditionally builds its shared libraries.
7511	  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'
7512	fi
7513      fi
7514      ;;
7515
7516    amigaos*)
7517      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)'
7518      hardcode_libdir_flag_spec='-L$libdir'
7519      hardcode_minus_L=yes
7520      # see comment about different semantics on the GNU ld section
7521      ld_shlibs=no
7522      ;;
7523
7524    bsdi[45]*)
7525      export_dynamic_flag_spec=-rdynamic
7526      ;;
7527
7528    cygwin* | mingw* | pw32*)
7529      # When not using gcc, we currently assume that we are using
7530      # Microsoft Visual C++.
7531      # hardcode_libdir_flag_spec is actually meaningless, as there is
7532      # no search path for DLLs.
7533      hardcode_libdir_flag_spec=' '
7534      allow_undefined_flag=unsupported
7535      # Tell ltmain to make .lib files, not .a files.
7536      libext=lib
7537      # Tell ltmain to make .dll files, not .so files.
7538      shrext_cmds=".dll"
7539      # FIXME: Setting linknames here is a bad hack.
7540      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7541      # The linker will automatically build a .lib file if we build a DLL.
7542      old_archive_From_new_cmds='true'
7543      # FIXME: Should let the user specify the lib program.
7544      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7545      fix_srcfile_path='`cygpath -w "$srcfile"`'
7546      enable_shared_with_static_runtimes=yes
7547      ;;
7548
7549    darwin* | rhapsody*)
7550      case $host_os in
7551        rhapsody* | darwin1.[012])
7552         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7553         ;;
7554       *) # Darwin 1.3 on
7555         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7556           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7557         else
7558           case ${MACOSX_DEPLOYMENT_TARGET} in
7559             10.[012])
7560               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7561               ;;
7562             10.*)
7563               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7564               ;;
7565           esac
7566         fi
7567         ;;
7568      esac
7569      archive_cmds_need_lc=no
7570      hardcode_direct=no
7571      hardcode_automatic=yes
7572      hardcode_shlibpath_var=unsupported
7573      whole_archive_flag_spec=''
7574      link_all_deplibs=yes
7575    if test "$GCC" = yes ; then
7576    	output_verbose_link_cmd='echo'
7577        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7578      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7579      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7580      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}'
7581      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}'
7582    else
7583      case $cc_basename in
7584        xlc*)
7585         output_verbose_link_cmd='echo'
7586         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7587         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7588          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7589         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}'
7590          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}'
7591          ;;
7592       *)
7593         ld_shlibs=no
7594          ;;
7595      esac
7596    fi
7597      ;;
7598
7599    dgux*)
7600      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601      hardcode_libdir_flag_spec='-L$libdir'
7602      hardcode_shlibpath_var=no
7603      ;;
7604
7605    freebsd1*)
7606      ld_shlibs=no
7607      ;;
7608
7609    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7610    # support.  Future versions do this automatically, but an explicit c++rt0.o
7611    # does not break anything, and helps significantly (at the cost of a little
7612    # extra space).
7613    freebsd2.2*)
7614      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7615      hardcode_libdir_flag_spec='-R$libdir'
7616      hardcode_direct=yes
7617      hardcode_shlibpath_var=no
7618      ;;
7619
7620    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7621    freebsd2*)
7622      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7623      hardcode_direct=yes
7624      hardcode_minus_L=yes
7625      hardcode_shlibpath_var=no
7626      ;;
7627
7628    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7629    freebsd* | dragonfly*)
7630      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7631      hardcode_libdir_flag_spec='-R$libdir'
7632      hardcode_direct=yes
7633      hardcode_shlibpath_var=no
7634      ;;
7635
7636    hpux9*)
7637      if test "$GCC" = yes; then
7638	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'
7639      else
7640	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'
7641      fi
7642      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7643      hardcode_libdir_separator=:
7644      hardcode_direct=yes
7645
7646      # hardcode_minus_L: Not really in the search PATH,
7647      # but as the default location of the library.
7648      hardcode_minus_L=yes
7649      export_dynamic_flag_spec='${wl}-E'
7650      ;;
7651
7652    hpux10*)
7653      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7654	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7655      else
7656	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7657      fi
7658      if test "$with_gnu_ld" = no; then
7659	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7660	hardcode_libdir_separator=:
7661
7662	hardcode_direct=yes
7663	export_dynamic_flag_spec='${wl}-E'
7664
7665	# hardcode_minus_L: Not really in the search PATH,
7666	# but as the default location of the library.
7667	hardcode_minus_L=yes
7668      fi
7669      ;;
7670
7671    hpux11*)
7672      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7673	case $host_cpu in
7674	hppa*64*)
7675	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7676	  ;;
7677	ia64*)
7678	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7679	  ;;
7680	*)
7681	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7682	  ;;
7683	esac
7684      else
7685	case $host_cpu in
7686	hppa*64*)
7687	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7688	  ;;
7689	ia64*)
7690	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7691	  ;;
7692	*)
7693	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7694	  ;;
7695	esac
7696      fi
7697      if test "$with_gnu_ld" = no; then
7698	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7699	hardcode_libdir_separator=:
7700
7701	case $host_cpu in
7702	hppa*64*|ia64*)
7703	  hardcode_libdir_flag_spec_ld='+b $libdir'
7704	  hardcode_direct=no
7705	  hardcode_shlibpath_var=no
7706	  ;;
7707	*)
7708	  hardcode_direct=yes
7709	  export_dynamic_flag_spec='${wl}-E'
7710
7711	  # hardcode_minus_L: Not really in the search PATH,
7712	  # but as the default location of the library.
7713	  hardcode_minus_L=yes
7714	  ;;
7715	esac
7716      fi
7717      ;;
7718
7719    irix5* | irix6* | nonstopux*)
7720      if test "$GCC" = yes; then
7721	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'
7722      else
7723	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'
7724	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7725      fi
7726      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7727      hardcode_libdir_separator=:
7728      link_all_deplibs=yes
7729      ;;
7730
7731    netbsd*)
7732      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7734      else
7735	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7736      fi
7737      hardcode_libdir_flag_spec='-R$libdir'
7738      hardcode_direct=yes
7739      hardcode_shlibpath_var=no
7740      ;;
7741
7742    newsos6)
7743      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7744      hardcode_direct=yes
7745      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7746      hardcode_libdir_separator=:
7747      hardcode_shlibpath_var=no
7748      ;;
7749
7750    openbsd*)
7751      if test -f /usr/libexec/ld.so; then
7752	hardcode_direct=yes
7753	hardcode_shlibpath_var=no
7754	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7755	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7756	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7757	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7758	  export_dynamic_flag_spec='${wl}-E'
7759	else
7760	  case $host_os in
7761	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7762	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7763	     hardcode_libdir_flag_spec='-R$libdir'
7764	     ;;
7765	   *)
7766	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7767	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7768	     ;;
7769	  esac
7770        fi
7771      else
7772	ld_shlibs=no
7773      fi
7774      ;;
7775
7776    os2*)
7777      hardcode_libdir_flag_spec='-L$libdir'
7778      hardcode_minus_L=yes
7779      allow_undefined_flag=unsupported
7780      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'
7781      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7782      ;;
7783
7784    osf3*)
7785      if test "$GCC" = yes; then
7786	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7787	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'
7788      else
7789	allow_undefined_flag=' -expect_unresolved \*'
7790	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'
7791      fi
7792      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7793      hardcode_libdir_separator=:
7794      ;;
7795
7796    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7797      if test "$GCC" = yes; then
7798	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7799	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'
7800	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7801      else
7802	allow_undefined_flag=' -expect_unresolved \*'
7803	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'
7804	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7805	$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'
7806
7807	# Both c and cxx compiler support -rpath directly
7808	hardcode_libdir_flag_spec='-rpath $libdir'
7809      fi
7810      hardcode_libdir_separator=:
7811      ;;
7812
7813    solaris*)
7814      no_undefined_flag=' -z text'
7815      if test "$GCC" = yes; then
7816	wlarc='${wl}'
7817	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7819	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7820      else
7821	wlarc=''
7822	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7824  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7825      fi
7826      hardcode_libdir_flag_spec='-R$libdir'
7827      hardcode_shlibpath_var=no
7828      case $host_os in
7829      solaris2.[0-5] | solaris2.[0-5].*) ;;
7830      *)
7831	# The compiler driver will combine and reorder linker options,
7832	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7833	# but is careful enough not to reorder.
7834 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7835	if test "$GCC" = yes; then
7836	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7837	else
7838	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7839	fi
7840	;;
7841      esac
7842      link_all_deplibs=yes
7843      ;;
7844
7845    sunos4*)
7846      if test "x$host_vendor" = xsequent; then
7847	# Use $CC to link under sequent, because it throws in some extra .o
7848	# files that make .init and .fini sections work.
7849	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7850      else
7851	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7852      fi
7853      hardcode_libdir_flag_spec='-L$libdir'
7854      hardcode_direct=yes
7855      hardcode_minus_L=yes
7856      hardcode_shlibpath_var=no
7857      ;;
7858
7859    sysv4)
7860      case $host_vendor in
7861	sni)
7862	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863	  hardcode_direct=yes # is this really true???
7864	;;
7865	siemens)
7866	  ## LD is ld it makes a PLAMLIB
7867	  ## CC just makes a GrossModule.
7868	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7869	  reload_cmds='$CC -r -o $output$reload_objs'
7870	  hardcode_direct=no
7871        ;;
7872	motorola)
7873	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7874	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7875	;;
7876      esac
7877      runpath_var='LD_RUN_PATH'
7878      hardcode_shlibpath_var=no
7879      ;;
7880
7881    sysv4.3*)
7882      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7883      hardcode_shlibpath_var=no
7884      export_dynamic_flag_spec='-Bexport'
7885      ;;
7886
7887    sysv4*MP*)
7888      if test -d /usr/nec; then
7889	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890	hardcode_shlibpath_var=no
7891	runpath_var=LD_RUN_PATH
7892	hardcode_runpath_var=yes
7893	ld_shlibs=yes
7894      fi
7895      ;;
7896
7897    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7898      no_undefined_flag='${wl}-z,text'
7899      archive_cmds_need_lc=no
7900      hardcode_shlibpath_var=no
7901      runpath_var='LD_RUN_PATH'
7902
7903      if test "$GCC" = yes; then
7904	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7905	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7906      else
7907	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7908	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7909      fi
7910      ;;
7911
7912    sysv5* | sco3.2v5* | sco5v6*)
7913      # Note: We can NOT use -z defs as we might desire, because we do not
7914      # link with -lc, and that would cause any symbols used from libc to
7915      # always be unresolved, which means just about no library would
7916      # ever link correctly.  If we're not using GNU ld we use -z text
7917      # though, which does catch some bad symbols but isn't as heavy-handed
7918      # as -z defs.
7919      no_undefined_flag='${wl}-z,text'
7920      allow_undefined_flag='${wl}-z,nodefs'
7921      archive_cmds_need_lc=no
7922      hardcode_shlibpath_var=no
7923      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7924      hardcode_libdir_separator=':'
7925      link_all_deplibs=yes
7926      export_dynamic_flag_spec='${wl}-Bexport'
7927      runpath_var='LD_RUN_PATH'
7928
7929      if test "$GCC" = yes; then
7930	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7931	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7932      else
7933	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7934	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7935      fi
7936      ;;
7937
7938    uts4*)
7939      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7940      hardcode_libdir_flag_spec='-L$libdir'
7941      hardcode_shlibpath_var=no
7942      ;;
7943
7944    *)
7945      ld_shlibs=no
7946      ;;
7947    esac
7948  fi
7949
7950{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7951echo "${ECHO_T}$ld_shlibs" >&6; }
7952test "$ld_shlibs" = no && can_build_shared=no
7953
7954#
7955# Do we need to explicitly link libc?
7956#
7957case "x$archive_cmds_need_lc" in
7958x|xyes)
7959  # Assume -lc should be added
7960  archive_cmds_need_lc=yes
7961
7962  if test "$enable_shared" = yes && test "$GCC" = yes; then
7963    case $archive_cmds in
7964    *'~'*)
7965      # FIXME: we may have to deal with multi-command sequences.
7966      ;;
7967    '$CC '*)
7968      # Test whether the compiler implicitly links with -lc since on some
7969      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7970      # to ld, don't add -lc before -lgcc.
7971      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7972echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7973      $rm conftest*
7974      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975
7976      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977  (eval $ac_compile) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); } 2>conftest.err; then
7981        soname=conftest
7982        lib=conftest
7983        libobjs=conftest.$ac_objext
7984        deplibs=
7985        wl=$lt_prog_compiler_wl
7986	pic_flag=$lt_prog_compiler_pic
7987        compiler_flags=-v
7988        linker_flags=-v
7989        verstring=
7990        output_objdir=.
7991        libname=conftest
7992        lt_save_allow_undefined_flag=$allow_undefined_flag
7993        allow_undefined_flag=
7994        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7995  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7996  ac_status=$?
7997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998  (exit $ac_status); }
7999        then
8000	  archive_cmds_need_lc=no
8001        else
8002	  archive_cmds_need_lc=yes
8003        fi
8004        allow_undefined_flag=$lt_save_allow_undefined_flag
8005      else
8006        cat conftest.err 1>&5
8007      fi
8008      $rm conftest*
8009      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8010echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8011      ;;
8012    esac
8013  fi
8014  ;;
8015esac
8016
8017{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8019library_names_spec=
8020libname_spec='lib$name'
8021soname_spec=
8022shrext_cmds=".so"
8023postinstall_cmds=
8024postuninstall_cmds=
8025finish_cmds=
8026finish_eval=
8027shlibpath_var=
8028shlibpath_overrides_runpath=unknown
8029version_type=none
8030dynamic_linker="$host_os ld.so"
8031sys_lib_dlsearch_path_spec="/lib /usr/lib"
8032
8033if test "$GCC" = yes; then
8034  case $host_os in
8035    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8036    *) lt_awk_arg="/^libraries:/" ;;
8037  esac
8038  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8039  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8040    # if the path contains ";" then we assume it to be the separator
8041    # otherwise default to the standard path separator (i.e. ":") - it is
8042    # assumed that no part of a normal pathname contains ";" but that should
8043    # okay in the real world where ";" in dirpaths is itself problematic.
8044    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8045  else
8046    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8047  fi
8048  # Ok, now we have the path, separated by spaces, we can step through it
8049  # and add multilib dir if necessary.
8050  lt_tmp_lt_search_path_spec=
8051  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8052  for lt_sys_path in $lt_search_path_spec; do
8053    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8054      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8055    else
8056      test -d "$lt_sys_path" && \
8057	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8058    fi
8059  done
8060  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8061BEGIN {RS=" "; FS="/|\n";} {
8062  lt_foo="";
8063  lt_count=0;
8064  for (lt_i = NF; lt_i > 0; lt_i--) {
8065    if ($lt_i != "" && $lt_i != ".") {
8066      if ($lt_i == "..") {
8067        lt_count++;
8068      } else {
8069        if (lt_count == 0) {
8070          lt_foo="/" $lt_i lt_foo;
8071        } else {
8072          lt_count--;
8073        }
8074      }
8075    }
8076  }
8077  if (lt_foo != "") { lt_freq[lt_foo]++; }
8078  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8079}'`
8080  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8081else
8082  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8083fi
8084need_lib_prefix=unknown
8085hardcode_into_libs=no
8086
8087# when you set need_version to no, make sure it does not cause -set_version
8088# flags to be left without arguments
8089need_version=unknown
8090
8091case $host_os in
8092aix3*)
8093  version_type=linux
8094  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8095  shlibpath_var=LIBPATH
8096
8097  # AIX 3 has no versioning support, so we append a major version to the name.
8098  soname_spec='${libname}${release}${shared_ext}$major'
8099  ;;
8100
8101aix4* | aix5*)
8102  version_type=linux
8103  need_lib_prefix=no
8104  need_version=no
8105  hardcode_into_libs=yes
8106  if test "$host_cpu" = ia64; then
8107    # AIX 5 supports IA64
8108    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8109    shlibpath_var=LD_LIBRARY_PATH
8110  else
8111    # With GCC up to 2.95.x, collect2 would create an import file
8112    # for dependence libraries.  The import file would start with
8113    # the line `#! .'.  This would cause the generated library to
8114    # depend on `.', always an invalid library.  This was fixed in
8115    # development snapshots of GCC prior to 3.0.
8116    case $host_os in
8117      aix4 | aix4.[01] | aix4.[01].*)
8118      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8119	   echo ' yes '
8120	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8121	:
8122      else
8123	can_build_shared=no
8124      fi
8125      ;;
8126    esac
8127    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8128    # soname into executable. Probably we can add versioning support to
8129    # collect2, so additional links can be useful in future.
8130    if test "$aix_use_runtimelinking" = yes; then
8131      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8132      # instead of lib<name>.a to let people know that these are not
8133      # typical AIX shared libraries.
8134      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8135    else
8136      # We preserve .a as extension for shared libraries through AIX4.2
8137      # and later when we are not doing run time linking.
8138      library_names_spec='${libname}${release}.a $libname.a'
8139      soname_spec='${libname}${release}${shared_ext}$major'
8140    fi
8141    shlibpath_var=LIBPATH
8142  fi
8143  ;;
8144
8145amigaos*)
8146  library_names_spec='$libname.ixlibrary $libname.a'
8147  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8148  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'
8149  ;;
8150
8151beos*)
8152  library_names_spec='${libname}${shared_ext}'
8153  dynamic_linker="$host_os ld.so"
8154  shlibpath_var=LIBRARY_PATH
8155  ;;
8156
8157bsdi[45]*)
8158  version_type=linux
8159  need_version=no
8160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161  soname_spec='${libname}${release}${shared_ext}$major'
8162  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8163  shlibpath_var=LD_LIBRARY_PATH
8164  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8165  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8166  # the default ld.so.conf also contains /usr/contrib/lib and
8167  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8168  # libtool to hard-code these into programs
8169  ;;
8170
8171cygwin* | mingw* | pw32*)
8172  version_type=windows
8173  shrext_cmds=".dll"
8174  need_version=no
8175  need_lib_prefix=no
8176
8177  case $GCC,$host_os in
8178  yes,cygwin* | yes,mingw* | yes,pw32*)
8179    library_names_spec='$libname.dll.a'
8180    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8181    postinstall_cmds='base_file=`basename \${file}`~
8182      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8183      dldir=$destdir/`dirname \$dlpath`~
8184      test -d \$dldir || mkdir -p \$dldir~
8185      $install_prog $dir/$dlname \$dldir/$dlname~
8186      chmod a+x \$dldir/$dlname'
8187    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8188      dlpath=$dir/\$dldll~
8189       $rm \$dlpath'
8190    shlibpath_overrides_runpath=yes
8191
8192    case $host_os in
8193    cygwin*)
8194      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8195      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8196      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8197      ;;
8198    mingw*)
8199      # MinGW DLLs use traditional 'lib' prefix
8200      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8202      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8203        # It is most probably a Windows format PATH printed by
8204        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8205        # path with ; separators, and with drive letters. We can handle the
8206        # drive letters (cygwin fileutils understands them), so leave them,
8207        # especially as we might pass files found there to a mingw objdump,
8208        # which wouldn't understand a cygwinified path. Ahh.
8209        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8210      else
8211        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8212      fi
8213      ;;
8214    pw32*)
8215      # pw32 DLLs use 'pw' prefix rather than 'lib'
8216      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8217      ;;
8218    esac
8219    ;;
8220
8221  *)
8222    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8223    ;;
8224  esac
8225  dynamic_linker='Win32 ld.exe'
8226  # FIXME: first we should search . and the directory the executable is in
8227  shlibpath_var=PATH
8228  ;;
8229
8230darwin* | rhapsody*)
8231  dynamic_linker="$host_os dyld"
8232  version_type=darwin
8233  need_lib_prefix=no
8234  need_version=no
8235  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8236  soname_spec='${libname}${release}${major}$shared_ext'
8237  shlibpath_overrides_runpath=yes
8238  shlibpath_var=DYLD_LIBRARY_PATH
8239  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8240
8241  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8242  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8243  ;;
8244
8245dgux*)
8246  version_type=linux
8247  need_lib_prefix=no
8248  need_version=no
8249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8250  soname_spec='${libname}${release}${shared_ext}$major'
8251  shlibpath_var=LD_LIBRARY_PATH
8252  ;;
8253
8254freebsd1*)
8255  dynamic_linker=no
8256  ;;
8257
8258freebsd* | dragonfly*)
8259  # DragonFly does not have aout.  When/if they implement a new
8260  # versioning mechanism, adjust this.
8261  if test -x /usr/bin/objformat; then
8262    objformat=`/usr/bin/objformat`
8263  else
8264    case $host_os in
8265    freebsd[123]*) objformat=aout ;;
8266    *) objformat=elf ;;
8267    esac
8268  fi
8269  version_type=freebsd-$objformat
8270  case $version_type in
8271    freebsd-elf*)
8272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8273      need_version=no
8274      need_lib_prefix=no
8275      ;;
8276    freebsd-*)
8277      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8278      need_version=yes
8279      ;;
8280  esac
8281  shlibpath_var=LD_LIBRARY_PATH
8282  case $host_os in
8283  freebsd2*)
8284    shlibpath_overrides_runpath=yes
8285    ;;
8286  freebsd3.[01]* | freebsdelf3.[01]*)
8287    shlibpath_overrides_runpath=yes
8288    hardcode_into_libs=yes
8289    ;;
8290  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8291  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8292    shlibpath_overrides_runpath=no
8293    hardcode_into_libs=yes
8294    ;;
8295  *) # from 4.6 on, and DragonFly
8296    shlibpath_overrides_runpath=yes
8297    hardcode_into_libs=yes
8298    ;;
8299  esac
8300  ;;
8301
8302gnu*)
8303  version_type=linux
8304  need_lib_prefix=no
8305  need_version=no
8306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8307  soname_spec='${libname}${release}${shared_ext}$major'
8308  shlibpath_var=LD_LIBRARY_PATH
8309  hardcode_into_libs=yes
8310  ;;
8311
8312hpux9* | hpux10* | hpux11*)
8313  # Give a soname corresponding to the major version so that dld.sl refuses to
8314  # link against other versions.
8315  version_type=sunos
8316  need_lib_prefix=no
8317  need_version=no
8318  case $host_cpu in
8319  ia64*)
8320    shrext_cmds='.so'
8321    hardcode_into_libs=yes
8322    dynamic_linker="$host_os dld.so"
8323    shlibpath_var=LD_LIBRARY_PATH
8324    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326    soname_spec='${libname}${release}${shared_ext}$major'
8327    if test "X$HPUX_IA64_MODE" = X32; then
8328      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8329    else
8330      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8331    fi
8332    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8333    ;;
8334   hppa*64*)
8335     shrext_cmds='.sl'
8336     hardcode_into_libs=yes
8337     dynamic_linker="$host_os dld.sl"
8338     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341     soname_spec='${libname}${release}${shared_ext}$major'
8342     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8344     ;;
8345   *)
8346    shrext_cmds='.sl'
8347    dynamic_linker="$host_os dld.sl"
8348    shlibpath_var=SHLIB_PATH
8349    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351    soname_spec='${libname}${release}${shared_ext}$major'
8352    ;;
8353  esac
8354  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8355  postinstall_cmds='chmod 555 $lib'
8356  ;;
8357
8358interix[3-9]*)
8359  version_type=linux
8360  need_lib_prefix=no
8361  need_version=no
8362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8363  soname_spec='${libname}${release}${shared_ext}$major'
8364  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8365  shlibpath_var=LD_LIBRARY_PATH
8366  shlibpath_overrides_runpath=no
8367  hardcode_into_libs=yes
8368  ;;
8369
8370irix5* | irix6* | nonstopux*)
8371  case $host_os in
8372    nonstopux*) version_type=nonstopux ;;
8373    *)
8374	if test "$lt_cv_prog_gnu_ld" = yes; then
8375		version_type=linux
8376	else
8377		version_type=irix
8378	fi ;;
8379  esac
8380  need_lib_prefix=no
8381  need_version=no
8382  soname_spec='${libname}${release}${shared_ext}$major'
8383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8384  case $host_os in
8385  irix5* | nonstopux*)
8386    libsuff= shlibsuff=
8387    ;;
8388  *)
8389    case $LD in # libtool.m4 will add one of these switches to LD
8390    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8391      libsuff= shlibsuff= libmagic=32-bit;;
8392    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8393      libsuff=32 shlibsuff=N32 libmagic=N32;;
8394    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8395      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8396    *) libsuff= shlibsuff= libmagic=never-match;;
8397    esac
8398    ;;
8399  esac
8400  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8401  shlibpath_overrides_runpath=no
8402  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8403  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8404  hardcode_into_libs=yes
8405  ;;
8406
8407# No shared lib support for Linux oldld, aout, or coff.
8408linux*oldld* | linux*aout* | linux*coff*)
8409  dynamic_linker=no
8410  ;;
8411
8412# This must be Linux ELF.
8413linux* | k*bsd*-gnu)
8414  version_type=linux
8415  need_lib_prefix=no
8416  need_version=no
8417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418  soname_spec='${libname}${release}${shared_ext}$major'
8419  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8420  shlibpath_var=LD_LIBRARY_PATH
8421  shlibpath_overrides_runpath=no
8422  # This implies no fast_install, which is unacceptable.
8423  # Some rework will be needed to allow for fast_install
8424  # before this can be enabled.
8425  hardcode_into_libs=yes
8426
8427  # Append ld.so.conf contents to the search path
8428  if test -f /etc/ld.so.conf; then
8429    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' ' '`
8430    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8431  fi
8432
8433  # We used to test for /lib/ld.so.1 and disable shared libraries on
8434  # powerpc, because MkLinux only supported shared libraries with the
8435  # GNU dynamic linker.  Since this was broken with cross compilers,
8436  # most powerpc-linux boxes support dynamic linking these days and
8437  # people can always --disable-shared, the test was removed, and we
8438  # assume the GNU/Linux dynamic linker is in use.
8439  dynamic_linker='GNU/Linux ld.so'
8440  ;;
8441
8442netbsd*)
8443  version_type=sunos
8444  need_lib_prefix=no
8445  need_version=no
8446  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8448    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8449    dynamic_linker='NetBSD (a.out) ld.so'
8450  else
8451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8452    soname_spec='${libname}${release}${shared_ext}$major'
8453    dynamic_linker='NetBSD ld.elf_so'
8454  fi
8455  shlibpath_var=LD_LIBRARY_PATH
8456  shlibpath_overrides_runpath=yes
8457  hardcode_into_libs=yes
8458  ;;
8459
8460newsos6)
8461  version_type=linux
8462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463  shlibpath_var=LD_LIBRARY_PATH
8464  shlibpath_overrides_runpath=yes
8465  ;;
8466
8467nto-qnx*)
8468  version_type=linux
8469  need_lib_prefix=no
8470  need_version=no
8471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8472  soname_spec='${libname}${release}${shared_ext}$major'
8473  shlibpath_var=LD_LIBRARY_PATH
8474  shlibpath_overrides_runpath=yes
8475  ;;
8476
8477openbsd*)
8478  version_type=sunos
8479  sys_lib_dlsearch_path_spec="/usr/lib"
8480  need_lib_prefix=no
8481  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8482  case $host_os in
8483    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8484    *)                         need_version=no  ;;
8485  esac
8486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8487  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8488  shlibpath_var=LD_LIBRARY_PATH
8489  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8490    case $host_os in
8491      openbsd2.[89] | openbsd2.[89].*)
8492	shlibpath_overrides_runpath=no
8493	;;
8494      *)
8495	shlibpath_overrides_runpath=yes
8496	;;
8497      esac
8498  else
8499    shlibpath_overrides_runpath=yes
8500  fi
8501  ;;
8502
8503os2*)
8504  libname_spec='$name'
8505  shrext_cmds=".dll"
8506  need_lib_prefix=no
8507  library_names_spec='$libname${shared_ext} $libname.a'
8508  dynamic_linker='OS/2 ld.exe'
8509  shlibpath_var=LIBPATH
8510  ;;
8511
8512osf3* | osf4* | osf5*)
8513  version_type=osf
8514  need_lib_prefix=no
8515  need_version=no
8516  soname_spec='${libname}${release}${shared_ext}$major'
8517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8518  shlibpath_var=LD_LIBRARY_PATH
8519  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8520  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8521  ;;
8522
8523rdos*)
8524  dynamic_linker=no
8525  ;;
8526
8527solaris*)
8528  version_type=linux
8529  need_lib_prefix=no
8530  need_version=no
8531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532  soname_spec='${libname}${release}${shared_ext}$major'
8533  shlibpath_var=LD_LIBRARY_PATH
8534  shlibpath_overrides_runpath=yes
8535  hardcode_into_libs=yes
8536  # ldd complains unless libraries are executable
8537  postinstall_cmds='chmod +x $lib'
8538  ;;
8539
8540sunos4*)
8541  version_type=sunos
8542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8543  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8544  shlibpath_var=LD_LIBRARY_PATH
8545  shlibpath_overrides_runpath=yes
8546  if test "$with_gnu_ld" = yes; then
8547    need_lib_prefix=no
8548  fi
8549  need_version=yes
8550  ;;
8551
8552sysv4 | sysv4.3*)
8553  version_type=linux
8554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555  soname_spec='${libname}${release}${shared_ext}$major'
8556  shlibpath_var=LD_LIBRARY_PATH
8557  case $host_vendor in
8558    sni)
8559      shlibpath_overrides_runpath=no
8560      need_lib_prefix=no
8561      export_dynamic_flag_spec='${wl}-Blargedynsym'
8562      runpath_var=LD_RUN_PATH
8563      ;;
8564    siemens)
8565      need_lib_prefix=no
8566      ;;
8567    motorola)
8568      need_lib_prefix=no
8569      need_version=no
8570      shlibpath_overrides_runpath=no
8571      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8572      ;;
8573  esac
8574  ;;
8575
8576sysv4*MP*)
8577  if test -d /usr/nec ;then
8578    version_type=linux
8579    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8580    soname_spec='$libname${shared_ext}.$major'
8581    shlibpath_var=LD_LIBRARY_PATH
8582  fi
8583  ;;
8584
8585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8586  version_type=freebsd-elf
8587  need_lib_prefix=no
8588  need_version=no
8589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8590  soname_spec='${libname}${release}${shared_ext}$major'
8591  shlibpath_var=LD_LIBRARY_PATH
8592  hardcode_into_libs=yes
8593  if test "$with_gnu_ld" = yes; then
8594    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8595    shlibpath_overrides_runpath=no
8596  else
8597    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8598    shlibpath_overrides_runpath=yes
8599    case $host_os in
8600      sco3.2v5*)
8601        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8602	;;
8603    esac
8604  fi
8605  sys_lib_dlsearch_path_spec='/usr/lib'
8606  ;;
8607
8608uts4*)
8609  version_type=linux
8610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611  soname_spec='${libname}${release}${shared_ext}$major'
8612  shlibpath_var=LD_LIBRARY_PATH
8613  ;;
8614
8615*)
8616  dynamic_linker=no
8617  ;;
8618esac
8619{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8620echo "${ECHO_T}$dynamic_linker" >&6; }
8621test "$dynamic_linker" = no && can_build_shared=no
8622
8623variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8624if test "$GCC" = yes; then
8625  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8626fi
8627
8628{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8629echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8630hardcode_action=
8631if test -n "$hardcode_libdir_flag_spec" || \
8632   test -n "$runpath_var" || \
8633   test "X$hardcode_automatic" = "Xyes" ; then
8634
8635  # We can hardcode non-existant directories.
8636  if test "$hardcode_direct" != no &&
8637     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8638     # have to relink, otherwise we might link with an installed library
8639     # when we should be linking with a yet-to-be-installed one
8640     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8641     test "$hardcode_minus_L" != no; then
8642    # Linking always hardcodes the temporary library directory.
8643    hardcode_action=relink
8644  else
8645    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8646    hardcode_action=immediate
8647  fi
8648else
8649  # We cannot hardcode anything, or else we can only hardcode existing
8650  # directories.
8651  hardcode_action=unsupported
8652fi
8653{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8654echo "${ECHO_T}$hardcode_action" >&6; }
8655
8656if test "$hardcode_action" = relink; then
8657  # Fast installation is not supported
8658  enable_fast_install=no
8659elif test "$shlibpath_overrides_runpath" = yes ||
8660     test "$enable_shared" = no; then
8661  # Fast installation is not necessary
8662  enable_fast_install=needless
8663fi
8664
8665striplib=
8666old_striplib=
8667{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8668echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8669if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8670  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8671  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8672  { echo "$as_me:$LINENO: result: yes" >&5
8673echo "${ECHO_T}yes" >&6; }
8674else
8675# FIXME - insert some real tests, host_os isn't really good enough
8676  case $host_os in
8677   darwin*)
8678       if test -n "$STRIP" ; then
8679         striplib="$STRIP -x"
8680         old_striplib="$STRIP -S"
8681         { echo "$as_me:$LINENO: result: yes" >&5
8682echo "${ECHO_T}yes" >&6; }
8683       else
8684  { echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6; }
8686fi
8687       ;;
8688   *)
8689  { echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6; }
8691    ;;
8692  esac
8693fi
8694
8695if test "x$enable_dlopen" != xyes; then
8696  enable_dlopen=unknown
8697  enable_dlopen_self=unknown
8698  enable_dlopen_self_static=unknown
8699else
8700  lt_cv_dlopen=no
8701  lt_cv_dlopen_libs=
8702
8703  case $host_os in
8704  beos*)
8705    lt_cv_dlopen="load_add_on"
8706    lt_cv_dlopen_libs=
8707    lt_cv_dlopen_self=yes
8708    ;;
8709
8710  mingw* | pw32*)
8711    lt_cv_dlopen="LoadLibrary"
8712    lt_cv_dlopen_libs=
8713   ;;
8714
8715  cygwin*)
8716    lt_cv_dlopen="dlopen"
8717    lt_cv_dlopen_libs=
8718   ;;
8719
8720  darwin*)
8721  # if libdl is installed we need to link against it
8722    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8723echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8724if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8725  echo $ECHO_N "(cached) $ECHO_C" >&6
8726else
8727  ac_check_lib_save_LIBS=$LIBS
8728LIBS="-ldl  $LIBS"
8729cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h.  */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h.  */
8735
8736/* Override any GCC internal prototype to avoid an error.
8737   Use char because int might match the return type of a GCC
8738   builtin and then its argument prototype would still apply.  */
8739#ifdef __cplusplus
8740extern "C"
8741#endif
8742char dlopen ();
8743int
8744main ()
8745{
8746return dlopen ();
8747  ;
8748  return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (ac_try="$ac_link"
8753case "(($ac_try" in
8754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755  *) ac_try_echo=$ac_try;;
8756esac
8757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758  (eval "$ac_link") 2>conftest.er1
8759  ac_status=$?
8760  grep -v '^ *+' conftest.er1 >conftest.err
8761  rm -f conftest.er1
8762  cat conftest.err >&5
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } && {
8765	 test -z "$ac_c_werror_flag" ||
8766	 test ! -s conftest.err
8767       } && test -s conftest$ac_exeext &&
8768       $as_test_x conftest$ac_exeext; then
8769  ac_cv_lib_dl_dlopen=yes
8770else
8771  echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
8774	ac_cv_lib_dl_dlopen=no
8775fi
8776
8777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778      conftest$ac_exeext conftest.$ac_ext
8779LIBS=$ac_check_lib_save_LIBS
8780fi
8781{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8782echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8783if test $ac_cv_lib_dl_dlopen = yes; then
8784  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8785else
8786
8787    lt_cv_dlopen="dyld"
8788    lt_cv_dlopen_libs=
8789    lt_cv_dlopen_self=yes
8790
8791fi
8792
8793   ;;
8794
8795  *)
8796    { echo "$as_me:$LINENO: checking for shl_load" >&5
8797echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8798if test "${ac_cv_func_shl_load+set}" = set; then
8799  echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801  cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h.  */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h.  */
8807/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8809#define shl_load innocuous_shl_load
8810
8811/* System header to define __stub macros and hopefully few prototypes,
8812    which can conflict with char shl_load (); below.
8813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814    <limits.h> exists even on freestanding compilers.  */
8815
8816#ifdef __STDC__
8817# include <limits.h>
8818#else
8819# include <assert.h>
8820#endif
8821
8822#undef shl_load
8823
8824/* Override any GCC internal prototype to avoid an error.
8825   Use char because int might match the return type of a GCC
8826   builtin and then its argument prototype would still apply.  */
8827#ifdef __cplusplus
8828extern "C"
8829#endif
8830char shl_load ();
8831/* The GNU C library defines this for functions which it implements
8832    to always fail with ENOSYS.  Some functions are actually named
8833    something starting with __ and the normal name is an alias.  */
8834#if defined __stub_shl_load || defined __stub___shl_load
8835choke me
8836#endif
8837
8838int
8839main ()
8840{
8841return shl_load ();
8842  ;
8843  return 0;
8844}
8845_ACEOF
8846rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (ac_try="$ac_link"
8848case "(($ac_try" in
8849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850  *) ac_try_echo=$ac_try;;
8851esac
8852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853  (eval "$ac_link") 2>conftest.er1
8854  ac_status=$?
8855  grep -v '^ *+' conftest.er1 >conftest.err
8856  rm -f conftest.er1
8857  cat conftest.err >&5
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); } && {
8860	 test -z "$ac_c_werror_flag" ||
8861	 test ! -s conftest.err
8862       } && test -s conftest$ac_exeext &&
8863       $as_test_x conftest$ac_exeext; then
8864  ac_cv_func_shl_load=yes
8865else
8866  echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869	ac_cv_func_shl_load=no
8870fi
8871
8872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873      conftest$ac_exeext conftest.$ac_ext
8874fi
8875{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8876echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8877if test $ac_cv_func_shl_load = yes; then
8878  lt_cv_dlopen="shl_load"
8879else
8880  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8881echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8882if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8883  echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885  ac_check_lib_save_LIBS=$LIBS
8886LIBS="-ldld  $LIBS"
8887cat >conftest.$ac_ext <<_ACEOF
8888/* confdefs.h.  */
8889_ACEOF
8890cat confdefs.h >>conftest.$ac_ext
8891cat >>conftest.$ac_ext <<_ACEOF
8892/* end confdefs.h.  */
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 shl_load ();
8901int
8902main ()
8903{
8904return shl_load ();
8905  ;
8906  return 0;
8907}
8908_ACEOF
8909rm -f conftest.$ac_objext conftest$ac_exeext
8910if { (ac_try="$ac_link"
8911case "(($ac_try" in
8912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913  *) ac_try_echo=$ac_try;;
8914esac
8915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916  (eval "$ac_link") 2>conftest.er1
8917  ac_status=$?
8918  grep -v '^ *+' conftest.er1 >conftest.err
8919  rm -f conftest.er1
8920  cat conftest.err >&5
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); } && {
8923	 test -z "$ac_c_werror_flag" ||
8924	 test ! -s conftest.err
8925       } && test -s conftest$ac_exeext &&
8926       $as_test_x conftest$ac_exeext; then
8927  ac_cv_lib_dld_shl_load=yes
8928else
8929  echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
8932	ac_cv_lib_dld_shl_load=no
8933fi
8934
8935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8936      conftest$ac_exeext conftest.$ac_ext
8937LIBS=$ac_check_lib_save_LIBS
8938fi
8939{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8940echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8941if test $ac_cv_lib_dld_shl_load = yes; then
8942  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8943else
8944  { echo "$as_me:$LINENO: checking for dlopen" >&5
8945echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8946if test "${ac_cv_func_dlopen+set}" = set; then
8947  echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
8949  cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h.  */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h.  */
8955/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8956   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8957#define dlopen innocuous_dlopen
8958
8959/* System header to define __stub macros and hopefully few prototypes,
8960    which can conflict with char dlopen (); below.
8961    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962    <limits.h> exists even on freestanding compilers.  */
8963
8964#ifdef __STDC__
8965# include <limits.h>
8966#else
8967# include <assert.h>
8968#endif
8969
8970#undef dlopen
8971
8972/* Override any GCC internal prototype to avoid an error.
8973   Use char because int might match the return type of a GCC
8974   builtin and then its argument prototype would still apply.  */
8975#ifdef __cplusplus
8976extern "C"
8977#endif
8978char dlopen ();
8979/* The GNU C library defines this for functions which it implements
8980    to always fail with ENOSYS.  Some functions are actually named
8981    something starting with __ and the normal name is an alias.  */
8982#if defined __stub_dlopen || defined __stub___dlopen
8983choke me
8984#endif
8985
8986int
8987main ()
8988{
8989return dlopen ();
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994rm -f conftest.$ac_objext conftest$ac_exeext
8995if { (ac_try="$ac_link"
8996case "(($ac_try" in
8997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998  *) ac_try_echo=$ac_try;;
8999esac
9000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001  (eval "$ac_link") 2>conftest.er1
9002  ac_status=$?
9003  grep -v '^ *+' conftest.er1 >conftest.err
9004  rm -f conftest.er1
9005  cat conftest.err >&5
9006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); } && {
9008	 test -z "$ac_c_werror_flag" ||
9009	 test ! -s conftest.err
9010       } && test -s conftest$ac_exeext &&
9011       $as_test_x conftest$ac_exeext; then
9012  ac_cv_func_dlopen=yes
9013else
9014  echo "$as_me: failed program was:" >&5
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
9017	ac_cv_func_dlopen=no
9018fi
9019
9020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021      conftest$ac_exeext conftest.$ac_ext
9022fi
9023{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9024echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9025if test $ac_cv_func_dlopen = yes; then
9026  lt_cv_dlopen="dlopen"
9027else
9028  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9030if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9031  echo $ECHO_N "(cached) $ECHO_C" >&6
9032else
9033  ac_check_lib_save_LIBS=$LIBS
9034LIBS="-ldl  $LIBS"
9035cat >conftest.$ac_ext <<_ACEOF
9036/* confdefs.h.  */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h.  */
9041
9042/* Override any GCC internal prototype to avoid an error.
9043   Use char because int might match the return type of a GCC
9044   builtin and then its argument prototype would still apply.  */
9045#ifdef __cplusplus
9046extern "C"
9047#endif
9048char dlopen ();
9049int
9050main ()
9051{
9052return dlopen ();
9053  ;
9054  return 0;
9055}
9056_ACEOF
9057rm -f conftest.$ac_objext conftest$ac_exeext
9058if { (ac_try="$ac_link"
9059case "(($ac_try" in
9060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061  *) ac_try_echo=$ac_try;;
9062esac
9063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064  (eval "$ac_link") 2>conftest.er1
9065  ac_status=$?
9066  grep -v '^ *+' conftest.er1 >conftest.err
9067  rm -f conftest.er1
9068  cat conftest.err >&5
9069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070  (exit $ac_status); } && {
9071	 test -z "$ac_c_werror_flag" ||
9072	 test ! -s conftest.err
9073       } && test -s conftest$ac_exeext &&
9074       $as_test_x conftest$ac_exeext; then
9075  ac_cv_lib_dl_dlopen=yes
9076else
9077  echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
9080	ac_cv_lib_dl_dlopen=no
9081fi
9082
9083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084      conftest$ac_exeext conftest.$ac_ext
9085LIBS=$ac_check_lib_save_LIBS
9086fi
9087{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9088echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9089if test $ac_cv_lib_dl_dlopen = yes; then
9090  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9091else
9092  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9093echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9094if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9095  echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097  ac_check_lib_save_LIBS=$LIBS
9098LIBS="-lsvld  $LIBS"
9099cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h.  */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h.  */
9105
9106/* Override any GCC internal prototype to avoid an error.
9107   Use char because int might match the return type of a GCC
9108   builtin and then its argument prototype would still apply.  */
9109#ifdef __cplusplus
9110extern "C"
9111#endif
9112char dlopen ();
9113int
9114main ()
9115{
9116return dlopen ();
9117  ;
9118  return 0;
9119}
9120_ACEOF
9121rm -f conftest.$ac_objext conftest$ac_exeext
9122if { (ac_try="$ac_link"
9123case "(($ac_try" in
9124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125  *) ac_try_echo=$ac_try;;
9126esac
9127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128  (eval "$ac_link") 2>conftest.er1
9129  ac_status=$?
9130  grep -v '^ *+' conftest.er1 >conftest.err
9131  rm -f conftest.er1
9132  cat conftest.err >&5
9133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134  (exit $ac_status); } && {
9135	 test -z "$ac_c_werror_flag" ||
9136	 test ! -s conftest.err
9137       } && test -s conftest$ac_exeext &&
9138       $as_test_x conftest$ac_exeext; then
9139  ac_cv_lib_svld_dlopen=yes
9140else
9141  echo "$as_me: failed program was:" >&5
9142sed 's/^/| /' conftest.$ac_ext >&5
9143
9144	ac_cv_lib_svld_dlopen=no
9145fi
9146
9147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9148      conftest$ac_exeext conftest.$ac_ext
9149LIBS=$ac_check_lib_save_LIBS
9150fi
9151{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9152echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9153if test $ac_cv_lib_svld_dlopen = yes; then
9154  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9155else
9156  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9157echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9158if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9159  echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161  ac_check_lib_save_LIBS=$LIBS
9162LIBS="-ldld  $LIBS"
9163cat >conftest.$ac_ext <<_ACEOF
9164/* confdefs.h.  */
9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
9168/* end confdefs.h.  */
9169
9170/* Override any GCC internal prototype to avoid an error.
9171   Use char because int might match the return type of a GCC
9172   builtin and then its argument prototype would still apply.  */
9173#ifdef __cplusplus
9174extern "C"
9175#endif
9176char dld_link ();
9177int
9178main ()
9179{
9180return dld_link ();
9181  ;
9182  return 0;
9183}
9184_ACEOF
9185rm -f conftest.$ac_objext conftest$ac_exeext
9186if { (ac_try="$ac_link"
9187case "(($ac_try" in
9188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189  *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192  (eval "$ac_link") 2>conftest.er1
9193  ac_status=$?
9194  grep -v '^ *+' conftest.er1 >conftest.err
9195  rm -f conftest.er1
9196  cat conftest.err >&5
9197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198  (exit $ac_status); } && {
9199	 test -z "$ac_c_werror_flag" ||
9200	 test ! -s conftest.err
9201       } && test -s conftest$ac_exeext &&
9202       $as_test_x conftest$ac_exeext; then
9203  ac_cv_lib_dld_dld_link=yes
9204else
9205  echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208	ac_cv_lib_dld_dld_link=no
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212      conftest$ac_exeext conftest.$ac_ext
9213LIBS=$ac_check_lib_save_LIBS
9214fi
9215{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9216echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9217if test $ac_cv_lib_dld_dld_link = yes; then
9218  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9219fi
9220
9221
9222fi
9223
9224
9225fi
9226
9227
9228fi
9229
9230
9231fi
9232
9233
9234fi
9235
9236    ;;
9237  esac
9238
9239  if test "x$lt_cv_dlopen" != xno; then
9240    enable_dlopen=yes
9241  else
9242    enable_dlopen=no
9243  fi
9244
9245  case $lt_cv_dlopen in
9246  dlopen)
9247    save_CPPFLAGS="$CPPFLAGS"
9248    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9249
9250    save_LDFLAGS="$LDFLAGS"
9251    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9252
9253    save_LIBS="$LIBS"
9254    LIBS="$lt_cv_dlopen_libs $LIBS"
9255
9256    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9257echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9258if test "${lt_cv_dlopen_self+set}" = set; then
9259  echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261  	  if test "$cross_compiling" = yes; then :
9262  lt_cv_dlopen_self=cross
9263else
9264  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9265  lt_status=$lt_dlunknown
9266  cat > conftest.$ac_ext <<EOF
9267#line 9267 "configure"
9268#include "confdefs.h"
9269
9270#if HAVE_DLFCN_H
9271#include <dlfcn.h>
9272#endif
9273
9274#include <stdio.h>
9275
9276#ifdef RTLD_GLOBAL
9277#  define LT_DLGLOBAL		RTLD_GLOBAL
9278#else
9279#  ifdef DL_GLOBAL
9280#    define LT_DLGLOBAL		DL_GLOBAL
9281#  else
9282#    define LT_DLGLOBAL		0
9283#  endif
9284#endif
9285
9286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9287   find out it does not work in some platform. */
9288#ifndef LT_DLLAZY_OR_NOW
9289#  ifdef RTLD_LAZY
9290#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9291#  else
9292#    ifdef DL_LAZY
9293#      define LT_DLLAZY_OR_NOW		DL_LAZY
9294#    else
9295#      ifdef RTLD_NOW
9296#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9297#      else
9298#        ifdef DL_NOW
9299#          define LT_DLLAZY_OR_NOW	DL_NOW
9300#        else
9301#          define LT_DLLAZY_OR_NOW	0
9302#        endif
9303#      endif
9304#    endif
9305#  endif
9306#endif
9307
9308#ifdef __cplusplus
9309extern "C" void exit (int);
9310#endif
9311
9312void fnord() { int i=42;}
9313int main ()
9314{
9315  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9316  int status = $lt_dlunknown;
9317
9318  if (self)
9319    {
9320      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9321      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9322      /* dlclose (self); */
9323    }
9324  else
9325    puts (dlerror ());
9326
9327    exit (status);
9328}
9329EOF
9330  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331  (eval $ac_link) 2>&5
9332  ac_status=$?
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335    (./conftest; exit; ) >&5 2>/dev/null
9336    lt_status=$?
9337    case x$lt_status in
9338      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9339      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9340      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9341    esac
9342  else :
9343    # compilation failed
9344    lt_cv_dlopen_self=no
9345  fi
9346fi
9347rm -fr conftest*
9348
9349
9350fi
9351{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9352echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9353
9354    if test "x$lt_cv_dlopen_self" = xyes; then
9355      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9356      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9357echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9358if test "${lt_cv_dlopen_self_static+set}" = set; then
9359  echo $ECHO_N "(cached) $ECHO_C" >&6
9360else
9361  	  if test "$cross_compiling" = yes; then :
9362  lt_cv_dlopen_self_static=cross
9363else
9364  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9365  lt_status=$lt_dlunknown
9366  cat > conftest.$ac_ext <<EOF
9367#line 9367 "configure"
9368#include "confdefs.h"
9369
9370#if HAVE_DLFCN_H
9371#include <dlfcn.h>
9372#endif
9373
9374#include <stdio.h>
9375
9376#ifdef RTLD_GLOBAL
9377#  define LT_DLGLOBAL		RTLD_GLOBAL
9378#else
9379#  ifdef DL_GLOBAL
9380#    define LT_DLGLOBAL		DL_GLOBAL
9381#  else
9382#    define LT_DLGLOBAL		0
9383#  endif
9384#endif
9385
9386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9387   find out it does not work in some platform. */
9388#ifndef LT_DLLAZY_OR_NOW
9389#  ifdef RTLD_LAZY
9390#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9391#  else
9392#    ifdef DL_LAZY
9393#      define LT_DLLAZY_OR_NOW		DL_LAZY
9394#    else
9395#      ifdef RTLD_NOW
9396#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9397#      else
9398#        ifdef DL_NOW
9399#          define LT_DLLAZY_OR_NOW	DL_NOW
9400#        else
9401#          define LT_DLLAZY_OR_NOW	0
9402#        endif
9403#      endif
9404#    endif
9405#  endif
9406#endif
9407
9408#ifdef __cplusplus
9409extern "C" void exit (int);
9410#endif
9411
9412void fnord() { int i=42;}
9413int main ()
9414{
9415  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9416  int status = $lt_dlunknown;
9417
9418  if (self)
9419    {
9420      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9421      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9422      /* dlclose (self); */
9423    }
9424  else
9425    puts (dlerror ());
9426
9427    exit (status);
9428}
9429EOF
9430  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431  (eval $ac_link) 2>&5
9432  ac_status=$?
9433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9435    (./conftest; exit; ) >&5 2>/dev/null
9436    lt_status=$?
9437    case x$lt_status in
9438      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9439      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9440      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9441    esac
9442  else :
9443    # compilation failed
9444    lt_cv_dlopen_self_static=no
9445  fi
9446fi
9447rm -fr conftest*
9448
9449
9450fi
9451{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9452echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9453    fi
9454
9455    CPPFLAGS="$save_CPPFLAGS"
9456    LDFLAGS="$save_LDFLAGS"
9457    LIBS="$save_LIBS"
9458    ;;
9459  esac
9460
9461  case $lt_cv_dlopen_self in
9462  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9463  *) enable_dlopen_self=unknown ;;
9464  esac
9465
9466  case $lt_cv_dlopen_self_static in
9467  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9468  *) enable_dlopen_self_static=unknown ;;
9469  esac
9470fi
9471
9472
9473# Report which library types will actually be built
9474{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9475echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9476{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9477echo "${ECHO_T}$can_build_shared" >&6; }
9478
9479{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9480echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9481test "$can_build_shared" = "no" && enable_shared=no
9482
9483# On AIX, shared libraries and static libraries use the same namespace, and
9484# are all built from PIC.
9485case $host_os in
9486aix3*)
9487  test "$enable_shared" = yes && enable_static=no
9488  if test -n "$RANLIB"; then
9489    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9490    postinstall_cmds='$RANLIB $lib'
9491  fi
9492  ;;
9493
9494aix4* | aix5*)
9495  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9496    test "$enable_shared" = yes && enable_static=no
9497  fi
9498    ;;
9499esac
9500{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9501echo "${ECHO_T}$enable_shared" >&6; }
9502
9503{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9504echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9505# Make sure either enable_shared or enable_static is yes.
9506test "$enable_shared" = yes || enable_static=yes
9507{ echo "$as_me:$LINENO: result: $enable_static" >&5
9508echo "${ECHO_T}$enable_static" >&6; }
9509
9510# The else clause should only fire when bootstrapping the
9511# libtool distribution, otherwise you forgot to ship ltmain.sh
9512# with your package, and you will get complaints that there are
9513# no rules to generate ltmain.sh.
9514if test -f "$ltmain"; then
9515  # See if we are running on zsh, and set the options which allow our commands through
9516  # without removal of \ escapes.
9517  if test -n "${ZSH_VERSION+set}" ; then
9518    setopt NO_GLOB_SUBST
9519  fi
9520  # Now quote all the things that may contain metacharacters while being
9521  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9522  # variables and quote the copies for generation of the libtool script.
9523  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9524    SED SHELL STRIP \
9525    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9526    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9527    deplibs_check_method reload_flag reload_cmds need_locks \
9528    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9529    lt_cv_sys_global_symbol_to_c_name_address \
9530    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9531    old_postinstall_cmds old_postuninstall_cmds \
9532    compiler \
9533    CC \
9534    LD \
9535    lt_prog_compiler_wl \
9536    lt_prog_compiler_pic \
9537    lt_prog_compiler_static \
9538    lt_prog_compiler_no_builtin_flag \
9539    export_dynamic_flag_spec \
9540    thread_safe_flag_spec \
9541    whole_archive_flag_spec \
9542    enable_shared_with_static_runtimes \
9543    old_archive_cmds \
9544    old_archive_from_new_cmds \
9545    predep_objects \
9546    postdep_objects \
9547    predeps \
9548    postdeps \
9549    compiler_lib_search_path \
9550    archive_cmds \
9551    archive_expsym_cmds \
9552    postinstall_cmds \
9553    postuninstall_cmds \
9554    old_archive_from_expsyms_cmds \
9555    allow_undefined_flag \
9556    no_undefined_flag \
9557    export_symbols_cmds \
9558    hardcode_libdir_flag_spec \
9559    hardcode_libdir_flag_spec_ld \
9560    hardcode_libdir_separator \
9561    hardcode_automatic \
9562    module_cmds \
9563    module_expsym_cmds \
9564    lt_cv_prog_compiler_c_o \
9565    fix_srcfile_path \
9566    exclude_expsyms \
9567    include_expsyms; do
9568
9569    case $var in
9570    old_archive_cmds | \
9571    old_archive_from_new_cmds | \
9572    archive_cmds | \
9573    archive_expsym_cmds | \
9574    module_cmds | \
9575    module_expsym_cmds | \
9576    old_archive_from_expsyms_cmds | \
9577    export_symbols_cmds | \
9578    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9579    postinstall_cmds | postuninstall_cmds | \
9580    old_postinstall_cmds | old_postuninstall_cmds | \
9581    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9582      # Double-quote double-evaled strings.
9583      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9584      ;;
9585    *)
9586      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9587      ;;
9588    esac
9589  done
9590
9591  case $lt_echo in
9592  *'\$0 --fallback-echo"')
9593    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9594    ;;
9595  esac
9596
9597cfgfile="${ofile}T"
9598  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9599  $rm -f "$cfgfile"
9600  { echo "$as_me:$LINENO: creating $ofile" >&5
9601echo "$as_me: creating $ofile" >&6;}
9602
9603  cat <<__EOF__ >> "$cfgfile"
9604#! $SHELL
9605
9606# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9607# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9608# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9609#
9610# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9611# Free Software Foundation, Inc.
9612#
9613# This file is part of GNU Libtool:
9614# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9615#
9616# This program is free software; you can redistribute it and/or modify
9617# it under the terms of the GNU General Public License as published by
9618# the Free Software Foundation; either version 2 of the License, or
9619# (at your option) any later version.
9620#
9621# This program is distributed in the hope that it will be useful, but
9622# WITHOUT ANY WARRANTY; without even the implied warranty of
9623# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9624# General Public License for more details.
9625#
9626# You should have received a copy of the GNU General Public License
9627# along with this program; if not, write to the Free Software
9628# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9629#
9630# As a special exception to the GNU General Public License, if you
9631# distribute this file as part of a program that contains a
9632# configuration script generated by Autoconf, you may include it under
9633# the same distribution terms that you use for the rest of that program.
9634
9635# A sed program that does not truncate output.
9636SED=$lt_SED
9637
9638# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9639Xsed="$SED -e 1s/^X//"
9640
9641# The HP-UX ksh and POSIX shell print the target directory to stdout
9642# if CDPATH is set.
9643(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9644
9645# The names of the tagged configurations supported by this script.
9646available_tags=
9647
9648# ### BEGIN LIBTOOL CONFIG
9649
9650# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9651
9652# Shell to use when invoking shell scripts.
9653SHELL=$lt_SHELL
9654
9655# Whether or not to build shared libraries.
9656build_libtool_libs=$enable_shared
9657
9658# Whether or not to build static libraries.
9659build_old_libs=$enable_static
9660
9661# Whether or not to add -lc for building shared libraries.
9662build_libtool_need_lc=$archive_cmds_need_lc
9663
9664# Whether or not to disallow shared libs when runtime libs are static
9665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9666
9667# Whether or not to optimize for fast installation.
9668fast_install=$enable_fast_install
9669
9670# The host system.
9671host_alias=$host_alias
9672host=$host
9673host_os=$host_os
9674
9675# The build system.
9676build_alias=$build_alias
9677build=$build
9678build_os=$build_os
9679
9680# An echo program that does not interpret backslashes.
9681echo=$lt_echo
9682
9683# The archiver.
9684AR=$lt_AR
9685AR_FLAGS=$lt_AR_FLAGS
9686
9687# A C compiler.
9688LTCC=$lt_LTCC
9689
9690# LTCC compiler flags.
9691LTCFLAGS=$lt_LTCFLAGS
9692
9693# A language-specific compiler.
9694CC=$lt_compiler
9695
9696# Is the compiler the GNU C compiler?
9697with_gcc=$GCC
9698
9699# An ERE matcher.
9700EGREP=$lt_EGREP
9701
9702# The linker used to build libraries.
9703LD=$lt_LD
9704
9705# Whether we need hard or soft links.
9706LN_S=$lt_LN_S
9707
9708# A BSD-compatible nm program.
9709NM=$lt_NM
9710
9711# A symbol stripping program
9712STRIP=$lt_STRIP
9713
9714# Used to examine libraries when file_magic_cmd begins "file"
9715MAGIC_CMD=$MAGIC_CMD
9716
9717# Used on cygwin: DLL creation program.
9718DLLTOOL="$DLLTOOL"
9719
9720# Used on cygwin: object dumper.
9721OBJDUMP="$OBJDUMP"
9722
9723# Used on cygwin: assembler.
9724AS="$AS"
9725
9726# The name of the directory that contains temporary libtool files.
9727objdir=$objdir
9728
9729# How to create reloadable object files.
9730reload_flag=$lt_reload_flag
9731reload_cmds=$lt_reload_cmds
9732
9733# How to pass a linker flag through the compiler.
9734wl=$lt_lt_prog_compiler_wl
9735
9736# Object file suffix (normally "o").
9737objext="$ac_objext"
9738
9739# Old archive suffix (normally "a").
9740libext="$libext"
9741
9742# Shared library suffix (normally ".so").
9743shrext_cmds='$shrext_cmds'
9744
9745# Executable file suffix (normally "").
9746exeext="$exeext"
9747
9748# Additional compiler flags for building library objects.
9749pic_flag=$lt_lt_prog_compiler_pic
9750pic_mode=$pic_mode
9751
9752# What is the maximum length of a command?
9753max_cmd_len=$lt_cv_sys_max_cmd_len
9754
9755# Does compiler simultaneously support -c and -o options?
9756compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9757
9758# Must we lock files when doing compilation?
9759need_locks=$lt_need_locks
9760
9761# Do we need the lib prefix for modules?
9762need_lib_prefix=$need_lib_prefix
9763
9764# Do we need a version for libraries?
9765need_version=$need_version
9766
9767# Whether dlopen is supported.
9768dlopen_support=$enable_dlopen
9769
9770# Whether dlopen of programs is supported.
9771dlopen_self=$enable_dlopen_self
9772
9773# Whether dlopen of statically linked programs is supported.
9774dlopen_self_static=$enable_dlopen_self_static
9775
9776# Compiler flag to prevent dynamic linking.
9777link_static_flag=$lt_lt_prog_compiler_static
9778
9779# Compiler flag to turn off builtin functions.
9780no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9781
9782# Compiler flag to allow reflexive dlopens.
9783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9784
9785# Compiler flag to generate shared objects directly from archives.
9786whole_archive_flag_spec=$lt_whole_archive_flag_spec
9787
9788# Compiler flag to generate thread-safe objects.
9789thread_safe_flag_spec=$lt_thread_safe_flag_spec
9790
9791# Library versioning type.
9792version_type=$version_type
9793
9794# Format of library name prefix.
9795libname_spec=$lt_libname_spec
9796
9797# List of archive names.  First name is the real one, the rest are links.
9798# The last name is the one that the linker finds with -lNAME.
9799library_names_spec=$lt_library_names_spec
9800
9801# The coded name of the library, if different from the real name.
9802soname_spec=$lt_soname_spec
9803
9804# Commands used to build and install an old-style archive.
9805RANLIB=$lt_RANLIB
9806old_archive_cmds=$lt_old_archive_cmds
9807old_postinstall_cmds=$lt_old_postinstall_cmds
9808old_postuninstall_cmds=$lt_old_postuninstall_cmds
9809
9810# Create an old-style archive from a shared archive.
9811old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9812
9813# Create a temporary old-style archive to link instead of a shared archive.
9814old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9815
9816# Commands used to build and install a shared archive.
9817archive_cmds=$lt_archive_cmds
9818archive_expsym_cmds=$lt_archive_expsym_cmds
9819postinstall_cmds=$lt_postinstall_cmds
9820postuninstall_cmds=$lt_postuninstall_cmds
9821
9822# Commands used to build a loadable module (assumed same as above if empty)
9823module_cmds=$lt_module_cmds
9824module_expsym_cmds=$lt_module_expsym_cmds
9825
9826# Commands to strip libraries.
9827old_striplib=$lt_old_striplib
9828striplib=$lt_striplib
9829
9830# Dependencies to place before the objects being linked to create a
9831# shared library.
9832predep_objects=$lt_predep_objects
9833
9834# Dependencies to place after the objects being linked to create a
9835# shared library.
9836postdep_objects=$lt_postdep_objects
9837
9838# Dependencies to place before the objects being linked to create a
9839# shared library.
9840predeps=$lt_predeps
9841
9842# Dependencies to place after the objects being linked to create a
9843# shared library.
9844postdeps=$lt_postdeps
9845
9846# The library search path used internally by the compiler when linking
9847# a shared library.
9848compiler_lib_search_path=$lt_compiler_lib_search_path
9849
9850# Method to check whether dependent libraries are shared objects.
9851deplibs_check_method=$lt_deplibs_check_method
9852
9853# Command to use when deplibs_check_method == file_magic.
9854file_magic_cmd=$lt_file_magic_cmd
9855
9856# Flag that allows shared libraries with undefined symbols to be built.
9857allow_undefined_flag=$lt_allow_undefined_flag
9858
9859# Flag that forces no undefined symbols.
9860no_undefined_flag=$lt_no_undefined_flag
9861
9862# Commands used to finish a libtool library installation in a directory.
9863finish_cmds=$lt_finish_cmds
9864
9865# Same as above, but a single script fragment to be evaled but not shown.
9866finish_eval=$lt_finish_eval
9867
9868# Take the output of nm and produce a listing of raw symbols and C names.
9869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9870
9871# Transform the output of nm in a proper C declaration
9872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9873
9874# Transform the output of nm in a C name address pair
9875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9876
9877# This is the shared library runtime path variable.
9878runpath_var=$runpath_var
9879
9880# This is the shared library path variable.
9881shlibpath_var=$shlibpath_var
9882
9883# Is shlibpath searched before the hard-coded library search path?
9884shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9885
9886# How to hardcode a shared library path into an executable.
9887hardcode_action=$hardcode_action
9888
9889# Whether we should hardcode library paths into libraries.
9890hardcode_into_libs=$hardcode_into_libs
9891
9892# Flag to hardcode \$libdir into a binary during linking.
9893# This must work even if \$libdir does not exist.
9894hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9895
9896# If ld is used when linking, flag to hardcode \$libdir into
9897# a binary during linking. This must work even if \$libdir does
9898# not exist.
9899hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9900
9901# Whether we need a single -rpath flag with a separated argument.
9902hardcode_libdir_separator=$lt_hardcode_libdir_separator
9903
9904# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9905# resulting binary.
9906hardcode_direct=$hardcode_direct
9907
9908# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9909# resulting binary.
9910hardcode_minus_L=$hardcode_minus_L
9911
9912# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9913# the resulting binary.
9914hardcode_shlibpath_var=$hardcode_shlibpath_var
9915
9916# Set to yes if building a shared library automatically hardcodes DIR into the library
9917# and all subsequent libraries and executables linked against it.
9918hardcode_automatic=$hardcode_automatic
9919
9920# Variables whose values should be saved in libtool wrapper scripts and
9921# restored at relink time.
9922variables_saved_for_relink="$variables_saved_for_relink"
9923
9924# Whether libtool must link a program against all its dependency libraries.
9925link_all_deplibs=$link_all_deplibs
9926
9927# Compile-time system search path for libraries
9928sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9929
9930# Run-time system search path for libraries
9931sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9932
9933# Fix the shell variable \$srcfile for the compiler.
9934fix_srcfile_path=$lt_fix_srcfile_path
9935
9936# Set to yes if exported symbols are required.
9937always_export_symbols=$always_export_symbols
9938
9939# The commands to list exported symbols.
9940export_symbols_cmds=$lt_export_symbols_cmds
9941
9942# The commands to extract the exported symbol list from a shared archive.
9943extract_expsyms_cmds=$lt_extract_expsyms_cmds
9944
9945# Symbols that should not be listed in the preloaded symbols.
9946exclude_expsyms=$lt_exclude_expsyms
9947
9948# Symbols that must always be exported.
9949include_expsyms=$lt_include_expsyms
9950
9951# ### END LIBTOOL CONFIG
9952
9953__EOF__
9954
9955
9956  case $host_os in
9957  aix3*)
9958    cat <<\EOF >> "$cfgfile"
9959
9960# AIX sometimes has problems with the GCC collect2 program.  For some
9961# reason, if we set the COLLECT_NAMES environment variable, the problems
9962# vanish in a puff of smoke.
9963if test "X${COLLECT_NAMES+set}" != Xset; then
9964  COLLECT_NAMES=
9965  export COLLECT_NAMES
9966fi
9967EOF
9968    ;;
9969  esac
9970
9971  # We use sed instead of cat because bash on DJGPP gets confused if
9972  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9973  # text mode, it properly converts lines to CR/LF.  This bash problem
9974  # is reportedly fixed, but why not run on old versions too?
9975  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9976
9977  mv -f "$cfgfile" "$ofile" || \
9978    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9979  chmod +x "$ofile"
9980
9981else
9982  # If there is no Makefile yet, we rely on a make rule to execute
9983  # `config.status --recheck' to rerun these tests and create the
9984  # libtool script then.
9985  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9986  if test -f "$ltmain_in"; then
9987    test -f Makefile && make "$ltmain"
9988  fi
9989fi
9990
9991
9992ac_ext=c
9993ac_cpp='$CPP $CPPFLAGS'
9994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9996ac_compiler_gnu=$ac_cv_c_compiler_gnu
9997
9998CC="$lt_save_CC"
9999
10000
10001# Check whether --with-tags was given.
10002if test "${with_tags+set}" = set; then
10003  withval=$with_tags; tagnames="$withval"
10004fi
10005
10006
10007if test -f "$ltmain" && test -n "$tagnames"; then
10008  if test ! -f "${ofile}"; then
10009    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10010echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10011  fi
10012
10013  if test -z "$LTCC"; then
10014    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10015    if test -z "$LTCC"; then
10016      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10017echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10018    else
10019      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10020echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10021    fi
10022  fi
10023  if test -z "$LTCFLAGS"; then
10024    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10025  fi
10026
10027  # Extract list of available tagged configurations in $ofile.
10028  # Note that this assumes the entire list is on one line.
10029  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10030
10031  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10032  for tagname in $tagnames; do
10033    IFS="$lt_save_ifs"
10034    # Check whether tagname contains only valid characters
10035    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10036    "") ;;
10037    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10038echo "$as_me: error: invalid tag name: $tagname" >&2;}
10039   { (exit 1); exit 1; }; }
10040	;;
10041    esac
10042
10043    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10044    then
10045      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10046echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10047   { (exit 1); exit 1; }; }
10048    fi
10049
10050    # Update the list of available tags.
10051    if test -n "$tagname"; then
10052      echo appending configuration tag \"$tagname\" to $ofile
10053
10054      case $tagname in
10055      CXX)
10056	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10057	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10058	    (test "X$CXX" != "Xg++"))) ; then
10059	  ac_ext=cpp
10060ac_cpp='$CXXCPP $CPPFLAGS'
10061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10064
10065
10066
10067
10068archive_cmds_need_lc_CXX=no
10069allow_undefined_flag_CXX=
10070always_export_symbols_CXX=no
10071archive_expsym_cmds_CXX=
10072export_dynamic_flag_spec_CXX=
10073hardcode_direct_CXX=no
10074hardcode_libdir_flag_spec_CXX=
10075hardcode_libdir_flag_spec_ld_CXX=
10076hardcode_libdir_separator_CXX=
10077hardcode_minus_L_CXX=no
10078hardcode_shlibpath_var_CXX=unsupported
10079hardcode_automatic_CXX=no
10080module_cmds_CXX=
10081module_expsym_cmds_CXX=
10082link_all_deplibs_CXX=unknown
10083old_archive_cmds_CXX=$old_archive_cmds
10084no_undefined_flag_CXX=
10085whole_archive_flag_spec_CXX=
10086enable_shared_with_static_runtimes_CXX=no
10087
10088# Dependencies to place before and after the object being linked:
10089predep_objects_CXX=
10090postdep_objects_CXX=
10091predeps_CXX=
10092postdeps_CXX=
10093compiler_lib_search_path_CXX=
10094
10095# Source file extension for C++ test sources.
10096ac_ext=cpp
10097
10098# Object file extension for compiled C++ test sources.
10099objext=o
10100objext_CXX=$objext
10101
10102# Code to be used in simple compile tests
10103lt_simple_compile_test_code="int some_variable = 0;"
10104
10105# Code to be used in simple link tests
10106lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10107
10108# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10109
10110# If no C compiler was specified, use CC.
10111LTCC=${LTCC-"$CC"}
10112
10113# If no C compiler flags were specified, use CFLAGS.
10114LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10115
10116# Allow CC to be a program name with arguments.
10117compiler=$CC
10118
10119
10120# save warnings/boilerplate of simple test code
10121ac_outfile=conftest.$ac_objext
10122echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10123eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10124_lt_compiler_boilerplate=`cat conftest.err`
10125$rm conftest*
10126
10127ac_outfile=conftest.$ac_objext
10128echo "$lt_simple_link_test_code" >conftest.$ac_ext
10129eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10130_lt_linker_boilerplate=`cat conftest.err`
10131$rm conftest*
10132
10133
10134# Allow CC to be a program name with arguments.
10135lt_save_CC=$CC
10136lt_save_LD=$LD
10137lt_save_GCC=$GCC
10138GCC=$GXX
10139lt_save_with_gnu_ld=$with_gnu_ld
10140lt_save_path_LD=$lt_cv_path_LD
10141if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10142  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10143else
10144  $as_unset lt_cv_prog_gnu_ld
10145fi
10146if test -n "${lt_cv_path_LDCXX+set}"; then
10147  lt_cv_path_LD=$lt_cv_path_LDCXX
10148else
10149  $as_unset lt_cv_path_LD
10150fi
10151test -z "${LDCXX+set}" || LD=$LDCXX
10152CC=${CXX-"c++"}
10153compiler=$CC
10154compiler_CXX=$CC
10155for cc_temp in $compiler""; do
10156  case $cc_temp in
10157    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10158    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10159    \-*) ;;
10160    *) break;;
10161  esac
10162done
10163cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10164
10165
10166# We don't want -fno-exception wen compiling C++ code, so set the
10167# no_builtin_flag separately
10168if test "$GXX" = yes; then
10169  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10170else
10171  lt_prog_compiler_no_builtin_flag_CXX=
10172fi
10173
10174if test "$GXX" = yes; then
10175  # Set up default GNU C++ configuration
10176
10177
10178# Check whether --with-gnu-ld was given.
10179if test "${with_gnu_ld+set}" = set; then
10180  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10181else
10182  with_gnu_ld=no
10183fi
10184
10185ac_prog=ld
10186if test "$GCC" = yes; then
10187  # Check if gcc -print-prog-name=ld gives a path.
10188  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10189echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10190  case $host in
10191  *-*-mingw*)
10192    # gcc leaves a trailing carriage return which upsets mingw
10193    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10194  *)
10195    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10196  esac
10197  case $ac_prog in
10198    # Accept absolute paths.
10199    [\\/]* | ?:[\\/]*)
10200      re_direlt='/[^/][^/]*/\.\./'
10201      # Canonicalize the pathname of ld
10202      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10203      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10204	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10205      done
10206      test -z "$LD" && LD="$ac_prog"
10207      ;;
10208  "")
10209    # If it fails, then pretend we aren't using GCC.
10210    ac_prog=ld
10211    ;;
10212  *)
10213    # If it is relative, then search for the first ld in PATH.
10214    with_gnu_ld=unknown
10215    ;;
10216  esac
10217elif test "$with_gnu_ld" = yes; then
10218  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10219echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10220else
10221  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10222echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10223fi
10224if test "${lt_cv_path_LD+set}" = set; then
10225  echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227  if test -z "$LD"; then
10228  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10229  for ac_dir in $PATH; do
10230    IFS="$lt_save_ifs"
10231    test -z "$ac_dir" && ac_dir=.
10232    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10233      lt_cv_path_LD="$ac_dir/$ac_prog"
10234      # Check to see if the program is GNU ld.  I'd rather use --version,
10235      # but apparently some variants of GNU ld only accept -v.
10236      # Break only if it was the GNU/non-GNU ld that we prefer.
10237      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10238      *GNU* | *'with BFD'*)
10239	test "$with_gnu_ld" != no && break
10240	;;
10241      *)
10242	test "$with_gnu_ld" != yes && break
10243	;;
10244      esac
10245    fi
10246  done
10247  IFS="$lt_save_ifs"
10248else
10249  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10250fi
10251fi
10252
10253LD="$lt_cv_path_LD"
10254if test -n "$LD"; then
10255  { echo "$as_me:$LINENO: result: $LD" >&5
10256echo "${ECHO_T}$LD" >&6; }
10257else
10258  { echo "$as_me:$LINENO: result: no" >&5
10259echo "${ECHO_T}no" >&6; }
10260fi
10261test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10262echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10263   { (exit 1); exit 1; }; }
10264{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10265echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10266if test "${lt_cv_prog_gnu_ld+set}" = set; then
10267  echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10270case `$LD -v 2>&1 </dev/null` in
10271*GNU* | *'with BFD'*)
10272  lt_cv_prog_gnu_ld=yes
10273  ;;
10274*)
10275  lt_cv_prog_gnu_ld=no
10276  ;;
10277esac
10278fi
10279{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10280echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10281with_gnu_ld=$lt_cv_prog_gnu_ld
10282
10283
10284
10285  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10286  # archiving commands below assume that GNU ld is being used.
10287  if test "$with_gnu_ld" = yes; then
10288    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289    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'
10290
10291    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10292    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10293
10294    # If archive_cmds runs LD, not CC, wlarc should be empty
10295    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10296    #     investigate it a little bit more. (MM)
10297    wlarc='${wl}'
10298
10299    # ancient GNU ld didn't support --whole-archive et. al.
10300    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10301	grep 'no-whole-archive' > /dev/null; then
10302      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10303    else
10304      whole_archive_flag_spec_CXX=
10305    fi
10306  else
10307    with_gnu_ld=no
10308    wlarc=
10309
10310    # A generic and very simple default shared library creation
10311    # command for GNU C++ for the case where it uses the native
10312    # linker, instead of GNU ld.  If possible, this setting should
10313    # overridden to take advantage of the native linker features on
10314    # the platform it is being used on.
10315    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10316  fi
10317
10318  # Commands to make compiler produce verbose output that lists
10319  # what "hidden" libraries, object files and flags are used when
10320  # linking a shared library.
10321  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10322
10323else
10324  GXX=no
10325  with_gnu_ld=no
10326  wlarc=
10327fi
10328
10329# PORTME: fill in a description of your system's C++ link characteristics
10330{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10331echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10332ld_shlibs_CXX=yes
10333case $host_os in
10334  aix3*)
10335    # FIXME: insert proper C++ library support
10336    ld_shlibs_CXX=no
10337    ;;
10338  aix4* | aix5*)
10339    if test "$host_cpu" = ia64; then
10340      # On IA64, the linker does run time linking by default, so we don't
10341      # have to do anything special.
10342      aix_use_runtimelinking=no
10343      exp_sym_flag='-Bexport'
10344      no_entry_flag=""
10345    else
10346      aix_use_runtimelinking=no
10347
10348      # Test if we are trying to use run time linking or normal
10349      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10350      # need to do runtime linking.
10351      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10352	for ld_flag in $LDFLAGS; do
10353	  case $ld_flag in
10354	  *-brtl*)
10355	    aix_use_runtimelinking=yes
10356	    break
10357	    ;;
10358	  esac
10359	done
10360	;;
10361      esac
10362
10363      exp_sym_flag='-bexport'
10364      no_entry_flag='-bnoentry'
10365    fi
10366
10367    # When large executables or shared objects are built, AIX ld can
10368    # have problems creating the table of contents.  If linking a library
10369    # or program results in "error TOC overflow" add -mminimal-toc to
10370    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10371    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10372
10373    archive_cmds_CXX=''
10374    hardcode_direct_CXX=yes
10375    hardcode_libdir_separator_CXX=':'
10376    link_all_deplibs_CXX=yes
10377
10378    if test "$GXX" = yes; then
10379      case $host_os in aix4.[012]|aix4.[012].*)
10380      # We only want to do this on AIX 4.2 and lower, the check
10381      # below for broken collect2 doesn't work under 4.3+
10382	collect2name=`${CC} -print-prog-name=collect2`
10383	if test -f "$collect2name" && \
10384	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10385	then
10386	  # We have reworked collect2
10387	  :
10388	else
10389	  # We have old collect2
10390	  hardcode_direct_CXX=unsupported
10391	  # It fails to find uninstalled libraries when the uninstalled
10392	  # path is not listed in the libpath.  Setting hardcode_minus_L
10393	  # to unsupported forces relinking
10394	  hardcode_minus_L_CXX=yes
10395	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10396	  hardcode_libdir_separator_CXX=
10397	fi
10398	;;
10399      esac
10400      shared_flag='-shared'
10401      if test "$aix_use_runtimelinking" = yes; then
10402	shared_flag="$shared_flag "'${wl}-G'
10403      fi
10404    else
10405      # not using gcc
10406      if test "$host_cpu" = ia64; then
10407	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408	# chokes on -Wl,-G. The following line is correct:
10409	shared_flag='-G'
10410      else
10411	if test "$aix_use_runtimelinking" = yes; then
10412	  shared_flag='${wl}-G'
10413	else
10414	  shared_flag='${wl}-bM:SRE'
10415	fi
10416      fi
10417    fi
10418
10419    # It seems that -bexpall does not export symbols beginning with
10420    # underscore (_), so it is better to generate a list of symbols to export.
10421    always_export_symbols_CXX=yes
10422    if test "$aix_use_runtimelinking" = yes; then
10423      # Warning - without using the other runtime loading flags (-brtl),
10424      # -berok will link without error, but may produce a broken library.
10425      allow_undefined_flag_CXX='-berok'
10426      # Determine the default libpath from the value encoded in an empty executable.
10427      cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h.  */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h.  */
10433
10434int
10435main ()
10436{
10437
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442rm -f conftest.$ac_objext conftest$ac_exeext
10443if { (ac_try="$ac_link"
10444case "(($ac_try" in
10445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446  *) ac_try_echo=$ac_try;;
10447esac
10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449  (eval "$ac_link") 2>conftest.er1
10450  ac_status=$?
10451  grep -v '^ *+' conftest.er1 >conftest.err
10452  rm -f conftest.er1
10453  cat conftest.err >&5
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); } && {
10456	 test -z "$ac_cxx_werror_flag" ||
10457	 test ! -s conftest.err
10458       } && test -s conftest$ac_exeext &&
10459       $as_test_x conftest$ac_exeext; then
10460
10461lt_aix_libpath_sed='
10462    /Import File Strings/,/^$/ {
10463	/^0/ {
10464	    s/^0  *\(.*\)$/\1/
10465	    p
10466	}
10467    }'
10468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469# Check for a 64-bit object if we didn't find anything.
10470if test -z "$aix_libpath"; then
10471  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10472fi
10473else
10474  echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477
10478fi
10479
10480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10481      conftest$ac_exeext conftest.$ac_ext
10482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10483
10484      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10485
10486      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"
10487     else
10488      if test "$host_cpu" = ia64; then
10489	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10490	allow_undefined_flag_CXX="-z nodefs"
10491	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"
10492      else
10493	# Determine the default libpath from the value encoded in an empty executable.
10494	cat >conftest.$ac_ext <<_ACEOF
10495/* confdefs.h.  */
10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h.  */
10500
10501int
10502main ()
10503{
10504
10505  ;
10506  return 0;
10507}
10508_ACEOF
10509rm -f conftest.$ac_objext conftest$ac_exeext
10510if { (ac_try="$ac_link"
10511case "(($ac_try" in
10512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513  *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516  (eval "$ac_link") 2>conftest.er1
10517  ac_status=$?
10518  grep -v '^ *+' conftest.er1 >conftest.err
10519  rm -f conftest.er1
10520  cat conftest.err >&5
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); } && {
10523	 test -z "$ac_cxx_werror_flag" ||
10524	 test ! -s conftest.err
10525       } && test -s conftest$ac_exeext &&
10526       $as_test_x conftest$ac_exeext; then
10527
10528lt_aix_libpath_sed='
10529    /Import File Strings/,/^$/ {
10530	/^0/ {
10531	    s/^0  *\(.*\)$/\1/
10532	    p
10533	}
10534    }'
10535aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536# Check for a 64-bit object if we didn't find anything.
10537if test -z "$aix_libpath"; then
10538  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539fi
10540else
10541  echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544
10545fi
10546
10547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10548      conftest$ac_exeext conftest.$ac_ext
10549if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10550
10551	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10552	# Warning - without using the other run time loading flags,
10553	# -berok will link without error, but may produce a broken library.
10554	no_undefined_flag_CXX=' ${wl}-bernotok'
10555	allow_undefined_flag_CXX=' ${wl}-berok'
10556	# Exported symbols can be pulled into shared objects from archives
10557	whole_archive_flag_spec_CXX='$convenience'
10558	archive_cmds_need_lc_CXX=yes
10559	# This is similar to how AIX traditionally builds its shared libraries.
10560	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'
10561      fi
10562    fi
10563    ;;
10564
10565  beos*)
10566    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10567      allow_undefined_flag_CXX=unsupported
10568      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10569      # support --undefined.  This deserves some investigation.  FIXME
10570      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571    else
10572      ld_shlibs_CXX=no
10573    fi
10574    ;;
10575
10576  chorus*)
10577    case $cc_basename in
10578      *)
10579	# FIXME: insert proper C++ library support
10580	ld_shlibs_CXX=no
10581	;;
10582    esac
10583    ;;
10584
10585  cygwin* | mingw* | pw32*)
10586    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10587    # as there is no search path for DLLs.
10588    hardcode_libdir_flag_spec_CXX='-L$libdir'
10589    allow_undefined_flag_CXX=unsupported
10590    always_export_symbols_CXX=no
10591    enable_shared_with_static_runtimes_CXX=yes
10592
10593    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10594      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'
10595      # If the export-symbols file already is a .def file (1st line
10596      # is EXPORTS), use it as is; otherwise, prepend...
10597      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10598	cp $export_symbols $output_objdir/$soname.def;
10599      else
10600	echo EXPORTS > $output_objdir/$soname.def;
10601	cat $export_symbols >> $output_objdir/$soname.def;
10602      fi~
10603      $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'
10604    else
10605      ld_shlibs_CXX=no
10606    fi
10607  ;;
10608      darwin* | rhapsody*)
10609        case $host_os in
10610        rhapsody* | darwin1.[012])
10611         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10612         ;;
10613       *) # Darwin 1.3 on
10614         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10615           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10616         else
10617           case ${MACOSX_DEPLOYMENT_TARGET} in
10618             10.[012])
10619               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10620               ;;
10621             10.*)
10622               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10623               ;;
10624           esac
10625         fi
10626         ;;
10627        esac
10628      archive_cmds_need_lc_CXX=no
10629      hardcode_direct_CXX=no
10630      hardcode_automatic_CXX=yes
10631      hardcode_shlibpath_var_CXX=unsupported
10632      whole_archive_flag_spec_CXX=''
10633      link_all_deplibs_CXX=yes
10634
10635    if test "$GXX" = yes ; then
10636      lt_int_apple_cc_single_mod=no
10637      output_verbose_link_cmd='echo'
10638      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10639       lt_int_apple_cc_single_mod=yes
10640      fi
10641      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10642       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10643      else
10644          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'
10645        fi
10646        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10647        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10648          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10649            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}'
10650          else
10651            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}'
10652          fi
10653            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}'
10654      else
10655      case $cc_basename in
10656        xlc*)
10657         output_verbose_link_cmd='echo'
10658          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'
10659          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10660          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10661          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}'
10662          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}'
10663          ;;
10664       *)
10665         ld_shlibs_CXX=no
10666          ;;
10667      esac
10668      fi
10669        ;;
10670
10671  dgux*)
10672    case $cc_basename in
10673      ec++*)
10674	# FIXME: insert proper C++ library support
10675	ld_shlibs_CXX=no
10676	;;
10677      ghcx*)
10678	# Green Hills C++ Compiler
10679	# FIXME: insert proper C++ library support
10680	ld_shlibs_CXX=no
10681	;;
10682      *)
10683	# FIXME: insert proper C++ library support
10684	ld_shlibs_CXX=no
10685	;;
10686    esac
10687    ;;
10688  freebsd[12]*)
10689    # C++ shared libraries reported to be fairly broken before switch to ELF
10690    ld_shlibs_CXX=no
10691    ;;
10692  freebsd-elf*)
10693    archive_cmds_need_lc_CXX=no
10694    ;;
10695  freebsd* | dragonfly*)
10696    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10697    # conventions
10698    ld_shlibs_CXX=yes
10699    ;;
10700  gnu*)
10701    ;;
10702  hpux9*)
10703    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10704    hardcode_libdir_separator_CXX=:
10705    export_dynamic_flag_spec_CXX='${wl}-E'
10706    hardcode_direct_CXX=yes
10707    hardcode_minus_L_CXX=yes # Not in the search PATH,
10708				# but as the default
10709				# location of the library.
10710
10711    case $cc_basename in
10712    CC*)
10713      # FIXME: insert proper C++ library support
10714      ld_shlibs_CXX=no
10715      ;;
10716    aCC*)
10717      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'
10718      # Commands to make compiler produce verbose output that lists
10719      # what "hidden" libraries, object files and flags are used when
10720      # linking a shared library.
10721      #
10722      # There doesn't appear to be a way to prevent this compiler from
10723      # explicitly linking system object files so we need to strip them
10724      # from the output so that they don't get included in the library
10725      # dependencies.
10726      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'
10727      ;;
10728    *)
10729      if test "$GXX" = yes; then
10730        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'
10731      else
10732        # FIXME: insert proper C++ library support
10733        ld_shlibs_CXX=no
10734      fi
10735      ;;
10736    esac
10737    ;;
10738  hpux10*|hpux11*)
10739    if test $with_gnu_ld = no; then
10740      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10741      hardcode_libdir_separator_CXX=:
10742
10743      case $host_cpu in
10744      hppa*64*|ia64*) ;;
10745      *)
10746	export_dynamic_flag_spec_CXX='${wl}-E'
10747        ;;
10748      esac
10749    fi
10750    case $host_cpu in
10751    hppa*64*|ia64*)
10752      hardcode_direct_CXX=no
10753      hardcode_shlibpath_var_CXX=no
10754      ;;
10755    *)
10756      hardcode_direct_CXX=yes
10757      hardcode_minus_L_CXX=yes # Not in the search PATH,
10758					      # but as the default
10759					      # location of the library.
10760      ;;
10761    esac
10762
10763    case $cc_basename in
10764      CC*)
10765	# FIXME: insert proper C++ library support
10766	ld_shlibs_CXX=no
10767	;;
10768      aCC*)
10769	case $host_cpu in
10770	hppa*64*)
10771	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10772	  ;;
10773	ia64*)
10774	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10775	  ;;
10776	*)
10777	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10778	  ;;
10779	esac
10780	# Commands to make compiler produce verbose output that lists
10781	# what "hidden" libraries, object files and flags are used when
10782	# linking a shared library.
10783	#
10784	# There doesn't appear to be a way to prevent this compiler from
10785	# explicitly linking system object files so we need to strip them
10786	# from the output so that they don't get included in the library
10787	# dependencies.
10788	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'
10789	;;
10790      *)
10791	if test "$GXX" = yes; then
10792	  if test $with_gnu_ld = no; then
10793	    case $host_cpu in
10794	    hppa*64*)
10795	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10796	      ;;
10797	    ia64*)
10798	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10799	      ;;
10800	    *)
10801	      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'
10802	      ;;
10803	    esac
10804	  fi
10805	else
10806	  # FIXME: insert proper C++ library support
10807	  ld_shlibs_CXX=no
10808	fi
10809	;;
10810    esac
10811    ;;
10812  interix[3-9]*)
10813    hardcode_direct_CXX=no
10814    hardcode_shlibpath_var_CXX=no
10815    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10816    export_dynamic_flag_spec_CXX='${wl}-E'
10817    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10818    # Instead, shared libraries are loaded at an image base (0x10000000 by
10819    # default) and relocated if they conflict, which is a slow very memory
10820    # consuming and fragmenting process.  To avoid this, we pick a random,
10821    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10822    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10823    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'
10824    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'
10825    ;;
10826  irix5* | irix6*)
10827    case $cc_basename in
10828      CC*)
10829	# SGI C++
10830	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'
10831
10832	# Archives containing C++ object files must be created using
10833	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10834	# necessary to make sure instantiated templates are included
10835	# in the archive.
10836	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10837	;;
10838      *)
10839	if test "$GXX" = yes; then
10840	  if test "$with_gnu_ld" = no; then
10841	    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'
10842	  else
10843	    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'
10844	  fi
10845	fi
10846	link_all_deplibs_CXX=yes
10847	;;
10848    esac
10849    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10850    hardcode_libdir_separator_CXX=:
10851    ;;
10852  linux* | k*bsd*-gnu)
10853    case $cc_basename in
10854      KCC*)
10855	# Kuck and Associates, Inc. (KAI) C++ Compiler
10856
10857	# KCC will only create a shared library if the output file
10858	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10859	# to its proper name (with version) after linking.
10860	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'
10861	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'
10862	# Commands to make compiler produce verbose output that lists
10863	# what "hidden" libraries, object files and flags are used when
10864	# linking a shared library.
10865	#
10866	# There doesn't appear to be a way to prevent this compiler from
10867	# explicitly linking system object files so we need to strip them
10868	# from the output so that they don't get included in the library
10869	# dependencies.
10870	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'
10871
10872	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10873	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10874
10875	# Archives containing C++ object files must be created using
10876	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10877	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10878	;;
10879      icpc*)
10880	# Intel C++
10881	with_gnu_ld=yes
10882	# version 8.0 and above of icpc choke on multiply defined symbols
10883	# if we add $predep_objects and $postdep_objects, however 7.1 and
10884	# earlier do not add the objects themselves.
10885	case `$CC -V 2>&1` in
10886	*"Version 7."*)
10887  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10888  	  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'
10889	  ;;
10890	*)  # Version 8.0 or newer
10891	  tmp_idyn=
10892	  case $host_cpu in
10893	    ia64*) tmp_idyn=' -i_dynamic';;
10894	  esac
10895  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896	  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'
10897	  ;;
10898	esac
10899	archive_cmds_need_lc_CXX=no
10900	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10901	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10902	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10903	;;
10904      pgCC*)
10905        # Portland Group C++ compiler
10906	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10907  	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'
10908
10909	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10910	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10911	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'
10912        ;;
10913      cxx*)
10914	# Compaq C++
10915	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916	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'
10917
10918	runpath_var=LD_RUN_PATH
10919	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10920	hardcode_libdir_separator_CXX=:
10921
10922	# Commands to make compiler produce verbose output that lists
10923	# what "hidden" libraries, object files and flags are used when
10924	# linking a shared library.
10925	#
10926	# There doesn't appear to be a way to prevent this compiler from
10927	# explicitly linking system object files so we need to strip them
10928	# from the output so that they don't get included in the library
10929	# dependencies.
10930	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'
10931	;;
10932      *)
10933	case `$CC -V 2>&1 | sed 5q` in
10934	*Sun\ C*)
10935	  # Sun C++ 5.9
10936	  no_undefined_flag_CXX=' -zdefs'
10937	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10938	  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'
10939	  hardcode_libdir_flag_spec_CXX='-R$libdir'
10940	  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'
10941
10942	  # Not sure whether something based on
10943	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10944	  # would be better.
10945	  output_verbose_link_cmd='echo'
10946
10947	  # Archives containing C++ object files must be created using
10948	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10949	  # necessary to make sure instantiated templates are included
10950	  # in the archive.
10951	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10952	  ;;
10953	esac
10954	;;
10955    esac
10956    ;;
10957  lynxos*)
10958    # FIXME: insert proper C++ library support
10959    ld_shlibs_CXX=no
10960    ;;
10961  m88k*)
10962    # FIXME: insert proper C++ library support
10963    ld_shlibs_CXX=no
10964    ;;
10965  mvs*)
10966    case $cc_basename in
10967      cxx*)
10968	# FIXME: insert proper C++ library support
10969	ld_shlibs_CXX=no
10970	;;
10971      *)
10972	# FIXME: insert proper C++ library support
10973	ld_shlibs_CXX=no
10974	;;
10975    esac
10976    ;;
10977  netbsd*)
10978    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10979      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10980      wlarc=
10981      hardcode_libdir_flag_spec_CXX='-R$libdir'
10982      hardcode_direct_CXX=yes
10983      hardcode_shlibpath_var_CXX=no
10984    fi
10985    # Workaround some broken pre-1.5 toolchains
10986    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10987    ;;
10988  openbsd2*)
10989    # C++ shared libraries are fairly broken
10990    ld_shlibs_CXX=no
10991    ;;
10992  openbsd*)
10993    if test -f /usr/libexec/ld.so; then
10994      hardcode_direct_CXX=yes
10995      hardcode_shlibpath_var_CXX=no
10996      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10997      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10998      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10999	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11000	export_dynamic_flag_spec_CXX='${wl}-E'
11001	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11002      fi
11003      output_verbose_link_cmd='echo'
11004    else
11005      ld_shlibs_CXX=no
11006    fi
11007    ;;
11008  osf3*)
11009    case $cc_basename in
11010      KCC*)
11011	# Kuck and Associates, Inc. (KAI) C++ Compiler
11012
11013	# KCC will only create a shared library if the output file
11014	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11015	# to its proper name (with version) after linking.
11016	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'
11017
11018	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019	hardcode_libdir_separator_CXX=:
11020
11021	# Archives containing C++ object files must be created using
11022	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11023	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11024
11025	;;
11026      RCC*)
11027	# Rational C++ 2.4.1
11028	# FIXME: insert proper C++ library support
11029	ld_shlibs_CXX=no
11030	;;
11031      cxx*)
11032	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11033	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'
11034
11035	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11036	hardcode_libdir_separator_CXX=:
11037
11038	# Commands to make compiler produce verbose output that lists
11039	# what "hidden" libraries, object files and flags are used when
11040	# linking a shared library.
11041	#
11042	# There doesn't appear to be a way to prevent this compiler from
11043	# explicitly linking system object files so we need to strip them
11044	# from the output so that they don't get included in the library
11045	# dependencies.
11046	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'
11047	;;
11048      *)
11049	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11050	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11051	  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'
11052
11053	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11054	  hardcode_libdir_separator_CXX=:
11055
11056	  # Commands to make compiler produce verbose output that lists
11057	  # what "hidden" libraries, object files and flags are used when
11058	  # linking a shared library.
11059	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11060
11061	else
11062	  # FIXME: insert proper C++ library support
11063	  ld_shlibs_CXX=no
11064	fi
11065	;;
11066    esac
11067    ;;
11068  osf4* | osf5*)
11069    case $cc_basename in
11070      KCC*)
11071	# Kuck and Associates, Inc. (KAI) C++ Compiler
11072
11073	# KCC will only create a shared library if the output file
11074	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11075	# to its proper name (with version) after linking.
11076	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'
11077
11078	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11079	hardcode_libdir_separator_CXX=:
11080
11081	# Archives containing C++ object files must be created using
11082	# the KAI C++ compiler.
11083	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11084	;;
11085      RCC*)
11086	# Rational C++ 2.4.1
11087	# FIXME: insert proper C++ library support
11088	ld_shlibs_CXX=no
11089	;;
11090      cxx*)
11091	allow_undefined_flag_CXX=' -expect_unresolved \*'
11092	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'
11093	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11094	  echo "-hidden">> $lib.exp~
11095	  $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~
11096	  $rm $lib.exp'
11097
11098	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11099	hardcode_libdir_separator_CXX=:
11100
11101	# Commands to make compiler produce verbose output that lists
11102	# what "hidden" libraries, object files and flags are used when
11103	# linking a shared library.
11104	#
11105	# There doesn't appear to be a way to prevent this compiler from
11106	# explicitly linking system object files so we need to strip them
11107	# from the output so that they don't get included in the library
11108	# dependencies.
11109	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'
11110	;;
11111      *)
11112	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11113	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11114	 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'
11115
11116	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11117	  hardcode_libdir_separator_CXX=:
11118
11119	  # Commands to make compiler produce verbose output that lists
11120	  # what "hidden" libraries, object files and flags are used when
11121	  # linking a shared library.
11122	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11123
11124	else
11125	  # FIXME: insert proper C++ library support
11126	  ld_shlibs_CXX=no
11127	fi
11128	;;
11129    esac
11130    ;;
11131  psos*)
11132    # FIXME: insert proper C++ library support
11133    ld_shlibs_CXX=no
11134    ;;
11135  sunos4*)
11136    case $cc_basename in
11137      CC*)
11138	# Sun C++ 4.x
11139	# FIXME: insert proper C++ library support
11140	ld_shlibs_CXX=no
11141	;;
11142      lcc*)
11143	# Lucid
11144	# FIXME: insert proper C++ library support
11145	ld_shlibs_CXX=no
11146	;;
11147      *)
11148	# FIXME: insert proper C++ library support
11149	ld_shlibs_CXX=no
11150	;;
11151    esac
11152    ;;
11153  solaris*)
11154    case $cc_basename in
11155      CC*)
11156	# Sun C++ 4.2, 5.x and Centerline C++
11157        archive_cmds_need_lc_CXX=yes
11158	no_undefined_flag_CXX=' -zdefs'
11159	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11160	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11161	$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'
11162
11163	hardcode_libdir_flag_spec_CXX='-R$libdir'
11164	hardcode_shlibpath_var_CXX=no
11165	case $host_os in
11166	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11167	  *)
11168	    # The compiler driver will combine and reorder linker options,
11169	    # but understands `-z linker_flag'.
11170	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11171	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11172	    ;;
11173	esac
11174	link_all_deplibs_CXX=yes
11175
11176	output_verbose_link_cmd='echo'
11177
11178	# Archives containing C++ object files must be created using
11179	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11180	# necessary to make sure instantiated templates are included
11181	# in the archive.
11182	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11183	;;
11184      gcx*)
11185	# Green Hills C++ Compiler
11186	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11187
11188	# The C++ compiler must be used to create the archive.
11189	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11190	;;
11191      *)
11192	# GNU C++ compiler with Solaris linker
11193	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11194	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11195	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11196	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11197	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11198		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11199
11200	    # Commands to make compiler produce verbose output that lists
11201	    # what "hidden" libraries, object files and flags are used when
11202	    # linking a shared library.
11203	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11204	  else
11205	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11206	    # platform.
11207	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11208	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11209		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11210
11211	    # Commands to make compiler produce verbose output that lists
11212	    # what "hidden" libraries, object files and flags are used when
11213	    # linking a shared library.
11214	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11215	  fi
11216
11217	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11218	  case $host_os in
11219	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11220	  *)
11221	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11222	    ;;
11223	  esac
11224	fi
11225	;;
11226    esac
11227    ;;
11228  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11229    no_undefined_flag_CXX='${wl}-z,text'
11230    archive_cmds_need_lc_CXX=no
11231    hardcode_shlibpath_var_CXX=no
11232    runpath_var='LD_RUN_PATH'
11233
11234    case $cc_basename in
11235      CC*)
11236	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11238	;;
11239      *)
11240	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11241	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11242	;;
11243    esac
11244    ;;
11245  sysv5* | sco3.2v5* | sco5v6*)
11246    # Note: We can NOT use -z defs as we might desire, because we do not
11247    # link with -lc, and that would cause any symbols used from libc to
11248    # always be unresolved, which means just about no library would
11249    # ever link correctly.  If we're not using GNU ld we use -z text
11250    # though, which does catch some bad symbols but isn't as heavy-handed
11251    # as -z defs.
11252    # For security reasons, it is highly recommended that you always
11253    # use absolute paths for naming shared libraries, and exclude the
11254    # DT_RUNPATH tag from executables and libraries.  But doing so
11255    # requires that you compile everything twice, which is a pain.
11256    # So that behaviour is only enabled if SCOABSPATH is set to a
11257    # non-empty value in the environment.  Most likely only useful for
11258    # creating official distributions of packages.
11259    # This is a hack until libtool officially supports absolute path
11260    # names for shared libraries.
11261    no_undefined_flag_CXX='${wl}-z,text'
11262    allow_undefined_flag_CXX='${wl}-z,nodefs'
11263    archive_cmds_need_lc_CXX=no
11264    hardcode_shlibpath_var_CXX=no
11265    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11266    hardcode_libdir_separator_CXX=':'
11267    link_all_deplibs_CXX=yes
11268    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11269    runpath_var='LD_RUN_PATH'
11270
11271    case $cc_basename in
11272      CC*)
11273	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11274	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275	;;
11276      *)
11277	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279	;;
11280    esac
11281    ;;
11282  tandem*)
11283    case $cc_basename in
11284      NCC*)
11285	# NonStop-UX NCC 3.20
11286	# FIXME: insert proper C++ library support
11287	ld_shlibs_CXX=no
11288	;;
11289      *)
11290	# FIXME: insert proper C++ library support
11291	ld_shlibs_CXX=no
11292	;;
11293    esac
11294    ;;
11295  vxworks*)
11296    # FIXME: insert proper C++ library support
11297    ld_shlibs_CXX=no
11298    ;;
11299  *)
11300    # FIXME: insert proper C++ library support
11301    ld_shlibs_CXX=no
11302    ;;
11303esac
11304{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11305echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11306test "$ld_shlibs_CXX" = no && can_build_shared=no
11307
11308GCC_CXX="$GXX"
11309LD_CXX="$LD"
11310
11311
11312cat > conftest.$ac_ext <<EOF
11313class Foo
11314{
11315public:
11316  Foo (void) { a = 0; }
11317private:
11318  int a;
11319};
11320EOF
11321
11322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323  (eval $ac_compile) 2>&5
11324  ac_status=$?
11325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); }; then
11327  # Parse the compiler output and extract the necessary
11328  # objects, libraries and library flags.
11329
11330  # Sentinel used to keep track of whether or not we are before
11331  # the conftest object file.
11332  pre_test_object_deps_done=no
11333
11334  # The `*' in the case matches for architectures that use `case' in
11335  # $output_verbose_cmd can trigger glob expansion during the loop
11336  # eval without this substitution.
11337  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11338
11339  for p in `eval $output_verbose_link_cmd`; do
11340    case $p in
11341
11342    -L* | -R* | -l*)
11343       # Some compilers place space between "-{L,R}" and the path.
11344       # Remove the space.
11345       if test $p = "-L" \
11346	  || test $p = "-R"; then
11347	 prev=$p
11348	 continue
11349       else
11350	 prev=
11351       fi
11352
11353       if test "$pre_test_object_deps_done" = no; then
11354	 case $p in
11355	 -L* | -R*)
11356	   # Internal compiler library paths should come after those
11357	   # provided the user.  The postdeps already come after the
11358	   # user supplied libs so there is no need to process them.
11359	   if test -z "$compiler_lib_search_path_CXX"; then
11360	     compiler_lib_search_path_CXX="${prev}${p}"
11361	   else
11362	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11363	   fi
11364	   ;;
11365	 # The "-l" case would never come before the object being
11366	 # linked, so don't bother handling this case.
11367	 esac
11368       else
11369	 if test -z "$postdeps_CXX"; then
11370	   postdeps_CXX="${prev}${p}"
11371	 else
11372	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11373	 fi
11374       fi
11375       ;;
11376
11377    *.$objext)
11378       # This assumes that the test object file only shows up
11379       # once in the compiler output.
11380       if test "$p" = "conftest.$objext"; then
11381	 pre_test_object_deps_done=yes
11382	 continue
11383       fi
11384
11385       if test "$pre_test_object_deps_done" = no; then
11386	 if test -z "$predep_objects_CXX"; then
11387	   predep_objects_CXX="$p"
11388	 else
11389	   predep_objects_CXX="$predep_objects_CXX $p"
11390	 fi
11391       else
11392	 if test -z "$postdep_objects_CXX"; then
11393	   postdep_objects_CXX="$p"
11394	 else
11395	   postdep_objects_CXX="$postdep_objects_CXX $p"
11396	 fi
11397       fi
11398       ;;
11399
11400    *) ;; # Ignore the rest.
11401
11402    esac
11403  done
11404
11405  # Clean up.
11406  rm -f a.out a.exe
11407else
11408  echo "libtool.m4: error: problem compiling CXX test program"
11409fi
11410
11411$rm -f confest.$objext
11412
11413# PORTME: override above test on systems where it is broken
11414case $host_os in
11415interix[3-9]*)
11416  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11417  # hack all around it, let's just trust "g++" to DTRT.
11418  predep_objects_CXX=
11419  postdep_objects_CXX=
11420  postdeps_CXX=
11421  ;;
11422
11423linux*)
11424  case `$CC -V 2>&1 | sed 5q` in
11425  *Sun\ C*)
11426    # Sun C++ 5.9
11427    #
11428    # The more standards-conforming stlport4 library is
11429    # incompatible with the Cstd library. Avoid specifying
11430    # it if it's in CXXFLAGS. Ignore libCrun as
11431    # -library=stlport4 depends on it.
11432    case " $CXX $CXXFLAGS " in
11433    *" -library=stlport4 "*)
11434      solaris_use_stlport4=yes
11435      ;;
11436    esac
11437    if test "$solaris_use_stlport4" != yes; then
11438      postdeps_CXX='-library=Cstd -library=Crun'
11439    fi
11440    ;;
11441  esac
11442  ;;
11443
11444solaris*)
11445  case $cc_basename in
11446  CC*)
11447    # The more standards-conforming stlport4 library is
11448    # incompatible with the Cstd library. Avoid specifying
11449    # it if it's in CXXFLAGS. Ignore libCrun as
11450    # -library=stlport4 depends on it.
11451    case " $CXX $CXXFLAGS " in
11452    *" -library=stlport4 "*)
11453      solaris_use_stlport4=yes
11454      ;;
11455    esac
11456
11457    # Adding this requires a known-good setup of shared libraries for
11458    # Sun compiler versions before 5.6, else PIC objects from an old
11459    # archive will be linked into the output, leading to subtle bugs.
11460    if test "$solaris_use_stlport4" != yes; then
11461      postdeps_CXX='-library=Cstd -library=Crun'
11462    fi
11463    ;;
11464  esac
11465  ;;
11466esac
11467
11468
11469case " $postdeps_CXX " in
11470*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11471esac
11472
11473lt_prog_compiler_wl_CXX=
11474lt_prog_compiler_pic_CXX=
11475lt_prog_compiler_static_CXX=
11476
11477{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11478echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11479
11480  # C++ specific cases for pic, static, wl, etc.
11481  if test "$GXX" = yes; then
11482    lt_prog_compiler_wl_CXX='-Wl,'
11483    lt_prog_compiler_static_CXX='-static'
11484
11485    case $host_os in
11486    aix*)
11487      # All AIX code is PIC.
11488      if test "$host_cpu" = ia64; then
11489	# AIX 5 now supports IA64 processor
11490	lt_prog_compiler_static_CXX='-Bstatic'
11491      fi
11492      ;;
11493    amigaos*)
11494      # FIXME: we need at least 68020 code to build shared libraries, but
11495      # adding the `-m68020' flag to GCC prevents building anything better,
11496      # like `-m68040'.
11497      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11498      ;;
11499    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11500      # PIC is the default for these OSes.
11501      ;;
11502    mingw* | cygwin* | os2* | pw32*)
11503      # This hack is so that the source file can tell whether it is being
11504      # built for inclusion in a dll (and should export symbols for example).
11505      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11506      # (--disable-auto-import) libraries
11507      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11508      ;;
11509    darwin* | rhapsody*)
11510      # PIC is the default on this platform
11511      # Common symbols not allowed in MH_DYLIB files
11512      lt_prog_compiler_pic_CXX='-fno-common'
11513      ;;
11514    *djgpp*)
11515      # DJGPP does not support shared libraries at all
11516      lt_prog_compiler_pic_CXX=
11517      ;;
11518    interix[3-9]*)
11519      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11520      # Instead, we relocate shared libraries at runtime.
11521      ;;
11522    sysv4*MP*)
11523      if test -d /usr/nec; then
11524	lt_prog_compiler_pic_CXX=-Kconform_pic
11525      fi
11526      ;;
11527    hpux*)
11528      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11529      # not for PA HP-UX.
11530      case $host_cpu in
11531      hppa*64*|ia64*)
11532	;;
11533      *)
11534	lt_prog_compiler_pic_CXX='-fPIC'
11535	;;
11536      esac
11537      ;;
11538    *)
11539      lt_prog_compiler_pic_CXX='-fPIC'
11540      ;;
11541    esac
11542  else
11543    case $host_os in
11544      aix4* | aix5*)
11545	# All AIX code is PIC.
11546	if test "$host_cpu" = ia64; then
11547	  # AIX 5 now supports IA64 processor
11548	  lt_prog_compiler_static_CXX='-Bstatic'
11549	else
11550	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11551	fi
11552	;;
11553      chorus*)
11554	case $cc_basename in
11555	cxch68*)
11556	  # Green Hills C++ Compiler
11557	  # _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"
11558	  ;;
11559	esac
11560	;;
11561       darwin*)
11562         # PIC is the default on this platform
11563         # Common symbols not allowed in MH_DYLIB files
11564         case $cc_basename in
11565           xlc*)
11566           lt_prog_compiler_pic_CXX='-qnocommon'
11567           lt_prog_compiler_wl_CXX='-Wl,'
11568           ;;
11569         esac
11570       ;;
11571      dgux*)
11572	case $cc_basename in
11573	  ec++*)
11574	    lt_prog_compiler_pic_CXX='-KPIC'
11575	    ;;
11576	  ghcx*)
11577	    # Green Hills C++ Compiler
11578	    lt_prog_compiler_pic_CXX='-pic'
11579	    ;;
11580	  *)
11581	    ;;
11582	esac
11583	;;
11584      freebsd* | dragonfly*)
11585	# FreeBSD uses GNU C++
11586	;;
11587      hpux9* | hpux10* | hpux11*)
11588	case $cc_basename in
11589	  CC*)
11590	    lt_prog_compiler_wl_CXX='-Wl,'
11591	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11592	    if test "$host_cpu" != ia64; then
11593	      lt_prog_compiler_pic_CXX='+Z'
11594	    fi
11595	    ;;
11596	  aCC*)
11597	    lt_prog_compiler_wl_CXX='-Wl,'
11598	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11599	    case $host_cpu in
11600	    hppa*64*|ia64*)
11601	      # +Z the default
11602	      ;;
11603	    *)
11604	      lt_prog_compiler_pic_CXX='+Z'
11605	      ;;
11606	    esac
11607	    ;;
11608	  *)
11609	    ;;
11610	esac
11611	;;
11612      interix*)
11613	# This is c89, which is MS Visual C++ (no shared libs)
11614	# Anyone wants to do a port?
11615	;;
11616      irix5* | irix6* | nonstopux*)
11617	case $cc_basename in
11618	  CC*)
11619	    lt_prog_compiler_wl_CXX='-Wl,'
11620	    lt_prog_compiler_static_CXX='-non_shared'
11621	    # CC pic flag -KPIC is the default.
11622	    ;;
11623	  *)
11624	    ;;
11625	esac
11626	;;
11627      linux* | k*bsd*-gnu)
11628	case $cc_basename in
11629	  KCC*)
11630	    # KAI C++ Compiler
11631	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11632	    lt_prog_compiler_pic_CXX='-fPIC'
11633	    ;;
11634	  icpc* | ecpc*)
11635	    # Intel C++
11636	    lt_prog_compiler_wl_CXX='-Wl,'
11637	    lt_prog_compiler_pic_CXX='-KPIC'
11638	    lt_prog_compiler_static_CXX='-static'
11639	    ;;
11640	  pgCC*)
11641	    # Portland Group C++ compiler.
11642	    lt_prog_compiler_wl_CXX='-Wl,'
11643	    lt_prog_compiler_pic_CXX='-fpic'
11644	    lt_prog_compiler_static_CXX='-Bstatic'
11645	    ;;
11646	  cxx*)
11647	    # Compaq C++
11648	    # Make sure the PIC flag is empty.  It appears that all Alpha
11649	    # Linux and Compaq Tru64 Unix objects are PIC.
11650	    lt_prog_compiler_pic_CXX=
11651	    lt_prog_compiler_static_CXX='-non_shared'
11652	    ;;
11653	  *)
11654	    case `$CC -V 2>&1 | sed 5q` in
11655	    *Sun\ C*)
11656	      # Sun C++ 5.9
11657	      lt_prog_compiler_pic_CXX='-KPIC'
11658	      lt_prog_compiler_static_CXX='-Bstatic'
11659	      lt_prog_compiler_wl_CXX='-Qoption ld '
11660	      ;;
11661	    esac
11662	    ;;
11663	esac
11664	;;
11665      lynxos*)
11666	;;
11667      m88k*)
11668	;;
11669      mvs*)
11670	case $cc_basename in
11671	  cxx*)
11672	    lt_prog_compiler_pic_CXX='-W c,exportall'
11673	    ;;
11674	  *)
11675	    ;;
11676	esac
11677	;;
11678      netbsd*)
11679	;;
11680      osf3* | osf4* | osf5*)
11681	case $cc_basename in
11682	  KCC*)
11683	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11684	    ;;
11685	  RCC*)
11686	    # Rational C++ 2.4.1
11687	    lt_prog_compiler_pic_CXX='-pic'
11688	    ;;
11689	  cxx*)
11690	    # Digital/Compaq C++
11691	    lt_prog_compiler_wl_CXX='-Wl,'
11692	    # Make sure the PIC flag is empty.  It appears that all Alpha
11693	    # Linux and Compaq Tru64 Unix objects are PIC.
11694	    lt_prog_compiler_pic_CXX=
11695	    lt_prog_compiler_static_CXX='-non_shared'
11696	    ;;
11697	  *)
11698	    ;;
11699	esac
11700	;;
11701      psos*)
11702	;;
11703      solaris*)
11704	case $cc_basename in
11705	  CC*)
11706	    # Sun C++ 4.2, 5.x and Centerline C++
11707	    lt_prog_compiler_pic_CXX='-KPIC'
11708	    lt_prog_compiler_static_CXX='-Bstatic'
11709	    lt_prog_compiler_wl_CXX='-Qoption ld '
11710	    ;;
11711	  gcx*)
11712	    # Green Hills C++ Compiler
11713	    lt_prog_compiler_pic_CXX='-PIC'
11714	    ;;
11715	  *)
11716	    ;;
11717	esac
11718	;;
11719      sunos4*)
11720	case $cc_basename in
11721	  CC*)
11722	    # Sun C++ 4.x
11723	    lt_prog_compiler_pic_CXX='-pic'
11724	    lt_prog_compiler_static_CXX='-Bstatic'
11725	    ;;
11726	  lcc*)
11727	    # Lucid
11728	    lt_prog_compiler_pic_CXX='-pic'
11729	    ;;
11730	  *)
11731	    ;;
11732	esac
11733	;;
11734      tandem*)
11735	case $cc_basename in
11736	  NCC*)
11737	    # NonStop-UX NCC 3.20
11738	    lt_prog_compiler_pic_CXX='-KPIC'
11739	    ;;
11740	  *)
11741	    ;;
11742	esac
11743	;;
11744      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11745	case $cc_basename in
11746	  CC*)
11747	    lt_prog_compiler_wl_CXX='-Wl,'
11748	    lt_prog_compiler_pic_CXX='-KPIC'
11749	    lt_prog_compiler_static_CXX='-Bstatic'
11750	    ;;
11751	esac
11752	;;
11753      vxworks*)
11754	;;
11755      *)
11756	lt_prog_compiler_can_build_shared_CXX=no
11757	;;
11758    esac
11759  fi
11760
11761{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11762echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11763
11764#
11765# Check to make sure the PIC flag actually works.
11766#
11767if test -n "$lt_prog_compiler_pic_CXX"; then
11768
11769{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11770echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11771if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11772  echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774  lt_prog_compiler_pic_works_CXX=no
11775  ac_outfile=conftest.$ac_objext
11776   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11777   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11778   # Insert the option either (1) after the last *FLAGS variable, or
11779   # (2) before a word containing "conftest.", or (3) at the end.
11780   # Note that $ac_compile itself does not contain backslashes and begins
11781   # with a dollar sign (not a hyphen), so the echo should work correctly.
11782   # The option is referenced via a variable to avoid confusing sed.
11783   lt_compile=`echo "$ac_compile" | $SED \
11784   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11785   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11786   -e 's:$: $lt_compiler_flag:'`
11787   (eval echo "\"\$as_me:11787: $lt_compile\"" >&5)
11788   (eval "$lt_compile" 2>conftest.err)
11789   ac_status=$?
11790   cat conftest.err >&5
11791   echo "$as_me:11791: \$? = $ac_status" >&5
11792   if (exit $ac_status) && test -s "$ac_outfile"; then
11793     # The compiler can only warn and ignore the option if not recognized
11794     # So say no if there are warnings other than the usual output.
11795     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11796     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11797     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11798       lt_prog_compiler_pic_works_CXX=yes
11799     fi
11800   fi
11801   $rm conftest*
11802
11803fi
11804{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11805echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11806
11807if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11808    case $lt_prog_compiler_pic_CXX in
11809     "" | " "*) ;;
11810     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11811     esac
11812else
11813    lt_prog_compiler_pic_CXX=
11814     lt_prog_compiler_can_build_shared_CXX=no
11815fi
11816
11817fi
11818case $host_os in
11819  # For platforms which do not support PIC, -DPIC is meaningless:
11820  *djgpp*)
11821    lt_prog_compiler_pic_CXX=
11822    ;;
11823  *)
11824    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11825    ;;
11826esac
11827
11828#
11829# Check to make sure the static flag actually works.
11830#
11831wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11832{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11833echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11834if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11835  echo $ECHO_N "(cached) $ECHO_C" >&6
11836else
11837  lt_prog_compiler_static_works_CXX=no
11838   save_LDFLAGS="$LDFLAGS"
11839   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11840   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11841   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11842     # The linker can only warn and ignore the option if not recognized
11843     # So say no if there are warnings
11844     if test -s conftest.err; then
11845       # Append any errors to the config.log.
11846       cat conftest.err 1>&5
11847       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11848       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849       if diff conftest.exp conftest.er2 >/dev/null; then
11850         lt_prog_compiler_static_works_CXX=yes
11851       fi
11852     else
11853       lt_prog_compiler_static_works_CXX=yes
11854     fi
11855   fi
11856   $rm conftest*
11857   LDFLAGS="$save_LDFLAGS"
11858
11859fi
11860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11861echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11862
11863if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11864    :
11865else
11866    lt_prog_compiler_static_CXX=
11867fi
11868
11869
11870{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11871echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11872if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11873  echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875  lt_cv_prog_compiler_c_o_CXX=no
11876   $rm -r conftest 2>/dev/null
11877   mkdir conftest
11878   cd conftest
11879   mkdir out
11880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881
11882   lt_compiler_flag="-o out/conftest2.$ac_objext"
11883   # Insert the option either (1) after the last *FLAGS variable, or
11884   # (2) before a word containing "conftest.", or (3) at the end.
11885   # Note that $ac_compile itself does not contain backslashes and begins
11886   # with a dollar sign (not a hyphen), so the echo should work correctly.
11887   lt_compile=`echo "$ac_compile" | $SED \
11888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890   -e 's:$: $lt_compiler_flag:'`
11891   (eval echo "\"\$as_me:11891: $lt_compile\"" >&5)
11892   (eval "$lt_compile" 2>out/conftest.err)
11893   ac_status=$?
11894   cat out/conftest.err >&5
11895   echo "$as_me:11895: \$? = $ac_status" >&5
11896   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11897   then
11898     # The compiler can only warn and ignore the option if not recognized
11899     # So say no if there are warnings
11900     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11901     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11902     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11903       lt_cv_prog_compiler_c_o_CXX=yes
11904     fi
11905   fi
11906   chmod u+w . 2>&5
11907   $rm conftest*
11908   # SGI C++ compiler will create directory out/ii_files/ for
11909   # template instantiation
11910   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11911   $rm out/* && rmdir out
11912   cd ..
11913   rmdir conftest
11914   $rm conftest*
11915
11916fi
11917{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11918echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11919
11920
11921hard_links="nottested"
11922if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11923  # do not overwrite the value of need_locks provided by the user
11924  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11925echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11926  hard_links=yes
11927  $rm conftest*
11928  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11929  touch conftest.a
11930  ln conftest.a conftest.b 2>&5 || hard_links=no
11931  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11932  { echo "$as_me:$LINENO: result: $hard_links" >&5
11933echo "${ECHO_T}$hard_links" >&6; }
11934  if test "$hard_links" = no; then
11935    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11936echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11937    need_locks=warn
11938  fi
11939else
11940  need_locks=no
11941fi
11942
11943{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11944echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11945
11946  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11947  case $host_os in
11948  aix4* | aix5*)
11949    # If we're using GNU nm, then we don't want the "-C" option.
11950    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11951    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11952      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'
11953    else
11954      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'
11955    fi
11956    ;;
11957  pw32*)
11958    export_symbols_cmds_CXX="$ltdll_cmds"
11959  ;;
11960  cygwin* | mingw*)
11961    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'
11962  ;;
11963  *)
11964    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11965  ;;
11966  esac
11967
11968{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11969echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11970test "$ld_shlibs_CXX" = no && can_build_shared=no
11971
11972#
11973# Do we need to explicitly link libc?
11974#
11975case "x$archive_cmds_need_lc_CXX" in
11976x|xyes)
11977  # Assume -lc should be added
11978  archive_cmds_need_lc_CXX=yes
11979
11980  if test "$enable_shared" = yes && test "$GCC" = yes; then
11981    case $archive_cmds_CXX in
11982    *'~'*)
11983      # FIXME: we may have to deal with multi-command sequences.
11984      ;;
11985    '$CC '*)
11986      # Test whether the compiler implicitly links with -lc since on some
11987      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11988      # to ld, don't add -lc before -lgcc.
11989      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11990echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11991      $rm conftest*
11992      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993
11994      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995  (eval $ac_compile) 2>&5
11996  ac_status=$?
11997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998  (exit $ac_status); } 2>conftest.err; then
11999        soname=conftest
12000        lib=conftest
12001        libobjs=conftest.$ac_objext
12002        deplibs=
12003        wl=$lt_prog_compiler_wl_CXX
12004	pic_flag=$lt_prog_compiler_pic_CXX
12005        compiler_flags=-v
12006        linker_flags=-v
12007        verstring=
12008        output_objdir=.
12009        libname=conftest
12010        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12011        allow_undefined_flag_CXX=
12012        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12013  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12014  ac_status=$?
12015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016  (exit $ac_status); }
12017        then
12018	  archive_cmds_need_lc_CXX=no
12019        else
12020	  archive_cmds_need_lc_CXX=yes
12021        fi
12022        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12023      else
12024        cat conftest.err 1>&5
12025      fi
12026      $rm conftest*
12027      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12028echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12029      ;;
12030    esac
12031  fi
12032  ;;
12033esac
12034
12035{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12036echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12037library_names_spec=
12038libname_spec='lib$name'
12039soname_spec=
12040shrext_cmds=".so"
12041postinstall_cmds=
12042postuninstall_cmds=
12043finish_cmds=
12044finish_eval=
12045shlibpath_var=
12046shlibpath_overrides_runpath=unknown
12047version_type=none
12048dynamic_linker="$host_os ld.so"
12049sys_lib_dlsearch_path_spec="/lib /usr/lib"
12050
12051need_lib_prefix=unknown
12052hardcode_into_libs=no
12053
12054# when you set need_version to no, make sure it does not cause -set_version
12055# flags to be left without arguments
12056need_version=unknown
12057
12058case $host_os in
12059aix3*)
12060  version_type=linux
12061  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12062  shlibpath_var=LIBPATH
12063
12064  # AIX 3 has no versioning support, so we append a major version to the name.
12065  soname_spec='${libname}${release}${shared_ext}$major'
12066  ;;
12067
12068aix4* | aix5*)
12069  version_type=linux
12070  need_lib_prefix=no
12071  need_version=no
12072  hardcode_into_libs=yes
12073  if test "$host_cpu" = ia64; then
12074    # AIX 5 supports IA64
12075    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12076    shlibpath_var=LD_LIBRARY_PATH
12077  else
12078    # With GCC up to 2.95.x, collect2 would create an import file
12079    # for dependence libraries.  The import file would start with
12080    # the line `#! .'.  This would cause the generated library to
12081    # depend on `.', always an invalid library.  This was fixed in
12082    # development snapshots of GCC prior to 3.0.
12083    case $host_os in
12084      aix4 | aix4.[01] | aix4.[01].*)
12085      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12086	   echo ' yes '
12087	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12088	:
12089      else
12090	can_build_shared=no
12091      fi
12092      ;;
12093    esac
12094    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12095    # soname into executable. Probably we can add versioning support to
12096    # collect2, so additional links can be useful in future.
12097    if test "$aix_use_runtimelinking" = yes; then
12098      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12099      # instead of lib<name>.a to let people know that these are not
12100      # typical AIX shared libraries.
12101      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102    else
12103      # We preserve .a as extension for shared libraries through AIX4.2
12104      # and later when we are not doing run time linking.
12105      library_names_spec='${libname}${release}.a $libname.a'
12106      soname_spec='${libname}${release}${shared_ext}$major'
12107    fi
12108    shlibpath_var=LIBPATH
12109  fi
12110  ;;
12111
12112amigaos*)
12113  library_names_spec='$libname.ixlibrary $libname.a'
12114  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12115  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'
12116  ;;
12117
12118beos*)
12119  library_names_spec='${libname}${shared_ext}'
12120  dynamic_linker="$host_os ld.so"
12121  shlibpath_var=LIBRARY_PATH
12122  ;;
12123
12124bsdi[45]*)
12125  version_type=linux
12126  need_version=no
12127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128  soname_spec='${libname}${release}${shared_ext}$major'
12129  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12130  shlibpath_var=LD_LIBRARY_PATH
12131  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12132  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12133  # the default ld.so.conf also contains /usr/contrib/lib and
12134  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12135  # libtool to hard-code these into programs
12136  ;;
12137
12138cygwin* | mingw* | pw32*)
12139  version_type=windows
12140  shrext_cmds=".dll"
12141  need_version=no
12142  need_lib_prefix=no
12143
12144  case $GCC,$host_os in
12145  yes,cygwin* | yes,mingw* | yes,pw32*)
12146    library_names_spec='$libname.dll.a'
12147    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12148    postinstall_cmds='base_file=`basename \${file}`~
12149      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12150      dldir=$destdir/`dirname \$dlpath`~
12151      test -d \$dldir || mkdir -p \$dldir~
12152      $install_prog $dir/$dlname \$dldir/$dlname~
12153      chmod a+x \$dldir/$dlname'
12154    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12155      dlpath=$dir/\$dldll~
12156       $rm \$dlpath'
12157    shlibpath_overrides_runpath=yes
12158
12159    case $host_os in
12160    cygwin*)
12161      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12162      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12164      ;;
12165    mingw*)
12166      # MinGW DLLs use traditional 'lib' prefix
12167      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12169      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12170        # It is most probably a Windows format PATH printed by
12171        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12172        # path with ; separators, and with drive letters. We can handle the
12173        # drive letters (cygwin fileutils understands them), so leave them,
12174        # especially as we might pass files found there to a mingw objdump,
12175        # which wouldn't understand a cygwinified path. Ahh.
12176        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12177      else
12178        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12179      fi
12180      ;;
12181    pw32*)
12182      # pw32 DLLs use 'pw' prefix rather than 'lib'
12183      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12184      ;;
12185    esac
12186    ;;
12187
12188  *)
12189    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12190    ;;
12191  esac
12192  dynamic_linker='Win32 ld.exe'
12193  # FIXME: first we should search . and the directory the executable is in
12194  shlibpath_var=PATH
12195  ;;
12196
12197darwin* | rhapsody*)
12198  dynamic_linker="$host_os dyld"
12199  version_type=darwin
12200  need_lib_prefix=no
12201  need_version=no
12202  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12203  soname_spec='${libname}${release}${major}$shared_ext'
12204  shlibpath_overrides_runpath=yes
12205  shlibpath_var=DYLD_LIBRARY_PATH
12206  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12207
12208  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12209  ;;
12210
12211dgux*)
12212  version_type=linux
12213  need_lib_prefix=no
12214  need_version=no
12215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12216  soname_spec='${libname}${release}${shared_ext}$major'
12217  shlibpath_var=LD_LIBRARY_PATH
12218  ;;
12219
12220freebsd1*)
12221  dynamic_linker=no
12222  ;;
12223
12224freebsd* | dragonfly*)
12225  # DragonFly does not have aout.  When/if they implement a new
12226  # versioning mechanism, adjust this.
12227  if test -x /usr/bin/objformat; then
12228    objformat=`/usr/bin/objformat`
12229  else
12230    case $host_os in
12231    freebsd[123]*) objformat=aout ;;
12232    *) objformat=elf ;;
12233    esac
12234  fi
12235  version_type=freebsd-$objformat
12236  case $version_type in
12237    freebsd-elf*)
12238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12239      need_version=no
12240      need_lib_prefix=no
12241      ;;
12242    freebsd-*)
12243      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12244      need_version=yes
12245      ;;
12246  esac
12247  shlibpath_var=LD_LIBRARY_PATH
12248  case $host_os in
12249  freebsd2*)
12250    shlibpath_overrides_runpath=yes
12251    ;;
12252  freebsd3.[01]* | freebsdelf3.[01]*)
12253    shlibpath_overrides_runpath=yes
12254    hardcode_into_libs=yes
12255    ;;
12256  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12257  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12258    shlibpath_overrides_runpath=no
12259    hardcode_into_libs=yes
12260    ;;
12261  *) # from 4.6 on, and DragonFly
12262    shlibpath_overrides_runpath=yes
12263    hardcode_into_libs=yes
12264    ;;
12265  esac
12266  ;;
12267
12268gnu*)
12269  version_type=linux
12270  need_lib_prefix=no
12271  need_version=no
12272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12273  soname_spec='${libname}${release}${shared_ext}$major'
12274  shlibpath_var=LD_LIBRARY_PATH
12275  hardcode_into_libs=yes
12276  ;;
12277
12278hpux9* | hpux10* | hpux11*)
12279  # Give a soname corresponding to the major version so that dld.sl refuses to
12280  # link against other versions.
12281  version_type=sunos
12282  need_lib_prefix=no
12283  need_version=no
12284  case $host_cpu in
12285  ia64*)
12286    shrext_cmds='.so'
12287    hardcode_into_libs=yes
12288    dynamic_linker="$host_os dld.so"
12289    shlibpath_var=LD_LIBRARY_PATH
12290    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292    soname_spec='${libname}${release}${shared_ext}$major'
12293    if test "X$HPUX_IA64_MODE" = X32; then
12294      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12295    else
12296      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12297    fi
12298    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12299    ;;
12300   hppa*64*)
12301     shrext_cmds='.sl'
12302     hardcode_into_libs=yes
12303     dynamic_linker="$host_os dld.sl"
12304     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12305     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307     soname_spec='${libname}${release}${shared_ext}$major'
12308     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12309     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12310     ;;
12311   *)
12312    shrext_cmds='.sl'
12313    dynamic_linker="$host_os dld.sl"
12314    shlibpath_var=SHLIB_PATH
12315    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317    soname_spec='${libname}${release}${shared_ext}$major'
12318    ;;
12319  esac
12320  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12321  postinstall_cmds='chmod 555 $lib'
12322  ;;
12323
12324interix[3-9]*)
12325  version_type=linux
12326  need_lib_prefix=no
12327  need_version=no
12328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12329  soname_spec='${libname}${release}${shared_ext}$major'
12330  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12331  shlibpath_var=LD_LIBRARY_PATH
12332  shlibpath_overrides_runpath=no
12333  hardcode_into_libs=yes
12334  ;;
12335
12336irix5* | irix6* | nonstopux*)
12337  case $host_os in
12338    nonstopux*) version_type=nonstopux ;;
12339    *)
12340	if test "$lt_cv_prog_gnu_ld" = yes; then
12341		version_type=linux
12342	else
12343		version_type=irix
12344	fi ;;
12345  esac
12346  need_lib_prefix=no
12347  need_version=no
12348  soname_spec='${libname}${release}${shared_ext}$major'
12349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12350  case $host_os in
12351  irix5* | nonstopux*)
12352    libsuff= shlibsuff=
12353    ;;
12354  *)
12355    case $LD in # libtool.m4 will add one of these switches to LD
12356    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12357      libsuff= shlibsuff= libmagic=32-bit;;
12358    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12359      libsuff=32 shlibsuff=N32 libmagic=N32;;
12360    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12361      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12362    *) libsuff= shlibsuff= libmagic=never-match;;
12363    esac
12364    ;;
12365  esac
12366  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12367  shlibpath_overrides_runpath=no
12368  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12369  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12370  hardcode_into_libs=yes
12371  ;;
12372
12373# No shared lib support for Linux oldld, aout, or coff.
12374linux*oldld* | linux*aout* | linux*coff*)
12375  dynamic_linker=no
12376  ;;
12377
12378# This must be Linux ELF.
12379linux* | k*bsd*-gnu)
12380  version_type=linux
12381  need_lib_prefix=no
12382  need_version=no
12383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384  soname_spec='${libname}${release}${shared_ext}$major'
12385  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12386  shlibpath_var=LD_LIBRARY_PATH
12387  shlibpath_overrides_runpath=no
12388  # This implies no fast_install, which is unacceptable.
12389  # Some rework will be needed to allow for fast_install
12390  # before this can be enabled.
12391  hardcode_into_libs=yes
12392
12393  # Append ld.so.conf contents to the search path
12394  if test -f /etc/ld.so.conf; then
12395    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' ' '`
12396    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12397  fi
12398
12399  # We used to test for /lib/ld.so.1 and disable shared libraries on
12400  # powerpc, because MkLinux only supported shared libraries with the
12401  # GNU dynamic linker.  Since this was broken with cross compilers,
12402  # most powerpc-linux boxes support dynamic linking these days and
12403  # people can always --disable-shared, the test was removed, and we
12404  # assume the GNU/Linux dynamic linker is in use.
12405  dynamic_linker='GNU/Linux ld.so'
12406  ;;
12407
12408netbsd*)
12409  version_type=sunos
12410  need_lib_prefix=no
12411  need_version=no
12412  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12414    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12415    dynamic_linker='NetBSD (a.out) ld.so'
12416  else
12417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12418    soname_spec='${libname}${release}${shared_ext}$major'
12419    dynamic_linker='NetBSD ld.elf_so'
12420  fi
12421  shlibpath_var=LD_LIBRARY_PATH
12422  shlibpath_overrides_runpath=yes
12423  hardcode_into_libs=yes
12424  ;;
12425
12426newsos6)
12427  version_type=linux
12428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429  shlibpath_var=LD_LIBRARY_PATH
12430  shlibpath_overrides_runpath=yes
12431  ;;
12432
12433nto-qnx*)
12434  version_type=linux
12435  need_lib_prefix=no
12436  need_version=no
12437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12438  soname_spec='${libname}${release}${shared_ext}$major'
12439  shlibpath_var=LD_LIBRARY_PATH
12440  shlibpath_overrides_runpath=yes
12441  ;;
12442
12443openbsd*)
12444  version_type=sunos
12445  sys_lib_dlsearch_path_spec="/usr/lib"
12446  need_lib_prefix=no
12447  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12448  case $host_os in
12449    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12450    *)                         need_version=no  ;;
12451  esac
12452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454  shlibpath_var=LD_LIBRARY_PATH
12455  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12456    case $host_os in
12457      openbsd2.[89] | openbsd2.[89].*)
12458	shlibpath_overrides_runpath=no
12459	;;
12460      *)
12461	shlibpath_overrides_runpath=yes
12462	;;
12463      esac
12464  else
12465    shlibpath_overrides_runpath=yes
12466  fi
12467  ;;
12468
12469os2*)
12470  libname_spec='$name'
12471  shrext_cmds=".dll"
12472  need_lib_prefix=no
12473  library_names_spec='$libname${shared_ext} $libname.a'
12474  dynamic_linker='OS/2 ld.exe'
12475  shlibpath_var=LIBPATH
12476  ;;
12477
12478osf3* | osf4* | osf5*)
12479  version_type=osf
12480  need_lib_prefix=no
12481  need_version=no
12482  soname_spec='${libname}${release}${shared_ext}$major'
12483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484  shlibpath_var=LD_LIBRARY_PATH
12485  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12486  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12487  ;;
12488
12489rdos*)
12490  dynamic_linker=no
12491  ;;
12492
12493solaris*)
12494  version_type=linux
12495  need_lib_prefix=no
12496  need_version=no
12497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12498  soname_spec='${libname}${release}${shared_ext}$major'
12499  shlibpath_var=LD_LIBRARY_PATH
12500  shlibpath_overrides_runpath=yes
12501  hardcode_into_libs=yes
12502  # ldd complains unless libraries are executable
12503  postinstall_cmds='chmod +x $lib'
12504  ;;
12505
12506sunos4*)
12507  version_type=sunos
12508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12509  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12510  shlibpath_var=LD_LIBRARY_PATH
12511  shlibpath_overrides_runpath=yes
12512  if test "$with_gnu_ld" = yes; then
12513    need_lib_prefix=no
12514  fi
12515  need_version=yes
12516  ;;
12517
12518sysv4 | sysv4.3*)
12519  version_type=linux
12520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521  soname_spec='${libname}${release}${shared_ext}$major'
12522  shlibpath_var=LD_LIBRARY_PATH
12523  case $host_vendor in
12524    sni)
12525      shlibpath_overrides_runpath=no
12526      need_lib_prefix=no
12527      export_dynamic_flag_spec='${wl}-Blargedynsym'
12528      runpath_var=LD_RUN_PATH
12529      ;;
12530    siemens)
12531      need_lib_prefix=no
12532      ;;
12533    motorola)
12534      need_lib_prefix=no
12535      need_version=no
12536      shlibpath_overrides_runpath=no
12537      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12538      ;;
12539  esac
12540  ;;
12541
12542sysv4*MP*)
12543  if test -d /usr/nec ;then
12544    version_type=linux
12545    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12546    soname_spec='$libname${shared_ext}.$major'
12547    shlibpath_var=LD_LIBRARY_PATH
12548  fi
12549  ;;
12550
12551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12552  version_type=freebsd-elf
12553  need_lib_prefix=no
12554  need_version=no
12555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12556  soname_spec='${libname}${release}${shared_ext}$major'
12557  shlibpath_var=LD_LIBRARY_PATH
12558  hardcode_into_libs=yes
12559  if test "$with_gnu_ld" = yes; then
12560    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12561    shlibpath_overrides_runpath=no
12562  else
12563    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12564    shlibpath_overrides_runpath=yes
12565    case $host_os in
12566      sco3.2v5*)
12567        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12568	;;
12569    esac
12570  fi
12571  sys_lib_dlsearch_path_spec='/usr/lib'
12572  ;;
12573
12574uts4*)
12575  version_type=linux
12576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577  soname_spec='${libname}${release}${shared_ext}$major'
12578  shlibpath_var=LD_LIBRARY_PATH
12579  ;;
12580
12581*)
12582  dynamic_linker=no
12583  ;;
12584esac
12585{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12586echo "${ECHO_T}$dynamic_linker" >&6; }
12587test "$dynamic_linker" = no && can_build_shared=no
12588
12589variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12590if test "$GCC" = yes; then
12591  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12592fi
12593
12594{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12595echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12596hardcode_action_CXX=
12597if test -n "$hardcode_libdir_flag_spec_CXX" || \
12598   test -n "$runpath_var_CXX" || \
12599   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12600
12601  # We can hardcode non-existant directories.
12602  if test "$hardcode_direct_CXX" != no &&
12603     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12604     # have to relink, otherwise we might link with an installed library
12605     # when we should be linking with a yet-to-be-installed one
12606     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12607     test "$hardcode_minus_L_CXX" != no; then
12608    # Linking always hardcodes the temporary library directory.
12609    hardcode_action_CXX=relink
12610  else
12611    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12612    hardcode_action_CXX=immediate
12613  fi
12614else
12615  # We cannot hardcode anything, or else we can only hardcode existing
12616  # directories.
12617  hardcode_action_CXX=unsupported
12618fi
12619{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12620echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12621
12622if test "$hardcode_action_CXX" = relink; then
12623  # Fast installation is not supported
12624  enable_fast_install=no
12625elif test "$shlibpath_overrides_runpath" = yes ||
12626     test "$enable_shared" = no; then
12627  # Fast installation is not necessary
12628  enable_fast_install=needless
12629fi
12630
12631
12632# The else clause should only fire when bootstrapping the
12633# libtool distribution, otherwise you forgot to ship ltmain.sh
12634# with your package, and you will get complaints that there are
12635# no rules to generate ltmain.sh.
12636if test -f "$ltmain"; then
12637  # See if we are running on zsh, and set the options which allow our commands through
12638  # without removal of \ escapes.
12639  if test -n "${ZSH_VERSION+set}" ; then
12640    setopt NO_GLOB_SUBST
12641  fi
12642  # Now quote all the things that may contain metacharacters while being
12643  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12644  # variables and quote the copies for generation of the libtool script.
12645  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12646    SED SHELL STRIP \
12647    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12648    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12649    deplibs_check_method reload_flag reload_cmds need_locks \
12650    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12651    lt_cv_sys_global_symbol_to_c_name_address \
12652    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12653    old_postinstall_cmds old_postuninstall_cmds \
12654    compiler_CXX \
12655    CC_CXX \
12656    LD_CXX \
12657    lt_prog_compiler_wl_CXX \
12658    lt_prog_compiler_pic_CXX \
12659    lt_prog_compiler_static_CXX \
12660    lt_prog_compiler_no_builtin_flag_CXX \
12661    export_dynamic_flag_spec_CXX \
12662    thread_safe_flag_spec_CXX \
12663    whole_archive_flag_spec_CXX \
12664    enable_shared_with_static_runtimes_CXX \
12665    old_archive_cmds_CXX \
12666    old_archive_from_new_cmds_CXX \
12667    predep_objects_CXX \
12668    postdep_objects_CXX \
12669    predeps_CXX \
12670    postdeps_CXX \
12671    compiler_lib_search_path_CXX \
12672    archive_cmds_CXX \
12673    archive_expsym_cmds_CXX \
12674    postinstall_cmds_CXX \
12675    postuninstall_cmds_CXX \
12676    old_archive_from_expsyms_cmds_CXX \
12677    allow_undefined_flag_CXX \
12678    no_undefined_flag_CXX \
12679    export_symbols_cmds_CXX \
12680    hardcode_libdir_flag_spec_CXX \
12681    hardcode_libdir_flag_spec_ld_CXX \
12682    hardcode_libdir_separator_CXX \
12683    hardcode_automatic_CXX \
12684    module_cmds_CXX \
12685    module_expsym_cmds_CXX \
12686    lt_cv_prog_compiler_c_o_CXX \
12687    fix_srcfile_path_CXX \
12688    exclude_expsyms_CXX \
12689    include_expsyms_CXX; do
12690
12691    case $var in
12692    old_archive_cmds_CXX | \
12693    old_archive_from_new_cmds_CXX | \
12694    archive_cmds_CXX | \
12695    archive_expsym_cmds_CXX | \
12696    module_cmds_CXX | \
12697    module_expsym_cmds_CXX | \
12698    old_archive_from_expsyms_cmds_CXX | \
12699    export_symbols_cmds_CXX | \
12700    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12701    postinstall_cmds | postuninstall_cmds | \
12702    old_postinstall_cmds | old_postuninstall_cmds | \
12703    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12704      # Double-quote double-evaled strings.
12705      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12706      ;;
12707    *)
12708      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12709      ;;
12710    esac
12711  done
12712
12713  case $lt_echo in
12714  *'\$0 --fallback-echo"')
12715    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12716    ;;
12717  esac
12718
12719cfgfile="$ofile"
12720
12721  cat <<__EOF__ >> "$cfgfile"
12722# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12723
12724# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12725
12726# Shell to use when invoking shell scripts.
12727SHELL=$lt_SHELL
12728
12729# Whether or not to build shared libraries.
12730build_libtool_libs=$enable_shared
12731
12732# Whether or not to build static libraries.
12733build_old_libs=$enable_static
12734
12735# Whether or not to add -lc for building shared libraries.
12736build_libtool_need_lc=$archive_cmds_need_lc_CXX
12737
12738# Whether or not to disallow shared libs when runtime libs are static
12739allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12740
12741# Whether or not to optimize for fast installation.
12742fast_install=$enable_fast_install
12743
12744# The host system.
12745host_alias=$host_alias
12746host=$host
12747host_os=$host_os
12748
12749# The build system.
12750build_alias=$build_alias
12751build=$build
12752build_os=$build_os
12753
12754# An echo program that does not interpret backslashes.
12755echo=$lt_echo
12756
12757# The archiver.
12758AR=$lt_AR
12759AR_FLAGS=$lt_AR_FLAGS
12760
12761# A C compiler.
12762LTCC=$lt_LTCC
12763
12764# LTCC compiler flags.
12765LTCFLAGS=$lt_LTCFLAGS
12766
12767# A language-specific compiler.
12768CC=$lt_compiler_CXX
12769
12770# Is the compiler the GNU C compiler?
12771with_gcc=$GCC_CXX
12772
12773# An ERE matcher.
12774EGREP=$lt_EGREP
12775
12776# The linker used to build libraries.
12777LD=$lt_LD_CXX
12778
12779# Whether we need hard or soft links.
12780LN_S=$lt_LN_S
12781
12782# A BSD-compatible nm program.
12783NM=$lt_NM
12784
12785# A symbol stripping program
12786STRIP=$lt_STRIP
12787
12788# Used to examine libraries when file_magic_cmd begins "file"
12789MAGIC_CMD=$MAGIC_CMD
12790
12791# Used on cygwin: DLL creation program.
12792DLLTOOL="$DLLTOOL"
12793
12794# Used on cygwin: object dumper.
12795OBJDUMP="$OBJDUMP"
12796
12797# Used on cygwin: assembler.
12798AS="$AS"
12799
12800# The name of the directory that contains temporary libtool files.
12801objdir=$objdir
12802
12803# How to create reloadable object files.
12804reload_flag=$lt_reload_flag
12805reload_cmds=$lt_reload_cmds
12806
12807# How to pass a linker flag through the compiler.
12808wl=$lt_lt_prog_compiler_wl_CXX
12809
12810# Object file suffix (normally "o").
12811objext="$ac_objext"
12812
12813# Old archive suffix (normally "a").
12814libext="$libext"
12815
12816# Shared library suffix (normally ".so").
12817shrext_cmds='$shrext_cmds'
12818
12819# Executable file suffix (normally "").
12820exeext="$exeext"
12821
12822# Additional compiler flags for building library objects.
12823pic_flag=$lt_lt_prog_compiler_pic_CXX
12824pic_mode=$pic_mode
12825
12826# What is the maximum length of a command?
12827max_cmd_len=$lt_cv_sys_max_cmd_len
12828
12829# Does compiler simultaneously support -c and -o options?
12830compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12831
12832# Must we lock files when doing compilation?
12833need_locks=$lt_need_locks
12834
12835# Do we need the lib prefix for modules?
12836need_lib_prefix=$need_lib_prefix
12837
12838# Do we need a version for libraries?
12839need_version=$need_version
12840
12841# Whether dlopen is supported.
12842dlopen_support=$enable_dlopen
12843
12844# Whether dlopen of programs is supported.
12845dlopen_self=$enable_dlopen_self
12846
12847# Whether dlopen of statically linked programs is supported.
12848dlopen_self_static=$enable_dlopen_self_static
12849
12850# Compiler flag to prevent dynamic linking.
12851link_static_flag=$lt_lt_prog_compiler_static_CXX
12852
12853# Compiler flag to turn off builtin functions.
12854no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12855
12856# Compiler flag to allow reflexive dlopens.
12857export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12858
12859# Compiler flag to generate shared objects directly from archives.
12860whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12861
12862# Compiler flag to generate thread-safe objects.
12863thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12864
12865# Library versioning type.
12866version_type=$version_type
12867
12868# Format of library name prefix.
12869libname_spec=$lt_libname_spec
12870
12871# List of archive names.  First name is the real one, the rest are links.
12872# The last name is the one that the linker finds with -lNAME.
12873library_names_spec=$lt_library_names_spec
12874
12875# The coded name of the library, if different from the real name.
12876soname_spec=$lt_soname_spec
12877
12878# Commands used to build and install an old-style archive.
12879RANLIB=$lt_RANLIB
12880old_archive_cmds=$lt_old_archive_cmds_CXX
12881old_postinstall_cmds=$lt_old_postinstall_cmds
12882old_postuninstall_cmds=$lt_old_postuninstall_cmds
12883
12884# Create an old-style archive from a shared archive.
12885old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12886
12887# Create a temporary old-style archive to link instead of a shared archive.
12888old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12889
12890# Commands used to build and install a shared archive.
12891archive_cmds=$lt_archive_cmds_CXX
12892archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12893postinstall_cmds=$lt_postinstall_cmds
12894postuninstall_cmds=$lt_postuninstall_cmds
12895
12896# Commands used to build a loadable module (assumed same as above if empty)
12897module_cmds=$lt_module_cmds_CXX
12898module_expsym_cmds=$lt_module_expsym_cmds_CXX
12899
12900# Commands to strip libraries.
12901old_striplib=$lt_old_striplib
12902striplib=$lt_striplib
12903
12904# Dependencies to place before the objects being linked to create a
12905# shared library.
12906predep_objects=$lt_predep_objects_CXX
12907
12908# Dependencies to place after the objects being linked to create a
12909# shared library.
12910postdep_objects=$lt_postdep_objects_CXX
12911
12912# Dependencies to place before the objects being linked to create a
12913# shared library.
12914predeps=$lt_predeps_CXX
12915
12916# Dependencies to place after the objects being linked to create a
12917# shared library.
12918postdeps=$lt_postdeps_CXX
12919
12920# The library search path used internally by the compiler when linking
12921# a shared library.
12922compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12923
12924# Method to check whether dependent libraries are shared objects.
12925deplibs_check_method=$lt_deplibs_check_method
12926
12927# Command to use when deplibs_check_method == file_magic.
12928file_magic_cmd=$lt_file_magic_cmd
12929
12930# Flag that allows shared libraries with undefined symbols to be built.
12931allow_undefined_flag=$lt_allow_undefined_flag_CXX
12932
12933# Flag that forces no undefined symbols.
12934no_undefined_flag=$lt_no_undefined_flag_CXX
12935
12936# Commands used to finish a libtool library installation in a directory.
12937finish_cmds=$lt_finish_cmds
12938
12939# Same as above, but a single script fragment to be evaled but not shown.
12940finish_eval=$lt_finish_eval
12941
12942# Take the output of nm and produce a listing of raw symbols and C names.
12943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12944
12945# Transform the output of nm in a proper C declaration
12946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12947
12948# Transform the output of nm in a C name address pair
12949global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12950
12951# This is the shared library runtime path variable.
12952runpath_var=$runpath_var
12953
12954# This is the shared library path variable.
12955shlibpath_var=$shlibpath_var
12956
12957# Is shlibpath searched before the hard-coded library search path?
12958shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12959
12960# How to hardcode a shared library path into an executable.
12961hardcode_action=$hardcode_action_CXX
12962
12963# Whether we should hardcode library paths into libraries.
12964hardcode_into_libs=$hardcode_into_libs
12965
12966# Flag to hardcode \$libdir into a binary during linking.
12967# This must work even if \$libdir does not exist.
12968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12969
12970# If ld is used when linking, flag to hardcode \$libdir into
12971# a binary during linking. This must work even if \$libdir does
12972# not exist.
12973hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12974
12975# Whether we need a single -rpath flag with a separated argument.
12976hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12977
12978# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12979# resulting binary.
12980hardcode_direct=$hardcode_direct_CXX
12981
12982# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12983# resulting binary.
12984hardcode_minus_L=$hardcode_minus_L_CXX
12985
12986# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12987# the resulting binary.
12988hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12989
12990# Set to yes if building a shared library automatically hardcodes DIR into the library
12991# and all subsequent libraries and executables linked against it.
12992hardcode_automatic=$hardcode_automatic_CXX
12993
12994# Variables whose values should be saved in libtool wrapper scripts and
12995# restored at relink time.
12996variables_saved_for_relink="$variables_saved_for_relink"
12997
12998# Whether libtool must link a program against all its dependency libraries.
12999link_all_deplibs=$link_all_deplibs_CXX
13000
13001# Compile-time system search path for libraries
13002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13003
13004# Run-time system search path for libraries
13005sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13006
13007# Fix the shell variable \$srcfile for the compiler.
13008fix_srcfile_path=$lt_fix_srcfile_path
13009
13010# Set to yes if exported symbols are required.
13011always_export_symbols=$always_export_symbols_CXX
13012
13013# The commands to list exported symbols.
13014export_symbols_cmds=$lt_export_symbols_cmds_CXX
13015
13016# The commands to extract the exported symbol list from a shared archive.
13017extract_expsyms_cmds=$lt_extract_expsyms_cmds
13018
13019# Symbols that should not be listed in the preloaded symbols.
13020exclude_expsyms=$lt_exclude_expsyms_CXX
13021
13022# Symbols that must always be exported.
13023include_expsyms=$lt_include_expsyms_CXX
13024
13025# ### END LIBTOOL TAG CONFIG: $tagname
13026
13027__EOF__
13028
13029
13030else
13031  # If there is no Makefile yet, we rely on a make rule to execute
13032  # `config.status --recheck' to rerun these tests and create the
13033  # libtool script then.
13034  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13035  if test -f "$ltmain_in"; then
13036    test -f Makefile && make "$ltmain"
13037  fi
13038fi
13039
13040
13041ac_ext=c
13042ac_cpp='$CPP $CPPFLAGS'
13043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047CC=$lt_save_CC
13048LDCXX=$LD
13049LD=$lt_save_LD
13050GCC=$lt_save_GCC
13051with_gnu_ldcxx=$with_gnu_ld
13052with_gnu_ld=$lt_save_with_gnu_ld
13053lt_cv_path_LDCXX=$lt_cv_path_LD
13054lt_cv_path_LD=$lt_save_path_LD
13055lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13056lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13057
13058	else
13059	  tagname=""
13060	fi
13061	;;
13062
13063      F77)
13064	if test -n "$F77" && test "X$F77" != "Xno"; then
13065
13066ac_ext=f
13067ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13068ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13070
13071
13072archive_cmds_need_lc_F77=no
13073allow_undefined_flag_F77=
13074always_export_symbols_F77=no
13075archive_expsym_cmds_F77=
13076export_dynamic_flag_spec_F77=
13077hardcode_direct_F77=no
13078hardcode_libdir_flag_spec_F77=
13079hardcode_libdir_flag_spec_ld_F77=
13080hardcode_libdir_separator_F77=
13081hardcode_minus_L_F77=no
13082hardcode_automatic_F77=no
13083module_cmds_F77=
13084module_expsym_cmds_F77=
13085link_all_deplibs_F77=unknown
13086old_archive_cmds_F77=$old_archive_cmds
13087no_undefined_flag_F77=
13088whole_archive_flag_spec_F77=
13089enable_shared_with_static_runtimes_F77=no
13090
13091# Source file extension for f77 test sources.
13092ac_ext=f
13093
13094# Object file extension for compiled f77 test sources.
13095objext=o
13096objext_F77=$objext
13097
13098# Code to be used in simple compile tests
13099lt_simple_compile_test_code="\
13100      subroutine t
13101      return
13102      end
13103"
13104
13105# Code to be used in simple link tests
13106lt_simple_link_test_code="\
13107      program t
13108      end
13109"
13110
13111# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13112
13113# If no C compiler was specified, use CC.
13114LTCC=${LTCC-"$CC"}
13115
13116# If no C compiler flags were specified, use CFLAGS.
13117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13118
13119# Allow CC to be a program name with arguments.
13120compiler=$CC
13121
13122
13123# save warnings/boilerplate of simple test code
13124ac_outfile=conftest.$ac_objext
13125echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13126eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13127_lt_compiler_boilerplate=`cat conftest.err`
13128$rm conftest*
13129
13130ac_outfile=conftest.$ac_objext
13131echo "$lt_simple_link_test_code" >conftest.$ac_ext
13132eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13133_lt_linker_boilerplate=`cat conftest.err`
13134$rm conftest*
13135
13136
13137# Allow CC to be a program name with arguments.
13138lt_save_CC="$CC"
13139CC=${F77-"f77"}
13140compiler=$CC
13141compiler_F77=$CC
13142for cc_temp in $compiler""; do
13143  case $cc_temp in
13144    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13145    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13146    \-*) ;;
13147    *) break;;
13148  esac
13149done
13150cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13151
13152
13153{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13154echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13155{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13156echo "${ECHO_T}$can_build_shared" >&6; }
13157
13158{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13159echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13160test "$can_build_shared" = "no" && enable_shared=no
13161
13162# On AIX, shared libraries and static libraries use the same namespace, and
13163# are all built from PIC.
13164case $host_os in
13165aix3*)
13166  test "$enable_shared" = yes && enable_static=no
13167  if test -n "$RANLIB"; then
13168    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13169    postinstall_cmds='$RANLIB $lib'
13170  fi
13171  ;;
13172aix4* | aix5*)
13173  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13174    test "$enable_shared" = yes && enable_static=no
13175  fi
13176  ;;
13177esac
13178{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13179echo "${ECHO_T}$enable_shared" >&6; }
13180
13181{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13182echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13183# Make sure either enable_shared or enable_static is yes.
13184test "$enable_shared" = yes || enable_static=yes
13185{ echo "$as_me:$LINENO: result: $enable_static" >&5
13186echo "${ECHO_T}$enable_static" >&6; }
13187
13188GCC_F77="$G77"
13189LD_F77="$LD"
13190
13191lt_prog_compiler_wl_F77=
13192lt_prog_compiler_pic_F77=
13193lt_prog_compiler_static_F77=
13194
13195{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13196echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13197
13198  if test "$GCC" = yes; then
13199    lt_prog_compiler_wl_F77='-Wl,'
13200    lt_prog_compiler_static_F77='-static'
13201
13202    case $host_os in
13203      aix*)
13204      # All AIX code is PIC.
13205      if test "$host_cpu" = ia64; then
13206	# AIX 5 now supports IA64 processor
13207	lt_prog_compiler_static_F77='-Bstatic'
13208      fi
13209      ;;
13210
13211    amigaos*)
13212      # FIXME: we need at least 68020 code to build shared libraries, but
13213      # adding the `-m68020' flag to GCC prevents building anything better,
13214      # like `-m68040'.
13215      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13216      ;;
13217
13218    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13219      # PIC is the default for these OSes.
13220      ;;
13221
13222    mingw* | cygwin* | pw32* | os2*)
13223      # This hack is so that the source file can tell whether it is being
13224      # built for inclusion in a dll (and should export symbols for example).
13225      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13226      # (--disable-auto-import) libraries
13227      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13228      ;;
13229
13230    darwin* | rhapsody*)
13231      # PIC is the default on this platform
13232      # Common symbols not allowed in MH_DYLIB files
13233      lt_prog_compiler_pic_F77='-fno-common'
13234      ;;
13235
13236    interix[3-9]*)
13237      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13238      # Instead, we relocate shared libraries at runtime.
13239      ;;
13240
13241    msdosdjgpp*)
13242      # Just because we use GCC doesn't mean we suddenly get shared libraries
13243      # on systems that don't support them.
13244      lt_prog_compiler_can_build_shared_F77=no
13245      enable_shared=no
13246      ;;
13247
13248    sysv4*MP*)
13249      if test -d /usr/nec; then
13250	lt_prog_compiler_pic_F77=-Kconform_pic
13251      fi
13252      ;;
13253
13254    hpux*)
13255      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13256      # not for PA HP-UX.
13257      case $host_cpu in
13258      hppa*64*|ia64*)
13259	# +Z the default
13260	;;
13261      *)
13262	lt_prog_compiler_pic_F77='-fPIC'
13263	;;
13264      esac
13265      ;;
13266
13267    *)
13268      lt_prog_compiler_pic_F77='-fPIC'
13269      ;;
13270    esac
13271  else
13272    # PORTME Check for flag to pass linker flags through the system compiler.
13273    case $host_os in
13274    aix*)
13275      lt_prog_compiler_wl_F77='-Wl,'
13276      if test "$host_cpu" = ia64; then
13277	# AIX 5 now supports IA64 processor
13278	lt_prog_compiler_static_F77='-Bstatic'
13279      else
13280	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13281      fi
13282      ;;
13283      darwin*)
13284        # PIC is the default on this platform
13285        # Common symbols not allowed in MH_DYLIB files
13286       case $cc_basename in
13287         xlc*)
13288         lt_prog_compiler_pic_F77='-qnocommon'
13289         lt_prog_compiler_wl_F77='-Wl,'
13290         ;;
13291       esac
13292       ;;
13293
13294    mingw* | cygwin* | pw32* | os2*)
13295      # This hack is so that the source file can tell whether it is being
13296      # built for inclusion in a dll (and should export symbols for example).
13297      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13298      ;;
13299
13300    hpux9* | hpux10* | hpux11*)
13301      lt_prog_compiler_wl_F77='-Wl,'
13302      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13303      # not for PA HP-UX.
13304      case $host_cpu in
13305      hppa*64*|ia64*)
13306	# +Z the default
13307	;;
13308      *)
13309	lt_prog_compiler_pic_F77='+Z'
13310	;;
13311      esac
13312      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13313      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13314      ;;
13315
13316    irix5* | irix6* | nonstopux*)
13317      lt_prog_compiler_wl_F77='-Wl,'
13318      # PIC (with -KPIC) is the default.
13319      lt_prog_compiler_static_F77='-non_shared'
13320      ;;
13321
13322    newsos6)
13323      lt_prog_compiler_pic_F77='-KPIC'
13324      lt_prog_compiler_static_F77='-Bstatic'
13325      ;;
13326
13327    linux* | k*bsd*-gnu)
13328      case $cc_basename in
13329      icc* | ecc*)
13330	lt_prog_compiler_wl_F77='-Wl,'
13331	lt_prog_compiler_pic_F77='-KPIC'
13332	lt_prog_compiler_static_F77='-static'
13333        ;;
13334      pgcc* | pgf77* | pgf90* | pgf95*)
13335        # Portland Group compilers (*not* the Pentium gcc compiler,
13336	# which looks to be a dead project)
13337	lt_prog_compiler_wl_F77='-Wl,'
13338	lt_prog_compiler_pic_F77='-fpic'
13339	lt_prog_compiler_static_F77='-Bstatic'
13340        ;;
13341      ccc*)
13342        lt_prog_compiler_wl_F77='-Wl,'
13343        # All Alpha code is PIC.
13344        lt_prog_compiler_static_F77='-non_shared'
13345        ;;
13346      *)
13347        case `$CC -V 2>&1 | sed 5q` in
13348	*Sun\ C*)
13349	  # Sun C 5.9
13350	  lt_prog_compiler_pic_F77='-KPIC'
13351	  lt_prog_compiler_static_F77='-Bstatic'
13352	  lt_prog_compiler_wl_F77='-Wl,'
13353	  ;;
13354	*Sun\ F*)
13355	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13356	  lt_prog_compiler_pic_F77='-KPIC'
13357	  lt_prog_compiler_static_F77='-Bstatic'
13358	  lt_prog_compiler_wl_F77=''
13359	  ;;
13360	esac
13361	;;
13362      esac
13363      ;;
13364
13365    osf3* | osf4* | osf5*)
13366      lt_prog_compiler_wl_F77='-Wl,'
13367      # All OSF/1 code is PIC.
13368      lt_prog_compiler_static_F77='-non_shared'
13369      ;;
13370
13371    rdos*)
13372      lt_prog_compiler_static_F77='-non_shared'
13373      ;;
13374
13375    solaris*)
13376      lt_prog_compiler_pic_F77='-KPIC'
13377      lt_prog_compiler_static_F77='-Bstatic'
13378      case $cc_basename in
13379      f77* | f90* | f95*)
13380	lt_prog_compiler_wl_F77='-Qoption ld ';;
13381      *)
13382	lt_prog_compiler_wl_F77='-Wl,';;
13383      esac
13384      ;;
13385
13386    sunos4*)
13387      lt_prog_compiler_wl_F77='-Qoption ld '
13388      lt_prog_compiler_pic_F77='-PIC'
13389      lt_prog_compiler_static_F77='-Bstatic'
13390      ;;
13391
13392    sysv4 | sysv4.2uw2* | sysv4.3*)
13393      lt_prog_compiler_wl_F77='-Wl,'
13394      lt_prog_compiler_pic_F77='-KPIC'
13395      lt_prog_compiler_static_F77='-Bstatic'
13396      ;;
13397
13398    sysv4*MP*)
13399      if test -d /usr/nec ;then
13400	lt_prog_compiler_pic_F77='-Kconform_pic'
13401	lt_prog_compiler_static_F77='-Bstatic'
13402      fi
13403      ;;
13404
13405    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13406      lt_prog_compiler_wl_F77='-Wl,'
13407      lt_prog_compiler_pic_F77='-KPIC'
13408      lt_prog_compiler_static_F77='-Bstatic'
13409      ;;
13410
13411    unicos*)
13412      lt_prog_compiler_wl_F77='-Wl,'
13413      lt_prog_compiler_can_build_shared_F77=no
13414      ;;
13415
13416    uts4*)
13417      lt_prog_compiler_pic_F77='-pic'
13418      lt_prog_compiler_static_F77='-Bstatic'
13419      ;;
13420
13421    *)
13422      lt_prog_compiler_can_build_shared_F77=no
13423      ;;
13424    esac
13425  fi
13426
13427{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13428echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13429
13430#
13431# Check to make sure the PIC flag actually works.
13432#
13433if test -n "$lt_prog_compiler_pic_F77"; then
13434
13435{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13436echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13437if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13438  echo $ECHO_N "(cached) $ECHO_C" >&6
13439else
13440  lt_prog_compiler_pic_works_F77=no
13441  ac_outfile=conftest.$ac_objext
13442   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13444   # Insert the option either (1) after the last *FLAGS variable, or
13445   # (2) before a word containing "conftest.", or (3) at the end.
13446   # Note that $ac_compile itself does not contain backslashes and begins
13447   # with a dollar sign (not a hyphen), so the echo should work correctly.
13448   # The option is referenced via a variable to avoid confusing sed.
13449   lt_compile=`echo "$ac_compile" | $SED \
13450   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452   -e 's:$: $lt_compiler_flag:'`
13453   (eval echo "\"\$as_me:13453: $lt_compile\"" >&5)
13454   (eval "$lt_compile" 2>conftest.err)
13455   ac_status=$?
13456   cat conftest.err >&5
13457   echo "$as_me:13457: \$? = $ac_status" >&5
13458   if (exit $ac_status) && test -s "$ac_outfile"; then
13459     # The compiler can only warn and ignore the option if not recognized
13460     # So say no if there are warnings other than the usual output.
13461     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13462     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13463     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13464       lt_prog_compiler_pic_works_F77=yes
13465     fi
13466   fi
13467   $rm conftest*
13468
13469fi
13470{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13471echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13472
13473if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13474    case $lt_prog_compiler_pic_F77 in
13475     "" | " "*) ;;
13476     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13477     esac
13478else
13479    lt_prog_compiler_pic_F77=
13480     lt_prog_compiler_can_build_shared_F77=no
13481fi
13482
13483fi
13484case $host_os in
13485  # For platforms which do not support PIC, -DPIC is meaningless:
13486  *djgpp*)
13487    lt_prog_compiler_pic_F77=
13488    ;;
13489  *)
13490    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13491    ;;
13492esac
13493
13494#
13495# Check to make sure the static flag actually works.
13496#
13497wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13498{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13499echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13500if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13501  echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503  lt_prog_compiler_static_works_F77=no
13504   save_LDFLAGS="$LDFLAGS"
13505   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13506   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13507   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13508     # The linker can only warn and ignore the option if not recognized
13509     # So say no if there are warnings
13510     if test -s conftest.err; then
13511       # Append any errors to the config.log.
13512       cat conftest.err 1>&5
13513       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13514       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13515       if diff conftest.exp conftest.er2 >/dev/null; then
13516         lt_prog_compiler_static_works_F77=yes
13517       fi
13518     else
13519       lt_prog_compiler_static_works_F77=yes
13520     fi
13521   fi
13522   $rm conftest*
13523   LDFLAGS="$save_LDFLAGS"
13524
13525fi
13526{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13527echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13528
13529if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13530    :
13531else
13532    lt_prog_compiler_static_F77=
13533fi
13534
13535
13536{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13537echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13538if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13539  echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541  lt_cv_prog_compiler_c_o_F77=no
13542   $rm -r conftest 2>/dev/null
13543   mkdir conftest
13544   cd conftest
13545   mkdir out
13546   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13547
13548   lt_compiler_flag="-o out/conftest2.$ac_objext"
13549   # Insert the option either (1) after the last *FLAGS variable, or
13550   # (2) before a word containing "conftest.", or (3) at the end.
13551   # Note that $ac_compile itself does not contain backslashes and begins
13552   # with a dollar sign (not a hyphen), so the echo should work correctly.
13553   lt_compile=`echo "$ac_compile" | $SED \
13554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13556   -e 's:$: $lt_compiler_flag:'`
13557   (eval echo "\"\$as_me:13557: $lt_compile\"" >&5)
13558   (eval "$lt_compile" 2>out/conftest.err)
13559   ac_status=$?
13560   cat out/conftest.err >&5
13561   echo "$as_me:13561: \$? = $ac_status" >&5
13562   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13563   then
13564     # The compiler can only warn and ignore the option if not recognized
13565     # So say no if there are warnings
13566     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13567     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13568     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13569       lt_cv_prog_compiler_c_o_F77=yes
13570     fi
13571   fi
13572   chmod u+w . 2>&5
13573   $rm conftest*
13574   # SGI C++ compiler will create directory out/ii_files/ for
13575   # template instantiation
13576   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13577   $rm out/* && rmdir out
13578   cd ..
13579   rmdir conftest
13580   $rm conftest*
13581
13582fi
13583{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13584echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13585
13586
13587hard_links="nottested"
13588if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13589  # do not overwrite the value of need_locks provided by the user
13590  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13591echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13592  hard_links=yes
13593  $rm conftest*
13594  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13595  touch conftest.a
13596  ln conftest.a conftest.b 2>&5 || hard_links=no
13597  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13598  { echo "$as_me:$LINENO: result: $hard_links" >&5
13599echo "${ECHO_T}$hard_links" >&6; }
13600  if test "$hard_links" = no; then
13601    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13602echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13603    need_locks=warn
13604  fi
13605else
13606  need_locks=no
13607fi
13608
13609{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13610echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13611
13612  runpath_var=
13613  allow_undefined_flag_F77=
13614  enable_shared_with_static_runtimes_F77=no
13615  archive_cmds_F77=
13616  archive_expsym_cmds_F77=
13617  old_archive_From_new_cmds_F77=
13618  old_archive_from_expsyms_cmds_F77=
13619  export_dynamic_flag_spec_F77=
13620  whole_archive_flag_spec_F77=
13621  thread_safe_flag_spec_F77=
13622  hardcode_libdir_flag_spec_F77=
13623  hardcode_libdir_flag_spec_ld_F77=
13624  hardcode_libdir_separator_F77=
13625  hardcode_direct_F77=no
13626  hardcode_minus_L_F77=no
13627  hardcode_shlibpath_var_F77=unsupported
13628  link_all_deplibs_F77=unknown
13629  hardcode_automatic_F77=no
13630  module_cmds_F77=
13631  module_expsym_cmds_F77=
13632  always_export_symbols_F77=no
13633  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13634  # include_expsyms should be a list of space-separated symbols to be *always*
13635  # included in the symbol list
13636  include_expsyms_F77=
13637  # exclude_expsyms can be an extended regexp of symbols to exclude
13638  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13639  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13640  # as well as any symbol that contains `d'.
13641  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13642  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13643  # platforms (ab)use it in PIC code, but their linkers get confused if
13644  # the symbol is explicitly referenced.  Since portable code cannot
13645  # rely on this symbol name, it's probably fine to never include it in
13646  # preloaded symbol tables.
13647  extract_expsyms_cmds=
13648  # Just being paranoid about ensuring that cc_basename is set.
13649  for cc_temp in $compiler""; do
13650  case $cc_temp in
13651    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13652    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13653    \-*) ;;
13654    *) break;;
13655  esac
13656done
13657cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13658
13659  case $host_os in
13660  cygwin* | mingw* | pw32*)
13661    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13662    # When not using gcc, we currently assume that we are using
13663    # Microsoft Visual C++.
13664    if test "$GCC" != yes; then
13665      with_gnu_ld=no
13666    fi
13667    ;;
13668  interix*)
13669    # we just hope/assume this is gcc and not c89 (= MSVC++)
13670    with_gnu_ld=yes
13671    ;;
13672  openbsd*)
13673    with_gnu_ld=no
13674    ;;
13675  esac
13676
13677  ld_shlibs_F77=yes
13678  if test "$with_gnu_ld" = yes; then
13679    # If archive_cmds runs LD, not CC, wlarc should be empty
13680    wlarc='${wl}'
13681
13682    # Set some defaults for GNU ld with shared library support. These
13683    # are reset later if shared libraries are not supported. Putting them
13684    # here allows them to be overridden if necessary.
13685    runpath_var=LD_RUN_PATH
13686    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13687    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13688    # ancient GNU ld didn't support --whole-archive et. al.
13689    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13690	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13691      else
13692  	whole_archive_flag_spec_F77=
13693    fi
13694    supports_anon_versioning=no
13695    case `$LD -v 2>/dev/null` in
13696      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13697      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13698      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13699      *\ 2.11.*) ;; # other 2.11 versions
13700      *) supports_anon_versioning=yes ;;
13701    esac
13702
13703    # See if GNU ld supports shared libraries.
13704    case $host_os in
13705    aix3* | aix4* | aix5*)
13706      # On AIX/PPC, the GNU linker is very broken
13707      if test "$host_cpu" != ia64; then
13708	ld_shlibs_F77=no
13709	cat <<EOF 1>&2
13710
13711*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13712*** to be unable to reliably create shared libraries on AIX.
13713*** Therefore, libtool is disabling shared libraries support.  If you
13714*** really care for shared libraries, you may want to modify your PATH
13715*** so that a non-GNU linker is found, and then restart.
13716
13717EOF
13718      fi
13719      ;;
13720
13721    amigaos*)
13722      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)'
13723      hardcode_libdir_flag_spec_F77='-L$libdir'
13724      hardcode_minus_L_F77=yes
13725
13726      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13727      # that the semantics of dynamic libraries on AmigaOS, at least up
13728      # to version 4, is to share data among multiple programs linked
13729      # with the same dynamic library.  Since this doesn't match the
13730      # behavior of shared libraries on other platforms, we can't use
13731      # them.
13732      ld_shlibs_F77=no
13733      ;;
13734
13735    beos*)
13736      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13737	allow_undefined_flag_F77=unsupported
13738	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13739	# support --undefined.  This deserves some investigation.  FIXME
13740	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13741      else
13742	ld_shlibs_F77=no
13743      fi
13744      ;;
13745
13746    cygwin* | mingw* | pw32*)
13747      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13748      # as there is no search path for DLLs.
13749      hardcode_libdir_flag_spec_F77='-L$libdir'
13750      allow_undefined_flag_F77=unsupported
13751      always_export_symbols_F77=no
13752      enable_shared_with_static_runtimes_F77=yes
13753      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13754
13755      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13756        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13757	# If the export-symbols file already is a .def file (1st line
13758	# is EXPORTS), use it as is; otherwise, prepend...
13759	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13760	  cp $export_symbols $output_objdir/$soname.def;
13761	else
13762	  echo EXPORTS > $output_objdir/$soname.def;
13763	  cat $export_symbols >> $output_objdir/$soname.def;
13764	fi~
13765	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13766      else
13767	ld_shlibs_F77=no
13768      fi
13769      ;;
13770
13771    interix[3-9]*)
13772      hardcode_direct_F77=no
13773      hardcode_shlibpath_var_F77=no
13774      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13775      export_dynamic_flag_spec_F77='${wl}-E'
13776      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13777      # Instead, shared libraries are loaded at an image base (0x10000000 by
13778      # default) and relocated if they conflict, which is a slow very memory
13779      # consuming and fragmenting process.  To avoid this, we pick a random,
13780      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13781      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13782      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'
13783      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'
13784      ;;
13785
13786    gnu* | linux* | k*bsd*-gnu)
13787      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13788	tmp_addflag=
13789	case $cc_basename,$host_cpu in
13790	pgcc*)				# Portland Group C compiler
13791	  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'
13792	  tmp_addflag=' $pic_flag'
13793	  ;;
13794	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13795	  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'
13796	  tmp_addflag=' $pic_flag -Mnomain' ;;
13797	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13798	  tmp_addflag=' -i_dynamic' ;;
13799	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13800	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13801	ifc* | ifort*)			# Intel Fortran compiler
13802	  tmp_addflag=' -nofor_main' ;;
13803	esac
13804	case `$CC -V 2>&1 | sed 5q` in
13805	*Sun\ C*)			# Sun C 5.9
13806	  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'
13807	  tmp_sharedflag='-G' ;;
13808	*Sun\ F*)			# Sun Fortran 8.3
13809	  tmp_sharedflag='-G' ;;
13810	*)
13811	  tmp_sharedflag='-shared' ;;
13812	esac
13813	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814
13815	if test $supports_anon_versioning = yes; then
13816	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13817  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13818  $echo "local: *; };" >> $output_objdir/$libname.ver~
13819	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13820	fi
13821      else
13822	ld_shlibs_F77=no
13823      fi
13824      ;;
13825
13826    netbsd*)
13827      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13828	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13829	wlarc=
13830      else
13831	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833      fi
13834      ;;
13835
13836    solaris*)
13837      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13838	ld_shlibs_F77=no
13839	cat <<EOF 1>&2
13840
13841*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13842*** create shared libraries on Solaris systems.  Therefore, libtool
13843*** is disabling shared libraries support.  We urge you to upgrade GNU
13844*** binutils to release 2.9.1 or newer.  Another option is to modify
13845*** your PATH or compiler configuration so that the native linker is
13846*** used, and then restart.
13847
13848EOF
13849      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13850	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13852      else
13853	ld_shlibs_F77=no
13854      fi
13855      ;;
13856
13857    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13858      case `$LD -v 2>&1` in
13859        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13860	ld_shlibs_F77=no
13861	cat <<_LT_EOF 1>&2
13862
13863*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13864*** reliably create shared libraries on SCO systems.  Therefore, libtool
13865*** is disabling shared libraries support.  We urge you to upgrade GNU
13866*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13867*** your PATH or compiler configuration so that the native linker is
13868*** used, and then restart.
13869
13870_LT_EOF
13871	;;
13872	*)
13873	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13874	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13875	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13876	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13877	  else
13878	    ld_shlibs_F77=no
13879	  fi
13880	;;
13881      esac
13882      ;;
13883
13884    sunos4*)
13885      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13886      wlarc=
13887      hardcode_direct_F77=yes
13888      hardcode_shlibpath_var_F77=no
13889      ;;
13890
13891    *)
13892      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13893	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13895      else
13896	ld_shlibs_F77=no
13897      fi
13898      ;;
13899    esac
13900
13901    if test "$ld_shlibs_F77" = no; then
13902      runpath_var=
13903      hardcode_libdir_flag_spec_F77=
13904      export_dynamic_flag_spec_F77=
13905      whole_archive_flag_spec_F77=
13906    fi
13907  else
13908    # PORTME fill in a description of your system's linker (not GNU ld)
13909    case $host_os in
13910    aix3*)
13911      allow_undefined_flag_F77=unsupported
13912      always_export_symbols_F77=yes
13913      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'
13914      # Note: this linker hardcodes the directories in LIBPATH if there
13915      # are no directories specified by -L.
13916      hardcode_minus_L_F77=yes
13917      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13918	# Neither direct hardcoding nor static linking is supported with a
13919	# broken collect2.
13920	hardcode_direct_F77=unsupported
13921      fi
13922      ;;
13923
13924    aix4* | aix5*)
13925      if test "$host_cpu" = ia64; then
13926	# On IA64, the linker does run time linking by default, so we don't
13927	# have to do anything special.
13928	aix_use_runtimelinking=no
13929	exp_sym_flag='-Bexport'
13930	no_entry_flag=""
13931      else
13932	# If we're using GNU nm, then we don't want the "-C" option.
13933	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13934	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13935	  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'
13936	else
13937	  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'
13938	fi
13939	aix_use_runtimelinking=no
13940
13941	# Test if we are trying to use run time linking or normal
13942	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13943	# need to do runtime linking.
13944	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13945	  for ld_flag in $LDFLAGS; do
13946  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13947  	    aix_use_runtimelinking=yes
13948  	    break
13949  	  fi
13950	  done
13951	  ;;
13952	esac
13953
13954	exp_sym_flag='-bexport'
13955	no_entry_flag='-bnoentry'
13956      fi
13957
13958      # When large executables or shared objects are built, AIX ld can
13959      # have problems creating the table of contents.  If linking a library
13960      # or program results in "error TOC overflow" add -mminimal-toc to
13961      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13962      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13963
13964      archive_cmds_F77=''
13965      hardcode_direct_F77=yes
13966      hardcode_libdir_separator_F77=':'
13967      link_all_deplibs_F77=yes
13968
13969      if test "$GCC" = yes; then
13970	case $host_os in aix4.[012]|aix4.[012].*)
13971	# We only want to do this on AIX 4.2 and lower, the check
13972	# below for broken collect2 doesn't work under 4.3+
13973	  collect2name=`${CC} -print-prog-name=collect2`
13974	  if test -f "$collect2name" && \
13975  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13976	  then
13977  	  # We have reworked collect2
13978  	  :
13979	  else
13980  	  # We have old collect2
13981  	  hardcode_direct_F77=unsupported
13982  	  # It fails to find uninstalled libraries when the uninstalled
13983  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13984  	  # to unsupported forces relinking
13985  	  hardcode_minus_L_F77=yes
13986  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13987  	  hardcode_libdir_separator_F77=
13988	  fi
13989	  ;;
13990	esac
13991	shared_flag='-shared'
13992	if test "$aix_use_runtimelinking" = yes; then
13993	  shared_flag="$shared_flag "'${wl}-G'
13994	fi
13995      else
13996	# not using gcc
13997	if test "$host_cpu" = ia64; then
13998  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13999  	# chokes on -Wl,-G. The following line is correct:
14000	  shared_flag='-G'
14001	else
14002	  if test "$aix_use_runtimelinking" = yes; then
14003	    shared_flag='${wl}-G'
14004	  else
14005	    shared_flag='${wl}-bM:SRE'
14006	  fi
14007	fi
14008      fi
14009
14010      # It seems that -bexpall does not export symbols beginning with
14011      # underscore (_), so it is better to generate a list of symbols to export.
14012      always_export_symbols_F77=yes
14013      if test "$aix_use_runtimelinking" = yes; then
14014	# Warning - without using the other runtime loading flags (-brtl),
14015	# -berok will link without error, but may produce a broken library.
14016	allow_undefined_flag_F77='-berok'
14017       # Determine the default libpath from the value encoded in an empty executable.
14018       cat >conftest.$ac_ext <<_ACEOF
14019      program main
14020
14021      end
14022_ACEOF
14023rm -f conftest.$ac_objext conftest$ac_exeext
14024if { (ac_try="$ac_link"
14025case "(($ac_try" in
14026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027  *) ac_try_echo=$ac_try;;
14028esac
14029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030  (eval "$ac_link") 2>conftest.er1
14031  ac_status=$?
14032  grep -v '^ *+' conftest.er1 >conftest.err
14033  rm -f conftest.er1
14034  cat conftest.err >&5
14035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036  (exit $ac_status); } && {
14037	 test -z "$ac_f77_werror_flag" ||
14038	 test ! -s conftest.err
14039       } && test -s conftest$ac_exeext &&
14040       $as_test_x conftest$ac_exeext; then
14041
14042lt_aix_libpath_sed='
14043    /Import File Strings/,/^$/ {
14044	/^0/ {
14045	    s/^0  *\(.*\)$/\1/
14046	    p
14047	}
14048    }'
14049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14050# Check for a 64-bit object if we didn't find anything.
14051if test -z "$aix_libpath"; then
14052  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14053fi
14054else
14055  echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058
14059fi
14060
14061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14062      conftest$ac_exeext conftest.$ac_ext
14063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14064
14065       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14066	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"
14067       else
14068	if test "$host_cpu" = ia64; then
14069	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14070	  allow_undefined_flag_F77="-z nodefs"
14071	  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"
14072	else
14073	 # Determine the default libpath from the value encoded in an empty executable.
14074	 cat >conftest.$ac_ext <<_ACEOF
14075      program main
14076
14077      end
14078_ACEOF
14079rm -f conftest.$ac_objext conftest$ac_exeext
14080if { (ac_try="$ac_link"
14081case "(($ac_try" in
14082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083  *) ac_try_echo=$ac_try;;
14084esac
14085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086  (eval "$ac_link") 2>conftest.er1
14087  ac_status=$?
14088  grep -v '^ *+' conftest.er1 >conftest.err
14089  rm -f conftest.er1
14090  cat conftest.err >&5
14091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092  (exit $ac_status); } && {
14093	 test -z "$ac_f77_werror_flag" ||
14094	 test ! -s conftest.err
14095       } && test -s conftest$ac_exeext &&
14096       $as_test_x conftest$ac_exeext; then
14097
14098lt_aix_libpath_sed='
14099    /Import File Strings/,/^$/ {
14100	/^0/ {
14101	    s/^0  *\(.*\)$/\1/
14102	    p
14103	}
14104    }'
14105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14106# Check for a 64-bit object if we didn't find anything.
14107if test -z "$aix_libpath"; then
14108  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14109fi
14110else
14111  echo "$as_me: failed program was:" >&5
14112sed 's/^/| /' conftest.$ac_ext >&5
14113
14114
14115fi
14116
14117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14118      conftest$ac_exeext conftest.$ac_ext
14119if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14120
14121	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14122	  # Warning - without using the other run time loading flags,
14123	  # -berok will link without error, but may produce a broken library.
14124	  no_undefined_flag_F77=' ${wl}-bernotok'
14125	  allow_undefined_flag_F77=' ${wl}-berok'
14126	  # Exported symbols can be pulled into shared objects from archives
14127	  whole_archive_flag_spec_F77='$convenience'
14128	  archive_cmds_need_lc_F77=yes
14129	  # This is similar to how AIX traditionally builds its shared libraries.
14130	  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'
14131	fi
14132      fi
14133      ;;
14134
14135    amigaos*)
14136      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)'
14137      hardcode_libdir_flag_spec_F77='-L$libdir'
14138      hardcode_minus_L_F77=yes
14139      # see comment about different semantics on the GNU ld section
14140      ld_shlibs_F77=no
14141      ;;
14142
14143    bsdi[45]*)
14144      export_dynamic_flag_spec_F77=-rdynamic
14145      ;;
14146
14147    cygwin* | mingw* | pw32*)
14148      # When not using gcc, we currently assume that we are using
14149      # Microsoft Visual C++.
14150      # hardcode_libdir_flag_spec is actually meaningless, as there is
14151      # no search path for DLLs.
14152      hardcode_libdir_flag_spec_F77=' '
14153      allow_undefined_flag_F77=unsupported
14154      # Tell ltmain to make .lib files, not .a files.
14155      libext=lib
14156      # Tell ltmain to make .dll files, not .so files.
14157      shrext_cmds=".dll"
14158      # FIXME: Setting linknames here is a bad hack.
14159      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14160      # The linker will automatically build a .lib file if we build a DLL.
14161      old_archive_From_new_cmds_F77='true'
14162      # FIXME: Should let the user specify the lib program.
14163      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14164      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14165      enable_shared_with_static_runtimes_F77=yes
14166      ;;
14167
14168    darwin* | rhapsody*)
14169      case $host_os in
14170        rhapsody* | darwin1.[012])
14171         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14172         ;;
14173       *) # Darwin 1.3 on
14174         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14175           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14176         else
14177           case ${MACOSX_DEPLOYMENT_TARGET} in
14178             10.[012])
14179               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14180               ;;
14181             10.*)
14182               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14183               ;;
14184           esac
14185         fi
14186         ;;
14187      esac
14188      archive_cmds_need_lc_F77=no
14189      hardcode_direct_F77=no
14190      hardcode_automatic_F77=yes
14191      hardcode_shlibpath_var_F77=unsupported
14192      whole_archive_flag_spec_F77=''
14193      link_all_deplibs_F77=yes
14194    if test "$GCC" = yes ; then
14195    	output_verbose_link_cmd='echo'
14196        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14197      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14198      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14199      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}'
14200      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}'
14201    else
14202      case $cc_basename in
14203        xlc*)
14204         output_verbose_link_cmd='echo'
14205         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14206         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14207          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14208         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}'
14209          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}'
14210          ;;
14211       *)
14212         ld_shlibs_F77=no
14213          ;;
14214      esac
14215    fi
14216      ;;
14217
14218    dgux*)
14219      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220      hardcode_libdir_flag_spec_F77='-L$libdir'
14221      hardcode_shlibpath_var_F77=no
14222      ;;
14223
14224    freebsd1*)
14225      ld_shlibs_F77=no
14226      ;;
14227
14228    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14229    # support.  Future versions do this automatically, but an explicit c++rt0.o
14230    # does not break anything, and helps significantly (at the cost of a little
14231    # extra space).
14232    freebsd2.2*)
14233      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14234      hardcode_libdir_flag_spec_F77='-R$libdir'
14235      hardcode_direct_F77=yes
14236      hardcode_shlibpath_var_F77=no
14237      ;;
14238
14239    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14240    freebsd2*)
14241      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14242      hardcode_direct_F77=yes
14243      hardcode_minus_L_F77=yes
14244      hardcode_shlibpath_var_F77=no
14245      ;;
14246
14247    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14248    freebsd* | dragonfly*)
14249      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14250      hardcode_libdir_flag_spec_F77='-R$libdir'
14251      hardcode_direct_F77=yes
14252      hardcode_shlibpath_var_F77=no
14253      ;;
14254
14255    hpux9*)
14256      if test "$GCC" = yes; then
14257	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'
14258      else
14259	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'
14260      fi
14261      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14262      hardcode_libdir_separator_F77=:
14263      hardcode_direct_F77=yes
14264
14265      # hardcode_minus_L: Not really in the search PATH,
14266      # but as the default location of the library.
14267      hardcode_minus_L_F77=yes
14268      export_dynamic_flag_spec_F77='${wl}-E'
14269      ;;
14270
14271    hpux10*)
14272      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14273	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14274      else
14275	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14276      fi
14277      if test "$with_gnu_ld" = no; then
14278	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14279	hardcode_libdir_separator_F77=:
14280
14281	hardcode_direct_F77=yes
14282	export_dynamic_flag_spec_F77='${wl}-E'
14283
14284	# hardcode_minus_L: Not really in the search PATH,
14285	# but as the default location of the library.
14286	hardcode_minus_L_F77=yes
14287      fi
14288      ;;
14289
14290    hpux11*)
14291      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14292	case $host_cpu in
14293	hppa*64*)
14294	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14295	  ;;
14296	ia64*)
14297	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14298	  ;;
14299	*)
14300	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14301	  ;;
14302	esac
14303      else
14304	case $host_cpu in
14305	hppa*64*)
14306	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307	  ;;
14308	ia64*)
14309	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14310	  ;;
14311	*)
14312	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14313	  ;;
14314	esac
14315      fi
14316      if test "$with_gnu_ld" = no; then
14317	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14318	hardcode_libdir_separator_F77=:
14319
14320	case $host_cpu in
14321	hppa*64*|ia64*)
14322	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14323	  hardcode_direct_F77=no
14324	  hardcode_shlibpath_var_F77=no
14325	  ;;
14326	*)
14327	  hardcode_direct_F77=yes
14328	  export_dynamic_flag_spec_F77='${wl}-E'
14329
14330	  # hardcode_minus_L: Not really in the search PATH,
14331	  # but as the default location of the library.
14332	  hardcode_minus_L_F77=yes
14333	  ;;
14334	esac
14335      fi
14336      ;;
14337
14338    irix5* | irix6* | nonstopux*)
14339      if test "$GCC" = yes; then
14340	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'
14341      else
14342	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'
14343	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14344      fi
14345      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14346      hardcode_libdir_separator_F77=:
14347      link_all_deplibs_F77=yes
14348      ;;
14349
14350    netbsd*)
14351      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14352	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14353      else
14354	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14355      fi
14356      hardcode_libdir_flag_spec_F77='-R$libdir'
14357      hardcode_direct_F77=yes
14358      hardcode_shlibpath_var_F77=no
14359      ;;
14360
14361    newsos6)
14362      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14363      hardcode_direct_F77=yes
14364      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14365      hardcode_libdir_separator_F77=:
14366      hardcode_shlibpath_var_F77=no
14367      ;;
14368
14369    openbsd*)
14370      if test -f /usr/libexec/ld.so; then
14371	hardcode_direct_F77=yes
14372	hardcode_shlibpath_var_F77=no
14373	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14374	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14375	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14376	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14377	  export_dynamic_flag_spec_F77='${wl}-E'
14378	else
14379	  case $host_os in
14380	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14381	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14382	     hardcode_libdir_flag_spec_F77='-R$libdir'
14383	     ;;
14384	   *)
14385	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14386	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14387	     ;;
14388	  esac
14389        fi
14390      else
14391	ld_shlibs_F77=no
14392      fi
14393      ;;
14394
14395    os2*)
14396      hardcode_libdir_flag_spec_F77='-L$libdir'
14397      hardcode_minus_L_F77=yes
14398      allow_undefined_flag_F77=unsupported
14399      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'
14400      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14401      ;;
14402
14403    osf3*)
14404      if test "$GCC" = yes; then
14405	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14406	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'
14407      else
14408	allow_undefined_flag_F77=' -expect_unresolved \*'
14409	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'
14410      fi
14411      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14412      hardcode_libdir_separator_F77=:
14413      ;;
14414
14415    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14416      if test "$GCC" = yes; then
14417	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14418	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'
14419	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14420      else
14421	allow_undefined_flag_F77=' -expect_unresolved \*'
14422	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'
14423	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~
14424	$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'
14425
14426	# Both c and cxx compiler support -rpath directly
14427	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14428      fi
14429      hardcode_libdir_separator_F77=:
14430      ;;
14431
14432    solaris*)
14433      no_undefined_flag_F77=' -z text'
14434      if test "$GCC" = yes; then
14435	wlarc='${wl}'
14436	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14437	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14438	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14439      else
14440	wlarc=''
14441	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14443  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14444      fi
14445      hardcode_libdir_flag_spec_F77='-R$libdir'
14446      hardcode_shlibpath_var_F77=no
14447      case $host_os in
14448      solaris2.[0-5] | solaris2.[0-5].*) ;;
14449      *)
14450	# The compiler driver will combine and reorder linker options,
14451	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14452	# but is careful enough not to reorder.
14453 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14454	if test "$GCC" = yes; then
14455	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14456	else
14457	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14458	fi
14459	;;
14460      esac
14461      link_all_deplibs_F77=yes
14462      ;;
14463
14464    sunos4*)
14465      if test "x$host_vendor" = xsequent; then
14466	# Use $CC to link under sequent, because it throws in some extra .o
14467	# files that make .init and .fini sections work.
14468	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14469      else
14470	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14471      fi
14472      hardcode_libdir_flag_spec_F77='-L$libdir'
14473      hardcode_direct_F77=yes
14474      hardcode_minus_L_F77=yes
14475      hardcode_shlibpath_var_F77=no
14476      ;;
14477
14478    sysv4)
14479      case $host_vendor in
14480	sni)
14481	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482	  hardcode_direct_F77=yes # is this really true???
14483	;;
14484	siemens)
14485	  ## LD is ld it makes a PLAMLIB
14486	  ## CC just makes a GrossModule.
14487	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14488	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14489	  hardcode_direct_F77=no
14490        ;;
14491	motorola)
14492	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14493	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14494	;;
14495      esac
14496      runpath_var='LD_RUN_PATH'
14497      hardcode_shlibpath_var_F77=no
14498      ;;
14499
14500    sysv4.3*)
14501      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14502      hardcode_shlibpath_var_F77=no
14503      export_dynamic_flag_spec_F77='-Bexport'
14504      ;;
14505
14506    sysv4*MP*)
14507      if test -d /usr/nec; then
14508	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509	hardcode_shlibpath_var_F77=no
14510	runpath_var=LD_RUN_PATH
14511	hardcode_runpath_var=yes
14512	ld_shlibs_F77=yes
14513      fi
14514      ;;
14515
14516    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14517      no_undefined_flag_F77='${wl}-z,text'
14518      archive_cmds_need_lc_F77=no
14519      hardcode_shlibpath_var_F77=no
14520      runpath_var='LD_RUN_PATH'
14521
14522      if test "$GCC" = yes; then
14523	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14524	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525      else
14526	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528      fi
14529      ;;
14530
14531    sysv5* | sco3.2v5* | sco5v6*)
14532      # Note: We can NOT use -z defs as we might desire, because we do not
14533      # link with -lc, and that would cause any symbols used from libc to
14534      # always be unresolved, which means just about no library would
14535      # ever link correctly.  If we're not using GNU ld we use -z text
14536      # though, which does catch some bad symbols but isn't as heavy-handed
14537      # as -z defs.
14538      no_undefined_flag_F77='${wl}-z,text'
14539      allow_undefined_flag_F77='${wl}-z,nodefs'
14540      archive_cmds_need_lc_F77=no
14541      hardcode_shlibpath_var_F77=no
14542      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14543      hardcode_libdir_separator_F77=':'
14544      link_all_deplibs_F77=yes
14545      export_dynamic_flag_spec_F77='${wl}-Bexport'
14546      runpath_var='LD_RUN_PATH'
14547
14548      if test "$GCC" = yes; then
14549	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14550	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14551      else
14552	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14553	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14554      fi
14555      ;;
14556
14557    uts4*)
14558      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559      hardcode_libdir_flag_spec_F77='-L$libdir'
14560      hardcode_shlibpath_var_F77=no
14561      ;;
14562
14563    *)
14564      ld_shlibs_F77=no
14565      ;;
14566    esac
14567  fi
14568
14569{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14570echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14571test "$ld_shlibs_F77" = no && can_build_shared=no
14572
14573#
14574# Do we need to explicitly link libc?
14575#
14576case "x$archive_cmds_need_lc_F77" in
14577x|xyes)
14578  # Assume -lc should be added
14579  archive_cmds_need_lc_F77=yes
14580
14581  if test "$enable_shared" = yes && test "$GCC" = yes; then
14582    case $archive_cmds_F77 in
14583    *'~'*)
14584      # FIXME: we may have to deal with multi-command sequences.
14585      ;;
14586    '$CC '*)
14587      # Test whether the compiler implicitly links with -lc since on some
14588      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14589      # to ld, don't add -lc before -lgcc.
14590      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14591echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14592      $rm conftest*
14593      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594
14595      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596  (eval $ac_compile) 2>&5
14597  ac_status=$?
14598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599  (exit $ac_status); } 2>conftest.err; then
14600        soname=conftest
14601        lib=conftest
14602        libobjs=conftest.$ac_objext
14603        deplibs=
14604        wl=$lt_prog_compiler_wl_F77
14605	pic_flag=$lt_prog_compiler_pic_F77
14606        compiler_flags=-v
14607        linker_flags=-v
14608        verstring=
14609        output_objdir=.
14610        libname=conftest
14611        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14612        allow_undefined_flag_F77=
14613        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14614  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14615  ac_status=$?
14616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617  (exit $ac_status); }
14618        then
14619	  archive_cmds_need_lc_F77=no
14620        else
14621	  archive_cmds_need_lc_F77=yes
14622        fi
14623        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14624      else
14625        cat conftest.err 1>&5
14626      fi
14627      $rm conftest*
14628      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14629echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14630      ;;
14631    esac
14632  fi
14633  ;;
14634esac
14635
14636{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14637echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14638library_names_spec=
14639libname_spec='lib$name'
14640soname_spec=
14641shrext_cmds=".so"
14642postinstall_cmds=
14643postuninstall_cmds=
14644finish_cmds=
14645finish_eval=
14646shlibpath_var=
14647shlibpath_overrides_runpath=unknown
14648version_type=none
14649dynamic_linker="$host_os ld.so"
14650sys_lib_dlsearch_path_spec="/lib /usr/lib"
14651
14652need_lib_prefix=unknown
14653hardcode_into_libs=no
14654
14655# when you set need_version to no, make sure it does not cause -set_version
14656# flags to be left without arguments
14657need_version=unknown
14658
14659case $host_os in
14660aix3*)
14661  version_type=linux
14662  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14663  shlibpath_var=LIBPATH
14664
14665  # AIX 3 has no versioning support, so we append a major version to the name.
14666  soname_spec='${libname}${release}${shared_ext}$major'
14667  ;;
14668
14669aix4* | aix5*)
14670  version_type=linux
14671  need_lib_prefix=no
14672  need_version=no
14673  hardcode_into_libs=yes
14674  if test "$host_cpu" = ia64; then
14675    # AIX 5 supports IA64
14676    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14677    shlibpath_var=LD_LIBRARY_PATH
14678  else
14679    # With GCC up to 2.95.x, collect2 would create an import file
14680    # for dependence libraries.  The import file would start with
14681    # the line `#! .'.  This would cause the generated library to
14682    # depend on `.', always an invalid library.  This was fixed in
14683    # development snapshots of GCC prior to 3.0.
14684    case $host_os in
14685      aix4 | aix4.[01] | aix4.[01].*)
14686      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14687	   echo ' yes '
14688	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14689	:
14690      else
14691	can_build_shared=no
14692      fi
14693      ;;
14694    esac
14695    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14696    # soname into executable. Probably we can add versioning support to
14697    # collect2, so additional links can be useful in future.
14698    if test "$aix_use_runtimelinking" = yes; then
14699      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14700      # instead of lib<name>.a to let people know that these are not
14701      # typical AIX shared libraries.
14702      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703    else
14704      # We preserve .a as extension for shared libraries through AIX4.2
14705      # and later when we are not doing run time linking.
14706      library_names_spec='${libname}${release}.a $libname.a'
14707      soname_spec='${libname}${release}${shared_ext}$major'
14708    fi
14709    shlibpath_var=LIBPATH
14710  fi
14711  ;;
14712
14713amigaos*)
14714  library_names_spec='$libname.ixlibrary $libname.a'
14715  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14716  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'
14717  ;;
14718
14719beos*)
14720  library_names_spec='${libname}${shared_ext}'
14721  dynamic_linker="$host_os ld.so"
14722  shlibpath_var=LIBRARY_PATH
14723  ;;
14724
14725bsdi[45]*)
14726  version_type=linux
14727  need_version=no
14728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729  soname_spec='${libname}${release}${shared_ext}$major'
14730  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14731  shlibpath_var=LD_LIBRARY_PATH
14732  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14733  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14734  # the default ld.so.conf also contains /usr/contrib/lib and
14735  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14736  # libtool to hard-code these into programs
14737  ;;
14738
14739cygwin* | mingw* | pw32*)
14740  version_type=windows
14741  shrext_cmds=".dll"
14742  need_version=no
14743  need_lib_prefix=no
14744
14745  case $GCC,$host_os in
14746  yes,cygwin* | yes,mingw* | yes,pw32*)
14747    library_names_spec='$libname.dll.a'
14748    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14749    postinstall_cmds='base_file=`basename \${file}`~
14750      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14751      dldir=$destdir/`dirname \$dlpath`~
14752      test -d \$dldir || mkdir -p \$dldir~
14753      $install_prog $dir/$dlname \$dldir/$dlname~
14754      chmod a+x \$dldir/$dlname'
14755    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14756      dlpath=$dir/\$dldll~
14757       $rm \$dlpath'
14758    shlibpath_overrides_runpath=yes
14759
14760    case $host_os in
14761    cygwin*)
14762      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14763      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14764      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14765      ;;
14766    mingw*)
14767      # MinGW DLLs use traditional 'lib' prefix
14768      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14769      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14770      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14771        # It is most probably a Windows format PATH printed by
14772        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14773        # path with ; separators, and with drive letters. We can handle the
14774        # drive letters (cygwin fileutils understands them), so leave them,
14775        # especially as we might pass files found there to a mingw objdump,
14776        # which wouldn't understand a cygwinified path. Ahh.
14777        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14778      else
14779        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14780      fi
14781      ;;
14782    pw32*)
14783      # pw32 DLLs use 'pw' prefix rather than 'lib'
14784      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14785      ;;
14786    esac
14787    ;;
14788
14789  *)
14790    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14791    ;;
14792  esac
14793  dynamic_linker='Win32 ld.exe'
14794  # FIXME: first we should search . and the directory the executable is in
14795  shlibpath_var=PATH
14796  ;;
14797
14798darwin* | rhapsody*)
14799  dynamic_linker="$host_os dyld"
14800  version_type=darwin
14801  need_lib_prefix=no
14802  need_version=no
14803  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14804  soname_spec='${libname}${release}${major}$shared_ext'
14805  shlibpath_overrides_runpath=yes
14806  shlibpath_var=DYLD_LIBRARY_PATH
14807  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14808
14809  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14810  ;;
14811
14812dgux*)
14813  version_type=linux
14814  need_lib_prefix=no
14815  need_version=no
14816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14817  soname_spec='${libname}${release}${shared_ext}$major'
14818  shlibpath_var=LD_LIBRARY_PATH
14819  ;;
14820
14821freebsd1*)
14822  dynamic_linker=no
14823  ;;
14824
14825freebsd* | dragonfly*)
14826  # DragonFly does not have aout.  When/if they implement a new
14827  # versioning mechanism, adjust this.
14828  if test -x /usr/bin/objformat; then
14829    objformat=`/usr/bin/objformat`
14830  else
14831    case $host_os in
14832    freebsd[123]*) objformat=aout ;;
14833    *) objformat=elf ;;
14834    esac
14835  fi
14836  version_type=freebsd-$objformat
14837  case $version_type in
14838    freebsd-elf*)
14839      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840      need_version=no
14841      need_lib_prefix=no
14842      ;;
14843    freebsd-*)
14844      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14845      need_version=yes
14846      ;;
14847  esac
14848  shlibpath_var=LD_LIBRARY_PATH
14849  case $host_os in
14850  freebsd2*)
14851    shlibpath_overrides_runpath=yes
14852    ;;
14853  freebsd3.[01]* | freebsdelf3.[01]*)
14854    shlibpath_overrides_runpath=yes
14855    hardcode_into_libs=yes
14856    ;;
14857  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14858  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14859    shlibpath_overrides_runpath=no
14860    hardcode_into_libs=yes
14861    ;;
14862  *) # from 4.6 on, and DragonFly
14863    shlibpath_overrides_runpath=yes
14864    hardcode_into_libs=yes
14865    ;;
14866  esac
14867  ;;
14868
14869gnu*)
14870  version_type=linux
14871  need_lib_prefix=no
14872  need_version=no
14873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14874  soname_spec='${libname}${release}${shared_ext}$major'
14875  shlibpath_var=LD_LIBRARY_PATH
14876  hardcode_into_libs=yes
14877  ;;
14878
14879hpux9* | hpux10* | hpux11*)
14880  # Give a soname corresponding to the major version so that dld.sl refuses to
14881  # link against other versions.
14882  version_type=sunos
14883  need_lib_prefix=no
14884  need_version=no
14885  case $host_cpu in
14886  ia64*)
14887    shrext_cmds='.so'
14888    hardcode_into_libs=yes
14889    dynamic_linker="$host_os dld.so"
14890    shlibpath_var=LD_LIBRARY_PATH
14891    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893    soname_spec='${libname}${release}${shared_ext}$major'
14894    if test "X$HPUX_IA64_MODE" = X32; then
14895      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14896    else
14897      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14898    fi
14899    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14900    ;;
14901   hppa*64*)
14902     shrext_cmds='.sl'
14903     hardcode_into_libs=yes
14904     dynamic_linker="$host_os dld.sl"
14905     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908     soname_spec='${libname}${release}${shared_ext}$major'
14909     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911     ;;
14912   *)
14913    shrext_cmds='.sl'
14914    dynamic_linker="$host_os dld.sl"
14915    shlibpath_var=SHLIB_PATH
14916    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14917    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918    soname_spec='${libname}${release}${shared_ext}$major'
14919    ;;
14920  esac
14921  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14922  postinstall_cmds='chmod 555 $lib'
14923  ;;
14924
14925interix[3-9]*)
14926  version_type=linux
14927  need_lib_prefix=no
14928  need_version=no
14929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930  soname_spec='${libname}${release}${shared_ext}$major'
14931  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14932  shlibpath_var=LD_LIBRARY_PATH
14933  shlibpath_overrides_runpath=no
14934  hardcode_into_libs=yes
14935  ;;
14936
14937irix5* | irix6* | nonstopux*)
14938  case $host_os in
14939    nonstopux*) version_type=nonstopux ;;
14940    *)
14941	if test "$lt_cv_prog_gnu_ld" = yes; then
14942		version_type=linux
14943	else
14944		version_type=irix
14945	fi ;;
14946  esac
14947  need_lib_prefix=no
14948  need_version=no
14949  soname_spec='${libname}${release}${shared_ext}$major'
14950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14951  case $host_os in
14952  irix5* | nonstopux*)
14953    libsuff= shlibsuff=
14954    ;;
14955  *)
14956    case $LD in # libtool.m4 will add one of these switches to LD
14957    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14958      libsuff= shlibsuff= libmagic=32-bit;;
14959    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14960      libsuff=32 shlibsuff=N32 libmagic=N32;;
14961    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14962      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14963    *) libsuff= shlibsuff= libmagic=never-match;;
14964    esac
14965    ;;
14966  esac
14967  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14968  shlibpath_overrides_runpath=no
14969  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14970  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14971  hardcode_into_libs=yes
14972  ;;
14973
14974# No shared lib support for Linux oldld, aout, or coff.
14975linux*oldld* | linux*aout* | linux*coff*)
14976  dynamic_linker=no
14977  ;;
14978
14979# This must be Linux ELF.
14980linux* | k*bsd*-gnu)
14981  version_type=linux
14982  need_lib_prefix=no
14983  need_version=no
14984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985  soname_spec='${libname}${release}${shared_ext}$major'
14986  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14987  shlibpath_var=LD_LIBRARY_PATH
14988  shlibpath_overrides_runpath=no
14989  # This implies no fast_install, which is unacceptable.
14990  # Some rework will be needed to allow for fast_install
14991  # before this can be enabled.
14992  hardcode_into_libs=yes
14993
14994  # Append ld.so.conf contents to the search path
14995  if test -f /etc/ld.so.conf; then
14996    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' ' '`
14997    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14998  fi
14999
15000  # We used to test for /lib/ld.so.1 and disable shared libraries on
15001  # powerpc, because MkLinux only supported shared libraries with the
15002  # GNU dynamic linker.  Since this was broken with cross compilers,
15003  # most powerpc-linux boxes support dynamic linking these days and
15004  # people can always --disable-shared, the test was removed, and we
15005  # assume the GNU/Linux dynamic linker is in use.
15006  dynamic_linker='GNU/Linux ld.so'
15007  ;;
15008
15009netbsd*)
15010  version_type=sunos
15011  need_lib_prefix=no
15012  need_version=no
15013  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15015    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15016    dynamic_linker='NetBSD (a.out) ld.so'
15017  else
15018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15019    soname_spec='${libname}${release}${shared_ext}$major'
15020    dynamic_linker='NetBSD ld.elf_so'
15021  fi
15022  shlibpath_var=LD_LIBRARY_PATH
15023  shlibpath_overrides_runpath=yes
15024  hardcode_into_libs=yes
15025  ;;
15026
15027newsos6)
15028  version_type=linux
15029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030  shlibpath_var=LD_LIBRARY_PATH
15031  shlibpath_overrides_runpath=yes
15032  ;;
15033
15034nto-qnx*)
15035  version_type=linux
15036  need_lib_prefix=no
15037  need_version=no
15038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039  soname_spec='${libname}${release}${shared_ext}$major'
15040  shlibpath_var=LD_LIBRARY_PATH
15041  shlibpath_overrides_runpath=yes
15042  ;;
15043
15044openbsd*)
15045  version_type=sunos
15046  sys_lib_dlsearch_path_spec="/usr/lib"
15047  need_lib_prefix=no
15048  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15049  case $host_os in
15050    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15051    *)                         need_version=no  ;;
15052  esac
15053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15055  shlibpath_var=LD_LIBRARY_PATH
15056  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15057    case $host_os in
15058      openbsd2.[89] | openbsd2.[89].*)
15059	shlibpath_overrides_runpath=no
15060	;;
15061      *)
15062	shlibpath_overrides_runpath=yes
15063	;;
15064      esac
15065  else
15066    shlibpath_overrides_runpath=yes
15067  fi
15068  ;;
15069
15070os2*)
15071  libname_spec='$name'
15072  shrext_cmds=".dll"
15073  need_lib_prefix=no
15074  library_names_spec='$libname${shared_ext} $libname.a'
15075  dynamic_linker='OS/2 ld.exe'
15076  shlibpath_var=LIBPATH
15077  ;;
15078
15079osf3* | osf4* | osf5*)
15080  version_type=osf
15081  need_lib_prefix=no
15082  need_version=no
15083  soname_spec='${libname}${release}${shared_ext}$major'
15084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085  shlibpath_var=LD_LIBRARY_PATH
15086  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15087  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15088  ;;
15089
15090rdos*)
15091  dynamic_linker=no
15092  ;;
15093
15094solaris*)
15095  version_type=linux
15096  need_lib_prefix=no
15097  need_version=no
15098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099  soname_spec='${libname}${release}${shared_ext}$major'
15100  shlibpath_var=LD_LIBRARY_PATH
15101  shlibpath_overrides_runpath=yes
15102  hardcode_into_libs=yes
15103  # ldd complains unless libraries are executable
15104  postinstall_cmds='chmod +x $lib'
15105  ;;
15106
15107sunos4*)
15108  version_type=sunos
15109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15111  shlibpath_var=LD_LIBRARY_PATH
15112  shlibpath_overrides_runpath=yes
15113  if test "$with_gnu_ld" = yes; then
15114    need_lib_prefix=no
15115  fi
15116  need_version=yes
15117  ;;
15118
15119sysv4 | sysv4.3*)
15120  version_type=linux
15121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122  soname_spec='${libname}${release}${shared_ext}$major'
15123  shlibpath_var=LD_LIBRARY_PATH
15124  case $host_vendor in
15125    sni)
15126      shlibpath_overrides_runpath=no
15127      need_lib_prefix=no
15128      export_dynamic_flag_spec='${wl}-Blargedynsym'
15129      runpath_var=LD_RUN_PATH
15130      ;;
15131    siemens)
15132      need_lib_prefix=no
15133      ;;
15134    motorola)
15135      need_lib_prefix=no
15136      need_version=no
15137      shlibpath_overrides_runpath=no
15138      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15139      ;;
15140  esac
15141  ;;
15142
15143sysv4*MP*)
15144  if test -d /usr/nec ;then
15145    version_type=linux
15146    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15147    soname_spec='$libname${shared_ext}.$major'
15148    shlibpath_var=LD_LIBRARY_PATH
15149  fi
15150  ;;
15151
15152sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15153  version_type=freebsd-elf
15154  need_lib_prefix=no
15155  need_version=no
15156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157  soname_spec='${libname}${release}${shared_ext}$major'
15158  shlibpath_var=LD_LIBRARY_PATH
15159  hardcode_into_libs=yes
15160  if test "$with_gnu_ld" = yes; then
15161    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15162    shlibpath_overrides_runpath=no
15163  else
15164    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15165    shlibpath_overrides_runpath=yes
15166    case $host_os in
15167      sco3.2v5*)
15168        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15169	;;
15170    esac
15171  fi
15172  sys_lib_dlsearch_path_spec='/usr/lib'
15173  ;;
15174
15175uts4*)
15176  version_type=linux
15177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178  soname_spec='${libname}${release}${shared_ext}$major'
15179  shlibpath_var=LD_LIBRARY_PATH
15180  ;;
15181
15182*)
15183  dynamic_linker=no
15184  ;;
15185esac
15186{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15187echo "${ECHO_T}$dynamic_linker" >&6; }
15188test "$dynamic_linker" = no && can_build_shared=no
15189
15190variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15191if test "$GCC" = yes; then
15192  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15193fi
15194
15195{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15196echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15197hardcode_action_F77=
15198if test -n "$hardcode_libdir_flag_spec_F77" || \
15199   test -n "$runpath_var_F77" || \
15200   test "X$hardcode_automatic_F77" = "Xyes" ; then
15201
15202  # We can hardcode non-existant directories.
15203  if test "$hardcode_direct_F77" != no &&
15204     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15205     # have to relink, otherwise we might link with an installed library
15206     # when we should be linking with a yet-to-be-installed one
15207     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15208     test "$hardcode_minus_L_F77" != no; then
15209    # Linking always hardcodes the temporary library directory.
15210    hardcode_action_F77=relink
15211  else
15212    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15213    hardcode_action_F77=immediate
15214  fi
15215else
15216  # We cannot hardcode anything, or else we can only hardcode existing
15217  # directories.
15218  hardcode_action_F77=unsupported
15219fi
15220{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15221echo "${ECHO_T}$hardcode_action_F77" >&6; }
15222
15223if test "$hardcode_action_F77" = relink; then
15224  # Fast installation is not supported
15225  enable_fast_install=no
15226elif test "$shlibpath_overrides_runpath" = yes ||
15227     test "$enable_shared" = no; then
15228  # Fast installation is not necessary
15229  enable_fast_install=needless
15230fi
15231
15232
15233# The else clause should only fire when bootstrapping the
15234# libtool distribution, otherwise you forgot to ship ltmain.sh
15235# with your package, and you will get complaints that there are
15236# no rules to generate ltmain.sh.
15237if test -f "$ltmain"; then
15238  # See if we are running on zsh, and set the options which allow our commands through
15239  # without removal of \ escapes.
15240  if test -n "${ZSH_VERSION+set}" ; then
15241    setopt NO_GLOB_SUBST
15242  fi
15243  # Now quote all the things that may contain metacharacters while being
15244  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15245  # variables and quote the copies for generation of the libtool script.
15246  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15247    SED SHELL STRIP \
15248    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15249    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15250    deplibs_check_method reload_flag reload_cmds need_locks \
15251    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15252    lt_cv_sys_global_symbol_to_c_name_address \
15253    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15254    old_postinstall_cmds old_postuninstall_cmds \
15255    compiler_F77 \
15256    CC_F77 \
15257    LD_F77 \
15258    lt_prog_compiler_wl_F77 \
15259    lt_prog_compiler_pic_F77 \
15260    lt_prog_compiler_static_F77 \
15261    lt_prog_compiler_no_builtin_flag_F77 \
15262    export_dynamic_flag_spec_F77 \
15263    thread_safe_flag_spec_F77 \
15264    whole_archive_flag_spec_F77 \
15265    enable_shared_with_static_runtimes_F77 \
15266    old_archive_cmds_F77 \
15267    old_archive_from_new_cmds_F77 \
15268    predep_objects_F77 \
15269    postdep_objects_F77 \
15270    predeps_F77 \
15271    postdeps_F77 \
15272    compiler_lib_search_path_F77 \
15273    archive_cmds_F77 \
15274    archive_expsym_cmds_F77 \
15275    postinstall_cmds_F77 \
15276    postuninstall_cmds_F77 \
15277    old_archive_from_expsyms_cmds_F77 \
15278    allow_undefined_flag_F77 \
15279    no_undefined_flag_F77 \
15280    export_symbols_cmds_F77 \
15281    hardcode_libdir_flag_spec_F77 \
15282    hardcode_libdir_flag_spec_ld_F77 \
15283    hardcode_libdir_separator_F77 \
15284    hardcode_automatic_F77 \
15285    module_cmds_F77 \
15286    module_expsym_cmds_F77 \
15287    lt_cv_prog_compiler_c_o_F77 \
15288    fix_srcfile_path_F77 \
15289    exclude_expsyms_F77 \
15290    include_expsyms_F77; do
15291
15292    case $var in
15293    old_archive_cmds_F77 | \
15294    old_archive_from_new_cmds_F77 | \
15295    archive_cmds_F77 | \
15296    archive_expsym_cmds_F77 | \
15297    module_cmds_F77 | \
15298    module_expsym_cmds_F77 | \
15299    old_archive_from_expsyms_cmds_F77 | \
15300    export_symbols_cmds_F77 | \
15301    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15302    postinstall_cmds | postuninstall_cmds | \
15303    old_postinstall_cmds | old_postuninstall_cmds | \
15304    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15305      # Double-quote double-evaled strings.
15306      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15307      ;;
15308    *)
15309      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15310      ;;
15311    esac
15312  done
15313
15314  case $lt_echo in
15315  *'\$0 --fallback-echo"')
15316    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15317    ;;
15318  esac
15319
15320cfgfile="$ofile"
15321
15322  cat <<__EOF__ >> "$cfgfile"
15323# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15324
15325# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15326
15327# Shell to use when invoking shell scripts.
15328SHELL=$lt_SHELL
15329
15330# Whether or not to build shared libraries.
15331build_libtool_libs=$enable_shared
15332
15333# Whether or not to build static libraries.
15334build_old_libs=$enable_static
15335
15336# Whether or not to add -lc for building shared libraries.
15337build_libtool_need_lc=$archive_cmds_need_lc_F77
15338
15339# Whether or not to disallow shared libs when runtime libs are static
15340allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15341
15342# Whether or not to optimize for fast installation.
15343fast_install=$enable_fast_install
15344
15345# The host system.
15346host_alias=$host_alias
15347host=$host
15348host_os=$host_os
15349
15350# The build system.
15351build_alias=$build_alias
15352build=$build
15353build_os=$build_os
15354
15355# An echo program that does not interpret backslashes.
15356echo=$lt_echo
15357
15358# The archiver.
15359AR=$lt_AR
15360AR_FLAGS=$lt_AR_FLAGS
15361
15362# A C compiler.
15363LTCC=$lt_LTCC
15364
15365# LTCC compiler flags.
15366LTCFLAGS=$lt_LTCFLAGS
15367
15368# A language-specific compiler.
15369CC=$lt_compiler_F77
15370
15371# Is the compiler the GNU C compiler?
15372with_gcc=$GCC_F77
15373
15374# An ERE matcher.
15375EGREP=$lt_EGREP
15376
15377# The linker used to build libraries.
15378LD=$lt_LD_F77
15379
15380# Whether we need hard or soft links.
15381LN_S=$lt_LN_S
15382
15383# A BSD-compatible nm program.
15384NM=$lt_NM
15385
15386# A symbol stripping program
15387STRIP=$lt_STRIP
15388
15389# Used to examine libraries when file_magic_cmd begins "file"
15390MAGIC_CMD=$MAGIC_CMD
15391
15392# Used on cygwin: DLL creation program.
15393DLLTOOL="$DLLTOOL"
15394
15395# Used on cygwin: object dumper.
15396OBJDUMP="$OBJDUMP"
15397
15398# Used on cygwin: assembler.
15399AS="$AS"
15400
15401# The name of the directory that contains temporary libtool files.
15402objdir=$objdir
15403
15404# How to create reloadable object files.
15405reload_flag=$lt_reload_flag
15406reload_cmds=$lt_reload_cmds
15407
15408# How to pass a linker flag through the compiler.
15409wl=$lt_lt_prog_compiler_wl_F77
15410
15411# Object file suffix (normally "o").
15412objext="$ac_objext"
15413
15414# Old archive suffix (normally "a").
15415libext="$libext"
15416
15417# Shared library suffix (normally ".so").
15418shrext_cmds='$shrext_cmds'
15419
15420# Executable file suffix (normally "").
15421exeext="$exeext"
15422
15423# Additional compiler flags for building library objects.
15424pic_flag=$lt_lt_prog_compiler_pic_F77
15425pic_mode=$pic_mode
15426
15427# What is the maximum length of a command?
15428max_cmd_len=$lt_cv_sys_max_cmd_len
15429
15430# Does compiler simultaneously support -c and -o options?
15431compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15432
15433# Must we lock files when doing compilation?
15434need_locks=$lt_need_locks
15435
15436# Do we need the lib prefix for modules?
15437need_lib_prefix=$need_lib_prefix
15438
15439# Do we need a version for libraries?
15440need_version=$need_version
15441
15442# Whether dlopen is supported.
15443dlopen_support=$enable_dlopen
15444
15445# Whether dlopen of programs is supported.
15446dlopen_self=$enable_dlopen_self
15447
15448# Whether dlopen of statically linked programs is supported.
15449dlopen_self_static=$enable_dlopen_self_static
15450
15451# Compiler flag to prevent dynamic linking.
15452link_static_flag=$lt_lt_prog_compiler_static_F77
15453
15454# Compiler flag to turn off builtin functions.
15455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15456
15457# Compiler flag to allow reflexive dlopens.
15458export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15459
15460# Compiler flag to generate shared objects directly from archives.
15461whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15462
15463# Compiler flag to generate thread-safe objects.
15464thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15465
15466# Library versioning type.
15467version_type=$version_type
15468
15469# Format of library name prefix.
15470libname_spec=$lt_libname_spec
15471
15472# List of archive names.  First name is the real one, the rest are links.
15473# The last name is the one that the linker finds with -lNAME.
15474library_names_spec=$lt_library_names_spec
15475
15476# The coded name of the library, if different from the real name.
15477soname_spec=$lt_soname_spec
15478
15479# Commands used to build and install an old-style archive.
15480RANLIB=$lt_RANLIB
15481old_archive_cmds=$lt_old_archive_cmds_F77
15482old_postinstall_cmds=$lt_old_postinstall_cmds
15483old_postuninstall_cmds=$lt_old_postuninstall_cmds
15484
15485# Create an old-style archive from a shared archive.
15486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15487
15488# Create a temporary old-style archive to link instead of a shared archive.
15489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15490
15491# Commands used to build and install a shared archive.
15492archive_cmds=$lt_archive_cmds_F77
15493archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15494postinstall_cmds=$lt_postinstall_cmds
15495postuninstall_cmds=$lt_postuninstall_cmds
15496
15497# Commands used to build a loadable module (assumed same as above if empty)
15498module_cmds=$lt_module_cmds_F77
15499module_expsym_cmds=$lt_module_expsym_cmds_F77
15500
15501# Commands to strip libraries.
15502old_striplib=$lt_old_striplib
15503striplib=$lt_striplib
15504
15505# Dependencies to place before the objects being linked to create a
15506# shared library.
15507predep_objects=$lt_predep_objects_F77
15508
15509# Dependencies to place after the objects being linked to create a
15510# shared library.
15511postdep_objects=$lt_postdep_objects_F77
15512
15513# Dependencies to place before the objects being linked to create a
15514# shared library.
15515predeps=$lt_predeps_F77
15516
15517# Dependencies to place after the objects being linked to create a
15518# shared library.
15519postdeps=$lt_postdeps_F77
15520
15521# The library search path used internally by the compiler when linking
15522# a shared library.
15523compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15524
15525# Method to check whether dependent libraries are shared objects.
15526deplibs_check_method=$lt_deplibs_check_method
15527
15528# Command to use when deplibs_check_method == file_magic.
15529file_magic_cmd=$lt_file_magic_cmd
15530
15531# Flag that allows shared libraries with undefined symbols to be built.
15532allow_undefined_flag=$lt_allow_undefined_flag_F77
15533
15534# Flag that forces no undefined symbols.
15535no_undefined_flag=$lt_no_undefined_flag_F77
15536
15537# Commands used to finish a libtool library installation in a directory.
15538finish_cmds=$lt_finish_cmds
15539
15540# Same as above, but a single script fragment to be evaled but not shown.
15541finish_eval=$lt_finish_eval
15542
15543# Take the output of nm and produce a listing of raw symbols and C names.
15544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15545
15546# Transform the output of nm in a proper C declaration
15547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15548
15549# Transform the output of nm in a C name address pair
15550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15551
15552# This is the shared library runtime path variable.
15553runpath_var=$runpath_var
15554
15555# This is the shared library path variable.
15556shlibpath_var=$shlibpath_var
15557
15558# Is shlibpath searched before the hard-coded library search path?
15559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15560
15561# How to hardcode a shared library path into an executable.
15562hardcode_action=$hardcode_action_F77
15563
15564# Whether we should hardcode library paths into libraries.
15565hardcode_into_libs=$hardcode_into_libs
15566
15567# Flag to hardcode \$libdir into a binary during linking.
15568# This must work even if \$libdir does not exist.
15569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15570
15571# If ld is used when linking, flag to hardcode \$libdir into
15572# a binary during linking. This must work even if \$libdir does
15573# not exist.
15574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15575
15576# Whether we need a single -rpath flag with a separated argument.
15577hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15578
15579# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15580# resulting binary.
15581hardcode_direct=$hardcode_direct_F77
15582
15583# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15584# resulting binary.
15585hardcode_minus_L=$hardcode_minus_L_F77
15586
15587# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15588# the resulting binary.
15589hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15590
15591# Set to yes if building a shared library automatically hardcodes DIR into the library
15592# and all subsequent libraries and executables linked against it.
15593hardcode_automatic=$hardcode_automatic_F77
15594
15595# Variables whose values should be saved in libtool wrapper scripts and
15596# restored at relink time.
15597variables_saved_for_relink="$variables_saved_for_relink"
15598
15599# Whether libtool must link a program against all its dependency libraries.
15600link_all_deplibs=$link_all_deplibs_F77
15601
15602# Compile-time system search path for libraries
15603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15604
15605# Run-time system search path for libraries
15606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15607
15608# Fix the shell variable \$srcfile for the compiler.
15609fix_srcfile_path=$lt_fix_srcfile_path
15610
15611# Set to yes if exported symbols are required.
15612always_export_symbols=$always_export_symbols_F77
15613
15614# The commands to list exported symbols.
15615export_symbols_cmds=$lt_export_symbols_cmds_F77
15616
15617# The commands to extract the exported symbol list from a shared archive.
15618extract_expsyms_cmds=$lt_extract_expsyms_cmds
15619
15620# Symbols that should not be listed in the preloaded symbols.
15621exclude_expsyms=$lt_exclude_expsyms_F77
15622
15623# Symbols that must always be exported.
15624include_expsyms=$lt_include_expsyms_F77
15625
15626# ### END LIBTOOL TAG CONFIG: $tagname
15627
15628__EOF__
15629
15630
15631else
15632  # If there is no Makefile yet, we rely on a make rule to execute
15633  # `config.status --recheck' to rerun these tests and create the
15634  # libtool script then.
15635  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15636  if test -f "$ltmain_in"; then
15637    test -f Makefile && make "$ltmain"
15638  fi
15639fi
15640
15641
15642ac_ext=c
15643ac_cpp='$CPP $CPPFLAGS'
15644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15646ac_compiler_gnu=$ac_cv_c_compiler_gnu
15647
15648CC="$lt_save_CC"
15649
15650	else
15651	  tagname=""
15652	fi
15653	;;
15654
15655      GCJ)
15656	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15657
15658
15659# Source file extension for Java test sources.
15660ac_ext=java
15661
15662# Object file extension for compiled Java test sources.
15663objext=o
15664objext_GCJ=$objext
15665
15666# Code to be used in simple compile tests
15667lt_simple_compile_test_code="class foo {}"
15668
15669# Code to be used in simple link tests
15670lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15671
15672# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15673
15674# If no C compiler was specified, use CC.
15675LTCC=${LTCC-"$CC"}
15676
15677# If no C compiler flags were specified, use CFLAGS.
15678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15679
15680# Allow CC to be a program name with arguments.
15681compiler=$CC
15682
15683
15684# save warnings/boilerplate of simple test code
15685ac_outfile=conftest.$ac_objext
15686echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15688_lt_compiler_boilerplate=`cat conftest.err`
15689$rm conftest*
15690
15691ac_outfile=conftest.$ac_objext
15692echo "$lt_simple_link_test_code" >conftest.$ac_ext
15693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15694_lt_linker_boilerplate=`cat conftest.err`
15695$rm conftest*
15696
15697
15698# Allow CC to be a program name with arguments.
15699lt_save_CC="$CC"
15700CC=${GCJ-"gcj"}
15701compiler=$CC
15702compiler_GCJ=$CC
15703for cc_temp in $compiler""; do
15704  case $cc_temp in
15705    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15706    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15707    \-*) ;;
15708    *) break;;
15709  esac
15710done
15711cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15712
15713
15714# GCJ did not exist at the time GCC didn't implicitly link libc in.
15715archive_cmds_need_lc_GCJ=no
15716
15717old_archive_cmds_GCJ=$old_archive_cmds
15718
15719
15720lt_prog_compiler_no_builtin_flag_GCJ=
15721
15722if test "$GCC" = yes; then
15723  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15724
15725
15726{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15727echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15728if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15729  echo $ECHO_N "(cached) $ECHO_C" >&6
15730else
15731  lt_cv_prog_compiler_rtti_exceptions=no
15732  ac_outfile=conftest.$ac_objext
15733   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15734   lt_compiler_flag="-fno-rtti -fno-exceptions"
15735   # Insert the option either (1) after the last *FLAGS variable, or
15736   # (2) before a word containing "conftest.", or (3) at the end.
15737   # Note that $ac_compile itself does not contain backslashes and begins
15738   # with a dollar sign (not a hyphen), so the echo should work correctly.
15739   # The option is referenced via a variable to avoid confusing sed.
15740   lt_compile=`echo "$ac_compile" | $SED \
15741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743   -e 's:$: $lt_compiler_flag:'`
15744   (eval echo "\"\$as_me:15744: $lt_compile\"" >&5)
15745   (eval "$lt_compile" 2>conftest.err)
15746   ac_status=$?
15747   cat conftest.err >&5
15748   echo "$as_me:15748: \$? = $ac_status" >&5
15749   if (exit $ac_status) && test -s "$ac_outfile"; then
15750     # The compiler can only warn and ignore the option if not recognized
15751     # So say no if there are warnings other than the usual output.
15752     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15753     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15755       lt_cv_prog_compiler_rtti_exceptions=yes
15756     fi
15757   fi
15758   $rm conftest*
15759
15760fi
15761{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15762echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15763
15764if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15765    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15766else
15767    :
15768fi
15769
15770fi
15771
15772lt_prog_compiler_wl_GCJ=
15773lt_prog_compiler_pic_GCJ=
15774lt_prog_compiler_static_GCJ=
15775
15776{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15778
15779  if test "$GCC" = yes; then
15780    lt_prog_compiler_wl_GCJ='-Wl,'
15781    lt_prog_compiler_static_GCJ='-static'
15782
15783    case $host_os in
15784      aix*)
15785      # All AIX code is PIC.
15786      if test "$host_cpu" = ia64; then
15787	# AIX 5 now supports IA64 processor
15788	lt_prog_compiler_static_GCJ='-Bstatic'
15789      fi
15790      ;;
15791
15792    amigaos*)
15793      # FIXME: we need at least 68020 code to build shared libraries, but
15794      # adding the `-m68020' flag to GCC prevents building anything better,
15795      # like `-m68040'.
15796      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15797      ;;
15798
15799    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15800      # PIC is the default for these OSes.
15801      ;;
15802
15803    mingw* | cygwin* | pw32* | os2*)
15804      # This hack is so that the source file can tell whether it is being
15805      # built for inclusion in a dll (and should export symbols for example).
15806      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15807      # (--disable-auto-import) libraries
15808      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15809      ;;
15810
15811    darwin* | rhapsody*)
15812      # PIC is the default on this platform
15813      # Common symbols not allowed in MH_DYLIB files
15814      lt_prog_compiler_pic_GCJ='-fno-common'
15815      ;;
15816
15817    interix[3-9]*)
15818      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15819      # Instead, we relocate shared libraries at runtime.
15820      ;;
15821
15822    msdosdjgpp*)
15823      # Just because we use GCC doesn't mean we suddenly get shared libraries
15824      # on systems that don't support them.
15825      lt_prog_compiler_can_build_shared_GCJ=no
15826      enable_shared=no
15827      ;;
15828
15829    sysv4*MP*)
15830      if test -d /usr/nec; then
15831	lt_prog_compiler_pic_GCJ=-Kconform_pic
15832      fi
15833      ;;
15834
15835    hpux*)
15836      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15837      # not for PA HP-UX.
15838      case $host_cpu in
15839      hppa*64*|ia64*)
15840	# +Z the default
15841	;;
15842      *)
15843	lt_prog_compiler_pic_GCJ='-fPIC'
15844	;;
15845      esac
15846      ;;
15847
15848    *)
15849      lt_prog_compiler_pic_GCJ='-fPIC'
15850      ;;
15851    esac
15852  else
15853    # PORTME Check for flag to pass linker flags through the system compiler.
15854    case $host_os in
15855    aix*)
15856      lt_prog_compiler_wl_GCJ='-Wl,'
15857      if test "$host_cpu" = ia64; then
15858	# AIX 5 now supports IA64 processor
15859	lt_prog_compiler_static_GCJ='-Bstatic'
15860      else
15861	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15862      fi
15863      ;;
15864      darwin*)
15865        # PIC is the default on this platform
15866        # Common symbols not allowed in MH_DYLIB files
15867       case $cc_basename in
15868         xlc*)
15869         lt_prog_compiler_pic_GCJ='-qnocommon'
15870         lt_prog_compiler_wl_GCJ='-Wl,'
15871         ;;
15872       esac
15873       ;;
15874
15875    mingw* | cygwin* | pw32* | os2*)
15876      # This hack is so that the source file can tell whether it is being
15877      # built for inclusion in a dll (and should export symbols for example).
15878      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15879      ;;
15880
15881    hpux9* | hpux10* | hpux11*)
15882      lt_prog_compiler_wl_GCJ='-Wl,'
15883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15884      # not for PA HP-UX.
15885      case $host_cpu in
15886      hppa*64*|ia64*)
15887	# +Z the default
15888	;;
15889      *)
15890	lt_prog_compiler_pic_GCJ='+Z'
15891	;;
15892      esac
15893      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15894      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15895      ;;
15896
15897    irix5* | irix6* | nonstopux*)
15898      lt_prog_compiler_wl_GCJ='-Wl,'
15899      # PIC (with -KPIC) is the default.
15900      lt_prog_compiler_static_GCJ='-non_shared'
15901      ;;
15902
15903    newsos6)
15904      lt_prog_compiler_pic_GCJ='-KPIC'
15905      lt_prog_compiler_static_GCJ='-Bstatic'
15906      ;;
15907
15908    linux* | k*bsd*-gnu)
15909      case $cc_basename in
15910      icc* | ecc*)
15911	lt_prog_compiler_wl_GCJ='-Wl,'
15912	lt_prog_compiler_pic_GCJ='-KPIC'
15913	lt_prog_compiler_static_GCJ='-static'
15914        ;;
15915      pgcc* | pgf77* | pgf90* | pgf95*)
15916        # Portland Group compilers (*not* the Pentium gcc compiler,
15917	# which looks to be a dead project)
15918	lt_prog_compiler_wl_GCJ='-Wl,'
15919	lt_prog_compiler_pic_GCJ='-fpic'
15920	lt_prog_compiler_static_GCJ='-Bstatic'
15921        ;;
15922      ccc*)
15923        lt_prog_compiler_wl_GCJ='-Wl,'
15924        # All Alpha code is PIC.
15925        lt_prog_compiler_static_GCJ='-non_shared'
15926        ;;
15927      *)
15928        case `$CC -V 2>&1 | sed 5q` in
15929	*Sun\ C*)
15930	  # Sun C 5.9
15931	  lt_prog_compiler_pic_GCJ='-KPIC'
15932	  lt_prog_compiler_static_GCJ='-Bstatic'
15933	  lt_prog_compiler_wl_GCJ='-Wl,'
15934	  ;;
15935	*Sun\ F*)
15936	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15937	  lt_prog_compiler_pic_GCJ='-KPIC'
15938	  lt_prog_compiler_static_GCJ='-Bstatic'
15939	  lt_prog_compiler_wl_GCJ=''
15940	  ;;
15941	esac
15942	;;
15943      esac
15944      ;;
15945
15946    osf3* | osf4* | osf5*)
15947      lt_prog_compiler_wl_GCJ='-Wl,'
15948      # All OSF/1 code is PIC.
15949      lt_prog_compiler_static_GCJ='-non_shared'
15950      ;;
15951
15952    rdos*)
15953      lt_prog_compiler_static_GCJ='-non_shared'
15954      ;;
15955
15956    solaris*)
15957      lt_prog_compiler_pic_GCJ='-KPIC'
15958      lt_prog_compiler_static_GCJ='-Bstatic'
15959      case $cc_basename in
15960      f77* | f90* | f95*)
15961	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15962      *)
15963	lt_prog_compiler_wl_GCJ='-Wl,';;
15964      esac
15965      ;;
15966
15967    sunos4*)
15968      lt_prog_compiler_wl_GCJ='-Qoption ld '
15969      lt_prog_compiler_pic_GCJ='-PIC'
15970      lt_prog_compiler_static_GCJ='-Bstatic'
15971      ;;
15972
15973    sysv4 | sysv4.2uw2* | sysv4.3*)
15974      lt_prog_compiler_wl_GCJ='-Wl,'
15975      lt_prog_compiler_pic_GCJ='-KPIC'
15976      lt_prog_compiler_static_GCJ='-Bstatic'
15977      ;;
15978
15979    sysv4*MP*)
15980      if test -d /usr/nec ;then
15981	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15982	lt_prog_compiler_static_GCJ='-Bstatic'
15983      fi
15984      ;;
15985
15986    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15987      lt_prog_compiler_wl_GCJ='-Wl,'
15988      lt_prog_compiler_pic_GCJ='-KPIC'
15989      lt_prog_compiler_static_GCJ='-Bstatic'
15990      ;;
15991
15992    unicos*)
15993      lt_prog_compiler_wl_GCJ='-Wl,'
15994      lt_prog_compiler_can_build_shared_GCJ=no
15995      ;;
15996
15997    uts4*)
15998      lt_prog_compiler_pic_GCJ='-pic'
15999      lt_prog_compiler_static_GCJ='-Bstatic'
16000      ;;
16001
16002    *)
16003      lt_prog_compiler_can_build_shared_GCJ=no
16004      ;;
16005    esac
16006  fi
16007
16008{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16009echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16010
16011#
16012# Check to make sure the PIC flag actually works.
16013#
16014if test -n "$lt_prog_compiler_pic_GCJ"; then
16015
16016{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16017echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16018if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16019  echo $ECHO_N "(cached) $ECHO_C" >&6
16020else
16021  lt_prog_compiler_pic_works_GCJ=no
16022  ac_outfile=conftest.$ac_objext
16023   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16024   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16025   # Insert the option either (1) after the last *FLAGS variable, or
16026   # (2) before a word containing "conftest.", or (3) at the end.
16027   # Note that $ac_compile itself does not contain backslashes and begins
16028   # with a dollar sign (not a hyphen), so the echo should work correctly.
16029   # The option is referenced via a variable to avoid confusing sed.
16030   lt_compile=`echo "$ac_compile" | $SED \
16031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16033   -e 's:$: $lt_compiler_flag:'`
16034   (eval echo "\"\$as_me:16034: $lt_compile\"" >&5)
16035   (eval "$lt_compile" 2>conftest.err)
16036   ac_status=$?
16037   cat conftest.err >&5
16038   echo "$as_me:16038: \$? = $ac_status" >&5
16039   if (exit $ac_status) && test -s "$ac_outfile"; then
16040     # The compiler can only warn and ignore the option if not recognized
16041     # So say no if there are warnings other than the usual output.
16042     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16043     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16044     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16045       lt_prog_compiler_pic_works_GCJ=yes
16046     fi
16047   fi
16048   $rm conftest*
16049
16050fi
16051{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16052echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16053
16054if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16055    case $lt_prog_compiler_pic_GCJ in
16056     "" | " "*) ;;
16057     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16058     esac
16059else
16060    lt_prog_compiler_pic_GCJ=
16061     lt_prog_compiler_can_build_shared_GCJ=no
16062fi
16063
16064fi
16065case $host_os in
16066  # For platforms which do not support PIC, -DPIC is meaningless:
16067  *djgpp*)
16068    lt_prog_compiler_pic_GCJ=
16069    ;;
16070  *)
16071    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16072    ;;
16073esac
16074
16075#
16076# Check to make sure the static flag actually works.
16077#
16078wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16079{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16080echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16081if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16082  echo $ECHO_N "(cached) $ECHO_C" >&6
16083else
16084  lt_prog_compiler_static_works_GCJ=no
16085   save_LDFLAGS="$LDFLAGS"
16086   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16087   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16088   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16089     # The linker can only warn and ignore the option if not recognized
16090     # So say no if there are warnings
16091     if test -s conftest.err; then
16092       # Append any errors to the config.log.
16093       cat conftest.err 1>&5
16094       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16095       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16096       if diff conftest.exp conftest.er2 >/dev/null; then
16097         lt_prog_compiler_static_works_GCJ=yes
16098       fi
16099     else
16100       lt_prog_compiler_static_works_GCJ=yes
16101     fi
16102   fi
16103   $rm conftest*
16104   LDFLAGS="$save_LDFLAGS"
16105
16106fi
16107{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16108echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16109
16110if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16111    :
16112else
16113    lt_prog_compiler_static_GCJ=
16114fi
16115
16116
16117{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16118echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16119if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16120  echo $ECHO_N "(cached) $ECHO_C" >&6
16121else
16122  lt_cv_prog_compiler_c_o_GCJ=no
16123   $rm -r conftest 2>/dev/null
16124   mkdir conftest
16125   cd conftest
16126   mkdir out
16127   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16128
16129   lt_compiler_flag="-o out/conftest2.$ac_objext"
16130   # Insert the option either (1) after the last *FLAGS variable, or
16131   # (2) before a word containing "conftest.", or (3) at the end.
16132   # Note that $ac_compile itself does not contain backslashes and begins
16133   # with a dollar sign (not a hyphen), so the echo should work correctly.
16134   lt_compile=`echo "$ac_compile" | $SED \
16135   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16136   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16137   -e 's:$: $lt_compiler_flag:'`
16138   (eval echo "\"\$as_me:16138: $lt_compile\"" >&5)
16139   (eval "$lt_compile" 2>out/conftest.err)
16140   ac_status=$?
16141   cat out/conftest.err >&5
16142   echo "$as_me:16142: \$? = $ac_status" >&5
16143   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16144   then
16145     # The compiler can only warn and ignore the option if not recognized
16146     # So say no if there are warnings
16147     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16148     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16149     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16150       lt_cv_prog_compiler_c_o_GCJ=yes
16151     fi
16152   fi
16153   chmod u+w . 2>&5
16154   $rm conftest*
16155   # SGI C++ compiler will create directory out/ii_files/ for
16156   # template instantiation
16157   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16158   $rm out/* && rmdir out
16159   cd ..
16160   rmdir conftest
16161   $rm conftest*
16162
16163fi
16164{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16165echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16166
16167
16168hard_links="nottested"
16169if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16170  # do not overwrite the value of need_locks provided by the user
16171  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16172echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16173  hard_links=yes
16174  $rm conftest*
16175  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16176  touch conftest.a
16177  ln conftest.a conftest.b 2>&5 || hard_links=no
16178  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179  { echo "$as_me:$LINENO: result: $hard_links" >&5
16180echo "${ECHO_T}$hard_links" >&6; }
16181  if test "$hard_links" = no; then
16182    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16183echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16184    need_locks=warn
16185  fi
16186else
16187  need_locks=no
16188fi
16189
16190{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16191echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16192
16193  runpath_var=
16194  allow_undefined_flag_GCJ=
16195  enable_shared_with_static_runtimes_GCJ=no
16196  archive_cmds_GCJ=
16197  archive_expsym_cmds_GCJ=
16198  old_archive_From_new_cmds_GCJ=
16199  old_archive_from_expsyms_cmds_GCJ=
16200  export_dynamic_flag_spec_GCJ=
16201  whole_archive_flag_spec_GCJ=
16202  thread_safe_flag_spec_GCJ=
16203  hardcode_libdir_flag_spec_GCJ=
16204  hardcode_libdir_flag_spec_ld_GCJ=
16205  hardcode_libdir_separator_GCJ=
16206  hardcode_direct_GCJ=no
16207  hardcode_minus_L_GCJ=no
16208  hardcode_shlibpath_var_GCJ=unsupported
16209  link_all_deplibs_GCJ=unknown
16210  hardcode_automatic_GCJ=no
16211  module_cmds_GCJ=
16212  module_expsym_cmds_GCJ=
16213  always_export_symbols_GCJ=no
16214  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16215  # include_expsyms should be a list of space-separated symbols to be *always*
16216  # included in the symbol list
16217  include_expsyms_GCJ=
16218  # exclude_expsyms can be an extended regexp of symbols to exclude
16219  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16220  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16221  # as well as any symbol that contains `d'.
16222  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16223  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16224  # platforms (ab)use it in PIC code, but their linkers get confused if
16225  # the symbol is explicitly referenced.  Since portable code cannot
16226  # rely on this symbol name, it's probably fine to never include it in
16227  # preloaded symbol tables.
16228  extract_expsyms_cmds=
16229  # Just being paranoid about ensuring that cc_basename is set.
16230  for cc_temp in $compiler""; do
16231  case $cc_temp in
16232    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16233    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16234    \-*) ;;
16235    *) break;;
16236  esac
16237done
16238cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16239
16240  case $host_os in
16241  cygwin* | mingw* | pw32*)
16242    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16243    # When not using gcc, we currently assume that we are using
16244    # Microsoft Visual C++.
16245    if test "$GCC" != yes; then
16246      with_gnu_ld=no
16247    fi
16248    ;;
16249  interix*)
16250    # we just hope/assume this is gcc and not c89 (= MSVC++)
16251    with_gnu_ld=yes
16252    ;;
16253  openbsd*)
16254    with_gnu_ld=no
16255    ;;
16256  esac
16257
16258  ld_shlibs_GCJ=yes
16259  if test "$with_gnu_ld" = yes; then
16260    # If archive_cmds runs LD, not CC, wlarc should be empty
16261    wlarc='${wl}'
16262
16263    # Set some defaults for GNU ld with shared library support. These
16264    # are reset later if shared libraries are not supported. Putting them
16265    # here allows them to be overridden if necessary.
16266    runpath_var=LD_RUN_PATH
16267    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16268    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16269    # ancient GNU ld didn't support --whole-archive et. al.
16270    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16271	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16272      else
16273  	whole_archive_flag_spec_GCJ=
16274    fi
16275    supports_anon_versioning=no
16276    case `$LD -v 2>/dev/null` in
16277      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16278      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16279      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16280      *\ 2.11.*) ;; # other 2.11 versions
16281      *) supports_anon_versioning=yes ;;
16282    esac
16283
16284    # See if GNU ld supports shared libraries.
16285    case $host_os in
16286    aix3* | aix4* | aix5*)
16287      # On AIX/PPC, the GNU linker is very broken
16288      if test "$host_cpu" != ia64; then
16289	ld_shlibs_GCJ=no
16290	cat <<EOF 1>&2
16291
16292*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16293*** to be unable to reliably create shared libraries on AIX.
16294*** Therefore, libtool is disabling shared libraries support.  If you
16295*** really care for shared libraries, you may want to modify your PATH
16296*** so that a non-GNU linker is found, and then restart.
16297
16298EOF
16299      fi
16300      ;;
16301
16302    amigaos*)
16303      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)'
16304      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16305      hardcode_minus_L_GCJ=yes
16306
16307      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16308      # that the semantics of dynamic libraries on AmigaOS, at least up
16309      # to version 4, is to share data among multiple programs linked
16310      # with the same dynamic library.  Since this doesn't match the
16311      # behavior of shared libraries on other platforms, we can't use
16312      # them.
16313      ld_shlibs_GCJ=no
16314      ;;
16315
16316    beos*)
16317      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16318	allow_undefined_flag_GCJ=unsupported
16319	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16320	# support --undefined.  This deserves some investigation.  FIXME
16321	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16322      else
16323	ld_shlibs_GCJ=no
16324      fi
16325      ;;
16326
16327    cygwin* | mingw* | pw32*)
16328      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16329      # as there is no search path for DLLs.
16330      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16331      allow_undefined_flag_GCJ=unsupported
16332      always_export_symbols_GCJ=no
16333      enable_shared_with_static_runtimes_GCJ=yes
16334      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16335
16336      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16337        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16338	# If the export-symbols file already is a .def file (1st line
16339	# is EXPORTS), use it as is; otherwise, prepend...
16340	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16341	  cp $export_symbols $output_objdir/$soname.def;
16342	else
16343	  echo EXPORTS > $output_objdir/$soname.def;
16344	  cat $export_symbols >> $output_objdir/$soname.def;
16345	fi~
16346	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16347      else
16348	ld_shlibs_GCJ=no
16349      fi
16350      ;;
16351
16352    interix[3-9]*)
16353      hardcode_direct_GCJ=no
16354      hardcode_shlibpath_var_GCJ=no
16355      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16356      export_dynamic_flag_spec_GCJ='${wl}-E'
16357      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16358      # Instead, shared libraries are loaded at an image base (0x10000000 by
16359      # default) and relocated if they conflict, which is a slow very memory
16360      # consuming and fragmenting process.  To avoid this, we pick a random,
16361      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16362      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16363      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'
16364      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'
16365      ;;
16366
16367    gnu* | linux* | k*bsd*-gnu)
16368      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16369	tmp_addflag=
16370	case $cc_basename,$host_cpu in
16371	pgcc*)				# Portland Group C compiler
16372	  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'
16373	  tmp_addflag=' $pic_flag'
16374	  ;;
16375	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16376	  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'
16377	  tmp_addflag=' $pic_flag -Mnomain' ;;
16378	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16379	  tmp_addflag=' -i_dynamic' ;;
16380	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16381	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16382	ifc* | ifort*)			# Intel Fortran compiler
16383	  tmp_addflag=' -nofor_main' ;;
16384	esac
16385	case `$CC -V 2>&1 | sed 5q` in
16386	*Sun\ C*)			# Sun C 5.9
16387	  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'
16388	  tmp_sharedflag='-G' ;;
16389	*Sun\ F*)			# Sun Fortran 8.3
16390	  tmp_sharedflag='-G' ;;
16391	*)
16392	  tmp_sharedflag='-shared' ;;
16393	esac
16394	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16395
16396	if test $supports_anon_versioning = yes; then
16397	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16398  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16399  $echo "local: *; };" >> $output_objdir/$libname.ver~
16400	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16401	fi
16402      else
16403	ld_shlibs_GCJ=no
16404      fi
16405      ;;
16406
16407    netbsd*)
16408      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16409	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16410	wlarc=
16411      else
16412	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16413	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16414      fi
16415      ;;
16416
16417    solaris*)
16418      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16419	ld_shlibs_GCJ=no
16420	cat <<EOF 1>&2
16421
16422*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16423*** create shared libraries on Solaris systems.  Therefore, libtool
16424*** is disabling shared libraries support.  We urge you to upgrade GNU
16425*** binutils to release 2.9.1 or newer.  Another option is to modify
16426*** your PATH or compiler configuration so that the native linker is
16427*** used, and then restart.
16428
16429EOF
16430      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16431	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16432	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16433      else
16434	ld_shlibs_GCJ=no
16435      fi
16436      ;;
16437
16438    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16439      case `$LD -v 2>&1` in
16440        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16441	ld_shlibs_GCJ=no
16442	cat <<_LT_EOF 1>&2
16443
16444*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16445*** reliably create shared libraries on SCO systems.  Therefore, libtool
16446*** is disabling shared libraries support.  We urge you to upgrade GNU
16447*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16448*** your PATH or compiler configuration so that the native linker is
16449*** used, and then restart.
16450
16451_LT_EOF
16452	;;
16453	*)
16454	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16455	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16456	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16457	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16458	  else
16459	    ld_shlibs_GCJ=no
16460	  fi
16461	;;
16462      esac
16463      ;;
16464
16465    sunos4*)
16466      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16467      wlarc=
16468      hardcode_direct_GCJ=yes
16469      hardcode_shlibpath_var_GCJ=no
16470      ;;
16471
16472    *)
16473      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16474	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16475	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16476      else
16477	ld_shlibs_GCJ=no
16478      fi
16479      ;;
16480    esac
16481
16482    if test "$ld_shlibs_GCJ" = no; then
16483      runpath_var=
16484      hardcode_libdir_flag_spec_GCJ=
16485      export_dynamic_flag_spec_GCJ=
16486      whole_archive_flag_spec_GCJ=
16487    fi
16488  else
16489    # PORTME fill in a description of your system's linker (not GNU ld)
16490    case $host_os in
16491    aix3*)
16492      allow_undefined_flag_GCJ=unsupported
16493      always_export_symbols_GCJ=yes
16494      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'
16495      # Note: this linker hardcodes the directories in LIBPATH if there
16496      # are no directories specified by -L.
16497      hardcode_minus_L_GCJ=yes
16498      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16499	# Neither direct hardcoding nor static linking is supported with a
16500	# broken collect2.
16501	hardcode_direct_GCJ=unsupported
16502      fi
16503      ;;
16504
16505    aix4* | aix5*)
16506      if test "$host_cpu" = ia64; then
16507	# On IA64, the linker does run time linking by default, so we don't
16508	# have to do anything special.
16509	aix_use_runtimelinking=no
16510	exp_sym_flag='-Bexport'
16511	no_entry_flag=""
16512      else
16513	# If we're using GNU nm, then we don't want the "-C" option.
16514	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16515	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16516	  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'
16517	else
16518	  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'
16519	fi
16520	aix_use_runtimelinking=no
16521
16522	# Test if we are trying to use run time linking or normal
16523	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16524	# need to do runtime linking.
16525	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16526	  for ld_flag in $LDFLAGS; do
16527  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16528  	    aix_use_runtimelinking=yes
16529  	    break
16530  	  fi
16531	  done
16532	  ;;
16533	esac
16534
16535	exp_sym_flag='-bexport'
16536	no_entry_flag='-bnoentry'
16537      fi
16538
16539      # When large executables or shared objects are built, AIX ld can
16540      # have problems creating the table of contents.  If linking a library
16541      # or program results in "error TOC overflow" add -mminimal-toc to
16542      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16543      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16544
16545      archive_cmds_GCJ=''
16546      hardcode_direct_GCJ=yes
16547      hardcode_libdir_separator_GCJ=':'
16548      link_all_deplibs_GCJ=yes
16549
16550      if test "$GCC" = yes; then
16551	case $host_os in aix4.[012]|aix4.[012].*)
16552	# We only want to do this on AIX 4.2 and lower, the check
16553	# below for broken collect2 doesn't work under 4.3+
16554	  collect2name=`${CC} -print-prog-name=collect2`
16555	  if test -f "$collect2name" && \
16556  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16557	  then
16558  	  # We have reworked collect2
16559  	  :
16560	  else
16561  	  # We have old collect2
16562  	  hardcode_direct_GCJ=unsupported
16563  	  # It fails to find uninstalled libraries when the uninstalled
16564  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16565  	  # to unsupported forces relinking
16566  	  hardcode_minus_L_GCJ=yes
16567  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16568  	  hardcode_libdir_separator_GCJ=
16569	  fi
16570	  ;;
16571	esac
16572	shared_flag='-shared'
16573	if test "$aix_use_runtimelinking" = yes; then
16574	  shared_flag="$shared_flag "'${wl}-G'
16575	fi
16576      else
16577	# not using gcc
16578	if test "$host_cpu" = ia64; then
16579  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16580  	# chokes on -Wl,-G. The following line is correct:
16581	  shared_flag='-G'
16582	else
16583	  if test "$aix_use_runtimelinking" = yes; then
16584	    shared_flag='${wl}-G'
16585	  else
16586	    shared_flag='${wl}-bM:SRE'
16587	  fi
16588	fi
16589      fi
16590
16591      # It seems that -bexpall does not export symbols beginning with
16592      # underscore (_), so it is better to generate a list of symbols to export.
16593      always_export_symbols_GCJ=yes
16594      if test "$aix_use_runtimelinking" = yes; then
16595	# Warning - without using the other runtime loading flags (-brtl),
16596	# -berok will link without error, but may produce a broken library.
16597	allow_undefined_flag_GCJ='-berok'
16598       # Determine the default libpath from the value encoded in an empty executable.
16599       cat >conftest.$ac_ext <<_ACEOF
16600/* confdefs.h.  */
16601_ACEOF
16602cat confdefs.h >>conftest.$ac_ext
16603cat >>conftest.$ac_ext <<_ACEOF
16604/* end confdefs.h.  */
16605
16606int
16607main ()
16608{
16609
16610  ;
16611  return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext conftest$ac_exeext
16615if { (ac_try="$ac_link"
16616case "(($ac_try" in
16617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618  *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621  (eval "$ac_link") 2>conftest.er1
16622  ac_status=$?
16623  grep -v '^ *+' conftest.er1 >conftest.err
16624  rm -f conftest.er1
16625  cat conftest.err >&5
16626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627  (exit $ac_status); } && {
16628	 test -z "$ac_c_werror_flag" ||
16629	 test ! -s conftest.err
16630       } && test -s conftest$ac_exeext &&
16631       $as_test_x conftest$ac_exeext; then
16632
16633lt_aix_libpath_sed='
16634    /Import File Strings/,/^$/ {
16635	/^0/ {
16636	    s/^0  *\(.*\)$/\1/
16637	    p
16638	}
16639    }'
16640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16641# Check for a 64-bit object if we didn't find anything.
16642if test -z "$aix_libpath"; then
16643  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16644fi
16645else
16646  echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649
16650fi
16651
16652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653      conftest$ac_exeext conftest.$ac_ext
16654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16655
16656       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16657	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"
16658       else
16659	if test "$host_cpu" = ia64; then
16660	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16661	  allow_undefined_flag_GCJ="-z nodefs"
16662	  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"
16663	else
16664	 # Determine the default libpath from the value encoded in an empty executable.
16665	 cat >conftest.$ac_ext <<_ACEOF
16666/* confdefs.h.  */
16667_ACEOF
16668cat confdefs.h >>conftest.$ac_ext
16669cat >>conftest.$ac_ext <<_ACEOF
16670/* end confdefs.h.  */
16671
16672int
16673main ()
16674{
16675
16676  ;
16677  return 0;
16678}
16679_ACEOF
16680rm -f conftest.$ac_objext conftest$ac_exeext
16681if { (ac_try="$ac_link"
16682case "(($ac_try" in
16683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684  *) ac_try_echo=$ac_try;;
16685esac
16686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687  (eval "$ac_link") 2>conftest.er1
16688  ac_status=$?
16689  grep -v '^ *+' conftest.er1 >conftest.err
16690  rm -f conftest.er1
16691  cat conftest.err >&5
16692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693  (exit $ac_status); } && {
16694	 test -z "$ac_c_werror_flag" ||
16695	 test ! -s conftest.err
16696       } && test -s conftest$ac_exeext &&
16697       $as_test_x conftest$ac_exeext; then
16698
16699lt_aix_libpath_sed='
16700    /Import File Strings/,/^$/ {
16701	/^0/ {
16702	    s/^0  *\(.*\)$/\1/
16703	    p
16704	}
16705    }'
16706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16707# Check for a 64-bit object if we didn't find anything.
16708if test -z "$aix_libpath"; then
16709  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16710fi
16711else
16712  echo "$as_me: failed program was:" >&5
16713sed 's/^/| /' conftest.$ac_ext >&5
16714
16715
16716fi
16717
16718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719      conftest$ac_exeext conftest.$ac_ext
16720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16721
16722	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16723	  # Warning - without using the other run time loading flags,
16724	  # -berok will link without error, but may produce a broken library.
16725	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16726	  allow_undefined_flag_GCJ=' ${wl}-berok'
16727	  # Exported symbols can be pulled into shared objects from archives
16728	  whole_archive_flag_spec_GCJ='$convenience'
16729	  archive_cmds_need_lc_GCJ=yes
16730	  # This is similar to how AIX traditionally builds its shared libraries.
16731	  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'
16732	fi
16733      fi
16734      ;;
16735
16736    amigaos*)
16737      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)'
16738      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16739      hardcode_minus_L_GCJ=yes
16740      # see comment about different semantics on the GNU ld section
16741      ld_shlibs_GCJ=no
16742      ;;
16743
16744    bsdi[45]*)
16745      export_dynamic_flag_spec_GCJ=-rdynamic
16746      ;;
16747
16748    cygwin* | mingw* | pw32*)
16749      # When not using gcc, we currently assume that we are using
16750      # Microsoft Visual C++.
16751      # hardcode_libdir_flag_spec is actually meaningless, as there is
16752      # no search path for DLLs.
16753      hardcode_libdir_flag_spec_GCJ=' '
16754      allow_undefined_flag_GCJ=unsupported
16755      # Tell ltmain to make .lib files, not .a files.
16756      libext=lib
16757      # Tell ltmain to make .dll files, not .so files.
16758      shrext_cmds=".dll"
16759      # FIXME: Setting linknames here is a bad hack.
16760      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16761      # The linker will automatically build a .lib file if we build a DLL.
16762      old_archive_From_new_cmds_GCJ='true'
16763      # FIXME: Should let the user specify the lib program.
16764      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16765      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16766      enable_shared_with_static_runtimes_GCJ=yes
16767      ;;
16768
16769    darwin* | rhapsody*)
16770      case $host_os in
16771        rhapsody* | darwin1.[012])
16772         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16773         ;;
16774       *) # Darwin 1.3 on
16775         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16776           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16777         else
16778           case ${MACOSX_DEPLOYMENT_TARGET} in
16779             10.[012])
16780               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16781               ;;
16782             10.*)
16783               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16784               ;;
16785           esac
16786         fi
16787         ;;
16788      esac
16789      archive_cmds_need_lc_GCJ=no
16790      hardcode_direct_GCJ=no
16791      hardcode_automatic_GCJ=yes
16792      hardcode_shlibpath_var_GCJ=unsupported
16793      whole_archive_flag_spec_GCJ=''
16794      link_all_deplibs_GCJ=yes
16795    if test "$GCC" = yes ; then
16796    	output_verbose_link_cmd='echo'
16797        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16798      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16799      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16800      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}'
16801      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}'
16802    else
16803      case $cc_basename in
16804        xlc*)
16805         output_verbose_link_cmd='echo'
16806         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16807         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16808          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16809         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}'
16810          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}'
16811          ;;
16812       *)
16813         ld_shlibs_GCJ=no
16814          ;;
16815      esac
16816    fi
16817      ;;
16818
16819    dgux*)
16820      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16822      hardcode_shlibpath_var_GCJ=no
16823      ;;
16824
16825    freebsd1*)
16826      ld_shlibs_GCJ=no
16827      ;;
16828
16829    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16830    # support.  Future versions do this automatically, but an explicit c++rt0.o
16831    # does not break anything, and helps significantly (at the cost of a little
16832    # extra space).
16833    freebsd2.2*)
16834      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16835      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16836      hardcode_direct_GCJ=yes
16837      hardcode_shlibpath_var_GCJ=no
16838      ;;
16839
16840    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16841    freebsd2*)
16842      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16843      hardcode_direct_GCJ=yes
16844      hardcode_minus_L_GCJ=yes
16845      hardcode_shlibpath_var_GCJ=no
16846      ;;
16847
16848    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16849    freebsd* | dragonfly*)
16850      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16851      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852      hardcode_direct_GCJ=yes
16853      hardcode_shlibpath_var_GCJ=no
16854      ;;
16855
16856    hpux9*)
16857      if test "$GCC" = yes; then
16858	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'
16859      else
16860	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'
16861      fi
16862      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16863      hardcode_libdir_separator_GCJ=:
16864      hardcode_direct_GCJ=yes
16865
16866      # hardcode_minus_L: Not really in the search PATH,
16867      # but as the default location of the library.
16868      hardcode_minus_L_GCJ=yes
16869      export_dynamic_flag_spec_GCJ='${wl}-E'
16870      ;;
16871
16872    hpux10*)
16873      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16874	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16875      else
16876	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16877      fi
16878      if test "$with_gnu_ld" = no; then
16879	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16880	hardcode_libdir_separator_GCJ=:
16881
16882	hardcode_direct_GCJ=yes
16883	export_dynamic_flag_spec_GCJ='${wl}-E'
16884
16885	# hardcode_minus_L: Not really in the search PATH,
16886	# but as the default location of the library.
16887	hardcode_minus_L_GCJ=yes
16888      fi
16889      ;;
16890
16891    hpux11*)
16892      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16893	case $host_cpu in
16894	hppa*64*)
16895	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16896	  ;;
16897	ia64*)
16898	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16899	  ;;
16900	*)
16901	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16902	  ;;
16903	esac
16904      else
16905	case $host_cpu in
16906	hppa*64*)
16907	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16908	  ;;
16909	ia64*)
16910	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16911	  ;;
16912	*)
16913	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16914	  ;;
16915	esac
16916      fi
16917      if test "$with_gnu_ld" = no; then
16918	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919	hardcode_libdir_separator_GCJ=:
16920
16921	case $host_cpu in
16922	hppa*64*|ia64*)
16923	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16924	  hardcode_direct_GCJ=no
16925	  hardcode_shlibpath_var_GCJ=no
16926	  ;;
16927	*)
16928	  hardcode_direct_GCJ=yes
16929	  export_dynamic_flag_spec_GCJ='${wl}-E'
16930
16931	  # hardcode_minus_L: Not really in the search PATH,
16932	  # but as the default location of the library.
16933	  hardcode_minus_L_GCJ=yes
16934	  ;;
16935	esac
16936      fi
16937      ;;
16938
16939    irix5* | irix6* | nonstopux*)
16940      if test "$GCC" = yes; then
16941	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'
16942      else
16943	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'
16944	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16945      fi
16946      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16947      hardcode_libdir_separator_GCJ=:
16948      link_all_deplibs_GCJ=yes
16949      ;;
16950
16951    netbsd*)
16952      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16953	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16954      else
16955	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16956      fi
16957      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16958      hardcode_direct_GCJ=yes
16959      hardcode_shlibpath_var_GCJ=no
16960      ;;
16961
16962    newsos6)
16963      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964      hardcode_direct_GCJ=yes
16965      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16966      hardcode_libdir_separator_GCJ=:
16967      hardcode_shlibpath_var_GCJ=no
16968      ;;
16969
16970    openbsd*)
16971      if test -f /usr/libexec/ld.so; then
16972	hardcode_direct_GCJ=yes
16973	hardcode_shlibpath_var_GCJ=no
16974	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16975	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16976	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16977	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16978	  export_dynamic_flag_spec_GCJ='${wl}-E'
16979	else
16980	  case $host_os in
16981	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16982	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
16984	     ;;
16985	   *)
16986	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16987	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16988	     ;;
16989	  esac
16990        fi
16991      else
16992	ld_shlibs_GCJ=no
16993      fi
16994      ;;
16995
16996    os2*)
16997      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16998      hardcode_minus_L_GCJ=yes
16999      allow_undefined_flag_GCJ=unsupported
17000      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'
17001      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17002      ;;
17003
17004    osf3*)
17005      if test "$GCC" = yes; then
17006	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17007	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'
17008      else
17009	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17010	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'
17011      fi
17012      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17013      hardcode_libdir_separator_GCJ=:
17014      ;;
17015
17016    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17017      if test "$GCC" = yes; then
17018	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17019	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'
17020	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17021      else
17022	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17023	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'
17024	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~
17025	$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'
17026
17027	# Both c and cxx compiler support -rpath directly
17028	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17029      fi
17030      hardcode_libdir_separator_GCJ=:
17031      ;;
17032
17033    solaris*)
17034      no_undefined_flag_GCJ=' -z text'
17035      if test "$GCC" = yes; then
17036	wlarc='${wl}'
17037	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17038	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17039	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17040      else
17041	wlarc=''
17042	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17044  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17045      fi
17046      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17047      hardcode_shlibpath_var_GCJ=no
17048      case $host_os in
17049      solaris2.[0-5] | solaris2.[0-5].*) ;;
17050      *)
17051	# The compiler driver will combine and reorder linker options,
17052	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17053	# but is careful enough not to reorder.
17054 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17055	if test "$GCC" = yes; then
17056	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17057	else
17058	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17059	fi
17060	;;
17061      esac
17062      link_all_deplibs_GCJ=yes
17063      ;;
17064
17065    sunos4*)
17066      if test "x$host_vendor" = xsequent; then
17067	# Use $CC to link under sequent, because it throws in some extra .o
17068	# files that make .init and .fini sections work.
17069	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17070      else
17071	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17072      fi
17073      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17074      hardcode_direct_GCJ=yes
17075      hardcode_minus_L_GCJ=yes
17076      hardcode_shlibpath_var_GCJ=no
17077      ;;
17078
17079    sysv4)
17080      case $host_vendor in
17081	sni)
17082	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083	  hardcode_direct_GCJ=yes # is this really true???
17084	;;
17085	siemens)
17086	  ## LD is ld it makes a PLAMLIB
17087	  ## CC just makes a GrossModule.
17088	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17089	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17090	  hardcode_direct_GCJ=no
17091        ;;
17092	motorola)
17093	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17095	;;
17096      esac
17097      runpath_var='LD_RUN_PATH'
17098      hardcode_shlibpath_var_GCJ=no
17099      ;;
17100
17101    sysv4.3*)
17102      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17103      hardcode_shlibpath_var_GCJ=no
17104      export_dynamic_flag_spec_GCJ='-Bexport'
17105      ;;
17106
17107    sysv4*MP*)
17108      if test -d /usr/nec; then
17109	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17110	hardcode_shlibpath_var_GCJ=no
17111	runpath_var=LD_RUN_PATH
17112	hardcode_runpath_var=yes
17113	ld_shlibs_GCJ=yes
17114      fi
17115      ;;
17116
17117    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17118      no_undefined_flag_GCJ='${wl}-z,text'
17119      archive_cmds_need_lc_GCJ=no
17120      hardcode_shlibpath_var_GCJ=no
17121      runpath_var='LD_RUN_PATH'
17122
17123      if test "$GCC" = yes; then
17124	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17125	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17126      else
17127	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17128	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17129      fi
17130      ;;
17131
17132    sysv5* | sco3.2v5* | sco5v6*)
17133      # Note: We can NOT use -z defs as we might desire, because we do not
17134      # link with -lc, and that would cause any symbols used from libc to
17135      # always be unresolved, which means just about no library would
17136      # ever link correctly.  If we're not using GNU ld we use -z text
17137      # though, which does catch some bad symbols but isn't as heavy-handed
17138      # as -z defs.
17139      no_undefined_flag_GCJ='${wl}-z,text'
17140      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17141      archive_cmds_need_lc_GCJ=no
17142      hardcode_shlibpath_var_GCJ=no
17143      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17144      hardcode_libdir_separator_GCJ=':'
17145      link_all_deplibs_GCJ=yes
17146      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17147      runpath_var='LD_RUN_PATH'
17148
17149      if test "$GCC" = yes; then
17150	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17151	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17152      else
17153	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17154	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17155      fi
17156      ;;
17157
17158    uts4*)
17159      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17161      hardcode_shlibpath_var_GCJ=no
17162      ;;
17163
17164    *)
17165      ld_shlibs_GCJ=no
17166      ;;
17167    esac
17168  fi
17169
17170{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17171echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17172test "$ld_shlibs_GCJ" = no && can_build_shared=no
17173
17174#
17175# Do we need to explicitly link libc?
17176#
17177case "x$archive_cmds_need_lc_GCJ" in
17178x|xyes)
17179  # Assume -lc should be added
17180  archive_cmds_need_lc_GCJ=yes
17181
17182  if test "$enable_shared" = yes && test "$GCC" = yes; then
17183    case $archive_cmds_GCJ in
17184    *'~'*)
17185      # FIXME: we may have to deal with multi-command sequences.
17186      ;;
17187    '$CC '*)
17188      # Test whether the compiler implicitly links with -lc since on some
17189      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17190      # to ld, don't add -lc before -lgcc.
17191      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17192echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17193      $rm conftest*
17194      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17195
17196      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197  (eval $ac_compile) 2>&5
17198  ac_status=$?
17199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200  (exit $ac_status); } 2>conftest.err; then
17201        soname=conftest
17202        lib=conftest
17203        libobjs=conftest.$ac_objext
17204        deplibs=
17205        wl=$lt_prog_compiler_wl_GCJ
17206	pic_flag=$lt_prog_compiler_pic_GCJ
17207        compiler_flags=-v
17208        linker_flags=-v
17209        verstring=
17210        output_objdir=.
17211        libname=conftest
17212        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17213        allow_undefined_flag_GCJ=
17214        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17215  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17216  ac_status=$?
17217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218  (exit $ac_status); }
17219        then
17220	  archive_cmds_need_lc_GCJ=no
17221        else
17222	  archive_cmds_need_lc_GCJ=yes
17223        fi
17224        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17225      else
17226        cat conftest.err 1>&5
17227      fi
17228      $rm conftest*
17229      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17230echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17231      ;;
17232    esac
17233  fi
17234  ;;
17235esac
17236
17237{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17238echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17239library_names_spec=
17240libname_spec='lib$name'
17241soname_spec=
17242shrext_cmds=".so"
17243postinstall_cmds=
17244postuninstall_cmds=
17245finish_cmds=
17246finish_eval=
17247shlibpath_var=
17248shlibpath_overrides_runpath=unknown
17249version_type=none
17250dynamic_linker="$host_os ld.so"
17251sys_lib_dlsearch_path_spec="/lib /usr/lib"
17252
17253need_lib_prefix=unknown
17254hardcode_into_libs=no
17255
17256# when you set need_version to no, make sure it does not cause -set_version
17257# flags to be left without arguments
17258need_version=unknown
17259
17260case $host_os in
17261aix3*)
17262  version_type=linux
17263  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17264  shlibpath_var=LIBPATH
17265
17266  # AIX 3 has no versioning support, so we append a major version to the name.
17267  soname_spec='${libname}${release}${shared_ext}$major'
17268  ;;
17269
17270aix4* | aix5*)
17271  version_type=linux
17272  need_lib_prefix=no
17273  need_version=no
17274  hardcode_into_libs=yes
17275  if test "$host_cpu" = ia64; then
17276    # AIX 5 supports IA64
17277    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17278    shlibpath_var=LD_LIBRARY_PATH
17279  else
17280    # With GCC up to 2.95.x, collect2 would create an import file
17281    # for dependence libraries.  The import file would start with
17282    # the line `#! .'.  This would cause the generated library to
17283    # depend on `.', always an invalid library.  This was fixed in
17284    # development snapshots of GCC prior to 3.0.
17285    case $host_os in
17286      aix4 | aix4.[01] | aix4.[01].*)
17287      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17288	   echo ' yes '
17289	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17290	:
17291      else
17292	can_build_shared=no
17293      fi
17294      ;;
17295    esac
17296    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17297    # soname into executable. Probably we can add versioning support to
17298    # collect2, so additional links can be useful in future.
17299    if test "$aix_use_runtimelinking" = yes; then
17300      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17301      # instead of lib<name>.a to let people know that these are not
17302      # typical AIX shared libraries.
17303      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304    else
17305      # We preserve .a as extension for shared libraries through AIX4.2
17306      # and later when we are not doing run time linking.
17307      library_names_spec='${libname}${release}.a $libname.a'
17308      soname_spec='${libname}${release}${shared_ext}$major'
17309    fi
17310    shlibpath_var=LIBPATH
17311  fi
17312  ;;
17313
17314amigaos*)
17315  library_names_spec='$libname.ixlibrary $libname.a'
17316  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317  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'
17318  ;;
17319
17320beos*)
17321  library_names_spec='${libname}${shared_ext}'
17322  dynamic_linker="$host_os ld.so"
17323  shlibpath_var=LIBRARY_PATH
17324  ;;
17325
17326bsdi[45]*)
17327  version_type=linux
17328  need_version=no
17329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330  soname_spec='${libname}${release}${shared_ext}$major'
17331  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17332  shlibpath_var=LD_LIBRARY_PATH
17333  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17334  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17335  # the default ld.so.conf also contains /usr/contrib/lib and
17336  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17337  # libtool to hard-code these into programs
17338  ;;
17339
17340cygwin* | mingw* | pw32*)
17341  version_type=windows
17342  shrext_cmds=".dll"
17343  need_version=no
17344  need_lib_prefix=no
17345
17346  case $GCC,$host_os in
17347  yes,cygwin* | yes,mingw* | yes,pw32*)
17348    library_names_spec='$libname.dll.a'
17349    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17350    postinstall_cmds='base_file=`basename \${file}`~
17351      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17352      dldir=$destdir/`dirname \$dlpath`~
17353      test -d \$dldir || mkdir -p \$dldir~
17354      $install_prog $dir/$dlname \$dldir/$dlname~
17355      chmod a+x \$dldir/$dlname'
17356    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357      dlpath=$dir/\$dldll~
17358       $rm \$dlpath'
17359    shlibpath_overrides_runpath=yes
17360
17361    case $host_os in
17362    cygwin*)
17363      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17365      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17366      ;;
17367    mingw*)
17368      # MinGW DLLs use traditional 'lib' prefix
17369      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17370      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17371      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17372        # It is most probably a Windows format PATH printed by
17373        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17374        # path with ; separators, and with drive letters. We can handle the
17375        # drive letters (cygwin fileutils understands them), so leave them,
17376        # especially as we might pass files found there to a mingw objdump,
17377        # which wouldn't understand a cygwinified path. Ahh.
17378        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17379      else
17380        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17381      fi
17382      ;;
17383    pw32*)
17384      # pw32 DLLs use 'pw' prefix rather than 'lib'
17385      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17386      ;;
17387    esac
17388    ;;
17389
17390  *)
17391    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17392    ;;
17393  esac
17394  dynamic_linker='Win32 ld.exe'
17395  # FIXME: first we should search . and the directory the executable is in
17396  shlibpath_var=PATH
17397  ;;
17398
17399darwin* | rhapsody*)
17400  dynamic_linker="$host_os dyld"
17401  version_type=darwin
17402  need_lib_prefix=no
17403  need_version=no
17404  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17405  soname_spec='${libname}${release}${major}$shared_ext'
17406  shlibpath_overrides_runpath=yes
17407  shlibpath_var=DYLD_LIBRARY_PATH
17408  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17409
17410  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17411  ;;
17412
17413dgux*)
17414  version_type=linux
17415  need_lib_prefix=no
17416  need_version=no
17417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17418  soname_spec='${libname}${release}${shared_ext}$major'
17419  shlibpath_var=LD_LIBRARY_PATH
17420  ;;
17421
17422freebsd1*)
17423  dynamic_linker=no
17424  ;;
17425
17426freebsd* | dragonfly*)
17427  # DragonFly does not have aout.  When/if they implement a new
17428  # versioning mechanism, adjust this.
17429  if test -x /usr/bin/objformat; then
17430    objformat=`/usr/bin/objformat`
17431  else
17432    case $host_os in
17433    freebsd[123]*) objformat=aout ;;
17434    *) objformat=elf ;;
17435    esac
17436  fi
17437  version_type=freebsd-$objformat
17438  case $version_type in
17439    freebsd-elf*)
17440      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17441      need_version=no
17442      need_lib_prefix=no
17443      ;;
17444    freebsd-*)
17445      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17446      need_version=yes
17447      ;;
17448  esac
17449  shlibpath_var=LD_LIBRARY_PATH
17450  case $host_os in
17451  freebsd2*)
17452    shlibpath_overrides_runpath=yes
17453    ;;
17454  freebsd3.[01]* | freebsdelf3.[01]*)
17455    shlibpath_overrides_runpath=yes
17456    hardcode_into_libs=yes
17457    ;;
17458  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17459  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17460    shlibpath_overrides_runpath=no
17461    hardcode_into_libs=yes
17462    ;;
17463  *) # from 4.6 on, and DragonFly
17464    shlibpath_overrides_runpath=yes
17465    hardcode_into_libs=yes
17466    ;;
17467  esac
17468  ;;
17469
17470gnu*)
17471  version_type=linux
17472  need_lib_prefix=no
17473  need_version=no
17474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17475  soname_spec='${libname}${release}${shared_ext}$major'
17476  shlibpath_var=LD_LIBRARY_PATH
17477  hardcode_into_libs=yes
17478  ;;
17479
17480hpux9* | hpux10* | hpux11*)
17481  # Give a soname corresponding to the major version so that dld.sl refuses to
17482  # link against other versions.
17483  version_type=sunos
17484  need_lib_prefix=no
17485  need_version=no
17486  case $host_cpu in
17487  ia64*)
17488    shrext_cmds='.so'
17489    hardcode_into_libs=yes
17490    dynamic_linker="$host_os dld.so"
17491    shlibpath_var=LD_LIBRARY_PATH
17492    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494    soname_spec='${libname}${release}${shared_ext}$major'
17495    if test "X$HPUX_IA64_MODE" = X32; then
17496      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17497    else
17498      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17499    fi
17500    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17501    ;;
17502   hppa*64*)
17503     shrext_cmds='.sl'
17504     hardcode_into_libs=yes
17505     dynamic_linker="$host_os dld.sl"
17506     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17507     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509     soname_spec='${libname}${release}${shared_ext}$major'
17510     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17512     ;;
17513   *)
17514    shrext_cmds='.sl'
17515    dynamic_linker="$host_os dld.sl"
17516    shlibpath_var=SHLIB_PATH
17517    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519    soname_spec='${libname}${release}${shared_ext}$major'
17520    ;;
17521  esac
17522  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17523  postinstall_cmds='chmod 555 $lib'
17524  ;;
17525
17526interix[3-9]*)
17527  version_type=linux
17528  need_lib_prefix=no
17529  need_version=no
17530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17531  soname_spec='${libname}${release}${shared_ext}$major'
17532  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17533  shlibpath_var=LD_LIBRARY_PATH
17534  shlibpath_overrides_runpath=no
17535  hardcode_into_libs=yes
17536  ;;
17537
17538irix5* | irix6* | nonstopux*)
17539  case $host_os in
17540    nonstopux*) version_type=nonstopux ;;
17541    *)
17542	if test "$lt_cv_prog_gnu_ld" = yes; then
17543		version_type=linux
17544	else
17545		version_type=irix
17546	fi ;;
17547  esac
17548  need_lib_prefix=no
17549  need_version=no
17550  soname_spec='${libname}${release}${shared_ext}$major'
17551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17552  case $host_os in
17553  irix5* | nonstopux*)
17554    libsuff= shlibsuff=
17555    ;;
17556  *)
17557    case $LD in # libtool.m4 will add one of these switches to LD
17558    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17559      libsuff= shlibsuff= libmagic=32-bit;;
17560    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17561      libsuff=32 shlibsuff=N32 libmagic=N32;;
17562    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17563      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17564    *) libsuff= shlibsuff= libmagic=never-match;;
17565    esac
17566    ;;
17567  esac
17568  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17569  shlibpath_overrides_runpath=no
17570  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17571  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17572  hardcode_into_libs=yes
17573  ;;
17574
17575# No shared lib support for Linux oldld, aout, or coff.
17576linux*oldld* | linux*aout* | linux*coff*)
17577  dynamic_linker=no
17578  ;;
17579
17580# This must be Linux ELF.
17581linux* | k*bsd*-gnu)
17582  version_type=linux
17583  need_lib_prefix=no
17584  need_version=no
17585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586  soname_spec='${libname}${release}${shared_ext}$major'
17587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17588  shlibpath_var=LD_LIBRARY_PATH
17589  shlibpath_overrides_runpath=no
17590  # This implies no fast_install, which is unacceptable.
17591  # Some rework will be needed to allow for fast_install
17592  # before this can be enabled.
17593  hardcode_into_libs=yes
17594
17595  # Append ld.so.conf contents to the search path
17596  if test -f /etc/ld.so.conf; then
17597    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' ' '`
17598    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17599  fi
17600
17601  # We used to test for /lib/ld.so.1 and disable shared libraries on
17602  # powerpc, because MkLinux only supported shared libraries with the
17603  # GNU dynamic linker.  Since this was broken with cross compilers,
17604  # most powerpc-linux boxes support dynamic linking these days and
17605  # people can always --disable-shared, the test was removed, and we
17606  # assume the GNU/Linux dynamic linker is in use.
17607  dynamic_linker='GNU/Linux ld.so'
17608  ;;
17609
17610netbsd*)
17611  version_type=sunos
17612  need_lib_prefix=no
17613  need_version=no
17614  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17616    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17617    dynamic_linker='NetBSD (a.out) ld.so'
17618  else
17619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17620    soname_spec='${libname}${release}${shared_ext}$major'
17621    dynamic_linker='NetBSD ld.elf_so'
17622  fi
17623  shlibpath_var=LD_LIBRARY_PATH
17624  shlibpath_overrides_runpath=yes
17625  hardcode_into_libs=yes
17626  ;;
17627
17628newsos6)
17629  version_type=linux
17630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631  shlibpath_var=LD_LIBRARY_PATH
17632  shlibpath_overrides_runpath=yes
17633  ;;
17634
17635nto-qnx*)
17636  version_type=linux
17637  need_lib_prefix=no
17638  need_version=no
17639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640  soname_spec='${libname}${release}${shared_ext}$major'
17641  shlibpath_var=LD_LIBRARY_PATH
17642  shlibpath_overrides_runpath=yes
17643  ;;
17644
17645openbsd*)
17646  version_type=sunos
17647  sys_lib_dlsearch_path_spec="/usr/lib"
17648  need_lib_prefix=no
17649  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17650  case $host_os in
17651    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17652    *)                         need_version=no  ;;
17653  esac
17654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17655  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17656  shlibpath_var=LD_LIBRARY_PATH
17657  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17658    case $host_os in
17659      openbsd2.[89] | openbsd2.[89].*)
17660	shlibpath_overrides_runpath=no
17661	;;
17662      *)
17663	shlibpath_overrides_runpath=yes
17664	;;
17665      esac
17666  else
17667    shlibpath_overrides_runpath=yes
17668  fi
17669  ;;
17670
17671os2*)
17672  libname_spec='$name'
17673  shrext_cmds=".dll"
17674  need_lib_prefix=no
17675  library_names_spec='$libname${shared_ext} $libname.a'
17676  dynamic_linker='OS/2 ld.exe'
17677  shlibpath_var=LIBPATH
17678  ;;
17679
17680osf3* | osf4* | osf5*)
17681  version_type=osf
17682  need_lib_prefix=no
17683  need_version=no
17684  soname_spec='${libname}${release}${shared_ext}$major'
17685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686  shlibpath_var=LD_LIBRARY_PATH
17687  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17688  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17689  ;;
17690
17691rdos*)
17692  dynamic_linker=no
17693  ;;
17694
17695solaris*)
17696  version_type=linux
17697  need_lib_prefix=no
17698  need_version=no
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700  soname_spec='${libname}${release}${shared_ext}$major'
17701  shlibpath_var=LD_LIBRARY_PATH
17702  shlibpath_overrides_runpath=yes
17703  hardcode_into_libs=yes
17704  # ldd complains unless libraries are executable
17705  postinstall_cmds='chmod +x $lib'
17706  ;;
17707
17708sunos4*)
17709  version_type=sunos
17710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17711  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17712  shlibpath_var=LD_LIBRARY_PATH
17713  shlibpath_overrides_runpath=yes
17714  if test "$with_gnu_ld" = yes; then
17715    need_lib_prefix=no
17716  fi
17717  need_version=yes
17718  ;;
17719
17720sysv4 | sysv4.3*)
17721  version_type=linux
17722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723  soname_spec='${libname}${release}${shared_ext}$major'
17724  shlibpath_var=LD_LIBRARY_PATH
17725  case $host_vendor in
17726    sni)
17727      shlibpath_overrides_runpath=no
17728      need_lib_prefix=no
17729      export_dynamic_flag_spec='${wl}-Blargedynsym'
17730      runpath_var=LD_RUN_PATH
17731      ;;
17732    siemens)
17733      need_lib_prefix=no
17734      ;;
17735    motorola)
17736      need_lib_prefix=no
17737      need_version=no
17738      shlibpath_overrides_runpath=no
17739      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17740      ;;
17741  esac
17742  ;;
17743
17744sysv4*MP*)
17745  if test -d /usr/nec ;then
17746    version_type=linux
17747    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17748    soname_spec='$libname${shared_ext}.$major'
17749    shlibpath_var=LD_LIBRARY_PATH
17750  fi
17751  ;;
17752
17753sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17754  version_type=freebsd-elf
17755  need_lib_prefix=no
17756  need_version=no
17757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17758  soname_spec='${libname}${release}${shared_ext}$major'
17759  shlibpath_var=LD_LIBRARY_PATH
17760  hardcode_into_libs=yes
17761  if test "$with_gnu_ld" = yes; then
17762    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17763    shlibpath_overrides_runpath=no
17764  else
17765    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17766    shlibpath_overrides_runpath=yes
17767    case $host_os in
17768      sco3.2v5*)
17769        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17770	;;
17771    esac
17772  fi
17773  sys_lib_dlsearch_path_spec='/usr/lib'
17774  ;;
17775
17776uts4*)
17777  version_type=linux
17778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779  soname_spec='${libname}${release}${shared_ext}$major'
17780  shlibpath_var=LD_LIBRARY_PATH
17781  ;;
17782
17783*)
17784  dynamic_linker=no
17785  ;;
17786esac
17787{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17788echo "${ECHO_T}$dynamic_linker" >&6; }
17789test "$dynamic_linker" = no && can_build_shared=no
17790
17791variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17792if test "$GCC" = yes; then
17793  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17794fi
17795
17796{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17797echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17798hardcode_action_GCJ=
17799if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17800   test -n "$runpath_var_GCJ" || \
17801   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17802
17803  # We can hardcode non-existant directories.
17804  if test "$hardcode_direct_GCJ" != no &&
17805     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17806     # have to relink, otherwise we might link with an installed library
17807     # when we should be linking with a yet-to-be-installed one
17808     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17809     test "$hardcode_minus_L_GCJ" != no; then
17810    # Linking always hardcodes the temporary library directory.
17811    hardcode_action_GCJ=relink
17812  else
17813    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17814    hardcode_action_GCJ=immediate
17815  fi
17816else
17817  # We cannot hardcode anything, or else we can only hardcode existing
17818  # directories.
17819  hardcode_action_GCJ=unsupported
17820fi
17821{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17822echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17823
17824if test "$hardcode_action_GCJ" = relink; then
17825  # Fast installation is not supported
17826  enable_fast_install=no
17827elif test "$shlibpath_overrides_runpath" = yes ||
17828     test "$enable_shared" = no; then
17829  # Fast installation is not necessary
17830  enable_fast_install=needless
17831fi
17832
17833
17834# The else clause should only fire when bootstrapping the
17835# libtool distribution, otherwise you forgot to ship ltmain.sh
17836# with your package, and you will get complaints that there are
17837# no rules to generate ltmain.sh.
17838if test -f "$ltmain"; then
17839  # See if we are running on zsh, and set the options which allow our commands through
17840  # without removal of \ escapes.
17841  if test -n "${ZSH_VERSION+set}" ; then
17842    setopt NO_GLOB_SUBST
17843  fi
17844  # Now quote all the things that may contain metacharacters while being
17845  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17846  # variables and quote the copies for generation of the libtool script.
17847  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17848    SED SHELL STRIP \
17849    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851    deplibs_check_method reload_flag reload_cmds need_locks \
17852    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853    lt_cv_sys_global_symbol_to_c_name_address \
17854    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855    old_postinstall_cmds old_postuninstall_cmds \
17856    compiler_GCJ \
17857    CC_GCJ \
17858    LD_GCJ \
17859    lt_prog_compiler_wl_GCJ \
17860    lt_prog_compiler_pic_GCJ \
17861    lt_prog_compiler_static_GCJ \
17862    lt_prog_compiler_no_builtin_flag_GCJ \
17863    export_dynamic_flag_spec_GCJ \
17864    thread_safe_flag_spec_GCJ \
17865    whole_archive_flag_spec_GCJ \
17866    enable_shared_with_static_runtimes_GCJ \
17867    old_archive_cmds_GCJ \
17868    old_archive_from_new_cmds_GCJ \
17869    predep_objects_GCJ \
17870    postdep_objects_GCJ \
17871    predeps_GCJ \
17872    postdeps_GCJ \
17873    compiler_lib_search_path_GCJ \
17874    archive_cmds_GCJ \
17875    archive_expsym_cmds_GCJ \
17876    postinstall_cmds_GCJ \
17877    postuninstall_cmds_GCJ \
17878    old_archive_from_expsyms_cmds_GCJ \
17879    allow_undefined_flag_GCJ \
17880    no_undefined_flag_GCJ \
17881    export_symbols_cmds_GCJ \
17882    hardcode_libdir_flag_spec_GCJ \
17883    hardcode_libdir_flag_spec_ld_GCJ \
17884    hardcode_libdir_separator_GCJ \
17885    hardcode_automatic_GCJ \
17886    module_cmds_GCJ \
17887    module_expsym_cmds_GCJ \
17888    lt_cv_prog_compiler_c_o_GCJ \
17889    fix_srcfile_path_GCJ \
17890    exclude_expsyms_GCJ \
17891    include_expsyms_GCJ; do
17892
17893    case $var in
17894    old_archive_cmds_GCJ | \
17895    old_archive_from_new_cmds_GCJ | \
17896    archive_cmds_GCJ | \
17897    archive_expsym_cmds_GCJ | \
17898    module_cmds_GCJ | \
17899    module_expsym_cmds_GCJ | \
17900    old_archive_from_expsyms_cmds_GCJ | \
17901    export_symbols_cmds_GCJ | \
17902    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17903    postinstall_cmds | postuninstall_cmds | \
17904    old_postinstall_cmds | old_postuninstall_cmds | \
17905    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17906      # Double-quote double-evaled strings.
17907      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17908      ;;
17909    *)
17910      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17911      ;;
17912    esac
17913  done
17914
17915  case $lt_echo in
17916  *'\$0 --fallback-echo"')
17917    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17918    ;;
17919  esac
17920
17921cfgfile="$ofile"
17922
17923  cat <<__EOF__ >> "$cfgfile"
17924# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17925
17926# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17927
17928# Shell to use when invoking shell scripts.
17929SHELL=$lt_SHELL
17930
17931# Whether or not to build shared libraries.
17932build_libtool_libs=$enable_shared
17933
17934# Whether or not to build static libraries.
17935build_old_libs=$enable_static
17936
17937# Whether or not to add -lc for building shared libraries.
17938build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17939
17940# Whether or not to disallow shared libs when runtime libs are static
17941allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17942
17943# Whether or not to optimize for fast installation.
17944fast_install=$enable_fast_install
17945
17946# The host system.
17947host_alias=$host_alias
17948host=$host
17949host_os=$host_os
17950
17951# The build system.
17952build_alias=$build_alias
17953build=$build
17954build_os=$build_os
17955
17956# An echo program that does not interpret backslashes.
17957echo=$lt_echo
17958
17959# The archiver.
17960AR=$lt_AR
17961AR_FLAGS=$lt_AR_FLAGS
17962
17963# A C compiler.
17964LTCC=$lt_LTCC
17965
17966# LTCC compiler flags.
17967LTCFLAGS=$lt_LTCFLAGS
17968
17969# A language-specific compiler.
17970CC=$lt_compiler_GCJ
17971
17972# Is the compiler the GNU C compiler?
17973with_gcc=$GCC_GCJ
17974
17975# An ERE matcher.
17976EGREP=$lt_EGREP
17977
17978# The linker used to build libraries.
17979LD=$lt_LD_GCJ
17980
17981# Whether we need hard or soft links.
17982LN_S=$lt_LN_S
17983
17984# A BSD-compatible nm program.
17985NM=$lt_NM
17986
17987# A symbol stripping program
17988STRIP=$lt_STRIP
17989
17990# Used to examine libraries when file_magic_cmd begins "file"
17991MAGIC_CMD=$MAGIC_CMD
17992
17993# Used on cygwin: DLL creation program.
17994DLLTOOL="$DLLTOOL"
17995
17996# Used on cygwin: object dumper.
17997OBJDUMP="$OBJDUMP"
17998
17999# Used on cygwin: assembler.
18000AS="$AS"
18001
18002# The name of the directory that contains temporary libtool files.
18003objdir=$objdir
18004
18005# How to create reloadable object files.
18006reload_flag=$lt_reload_flag
18007reload_cmds=$lt_reload_cmds
18008
18009# How to pass a linker flag through the compiler.
18010wl=$lt_lt_prog_compiler_wl_GCJ
18011
18012# Object file suffix (normally "o").
18013objext="$ac_objext"
18014
18015# Old archive suffix (normally "a").
18016libext="$libext"
18017
18018# Shared library suffix (normally ".so").
18019shrext_cmds='$shrext_cmds'
18020
18021# Executable file suffix (normally "").
18022exeext="$exeext"
18023
18024# Additional compiler flags for building library objects.
18025pic_flag=$lt_lt_prog_compiler_pic_GCJ
18026pic_mode=$pic_mode
18027
18028# What is the maximum length of a command?
18029max_cmd_len=$lt_cv_sys_max_cmd_len
18030
18031# Does compiler simultaneously support -c and -o options?
18032compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18033
18034# Must we lock files when doing compilation?
18035need_locks=$lt_need_locks
18036
18037# Do we need the lib prefix for modules?
18038need_lib_prefix=$need_lib_prefix
18039
18040# Do we need a version for libraries?
18041need_version=$need_version
18042
18043# Whether dlopen is supported.
18044dlopen_support=$enable_dlopen
18045
18046# Whether dlopen of programs is supported.
18047dlopen_self=$enable_dlopen_self
18048
18049# Whether dlopen of statically linked programs is supported.
18050dlopen_self_static=$enable_dlopen_self_static
18051
18052# Compiler flag to prevent dynamic linking.
18053link_static_flag=$lt_lt_prog_compiler_static_GCJ
18054
18055# Compiler flag to turn off builtin functions.
18056no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18057
18058# Compiler flag to allow reflexive dlopens.
18059export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18060
18061# Compiler flag to generate shared objects directly from archives.
18062whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18063
18064# Compiler flag to generate thread-safe objects.
18065thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18066
18067# Library versioning type.
18068version_type=$version_type
18069
18070# Format of library name prefix.
18071libname_spec=$lt_libname_spec
18072
18073# List of archive names.  First name is the real one, the rest are links.
18074# The last name is the one that the linker finds with -lNAME.
18075library_names_spec=$lt_library_names_spec
18076
18077# The coded name of the library, if different from the real name.
18078soname_spec=$lt_soname_spec
18079
18080# Commands used to build and install an old-style archive.
18081RANLIB=$lt_RANLIB
18082old_archive_cmds=$lt_old_archive_cmds_GCJ
18083old_postinstall_cmds=$lt_old_postinstall_cmds
18084old_postuninstall_cmds=$lt_old_postuninstall_cmds
18085
18086# Create an old-style archive from a shared archive.
18087old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18088
18089# Create a temporary old-style archive to link instead of a shared archive.
18090old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18091
18092# Commands used to build and install a shared archive.
18093archive_cmds=$lt_archive_cmds_GCJ
18094archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18095postinstall_cmds=$lt_postinstall_cmds
18096postuninstall_cmds=$lt_postuninstall_cmds
18097
18098# Commands used to build a loadable module (assumed same as above if empty)
18099module_cmds=$lt_module_cmds_GCJ
18100module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18101
18102# Commands to strip libraries.
18103old_striplib=$lt_old_striplib
18104striplib=$lt_striplib
18105
18106# Dependencies to place before the objects being linked to create a
18107# shared library.
18108predep_objects=$lt_predep_objects_GCJ
18109
18110# Dependencies to place after the objects being linked to create a
18111# shared library.
18112postdep_objects=$lt_postdep_objects_GCJ
18113
18114# Dependencies to place before the objects being linked to create a
18115# shared library.
18116predeps=$lt_predeps_GCJ
18117
18118# Dependencies to place after the objects being linked to create a
18119# shared library.
18120postdeps=$lt_postdeps_GCJ
18121
18122# The library search path used internally by the compiler when linking
18123# a shared library.
18124compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18125
18126# Method to check whether dependent libraries are shared objects.
18127deplibs_check_method=$lt_deplibs_check_method
18128
18129# Command to use when deplibs_check_method == file_magic.
18130file_magic_cmd=$lt_file_magic_cmd
18131
18132# Flag that allows shared libraries with undefined symbols to be built.
18133allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18134
18135# Flag that forces no undefined symbols.
18136no_undefined_flag=$lt_no_undefined_flag_GCJ
18137
18138# Commands used to finish a libtool library installation in a directory.
18139finish_cmds=$lt_finish_cmds
18140
18141# Same as above, but a single script fragment to be evaled but not shown.
18142finish_eval=$lt_finish_eval
18143
18144# Take the output of nm and produce a listing of raw symbols and C names.
18145global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18146
18147# Transform the output of nm in a proper C declaration
18148global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18149
18150# Transform the output of nm in a C name address pair
18151global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18152
18153# This is the shared library runtime path variable.
18154runpath_var=$runpath_var
18155
18156# This is the shared library path variable.
18157shlibpath_var=$shlibpath_var
18158
18159# Is shlibpath searched before the hard-coded library search path?
18160shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18161
18162# How to hardcode a shared library path into an executable.
18163hardcode_action=$hardcode_action_GCJ
18164
18165# Whether we should hardcode library paths into libraries.
18166hardcode_into_libs=$hardcode_into_libs
18167
18168# Flag to hardcode \$libdir into a binary during linking.
18169# This must work even if \$libdir does not exist.
18170hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18171
18172# If ld is used when linking, flag to hardcode \$libdir into
18173# a binary during linking. This must work even if \$libdir does
18174# not exist.
18175hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18176
18177# Whether we need a single -rpath flag with a separated argument.
18178hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18179
18180# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18181# resulting binary.
18182hardcode_direct=$hardcode_direct_GCJ
18183
18184# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18185# resulting binary.
18186hardcode_minus_L=$hardcode_minus_L_GCJ
18187
18188# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18189# the resulting binary.
18190hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18191
18192# Set to yes if building a shared library automatically hardcodes DIR into the library
18193# and all subsequent libraries and executables linked against it.
18194hardcode_automatic=$hardcode_automatic_GCJ
18195
18196# Variables whose values should be saved in libtool wrapper scripts and
18197# restored at relink time.
18198variables_saved_for_relink="$variables_saved_for_relink"
18199
18200# Whether libtool must link a program against all its dependency libraries.
18201link_all_deplibs=$link_all_deplibs_GCJ
18202
18203# Compile-time system search path for libraries
18204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18205
18206# Run-time system search path for libraries
18207sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18208
18209# Fix the shell variable \$srcfile for the compiler.
18210fix_srcfile_path=$lt_fix_srcfile_path
18211
18212# Set to yes if exported symbols are required.
18213always_export_symbols=$always_export_symbols_GCJ
18214
18215# The commands to list exported symbols.
18216export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18217
18218# The commands to extract the exported symbol list from a shared archive.
18219extract_expsyms_cmds=$lt_extract_expsyms_cmds
18220
18221# Symbols that should not be listed in the preloaded symbols.
18222exclude_expsyms=$lt_exclude_expsyms_GCJ
18223
18224# Symbols that must always be exported.
18225include_expsyms=$lt_include_expsyms_GCJ
18226
18227# ### END LIBTOOL TAG CONFIG: $tagname
18228
18229__EOF__
18230
18231
18232else
18233  # If there is no Makefile yet, we rely on a make rule to execute
18234  # `config.status --recheck' to rerun these tests and create the
18235  # libtool script then.
18236  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18237  if test -f "$ltmain_in"; then
18238    test -f Makefile && make "$ltmain"
18239  fi
18240fi
18241
18242
18243ac_ext=c
18244ac_cpp='$CPP $CPPFLAGS'
18245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248
18249CC="$lt_save_CC"
18250
18251	else
18252	  tagname=""
18253	fi
18254	;;
18255
18256      RC)
18257
18258
18259# Source file extension for RC test sources.
18260ac_ext=rc
18261
18262# Object file extension for compiled RC test sources.
18263objext=o
18264objext_RC=$objext
18265
18266# Code to be used in simple compile tests
18267lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18268
18269# Code to be used in simple link tests
18270lt_simple_link_test_code="$lt_simple_compile_test_code"
18271
18272# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18273
18274# If no C compiler was specified, use CC.
18275LTCC=${LTCC-"$CC"}
18276
18277# If no C compiler flags were specified, use CFLAGS.
18278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18279
18280# Allow CC to be a program name with arguments.
18281compiler=$CC
18282
18283
18284# save warnings/boilerplate of simple test code
18285ac_outfile=conftest.$ac_objext
18286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18288_lt_compiler_boilerplate=`cat conftest.err`
18289$rm conftest*
18290
18291ac_outfile=conftest.$ac_objext
18292echo "$lt_simple_link_test_code" >conftest.$ac_ext
18293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18294_lt_linker_boilerplate=`cat conftest.err`
18295$rm conftest*
18296
18297
18298# Allow CC to be a program name with arguments.
18299lt_save_CC="$CC"
18300CC=${RC-"windres"}
18301compiler=$CC
18302compiler_RC=$CC
18303for cc_temp in $compiler""; do
18304  case $cc_temp in
18305    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18306    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18307    \-*) ;;
18308    *) break;;
18309  esac
18310done
18311cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18312
18313lt_cv_prog_compiler_c_o_RC=yes
18314
18315# The else clause should only fire when bootstrapping the
18316# libtool distribution, otherwise you forgot to ship ltmain.sh
18317# with your package, and you will get complaints that there are
18318# no rules to generate ltmain.sh.
18319if test -f "$ltmain"; then
18320  # See if we are running on zsh, and set the options which allow our commands through
18321  # without removal of \ escapes.
18322  if test -n "${ZSH_VERSION+set}" ; then
18323    setopt NO_GLOB_SUBST
18324  fi
18325  # Now quote all the things that may contain metacharacters while being
18326  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18327  # variables and quote the copies for generation of the libtool script.
18328  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18329    SED SHELL STRIP \
18330    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332    deplibs_check_method reload_flag reload_cmds need_locks \
18333    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334    lt_cv_sys_global_symbol_to_c_name_address \
18335    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336    old_postinstall_cmds old_postuninstall_cmds \
18337    compiler_RC \
18338    CC_RC \
18339    LD_RC \
18340    lt_prog_compiler_wl_RC \
18341    lt_prog_compiler_pic_RC \
18342    lt_prog_compiler_static_RC \
18343    lt_prog_compiler_no_builtin_flag_RC \
18344    export_dynamic_flag_spec_RC \
18345    thread_safe_flag_spec_RC \
18346    whole_archive_flag_spec_RC \
18347    enable_shared_with_static_runtimes_RC \
18348    old_archive_cmds_RC \
18349    old_archive_from_new_cmds_RC \
18350    predep_objects_RC \
18351    postdep_objects_RC \
18352    predeps_RC \
18353    postdeps_RC \
18354    compiler_lib_search_path_RC \
18355    archive_cmds_RC \
18356    archive_expsym_cmds_RC \
18357    postinstall_cmds_RC \
18358    postuninstall_cmds_RC \
18359    old_archive_from_expsyms_cmds_RC \
18360    allow_undefined_flag_RC \
18361    no_undefined_flag_RC \
18362    export_symbols_cmds_RC \
18363    hardcode_libdir_flag_spec_RC \
18364    hardcode_libdir_flag_spec_ld_RC \
18365    hardcode_libdir_separator_RC \
18366    hardcode_automatic_RC \
18367    module_cmds_RC \
18368    module_expsym_cmds_RC \
18369    lt_cv_prog_compiler_c_o_RC \
18370    fix_srcfile_path_RC \
18371    exclude_expsyms_RC \
18372    include_expsyms_RC; do
18373
18374    case $var in
18375    old_archive_cmds_RC | \
18376    old_archive_from_new_cmds_RC | \
18377    archive_cmds_RC | \
18378    archive_expsym_cmds_RC | \
18379    module_cmds_RC | \
18380    module_expsym_cmds_RC | \
18381    old_archive_from_expsyms_cmds_RC | \
18382    export_symbols_cmds_RC | \
18383    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18384    postinstall_cmds | postuninstall_cmds | \
18385    old_postinstall_cmds | old_postuninstall_cmds | \
18386    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18387      # Double-quote double-evaled strings.
18388      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18389      ;;
18390    *)
18391      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18392      ;;
18393    esac
18394  done
18395
18396  case $lt_echo in
18397  *'\$0 --fallback-echo"')
18398    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18399    ;;
18400  esac
18401
18402cfgfile="$ofile"
18403
18404  cat <<__EOF__ >> "$cfgfile"
18405# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18406
18407# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18408
18409# Shell to use when invoking shell scripts.
18410SHELL=$lt_SHELL
18411
18412# Whether or not to build shared libraries.
18413build_libtool_libs=$enable_shared
18414
18415# Whether or not to build static libraries.
18416build_old_libs=$enable_static
18417
18418# Whether or not to add -lc for building shared libraries.
18419build_libtool_need_lc=$archive_cmds_need_lc_RC
18420
18421# Whether or not to disallow shared libs when runtime libs are static
18422allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18423
18424# Whether or not to optimize for fast installation.
18425fast_install=$enable_fast_install
18426
18427# The host system.
18428host_alias=$host_alias
18429host=$host
18430host_os=$host_os
18431
18432# The build system.
18433build_alias=$build_alias
18434build=$build
18435build_os=$build_os
18436
18437# An echo program that does not interpret backslashes.
18438echo=$lt_echo
18439
18440# The archiver.
18441AR=$lt_AR
18442AR_FLAGS=$lt_AR_FLAGS
18443
18444# A C compiler.
18445LTCC=$lt_LTCC
18446
18447# LTCC compiler flags.
18448LTCFLAGS=$lt_LTCFLAGS
18449
18450# A language-specific compiler.
18451CC=$lt_compiler_RC
18452
18453# Is the compiler the GNU C compiler?
18454with_gcc=$GCC_RC
18455
18456# An ERE matcher.
18457EGREP=$lt_EGREP
18458
18459# The linker used to build libraries.
18460LD=$lt_LD_RC
18461
18462# Whether we need hard or soft links.
18463LN_S=$lt_LN_S
18464
18465# A BSD-compatible nm program.
18466NM=$lt_NM
18467
18468# A symbol stripping program
18469STRIP=$lt_STRIP
18470
18471# Used to examine libraries when file_magic_cmd begins "file"
18472MAGIC_CMD=$MAGIC_CMD
18473
18474# Used on cygwin: DLL creation program.
18475DLLTOOL="$DLLTOOL"
18476
18477# Used on cygwin: object dumper.
18478OBJDUMP="$OBJDUMP"
18479
18480# Used on cygwin: assembler.
18481AS="$AS"
18482
18483# The name of the directory that contains temporary libtool files.
18484objdir=$objdir
18485
18486# How to create reloadable object files.
18487reload_flag=$lt_reload_flag
18488reload_cmds=$lt_reload_cmds
18489
18490# How to pass a linker flag through the compiler.
18491wl=$lt_lt_prog_compiler_wl_RC
18492
18493# Object file suffix (normally "o").
18494objext="$ac_objext"
18495
18496# Old archive suffix (normally "a").
18497libext="$libext"
18498
18499# Shared library suffix (normally ".so").
18500shrext_cmds='$shrext_cmds'
18501
18502# Executable file suffix (normally "").
18503exeext="$exeext"
18504
18505# Additional compiler flags for building library objects.
18506pic_flag=$lt_lt_prog_compiler_pic_RC
18507pic_mode=$pic_mode
18508
18509# What is the maximum length of a command?
18510max_cmd_len=$lt_cv_sys_max_cmd_len
18511
18512# Does compiler simultaneously support -c and -o options?
18513compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18514
18515# Must we lock files when doing compilation?
18516need_locks=$lt_need_locks
18517
18518# Do we need the lib prefix for modules?
18519need_lib_prefix=$need_lib_prefix
18520
18521# Do we need a version for libraries?
18522need_version=$need_version
18523
18524# Whether dlopen is supported.
18525dlopen_support=$enable_dlopen
18526
18527# Whether dlopen of programs is supported.
18528dlopen_self=$enable_dlopen_self
18529
18530# Whether dlopen of statically linked programs is supported.
18531dlopen_self_static=$enable_dlopen_self_static
18532
18533# Compiler flag to prevent dynamic linking.
18534link_static_flag=$lt_lt_prog_compiler_static_RC
18535
18536# Compiler flag to turn off builtin functions.
18537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18538
18539# Compiler flag to allow reflexive dlopens.
18540export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18541
18542# Compiler flag to generate shared objects directly from archives.
18543whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18544
18545# Compiler flag to generate thread-safe objects.
18546thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18547
18548# Library versioning type.
18549version_type=$version_type
18550
18551# Format of library name prefix.
18552libname_spec=$lt_libname_spec
18553
18554# List of archive names.  First name is the real one, the rest are links.
18555# The last name is the one that the linker finds with -lNAME.
18556library_names_spec=$lt_library_names_spec
18557
18558# The coded name of the library, if different from the real name.
18559soname_spec=$lt_soname_spec
18560
18561# Commands used to build and install an old-style archive.
18562RANLIB=$lt_RANLIB
18563old_archive_cmds=$lt_old_archive_cmds_RC
18564old_postinstall_cmds=$lt_old_postinstall_cmds
18565old_postuninstall_cmds=$lt_old_postuninstall_cmds
18566
18567# Create an old-style archive from a shared archive.
18568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18569
18570# Create a temporary old-style archive to link instead of a shared archive.
18571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18572
18573# Commands used to build and install a shared archive.
18574archive_cmds=$lt_archive_cmds_RC
18575archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18576postinstall_cmds=$lt_postinstall_cmds
18577postuninstall_cmds=$lt_postuninstall_cmds
18578
18579# Commands used to build a loadable module (assumed same as above if empty)
18580module_cmds=$lt_module_cmds_RC
18581module_expsym_cmds=$lt_module_expsym_cmds_RC
18582
18583# Commands to strip libraries.
18584old_striplib=$lt_old_striplib
18585striplib=$lt_striplib
18586
18587# Dependencies to place before the objects being linked to create a
18588# shared library.
18589predep_objects=$lt_predep_objects_RC
18590
18591# Dependencies to place after the objects being linked to create a
18592# shared library.
18593postdep_objects=$lt_postdep_objects_RC
18594
18595# Dependencies to place before the objects being linked to create a
18596# shared library.
18597predeps=$lt_predeps_RC
18598
18599# Dependencies to place after the objects being linked to create a
18600# shared library.
18601postdeps=$lt_postdeps_RC
18602
18603# The library search path used internally by the compiler when linking
18604# a shared library.
18605compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18606
18607# Method to check whether dependent libraries are shared objects.
18608deplibs_check_method=$lt_deplibs_check_method
18609
18610# Command to use when deplibs_check_method == file_magic.
18611file_magic_cmd=$lt_file_magic_cmd
18612
18613# Flag that allows shared libraries with undefined symbols to be built.
18614allow_undefined_flag=$lt_allow_undefined_flag_RC
18615
18616# Flag that forces no undefined symbols.
18617no_undefined_flag=$lt_no_undefined_flag_RC
18618
18619# Commands used to finish a libtool library installation in a directory.
18620finish_cmds=$lt_finish_cmds
18621
18622# Same as above, but a single script fragment to be evaled but not shown.
18623finish_eval=$lt_finish_eval
18624
18625# Take the output of nm and produce a listing of raw symbols and C names.
18626global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18627
18628# Transform the output of nm in a proper C declaration
18629global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18630
18631# Transform the output of nm in a C name address pair
18632global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18633
18634# This is the shared library runtime path variable.
18635runpath_var=$runpath_var
18636
18637# This is the shared library path variable.
18638shlibpath_var=$shlibpath_var
18639
18640# Is shlibpath searched before the hard-coded library search path?
18641shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18642
18643# How to hardcode a shared library path into an executable.
18644hardcode_action=$hardcode_action_RC
18645
18646# Whether we should hardcode library paths into libraries.
18647hardcode_into_libs=$hardcode_into_libs
18648
18649# Flag to hardcode \$libdir into a binary during linking.
18650# This must work even if \$libdir does not exist.
18651hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18652
18653# If ld is used when linking, flag to hardcode \$libdir into
18654# a binary during linking. This must work even if \$libdir does
18655# not exist.
18656hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18657
18658# Whether we need a single -rpath flag with a separated argument.
18659hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18660
18661# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18662# resulting binary.
18663hardcode_direct=$hardcode_direct_RC
18664
18665# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18666# resulting binary.
18667hardcode_minus_L=$hardcode_minus_L_RC
18668
18669# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18670# the resulting binary.
18671hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18672
18673# Set to yes if building a shared library automatically hardcodes DIR into the library
18674# and all subsequent libraries and executables linked against it.
18675hardcode_automatic=$hardcode_automatic_RC
18676
18677# Variables whose values should be saved in libtool wrapper scripts and
18678# restored at relink time.
18679variables_saved_for_relink="$variables_saved_for_relink"
18680
18681# Whether libtool must link a program against all its dependency libraries.
18682link_all_deplibs=$link_all_deplibs_RC
18683
18684# Compile-time system search path for libraries
18685sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18686
18687# Run-time system search path for libraries
18688sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18689
18690# Fix the shell variable \$srcfile for the compiler.
18691fix_srcfile_path=$lt_fix_srcfile_path
18692
18693# Set to yes if exported symbols are required.
18694always_export_symbols=$always_export_symbols_RC
18695
18696# The commands to list exported symbols.
18697export_symbols_cmds=$lt_export_symbols_cmds_RC
18698
18699# The commands to extract the exported symbol list from a shared archive.
18700extract_expsyms_cmds=$lt_extract_expsyms_cmds
18701
18702# Symbols that should not be listed in the preloaded symbols.
18703exclude_expsyms=$lt_exclude_expsyms_RC
18704
18705# Symbols that must always be exported.
18706include_expsyms=$lt_include_expsyms_RC
18707
18708# ### END LIBTOOL TAG CONFIG: $tagname
18709
18710__EOF__
18711
18712
18713else
18714  # If there is no Makefile yet, we rely on a make rule to execute
18715  # `config.status --recheck' to rerun these tests and create the
18716  # libtool script then.
18717  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18718  if test -f "$ltmain_in"; then
18719    test -f Makefile && make "$ltmain"
18720  fi
18721fi
18722
18723
18724ac_ext=c
18725ac_cpp='$CPP $CPPFLAGS'
18726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728ac_compiler_gnu=$ac_cv_c_compiler_gnu
18729
18730CC="$lt_save_CC"
18731
18732	;;
18733
18734      *)
18735	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18736echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18737   { (exit 1); exit 1; }; }
18738	;;
18739      esac
18740
18741      # Append the new tag name to the list of available tags.
18742      if test -n "$tagname" ; then
18743      available_tags="$available_tags $tagname"
18744    fi
18745    fi
18746  done
18747  IFS="$lt_save_ifs"
18748
18749  # Now substitute the updated list of available tags.
18750  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18751    mv "${ofile}T" "$ofile"
18752    chmod +x "$ofile"
18753  else
18754    rm -f "${ofile}T"
18755    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18756echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18757   { (exit 1); exit 1; }; }
18758  fi
18759fi
18760
18761
18762
18763# This can be used to rebuild libtool when needed
18764LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18765
18766# Always use our own libtool.
18767LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18768
18769# Prevent multiple expansion
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791am__api_version='1.10'
18792
18793{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18794echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18795# Just in case
18796sleep 1
18797echo timestamp > conftest.file
18798# Do `set' in a subshell so we don't clobber the current shell's
18799# arguments.  Must try -L first in case configure is actually a
18800# symlink; some systems play weird games with the mod time of symlinks
18801# (eg FreeBSD returns the mod time of the symlink's containing
18802# directory).
18803if (
18804   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18805   if test "$*" = "X"; then
18806      # -L didn't work.
18807      set X `ls -t $srcdir/configure conftest.file`
18808   fi
18809   rm -f conftest.file
18810   if test "$*" != "X $srcdir/configure conftest.file" \
18811      && test "$*" != "X conftest.file $srcdir/configure"; then
18812
18813      # If neither matched, then we have a broken ls.  This can happen
18814      # if, for instance, CONFIG_SHELL is bash and it inherits a
18815      # broken ls alias from the environment.  This has actually
18816      # happened.  Such a system could not be considered "sane".
18817      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18818alias in your environment" >&5
18819echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18820alias in your environment" >&2;}
18821   { (exit 1); exit 1; }; }
18822   fi
18823
18824   test "$2" = conftest.file
18825   )
18826then
18827   # Ok.
18828   :
18829else
18830   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18831Check your system clock" >&5
18832echo "$as_me: error: newly created file is older than distributed files!
18833Check your system clock" >&2;}
18834   { (exit 1); exit 1; }; }
18835fi
18836{ echo "$as_me:$LINENO: result: yes" >&5
18837echo "${ECHO_T}yes" >&6; }
18838test "$program_prefix" != NONE &&
18839  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18840# Use a double $ so make ignores it.
18841test "$program_suffix" != NONE &&
18842  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18843# Double any \ or $.  echo might interpret backslashes.
18844# By default was `s,x,x', remove it if useless.
18845cat <<\_ACEOF >conftest.sed
18846s/[\\$]/&&/g;s/;s,x,x,$//
18847_ACEOF
18848program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18849rm -f conftest.sed
18850
18851# expand $ac_aux_dir to an absolute path
18852am_aux_dir=`cd $ac_aux_dir && pwd`
18853
18854test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18855# Use eval to expand $SHELL
18856if eval "$MISSING --run true"; then
18857  am_missing_run="$MISSING --run "
18858else
18859  am_missing_run=
18860  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18861echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18862fi
18863
18864{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18865echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18866if test -z "$MKDIR_P"; then
18867  if test "${ac_cv_path_mkdir+set}" = set; then
18868  echo $ECHO_N "(cached) $ECHO_C" >&6
18869else
18870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18871for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18872do
18873  IFS=$as_save_IFS
18874  test -z "$as_dir" && as_dir=.
18875  for ac_prog in mkdir gmkdir; do
18876	 for ac_exec_ext in '' $ac_executable_extensions; do
18877	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18878	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18879	     'mkdir (GNU coreutils) '* | \
18880	     'mkdir (coreutils) '* | \
18881	     'mkdir (fileutils) '4.1*)
18882	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18883	       break 3;;
18884	   esac
18885	 done
18886       done
18887done
18888IFS=$as_save_IFS
18889
18890fi
18891
18892  if test "${ac_cv_path_mkdir+set}" = set; then
18893    MKDIR_P="$ac_cv_path_mkdir -p"
18894  else
18895    # As a last resort, use the slow shell script.  Don't cache a
18896    # value for MKDIR_P within a source directory, because that will
18897    # break other packages using the cache if that directory is
18898    # removed, or if the value is a relative name.
18899    test -d ./--version && rmdir ./--version
18900    MKDIR_P="$ac_install_sh -d"
18901  fi
18902fi
18903{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18904echo "${ECHO_T}$MKDIR_P" >&6; }
18905
18906mkdir_p="$MKDIR_P"
18907case $mkdir_p in
18908  [\\/$]* | ?:[\\/]*) ;;
18909  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18910esac
18911
18912for ac_prog in gawk mawk nawk awk
18913do
18914  # Extract the first word of "$ac_prog", so it can be a program name with args.
18915set dummy $ac_prog; ac_word=$2
18916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18918if test "${ac_cv_prog_AWK+set}" = set; then
18919  echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921  if test -n "$AWK"; then
18922  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18923else
18924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925for as_dir in $PATH
18926do
18927  IFS=$as_save_IFS
18928  test -z "$as_dir" && as_dir=.
18929  for ac_exec_ext in '' $ac_executable_extensions; do
18930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18931    ac_cv_prog_AWK="$ac_prog"
18932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18933    break 2
18934  fi
18935done
18936done
18937IFS=$as_save_IFS
18938
18939fi
18940fi
18941AWK=$ac_cv_prog_AWK
18942if test -n "$AWK"; then
18943  { echo "$as_me:$LINENO: result: $AWK" >&5
18944echo "${ECHO_T}$AWK" >&6; }
18945else
18946  { echo "$as_me:$LINENO: result: no" >&5
18947echo "${ECHO_T}no" >&6; }
18948fi
18949
18950
18951  test -n "$AWK" && break
18952done
18953
18954{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18955echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18956set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18957if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18958  echo $ECHO_N "(cached) $ECHO_C" >&6
18959else
18960  cat >conftest.make <<\_ACEOF
18961SHELL = /bin/sh
18962all:
18963	@echo '@@@%%%=$(MAKE)=@@@%%%'
18964_ACEOF
18965# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18966case `${MAKE-make} -f conftest.make 2>/dev/null` in
18967  *@@@%%%=?*=@@@%%%*)
18968    eval ac_cv_prog_make_${ac_make}_set=yes;;
18969  *)
18970    eval ac_cv_prog_make_${ac_make}_set=no;;
18971esac
18972rm -f conftest.make
18973fi
18974if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18975  { echo "$as_me:$LINENO: result: yes" >&5
18976echo "${ECHO_T}yes" >&6; }
18977  SET_MAKE=
18978else
18979  { echo "$as_me:$LINENO: result: no" >&5
18980echo "${ECHO_T}no" >&6; }
18981  SET_MAKE="MAKE=${MAKE-make}"
18982fi
18983
18984rm -rf .tst 2>/dev/null
18985mkdir .tst 2>/dev/null
18986if test -d .tst; then
18987  am__leading_dot=.
18988else
18989  am__leading_dot=_
18990fi
18991rmdir .tst 2>/dev/null
18992
18993DEPDIR="${am__leading_dot}deps"
18994
18995ac_config_commands="$ac_config_commands depfiles"
18996
18997
18998am_make=${MAKE-make}
18999cat > confinc << 'END'
19000am__doit:
19001	@echo done
19002.PHONY: am__doit
19003END
19004# If we don't find an include directive, just comment out the code.
19005{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19006echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
19007am__include="#"
19008am__quote=
19009_am_result=none
19010# First try GNU make style include.
19011echo "include confinc" > confmf
19012# We grep out `Entering directory' and `Leaving directory'
19013# messages which can occur if `w' ends up in MAKEFLAGS.
19014# In particular we don't look at `^make:' because GNU make might
19015# be invoked under some other name (usually "gmake"), in which
19016# case it prints its new name instead of `make'.
19017if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19018   am__include=include
19019   am__quote=
19020   _am_result=GNU
19021fi
19022# Now try BSD make style include.
19023if test "$am__include" = "#"; then
19024   echo '.include "confinc"' > confmf
19025   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19026      am__include=.include
19027      am__quote="\""
19028      _am_result=BSD
19029   fi
19030fi
19031
19032
19033{ echo "$as_me:$LINENO: result: $_am_result" >&5
19034echo "${ECHO_T}$_am_result" >&6; }
19035rm -f confinc confmf
19036
19037# Check whether --enable-dependency-tracking was given.
19038if test "${enable_dependency_tracking+set}" = set; then
19039  enableval=$enable_dependency_tracking;
19040fi
19041
19042if test "x$enable_dependency_tracking" != xno; then
19043  am_depcomp="$ac_aux_dir/depcomp"
19044  AMDEPBACKSLASH='\'
19045fi
19046 if test "x$enable_dependency_tracking" != xno; then
19047  AMDEP_TRUE=
19048  AMDEP_FALSE='#'
19049else
19050  AMDEP_TRUE='#'
19051  AMDEP_FALSE=
19052fi
19053
19054
19055if test "`cd $srcdir && pwd`" != "`pwd`"; then
19056  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19057  # is not polluted with repeated "-I."
19058  am__isrc=' -I$(srcdir)'
19059  # test to see if srcdir already configured
19060  if test -f $srcdir/config.status; then
19061    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19062echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19063   { (exit 1); exit 1; }; }
19064  fi
19065fi
19066
19067# test whether we have cygpath
19068if test -z "$CYGPATH_W"; then
19069  if (cygpath --version) >/dev/null 2>/dev/null; then
19070    CYGPATH_W='cygpath -w'
19071  else
19072    CYGPATH_W=echo
19073  fi
19074fi
19075
19076
19077# Define the identity of the package.
19078 PACKAGE=OpenBSM
19079 VERSION=1.1alpha5
19080
19081
19082cat >>confdefs.h <<_ACEOF
19083#define PACKAGE "$PACKAGE"
19084_ACEOF
19085
19086
19087cat >>confdefs.h <<_ACEOF
19088#define VERSION "$VERSION"
19089_ACEOF
19090
19091# Some tools Automake needs.
19092
19093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19094
19095
19096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19097
19098
19099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19100
19101
19102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19103
19104
19105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19106
19107install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19108
19109# Installed binaries are usually stripped using `strip' when the user
19110# run `make install-strip'.  However `strip' might not be the right
19111# tool to use in cross-compilation environments, therefore Automake
19112# will honor the `STRIP' environment variable to overrule this program.
19113if test "$cross_compiling" != no; then
19114  if test -n "$ac_tool_prefix"; then
19115  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19116set dummy ${ac_tool_prefix}strip; ac_word=$2
19117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19119if test "${ac_cv_prog_STRIP+set}" = set; then
19120  echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
19122  if test -n "$STRIP"; then
19123  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19124else
19125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126for as_dir in $PATH
19127do
19128  IFS=$as_save_IFS
19129  test -z "$as_dir" && as_dir=.
19130  for ac_exec_ext in '' $ac_executable_extensions; do
19131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19132    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19134    break 2
19135  fi
19136done
19137done
19138IFS=$as_save_IFS
19139
19140fi
19141fi
19142STRIP=$ac_cv_prog_STRIP
19143if test -n "$STRIP"; then
19144  { echo "$as_me:$LINENO: result: $STRIP" >&5
19145echo "${ECHO_T}$STRIP" >&6; }
19146else
19147  { echo "$as_me:$LINENO: result: no" >&5
19148echo "${ECHO_T}no" >&6; }
19149fi
19150
19151
19152fi
19153if test -z "$ac_cv_prog_STRIP"; then
19154  ac_ct_STRIP=$STRIP
19155  # Extract the first word of "strip", so it can be a program name with args.
19156set dummy strip; ac_word=$2
19157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19159if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19160  echo $ECHO_N "(cached) $ECHO_C" >&6
19161else
19162  if test -n "$ac_ct_STRIP"; then
19163  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19164else
19165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19166for as_dir in $PATH
19167do
19168  IFS=$as_save_IFS
19169  test -z "$as_dir" && as_dir=.
19170  for ac_exec_ext in '' $ac_executable_extensions; do
19171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19172    ac_cv_prog_ac_ct_STRIP="strip"
19173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19174    break 2
19175  fi
19176done
19177done
19178IFS=$as_save_IFS
19179
19180fi
19181fi
19182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19183if test -n "$ac_ct_STRIP"; then
19184  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19185echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19186else
19187  { echo "$as_me:$LINENO: result: no" >&5
19188echo "${ECHO_T}no" >&6; }
19189fi
19190
19191  if test "x$ac_ct_STRIP" = x; then
19192    STRIP=":"
19193  else
19194    case $cross_compiling:$ac_tool_warned in
19195yes:)
19196{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19197whose name does not start with the host triplet.  If you think this
19198configuration is useful to you, please write to autoconf@gnu.org." >&5
19199echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19200whose name does not start with the host triplet.  If you think this
19201configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19202ac_tool_warned=yes ;;
19203esac
19204    STRIP=$ac_ct_STRIP
19205  fi
19206else
19207  STRIP="$ac_cv_prog_STRIP"
19208fi
19209
19210fi
19211INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19212
19213# We need awk for the "check" target.  The system "awk" is bad on
19214# some platforms.
19215# Always define AMTAR for backward compatibility.
19216
19217AMTAR=${AMTAR-"${am_missing_run}tar"}
19218
19219am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19220
19221
19222
19223
19224depcc="$CC"   am_compiler_list=
19225
19226{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19227echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19228if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19229  echo $ECHO_N "(cached) $ECHO_C" >&6
19230else
19231  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19232  # We make a subdir and do the tests there.  Otherwise we can end up
19233  # making bogus files that we don't know about and never remove.  For
19234  # instance it was reported that on HP-UX the gcc test will end up
19235  # making a dummy file named `D' -- because `-MD' means `put the output
19236  # in D'.
19237  mkdir conftest.dir
19238  # Copy depcomp to subdir because otherwise we won't find it if we're
19239  # using a relative directory.
19240  cp "$am_depcomp" conftest.dir
19241  cd conftest.dir
19242  # We will build objects and dependencies in a subdirectory because
19243  # it helps to detect inapplicable dependency modes.  For instance
19244  # both Tru64's cc and ICC support -MD to output dependencies as a
19245  # side effect of compilation, but ICC will put the dependencies in
19246  # the current directory while Tru64 will put them in the object
19247  # directory.
19248  mkdir sub
19249
19250  am_cv_CC_dependencies_compiler_type=none
19251  if test "$am_compiler_list" = ""; then
19252     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19253  fi
19254  for depmode in $am_compiler_list; do
19255    # Setup a source with many dependencies, because some compilers
19256    # like to wrap large dependency lists on column 80 (with \), and
19257    # we should not choose a depcomp mode which is confused by this.
19258    #
19259    # We need to recreate these files for each test, as the compiler may
19260    # overwrite some of them when testing with obscure command lines.
19261    # This happens at least with the AIX C compiler.
19262    : > sub/conftest.c
19263    for i in 1 2 3 4 5 6; do
19264      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19265      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19266      # Solaris 8's {/usr,}/bin/sh.
19267      touch sub/conftst$i.h
19268    done
19269    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19270
19271    case $depmode in
19272    nosideeffect)
19273      # after this tag, mechanisms are not by side-effect, so they'll
19274      # only be used when explicitly requested
19275      if test "x$enable_dependency_tracking" = xyes; then
19276	continue
19277      else
19278	break
19279      fi
19280      ;;
19281    none) break ;;
19282    esac
19283    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19284    # mode.  It turns out that the SunPro C++ compiler does not properly
19285    # handle `-M -o', and we need to detect this.
19286    if depmode=$depmode \
19287       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19288       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19289       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19290         >/dev/null 2>conftest.err &&
19291       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19292       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19293       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19294       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19295      # icc doesn't choke on unknown options, it will just issue warnings
19296      # or remarks (even with -Werror).  So we grep stderr for any message
19297      # that says an option was ignored or not supported.
19298      # When given -MP, icc 7.0 and 7.1 complain thusly:
19299      #   icc: Command line warning: ignoring option '-M'; no argument required
19300      # The diagnosis changed in icc 8.0:
19301      #   icc: Command line remark: option '-MP' not supported
19302      if (grep 'ignoring option' conftest.err ||
19303          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19304        am_cv_CC_dependencies_compiler_type=$depmode
19305        break
19306      fi
19307    fi
19308  done
19309
19310  cd ..
19311  rm -rf conftest.dir
19312else
19313  am_cv_CC_dependencies_compiler_type=none
19314fi
19315
19316fi
19317{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19318echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19320
19321 if
19322  test "x$enable_dependency_tracking" != xno \
19323  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19324  am__fastdepCC_TRUE=
19325  am__fastdepCC_FALSE='#'
19326else
19327  am__fastdepCC_TRUE='#'
19328  am__fastdepCC_FALSE=
19329fi
19330
19331
19332depcc="$CXX"  am_compiler_list=
19333
19334{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19335echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19336if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19337  echo $ECHO_N "(cached) $ECHO_C" >&6
19338else
19339  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19340  # We make a subdir and do the tests there.  Otherwise we can end up
19341  # making bogus files that we don't know about and never remove.  For
19342  # instance it was reported that on HP-UX the gcc test will end up
19343  # making a dummy file named `D' -- because `-MD' means `put the output
19344  # in D'.
19345  mkdir conftest.dir
19346  # Copy depcomp to subdir because otherwise we won't find it if we're
19347  # using a relative directory.
19348  cp "$am_depcomp" conftest.dir
19349  cd conftest.dir
19350  # We will build objects and dependencies in a subdirectory because
19351  # it helps to detect inapplicable dependency modes.  For instance
19352  # both Tru64's cc and ICC support -MD to output dependencies as a
19353  # side effect of compilation, but ICC will put the dependencies in
19354  # the current directory while Tru64 will put them in the object
19355  # directory.
19356  mkdir sub
19357
19358  am_cv_CXX_dependencies_compiler_type=none
19359  if test "$am_compiler_list" = ""; then
19360     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19361  fi
19362  for depmode in $am_compiler_list; do
19363    # Setup a source with many dependencies, because some compilers
19364    # like to wrap large dependency lists on column 80 (with \), and
19365    # we should not choose a depcomp mode which is confused by this.
19366    #
19367    # We need to recreate these files for each test, as the compiler may
19368    # overwrite some of them when testing with obscure command lines.
19369    # This happens at least with the AIX C compiler.
19370    : > sub/conftest.c
19371    for i in 1 2 3 4 5 6; do
19372      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19373      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19374      # Solaris 8's {/usr,}/bin/sh.
19375      touch sub/conftst$i.h
19376    done
19377    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19378
19379    case $depmode in
19380    nosideeffect)
19381      # after this tag, mechanisms are not by side-effect, so they'll
19382      # only be used when explicitly requested
19383      if test "x$enable_dependency_tracking" = xyes; then
19384	continue
19385      else
19386	break
19387      fi
19388      ;;
19389    none) break ;;
19390    esac
19391    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19392    # mode.  It turns out that the SunPro C++ compiler does not properly
19393    # handle `-M -o', and we need to detect this.
19394    if depmode=$depmode \
19395       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19396       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19397       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19398         >/dev/null 2>conftest.err &&
19399       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19400       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19401       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19402       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19403      # icc doesn't choke on unknown options, it will just issue warnings
19404      # or remarks (even with -Werror).  So we grep stderr for any message
19405      # that says an option was ignored or not supported.
19406      # When given -MP, icc 7.0 and 7.1 complain thusly:
19407      #   icc: Command line warning: ignoring option '-M'; no argument required
19408      # The diagnosis changed in icc 8.0:
19409      #   icc: Command line remark: option '-MP' not supported
19410      if (grep 'ignoring option' conftest.err ||
19411          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19412        am_cv_CXX_dependencies_compiler_type=$depmode
19413        break
19414      fi
19415    fi
19416  done
19417
19418  cd ..
19419  rm -rf conftest.dir
19420else
19421  am_cv_CXX_dependencies_compiler_type=none
19422fi
19423
19424fi
19425{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19426echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19427CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19428
19429 if
19430  test "x$enable_dependency_tracking" != xno \
19431  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19432  am__fastdepCXX_TRUE=
19433  am__fastdepCXX_FALSE='#'
19434else
19435  am__fastdepCXX_TRUE='#'
19436  am__fastdepCXX_FALSE=
19437fi
19438
19439
19440
19441
19442{ echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19443echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
19444if test "${ac_cv_search_dlsym+set}" = set; then
19445  echo $ECHO_N "(cached) $ECHO_C" >&6
19446else
19447  ac_func_search_save_LIBS=$LIBS
19448cat >conftest.$ac_ext <<_ACEOF
19449/* confdefs.h.  */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h.  */
19454
19455/* Override any GCC internal prototype to avoid an error.
19456   Use char because int might match the return type of a GCC
19457   builtin and then its argument prototype would still apply.  */
19458#ifdef __cplusplus
19459extern "C"
19460#endif
19461char dlsym ();
19462int
19463main ()
19464{
19465return dlsym ();
19466  ;
19467  return 0;
19468}
19469_ACEOF
19470for ac_lib in '' dl; do
19471  if test -z "$ac_lib"; then
19472    ac_res="none required"
19473  else
19474    ac_res=-l$ac_lib
19475    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19476  fi
19477  rm -f conftest.$ac_objext conftest$ac_exeext
19478if { (ac_try="$ac_link"
19479case "(($ac_try" in
19480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481  *) ac_try_echo=$ac_try;;
19482esac
19483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484  (eval "$ac_link") 2>conftest.er1
19485  ac_status=$?
19486  grep -v '^ *+' conftest.er1 >conftest.err
19487  rm -f conftest.er1
19488  cat conftest.err >&5
19489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490  (exit $ac_status); } && {
19491	 test -z "$ac_c_werror_flag" ||
19492	 test ! -s conftest.err
19493       } && test -s conftest$ac_exeext &&
19494       $as_test_x conftest$ac_exeext; then
19495  ac_cv_search_dlsym=$ac_res
19496else
19497  echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500
19501fi
19502
19503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504      conftest$ac_exeext
19505  if test "${ac_cv_search_dlsym+set}" = set; then
19506  break
19507fi
19508done
19509if test "${ac_cv_search_dlsym+set}" = set; then
19510  :
19511else
19512  ac_cv_search_dlsym=no
19513fi
19514rm conftest.$ac_ext
19515LIBS=$ac_func_search_save_LIBS
19516fi
19517{ echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19518echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
19519ac_res=$ac_cv_search_dlsym
19520if test "$ac_res" != no; then
19521  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19522
19523fi
19524
19525{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19526echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19527if test "${ac_cv_search_clock_gettime+set}" = set; then
19528  echo $ECHO_N "(cached) $ECHO_C" >&6
19529else
19530  ac_func_search_save_LIBS=$LIBS
19531cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h.  */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
19536/* end confdefs.h.  */
19537
19538/* Override any GCC internal prototype to avoid an error.
19539   Use char because int might match the return type of a GCC
19540   builtin and then its argument prototype would still apply.  */
19541#ifdef __cplusplus
19542extern "C"
19543#endif
19544char clock_gettime ();
19545int
19546main ()
19547{
19548return clock_gettime ();
19549  ;
19550  return 0;
19551}
19552_ACEOF
19553for ac_lib in '' rt; do
19554  if test -z "$ac_lib"; then
19555    ac_res="none required"
19556  else
19557    ac_res=-l$ac_lib
19558    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19559  fi
19560  rm -f conftest.$ac_objext conftest$ac_exeext
19561if { (ac_try="$ac_link"
19562case "(($ac_try" in
19563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564  *) ac_try_echo=$ac_try;;
19565esac
19566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567  (eval "$ac_link") 2>conftest.er1
19568  ac_status=$?
19569  grep -v '^ *+' conftest.er1 >conftest.err
19570  rm -f conftest.er1
19571  cat conftest.err >&5
19572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573  (exit $ac_status); } && {
19574	 test -z "$ac_c_werror_flag" ||
19575	 test ! -s conftest.err
19576       } && test -s conftest$ac_exeext &&
19577       $as_test_x conftest$ac_exeext; then
19578  ac_cv_search_clock_gettime=$ac_res
19579else
19580  echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583
19584fi
19585
19586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19587      conftest$ac_exeext
19588  if test "${ac_cv_search_clock_gettime+set}" = set; then
19589  break
19590fi
19591done
19592if test "${ac_cv_search_clock_gettime+set}" = set; then
19593  :
19594else
19595  ac_cv_search_clock_gettime=no
19596fi
19597rm conftest.$ac_ext
19598LIBS=$ac_func_search_save_LIBS
19599fi
19600{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19601echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19602ac_res=$ac_cv_search_clock_gettime
19603if test "$ac_res" != no; then
19604  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19605
19606fi
19607
19608
19609# Checks for header files.
19610{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19611echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19612if test "${ac_cv_header_stdc+set}" = set; then
19613  echo $ECHO_N "(cached) $ECHO_C" >&6
19614else
19615  cat >conftest.$ac_ext <<_ACEOF
19616/* confdefs.h.  */
19617_ACEOF
19618cat confdefs.h >>conftest.$ac_ext
19619cat >>conftest.$ac_ext <<_ACEOF
19620/* end confdefs.h.  */
19621#include <stdlib.h>
19622#include <stdarg.h>
19623#include <string.h>
19624#include <float.h>
19625
19626int
19627main ()
19628{
19629
19630  ;
19631  return 0;
19632}
19633_ACEOF
19634rm -f conftest.$ac_objext
19635if { (ac_try="$ac_compile"
19636case "(($ac_try" in
19637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638  *) ac_try_echo=$ac_try;;
19639esac
19640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641  (eval "$ac_compile") 2>conftest.er1
19642  ac_status=$?
19643  grep -v '^ *+' conftest.er1 >conftest.err
19644  rm -f conftest.er1
19645  cat conftest.err >&5
19646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647  (exit $ac_status); } && {
19648	 test -z "$ac_c_werror_flag" ||
19649	 test ! -s conftest.err
19650       } && test -s conftest.$ac_objext; then
19651  ac_cv_header_stdc=yes
19652else
19653  echo "$as_me: failed program was:" >&5
19654sed 's/^/| /' conftest.$ac_ext >&5
19655
19656	ac_cv_header_stdc=no
19657fi
19658
19659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660
19661if test $ac_cv_header_stdc = yes; then
19662  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19663  cat >conftest.$ac_ext <<_ACEOF
19664/* confdefs.h.  */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h.  */
19669#include <string.h>
19670
19671_ACEOF
19672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19673  $EGREP "memchr" >/dev/null 2>&1; then
19674  :
19675else
19676  ac_cv_header_stdc=no
19677fi
19678rm -f conftest*
19679
19680fi
19681
19682if test $ac_cv_header_stdc = yes; then
19683  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19684  cat >conftest.$ac_ext <<_ACEOF
19685/* confdefs.h.  */
19686_ACEOF
19687cat confdefs.h >>conftest.$ac_ext
19688cat >>conftest.$ac_ext <<_ACEOF
19689/* end confdefs.h.  */
19690#include <stdlib.h>
19691
19692_ACEOF
19693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694  $EGREP "free" >/dev/null 2>&1; then
19695  :
19696else
19697  ac_cv_header_stdc=no
19698fi
19699rm -f conftest*
19700
19701fi
19702
19703if test $ac_cv_header_stdc = yes; then
19704  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19705  if test "$cross_compiling" = yes; then
19706  :
19707else
19708  cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h.  */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h.  */
19714#include <ctype.h>
19715#include <stdlib.h>
19716#if ((' ' & 0x0FF) == 0x020)
19717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19719#else
19720# define ISLOWER(c) \
19721		   (('a' <= (c) && (c) <= 'i') \
19722		     || ('j' <= (c) && (c) <= 'r') \
19723		     || ('s' <= (c) && (c) <= 'z'))
19724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19725#endif
19726
19727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19728int
19729main ()
19730{
19731  int i;
19732  for (i = 0; i < 256; i++)
19733    if (XOR (islower (i), ISLOWER (i))
19734	|| toupper (i) != TOUPPER (i))
19735      return 2;
19736  return 0;
19737}
19738_ACEOF
19739rm -f conftest$ac_exeext
19740if { (ac_try="$ac_link"
19741case "(($ac_try" in
19742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743  *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746  (eval "$ac_link") 2>&5
19747  ac_status=$?
19748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19750  { (case "(($ac_try" in
19751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752  *) ac_try_echo=$ac_try;;
19753esac
19754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755  (eval "$ac_try") 2>&5
19756  ac_status=$?
19757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758  (exit $ac_status); }; }; then
19759  :
19760else
19761  echo "$as_me: program exited with status $ac_status" >&5
19762echo "$as_me: failed program was:" >&5
19763sed 's/^/| /' conftest.$ac_ext >&5
19764
19765( exit $ac_status )
19766ac_cv_header_stdc=no
19767fi
19768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19769fi
19770
19771
19772fi
19773fi
19774{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19775echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19776if test $ac_cv_header_stdc = yes; then
19777
19778cat >>confdefs.h <<\_ACEOF
19779#define STDC_HEADERS 1
19780_ACEOF
19781
19782fi
19783
19784{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19785echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19786if test "${ac_cv_header_sys_wait_h+set}" = set; then
19787  echo $ECHO_N "(cached) $ECHO_C" >&6
19788else
19789  cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h.  */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h.  */
19795#include <sys/types.h>
19796#include <sys/wait.h>
19797#ifndef WEXITSTATUS
19798# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19799#endif
19800#ifndef WIFEXITED
19801# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19802#endif
19803
19804int
19805main ()
19806{
19807  int s;
19808  wait (&s);
19809  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19810  ;
19811  return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (ac_try="$ac_compile"
19816case "(($ac_try" in
19817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818  *) ac_try_echo=$ac_try;;
19819esac
19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821  (eval "$ac_compile") 2>conftest.er1
19822  ac_status=$?
19823  grep -v '^ *+' conftest.er1 >conftest.err
19824  rm -f conftest.er1
19825  cat conftest.err >&5
19826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827  (exit $ac_status); } && {
19828	 test -z "$ac_c_werror_flag" ||
19829	 test ! -s conftest.err
19830       } && test -s conftest.$ac_objext; then
19831  ac_cv_header_sys_wait_h=yes
19832else
19833  echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836	ac_cv_header_sys_wait_h=no
19837fi
19838
19839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840fi
19841{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19842echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19843if test $ac_cv_header_sys_wait_h = yes; then
19844
19845cat >>confdefs.h <<\_ACEOF
19846#define HAVE_SYS_WAIT_H 1
19847_ACEOF
19848
19849fi
19850
19851
19852
19853
19854
19855
19856for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h
19857do
19858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19860  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863  echo $ECHO_N "(cached) $ECHO_C" >&6
19864fi
19865ac_res=`eval echo '${'$as_ac_Header'}'`
19866	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19867echo "${ECHO_T}$ac_res" >&6; }
19868else
19869  # Is the header compilable?
19870{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19872cat >conftest.$ac_ext <<_ACEOF
19873/* confdefs.h.  */
19874_ACEOF
19875cat confdefs.h >>conftest.$ac_ext
19876cat >>conftest.$ac_ext <<_ACEOF
19877/* end confdefs.h.  */
19878$ac_includes_default
19879#include <$ac_header>
19880_ACEOF
19881rm -f conftest.$ac_objext
19882if { (ac_try="$ac_compile"
19883case "(($ac_try" in
19884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885  *) ac_try_echo=$ac_try;;
19886esac
19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888  (eval "$ac_compile") 2>conftest.er1
19889  ac_status=$?
19890  grep -v '^ *+' conftest.er1 >conftest.err
19891  rm -f conftest.er1
19892  cat conftest.err >&5
19893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894  (exit $ac_status); } && {
19895	 test -z "$ac_c_werror_flag" ||
19896	 test ! -s conftest.err
19897       } && test -s conftest.$ac_objext; then
19898  ac_header_compiler=yes
19899else
19900  echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903	ac_header_compiler=no
19904fi
19905
19906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908echo "${ECHO_T}$ac_header_compiler" >&6; }
19909
19910# Is the header present?
19911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19913cat >conftest.$ac_ext <<_ACEOF
19914/* confdefs.h.  */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h.  */
19919#include <$ac_header>
19920_ACEOF
19921if { (ac_try="$ac_cpp conftest.$ac_ext"
19922case "(($ac_try" in
19923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924  *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19928  ac_status=$?
19929  grep -v '^ *+' conftest.er1 >conftest.err
19930  rm -f conftest.er1
19931  cat conftest.err >&5
19932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933  (exit $ac_status); } >/dev/null && {
19934	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19935	 test ! -s conftest.err
19936       }; then
19937  ac_header_preproc=yes
19938else
19939  echo "$as_me: failed program was:" >&5
19940sed 's/^/| /' conftest.$ac_ext >&5
19941
19942  ac_header_preproc=no
19943fi
19944
19945rm -f conftest.err conftest.$ac_ext
19946{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19947echo "${ECHO_T}$ac_header_preproc" >&6; }
19948
19949# So?  What about this header?
19950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19951  yes:no: )
19952    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19956    ac_header_preproc=yes
19957    ;;
19958  no:yes:* )
19959    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19961    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19962echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19963    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19965    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19966echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19969    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19971    ( cat <<\_ASBOX
19972## ----------------------------------------------- ##
19973## Report this to trustedbsd-audit@TrustesdBSD.org ##
19974## ----------------------------------------------- ##
19975_ASBOX
19976     ) | sed "s/^/$as_me: WARNING:     /" >&2
19977    ;;
19978esac
19979{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19982  echo $ECHO_N "(cached) $ECHO_C" >&6
19983else
19984  eval "$as_ac_Header=\$ac_header_preproc"
19985fi
19986ac_res=`eval echo '${'$as_ac_Header'}'`
19987	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19988echo "${ECHO_T}$ac_res" >&6; }
19989
19990fi
19991if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992  cat >>confdefs.h <<_ACEOF
19993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19994_ACEOF
19995
19996fi
19997
19998done
19999
20000
20001# Checks for typedefs, structures, and compiler characteristics.
20002{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20003echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20004if test "${ac_cv_c_const+set}" = set; then
20005  echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007  cat >conftest.$ac_ext <<_ACEOF
20008/* confdefs.h.  */
20009_ACEOF
20010cat confdefs.h >>conftest.$ac_ext
20011cat >>conftest.$ac_ext <<_ACEOF
20012/* end confdefs.h.  */
20013
20014int
20015main ()
20016{
20017/* FIXME: Include the comments suggested by Paul. */
20018#ifndef __cplusplus
20019  /* Ultrix mips cc rejects this.  */
20020  typedef int charset[2];
20021  const charset cs;
20022  /* SunOS 4.1.1 cc rejects this.  */
20023  char const *const *pcpcc;
20024  char **ppc;
20025  /* NEC SVR4.0.2 mips cc rejects this.  */
20026  struct point {int x, y;};
20027  static struct point const zero = {0,0};
20028  /* AIX XL C 1.02.0.0 rejects this.
20029     It does not let you subtract one const X* pointer from another in
20030     an arm of an if-expression whose if-part is not a constant
20031     expression */
20032  const char *g = "string";
20033  pcpcc = &g + (g ? g-g : 0);
20034  /* HPUX 7.0 cc rejects these. */
20035  ++pcpcc;
20036  ppc = (char**) pcpcc;
20037  pcpcc = (char const *const *) ppc;
20038  { /* SCO 3.2v4 cc rejects this.  */
20039    char *t;
20040    char const *s = 0 ? (char *) 0 : (char const *) 0;
20041
20042    *t++ = 0;
20043    if (s) return 0;
20044  }
20045  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20046    int x[] = {25, 17};
20047    const int *foo = &x[0];
20048    ++foo;
20049  }
20050  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20051    typedef const int *iptr;
20052    iptr p = 0;
20053    ++p;
20054  }
20055  { /* AIX XL C 1.02.0.0 rejects this saying
20056       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20057    struct s { int j; const int *ap[3]; };
20058    struct s *b; b->j = 5;
20059  }
20060  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20061    const int foo = 10;
20062    if (!foo) return 0;
20063  }
20064  return !cs[0] && !zero.x;
20065#endif
20066
20067  ;
20068  return 0;
20069}
20070_ACEOF
20071rm -f conftest.$ac_objext
20072if { (ac_try="$ac_compile"
20073case "(($ac_try" in
20074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075  *) ac_try_echo=$ac_try;;
20076esac
20077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078  (eval "$ac_compile") 2>conftest.er1
20079  ac_status=$?
20080  grep -v '^ *+' conftest.er1 >conftest.err
20081  rm -f conftest.er1
20082  cat conftest.err >&5
20083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084  (exit $ac_status); } && {
20085	 test -z "$ac_c_werror_flag" ||
20086	 test ! -s conftest.err
20087       } && test -s conftest.$ac_objext; then
20088  ac_cv_c_const=yes
20089else
20090  echo "$as_me: failed program was:" >&5
20091sed 's/^/| /' conftest.$ac_ext >&5
20092
20093	ac_cv_c_const=no
20094fi
20095
20096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097fi
20098{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20099echo "${ECHO_T}$ac_cv_c_const" >&6; }
20100if test $ac_cv_c_const = no; then
20101
20102cat >>confdefs.h <<\_ACEOF
20103#define const
20104_ACEOF
20105
20106fi
20107
20108{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20109echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20110if test "${ac_cv_type_uid_t+set}" = set; then
20111  echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113  cat >conftest.$ac_ext <<_ACEOF
20114/* confdefs.h.  */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h.  */
20119#include <sys/types.h>
20120
20121_ACEOF
20122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20123  $EGREP "uid_t" >/dev/null 2>&1; then
20124  ac_cv_type_uid_t=yes
20125else
20126  ac_cv_type_uid_t=no
20127fi
20128rm -f conftest*
20129
20130fi
20131{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20132echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20133if test $ac_cv_type_uid_t = no; then
20134
20135cat >>confdefs.h <<\_ACEOF
20136#define uid_t int
20137_ACEOF
20138
20139
20140cat >>confdefs.h <<\_ACEOF
20141#define gid_t int
20142_ACEOF
20143
20144fi
20145
20146{ echo "$as_me:$LINENO: checking for pid_t" >&5
20147echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20148if test "${ac_cv_type_pid_t+set}" = set; then
20149  echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151  cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h.  */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h.  */
20157$ac_includes_default
20158typedef pid_t ac__type_new_;
20159int
20160main ()
20161{
20162if ((ac__type_new_ *) 0)
20163  return 0;
20164if (sizeof (ac__type_new_))
20165  return 0;
20166  ;
20167  return 0;
20168}
20169_ACEOF
20170rm -f conftest.$ac_objext
20171if { (ac_try="$ac_compile"
20172case "(($ac_try" in
20173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174  *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177  (eval "$ac_compile") 2>conftest.er1
20178  ac_status=$?
20179  grep -v '^ *+' conftest.er1 >conftest.err
20180  rm -f conftest.er1
20181  cat conftest.err >&5
20182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183  (exit $ac_status); } && {
20184	 test -z "$ac_c_werror_flag" ||
20185	 test ! -s conftest.err
20186       } && test -s conftest.$ac_objext; then
20187  ac_cv_type_pid_t=yes
20188else
20189  echo "$as_me: failed program was:" >&5
20190sed 's/^/| /' conftest.$ac_ext >&5
20191
20192	ac_cv_type_pid_t=no
20193fi
20194
20195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196fi
20197{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20198echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20199if test $ac_cv_type_pid_t = yes; then
20200  :
20201else
20202
20203cat >>confdefs.h <<_ACEOF
20204#define pid_t int
20205_ACEOF
20206
20207fi
20208
20209{ echo "$as_me:$LINENO: checking for size_t" >&5
20210echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20211if test "${ac_cv_type_size_t+set}" = set; then
20212  echo $ECHO_N "(cached) $ECHO_C" >&6
20213else
20214  cat >conftest.$ac_ext <<_ACEOF
20215/* confdefs.h.  */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h.  */
20220$ac_includes_default
20221typedef size_t ac__type_new_;
20222int
20223main ()
20224{
20225if ((ac__type_new_ *) 0)
20226  return 0;
20227if (sizeof (ac__type_new_))
20228  return 0;
20229  ;
20230  return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (ac_try="$ac_compile"
20235case "(($ac_try" in
20236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237  *) ac_try_echo=$ac_try;;
20238esac
20239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240  (eval "$ac_compile") 2>conftest.er1
20241  ac_status=$?
20242  grep -v '^ *+' conftest.er1 >conftest.err
20243  rm -f conftest.er1
20244  cat conftest.err >&5
20245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246  (exit $ac_status); } && {
20247	 test -z "$ac_c_werror_flag" ||
20248	 test ! -s conftest.err
20249       } && test -s conftest.$ac_objext; then
20250  ac_cv_type_size_t=yes
20251else
20252  echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255	ac_cv_type_size_t=no
20256fi
20257
20258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259fi
20260{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20261echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20262if test $ac_cv_type_size_t = yes; then
20263  :
20264else
20265
20266cat >>confdefs.h <<_ACEOF
20267#define size_t unsigned int
20268_ACEOF
20269
20270fi
20271
20272{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20273echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
20274if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20275  echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277  cat >conftest.$ac_ext <<_ACEOF
20278/* confdefs.h.  */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h.  */
20283$ac_includes_default
20284int
20285main ()
20286{
20287static struct stat ac_aggr;
20288if (ac_aggr.st_rdev)
20289return 0;
20290  ;
20291  return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext
20295if { (ac_try="$ac_compile"
20296case "(($ac_try" in
20297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298  *) ac_try_echo=$ac_try;;
20299esac
20300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301  (eval "$ac_compile") 2>conftest.er1
20302  ac_status=$?
20303  grep -v '^ *+' conftest.er1 >conftest.err
20304  rm -f conftest.er1
20305  cat conftest.err >&5
20306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307  (exit $ac_status); } && {
20308	 test -z "$ac_c_werror_flag" ||
20309	 test ! -s conftest.err
20310       } && test -s conftest.$ac_objext; then
20311  ac_cv_member_struct_stat_st_rdev=yes
20312else
20313  echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316	cat >conftest.$ac_ext <<_ACEOF
20317/* confdefs.h.  */
20318_ACEOF
20319cat confdefs.h >>conftest.$ac_ext
20320cat >>conftest.$ac_ext <<_ACEOF
20321/* end confdefs.h.  */
20322$ac_includes_default
20323int
20324main ()
20325{
20326static struct stat ac_aggr;
20327if (sizeof ac_aggr.st_rdev)
20328return 0;
20329  ;
20330  return 0;
20331}
20332_ACEOF
20333rm -f conftest.$ac_objext
20334if { (ac_try="$ac_compile"
20335case "(($ac_try" in
20336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337  *) ac_try_echo=$ac_try;;
20338esac
20339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340  (eval "$ac_compile") 2>conftest.er1
20341  ac_status=$?
20342  grep -v '^ *+' conftest.er1 >conftest.err
20343  rm -f conftest.er1
20344  cat conftest.err >&5
20345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346  (exit $ac_status); } && {
20347	 test -z "$ac_c_werror_flag" ||
20348	 test ! -s conftest.err
20349       } && test -s conftest.$ac_objext; then
20350  ac_cv_member_struct_stat_st_rdev=yes
20351else
20352  echo "$as_me: failed program was:" >&5
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
20355	ac_cv_member_struct_stat_st_rdev=no
20356fi
20357
20358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359fi
20360
20361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362fi
20363{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20364echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20365if test $ac_cv_member_struct_stat_st_rdev = yes; then
20366
20367cat >>confdefs.h <<_ACEOF
20368#define HAVE_STRUCT_STAT_ST_RDEV 1
20369_ACEOF
20370
20371
20372fi
20373
20374
20375{ echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20376echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6; }
20377if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20378  echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380  cat >conftest.$ac_ext <<_ACEOF
20381/* confdefs.h.  */
20382_ACEOF
20383cat confdefs.h >>conftest.$ac_ext
20384cat >>conftest.$ac_ext <<_ACEOF
20385/* end confdefs.h.  */
20386
20387#include <sys/types.h>
20388#include <sys/ipc.h>
20389
20390
20391int
20392main ()
20393{
20394static struct ipc_perm ac_aggr;
20395if (ac_aggr.__key)
20396return 0;
20397  ;
20398  return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext
20402if { (ac_try="$ac_compile"
20403case "(($ac_try" in
20404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405  *) ac_try_echo=$ac_try;;
20406esac
20407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408  (eval "$ac_compile") 2>conftest.er1
20409  ac_status=$?
20410  grep -v '^ *+' conftest.er1 >conftest.err
20411  rm -f conftest.er1
20412  cat conftest.err >&5
20413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414  (exit $ac_status); } && {
20415	 test -z "$ac_c_werror_flag" ||
20416	 test ! -s conftest.err
20417       } && test -s conftest.$ac_objext; then
20418  ac_cv_member_struct_ipc_perm___key=yes
20419else
20420  echo "$as_me: failed program was:" >&5
20421sed 's/^/| /' conftest.$ac_ext >&5
20422
20423	cat >conftest.$ac_ext <<_ACEOF
20424/* confdefs.h.  */
20425_ACEOF
20426cat confdefs.h >>conftest.$ac_ext
20427cat >>conftest.$ac_ext <<_ACEOF
20428/* end confdefs.h.  */
20429
20430#include <sys/types.h>
20431#include <sys/ipc.h>
20432
20433
20434int
20435main ()
20436{
20437static struct ipc_perm ac_aggr;
20438if (sizeof ac_aggr.__key)
20439return 0;
20440  ;
20441  return 0;
20442}
20443_ACEOF
20444rm -f conftest.$ac_objext
20445if { (ac_try="$ac_compile"
20446case "(($ac_try" in
20447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448  *) ac_try_echo=$ac_try;;
20449esac
20450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451  (eval "$ac_compile") 2>conftest.er1
20452  ac_status=$?
20453  grep -v '^ *+' conftest.er1 >conftest.err
20454  rm -f conftest.er1
20455  cat conftest.err >&5
20456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); } && {
20458	 test -z "$ac_c_werror_flag" ||
20459	 test ! -s conftest.err
20460       } && test -s conftest.$ac_objext; then
20461  ac_cv_member_struct_ipc_perm___key=yes
20462else
20463  echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466	ac_cv_member_struct_ipc_perm___key=no
20467fi
20468
20469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470fi
20471
20472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473fi
20474{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20475echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6; }
20476if test $ac_cv_member_struct_ipc_perm___key = yes; then
20477
20478cat >>confdefs.h <<\_ACEOF
20479#define HAVE_IPC_PERM___KEY
20480_ACEOF
20481
20482fi
20483
20484
20485{ echo "$as_me:$LINENO: checking for struct ipc_perm._key" >&5
20486echo $ECHO_N "checking for struct ipc_perm._key... $ECHO_C" >&6; }
20487if test "${ac_cv_member_struct_ipc_perm__key+set}" = set; then
20488  echo $ECHO_N "(cached) $ECHO_C" >&6
20489else
20490  cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h.  */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h.  */
20496
20497#include <sys/types.h>
20498#include <sys/ipc.h>
20499
20500
20501int
20502main ()
20503{
20504static struct ipc_perm ac_aggr;
20505if (ac_aggr._key)
20506return 0;
20507  ;
20508  return 0;
20509}
20510_ACEOF
20511rm -f conftest.$ac_objext
20512if { (ac_try="$ac_compile"
20513case "(($ac_try" in
20514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515  *) ac_try_echo=$ac_try;;
20516esac
20517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518  (eval "$ac_compile") 2>conftest.er1
20519  ac_status=$?
20520  grep -v '^ *+' conftest.er1 >conftest.err
20521  rm -f conftest.er1
20522  cat conftest.err >&5
20523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524  (exit $ac_status); } && {
20525	 test -z "$ac_c_werror_flag" ||
20526	 test ! -s conftest.err
20527       } && test -s conftest.$ac_objext; then
20528  ac_cv_member_struct_ipc_perm__key=yes
20529else
20530  echo "$as_me: failed program was:" >&5
20531sed 's/^/| /' conftest.$ac_ext >&5
20532
20533	cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h.  */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h.  */
20539
20540#include <sys/types.h>
20541#include <sys/ipc.h>
20542
20543
20544int
20545main ()
20546{
20547static struct ipc_perm ac_aggr;
20548if (sizeof ac_aggr._key)
20549return 0;
20550  ;
20551  return 0;
20552}
20553_ACEOF
20554rm -f conftest.$ac_objext
20555if { (ac_try="$ac_compile"
20556case "(($ac_try" in
20557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558  *) ac_try_echo=$ac_try;;
20559esac
20560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561  (eval "$ac_compile") 2>conftest.er1
20562  ac_status=$?
20563  grep -v '^ *+' conftest.er1 >conftest.err
20564  rm -f conftest.er1
20565  cat conftest.err >&5
20566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567  (exit $ac_status); } && {
20568	 test -z "$ac_c_werror_flag" ||
20569	 test ! -s conftest.err
20570       } && test -s conftest.$ac_objext; then
20571  ac_cv_member_struct_ipc_perm__key=yes
20572else
20573  echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
20576	ac_cv_member_struct_ipc_perm__key=no
20577fi
20578
20579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580fi
20581
20582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583fi
20584{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__key" >&5
20585echo "${ECHO_T}$ac_cv_member_struct_ipc_perm__key" >&6; }
20586if test $ac_cv_member_struct_ipc_perm__key = yes; then
20587
20588cat >>confdefs.h <<\_ACEOF
20589#define HAVE_IPC_PERM__KEY
20590_ACEOF
20591
20592fi
20593
20594
20595{ echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20596echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6; }
20597if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20598  echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600  cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h.  */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h.  */
20606
20607#include <sys/types.h>
20608#include <sys/ipc.h>
20609
20610
20611int
20612main ()
20613{
20614static struct ipc_perm ac_aggr;
20615if (ac_aggr.__seq)
20616return 0;
20617  ;
20618  return 0;
20619}
20620_ACEOF
20621rm -f conftest.$ac_objext
20622if { (ac_try="$ac_compile"
20623case "(($ac_try" in
20624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625  *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628  (eval "$ac_compile") 2>conftest.er1
20629  ac_status=$?
20630  grep -v '^ *+' conftest.er1 >conftest.err
20631  rm -f conftest.er1
20632  cat conftest.err >&5
20633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634  (exit $ac_status); } && {
20635	 test -z "$ac_c_werror_flag" ||
20636	 test ! -s conftest.err
20637       } && test -s conftest.$ac_objext; then
20638  ac_cv_member_struct_ipc_perm___seq=yes
20639else
20640  echo "$as_me: failed program was:" >&5
20641sed 's/^/| /' conftest.$ac_ext >&5
20642
20643	cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h.  */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h.  */
20649
20650#include <sys/types.h>
20651#include <sys/ipc.h>
20652
20653
20654int
20655main ()
20656{
20657static struct ipc_perm ac_aggr;
20658if (sizeof ac_aggr.__seq)
20659return 0;
20660  ;
20661  return 0;
20662}
20663_ACEOF
20664rm -f conftest.$ac_objext
20665if { (ac_try="$ac_compile"
20666case "(($ac_try" in
20667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668  *) ac_try_echo=$ac_try;;
20669esac
20670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671  (eval "$ac_compile") 2>conftest.er1
20672  ac_status=$?
20673  grep -v '^ *+' conftest.er1 >conftest.err
20674  rm -f conftest.er1
20675  cat conftest.err >&5
20676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677  (exit $ac_status); } && {
20678	 test -z "$ac_c_werror_flag" ||
20679	 test ! -s conftest.err
20680       } && test -s conftest.$ac_objext; then
20681  ac_cv_member_struct_ipc_perm___seq=yes
20682else
20683  echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686	ac_cv_member_struct_ipc_perm___seq=no
20687fi
20688
20689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690fi
20691
20692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693fi
20694{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20695echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6; }
20696if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20697
20698cat >>confdefs.h <<\_ACEOF
20699#define HAVE_IPC_PERM___SEQ
20700_ACEOF
20701
20702fi
20703
20704
20705{ echo "$as_me:$LINENO: checking for struct ipc_perm._seq" >&5
20706echo $ECHO_N "checking for struct ipc_perm._seq... $ECHO_C" >&6; }
20707if test "${ac_cv_member_struct_ipc_perm__seq+set}" = set; then
20708  echo $ECHO_N "(cached) $ECHO_C" >&6
20709else
20710  cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h.  */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h.  */
20716
20717#include <sys/types.h>
20718#include <sys/ipc.h>
20719
20720
20721int
20722main ()
20723{
20724static struct ipc_perm ac_aggr;
20725if (ac_aggr._seq)
20726return 0;
20727  ;
20728  return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext
20732if { (ac_try="$ac_compile"
20733case "(($ac_try" in
20734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735  *) ac_try_echo=$ac_try;;
20736esac
20737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738  (eval "$ac_compile") 2>conftest.er1
20739  ac_status=$?
20740  grep -v '^ *+' conftest.er1 >conftest.err
20741  rm -f conftest.er1
20742  cat conftest.err >&5
20743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744  (exit $ac_status); } && {
20745	 test -z "$ac_c_werror_flag" ||
20746	 test ! -s conftest.err
20747       } && test -s conftest.$ac_objext; then
20748  ac_cv_member_struct_ipc_perm__seq=yes
20749else
20750  echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753	cat >conftest.$ac_ext <<_ACEOF
20754/* confdefs.h.  */
20755_ACEOF
20756cat confdefs.h >>conftest.$ac_ext
20757cat >>conftest.$ac_ext <<_ACEOF
20758/* end confdefs.h.  */
20759
20760#include <sys/types.h>
20761#include <sys/ipc.h>
20762
20763
20764int
20765main ()
20766{
20767static struct ipc_perm ac_aggr;
20768if (sizeof ac_aggr._seq)
20769return 0;
20770  ;
20771  return 0;
20772}
20773_ACEOF
20774rm -f conftest.$ac_objext
20775if { (ac_try="$ac_compile"
20776case "(($ac_try" in
20777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778  *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781  (eval "$ac_compile") 2>conftest.er1
20782  ac_status=$?
20783  grep -v '^ *+' conftest.er1 >conftest.err
20784  rm -f conftest.er1
20785  cat conftest.err >&5
20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787  (exit $ac_status); } && {
20788	 test -z "$ac_c_werror_flag" ||
20789	 test ! -s conftest.err
20790       } && test -s conftest.$ac_objext; then
20791  ac_cv_member_struct_ipc_perm__seq=yes
20792else
20793  echo "$as_me: failed program was:" >&5
20794sed 's/^/| /' conftest.$ac_ext >&5
20795
20796	ac_cv_member_struct_ipc_perm__seq=no
20797fi
20798
20799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20800fi
20801
20802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803fi
20804{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__seq" >&5
20805echo "${ECHO_T}$ac_cv_member_struct_ipc_perm__seq" >&6; }
20806if test $ac_cv_member_struct_ipc_perm__seq = yes; then
20807
20808cat >>confdefs.h <<\_ACEOF
20809#define HAVE_IPC_PERM__SEQ
20810_ACEOF
20811
20812fi
20813
20814
20815{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20816echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20817if test "${ac_cv_header_time+set}" = set; then
20818  echo $ECHO_N "(cached) $ECHO_C" >&6
20819else
20820  cat >conftest.$ac_ext <<_ACEOF
20821/* confdefs.h.  */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h.  */
20826#include <sys/types.h>
20827#include <sys/time.h>
20828#include <time.h>
20829
20830int
20831main ()
20832{
20833if ((struct tm *) 0)
20834return 0;
20835  ;
20836  return 0;
20837}
20838_ACEOF
20839rm -f conftest.$ac_objext
20840if { (ac_try="$ac_compile"
20841case "(($ac_try" in
20842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843  *) ac_try_echo=$ac_try;;
20844esac
20845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846  (eval "$ac_compile") 2>conftest.er1
20847  ac_status=$?
20848  grep -v '^ *+' conftest.er1 >conftest.err
20849  rm -f conftest.er1
20850  cat conftest.err >&5
20851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852  (exit $ac_status); } && {
20853	 test -z "$ac_c_werror_flag" ||
20854	 test ! -s conftest.err
20855       } && test -s conftest.$ac_objext; then
20856  ac_cv_header_time=yes
20857else
20858  echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861	ac_cv_header_time=no
20862fi
20863
20864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865fi
20866{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20867echo "${ECHO_T}$ac_cv_header_time" >&6; }
20868if test $ac_cv_header_time = yes; then
20869
20870cat >>confdefs.h <<\_ACEOF
20871#define TIME_WITH_SYS_TIME 1
20872_ACEOF
20873
20874fi
20875
20876{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20877echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20878if test "${ac_cv_struct_tm+set}" = set; then
20879  echo $ECHO_N "(cached) $ECHO_C" >&6
20880else
20881  cat >conftest.$ac_ext <<_ACEOF
20882/* confdefs.h.  */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
20886/* end confdefs.h.  */
20887#include <sys/types.h>
20888#include <time.h>
20889
20890int
20891main ()
20892{
20893struct tm tm;
20894				     int *p = &tm.tm_sec;
20895 				     return !p;
20896  ;
20897  return 0;
20898}
20899_ACEOF
20900rm -f conftest.$ac_objext
20901if { (ac_try="$ac_compile"
20902case "(($ac_try" in
20903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904  *) ac_try_echo=$ac_try;;
20905esac
20906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907  (eval "$ac_compile") 2>conftest.er1
20908  ac_status=$?
20909  grep -v '^ *+' conftest.er1 >conftest.err
20910  rm -f conftest.er1
20911  cat conftest.err >&5
20912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913  (exit $ac_status); } && {
20914	 test -z "$ac_c_werror_flag" ||
20915	 test ! -s conftest.err
20916       } && test -s conftest.$ac_objext; then
20917  ac_cv_struct_tm=time.h
20918else
20919  echo "$as_me: failed program was:" >&5
20920sed 's/^/| /' conftest.$ac_ext >&5
20921
20922	ac_cv_struct_tm=sys/time.h
20923fi
20924
20925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926fi
20927{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20928echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20929if test $ac_cv_struct_tm = sys/time.h; then
20930
20931cat >>confdefs.h <<\_ACEOF
20932#define TM_IN_SYS_TIME 1
20933_ACEOF
20934
20935fi
20936
20937
20938# Checks for library functions.
20939
20940for ac_header in unistd.h
20941do
20942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20944  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20947  echo $ECHO_N "(cached) $ECHO_C" >&6
20948fi
20949ac_res=`eval echo '${'$as_ac_Header'}'`
20950	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20951echo "${ECHO_T}$ac_res" >&6; }
20952else
20953  # Is the header compilable?
20954{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20955echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20956cat >conftest.$ac_ext <<_ACEOF
20957/* confdefs.h.  */
20958_ACEOF
20959cat confdefs.h >>conftest.$ac_ext
20960cat >>conftest.$ac_ext <<_ACEOF
20961/* end confdefs.h.  */
20962$ac_includes_default
20963#include <$ac_header>
20964_ACEOF
20965rm -f conftest.$ac_objext
20966if { (ac_try="$ac_compile"
20967case "(($ac_try" in
20968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969  *) ac_try_echo=$ac_try;;
20970esac
20971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972  (eval "$ac_compile") 2>conftest.er1
20973  ac_status=$?
20974  grep -v '^ *+' conftest.er1 >conftest.err
20975  rm -f conftest.er1
20976  cat conftest.err >&5
20977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978  (exit $ac_status); } && {
20979	 test -z "$ac_c_werror_flag" ||
20980	 test ! -s conftest.err
20981       } && test -s conftest.$ac_objext; then
20982  ac_header_compiler=yes
20983else
20984  echo "$as_me: failed program was:" >&5
20985sed 's/^/| /' conftest.$ac_ext >&5
20986
20987	ac_header_compiler=no
20988fi
20989
20990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20992echo "${ECHO_T}$ac_header_compiler" >&6; }
20993
20994# Is the header present?
20995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20997cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h.  */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h.  */
21003#include <$ac_header>
21004_ACEOF
21005if { (ac_try="$ac_cpp conftest.$ac_ext"
21006case "(($ac_try" in
21007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008  *) ac_try_echo=$ac_try;;
21009esac
21010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21012  ac_status=$?
21013  grep -v '^ *+' conftest.er1 >conftest.err
21014  rm -f conftest.er1
21015  cat conftest.err >&5
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); } >/dev/null && {
21018	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21019	 test ! -s conftest.err
21020       }; then
21021  ac_header_preproc=yes
21022else
21023  echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
21026  ac_header_preproc=no
21027fi
21028
21029rm -f conftest.err conftest.$ac_ext
21030{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21031echo "${ECHO_T}$ac_header_preproc" >&6; }
21032
21033# So?  What about this header?
21034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21035  yes:no: )
21036    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21038    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21040    ac_header_preproc=yes
21041    ;;
21042  no:yes:* )
21043    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21045    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21046echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21047    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21049    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21050echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21051    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21053    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21055    ( cat <<\_ASBOX
21056## ----------------------------------------------- ##
21057## Report this to trustedbsd-audit@TrustesdBSD.org ##
21058## ----------------------------------------------- ##
21059_ASBOX
21060     ) | sed "s/^/$as_me: WARNING:     /" >&2
21061    ;;
21062esac
21063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066  echo $ECHO_N "(cached) $ECHO_C" >&6
21067else
21068  eval "$as_ac_Header=\$ac_header_preproc"
21069fi
21070ac_res=`eval echo '${'$as_ac_Header'}'`
21071	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21072echo "${ECHO_T}$ac_res" >&6; }
21073
21074fi
21075if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076  cat >>confdefs.h <<_ACEOF
21077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078_ACEOF
21079
21080fi
21081
21082done
21083
21084{ echo "$as_me:$LINENO: checking for working chown" >&5
21085echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
21086if test "${ac_cv_func_chown_works+set}" = set; then
21087  echo $ECHO_N "(cached) $ECHO_C" >&6
21088else
21089  if test "$cross_compiling" = yes; then
21090  ac_cv_func_chown_works=no
21091else
21092  cat >conftest.$ac_ext <<_ACEOF
21093/* confdefs.h.  */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h.  */
21098$ac_includes_default
21099#include <fcntl.h>
21100
21101int
21102main ()
21103{
21104  char *f = "conftest.chown";
21105  struct stat before, after;
21106
21107  if (creat (f, 0600) < 0)
21108    return 1;
21109  if (stat (f, &before) < 0)
21110    return 1;
21111  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21112    return 1;
21113  if (stat (f, &after) < 0)
21114    return 1;
21115  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21116
21117  ;
21118  return 0;
21119}
21120_ACEOF
21121rm -f conftest$ac_exeext
21122if { (ac_try="$ac_link"
21123case "(($ac_try" in
21124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125  *) ac_try_echo=$ac_try;;
21126esac
21127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128  (eval "$ac_link") 2>&5
21129  ac_status=$?
21130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132  { (case "(($ac_try" in
21133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134  *) ac_try_echo=$ac_try;;
21135esac
21136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137  (eval "$ac_try") 2>&5
21138  ac_status=$?
21139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140  (exit $ac_status); }; }; then
21141  ac_cv_func_chown_works=yes
21142else
21143  echo "$as_me: program exited with status $ac_status" >&5
21144echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147( exit $ac_status )
21148ac_cv_func_chown_works=no
21149fi
21150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151fi
21152
21153
21154rm -f conftest.chown
21155
21156fi
21157{ echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21158echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
21159if test $ac_cv_func_chown_works = yes; then
21160
21161cat >>confdefs.h <<\_ACEOF
21162#define HAVE_CHOWN 1
21163_ACEOF
21164
21165fi
21166
21167
21168for ac_header in vfork.h
21169do
21170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21172  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175  echo $ECHO_N "(cached) $ECHO_C" >&6
21176fi
21177ac_res=`eval echo '${'$as_ac_Header'}'`
21178	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21179echo "${ECHO_T}$ac_res" >&6; }
21180else
21181  # Is the header compilable?
21182{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21184cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h.  */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h.  */
21190$ac_includes_default
21191#include <$ac_header>
21192_ACEOF
21193rm -f conftest.$ac_objext
21194if { (ac_try="$ac_compile"
21195case "(($ac_try" in
21196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197  *) ac_try_echo=$ac_try;;
21198esac
21199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200  (eval "$ac_compile") 2>conftest.er1
21201  ac_status=$?
21202  grep -v '^ *+' conftest.er1 >conftest.err
21203  rm -f conftest.er1
21204  cat conftest.err >&5
21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); } && {
21207	 test -z "$ac_c_werror_flag" ||
21208	 test ! -s conftest.err
21209       } && test -s conftest.$ac_objext; then
21210  ac_header_compiler=yes
21211else
21212  echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215	ac_header_compiler=no
21216fi
21217
21218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21220echo "${ECHO_T}$ac_header_compiler" >&6; }
21221
21222# Is the header present?
21223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21225cat >conftest.$ac_ext <<_ACEOF
21226/* confdefs.h.  */
21227_ACEOF
21228cat confdefs.h >>conftest.$ac_ext
21229cat >>conftest.$ac_ext <<_ACEOF
21230/* end confdefs.h.  */
21231#include <$ac_header>
21232_ACEOF
21233if { (ac_try="$ac_cpp conftest.$ac_ext"
21234case "(($ac_try" in
21235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236  *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21240  ac_status=$?
21241  grep -v '^ *+' conftest.er1 >conftest.err
21242  rm -f conftest.er1
21243  cat conftest.err >&5
21244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245  (exit $ac_status); } >/dev/null && {
21246	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21247	 test ! -s conftest.err
21248       }; then
21249  ac_header_preproc=yes
21250else
21251  echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254  ac_header_preproc=no
21255fi
21256
21257rm -f conftest.err conftest.$ac_ext
21258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21259echo "${ECHO_T}$ac_header_preproc" >&6; }
21260
21261# So?  What about this header?
21262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21263  yes:no: )
21264    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21266    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21268    ac_header_preproc=yes
21269    ;;
21270  no:yes:* )
21271    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21273    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21274echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21275    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21277    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21278echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21279    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21281    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21283    ( cat <<\_ASBOX
21284## ----------------------------------------------- ##
21285## Report this to trustedbsd-audit@TrustesdBSD.org ##
21286## ----------------------------------------------- ##
21287_ASBOX
21288     ) | sed "s/^/$as_me: WARNING:     /" >&2
21289    ;;
21290esac
21291{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21294  echo $ECHO_N "(cached) $ECHO_C" >&6
21295else
21296  eval "$as_ac_Header=\$ac_header_preproc"
21297fi
21298ac_res=`eval echo '${'$as_ac_Header'}'`
21299	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21300echo "${ECHO_T}$ac_res" >&6; }
21301
21302fi
21303if test `eval echo '${'$as_ac_Header'}'` = yes; then
21304  cat >>confdefs.h <<_ACEOF
21305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306_ACEOF
21307
21308fi
21309
21310done
21311
21312
21313
21314for ac_func in fork vfork
21315do
21316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21317{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21320  echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322  cat >conftest.$ac_ext <<_ACEOF
21323/* confdefs.h.  */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
21327/* end confdefs.h.  */
21328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21329   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21330#define $ac_func innocuous_$ac_func
21331
21332/* System header to define __stub macros and hopefully few prototypes,
21333    which can conflict with char $ac_func (); below.
21334    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21335    <limits.h> exists even on freestanding compilers.  */
21336
21337#ifdef __STDC__
21338# include <limits.h>
21339#else
21340# include <assert.h>
21341#endif
21342
21343#undef $ac_func
21344
21345/* Override any GCC internal prototype to avoid an error.
21346   Use char because int might match the return type of a GCC
21347   builtin and then its argument prototype would still apply.  */
21348#ifdef __cplusplus
21349extern "C"
21350#endif
21351char $ac_func ();
21352/* The GNU C library defines this for functions which it implements
21353    to always fail with ENOSYS.  Some functions are actually named
21354    something starting with __ and the normal name is an alias.  */
21355#if defined __stub_$ac_func || defined __stub___$ac_func
21356choke me
21357#endif
21358
21359int
21360main ()
21361{
21362return $ac_func ();
21363  ;
21364  return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext conftest$ac_exeext
21368if { (ac_try="$ac_link"
21369case "(($ac_try" in
21370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371  *) ac_try_echo=$ac_try;;
21372esac
21373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374  (eval "$ac_link") 2>conftest.er1
21375  ac_status=$?
21376  grep -v '^ *+' conftest.er1 >conftest.err
21377  rm -f conftest.er1
21378  cat conftest.err >&5
21379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380  (exit $ac_status); } && {
21381	 test -z "$ac_c_werror_flag" ||
21382	 test ! -s conftest.err
21383       } && test -s conftest$ac_exeext &&
21384       $as_test_x conftest$ac_exeext; then
21385  eval "$as_ac_var=yes"
21386else
21387  echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390	eval "$as_ac_var=no"
21391fi
21392
21393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394      conftest$ac_exeext conftest.$ac_ext
21395fi
21396ac_res=`eval echo '${'$as_ac_var'}'`
21397	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21398echo "${ECHO_T}$ac_res" >&6; }
21399if test `eval echo '${'$as_ac_var'}'` = yes; then
21400  cat >>confdefs.h <<_ACEOF
21401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21402_ACEOF
21403
21404fi
21405done
21406
21407if test "x$ac_cv_func_fork" = xyes; then
21408  { echo "$as_me:$LINENO: checking for working fork" >&5
21409echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21410if test "${ac_cv_func_fork_works+set}" = set; then
21411  echo $ECHO_N "(cached) $ECHO_C" >&6
21412else
21413  if test "$cross_compiling" = yes; then
21414  ac_cv_func_fork_works=cross
21415else
21416  cat >conftest.$ac_ext <<_ACEOF
21417/* confdefs.h.  */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h.  */
21422$ac_includes_default
21423int
21424main ()
21425{
21426
21427	  /* By Ruediger Kuhlmann. */
21428	  return fork () < 0;
21429
21430  ;
21431  return 0;
21432}
21433_ACEOF
21434rm -f conftest$ac_exeext
21435if { (ac_try="$ac_link"
21436case "(($ac_try" in
21437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438  *) ac_try_echo=$ac_try;;
21439esac
21440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441  (eval "$ac_link") 2>&5
21442  ac_status=$?
21443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445  { (case "(($ac_try" in
21446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447  *) ac_try_echo=$ac_try;;
21448esac
21449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450  (eval "$ac_try") 2>&5
21451  ac_status=$?
21452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453  (exit $ac_status); }; }; then
21454  ac_cv_func_fork_works=yes
21455else
21456  echo "$as_me: program exited with status $ac_status" >&5
21457echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460( exit $ac_status )
21461ac_cv_func_fork_works=no
21462fi
21463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21464fi
21465
21466
21467fi
21468{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21469echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21470
21471else
21472  ac_cv_func_fork_works=$ac_cv_func_fork
21473fi
21474if test "x$ac_cv_func_fork_works" = xcross; then
21475  case $host in
21476    *-*-amigaos* | *-*-msdosdjgpp*)
21477      # Override, as these systems have only a dummy fork() stub
21478      ac_cv_func_fork_works=no
21479      ;;
21480    *)
21481      ac_cv_func_fork_works=yes
21482      ;;
21483  esac
21484  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21485echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21486fi
21487ac_cv_func_vfork_works=$ac_cv_func_vfork
21488if test "x$ac_cv_func_vfork" = xyes; then
21489  { echo "$as_me:$LINENO: checking for working vfork" >&5
21490echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21491if test "${ac_cv_func_vfork_works+set}" = set; then
21492  echo $ECHO_N "(cached) $ECHO_C" >&6
21493else
21494  if test "$cross_compiling" = yes; then
21495  ac_cv_func_vfork_works=cross
21496else
21497  cat >conftest.$ac_ext <<_ACEOF
21498/* confdefs.h.  */
21499_ACEOF
21500cat confdefs.h >>conftest.$ac_ext
21501cat >>conftest.$ac_ext <<_ACEOF
21502/* end confdefs.h.  */
21503/* Thanks to Paul Eggert for this test.  */
21504$ac_includes_default
21505#include <sys/wait.h>
21506#ifdef HAVE_VFORK_H
21507# include <vfork.h>
21508#endif
21509/* On some sparc systems, changes by the child to local and incoming
21510   argument registers are propagated back to the parent.  The compiler
21511   is told about this with #include <vfork.h>, but some compilers
21512   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21513   static variable whose address is put into a register that is
21514   clobbered by the vfork.  */
21515static void
21516#ifdef __cplusplus
21517sparc_address_test (int arg)
21518# else
21519sparc_address_test (arg) int arg;
21520#endif
21521{
21522  static pid_t child;
21523  if (!child) {
21524    child = vfork ();
21525    if (child < 0) {
21526      perror ("vfork");
21527      _exit(2);
21528    }
21529    if (!child) {
21530      arg = getpid();
21531      write(-1, "", 0);
21532      _exit (arg);
21533    }
21534  }
21535}
21536
21537int
21538main ()
21539{
21540  pid_t parent = getpid ();
21541  pid_t child;
21542
21543  sparc_address_test (0);
21544
21545  child = vfork ();
21546
21547  if (child == 0) {
21548    /* Here is another test for sparc vfork register problems.  This
21549       test uses lots of local variables, at least as many local
21550       variables as main has allocated so far including compiler
21551       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21552       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21553       reuse the register of parent for one of the local variables,
21554       since it will think that parent can't possibly be used any more
21555       in this routine.  Assigning to the local variable will thus
21556       munge parent in the parent process.  */
21557    pid_t
21558      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21559      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21560    /* Convince the compiler that p..p7 are live; otherwise, it might
21561       use the same hardware register for all 8 local variables.  */
21562    if (p != p1 || p != p2 || p != p3 || p != p4
21563	|| p != p5 || p != p6 || p != p7)
21564      _exit(1);
21565
21566    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21567       from child file descriptors.  If the child closes a descriptor
21568       before it execs or exits, this munges the parent's descriptor
21569       as well.  Test for this by closing stdout in the child.  */
21570    _exit(close(fileno(stdout)) != 0);
21571  } else {
21572    int status;
21573    struct stat st;
21574
21575    while (wait(&status) != child)
21576      ;
21577    return (
21578	 /* Was there some problem with vforking?  */
21579	 child < 0
21580
21581	 /* Did the child fail?  (This shouldn't happen.)  */
21582	 || status
21583
21584	 /* Did the vfork/compiler bug occur?  */
21585	 || parent != getpid()
21586
21587	 /* Did the file descriptor bug occur?  */
21588	 || fstat(fileno(stdout), &st) != 0
21589	 );
21590  }
21591}
21592_ACEOF
21593rm -f conftest$ac_exeext
21594if { (ac_try="$ac_link"
21595case "(($ac_try" in
21596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597  *) ac_try_echo=$ac_try;;
21598esac
21599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600  (eval "$ac_link") 2>&5
21601  ac_status=$?
21602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21604  { (case "(($ac_try" in
21605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606  *) ac_try_echo=$ac_try;;
21607esac
21608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609  (eval "$ac_try") 2>&5
21610  ac_status=$?
21611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612  (exit $ac_status); }; }; then
21613  ac_cv_func_vfork_works=yes
21614else
21615  echo "$as_me: program exited with status $ac_status" >&5
21616echo "$as_me: failed program was:" >&5
21617sed 's/^/| /' conftest.$ac_ext >&5
21618
21619( exit $ac_status )
21620ac_cv_func_vfork_works=no
21621fi
21622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21623fi
21624
21625
21626fi
21627{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21628echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21629
21630fi;
21631if test "x$ac_cv_func_fork_works" = xcross; then
21632  ac_cv_func_vfork_works=$ac_cv_func_vfork
21633  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21634echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21635fi
21636
21637if test "x$ac_cv_func_vfork_works" = xyes; then
21638
21639cat >>confdefs.h <<\_ACEOF
21640#define HAVE_WORKING_VFORK 1
21641_ACEOF
21642
21643else
21644
21645cat >>confdefs.h <<\_ACEOF
21646#define vfork fork
21647_ACEOF
21648
21649fi
21650if test "x$ac_cv_func_fork_works" = xyes; then
21651
21652cat >>confdefs.h <<\_ACEOF
21653#define HAVE_WORKING_FORK 1
21654_ACEOF
21655
21656fi
21657
21658
21659for ac_header in stdlib.h
21660do
21661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21663  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666  echo $ECHO_N "(cached) $ECHO_C" >&6
21667fi
21668ac_res=`eval echo '${'$as_ac_Header'}'`
21669	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21670echo "${ECHO_T}$ac_res" >&6; }
21671else
21672  # Is the header compilable?
21673{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21675cat >conftest.$ac_ext <<_ACEOF
21676/* confdefs.h.  */
21677_ACEOF
21678cat confdefs.h >>conftest.$ac_ext
21679cat >>conftest.$ac_ext <<_ACEOF
21680/* end confdefs.h.  */
21681$ac_includes_default
21682#include <$ac_header>
21683_ACEOF
21684rm -f conftest.$ac_objext
21685if { (ac_try="$ac_compile"
21686case "(($ac_try" in
21687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688  *) ac_try_echo=$ac_try;;
21689esac
21690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691  (eval "$ac_compile") 2>conftest.er1
21692  ac_status=$?
21693  grep -v '^ *+' conftest.er1 >conftest.err
21694  rm -f conftest.er1
21695  cat conftest.err >&5
21696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697  (exit $ac_status); } && {
21698	 test -z "$ac_c_werror_flag" ||
21699	 test ! -s conftest.err
21700       } && test -s conftest.$ac_objext; then
21701  ac_header_compiler=yes
21702else
21703  echo "$as_me: failed program was:" >&5
21704sed 's/^/| /' conftest.$ac_ext >&5
21705
21706	ac_header_compiler=no
21707fi
21708
21709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21711echo "${ECHO_T}$ac_header_compiler" >&6; }
21712
21713# Is the header present?
21714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21716cat >conftest.$ac_ext <<_ACEOF
21717/* confdefs.h.  */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h.  */
21722#include <$ac_header>
21723_ACEOF
21724if { (ac_try="$ac_cpp conftest.$ac_ext"
21725case "(($ac_try" in
21726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727  *) ac_try_echo=$ac_try;;
21728esac
21729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21731  ac_status=$?
21732  grep -v '^ *+' conftest.er1 >conftest.err
21733  rm -f conftest.er1
21734  cat conftest.err >&5
21735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736  (exit $ac_status); } >/dev/null && {
21737	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738	 test ! -s conftest.err
21739       }; then
21740  ac_header_preproc=yes
21741else
21742  echo "$as_me: failed program was:" >&5
21743sed 's/^/| /' conftest.$ac_ext >&5
21744
21745  ac_header_preproc=no
21746fi
21747
21748rm -f conftest.err conftest.$ac_ext
21749{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750echo "${ECHO_T}$ac_header_preproc" >&6; }
21751
21752# So?  What about this header?
21753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754  yes:no: )
21755    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21759    ac_header_preproc=yes
21760    ;;
21761  no:yes:* )
21762    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21764    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21765echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21766    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21768    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21769echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21772    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21774    ( cat <<\_ASBOX
21775## ----------------------------------------------- ##
21776## Report this to trustedbsd-audit@TrustesdBSD.org ##
21777## ----------------------------------------------- ##
21778_ASBOX
21779     ) | sed "s/^/$as_me: WARNING:     /" >&2
21780    ;;
21781esac
21782{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21785  echo $ECHO_N "(cached) $ECHO_C" >&6
21786else
21787  eval "$as_ac_Header=\$ac_header_preproc"
21788fi
21789ac_res=`eval echo '${'$as_ac_Header'}'`
21790	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21791echo "${ECHO_T}$ac_res" >&6; }
21792
21793fi
21794if test `eval echo '${'$as_ac_Header'}'` = yes; then
21795  cat >>confdefs.h <<_ACEOF
21796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21797_ACEOF
21798
21799fi
21800
21801done
21802
21803{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21804echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21805if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21806  echo $ECHO_N "(cached) $ECHO_C" >&6
21807else
21808  if test "$cross_compiling" = yes; then
21809  ac_cv_func_malloc_0_nonnull=no
21810else
21811  cat >conftest.$ac_ext <<_ACEOF
21812/* confdefs.h.  */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h.  */
21817#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21818# include <stdlib.h>
21819#else
21820char *malloc ();
21821#endif
21822
21823int
21824main ()
21825{
21826return ! malloc (0);
21827  ;
21828  return 0;
21829}
21830_ACEOF
21831rm -f conftest$ac_exeext
21832if { (ac_try="$ac_link"
21833case "(($ac_try" in
21834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835  *) ac_try_echo=$ac_try;;
21836esac
21837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838  (eval "$ac_link") 2>&5
21839  ac_status=$?
21840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842  { (case "(($ac_try" in
21843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844  *) ac_try_echo=$ac_try;;
21845esac
21846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847  (eval "$ac_try") 2>&5
21848  ac_status=$?
21849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850  (exit $ac_status); }; }; then
21851  ac_cv_func_malloc_0_nonnull=yes
21852else
21853  echo "$as_me: program exited with status $ac_status" >&5
21854echo "$as_me: failed program was:" >&5
21855sed 's/^/| /' conftest.$ac_ext >&5
21856
21857( exit $ac_status )
21858ac_cv_func_malloc_0_nonnull=no
21859fi
21860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21861fi
21862
21863
21864fi
21865{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21866echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21867if test $ac_cv_func_malloc_0_nonnull = yes; then
21868
21869cat >>confdefs.h <<\_ACEOF
21870#define HAVE_MALLOC 1
21871_ACEOF
21872
21873else
21874  cat >>confdefs.h <<\_ACEOF
21875#define HAVE_MALLOC 0
21876_ACEOF
21877
21878   case " $LIBOBJS " in
21879  *" malloc.$ac_objext "* ) ;;
21880  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21881 ;;
21882esac
21883
21884
21885cat >>confdefs.h <<\_ACEOF
21886#define malloc rpl_malloc
21887_ACEOF
21888
21889fi
21890
21891
21892
21893
21894
21895
21896
21897for ac_header in $ac_header_list
21898do
21899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21901  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21904  echo $ECHO_N "(cached) $ECHO_C" >&6
21905fi
21906ac_res=`eval echo '${'$as_ac_Header'}'`
21907	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21908echo "${ECHO_T}$ac_res" >&6; }
21909else
21910  # Is the header compilable?
21911{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21913cat >conftest.$ac_ext <<_ACEOF
21914/* confdefs.h.  */
21915_ACEOF
21916cat confdefs.h >>conftest.$ac_ext
21917cat >>conftest.$ac_ext <<_ACEOF
21918/* end confdefs.h.  */
21919$ac_includes_default
21920#include <$ac_header>
21921_ACEOF
21922rm -f conftest.$ac_objext
21923if { (ac_try="$ac_compile"
21924case "(($ac_try" in
21925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926  *) ac_try_echo=$ac_try;;
21927esac
21928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929  (eval "$ac_compile") 2>conftest.er1
21930  ac_status=$?
21931  grep -v '^ *+' conftest.er1 >conftest.err
21932  rm -f conftest.er1
21933  cat conftest.err >&5
21934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935  (exit $ac_status); } && {
21936	 test -z "$ac_c_werror_flag" ||
21937	 test ! -s conftest.err
21938       } && test -s conftest.$ac_objext; then
21939  ac_header_compiler=yes
21940else
21941  echo "$as_me: failed program was:" >&5
21942sed 's/^/| /' conftest.$ac_ext >&5
21943
21944	ac_header_compiler=no
21945fi
21946
21947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21949echo "${ECHO_T}$ac_header_compiler" >&6; }
21950
21951# Is the header present?
21952{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21954cat >conftest.$ac_ext <<_ACEOF
21955/* confdefs.h.  */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h.  */
21960#include <$ac_header>
21961_ACEOF
21962if { (ac_try="$ac_cpp conftest.$ac_ext"
21963case "(($ac_try" in
21964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965  *) ac_try_echo=$ac_try;;
21966esac
21967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21969  ac_status=$?
21970  grep -v '^ *+' conftest.er1 >conftest.err
21971  rm -f conftest.er1
21972  cat conftest.err >&5
21973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974  (exit $ac_status); } >/dev/null && {
21975	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21976	 test ! -s conftest.err
21977       }; then
21978  ac_header_preproc=yes
21979else
21980  echo "$as_me: failed program was:" >&5
21981sed 's/^/| /' conftest.$ac_ext >&5
21982
21983  ac_header_preproc=no
21984fi
21985
21986rm -f conftest.err conftest.$ac_ext
21987{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988echo "${ECHO_T}$ac_header_preproc" >&6; }
21989
21990# So?  What about this header?
21991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21992  yes:no: )
21993    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997    ac_header_preproc=yes
21998    ;;
21999  no:yes:* )
22000    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22003echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22004    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22007echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22012    ( cat <<\_ASBOX
22013## ----------------------------------------------- ##
22014## Report this to trustedbsd-audit@TrustesdBSD.org ##
22015## ----------------------------------------------- ##
22016_ASBOX
22017     ) | sed "s/^/$as_me: WARNING:     /" >&2
22018    ;;
22019esac
22020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22023  echo $ECHO_N "(cached) $ECHO_C" >&6
22024else
22025  eval "$as_ac_Header=\$ac_header_preproc"
22026fi
22027ac_res=`eval echo '${'$as_ac_Header'}'`
22028	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22029echo "${ECHO_T}$ac_res" >&6; }
22030
22031fi
22032if test `eval echo '${'$as_ac_Header'}'` = yes; then
22033  cat >>confdefs.h <<_ACEOF
22034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22035_ACEOF
22036
22037fi
22038
22039done
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049for ac_func in $ac_func_list
22050do
22051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22052{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22055  echo $ECHO_N "(cached) $ECHO_C" >&6
22056else
22057  cat >conftest.$ac_ext <<_ACEOF
22058/* confdefs.h.  */
22059_ACEOF
22060cat confdefs.h >>conftest.$ac_ext
22061cat >>conftest.$ac_ext <<_ACEOF
22062/* end confdefs.h.  */
22063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22065#define $ac_func innocuous_$ac_func
22066
22067/* System header to define __stub macros and hopefully few prototypes,
22068    which can conflict with char $ac_func (); below.
22069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22070    <limits.h> exists even on freestanding compilers.  */
22071
22072#ifdef __STDC__
22073# include <limits.h>
22074#else
22075# include <assert.h>
22076#endif
22077
22078#undef $ac_func
22079
22080/* Override any GCC internal prototype to avoid an error.
22081   Use char because int might match the return type of a GCC
22082   builtin and then its argument prototype would still apply.  */
22083#ifdef __cplusplus
22084extern "C"
22085#endif
22086char $ac_func ();
22087/* The GNU C library defines this for functions which it implements
22088    to always fail with ENOSYS.  Some functions are actually named
22089    something starting with __ and the normal name is an alias.  */
22090#if defined __stub_$ac_func || defined __stub___$ac_func
22091choke me
22092#endif
22093
22094int
22095main ()
22096{
22097return $ac_func ();
22098  ;
22099  return 0;
22100}
22101_ACEOF
22102rm -f conftest.$ac_objext conftest$ac_exeext
22103if { (ac_try="$ac_link"
22104case "(($ac_try" in
22105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106  *) ac_try_echo=$ac_try;;
22107esac
22108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109  (eval "$ac_link") 2>conftest.er1
22110  ac_status=$?
22111  grep -v '^ *+' conftest.er1 >conftest.err
22112  rm -f conftest.er1
22113  cat conftest.err >&5
22114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115  (exit $ac_status); } && {
22116	 test -z "$ac_c_werror_flag" ||
22117	 test ! -s conftest.err
22118       } && test -s conftest$ac_exeext &&
22119       $as_test_x conftest$ac_exeext; then
22120  eval "$as_ac_var=yes"
22121else
22122  echo "$as_me: failed program was:" >&5
22123sed 's/^/| /' conftest.$ac_ext >&5
22124
22125	eval "$as_ac_var=no"
22126fi
22127
22128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22129      conftest$ac_exeext conftest.$ac_ext
22130fi
22131ac_res=`eval echo '${'$as_ac_var'}'`
22132	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22133echo "${ECHO_T}$ac_res" >&6; }
22134if test `eval echo '${'$as_ac_var'}'` = yes; then
22135  cat >>confdefs.h <<_ACEOF
22136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22137_ACEOF
22138
22139fi
22140done
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158{ echo "$as_me:$LINENO: checking for working mktime" >&5
22159echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
22160if test "${ac_cv_func_working_mktime+set}" = set; then
22161  echo $ECHO_N "(cached) $ECHO_C" >&6
22162else
22163  if test "$cross_compiling" = yes; then
22164  ac_cv_func_working_mktime=no
22165else
22166  cat >conftest.$ac_ext <<_ACEOF
22167/* confdefs.h.  */
22168_ACEOF
22169cat confdefs.h >>conftest.$ac_ext
22170cat >>conftest.$ac_ext <<_ACEOF
22171/* end confdefs.h.  */
22172/* Test program from Paul Eggert and Tony Leneis.  */
22173#ifdef TIME_WITH_SYS_TIME
22174# include <sys/time.h>
22175# include <time.h>
22176#else
22177# ifdef HAVE_SYS_TIME_H
22178#  include <sys/time.h>
22179# else
22180#  include <time.h>
22181# endif
22182#endif
22183
22184#include <stdlib.h>
22185
22186#ifdef HAVE_UNISTD_H
22187# include <unistd.h>
22188#endif
22189
22190#ifndef HAVE_ALARM
22191# define alarm(X) /* empty */
22192#endif
22193
22194/* Work around redefinition to rpl_putenv by other config tests.  */
22195#undef putenv
22196
22197static time_t time_t_max;
22198static time_t time_t_min;
22199
22200/* Values we'll use to set the TZ environment variable.  */
22201static char *tz_strings[] = {
22202  (char *) 0, "TZ=GMT0", "TZ=JST-9",
22203  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22204};
22205#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22206
22207/* Return 0 if mktime fails to convert a date in the spring-forward gap.
22208   Based on a problem report from Andreas Jaeger.  */
22209static int
22210spring_forward_gap ()
22211{
22212  /* glibc (up to about 1998-10-07) failed this test. */
22213  struct tm tm;
22214
22215  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22216     instead of "TZ=America/Vancouver" in order to detect the bug even
22217     on systems that don't support the Olson extension, or don't have the
22218     full zoneinfo tables installed.  */
22219  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22220
22221  tm.tm_year = 98;
22222  tm.tm_mon = 3;
22223  tm.tm_mday = 5;
22224  tm.tm_hour = 2;
22225  tm.tm_min = 0;
22226  tm.tm_sec = 0;
22227  tm.tm_isdst = -1;
22228  return mktime (&tm) != (time_t) -1;
22229}
22230
22231static int
22232mktime_test1 (now)
22233     time_t now;
22234{
22235  struct tm *lt;
22236  return ! (lt = localtime (&now)) || mktime (lt) == now;
22237}
22238
22239static int
22240mktime_test (now)
22241     time_t now;
22242{
22243  return (mktime_test1 (now)
22244	  && mktime_test1 ((time_t) (time_t_max - now))
22245	  && mktime_test1 ((time_t) (time_t_min + now)));
22246}
22247
22248static int
22249irix_6_4_bug ()
22250{
22251  /* Based on code from Ariel Faigon.  */
22252  struct tm tm;
22253  tm.tm_year = 96;
22254  tm.tm_mon = 3;
22255  tm.tm_mday = 0;
22256  tm.tm_hour = 0;
22257  tm.tm_min = 0;
22258  tm.tm_sec = 0;
22259  tm.tm_isdst = -1;
22260  mktime (&tm);
22261  return tm.tm_mon == 2 && tm.tm_mday == 31;
22262}
22263
22264static int
22265bigtime_test (j)
22266     int j;
22267{
22268  struct tm tm;
22269  time_t now;
22270  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22271  now = mktime (&tm);
22272  if (now != (time_t) -1)
22273    {
22274      struct tm *lt = localtime (&now);
22275      if (! (lt
22276	     && lt->tm_year == tm.tm_year
22277	     && lt->tm_mon == tm.tm_mon
22278	     && lt->tm_mday == tm.tm_mday
22279	     && lt->tm_hour == tm.tm_hour
22280	     && lt->tm_min == tm.tm_min
22281	     && lt->tm_sec == tm.tm_sec
22282	     && lt->tm_yday == tm.tm_yday
22283	     && lt->tm_wday == tm.tm_wday
22284	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22285		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22286	return 0;
22287    }
22288  return 1;
22289}
22290
22291static int
22292year_2050_test ()
22293{
22294  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22295     ignoring leap seconds.  */
22296  unsigned long int answer = 2527315200UL;
22297
22298  struct tm tm;
22299  time_t t;
22300  tm.tm_year = 2050 - 1900;
22301  tm.tm_mon = 2 - 1;
22302  tm.tm_mday = 1;
22303  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22304  tm.tm_isdst = -1;
22305
22306  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22307     instead of "TZ=America/Vancouver" in order to detect the bug even
22308     on systems that don't support the Olson extension, or don't have the
22309     full zoneinfo tables installed.  */
22310  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22311
22312  t = mktime (&tm);
22313
22314  /* Check that the result is either a failure, or close enough
22315     to the correct answer that we can assume the discrepancy is
22316     due to leap seconds.  */
22317  return (t == (time_t) -1
22318	  || (0 < t && answer - 120 <= t && t <= answer + 120));
22319}
22320
22321int
22322main ()
22323{
22324  time_t t, delta;
22325  int i, j;
22326
22327  /* This test makes some buggy mktime implementations loop.
22328     Give up after 60 seconds; a mktime slower than that
22329     isn't worth using anyway.  */
22330  alarm (60);
22331
22332  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22333    continue;
22334  time_t_max--;
22335  if ((time_t) -1 < 0)
22336    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22337      continue;
22338  delta = time_t_max / 997; /* a suitable prime number */
22339  for (i = 0; i < N_STRINGS; i++)
22340    {
22341      if (tz_strings[i])
22342	putenv (tz_strings[i]);
22343
22344      for (t = 0; t <= time_t_max - delta; t += delta)
22345	if (! mktime_test (t))
22346	  return 1;
22347      if (! (mktime_test ((time_t) 1)
22348	     && mktime_test ((time_t) (60 * 60))
22349	     && mktime_test ((time_t) (60 * 60 * 24))))
22350	return 1;
22351
22352      for (j = 1; 0 < j; j *= 2)
22353	if (! bigtime_test (j))
22354	  return 1;
22355      if (! bigtime_test (j - 1))
22356	return 1;
22357    }
22358  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
22359}
22360_ACEOF
22361rm -f conftest$ac_exeext
22362if { (ac_try="$ac_link"
22363case "(($ac_try" in
22364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365  *) ac_try_echo=$ac_try;;
22366esac
22367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368  (eval "$ac_link") 2>&5
22369  ac_status=$?
22370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22372  { (case "(($ac_try" in
22373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374  *) ac_try_echo=$ac_try;;
22375esac
22376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377  (eval "$ac_try") 2>&5
22378  ac_status=$?
22379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380  (exit $ac_status); }; }; then
22381  ac_cv_func_working_mktime=yes
22382else
22383  echo "$as_me: program exited with status $ac_status" >&5
22384echo "$as_me: failed program was:" >&5
22385sed 's/^/| /' conftest.$ac_ext >&5
22386
22387( exit $ac_status )
22388ac_cv_func_working_mktime=no
22389fi
22390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22391fi
22392
22393
22394fi
22395{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22396echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22397if test $ac_cv_func_working_mktime = no; then
22398  case " $LIBOBJS " in
22399  *" mktime.$ac_objext "* ) ;;
22400  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22401 ;;
22402esac
22403
22404fi
22405
22406{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22407echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22408if test "${ac_cv_type_signal+set}" = set; then
22409  echo $ECHO_N "(cached) $ECHO_C" >&6
22410else
22411  cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h.  */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h.  */
22417#include <sys/types.h>
22418#include <signal.h>
22419
22420int
22421main ()
22422{
22423return *(signal (0, 0)) (0) == 1;
22424  ;
22425  return 0;
22426}
22427_ACEOF
22428rm -f conftest.$ac_objext
22429if { (ac_try="$ac_compile"
22430case "(($ac_try" in
22431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432  *) ac_try_echo=$ac_try;;
22433esac
22434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435  (eval "$ac_compile") 2>conftest.er1
22436  ac_status=$?
22437  grep -v '^ *+' conftest.er1 >conftest.err
22438  rm -f conftest.er1
22439  cat conftest.err >&5
22440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441  (exit $ac_status); } && {
22442	 test -z "$ac_c_werror_flag" ||
22443	 test ! -s conftest.err
22444       } && test -s conftest.$ac_objext; then
22445  ac_cv_type_signal=int
22446else
22447  echo "$as_me: failed program was:" >&5
22448sed 's/^/| /' conftest.$ac_ext >&5
22449
22450	ac_cv_type_signal=void
22451fi
22452
22453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454fi
22455{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22456echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22457
22458cat >>confdefs.h <<_ACEOF
22459#define RETSIGTYPE $ac_cv_type_signal
22460_ACEOF
22461
22462
22463{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22464echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22465if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22466  echo $ECHO_N "(cached) $ECHO_C" >&6
22467else
22468  rm -f conftest.sym conftest.file
22469echo >conftest.file
22470if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22471  if test "$cross_compiling" = yes; then
22472  ac_cv_func_lstat_dereferences_slashed_symlink=no
22473else
22474  cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h.  */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h.  */
22480$ac_includes_default
22481int
22482main ()
22483{
22484struct stat sbuf;
22485     /* Linux will dereference the symlink and fail.
22486	That is better in the sense that it means we will not
22487	have to compile and use the lstat wrapper.  */
22488     return lstat ("conftest.sym/", &sbuf) == 0;
22489  ;
22490  return 0;
22491}
22492_ACEOF
22493rm -f conftest$ac_exeext
22494if { (ac_try="$ac_link"
22495case "(($ac_try" in
22496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497  *) ac_try_echo=$ac_try;;
22498esac
22499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500  (eval "$ac_link") 2>&5
22501  ac_status=$?
22502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22504  { (case "(($ac_try" in
22505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506  *) ac_try_echo=$ac_try;;
22507esac
22508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509  (eval "$ac_try") 2>&5
22510  ac_status=$?
22511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512  (exit $ac_status); }; }; then
22513  ac_cv_func_lstat_dereferences_slashed_symlink=yes
22514else
22515  echo "$as_me: program exited with status $ac_status" >&5
22516echo "$as_me: failed program was:" >&5
22517sed 's/^/| /' conftest.$ac_ext >&5
22518
22519( exit $ac_status )
22520ac_cv_func_lstat_dereferences_slashed_symlink=no
22521fi
22522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22523fi
22524
22525
22526else
22527  # If the `ln -s' command failed, then we probably don't even
22528  # have an lstat function.
22529  ac_cv_func_lstat_dereferences_slashed_symlink=no
22530fi
22531rm -f conftest.sym conftest.file
22532
22533fi
22534{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22535echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22536
22537test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22538
22539cat >>confdefs.h <<_ACEOF
22540#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22541_ACEOF
22542
22543
22544if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22545  case " $LIBOBJS " in
22546  *" lstat.$ac_objext "* ) ;;
22547  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22548 ;;
22549esac
22550
22551fi
22552
22553{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22554echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22555if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22556  echo $ECHO_N "(cached) $ECHO_C" >&6
22557else
22558  if test "$cross_compiling" = yes; then
22559  ac_cv_func_stat_empty_string_bug=yes
22560else
22561  cat >conftest.$ac_ext <<_ACEOF
22562/* confdefs.h.  */
22563_ACEOF
22564cat confdefs.h >>conftest.$ac_ext
22565cat >>conftest.$ac_ext <<_ACEOF
22566/* end confdefs.h.  */
22567$ac_includes_default
22568int
22569main ()
22570{
22571struct stat sbuf;
22572  return stat ("", &sbuf) == 0;
22573  ;
22574  return 0;
22575}
22576_ACEOF
22577rm -f conftest$ac_exeext
22578if { (ac_try="$ac_link"
22579case "(($ac_try" in
22580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581  *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584  (eval "$ac_link") 2>&5
22585  ac_status=$?
22586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22588  { (case "(($ac_try" in
22589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590  *) ac_try_echo=$ac_try;;
22591esac
22592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593  (eval "$ac_try") 2>&5
22594  ac_status=$?
22595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596  (exit $ac_status); }; }; then
22597  ac_cv_func_stat_empty_string_bug=no
22598else
22599  echo "$as_me: program exited with status $ac_status" >&5
22600echo "$as_me: failed program was:" >&5
22601sed 's/^/| /' conftest.$ac_ext >&5
22602
22603( exit $ac_status )
22604ac_cv_func_stat_empty_string_bug=yes
22605fi
22606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607fi
22608
22609
22610fi
22611{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22612echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22613if test $ac_cv_func_stat_empty_string_bug = yes; then
22614  case " $LIBOBJS " in
22615  *" stat.$ac_objext "* ) ;;
22616  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22617 ;;
22618esac
22619
22620
22621cat >>confdefs.h <<_ACEOF
22622#define HAVE_STAT_EMPTY_STRING_BUG 1
22623_ACEOF
22624
22625fi
22626
22627
22628for ac_func in strftime
22629do
22630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22631{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22633if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22634  echo $ECHO_N "(cached) $ECHO_C" >&6
22635else
22636  cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h.  */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h.  */
22642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22643   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22644#define $ac_func innocuous_$ac_func
22645
22646/* System header to define __stub macros and hopefully few prototypes,
22647    which can conflict with char $ac_func (); below.
22648    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22649    <limits.h> exists even on freestanding compilers.  */
22650
22651#ifdef __STDC__
22652# include <limits.h>
22653#else
22654# include <assert.h>
22655#endif
22656
22657#undef $ac_func
22658
22659/* Override any GCC internal prototype to avoid an error.
22660   Use char because int might match the return type of a GCC
22661   builtin and then its argument prototype would still apply.  */
22662#ifdef __cplusplus
22663extern "C"
22664#endif
22665char $ac_func ();
22666/* The GNU C library defines this for functions which it implements
22667    to always fail with ENOSYS.  Some functions are actually named
22668    something starting with __ and the normal name is an alias.  */
22669#if defined __stub_$ac_func || defined __stub___$ac_func
22670choke me
22671#endif
22672
22673int
22674main ()
22675{
22676return $ac_func ();
22677  ;
22678  return 0;
22679}
22680_ACEOF
22681rm -f conftest.$ac_objext conftest$ac_exeext
22682if { (ac_try="$ac_link"
22683case "(($ac_try" in
22684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685  *) ac_try_echo=$ac_try;;
22686esac
22687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688  (eval "$ac_link") 2>conftest.er1
22689  ac_status=$?
22690  grep -v '^ *+' conftest.er1 >conftest.err
22691  rm -f conftest.er1
22692  cat conftest.err >&5
22693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694  (exit $ac_status); } && {
22695	 test -z "$ac_c_werror_flag" ||
22696	 test ! -s conftest.err
22697       } && test -s conftest$ac_exeext &&
22698       $as_test_x conftest$ac_exeext; then
22699  eval "$as_ac_var=yes"
22700else
22701  echo "$as_me: failed program was:" >&5
22702sed 's/^/| /' conftest.$ac_ext >&5
22703
22704	eval "$as_ac_var=no"
22705fi
22706
22707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708      conftest$ac_exeext conftest.$ac_ext
22709fi
22710ac_res=`eval echo '${'$as_ac_var'}'`
22711	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22712echo "${ECHO_T}$ac_res" >&6; }
22713if test `eval echo '${'$as_ac_var'}'` = yes; then
22714  cat >>confdefs.h <<_ACEOF
22715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22716_ACEOF
22717
22718else
22719  # strftime is in -lintl on SCO UNIX.
22720{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22721echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22722if test "${ac_cv_lib_intl_strftime+set}" = set; then
22723  echo $ECHO_N "(cached) $ECHO_C" >&6
22724else
22725  ac_check_lib_save_LIBS=$LIBS
22726LIBS="-lintl  $LIBS"
22727cat >conftest.$ac_ext <<_ACEOF
22728/* confdefs.h.  */
22729_ACEOF
22730cat confdefs.h >>conftest.$ac_ext
22731cat >>conftest.$ac_ext <<_ACEOF
22732/* end confdefs.h.  */
22733
22734/* Override any GCC internal prototype to avoid an error.
22735   Use char because int might match the return type of a GCC
22736   builtin and then its argument prototype would still apply.  */
22737#ifdef __cplusplus
22738extern "C"
22739#endif
22740char strftime ();
22741int
22742main ()
22743{
22744return strftime ();
22745  ;
22746  return 0;
22747}
22748_ACEOF
22749rm -f conftest.$ac_objext conftest$ac_exeext
22750if { (ac_try="$ac_link"
22751case "(($ac_try" in
22752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753  *) ac_try_echo=$ac_try;;
22754esac
22755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756  (eval "$ac_link") 2>conftest.er1
22757  ac_status=$?
22758  grep -v '^ *+' conftest.er1 >conftest.err
22759  rm -f conftest.er1
22760  cat conftest.err >&5
22761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762  (exit $ac_status); } && {
22763	 test -z "$ac_c_werror_flag" ||
22764	 test ! -s conftest.err
22765       } && test -s conftest$ac_exeext &&
22766       $as_test_x conftest$ac_exeext; then
22767  ac_cv_lib_intl_strftime=yes
22768else
22769  echo "$as_me: failed program was:" >&5
22770sed 's/^/| /' conftest.$ac_ext >&5
22771
22772	ac_cv_lib_intl_strftime=no
22773fi
22774
22775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22776      conftest$ac_exeext conftest.$ac_ext
22777LIBS=$ac_check_lib_save_LIBS
22778fi
22779{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22780echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22781if test $ac_cv_lib_intl_strftime = yes; then
22782  cat >>confdefs.h <<\_ACEOF
22783#define HAVE_STRFTIME 1
22784_ACEOF
22785
22786LIBS="-lintl $LIBS"
22787fi
22788
22789fi
22790done
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strlcpy strrchr strstr strtol strtoul pthread_mutex_lock
22808do
22809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22810{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22813  echo $ECHO_N "(cached) $ECHO_C" >&6
22814else
22815  cat >conftest.$ac_ext <<_ACEOF
22816/* confdefs.h.  */
22817_ACEOF
22818cat confdefs.h >>conftest.$ac_ext
22819cat >>conftest.$ac_ext <<_ACEOF
22820/* end confdefs.h.  */
22821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22823#define $ac_func innocuous_$ac_func
22824
22825/* System header to define __stub macros and hopefully few prototypes,
22826    which can conflict with char $ac_func (); below.
22827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22828    <limits.h> exists even on freestanding compilers.  */
22829
22830#ifdef __STDC__
22831# include <limits.h>
22832#else
22833# include <assert.h>
22834#endif
22835
22836#undef $ac_func
22837
22838/* Override any GCC internal prototype to avoid an error.
22839   Use char because int might match the return type of a GCC
22840   builtin and then its argument prototype would still apply.  */
22841#ifdef __cplusplus
22842extern "C"
22843#endif
22844char $ac_func ();
22845/* The GNU C library defines this for functions which it implements
22846    to always fail with ENOSYS.  Some functions are actually named
22847    something starting with __ and the normal name is an alias.  */
22848#if defined __stub_$ac_func || defined __stub___$ac_func
22849choke me
22850#endif
22851
22852int
22853main ()
22854{
22855return $ac_func ();
22856  ;
22857  return 0;
22858}
22859_ACEOF
22860rm -f conftest.$ac_objext conftest$ac_exeext
22861if { (ac_try="$ac_link"
22862case "(($ac_try" in
22863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864  *) ac_try_echo=$ac_try;;
22865esac
22866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867  (eval "$ac_link") 2>conftest.er1
22868  ac_status=$?
22869  grep -v '^ *+' conftest.er1 >conftest.err
22870  rm -f conftest.er1
22871  cat conftest.err >&5
22872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873  (exit $ac_status); } && {
22874	 test -z "$ac_c_werror_flag" ||
22875	 test ! -s conftest.err
22876       } && test -s conftest$ac_exeext &&
22877       $as_test_x conftest$ac_exeext; then
22878  eval "$as_ac_var=yes"
22879else
22880  echo "$as_me: failed program was:" >&5
22881sed 's/^/| /' conftest.$ac_ext >&5
22882
22883	eval "$as_ac_var=no"
22884fi
22885
22886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22887      conftest$ac_exeext conftest.$ac_ext
22888fi
22889ac_res=`eval echo '${'$as_ac_var'}'`
22890	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22891echo "${ECHO_T}$ac_res" >&6; }
22892if test `eval echo '${'$as_ac_var'}'` = yes; then
22893  cat >>confdefs.h <<_ACEOF
22894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22895_ACEOF
22896
22897fi
22898done
22899
22900
22901# sys/queue.h exists on most systems, but its capabilities vary a great deal.
22902# test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22903# all of them, and are necessary for OpenBSM.
22904cat >conftest.$ac_ext <<_ACEOF
22905/* confdefs.h.  */
22906_ACEOF
22907cat confdefs.h >>conftest.$ac_ext
22908cat >>conftest.$ac_ext <<_ACEOF
22909/* end confdefs.h.  */
22910
22911	#include <sys/queue.h>
22912
22913int
22914main ()
22915{
22916
22917
22918	#ifndef LIST_FIRST
22919	#error LIST_FIRST missing
22920	#endif
22921	#ifndef TAILQ_FOREACH_SAFE
22922	#error TAILQ_FOREACH_SAFE
22923	#endif
22924
22925  ;
22926  return 0;
22927}
22928_ACEOF
22929rm -f conftest.$ac_objext conftest$ac_exeext
22930if { (ac_try="$ac_link"
22931case "(($ac_try" in
22932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933  *) ac_try_echo=$ac_try;;
22934esac
22935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936  (eval "$ac_link") 2>conftest.er1
22937  ac_status=$?
22938  grep -v '^ *+' conftest.er1 >conftest.err
22939  rm -f conftest.er1
22940  cat conftest.err >&5
22941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942  (exit $ac_status); } && {
22943	 test -z "$ac_c_werror_flag" ||
22944	 test ! -s conftest.err
22945       } && test -s conftest$ac_exeext &&
22946       $as_test_x conftest$ac_exeext; then
22947
22948
22949cat >>confdefs.h <<\_ACEOF
22950#define HAVE_FULL_QUEUE_H
22951_ACEOF
22952
22953
22954else
22955  echo "$as_me: failed program was:" >&5
22956sed 's/^/| /' conftest.$ac_ext >&5
22957
22958
22959fi
22960
22961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962      conftest$ac_exeext conftest.$ac_ext
22963
22964# Systems may not define key audit system calls, in which case libbsm cannot
22965# depend on them or it will generate link-time or run-time errors.  Test for
22966# just one.
22967cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h.  */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h.  */
22973
22974	#include <stddef.h>
22975
22976	extern int auditon(int, void *, int);
22977
22978int
22979main ()
22980{
22981
22982	int err;
22983
22984	err = auditon(0, NULL, 0);
22985
22986  ;
22987  return 0;
22988}
22989_ACEOF
22990rm -f conftest.$ac_objext conftest$ac_exeext
22991if { (ac_try="$ac_link"
22992case "(($ac_try" in
22993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994  *) ac_try_echo=$ac_try;;
22995esac
22996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997  (eval "$ac_link") 2>conftest.er1
22998  ac_status=$?
22999  grep -v '^ *+' conftest.er1 >conftest.err
23000  rm -f conftest.er1
23001  cat conftest.err >&5
23002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003  (exit $ac_status); } && {
23004	 test -z "$ac_c_werror_flag" ||
23005	 test ! -s conftest.err
23006       } && test -s conftest$ac_exeext &&
23007       $as_test_x conftest$ac_exeext; then
23008
23009
23010cat >>confdefs.h <<\_ACEOF
23011#define HAVE_AUDIT_SYSCALLS
23012_ACEOF
23013
23014have_audit_syscalls=true
23015
23016else
23017  echo "$as_me: failed program was:" >&5
23018sed 's/^/| /' conftest.$ac_ext >&5
23019
23020
23021have_audit_syscalls=false
23022
23023fi
23024
23025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026      conftest$ac_exeext conftest.$ac_ext
23027 if $have_audit_syscalls; then
23028  HAVE_AUDIT_SYSCALLS_TRUE=
23029  HAVE_AUDIT_SYSCALLS_FALSE='#'
23030else
23031  HAVE_AUDIT_SYSCALLS_TRUE='#'
23032  HAVE_AUDIT_SYSCALLS_FALSE=
23033fi
23034
23035
23036#
23037# There are a wide variety of endian macros and functions in the wild; we try
23038# to use the native support if it defines be32enc(), but otherwise have to
23039# use our own.
23040#
23041cat >conftest.$ac_ext <<_ACEOF
23042/* confdefs.h.  */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h.  */
23047
23048	#include <sys/endian.h>
23049	#include <stdlib.h>
23050
23051int
23052main ()
23053{
23054
23055	be32enc(NULL, 1);
23056
23057  ;
23058  return 0;
23059}
23060_ACEOF
23061rm -f conftest.$ac_objext conftest$ac_exeext
23062if { (ac_try="$ac_link"
23063case "(($ac_try" in
23064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065  *) ac_try_echo=$ac_try;;
23066esac
23067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068  (eval "$ac_link") 2>conftest.er1
23069  ac_status=$?
23070  grep -v '^ *+' conftest.er1 >conftest.err
23071  rm -f conftest.er1
23072  cat conftest.err >&5
23073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074  (exit $ac_status); } && {
23075	 test -z "$ac_c_werror_flag" ||
23076	 test ! -s conftest.err
23077       } && test -s conftest$ac_exeext &&
23078       $as_test_x conftest$ac_exeext; then
23079
23080
23081cat >>confdefs.h <<\_ACEOF
23082#define HAVE_BE32ENC
23083_ACEOF
23084
23085
23086else
23087  echo "$as_me: failed program was:" >&5
23088sed 's/^/| /' conftest.$ac_ext >&5
23089
23090
23091fi
23092
23093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094      conftest$ac_exeext conftest.$ac_ext
23095
23096# Check to see if Mach IPC is used for trigger messages.  If so, use Mach IPC
23097# instead of the default for sending trigger messages to the audit components.
23098{ echo "$as_me:$LINENO: checking for /usr/include/mach/audit_triggers.defs" >&5
23099echo $ECHO_N "checking for /usr/include/mach/audit_triggers.defs... $ECHO_C" >&6; }
23100if test "${ac_cv_file__usr_include_mach_audit_triggers_defs+set}" = set; then
23101  echo $ECHO_N "(cached) $ECHO_C" >&6
23102else
23103  test "$cross_compiling" = yes &&
23104  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23105echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23106   { (exit 1); exit 1; }; }
23107if test -r "/usr/include/mach/audit_triggers.defs"; then
23108  ac_cv_file__usr_include_mach_audit_triggers_defs=yes
23109else
23110  ac_cv_file__usr_include_mach_audit_triggers_defs=no
23111fi
23112fi
23113{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
23114echo "${ECHO_T}$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
23115if test $ac_cv_file__usr_include_mach_audit_triggers_defs = yes; then
23116
23117
23118cat >>confdefs.h <<\_ACEOF
23119#define USE_MACH_IPC
23120_ACEOF
23121
23122use_mach_ipc=true
23123
23124else
23125
23126use_mach_ipc=false
23127
23128fi
23129
23130 if $use_mach_ipc; then
23131  USE_MACH_IPC_TRUE=
23132  USE_MACH_IPC_FALSE='#'
23133else
23134  USE_MACH_IPC_TRUE='#'
23135  USE_MACH_IPC_FALSE=
23136fi
23137
23138
23139ac_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 libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23140
23141
23142cat >confcache <<\_ACEOF
23143# This file is a shell script that caches the results of configure
23144# tests run on this system so they can be shared between configure
23145# scripts and configure runs, see configure's option --config-cache.
23146# It is not useful on other systems.  If it contains results you don't
23147# want to keep, you may remove or edit it.
23148#
23149# config.status only pays attention to the cache file if you give it
23150# the --recheck option to rerun configure.
23151#
23152# `ac_cv_env_foo' variables (set or unset) will be overridden when
23153# loading this file, other *unset* `ac_cv_foo' will be assigned the
23154# following values.
23155
23156_ACEOF
23157
23158# The following way of writing the cache mishandles newlines in values,
23159# but we know of no workaround that is simple, portable, and efficient.
23160# So, we kill variables containing newlines.
23161# Ultrix sh set writes to stderr and can't be redirected directly,
23162# and sets the high bit in the cache file unless we assign to the vars.
23163(
23164  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23165    eval ac_val=\$$ac_var
23166    case $ac_val in #(
23167    *${as_nl}*)
23168      case $ac_var in #(
23169      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23170echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23171      esac
23172      case $ac_var in #(
23173      _ | IFS | as_nl) ;; #(
23174      *) $as_unset $ac_var ;;
23175      esac ;;
23176    esac
23177  done
23178
23179  (set) 2>&1 |
23180    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23181    *${as_nl}ac_space=\ *)
23182      # `set' does not quote correctly, so add quotes (double-quote
23183      # substitution turns \\\\ into \\, and sed turns \\ into \).
23184      sed -n \
23185	"s/'/'\\\\''/g;
23186	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23187      ;; #(
23188    *)
23189      # `set' quotes correctly as required by POSIX, so do not add quotes.
23190      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23191      ;;
23192    esac |
23193    sort
23194) |
23195  sed '
23196     /^ac_cv_env_/b end
23197     t clear
23198     :clear
23199     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23200     t end
23201     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23202     :end' >>confcache
23203if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23204  if test -w "$cache_file"; then
23205    test "x$cache_file" != "x/dev/null" &&
23206      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23207echo "$as_me: updating cache $cache_file" >&6;}
23208    cat confcache >$cache_file
23209  else
23210    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23211echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23212  fi
23213fi
23214rm -f confcache
23215
23216test "x$prefix" = xNONE && prefix=$ac_default_prefix
23217# Let make expand exec_prefix.
23218test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23219
23220DEFS=-DHAVE_CONFIG_H
23221
23222ac_libobjs=
23223ac_ltlibobjs=
23224for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23225  # 1. Remove the extension, and $U if already installed.
23226  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23227  ac_i=`echo "$ac_i" | sed "$ac_script"`
23228  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23229  #    will be set to the directory where LIBOBJS objects are built.
23230  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23231  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23232done
23233LIBOBJS=$ac_libobjs
23234
23235LTLIBOBJS=$ac_ltlibobjs
23236
23237
23238if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23239  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23240Usually this means the macro was only invoked conditionally." >&5
23241echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23242Usually this means the macro was only invoked conditionally." >&2;}
23243   { (exit 1); exit 1; }; }
23244fi
23245if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
23246  { { echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
23247Usually this means the macro was only invoked conditionally." >&5
23248echo "$as_me: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
23249Usually this means the macro was only invoked conditionally." >&2;}
23250   { (exit 1); exit 1; }; }
23251fi
23252if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23253  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23254Usually this means the macro was only invoked conditionally." >&5
23255echo "$as_me: error: conditional \"AMDEP\" was never defined.
23256Usually this means the macro was only invoked conditionally." >&2;}
23257   { (exit 1); exit 1; }; }
23258fi
23259if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23260  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23261Usually this means the macro was only invoked conditionally." >&5
23262echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23263Usually this means the macro was only invoked conditionally." >&2;}
23264   { (exit 1); exit 1; }; }
23265fi
23266if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23267  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23268Usually this means the macro was only invoked conditionally." >&5
23269echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23270Usually this means the macro was only invoked conditionally." >&2;}
23271   { (exit 1); exit 1; }; }
23272fi
23273if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
23274  { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23275Usually this means the macro was only invoked conditionally." >&5
23276echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23277Usually this means the macro was only invoked conditionally." >&2;}
23278   { (exit 1); exit 1; }; }
23279fi
23280if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
23281  { { echo "$as_me:$LINENO: error: conditional \"USE_MACH_IPC\" was never defined.
23282Usually this means the macro was only invoked conditionally." >&5
23283echo "$as_me: error: conditional \"USE_MACH_IPC\" was never defined.
23284Usually this means the macro was only invoked conditionally." >&2;}
23285   { (exit 1); exit 1; }; }
23286fi
23287
23288: ${CONFIG_STATUS=./config.status}
23289ac_clean_files_save=$ac_clean_files
23290ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23291{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23292echo "$as_me: creating $CONFIG_STATUS" >&6;}
23293cat >$CONFIG_STATUS <<_ACEOF
23294#! $SHELL
23295# Generated by $as_me.
23296# Run this file to recreate the current configuration.
23297# Compiler output produced by configure, useful for debugging
23298# configure, is in config.log if it exists.
23299
23300debug=false
23301ac_cs_recheck=false
23302ac_cs_silent=false
23303SHELL=\${CONFIG_SHELL-$SHELL}
23304_ACEOF
23305
23306cat >>$CONFIG_STATUS <<\_ACEOF
23307## --------------------- ##
23308## M4sh Initialization.  ##
23309## --------------------- ##
23310
23311# Be more Bourne compatible
23312DUALCASE=1; export DUALCASE # for MKS sh
23313if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23314  emulate sh
23315  NULLCMD=:
23316  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23317  # is contrary to our usage.  Disable this feature.
23318  alias -g '${1+"$@"}'='"$@"'
23319  setopt NO_GLOB_SUBST
23320else
23321  case `(set -o) 2>/dev/null` in
23322  *posix*) set -o posix ;;
23323esac
23324
23325fi
23326
23327
23328
23329
23330# PATH needs CR
23331# Avoid depending upon Character Ranges.
23332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23335as_cr_digits='0123456789'
23336as_cr_alnum=$as_cr_Letters$as_cr_digits
23337
23338# The user is always right.
23339if test "${PATH_SEPARATOR+set}" != set; then
23340  echo "#! /bin/sh" >conf$$.sh
23341  echo  "exit 0"   >>conf$$.sh
23342  chmod +x conf$$.sh
23343  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23344    PATH_SEPARATOR=';'
23345  else
23346    PATH_SEPARATOR=:
23347  fi
23348  rm -f conf$$.sh
23349fi
23350
23351# Support unset when possible.
23352if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23353  as_unset=unset
23354else
23355  as_unset=false
23356fi
23357
23358
23359# IFS
23360# We need space, tab and new line, in precisely that order.  Quoting is
23361# there to prevent editors from complaining about space-tab.
23362# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23363# splitting by setting IFS to empty value.)
23364as_nl='
23365'
23366IFS=" ""	$as_nl"
23367
23368# Find who we are.  Look in the path if we contain no directory separator.
23369case $0 in
23370  *[\\/]* ) as_myself=$0 ;;
23371  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23372for as_dir in $PATH
23373do
23374  IFS=$as_save_IFS
23375  test -z "$as_dir" && as_dir=.
23376  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23377done
23378IFS=$as_save_IFS
23379
23380     ;;
23381esac
23382# We did not find ourselves, most probably we were run as `sh COMMAND'
23383# in which case we are not to be found in the path.
23384if test "x$as_myself" = x; then
23385  as_myself=$0
23386fi
23387if test ! -f "$as_myself"; then
23388  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23389  { (exit 1); exit 1; }
23390fi
23391
23392# Work around bugs in pre-3.0 UWIN ksh.
23393for as_var in ENV MAIL MAILPATH
23394do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23395done
23396PS1='$ '
23397PS2='> '
23398PS4='+ '
23399
23400# NLS nuisances.
23401for as_var in \
23402  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23403  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23404  LC_TELEPHONE LC_TIME
23405do
23406  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23407    eval $as_var=C; export $as_var
23408  else
23409    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23410  fi
23411done
23412
23413# Required to use basename.
23414if expr a : '\(a\)' >/dev/null 2>&1 &&
23415   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23416  as_expr=expr
23417else
23418  as_expr=false
23419fi
23420
23421if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23422  as_basename=basename
23423else
23424  as_basename=false
23425fi
23426
23427
23428# Name of the executable.
23429as_me=`$as_basename -- "$0" ||
23430$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23431	 X"$0" : 'X\(//\)$' \| \
23432	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23433echo X/"$0" |
23434    sed '/^.*\/\([^/][^/]*\)\/*$/{
23435	    s//\1/
23436	    q
23437	  }
23438	  /^X\/\(\/\/\)$/{
23439	    s//\1/
23440	    q
23441	  }
23442	  /^X\/\(\/\).*/{
23443	    s//\1/
23444	    q
23445	  }
23446	  s/.*/./; q'`
23447
23448# CDPATH.
23449$as_unset CDPATH
23450
23451
23452
23453  as_lineno_1=$LINENO
23454  as_lineno_2=$LINENO
23455  test "x$as_lineno_1" != "x$as_lineno_2" &&
23456  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23457
23458  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23459  # uniformly replaced by the line number.  The first 'sed' inserts a
23460  # line-number line after each line using $LINENO; the second 'sed'
23461  # does the real work.  The second script uses 'N' to pair each
23462  # line-number line with the line containing $LINENO, and appends
23463  # trailing '-' during substitution so that $LINENO is not a special
23464  # case at line end.
23465  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23466  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23467  # E. McMahon (1931-1989) for sed's syntax.  :-)
23468  sed -n '
23469    p
23470    /[$]LINENO/=
23471  ' <$as_myself |
23472    sed '
23473      s/[$]LINENO.*/&-/
23474      t lineno
23475      b
23476      :lineno
23477      N
23478      :loop
23479      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23480      t loop
23481      s/-\n.*//
23482    ' >$as_me.lineno &&
23483  chmod +x "$as_me.lineno" ||
23484    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23485   { (exit 1); exit 1; }; }
23486
23487  # Don't try to exec as it changes $[0], causing all sort of problems
23488  # (the dirname of $[0] is not the place where we might find the
23489  # original and so on.  Autoconf is especially sensitive to this).
23490  . "./$as_me.lineno"
23491  # Exit status is that of the last command.
23492  exit
23493}
23494
23495
23496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23497  as_dirname=dirname
23498else
23499  as_dirname=false
23500fi
23501
23502ECHO_C= ECHO_N= ECHO_T=
23503case `echo -n x` in
23504-n*)
23505  case `echo 'x\c'` in
23506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23507  *)   ECHO_C='\c';;
23508  esac;;
23509*)
23510  ECHO_N='-n';;
23511esac
23512
23513if expr a : '\(a\)' >/dev/null 2>&1 &&
23514   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23515  as_expr=expr
23516else
23517  as_expr=false
23518fi
23519
23520rm -f conf$$ conf$$.exe conf$$.file
23521if test -d conf$$.dir; then
23522  rm -f conf$$.dir/conf$$.file
23523else
23524  rm -f conf$$.dir
23525  mkdir conf$$.dir
23526fi
23527echo >conf$$.file
23528if ln -s conf$$.file conf$$ 2>/dev/null; then
23529  as_ln_s='ln -s'
23530  # ... but there are two gotchas:
23531  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23532  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23533  # In both cases, we have to default to `cp -p'.
23534  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23535    as_ln_s='cp -p'
23536elif ln conf$$.file conf$$ 2>/dev/null; then
23537  as_ln_s=ln
23538else
23539  as_ln_s='cp -p'
23540fi
23541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23542rmdir conf$$.dir 2>/dev/null
23543
23544if mkdir -p . 2>/dev/null; then
23545  as_mkdir_p=:
23546else
23547  test -d ./-p && rmdir ./-p
23548  as_mkdir_p=false
23549fi
23550
23551if test -x / >/dev/null 2>&1; then
23552  as_test_x='test -x'
23553else
23554  if ls -dL / >/dev/null 2>&1; then
23555    as_ls_L_option=L
23556  else
23557    as_ls_L_option=
23558  fi
23559  as_test_x='
23560    eval sh -c '\''
23561      if test -d "$1"; then
23562        test -d "$1/.";
23563      else
23564	case $1 in
23565        -*)set "./$1";;
23566	esac;
23567	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23568	???[sx]*):;;*)false;;esac;fi
23569    '\'' sh
23570  '
23571fi
23572as_executable_p=$as_test_x
23573
23574# Sed expression to map a string onto a valid CPP name.
23575as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23576
23577# Sed expression to map a string onto a valid variable name.
23578as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23579
23580
23581exec 6>&1
23582
23583# Save the log message, to keep $[0] and so on meaningful, and to
23584# report actual input values of CONFIG_FILES etc. instead of their
23585# values after options handling.
23586ac_log="
23587This file was extended by OpenBSM $as_me 1.1alpha5, which was
23588generated by GNU Autoconf 2.61.  Invocation command line was
23589
23590  CONFIG_FILES    = $CONFIG_FILES
23591  CONFIG_HEADERS  = $CONFIG_HEADERS
23592  CONFIG_LINKS    = $CONFIG_LINKS
23593  CONFIG_COMMANDS = $CONFIG_COMMANDS
23594  $ $0 $@
23595
23596on `(hostname || uname -n) 2>/dev/null | sed 1q`
23597"
23598
23599_ACEOF
23600
23601cat >>$CONFIG_STATUS <<_ACEOF
23602# Files that config.status was made for.
23603config_files="$ac_config_files"
23604config_headers="$ac_config_headers"
23605config_commands="$ac_config_commands"
23606
23607_ACEOF
23608
23609cat >>$CONFIG_STATUS <<\_ACEOF
23610ac_cs_usage="\
23611\`$as_me' instantiates files from templates according to the
23612current configuration.
23613
23614Usage: $0 [OPTIONS] [FILE]...
23615
23616  -h, --help       print this help, then exit
23617  -V, --version    print version number and configuration settings, then exit
23618  -q, --quiet      do not print progress messages
23619  -d, --debug      don't remove temporary files
23620      --recheck    update $as_me by reconfiguring in the same conditions
23621  --file=FILE[:TEMPLATE]
23622		   instantiate the configuration file FILE
23623  --header=FILE[:TEMPLATE]
23624		   instantiate the configuration header FILE
23625
23626Configuration files:
23627$config_files
23628
23629Configuration headers:
23630$config_headers
23631
23632Configuration commands:
23633$config_commands
23634
23635Report bugs to <bug-autoconf@gnu.org>."
23636
23637_ACEOF
23638cat >>$CONFIG_STATUS <<_ACEOF
23639ac_cs_version="\\
23640OpenBSM config.status 1.1alpha5
23641configured by $0, generated by GNU Autoconf 2.61,
23642  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23643
23644Copyright (C) 2006 Free Software Foundation, Inc.
23645This config.status script is free software; the Free Software Foundation
23646gives unlimited permission to copy, distribute and modify it."
23647
23648ac_pwd='$ac_pwd'
23649srcdir='$srcdir'
23650INSTALL='$INSTALL'
23651MKDIR_P='$MKDIR_P'
23652_ACEOF
23653
23654cat >>$CONFIG_STATUS <<\_ACEOF
23655# If no file are specified by the user, then we need to provide default
23656# value.  By we need to know if files were specified by the user.
23657ac_need_defaults=:
23658while test $# != 0
23659do
23660  case $1 in
23661  --*=*)
23662    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23663    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23664    ac_shift=:
23665    ;;
23666  *)
23667    ac_option=$1
23668    ac_optarg=$2
23669    ac_shift=shift
23670    ;;
23671  esac
23672
23673  case $ac_option in
23674  # Handling of the options.
23675  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23676    ac_cs_recheck=: ;;
23677  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23678    echo "$ac_cs_version"; exit ;;
23679  --debug | --debu | --deb | --de | --d | -d )
23680    debug=: ;;
23681  --file | --fil | --fi | --f )
23682    $ac_shift
23683    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23684    ac_need_defaults=false;;
23685  --header | --heade | --head | --hea )
23686    $ac_shift
23687    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23688    ac_need_defaults=false;;
23689  --he | --h)
23690    # Conflict between --help and --header
23691    { echo "$as_me: error: ambiguous option: $1
23692Try \`$0 --help' for more information." >&2
23693   { (exit 1); exit 1; }; };;
23694  --help | --hel | -h )
23695    echo "$ac_cs_usage"; exit ;;
23696  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23697  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23698    ac_cs_silent=: ;;
23699
23700  # This is an error.
23701  -*) { echo "$as_me: error: unrecognized option: $1
23702Try \`$0 --help' for more information." >&2
23703   { (exit 1); exit 1; }; } ;;
23704
23705  *) ac_config_targets="$ac_config_targets $1"
23706     ac_need_defaults=false ;;
23707
23708  esac
23709  shift
23710done
23711
23712ac_configure_extra_args=
23713
23714if $ac_cs_silent; then
23715  exec 6>/dev/null
23716  ac_configure_extra_args="$ac_configure_extra_args --silent"
23717fi
23718
23719_ACEOF
23720cat >>$CONFIG_STATUS <<_ACEOF
23721if \$ac_cs_recheck; then
23722  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23723  CONFIG_SHELL=$SHELL
23724  export CONFIG_SHELL
23725  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23726fi
23727
23728_ACEOF
23729cat >>$CONFIG_STATUS <<\_ACEOF
23730exec 5>>config.log
23731{
23732  echo
23733  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23734## Running $as_me. ##
23735_ASBOX
23736  echo "$ac_log"
23737} >&5
23738
23739_ACEOF
23740cat >>$CONFIG_STATUS <<_ACEOF
23741#
23742# INIT-COMMANDS
23743#
23744AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23745
23746_ACEOF
23747
23748cat >>$CONFIG_STATUS <<\_ACEOF
23749
23750# Handling of arguments.
23751for ac_config_target in $ac_config_targets
23752do
23753  case $ac_config_target in
23754    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23755    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23756    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23757    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23758    "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23759    "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23760    "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23761    "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23762    "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23763    "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23764    "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
23765    "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23766    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23767    "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23768    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23769    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
23770    "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
23771    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23772    "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23773    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23774
23775  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23776echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23777   { (exit 1); exit 1; }; };;
23778  esac
23779done
23780
23781
23782# If the user did not use the arguments to specify the items to instantiate,
23783# then the envvar interface is used.  Set only those that are not.
23784# We use the long form for the default assignment because of an extremely
23785# bizarre bug on SunOS 4.1.3.
23786if $ac_need_defaults; then
23787  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23788  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23789  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23790fi
23791
23792# Have a temporary directory for convenience.  Make it in the build tree
23793# simply because there is no reason against having it here, and in addition,
23794# creating and moving files from /tmp can sometimes cause problems.
23795# Hook for its removal unless debugging.
23796# Note that there is a small window in which the directory will not be cleaned:
23797# after its creation but before its name has been assigned to `$tmp'.
23798$debug ||
23799{
23800  tmp=
23801  trap 'exit_status=$?
23802  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23803' 0
23804  trap '{ (exit 1); exit 1; }' 1 2 13 15
23805}
23806# Create a (secure) tmp directory for tmp files.
23807
23808{
23809  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23810  test -n "$tmp" && test -d "$tmp"
23811}  ||
23812{
23813  tmp=./conf$$-$RANDOM
23814  (umask 077 && mkdir "$tmp")
23815} ||
23816{
23817   echo "$me: cannot create a temporary directory in ." >&2
23818   { (exit 1); exit 1; }
23819}
23820
23821#
23822# Set up the sed scripts for CONFIG_FILES section.
23823#
23824
23825# No need to generate the scripts if there are no CONFIG_FILES.
23826# This happens for instance when ./config.status config.h
23827if test -n "$CONFIG_FILES"; then
23828
23829_ACEOF
23830
23831
23832
23833ac_delim='%!_!# '
23834for ac_last_try in false false false false false :; do
23835  cat >conf$$subs.sed <<_ACEOF
23836SHELL!$SHELL$ac_delim
23837PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23838PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23839PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23840PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23841PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23842PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23843exec_prefix!$exec_prefix$ac_delim
23844prefix!$prefix$ac_delim
23845program_transform_name!$program_transform_name$ac_delim
23846bindir!$bindir$ac_delim
23847sbindir!$sbindir$ac_delim
23848libexecdir!$libexecdir$ac_delim
23849datarootdir!$datarootdir$ac_delim
23850datadir!$datadir$ac_delim
23851sysconfdir!$sysconfdir$ac_delim
23852sharedstatedir!$sharedstatedir$ac_delim
23853localstatedir!$localstatedir$ac_delim
23854includedir!$includedir$ac_delim
23855oldincludedir!$oldincludedir$ac_delim
23856docdir!$docdir$ac_delim
23857infodir!$infodir$ac_delim
23858htmldir!$htmldir$ac_delim
23859dvidir!$dvidir$ac_delim
23860pdfdir!$pdfdir$ac_delim
23861psdir!$psdir$ac_delim
23862libdir!$libdir$ac_delim
23863localedir!$localedir$ac_delim
23864mandir!$mandir$ac_delim
23865DEFS!$DEFS$ac_delim
23866ECHO_C!$ECHO_C$ac_delim
23867ECHO_N!$ECHO_N$ac_delim
23868ECHO_T!$ECHO_T$ac_delim
23869LIBS!$LIBS$ac_delim
23870build_alias!$build_alias$ac_delim
23871host_alias!$host_alias$ac_delim
23872target_alias!$target_alias$ac_delim
23873MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23874MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23875MAINT!$MAINT$ac_delim
23876USE_NATIVE_INCLUDES_TRUE!$USE_NATIVE_INCLUDES_TRUE$ac_delim
23877USE_NATIVE_INCLUDES_FALSE!$USE_NATIVE_INCLUDES_FALSE$ac_delim
23878MIG!$MIG$ac_delim
23879CC!$CC$ac_delim
23880CFLAGS!$CFLAGS$ac_delim
23881LDFLAGS!$LDFLAGS$ac_delim
23882CPPFLAGS!$CPPFLAGS$ac_delim
23883ac_ct_CC!$ac_ct_CC$ac_delim
23884EXEEXT!$EXEEXT$ac_delim
23885OBJEXT!$OBJEXT$ac_delim
23886INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23887INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23888INSTALL_DATA!$INSTALL_DATA$ac_delim
23889build!$build$ac_delim
23890build_cpu!$build_cpu$ac_delim
23891build_vendor!$build_vendor$ac_delim
23892build_os!$build_os$ac_delim
23893host!$host$ac_delim
23894host_cpu!$host_cpu$ac_delim
23895host_vendor!$host_vendor$ac_delim
23896host_os!$host_os$ac_delim
23897SED!$SED$ac_delim
23898GREP!$GREP$ac_delim
23899EGREP!$EGREP$ac_delim
23900LN_S!$LN_S$ac_delim
23901ECHO!$ECHO$ac_delim
23902AR!$AR$ac_delim
23903RANLIB!$RANLIB$ac_delim
23904STRIP!$STRIP$ac_delim
23905CPP!$CPP$ac_delim
23906CXX!$CXX$ac_delim
23907CXXFLAGS!$CXXFLAGS$ac_delim
23908ac_ct_CXX!$ac_ct_CXX$ac_delim
23909CXXCPP!$CXXCPP$ac_delim
23910F77!$F77$ac_delim
23911FFLAGS!$FFLAGS$ac_delim
23912ac_ct_F77!$ac_ct_F77$ac_delim
23913LIBTOOL!$LIBTOOL$ac_delim
23914am__isrc!$am__isrc$ac_delim
23915CYGPATH_W!$CYGPATH_W$ac_delim
23916PACKAGE!$PACKAGE$ac_delim
23917VERSION!$VERSION$ac_delim
23918ACLOCAL!$ACLOCAL$ac_delim
23919AUTOCONF!$AUTOCONF$ac_delim
23920AUTOMAKE!$AUTOMAKE$ac_delim
23921AUTOHEADER!$AUTOHEADER$ac_delim
23922MAKEINFO!$MAKEINFO$ac_delim
23923install_sh!$install_sh$ac_delim
23924INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23925mkdir_p!$mkdir_p$ac_delim
23926AWK!$AWK$ac_delim
23927SET_MAKE!$SET_MAKE$ac_delim
23928am__leading_dot!$am__leading_dot$ac_delim
23929AMTAR!$AMTAR$ac_delim
23930am__tar!$am__tar$ac_delim
23931am__untar!$am__untar$ac_delim
23932DEPDIR!$DEPDIR$ac_delim
23933_ACEOF
23934
23935  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23936    break
23937  elif $ac_last_try; then
23938    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23939echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23940   { (exit 1); exit 1; }; }
23941  else
23942    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23943  fi
23944done
23945
23946ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23947if test -n "$ac_eof"; then
23948  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23949  ac_eof=`expr $ac_eof + 1`
23950fi
23951
23952cat >>$CONFIG_STATUS <<_ACEOF
23953cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23954/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23955_ACEOF
23956sed '
23957s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23958s/^/s,@/; s/!/@,|#_!!_#|/
23959:n
23960t n
23961s/'"$ac_delim"'$/,g/; t
23962s/$/\\/; p
23963N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23964' >>$CONFIG_STATUS <conf$$subs.sed
23965rm -f conf$$subs.sed
23966cat >>$CONFIG_STATUS <<_ACEOF
23967CEOF$ac_eof
23968_ACEOF
23969
23970
23971ac_delim='%!_!# '
23972for ac_last_try in false false false false false :; do
23973  cat >conf$$subs.sed <<_ACEOF
23974am__include!$am__include$ac_delim
23975am__quote!$am__quote$ac_delim
23976AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23977AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23978AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23979CCDEPMODE!$CCDEPMODE$ac_delim
23980am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23981am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23982CXXDEPMODE!$CXXDEPMODE$ac_delim
23983am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23984am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23985LIBOBJS!$LIBOBJS$ac_delim
23986HAVE_AUDIT_SYSCALLS_TRUE!$HAVE_AUDIT_SYSCALLS_TRUE$ac_delim
23987HAVE_AUDIT_SYSCALLS_FALSE!$HAVE_AUDIT_SYSCALLS_FALSE$ac_delim
23988USE_MACH_IPC_TRUE!$USE_MACH_IPC_TRUE$ac_delim
23989USE_MACH_IPC_FALSE!$USE_MACH_IPC_FALSE$ac_delim
23990LTLIBOBJS!$LTLIBOBJS$ac_delim
23991_ACEOF
23992
23993  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
23994    break
23995  elif $ac_last_try; then
23996    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23997echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23998   { (exit 1); exit 1; }; }
23999  else
24000    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24001  fi
24002done
24003
24004ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24005if test -n "$ac_eof"; then
24006  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24007  ac_eof=`expr $ac_eof + 1`
24008fi
24009
24010cat >>$CONFIG_STATUS <<_ACEOF
24011cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24012/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24013_ACEOF
24014sed '
24015s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24016s/^/s,@/; s/!/@,|#_!!_#|/
24017:n
24018t n
24019s/'"$ac_delim"'$/,g/; t
24020s/$/\\/; p
24021N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24022' >>$CONFIG_STATUS <conf$$subs.sed
24023rm -f conf$$subs.sed
24024cat >>$CONFIG_STATUS <<_ACEOF
24025:end
24026s/|#_!!_#|//g
24027CEOF$ac_eof
24028_ACEOF
24029
24030
24031# VPATH may cause trouble with some makes, so we remove $(srcdir),
24032# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24033# trailing colons and then remove the whole line if VPATH becomes empty
24034# (actually we leave an empty line to preserve line numbers).
24035if test "x$srcdir" = x.; then
24036  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24037s/:*\$(srcdir):*/:/
24038s/:*\${srcdir}:*/:/
24039s/:*@srcdir@:*/:/
24040s/^\([^=]*=[	 ]*\):*/\1/
24041s/:*$//
24042s/^[^=]*=[	 ]*$//
24043}'
24044fi
24045
24046cat >>$CONFIG_STATUS <<\_ACEOF
24047fi # test -n "$CONFIG_FILES"
24048
24049
24050for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24051do
24052  case $ac_tag in
24053  :[FHLC]) ac_mode=$ac_tag; continue;;
24054  esac
24055  case $ac_mode$ac_tag in
24056  :[FHL]*:*);;
24057  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24058echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24059   { (exit 1); exit 1; }; };;
24060  :[FH]-) ac_tag=-:-;;
24061  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24062  esac
24063  ac_save_IFS=$IFS
24064  IFS=:
24065  set x $ac_tag
24066  IFS=$ac_save_IFS
24067  shift
24068  ac_file=$1
24069  shift
24070
24071  case $ac_mode in
24072  :L) ac_source=$1;;
24073  :[FH])
24074    ac_file_inputs=
24075    for ac_f
24076    do
24077      case $ac_f in
24078      -) ac_f="$tmp/stdin";;
24079      *) # Look for the file first in the build tree, then in the source tree
24080	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24081	 # because $ac_f cannot contain `:'.
24082	 test -f "$ac_f" ||
24083	   case $ac_f in
24084	   [\\/$]*) false;;
24085	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24086	   esac ||
24087	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24088echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24089   { (exit 1); exit 1; }; };;
24090      esac
24091      ac_file_inputs="$ac_file_inputs $ac_f"
24092    done
24093
24094    # Let's still pretend it is `configure' which instantiates (i.e., don't
24095    # use $as_me), people would be surprised to read:
24096    #    /* config.h.  Generated by config.status.  */
24097    configure_input="Generated from "`IFS=:
24098	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24099    if test x"$ac_file" != x-; then
24100      configure_input="$ac_file.  $configure_input"
24101      { echo "$as_me:$LINENO: creating $ac_file" >&5
24102echo "$as_me: creating $ac_file" >&6;}
24103    fi
24104
24105    case $ac_tag in
24106    *:-:* | *:-) cat >"$tmp/stdin";;
24107    esac
24108    ;;
24109  esac
24110
24111  ac_dir=`$as_dirname -- "$ac_file" ||
24112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113	 X"$ac_file" : 'X\(//\)[^/]' \| \
24114	 X"$ac_file" : 'X\(//\)$' \| \
24115	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24116echo X"$ac_file" |
24117    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24118	    s//\1/
24119	    q
24120	  }
24121	  /^X\(\/\/\)[^/].*/{
24122	    s//\1/
24123	    q
24124	  }
24125	  /^X\(\/\/\)$/{
24126	    s//\1/
24127	    q
24128	  }
24129	  /^X\(\/\).*/{
24130	    s//\1/
24131	    q
24132	  }
24133	  s/.*/./; q'`
24134  { as_dir="$ac_dir"
24135  case $as_dir in #(
24136  -*) as_dir=./$as_dir;;
24137  esac
24138  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24139    as_dirs=
24140    while :; do
24141      case $as_dir in #(
24142      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24143      *) as_qdir=$as_dir;;
24144      esac
24145      as_dirs="'$as_qdir' $as_dirs"
24146      as_dir=`$as_dirname -- "$as_dir" ||
24147$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24148	 X"$as_dir" : 'X\(//\)[^/]' \| \
24149	 X"$as_dir" : 'X\(//\)$' \| \
24150	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24151echo X"$as_dir" |
24152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24153	    s//\1/
24154	    q
24155	  }
24156	  /^X\(\/\/\)[^/].*/{
24157	    s//\1/
24158	    q
24159	  }
24160	  /^X\(\/\/\)$/{
24161	    s//\1/
24162	    q
24163	  }
24164	  /^X\(\/\).*/{
24165	    s//\1/
24166	    q
24167	  }
24168	  s/.*/./; q'`
24169      test -d "$as_dir" && break
24170    done
24171    test -z "$as_dirs" || eval "mkdir $as_dirs"
24172  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24173echo "$as_me: error: cannot create directory $as_dir" >&2;}
24174   { (exit 1); exit 1; }; }; }
24175  ac_builddir=.
24176
24177case "$ac_dir" in
24178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24179*)
24180  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24181  # A ".." for each directory in $ac_dir_suffix.
24182  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24183  case $ac_top_builddir_sub in
24184  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24185  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24186  esac ;;
24187esac
24188ac_abs_top_builddir=$ac_pwd
24189ac_abs_builddir=$ac_pwd$ac_dir_suffix
24190# for backward compatibility:
24191ac_top_builddir=$ac_top_build_prefix
24192
24193case $srcdir in
24194  .)  # We are building in place.
24195    ac_srcdir=.
24196    ac_top_srcdir=$ac_top_builddir_sub
24197    ac_abs_top_srcdir=$ac_pwd ;;
24198  [\\/]* | ?:[\\/]* )  # Absolute name.
24199    ac_srcdir=$srcdir$ac_dir_suffix;
24200    ac_top_srcdir=$srcdir
24201    ac_abs_top_srcdir=$srcdir ;;
24202  *) # Relative name.
24203    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24204    ac_top_srcdir=$ac_top_build_prefix$srcdir
24205    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24206esac
24207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24208
24209
24210  case $ac_mode in
24211  :F)
24212  #
24213  # CONFIG_FILE
24214  #
24215
24216  case $INSTALL in
24217  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24218  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24219  esac
24220  ac_MKDIR_P=$MKDIR_P
24221  case $MKDIR_P in
24222  [\\/$]* | ?:[\\/]* ) ;;
24223  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24224  esac
24225_ACEOF
24226
24227cat >>$CONFIG_STATUS <<\_ACEOF
24228# If the template does not know about datarootdir, expand it.
24229# FIXME: This hack should be removed a few years after 2.60.
24230ac_datarootdir_hack=; ac_datarootdir_seen=
24231
24232case `sed -n '/datarootdir/ {
24233  p
24234  q
24235}
24236/@datadir@/p
24237/@docdir@/p
24238/@infodir@/p
24239/@localedir@/p
24240/@mandir@/p
24241' $ac_file_inputs` in
24242*datarootdir*) ac_datarootdir_seen=yes;;
24243*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24244  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24245echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24246_ACEOF
24247cat >>$CONFIG_STATUS <<_ACEOF
24248  ac_datarootdir_hack='
24249  s&@datadir@&$datadir&g
24250  s&@docdir@&$docdir&g
24251  s&@infodir@&$infodir&g
24252  s&@localedir@&$localedir&g
24253  s&@mandir@&$mandir&g
24254    s&\\\${datarootdir}&$datarootdir&g' ;;
24255esac
24256_ACEOF
24257
24258# Neutralize VPATH when `$srcdir' = `.'.
24259# Shell code in configure.ac might set extrasub.
24260# FIXME: do we really want to maintain this feature?
24261cat >>$CONFIG_STATUS <<_ACEOF
24262  sed "$ac_vpsub
24263$extrasub
24264_ACEOF
24265cat >>$CONFIG_STATUS <<\_ACEOF
24266:t
24267/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24268s&@configure_input@&$configure_input&;t t
24269s&@top_builddir@&$ac_top_builddir_sub&;t t
24270s&@srcdir@&$ac_srcdir&;t t
24271s&@abs_srcdir@&$ac_abs_srcdir&;t t
24272s&@top_srcdir@&$ac_top_srcdir&;t t
24273s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24274s&@builddir@&$ac_builddir&;t t
24275s&@abs_builddir@&$ac_abs_builddir&;t t
24276s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24277s&@INSTALL@&$ac_INSTALL&;t t
24278s&@MKDIR_P@&$ac_MKDIR_P&;t t
24279$ac_datarootdir_hack
24280" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24281
24282test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24283  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24284  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24285  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24286which seems to be undefined.  Please make sure it is defined." >&5
24287echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24288which seems to be undefined.  Please make sure it is defined." >&2;}
24289
24290  rm -f "$tmp/stdin"
24291  case $ac_file in
24292  -) cat "$tmp/out"; rm -f "$tmp/out";;
24293  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24294  esac
24295 ;;
24296  :H)
24297  #
24298  # CONFIG_HEADER
24299  #
24300_ACEOF
24301
24302# Transform confdefs.h into a sed script `conftest.defines', that
24303# substitutes the proper values into config.h.in to produce config.h.
24304rm -f conftest.defines conftest.tail
24305# First, append a space to every undef/define line, to ease matching.
24306echo 's/$/ /' >conftest.defines
24307# Then, protect against being on the right side of a sed subst, or in
24308# an unquoted here document, in config.status.  If some macros were
24309# called several times there might be several #defines for the same
24310# symbol, which is useless.  But do not sort them, since the last
24311# AC_DEFINE must be honored.
24312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24313# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24314# NAME is the cpp macro being defined, VALUE is the value it is being given.
24315# PARAMS is the parameter list in the macro definition--in most cases, it's
24316# just an empty string.
24317ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24318ac_dB='\\)[	 (].*,\\1define\\2'
24319ac_dC=' '
24320ac_dD=' ,'
24321
24322uniq confdefs.h |
24323  sed -n '
24324	t rset
24325	:rset
24326	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24327	t ok
24328	d
24329	:ok
24330	s/[\\&,]/\\&/g
24331	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24332	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24333  ' >>conftest.defines
24334
24335# Remove the space that was appended to ease matching.
24336# Then replace #undef with comments.  This is necessary, for
24337# example, in the case of _POSIX_SOURCE, which is predefined and required
24338# on some systems where configure will not decide to define it.
24339# (The regexp can be short, since the line contains either #define or #undef.)
24340echo 's/ $//
24341s,^[	 #]*u.*,/* & */,' >>conftest.defines
24342
24343# Break up conftest.defines:
24344ac_max_sed_lines=50
24345
24346# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24347# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24348# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24349# et cetera.
24350ac_in='$ac_file_inputs'
24351ac_out='"$tmp/out1"'
24352ac_nxt='"$tmp/out2"'
24353
24354while :
24355do
24356  # Write a here document:
24357    cat >>$CONFIG_STATUS <<_ACEOF
24358    # First, check the format of the line:
24359    cat >"\$tmp/defines.sed" <<\\CEOF
24360/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24361/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24362b
24363:def
24364_ACEOF
24365  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24366  echo 'CEOF
24367    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24368  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24369  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24370  grep . conftest.tail >/dev/null || break
24371  rm -f conftest.defines
24372  mv conftest.tail conftest.defines
24373done
24374rm -f conftest.defines conftest.tail
24375
24376echo "ac_result=$ac_in" >>$CONFIG_STATUS
24377cat >>$CONFIG_STATUS <<\_ACEOF
24378  if test x"$ac_file" != x-; then
24379    echo "/* $configure_input  */" >"$tmp/config.h"
24380    cat "$ac_result" >>"$tmp/config.h"
24381    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24382      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24383echo "$as_me: $ac_file is unchanged" >&6;}
24384    else
24385      rm -f $ac_file
24386      mv "$tmp/config.h" $ac_file
24387    fi
24388  else
24389    echo "/* $configure_input  */"
24390    cat "$ac_result"
24391  fi
24392  rm -f "$tmp/out12"
24393# Compute $ac_file's index in $config_headers.
24394_am_stamp_count=1
24395for _am_header in $config_headers :; do
24396  case $_am_header in
24397    $ac_file | $ac_file:* )
24398      break ;;
24399    * )
24400      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24401  esac
24402done
24403echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24404$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405	 X$ac_file : 'X\(//\)[^/]' \| \
24406	 X$ac_file : 'X\(//\)$' \| \
24407	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24408echo X$ac_file |
24409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24410	    s//\1/
24411	    q
24412	  }
24413	  /^X\(\/\/\)[^/].*/{
24414	    s//\1/
24415	    q
24416	  }
24417	  /^X\(\/\/\)$/{
24418	    s//\1/
24419	    q
24420	  }
24421	  /^X\(\/\).*/{
24422	    s//\1/
24423	    q
24424	  }
24425	  s/.*/./; q'`/stamp-h$_am_stamp_count
24426 ;;
24427
24428  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24429echo "$as_me: executing $ac_file commands" >&6;}
24430 ;;
24431  esac
24432
24433
24434  case $ac_file$ac_mode in
24435    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24436  # Strip MF so we end up with the name of the file.
24437  mf=`echo "$mf" | sed -e 's/:.*$//'`
24438  # Check whether this is an Automake generated Makefile or not.
24439  # We used to match only the files named `Makefile.in', but
24440  # some people rename them; so instead we look at the file content.
24441  # Grep'ing the first line is not enough: some people post-process
24442  # each Makefile.in and add a new line on top of each file to say so.
24443  # Grep'ing the whole file is not good either: AIX grep has a line
24444  # limit of 2048, but all sed's we know have understand at least 4000.
24445  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24446    dirpart=`$as_dirname -- "$mf" ||
24447$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24448	 X"$mf" : 'X\(//\)[^/]' \| \
24449	 X"$mf" : 'X\(//\)$' \| \
24450	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24451echo X"$mf" |
24452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24453	    s//\1/
24454	    q
24455	  }
24456	  /^X\(\/\/\)[^/].*/{
24457	    s//\1/
24458	    q
24459	  }
24460	  /^X\(\/\/\)$/{
24461	    s//\1/
24462	    q
24463	  }
24464	  /^X\(\/\).*/{
24465	    s//\1/
24466	    q
24467	  }
24468	  s/.*/./; q'`
24469  else
24470    continue
24471  fi
24472  # Extract the definition of DEPDIR, am__include, and am__quote
24473  # from the Makefile without running `make'.
24474  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24475  test -z "$DEPDIR" && continue
24476  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24477  test -z "am__include" && continue
24478  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24479  # When using ansi2knr, U may be empty or an underscore; expand it
24480  U=`sed -n 's/^U = //p' < "$mf"`
24481  # Find all dependency output files, they are included files with
24482  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24483  # simplest approach to changing $(DEPDIR) to its actual value in the
24484  # expansion.
24485  for file in `sed -n "
24486    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24487       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24488    # Make sure the directory exists.
24489    test -f "$dirpart/$file" && continue
24490    fdir=`$as_dirname -- "$file" ||
24491$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24492	 X"$file" : 'X\(//\)[^/]' \| \
24493	 X"$file" : 'X\(//\)$' \| \
24494	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24495echo X"$file" |
24496    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24497	    s//\1/
24498	    q
24499	  }
24500	  /^X\(\/\/\)[^/].*/{
24501	    s//\1/
24502	    q
24503	  }
24504	  /^X\(\/\/\)$/{
24505	    s//\1/
24506	    q
24507	  }
24508	  /^X\(\/\).*/{
24509	    s//\1/
24510	    q
24511	  }
24512	  s/.*/./; q'`
24513    { as_dir=$dirpart/$fdir
24514  case $as_dir in #(
24515  -*) as_dir=./$as_dir;;
24516  esac
24517  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24518    as_dirs=
24519    while :; do
24520      case $as_dir in #(
24521      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24522      *) as_qdir=$as_dir;;
24523      esac
24524      as_dirs="'$as_qdir' $as_dirs"
24525      as_dir=`$as_dirname -- "$as_dir" ||
24526$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24527	 X"$as_dir" : 'X\(//\)[^/]' \| \
24528	 X"$as_dir" : 'X\(//\)$' \| \
24529	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24530echo X"$as_dir" |
24531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24532	    s//\1/
24533	    q
24534	  }
24535	  /^X\(\/\/\)[^/].*/{
24536	    s//\1/
24537	    q
24538	  }
24539	  /^X\(\/\/\)$/{
24540	    s//\1/
24541	    q
24542	  }
24543	  /^X\(\/\).*/{
24544	    s//\1/
24545	    q
24546	  }
24547	  s/.*/./; q'`
24548      test -d "$as_dir" && break
24549    done
24550    test -z "$as_dirs" || eval "mkdir $as_dirs"
24551  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24552echo "$as_me: error: cannot create directory $as_dir" >&2;}
24553   { (exit 1); exit 1; }; }; }
24554    # echo "creating $dirpart/$file"
24555    echo '# dummy' > "$dirpart/$file"
24556  done
24557done
24558 ;;
24559
24560  esac
24561done # for ac_tag
24562
24563
24564{ (exit 0); exit 0; }
24565_ACEOF
24566chmod +x $CONFIG_STATUS
24567ac_clean_files=$ac_clean_files_save
24568
24569
24570# configure is writing to config.log, and then calls config.status.
24571# config.status does its own redirection, appending to config.log.
24572# Unfortunately, on DOS this fails, as config.log is still kept open
24573# by configure, so config.status won't be able to write to it; its
24574# output is simply discarded.  So we exec the FD to /dev/null,
24575# effectively closing config.log, so it can be properly (re)opened and
24576# appended to by config.status.  When coming back to configure, we
24577# need to make the FD available again.
24578if test "$no_create" != yes; then
24579  ac_cs_success=:
24580  ac_config_status_args=
24581  test "$silent" = yes &&
24582    ac_config_status_args="$ac_config_status_args --quiet"
24583  exec 5>/dev/null
24584  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24585  exec 5>>config.log
24586  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24587  # would make configure fail if this is the last instruction.
24588  $ac_cs_success || { (exit 1); exit 1; }
24589fi
24590
24591