1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="ic/m68k/m68k-impl.h"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807build
808build_cpu
809build_vendor
810build_os
811host
812host_cpu
813host_vendor
814host_os
815target
816target_cpu
817target_vendor
818target_os
819INSTALL_PROGRAM
820INSTALL_SCRIPT
821INSTALL_DATA
822am__isrc
823CYGPATH_W
824PACKAGE
825VERSION
826ACLOCAL
827AUTOCONF
828AUTOMAKE
829AUTOHEADER
830MAKEINFO
831install_sh
832STRIP
833INSTALL_STRIP_PROGRAM
834mkdir_p
835AWK
836SET_MAKE
837am__leading_dot
838AMTAR
839am__tar
840am__untar
841CC
842CFLAGS
843LDFLAGS
844CPPFLAGS
845ac_ct_CC
846EXEEXT
847OBJEXT
848DEPDIR
849am__include
850am__quote
851AMDEP_TRUE
852AMDEP_FALSE
853AMDEPBACKSLASH
854CCDEPMODE
855am__fastdepCC_TRUE
856am__fastdepCC_FALSE
857CPP
858YACC
859YFLAGS
860GREP
861EGREP
862LIBOBJS
863PERL
864XMKMF
865X_CFLAGS
866X_PRE_LIBS
867X_LIBS
868X_EXTRA_LIBS
869PKG_CONFIG
870GTK_CFLAGS
871GTK_LIBS
872TME_FB_XLAT_DST
873TME_MACHINE_SUBDIRS
874TME_IC_SUBDIRS
875TME_ICS
876TME_SERIAL_SUBDIRS
877TME_SERIALS
878TME_BUS_SUBDIRS
879TME_FB_XLAT_SRC
880TME_HOSTS
881INCLTDL
882LIBLTDL
883SED
884LN_S
885ECHO
886AR
887RANLIB
888CXX
889CXXFLAGS
890ac_ct_CXX
891CXXDEPMODE
892am__fastdepCXX_TRUE
893am__fastdepCXX_FALSE
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
899LTLIBOBJS
900subdirs
901TME_PREOPEN
902CFLAGS_NO_STRICT_ALIASING'
903ac_subst_files=''
904      ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913YACC
914YFLAGS
915XMKMF
916CXX
917CXXFLAGS
918CCC
919CXXCPP
920F77
921FFLAGS'
922ac_subdirs_all='libltdl'
923
924# Initialize some variables set by options.
925ac_init_help=
926ac_init_version=false
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974  # If the previous option needs an argument, assign it.
975  if test -n "$ac_prev"; then
976    eval $ac_prev=\$ac_option
977    ac_prev=
978    continue
979  fi
980
981  case $ac_option in
982  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983  *)	ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029   { (exit 1); exit 1; }; }
1030    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031    eval enable_$ac_feature=no ;;
1032
1033  -docdir | --docdir | --docdi | --doc | --do)
1034    ac_prev=docdir ;;
1035  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036    docdir=$ac_optarg ;;
1037
1038  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039    ac_prev=dvidir ;;
1040  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041    dvidir=$ac_optarg ;;
1042
1043  -enable-* | --enable-*)
1044    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048   { (exit 1); exit 1; }; }
1049    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050    eval enable_$ac_feature=\$ac_optarg ;;
1051
1052  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054  | --exec | --exe | --ex)
1055    ac_prev=exec_prefix ;;
1056  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058  | --exec=* | --exe=* | --ex=*)
1059    exec_prefix=$ac_optarg ;;
1060
1061  -gas | --gas | --ga | --g)
1062    # Obsolete; use --with-gas.
1063    with_gas=yes ;;
1064
1065  -help | --help | --hel | --he | -h)
1066    ac_init_help=long ;;
1067  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068    ac_init_help=recursive ;;
1069  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070    ac_init_help=short ;;
1071
1072  -host | --host | --hos | --ho)
1073    ac_prev=host_alias ;;
1074  -host=* | --host=* | --hos=* | --ho=*)
1075    host_alias=$ac_optarg ;;
1076
1077  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078    ac_prev=htmldir ;;
1079  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080  | --ht=*)
1081    htmldir=$ac_optarg ;;
1082
1083  -includedir | --includedir | --includedi | --included | --include \
1084  | --includ | --inclu | --incl | --inc)
1085    ac_prev=includedir ;;
1086  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087  | --includ=* | --inclu=* | --incl=* | --inc=*)
1088    includedir=$ac_optarg ;;
1089
1090  -infodir | --infodir | --infodi | --infod | --info | --inf)
1091    ac_prev=infodir ;;
1092  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093    infodir=$ac_optarg ;;
1094
1095  -libdir | --libdir | --libdi | --libd)
1096    ac_prev=libdir ;;
1097  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098    libdir=$ac_optarg ;;
1099
1100  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101  | --libexe | --libex | --libe)
1102    ac_prev=libexecdir ;;
1103  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104  | --libexe=* | --libex=* | --libe=*)
1105    libexecdir=$ac_optarg ;;
1106
1107  -localedir | --localedir | --localedi | --localed | --locale)
1108    ac_prev=localedir ;;
1109  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110    localedir=$ac_optarg ;;
1111
1112  -localstatedir | --localstatedir | --localstatedi | --localstated \
1113  | --localstate | --localstat | --localsta | --localst | --locals)
1114    ac_prev=localstatedir ;;
1115  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117    localstatedir=$ac_optarg ;;
1118
1119  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120    ac_prev=mandir ;;
1121  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122    mandir=$ac_optarg ;;
1123
1124  -nfp | --nfp | --nf)
1125    # Obsolete; use --without-fp.
1126    with_fp=no ;;
1127
1128  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129  | --no-cr | --no-c | -n)
1130    no_create=yes ;;
1131
1132  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134    no_recursion=yes ;;
1135
1136  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138  | --oldin | --oldi | --old | --ol | --o)
1139    ac_prev=oldincludedir ;;
1140  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143    oldincludedir=$ac_optarg ;;
1144
1145  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146    ac_prev=prefix ;;
1147  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148    prefix=$ac_optarg ;;
1149
1150  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151  | --program-pre | --program-pr | --program-p)
1152    ac_prev=program_prefix ;;
1153  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155    program_prefix=$ac_optarg ;;
1156
1157  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158  | --program-suf | --program-su | --program-s)
1159    ac_prev=program_suffix ;;
1160  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162    program_suffix=$ac_optarg ;;
1163
1164  -program-transform-name | --program-transform-name \
1165  | --program-transform-nam | --program-transform-na \
1166  | --program-transform-n | --program-transform- \
1167  | --program-transform | --program-transfor \
1168  | --program-transfo | --program-transf \
1169  | --program-trans | --program-tran \
1170  | --progr-tra | --program-tr | --program-t)
1171    ac_prev=program_transform_name ;;
1172  -program-transform-name=* | --program-transform-name=* \
1173  | --program-transform-nam=* | --program-transform-na=* \
1174  | --program-transform-n=* | --program-transform-=* \
1175  | --program-transform=* | --program-transfor=* \
1176  | --program-transfo=* | --program-transf=* \
1177  | --program-trans=* | --program-tran=* \
1178  | --progr-tra=* | --program-tr=* | --program-t=*)
1179    program_transform_name=$ac_optarg ;;
1180
1181  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182    ac_prev=pdfdir ;;
1183  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184    pdfdir=$ac_optarg ;;
1185
1186  -psdir | --psdir | --psdi | --psd | --ps)
1187    ac_prev=psdir ;;
1188  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189    psdir=$ac_optarg ;;
1190
1191  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192  | -silent | --silent | --silen | --sile | --sil)
1193    silent=yes ;;
1194
1195  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196    ac_prev=sbindir ;;
1197  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198  | --sbi=* | --sb=*)
1199    sbindir=$ac_optarg ;;
1200
1201  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203  | --sharedst | --shareds | --shared | --share | --shar \
1204  | --sha | --sh)
1205    ac_prev=sharedstatedir ;;
1206  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209  | --sha=* | --sh=*)
1210    sharedstatedir=$ac_optarg ;;
1211
1212  -site | --site | --sit)
1213    ac_prev=site ;;
1214  -site=* | --site=* | --sit=*)
1215    site=$ac_optarg ;;
1216
1217  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218    ac_prev=srcdir ;;
1219  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220    srcdir=$ac_optarg ;;
1221
1222  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223  | --syscon | --sysco | --sysc | --sys | --sy)
1224    ac_prev=sysconfdir ;;
1225  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227    sysconfdir=$ac_optarg ;;
1228
1229  -target | --target | --targe | --targ | --tar | --ta | --t)
1230    ac_prev=target_alias ;;
1231  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232    target_alias=$ac_optarg ;;
1233
1234  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235    verbose=yes ;;
1236
1237  -version | --version | --versio | --versi | --vers | -V)
1238    ac_init_version=: ;;
1239
1240  -with-* | --with-*)
1241    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242    # Reject names that are not valid shell variable names.
1243    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244      { echo "$as_me: error: invalid package name: $ac_package" >&2
1245   { (exit 1); exit 1; }; }
1246    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247    eval with_$ac_package=\$ac_optarg ;;
1248
1249  -without-* | --without-*)
1250    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      { echo "$as_me: error: invalid package name: $ac_package" >&2
1254   { (exit 1); exit 1; }; }
1255    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256    eval with_$ac_package=no ;;
1257
1258  --x)
1259    # Obsolete; use --with-x.
1260    with_x=yes ;;
1261
1262  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263  | --x-incl | --x-inc | --x-in | --x-i)
1264    ac_prev=x_includes ;;
1265  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267    x_includes=$ac_optarg ;;
1268
1269  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271    ac_prev=x_libraries ;;
1272  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274    x_libraries=$ac_optarg ;;
1275
1276  -*) { echo "$as_me: error: unrecognized option: $ac_option
1277Try \`$0 --help' for more information." >&2
1278   { (exit 1); exit 1; }; }
1279    ;;
1280
1281  *=*)
1282    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283    # Reject names that are not valid shell variable names.
1284    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286   { (exit 1); exit 1; }; }
1287    eval $ac_envvar=\$ac_optarg
1288    export $ac_envvar ;;
1289
1290  *)
1291    # FIXME: should be removed in autoconf 3.0.
1292    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296    ;;
1297
1298  esac
1299done
1300
1301if test -n "$ac_prev"; then
1302  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303  { echo "$as_me: error: missing argument to $ac_option" >&2
1304   { (exit 1); exit 1; }; }
1305fi
1306
1307# Be sure to have absolute directory names.
1308for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309		datadir sysconfdir sharedstatedir localstatedir includedir \
1310		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311		libdir localedir mandir
1312do
1313  eval ac_val=\$$ac_var
1314  case $ac_val in
1315    [\\/$]* | ?:[\\/]* )  continue;;
1316    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317  esac
1318  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319   { (exit 1); exit 1; }; }
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331  if test "x$build_alias" = x; then
1332    cross_compiling=maybe
1333    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334    If a cross compiler is detected then cross compile mode will be used." >&2
1335  elif test "x$build_alias" != "x$host_alias"; then
1336    cross_compiling=yes
1337  fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
1344
1345
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349  { echo "$as_me: error: Working directory cannot be determined" >&2
1350   { (exit 1); exit 1; }; }
1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352  { echo "$as_me: error: pwd does not report name of working directory" >&2
1353   { (exit 1); exit 1; }; }
1354
1355
1356# Find the source files, if location was not specified.
1357if test -z "$srcdir"; then
1358  ac_srcdir_defaulted=yes
1359  # Try the directory containing this script, then the parent directory.
1360  ac_confdir=`$as_dirname -- "$0" ||
1361$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362	 X"$0" : 'X\(//\)[^/]' \| \
1363	 X"$0" : 'X\(//\)$' \| \
1364	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365echo X"$0" |
1366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)[^/].*/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\/\)$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\).*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  s/.*/./; q'`
1383  srcdir=$ac_confdir
1384  if test ! -r "$srcdir/$ac_unique_file"; then
1385    srcdir=..
1386  fi
1387else
1388  ac_srcdir_defaulted=no
1389fi
1390if test ! -r "$srcdir/$ac_unique_file"; then
1391  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393   { (exit 1); exit 1; }; }
1394fi
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
1397	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398   { (exit 1); exit 1; }; }
1399	pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402  srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412  eval ac_env_${ac_var}_value=\$${ac_var}
1413  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421  # Omit some internal or obsolete options to make the list less imposing.
1422  # This message is too long to be a string in the A/UX 3.1 sh.
1423  cat <<_ACEOF
1424\`configure' configures this package to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434  -h, --help              display this help and exit
1435      --help=short        display options specific to this package
1436      --help=recursive    display the short help of all the included packages
1437  -V, --version           display version information and exit
1438  -q, --quiet, --silent   do not print \`checking...' messages
1439      --cache-file=FILE   cache test results in FILE [disabled]
1440  -C, --config-cache      alias for \`--cache-file=config.cache'
1441  -n, --no-create         do not create output files
1442      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
1444Installation directories:
1445  --prefix=PREFIX         install architecture-independent files in PREFIX
1446			  [$ac_default_prefix]
1447  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448			  [PREFIX]
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
1458  --bindir=DIR           user executables [EPREFIX/bin]
1459  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1460  --libexecdir=DIR       program executables [EPREFIX/libexec]
1461  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1462  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1463  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1464  --libdir=DIR           object code libraries [EPREFIX/lib]
1465  --includedir=DIR       C header files [PREFIX/include]
1466  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1467  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1468  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1469  --infodir=DIR          info documentation [DATAROOTDIR/info]
1470  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1471  --mandir=DIR           man documentation [DATAROOTDIR/man]
1472  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1473  --htmldir=DIR          html documentation [DOCDIR]
1474  --dvidir=DIR           dvi documentation [DOCDIR]
1475  --pdfdir=DIR           pdf documentation [DOCDIR]
1476  --psdir=DIR            ps documentation [DOCDIR]
1477_ACEOF
1478
1479  cat <<\_ACEOF
1480
1481Program names:
1482  --program-prefix=PREFIX            prepend PREFIX to installed program names
1483  --program-suffix=SUFFIX            append SUFFIX to installed program names
1484  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486X features:
1487  --x-includes=DIR    X include files are in DIR
1488  --x-libraries=DIR   X library files are in DIR
1489
1490System types:
1491  --build=BUILD     configure for building on BUILD [guessed]
1492  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493  --target=TARGET   configure for building compilers for TARGET [HOST]
1494_ACEOF
1495fi
1496
1497if test -n "$ac_init_help"; then
1498
1499  cat <<\_ACEOF
1500
1501Optional Features:
1502  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1503  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1504  --disable-dependency-tracking  speeds up one-time build
1505  --enable-dependency-tracking   do not reject slow dependency extractors
1506  --disable-gtktest       do not try to compile and run a test GTK+ program
1507  --enable-recode         enable recode (dynamic binary translation) (default=if target supports)
1508  --enable-shared[=PKGS]  build shared libraries [default=yes]
1509  --enable-static[=PKGS]  build static libraries [default=yes]
1510  --enable-fast-install[=PKGS]
1511                          optimize for fast installation [default=yes]
1512  --disable-libtool-lock  avoid locking (might break parallel builds)
1513  --enable-debug          compile debuggable libraries and programs (default=don't)
1514  --disable-warnings      don't compile with warnings turned on (default=do)
1515
1516Optional Packages:
1517  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519  --with-x                use the X Window System
1520  --with-tme-host-displays=DISPLAYS  support host displays with these display formats
1521  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522  --with-pic              try to use only PIC/non-PIC objects [default=use
1523                          both]
1524  --with-tags[=TAGS]      include additional configurations [automatic]
1525
1526Some influential environment variables:
1527  CC          C compiler command
1528  CFLAGS      C compiler flags
1529  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530              nonstandard directory <lib dir>
1531  LIBS        libraries to pass to the linker, e.g. -l<library>
1532  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533              you have headers in a nonstandard directory <include dir>
1534  CPP         C preprocessor
1535  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1536              the first program found out of: `bison -y', `byacc', `yacc'.
1537  YFLAGS      The list of arguments that will be passed by default to $YACC.
1538              This script will default YFLAGS to the empty string to avoid a
1539              default value of `-d' given by some make applications.
1540  XMKMF       Path to xmkmf, Makefile generator for X Window System
1541  CXX         C++ compiler command
1542  CXXFLAGS    C++ compiler flags
1543  CXXCPP      C++ preprocessor
1544  F77         Fortran 77 compiler command
1545  FFLAGS      Fortran 77 compiler flags
1546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550_ACEOF
1551ac_status=$?
1552fi
1553
1554if test "$ac_init_help" = "recursive"; then
1555  # If there are subdirs, report their specific --help.
1556  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557    test -d "$ac_dir" || continue
1558    ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1564  # A ".." for each directory in $ac_dir_suffix.
1565  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1566  case $ac_top_builddir_sub in
1567  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569  esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577  .)  # We are building in place.
1578    ac_srcdir=.
1579    ac_top_srcdir=$ac_top_builddir_sub
1580    ac_abs_top_srcdir=$ac_pwd ;;
1581  [\\/]* | ?:[\\/]* )  # Absolute name.
1582    ac_srcdir=$srcdir$ac_dir_suffix;
1583    ac_top_srcdir=$srcdir
1584    ac_abs_top_srcdir=$srcdir ;;
1585  *) # Relative name.
1586    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587    ac_top_srcdir=$ac_top_build_prefix$srcdir
1588    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592    cd "$ac_dir" || { ac_status=$?; continue; }
1593    # Check for guested configure.
1594    if test -f "$ac_srcdir/configure.gnu"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597    elif test -f "$ac_srcdir/configure"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure" --help=recursive
1600    else
1601      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602    fi || ac_status=$?
1603    cd "$ac_pwd" || { ac_status=$?; break; }
1604  done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609  cat <<\_ACEOF
1610configure
1611generated by GNU Autoconf 2.61
1612
1613Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16142002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1615This configure script is free software; the Free Software Foundation
1616gives unlimited permission to copy, distribute and modify it.
1617_ACEOF
1618  exit
1619fi
1620cat >config.log <<_ACEOF
1621This file contains any messages produced by compilers while
1622running configure, to aid debugging if configure makes a mistake.
1623
1624It was created by $as_me, which was
1625generated by GNU Autoconf 2.61.  Invocation command line was
1626
1627  $ $0 $@
1628
1629_ACEOF
1630exec 5>>config.log
1631{
1632cat <<_ASUNAME
1633## --------- ##
1634## Platform. ##
1635## --------- ##
1636
1637hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1638uname -m = `(uname -m) 2>/dev/null || echo unknown`
1639uname -r = `(uname -r) 2>/dev/null || echo unknown`
1640uname -s = `(uname -s) 2>/dev/null || echo unknown`
1641uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642
1643/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1644/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1645
1646/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1647/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1648/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1649/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1650/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1651/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1652/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1653
1654_ASUNAME
1655
1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
1659  IFS=$as_save_IFS
1660  test -z "$as_dir" && as_dir=.
1661  echo "PATH: $as_dir"
1662done
1663IFS=$as_save_IFS
1664
1665} >&5
1666
1667cat >&5 <<_ACEOF
1668
1669
1670## ----------- ##
1671## Core tests. ##
1672## ----------- ##
1673
1674_ACEOF
1675
1676
1677# Keep a trace of the command line.
1678# Strip out --no-create and --no-recursion so they do not pile up.
1679# Strip out --silent because we don't want to record it for future runs.
1680# Also quote any args containing shell meta-characters.
1681# Make two passes to allow for proper duplicate-argument suppression.
1682ac_configure_args=
1683ac_configure_args0=
1684ac_configure_args1=
1685ac_must_keep_next=false
1686for ac_pass in 1 2
1687do
1688  for ac_arg
1689  do
1690    case $ac_arg in
1691    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1692    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1693    | -silent | --silent | --silen | --sile | --sil)
1694      continue ;;
1695    *\'*)
1696      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1697    esac
1698    case $ac_pass in
1699    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1700    2)
1701      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1702      if test $ac_must_keep_next = true; then
1703	ac_must_keep_next=false # Got value, back to normal.
1704      else
1705	case $ac_arg in
1706	  *=* | --config-cache | -C | -disable-* | --disable-* \
1707	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1708	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1709	  | -with-* | --with-* | -without-* | --without-* | --x)
1710	    case "$ac_configure_args0 " in
1711	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1712	    esac
1713	    ;;
1714	  -* ) ac_must_keep_next=true ;;
1715	esac
1716      fi
1717      ac_configure_args="$ac_configure_args '$ac_arg'"
1718      ;;
1719    esac
1720  done
1721done
1722$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1723$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724
1725# When interrupted or exit'd, cleanup temporary files, and complete
1726# config.log.  We remove comments because anyway the quotes in there
1727# would cause problems or look ugly.
1728# WARNING: Use '\'' to represent an apostrophe within the trap.
1729# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1730trap 'exit_status=$?
1731  # Save into config.log some information that might help in debugging.
1732  {
1733    echo
1734
1735    cat <<\_ASBOX
1736## ---------------- ##
1737## Cache variables. ##
1738## ---------------- ##
1739_ASBOX
1740    echo
1741    # The following way of writing the cache mishandles newlines in values,
1742(
1743  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1744    eval ac_val=\$$ac_var
1745    case $ac_val in #(
1746    *${as_nl}*)
1747      case $ac_var in #(
1748      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1749echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1750      esac
1751      case $ac_var in #(
1752      _ | IFS | as_nl) ;; #(
1753      *) $as_unset $ac_var ;;
1754      esac ;;
1755    esac
1756  done
1757  (set) 2>&1 |
1758    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1759    *${as_nl}ac_space=\ *)
1760      sed -n \
1761	"s/'\''/'\''\\\\'\'''\''/g;
1762	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1763      ;; #(
1764    *)
1765      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766      ;;
1767    esac |
1768    sort
1769)
1770    echo
1771
1772    cat <<\_ASBOX
1773## ----------------- ##
1774## Output variables. ##
1775## ----------------- ##
1776_ASBOX
1777    echo
1778    for ac_var in $ac_subst_vars
1779    do
1780      eval ac_val=\$$ac_var
1781      case $ac_val in
1782      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783      esac
1784      echo "$ac_var='\''$ac_val'\''"
1785    done | sort
1786    echo
1787
1788    if test -n "$ac_subst_files"; then
1789      cat <<\_ASBOX
1790## ------------------- ##
1791## File substitutions. ##
1792## ------------------- ##
1793_ASBOX
1794      echo
1795      for ac_var in $ac_subst_files
1796      do
1797	eval ac_val=\$$ac_var
1798	case $ac_val in
1799	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800	esac
1801	echo "$ac_var='\''$ac_val'\''"
1802      done | sort
1803      echo
1804    fi
1805
1806    if test -s confdefs.h; then
1807      cat <<\_ASBOX
1808## ----------- ##
1809## confdefs.h. ##
1810## ----------- ##
1811_ASBOX
1812      echo
1813      cat confdefs.h
1814      echo
1815    fi
1816    test "$ac_signal" != 0 &&
1817      echo "$as_me: caught signal $ac_signal"
1818    echo "$as_me: exit $exit_status"
1819  } >&5
1820  rm -f core *.core core.conftest.* &&
1821    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822    exit $exit_status
1823' 0
1824for ac_signal in 1 2 13 15; do
1825  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1826done
1827ac_signal=0
1828
1829# confdefs.h avoids OS command line length limits that DEFS can exceed.
1830rm -f -r conftest* confdefs.h
1831
1832# Predefined preprocessor variables.
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_NAME "$PACKAGE_NAME"
1836_ACEOF
1837
1838
1839cat >>confdefs.h <<_ACEOF
1840#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1841_ACEOF
1842
1843
1844cat >>confdefs.h <<_ACEOF
1845#define PACKAGE_VERSION "$PACKAGE_VERSION"
1846_ACEOF
1847
1848
1849cat >>confdefs.h <<_ACEOF
1850#define PACKAGE_STRING "$PACKAGE_STRING"
1851_ACEOF
1852
1853
1854cat >>confdefs.h <<_ACEOF
1855#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1856_ACEOF
1857
1858
1859# Let the site file select an alternate cache file if it wants to.
1860# Prefer explicitly selected file to automatically selected ones.
1861if test -n "$CONFIG_SITE"; then
1862  set x "$CONFIG_SITE"
1863elif test "x$prefix" != xNONE; then
1864  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1865else
1866  set x "$ac_default_prefix/share/config.site" \
1867	"$ac_default_prefix/etc/config.site"
1868fi
1869shift
1870for ac_site_file
1871do
1872  if test -r "$ac_site_file"; then
1873    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1874echo "$as_me: loading site script $ac_site_file" >&6;}
1875    sed 's/^/| /' "$ac_site_file" >&5
1876    . "$ac_site_file"
1877  fi
1878done
1879
1880if test -r "$cache_file"; then
1881  # Some versions of bash will fail to source /dev/null (special
1882  # files actually), so we avoid doing that.
1883  if test -f "$cache_file"; then
1884    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1885echo "$as_me: loading cache $cache_file" >&6;}
1886    case $cache_file in
1887      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1888      *)                      . "./$cache_file";;
1889    esac
1890  fi
1891else
1892  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1893echo "$as_me: creating cache $cache_file" >&6;}
1894  >$cache_file
1895fi
1896
1897# Check that the precious variables saved in the cache have kept the same
1898# value.
1899ac_cache_corrupted=false
1900for ac_var in $ac_precious_vars; do
1901  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1902  eval ac_new_set=\$ac_env_${ac_var}_set
1903  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1904  eval ac_new_val=\$ac_env_${ac_var}_value
1905  case $ac_old_set,$ac_new_set in
1906    set,)
1907      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1908echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1909      ac_cache_corrupted=: ;;
1910    ,set)
1911      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1912echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1913      ac_cache_corrupted=: ;;
1914    ,);;
1915    *)
1916      if test "x$ac_old_val" != "x$ac_new_val"; then
1917	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1920echo "$as_me:   former value:  $ac_old_val" >&2;}
1921	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1922echo "$as_me:   current value: $ac_new_val" >&2;}
1923	ac_cache_corrupted=:
1924      fi;;
1925  esac
1926  # Pass precious variables to config.status.
1927  if test "$ac_new_set" = set; then
1928    case $ac_new_val in
1929    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930    *) ac_arg=$ac_var=$ac_new_val ;;
1931    esac
1932    case " $ac_configure_args " in
1933      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1934      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935    esac
1936  fi
1937done
1938if $ac_cache_corrupted; then
1939  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1940echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1941  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1942echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1943   { (exit 1); exit 1; }; }
1944fi
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969ac_aux_dir=
1970for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1971  if test -f "$ac_dir/install-sh"; then
1972    ac_aux_dir=$ac_dir
1973    ac_install_sh="$ac_aux_dir/install-sh -c"
1974    break
1975  elif test -f "$ac_dir/install.sh"; then
1976    ac_aux_dir=$ac_dir
1977    ac_install_sh="$ac_aux_dir/install.sh -c"
1978    break
1979  elif test -f "$ac_dir/shtool"; then
1980    ac_aux_dir=$ac_dir
1981    ac_install_sh="$ac_aux_dir/shtool install -c"
1982    break
1983  fi
1984done
1985if test -z "$ac_aux_dir"; then
1986  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1987echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1988   { (exit 1); exit 1; }; }
1989fi
1990
1991# These three variables are undocumented and unsupported,
1992# and are intended to be withdrawn in a future Autoconf release.
1993# They can cause serious problems if a builder's source tree is in a directory
1994# whose full name contains unusual characters.
1995ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1996ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1997ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1998
1999
2000# Make sure we can run config.sub.
2001$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2002  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2003echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2004   { (exit 1); exit 1; }; }
2005
2006{ echo "$as_me:$LINENO: checking build system type" >&5
2007echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2008if test "${ac_cv_build+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  ac_build_alias=$build_alias
2012test "x$ac_build_alias" = x &&
2013  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2014test "x$ac_build_alias" = x &&
2015  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017   { (exit 1); exit 1; }; }
2018ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2019  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2020echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2021   { (exit 1); exit 1; }; }
2022
2023fi
2024{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025echo "${ECHO_T}$ac_cv_build" >&6; }
2026case $ac_cv_build in
2027*-*-*) ;;
2028*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2029echo "$as_me: error: invalid value of canonical build" >&2;}
2030   { (exit 1); exit 1; }; };;
2031esac
2032build=$ac_cv_build
2033ac_save_IFS=$IFS; IFS='-'
2034set x $ac_cv_build
2035shift
2036build_cpu=$1
2037build_vendor=$2
2038shift; shift
2039# Remember, the first character of IFS is used to create $*,
2040# except with old shells:
2041build_os=$*
2042IFS=$ac_save_IFS
2043case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2044
2045
2046{ echo "$as_me:$LINENO: checking host system type" >&5
2047echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2048if test "${ac_cv_host+set}" = set; then
2049  echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051  if test "x$host_alias" = x; then
2052  ac_cv_host=$ac_cv_build
2053else
2054  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2055    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2056echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2057   { (exit 1); exit 1; }; }
2058fi
2059
2060fi
2061{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062echo "${ECHO_T}$ac_cv_host" >&6; }
2063case $ac_cv_host in
2064*-*-*) ;;
2065*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2066echo "$as_me: error: invalid value of canonical host" >&2;}
2067   { (exit 1); exit 1; }; };;
2068esac
2069host=$ac_cv_host
2070ac_save_IFS=$IFS; IFS='-'
2071set x $ac_cv_host
2072shift
2073host_cpu=$1
2074host_vendor=$2
2075shift; shift
2076# Remember, the first character of IFS is used to create $*,
2077# except with old shells:
2078host_os=$*
2079IFS=$ac_save_IFS
2080case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2081
2082
2083{ echo "$as_me:$LINENO: checking target system type" >&5
2084echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2085if test "${ac_cv_target+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test "x$target_alias" = x; then
2089  ac_cv_target=$ac_cv_host
2090else
2091  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2092    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2093echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097fi
2098{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2099echo "${ECHO_T}$ac_cv_target" >&6; }
2100case $ac_cv_target in
2101*-*-*) ;;
2102*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2103echo "$as_me: error: invalid value of canonical target" >&2;}
2104   { (exit 1); exit 1; }; };;
2105esac
2106target=$ac_cv_target
2107ac_save_IFS=$IFS; IFS='-'
2108set x $ac_cv_target
2109shift
2110target_cpu=$1
2111target_vendor=$2
2112shift; shift
2113# Remember, the first character of IFS is used to create $*,
2114# except with old shells:
2115target_os=$*
2116IFS=$ac_save_IFS
2117case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2118
2119
2120# The aliases save the names the user supplied, while $host etc.
2121# will get canonicalized.
2122test -n "$target_alias" &&
2123  test "$program_prefix$program_suffix$program_transform_name" = \
2124    NONENONEs,x,x, &&
2125  program_prefix=${target_alias}-
2126am__api_version='1.10'
2127
2128# Find a good install program.  We prefer a C program (faster),
2129# so one script is as good as another.  But avoid the broken or
2130# incompatible versions:
2131# SysV /etc/install, /usr/sbin/install
2132# SunOS /usr/etc/install
2133# IRIX /sbin/install
2134# AIX /bin/install
2135# AmigaOS /C/install, which installs bootblocks on floppy discs
2136# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139# OS/2's system install, which has a completely different semantic
2140# ./install, which can be erroneously created by make from ./install.sh.
2141{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2142echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2143if test -z "$INSTALL"; then
2144if test "${ac_cv_path_install+set}" = set; then
2145  echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150  IFS=$as_save_IFS
2151  test -z "$as_dir" && as_dir=.
2152  # Account for people who put trailing slashes in PATH elements.
2153case $as_dir/ in
2154  ./ | .// | /cC/* | \
2155  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2156  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2157  /usr/ucb/* ) ;;
2158  *)
2159    # OSF1 and SCO ODT 3.0 have their own names for install.
2160    # Don't use installbsd from OSF since it installs stuff as root
2161    # by default.
2162    for ac_prog in ginstall scoinst install; do
2163      for ac_exec_ext in '' $ac_executable_extensions; do
2164	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2165	  if test $ac_prog = install &&
2166	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167	    # AIX install.  It has an incompatible calling convention.
2168	    :
2169	  elif test $ac_prog = install &&
2170	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171	    # program-specific install script used by HP pwplus--don't use.
2172	    :
2173	  else
2174	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2175	    break 3
2176	  fi
2177	fi
2178      done
2179    done
2180    ;;
2181esac
2182done
2183IFS=$as_save_IFS
2184
2185
2186fi
2187  if test "${ac_cv_path_install+set}" = set; then
2188    INSTALL=$ac_cv_path_install
2189  else
2190    # As a last resort, use the slow shell script.  Don't cache a
2191    # value for INSTALL within a source directory, because that will
2192    # break other packages using the cache if that directory is
2193    # removed, or if the value is a relative name.
2194    INSTALL=$ac_install_sh
2195  fi
2196fi
2197{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2198echo "${ECHO_T}$INSTALL" >&6; }
2199
2200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201# It thinks the first close brace ends the variable substitution.
2202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203
2204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205
2206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207
2208{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2209echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2210# Just in case
2211sleep 1
2212echo timestamp > conftest.file
2213# Do `set' in a subshell so we don't clobber the current shell's
2214# arguments.  Must try -L first in case configure is actually a
2215# symlink; some systems play weird games with the mod time of symlinks
2216# (eg FreeBSD returns the mod time of the symlink's containing
2217# directory).
2218if (
2219   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2220   if test "$*" = "X"; then
2221      # -L didn't work.
2222      set X `ls -t $srcdir/configure conftest.file`
2223   fi
2224   rm -f conftest.file
2225   if test "$*" != "X $srcdir/configure conftest.file" \
2226      && test "$*" != "X conftest.file $srcdir/configure"; then
2227
2228      # If neither matched, then we have a broken ls.  This can happen
2229      # if, for instance, CONFIG_SHELL is bash and it inherits a
2230      # broken ls alias from the environment.  This has actually
2231      # happened.  Such a system could not be considered "sane".
2232      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2233alias in your environment" >&5
2234echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2235alias in your environment" >&2;}
2236   { (exit 1); exit 1; }; }
2237   fi
2238
2239   test "$2" = conftest.file
2240   )
2241then
2242   # Ok.
2243   :
2244else
2245   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2246Check your system clock" >&5
2247echo "$as_me: error: newly created file is older than distributed files!
2248Check your system clock" >&2;}
2249   { (exit 1); exit 1; }; }
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253test "$program_prefix" != NONE &&
2254  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2255# Use a double $ so make ignores it.
2256test "$program_suffix" != NONE &&
2257  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2258# Double any \ or $.  echo might interpret backslashes.
2259# By default was `s,x,x', remove it if useless.
2260cat <<\_ACEOF >conftest.sed
2261s/[\\$]/&&/g;s/;s,x,x,$//
2262_ACEOF
2263program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2264rm -f conftest.sed
2265
2266# expand $ac_aux_dir to an absolute path
2267am_aux_dir=`cd $ac_aux_dir && pwd`
2268
2269test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2270# Use eval to expand $SHELL
2271if eval "$MISSING --run true"; then
2272  am_missing_run="$MISSING --run "
2273else
2274  am_missing_run=
2275  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2276echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2277fi
2278
2279{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2280echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2281if test -z "$MKDIR_P"; then
2282  if test "${ac_cv_path_mkdir+set}" = set; then
2283  echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
2285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2287do
2288  IFS=$as_save_IFS
2289  test -z "$as_dir" && as_dir=.
2290  for ac_prog in mkdir gmkdir; do
2291	 for ac_exec_ext in '' $ac_executable_extensions; do
2292	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2293	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2294	     'mkdir (GNU coreutils) '* | \
2295	     'mkdir (coreutils) '* | \
2296	     'mkdir (fileutils) '4.1*)
2297	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2298	       break 3;;
2299	   esac
2300	 done
2301       done
2302done
2303IFS=$as_save_IFS
2304
2305fi
2306
2307  if test "${ac_cv_path_mkdir+set}" = set; then
2308    MKDIR_P="$ac_cv_path_mkdir -p"
2309  else
2310    # As a last resort, use the slow shell script.  Don't cache a
2311    # value for MKDIR_P within a source directory, because that will
2312    # break other packages using the cache if that directory is
2313    # removed, or if the value is a relative name.
2314    test -d ./--version && rmdir ./--version
2315    MKDIR_P="$ac_install_sh -d"
2316  fi
2317fi
2318{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2319echo "${ECHO_T}$MKDIR_P" >&6; }
2320
2321mkdir_p="$MKDIR_P"
2322case $mkdir_p in
2323  [\\/$]* | ?:[\\/]*) ;;
2324  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2325esac
2326
2327for ac_prog in gawk mawk nawk awk
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_AWK+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  if test -n "$AWK"; then
2337  ac_cv_prog_AWK="$AWK" # 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_AWK="$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
2356AWK=$ac_cv_prog_AWK
2357if test -n "$AWK"; then
2358  { echo "$as_me:$LINENO: result: $AWK" >&5
2359echo "${ECHO_T}$AWK" >&6; }
2360else
2361  { echo "$as_me:$LINENO: result: no" >&5
2362echo "${ECHO_T}no" >&6; }
2363fi
2364
2365
2366  test -n "$AWK" && break
2367done
2368
2369{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2370echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2371set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2372if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2373  echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375  cat >conftest.make <<\_ACEOF
2376SHELL = /bin/sh
2377all:
2378	@echo '@@@%%%=$(MAKE)=@@@%%%'
2379_ACEOF
2380# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2381case `${MAKE-make} -f conftest.make 2>/dev/null` in
2382  *@@@%%%=?*=@@@%%%*)
2383    eval ac_cv_prog_make_${ac_make}_set=yes;;
2384  *)
2385    eval ac_cv_prog_make_${ac_make}_set=no;;
2386esac
2387rm -f conftest.make
2388fi
2389if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2390  { echo "$as_me:$LINENO: result: yes" >&5
2391echo "${ECHO_T}yes" >&6; }
2392  SET_MAKE=
2393else
2394  { echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6; }
2396  SET_MAKE="MAKE=${MAKE-make}"
2397fi
2398
2399rm -rf .tst 2>/dev/null
2400mkdir .tst 2>/dev/null
2401if test -d .tst; then
2402  am__leading_dot=.
2403else
2404  am__leading_dot=_
2405fi
2406rmdir .tst 2>/dev/null
2407
2408if test "`cd $srcdir && pwd`" != "`pwd`"; then
2409  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2410  # is not polluted with repeated "-I."
2411  am__isrc=' -I$(srcdir)'
2412  # test to see if srcdir already configured
2413  if test -f $srcdir/config.status; then
2414    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2415echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2416   { (exit 1); exit 1; }; }
2417  fi
2418fi
2419
2420# test whether we have cygpath
2421if test -z "$CYGPATH_W"; then
2422  if (cygpath --version) >/dev/null 2>/dev/null; then
2423    CYGPATH_W='cygpath -w'
2424  else
2425    CYGPATH_W=echo
2426  fi
2427fi
2428
2429
2430# Define the identity of the package.
2431 PACKAGE=tme
2432 VERSION=0.8
2433
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE "$PACKAGE"
2437_ACEOF
2438
2439
2440cat >>confdefs.h <<_ACEOF
2441#define VERSION "$VERSION"
2442_ACEOF
2443
2444# Some tools Automake needs.
2445
2446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2447
2448
2449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2450
2451
2452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2453
2454
2455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2456
2457
2458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2459
2460install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2461
2462# Installed binaries are usually stripped using `strip' when the user
2463# run `make install-strip'.  However `strip' might not be the right
2464# tool to use in cross-compilation environments, therefore Automake
2465# will honor the `STRIP' environment variable to overrule this program.
2466if test "$cross_compiling" != no; then
2467  if test -n "$ac_tool_prefix"; then
2468  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469set dummy ${ac_tool_prefix}strip; ac_word=$2
2470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472if test "${ac_cv_prog_STRIP+set}" = set; then
2473  echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475  if test -n "$STRIP"; then
2476  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483  for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495STRIP=$ac_cv_prog_STRIP
2496if test -n "$STRIP"; then
2497  { echo "$as_me:$LINENO: result: $STRIP" >&5
2498echo "${ECHO_T}$STRIP" >&6; }
2499else
2500  { echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6; }
2502fi
2503
2504
2505fi
2506if test -z "$ac_cv_prog_STRIP"; then
2507  ac_ct_STRIP=$STRIP
2508  # Extract the first word of "strip", so it can be a program name with args.
2509set dummy strip; ac_word=$2
2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  if test -n "$ac_ct_STRIP"; then
2516  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523  for ac_exec_ext in '' $ac_executable_extensions; do
2524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525    ac_cv_prog_ac_ct_STRIP="strip"
2526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536if test -n "$ac_ct_STRIP"; then
2537  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2538echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2539else
2540  { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
2542fi
2543
2544  if test "x$ac_ct_STRIP" = x; then
2545    STRIP=":"
2546  else
2547    case $cross_compiling:$ac_tool_warned in
2548yes:)
2549{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2550whose name does not start with the host triplet.  If you think this
2551configuration is useful to you, please write to autoconf@gnu.org." >&5
2552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2553whose name does not start with the host triplet.  If you think this
2554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557    STRIP=$ac_ct_STRIP
2558  fi
2559else
2560  STRIP="$ac_cv_prog_STRIP"
2561fi
2562
2563fi
2564INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566# We need awk for the "check" target.  The system "awk" is bad on
2567# some platforms.
2568# Always define AMTAR for backward compatibility.
2569
2570AMTAR=${AMTAR-"${am_missing_run}tar"}
2571
2572am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2573
2574
2575
2576
2577
2578
2579ac_config_headers="$ac_config_headers config.h"
2580
2581
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587if test -n "$ac_tool_prefix"; then
2588  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}gcc; ac_word=$2
2590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then
2593  echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595  if test -n "$CC"; then
2596  ac_cv_prog_CC="$CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603  for ac_exec_ext in '' $ac_executable_extensions; do
2604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
2617  { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
2619else
2620  { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
2622fi
2623
2624
2625fi
2626if test -z "$ac_cv_prog_CC"; then
2627  ac_ct_CC=$CC
2628  # Extract the first word of "gcc", so it can be a program name with args.
2629set dummy gcc; ac_word=$2
2630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2633  echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635  if test -n "$ac_ct_CC"; then
2636  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641  IFS=$as_save_IFS
2642  test -z "$as_dir" && as_dir=.
2643  for ac_exec_ext in '' $ac_executable_extensions; do
2644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645    ac_cv_prog_ac_ct_CC="gcc"
2646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647    break 2
2648  fi
2649done
2650done
2651IFS=$as_save_IFS
2652
2653fi
2654fi
2655ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656if test -n "$ac_ct_CC"; then
2657  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2658echo "${ECHO_T}$ac_ct_CC" >&6; }
2659else
2660  { echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6; }
2662fi
2663
2664  if test "x$ac_ct_CC" = x; then
2665    CC=""
2666  else
2667    case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2670whose name does not start with the host triplet.  If you think this
2671configuration is useful to you, please write to autoconf@gnu.org." >&5
2672echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2673whose name does not start with the host triplet.  If you think this
2674configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677    CC=$ac_ct_CC
2678  fi
2679else
2680  CC="$ac_cv_prog_CC"
2681fi
2682
2683if test -z "$CC"; then
2684          if test -n "$ac_tool_prefix"; then
2685    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}cc; ac_word=$2
2687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2689if test "${ac_cv_prog_CC+set}" = set; then
2690  echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692  if test -n "$CC"; then
2693  ac_cv_prog_CC="$CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700  for ac_exec_ext in '' $ac_executable_extensions; do
2701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702    ac_cv_prog_CC="${ac_tool_prefix}cc"
2703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712CC=$ac_cv_prog_CC
2713if test -n "$CC"; then
2714  { echo "$as_me:$LINENO: result: $CC" >&5
2715echo "${ECHO_T}$CC" >&6; }
2716else
2717  { echo "$as_me:$LINENO: result: no" >&5
2718echo "${ECHO_T}no" >&6; }
2719fi
2720
2721
2722  fi
2723fi
2724if test -z "$CC"; then
2725  # Extract the first word of "cc", so it can be a program name with args.
2726set dummy cc; ac_word=$2
2727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729if test "${ac_cv_prog_CC+set}" = set; then
2730  echo $ECHO_N "(cached) $ECHO_C" >&6
2731else
2732  if test -n "$CC"; then
2733  ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735  ac_prog_rejected=no
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741  for ac_exec_ext in '' $ac_executable_extensions; do
2742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744       ac_prog_rejected=yes
2745       continue
2746     fi
2747    ac_cv_prog_CC="cc"
2748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752done
2753IFS=$as_save_IFS
2754
2755if test $ac_prog_rejected = yes; then
2756  # We found a bogon in the path, so make sure we never use it.
2757  set dummy $ac_cv_prog_CC
2758  shift
2759  if test $# != 0; then
2760    # We chose a different compiler from the bogus one.
2761    # However, it has the same basename, so the bogon will be chosen
2762    # first if we set CC to just the basename; use the full file name.
2763    shift
2764    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765  fi
2766fi
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771  { echo "$as_me:$LINENO: result: $CC" >&5
2772echo "${ECHO_T}$CC" >&6; }
2773else
2774  { echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6; }
2776fi
2777
2778
2779fi
2780if test -z "$CC"; then
2781  if test -n "$ac_tool_prefix"; then
2782  for ac_prog in cl.exe
2783  do
2784    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788if test "${ac_cv_prog_CC+set}" = set; then
2789  echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791  if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  test -z "$as_dir" && as_dir=.
2799  for ac_exec_ext in '' $ac_executable_extensions; do
2800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813  { echo "$as_me:$LINENO: result: $CC" >&5
2814echo "${ECHO_T}$CC" >&6; }
2815else
2816  { echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6; }
2818fi
2819
2820
2821    test -n "$CC" && break
2822  done
2823fi
2824if test -z "$CC"; then
2825  ac_ct_CC=$CC
2826  for ac_prog in cl.exe
2827do
2828  # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2833  echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835  if test -n "$ac_ct_CC"; then
2836  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843  for ac_exec_ext in '' $ac_executable_extensions; do
2844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845    ac_cv_prog_ac_ct_CC="$ac_prog"
2846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856if test -n "$ac_ct_CC"; then
2857  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858echo "${ECHO_T}$ac_ct_CC" >&6; }
2859else
2860  { echo "$as_me:$LINENO: result: no" >&5
2861echo "${ECHO_T}no" >&6; }
2862fi
2863
2864
2865  test -n "$ac_ct_CC" && break
2866done
2867
2868  if test "x$ac_ct_CC" = x; then
2869    CC=""
2870  else
2871    case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2874whose name does not start with the host triplet.  If you think this
2875configuration is useful to you, please write to autoconf@gnu.org." >&5
2876echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2877whose name does not start with the host triplet.  If you think this
2878configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2879ac_tool_warned=yes ;;
2880esac
2881    CC=$ac_ct_CC
2882  fi
2883fi
2884
2885fi
2886
2887
2888test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2889See \`config.log' for more details." >&5
2890echo "$as_me: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&2;}
2892   { (exit 1); exit 1; }; }
2893
2894# Provide some information about the compiler.
2895echo "$as_me:$LINENO: checking for C compiler version" >&5
2896ac_compiler=`set X $ac_compile; echo $2`
2897{ (ac_try="$ac_compiler --version >&5"
2898case "(($ac_try" in
2899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900  *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903  (eval "$ac_compiler --version >&5") 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }
2907{ (ac_try="$ac_compiler -v >&5"
2908case "(($ac_try" in
2909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910  *) ac_try_echo=$ac_try;;
2911esac
2912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913  (eval "$ac_compiler -v >&5") 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }
2917{ (ac_try="$ac_compiler -V >&5"
2918case "(($ac_try" in
2919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920  *) ac_try_echo=$ac_try;;
2921esac
2922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923  (eval "$ac_compiler -V >&5") 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }
2927
2928cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943ac_clean_files_save=$ac_clean_files
2944ac_clean_files="$ac_clean_files a.out a.exe b.out"
2945# Try to create an executable without -o first, disregard a.out.
2946# It will help us diagnose broken compilers, and finding out an intuition
2947# of exeext.
2948{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2949echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2950ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2951#
2952# List of possible output files, starting from the most likely.
2953# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2954# only as a last resort.  b.out is created by i960 compilers.
2955ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2956#
2957# The IRIX 6 linker writes into existing files which may not be
2958# executable, retaining their permissions.  Remove them first so a
2959# subsequent execution test works.
2960ac_rmfiles=
2961for ac_file in $ac_files
2962do
2963  case $ac_file in
2964    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2965    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966  esac
2967done
2968rm -f $ac_rmfiles
2969
2970if { (ac_try="$ac_link_default"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976  (eval "$ac_link_default") 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; then
2980  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2981# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2982# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2983# so that the user can short-circuit this test for compilers unknown to
2984# Autoconf.
2985for ac_file in $ac_files ''
2986do
2987  test -f "$ac_file" || continue
2988  case $ac_file in
2989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2990	;;
2991    [ab].out )
2992	# We found the default executable, but exeext='' is most
2993	# certainly right.
2994	break;;
2995    *.* )
2996        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2997	then :; else
2998	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999	fi
3000	# We set ac_cv_exeext here because the later test for it is not
3001	# safe: cross compilers may not add the suffix if given an `-o'
3002	# argument, so we may need to know it at that point already.
3003	# Even if this section looks crufty: it has the advantage of
3004	# actually working.
3005	break;;
3006    * )
3007	break;;
3008  esac
3009done
3010test "$ac_cv_exeext" = no && ac_cv_exeext=
3011
3012else
3013  ac_file=''
3014fi
3015
3016{ echo "$as_me:$LINENO: result: $ac_file" >&5
3017echo "${ECHO_T}$ac_file" >&6; }
3018if test -z "$ac_file"; then
3019  echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3023See \`config.log' for more details." >&5
3024echo "$as_me: error: C compiler cannot create executables
3025See \`config.log' for more details." >&2;}
3026   { (exit 77); exit 77; }; }
3027fi
3028
3029ac_exeext=$ac_cv_exeext
3030
3031# Check that the compiler produces executables we can run.  If not, either
3032# the compiler is broken, or we cross compile.
3033{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3034echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3035# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3036# If not cross compiling, check that we can run a simple program.
3037if test "$cross_compiling" != yes; then
3038  if { ac_try='./$ac_file'
3039  { (case "(($ac_try" in
3040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041  *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044  (eval "$ac_try") 2>&5
3045  ac_status=$?
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); }; }; then
3048    cross_compiling=no
3049  else
3050    if test "$cross_compiling" = maybe; then
3051	cross_compiling=yes
3052    else
3053	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3054If you meant to cross compile, use \`--host'.
3055See \`config.log' for more details." >&5
3056echo "$as_me: error: cannot run C compiled programs.
3057If you meant to cross compile, use \`--host'.
3058See \`config.log' for more details." >&2;}
3059   { (exit 1); exit 1; }; }
3060    fi
3061  fi
3062fi
3063{ echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6; }
3065
3066rm -f a.out a.exe conftest$ac_cv_exeext b.out
3067ac_clean_files=$ac_clean_files_save
3068# Check that the compiler produces executables we can run.  If not, either
3069# the compiler is broken, or we cross compile.
3070{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3071echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3072{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3073echo "${ECHO_T}$cross_compiling" >&6; }
3074
3075{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3076echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3077if { (ac_try="$ac_link"
3078case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083  (eval "$ac_link") 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; then
3087  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3089# work properly (i.e., refer to `conftest.exe'), while it won't with
3090# `rm'.
3091for ac_file in conftest.exe conftest conftest.*; do
3092  test -f "$ac_file" || continue
3093  case $ac_file in
3094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3095    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096	  break;;
3097    * ) break;;
3098  esac
3099done
3100else
3101  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3102See \`config.log' for more details." >&5
3103echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3104See \`config.log' for more details." >&2;}
3105   { (exit 1); exit 1; }; }
3106fi
3107
3108rm -f conftest$ac_cv_exeext
3109{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3110echo "${ECHO_T}$ac_cv_exeext" >&6; }
3111
3112rm -f conftest.$ac_ext
3113EXEEXT=$ac_cv_exeext
3114ac_exeext=$EXEEXT
3115{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3116echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3117if test "${ac_cv_objext+set}" = set; then
3118  echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120  cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h.  */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135rm -f conftest.o conftest.obj
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142  (eval "$ac_compile") 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; then
3146  for ac_file in conftest.o conftest.obj conftest.*; do
3147  test -f "$ac_file" || continue;
3148  case $ac_file in
3149    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3150    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3151       break;;
3152  esac
3153done
3154else
3155  echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3159See \`config.log' for more details." >&5
3160echo "$as_me: error: cannot compute suffix of object files: cannot compile
3161See \`config.log' for more details." >&2;}
3162   { (exit 1); exit 1; }; }
3163fi
3164
3165rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3168echo "${ECHO_T}$ac_cv_objext" >&6; }
3169OBJEXT=$ac_cv_objext
3170ac_objext=$OBJEXT
3171{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3172echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3173if test "${ac_cv_c_compiler_gnu+set}" = set; then
3174  echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176  cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h.  */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h.  */
3182
3183int
3184main ()
3185{
3186#ifndef __GNUC__
3187       choke me
3188#endif
3189
3190  ;
3191  return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext
3195if { (ac_try="$ac_compile"
3196case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201  (eval "$ac_compile") 2>conftest.er1
3202  ac_status=$?
3203  grep -v '^ *+' conftest.er1 >conftest.err
3204  rm -f conftest.er1
3205  cat conftest.err >&5
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); } && {
3208	 test -z "$ac_c_werror_flag" ||
3209	 test ! -s conftest.err
3210       } && test -s conftest.$ac_objext; then
3211  ac_compiler_gnu=yes
3212else
3213  echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216	ac_compiler_gnu=no
3217fi
3218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221
3222fi
3223{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3224echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3225GCC=`test $ac_compiler_gnu = yes && echo yes`
3226ac_test_CFLAGS=${CFLAGS+set}
3227ac_save_CFLAGS=$CFLAGS
3228{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3229echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3230if test "${ac_cv_prog_cc_g+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233  ac_save_c_werror_flag=$ac_c_werror_flag
3234   ac_c_werror_flag=yes
3235   ac_cv_prog_cc_g=no
3236   CFLAGS="-g"
3237   cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h.  */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h.  */
3243
3244int
3245main ()
3246{
3247
3248  ;
3249  return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext
3253if { (ac_try="$ac_compile"
3254case "(($ac_try" in
3255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256  *) ac_try_echo=$ac_try;;
3257esac
3258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259  (eval "$ac_compile") 2>conftest.er1
3260  ac_status=$?
3261  grep -v '^ *+' conftest.er1 >conftest.err
3262  rm -f conftest.er1
3263  cat conftest.err >&5
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); } && {
3266	 test -z "$ac_c_werror_flag" ||
3267	 test ! -s conftest.err
3268       } && test -s conftest.$ac_objext; then
3269  ac_cv_prog_cc_g=yes
3270else
3271  echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274	CFLAGS=""
3275      cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h.  */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h.  */
3281
3282int
3283main ()
3284{
3285
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297  (eval "$ac_compile") 2>conftest.er1
3298  ac_status=$?
3299  grep -v '^ *+' conftest.er1 >conftest.err
3300  rm -f conftest.er1
3301  cat conftest.err >&5
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); } && {
3304	 test -z "$ac_c_werror_flag" ||
3305	 test ! -s conftest.err
3306       } && test -s conftest.$ac_objext; then
3307  :
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312	ac_c_werror_flag=$ac_save_c_werror_flag
3313	 CFLAGS="-g"
3314	 cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h.  */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h.  */
3320
3321int
3322main ()
3323{
3324
3325  ;
3326  return 0;
3327}
3328_ACEOF
3329rm -f conftest.$ac_objext
3330if { (ac_try="$ac_compile"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336  (eval "$ac_compile") 2>conftest.er1
3337  ac_status=$?
3338  grep -v '^ *+' conftest.er1 >conftest.err
3339  rm -f conftest.er1
3340  cat conftest.err >&5
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); } && {
3343	 test -z "$ac_c_werror_flag" ||
3344	 test ! -s conftest.err
3345       } && test -s conftest.$ac_objext; then
3346  ac_cv_prog_cc_g=yes
3347else
3348  echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351
3352fi
3353
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355fi
3356
3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358fi
3359
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361   ac_c_werror_flag=$ac_save_c_werror_flag
3362fi
3363{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3364echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3365if test "$ac_test_CFLAGS" = set; then
3366  CFLAGS=$ac_save_CFLAGS
3367elif test $ac_cv_prog_cc_g = yes; then
3368  if test "$GCC" = yes; then
3369    CFLAGS="-g -O2"
3370  else
3371    CFLAGS="-g"
3372  fi
3373else
3374  if test "$GCC" = yes; then
3375    CFLAGS="-O2"
3376  else
3377    CFLAGS=
3378  fi
3379fi
3380{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3381echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3382if test "${ac_cv_prog_cc_c89+set}" = set; then
3383  echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385  ac_cv_prog_cc_c89=no
3386ac_save_CC=$CC
3387cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393#include <stdarg.h>
3394#include <stdio.h>
3395#include <sys/types.h>
3396#include <sys/stat.h>
3397/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3398struct buf { int x; };
3399FILE * (*rcsopen) (struct buf *, struct stat *, int);
3400static char *e (p, i)
3401     char **p;
3402     int i;
3403{
3404  return p[i];
3405}
3406static char *f (char * (*g) (char **, int), char **p, ...)
3407{
3408  char *s;
3409  va_list v;
3410  va_start (v,p);
3411  s = g (p, va_arg (v,int));
3412  va_end (v);
3413  return s;
3414}
3415
3416/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3417   function prototypes and stuff, but not '\xHH' hex character constants.
3418   These don't provoke an error unfortunately, instead are silently treated
3419   as 'x'.  The following induces an error, until -std is added to get
3420   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3421   array size at least.  It's necessary to write '\x00'==0 to get something
3422   that's true only with -std.  */
3423int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3424
3425/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3426   inside strings and character constants.  */
3427#define FOO(x) 'x'
3428int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3429
3430int test (int i, double x);
3431struct s1 {int (*f) (int a);};
3432struct s2 {int (*f) (double a);};
3433int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434int argc;
3435char **argv;
3436int
3437main ()
3438{
3439return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3445	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446do
3447  CC="$ac_save_CC $ac_arg"
3448  rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455  (eval "$ac_compile") 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } && {
3462	 test -z "$ac_c_werror_flag" ||
3463	 test ! -s conftest.err
3464       } && test -s conftest.$ac_objext; then
3465  ac_cv_prog_cc_c89=$ac_arg
3466else
3467  echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470
3471fi
3472
3473rm -f core conftest.err conftest.$ac_objext
3474  test "x$ac_cv_prog_cc_c89" != "xno" && break
3475done
3476rm -f conftest.$ac_ext
3477CC=$ac_save_CC
3478
3479fi
3480# AC_CACHE_VAL
3481case "x$ac_cv_prog_cc_c89" in
3482  x)
3483    { echo "$as_me:$LINENO: result: none needed" >&5
3484echo "${ECHO_T}none needed" >&6; } ;;
3485  xno)
3486    { echo "$as_me:$LINENO: result: unsupported" >&5
3487echo "${ECHO_T}unsupported" >&6; } ;;
3488  *)
3489    CC="$CC $ac_cv_prog_cc_c89"
3490    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3491echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3492esac
3493
3494
3495ac_ext=c
3496ac_cpp='$CPP $CPPFLAGS'
3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500DEPDIR="${am__leading_dot}deps"
3501
3502ac_config_commands="$ac_config_commands depfiles"
3503
3504
3505am_make=${MAKE-make}
3506cat > confinc << 'END'
3507am__doit:
3508	@echo done
3509.PHONY: am__doit
3510END
3511# If we don't find an include directive, just comment out the code.
3512{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3513echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3514am__include="#"
3515am__quote=
3516_am_result=none
3517# First try GNU make style include.
3518echo "include confinc" > confmf
3519# We grep out `Entering directory' and `Leaving directory'
3520# messages which can occur if `w' ends up in MAKEFLAGS.
3521# In particular we don't look at `^make:' because GNU make might
3522# be invoked under some other name (usually "gmake"), in which
3523# case it prints its new name instead of `make'.
3524if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3525   am__include=include
3526   am__quote=
3527   _am_result=GNU
3528fi
3529# Now try BSD make style include.
3530if test "$am__include" = "#"; then
3531   echo '.include "confinc"' > confmf
3532   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3533      am__include=.include
3534      am__quote="\""
3535      _am_result=BSD
3536   fi
3537fi
3538
3539
3540{ echo "$as_me:$LINENO: result: $_am_result" >&5
3541echo "${ECHO_T}$_am_result" >&6; }
3542rm -f confinc confmf
3543
3544# Check whether --enable-dependency-tracking was given.
3545if test "${enable_dependency_tracking+set}" = set; then
3546  enableval=$enable_dependency_tracking;
3547fi
3548
3549if test "x$enable_dependency_tracking" != xno; then
3550  am_depcomp="$ac_aux_dir/depcomp"
3551  AMDEPBACKSLASH='\'
3552fi
3553 if test "x$enable_dependency_tracking" != xno; then
3554  AMDEP_TRUE=
3555  AMDEP_FALSE='#'
3556else
3557  AMDEP_TRUE='#'
3558  AMDEP_FALSE=
3559fi
3560
3561
3562
3563depcc="$CC"   am_compiler_list=
3564
3565{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3566echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3567if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3568  echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3571  # We make a subdir and do the tests there.  Otherwise we can end up
3572  # making bogus files that we don't know about and never remove.  For
3573  # instance it was reported that on HP-UX the gcc test will end up
3574  # making a dummy file named `D' -- because `-MD' means `put the output
3575  # in D'.
3576  mkdir conftest.dir
3577  # Copy depcomp to subdir because otherwise we won't find it if we're
3578  # using a relative directory.
3579  cp "$am_depcomp" conftest.dir
3580  cd conftest.dir
3581  # We will build objects and dependencies in a subdirectory because
3582  # it helps to detect inapplicable dependency modes.  For instance
3583  # both Tru64's cc and ICC support -MD to output dependencies as a
3584  # side effect of compilation, but ICC will put the dependencies in
3585  # the current directory while Tru64 will put them in the object
3586  # directory.
3587  mkdir sub
3588
3589  am_cv_CC_dependencies_compiler_type=none
3590  if test "$am_compiler_list" = ""; then
3591     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3592  fi
3593  for depmode in $am_compiler_list; do
3594    # Setup a source with many dependencies, because some compilers
3595    # like to wrap large dependency lists on column 80 (with \), and
3596    # we should not choose a depcomp mode which is confused by this.
3597    #
3598    # We need to recreate these files for each test, as the compiler may
3599    # overwrite some of them when testing with obscure command lines.
3600    # This happens at least with the AIX C compiler.
3601    : > sub/conftest.c
3602    for i in 1 2 3 4 5 6; do
3603      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3604      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3605      # Solaris 8's {/usr,}/bin/sh.
3606      touch sub/conftst$i.h
3607    done
3608    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3609
3610    case $depmode in
3611    nosideeffect)
3612      # after this tag, mechanisms are not by side-effect, so they'll
3613      # only be used when explicitly requested
3614      if test "x$enable_dependency_tracking" = xyes; then
3615	continue
3616      else
3617	break
3618      fi
3619      ;;
3620    none) break ;;
3621    esac
3622    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3623    # mode.  It turns out that the SunPro C++ compiler does not properly
3624    # handle `-M -o', and we need to detect this.
3625    if depmode=$depmode \
3626       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3627       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3628       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3629         >/dev/null 2>conftest.err &&
3630       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3631       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3632       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3633       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3634      # icc doesn't choke on unknown options, it will just issue warnings
3635      # or remarks (even with -Werror).  So we grep stderr for any message
3636      # that says an option was ignored or not supported.
3637      # When given -MP, icc 7.0 and 7.1 complain thusly:
3638      #   icc: Command line warning: ignoring option '-M'; no argument required
3639      # The diagnosis changed in icc 8.0:
3640      #   icc: Command line remark: option '-MP' not supported
3641      if (grep 'ignoring option' conftest.err ||
3642          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3643        am_cv_CC_dependencies_compiler_type=$depmode
3644        break
3645      fi
3646    fi
3647  done
3648
3649  cd ..
3650  rm -rf conftest.dir
3651else
3652  am_cv_CC_dependencies_compiler_type=none
3653fi
3654
3655fi
3656{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3657echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3658CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3659
3660 if
3661  test "x$enable_dependency_tracking" != xno \
3662  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663  am__fastdepCC_TRUE=
3664  am__fastdepCC_FALSE='#'
3665else
3666  am__fastdepCC_TRUE='#'
3667  am__fastdepCC_FALSE=
3668fi
3669
3670
3671ac_ext=c
3672ac_cpp='$CPP $CPPFLAGS'
3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3677echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3678# On Suns, sometimes $CPP names a directory.
3679if test -n "$CPP" && test -d "$CPP"; then
3680  CPP=
3681fi
3682if test -z "$CPP"; then
3683  if test "${ac_cv_prog_CPP+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686      # Double quotes because CPP needs to be expanded
3687    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688    do
3689      ac_preproc_ok=false
3690for ac_c_preproc_warn_flag in '' yes
3691do
3692  # Use a header file that comes with gcc, so configuring glibc
3693  # with a fresh cross-compiler works.
3694  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3695  # <limits.h> exists even on freestanding compilers.
3696  # On the NeXT, cc -E runs the code through the compiler's parser,
3697  # not just through cpp. "Syntax error" is here to catch this case.
3698  cat >conftest.$ac_ext <<_ACEOF
3699/* confdefs.h.  */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h.  */
3704#ifdef __STDC__
3705# include <limits.h>
3706#else
3707# include <assert.h>
3708#endif
3709		     Syntax error
3710_ACEOF
3711if { (ac_try="$ac_cpp conftest.$ac_ext"
3712case "(($ac_try" in
3713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714  *) ac_try_echo=$ac_try;;
3715esac
3716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718  ac_status=$?
3719  grep -v '^ *+' conftest.er1 >conftest.err
3720  rm -f conftest.er1
3721  cat conftest.err >&5
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); } >/dev/null && {
3724	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725	 test ! -s conftest.err
3726       }; then
3727  :
3728else
3729  echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732  # Broken: fails on valid input.
3733continue
3734fi
3735
3736rm -f conftest.err conftest.$ac_ext
3737
3738  # OK, works on sane cases.  Now check whether nonexistent headers
3739  # can be detected and how.
3740  cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746#include <ac_nonexistent.h>
3747_ACEOF
3748if { (ac_try="$ac_cpp conftest.$ac_ext"
3749case "(($ac_try" in
3750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751  *) ac_try_echo=$ac_try;;
3752esac
3753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3755  ac_status=$?
3756  grep -v '^ *+' conftest.er1 >conftest.err
3757  rm -f conftest.er1
3758  cat conftest.err >&5
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); } >/dev/null && {
3761	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3762	 test ! -s conftest.err
3763       }; then
3764  # Broken: success on invalid input.
3765continue
3766else
3767  echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770  # Passes both tests.
3771ac_preproc_ok=:
3772break
3773fi
3774
3775rm -f conftest.err conftest.$ac_ext
3776
3777done
3778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779rm -f conftest.err conftest.$ac_ext
3780if $ac_preproc_ok; then
3781  break
3782fi
3783
3784    done
3785    ac_cv_prog_CPP=$CPP
3786
3787fi
3788  CPP=$ac_cv_prog_CPP
3789else
3790  ac_cv_prog_CPP=$CPP
3791fi
3792{ echo "$as_me:$LINENO: result: $CPP" >&5
3793echo "${ECHO_T}$CPP" >&6; }
3794ac_preproc_ok=false
3795for ac_c_preproc_warn_flag in '' yes
3796do
3797  # Use a header file that comes with gcc, so configuring glibc
3798  # with a fresh cross-compiler works.
3799  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3800  # <limits.h> exists even on freestanding compilers.
3801  # On the NeXT, cc -E runs the code through the compiler's parser,
3802  # not just through cpp. "Syntax error" is here to catch this case.
3803  cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809#ifdef __STDC__
3810# include <limits.h>
3811#else
3812# include <assert.h>
3813#endif
3814		     Syntax error
3815_ACEOF
3816if { (ac_try="$ac_cpp conftest.$ac_ext"
3817case "(($ac_try" in
3818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819  *) ac_try_echo=$ac_try;;
3820esac
3821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3823  ac_status=$?
3824  grep -v '^ *+' conftest.er1 >conftest.err
3825  rm -f conftest.er1
3826  cat conftest.err >&5
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); } >/dev/null && {
3829	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3830	 test ! -s conftest.err
3831       }; then
3832  :
3833else
3834  echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837  # Broken: fails on valid input.
3838continue
3839fi
3840
3841rm -f conftest.err conftest.$ac_ext
3842
3843  # OK, works on sane cases.  Now check whether nonexistent headers
3844  # can be detected and how.
3845  cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h.  */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h.  */
3851#include <ac_nonexistent.h>
3852_ACEOF
3853if { (ac_try="$ac_cpp conftest.$ac_ext"
3854case "(($ac_try" in
3855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856  *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } >/dev/null && {
3866	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3867	 test ! -s conftest.err
3868       }; then
3869  # Broken: success on invalid input.
3870continue
3871else
3872  echo "$as_me: failed program was:" >&5
3873sed 's/^/| /' conftest.$ac_ext >&5
3874
3875  # Passes both tests.
3876ac_preproc_ok=:
3877break
3878fi
3879
3880rm -f conftest.err conftest.$ac_ext
3881
3882done
3883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884rm -f conftest.err conftest.$ac_ext
3885if $ac_preproc_ok; then
3886  :
3887else
3888  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3889See \`config.log' for more details." >&5
3890echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3891See \`config.log' for more details." >&2;}
3892   { (exit 1); exit 1; }; }
3893fi
3894
3895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901for ac_prog in 'bison -y' byacc
3902do
3903  # Extract the first word of "$ac_prog", so it can be a program name with args.
3904set dummy $ac_prog; ac_word=$2
3905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3907if test "${ac_cv_prog_YACC+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910  if test -n "$YACC"; then
3911  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916  IFS=$as_save_IFS
3917  test -z "$as_dir" && as_dir=.
3918  for ac_exec_ext in '' $ac_executable_extensions; do
3919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920    ac_cv_prog_YACC="$ac_prog"
3921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922    break 2
3923  fi
3924done
3925done
3926IFS=$as_save_IFS
3927
3928fi
3929fi
3930YACC=$ac_cv_prog_YACC
3931if test -n "$YACC"; then
3932  { echo "$as_me:$LINENO: result: $YACC" >&5
3933echo "${ECHO_T}$YACC" >&6; }
3934else
3935  { echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6; }
3937fi
3938
3939
3940  test -n "$YACC" && break
3941done
3942test -n "$YACC" || YACC="yacc"
3943
3944# Find a good install program.  We prefer a C program (faster),
3945# so one script is as good as another.  But avoid the broken or
3946# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install
3949# IRIX /sbin/install
3950# AIX /bin/install
3951# AmigaOS /C/install, which installs bootblocks on floppy discs
3952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3955# OS/2's system install, which has a completely different semantic
3956# ./install, which can be erroneously created by make from ./install.sh.
3957{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3958echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3959if test -z "$INSTALL"; then
3960if test "${ac_cv_path_install+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966  IFS=$as_save_IFS
3967  test -z "$as_dir" && as_dir=.
3968  # Account for people who put trailing slashes in PATH elements.
3969case $as_dir/ in
3970  ./ | .// | /cC/* | \
3971  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3972  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3973  /usr/ucb/* ) ;;
3974  *)
3975    # OSF1 and SCO ODT 3.0 have their own names for install.
3976    # Don't use installbsd from OSF since it installs stuff as root
3977    # by default.
3978    for ac_prog in ginstall scoinst install; do
3979      for ac_exec_ext in '' $ac_executable_extensions; do
3980	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3981	  if test $ac_prog = install &&
3982	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3983	    # AIX install.  It has an incompatible calling convention.
3984	    :
3985	  elif test $ac_prog = install &&
3986	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3987	    # program-specific install script used by HP pwplus--don't use.
3988	    :
3989	  else
3990	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3991	    break 3
3992	  fi
3993	fi
3994      done
3995    done
3996    ;;
3997esac
3998done
3999IFS=$as_save_IFS
4000
4001
4002fi
4003  if test "${ac_cv_path_install+set}" = set; then
4004    INSTALL=$ac_cv_path_install
4005  else
4006    # As a last resort, use the slow shell script.  Don't cache a
4007    # value for INSTALL within a source directory, because that will
4008    # break other packages using the cache if that directory is
4009    # removed, or if the value is a relative name.
4010    INSTALL=$ac_install_sh
4011  fi
4012fi
4013{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4014echo "${ECHO_T}$INSTALL" >&6; }
4015
4016# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4017# It thinks the first close brace ends the variable substitution.
4018test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4019
4020test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4021
4022test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4023
4024{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4025echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4026set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4027if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4028  echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030  cat >conftest.make <<\_ACEOF
4031SHELL = /bin/sh
4032all:
4033	@echo '@@@%%%=$(MAKE)=@@@%%%'
4034_ACEOF
4035# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4036case `${MAKE-make} -f conftest.make 2>/dev/null` in
4037  *@@@%%%=?*=@@@%%%*)
4038    eval ac_cv_prog_make_${ac_make}_set=yes;;
4039  *)
4040    eval ac_cv_prog_make_${ac_make}_set=no;;
4041esac
4042rm -f conftest.make
4043fi
4044if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4045  { echo "$as_me:$LINENO: result: yes" >&5
4046echo "${ECHO_T}yes" >&6; }
4047  SET_MAKE=
4048else
4049  { echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6; }
4051  SET_MAKE="MAKE=${MAKE-make}"
4052fi
4053
4054
4055
4056
4057{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4058echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4059if test "${ac_cv_path_GREP+set}" = set; then
4060  echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062  # Extract the first word of "grep ggrep" to use in msg output
4063if test -z "$GREP"; then
4064set dummy grep ggrep; ac_prog_name=$2
4065if test "${ac_cv_path_GREP+set}" = set; then
4066  echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068  ac_path_GREP_found=false
4069# Loop through the user's path and test for each of PROGNAME-LIST
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075  for ac_prog in grep ggrep; do
4076  for ac_exec_ext in '' $ac_executable_extensions; do
4077    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4078    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4079    # Check for GNU ac_path_GREP and select it if it is found.
4080  # Check for GNU $ac_path_GREP
4081case `"$ac_path_GREP" --version 2>&1` in
4082*GNU*)
4083  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4084*)
4085  ac_count=0
4086  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4087  while :
4088  do
4089    cat "conftest.in" "conftest.in" >"conftest.tmp"
4090    mv "conftest.tmp" "conftest.in"
4091    cp "conftest.in" "conftest.nl"
4092    echo 'GREP' >> "conftest.nl"
4093    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095    ac_count=`expr $ac_count + 1`
4096    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4097      # Best one so far, save it but keep looking for a better one
4098      ac_cv_path_GREP="$ac_path_GREP"
4099      ac_path_GREP_max=$ac_count
4100    fi
4101    # 10*(2^10) chars as input seems more than enough
4102    test $ac_count -gt 10 && break
4103  done
4104  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105esac
4106
4107
4108    $ac_path_GREP_found && break 3
4109  done
4110done
4111
4112done
4113IFS=$as_save_IFS
4114
4115
4116fi
4117
4118GREP="$ac_cv_path_GREP"
4119if test -z "$GREP"; then
4120  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4121echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4122   { (exit 1); exit 1; }; }
4123fi
4124
4125else
4126  ac_cv_path_GREP=$GREP
4127fi
4128
4129
4130fi
4131{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4132echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4133 GREP="$ac_cv_path_GREP"
4134
4135
4136{ echo "$as_me:$LINENO: checking for egrep" >&5
4137echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4138if test "${ac_cv_path_EGREP+set}" = set; then
4139  echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4142   then ac_cv_path_EGREP="$GREP -E"
4143   else
4144     # Extract the first word of "egrep" to use in msg output
4145if test -z "$EGREP"; then
4146set dummy egrep; ac_prog_name=$2
4147if test "${ac_cv_path_EGREP+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  ac_path_EGREP_found=false
4151# Loop through the user's path and test for each of PROGNAME-LIST
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154do
4155  IFS=$as_save_IFS
4156  test -z "$as_dir" && as_dir=.
4157  for ac_prog in egrep; do
4158  for ac_exec_ext in '' $ac_executable_extensions; do
4159    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4160    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4161    # Check for GNU ac_path_EGREP and select it if it is found.
4162  # Check for GNU $ac_path_EGREP
4163case `"$ac_path_EGREP" --version 2>&1` in
4164*GNU*)
4165  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4166*)
4167  ac_count=0
4168  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4169  while :
4170  do
4171    cat "conftest.in" "conftest.in" >"conftest.tmp"
4172    mv "conftest.tmp" "conftest.in"
4173    cp "conftest.in" "conftest.nl"
4174    echo 'EGREP' >> "conftest.nl"
4175    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177    ac_count=`expr $ac_count + 1`
4178    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179      # Best one so far, save it but keep looking for a better one
4180      ac_cv_path_EGREP="$ac_path_EGREP"
4181      ac_path_EGREP_max=$ac_count
4182    fi
4183    # 10*(2^10) chars as input seems more than enough
4184    test $ac_count -gt 10 && break
4185  done
4186  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187esac
4188
4189
4190    $ac_path_EGREP_found && break 3
4191  done
4192done
4193
4194done
4195IFS=$as_save_IFS
4196
4197
4198fi
4199
4200EGREP="$ac_cv_path_EGREP"
4201if test -z "$EGREP"; then
4202  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4203echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4204   { (exit 1); exit 1; }; }
4205fi
4206
4207else
4208  ac_cv_path_EGREP=$EGREP
4209fi
4210
4211
4212   fi
4213fi
4214{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4215echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4216 EGREP="$ac_cv_path_EGREP"
4217
4218
4219{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4220echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4221if test "${ac_cv_header_stdc+set}" = set; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224  cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230#include <stdlib.h>
4231#include <stdarg.h>
4232#include <string.h>
4233#include <float.h>
4234
4235int
4236main ()
4237{
4238
4239  ;
4240  return 0;
4241}
4242_ACEOF
4243rm -f conftest.$ac_objext
4244if { (ac_try="$ac_compile"
4245case "(($ac_try" in
4246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247  *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250  (eval "$ac_compile") 2>conftest.er1
4251  ac_status=$?
4252  grep -v '^ *+' conftest.er1 >conftest.err
4253  rm -f conftest.er1
4254  cat conftest.err >&5
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); } && {
4257	 test -z "$ac_c_werror_flag" ||
4258	 test ! -s conftest.err
4259       } && test -s conftest.$ac_objext; then
4260  ac_cv_header_stdc=yes
4261else
4262  echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
4265	ac_cv_header_stdc=no
4266fi
4267
4268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269
4270if test $ac_cv_header_stdc = yes; then
4271  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4272  cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278#include <string.h>
4279
4280_ACEOF
4281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282  $EGREP "memchr" >/dev/null 2>&1; then
4283  :
4284else
4285  ac_cv_header_stdc=no
4286fi
4287rm -f conftest*
4288
4289fi
4290
4291if test $ac_cv_header_stdc = yes; then
4292  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4293  cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h.  */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h.  */
4299#include <stdlib.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303  $EGREP "free" >/dev/null 2>&1; then
4304  :
4305else
4306  ac_cv_header_stdc=no
4307fi
4308rm -f conftest*
4309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4314  if test "$cross_compiling" = yes; then
4315  :
4316else
4317  cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h.  */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h.  */
4323#include <ctype.h>
4324#include <stdlib.h>
4325#if ((' ' & 0x0FF) == 0x020)
4326# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4327# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4328#else
4329# define ISLOWER(c) \
4330		   (('a' <= (c) && (c) <= 'i') \
4331		     || ('j' <= (c) && (c) <= 'r') \
4332		     || ('s' <= (c) && (c) <= 'z'))
4333# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4334#endif
4335
4336#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4337int
4338main ()
4339{
4340  int i;
4341  for (i = 0; i < 256; i++)
4342    if (XOR (islower (i), ISLOWER (i))
4343	|| toupper (i) != TOUPPER (i))
4344      return 2;
4345  return 0;
4346}
4347_ACEOF
4348rm -f conftest$ac_exeext
4349if { (ac_try="$ac_link"
4350case "(($ac_try" in
4351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352  *) ac_try_echo=$ac_try;;
4353esac
4354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355  (eval "$ac_link") 2>&5
4356  ac_status=$?
4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4359  { (case "(($ac_try" in
4360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361  *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364  (eval "$ac_try") 2>&5
4365  ac_status=$?
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); }; }; then
4368  :
4369else
4370  echo "$as_me: program exited with status $ac_status" >&5
4371echo "$as_me: failed program was:" >&5
4372sed 's/^/| /' conftest.$ac_ext >&5
4373
4374( exit $ac_status )
4375ac_cv_header_stdc=no
4376fi
4377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4378fi
4379
4380
4381fi
4382fi
4383{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4384echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4385if test $ac_cv_header_stdc = yes; then
4386
4387cat >>confdefs.h <<\_ACEOF
4388#define STDC_HEADERS 1
4389_ACEOF
4390
4391fi
4392
4393# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4404		  inttypes.h stdint.h unistd.h
4405do
4406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4410  echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412  cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h.  */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h.  */
4418$ac_includes_default
4419
4420#include <$ac_header>
4421_ACEOF
4422rm -f conftest.$ac_objext
4423if { (ac_try="$ac_compile"
4424case "(($ac_try" in
4425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426  *) ac_try_echo=$ac_try;;
4427esac
4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429  (eval "$ac_compile") 2>conftest.er1
4430  ac_status=$?
4431  grep -v '^ *+' conftest.er1 >conftest.err
4432  rm -f conftest.er1
4433  cat conftest.err >&5
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); } && {
4436	 test -z "$ac_c_werror_flag" ||
4437	 test ! -s conftest.err
4438       } && test -s conftest.$ac_objext; then
4439  eval "$as_ac_Header=yes"
4440else
4441  echo "$as_me: failed program was:" >&5
4442sed 's/^/| /' conftest.$ac_ext >&5
4443
4444	eval "$as_ac_Header=no"
4445fi
4446
4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448fi
4449ac_res=`eval echo '${'$as_ac_Header'}'`
4450	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4451echo "${ECHO_T}$ac_res" >&6; }
4452if test `eval echo '${'$as_ac_Header'}'` = yes; then
4453  cat >>confdefs.h <<_ACEOF
4454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4455_ACEOF
4456
4457fi
4458
4459done
4460
4461
4462
4463
4464
4465
4466
4467
4468for ac_header in unistd.h stdio.h memory.h stdarg.h limits.h float.h
4469do
4470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4472  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4475  echo $ECHO_N "(cached) $ECHO_C" >&6
4476fi
4477ac_res=`eval echo '${'$as_ac_Header'}'`
4478	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4479echo "${ECHO_T}$ac_res" >&6; }
4480else
4481  # Is the header compilable?
4482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h.  */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h.  */
4490$ac_includes_default
4491#include <$ac_header>
4492_ACEOF
4493rm -f conftest.$ac_objext
4494if { (ac_try="$ac_compile"
4495case "(($ac_try" in
4496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497  *) ac_try_echo=$ac_try;;
4498esac
4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500  (eval "$ac_compile") 2>conftest.er1
4501  ac_status=$?
4502  grep -v '^ *+' conftest.er1 >conftest.err
4503  rm -f conftest.er1
4504  cat conftest.err >&5
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); } && {
4507	 test -z "$ac_c_werror_flag" ||
4508	 test ! -s conftest.err
4509       } && test -s conftest.$ac_objext; then
4510  ac_header_compiler=yes
4511else
4512  echo "$as_me: failed program was:" >&5
4513sed 's/^/| /' conftest.$ac_ext >&5
4514
4515	ac_header_compiler=no
4516fi
4517
4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4520echo "${ECHO_T}$ac_header_compiler" >&6; }
4521
4522# Is the header present?
4523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4525cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h.  */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h.  */
4531#include <$ac_header>
4532_ACEOF
4533if { (ac_try="$ac_cpp conftest.$ac_ext"
4534case "(($ac_try" in
4535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536  *) ac_try_echo=$ac_try;;
4537esac
4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } >/dev/null && {
4546	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4547	 test ! -s conftest.err
4548       }; then
4549  ac_header_preproc=yes
4550else
4551  echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554  ac_header_preproc=no
4555fi
4556
4557rm -f conftest.err conftest.$ac_ext
4558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4559echo "${ECHO_T}$ac_header_preproc" >&6; }
4560
4561# So?  What about this header?
4562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4563  yes:no: )
4564    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4568    ac_header_preproc=yes
4569    ;;
4570  no:yes:* )
4571    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4573    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4574echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4575    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4577    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4578echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4579    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4581    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4583
4584    ;;
4585esac
4586{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  eval "$as_ac_Header=\$ac_header_preproc"
4592fi
4593ac_res=`eval echo '${'$as_ac_Header'}'`
4594	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4595echo "${ECHO_T}$ac_res" >&6; }
4596
4597fi
4598if test `eval echo '${'$as_ac_Header'}'` = yes; then
4599  cat >>confdefs.h <<_ACEOF
4600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4601_ACEOF
4602
4603fi
4604
4605done
4606
4607
4608
4609
4610
4611
4612for ac_header in sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h
4613do
4614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4616  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620fi
4621ac_res=`eval echo '${'$as_ac_Header'}'`
4622	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4623echo "${ECHO_T}$ac_res" >&6; }
4624else
4625  # Is the header compilable?
4626{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h.  */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h.  */
4634$ac_includes_default
4635#include <$ac_header>
4636_ACEOF
4637rm -f conftest.$ac_objext
4638if { (ac_try="$ac_compile"
4639case "(($ac_try" in
4640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641  *) ac_try_echo=$ac_try;;
4642esac
4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644  (eval "$ac_compile") 2>conftest.er1
4645  ac_status=$?
4646  grep -v '^ *+' conftest.er1 >conftest.err
4647  rm -f conftest.er1
4648  cat conftest.err >&5
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); } && {
4651	 test -z "$ac_c_werror_flag" ||
4652	 test ! -s conftest.err
4653       } && test -s conftest.$ac_objext; then
4654  ac_header_compiler=yes
4655else
4656  echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659	ac_header_compiler=no
4660fi
4661
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4664echo "${ECHO_T}$ac_header_compiler" >&6; }
4665
4666# Is the header present?
4667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4669cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h.  */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h.  */
4675#include <$ac_header>
4676_ACEOF
4677if { (ac_try="$ac_cpp conftest.$ac_ext"
4678case "(($ac_try" in
4679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680  *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } >/dev/null && {
4690	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691	 test ! -s conftest.err
4692       }; then
4693  ac_header_preproc=yes
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698  ac_header_preproc=no
4699fi
4700
4701rm -f conftest.err conftest.$ac_ext
4702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703echo "${ECHO_T}$ac_header_preproc" >&6; }
4704
4705# So?  What about this header?
4706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4707  yes:no: )
4708    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4712    ac_header_preproc=yes
4713    ;;
4714  no:yes:* )
4715    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4717    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4718echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4719    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4721    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4722echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4723    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4725    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4727
4728    ;;
4729esac
4730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  eval "$as_ac_Header=\$ac_header_preproc"
4736fi
4737ac_res=`eval echo '${'$as_ac_Header'}'`
4738	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4739echo "${ECHO_T}$ac_res" >&6; }
4740
4741fi
4742if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743  cat >>confdefs.h <<_ACEOF
4744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745_ACEOF
4746
4747fi
4748
4749done
4750
4751
4752for ac_header in sys/bswap.h
4753do
4754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4756  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759  echo $ECHO_N "(cached) $ECHO_C" >&6
4760fi
4761ac_res=`eval echo '${'$as_ac_Header'}'`
4762	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4763echo "${ECHO_T}$ac_res" >&6; }
4764else
4765  # Is the header compilable?
4766{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4768cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774$ac_includes_default
4775#include <$ac_header>
4776_ACEOF
4777rm -f conftest.$ac_objext
4778if { (ac_try="$ac_compile"
4779case "(($ac_try" in
4780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781  *) ac_try_echo=$ac_try;;
4782esac
4783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784  (eval "$ac_compile") 2>conftest.er1
4785  ac_status=$?
4786  grep -v '^ *+' conftest.er1 >conftest.err
4787  rm -f conftest.er1
4788  cat conftest.err >&5
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); } && {
4791	 test -z "$ac_c_werror_flag" ||
4792	 test ! -s conftest.err
4793       } && test -s conftest.$ac_objext; then
4794  ac_header_compiler=yes
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799	ac_header_compiler=no
4800fi
4801
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4804echo "${ECHO_T}$ac_header_compiler" >&6; }
4805
4806# Is the header present?
4807{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4809cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815#include <$ac_header>
4816_ACEOF
4817if { (ac_try="$ac_cpp conftest.$ac_ext"
4818case "(($ac_try" in
4819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820  *) ac_try_echo=$ac_try;;
4821esac
4822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } >/dev/null && {
4830	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831	 test ! -s conftest.err
4832       }; then
4833  ac_header_preproc=yes
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838  ac_header_preproc=no
4839fi
4840
4841rm -f conftest.err conftest.$ac_ext
4842{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843echo "${ECHO_T}$ac_header_preproc" >&6; }
4844
4845# So?  What about this header?
4846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4847  yes:no: )
4848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4852    ac_header_preproc=yes
4853    ;;
4854  no:yes:* )
4855    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4857    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4858echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4859    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4861    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4862echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4863    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4867
4868    ;;
4869esac
4870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4873  echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875  eval "$as_ac_Header=\$ac_header_preproc"
4876fi
4877ac_res=`eval echo '${'$as_ac_Header'}'`
4878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4879echo "${ECHO_T}$ac_res" >&6; }
4880
4881fi
4882if test `eval echo '${'$as_ac_Header'}'` = yes; then
4883  cat >>confdefs.h <<_ACEOF
4884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4885_ACEOF
4886
4887fi
4888
4889done
4890
4891
4892{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4893echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4894if test "${ac_cv_c_bigendian+set}" = set; then
4895  echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897  # See if sys/param.h defines the BYTE_ORDER macro.
4898cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h.  */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h.  */
4904#include <sys/types.h>
4905#include <sys/param.h>
4906
4907int
4908main ()
4909{
4910#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4911	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4912 bogus endian macros
4913#endif
4914
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919rm -f conftest.$ac_objext
4920if { (ac_try="$ac_compile"
4921case "(($ac_try" in
4922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923  *) ac_try_echo=$ac_try;;
4924esac
4925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926  (eval "$ac_compile") 2>conftest.er1
4927  ac_status=$?
4928  grep -v '^ *+' conftest.er1 >conftest.err
4929  rm -f conftest.er1
4930  cat conftest.err >&5
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); } && {
4933	 test -z "$ac_c_werror_flag" ||
4934	 test ! -s conftest.err
4935       } && test -s conftest.$ac_objext; then
4936  # It does; now see whether it defined to BIG_ENDIAN or not.
4937cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h.  */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h.  */
4943#include <sys/types.h>
4944#include <sys/param.h>
4945
4946int
4947main ()
4948{
4949#if BYTE_ORDER != BIG_ENDIAN
4950 not big endian
4951#endif
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957rm -f conftest.$ac_objext
4958if { (ac_try="$ac_compile"
4959case "(($ac_try" in
4960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961  *) ac_try_echo=$ac_try;;
4962esac
4963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964  (eval "$ac_compile") 2>conftest.er1
4965  ac_status=$?
4966  grep -v '^ *+' conftest.er1 >conftest.err
4967  rm -f conftest.er1
4968  cat conftest.err >&5
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } && {
4971	 test -z "$ac_c_werror_flag" ||
4972	 test ! -s conftest.err
4973       } && test -s conftest.$ac_objext; then
4974  ac_cv_c_bigendian=yes
4975else
4976  echo "$as_me: failed program was:" >&5
4977sed 's/^/| /' conftest.$ac_ext >&5
4978
4979	ac_cv_c_bigendian=no
4980fi
4981
4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983else
4984  echo "$as_me: failed program was:" >&5
4985sed 's/^/| /' conftest.$ac_ext >&5
4986
4987	# It does not; compile a test program.
4988if test "$cross_compiling" = yes; then
4989  # try to guess the endianness by grepping values into an object file
4990  ac_cv_c_bigendian=unknown
4991  cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h.  */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h.  */
4997short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4998short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4999void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5000short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5001short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5002void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5003int
5004main ()
5005{
5006 _ascii (); _ebcdic ();
5007  ;
5008  return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext
5012if { (ac_try="$ac_compile"
5013case "(($ac_try" in
5014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015  *) ac_try_echo=$ac_try;;
5016esac
5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018  (eval "$ac_compile") 2>conftest.er1
5019  ac_status=$?
5020  grep -v '^ *+' conftest.er1 >conftest.err
5021  rm -f conftest.er1
5022  cat conftest.err >&5
5023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024  (exit $ac_status); } && {
5025	 test -z "$ac_c_werror_flag" ||
5026	 test ! -s conftest.err
5027       } && test -s conftest.$ac_objext; then
5028  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5029  ac_cv_c_bigendian=yes
5030fi
5031if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5032  if test "$ac_cv_c_bigendian" = unknown; then
5033    ac_cv_c_bigendian=no
5034  else
5035    # finding both strings is unlikely to happen, but who knows?
5036    ac_cv_c_bigendian=unknown
5037  fi
5038fi
5039else
5040  echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043
5044fi
5045
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047else
5048  cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h.  */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h.  */
5054$ac_includes_default
5055int
5056main ()
5057{
5058
5059  /* Are we little or big endian?  From Harbison&Steele.  */
5060  union
5061  {
5062    long int l;
5063    char c[sizeof (long int)];
5064  } u;
5065  u.l = 1;
5066  return u.c[sizeof (long int) - 1] == 1;
5067
5068  ;
5069  return 0;
5070}
5071_ACEOF
5072rm -f conftest$ac_exeext
5073if { (ac_try="$ac_link"
5074case "(($ac_try" in
5075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076  *) ac_try_echo=$ac_try;;
5077esac
5078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079  (eval "$ac_link") 2>&5
5080  ac_status=$?
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5083  { (case "(($ac_try" in
5084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085  *) ac_try_echo=$ac_try;;
5086esac
5087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088  (eval "$ac_try") 2>&5
5089  ac_status=$?
5090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091  (exit $ac_status); }; }; then
5092  ac_cv_c_bigendian=no
5093else
5094  echo "$as_me: program exited with status $ac_status" >&5
5095echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098( exit $ac_status )
5099ac_cv_c_bigendian=yes
5100fi
5101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5102fi
5103
5104
5105fi
5106
5107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108fi
5109{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5110echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5111case $ac_cv_c_bigendian in
5112  yes)
5113
5114cat >>confdefs.h <<\_ACEOF
5115#define WORDS_BIGENDIAN 1
5116_ACEOF
5117 ;;
5118  no)
5119     ;;
5120  *)
5121    { { echo "$as_me:$LINENO: error: unknown endianness
5122presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5123echo "$as_me: error: unknown endianness
5124presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5125   { (exit 1); exit 1; }; } ;;
5126esac
5127
5128{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5129echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5130if test "${ac_cv_c_const+set}" = set; then
5131  echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133  cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h.  */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h.  */
5139
5140int
5141main ()
5142{
5143/* FIXME: Include the comments suggested by Paul. */
5144#ifndef __cplusplus
5145  /* Ultrix mips cc rejects this.  */
5146  typedef int charset[2];
5147  const charset cs;
5148  /* SunOS 4.1.1 cc rejects this.  */
5149  char const *const *pcpcc;
5150  char **ppc;
5151  /* NEC SVR4.0.2 mips cc rejects this.  */
5152  struct point {int x, y;};
5153  static struct point const zero = {0,0};
5154  /* AIX XL C 1.02.0.0 rejects this.
5155     It does not let you subtract one const X* pointer from another in
5156     an arm of an if-expression whose if-part is not a constant
5157     expression */
5158  const char *g = "string";
5159  pcpcc = &g + (g ? g-g : 0);
5160  /* HPUX 7.0 cc rejects these. */
5161  ++pcpcc;
5162  ppc = (char**) pcpcc;
5163  pcpcc = (char const *const *) ppc;
5164  { /* SCO 3.2v4 cc rejects this.  */
5165    char *t;
5166    char const *s = 0 ? (char *) 0 : (char const *) 0;
5167
5168    *t++ = 0;
5169    if (s) return 0;
5170  }
5171  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5172    int x[] = {25, 17};
5173    const int *foo = &x[0];
5174    ++foo;
5175  }
5176  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5177    typedef const int *iptr;
5178    iptr p = 0;
5179    ++p;
5180  }
5181  { /* AIX XL C 1.02.0.0 rejects this saying
5182       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5183    struct s { int j; const int *ap[3]; };
5184    struct s *b; b->j = 5;
5185  }
5186  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5187    const int foo = 10;
5188    if (!foo) return 0;
5189  }
5190  return !cs[0] && !zero.x;
5191#endif
5192
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197rm -f conftest.$ac_objext
5198if { (ac_try="$ac_compile"
5199case "(($ac_try" in
5200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201  *) ac_try_echo=$ac_try;;
5202esac
5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204  (eval "$ac_compile") 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } && {
5211	 test -z "$ac_c_werror_flag" ||
5212	 test ! -s conftest.err
5213       } && test -s conftest.$ac_objext; then
5214  ac_cv_c_const=yes
5215else
5216  echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219	ac_cv_c_const=no
5220fi
5221
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5225echo "${ECHO_T}$ac_cv_c_const" >&6; }
5226if test $ac_cv_c_const = no; then
5227
5228cat >>confdefs.h <<\_ACEOF
5229#define const
5230_ACEOF
5231
5232fi
5233
5234{ echo "$as_me:$LINENO: checking for inline" >&5
5235echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5236if test "${ac_cv_c_inline+set}" = set; then
5237  echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239  ac_cv_c_inline=no
5240for ac_kw in inline __inline__ __inline; do
5241  cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h.  */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h.  */
5247#ifndef __cplusplus
5248typedef int foo_t;
5249static $ac_kw foo_t static_foo () {return 0; }
5250$ac_kw foo_t foo () {return 0; }
5251#endif
5252
5253_ACEOF
5254rm -f conftest.$ac_objext
5255if { (ac_try="$ac_compile"
5256case "(($ac_try" in
5257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258  *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261  (eval "$ac_compile") 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } && {
5268	 test -z "$ac_c_werror_flag" ||
5269	 test ! -s conftest.err
5270       } && test -s conftest.$ac_objext; then
5271  ac_cv_c_inline=$ac_kw
5272else
5273  echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276
5277fi
5278
5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280  test "$ac_cv_c_inline" != no && break
5281done
5282
5283fi
5284{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5285echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5286
5287
5288case $ac_cv_c_inline in
5289  inline | yes) ;;
5290  *)
5291    case $ac_cv_c_inline in
5292      no) ac_val=;;
5293      *) ac_val=$ac_cv_c_inline;;
5294    esac
5295    cat >>confdefs.h <<_ACEOF
5296#ifndef __cplusplus
5297#define inline $ac_val
5298#endif
5299_ACEOF
5300    ;;
5301esac
5302
5303{ echo "$as_me:$LINENO: checking for working volatile" >&5
5304echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
5305if test "${ac_cv_c_volatile+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h.  */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h.  */
5314
5315int
5316main ()
5317{
5318
5319volatile int x;
5320int * volatile y = (int *) 0;
5321return !x && !y;
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (ac_try="$ac_compile"
5328case "(($ac_try" in
5329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330  *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333  (eval "$ac_compile") 2>conftest.er1
5334  ac_status=$?
5335  grep -v '^ *+' conftest.er1 >conftest.err
5336  rm -f conftest.er1
5337  cat conftest.err >&5
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); } && {
5340	 test -z "$ac_c_werror_flag" ||
5341	 test ! -s conftest.err
5342       } && test -s conftest.$ac_objext; then
5343  ac_cv_c_volatile=yes
5344else
5345  echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
5347
5348	ac_cv_c_volatile=no
5349fi
5350
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352fi
5353{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5354echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
5355if test $ac_cv_c_volatile = no; then
5356
5357cat >>confdefs.h <<\_ACEOF
5358#define volatile
5359_ACEOF
5360
5361fi
5362
5363
5364
5365  { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
5366echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; }
5367if test "${ac_cv_type_long_double_wider+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376#include <float.h>
5377	    long double const a[] =
5378	      {
5379		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
5380		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
5381	      };
5382	    long double
5383	    f (long double x)
5384	    {
5385	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
5386			+ (x ? f (x) : 'c'));
5387	    }
5388
5389int
5390main ()
5391{
5392static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
5393		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
5394		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
5395		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
5396	    && (int) LDBL_EPSILON == 0
5397	  )];
5398test_array [0] = 0
5399
5400  ;
5401  return 0;
5402}
5403_ACEOF
5404rm -f conftest.$ac_objext
5405if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5412  ac_status=$?
5413  grep -v '^ *+' conftest.er1 >conftest.err
5414  rm -f conftest.er1
5415  cat conftest.err >&5
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); } && {
5418	 test -z "$ac_c_werror_flag" ||
5419	 test ! -s conftest.err
5420       } && test -s conftest.$ac_objext; then
5421  ac_cv_type_long_double_wider=yes
5422else
5423  echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426	ac_cv_type_long_double_wider=no
5427fi
5428
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430fi
5431{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
5432echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; }
5433  if test $ac_cv_type_long_double_wider = yes; then
5434
5435cat >>confdefs.h <<\_ACEOF
5436#define HAVE_LONG_DOUBLE_WIDER 1
5437_ACEOF
5438
5439  fi
5440
5441    ac_cv_c_long_double=$ac_cv_type_long_double_wider
5442    if test $ac_cv_c_long_double = yes; then
5443
5444cat >>confdefs.h <<\_ACEOF
5445#define HAVE_LONG_DOUBLE 1
5446_ACEOF
5447
5448    fi
5449
5450{ echo "$as_me:$LINENO: checking for size_t" >&5
5451echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5452if test "${ac_cv_type_size_t+set}" = set; then
5453  echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455  cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h.  */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h.  */
5461$ac_includes_default
5462typedef size_t ac__type_new_;
5463int
5464main ()
5465{
5466if ((ac__type_new_ *) 0)
5467  return 0;
5468if (sizeof (ac__type_new_))
5469  return 0;
5470  ;
5471  return 0;
5472}
5473_ACEOF
5474rm -f conftest.$ac_objext
5475if { (ac_try="$ac_compile"
5476case "(($ac_try" in
5477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478  *) ac_try_echo=$ac_try;;
5479esac
5480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481  (eval "$ac_compile") 2>conftest.er1
5482  ac_status=$?
5483  grep -v '^ *+' conftest.er1 >conftest.err
5484  rm -f conftest.er1
5485  cat conftest.err >&5
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); } && {
5488	 test -z "$ac_c_werror_flag" ||
5489	 test ! -s conftest.err
5490       } && test -s conftest.$ac_objext; then
5491  ac_cv_type_size_t=yes
5492else
5493  echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496	ac_cv_type_size_t=no
5497fi
5498
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500fi
5501{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5502echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5503if test $ac_cv_type_size_t = yes; then
5504  :
5505else
5506
5507cat >>confdefs.h <<_ACEOF
5508#define size_t unsigned int
5509_ACEOF
5510
5511fi
5512
5513{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5514echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5515if test "${ac_cv_type_signal+set}" = set; then
5516  echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518  cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h.  */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h.  */
5524#include <sys/types.h>
5525#include <signal.h>
5526
5527int
5528main ()
5529{
5530return *(signal (0, 0)) (0) == 1;
5531  ;
5532  return 0;
5533}
5534_ACEOF
5535rm -f conftest.$ac_objext
5536if { (ac_try="$ac_compile"
5537case "(($ac_try" in
5538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539  *) ac_try_echo=$ac_try;;
5540esac
5541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542  (eval "$ac_compile") 2>conftest.er1
5543  ac_status=$?
5544  grep -v '^ *+' conftest.er1 >conftest.err
5545  rm -f conftest.er1
5546  cat conftest.err >&5
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); } && {
5549	 test -z "$ac_c_werror_flag" ||
5550	 test ! -s conftest.err
5551       } && test -s conftest.$ac_objext; then
5552  ac_cv_type_signal=int
5553else
5554  echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557	ac_cv_type_signal=void
5558fi
5559
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5563echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5564
5565cat >>confdefs.h <<_ACEOF
5566#define RETSIGTYPE $ac_cv_type_signal
5567_ACEOF
5568
5569
5570{ echo "$as_me:$LINENO: checking for long" >&5
5571echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5572if test "${ac_cv_type_long+set}" = set; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h.  */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h.  */
5581$ac_includes_default
5582typedef long ac__type_new_;
5583int
5584main ()
5585{
5586if ((ac__type_new_ *) 0)
5587  return 0;
5588if (sizeof (ac__type_new_))
5589  return 0;
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext
5595if { (ac_try="$ac_compile"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601  (eval "$ac_compile") 2>conftest.er1
5602  ac_status=$?
5603  grep -v '^ *+' conftest.er1 >conftest.err
5604  rm -f conftest.er1
5605  cat conftest.err >&5
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); } && {
5608	 test -z "$ac_c_werror_flag" ||
5609	 test ! -s conftest.err
5610       } && test -s conftest.$ac_objext; then
5611  ac_cv_type_long=yes
5612else
5613  echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
5616	ac_cv_type_long=no
5617fi
5618
5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620fi
5621{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5622echo "${ECHO_T}$ac_cv_type_long" >&6; }
5623
5624# The cast to long int works around a bug in the HP C Compiler
5625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5627# This bug is HP SR number 8606223364.
5628{ echo "$as_me:$LINENO: checking size of long" >&5
5629echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5630if test "${ac_cv_sizeof_long+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  if test "$cross_compiling" = yes; then
5634  # Depending upon the size, compute the lo and hi bounds.
5635cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641$ac_includes_default
5642   typedef long ac__type_sizeof_;
5643int
5644main ()
5645{
5646static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5647test_array [0] = 0
5648
5649  ;
5650  return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext
5654if { (ac_try="$ac_compile"
5655case "(($ac_try" in
5656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657  *) ac_try_echo=$ac_try;;
5658esac
5659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660  (eval "$ac_compile") 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } && {
5667	 test -z "$ac_c_werror_flag" ||
5668	 test ! -s conftest.err
5669       } && test -s conftest.$ac_objext; then
5670  ac_lo=0 ac_mid=0
5671  while :; do
5672    cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h.  */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h.  */
5678$ac_includes_default
5679   typedef long ac__type_sizeof_;
5680int
5681main ()
5682{
5683static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5684test_array [0] = 0
5685
5686  ;
5687  return 0;
5688}
5689_ACEOF
5690rm -f conftest.$ac_objext
5691if { (ac_try="$ac_compile"
5692case "(($ac_try" in
5693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694  *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697  (eval "$ac_compile") 2>conftest.er1
5698  ac_status=$?
5699  grep -v '^ *+' conftest.er1 >conftest.err
5700  rm -f conftest.er1
5701  cat conftest.err >&5
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } && {
5704	 test -z "$ac_c_werror_flag" ||
5705	 test ! -s conftest.err
5706       } && test -s conftest.$ac_objext; then
5707  ac_hi=$ac_mid; break
5708else
5709  echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712	ac_lo=`expr $ac_mid + 1`
5713			if test $ac_lo -le $ac_mid; then
5714			  ac_lo= ac_hi=
5715			  break
5716			fi
5717			ac_mid=`expr 2 '*' $ac_mid + 1`
5718fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721  done
5722else
5723  echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726	cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732$ac_includes_default
5733   typedef long ac__type_sizeof_;
5734int
5735main ()
5736{
5737static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5738test_array [0] = 0
5739
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744rm -f conftest.$ac_objext
5745if { (ac_try="$ac_compile"
5746case "(($ac_try" in
5747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748  *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751  (eval "$ac_compile") 2>conftest.er1
5752  ac_status=$?
5753  grep -v '^ *+' conftest.er1 >conftest.err
5754  rm -f conftest.er1
5755  cat conftest.err >&5
5756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757  (exit $ac_status); } && {
5758	 test -z "$ac_c_werror_flag" ||
5759	 test ! -s conftest.err
5760       } && test -s conftest.$ac_objext; then
5761  ac_hi=-1 ac_mid=-1
5762  while :; do
5763    cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h.  */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h.  */
5769$ac_includes_default
5770   typedef long ac__type_sizeof_;
5771int
5772main ()
5773{
5774static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5775test_array [0] = 0
5776
5777  ;
5778  return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext
5782if { (ac_try="$ac_compile"
5783case "(($ac_try" in
5784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785  *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788  (eval "$ac_compile") 2>conftest.er1
5789  ac_status=$?
5790  grep -v '^ *+' conftest.er1 >conftest.err
5791  rm -f conftest.er1
5792  cat conftest.err >&5
5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794  (exit $ac_status); } && {
5795	 test -z "$ac_c_werror_flag" ||
5796	 test ! -s conftest.err
5797       } && test -s conftest.$ac_objext; then
5798  ac_lo=$ac_mid; break
5799else
5800  echo "$as_me: failed program was:" >&5
5801sed 's/^/| /' conftest.$ac_ext >&5
5802
5803	ac_hi=`expr '(' $ac_mid ')' - 1`
5804			if test $ac_mid -le $ac_hi; then
5805			  ac_lo= ac_hi=
5806			  break
5807			fi
5808			ac_mid=`expr 2 '*' $ac_mid`
5809fi
5810
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812  done
5813else
5814  echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817	ac_lo= ac_hi=
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824# Binary search between lo and hi bounds.
5825while test "x$ac_lo" != "x$ac_hi"; do
5826  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5827  cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h.  */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h.  */
5833$ac_includes_default
5834   typedef long ac__type_sizeof_;
5835int
5836main ()
5837{
5838static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5839test_array [0] = 0
5840
5841  ;
5842  return 0;
5843}
5844_ACEOF
5845rm -f conftest.$ac_objext
5846if { (ac_try="$ac_compile"
5847case "(($ac_try" in
5848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849  *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852  (eval "$ac_compile") 2>conftest.er1
5853  ac_status=$?
5854  grep -v '^ *+' conftest.er1 >conftest.err
5855  rm -f conftest.er1
5856  cat conftest.err >&5
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); } && {
5859	 test -z "$ac_c_werror_flag" ||
5860	 test ! -s conftest.err
5861       } && test -s conftest.$ac_objext; then
5862  ac_hi=$ac_mid
5863else
5864  echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867	ac_lo=`expr '(' $ac_mid ')' + 1`
5868fi
5869
5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871done
5872case $ac_lo in
5873?*) ac_cv_sizeof_long=$ac_lo;;
5874'') if test "$ac_cv_type_long" = yes; then
5875     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5876See \`config.log' for more details." >&5
5877echo "$as_me: error: cannot compute sizeof (long)
5878See \`config.log' for more details." >&2;}
5879   { (exit 77); exit 77; }; }
5880   else
5881     ac_cv_sizeof_long=0
5882   fi ;;
5883esac
5884else
5885  cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h.  */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h.  */
5891$ac_includes_default
5892   typedef long ac__type_sizeof_;
5893static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5894static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5895#include <stdio.h>
5896#include <stdlib.h>
5897int
5898main ()
5899{
5900
5901  FILE *f = fopen ("conftest.val", "w");
5902  if (! f)
5903    return 1;
5904  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5905    {
5906      long int i = longval ();
5907      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5908	return 1;
5909      fprintf (f, "%ld\n", i);
5910    }
5911  else
5912    {
5913      unsigned long int i = ulongval ();
5914      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5915	return 1;
5916      fprintf (f, "%lu\n", i);
5917    }
5918  return ferror (f) || fclose (f) != 0;
5919
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest$ac_exeext
5925if { (ac_try="$ac_link"
5926case "(($ac_try" in
5927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928  *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931  (eval "$ac_link") 2>&5
5932  ac_status=$?
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5935  { (case "(($ac_try" in
5936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937  *) ac_try_echo=$ac_try;;
5938esac
5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940  (eval "$ac_try") 2>&5
5941  ac_status=$?
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); }; }; then
5944  ac_cv_sizeof_long=`cat conftest.val`
5945else
5946  echo "$as_me: program exited with status $ac_status" >&5
5947echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950( exit $ac_status )
5951if test "$ac_cv_type_long" = yes; then
5952     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5953See \`config.log' for more details." >&5
5954echo "$as_me: error: cannot compute sizeof (long)
5955See \`config.log' for more details." >&2;}
5956   { (exit 77); exit 77; }; }
5957   else
5958     ac_cv_sizeof_long=0
5959   fi
5960fi
5961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5962fi
5963rm -f conftest.val
5964fi
5965{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5966echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5967
5968
5969
5970cat >>confdefs.h <<_ACEOF
5971#define SIZEOF_LONG $ac_cv_sizeof_long
5972_ACEOF
5973
5974
5975{ echo "$as_me:$LINENO: checking for int" >&5
5976echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5977if test "${ac_cv_type_int+set}" = set; then
5978  echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980  cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h.  */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h.  */
5986$ac_includes_default
5987typedef int ac__type_new_;
5988int
5989main ()
5990{
5991if ((ac__type_new_ *) 0)
5992  return 0;
5993if (sizeof (ac__type_new_))
5994  return 0;
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext
6000if { (ac_try="$ac_compile"
6001case "(($ac_try" in
6002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003  *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006  (eval "$ac_compile") 2>conftest.er1
6007  ac_status=$?
6008  grep -v '^ *+' conftest.er1 >conftest.err
6009  rm -f conftest.er1
6010  cat conftest.err >&5
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } && {
6013	 test -z "$ac_c_werror_flag" ||
6014	 test ! -s conftest.err
6015       } && test -s conftest.$ac_objext; then
6016  ac_cv_type_int=yes
6017else
6018  echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021	ac_cv_type_int=no
6022fi
6023
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025fi
6026{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6027echo "${ECHO_T}$ac_cv_type_int" >&6; }
6028
6029# The cast to long int works around a bug in the HP C Compiler
6030# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6031# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6032# This bug is HP SR number 8606223364.
6033{ echo "$as_me:$LINENO: checking size of int" >&5
6034echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6035if test "${ac_cv_sizeof_int+set}" = set; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  if test "$cross_compiling" = yes; then
6039  # Depending upon the size, compute the lo and hi bounds.
6040cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h.  */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h.  */
6046$ac_includes_default
6047   typedef int ac__type_sizeof_;
6048int
6049main ()
6050{
6051static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6052test_array [0] = 0
6053
6054  ;
6055  return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext
6059if { (ac_try="$ac_compile"
6060case "(($ac_try" in
6061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062  *) ac_try_echo=$ac_try;;
6063esac
6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065  (eval "$ac_compile") 2>conftest.er1
6066  ac_status=$?
6067  grep -v '^ *+' conftest.er1 >conftest.err
6068  rm -f conftest.er1
6069  cat conftest.err >&5
6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071  (exit $ac_status); } && {
6072	 test -z "$ac_c_werror_flag" ||
6073	 test ! -s conftest.err
6074       } && test -s conftest.$ac_objext; then
6075  ac_lo=0 ac_mid=0
6076  while :; do
6077    cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h.  */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h.  */
6083$ac_includes_default
6084   typedef int ac__type_sizeof_;
6085int
6086main ()
6087{
6088static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6089test_array [0] = 0
6090
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099  *) ac_try_echo=$ac_try;;
6100esac
6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102  (eval "$ac_compile") 2>conftest.er1
6103  ac_status=$?
6104  grep -v '^ *+' conftest.er1 >conftest.err
6105  rm -f conftest.er1
6106  cat conftest.err >&5
6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); } && {
6109	 test -z "$ac_c_werror_flag" ||
6110	 test ! -s conftest.err
6111       } && test -s conftest.$ac_objext; then
6112  ac_hi=$ac_mid; break
6113else
6114  echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117	ac_lo=`expr $ac_mid + 1`
6118			if test $ac_lo -le $ac_mid; then
6119			  ac_lo= ac_hi=
6120			  break
6121			fi
6122			ac_mid=`expr 2 '*' $ac_mid + 1`
6123fi
6124
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126  done
6127else
6128  echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131	cat >conftest.$ac_ext <<_ACEOF
6132/* confdefs.h.  */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h.  */
6137$ac_includes_default
6138   typedef int ac__type_sizeof_;
6139int
6140main ()
6141{
6142static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6143test_array [0] = 0
6144
6145  ;
6146  return 0;
6147}
6148_ACEOF
6149rm -f conftest.$ac_objext
6150if { (ac_try="$ac_compile"
6151case "(($ac_try" in
6152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153  *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156  (eval "$ac_compile") 2>conftest.er1
6157  ac_status=$?
6158  grep -v '^ *+' conftest.er1 >conftest.err
6159  rm -f conftest.er1
6160  cat conftest.err >&5
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); } && {
6163	 test -z "$ac_c_werror_flag" ||
6164	 test ! -s conftest.err
6165       } && test -s conftest.$ac_objext; then
6166  ac_hi=-1 ac_mid=-1
6167  while :; do
6168    cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h.  */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h.  */
6174$ac_includes_default
6175   typedef int ac__type_sizeof_;
6176int
6177main ()
6178{
6179static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6180test_array [0] = 0
6181
6182  ;
6183  return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext
6187if { (ac_try="$ac_compile"
6188case "(($ac_try" in
6189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190  *) ac_try_echo=$ac_try;;
6191esac
6192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193  (eval "$ac_compile") 2>conftest.er1
6194  ac_status=$?
6195  grep -v '^ *+' conftest.er1 >conftest.err
6196  rm -f conftest.er1
6197  cat conftest.err >&5
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); } && {
6200	 test -z "$ac_c_werror_flag" ||
6201	 test ! -s conftest.err
6202       } && test -s conftest.$ac_objext; then
6203  ac_lo=$ac_mid; break
6204else
6205  echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
6207
6208	ac_hi=`expr '(' $ac_mid ')' - 1`
6209			if test $ac_mid -le $ac_hi; then
6210			  ac_lo= ac_hi=
6211			  break
6212			fi
6213			ac_mid=`expr 2 '*' $ac_mid`
6214fi
6215
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217  done
6218else
6219  echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222	ac_lo= ac_hi=
6223fi
6224
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226fi
6227
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229# Binary search between lo and hi bounds.
6230while test "x$ac_lo" != "x$ac_hi"; do
6231  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6232  cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h.  */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h.  */
6238$ac_includes_default
6239   typedef int ac__type_sizeof_;
6240int
6241main ()
6242{
6243static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6244test_array [0] = 0
6245
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (ac_try="$ac_compile"
6252case "(($ac_try" in
6253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254  *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257  (eval "$ac_compile") 2>conftest.er1
6258  ac_status=$?
6259  grep -v '^ *+' conftest.er1 >conftest.err
6260  rm -f conftest.er1
6261  cat conftest.err >&5
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); } && {
6264	 test -z "$ac_c_werror_flag" ||
6265	 test ! -s conftest.err
6266       } && test -s conftest.$ac_objext; then
6267  ac_hi=$ac_mid
6268else
6269  echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272	ac_lo=`expr '(' $ac_mid ')' + 1`
6273fi
6274
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276done
6277case $ac_lo in
6278?*) ac_cv_sizeof_int=$ac_lo;;
6279'') if test "$ac_cv_type_int" = yes; then
6280     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6281See \`config.log' for more details." >&5
6282echo "$as_me: error: cannot compute sizeof (int)
6283See \`config.log' for more details." >&2;}
6284   { (exit 77); exit 77; }; }
6285   else
6286     ac_cv_sizeof_int=0
6287   fi ;;
6288esac
6289else
6290  cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h.  */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h.  */
6296$ac_includes_default
6297   typedef int ac__type_sizeof_;
6298static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6299static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6300#include <stdio.h>
6301#include <stdlib.h>
6302int
6303main ()
6304{
6305
6306  FILE *f = fopen ("conftest.val", "w");
6307  if (! f)
6308    return 1;
6309  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6310    {
6311      long int i = longval ();
6312      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6313	return 1;
6314      fprintf (f, "%ld\n", i);
6315    }
6316  else
6317    {
6318      unsigned long int i = ulongval ();
6319      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6320	return 1;
6321      fprintf (f, "%lu\n", i);
6322    }
6323  return ferror (f) || fclose (f) != 0;
6324
6325  ;
6326  return 0;
6327}
6328_ACEOF
6329rm -f conftest$ac_exeext
6330if { (ac_try="$ac_link"
6331case "(($ac_try" in
6332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333  *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336  (eval "$ac_link") 2>&5
6337  ac_status=$?
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6340  { (case "(($ac_try" in
6341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342  *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345  (eval "$ac_try") 2>&5
6346  ac_status=$?
6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348  (exit $ac_status); }; }; then
6349  ac_cv_sizeof_int=`cat conftest.val`
6350else
6351  echo "$as_me: program exited with status $ac_status" >&5
6352echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355( exit $ac_status )
6356if test "$ac_cv_type_int" = yes; then
6357     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6358See \`config.log' for more details." >&5
6359echo "$as_me: error: cannot compute sizeof (int)
6360See \`config.log' for more details." >&2;}
6361   { (exit 77); exit 77; }; }
6362   else
6363     ac_cv_sizeof_int=0
6364   fi
6365fi
6366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367fi
6368rm -f conftest.val
6369fi
6370{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6371echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6372
6373
6374
6375cat >>confdefs.h <<_ACEOF
6376#define SIZEOF_INT $ac_cv_sizeof_int
6377_ACEOF
6378
6379
6380{ echo "$as_me:$LINENO: checking for short" >&5
6381echo $ECHO_N "checking for short... $ECHO_C" >&6; }
6382if test "${ac_cv_type_short+set}" = set; then
6383  echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385  cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h.  */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h.  */
6391$ac_includes_default
6392typedef short ac__type_new_;
6393int
6394main ()
6395{
6396if ((ac__type_new_ *) 0)
6397  return 0;
6398if (sizeof (ac__type_new_))
6399  return 0;
6400  ;
6401  return 0;
6402}
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (ac_try="$ac_compile"
6406case "(($ac_try" in
6407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408  *) ac_try_echo=$ac_try;;
6409esac
6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411  (eval "$ac_compile") 2>conftest.er1
6412  ac_status=$?
6413  grep -v '^ *+' conftest.er1 >conftest.err
6414  rm -f conftest.er1
6415  cat conftest.err >&5
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); } && {
6418	 test -z "$ac_c_werror_flag" ||
6419	 test ! -s conftest.err
6420       } && test -s conftest.$ac_objext; then
6421  ac_cv_type_short=yes
6422else
6423  echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426	ac_cv_type_short=no
6427fi
6428
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430fi
6431{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6432echo "${ECHO_T}$ac_cv_type_short" >&6; }
6433
6434# The cast to long int works around a bug in the HP C Compiler
6435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6437# This bug is HP SR number 8606223364.
6438{ echo "$as_me:$LINENO: checking size of short" >&5
6439echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
6440if test "${ac_cv_sizeof_short+set}" = set; then
6441  echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443  if test "$cross_compiling" = yes; then
6444  # Depending upon the size, compute the lo and hi bounds.
6445cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451$ac_includes_default
6452   typedef short ac__type_sizeof_;
6453int
6454main ()
6455{
6456static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6457test_array [0] = 0
6458
6459  ;
6460  return 0;
6461}
6462_ACEOF
6463rm -f conftest.$ac_objext
6464if { (ac_try="$ac_compile"
6465case "(($ac_try" in
6466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467  *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470  (eval "$ac_compile") 2>conftest.er1
6471  ac_status=$?
6472  grep -v '^ *+' conftest.er1 >conftest.err
6473  rm -f conftest.er1
6474  cat conftest.err >&5
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); } && {
6477	 test -z "$ac_c_werror_flag" ||
6478	 test ! -s conftest.err
6479       } && test -s conftest.$ac_objext; then
6480  ac_lo=0 ac_mid=0
6481  while :; do
6482    cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h.  */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h.  */
6488$ac_includes_default
6489   typedef short ac__type_sizeof_;
6490int
6491main ()
6492{
6493static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6494test_array [0] = 0
6495
6496  ;
6497  return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext
6501if { (ac_try="$ac_compile"
6502case "(($ac_try" in
6503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504  *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507  (eval "$ac_compile") 2>conftest.er1
6508  ac_status=$?
6509  grep -v '^ *+' conftest.er1 >conftest.err
6510  rm -f conftest.er1
6511  cat conftest.err >&5
6512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513  (exit $ac_status); } && {
6514	 test -z "$ac_c_werror_flag" ||
6515	 test ! -s conftest.err
6516       } && test -s conftest.$ac_objext; then
6517  ac_hi=$ac_mid; break
6518else
6519  echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522	ac_lo=`expr $ac_mid + 1`
6523			if test $ac_lo -le $ac_mid; then
6524			  ac_lo= ac_hi=
6525			  break
6526			fi
6527			ac_mid=`expr 2 '*' $ac_mid + 1`
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531  done
6532else
6533  echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536	cat >conftest.$ac_ext <<_ACEOF
6537/* confdefs.h.  */
6538_ACEOF
6539cat confdefs.h >>conftest.$ac_ext
6540cat >>conftest.$ac_ext <<_ACEOF
6541/* end confdefs.h.  */
6542$ac_includes_default
6543   typedef short ac__type_sizeof_;
6544int
6545main ()
6546{
6547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6548test_array [0] = 0
6549
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554rm -f conftest.$ac_objext
6555if { (ac_try="$ac_compile"
6556case "(($ac_try" in
6557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558  *) ac_try_echo=$ac_try;;
6559esac
6560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561  (eval "$ac_compile") 2>conftest.er1
6562  ac_status=$?
6563  grep -v '^ *+' conftest.er1 >conftest.err
6564  rm -f conftest.er1
6565  cat conftest.err >&5
6566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567  (exit $ac_status); } && {
6568	 test -z "$ac_c_werror_flag" ||
6569	 test ! -s conftest.err
6570       } && test -s conftest.$ac_objext; then
6571  ac_hi=-1 ac_mid=-1
6572  while :; do
6573    cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h.  */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h.  */
6579$ac_includes_default
6580   typedef short ac__type_sizeof_;
6581int
6582main ()
6583{
6584static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6585test_array [0] = 0
6586
6587  ;
6588  return 0;
6589}
6590_ACEOF
6591rm -f conftest.$ac_objext
6592if { (ac_try="$ac_compile"
6593case "(($ac_try" in
6594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595  *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598  (eval "$ac_compile") 2>conftest.er1
6599  ac_status=$?
6600  grep -v '^ *+' conftest.er1 >conftest.err
6601  rm -f conftest.er1
6602  cat conftest.err >&5
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); } && {
6605	 test -z "$ac_c_werror_flag" ||
6606	 test ! -s conftest.err
6607       } && test -s conftest.$ac_objext; then
6608  ac_lo=$ac_mid; break
6609else
6610  echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
6613	ac_hi=`expr '(' $ac_mid ')' - 1`
6614			if test $ac_mid -le $ac_hi; then
6615			  ac_lo= ac_hi=
6616			  break
6617			fi
6618			ac_mid=`expr 2 '*' $ac_mid`
6619fi
6620
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622  done
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627	ac_lo= ac_hi=
6628fi
6629
6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631fi
6632
6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634# Binary search between lo and hi bounds.
6635while test "x$ac_lo" != "x$ac_hi"; do
6636  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6637  cat >conftest.$ac_ext <<_ACEOF
6638/* confdefs.h.  */
6639_ACEOF
6640cat confdefs.h >>conftest.$ac_ext
6641cat >>conftest.$ac_ext <<_ACEOF
6642/* end confdefs.h.  */
6643$ac_includes_default
6644   typedef short ac__type_sizeof_;
6645int
6646main ()
6647{
6648static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6649test_array [0] = 0
6650
6651  ;
6652  return 0;
6653}
6654_ACEOF
6655rm -f conftest.$ac_objext
6656if { (ac_try="$ac_compile"
6657case "(($ac_try" in
6658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659  *) ac_try_echo=$ac_try;;
6660esac
6661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662  (eval "$ac_compile") 2>conftest.er1
6663  ac_status=$?
6664  grep -v '^ *+' conftest.er1 >conftest.err
6665  rm -f conftest.er1
6666  cat conftest.err >&5
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); } && {
6669	 test -z "$ac_c_werror_flag" ||
6670	 test ! -s conftest.err
6671       } && test -s conftest.$ac_objext; then
6672  ac_hi=$ac_mid
6673else
6674  echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677	ac_lo=`expr '(' $ac_mid ')' + 1`
6678fi
6679
6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681done
6682case $ac_lo in
6683?*) ac_cv_sizeof_short=$ac_lo;;
6684'') if test "$ac_cv_type_short" = yes; then
6685     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6686See \`config.log' for more details." >&5
6687echo "$as_me: error: cannot compute sizeof (short)
6688See \`config.log' for more details." >&2;}
6689   { (exit 77); exit 77; }; }
6690   else
6691     ac_cv_sizeof_short=0
6692   fi ;;
6693esac
6694else
6695  cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701$ac_includes_default
6702   typedef short ac__type_sizeof_;
6703static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6704static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6705#include <stdio.h>
6706#include <stdlib.h>
6707int
6708main ()
6709{
6710
6711  FILE *f = fopen ("conftest.val", "w");
6712  if (! f)
6713    return 1;
6714  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6715    {
6716      long int i = longval ();
6717      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6718	return 1;
6719      fprintf (f, "%ld\n", i);
6720    }
6721  else
6722    {
6723      unsigned long int i = ulongval ();
6724      if (i != ((long int) (sizeof (ac__type_sizeof_))))
6725	return 1;
6726      fprintf (f, "%lu\n", i);
6727    }
6728  return ferror (f) || fclose (f) != 0;
6729
6730  ;
6731  return 0;
6732}
6733_ACEOF
6734rm -f conftest$ac_exeext
6735if { (ac_try="$ac_link"
6736case "(($ac_try" in
6737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738  *) ac_try_echo=$ac_try;;
6739esac
6740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741  (eval "$ac_link") 2>&5
6742  ac_status=$?
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6745  { (case "(($ac_try" in
6746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747  *) ac_try_echo=$ac_try;;
6748esac
6749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750  (eval "$ac_try") 2>&5
6751  ac_status=$?
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); }; }; then
6754  ac_cv_sizeof_short=`cat conftest.val`
6755else
6756  echo "$as_me: program exited with status $ac_status" >&5
6757echo "$as_me: failed program was:" >&5
6758sed 's/^/| /' conftest.$ac_ext >&5
6759
6760( exit $ac_status )
6761if test "$ac_cv_type_short" = yes; then
6762     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6763See \`config.log' for more details." >&5
6764echo "$as_me: error: cannot compute sizeof (short)
6765See \`config.log' for more details." >&2;}
6766   { (exit 77); exit 77; }; }
6767   else
6768     ac_cv_sizeof_short=0
6769   fi
6770fi
6771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6772fi
6773rm -f conftest.val
6774fi
6775{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6776echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6777
6778
6779
6780cat >>confdefs.h <<_ACEOF
6781#define SIZEOF_SHORT $ac_cv_sizeof_short
6782_ACEOF
6783
6784
6785{ echo "$as_me:$LINENO: checking for float" >&5
6786echo $ECHO_N "checking for float... $ECHO_C" >&6; }
6787if test "${ac_cv_type_float+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  cat >conftest.$ac_ext <<_ACEOF
6791/* confdefs.h.  */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h.  */
6796$ac_includes_default
6797typedef float ac__type_new_;
6798int
6799main ()
6800{
6801if ((ac__type_new_ *) 0)
6802  return 0;
6803if (sizeof (ac__type_new_))
6804  return 0;
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext
6810if { (ac_try="$ac_compile"
6811case "(($ac_try" in
6812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813  *) ac_try_echo=$ac_try;;
6814esac
6815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816  (eval "$ac_compile") 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } && {
6823	 test -z "$ac_c_werror_flag" ||
6824	 test ! -s conftest.err
6825       } && test -s conftest.$ac_objext; then
6826  ac_cv_type_float=yes
6827else
6828  echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831	ac_cv_type_float=no
6832fi
6833
6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835fi
6836{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6837echo "${ECHO_T}$ac_cv_type_float" >&6; }
6838
6839# The cast to long int works around a bug in the HP C Compiler
6840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6842# This bug is HP SR number 8606223364.
6843{ echo "$as_me:$LINENO: checking size of float" >&5
6844echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
6845if test "${ac_cv_sizeof_float+set}" = set; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848  if test "$cross_compiling" = yes; then
6849  # Depending upon the size, compute the lo and hi bounds.
6850cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h.  */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h.  */
6856$ac_includes_default
6857   typedef float ac__type_sizeof_;
6858int
6859main ()
6860{
6861static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6862test_array [0] = 0
6863
6864  ;
6865  return 0;
6866}
6867_ACEOF
6868rm -f conftest.$ac_objext
6869if { (ac_try="$ac_compile"
6870case "(($ac_try" in
6871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872  *) ac_try_echo=$ac_try;;
6873esac
6874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6875  (eval "$ac_compile") 2>conftest.er1
6876  ac_status=$?
6877  grep -v '^ *+' conftest.er1 >conftest.err
6878  rm -f conftest.er1
6879  cat conftest.err >&5
6880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } && {
6882	 test -z "$ac_c_werror_flag" ||
6883	 test ! -s conftest.err
6884       } && test -s conftest.$ac_objext; then
6885  ac_lo=0 ac_mid=0
6886  while :; do
6887    cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h.  */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h.  */
6893$ac_includes_default
6894   typedef float ac__type_sizeof_;
6895int
6896main ()
6897{
6898static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6899test_array [0] = 0
6900
6901  ;
6902  return 0;
6903}
6904_ACEOF
6905rm -f conftest.$ac_objext
6906if { (ac_try="$ac_compile"
6907case "(($ac_try" in
6908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909  *) ac_try_echo=$ac_try;;
6910esac
6911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912  (eval "$ac_compile") 2>conftest.er1
6913  ac_status=$?
6914  grep -v '^ *+' conftest.er1 >conftest.err
6915  rm -f conftest.er1
6916  cat conftest.err >&5
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); } && {
6919	 test -z "$ac_c_werror_flag" ||
6920	 test ! -s conftest.err
6921       } && test -s conftest.$ac_objext; then
6922  ac_hi=$ac_mid; break
6923else
6924  echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927	ac_lo=`expr $ac_mid + 1`
6928			if test $ac_lo -le $ac_mid; then
6929			  ac_lo= ac_hi=
6930			  break
6931			fi
6932			ac_mid=`expr 2 '*' $ac_mid + 1`
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936  done
6937else
6938  echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941	cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h.  */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h.  */
6947$ac_includes_default
6948   typedef float ac__type_sizeof_;
6949int
6950main ()
6951{
6952static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6953test_array [0] = 0
6954
6955  ;
6956  return 0;
6957}
6958_ACEOF
6959rm -f conftest.$ac_objext
6960if { (ac_try="$ac_compile"
6961case "(($ac_try" in
6962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963  *) ac_try_echo=$ac_try;;
6964esac
6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966  (eval "$ac_compile") 2>conftest.er1
6967  ac_status=$?
6968  grep -v '^ *+' conftest.er1 >conftest.err
6969  rm -f conftest.er1
6970  cat conftest.err >&5
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); } && {
6973	 test -z "$ac_c_werror_flag" ||
6974	 test ! -s conftest.err
6975       } && test -s conftest.$ac_objext; then
6976  ac_hi=-1 ac_mid=-1
6977  while :; do
6978    cat >conftest.$ac_ext <<_ACEOF
6979/* confdefs.h.  */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h.  */
6984$ac_includes_default
6985   typedef float ac__type_sizeof_;
6986int
6987main ()
6988{
6989static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6990test_array [0] = 0
6991
6992  ;
6993  return 0;
6994}
6995_ACEOF
6996rm -f conftest.$ac_objext
6997if { (ac_try="$ac_compile"
6998case "(($ac_try" in
6999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000  *) ac_try_echo=$ac_try;;
7001esac
7002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003  (eval "$ac_compile") 2>conftest.er1
7004  ac_status=$?
7005  grep -v '^ *+' conftest.er1 >conftest.err
7006  rm -f conftest.er1
7007  cat conftest.err >&5
7008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009  (exit $ac_status); } && {
7010	 test -z "$ac_c_werror_flag" ||
7011	 test ! -s conftest.err
7012       } && test -s conftest.$ac_objext; then
7013  ac_lo=$ac_mid; break
7014else
7015  echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018	ac_hi=`expr '(' $ac_mid ')' - 1`
7019			if test $ac_mid -le $ac_hi; then
7020			  ac_lo= ac_hi=
7021			  break
7022			fi
7023			ac_mid=`expr 2 '*' $ac_mid`
7024fi
7025
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027  done
7028else
7029  echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032	ac_lo= ac_hi=
7033fi
7034
7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036fi
7037
7038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039# Binary search between lo and hi bounds.
7040while test "x$ac_lo" != "x$ac_hi"; do
7041  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7042  cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h.  */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h.  */
7048$ac_includes_default
7049   typedef float ac__type_sizeof_;
7050int
7051main ()
7052{
7053static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7054test_array [0] = 0
7055
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060rm -f conftest.$ac_objext
7061if { (ac_try="$ac_compile"
7062case "(($ac_try" in
7063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064  *) ac_try_echo=$ac_try;;
7065esac
7066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067  (eval "$ac_compile") 2>conftest.er1
7068  ac_status=$?
7069  grep -v '^ *+' conftest.er1 >conftest.err
7070  rm -f conftest.er1
7071  cat conftest.err >&5
7072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073  (exit $ac_status); } && {
7074	 test -z "$ac_c_werror_flag" ||
7075	 test ! -s conftest.err
7076       } && test -s conftest.$ac_objext; then
7077  ac_hi=$ac_mid
7078else
7079  echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
7082	ac_lo=`expr '(' $ac_mid ')' + 1`
7083fi
7084
7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086done
7087case $ac_lo in
7088?*) ac_cv_sizeof_float=$ac_lo;;
7089'') if test "$ac_cv_type_float" = yes; then
7090     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
7091See \`config.log' for more details." >&5
7092echo "$as_me: error: cannot compute sizeof (float)
7093See \`config.log' for more details." >&2;}
7094   { (exit 77); exit 77; }; }
7095   else
7096     ac_cv_sizeof_float=0
7097   fi ;;
7098esac
7099else
7100  cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h.  */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h.  */
7106$ac_includes_default
7107   typedef float ac__type_sizeof_;
7108static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7109static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7110#include <stdio.h>
7111#include <stdlib.h>
7112int
7113main ()
7114{
7115
7116  FILE *f = fopen ("conftest.val", "w");
7117  if (! f)
7118    return 1;
7119  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7120    {
7121      long int i = longval ();
7122      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7123	return 1;
7124      fprintf (f, "%ld\n", i);
7125    }
7126  else
7127    {
7128      unsigned long int i = ulongval ();
7129      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7130	return 1;
7131      fprintf (f, "%lu\n", i);
7132    }
7133  return ferror (f) || fclose (f) != 0;
7134
7135  ;
7136  return 0;
7137}
7138_ACEOF
7139rm -f conftest$ac_exeext
7140if { (ac_try="$ac_link"
7141case "(($ac_try" in
7142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143  *) ac_try_echo=$ac_try;;
7144esac
7145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146  (eval "$ac_link") 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7150  { (case "(($ac_try" in
7151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152  *) ac_try_echo=$ac_try;;
7153esac
7154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155  (eval "$ac_try") 2>&5
7156  ac_status=$?
7157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158  (exit $ac_status); }; }; then
7159  ac_cv_sizeof_float=`cat conftest.val`
7160else
7161  echo "$as_me: program exited with status $ac_status" >&5
7162echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
7165( exit $ac_status )
7166if test "$ac_cv_type_float" = yes; then
7167     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
7168See \`config.log' for more details." >&5
7169echo "$as_me: error: cannot compute sizeof (float)
7170See \`config.log' for more details." >&2;}
7171   { (exit 77); exit 77; }; }
7172   else
7173     ac_cv_sizeof_float=0
7174   fi
7175fi
7176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7177fi
7178rm -f conftest.val
7179fi
7180{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7181echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
7182
7183
7184
7185cat >>confdefs.h <<_ACEOF
7186#define SIZEOF_FLOAT $ac_cv_sizeof_float
7187_ACEOF
7188
7189
7190{ echo "$as_me:$LINENO: checking for double" >&5
7191echo $ECHO_N "checking for double... $ECHO_C" >&6; }
7192if test "${ac_cv_type_double+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h.  */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h.  */
7201$ac_includes_default
7202typedef double ac__type_new_;
7203int
7204main ()
7205{
7206if ((ac__type_new_ *) 0)
7207  return 0;
7208if (sizeof (ac__type_new_))
7209  return 0;
7210  ;
7211  return 0;
7212}
7213_ACEOF
7214rm -f conftest.$ac_objext
7215if { (ac_try="$ac_compile"
7216case "(($ac_try" in
7217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218  *) ac_try_echo=$ac_try;;
7219esac
7220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221  (eval "$ac_compile") 2>conftest.er1
7222  ac_status=$?
7223  grep -v '^ *+' conftest.er1 >conftest.err
7224  rm -f conftest.er1
7225  cat conftest.err >&5
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); } && {
7228	 test -z "$ac_c_werror_flag" ||
7229	 test ! -s conftest.err
7230       } && test -s conftest.$ac_objext; then
7231  ac_cv_type_double=yes
7232else
7233  echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236	ac_cv_type_double=no
7237fi
7238
7239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240fi
7241{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7242echo "${ECHO_T}$ac_cv_type_double" >&6; }
7243
7244# The cast to long int works around a bug in the HP C Compiler
7245# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7246# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7247# This bug is HP SR number 8606223364.
7248{ echo "$as_me:$LINENO: checking size of double" >&5
7249echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
7250if test "${ac_cv_sizeof_double+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  if test "$cross_compiling" = yes; then
7254  # Depending upon the size, compute the lo and hi bounds.
7255cat >conftest.$ac_ext <<_ACEOF
7256/* confdefs.h.  */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h.  */
7261$ac_includes_default
7262   typedef double ac__type_sizeof_;
7263int
7264main ()
7265{
7266static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7267test_array [0] = 0
7268
7269  ;
7270  return 0;
7271}
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (ac_try="$ac_compile"
7275case "(($ac_try" in
7276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277  *) ac_try_echo=$ac_try;;
7278esac
7279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280  (eval "$ac_compile") 2>conftest.er1
7281  ac_status=$?
7282  grep -v '^ *+' conftest.er1 >conftest.err
7283  rm -f conftest.er1
7284  cat conftest.err >&5
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); } && {
7287	 test -z "$ac_c_werror_flag" ||
7288	 test ! -s conftest.err
7289       } && test -s conftest.$ac_objext; then
7290  ac_lo=0 ac_mid=0
7291  while :; do
7292    cat >conftest.$ac_ext <<_ACEOF
7293/* confdefs.h.  */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h.  */
7298$ac_includes_default
7299   typedef double ac__type_sizeof_;
7300int
7301main ()
7302{
7303static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7304test_array [0] = 0
7305
7306  ;
7307  return 0;
7308}
7309_ACEOF
7310rm -f conftest.$ac_objext
7311if { (ac_try="$ac_compile"
7312case "(($ac_try" in
7313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314  *) ac_try_echo=$ac_try;;
7315esac
7316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317  (eval "$ac_compile") 2>conftest.er1
7318  ac_status=$?
7319  grep -v '^ *+' conftest.er1 >conftest.err
7320  rm -f conftest.er1
7321  cat conftest.err >&5
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); } && {
7324	 test -z "$ac_c_werror_flag" ||
7325	 test ! -s conftest.err
7326       } && test -s conftest.$ac_objext; then
7327  ac_hi=$ac_mid; break
7328else
7329  echo "$as_me: failed program was:" >&5
7330sed 's/^/| /' conftest.$ac_ext >&5
7331
7332	ac_lo=`expr $ac_mid + 1`
7333			if test $ac_lo -le $ac_mid; then
7334			  ac_lo= ac_hi=
7335			  break
7336			fi
7337			ac_mid=`expr 2 '*' $ac_mid + 1`
7338fi
7339
7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341  done
7342else
7343  echo "$as_me: failed program was:" >&5
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
7346	cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h.  */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h.  */
7352$ac_includes_default
7353   typedef double ac__type_sizeof_;
7354int
7355main ()
7356{
7357static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7358test_array [0] = 0
7359
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext
7365if { (ac_try="$ac_compile"
7366case "(($ac_try" in
7367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368  *) ac_try_echo=$ac_try;;
7369esac
7370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371  (eval "$ac_compile") 2>conftest.er1
7372  ac_status=$?
7373  grep -v '^ *+' conftest.er1 >conftest.err
7374  rm -f conftest.er1
7375  cat conftest.err >&5
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); } && {
7378	 test -z "$ac_c_werror_flag" ||
7379	 test ! -s conftest.err
7380       } && test -s conftest.$ac_objext; then
7381  ac_hi=-1 ac_mid=-1
7382  while :; do
7383    cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h.  */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h.  */
7389$ac_includes_default
7390   typedef double ac__type_sizeof_;
7391int
7392main ()
7393{
7394static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7395test_array [0] = 0
7396
7397  ;
7398  return 0;
7399}
7400_ACEOF
7401rm -f conftest.$ac_objext
7402if { (ac_try="$ac_compile"
7403case "(($ac_try" in
7404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405  *) ac_try_echo=$ac_try;;
7406esac
7407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408  (eval "$ac_compile") 2>conftest.er1
7409  ac_status=$?
7410  grep -v '^ *+' conftest.er1 >conftest.err
7411  rm -f conftest.er1
7412  cat conftest.err >&5
7413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414  (exit $ac_status); } && {
7415	 test -z "$ac_c_werror_flag" ||
7416	 test ! -s conftest.err
7417       } && test -s conftest.$ac_objext; then
7418  ac_lo=$ac_mid; break
7419else
7420  echo "$as_me: failed program was:" >&5
7421sed 's/^/| /' conftest.$ac_ext >&5
7422
7423	ac_hi=`expr '(' $ac_mid ')' - 1`
7424			if test $ac_mid -le $ac_hi; then
7425			  ac_lo= ac_hi=
7426			  break
7427			fi
7428			ac_mid=`expr 2 '*' $ac_mid`
7429fi
7430
7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432  done
7433else
7434  echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437	ac_lo= ac_hi=
7438fi
7439
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441fi
7442
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444# Binary search between lo and hi bounds.
7445while test "x$ac_lo" != "x$ac_hi"; do
7446  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7447  cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h.  */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h.  */
7453$ac_includes_default
7454   typedef double ac__type_sizeof_;
7455int
7456main ()
7457{
7458static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7459test_array [0] = 0
7460
7461  ;
7462  return 0;
7463}
7464_ACEOF
7465rm -f conftest.$ac_objext
7466if { (ac_try="$ac_compile"
7467case "(($ac_try" in
7468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469  *) ac_try_echo=$ac_try;;
7470esac
7471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472  (eval "$ac_compile") 2>conftest.er1
7473  ac_status=$?
7474  grep -v '^ *+' conftest.er1 >conftest.err
7475  rm -f conftest.er1
7476  cat conftest.err >&5
7477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478  (exit $ac_status); } && {
7479	 test -z "$ac_c_werror_flag" ||
7480	 test ! -s conftest.err
7481       } && test -s conftest.$ac_objext; then
7482  ac_hi=$ac_mid
7483else
7484  echo "$as_me: failed program was:" >&5
7485sed 's/^/| /' conftest.$ac_ext >&5
7486
7487	ac_lo=`expr '(' $ac_mid ')' + 1`
7488fi
7489
7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491done
7492case $ac_lo in
7493?*) ac_cv_sizeof_double=$ac_lo;;
7494'') if test "$ac_cv_type_double" = yes; then
7495     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7496See \`config.log' for more details." >&5
7497echo "$as_me: error: cannot compute sizeof (double)
7498See \`config.log' for more details." >&2;}
7499   { (exit 77); exit 77; }; }
7500   else
7501     ac_cv_sizeof_double=0
7502   fi ;;
7503esac
7504else
7505  cat >conftest.$ac_ext <<_ACEOF
7506/* confdefs.h.  */
7507_ACEOF
7508cat confdefs.h >>conftest.$ac_ext
7509cat >>conftest.$ac_ext <<_ACEOF
7510/* end confdefs.h.  */
7511$ac_includes_default
7512   typedef double ac__type_sizeof_;
7513static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7514static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7515#include <stdio.h>
7516#include <stdlib.h>
7517int
7518main ()
7519{
7520
7521  FILE *f = fopen ("conftest.val", "w");
7522  if (! f)
7523    return 1;
7524  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7525    {
7526      long int i = longval ();
7527      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7528	return 1;
7529      fprintf (f, "%ld\n", i);
7530    }
7531  else
7532    {
7533      unsigned long int i = ulongval ();
7534      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7535	return 1;
7536      fprintf (f, "%lu\n", i);
7537    }
7538  return ferror (f) || fclose (f) != 0;
7539
7540  ;
7541  return 0;
7542}
7543_ACEOF
7544rm -f conftest$ac_exeext
7545if { (ac_try="$ac_link"
7546case "(($ac_try" in
7547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548  *) ac_try_echo=$ac_try;;
7549esac
7550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7551  (eval "$ac_link") 2>&5
7552  ac_status=$?
7553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7555  { (case "(($ac_try" in
7556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557  *) ac_try_echo=$ac_try;;
7558esac
7559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560  (eval "$ac_try") 2>&5
7561  ac_status=$?
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); }; }; then
7564  ac_cv_sizeof_double=`cat conftest.val`
7565else
7566  echo "$as_me: program exited with status $ac_status" >&5
7567echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570( exit $ac_status )
7571if test "$ac_cv_type_double" = yes; then
7572     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7573See \`config.log' for more details." >&5
7574echo "$as_me: error: cannot compute sizeof (double)
7575See \`config.log' for more details." >&2;}
7576   { (exit 77); exit 77; }; }
7577   else
7578     ac_cv_sizeof_double=0
7579   fi
7580fi
7581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7582fi
7583rm -f conftest.val
7584fi
7585{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7586echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
7587
7588
7589
7590cat >>confdefs.h <<_ACEOF
7591#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7592_ACEOF
7593
7594
7595if test $ac_cv_c_long_double = yes; then
7596  { echo "$as_me:$LINENO: checking for long double" >&5
7597echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7598if test "${ac_cv_type_long_double+set}" = set; then
7599  echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7601  cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h.  */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h.  */
7607$ac_includes_default
7608typedef long double ac__type_new_;
7609int
7610main ()
7611{
7612if ((ac__type_new_ *) 0)
7613  return 0;
7614if (sizeof (ac__type_new_))
7615  return 0;
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext
7621if { (ac_try="$ac_compile"
7622case "(($ac_try" in
7623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624  *) ac_try_echo=$ac_try;;
7625esac
7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627  (eval "$ac_compile") 2>conftest.er1
7628  ac_status=$?
7629  grep -v '^ *+' conftest.er1 >conftest.err
7630  rm -f conftest.er1
7631  cat conftest.err >&5
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); } && {
7634	 test -z "$ac_c_werror_flag" ||
7635	 test ! -s conftest.err
7636       } && test -s conftest.$ac_objext; then
7637  ac_cv_type_long_double=yes
7638else
7639  echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642	ac_cv_type_long_double=no
7643fi
7644
7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646fi
7647{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7648echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7649
7650# The cast to long int works around a bug in the HP C Compiler
7651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7653# This bug is HP SR number 8606223364.
7654{ echo "$as_me:$LINENO: checking size of long double" >&5
7655echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7656if test "${ac_cv_sizeof_long_double+set}" = set; then
7657  echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659  if test "$cross_compiling" = yes; then
7660  # Depending upon the size, compute the lo and hi bounds.
7661cat >conftest.$ac_ext <<_ACEOF
7662/* confdefs.h.  */
7663_ACEOF
7664cat confdefs.h >>conftest.$ac_ext
7665cat >>conftest.$ac_ext <<_ACEOF
7666/* end confdefs.h.  */
7667$ac_includes_default
7668   typedef long double ac__type_sizeof_;
7669int
7670main ()
7671{
7672static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7673test_array [0] = 0
7674
7675  ;
7676  return 0;
7677}
7678_ACEOF
7679rm -f conftest.$ac_objext
7680if { (ac_try="$ac_compile"
7681case "(($ac_try" in
7682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683  *) ac_try_echo=$ac_try;;
7684esac
7685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686  (eval "$ac_compile") 2>conftest.er1
7687  ac_status=$?
7688  grep -v '^ *+' conftest.er1 >conftest.err
7689  rm -f conftest.er1
7690  cat conftest.err >&5
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); } && {
7693	 test -z "$ac_c_werror_flag" ||
7694	 test ! -s conftest.err
7695       } && test -s conftest.$ac_objext; then
7696  ac_lo=0 ac_mid=0
7697  while :; do
7698    cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704$ac_includes_default
7705   typedef long double ac__type_sizeof_;
7706int
7707main ()
7708{
7709static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7710test_array [0] = 0
7711
7712  ;
7713  return 0;
7714}
7715_ACEOF
7716rm -f conftest.$ac_objext
7717if { (ac_try="$ac_compile"
7718case "(($ac_try" in
7719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720  *) ac_try_echo=$ac_try;;
7721esac
7722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723  (eval "$ac_compile") 2>conftest.er1
7724  ac_status=$?
7725  grep -v '^ *+' conftest.er1 >conftest.err
7726  rm -f conftest.er1
7727  cat conftest.err >&5
7728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729  (exit $ac_status); } && {
7730	 test -z "$ac_c_werror_flag" ||
7731	 test ! -s conftest.err
7732       } && test -s conftest.$ac_objext; then
7733  ac_hi=$ac_mid; break
7734else
7735  echo "$as_me: failed program was:" >&5
7736sed 's/^/| /' conftest.$ac_ext >&5
7737
7738	ac_lo=`expr $ac_mid + 1`
7739			if test $ac_lo -le $ac_mid; then
7740			  ac_lo= ac_hi=
7741			  break
7742			fi
7743			ac_mid=`expr 2 '*' $ac_mid + 1`
7744fi
7745
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747  done
7748else
7749  echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752	cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h.  */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h.  */
7758$ac_includes_default
7759   typedef long double ac__type_sizeof_;
7760int
7761main ()
7762{
7763static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7764test_array [0] = 0
7765
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext
7771if { (ac_try="$ac_compile"
7772case "(($ac_try" in
7773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774  *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777  (eval "$ac_compile") 2>conftest.er1
7778  ac_status=$?
7779  grep -v '^ *+' conftest.er1 >conftest.err
7780  rm -f conftest.er1
7781  cat conftest.err >&5
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); } && {
7784	 test -z "$ac_c_werror_flag" ||
7785	 test ! -s conftest.err
7786       } && test -s conftest.$ac_objext; then
7787  ac_hi=-1 ac_mid=-1
7788  while :; do
7789    cat >conftest.$ac_ext <<_ACEOF
7790/* confdefs.h.  */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h.  */
7795$ac_includes_default
7796   typedef long double ac__type_sizeof_;
7797int
7798main ()
7799{
7800static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7801test_array [0] = 0
7802
7803  ;
7804  return 0;
7805}
7806_ACEOF
7807rm -f conftest.$ac_objext
7808if { (ac_try="$ac_compile"
7809case "(($ac_try" in
7810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811  *) ac_try_echo=$ac_try;;
7812esac
7813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814  (eval "$ac_compile") 2>conftest.er1
7815  ac_status=$?
7816  grep -v '^ *+' conftest.er1 >conftest.err
7817  rm -f conftest.er1
7818  cat conftest.err >&5
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); } && {
7821	 test -z "$ac_c_werror_flag" ||
7822	 test ! -s conftest.err
7823       } && test -s conftest.$ac_objext; then
7824  ac_lo=$ac_mid; break
7825else
7826  echo "$as_me: failed program was:" >&5
7827sed 's/^/| /' conftest.$ac_ext >&5
7828
7829	ac_hi=`expr '(' $ac_mid ')' - 1`
7830			if test $ac_mid -le $ac_hi; then
7831			  ac_lo= ac_hi=
7832			  break
7833			fi
7834			ac_mid=`expr 2 '*' $ac_mid`
7835fi
7836
7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838  done
7839else
7840  echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843	ac_lo= ac_hi=
7844fi
7845
7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847fi
7848
7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850# Binary search between lo and hi bounds.
7851while test "x$ac_lo" != "x$ac_hi"; do
7852  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7853  cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h.  */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h.  */
7859$ac_includes_default
7860   typedef long double ac__type_sizeof_;
7861int
7862main ()
7863{
7864static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7865test_array [0] = 0
7866
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext
7872if { (ac_try="$ac_compile"
7873case "(($ac_try" in
7874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875  *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878  (eval "$ac_compile") 2>conftest.er1
7879  ac_status=$?
7880  grep -v '^ *+' conftest.er1 >conftest.err
7881  rm -f conftest.er1
7882  cat conftest.err >&5
7883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884  (exit $ac_status); } && {
7885	 test -z "$ac_c_werror_flag" ||
7886	 test ! -s conftest.err
7887       } && test -s conftest.$ac_objext; then
7888  ac_hi=$ac_mid
7889else
7890  echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893	ac_lo=`expr '(' $ac_mid ')' + 1`
7894fi
7895
7896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897done
7898case $ac_lo in
7899?*) ac_cv_sizeof_long_double=$ac_lo;;
7900'') if test "$ac_cv_type_long_double" = yes; then
7901     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
7902See \`config.log' for more details." >&5
7903echo "$as_me: error: cannot compute sizeof (long double)
7904See \`config.log' for more details." >&2;}
7905   { (exit 77); exit 77; }; }
7906   else
7907     ac_cv_sizeof_long_double=0
7908   fi ;;
7909esac
7910else
7911  cat >conftest.$ac_ext <<_ACEOF
7912/* confdefs.h.  */
7913_ACEOF
7914cat confdefs.h >>conftest.$ac_ext
7915cat >>conftest.$ac_ext <<_ACEOF
7916/* end confdefs.h.  */
7917$ac_includes_default
7918   typedef long double ac__type_sizeof_;
7919static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7920static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7921#include <stdio.h>
7922#include <stdlib.h>
7923int
7924main ()
7925{
7926
7927  FILE *f = fopen ("conftest.val", "w");
7928  if (! f)
7929    return 1;
7930  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7931    {
7932      long int i = longval ();
7933      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7934	return 1;
7935      fprintf (f, "%ld\n", i);
7936    }
7937  else
7938    {
7939      unsigned long int i = ulongval ();
7940      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7941	return 1;
7942      fprintf (f, "%lu\n", i);
7943    }
7944  return ferror (f) || fclose (f) != 0;
7945
7946  ;
7947  return 0;
7948}
7949_ACEOF
7950rm -f conftest$ac_exeext
7951if { (ac_try="$ac_link"
7952case "(($ac_try" in
7953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954  *) ac_try_echo=$ac_try;;
7955esac
7956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957  (eval "$ac_link") 2>&5
7958  ac_status=$?
7959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7961  { (case "(($ac_try" in
7962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963  *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966  (eval "$ac_try") 2>&5
7967  ac_status=$?
7968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969  (exit $ac_status); }; }; then
7970  ac_cv_sizeof_long_double=`cat conftest.val`
7971else
7972  echo "$as_me: program exited with status $ac_status" >&5
7973echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976( exit $ac_status )
7977if test "$ac_cv_type_long_double" = yes; then
7978     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
7979See \`config.log' for more details." >&5
7980echo "$as_me: error: cannot compute sizeof (long double)
7981See \`config.log' for more details." >&2;}
7982   { (exit 77); exit 77; }; }
7983   else
7984     ac_cv_sizeof_long_double=0
7985   fi
7986fi
7987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7988fi
7989rm -f conftest.val
7990fi
7991{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7992echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
7993
7994
7995
7996cat >>confdefs.h <<_ACEOF
7997#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7998_ACEOF
7999
8000
8001fi
8002if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then
8003  { { echo "$as_me:$LINENO: error: can't find a 32-bit type" >&5
8004echo "$as_me: error: can't find a 32-bit type" >&2;}
8005   { (exit 1); exit 1; }; }
8006fi
8007if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then
8008  { { echo "$as_me:$LINENO: error: can't find a 16-bit type" >&5
8009echo "$as_me: error: can't find a 16-bit type" >&2;}
8010   { (exit 1); exit 1; }; }
8011fi
8012if test $ac_cv_sizeof_long = 8; then
8013  { echo "$as_me:$LINENO: checking minimum alignment of int64_t" >&5
8014echo $ECHO_N "checking minimum alignment of int64_t... $ECHO_C" >&6; }
8015if test "${ac_cv_alignof_int64_t+set}" = set; then
8016  echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018  if test "$cross_compiling" = yes; then
8019  ac_cv_alignof_int64_t=64
8020else
8021  cat >conftest.$ac_ext <<_ACEOF
8022/* confdefs.h.  */
8023_ACEOF
8024cat confdefs.h >>conftest.$ac_ext
8025cat >>conftest.$ac_ext <<_ACEOF
8026/* end confdefs.h.  */
8027#include <stdio.h>
8028#include <sys/types.h>
8029main()
8030{
8031#if (SIZEOF_SHORT * 8) == 64
8032#define _type short
8033#elif (SIZEOF_INT * 8) == 64
8034#define _type int
8035#else
8036#define _type long
8037#endif
8038  char try_align_buffer[sizeof(_type) * 2];
8039  int min_align, try_align, status;
8040  _type value;
8041  FILE *f=fopen("conftestval", "w");
8042  if (!f) exit(1);
8043  min_align = sizeof(_type);
8044  for(try_align = sizeof(_type); try_align-- > 1;) {
8045    switch(fork()) {
8046    case -1: exit(1);
8047    case 0: value = *((_type *) &try_align_buffer[try_align]);
8048      fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
8049    default: break;
8050    }
8051    wait(&status);
8052    if (!status && try_align < min_align) {
8053      min_align = try_align;
8054    }
8055  }
8056  fprintf(f, "%d\n", min_align * 8);
8057  exit(0);
8058}
8059_ACEOF
8060rm -f conftest$ac_exeext
8061if { (ac_try="$ac_link"
8062case "(($ac_try" in
8063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064  *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067  (eval "$ac_link") 2>&5
8068  ac_status=$?
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8071  { (case "(($ac_try" in
8072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073  *) ac_try_echo=$ac_try;;
8074esac
8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076  (eval "$ac_try") 2>&5
8077  ac_status=$?
8078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079  (exit $ac_status); }; }; then
8080  ac_cv_alignof_int64_t=`cat conftestval`
8081else
8082  echo "$as_me: program exited with status $ac_status" >&5
8083echo "$as_me: failed program was:" >&5
8084sed 's/^/| /' conftest.$ac_ext >&5
8085
8086( exit $ac_status )
8087ac_cv_alignof_int64_t=64
8088fi
8089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8090fi
8091
8092
8093fi
8094ac_cv_alignof_int64_t=`expr $ac_cv_alignof_int64_t / 8`
8095{ echo "$as_me:$LINENO: result: $ac_cv_alignof_int64_t" >&5
8096echo "${ECHO_T}$ac_cv_alignof_int64_t" >&6; }
8097
8098cat >>confdefs.h <<_ACEOF
8099#define ALIGNOF_INT64_T $ac_cv_alignof_int64_t
8100_ACEOF
8101
8102
8103  { echo "$as_me:$LINENO: checking maximum shift count for int64_t" >&5
8104echo $ECHO_N "checking maximum shift count for int64_t... $ECHO_C" >&6; }
8105if test "${ac_cv_shiftmax_int64_t+set}" = set; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108  if test "$cross_compiling" = yes; then
8109  ac_cv_shiftmax_int64_t=64
8110else
8111  cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h.  */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h.  */
8117#include <stdio.h>
8118#include <sys/types.h>
8119main()
8120{
8121#if 8 == 64
8122#define _type char
8123#elif (SIZEOF_SHORT * 8) == 64
8124#define _type short
8125#elif (SIZEOF_INT * 8) == 64
8126#define _type int
8127#elif (SIZEOF_LONG * 8) == 64
8128#define _type long
8129#endif
8130  _type center, right, left;
8131  unsigned int shift, max_shift;
8132  FILE *f=fopen("conftestval", "w");
8133  if (!f) exit(1);
8134  center = 3;
8135  center <<= ((sizeof(center) * 4) - 1);
8136  max_shift = 2047;
8137  sscanf("0", "%d", &shift);
8138  for (shift += (sizeof(center) * 8);
8139       shift < 2048;
8140       shift <<= 1) {
8141    right = (center >> shift);
8142    left = (center << shift);
8143    if (right != 0
8144	|| left != 0) {
8145      right = (center >> (shift | 1));
8146      left = (center << (shift | 1));
8147      max_shift = ((right == (center >> 1)
8148		    && left == (center << 1))
8149		   ? shift - 1
8150		   : (sizeof(center) * 8) - 1);
8151      break;
8152    }
8153  }
8154  fprintf(f, "%d\n", max_shift + 1);
8155  exit(0);
8156}
8157_ACEOF
8158rm -f conftest$ac_exeext
8159if { (ac_try="$ac_link"
8160case "(($ac_try" in
8161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162  *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165  (eval "$ac_link") 2>&5
8166  ac_status=$?
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8169  { (case "(($ac_try" in
8170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171  *) ac_try_echo=$ac_try;;
8172esac
8173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174  (eval "$ac_try") 2>&5
8175  ac_status=$?
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); }; }; then
8178  ac_cv_shiftmax_int64_t=`cat conftestval`
8179else
8180  echo "$as_me: program exited with status $ac_status" >&5
8181echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184( exit $ac_status )
8185ac_cv_shiftmax_int64_t=64
8186fi
8187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8188fi
8189
8190
8191fi
8192ac_cv_shiftmax_int64_t=`expr $ac_cv_shiftmax_int64_t - 1`
8193{ echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int64_t" >&5
8194echo "${ECHO_T}$ac_cv_shiftmax_int64_t" >&6; }
8195
8196cat >>confdefs.h <<_ACEOF
8197#define SHIFTMAX_INT64_T $ac_cv_shiftmax_int64_t
8198_ACEOF
8199
8200
8201  { echo "$as_me:$LINENO: checking for arithmetic right shifts of int64_t" >&5
8202echo $ECHO_N "checking for arithmetic right shifts of int64_t... $ECHO_C" >&6; }
8203if test "${ac_cv_shiftsigned_int64_t+set}" = set; then
8204  echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206  if test "$cross_compiling" = yes; then
8207  ac_cv_shiftsigned_int64_t=0
8208else
8209  cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h.  */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h.  */
8215#include <stdio.h>
8216#include <sys/types.h>
8217main()
8218{
8219#if 8 == 64
8220#define _type signed char
8221#elif (SIZEOF_SHORT * 8) == 64
8222#define _type signed short
8223#elif (SIZEOF_INT * 8) == 64
8224#define _type signed int
8225#elif (SIZEOF_LONG * 8) == 64
8226#define _type signed long
8227#endif
8228  _type prime, shifted, dividend;
8229  unsigned int shift, divides;
8230  FILE *f;
8231
8232  f=fopen("conftestval", "w");
8233  if (!f) exit(1);
8234
8235  /* set value to the largest magnitude negative prime that it
8236     will hold: */
8237#if 64 == 8
8238  prime = -127;
8239#elif 64 == 16
8240  prime = -32749;
8241#elif 64 == 32
8242  prime = -2147483647;
8243#elif 64 == 64
8244  /* this is a crafty way of constructing -9223372036854775783,
8245     which is 0x8000000000000000 - 0x19, without having to know
8246     any compiler suffix for 64-bit literals: */
8247  prime = 1;
8248  prime <<= (64 - 2);
8249  prime = -prime;
8250  prime *= 2;
8251  prime -= 0x19;
8252#else
8253#error "need another prime"
8254#endif
8255
8256  /* all right shifts from a single bit up to SHIFTMAX_INT64_T
8257     must be arithmetic, otherwise shifts aren't arithmetic: */
8258  for (shift = 1;
8259       shift <= SHIFTMAX_INT64_T;
8260       shift++) {
8261    shifted = prime >> shift;
8262    dividend = prime;
8263    divides = 0;
8264    do {
8265      dividend &= ~((_type) 1); /* guarantee no remainder */
8266      dividend /= 2;
8267    } while (++divides < shift);
8268    if (shifted != dividend) {
8269      break;
8270    }
8271  }
8272
8273  fprintf(f, "%d\n", (shift > SHIFTMAX_INT64_T ? 1 : 0));
8274  exit(0);
8275}
8276_ACEOF
8277rm -f conftest$ac_exeext
8278if { (ac_try="$ac_link"
8279case "(($ac_try" in
8280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281  *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284  (eval "$ac_link") 2>&5
8285  ac_status=$?
8286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8288  { (case "(($ac_try" in
8289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290  *) ac_try_echo=$ac_try;;
8291esac
8292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293  (eval "$ac_try") 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; }; then
8297  ac_cv_shiftsigned_int64_t=`cat conftestval`
8298else
8299  echo "$as_me: program exited with status $ac_status" >&5
8300echo "$as_me: failed program was:" >&5
8301sed 's/^/| /' conftest.$ac_ext >&5
8302
8303( exit $ac_status )
8304ac_cv_shiftsigned_int64_t=0
8305fi
8306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8307fi
8308
8309
8310fi
8311if test $ac_cv_shiftsigned_int64_t = 1; then
8312  { echo "$as_me:$LINENO: result: yes" >&5
8313echo "${ECHO_T}yes" >&6; }
8314
8315cat >>confdefs.h <<_ACEOF
8316#define SHIFTSIGNED_INT64_T
8317_ACEOF
8318
8319else
8320  { echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6; }
8322fi
8323
8324fi
8325{ echo "$as_me:$LINENO: checking minimum alignment of int32_t" >&5
8326echo $ECHO_N "checking minimum alignment of int32_t... $ECHO_C" >&6; }
8327if test "${ac_cv_alignof_int32_t+set}" = set; then
8328  echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330  if test "$cross_compiling" = yes; then
8331  ac_cv_alignof_int32_t=32
8332else
8333  cat >conftest.$ac_ext <<_ACEOF
8334/* confdefs.h.  */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h.  */
8339#include <stdio.h>
8340#include <sys/types.h>
8341main()
8342{
8343#if (SIZEOF_SHORT * 8) == 32
8344#define _type short
8345#elif (SIZEOF_INT * 8) == 32
8346#define _type int
8347#else
8348#define _type long
8349#endif
8350  char try_align_buffer[sizeof(_type) * 2];
8351  int min_align, try_align, status;
8352  _type value;
8353  FILE *f=fopen("conftestval", "w");
8354  if (!f) exit(1);
8355  min_align = sizeof(_type);
8356  for(try_align = sizeof(_type); try_align-- > 1;) {
8357    switch(fork()) {
8358    case -1: exit(1);
8359    case 0: value = *((_type *) &try_align_buffer[try_align]);
8360      fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
8361    default: break;
8362    }
8363    wait(&status);
8364    if (!status && try_align < min_align) {
8365      min_align = try_align;
8366    }
8367  }
8368  fprintf(f, "%d\n", min_align * 8);
8369  exit(0);
8370}
8371_ACEOF
8372rm -f conftest$ac_exeext
8373if { (ac_try="$ac_link"
8374case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379  (eval "$ac_link") 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8383  { (case "(($ac_try" in
8384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385  *) ac_try_echo=$ac_try;;
8386esac
8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388  (eval "$ac_try") 2>&5
8389  ac_status=$?
8390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391  (exit $ac_status); }; }; then
8392  ac_cv_alignof_int32_t=`cat conftestval`
8393else
8394  echo "$as_me: program exited with status $ac_status" >&5
8395echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398( exit $ac_status )
8399ac_cv_alignof_int32_t=32
8400fi
8401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8402fi
8403
8404
8405fi
8406ac_cv_alignof_int32_t=`expr $ac_cv_alignof_int32_t / 8`
8407{ echo "$as_me:$LINENO: result: $ac_cv_alignof_int32_t" >&5
8408echo "${ECHO_T}$ac_cv_alignof_int32_t" >&6; }
8409
8410cat >>confdefs.h <<_ACEOF
8411#define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
8412_ACEOF
8413
8414
8415{ echo "$as_me:$LINENO: checking minimum alignment of int16_t" >&5
8416echo $ECHO_N "checking minimum alignment of int16_t... $ECHO_C" >&6; }
8417if test "${ac_cv_alignof_int16_t+set}" = set; then
8418  echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420  if test "$cross_compiling" = yes; then
8421  ac_cv_alignof_int16_t=16
8422else
8423  cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h.  */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h.  */
8429#include <stdio.h>
8430#include <sys/types.h>
8431main()
8432{
8433#if (SIZEOF_SHORT * 8) == 16
8434#define _type short
8435#elif (SIZEOF_INT * 8) == 16
8436#define _type int
8437#else
8438#define _type long
8439#endif
8440  char try_align_buffer[sizeof(_type) * 2];
8441  int min_align, try_align, status;
8442  _type value;
8443  FILE *f=fopen("conftestval", "w");
8444  if (!f) exit(1);
8445  min_align = sizeof(_type);
8446  for(try_align = sizeof(_type); try_align-- > 1;) {
8447    switch(fork()) {
8448    case -1: exit(1);
8449    case 0: value = *((_type *) &try_align_buffer[try_align]);
8450      fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
8451    default: break;
8452    }
8453    wait(&status);
8454    if (!status && try_align < min_align) {
8455      min_align = try_align;
8456    }
8457  }
8458  fprintf(f, "%d\n", min_align * 8);
8459  exit(0);
8460}
8461_ACEOF
8462rm -f conftest$ac_exeext
8463if { (ac_try="$ac_link"
8464case "(($ac_try" in
8465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466  *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469  (eval "$ac_link") 2>&5
8470  ac_status=$?
8471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473  { (case "(($ac_try" in
8474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475  *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478  (eval "$ac_try") 2>&5
8479  ac_status=$?
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); }; }; then
8482  ac_cv_alignof_int16_t=`cat conftestval`
8483else
8484  echo "$as_me: program exited with status $ac_status" >&5
8485echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488( exit $ac_status )
8489ac_cv_alignof_int16_t=16
8490fi
8491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8492fi
8493
8494
8495fi
8496ac_cv_alignof_int16_t=`expr $ac_cv_alignof_int16_t / 8`
8497{ echo "$as_me:$LINENO: result: $ac_cv_alignof_int16_t" >&5
8498echo "${ECHO_T}$ac_cv_alignof_int16_t" >&6; }
8499
8500cat >>confdefs.h <<_ACEOF
8501#define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
8502_ACEOF
8503
8504
8505{ echo "$as_me:$LINENO: checking maximum shift count for int8_t" >&5
8506echo $ECHO_N "checking maximum shift count for int8_t... $ECHO_C" >&6; }
8507if test "${ac_cv_shiftmax_int8_t+set}" = set; then
8508  echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510  if test "$cross_compiling" = yes; then
8511  ac_cv_shiftmax_int8_t=8
8512else
8513  cat >conftest.$ac_ext <<_ACEOF
8514/* confdefs.h.  */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h.  */
8519#include <stdio.h>
8520#include <sys/types.h>
8521main()
8522{
8523#if 8 == 8
8524#define _type char
8525#elif (SIZEOF_SHORT * 8) == 8
8526#define _type short
8527#elif (SIZEOF_INT * 8) == 8
8528#define _type int
8529#elif (SIZEOF_LONG * 8) == 8
8530#define _type long
8531#endif
8532  _type center, right, left;
8533  unsigned int shift, max_shift;
8534  FILE *f=fopen("conftestval", "w");
8535  if (!f) exit(1);
8536  center = 3;
8537  center <<= ((sizeof(center) * 4) - 1);
8538  max_shift = 2047;
8539  sscanf("0", "%d", &shift);
8540  for (shift += (sizeof(center) * 8);
8541       shift < 2048;
8542       shift <<= 1) {
8543    right = (center >> shift);
8544    left = (center << shift);
8545    if (right != 0
8546	|| left != 0) {
8547      right = (center >> (shift | 1));
8548      left = (center << (shift | 1));
8549      max_shift = ((right == (center >> 1)
8550		    && left == (center << 1))
8551		   ? shift - 1
8552		   : (sizeof(center) * 8) - 1);
8553      break;
8554    }
8555  }
8556  fprintf(f, "%d\n", max_shift + 1);
8557  exit(0);
8558}
8559_ACEOF
8560rm -f conftest$ac_exeext
8561if { (ac_try="$ac_link"
8562case "(($ac_try" in
8563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564  *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567  (eval "$ac_link") 2>&5
8568  ac_status=$?
8569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8571  { (case "(($ac_try" in
8572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573  *) ac_try_echo=$ac_try;;
8574esac
8575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576  (eval "$ac_try") 2>&5
8577  ac_status=$?
8578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579  (exit $ac_status); }; }; then
8580  ac_cv_shiftmax_int8_t=`cat conftestval`
8581else
8582  echo "$as_me: program exited with status $ac_status" >&5
8583echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586( exit $ac_status )
8587ac_cv_shiftmax_int8_t=8
8588fi
8589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8590fi
8591
8592
8593fi
8594ac_cv_shiftmax_int8_t=`expr $ac_cv_shiftmax_int8_t - 1`
8595{ echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int8_t" >&5
8596echo "${ECHO_T}$ac_cv_shiftmax_int8_t" >&6; }
8597
8598cat >>confdefs.h <<_ACEOF
8599#define SHIFTMAX_INT8_T $ac_cv_shiftmax_int8_t
8600_ACEOF
8601
8602
8603{ echo "$as_me:$LINENO: checking maximum shift count for int16_t" >&5
8604echo $ECHO_N "checking maximum shift count for int16_t... $ECHO_C" >&6; }
8605if test "${ac_cv_shiftmax_int16_t+set}" = set; then
8606  echo $ECHO_N "(cached) $ECHO_C" >&6
8607else
8608  if test "$cross_compiling" = yes; then
8609  ac_cv_shiftmax_int16_t=16
8610else
8611  cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h.  */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h.  */
8617#include <stdio.h>
8618#include <sys/types.h>
8619main()
8620{
8621#if 8 == 16
8622#define _type char
8623#elif (SIZEOF_SHORT * 8) == 16
8624#define _type short
8625#elif (SIZEOF_INT * 8) == 16
8626#define _type int
8627#elif (SIZEOF_LONG * 8) == 16
8628#define _type long
8629#endif
8630  _type center, right, left;
8631  unsigned int shift, max_shift;
8632  FILE *f=fopen("conftestval", "w");
8633  if (!f) exit(1);
8634  center = 3;
8635  center <<= ((sizeof(center) * 4) - 1);
8636  max_shift = 2047;
8637  sscanf("0", "%d", &shift);
8638  for (shift += (sizeof(center) * 8);
8639       shift < 2048;
8640       shift <<= 1) {
8641    right = (center >> shift);
8642    left = (center << shift);
8643    if (right != 0
8644	|| left != 0) {
8645      right = (center >> (shift | 1));
8646      left = (center << (shift | 1));
8647      max_shift = ((right == (center >> 1)
8648		    && left == (center << 1))
8649		   ? shift - 1
8650		   : (sizeof(center) * 8) - 1);
8651      break;
8652    }
8653  }
8654  fprintf(f, "%d\n", max_shift + 1);
8655  exit(0);
8656}
8657_ACEOF
8658rm -f conftest$ac_exeext
8659if { (ac_try="$ac_link"
8660case "(($ac_try" in
8661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662  *) ac_try_echo=$ac_try;;
8663esac
8664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665  (eval "$ac_link") 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8669  { (case "(($ac_try" in
8670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671  *) ac_try_echo=$ac_try;;
8672esac
8673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674  (eval "$ac_try") 2>&5
8675  ac_status=$?
8676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677  (exit $ac_status); }; }; then
8678  ac_cv_shiftmax_int16_t=`cat conftestval`
8679else
8680  echo "$as_me: program exited with status $ac_status" >&5
8681echo "$as_me: failed program was:" >&5
8682sed 's/^/| /' conftest.$ac_ext >&5
8683
8684( exit $ac_status )
8685ac_cv_shiftmax_int16_t=16
8686fi
8687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8688fi
8689
8690
8691fi
8692ac_cv_shiftmax_int16_t=`expr $ac_cv_shiftmax_int16_t - 1`
8693{ echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int16_t" >&5
8694echo "${ECHO_T}$ac_cv_shiftmax_int16_t" >&6; }
8695
8696cat >>confdefs.h <<_ACEOF
8697#define SHIFTMAX_INT16_T $ac_cv_shiftmax_int16_t
8698_ACEOF
8699
8700
8701{ echo "$as_me:$LINENO: checking maximum shift count for int32_t" >&5
8702echo $ECHO_N "checking maximum shift count for int32_t... $ECHO_C" >&6; }
8703if test "${ac_cv_shiftmax_int32_t+set}" = set; then
8704  echo $ECHO_N "(cached) $ECHO_C" >&6
8705else
8706  if test "$cross_compiling" = yes; then
8707  ac_cv_shiftmax_int32_t=32
8708else
8709  cat >conftest.$ac_ext <<_ACEOF
8710/* confdefs.h.  */
8711_ACEOF
8712cat confdefs.h >>conftest.$ac_ext
8713cat >>conftest.$ac_ext <<_ACEOF
8714/* end confdefs.h.  */
8715#include <stdio.h>
8716#include <sys/types.h>
8717main()
8718{
8719#if 8 == 32
8720#define _type char
8721#elif (SIZEOF_SHORT * 8) == 32
8722#define _type short
8723#elif (SIZEOF_INT * 8) == 32
8724#define _type int
8725#elif (SIZEOF_LONG * 8) == 32
8726#define _type long
8727#endif
8728  _type center, right, left;
8729  unsigned int shift, max_shift;
8730  FILE *f=fopen("conftestval", "w");
8731  if (!f) exit(1);
8732  center = 3;
8733  center <<= ((sizeof(center) * 4) - 1);
8734  max_shift = 2047;
8735  sscanf("0", "%d", &shift);
8736  for (shift += (sizeof(center) * 8);
8737       shift < 2048;
8738       shift <<= 1) {
8739    right = (center >> shift);
8740    left = (center << shift);
8741    if (right != 0
8742	|| left != 0) {
8743      right = (center >> (shift | 1));
8744      left = (center << (shift | 1));
8745      max_shift = ((right == (center >> 1)
8746		    && left == (center << 1))
8747		   ? shift - 1
8748		   : (sizeof(center) * 8) - 1);
8749      break;
8750    }
8751  }
8752  fprintf(f, "%d\n", max_shift + 1);
8753  exit(0);
8754}
8755_ACEOF
8756rm -f conftest$ac_exeext
8757if { (ac_try="$ac_link"
8758case "(($ac_try" in
8759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760  *) ac_try_echo=$ac_try;;
8761esac
8762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763  (eval "$ac_link") 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8767  { (case "(($ac_try" in
8768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769  *) ac_try_echo=$ac_try;;
8770esac
8771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772  (eval "$ac_try") 2>&5
8773  ac_status=$?
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); }; }; then
8776  ac_cv_shiftmax_int32_t=`cat conftestval`
8777else
8778  echo "$as_me: program exited with status $ac_status" >&5
8779echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782( exit $ac_status )
8783ac_cv_shiftmax_int32_t=32
8784fi
8785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8786fi
8787
8788
8789fi
8790ac_cv_shiftmax_int32_t=`expr $ac_cv_shiftmax_int32_t - 1`
8791{ echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int32_t" >&5
8792echo "${ECHO_T}$ac_cv_shiftmax_int32_t" >&6; }
8793
8794cat >>confdefs.h <<_ACEOF
8795#define SHIFTMAX_INT32_T $ac_cv_shiftmax_int32_t
8796_ACEOF
8797
8798
8799{ echo "$as_me:$LINENO: checking for arithmetic right shifts of int8_t" >&5
8800echo $ECHO_N "checking for arithmetic right shifts of int8_t... $ECHO_C" >&6; }
8801if test "${ac_cv_shiftsigned_int8_t+set}" = set; then
8802  echo $ECHO_N "(cached) $ECHO_C" >&6
8803else
8804  if test "$cross_compiling" = yes; then
8805  ac_cv_shiftsigned_int8_t=0
8806else
8807  cat >conftest.$ac_ext <<_ACEOF
8808/* confdefs.h.  */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
8812/* end confdefs.h.  */
8813#include <stdio.h>
8814#include <sys/types.h>
8815main()
8816{
8817#if 8 == 8
8818#define _type signed char
8819#elif (SIZEOF_SHORT * 8) == 8
8820#define _type signed short
8821#elif (SIZEOF_INT * 8) == 8
8822#define _type signed int
8823#elif (SIZEOF_LONG * 8) == 8
8824#define _type signed long
8825#endif
8826  _type prime, shifted, dividend;
8827  unsigned int shift, divides;
8828  FILE *f;
8829
8830  f=fopen("conftestval", "w");
8831  if (!f) exit(1);
8832
8833  /* set value to the largest magnitude negative prime that it
8834     will hold: */
8835#if 8 == 8
8836  prime = -127;
8837#elif 8 == 16
8838  prime = -32749;
8839#elif 8 == 32
8840  prime = -2147483647;
8841#elif 8 == 64
8842  /* this is a crafty way of constructing -9223372036854775783,
8843     which is 0x8000000000000000 - 0x19, without having to know
8844     any compiler suffix for 64-bit literals: */
8845  prime = 1;
8846  prime <<= (8 - 2);
8847  prime = -prime;
8848  prime *= 2;
8849  prime -= 0x19;
8850#else
8851#error "need another prime"
8852#endif
8853
8854  /* all right shifts from a single bit up to SHIFTMAX_INT8_T
8855     must be arithmetic, otherwise shifts aren't arithmetic: */
8856  for (shift = 1;
8857       shift <= SHIFTMAX_INT8_T;
8858       shift++) {
8859    shifted = prime >> shift;
8860    dividend = prime;
8861    divides = 0;
8862    do {
8863      dividend &= ~((_type) 1); /* guarantee no remainder */
8864      dividend /= 2;
8865    } while (++divides < shift);
8866    if (shifted != dividend) {
8867      break;
8868    }
8869  }
8870
8871  fprintf(f, "%d\n", (shift > SHIFTMAX_INT8_T ? 1 : 0));
8872  exit(0);
8873}
8874_ACEOF
8875rm -f conftest$ac_exeext
8876if { (ac_try="$ac_link"
8877case "(($ac_try" in
8878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879  *) ac_try_echo=$ac_try;;
8880esac
8881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882  (eval "$ac_link") 2>&5
8883  ac_status=$?
8884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8886  { (case "(($ac_try" in
8887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888  *) ac_try_echo=$ac_try;;
8889esac
8890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891  (eval "$ac_try") 2>&5
8892  ac_status=$?
8893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894  (exit $ac_status); }; }; then
8895  ac_cv_shiftsigned_int8_t=`cat conftestval`
8896else
8897  echo "$as_me: program exited with status $ac_status" >&5
8898echo "$as_me: failed program was:" >&5
8899sed 's/^/| /' conftest.$ac_ext >&5
8900
8901( exit $ac_status )
8902ac_cv_shiftsigned_int8_t=0
8903fi
8904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8905fi
8906
8907
8908fi
8909if test $ac_cv_shiftsigned_int8_t = 1; then
8910  { echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6; }
8912
8913cat >>confdefs.h <<_ACEOF
8914#define SHIFTSIGNED_INT8_T
8915_ACEOF
8916
8917else
8918  { echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6; }
8920fi
8921
8922{ echo "$as_me:$LINENO: checking for arithmetic right shifts of int16_t" >&5
8923echo $ECHO_N "checking for arithmetic right shifts of int16_t... $ECHO_C" >&6; }
8924if test "${ac_cv_shiftsigned_int16_t+set}" = set; then
8925  echo $ECHO_N "(cached) $ECHO_C" >&6
8926else
8927  if test "$cross_compiling" = yes; then
8928  ac_cv_shiftsigned_int16_t=0
8929else
8930  cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h.  */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h.  */
8936#include <stdio.h>
8937#include <sys/types.h>
8938main()
8939{
8940#if 8 == 16
8941#define _type signed char
8942#elif (SIZEOF_SHORT * 8) == 16
8943#define _type signed short
8944#elif (SIZEOF_INT * 8) == 16
8945#define _type signed int
8946#elif (SIZEOF_LONG * 8) == 16
8947#define _type signed long
8948#endif
8949  _type prime, shifted, dividend;
8950  unsigned int shift, divides;
8951  FILE *f;
8952
8953  f=fopen("conftestval", "w");
8954  if (!f) exit(1);
8955
8956  /* set value to the largest magnitude negative prime that it
8957     will hold: */
8958#if 16 == 8
8959  prime = -127;
8960#elif 16 == 16
8961  prime = -32749;
8962#elif 16 == 32
8963  prime = -2147483647;
8964#elif 16 == 64
8965  /* this is a crafty way of constructing -9223372036854775783,
8966     which is 0x8000000000000000 - 0x19, without having to know
8967     any compiler suffix for 64-bit literals: */
8968  prime = 1;
8969  prime <<= (16 - 2);
8970  prime = -prime;
8971  prime *= 2;
8972  prime -= 0x19;
8973#else
8974#error "need another prime"
8975#endif
8976
8977  /* all right shifts from a single bit up to SHIFTMAX_INT16_T
8978     must be arithmetic, otherwise shifts aren't arithmetic: */
8979  for (shift = 1;
8980       shift <= SHIFTMAX_INT16_T;
8981       shift++) {
8982    shifted = prime >> shift;
8983    dividend = prime;
8984    divides = 0;
8985    do {
8986      dividend &= ~((_type) 1); /* guarantee no remainder */
8987      dividend /= 2;
8988    } while (++divides < shift);
8989    if (shifted != dividend) {
8990      break;
8991    }
8992  }
8993
8994  fprintf(f, "%d\n", (shift > SHIFTMAX_INT16_T ? 1 : 0));
8995  exit(0);
8996}
8997_ACEOF
8998rm -f conftest$ac_exeext
8999if { (ac_try="$ac_link"
9000case "(($ac_try" in
9001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002  *) ac_try_echo=$ac_try;;
9003esac
9004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005  (eval "$ac_link") 2>&5
9006  ac_status=$?
9007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9009  { (case "(($ac_try" in
9010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011  *) ac_try_echo=$ac_try;;
9012esac
9013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014  (eval "$ac_try") 2>&5
9015  ac_status=$?
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); }; }; then
9018  ac_cv_shiftsigned_int16_t=`cat conftestval`
9019else
9020  echo "$as_me: program exited with status $ac_status" >&5
9021echo "$as_me: failed program was:" >&5
9022sed 's/^/| /' conftest.$ac_ext >&5
9023
9024( exit $ac_status )
9025ac_cv_shiftsigned_int16_t=0
9026fi
9027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9028fi
9029
9030
9031fi
9032if test $ac_cv_shiftsigned_int16_t = 1; then
9033  { echo "$as_me:$LINENO: result: yes" >&5
9034echo "${ECHO_T}yes" >&6; }
9035
9036cat >>confdefs.h <<_ACEOF
9037#define SHIFTSIGNED_INT16_T
9038_ACEOF
9039
9040else
9041  { echo "$as_me:$LINENO: result: no" >&5
9042echo "${ECHO_T}no" >&6; }
9043fi
9044
9045{ echo "$as_me:$LINENO: checking for arithmetic right shifts of int32_t" >&5
9046echo $ECHO_N "checking for arithmetic right shifts of int32_t... $ECHO_C" >&6; }
9047if test "${ac_cv_shiftsigned_int32_t+set}" = set; then
9048  echo $ECHO_N "(cached) $ECHO_C" >&6
9049else
9050  if test "$cross_compiling" = yes; then
9051  ac_cv_shiftsigned_int32_t=0
9052else
9053  cat >conftest.$ac_ext <<_ACEOF
9054/* confdefs.h.  */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h.  */
9059#include <stdio.h>
9060#include <sys/types.h>
9061main()
9062{
9063#if 8 == 32
9064#define _type signed char
9065#elif (SIZEOF_SHORT * 8) == 32
9066#define _type signed short
9067#elif (SIZEOF_INT * 8) == 32
9068#define _type signed int
9069#elif (SIZEOF_LONG * 8) == 32
9070#define _type signed long
9071#endif
9072  _type prime, shifted, dividend;
9073  unsigned int shift, divides;
9074  FILE *f;
9075
9076  f=fopen("conftestval", "w");
9077  if (!f) exit(1);
9078
9079  /* set value to the largest magnitude negative prime that it
9080     will hold: */
9081#if 32 == 8
9082  prime = -127;
9083#elif 32 == 16
9084  prime = -32749;
9085#elif 32 == 32
9086  prime = -2147483647;
9087#elif 32 == 64
9088  /* this is a crafty way of constructing -9223372036854775783,
9089     which is 0x8000000000000000 - 0x19, without having to know
9090     any compiler suffix for 64-bit literals: */
9091  prime = 1;
9092  prime <<= (32 - 2);
9093  prime = -prime;
9094  prime *= 2;
9095  prime -= 0x19;
9096#else
9097#error "need another prime"
9098#endif
9099
9100  /* all right shifts from a single bit up to SHIFTMAX_INT32_T
9101     must be arithmetic, otherwise shifts aren't arithmetic: */
9102  for (shift = 1;
9103       shift <= SHIFTMAX_INT32_T;
9104       shift++) {
9105    shifted = prime >> shift;
9106    dividend = prime;
9107    divides = 0;
9108    do {
9109      dividend &= ~((_type) 1); /* guarantee no remainder */
9110      dividend /= 2;
9111    } while (++divides < shift);
9112    if (shifted != dividend) {
9113      break;
9114    }
9115  }
9116
9117  fprintf(f, "%d\n", (shift > SHIFTMAX_INT32_T ? 1 : 0));
9118  exit(0);
9119}
9120_ACEOF
9121rm -f 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>&5
9129  ac_status=$?
9130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9132  { (case "(($ac_try" in
9133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134  *) ac_try_echo=$ac_try;;
9135esac
9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137  (eval "$ac_try") 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; }; then
9141  ac_cv_shiftsigned_int32_t=`cat conftestval`
9142else
9143  echo "$as_me: program exited with status $ac_status" >&5
9144echo "$as_me: failed program was:" >&5
9145sed 's/^/| /' conftest.$ac_ext >&5
9146
9147( exit $ac_status )
9148ac_cv_shiftsigned_int32_t=0
9149fi
9150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9151fi
9152
9153
9154fi
9155if test $ac_cv_shiftsigned_int32_t = 1; then
9156  { echo "$as_me:$LINENO: result: yes" >&5
9157echo "${ECHO_T}yes" >&6; }
9158
9159cat >>confdefs.h <<_ACEOF
9160#define SHIFTSIGNED_INT32_T
9161_ACEOF
9162
9163else
9164  { echo "$as_me:$LINENO: result: no" >&5
9165echo "${ECHO_T}no" >&6; }
9166fi
9167
9168{ echo "$as_me:$LINENO: checking the floating point format of float" >&5
9169echo $ECHO_N "checking the floating point format of float... $ECHO_C" >&6; }
9170if test "${ac_cv_float_format_float+set}" = set; then
9171  echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
9173  if test "$cross_compiling" = yes; then
9174  ac_cv_float_format_float=NATIVE
9175else
9176  cat >conftest.$ac_ext <<_ACEOF
9177/* confdefs.h.  */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h.  */
9182#include <stdio.h>
9183#include <sys/types.h>
9184main()
9185{
9186  float value;
9187  unsigned short value_buffer[16];
9188#ifdef WORDS_BIGENDIAN
9189#define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
9190#else
9191#define UINT16_PART(v, i) (value_buffer[(i)])
9192#endif
9193
9194  FILE *f=fopen("conftestval", "w");
9195  if (!f) exit(1);
9196
9197  /* see if this type is IEEE754 single precision: */
9198  value = 3.4793309169e-05;
9199  memcpy(value_buffer, &value, sizeof(value));
9200  if (sizeof(value) == 4
9201      && UINT16_PART(value, 1) == 0x3811
9202      && UINT16_PART(value, 0) == 0xef08) {
9203    fprintf(f, "IEEE754_SINGLE\n");
9204    exit (0);
9205  }
9206
9207  /* see if this type is IEEE754 double precision: */
9208  value = 7.91534994289814532176e-04;
9209  memcpy(value_buffer, &value, sizeof(value));
9210  if (sizeof(value) == 8
9211      && UINT16_PART(value, 3) == 0x3f49
9212      && UINT16_PART(value, 2) == 0xefe0
9213      && UINT16_PART(value, 1) == 0x7501
9214      && UINT16_PART(value, 0) == 0xb288) {
9215    fprintf(f, "IEEE754_DOUBLE\n");
9216    exit (0);
9217  }
9218
9219  /* see if this type might be IEEE754 extended 80-bit precision: */
9220  value = 1.1356523406294143949491931077970765006170e+04;
9221  memcpy(value_buffer, &value, sizeof(value));
9222  if (sizeof(value) >= 12
9223      && UINT16_PART(value, 0) == 0x7800
9224      && UINT16_PART(value, 1) == 0xd1cf
9225      && UINT16_PART(value, 2) == 0x17f7
9226      && UINT16_PART(value, 3) == 0xb172) {
9227
9228    /* check for i387-style IEEE754 extended precision: */
9229    if (sizeof(value) == 12
9230	&& UINT16_PART(value, 4) == 0x400c) {
9231      fprintf(f, "IEEE754_EXTENDED80_I387\n");
9232      exit (0);
9233    }
9234
9235    /* check for m68881-style IEEE754 extended precision: */
9236    if (sizeof(value) == 12
9237	&& UINT16_PART(value, 5) == 0x400c) {
9238      fprintf(f, "IEEE754_EXTENDED80_M68881\n");
9239      exit (0);
9240    }
9241  }
9242
9243  /* otherwise, this is some native type: */
9244  fprintf(f, "NATIVE\n");
9245  exit (0);
9246}
9247_ACEOF
9248rm -f conftest$ac_exeext
9249if { (ac_try="$ac_link"
9250case "(($ac_try" in
9251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252  *) ac_try_echo=$ac_try;;
9253esac
9254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255  (eval "$ac_link") 2>&5
9256  ac_status=$?
9257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9259  { (case "(($ac_try" in
9260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261  *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264  (eval "$ac_try") 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }; }; then
9268  ac_cv_float_format_float=`cat conftestval`
9269else
9270  echo "$as_me: program exited with status $ac_status" >&5
9271echo "$as_me: failed program was:" >&5
9272sed 's/^/| /' conftest.$ac_ext >&5
9273
9274( exit $ac_status )
9275ac_cv_float_format_float=NATIVE
9276fi
9277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9278fi
9279
9280
9281fi
9282{ echo "$as_me:$LINENO: result: $ac_cv_float_format_float" >&5
9283echo "${ECHO_T}$ac_cv_float_format_float" >&6; }
9284if test $ac_cv_float_format_float != NATIVE; then
9285
9286cat >>confdefs.h <<_ACEOF
9287#define FLOAT_FORMAT_FLOAT $ac_cv_float_format_float
9288_ACEOF
9289
9290fi
9291
9292{ echo "$as_me:$LINENO: checking the limits of float" >&5
9293echo $ECHO_N "checking the limits of float... $ECHO_C" >&6; }
9294if test "${ac_cv_float_limits_float+set}" = set; then
9295  echo $ECHO_N "(cached) $ECHO_C" >&6
9296else
9297  for limits in FLT_MAX/FLT_MIN; do
9298  max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9299  min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9300  cat >conftest.$ac_ext <<_ACEOF
9301/* confdefs.h.  */
9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
9305/* end confdefs.h.  */
9306#include <sys/types.h>
9307#ifdef HAVE_FLOAT_H
9308#include <float.h>
9309#endif
9310#ifdef HAVE_LIMITS_H
9311#include <limits.h>
9312#endif
9313int
9314main ()
9315{
9316 float x; x = $max - $min;
9317  ;
9318  return 0;
9319}
9320_ACEOF
9321rm -f conftest.$ac_objext
9322if { (ac_try="$ac_compile"
9323case "(($ac_try" in
9324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325  *) ac_try_echo=$ac_try;;
9326esac
9327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328  (eval "$ac_compile") 2>conftest.er1
9329  ac_status=$?
9330  grep -v '^ *+' conftest.er1 >conftest.err
9331  rm -f conftest.er1
9332  cat conftest.err >&5
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); } && {
9335	 test -z "$ac_c_werror_flag" ||
9336	 test ! -s conftest.err
9337       } && test -s conftest.$ac_objext; then
9338  ac_cv_float_limits_float=$limits ; break
9339else
9340  echo "$as_me: failed program was:" >&5
9341sed 's/^/| /' conftest.$ac_ext >&5
9342
9343	ac_cv_float_limits_float=
9344fi
9345
9346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347done
9348fi
9349
9350if test "x$ac_cv_float_limits_float" = x; then
9351  { { echo "$as_me:$LINENO: error: can't determine the limits of float" >&5
9352echo "$as_me: error: can't determine the limits of float" >&2;}
9353   { (exit 1); exit 1; }; }
9354fi
9355{ echo "$as_me:$LINENO: result: $ac_cv_float_limits_float" >&5
9356echo "${ECHO_T}$ac_cv_float_limits_float" >&6; }
9357max=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9358min=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9359
9360cat >>confdefs.h <<_ACEOF
9361#define FLOAT_MAX_FLOAT ($max)
9362_ACEOF
9363
9364
9365cat >>confdefs.h <<_ACEOF
9366#define FLOAT_MIN_FLOAT ($min)
9367_ACEOF
9368
9369
9370{ echo "$as_me:$LINENO: checking the floating point format of double" >&5
9371echo $ECHO_N "checking the floating point format of double... $ECHO_C" >&6; }
9372if test "${ac_cv_float_format_double+set}" = set; then
9373  echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375  if test "$cross_compiling" = yes; then
9376  ac_cv_float_format_double=NATIVE
9377else
9378  cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h.  */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h.  */
9384#include <stdio.h>
9385#include <sys/types.h>
9386main()
9387{
9388  double value;
9389  unsigned short value_buffer[16];
9390#ifdef WORDS_BIGENDIAN
9391#define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
9392#else
9393#define UINT16_PART(v, i) (value_buffer[(i)])
9394#endif
9395
9396  FILE *f=fopen("conftestval", "w");
9397  if (!f) exit(1);
9398
9399  /* see if this type is IEEE754 single precision: */
9400  value = 3.4793309169e-05;
9401  memcpy(value_buffer, &value, sizeof(value));
9402  if (sizeof(value) == 4
9403      && UINT16_PART(value, 1) == 0x3811
9404      && UINT16_PART(value, 0) == 0xef08) {
9405    fprintf(f, "IEEE754_SINGLE\n");
9406    exit (0);
9407  }
9408
9409  /* see if this type is IEEE754 double precision: */
9410  value = 7.91534994289814532176e-04;
9411  memcpy(value_buffer, &value, sizeof(value));
9412  if (sizeof(value) == 8
9413      && UINT16_PART(value, 3) == 0x3f49
9414      && UINT16_PART(value, 2) == 0xefe0
9415      && UINT16_PART(value, 1) == 0x7501
9416      && UINT16_PART(value, 0) == 0xb288) {
9417    fprintf(f, "IEEE754_DOUBLE\n");
9418    exit (0);
9419  }
9420
9421  /* see if this type might be IEEE754 extended 80-bit precision: */
9422  value = 1.1356523406294143949491931077970765006170e+04;
9423  memcpy(value_buffer, &value, sizeof(value));
9424  if (sizeof(value) >= 12
9425      && UINT16_PART(value, 0) == 0x7800
9426      && UINT16_PART(value, 1) == 0xd1cf
9427      && UINT16_PART(value, 2) == 0x17f7
9428      && UINT16_PART(value, 3) == 0xb172) {
9429
9430    /* check for i387-style IEEE754 extended precision: */
9431    if (sizeof(value) == 12
9432	&& UINT16_PART(value, 4) == 0x400c) {
9433      fprintf(f, "IEEE754_EXTENDED80_I387\n");
9434      exit (0);
9435    }
9436
9437    /* check for m68881-style IEEE754 extended precision: */
9438    if (sizeof(value) == 12
9439	&& UINT16_PART(value, 5) == 0x400c) {
9440      fprintf(f, "IEEE754_EXTENDED80_M68881\n");
9441      exit (0);
9442    }
9443  }
9444
9445  /* otherwise, this is some native type: */
9446  fprintf(f, "NATIVE\n");
9447  exit (0);
9448}
9449_ACEOF
9450rm -f conftest$ac_exeext
9451if { (ac_try="$ac_link"
9452case "(($ac_try" in
9453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454  *) ac_try_echo=$ac_try;;
9455esac
9456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457  (eval "$ac_link") 2>&5
9458  ac_status=$?
9459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9461  { (case "(($ac_try" in
9462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463  *) ac_try_echo=$ac_try;;
9464esac
9465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466  (eval "$ac_try") 2>&5
9467  ac_status=$?
9468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); }; }; then
9470  ac_cv_float_format_double=`cat conftestval`
9471else
9472  echo "$as_me: program exited with status $ac_status" >&5
9473echo "$as_me: failed program was:" >&5
9474sed 's/^/| /' conftest.$ac_ext >&5
9475
9476( exit $ac_status )
9477ac_cv_float_format_double=NATIVE
9478fi
9479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9480fi
9481
9482
9483fi
9484{ echo "$as_me:$LINENO: result: $ac_cv_float_format_double" >&5
9485echo "${ECHO_T}$ac_cv_float_format_double" >&6; }
9486if test $ac_cv_float_format_double != NATIVE; then
9487
9488cat >>confdefs.h <<_ACEOF
9489#define FLOAT_FORMAT_DOUBLE $ac_cv_float_format_double
9490_ACEOF
9491
9492fi
9493
9494{ echo "$as_me:$LINENO: checking the limits of double" >&5
9495echo $ECHO_N "checking the limits of double... $ECHO_C" >&6; }
9496if test "${ac_cv_float_limits_double+set}" = set; then
9497  echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499  for limits in DBL_MAX/DBL_MIN; do
9500  max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9501  min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9502  cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h.  */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h.  */
9508#include <sys/types.h>
9509#ifdef HAVE_FLOAT_H
9510#include <float.h>
9511#endif
9512#ifdef HAVE_LIMITS_H
9513#include <limits.h>
9514#endif
9515int
9516main ()
9517{
9518 double x; x = $max - $min;
9519  ;
9520  return 0;
9521}
9522_ACEOF
9523rm -f conftest.$ac_objext
9524if { (ac_try="$ac_compile"
9525case "(($ac_try" in
9526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527  *) ac_try_echo=$ac_try;;
9528esac
9529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530  (eval "$ac_compile") 2>conftest.er1
9531  ac_status=$?
9532  grep -v '^ *+' conftest.er1 >conftest.err
9533  rm -f conftest.er1
9534  cat conftest.err >&5
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); } && {
9537	 test -z "$ac_c_werror_flag" ||
9538	 test ! -s conftest.err
9539       } && test -s conftest.$ac_objext; then
9540  ac_cv_float_limits_double=$limits ; break
9541else
9542  echo "$as_me: failed program was:" >&5
9543sed 's/^/| /' conftest.$ac_ext >&5
9544
9545	ac_cv_float_limits_double=
9546fi
9547
9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549done
9550fi
9551
9552if test "x$ac_cv_float_limits_double" = x; then
9553  { { echo "$as_me:$LINENO: error: can't determine the limits of double" >&5
9554echo "$as_me: error: can't determine the limits of double" >&2;}
9555   { (exit 1); exit 1; }; }
9556fi
9557{ echo "$as_me:$LINENO: result: $ac_cv_float_limits_double" >&5
9558echo "${ECHO_T}$ac_cv_float_limits_double" >&6; }
9559max=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9560min=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9561
9562cat >>confdefs.h <<_ACEOF
9563#define FLOAT_MAX_DOUBLE ($max)
9564_ACEOF
9565
9566
9567cat >>confdefs.h <<_ACEOF
9568#define FLOAT_MIN_DOUBLE ($min)
9569_ACEOF
9570
9571
9572if test $ac_cv_c_long_double = yes; then
9573  { echo "$as_me:$LINENO: checking the floating point format of long double" >&5
9574echo $ECHO_N "checking the floating point format of long double... $ECHO_C" >&6; }
9575if test "${ac_cv_float_format_long_double+set}" = set; then
9576  echo $ECHO_N "(cached) $ECHO_C" >&6
9577else
9578  if test "$cross_compiling" = yes; then
9579  ac_cv_float_format_long_double=NATIVE
9580else
9581  cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h.  */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h.  */
9587#include <stdio.h>
9588#include <sys/types.h>
9589main()
9590{
9591  long double value;
9592  unsigned short value_buffer[16];
9593#ifdef WORDS_BIGENDIAN
9594#define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
9595#else
9596#define UINT16_PART(v, i) (value_buffer[(i)])
9597#endif
9598
9599  FILE *f=fopen("conftestval", "w");
9600  if (!f) exit(1);
9601
9602  /* see if this type is IEEE754 single precision: */
9603  value = 3.4793309169e-05;
9604  memcpy(value_buffer, &value, sizeof(value));
9605  if (sizeof(value) == 4
9606      && UINT16_PART(value, 1) == 0x3811
9607      && UINT16_PART(value, 0) == 0xef08) {
9608    fprintf(f, "IEEE754_SINGLE\n");
9609    exit (0);
9610  }
9611
9612  /* see if this type is IEEE754 double precision: */
9613  value = 7.91534994289814532176e-04;
9614  memcpy(value_buffer, &value, sizeof(value));
9615  if (sizeof(value) == 8
9616      && UINT16_PART(value, 3) == 0x3f49
9617      && UINT16_PART(value, 2) == 0xefe0
9618      && UINT16_PART(value, 1) == 0x7501
9619      && UINT16_PART(value, 0) == 0xb288) {
9620    fprintf(f, "IEEE754_DOUBLE\n");
9621    exit (0);
9622  }
9623
9624  /* see if this type might be IEEE754 extended 80-bit precision: */
9625  value = 1.1356523406294143949491931077970765006170e+04;
9626  memcpy(value_buffer, &value, sizeof(value));
9627  if (sizeof(value) >= 12
9628      && UINT16_PART(value, 0) == 0x7800
9629      && UINT16_PART(value, 1) == 0xd1cf
9630      && UINT16_PART(value, 2) == 0x17f7
9631      && UINT16_PART(value, 3) == 0xb172) {
9632
9633    /* check for i387-style IEEE754 extended precision: */
9634    if (sizeof(value) == 12
9635	&& UINT16_PART(value, 4) == 0x400c) {
9636      fprintf(f, "IEEE754_EXTENDED80_I387\n");
9637      exit (0);
9638    }
9639
9640    /* check for m68881-style IEEE754 extended precision: */
9641    if (sizeof(value) == 12
9642	&& UINT16_PART(value, 5) == 0x400c) {
9643      fprintf(f, "IEEE754_EXTENDED80_M68881\n");
9644      exit (0);
9645    }
9646  }
9647
9648  /* otherwise, this is some native type: */
9649  fprintf(f, "NATIVE\n");
9650  exit (0);
9651}
9652_ACEOF
9653rm -f conftest$ac_exeext
9654if { (ac_try="$ac_link"
9655case "(($ac_try" in
9656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657  *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660  (eval "$ac_link") 2>&5
9661  ac_status=$?
9662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9664  { (case "(($ac_try" in
9665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666  *) ac_try_echo=$ac_try;;
9667esac
9668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669  (eval "$ac_try") 2>&5
9670  ac_status=$?
9671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672  (exit $ac_status); }; }; then
9673  ac_cv_float_format_long_double=`cat conftestval`
9674else
9675  echo "$as_me: program exited with status $ac_status" >&5
9676echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
9679( exit $ac_status )
9680ac_cv_float_format_long_double=NATIVE
9681fi
9682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9683fi
9684
9685
9686fi
9687{ echo "$as_me:$LINENO: result: $ac_cv_float_format_long_double" >&5
9688echo "${ECHO_T}$ac_cv_float_format_long_double" >&6; }
9689if test $ac_cv_float_format_long_double != NATIVE; then
9690
9691cat >>confdefs.h <<_ACEOF
9692#define FLOAT_FORMAT_LONG_DOUBLE $ac_cv_float_format_long_double
9693_ACEOF
9694
9695fi
9696
9697  { echo "$as_me:$LINENO: checking the limits of long double" >&5
9698echo $ECHO_N "checking the limits of long double... $ECHO_C" >&6; }
9699if test "${ac_cv_float_limits_long_double+set}" = set; then
9700  echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702  for limits in LDBL_MAX/LDBL_MIN; do
9703  max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9704  min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9705  cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h.  */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h.  */
9711#include <sys/types.h>
9712#ifdef HAVE_FLOAT_H
9713#include <float.h>
9714#endif
9715#ifdef HAVE_LIMITS_H
9716#include <limits.h>
9717#endif
9718int
9719main ()
9720{
9721 long double x; x = $max - $min;
9722  ;
9723  return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext
9727if { (ac_try="$ac_compile"
9728case "(($ac_try" in
9729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730  *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733  (eval "$ac_compile") 2>conftest.er1
9734  ac_status=$?
9735  grep -v '^ *+' conftest.er1 >conftest.err
9736  rm -f conftest.er1
9737  cat conftest.err >&5
9738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739  (exit $ac_status); } && {
9740	 test -z "$ac_c_werror_flag" ||
9741	 test ! -s conftest.err
9742       } && test -s conftest.$ac_objext; then
9743  ac_cv_float_limits_long_double=$limits ; break
9744else
9745  echo "$as_me: failed program was:" >&5
9746sed 's/^/| /' conftest.$ac_ext >&5
9747
9748	ac_cv_float_limits_long_double=
9749fi
9750
9751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752done
9753fi
9754
9755if test "x$ac_cv_float_limits_long_double" = x; then
9756  { { echo "$as_me:$LINENO: error: can't determine the limits of long double" >&5
9757echo "$as_me: error: can't determine the limits of long double" >&2;}
9758   { (exit 1); exit 1; }; }
9759fi
9760{ echo "$as_me:$LINENO: result: $ac_cv_float_limits_long_double" >&5
9761echo "${ECHO_T}$ac_cv_float_limits_long_double" >&6; }
9762max=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
9763min=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
9764
9765cat >>confdefs.h <<_ACEOF
9766#define FLOAT_MAX_LONG_DOUBLE ($max)
9767_ACEOF
9768
9769
9770cat >>confdefs.h <<_ACEOF
9771#define FLOAT_MIN_LONG_DOUBLE ($min)
9772_ACEOF
9773
9774
9775fi
9776{ echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
9777echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
9778if test "${ac_cv_sys_sockaddr_sa_len+set}" = set; then
9779  echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781  cat >conftest.$ac_ext <<_ACEOF
9782/* confdefs.h.  */
9783_ACEOF
9784cat confdefs.h >>conftest.$ac_ext
9785cat >>conftest.$ac_ext <<_ACEOF
9786/* end confdefs.h.  */
9787
9788#include <sys/types.h>
9789#include <sys/socket.h>
9790
9791int
9792main ()
9793{
9794
9795int length;
9796struct sockaddr sock;
9797length = sock.sa_len;
9798
9799  ;
9800  return 0;
9801}
9802_ACEOF
9803rm -f conftest.$ac_objext
9804if { (ac_try="$ac_compile"
9805case "(($ac_try" in
9806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807  *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810  (eval "$ac_compile") 2>conftest.er1
9811  ac_status=$?
9812  grep -v '^ *+' conftest.er1 >conftest.err
9813  rm -f conftest.er1
9814  cat conftest.err >&5
9815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816  (exit $ac_status); } && {
9817	 test -z "$ac_c_werror_flag" ||
9818	 test ! -s conftest.err
9819       } && test -s conftest.$ac_objext; then
9820  ac_cv_sys_sockaddr_sa_len=yes
9821else
9822  echo "$as_me: failed program was:" >&5
9823sed 's/^/| /' conftest.$ac_ext >&5
9824
9825	ac_cv_sys_sockaddr_sa_len=no
9826fi
9827
9828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829fi
9830if test $ac_cv_sys_sockaddr_sa_len = yes; then
9831  { echo "$as_me:$LINENO: result: yes" >&5
9832echo "${ECHO_T}yes" >&6; }
9833
9834cat >>confdefs.h <<_ACEOF
9835#define HAVE_SOCKADDR_SA_LEN
9836_ACEOF
9837
9838else
9839  { echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6; }
9841fi
9842
9843
9844if test $ac_cv_c_compiler_gnu = yes; then
9845    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9846echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
9847if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9848  echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850    ac_pattern="Autoconf.*'x'"
9851  cat >conftest.$ac_ext <<_ACEOF
9852/* confdefs.h.  */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
9856/* end confdefs.h.  */
9857#include <sgtty.h>
9858Autoconf TIOCGETP
9859_ACEOF
9860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861  $EGREP "$ac_pattern" >/dev/null 2>&1; then
9862  ac_cv_prog_gcc_traditional=yes
9863else
9864  ac_cv_prog_gcc_traditional=no
9865fi
9866rm -f conftest*
9867
9868
9869  if test $ac_cv_prog_gcc_traditional = no; then
9870    cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876#include <termio.h>
9877Autoconf TCGETA
9878_ACEOF
9879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880  $EGREP "$ac_pattern" >/dev/null 2>&1; then
9881  ac_cv_prog_gcc_traditional=yes
9882fi
9883rm -f conftest*
9884
9885  fi
9886fi
9887{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9888echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
9889  if test $ac_cv_prog_gcc_traditional = yes; then
9890    CC="$CC -traditional"
9891  fi
9892fi
9893
9894{ echo "$as_me:$LINENO: checking for working memcmp" >&5
9895echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9896if test "${ac_cv_func_memcmp_working+set}" = set; then
9897  echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899  if test "$cross_compiling" = yes; then
9900  ac_cv_func_memcmp_working=no
9901else
9902  cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h.  */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h.  */
9908$ac_includes_default
9909int
9910main ()
9911{
9912
9913  /* Some versions of memcmp are not 8-bit clean.  */
9914  char c0 = '\100', c1 = '\200', c2 = '\201';
9915  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9916    return 1;
9917
9918  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9919     or more and with at least one buffer not starting on a 4-byte boundary.
9920     William Lewis provided this test program.   */
9921  {
9922    char foo[21];
9923    char bar[21];
9924    int i;
9925    for (i = 0; i < 4; i++)
9926      {
9927	char *a = foo + i;
9928	char *b = bar + i;
9929	strcpy (a, "--------01111111");
9930	strcpy (b, "--------10000000");
9931	if (memcmp (a, b, 16) >= 0)
9932	  return 1;
9933      }
9934    return 0;
9935  }
9936
9937  ;
9938  return 0;
9939}
9940_ACEOF
9941rm -f conftest$ac_exeext
9942if { (ac_try="$ac_link"
9943case "(($ac_try" in
9944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945  *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948  (eval "$ac_link") 2>&5
9949  ac_status=$?
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9952  { (case "(($ac_try" in
9953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954  *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957  (eval "$ac_try") 2>&5
9958  ac_status=$?
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); }; }; then
9961  ac_cv_func_memcmp_working=yes
9962else
9963  echo "$as_me: program exited with status $ac_status" >&5
9964echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967( exit $ac_status )
9968ac_cv_func_memcmp_working=no
9969fi
9970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9971fi
9972
9973
9974fi
9975{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9976echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
9977test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9978  *" memcmp.$ac_objext "* ) ;;
9979  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9980 ;;
9981esac
9982
9983
9984
9985
9986for ac_header in stdlib.h unistd.h
9987do
9988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9990  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9993  echo $ECHO_N "(cached) $ECHO_C" >&6
9994fi
9995ac_res=`eval echo '${'$as_ac_Header'}'`
9996	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9997echo "${ECHO_T}$ac_res" >&6; }
9998else
9999  # Is the header compilable?
10000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10002cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h.  */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h.  */
10008$ac_includes_default
10009#include <$ac_header>
10010_ACEOF
10011rm -f conftest.$ac_objext
10012if { (ac_try="$ac_compile"
10013case "(($ac_try" in
10014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015  *) ac_try_echo=$ac_try;;
10016esac
10017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018  (eval "$ac_compile") 2>conftest.er1
10019  ac_status=$?
10020  grep -v '^ *+' conftest.er1 >conftest.err
10021  rm -f conftest.er1
10022  cat conftest.err >&5
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); } && {
10025	 test -z "$ac_c_werror_flag" ||
10026	 test ! -s conftest.err
10027       } && test -s conftest.$ac_objext; then
10028  ac_header_compiler=yes
10029else
10030  echo "$as_me: failed program was:" >&5
10031sed 's/^/| /' conftest.$ac_ext >&5
10032
10033	ac_header_compiler=no
10034fi
10035
10036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10038echo "${ECHO_T}$ac_header_compiler" >&6; }
10039
10040# Is the header present?
10041{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10043cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h.  */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h.  */
10049#include <$ac_header>
10050_ACEOF
10051if { (ac_try="$ac_cpp conftest.$ac_ext"
10052case "(($ac_try" in
10053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054  *) ac_try_echo=$ac_try;;
10055esac
10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10058  ac_status=$?
10059  grep -v '^ *+' conftest.er1 >conftest.err
10060  rm -f conftest.er1
10061  cat conftest.err >&5
10062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063  (exit $ac_status); } >/dev/null && {
10064	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10065	 test ! -s conftest.err
10066       }; then
10067  ac_header_preproc=yes
10068else
10069  echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072  ac_header_preproc=no
10073fi
10074
10075rm -f conftest.err conftest.$ac_ext
10076{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10077echo "${ECHO_T}$ac_header_preproc" >&6; }
10078
10079# So?  What about this header?
10080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10081  yes:no: )
10082    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10084    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10086    ac_header_preproc=yes
10087    ;;
10088  no:yes:* )
10089    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10091    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10092echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10093    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10095    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10096echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10097    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10099    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10101
10102    ;;
10103esac
10104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107  echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109  eval "$as_ac_Header=\$ac_header_preproc"
10110fi
10111ac_res=`eval echo '${'$as_ac_Header'}'`
10112	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10113echo "${ECHO_T}$ac_res" >&6; }
10114
10115fi
10116if test `eval echo '${'$as_ac_Header'}'` = yes; then
10117  cat >>confdefs.h <<_ACEOF
10118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10119_ACEOF
10120
10121fi
10122
10123done
10124
10125
10126for ac_func in getpagesize
10127do
10128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10129{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10132  echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134  cat >conftest.$ac_ext <<_ACEOF
10135/* confdefs.h.  */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h.  */
10140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10141   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10142#define $ac_func innocuous_$ac_func
10143
10144/* System header to define __stub macros and hopefully few prototypes,
10145    which can conflict with char $ac_func (); below.
10146    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147    <limits.h> exists even on freestanding compilers.  */
10148
10149#ifdef __STDC__
10150# include <limits.h>
10151#else
10152# include <assert.h>
10153#endif
10154
10155#undef $ac_func
10156
10157/* Override any GCC internal prototype to avoid an error.
10158   Use char because int might match the return type of a GCC
10159   builtin and then its argument prototype would still apply.  */
10160#ifdef __cplusplus
10161extern "C"
10162#endif
10163char $ac_func ();
10164/* The GNU C library defines this for functions which it implements
10165    to always fail with ENOSYS.  Some functions are actually named
10166    something starting with __ and the normal name is an alias.  */
10167#if defined __stub_$ac_func || defined __stub___$ac_func
10168choke me
10169#endif
10170
10171int
10172main ()
10173{
10174return $ac_func ();
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
10180if { (ac_try="$ac_link"
10181case "(($ac_try" in
10182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183  *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186  (eval "$ac_link") 2>conftest.er1
10187  ac_status=$?
10188  grep -v '^ *+' conftest.er1 >conftest.err
10189  rm -f conftest.er1
10190  cat conftest.err >&5
10191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192  (exit $ac_status); } && {
10193	 test -z "$ac_c_werror_flag" ||
10194	 test ! -s conftest.err
10195       } && test -s conftest$ac_exeext &&
10196       $as_test_x conftest$ac_exeext; then
10197  eval "$as_ac_var=yes"
10198else
10199  echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202	eval "$as_ac_var=no"
10203fi
10204
10205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10206      conftest$ac_exeext conftest.$ac_ext
10207fi
10208ac_res=`eval echo '${'$as_ac_var'}'`
10209	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10210echo "${ECHO_T}$ac_res" >&6; }
10211if test `eval echo '${'$as_ac_var'}'` = yes; then
10212  cat >>confdefs.h <<_ACEOF
10213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10214_ACEOF
10215
10216fi
10217done
10218
10219{ echo "$as_me:$LINENO: checking for working mmap" >&5
10220echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10221if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10222  echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224  if test "$cross_compiling" = yes; then
10225  ac_cv_func_mmap_fixed_mapped=no
10226else
10227  cat >conftest.$ac_ext <<_ACEOF
10228/* confdefs.h.  */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
10232/* end confdefs.h.  */
10233$ac_includes_default
10234/* malloc might have been renamed as rpl_malloc. */
10235#undef malloc
10236
10237/* Thanks to Mike Haertel and Jim Avera for this test.
10238   Here is a matrix of mmap possibilities:
10239	mmap private not fixed
10240	mmap private fixed at somewhere currently unmapped
10241	mmap private fixed at somewhere already mapped
10242	mmap shared not fixed
10243	mmap shared fixed at somewhere currently unmapped
10244	mmap shared fixed at somewhere already mapped
10245   For private mappings, we should verify that changes cannot be read()
10246   back from the file, nor mmap's back from the file at a different
10247   address.  (There have been systems where private was not correctly
10248   implemented like the infamous i386 svr4.0, and systems where the
10249   VM page cache was not coherent with the file system buffer cache
10250   like early versions of FreeBSD and possibly contemporary NetBSD.)
10251   For shared mappings, we should conversely verify that changes get
10252   propagated back to all the places they're supposed to be.
10253
10254   Grep wants private fixed already mapped.
10255   The main things grep needs to know about mmap are:
10256   * does it exist and is it safe to write into the mmap'd area
10257   * how to use it (BSD variants)  */
10258
10259#include <fcntl.h>
10260#include <sys/mman.h>
10261
10262#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10263char *malloc ();
10264#endif
10265
10266/* This mess was copied from the GNU getpagesize.h.  */
10267#ifndef HAVE_GETPAGESIZE
10268/* Assume that all systems that can run configure have sys/param.h.  */
10269# ifndef HAVE_SYS_PARAM_H
10270#  define HAVE_SYS_PARAM_H 1
10271# endif
10272
10273# ifdef _SC_PAGESIZE
10274#  define getpagesize() sysconf(_SC_PAGESIZE)
10275# else /* no _SC_PAGESIZE */
10276#  ifdef HAVE_SYS_PARAM_H
10277#   include <sys/param.h>
10278#   ifdef EXEC_PAGESIZE
10279#    define getpagesize() EXEC_PAGESIZE
10280#   else /* no EXEC_PAGESIZE */
10281#    ifdef NBPG
10282#     define getpagesize() NBPG * CLSIZE
10283#     ifndef CLSIZE
10284#      define CLSIZE 1
10285#     endif /* no CLSIZE */
10286#    else /* no NBPG */
10287#     ifdef NBPC
10288#      define getpagesize() NBPC
10289#     else /* no NBPC */
10290#      ifdef PAGESIZE
10291#       define getpagesize() PAGESIZE
10292#      endif /* PAGESIZE */
10293#     endif /* no NBPC */
10294#    endif /* no NBPG */
10295#   endif /* no EXEC_PAGESIZE */
10296#  else /* no HAVE_SYS_PARAM_H */
10297#   define getpagesize() 8192	/* punt totally */
10298#  endif /* no HAVE_SYS_PARAM_H */
10299# endif /* no _SC_PAGESIZE */
10300
10301#endif /* no HAVE_GETPAGESIZE */
10302
10303int
10304main ()
10305{
10306  char *data, *data2, *data3;
10307  int i, pagesize;
10308  int fd;
10309
10310  pagesize = getpagesize ();
10311
10312  /* First, make a file with some known garbage in it. */
10313  data = (char *) malloc (pagesize);
10314  if (!data)
10315    return 1;
10316  for (i = 0; i < pagesize; ++i)
10317    *(data + i) = rand ();
10318  umask (0);
10319  fd = creat ("conftest.mmap", 0600);
10320  if (fd < 0)
10321    return 1;
10322  if (write (fd, data, pagesize) != pagesize)
10323    return 1;
10324  close (fd);
10325
10326  /* Next, try to mmap the file at a fixed address which already has
10327     something else allocated at it.  If we can, also make sure that
10328     we see the same garbage.  */
10329  fd = open ("conftest.mmap", O_RDWR);
10330  if (fd < 0)
10331    return 1;
10332  data2 = (char *) malloc (2 * pagesize);
10333  if (!data2)
10334    return 1;
10335  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10336  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10337		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
10338    return 1;
10339  for (i = 0; i < pagesize; ++i)
10340    if (*(data + i) != *(data2 + i))
10341      return 1;
10342
10343  /* Finally, make sure that changes to the mapped area do not
10344     percolate back to the file as seen by read().  (This is a bug on
10345     some variants of i386 svr4.0.)  */
10346  for (i = 0; i < pagesize; ++i)
10347    *(data2 + i) = *(data2 + i) + 1;
10348  data3 = (char *) malloc (pagesize);
10349  if (!data3)
10350    return 1;
10351  if (read (fd, data3, pagesize) != pagesize)
10352    return 1;
10353  for (i = 0; i < pagesize; ++i)
10354    if (*(data + i) != *(data3 + i))
10355      return 1;
10356  close (fd);
10357  return 0;
10358}
10359_ACEOF
10360rm -f conftest$ac_exeext
10361if { (ac_try="$ac_link"
10362case "(($ac_try" in
10363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364  *) ac_try_echo=$ac_try;;
10365esac
10366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367  (eval "$ac_link") 2>&5
10368  ac_status=$?
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10371  { (case "(($ac_try" in
10372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373  *) ac_try_echo=$ac_try;;
10374esac
10375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376  (eval "$ac_try") 2>&5
10377  ac_status=$?
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); }; }; then
10380  ac_cv_func_mmap_fixed_mapped=yes
10381else
10382  echo "$as_me: program exited with status $ac_status" >&5
10383echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386( exit $ac_status )
10387ac_cv_func_mmap_fixed_mapped=no
10388fi
10389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10390fi
10391
10392
10393fi
10394{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10395echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10396if test $ac_cv_func_mmap_fixed_mapped = yes; then
10397
10398cat >>confdefs.h <<\_ACEOF
10399#define HAVE_MMAP 1
10400_ACEOF
10401
10402fi
10403rm -f conftest.mmap
10404
10405{ echo "$as_me:$LINENO: checking for bswap16" >&5
10406echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; }
10407if test "${ac_cv_have_bswap16+set}" = set; then
10408  echo $ECHO_N "(cached) $ECHO_C" >&6
10409else
10410  ac_func_long_LIBS=$LIBS
10411LIBS="${LIBS-} "
10412cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h.  */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h.  */
10418
10419
10420#ifdef HAVE_SYS_BSWAP_H
10421#include <sys/bswap.h>
10422#endif
10423
10424
10425int
10426main ()
10427{
10428
10429
10430  unsigned int x;
10431
10432  x = bswap16(0x1122);
10433
10434
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439rm -f conftest.$ac_objext conftest$ac_exeext
10440if { (ac_try="$ac_link"
10441case "(($ac_try" in
10442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443  *) ac_try_echo=$ac_try;;
10444esac
10445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446  (eval "$ac_link") 2>conftest.er1
10447  ac_status=$?
10448  grep -v '^ *+' conftest.er1 >conftest.err
10449  rm -f conftest.er1
10450  cat conftest.err >&5
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); } && {
10453	 test -z "$ac_c_werror_flag" ||
10454	 test ! -s conftest.err
10455       } && test -s conftest$ac_exeext &&
10456       $as_test_x conftest$ac_exeext; then
10457  ac_cv_have_bswap16=yes
10458else
10459  echo "$as_me: failed program was:" >&5
10460sed 's/^/| /' conftest.$ac_ext >&5
10461
10462	ac_cv_have_bswap16=no
10463fi
10464
10465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10466      conftest$ac_exeext conftest.$ac_ext
10467LIBS=$ac_func_long_LIBS
10468fi
10469{ echo "$as_me:$LINENO: result: $ac_cv_have_bswap16" >&5
10470echo "${ECHO_T}$ac_cv_have_bswap16" >&6; }
10471if test $ac_cv_have_bswap16 = yes; then
10472
10473cat >>confdefs.h <<_ACEOF
10474#define HAVE_BSWAP16
10475_ACEOF
10476
10477fi
10478
10479{ echo "$as_me:$LINENO: checking for bswap32" >&5
10480echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; }
10481if test "${ac_cv_have_bswap32+set}" = set; then
10482  echo $ECHO_N "(cached) $ECHO_C" >&6
10483else
10484  ac_func_long_LIBS=$LIBS
10485LIBS="${LIBS-} "
10486cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h.  */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h.  */
10492
10493
10494#ifdef HAVE_SYS_BSWAP_H
10495#include <sys/bswap.h>
10496#endif
10497
10498
10499int
10500main ()
10501{
10502
10503
10504  unsigned int x;
10505
10506  x = bswap32(0x11223344);
10507
10508
10509  ;
10510  return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext conftest$ac_exeext
10514if { (ac_try="$ac_link"
10515case "(($ac_try" in
10516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517  *) ac_try_echo=$ac_try;;
10518esac
10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520  (eval "$ac_link") 2>conftest.er1
10521  ac_status=$?
10522  grep -v '^ *+' conftest.er1 >conftest.err
10523  rm -f conftest.er1
10524  cat conftest.err >&5
10525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526  (exit $ac_status); } && {
10527	 test -z "$ac_c_werror_flag" ||
10528	 test ! -s conftest.err
10529       } && test -s conftest$ac_exeext &&
10530       $as_test_x conftest$ac_exeext; then
10531  ac_cv_have_bswap32=yes
10532else
10533  echo "$as_me: failed program was:" >&5
10534sed 's/^/| /' conftest.$ac_ext >&5
10535
10536	ac_cv_have_bswap32=no
10537fi
10538
10539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10540      conftest$ac_exeext conftest.$ac_ext
10541LIBS=$ac_func_long_LIBS
10542fi
10543{ echo "$as_me:$LINENO: result: $ac_cv_have_bswap32" >&5
10544echo "${ECHO_T}$ac_cv_have_bswap32" >&6; }
10545if test $ac_cv_have_bswap32 = yes; then
10546
10547cat >>confdefs.h <<_ACEOF
10548#define HAVE_BSWAP32
10549_ACEOF
10550
10551fi
10552
10553if test $ac_cv_sizeof_long = 8; then
10554  { echo "$as_me:$LINENO: checking for bswap64" >&5
10555echo $ECHO_N "checking for bswap64... $ECHO_C" >&6; }
10556if test "${ac_cv_have_bswap64+set}" = set; then
10557  echo $ECHO_N "(cached) $ECHO_C" >&6
10558else
10559  ac_func_long_LIBS=$LIBS
10560LIBS="${LIBS-} "
10561cat >conftest.$ac_ext <<_ACEOF
10562/* confdefs.h.  */
10563_ACEOF
10564cat confdefs.h >>conftest.$ac_ext
10565cat >>conftest.$ac_ext <<_ACEOF
10566/* end confdefs.h.  */
10567
10568
10569#ifdef HAVE_SYS_BSWAP_H
10570#include <sys/bswap.h>
10571#endif
10572
10573
10574int
10575main ()
10576{
10577
10578
10579  unsigned long x;
10580
10581  x = bswap64(0x11223344);
10582
10583
10584  ;
10585  return 0;
10586}
10587_ACEOF
10588rm -f conftest.$ac_objext conftest$ac_exeext
10589if { (ac_try="$ac_link"
10590case "(($ac_try" in
10591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592  *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595  (eval "$ac_link") 2>conftest.er1
10596  ac_status=$?
10597  grep -v '^ *+' conftest.er1 >conftest.err
10598  rm -f conftest.er1
10599  cat conftest.err >&5
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); } && {
10602	 test -z "$ac_c_werror_flag" ||
10603	 test ! -s conftest.err
10604       } && test -s conftest$ac_exeext &&
10605       $as_test_x conftest$ac_exeext; then
10606  ac_cv_have_bswap64=yes
10607else
10608  echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611	ac_cv_have_bswap64=no
10612fi
10613
10614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10615      conftest$ac_exeext conftest.$ac_ext
10616LIBS=$ac_func_long_LIBS
10617fi
10618{ echo "$as_me:$LINENO: result: $ac_cv_have_bswap64" >&5
10619echo "${ECHO_T}$ac_cv_have_bswap64" >&6; }
10620if test $ac_cv_have_bswap64 = yes; then
10621
10622cat >>confdefs.h <<_ACEOF
10623#define HAVE_BSWAP64
10624_ACEOF
10625
10626fi
10627
10628fi
10629{ echo "$as_me:$LINENO: checking for isinff" >&5
10630echo $ECHO_N "checking for isinff... $ECHO_C" >&6; }
10631if test "${ac_cv_have_isinff+set}" = set; then
10632  echo $ECHO_N "(cached) $ECHO_C" >&6
10633else
10634  ac_func_long_LIBS=$LIBS
10635LIBS="${LIBS-} -lm"
10636cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h.  */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h.  */
10642
10643
10644#include <math.h>
10645
10646
10647int
10648main ()
10649{
10650
10651
10652  float x;
10653  int y;
10654
10655  x = 1;
10656  y = isinff(x);
10657
10658
10659  ;
10660  return 0;
10661}
10662_ACEOF
10663rm -f conftest.$ac_objext conftest$ac_exeext
10664if { (ac_try="$ac_link"
10665case "(($ac_try" in
10666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667  *) ac_try_echo=$ac_try;;
10668esac
10669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670  (eval "$ac_link") 2>conftest.er1
10671  ac_status=$?
10672  grep -v '^ *+' conftest.er1 >conftest.err
10673  rm -f conftest.er1
10674  cat conftest.err >&5
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); } && {
10677	 test -z "$ac_c_werror_flag" ||
10678	 test ! -s conftest.err
10679       } && test -s conftest$ac_exeext &&
10680       $as_test_x conftest$ac_exeext; then
10681  ac_cv_have_isinff=yes
10682else
10683  echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
10686	ac_cv_have_isinff=no
10687fi
10688
10689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690      conftest$ac_exeext conftest.$ac_ext
10691LIBS=$ac_func_long_LIBS
10692fi
10693{ echo "$as_me:$LINENO: result: $ac_cv_have_isinff" >&5
10694echo "${ECHO_T}$ac_cv_have_isinff" >&6; }
10695if test $ac_cv_have_isinff = yes; then
10696
10697cat >>confdefs.h <<_ACEOF
10698#define HAVE_ISINFF
10699_ACEOF
10700
10701fi
10702
10703
10704for ac_prog in perl4.036 perl4 perl perl5
10705do
10706  # Extract the first word of "$ac_prog", so it can be a program name with args.
10707set dummy $ac_prog; ac_word=$2
10708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10710if test "${ac_cv_path_PERL+set}" = set; then
10711  echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713  case $PERL in
10714  [\\/]* | ?:[\\/]*)
10715  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10716  ;;
10717  *)
10718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721  IFS=$as_save_IFS
10722  test -z "$as_dir" && as_dir=.
10723  for ac_exec_ext in '' $ac_executable_extensions; do
10724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727    break 2
10728  fi
10729done
10730done
10731IFS=$as_save_IFS
10732
10733  ;;
10734esac
10735fi
10736PERL=$ac_cv_path_PERL
10737if test -n "$PERL"; then
10738  { echo "$as_me:$LINENO: result: $PERL" >&5
10739echo "${ECHO_T}$PERL" >&6; }
10740else
10741  { echo "$as_me:$LINENO: result: no" >&5
10742echo "${ECHO_T}no" >&6; }
10743fi
10744
10745
10746  test -n "$PERL" && break
10747done
10748test -n "$PERL" || PERL="no"
10749
10750
10751
10752TME_HOSTS="posix"
10753
10754{ echo "$as_me:$LINENO: checking for AF_LINK support" >&5
10755echo $ECHO_N "checking for AF_LINK support... $ECHO_C" >&6; }
10756cat >conftest.$ac_ext <<_ACEOF
10757/* confdefs.h.  */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h.  */
10762
10763#include <sys/socket.h>
10764#ifdef AF_LINK
10765_tme_has_af_link
10766#endif
10767
10768_ACEOF
10769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10770  $EGREP "_tme_has_af_link" >/dev/null 2>&1; then
10771
10772{ echo "$as_me:$LINENO: result: yes" >&5
10773echo "${ECHO_T}yes" >&6; }
10774
10775cat >>confdefs.h <<\_ACEOF
10776#define HAVE_AF_LINK
10777_ACEOF
10778
10779
10780else
10781
10782{ echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6; }
10784
10785fi
10786rm -f conftest*
10787
10788
10789tme_raw_type=
10790if test "${ac_cv_header_net_bpf_h+set}" = set; then
10791  { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
10792echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
10793if test "${ac_cv_header_net_bpf_h+set}" = set; then
10794  echo $ECHO_N "(cached) $ECHO_C" >&6
10795fi
10796{ echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
10797echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
10798else
10799  # Is the header compilable?
10800{ echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
10801echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808$ac_includes_default
10809#include <net/bpf.h>
10810_ACEOF
10811rm -f conftest.$ac_objext
10812if { (ac_try="$ac_compile"
10813case "(($ac_try" in
10814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815  *) ac_try_echo=$ac_try;;
10816esac
10817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818  (eval "$ac_compile") 2>conftest.er1
10819  ac_status=$?
10820  grep -v '^ *+' conftest.er1 >conftest.err
10821  rm -f conftest.er1
10822  cat conftest.err >&5
10823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824  (exit $ac_status); } && {
10825	 test -z "$ac_c_werror_flag" ||
10826	 test ! -s conftest.err
10827       } && test -s conftest.$ac_objext; then
10828  ac_header_compiler=yes
10829else
10830  echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833	ac_header_compiler=no
10834fi
10835
10836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838echo "${ECHO_T}$ac_header_compiler" >&6; }
10839
10840# Is the header present?
10841{ echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
10842echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h.  */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h.  */
10849#include <net/bpf.h>
10850_ACEOF
10851if { (ac_try="$ac_cpp conftest.$ac_ext"
10852case "(($ac_try" in
10853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854  *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10858  ac_status=$?
10859  grep -v '^ *+' conftest.er1 >conftest.err
10860  rm -f conftest.er1
10861  cat conftest.err >&5
10862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863  (exit $ac_status); } >/dev/null && {
10864	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10865	 test ! -s conftest.err
10866       }; then
10867  ac_header_preproc=yes
10868else
10869  echo "$as_me: failed program was:" >&5
10870sed 's/^/| /' conftest.$ac_ext >&5
10871
10872  ac_header_preproc=no
10873fi
10874
10875rm -f conftest.err conftest.$ac_ext
10876{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877echo "${ECHO_T}$ac_header_preproc" >&6; }
10878
10879# So?  What about this header?
10880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10881  yes:no: )
10882    { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10883echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884    { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
10885echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
10886    ac_header_preproc=yes
10887    ;;
10888  no:yes:* )
10889    { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
10890echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
10891    { echo "$as_me:$LINENO: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&5
10892echo "$as_me: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&2;}
10893    { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
10894echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
10895    { echo "$as_me:$LINENO: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&5
10896echo "$as_me: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10897    { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
10898echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
10899    { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
10900echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
10901
10902    ;;
10903esac
10904{ echo "$as_me:$LINENO: checking for net/bpf.h" >&5
10905echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
10906if test "${ac_cv_header_net_bpf_h+set}" = set; then
10907  echo $ECHO_N "(cached) $ECHO_C" >&6
10908else
10909  ac_cv_header_net_bpf_h=$ac_header_preproc
10910fi
10911{ echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
10912echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
10913
10914fi
10915if test $ac_cv_header_net_bpf_h = yes; then
10916  cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h.  */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h.  */
10922#include <net/bpf.h>
10923#ifdef BIOCSHDRCMPLT
10924found_BIOCSHDRCMPLT
10925#endif
10926
10927_ACEOF
10928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10929  $EGREP "found_BIOCSHDRCMPLT" >/dev/null 2>&1; then
10930  tme_raw_type=bpf
10931fi
10932rm -f conftest*
10933
10934fi
10935
10936
10937{ echo "$as_me:$LINENO: checking for raw Ethernet access method" >&5
10938echo $ECHO_N "checking for raw Ethernet access method... $ECHO_C" >&6; }
10939case "x$tme_raw_type" in
10940xbpf) TME_HOSTS="${TME_HOSTS} bsd" ;;
10941x) tme_raw_type=none ;;
10942esac
10943{ echo "$as_me:$LINENO: result: $tme_raw_type" >&5
10944echo "${ECHO_T}$tme_raw_type" >&6; }
10945
10946{ echo "$as_me:$LINENO: checking for X" >&5
10947echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10948
10949
10950# Check whether --with-x was given.
10951if test "${with_x+set}" = set; then
10952  withval=$with_x;
10953fi
10954
10955# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10956if test "x$with_x" = xno; then
10957  # The user explicitly disabled X.
10958  have_x=disabled
10959else
10960  case $x_includes,$x_libraries in #(
10961    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10962echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10963   { (exit 1); exit 1; }; };; #(
10964    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10965  echo $ECHO_N "(cached) $ECHO_C" >&6
10966else
10967  # One or both of the vars are not set, and there is no cached value.
10968ac_x_includes=no ac_x_libraries=no
10969rm -f -r conftest.dir
10970if mkdir conftest.dir; then
10971  cd conftest.dir
10972  cat >Imakefile <<'_ACEOF'
10973incroot:
10974	@echo incroot='${INCROOT}'
10975usrlibdir:
10976	@echo usrlibdir='${USRLIBDIR}'
10977libdir:
10978	@echo libdir='${LIBDIR}'
10979_ACEOF
10980  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10981    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10982    for ac_var in incroot usrlibdir libdir; do
10983      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10984    done
10985    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10986    for ac_extension in a so sl; do
10987      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10988	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10989	ac_im_usrlibdir=$ac_im_libdir; break
10990      fi
10991    done
10992    # Screen out bogus values from the imake configuration.  They are
10993    # bogus both because they are the default anyway, and because
10994    # using them would break gcc on systems where it needs fixed includes.
10995    case $ac_im_incroot in
10996	/usr/include) ac_x_includes= ;;
10997	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10998    esac
10999    case $ac_im_usrlibdir in
11000	/usr/lib | /lib) ;;
11001	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11002    esac
11003  fi
11004  cd ..
11005  rm -f -r conftest.dir
11006fi
11007
11008# Standard set of common directories for X headers.
11009# Check X11 before X11Rn because it is often a symlink to the current release.
11010ac_x_header_dirs='
11011/usr/X11/include
11012/usr/X11R6/include
11013/usr/X11R5/include
11014/usr/X11R4/include
11015
11016/usr/include/X11
11017/usr/include/X11R6
11018/usr/include/X11R5
11019/usr/include/X11R4
11020
11021/usr/local/X11/include
11022/usr/local/X11R6/include
11023/usr/local/X11R5/include
11024/usr/local/X11R4/include
11025
11026/usr/local/include/X11
11027/usr/local/include/X11R6
11028/usr/local/include/X11R5
11029/usr/local/include/X11R4
11030
11031/usr/X386/include
11032/usr/x386/include
11033/usr/XFree86/include/X11
11034
11035/usr/include
11036/usr/local/include
11037/usr/unsupported/include
11038/usr/athena/include
11039/usr/local/x11r5/include
11040/usr/lpp/Xamples/include
11041
11042/usr/openwin/include
11043/usr/openwin/share/include'
11044
11045if test "$ac_x_includes" = no; then
11046  # Guess where to find include files, by looking for Xlib.h.
11047  # First, try using that file with no special directory specified.
11048  cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h.  */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h.  */
11054#include <X11/Xlib.h>
11055_ACEOF
11056if { (ac_try="$ac_cpp conftest.$ac_ext"
11057case "(($ac_try" in
11058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059  *) ac_try_echo=$ac_try;;
11060esac
11061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11063  ac_status=$?
11064  grep -v '^ *+' conftest.er1 >conftest.err
11065  rm -f conftest.er1
11066  cat conftest.err >&5
11067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068  (exit $ac_status); } >/dev/null && {
11069	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11070	 test ! -s conftest.err
11071       }; then
11072  # We can compile using X headers with no special include directory.
11073ac_x_includes=
11074else
11075  echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078  for ac_dir in $ac_x_header_dirs; do
11079  if test -r "$ac_dir/X11/Xlib.h"; then
11080    ac_x_includes=$ac_dir
11081    break
11082  fi
11083done
11084fi
11085
11086rm -f conftest.err conftest.$ac_ext
11087fi # $ac_x_includes = no
11088
11089if test "$ac_x_libraries" = no; then
11090  # Check for the libraries.
11091  # See if we find them without any special options.
11092  # Don't add to $LIBS permanently.
11093  ac_save_LIBS=$LIBS
11094  LIBS="-lX11 $LIBS"
11095  cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h.  */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h.  */
11101#include <X11/Xlib.h>
11102int
11103main ()
11104{
11105XrmInitialize ()
11106  ;
11107  return 0;
11108}
11109_ACEOF
11110rm -f conftest.$ac_objext conftest$ac_exeext
11111if { (ac_try="$ac_link"
11112case "(($ac_try" in
11113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114  *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117  (eval "$ac_link") 2>conftest.er1
11118  ac_status=$?
11119  grep -v '^ *+' conftest.er1 >conftest.err
11120  rm -f conftest.er1
11121  cat conftest.err >&5
11122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123  (exit $ac_status); } && {
11124	 test -z "$ac_c_werror_flag" ||
11125	 test ! -s conftest.err
11126       } && test -s conftest$ac_exeext &&
11127       $as_test_x conftest$ac_exeext; then
11128  LIBS=$ac_save_LIBS
11129# We can link X programs with no special library path.
11130ac_x_libraries=
11131else
11132  echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135	LIBS=$ac_save_LIBS
11136for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11137do
11138  # Don't even attempt the hair of trying to link an X program!
11139  for ac_extension in a so sl; do
11140    if test -r "$ac_dir/libX11.$ac_extension"; then
11141      ac_x_libraries=$ac_dir
11142      break 2
11143    fi
11144  done
11145done
11146fi
11147
11148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11149      conftest$ac_exeext conftest.$ac_ext
11150fi # $ac_x_libraries = no
11151
11152case $ac_x_includes,$ac_x_libraries in #(
11153  no,* | *,no | *\'*)
11154    # Didn't find X, or a directory has "'" in its name.
11155    ac_cv_have_x="have_x=no";; #(
11156  *)
11157    # Record where we found X for the cache.
11158    ac_cv_have_x="have_x=yes\
11159	ac_x_includes='$ac_x_includes'\
11160	ac_x_libraries='$ac_x_libraries'"
11161esac
11162fi
11163;; #(
11164    *) have_x=yes;;
11165  esac
11166  eval "$ac_cv_have_x"
11167fi # $with_x != no
11168
11169if test "$have_x" != yes; then
11170  { echo "$as_me:$LINENO: result: $have_x" >&5
11171echo "${ECHO_T}$have_x" >&6; }
11172  no_x=yes
11173else
11174  # If each of the values was on the command line, it overrides each guess.
11175  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11176  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11177  # Update the cache value to reflect the command line values.
11178  ac_cv_have_x="have_x=yes\
11179	ac_x_includes='$x_includes'\
11180	ac_x_libraries='$x_libraries'"
11181  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11182echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11183fi
11184
11185if test "$no_x" = yes; then
11186  # Not all programs may use this symbol, but it does not hurt to define it.
11187
11188cat >>confdefs.h <<\_ACEOF
11189#define X_DISPLAY_MISSING 1
11190_ACEOF
11191
11192  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11193else
11194  if test -n "$x_includes"; then
11195    X_CFLAGS="$X_CFLAGS -I$x_includes"
11196  fi
11197
11198  # It would also be nice to do this for all -L options, not just this one.
11199  if test -n "$x_libraries"; then
11200    X_LIBS="$X_LIBS -L$x_libraries"
11201    # For Solaris; some versions of Sun CC require a space after -R and
11202    # others require no space.  Words are not sufficient . . . .
11203    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11204echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
11205    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11206    ac_xsave_c_werror_flag=$ac_c_werror_flag
11207    ac_c_werror_flag=yes
11208    cat >conftest.$ac_ext <<_ACEOF
11209/* confdefs.h.  */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h.  */
11214
11215int
11216main ()
11217{
11218
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223rm -f conftest.$ac_objext conftest$ac_exeext
11224if { (ac_try="$ac_link"
11225case "(($ac_try" in
11226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227  *) ac_try_echo=$ac_try;;
11228esac
11229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230  (eval "$ac_link") 2>conftest.er1
11231  ac_status=$?
11232  grep -v '^ *+' conftest.er1 >conftest.err
11233  rm -f conftest.er1
11234  cat conftest.err >&5
11235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236  (exit $ac_status); } && {
11237	 test -z "$ac_c_werror_flag" ||
11238	 test ! -s conftest.err
11239       } && test -s conftest$ac_exeext &&
11240       $as_test_x conftest$ac_exeext; then
11241  { echo "$as_me:$LINENO: result: no" >&5
11242echo "${ECHO_T}no" >&6; }
11243       X_LIBS="$X_LIBS -R$x_libraries"
11244else
11245  echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248	LIBS="$ac_xsave_LIBS -R $x_libraries"
11249       cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h.  */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h.  */
11255
11256int
11257main ()
11258{
11259
11260  ;
11261  return 0;
11262}
11263_ACEOF
11264rm -f conftest.$ac_objext conftest$ac_exeext
11265if { (ac_try="$ac_link"
11266case "(($ac_try" in
11267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268  *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271  (eval "$ac_link") 2>conftest.er1
11272  ac_status=$?
11273  grep -v '^ *+' conftest.er1 >conftest.err
11274  rm -f conftest.er1
11275  cat conftest.err >&5
11276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277  (exit $ac_status); } && {
11278	 test -z "$ac_c_werror_flag" ||
11279	 test ! -s conftest.err
11280       } && test -s conftest$ac_exeext &&
11281       $as_test_x conftest$ac_exeext; then
11282  { echo "$as_me:$LINENO: result: yes" >&5
11283echo "${ECHO_T}yes" >&6; }
11284	  X_LIBS="$X_LIBS -R $x_libraries"
11285else
11286  echo "$as_me: failed program was:" >&5
11287sed 's/^/| /' conftest.$ac_ext >&5
11288
11289	{ echo "$as_me:$LINENO: result: neither works" >&5
11290echo "${ECHO_T}neither works" >&6; }
11291fi
11292
11293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11294      conftest$ac_exeext conftest.$ac_ext
11295fi
11296
11297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298      conftest$ac_exeext conftest.$ac_ext
11299    ac_c_werror_flag=$ac_xsave_c_werror_flag
11300    LIBS=$ac_xsave_LIBS
11301  fi
11302
11303  # Check for system-dependent libraries X programs must link with.
11304  # Do this before checking for the system-independent R6 libraries
11305  # (-lICE), since we may need -lsocket or whatever for X linking.
11306
11307  if test "$ISC" = yes; then
11308    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11309  else
11310    # Martyn Johnson says this is needed for Ultrix, if the X
11311    # libraries were built with DECnet support.  And Karl Berry says
11312    # the Alpha needs dnet_stub (dnet does not exist).
11313    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11314    cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h.  */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h.  */
11320
11321/* Override any GCC internal prototype to avoid an error.
11322   Use char because int might match the return type of a GCC
11323   builtin and then its argument prototype would still apply.  */
11324#ifdef __cplusplus
11325extern "C"
11326#endif
11327char XOpenDisplay ();
11328int
11329main ()
11330{
11331return XOpenDisplay ();
11332  ;
11333  return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext conftest$ac_exeext
11337if { (ac_try="$ac_link"
11338case "(($ac_try" in
11339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340  *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343  (eval "$ac_link") 2>conftest.er1
11344  ac_status=$?
11345  grep -v '^ *+' conftest.er1 >conftest.err
11346  rm -f conftest.er1
11347  cat conftest.err >&5
11348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349  (exit $ac_status); } && {
11350	 test -z "$ac_c_werror_flag" ||
11351	 test ! -s conftest.err
11352       } && test -s conftest$ac_exeext &&
11353       $as_test_x conftest$ac_exeext; then
11354  :
11355else
11356  echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11360echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11361if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11362  echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364  ac_check_lib_save_LIBS=$LIBS
11365LIBS="-ldnet  $LIBS"
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h.  */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h.  */
11372
11373/* Override any GCC internal prototype to avoid an error.
11374   Use char because int might match the return type of a GCC
11375   builtin and then its argument prototype would still apply.  */
11376#ifdef __cplusplus
11377extern "C"
11378#endif
11379char dnet_ntoa ();
11380int
11381main ()
11382{
11383return dnet_ntoa ();
11384  ;
11385  return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext conftest$ac_exeext
11389if { (ac_try="$ac_link"
11390case "(($ac_try" in
11391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392  *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395  (eval "$ac_link") 2>conftest.er1
11396  ac_status=$?
11397  grep -v '^ *+' conftest.er1 >conftest.err
11398  rm -f conftest.er1
11399  cat conftest.err >&5
11400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401  (exit $ac_status); } && {
11402	 test -z "$ac_c_werror_flag" ||
11403	 test ! -s conftest.err
11404       } && test -s conftest$ac_exeext &&
11405       $as_test_x conftest$ac_exeext; then
11406  ac_cv_lib_dnet_dnet_ntoa=yes
11407else
11408  echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
11411	ac_cv_lib_dnet_dnet_ntoa=no
11412fi
11413
11414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11415      conftest$ac_exeext conftest.$ac_ext
11416LIBS=$ac_check_lib_save_LIBS
11417fi
11418{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11419echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11420if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11421  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11422fi
11423
11424    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11425      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11426echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
11427if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11428  echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430  ac_check_lib_save_LIBS=$LIBS
11431LIBS="-ldnet_stub  $LIBS"
11432cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h.  */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h.  */
11438
11439/* Override any GCC internal prototype to avoid an error.
11440   Use char because int might match the return type of a GCC
11441   builtin and then its argument prototype would still apply.  */
11442#ifdef __cplusplus
11443extern "C"
11444#endif
11445char dnet_ntoa ();
11446int
11447main ()
11448{
11449return dnet_ntoa ();
11450  ;
11451  return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458  *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461  (eval "$ac_link") 2>conftest.er1
11462  ac_status=$?
11463  grep -v '^ *+' conftest.er1 >conftest.err
11464  rm -f conftest.er1
11465  cat conftest.err >&5
11466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467  (exit $ac_status); } && {
11468	 test -z "$ac_c_werror_flag" ||
11469	 test ! -s conftest.err
11470       } && test -s conftest$ac_exeext &&
11471       $as_test_x conftest$ac_exeext; then
11472  ac_cv_lib_dnet_stub_dnet_ntoa=yes
11473else
11474  echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477	ac_cv_lib_dnet_stub_dnet_ntoa=no
11478fi
11479
11480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481      conftest$ac_exeext conftest.$ac_ext
11482LIBS=$ac_check_lib_save_LIBS
11483fi
11484{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11485echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
11486if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
11487  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11488fi
11489
11490    fi
11491fi
11492
11493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11494      conftest$ac_exeext conftest.$ac_ext
11495    LIBS="$ac_xsave_LIBS"
11496
11497    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11498    # to get the SysV transport functions.
11499    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11500    # needs -lnsl.
11501    # The nsl library prevents programs from opening the X display
11502    # on Irix 5.2, according to T.E. Dickey.
11503    # The functions gethostbyname, getservbyname, and inet_addr are
11504    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11505    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
11506echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
11507if test "${ac_cv_func_gethostbyname+set}" = set; then
11508  echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510  cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h.  */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h.  */
11516/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11518#define gethostbyname innocuous_gethostbyname
11519
11520/* System header to define __stub macros and hopefully few prototypes,
11521    which can conflict with char gethostbyname (); below.
11522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523    <limits.h> exists even on freestanding compilers.  */
11524
11525#ifdef __STDC__
11526# include <limits.h>
11527#else
11528# include <assert.h>
11529#endif
11530
11531#undef gethostbyname
11532
11533/* Override any GCC internal prototype to avoid an error.
11534   Use char because int might match the return type of a GCC
11535   builtin and then its argument prototype would still apply.  */
11536#ifdef __cplusplus
11537extern "C"
11538#endif
11539char gethostbyname ();
11540/* The GNU C library defines this for functions which it implements
11541    to always fail with ENOSYS.  Some functions are actually named
11542    something starting with __ and the normal name is an alias.  */
11543#if defined __stub_gethostbyname || defined __stub___gethostbyname
11544choke me
11545#endif
11546
11547int
11548main ()
11549{
11550return gethostbyname ();
11551  ;
11552  return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest$ac_exeext
11556if { (ac_try="$ac_link"
11557case "(($ac_try" in
11558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559  *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562  (eval "$ac_link") 2>conftest.er1
11563  ac_status=$?
11564  grep -v '^ *+' conftest.er1 >conftest.err
11565  rm -f conftest.er1
11566  cat conftest.err >&5
11567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568  (exit $ac_status); } && {
11569	 test -z "$ac_c_werror_flag" ||
11570	 test ! -s conftest.err
11571       } && test -s conftest$ac_exeext &&
11572       $as_test_x conftest$ac_exeext; then
11573  ac_cv_func_gethostbyname=yes
11574else
11575  echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578	ac_cv_func_gethostbyname=no
11579fi
11580
11581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11582      conftest$ac_exeext conftest.$ac_ext
11583fi
11584{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11585echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
11586
11587    if test $ac_cv_func_gethostbyname = no; then
11588      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11589echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
11590if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11591  echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593  ac_check_lib_save_LIBS=$LIBS
11594LIBS="-lnsl  $LIBS"
11595cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h.  */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h.  */
11601
11602/* Override any GCC internal prototype to avoid an error.
11603   Use char because int might match the return type of a GCC
11604   builtin and then its argument prototype would still apply.  */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char gethostbyname ();
11609int
11610main ()
11611{
11612return gethostbyname ();
11613  ;
11614  return 0;
11615}
11616_ACEOF
11617rm -f conftest.$ac_objext conftest$ac_exeext
11618if { (ac_try="$ac_link"
11619case "(($ac_try" in
11620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621  *) ac_try_echo=$ac_try;;
11622esac
11623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624  (eval "$ac_link") 2>conftest.er1
11625  ac_status=$?
11626  grep -v '^ *+' conftest.er1 >conftest.err
11627  rm -f conftest.er1
11628  cat conftest.err >&5
11629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630  (exit $ac_status); } && {
11631	 test -z "$ac_c_werror_flag" ||
11632	 test ! -s conftest.err
11633       } && test -s conftest$ac_exeext &&
11634       $as_test_x conftest$ac_exeext; then
11635  ac_cv_lib_nsl_gethostbyname=yes
11636else
11637  echo "$as_me: failed program was:" >&5
11638sed 's/^/| /' conftest.$ac_ext >&5
11639
11640	ac_cv_lib_nsl_gethostbyname=no
11641fi
11642
11643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11644      conftest$ac_exeext conftest.$ac_ext
11645LIBS=$ac_check_lib_save_LIBS
11646fi
11647{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11648echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
11649if test $ac_cv_lib_nsl_gethostbyname = yes; then
11650  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11651fi
11652
11653      if test $ac_cv_lib_nsl_gethostbyname = no; then
11654	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
11655echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
11656if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11657  echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659  ac_check_lib_save_LIBS=$LIBS
11660LIBS="-lbsd  $LIBS"
11661cat >conftest.$ac_ext <<_ACEOF
11662/* confdefs.h.  */
11663_ACEOF
11664cat confdefs.h >>conftest.$ac_ext
11665cat >>conftest.$ac_ext <<_ACEOF
11666/* end confdefs.h.  */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669   Use char because int might match the return type of a GCC
11670   builtin and then its argument prototype would still apply.  */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char gethostbyname ();
11675int
11676main ()
11677{
11678return gethostbyname ();
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext conftest$ac_exeext
11684if { (ac_try="$ac_link"
11685case "(($ac_try" in
11686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687  *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690  (eval "$ac_link") 2>conftest.er1
11691  ac_status=$?
11692  grep -v '^ *+' conftest.er1 >conftest.err
11693  rm -f conftest.er1
11694  cat conftest.err >&5
11695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696  (exit $ac_status); } && {
11697	 test -z "$ac_c_werror_flag" ||
11698	 test ! -s conftest.err
11699       } && test -s conftest$ac_exeext &&
11700       $as_test_x conftest$ac_exeext; then
11701  ac_cv_lib_bsd_gethostbyname=yes
11702else
11703  echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706	ac_cv_lib_bsd_gethostbyname=no
11707fi
11708
11709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11710      conftest$ac_exeext conftest.$ac_ext
11711LIBS=$ac_check_lib_save_LIBS
11712fi
11713{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
11714echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
11715if test $ac_cv_lib_bsd_gethostbyname = yes; then
11716  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11717fi
11718
11719      fi
11720    fi
11721
11722    # lieder@skyler.mavd.honeywell.com says without -lsocket,
11723    # socket/setsockopt and other routines are undefined under SCO ODT
11724    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
11725    # on later versions), says Simon Leinen: it contains gethostby*
11726    # variants that don't use the name server (or something).  -lsocket
11727    # must be given before -lnsl if both are needed.  We assume that
11728    # if connect needs -lnsl, so does gethostbyname.
11729    { echo "$as_me:$LINENO: checking for connect" >&5
11730echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
11731if test "${ac_cv_func_connect+set}" = set; then
11732  echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734  cat >conftest.$ac_ext <<_ACEOF
11735/* confdefs.h.  */
11736_ACEOF
11737cat confdefs.h >>conftest.$ac_ext
11738cat >>conftest.$ac_ext <<_ACEOF
11739/* end confdefs.h.  */
11740/* Define connect to an innocuous variant, in case <limits.h> declares connect.
11741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11742#define connect innocuous_connect
11743
11744/* System header to define __stub macros and hopefully few prototypes,
11745    which can conflict with char connect (); below.
11746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747    <limits.h> exists even on freestanding compilers.  */
11748
11749#ifdef __STDC__
11750# include <limits.h>
11751#else
11752# include <assert.h>
11753#endif
11754
11755#undef connect
11756
11757/* Override any GCC internal prototype to avoid an error.
11758   Use char because int might match the return type of a GCC
11759   builtin and then its argument prototype would still apply.  */
11760#ifdef __cplusplus
11761extern "C"
11762#endif
11763char connect ();
11764/* The GNU C library defines this for functions which it implements
11765    to always fail with ENOSYS.  Some functions are actually named
11766    something starting with __ and the normal name is an alias.  */
11767#if defined __stub_connect || defined __stub___connect
11768choke me
11769#endif
11770
11771int
11772main ()
11773{
11774return connect ();
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext conftest$ac_exeext
11780if { (ac_try="$ac_link"
11781case "(($ac_try" in
11782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783  *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786  (eval "$ac_link") 2>conftest.er1
11787  ac_status=$?
11788  grep -v '^ *+' conftest.er1 >conftest.err
11789  rm -f conftest.er1
11790  cat conftest.err >&5
11791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792  (exit $ac_status); } && {
11793	 test -z "$ac_c_werror_flag" ||
11794	 test ! -s conftest.err
11795       } && test -s conftest$ac_exeext &&
11796       $as_test_x conftest$ac_exeext; then
11797  ac_cv_func_connect=yes
11798else
11799  echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802	ac_cv_func_connect=no
11803fi
11804
11805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11806      conftest$ac_exeext conftest.$ac_ext
11807fi
11808{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11809echo "${ECHO_T}$ac_cv_func_connect" >&6; }
11810
11811    if test $ac_cv_func_connect = no; then
11812      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11813echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
11814if test "${ac_cv_lib_socket_connect+set}" = set; then
11815  echo $ECHO_N "(cached) $ECHO_C" >&6
11816else
11817  ac_check_lib_save_LIBS=$LIBS
11818LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11819cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h.  */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h.  */
11825
11826/* Override any GCC internal prototype to avoid an error.
11827   Use char because int might match the return type of a GCC
11828   builtin and then its argument prototype would still apply.  */
11829#ifdef __cplusplus
11830extern "C"
11831#endif
11832char connect ();
11833int
11834main ()
11835{
11836return connect ();
11837  ;
11838  return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext conftest$ac_exeext
11842if { (ac_try="$ac_link"
11843case "(($ac_try" in
11844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845  *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848  (eval "$ac_link") 2>conftest.er1
11849  ac_status=$?
11850  grep -v '^ *+' conftest.er1 >conftest.err
11851  rm -f conftest.er1
11852  cat conftest.err >&5
11853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854  (exit $ac_status); } && {
11855	 test -z "$ac_c_werror_flag" ||
11856	 test ! -s conftest.err
11857       } && test -s conftest$ac_exeext &&
11858       $as_test_x conftest$ac_exeext; then
11859  ac_cv_lib_socket_connect=yes
11860else
11861  echo "$as_me: failed program was:" >&5
11862sed 's/^/| /' conftest.$ac_ext >&5
11863
11864	ac_cv_lib_socket_connect=no
11865fi
11866
11867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11868      conftest$ac_exeext conftest.$ac_ext
11869LIBS=$ac_check_lib_save_LIBS
11870fi
11871{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11872echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
11873if test $ac_cv_lib_socket_connect = yes; then
11874  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11875fi
11876
11877    fi
11878
11879    # Guillermo Gomez says -lposix is necessary on A/UX.
11880    { echo "$as_me:$LINENO: checking for remove" >&5
11881echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
11882if test "${ac_cv_func_remove+set}" = set; then
11883  echo $ECHO_N "(cached) $ECHO_C" >&6
11884else
11885  cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h.  */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h.  */
11891/* Define remove to an innocuous variant, in case <limits.h> declares remove.
11892   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11893#define remove innocuous_remove
11894
11895/* System header to define __stub macros and hopefully few prototypes,
11896    which can conflict with char remove (); below.
11897    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11898    <limits.h> exists even on freestanding compilers.  */
11899
11900#ifdef __STDC__
11901# include <limits.h>
11902#else
11903# include <assert.h>
11904#endif
11905
11906#undef remove
11907
11908/* Override any GCC internal prototype to avoid an error.
11909   Use char because int might match the return type of a GCC
11910   builtin and then its argument prototype would still apply.  */
11911#ifdef __cplusplus
11912extern "C"
11913#endif
11914char remove ();
11915/* The GNU C library defines this for functions which it implements
11916    to always fail with ENOSYS.  Some functions are actually named
11917    something starting with __ and the normal name is an alias.  */
11918#if defined __stub_remove || defined __stub___remove
11919choke me
11920#endif
11921
11922int
11923main ()
11924{
11925return remove ();
11926  ;
11927  return 0;
11928}
11929_ACEOF
11930rm -f conftest.$ac_objext conftest$ac_exeext
11931if { (ac_try="$ac_link"
11932case "(($ac_try" in
11933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934  *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937  (eval "$ac_link") 2>conftest.er1
11938  ac_status=$?
11939  grep -v '^ *+' conftest.er1 >conftest.err
11940  rm -f conftest.er1
11941  cat conftest.err >&5
11942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943  (exit $ac_status); } && {
11944	 test -z "$ac_c_werror_flag" ||
11945	 test ! -s conftest.err
11946       } && test -s conftest$ac_exeext &&
11947       $as_test_x conftest$ac_exeext; then
11948  ac_cv_func_remove=yes
11949else
11950  echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953	ac_cv_func_remove=no
11954fi
11955
11956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11957      conftest$ac_exeext conftest.$ac_ext
11958fi
11959{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
11960echo "${ECHO_T}$ac_cv_func_remove" >&6; }
11961
11962    if test $ac_cv_func_remove = no; then
11963      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
11964echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
11965if test "${ac_cv_lib_posix_remove+set}" = set; then
11966  echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968  ac_check_lib_save_LIBS=$LIBS
11969LIBS="-lposix  $LIBS"
11970cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h.  */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h.  */
11976
11977/* Override any GCC internal prototype to avoid an error.
11978   Use char because int might match the return type of a GCC
11979   builtin and then its argument prototype would still apply.  */
11980#ifdef __cplusplus
11981extern "C"
11982#endif
11983char remove ();
11984int
11985main ()
11986{
11987return remove ();
11988  ;
11989  return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext conftest$ac_exeext
11993if { (ac_try="$ac_link"
11994case "(($ac_try" in
11995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996  *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999  (eval "$ac_link") 2>conftest.er1
12000  ac_status=$?
12001  grep -v '^ *+' conftest.er1 >conftest.err
12002  rm -f conftest.er1
12003  cat conftest.err >&5
12004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005  (exit $ac_status); } && {
12006	 test -z "$ac_c_werror_flag" ||
12007	 test ! -s conftest.err
12008       } && test -s conftest$ac_exeext &&
12009       $as_test_x conftest$ac_exeext; then
12010  ac_cv_lib_posix_remove=yes
12011else
12012  echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015	ac_cv_lib_posix_remove=no
12016fi
12017
12018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019      conftest$ac_exeext conftest.$ac_ext
12020LIBS=$ac_check_lib_save_LIBS
12021fi
12022{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12023echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
12024if test $ac_cv_lib_posix_remove = yes; then
12025  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12026fi
12027
12028    fi
12029
12030    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12031    { echo "$as_me:$LINENO: checking for shmat" >&5
12032echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
12033if test "${ac_cv_func_shmat+set}" = set; then
12034  echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036  cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h.  */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h.  */
12042/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12044#define shmat innocuous_shmat
12045
12046/* System header to define __stub macros and hopefully few prototypes,
12047    which can conflict with char shmat (); below.
12048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049    <limits.h> exists even on freestanding compilers.  */
12050
12051#ifdef __STDC__
12052# include <limits.h>
12053#else
12054# include <assert.h>
12055#endif
12056
12057#undef shmat
12058
12059/* Override any GCC internal prototype to avoid an error.
12060   Use char because int might match the return type of a GCC
12061   builtin and then its argument prototype would still apply.  */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065char shmat ();
12066/* The GNU C library defines this for functions which it implements
12067    to always fail with ENOSYS.  Some functions are actually named
12068    something starting with __ and the normal name is an alias.  */
12069#if defined __stub_shmat || defined __stub___shmat
12070choke me
12071#endif
12072
12073int
12074main ()
12075{
12076return shmat ();
12077  ;
12078  return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext conftest$ac_exeext
12082if { (ac_try="$ac_link"
12083case "(($ac_try" in
12084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085  *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088  (eval "$ac_link") 2>conftest.er1
12089  ac_status=$?
12090  grep -v '^ *+' conftest.er1 >conftest.err
12091  rm -f conftest.er1
12092  cat conftest.err >&5
12093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094  (exit $ac_status); } && {
12095	 test -z "$ac_c_werror_flag" ||
12096	 test ! -s conftest.err
12097       } && test -s conftest$ac_exeext &&
12098       $as_test_x conftest$ac_exeext; then
12099  ac_cv_func_shmat=yes
12100else
12101  echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104	ac_cv_func_shmat=no
12105fi
12106
12107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108      conftest$ac_exeext conftest.$ac_ext
12109fi
12110{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12111echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
12112
12113    if test $ac_cv_func_shmat = no; then
12114      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12115echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
12116if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12117  echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119  ac_check_lib_save_LIBS=$LIBS
12120LIBS="-lipc  $LIBS"
12121cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h.  */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h.  */
12127
12128/* Override any GCC internal prototype to avoid an error.
12129   Use char because int might match the return type of a GCC
12130   builtin and then its argument prototype would still apply.  */
12131#ifdef __cplusplus
12132extern "C"
12133#endif
12134char shmat ();
12135int
12136main ()
12137{
12138return shmat ();
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143rm -f conftest.$ac_objext conftest$ac_exeext
12144if { (ac_try="$ac_link"
12145case "(($ac_try" in
12146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147  *) ac_try_echo=$ac_try;;
12148esac
12149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150  (eval "$ac_link") 2>conftest.er1
12151  ac_status=$?
12152  grep -v '^ *+' conftest.er1 >conftest.err
12153  rm -f conftest.er1
12154  cat conftest.err >&5
12155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156  (exit $ac_status); } && {
12157	 test -z "$ac_c_werror_flag" ||
12158	 test ! -s conftest.err
12159       } && test -s conftest$ac_exeext &&
12160       $as_test_x conftest$ac_exeext; then
12161  ac_cv_lib_ipc_shmat=yes
12162else
12163  echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166	ac_cv_lib_ipc_shmat=no
12167fi
12168
12169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12170      conftest$ac_exeext conftest.$ac_ext
12171LIBS=$ac_check_lib_save_LIBS
12172fi
12173{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12174echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
12175if test $ac_cv_lib_ipc_shmat = yes; then
12176  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12177fi
12178
12179    fi
12180  fi
12181
12182  # Check for libraries that X11R6 Xt/Xaw programs need.
12183  ac_save_LDFLAGS=$LDFLAGS
12184  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12185  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12186  # check for ICE first), but we must link in the order -lSM -lICE or
12187  # we get undefined symbols.  So assume we have SM if we have ICE.
12188  # These have to be linked with before -lX11, unlike the other
12189  # libraries we check for below, so use a different variable.
12190  # John Interrante, Karl Berry
12191  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12192echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
12193if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12194  echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196  ac_check_lib_save_LIBS=$LIBS
12197LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12198cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h.  */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h.  */
12204
12205/* Override any GCC internal prototype to avoid an error.
12206   Use char because int might match the return type of a GCC
12207   builtin and then its argument prototype would still apply.  */
12208#ifdef __cplusplus
12209extern "C"
12210#endif
12211char IceConnectionNumber ();
12212int
12213main ()
12214{
12215return IceConnectionNumber ();
12216  ;
12217  return 0;
12218}
12219_ACEOF
12220rm -f conftest.$ac_objext conftest$ac_exeext
12221if { (ac_try="$ac_link"
12222case "(($ac_try" in
12223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224  *) ac_try_echo=$ac_try;;
12225esac
12226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227  (eval "$ac_link") 2>conftest.er1
12228  ac_status=$?
12229  grep -v '^ *+' conftest.er1 >conftest.err
12230  rm -f conftest.er1
12231  cat conftest.err >&5
12232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233  (exit $ac_status); } && {
12234	 test -z "$ac_c_werror_flag" ||
12235	 test ! -s conftest.err
12236       } && test -s conftest$ac_exeext &&
12237       $as_test_x conftest$ac_exeext; then
12238  ac_cv_lib_ICE_IceConnectionNumber=yes
12239else
12240  echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243	ac_cv_lib_ICE_IceConnectionNumber=no
12244fi
12245
12246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12247      conftest$ac_exeext conftest.$ac_ext
12248LIBS=$ac_check_lib_save_LIBS
12249fi
12250{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12251echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12252if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12253  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12254fi
12255
12256  LDFLAGS=$ac_save_LDFLAGS
12257
12258fi
12259
12260
12261# Check whether --enable-gtktest was given.
12262if test "${enable_gtktest+set}" = set; then
12263  enableval=$enable_gtktest;
12264else
12265  enable_gtktest=yes
12266fi
12267
12268
12269  pkg_config_args=gtk+-2.0
12270  for module in .
12271  do
12272      case "$module" in
12273         gthread)
12274             pkg_config_args="$pkg_config_args gthread-2.0"
12275         ;;
12276      esac
12277  done
12278
12279  no_gtk=""
12280
12281  # Extract the first word of "pkg-config", so it can be a program name with args.
12282set dummy pkg-config; ac_word=$2
12283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12285if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12286  echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
12288  case $PKG_CONFIG in
12289  [\\/]* | ?:[\\/]*)
12290  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12291  ;;
12292  *)
12293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294for as_dir in $PATH
12295do
12296  IFS=$as_save_IFS
12297  test -z "$as_dir" && as_dir=.
12298  for ac_exec_ext in '' $ac_executable_extensions; do
12299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12302    break 2
12303  fi
12304done
12305done
12306IFS=$as_save_IFS
12307
12308  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12309  ;;
12310esac
12311fi
12312PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12313if test -n "$PKG_CONFIG"; then
12314  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12315echo "${ECHO_T}$PKG_CONFIG" >&6; }
12316else
12317  { echo "$as_me:$LINENO: result: no" >&5
12318echo "${ECHO_T}no" >&6; }
12319fi
12320
12321
12322
12323  if test x$PKG_CONFIG != xno ; then
12324    if pkg-config --atleast-pkgconfig-version 0.7 ; then
12325      :
12326    else
12327      echo "*** pkg-config too old; version 0.7 or better required."
12328      no_gtk=yes
12329      PKG_CONFIG=no
12330    fi
12331  else
12332    no_gtk=yes
12333  fi
12334
12335  min_gtk_version=2.0.0
12336  { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
12337echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
12338
12339  if test x$PKG_CONFIG != xno ; then
12340    ## don't try to run the test against uninstalled libtool libs
12341    if $PKG_CONFIG --uninstalled $pkg_config_args; then
12342	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12343	  enable_gtktest=no
12344    fi
12345
12346    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12347	  :
12348    else
12349	  no_gtk=yes
12350    fi
12351  fi
12352
12353  if test x"$no_gtk" = x ; then
12354    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12355    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12356    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12357           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12358    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12359           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12360    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12361           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12362    if test "x$enable_gtktest" = "xyes" ; then
12363      ac_save_CFLAGS="$CFLAGS"
12364      ac_save_LIBS="$LIBS"
12365      CFLAGS="$CFLAGS $GTK_CFLAGS"
12366      LIBS="$GTK_LIBS $LIBS"
12367      rm -f conf.gtktest
12368      if test "$cross_compiling" = yes; then
12369  echo $ac_n "cross compiling; assumed OK... $ac_c"
12370else
12371  cat >conftest.$ac_ext <<_ACEOF
12372/* confdefs.h.  */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h.  */
12377
12378#include <gtk/gtk.h>
12379#include <stdio.h>
12380#include <stdlib.h>
12381
12382int
12383main ()
12384{
12385  int major, minor, micro;
12386  char *tmp_version;
12387
12388  system ("touch conf.gtktest");
12389
12390  /* HP/UX 9 (%@#!) writes to sscanf strings */
12391  tmp_version = g_strdup("$min_gtk_version");
12392  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12393     printf("%s, bad version string\n", "$min_gtk_version");
12394     exit(1);
12395   }
12396
12397  if ((gtk_major_version != $gtk_config_major_version) ||
12398      (gtk_minor_version != $gtk_config_minor_version) ||
12399      (gtk_micro_version != $gtk_config_micro_version))
12400    {
12401      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12402             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12403             gtk_major_version, gtk_minor_version, gtk_micro_version);
12404      printf ("*** was found! If pkg-config was correct, then it is best\n");
12405      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12406      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12407      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12408      printf("*** required on your system.\n");
12409      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12410      printf("*** to point to the correct configuration files\n");
12411    }
12412  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12413	   (gtk_minor_version != GTK_MINOR_VERSION) ||
12414           (gtk_micro_version != GTK_MICRO_VERSION))
12415    {
12416      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12417	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12418      printf("*** library (version %d.%d.%d)\n",
12419	     gtk_major_version, gtk_minor_version, gtk_micro_version);
12420    }
12421  else
12422    {
12423      if ((gtk_major_version > major) ||
12424        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12425        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12426      {
12427        return 0;
12428       }
12429     else
12430      {
12431        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12432               gtk_major_version, gtk_minor_version, gtk_micro_version);
12433        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12434	       major, minor, micro);
12435        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12436        printf("***\n");
12437        printf("*** If you have already installed a sufficiently new version, this error\n");
12438        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12439        printf("*** being found. The easiest way to fix this is to remove the old version\n");
12440        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12441        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12442        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12443        printf("*** so that the correct libraries are found at run-time))\n");
12444      }
12445    }
12446  return 1;
12447}
12448
12449_ACEOF
12450rm -f conftest$ac_exeext
12451if { (ac_try="$ac_link"
12452case "(($ac_try" in
12453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454  *) ac_try_echo=$ac_try;;
12455esac
12456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457  (eval "$ac_link") 2>&5
12458  ac_status=$?
12459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12461  { (case "(($ac_try" in
12462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463  *) ac_try_echo=$ac_try;;
12464esac
12465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466  (eval "$ac_try") 2>&5
12467  ac_status=$?
12468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469  (exit $ac_status); }; }; then
12470  :
12471else
12472  echo "$as_me: program exited with status $ac_status" >&5
12473echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
12476( exit $ac_status )
12477no_gtk=yes
12478fi
12479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12480fi
12481
12482
12483       CFLAGS="$ac_save_CFLAGS"
12484       LIBS="$ac_save_LIBS"
12485     fi
12486  fi
12487  if test "x$no_gtk" = x ; then
12488     { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
12489echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
12490     have_gtk=true
12491  else
12492     { echo "$as_me:$LINENO: result: no" >&5
12493echo "${ECHO_T}no" >&6; }
12494     if test "$PKG_CONFIG" = "no" ; then
12495       echo "*** A new enough version of pkg-config was not found."
12496       echo "*** See http://pkgconfig.sourceforge.net"
12497     else
12498       if test -f conf.gtktest ; then
12499        :
12500       else
12501          echo "*** Could not run GTK+ test program, checking why..."
12502	  ac_save_CFLAGS="$CFLAGS"
12503	  ac_save_LIBS="$LIBS"
12504          CFLAGS="$CFLAGS $GTK_CFLAGS"
12505          LIBS="$LIBS $GTK_LIBS"
12506          cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h.  */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h.  */
12512
12513#include <gtk/gtk.h>
12514#include <stdio.h>
12515
12516int
12517main ()
12518{
12519 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext conftest$ac_exeext
12525if { (ac_try="$ac_link"
12526case "(($ac_try" in
12527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528  *) ac_try_echo=$ac_try;;
12529esac
12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531  (eval "$ac_link") 2>conftest.er1
12532  ac_status=$?
12533  grep -v '^ *+' conftest.er1 >conftest.err
12534  rm -f conftest.er1
12535  cat conftest.err >&5
12536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537  (exit $ac_status); } && {
12538	 test -z "$ac_c_werror_flag" ||
12539	 test ! -s conftest.err
12540       } && test -s conftest$ac_exeext &&
12541       $as_test_x conftest$ac_exeext; then
12542   echo "*** The test program compiled, but did not run. This usually means"
12543          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12544          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12545          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12546          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12547          echo "*** is required on your system"
12548	  echo "***"
12549          echo "*** If you have an old version installed, it is best to remove it, although"
12550          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12551else
12552  echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555	 echo "*** The test program failed to compile or link. See the file config.log for the"
12556          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12557fi
12558
12559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12560      conftest$ac_exeext conftest.$ac_ext
12561          CFLAGS="$ac_save_CFLAGS"
12562          LIBS="$ac_save_LIBS"
12563       fi
12564     fi
12565     GTK_CFLAGS=""
12566     GTK_LIBS=""
12567     have_gtk=false
12568  fi
12569
12570
12571  rm -f conf.gtktest
12572
12573if $have_gtk; then
12574
12575cat >>confdefs.h <<\_ACEOF
12576#define HAVE_GTK
12577_ACEOF
12578
12579  TME_HOSTS="${TME_HOSTS} gtk"
12580fi
12581
12582TME_FB_XLAT_DST=
12583area_smallest=0
12584area_largest=0
12585
12586# if --with-tme-host-displays is given, characterize those given displays:
12587
12588# Check whether --with-tme-host-displays was given.
12589if test "${with_tme_host_displays+set}" = set; then
12590  withval=$with_tme_host_displays;
12591fi
12592
12593for dst_key in ${with_tme_host_displays}; do
12594
12595
12596   this_width=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
12597  this_height=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
12598      dst_key=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\3/'`
12599  this_area=`expr ${this_width} \* ${this_height}`
12600
12601  if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
12602    area_smallest=${this_area}
12603  fi
12604  if test `expr ${this_area} \> ${area_largest}` = 1; then
12605    area_largest=${this_area}
12606  fi
12607
12608  # add in this destination display key:
12609  if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
12610    TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
12611  fi
12612
12613    done
12614
12615# if DISPLAY is set and xdpyinfo appears to work, characterize this X display:
12616if test "x${DISPLAY}" != x && xdpyinfo >/dev/null 2>&1; then
12617  { echo "$as_me:$LINENO: checking characteristics of X display ${DISPLAY}" >&5
12618echo $ECHO_N "checking characteristics of X display ${DISPLAY}... $ECHO_C" >&6; }
12619
12620
12621  # get the format this display uses for bitmaps:
12622  bitmap_info=`xdpyinfo | grep 'bitmap unit' | sed -e 's/bitmap unit, *bit order, *padding: *\(.*\)$/\1/'`
12623  bitmap_order=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\2/'`
12624    bitmap_pad=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\3/'`
12625  bitmap_order=`echo ${bitmap_order} | tr A-Z a-z`
12626
12627  # get the format this display uses for images at its default depth.  we
12628  # assume that the root window is at the default depth:
12629  pixmap_order=`xdpyinfo | grep 'image byte order'`
12630  pixmap_order=`echo ${pixmap_order} | sed -e 's/.*image byte order: *\([LM]\)SBFirst.*/\1/' | tr A-Z a-z`
12631  pixmap_depth=`xwininfo -root | grep 'Depth:'`
12632  pixmap_depth=`echo ${pixmap_depth} | sed -e 's/.*Depth: *\([0-9][0-9]*\).*/\1/'`
12633  pixmap_infos=`xdpyinfo | grep bits_per_pixel | tr '\n' %`
12634  save_IFS=$IFS
12635  IFS=%
12636  for pixmap_info in $pixmap_infos; do
12637    IFS=$save_IFS
12638    if test "x$pixmap_info" = x; then continue; fi
12639    this_pixmap_depth=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\1/'`
12640     this_pixmap_bipp=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\2/'`
12641      this_pixmap_pad=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\3/'`
12642    if test "x${this_pixmap_depth}" = "x${pixmap_depth}"; then
12643      pixmap_bipp=${this_pixmap_bipp}
12644      pixmap_pad=${this_pixmap_pad}
12645      break
12646    fi
12647  done
12648  IFS=$save_IFS
12649
12650  # if this display's greatest depth is one, we use its
12651  # bitmap format:
12652  if test "x${pixmap_bipp}" = x; then
12653    pixmap_bipp=1
12654    pixmap_pad=${bitmap_pad}
12655
12656    # our translation functions can't handle the case when the bitmap
12657    # bit order is different from the image byte order - doing so
12658    # requires dealing with the bitmap unit size.  since this
12659    # situation is rare, just bail:
12660    if test ${bitmap_order} != ${pixmap_order}; then
12661            { echo "$as_me:$LINENO: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&5
12662echo "$as_me: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&2;}
12663            pixmap_bipp=
12664    fi
12665  fi
12666
12667  # if this display seems usable:
12668  if test "x${pixmap_bipp}" != x; then
12669
12670    # check the dimensions of all screens on this display:
12671    dimensions=`xdpyinfo | grep dimensions | tr '\n' %`
12672    save_IFS=$IFS
12673    IFS=%
12674    for dimension in $dimensions; do
12675      IFS=$save_IFS
12676      if test "x$dimension" = x; then continue; fi
12677       this_width=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\1/'`
12678      this_height=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\2/'`
12679      this_area=`expr ${this_width} \* ${this_height}`
12680      if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
12681        area_smallest=${this_area}
12682      fi
12683      if test `expr ${this_area} \> ${area_largest}` = 1; then
12684        area_largest=${this_area}
12685      fi
12686    done
12687    IFS=$save_IFS
12688
12689    # assume an unknown set of masks and an unknown mapping type:
12690    dst_masks=_r0x0_g0x0_b0x0
12691    dst_map=
12692    value_visual=", unknown visual"
12693
12694    # if the depth is greater than one:
12695    if test "x${pixmap_depth}" != 1; then
12696
12697	# we assume that the root window uses the default visual:
12698	visual=`xwininfo -root | grep 'Visual Class:' | sed -e 's/^  *Visual Class: *\([A-Za-z][A-Za-z]*\).*$/\1/'`
12699
12700	# get any primary masks for this visual:
12701	case "x${visual}" in
12702	xDirectColor | xTrueColor)
12703	    dst_masks=`xdpyinfo | $EGREP '(visual id|class|blue masks):' | $EGREP -C1 $visual | grep 'blue masks' | head -1`
12704	    dst_masks=`echo ${dst_masks} | sed -e 's/^.*blue masks:  *\(.*\)/\1/'`
12705	    value_visual=", rgb masks ${dst_masks}"
12706	    dst_masks=`echo ${dst_masks} | sed -e 's/^/_r/' -e 's/, /_g/' -e 's/, /_b/'`
12707	    ;;
12708	xStaticGray | xGrayScale | xStaticColor | xPseudoColor)
12709	    dst_masks=
12710	    value_visual=", no subfields"
12711	    ;;
12712	*) ;;
12713	esac
12714
12715	# get the mapping type for this visual:
12716	case "x${visual}" in
12717	xStaticGray | xStaticColor | xPseudoColor)
12718	    dst_map="ml"
12719	    ;;
12720	xDirectColor)
12721	    dst_map="mi"
12722	    value_visual="${value_visual}, indexed"
12723	    ;;
12724	xGrayScale | xTrueColor)
12725	    dst_map="ml"
12726	    value_visual="${value_visual}, linear"
12727	    ;;
12728	*) ;;
12729	esac
12730    fi
12731
12732
12733    # finish the characterization:
12734    if test "x${pixmap_bipp}" = "x${pixmap_depth}"; then
12735      value=
12736    else
12737      value=" (${pixmap_bipp} bits per pixel)"
12738    fi
12739    { echo "$as_me:$LINENO: result: ${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&5
12740echo "${ECHO_T}${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&6; }
12741    dst_key="d${pixmap_depth}b${pixmap_bipp}s0p${pixmap_pad}o${pixmap_order}${dst_map}${dst_masks}"
12742
12743    # add in this destination display key:
12744    if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
12745      TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
12746    fi
12747  fi
12748fi
12749
12750
12751systems=all
12752if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then
12753  systems="sun2 sun3 sun4"
12754  if test $ac_cv_sizeof_long = 8 || test "x${GCC}" = "xyes"; then
12755    systems="${systems} sunultra1"
12756  fi
12757fi
12758TME_MACHINE_SUBDIRS=
12759TME_IC_SUBDIRS=
12760TME_ICS=
12761TME_SERIAL_SUBDIRS=
12762TME_SERIALS=
12763TME_BUS_SUBDIRS=
12764TME_FB_XLAT_SRC=
12765bus_size_max=32
12766recode_size_guest_max=0
12767for system in $systems; do
12768
12769    # dispatch on the machine type to get more machines, ICs, and
12770    # buses to compile:
12771    case ${system} in
12772
12773    # the sun2:
12774    sun2)
12775	machines="sun sun2"
12776	ics="m68k am9513 mm58167 z8530 i825x6"
12777	buses="multibus"
12778	fb_xlats="1152x900d1b1s0p32om"
12779	bus_size=32
12780	recode_size_guest=0
12781	;;
12782
12783    # the sun3:
12784    sun3)
12785	machines="sun sun3"
12786	ics="m68k isil7170 z8530 i825x6 ieee754 ncr5380"
12787	buses="multibus"
12788	fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
12789	bus_size=32
12790	recode_size_guest=0
12791	;;
12792
12793    # the sun4:
12794    sun4)
12795	machines="sun sun4"
12796	ics="sparc isil7170 z8530 am7930 am7990 ieee754 ncr53c9x mk48txx lsi64854 nec765"
12797	buses="sbus"
12798	fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
12799	bus_size=32
12800	recode_size_guest=32
12801	;;
12802
12803    # the sun Ultra-1:
12804    sunultra1)
12805	machines="sun sun4u"
12806	ics="sparc stp22xx z8530 am7990 ieee754 ncr53c9x ncr89c105 mk48txx lsi64854 nec765 stp2024 ad184x"
12807	buses="sbus"
12808	fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
12809	bus_size=64
12810	recode_size_guest=64
12811	;;
12812
12813    *)
12814	{ { echo "$as_me:$LINENO: error: don't know how to emulate ${machine}" >&5
12815echo "$as_me: error: don't know how to emulate ${machine}" >&2;}
12816   { (exit 1); exit 1; }; }
12817	;;
12818    esac
12819
12820    # update the maximum bus size:
12821    if test `expr ${bus_size_max} \< ${bus_size}` = 1; then
12822       bus_size_max=$bus_size
12823    fi
12824
12825    # update the maximum recode guest size:
12826    if test `expr ${recode_size_guest_max} \< ${recode_size_guest}` = 1; then
12827       recode_size_guest_max=$recode_size_guest
12828    fi
12829
12830    # add in the new machines, ICs, serials, and buses to compile:
12831    for machine in $machines; do
12832	if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else
12833	    TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}"
12834	fi
12835    done
12836    for ic in $ics; do
12837	if test -d $srcdir/ic/$ic; then
12838	    if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
12839		TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}"
12840	    fi
12841	else
12842	    ic="tme_ic_${ic}.la"
12843	    if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
12844		TME_ICS="${TME_ICS} ${ic}"
12845	    fi
12846	fi
12847    done
12848    for serial in $serials; do
12849	if test -d $srcdir/serial/$serial; then
12850	    if echo " ${TME_SERIAL_SUBDIRS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
12851		TME_SERIAL_SUBDIRS="${TME_SERIAL_SUBDIRS} ${serial}"
12852	    fi
12853	else
12854	    serial="tme_serial_${serial}.la"
12855	    if echo " ${TME_SERIALS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
12856		TME_SERIALS="${TME_SERIALS} ${serial}"
12857	    fi
12858	fi
12859    done
12860    for bus in $buses; do
12861	if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else
12862	    TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}"
12863	fi
12864    done
12865
12866    # add in the new frame buffer translations to compile:
12867    for fb_xlat in $fb_xlats; do
12868 	if echo " ${TME_FB_XLAT_SRC} " | grep " ${fb_xlat} " > /dev/null 2>&1; then :; else
12869	    TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${fb_xlat}"
12870	fi
12871
12872
12873	# calculate the area of this frame buffer multiplied by 100:
12874	 this_width=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
12875	this_height=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
12876	this_area=`expr ${this_width} \* ${this_height} \* 100`
12877
12878
12879	# if this frame buffer would consume at least 70 percent of
12880	# the smallest destination screen, make an xlat function that
12881	# scales this frame buffer down by two:
12882	if test ${area_smallest} = 0; then
12883	    percentage=100
12884	else
12885	    percentage=`expr ${this_area} / ${area_smallest}`
12886	fi
12887	if test `expr ${percentage} \> 70` = 1; then
12888	    src_key="${fb_xlat}_h"
12889	    if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
12890		TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
12891	    fi
12892	fi
12893
12894	# if this frame buffer would consume less than 30 percent of
12895	# the largest destination screen, make an xlat function that
12896	# scales this frame buffer up by two:
12897	if test ${area_largest} = 0; then
12898	    percentage=0
12899	else
12900	    percentage=`expr ${this_area} / ${area_largest}`
12901	fi
12902	if test `expr ${percentage} \< 30` = 1; then
12903	    src_key="${fb_xlat}_d"
12904	    if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
12905		TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
12906	    fi
12907	fi
12908    done
12909done
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920# Check whether --enable-recode was given.
12921if test "${enable_recode+set}" = set; then
12922  enableval=$enable_recode;
12923else
12924  enable_recode=
12925fi
12926
12927if test "${recode_size_guest_max}" = 0; then
12928    enable_recode=no
12929    recode_size_guest_max=1
12930fi
12931if test "x${enable_recode}" = no; then
12932    recode_hosts=
12933else
12934    { echo "$as_me:$LINENO: checking for target recode support" >&5
12935echo $ECHO_N "checking for target recode support... $ECHO_C" >&6; }
12936
12937
12938    # get the host maximum guest size:
12939    case "${target_cpu}" in
12940    i[3456789]86)
12941	recode_size_guest_max_host=64
12942	;;
12943    x86_64)
12944	recode_size_guest_max_host=128
12945	;;
12946    *) recode_size_guest_max_host= ;;
12947    esac
12948
12949    # get the host recode parts:
12950    case "${target}" in
12951    i[3456789]86-*-netbsd* | x86_64-*-netbsd* | i[3456789]86-*-linux*)
12952	recode_hosts="mmap x86"
12953	;;
12954    *) recode_hosts= ;;
12955    esac
12956
12957
12958    if test "x${recode_hosts}" = x; then
12959	{ echo "$as_me:$LINENO: result: no" >&5
12960echo "${ECHO_T}no" >&6; }
12961	if test "x${enable_recode}" = xrequired; then
12962	    { { echo "$as_me:$LINENO: error: recode required but not supported on ${target}" >&5
12963echo "$as_me: error: recode required but not supported on ${target}" >&2;}
12964   { (exit 1); exit 1; }; }
12965	fi
12966    else
12967	if test "x${recode_size_guest_max_host}" = x; then
12968	    { { echo "$as_me:$LINENO: error: internal error - no maximum recode guest size for ${target_cpu}" >&5
12969echo "$as_me: error: internal error - no maximum recode guest size for ${target_cpu}" >&2;}
12970   { (exit 1); exit 1; }; }
12971	fi
12972	if test `expr ${recode_size_guest_max} \> ${recode_size_guest_max_host}` = 1; then
12973	    recode_size_guest_max=$recode_size_guest_max_host
12974	fi
12975	{ echo "$as_me:$LINENO: result: up to ${recode_size_guest_max}-bit guests using ${recode_hosts}" >&5
12976echo "${ECHO_T}up to ${recode_size_guest_max}-bit guests using ${recode_hosts}" >&6; }
12977    fi
12978fi
12979
12980{ echo "$as_me:$LINENO: checking for target miscellaneous support" >&5
12981echo $ECHO_N "checking for target miscellaneous support... $ECHO_C" >&6; }
12982case "${target}" in
12983i[3456789]86-* | x86_64-*) misc_hosts="x86" ;;
12984*) misc_hosts=no ;;
12985esac
12986{ echo "$as_me:$LINENO: result: ${misc_hosts}" >&5
12987echo "${ECHO_T}${misc_hosts}" >&6; }
12988if test "x${misc_hosts}" = no; then
12989    misc_hosts=
12990fi
12991
12992  { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12993echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
12994if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12995  echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997  ac_check_lib_save_LIBS=$LIBS
12998LIBS="-lltdl  $LIBS"
12999cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h.  */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h.  */
13005
13006/* Override any GCC internal prototype to avoid an error.
13007   Use char because int might match the return type of a GCC
13008   builtin and then its argument prototype would still apply.  */
13009#ifdef __cplusplus
13010extern "C"
13011#endif
13012char lt_dlinit ();
13013int
13014main ()
13015{
13016return lt_dlinit ();
13017  ;
13018  return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext conftest$ac_exeext
13022if { (ac_try="$ac_link"
13023case "(($ac_try" in
13024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025  *) ac_try_echo=$ac_try;;
13026esac
13027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028  (eval "$ac_link") 2>conftest.er1
13029  ac_status=$?
13030  grep -v '^ *+' conftest.er1 >conftest.err
13031  rm -f conftest.er1
13032  cat conftest.err >&5
13033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034  (exit $ac_status); } && {
13035	 test -z "$ac_c_werror_flag" ||
13036	 test ! -s conftest.err
13037       } && test -s conftest$ac_exeext &&
13038       $as_test_x conftest$ac_exeext; then
13039  ac_cv_lib_ltdl_lt_dlinit=yes
13040else
13041  echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044	ac_cv_lib_ltdl_lt_dlinit=no
13045fi
13046
13047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13048      conftest$ac_exeext conftest.$ac_ext
13049LIBS=$ac_check_lib_save_LIBS
13050fi
13051{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13052echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13053if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13054  test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
13055else
13056  if test x"$enable_ltdl_install" = xno; then
13057     { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
13058echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
13059   else
13060     enable_ltdl_install=yes
13061   fi
13062
13063fi
13064
13065  if test x"$enable_ltdl_install" = x"yes"; then
13066    ac_configure_args="$ac_configure_args --enable-ltdl-install"
13067    LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
13068    LTDLINCL='-I${top_srcdir}/''libltdl'
13069  else
13070    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
13071    LIBLTDL="-lltdl"
13072    LTDLINCL=
13073  fi
13074  # For backwards non-gettext consistent compatibility...
13075  INCLTDL="$LTDLINCL"
13076
13077
13078
13079
13080
13081# Check whether --enable-shared was given.
13082if test "${enable_shared+set}" = set; then
13083  enableval=$enable_shared; p=${PACKAGE-default}
13084    case $enableval in
13085    yes) enable_shared=yes ;;
13086    no) enable_shared=no ;;
13087    *)
13088      enable_shared=no
13089      # Look at the argument we got.  We use all the common list separators.
13090      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13091      for pkg in $enableval; do
13092	IFS="$lt_save_ifs"
13093	if test "X$pkg" = "X$p"; then
13094	  enable_shared=yes
13095	fi
13096      done
13097      IFS="$lt_save_ifs"
13098      ;;
13099    esac
13100else
13101  enable_shared=yes
13102fi
13103
13104
13105# Check whether --enable-static was given.
13106if test "${enable_static+set}" = set; then
13107  enableval=$enable_static; p=${PACKAGE-default}
13108    case $enableval in
13109    yes) enable_static=yes ;;
13110    no) enable_static=no ;;
13111    *)
13112     enable_static=no
13113      # Look at the argument we got.  We use all the common list separators.
13114      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13115      for pkg in $enableval; do
13116	IFS="$lt_save_ifs"
13117	if test "X$pkg" = "X$p"; then
13118	  enable_static=yes
13119	fi
13120      done
13121      IFS="$lt_save_ifs"
13122      ;;
13123    esac
13124else
13125  enable_static=yes
13126fi
13127
13128
13129# Check whether --enable-fast-install was given.
13130if test "${enable_fast_install+set}" = set; then
13131  enableval=$enable_fast_install; p=${PACKAGE-default}
13132    case $enableval in
13133    yes) enable_fast_install=yes ;;
13134    no) enable_fast_install=no ;;
13135    *)
13136      enable_fast_install=no
13137      # Look at the argument we got.  We use all the common list separators.
13138      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13139      for pkg in $enableval; do
13140	IFS="$lt_save_ifs"
13141	if test "X$pkg" = "X$p"; then
13142	  enable_fast_install=yes
13143	fi
13144      done
13145      IFS="$lt_save_ifs"
13146      ;;
13147    esac
13148else
13149  enable_fast_install=yes
13150fi
13151
13152
13153{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13154echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
13155if test "${lt_cv_path_SED+set}" = set; then
13156  echo $ECHO_N "(cached) $ECHO_C" >&6
13157else
13158  # Loop through the user's path and test for sed and gsed.
13159# Then use that list of sed's as ones to test for truncation.
13160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161for as_dir in $PATH
13162do
13163  IFS=$as_save_IFS
13164  test -z "$as_dir" && as_dir=.
13165  for lt_ac_prog in sed gsed; do
13166    for ac_exec_ext in '' $ac_executable_extensions; do
13167      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
13168        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13169      fi
13170    done
13171  done
13172done
13173IFS=$as_save_IFS
13174lt_ac_max=0
13175lt_ac_count=0
13176# Add /usr/xpg4/bin/sed as it is typically found on Solaris
13177# along with /bin/sed that truncates output.
13178for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13179  test ! -f $lt_ac_sed && continue
13180  cat /dev/null > conftest.in
13181  lt_ac_count=0
13182  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13183  # Check for GNU sed and select it if it is found.
13184  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
13185    lt_cv_path_SED=$lt_ac_sed
13186    break
13187  fi
13188  while true; do
13189    cat conftest.in conftest.in >conftest.tmp
13190    mv conftest.tmp conftest.in
13191    cp conftest.in conftest.nl
13192    echo >>conftest.nl
13193    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
13194    cmp -s conftest.out conftest.nl || break
13195    # 10000 chars as input seems more than enough
13196    test $lt_ac_count -gt 10 && break
13197    lt_ac_count=`expr $lt_ac_count + 1`
13198    if test $lt_ac_count -gt $lt_ac_max; then
13199      lt_ac_max=$lt_ac_count
13200      lt_cv_path_SED=$lt_ac_sed
13201    fi
13202  done
13203done
13204
13205fi
13206
13207SED=$lt_cv_path_SED
13208
13209{ echo "$as_me:$LINENO: result: $SED" >&5
13210echo "${ECHO_T}$SED" >&6; }
13211
13212
13213# Check whether --with-gnu-ld was given.
13214if test "${with_gnu_ld+set}" = set; then
13215  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13216else
13217  with_gnu_ld=no
13218fi
13219
13220ac_prog=ld
13221if test "$GCC" = yes; then
13222  # Check if gcc -print-prog-name=ld gives a path.
13223  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13224echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13225  case $host in
13226  *-*-mingw*)
13227    # gcc leaves a trailing carriage return which upsets mingw
13228    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13229  *)
13230    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13231  esac
13232  case $ac_prog in
13233    # Accept absolute paths.
13234    [\\/]* | ?:[\\/]*)
13235      re_direlt='/[^/][^/]*/\.\./'
13236      # Canonicalize the pathname of ld
13237      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13238      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13239	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13240      done
13241      test -z "$LD" && LD="$ac_prog"
13242      ;;
13243  "")
13244    # If it fails, then pretend we aren't using GCC.
13245    ac_prog=ld
13246    ;;
13247  *)
13248    # If it is relative, then search for the first ld in PATH.
13249    with_gnu_ld=unknown
13250    ;;
13251  esac
13252elif test "$with_gnu_ld" = yes; then
13253  { echo "$as_me:$LINENO: checking for GNU ld" >&5
13254echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13255else
13256  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13257echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13258fi
13259if test "${lt_cv_path_LD+set}" = set; then
13260  echo $ECHO_N "(cached) $ECHO_C" >&6
13261else
13262  if test -z "$LD"; then
13263  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13264  for ac_dir in $PATH; do
13265    IFS="$lt_save_ifs"
13266    test -z "$ac_dir" && ac_dir=.
13267    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13268      lt_cv_path_LD="$ac_dir/$ac_prog"
13269      # Check to see if the program is GNU ld.  I'd rather use --version,
13270      # but apparently some variants of GNU ld only accept -v.
13271      # Break only if it was the GNU/non-GNU ld that we prefer.
13272      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13273      *GNU* | *'with BFD'*)
13274	test "$with_gnu_ld" != no && break
13275	;;
13276      *)
13277	test "$with_gnu_ld" != yes && break
13278	;;
13279      esac
13280    fi
13281  done
13282  IFS="$lt_save_ifs"
13283else
13284  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13285fi
13286fi
13287
13288LD="$lt_cv_path_LD"
13289if test -n "$LD"; then
13290  { echo "$as_me:$LINENO: result: $LD" >&5
13291echo "${ECHO_T}$LD" >&6; }
13292else
13293  { echo "$as_me:$LINENO: result: no" >&5
13294echo "${ECHO_T}no" >&6; }
13295fi
13296test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13297echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13298   { (exit 1); exit 1; }; }
13299{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13300echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13301if test "${lt_cv_prog_gnu_ld+set}" = set; then
13302  echo $ECHO_N "(cached) $ECHO_C" >&6
13303else
13304  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13305case `$LD -v 2>&1 </dev/null` in
13306*GNU* | *'with BFD'*)
13307  lt_cv_prog_gnu_ld=yes
13308  ;;
13309*)
13310  lt_cv_prog_gnu_ld=no
13311  ;;
13312esac
13313fi
13314{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13315echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13316with_gnu_ld=$lt_cv_prog_gnu_ld
13317
13318
13319{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13320echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
13321if test "${lt_cv_ld_reload_flag+set}" = set; then
13322  echo $ECHO_N "(cached) $ECHO_C" >&6
13323else
13324  lt_cv_ld_reload_flag='-r'
13325fi
13326{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13327echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
13328reload_flag=$lt_cv_ld_reload_flag
13329case $reload_flag in
13330"" | " "*) ;;
13331*) reload_flag=" $reload_flag" ;;
13332esac
13333reload_cmds='$LD$reload_flag -o $output$reload_objs'
13334case $host_os in
13335  darwin*)
13336    if test "$GCC" = yes; then
13337      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13338    else
13339      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13340    fi
13341    ;;
13342esac
13343
13344{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13345echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
13346if test "${lt_cv_path_NM+set}" = set; then
13347  echo $ECHO_N "(cached) $ECHO_C" >&6
13348else
13349  if test -n "$NM"; then
13350  # Let the user override the test.
13351  lt_cv_path_NM="$NM"
13352else
13353  lt_nm_to_check="${ac_tool_prefix}nm"
13354  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13355    lt_nm_to_check="$lt_nm_to_check nm"
13356  fi
13357  for lt_tmp_nm in $lt_nm_to_check; do
13358    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13359    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13360      IFS="$lt_save_ifs"
13361      test -z "$ac_dir" && ac_dir=.
13362      tmp_nm="$ac_dir/$lt_tmp_nm"
13363      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13364	# Check to see if the nm accepts a BSD-compat flag.
13365	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
13366	#   nm: unknown option "B" ignored
13367	# Tru64's nm complains that /dev/null is an invalid object file
13368	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13369	*/dev/null* | *'Invalid file or object type'*)
13370	  lt_cv_path_NM="$tmp_nm -B"
13371	  break
13372	  ;;
13373	*)
13374	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13375	  */dev/null*)
13376	    lt_cv_path_NM="$tmp_nm -p"
13377	    break
13378	    ;;
13379	  *)
13380	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13381	    continue # so that we can try to find one that supports BSD flags
13382	    ;;
13383	  esac
13384	  ;;
13385	esac
13386      fi
13387    done
13388    IFS="$lt_save_ifs"
13389  done
13390  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13391fi
13392fi
13393{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13394echo "${ECHO_T}$lt_cv_path_NM" >&6; }
13395NM="$lt_cv_path_NM"
13396
13397{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
13398echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
13399LN_S=$as_ln_s
13400if test "$LN_S" = "ln -s"; then
13401  { echo "$as_me:$LINENO: result: yes" >&5
13402echo "${ECHO_T}yes" >&6; }
13403else
13404  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13405echo "${ECHO_T}no, using $LN_S" >&6; }
13406fi
13407
13408{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
13409echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
13410if test "${lt_cv_deplibs_check_method+set}" = set; then
13411  echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
13413  lt_cv_file_magic_cmd='$MAGIC_CMD'
13414lt_cv_file_magic_test_file=
13415lt_cv_deplibs_check_method='unknown'
13416# Need to set the preceding variable on all platforms that support
13417# interlibrary dependencies.
13418# 'none' -- dependencies not supported.
13419# `unknown' -- same as none, but documents that we really don't know.
13420# 'pass_all' -- all dependencies passed with no checks.
13421# 'test_compile' -- check by making test program.
13422# 'file_magic [[regex]]' -- check by looking for files in library path
13423# which responds to the $file_magic_cmd with a given extended regex.
13424# If you have `file' or equivalent on your system and you're not sure
13425# whether `pass_all' will *always* work, you probably want this one.
13426
13427case $host_os in
13428aix4* | aix5*)
13429  lt_cv_deplibs_check_method=pass_all
13430  ;;
13431
13432beos*)
13433  lt_cv_deplibs_check_method=pass_all
13434  ;;
13435
13436bsdi[45]*)
13437  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13438  lt_cv_file_magic_cmd='/usr/bin/file -L'
13439  lt_cv_file_magic_test_file=/shlib/libc.so
13440  ;;
13441
13442cygwin*)
13443  # func_win32_libid is a shell function defined in ltmain.sh
13444  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13445  lt_cv_file_magic_cmd='func_win32_libid'
13446  ;;
13447
13448mingw* | pw32*)
13449  # Base MSYS/MinGW do not provide the 'file' command needed by
13450  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13451  # unless we find 'file', for example because we are cross-compiling.
13452  if ( file / ) >/dev/null 2>&1; then
13453    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13454    lt_cv_file_magic_cmd='func_win32_libid'
13455  else
13456    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13457    lt_cv_file_magic_cmd='$OBJDUMP -f'
13458  fi
13459  ;;
13460
13461darwin* | rhapsody*)
13462  lt_cv_deplibs_check_method=pass_all
13463  ;;
13464
13465freebsd* | dragonfly*)
13466  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13467    case $host_cpu in
13468    i*86 )
13469      # Not sure whether the presence of OpenBSD here was a mistake.
13470      # Let's accept both of them until this is cleared up.
13471      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13472      lt_cv_file_magic_cmd=/usr/bin/file
13473      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13474      ;;
13475    esac
13476  else
13477    lt_cv_deplibs_check_method=pass_all
13478  fi
13479  ;;
13480
13481gnu*)
13482  lt_cv_deplibs_check_method=pass_all
13483  ;;
13484
13485hpux10.20* | hpux11*)
13486  lt_cv_file_magic_cmd=/usr/bin/file
13487  case $host_cpu in
13488  ia64*)
13489    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13490    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13491    ;;
13492  hppa*64*)
13493    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]'
13494    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13495    ;;
13496  *)
13497    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13498    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13499    ;;
13500  esac
13501  ;;
13502
13503interix[3-9]*)
13504  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13505  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13506  ;;
13507
13508irix5* | irix6* | nonstopux*)
13509  case $LD in
13510  *-32|*"-32 ") libmagic=32-bit;;
13511  *-n32|*"-n32 ") libmagic=N32;;
13512  *-64|*"-64 ") libmagic=64-bit;;
13513  *) libmagic=never-match;;
13514  esac
13515  lt_cv_deplibs_check_method=pass_all
13516  ;;
13517
13518# This must be Linux ELF.
13519linux* | k*bsd*-gnu)
13520  lt_cv_deplibs_check_method=pass_all
13521  ;;
13522
13523netbsd*)
13524  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13525    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13526  else
13527    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13528  fi
13529  ;;
13530
13531newos6*)
13532  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13533  lt_cv_file_magic_cmd=/usr/bin/file
13534  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13535  ;;
13536
13537nto-qnx*)
13538  lt_cv_deplibs_check_method=unknown
13539  ;;
13540
13541openbsd*)
13542  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13543    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13544  else
13545    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13546  fi
13547  ;;
13548
13549osf3* | osf4* | osf5*)
13550  lt_cv_deplibs_check_method=pass_all
13551  ;;
13552
13553rdos*)
13554  lt_cv_deplibs_check_method=pass_all
13555  ;;
13556
13557solaris*)
13558  lt_cv_deplibs_check_method=pass_all
13559  ;;
13560
13561sysv4 | sysv4.3*)
13562  case $host_vendor in
13563  motorola)
13564    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]'
13565    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13566    ;;
13567  ncr)
13568    lt_cv_deplibs_check_method=pass_all
13569    ;;
13570  sequent)
13571    lt_cv_file_magic_cmd='/bin/file'
13572    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13573    ;;
13574  sni)
13575    lt_cv_file_magic_cmd='/bin/file'
13576    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13577    lt_cv_file_magic_test_file=/lib/libc.so
13578    ;;
13579  siemens)
13580    lt_cv_deplibs_check_method=pass_all
13581    ;;
13582  pc)
13583    lt_cv_deplibs_check_method=pass_all
13584    ;;
13585  esac
13586  ;;
13587
13588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13589  lt_cv_deplibs_check_method=pass_all
13590  ;;
13591esac
13592
13593fi
13594{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13595echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13596file_magic_cmd=$lt_cv_file_magic_cmd
13597deplibs_check_method=$lt_cv_deplibs_check_method
13598test -z "$deplibs_check_method" && deplibs_check_method=unknown
13599
13600
13601
13602
13603# If no C compiler was specified, use CC.
13604LTCC=${LTCC-"$CC"}
13605
13606# If no C compiler flags were specified, use CFLAGS.
13607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13608
13609# Allow CC to be a program name with arguments.
13610compiler=$CC
13611
13612# Check whether --enable-libtool-lock was given.
13613if test "${enable_libtool_lock+set}" = set; then
13614  enableval=$enable_libtool_lock;
13615fi
13616
13617test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13618
13619# Some flags need to be propagated to the compiler or linker for good
13620# libtool support.
13621case $host in
13622ia64-*-hpux*)
13623  # Find out which ABI we are using.
13624  echo 'int i;' > conftest.$ac_ext
13625  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626  (eval $ac_compile) 2>&5
13627  ac_status=$?
13628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629  (exit $ac_status); }; then
13630    case `/usr/bin/file conftest.$ac_objext` in
13631    *ELF-32*)
13632      HPUX_IA64_MODE="32"
13633      ;;
13634    *ELF-64*)
13635      HPUX_IA64_MODE="64"
13636      ;;
13637    esac
13638  fi
13639  rm -rf conftest*
13640  ;;
13641*-*-irix6*)
13642  # Find out which ABI we are using.
13643  echo '#line 13643 "configure"' > conftest.$ac_ext
13644  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645  (eval $ac_compile) 2>&5
13646  ac_status=$?
13647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648  (exit $ac_status); }; then
13649   if test "$lt_cv_prog_gnu_ld" = yes; then
13650    case `/usr/bin/file conftest.$ac_objext` in
13651    *32-bit*)
13652      LD="${LD-ld} -melf32bsmip"
13653      ;;
13654    *N32*)
13655      LD="${LD-ld} -melf32bmipn32"
13656      ;;
13657    *64-bit*)
13658      LD="${LD-ld} -melf64bmip"
13659      ;;
13660    esac
13661   else
13662    case `/usr/bin/file conftest.$ac_objext` in
13663    *32-bit*)
13664      LD="${LD-ld} -32"
13665      ;;
13666    *N32*)
13667      LD="${LD-ld} -n32"
13668      ;;
13669    *64-bit*)
13670      LD="${LD-ld} -64"
13671      ;;
13672    esac
13673   fi
13674  fi
13675  rm -rf conftest*
13676  ;;
13677
13678x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13679s390*-*linux*|sparc*-*linux*)
13680  # Find out which ABI we are using.
13681  echo 'int i;' > conftest.$ac_ext
13682  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683  (eval $ac_compile) 2>&5
13684  ac_status=$?
13685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686  (exit $ac_status); }; then
13687    case `/usr/bin/file conftest.o` in
13688    *32-bit*)
13689      case $host in
13690        x86_64-*kfreebsd*-gnu)
13691          LD="${LD-ld} -m elf_i386_fbsd"
13692          ;;
13693        x86_64-*linux*)
13694          LD="${LD-ld} -m elf_i386"
13695          ;;
13696        ppc64-*linux*|powerpc64-*linux*)
13697          LD="${LD-ld} -m elf32ppclinux"
13698          ;;
13699        s390x-*linux*)
13700          LD="${LD-ld} -m elf_s390"
13701          ;;
13702        sparc64-*linux*)
13703          LD="${LD-ld} -m elf32_sparc"
13704          ;;
13705      esac
13706      ;;
13707    *64-bit*)
13708      case $host in
13709        x86_64-*kfreebsd*-gnu)
13710          LD="${LD-ld} -m elf_x86_64_fbsd"
13711          ;;
13712        x86_64-*linux*)
13713          LD="${LD-ld} -m elf_x86_64"
13714          ;;
13715        ppc*-*linux*|powerpc*-*linux*)
13716          LD="${LD-ld} -m elf64ppc"
13717          ;;
13718        s390*-*linux*)
13719          LD="${LD-ld} -m elf64_s390"
13720          ;;
13721        sparc*-*linux*)
13722          LD="${LD-ld} -m elf64_sparc"
13723          ;;
13724      esac
13725      ;;
13726    esac
13727  fi
13728  rm -rf conftest*
13729  ;;
13730
13731*-*-sco3.2v5*)
13732  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13733  SAVE_CFLAGS="$CFLAGS"
13734  CFLAGS="$CFLAGS -belf"
13735  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13736echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13737if test "${lt_cv_cc_needs_belf+set}" = set; then
13738  echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740  ac_ext=c
13741ac_cpp='$CPP $CPPFLAGS'
13742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13744ac_compiler_gnu=$ac_cv_c_compiler_gnu
13745
13746     cat >conftest.$ac_ext <<_ACEOF
13747/* confdefs.h.  */
13748_ACEOF
13749cat confdefs.h >>conftest.$ac_ext
13750cat >>conftest.$ac_ext <<_ACEOF
13751/* end confdefs.h.  */
13752
13753int
13754main ()
13755{
13756
13757  ;
13758  return 0;
13759}
13760_ACEOF
13761rm -f conftest.$ac_objext conftest$ac_exeext
13762if { (ac_try="$ac_link"
13763case "(($ac_try" in
13764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765  *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768  (eval "$ac_link") 2>conftest.er1
13769  ac_status=$?
13770  grep -v '^ *+' conftest.er1 >conftest.err
13771  rm -f conftest.er1
13772  cat conftest.err >&5
13773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774  (exit $ac_status); } && {
13775	 test -z "$ac_c_werror_flag" ||
13776	 test ! -s conftest.err
13777       } && test -s conftest$ac_exeext &&
13778       $as_test_x conftest$ac_exeext; then
13779  lt_cv_cc_needs_belf=yes
13780else
13781  echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784	lt_cv_cc_needs_belf=no
13785fi
13786
13787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13788      conftest$ac_exeext conftest.$ac_ext
13789     ac_ext=c
13790ac_cpp='$CPP $CPPFLAGS'
13791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13793ac_compiler_gnu=$ac_cv_c_compiler_gnu
13794
13795fi
13796{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13797echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13798  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13799    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13800    CFLAGS="$SAVE_CFLAGS"
13801  fi
13802  ;;
13803sparc*-*solaris*)
13804  # Find out which ABI we are using.
13805  echo 'int i;' > conftest.$ac_ext
13806  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807  (eval $ac_compile) 2>&5
13808  ac_status=$?
13809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810  (exit $ac_status); }; then
13811    case `/usr/bin/file conftest.o` in
13812    *64-bit*)
13813      case $lt_cv_prog_gnu_ld in
13814      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13815      *)    LD="${LD-ld} -64" ;;
13816      esac
13817      ;;
13818    esac
13819  fi
13820  rm -rf conftest*
13821  ;;
13822
13823
13824esac
13825
13826need_locks="$enable_libtool_lock"
13827
13828
13829
13830for ac_header in dlfcn.h
13831do
13832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13834  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13837  echo $ECHO_N "(cached) $ECHO_C" >&6
13838fi
13839ac_res=`eval echo '${'$as_ac_Header'}'`
13840	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13841echo "${ECHO_T}$ac_res" >&6; }
13842else
13843  # Is the header compilable?
13844{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13846cat >conftest.$ac_ext <<_ACEOF
13847/* confdefs.h.  */
13848_ACEOF
13849cat confdefs.h >>conftest.$ac_ext
13850cat >>conftest.$ac_ext <<_ACEOF
13851/* end confdefs.h.  */
13852$ac_includes_default
13853#include <$ac_header>
13854_ACEOF
13855rm -f conftest.$ac_objext
13856if { (ac_try="$ac_compile"
13857case "(($ac_try" in
13858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859  *) ac_try_echo=$ac_try;;
13860esac
13861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862  (eval "$ac_compile") 2>conftest.er1
13863  ac_status=$?
13864  grep -v '^ *+' conftest.er1 >conftest.err
13865  rm -f conftest.er1
13866  cat conftest.err >&5
13867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868  (exit $ac_status); } && {
13869	 test -z "$ac_c_werror_flag" ||
13870	 test ! -s conftest.err
13871       } && test -s conftest.$ac_objext; then
13872  ac_header_compiler=yes
13873else
13874  echo "$as_me: failed program was:" >&5
13875sed 's/^/| /' conftest.$ac_ext >&5
13876
13877	ac_header_compiler=no
13878fi
13879
13880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13882echo "${ECHO_T}$ac_header_compiler" >&6; }
13883
13884# Is the header present?
13885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13887cat >conftest.$ac_ext <<_ACEOF
13888/* confdefs.h.  */
13889_ACEOF
13890cat confdefs.h >>conftest.$ac_ext
13891cat >>conftest.$ac_ext <<_ACEOF
13892/* end confdefs.h.  */
13893#include <$ac_header>
13894_ACEOF
13895if { (ac_try="$ac_cpp conftest.$ac_ext"
13896case "(($ac_try" in
13897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898  *) ac_try_echo=$ac_try;;
13899esac
13900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13902  ac_status=$?
13903  grep -v '^ *+' conftest.er1 >conftest.err
13904  rm -f conftest.er1
13905  cat conftest.err >&5
13906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907  (exit $ac_status); } >/dev/null && {
13908	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13909	 test ! -s conftest.err
13910       }; then
13911  ac_header_preproc=yes
13912else
13913  echo "$as_me: failed program was:" >&5
13914sed 's/^/| /' conftest.$ac_ext >&5
13915
13916  ac_header_preproc=no
13917fi
13918
13919rm -f conftest.err conftest.$ac_ext
13920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13921echo "${ECHO_T}$ac_header_preproc" >&6; }
13922
13923# So?  What about this header?
13924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13925  yes:no: )
13926    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13928    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13930    ac_header_preproc=yes
13931    ;;
13932  no:yes:* )
13933    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13935    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13936echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13937    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13939    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13940echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13941    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13943    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13945
13946    ;;
13947esac
13948{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13951  echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953  eval "$as_ac_Header=\$ac_header_preproc"
13954fi
13955ac_res=`eval echo '${'$as_ac_Header'}'`
13956	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13957echo "${ECHO_T}$ac_res" >&6; }
13958
13959fi
13960if test `eval echo '${'$as_ac_Header'}'` = yes; then
13961  cat >>confdefs.h <<_ACEOF
13962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13963_ACEOF
13964
13965fi
13966
13967done
13968
13969ac_ext=cpp
13970ac_cpp='$CXXCPP $CPPFLAGS'
13971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13974if test -z "$CXX"; then
13975  if test -n "$CCC"; then
13976    CXX=$CCC
13977  else
13978    if test -n "$ac_tool_prefix"; then
13979  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13980  do
13981    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13985if test "${ac_cv_prog_CXX+set}" = set; then
13986  echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988  if test -n "$CXX"; then
13989  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13990else
13991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992for as_dir in $PATH
13993do
13994  IFS=$as_save_IFS
13995  test -z "$as_dir" && as_dir=.
13996  for ac_exec_ext in '' $ac_executable_extensions; do
13997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000    break 2
14001  fi
14002done
14003done
14004IFS=$as_save_IFS
14005
14006fi
14007fi
14008CXX=$ac_cv_prog_CXX
14009if test -n "$CXX"; then
14010  { echo "$as_me:$LINENO: result: $CXX" >&5
14011echo "${ECHO_T}$CXX" >&6; }
14012else
14013  { echo "$as_me:$LINENO: result: no" >&5
14014echo "${ECHO_T}no" >&6; }
14015fi
14016
14017
14018    test -n "$CXX" && break
14019  done
14020fi
14021if test -z "$CXX"; then
14022  ac_ct_CXX=$CXX
14023  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14024do
14025  # Extract the first word of "$ac_prog", so it can be a program name with args.
14026set dummy $ac_prog; ac_word=$2
14027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14029if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14030  echo $ECHO_N "(cached) $ECHO_C" >&6
14031else
14032  if test -n "$ac_ct_CXX"; then
14033  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14034else
14035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036for as_dir in $PATH
14037do
14038  IFS=$as_save_IFS
14039  test -z "$as_dir" && as_dir=.
14040  for ac_exec_ext in '' $ac_executable_extensions; do
14041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14042    ac_cv_prog_ac_ct_CXX="$ac_prog"
14043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14044    break 2
14045  fi
14046done
14047done
14048IFS=$as_save_IFS
14049
14050fi
14051fi
14052ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14053if test -n "$ac_ct_CXX"; then
14054  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14055echo "${ECHO_T}$ac_ct_CXX" >&6; }
14056else
14057  { echo "$as_me:$LINENO: result: no" >&5
14058echo "${ECHO_T}no" >&6; }
14059fi
14060
14061
14062  test -n "$ac_ct_CXX" && break
14063done
14064
14065  if test "x$ac_ct_CXX" = x; then
14066    CXX="g++"
14067  else
14068    case $cross_compiling:$ac_tool_warned in
14069yes:)
14070{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14071whose name does not start with the host triplet.  If you think this
14072configuration is useful to you, please write to autoconf@gnu.org." >&5
14073echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14074whose name does not start with the host triplet.  If you think this
14075configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14076ac_tool_warned=yes ;;
14077esac
14078    CXX=$ac_ct_CXX
14079  fi
14080fi
14081
14082  fi
14083fi
14084# Provide some information about the compiler.
14085echo "$as_me:$LINENO: checking for C++ compiler version" >&5
14086ac_compiler=`set X $ac_compile; echo $2`
14087{ (ac_try="$ac_compiler --version >&5"
14088case "(($ac_try" in
14089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090  *) ac_try_echo=$ac_try;;
14091esac
14092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093  (eval "$ac_compiler --version >&5") 2>&5
14094  ac_status=$?
14095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096  (exit $ac_status); }
14097{ (ac_try="$ac_compiler -v >&5"
14098case "(($ac_try" in
14099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100  *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103  (eval "$ac_compiler -v >&5") 2>&5
14104  ac_status=$?
14105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106  (exit $ac_status); }
14107{ (ac_try="$ac_compiler -V >&5"
14108case "(($ac_try" in
14109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110  *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113  (eval "$ac_compiler -V >&5") 2>&5
14114  ac_status=$?
14115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116  (exit $ac_status); }
14117
14118{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14119echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
14120if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14121  echo $ECHO_N "(cached) $ECHO_C" >&6
14122else
14123  cat >conftest.$ac_ext <<_ACEOF
14124/* confdefs.h.  */
14125_ACEOF
14126cat confdefs.h >>conftest.$ac_ext
14127cat >>conftest.$ac_ext <<_ACEOF
14128/* end confdefs.h.  */
14129
14130int
14131main ()
14132{
14133#ifndef __GNUC__
14134       choke me
14135#endif
14136
14137  ;
14138  return 0;
14139}
14140_ACEOF
14141rm -f conftest.$ac_objext
14142if { (ac_try="$ac_compile"
14143case "(($ac_try" in
14144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145  *) ac_try_echo=$ac_try;;
14146esac
14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148  (eval "$ac_compile") 2>conftest.er1
14149  ac_status=$?
14150  grep -v '^ *+' conftest.er1 >conftest.err
14151  rm -f conftest.er1
14152  cat conftest.err >&5
14153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154  (exit $ac_status); } && {
14155	 test -z "$ac_cxx_werror_flag" ||
14156	 test ! -s conftest.err
14157       } && test -s conftest.$ac_objext; then
14158  ac_compiler_gnu=yes
14159else
14160  echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163	ac_compiler_gnu=no
14164fi
14165
14166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14168
14169fi
14170{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14171echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
14172GXX=`test $ac_compiler_gnu = yes && echo yes`
14173ac_test_CXXFLAGS=${CXXFLAGS+set}
14174ac_save_CXXFLAGS=$CXXFLAGS
14175{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14176echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
14177if test "${ac_cv_prog_cxx_g+set}" = set; then
14178  echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14181   ac_cxx_werror_flag=yes
14182   ac_cv_prog_cxx_g=no
14183   CXXFLAGS="-g"
14184   cat >conftest.$ac_ext <<_ACEOF
14185/* confdefs.h.  */
14186_ACEOF
14187cat confdefs.h >>conftest.$ac_ext
14188cat >>conftest.$ac_ext <<_ACEOF
14189/* end confdefs.h.  */
14190
14191int
14192main ()
14193{
14194
14195  ;
14196  return 0;
14197}
14198_ACEOF
14199rm -f conftest.$ac_objext
14200if { (ac_try="$ac_compile"
14201case "(($ac_try" in
14202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203  *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206  (eval "$ac_compile") 2>conftest.er1
14207  ac_status=$?
14208  grep -v '^ *+' conftest.er1 >conftest.err
14209  rm -f conftest.er1
14210  cat conftest.err >&5
14211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212  (exit $ac_status); } && {
14213	 test -z "$ac_cxx_werror_flag" ||
14214	 test ! -s conftest.err
14215       } && test -s conftest.$ac_objext; then
14216  ac_cv_prog_cxx_g=yes
14217else
14218  echo "$as_me: failed program was:" >&5
14219sed 's/^/| /' conftest.$ac_ext >&5
14220
14221	CXXFLAGS=""
14222      cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h.  */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h.  */
14228
14229int
14230main ()
14231{
14232
14233  ;
14234  return 0;
14235}
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (ac_try="$ac_compile"
14239case "(($ac_try" in
14240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241  *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244  (eval "$ac_compile") 2>conftest.er1
14245  ac_status=$?
14246  grep -v '^ *+' conftest.er1 >conftest.err
14247  rm -f conftest.er1
14248  cat conftest.err >&5
14249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250  (exit $ac_status); } && {
14251	 test -z "$ac_cxx_werror_flag" ||
14252	 test ! -s conftest.err
14253       } && test -s conftest.$ac_objext; then
14254  :
14255else
14256  echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14260	 CXXFLAGS="-g"
14261	 cat >conftest.$ac_ext <<_ACEOF
14262/* confdefs.h.  */
14263_ACEOF
14264cat confdefs.h >>conftest.$ac_ext
14265cat >>conftest.$ac_ext <<_ACEOF
14266/* end confdefs.h.  */
14267
14268int
14269main ()
14270{
14271
14272  ;
14273  return 0;
14274}
14275_ACEOF
14276rm -f conftest.$ac_objext
14277if { (ac_try="$ac_compile"
14278case "(($ac_try" in
14279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280  *) ac_try_echo=$ac_try;;
14281esac
14282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283  (eval "$ac_compile") 2>conftest.er1
14284  ac_status=$?
14285  grep -v '^ *+' conftest.er1 >conftest.err
14286  rm -f conftest.er1
14287  cat conftest.err >&5
14288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289  (exit $ac_status); } && {
14290	 test -z "$ac_cxx_werror_flag" ||
14291	 test ! -s conftest.err
14292       } && test -s conftest.$ac_objext; then
14293  ac_cv_prog_cxx_g=yes
14294else
14295  echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298
14299fi
14300
14301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302fi
14303
14304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305fi
14306
14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14309fi
14310{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14311echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
14312if test "$ac_test_CXXFLAGS" = set; then
14313  CXXFLAGS=$ac_save_CXXFLAGS
14314elif test $ac_cv_prog_cxx_g = yes; then
14315  if test "$GXX" = yes; then
14316    CXXFLAGS="-g -O2"
14317  else
14318    CXXFLAGS="-g"
14319  fi
14320else
14321  if test "$GXX" = yes; then
14322    CXXFLAGS="-O2"
14323  else
14324    CXXFLAGS=
14325  fi
14326fi
14327ac_ext=cpp
14328ac_cpp='$CXXCPP $CPPFLAGS'
14329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14332
14333depcc="$CXX"  am_compiler_list=
14334
14335{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
14336echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
14337if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
14338  echo $ECHO_N "(cached) $ECHO_C" >&6
14339else
14340  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14341  # We make a subdir and do the tests there.  Otherwise we can end up
14342  # making bogus files that we don't know about and never remove.  For
14343  # instance it was reported that on HP-UX the gcc test will end up
14344  # making a dummy file named `D' -- because `-MD' means `put the output
14345  # in D'.
14346  mkdir conftest.dir
14347  # Copy depcomp to subdir because otherwise we won't find it if we're
14348  # using a relative directory.
14349  cp "$am_depcomp" conftest.dir
14350  cd conftest.dir
14351  # We will build objects and dependencies in a subdirectory because
14352  # it helps to detect inapplicable dependency modes.  For instance
14353  # both Tru64's cc and ICC support -MD to output dependencies as a
14354  # side effect of compilation, but ICC will put the dependencies in
14355  # the current directory while Tru64 will put them in the object
14356  # directory.
14357  mkdir sub
14358
14359  am_cv_CXX_dependencies_compiler_type=none
14360  if test "$am_compiler_list" = ""; then
14361     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14362  fi
14363  for depmode in $am_compiler_list; do
14364    # Setup a source with many dependencies, because some compilers
14365    # like to wrap large dependency lists on column 80 (with \), and
14366    # we should not choose a depcomp mode which is confused by this.
14367    #
14368    # We need to recreate these files for each test, as the compiler may
14369    # overwrite some of them when testing with obscure command lines.
14370    # This happens at least with the AIX C compiler.
14371    : > sub/conftest.c
14372    for i in 1 2 3 4 5 6; do
14373      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14374      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14375      # Solaris 8's {/usr,}/bin/sh.
14376      touch sub/conftst$i.h
14377    done
14378    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14379
14380    case $depmode in
14381    nosideeffect)
14382      # after this tag, mechanisms are not by side-effect, so they'll
14383      # only be used when explicitly requested
14384      if test "x$enable_dependency_tracking" = xyes; then
14385	continue
14386      else
14387	break
14388      fi
14389      ;;
14390    none) break ;;
14391    esac
14392    # We check with `-c' and `-o' for the sake of the "dashmstdout"
14393    # mode.  It turns out that the SunPro C++ compiler does not properly
14394    # handle `-M -o', and we need to detect this.
14395    if depmode=$depmode \
14396       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
14397       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14398       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
14399         >/dev/null 2>conftest.err &&
14400       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14401       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14402       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
14403       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14404      # icc doesn't choke on unknown options, it will just issue warnings
14405      # or remarks (even with -Werror).  So we grep stderr for any message
14406      # that says an option was ignored or not supported.
14407      # When given -MP, icc 7.0 and 7.1 complain thusly:
14408      #   icc: Command line warning: ignoring option '-M'; no argument required
14409      # The diagnosis changed in icc 8.0:
14410      #   icc: Command line remark: option '-MP' not supported
14411      if (grep 'ignoring option' conftest.err ||
14412          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14413        am_cv_CXX_dependencies_compiler_type=$depmode
14414        break
14415      fi
14416    fi
14417  done
14418
14419  cd ..
14420  rm -rf conftest.dir
14421else
14422  am_cv_CXX_dependencies_compiler_type=none
14423fi
14424
14425fi
14426{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
14427echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
14428CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14429
14430 if
14431  test "x$enable_dependency_tracking" != xno \
14432  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14433  am__fastdepCXX_TRUE=
14434  am__fastdepCXX_FALSE='#'
14435else
14436  am__fastdepCXX_TRUE='#'
14437  am__fastdepCXX_FALSE=
14438fi
14439
14440
14441
14442
14443if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14444    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14445    (test "X$CXX" != "Xg++"))) ; then
14446  ac_ext=cpp
14447ac_cpp='$CXXCPP $CPPFLAGS'
14448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14451{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14452echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14453if test -z "$CXXCPP"; then
14454  if test "${ac_cv_prog_CXXCPP+set}" = set; then
14455  echo $ECHO_N "(cached) $ECHO_C" >&6
14456else
14457      # Double quotes because CXXCPP needs to be expanded
14458    for CXXCPP in "$CXX -E" "/lib/cpp"
14459    do
14460      ac_preproc_ok=false
14461for ac_cxx_preproc_warn_flag in '' yes
14462do
14463  # Use a header file that comes with gcc, so configuring glibc
14464  # with a fresh cross-compiler works.
14465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14466  # <limits.h> exists even on freestanding compilers.
14467  # On the NeXT, cc -E runs the code through the compiler's parser,
14468  # not just through cpp. "Syntax error" is here to catch this case.
14469  cat >conftest.$ac_ext <<_ACEOF
14470/* confdefs.h.  */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h.  */
14475#ifdef __STDC__
14476# include <limits.h>
14477#else
14478# include <assert.h>
14479#endif
14480		     Syntax error
14481_ACEOF
14482if { (ac_try="$ac_cpp conftest.$ac_ext"
14483case "(($ac_try" in
14484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485  *) ac_try_echo=$ac_try;;
14486esac
14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14489  ac_status=$?
14490  grep -v '^ *+' conftest.er1 >conftest.err
14491  rm -f conftest.er1
14492  cat conftest.err >&5
14493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494  (exit $ac_status); } >/dev/null && {
14495	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14496	 test ! -s conftest.err
14497       }; then
14498  :
14499else
14500  echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503  # Broken: fails on valid input.
14504continue
14505fi
14506
14507rm -f conftest.err conftest.$ac_ext
14508
14509  # OK, works on sane cases.  Now check whether nonexistent headers
14510  # can be detected and how.
14511  cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h.  */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h.  */
14517#include <ac_nonexistent.h>
14518_ACEOF
14519if { (ac_try="$ac_cpp conftest.$ac_ext"
14520case "(($ac_try" in
14521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522  *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14526  ac_status=$?
14527  grep -v '^ *+' conftest.er1 >conftest.err
14528  rm -f conftest.er1
14529  cat conftest.err >&5
14530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531  (exit $ac_status); } >/dev/null && {
14532	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14533	 test ! -s conftest.err
14534       }; then
14535  # Broken: success on invalid input.
14536continue
14537else
14538  echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541  # Passes both tests.
14542ac_preproc_ok=:
14543break
14544fi
14545
14546rm -f conftest.err conftest.$ac_ext
14547
14548done
14549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14550rm -f conftest.err conftest.$ac_ext
14551if $ac_preproc_ok; then
14552  break
14553fi
14554
14555    done
14556    ac_cv_prog_CXXCPP=$CXXCPP
14557
14558fi
14559  CXXCPP=$ac_cv_prog_CXXCPP
14560else
14561  ac_cv_prog_CXXCPP=$CXXCPP
14562fi
14563{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
14564echo "${ECHO_T}$CXXCPP" >&6; }
14565ac_preproc_ok=false
14566for ac_cxx_preproc_warn_flag in '' yes
14567do
14568  # Use a header file that comes with gcc, so configuring glibc
14569  # with a fresh cross-compiler works.
14570  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14571  # <limits.h> exists even on freestanding compilers.
14572  # On the NeXT, cc -E runs the code through the compiler's parser,
14573  # not just through cpp. "Syntax error" is here to catch this case.
14574  cat >conftest.$ac_ext <<_ACEOF
14575/* confdefs.h.  */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h.  */
14580#ifdef __STDC__
14581# include <limits.h>
14582#else
14583# include <assert.h>
14584#endif
14585		     Syntax error
14586_ACEOF
14587if { (ac_try="$ac_cpp conftest.$ac_ext"
14588case "(($ac_try" in
14589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590  *) ac_try_echo=$ac_try;;
14591esac
14592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14594  ac_status=$?
14595  grep -v '^ *+' conftest.er1 >conftest.err
14596  rm -f conftest.er1
14597  cat conftest.err >&5
14598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599  (exit $ac_status); } >/dev/null && {
14600	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14601	 test ! -s conftest.err
14602       }; then
14603  :
14604else
14605  echo "$as_me: failed program was:" >&5
14606sed 's/^/| /' conftest.$ac_ext >&5
14607
14608  # Broken: fails on valid input.
14609continue
14610fi
14611
14612rm -f conftest.err conftest.$ac_ext
14613
14614  # OK, works on sane cases.  Now check whether nonexistent headers
14615  # can be detected and how.
14616  cat >conftest.$ac_ext <<_ACEOF
14617/* confdefs.h.  */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h.  */
14622#include <ac_nonexistent.h>
14623_ACEOF
14624if { (ac_try="$ac_cpp conftest.$ac_ext"
14625case "(($ac_try" in
14626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627  *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14631  ac_status=$?
14632  grep -v '^ *+' conftest.er1 >conftest.err
14633  rm -f conftest.er1
14634  cat conftest.err >&5
14635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636  (exit $ac_status); } >/dev/null && {
14637	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14638	 test ! -s conftest.err
14639       }; then
14640  # Broken: success on invalid input.
14641continue
14642else
14643  echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646  # Passes both tests.
14647ac_preproc_ok=:
14648break
14649fi
14650
14651rm -f conftest.err conftest.$ac_ext
14652
14653done
14654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14655rm -f conftest.err conftest.$ac_ext
14656if $ac_preproc_ok; then
14657  :
14658else
14659  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14660See \`config.log' for more details." >&5
14661echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14662See \`config.log' for more details." >&2;}
14663   { (exit 1); exit 1; }; }
14664fi
14665
14666ac_ext=cpp
14667ac_cpp='$CXXCPP $CPPFLAGS'
14668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14671
14672fi
14673
14674
14675ac_ext=f
14676ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14677ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14678ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14679if test -n "$ac_tool_prefix"; then
14680  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
14681  do
14682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14686if test "${ac_cv_prog_F77+set}" = set; then
14687  echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
14689  if test -n "$F77"; then
14690  ac_cv_prog_F77="$F77" # Let the user override the test.
14691else
14692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14693for as_dir in $PATH
14694do
14695  IFS=$as_save_IFS
14696  test -z "$as_dir" && as_dir=.
14697  for ac_exec_ext in '' $ac_executable_extensions; do
14698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14699    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14701    break 2
14702  fi
14703done
14704done
14705IFS=$as_save_IFS
14706
14707fi
14708fi
14709F77=$ac_cv_prog_F77
14710if test -n "$F77"; then
14711  { echo "$as_me:$LINENO: result: $F77" >&5
14712echo "${ECHO_T}$F77" >&6; }
14713else
14714  { echo "$as_me:$LINENO: result: no" >&5
14715echo "${ECHO_T}no" >&6; }
14716fi
14717
14718
14719    test -n "$F77" && break
14720  done
14721fi
14722if test -z "$F77"; then
14723  ac_ct_F77=$F77
14724  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
14725do
14726  # Extract the first word of "$ac_prog", so it can be a program name with args.
14727set dummy $ac_prog; ac_word=$2
14728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14730if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14731  echo $ECHO_N "(cached) $ECHO_C" >&6
14732else
14733  if test -n "$ac_ct_F77"; then
14734  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14735else
14736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737for as_dir in $PATH
14738do
14739  IFS=$as_save_IFS
14740  test -z "$as_dir" && as_dir=.
14741  for ac_exec_ext in '' $ac_executable_extensions; do
14742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14743    ac_cv_prog_ac_ct_F77="$ac_prog"
14744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14745    break 2
14746  fi
14747done
14748done
14749IFS=$as_save_IFS
14750
14751fi
14752fi
14753ac_ct_F77=$ac_cv_prog_ac_ct_F77
14754if test -n "$ac_ct_F77"; then
14755  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14756echo "${ECHO_T}$ac_ct_F77" >&6; }
14757else
14758  { echo "$as_me:$LINENO: result: no" >&5
14759echo "${ECHO_T}no" >&6; }
14760fi
14761
14762
14763  test -n "$ac_ct_F77" && break
14764done
14765
14766  if test "x$ac_ct_F77" = x; then
14767    F77=""
14768  else
14769    case $cross_compiling:$ac_tool_warned in
14770yes:)
14771{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14772whose name does not start with the host triplet.  If you think this
14773configuration is useful to you, please write to autoconf@gnu.org." >&5
14774echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14775whose name does not start with the host triplet.  If you think this
14776configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14777ac_tool_warned=yes ;;
14778esac
14779    F77=$ac_ct_F77
14780  fi
14781fi
14782
14783
14784# Provide some information about the compiler.
14785echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
14786ac_compiler=`set X $ac_compile; echo $2`
14787{ (ac_try="$ac_compiler --version >&5"
14788case "(($ac_try" in
14789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790  *) ac_try_echo=$ac_try;;
14791esac
14792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793  (eval "$ac_compiler --version >&5") 2>&5
14794  ac_status=$?
14795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796  (exit $ac_status); }
14797{ (ac_try="$ac_compiler -v >&5"
14798case "(($ac_try" in
14799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800  *) ac_try_echo=$ac_try;;
14801esac
14802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803  (eval "$ac_compiler -v >&5") 2>&5
14804  ac_status=$?
14805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806  (exit $ac_status); }
14807{ (ac_try="$ac_compiler -V >&5"
14808case "(($ac_try" in
14809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810  *) ac_try_echo=$ac_try;;
14811esac
14812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813  (eval "$ac_compiler -V >&5") 2>&5
14814  ac_status=$?
14815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816  (exit $ac_status); }
14817rm -f a.out
14818
14819# If we don't use `.F' as extension, the preprocessor is not run on the
14820# input file.  (Note that this only needs to work for GNU compilers.)
14821ac_save_ext=$ac_ext
14822ac_ext=F
14823{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14824echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
14825if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14826  echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828  cat >conftest.$ac_ext <<_ACEOF
14829      program main
14830#ifndef __GNUC__
14831       choke me
14832#endif
14833
14834      end
14835_ACEOF
14836rm -f conftest.$ac_objext
14837if { (ac_try="$ac_compile"
14838case "(($ac_try" in
14839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840  *) ac_try_echo=$ac_try;;
14841esac
14842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843  (eval "$ac_compile") 2>conftest.er1
14844  ac_status=$?
14845  grep -v '^ *+' conftest.er1 >conftest.err
14846  rm -f conftest.er1
14847  cat conftest.err >&5
14848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849  (exit $ac_status); } && {
14850	 test -z "$ac_f77_werror_flag" ||
14851	 test ! -s conftest.err
14852       } && test -s conftest.$ac_objext; then
14853  ac_compiler_gnu=yes
14854else
14855  echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
14858	ac_compiler_gnu=no
14859fi
14860
14861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14863
14864fi
14865{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14866echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
14867ac_ext=$ac_save_ext
14868ac_test_FFLAGS=${FFLAGS+set}
14869ac_save_FFLAGS=$FFLAGS
14870FFLAGS=
14871{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14872echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
14873if test "${ac_cv_prog_f77_g+set}" = set; then
14874  echo $ECHO_N "(cached) $ECHO_C" >&6
14875else
14876  FFLAGS=-g
14877cat >conftest.$ac_ext <<_ACEOF
14878      program main
14879
14880      end
14881_ACEOF
14882rm -f conftest.$ac_objext
14883if { (ac_try="$ac_compile"
14884case "(($ac_try" in
14885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886  *) ac_try_echo=$ac_try;;
14887esac
14888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889  (eval "$ac_compile") 2>conftest.er1
14890  ac_status=$?
14891  grep -v '^ *+' conftest.er1 >conftest.err
14892  rm -f conftest.er1
14893  cat conftest.err >&5
14894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895  (exit $ac_status); } && {
14896	 test -z "$ac_f77_werror_flag" ||
14897	 test ! -s conftest.err
14898       } && test -s conftest.$ac_objext; then
14899  ac_cv_prog_f77_g=yes
14900else
14901  echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904	ac_cv_prog_f77_g=no
14905fi
14906
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908
14909fi
14910{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14911echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
14912if test "$ac_test_FFLAGS" = set; then
14913  FFLAGS=$ac_save_FFLAGS
14914elif test $ac_cv_prog_f77_g = yes; then
14915  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14916    FFLAGS="-g -O2"
14917  else
14918    FFLAGS="-g"
14919  fi
14920else
14921  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14922    FFLAGS="-O2"
14923  else
14924    FFLAGS=
14925  fi
14926fi
14927
14928G77=`test $ac_compiler_gnu = yes && echo yes`
14929ac_ext=c
14930ac_cpp='$CPP $CPPFLAGS'
14931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933ac_compiler_gnu=$ac_cv_c_compiler_gnu
14934
14935
14936
14937# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14938
14939# find the maximum length of command line arguments
14940{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14941echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14942if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14943  echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945    i=0
14946  teststring="ABCD"
14947
14948  case $build_os in
14949  msdosdjgpp*)
14950    # On DJGPP, this test can blow up pretty badly due to problems in libc
14951    # (any single argument exceeding 2000 bytes causes a buffer overrun
14952    # during glob expansion).  Even if it were fixed, the result of this
14953    # check would be larger than it should be.
14954    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14955    ;;
14956
14957  gnu*)
14958    # Under GNU Hurd, this test is not required because there is
14959    # no limit to the length of command line arguments.
14960    # Libtool will interpret -1 as no limit whatsoever
14961    lt_cv_sys_max_cmd_len=-1;
14962    ;;
14963
14964  cygwin* | mingw*)
14965    # On Win9x/ME, this test blows up -- it succeeds, but takes
14966    # about 5 minutes as the teststring grows exponentially.
14967    # Worse, since 9x/ME are not pre-emptively multitasking,
14968    # you end up with a "frozen" computer, even though with patience
14969    # the test eventually succeeds (with a max line length of 256k).
14970    # Instead, let's just punt: use the minimum linelength reported by
14971    # all of the supported platforms: 8192 (on NT/2K/XP).
14972    lt_cv_sys_max_cmd_len=8192;
14973    ;;
14974
14975  amigaos*)
14976    # On AmigaOS with pdksh, this test takes hours, literally.
14977    # So we just punt and use a minimum line length of 8192.
14978    lt_cv_sys_max_cmd_len=8192;
14979    ;;
14980
14981  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14982    # This has been around since 386BSD, at least.  Likely further.
14983    if test -x /sbin/sysctl; then
14984      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14985    elif test -x /usr/sbin/sysctl; then
14986      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14987    else
14988      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
14989    fi
14990    # And add a safety zone
14991    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14992    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14993    ;;
14994
14995  interix*)
14996    # We know the value 262144 and hardcode it with a safety zone (like BSD)
14997    lt_cv_sys_max_cmd_len=196608
14998    ;;
14999
15000  osf*)
15001    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15002    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15003    # nice to cause kernel panics so lets avoid the loop below.
15004    # First set a reasonable default.
15005    lt_cv_sys_max_cmd_len=16384
15006    #
15007    if test -x /sbin/sysconfig; then
15008      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15009        *1*) lt_cv_sys_max_cmd_len=-1 ;;
15010      esac
15011    fi
15012    ;;
15013  sco3.2v5*)
15014    lt_cv_sys_max_cmd_len=102400
15015    ;;
15016  sysv5* | sco5v6* | sysv4.2uw2*)
15017    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15018    if test -n "$kargmax"; then
15019      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
15020    else
15021      lt_cv_sys_max_cmd_len=32768
15022    fi
15023    ;;
15024  *)
15025    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15026    if test -n "$lt_cv_sys_max_cmd_len"; then
15027      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15028      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15029    else
15030      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15031      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
15032	       = "XX$teststring") >/dev/null 2>&1 &&
15033	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
15034	      lt_cv_sys_max_cmd_len=$new_result &&
15035	      test $i != 17 # 1/2 MB should be enough
15036      do
15037        i=`expr $i + 1`
15038        teststring=$teststring$teststring
15039      done
15040      teststring=
15041      # Add a significant safety factor because C++ compilers can tack on massive
15042      # amounts of additional arguments before passing them to the linker.
15043      # It appears as though 1/2 is a usable value.
15044      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15045    fi
15046    ;;
15047  esac
15048
15049fi
15050
15051if test -n $lt_cv_sys_max_cmd_len ; then
15052  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15053echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
15054else
15055  { echo "$as_me:$LINENO: result: none" >&5
15056echo "${ECHO_T}none" >&6; }
15057fi
15058
15059
15060
15061
15062
15063# Check for command to grab the raw symbol name followed by C symbol from nm.
15064{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15065echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
15066if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15067  echo $ECHO_N "(cached) $ECHO_C" >&6
15068else
15069
15070# These are sane defaults that work on at least a few old systems.
15071# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15072
15073# Character class describing NM global symbol codes.
15074symcode='[BCDEGRST]'
15075
15076# Regexp to match symbols that can be accessed directly from C.
15077sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15078
15079# Transform an extracted symbol line into a proper C declaration
15080lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
15081
15082# Transform an extracted symbol line into symbol name and symbol address
15083lt_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'"
15084
15085# Define system-specific variables.
15086case $host_os in
15087aix*)
15088  symcode='[BCDT]'
15089  ;;
15090cygwin* | mingw* | pw32*)
15091  symcode='[ABCDGISTW]'
15092  ;;
15093hpux*) # Its linker distinguishes data from code symbols
15094  if test "$host_cpu" = ia64; then
15095    symcode='[ABCDEGRST]'
15096  fi
15097  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15098  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'"
15099  ;;
15100linux* | k*bsd*-gnu)
15101  if test "$host_cpu" = ia64; then
15102    symcode='[ABCDGIRSTW]'
15103    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15104    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'"
15105  fi
15106  ;;
15107irix* | nonstopux*)
15108  symcode='[BCDEGRST]'
15109  ;;
15110osf*)
15111  symcode='[BCDEGQRST]'
15112  ;;
15113solaris*)
15114  symcode='[BDRT]'
15115  ;;
15116sco3.2v5*)
15117  symcode='[DT]'
15118  ;;
15119sysv4.2uw2*)
15120  symcode='[DT]'
15121  ;;
15122sysv5* | sco5v6* | unixware* | OpenUNIX*)
15123  symcode='[ABDT]'
15124  ;;
15125sysv4)
15126  symcode='[DFNSTU]'
15127  ;;
15128esac
15129
15130# Handle CRLF in mingw tool chain
15131opt_cr=
15132case $build_os in
15133mingw*)
15134  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15135  ;;
15136esac
15137
15138# If we're using GNU nm, then use its standard symbol codes.
15139case `$NM -V 2>&1` in
15140*GNU* | *'with BFD'*)
15141  symcode='[ABCDGIRSTW]' ;;
15142esac
15143
15144# Try without a prefix undercore, then with it.
15145for ac_symprfx in "" "_"; do
15146
15147  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15148  symxfrm="\\1 $ac_symprfx\\2 \\2"
15149
15150  # Write the raw and C identifiers.
15151  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15152
15153  # Check to see that the pipe works correctly.
15154  pipe_works=no
15155
15156  rm -f conftest*
15157  cat > conftest.$ac_ext <<EOF
15158#ifdef __cplusplus
15159extern "C" {
15160#endif
15161char nm_test_var;
15162void nm_test_func(){}
15163#ifdef __cplusplus
15164}
15165#endif
15166int main(){nm_test_var='a';nm_test_func();return(0);}
15167EOF
15168
15169  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170  (eval $ac_compile) 2>&5
15171  ac_status=$?
15172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173  (exit $ac_status); }; then
15174    # Now try to grab the symbols.
15175    nlist=conftest.nm
15176    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15177  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15178  ac_status=$?
15179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180  (exit $ac_status); } && test -s "$nlist"; then
15181      # Try sorting and uniquifying the output.
15182      if sort "$nlist" | uniq > "$nlist"T; then
15183	mv -f "$nlist"T "$nlist"
15184      else
15185	rm -f "$nlist"T
15186      fi
15187
15188      # Make sure that we snagged all the symbols we need.
15189      if grep ' nm_test_var$' "$nlist" >/dev/null; then
15190	if grep ' nm_test_func$' "$nlist" >/dev/null; then
15191	  cat <<EOF > conftest.$ac_ext
15192#ifdef __cplusplus
15193extern "C" {
15194#endif
15195
15196EOF
15197	  # Now generate the symbol file.
15198	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
15199
15200	  cat <<EOF >> conftest.$ac_ext
15201#if defined (__STDC__) && __STDC__
15202# define lt_ptr_t void *
15203#else
15204# define lt_ptr_t char *
15205# define const
15206#endif
15207
15208/* The mapping between symbol names and symbols. */
15209const struct {
15210  const char *name;
15211  lt_ptr_t address;
15212}
15213lt_preloaded_symbols[] =
15214{
15215EOF
15216	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
15217	  cat <<\EOF >> conftest.$ac_ext
15218  {0, (lt_ptr_t) 0}
15219};
15220
15221#ifdef __cplusplus
15222}
15223#endif
15224EOF
15225	  # Now try linking the two files.
15226	  mv conftest.$ac_objext conftstm.$ac_objext
15227	  lt_save_LIBS="$LIBS"
15228	  lt_save_CFLAGS="$CFLAGS"
15229	  LIBS="conftstm.$ac_objext"
15230	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15231	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232  (eval $ac_link) 2>&5
15233  ac_status=$?
15234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235  (exit $ac_status); } && test -s conftest${ac_exeext}; then
15236	    pipe_works=yes
15237	  fi
15238	  LIBS="$lt_save_LIBS"
15239	  CFLAGS="$lt_save_CFLAGS"
15240	else
15241	  echo "cannot find nm_test_func in $nlist" >&5
15242	fi
15243      else
15244	echo "cannot find nm_test_var in $nlist" >&5
15245      fi
15246    else
15247      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15248    fi
15249  else
15250    echo "$progname: failed program was:" >&5
15251    cat conftest.$ac_ext >&5
15252  fi
15253  rm -f conftest* conftst*
15254
15255  # Do not use the global_symbol_pipe unless it works.
15256  if test "$pipe_works" = yes; then
15257    break
15258  else
15259    lt_cv_sys_global_symbol_pipe=
15260  fi
15261done
15262
15263fi
15264
15265if test -z "$lt_cv_sys_global_symbol_pipe"; then
15266  lt_cv_sys_global_symbol_to_cdecl=
15267fi
15268if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15269  { echo "$as_me:$LINENO: result: failed" >&5
15270echo "${ECHO_T}failed" >&6; }
15271else
15272  { echo "$as_me:$LINENO: result: ok" >&5
15273echo "${ECHO_T}ok" >&6; }
15274fi
15275
15276{ echo "$as_me:$LINENO: checking for objdir" >&5
15277echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
15278if test "${lt_cv_objdir+set}" = set; then
15279  echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281  rm -f .libs 2>/dev/null
15282mkdir .libs 2>/dev/null
15283if test -d .libs; then
15284  lt_cv_objdir=.libs
15285else
15286  # MS-DOS does not allow filenames that begin with a dot.
15287  lt_cv_objdir=_libs
15288fi
15289rmdir .libs 2>/dev/null
15290fi
15291{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15292echo "${ECHO_T}$lt_cv_objdir" >&6; }
15293objdir=$lt_cv_objdir
15294
15295
15296
15297
15298
15299case $host_os in
15300aix3*)
15301  # AIX sometimes has problems with the GCC collect2 program.  For some
15302  # reason, if we set the COLLECT_NAMES environment variable, the problems
15303  # vanish in a puff of smoke.
15304  if test "X${COLLECT_NAMES+set}" != Xset; then
15305    COLLECT_NAMES=
15306    export COLLECT_NAMES
15307  fi
15308  ;;
15309esac
15310
15311# Sed substitution that helps us do robust quoting.  It backslashifies
15312# metacharacters that are still active within double-quoted strings.
15313Xsed='sed -e 1s/^X//'
15314sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
15315
15316# Same as above, but do not quote variable references.
15317double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
15318
15319# Sed substitution to delay expansion of an escaped shell variable in a
15320# double_quote_subst'ed string.
15321delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15322
15323# Sed substitution to avoid accidental globbing in evaled expressions
15324no_glob_subst='s/\*/\\\*/g'
15325
15326# Constants:
15327rm="rm -f"
15328
15329# Global variables:
15330default_ofile=libtool
15331can_build_shared=yes
15332
15333# All known linkers require a `.a' archive for static linking (except MSVC,
15334# which needs '.lib').
15335libext=a
15336ltmain="$ac_aux_dir/ltmain.sh"
15337ofile="$default_ofile"
15338with_gnu_ld="$lt_cv_prog_gnu_ld"
15339
15340if test -n "$ac_tool_prefix"; then
15341  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15342set dummy ${ac_tool_prefix}ar; ac_word=$2
15343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15345if test "${ac_cv_prog_AR+set}" = set; then
15346  echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348  if test -n "$AR"; then
15349  ac_cv_prog_AR="$AR" # Let the user override the test.
15350else
15351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15352for as_dir in $PATH
15353do
15354  IFS=$as_save_IFS
15355  test -z "$as_dir" && as_dir=.
15356  for ac_exec_ext in '' $ac_executable_extensions; do
15357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15358    ac_cv_prog_AR="${ac_tool_prefix}ar"
15359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15360    break 2
15361  fi
15362done
15363done
15364IFS=$as_save_IFS
15365
15366fi
15367fi
15368AR=$ac_cv_prog_AR
15369if test -n "$AR"; then
15370  { echo "$as_me:$LINENO: result: $AR" >&5
15371echo "${ECHO_T}$AR" >&6; }
15372else
15373  { echo "$as_me:$LINENO: result: no" >&5
15374echo "${ECHO_T}no" >&6; }
15375fi
15376
15377
15378fi
15379if test -z "$ac_cv_prog_AR"; then
15380  ac_ct_AR=$AR
15381  # Extract the first word of "ar", so it can be a program name with args.
15382set dummy ar; ac_word=$2
15383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15386  echo $ECHO_N "(cached) $ECHO_C" >&6
15387else
15388  if test -n "$ac_ct_AR"; then
15389  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15390else
15391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392for as_dir in $PATH
15393do
15394  IFS=$as_save_IFS
15395  test -z "$as_dir" && as_dir=.
15396  for ac_exec_ext in '' $ac_executable_extensions; do
15397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15398    ac_cv_prog_ac_ct_AR="ar"
15399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15400    break 2
15401  fi
15402done
15403done
15404IFS=$as_save_IFS
15405
15406fi
15407fi
15408ac_ct_AR=$ac_cv_prog_ac_ct_AR
15409if test -n "$ac_ct_AR"; then
15410  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15411echo "${ECHO_T}$ac_ct_AR" >&6; }
15412else
15413  { echo "$as_me:$LINENO: result: no" >&5
15414echo "${ECHO_T}no" >&6; }
15415fi
15416
15417  if test "x$ac_ct_AR" = x; then
15418    AR="false"
15419  else
15420    case $cross_compiling:$ac_tool_warned in
15421yes:)
15422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15423whose name does not start with the host triplet.  If you think this
15424configuration is useful to you, please write to autoconf@gnu.org." >&5
15425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15426whose name does not start with the host triplet.  If you think this
15427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15428ac_tool_warned=yes ;;
15429esac
15430    AR=$ac_ct_AR
15431  fi
15432else
15433  AR="$ac_cv_prog_AR"
15434fi
15435
15436if test -n "$ac_tool_prefix"; then
15437  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15438set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15441if test "${ac_cv_prog_RANLIB+set}" = set; then
15442  echo $ECHO_N "(cached) $ECHO_C" >&6
15443else
15444  if test -n "$RANLIB"; then
15445  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15446else
15447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448for as_dir in $PATH
15449do
15450  IFS=$as_save_IFS
15451  test -z "$as_dir" && as_dir=.
15452  for ac_exec_ext in '' $ac_executable_extensions; do
15453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15454    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15456    break 2
15457  fi
15458done
15459done
15460IFS=$as_save_IFS
15461
15462fi
15463fi
15464RANLIB=$ac_cv_prog_RANLIB
15465if test -n "$RANLIB"; then
15466  { echo "$as_me:$LINENO: result: $RANLIB" >&5
15467echo "${ECHO_T}$RANLIB" >&6; }
15468else
15469  { echo "$as_me:$LINENO: result: no" >&5
15470echo "${ECHO_T}no" >&6; }
15471fi
15472
15473
15474fi
15475if test -z "$ac_cv_prog_RANLIB"; then
15476  ac_ct_RANLIB=$RANLIB
15477  # Extract the first word of "ranlib", so it can be a program name with args.
15478set dummy ranlib; ac_word=$2
15479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15481if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15482  echo $ECHO_N "(cached) $ECHO_C" >&6
15483else
15484  if test -n "$ac_ct_RANLIB"; then
15485  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15486else
15487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488for as_dir in $PATH
15489do
15490  IFS=$as_save_IFS
15491  test -z "$as_dir" && as_dir=.
15492  for ac_exec_ext in '' $ac_executable_extensions; do
15493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15494    ac_cv_prog_ac_ct_RANLIB="ranlib"
15495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15496    break 2
15497  fi
15498done
15499done
15500IFS=$as_save_IFS
15501
15502fi
15503fi
15504ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15505if test -n "$ac_ct_RANLIB"; then
15506  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15507echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
15508else
15509  { echo "$as_me:$LINENO: result: no" >&5
15510echo "${ECHO_T}no" >&6; }
15511fi
15512
15513  if test "x$ac_ct_RANLIB" = x; then
15514    RANLIB=":"
15515  else
15516    case $cross_compiling:$ac_tool_warned in
15517yes:)
15518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15519whose name does not start with the host triplet.  If you think this
15520configuration is useful to you, please write to autoconf@gnu.org." >&5
15521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15522whose name does not start with the host triplet.  If you think this
15523configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15524ac_tool_warned=yes ;;
15525esac
15526    RANLIB=$ac_ct_RANLIB
15527  fi
15528else
15529  RANLIB="$ac_cv_prog_RANLIB"
15530fi
15531
15532if test -n "$ac_tool_prefix"; then
15533  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15534set dummy ${ac_tool_prefix}strip; ac_word=$2
15535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15537if test "${ac_cv_prog_STRIP+set}" = set; then
15538  echo $ECHO_N "(cached) $ECHO_C" >&6
15539else
15540  if test -n "$STRIP"; then
15541  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15542else
15543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15544for as_dir in $PATH
15545do
15546  IFS=$as_save_IFS
15547  test -z "$as_dir" && as_dir=.
15548  for ac_exec_ext in '' $ac_executable_extensions; do
15549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15550    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15552    break 2
15553  fi
15554done
15555done
15556IFS=$as_save_IFS
15557
15558fi
15559fi
15560STRIP=$ac_cv_prog_STRIP
15561if test -n "$STRIP"; then
15562  { echo "$as_me:$LINENO: result: $STRIP" >&5
15563echo "${ECHO_T}$STRIP" >&6; }
15564else
15565  { echo "$as_me:$LINENO: result: no" >&5
15566echo "${ECHO_T}no" >&6; }
15567fi
15568
15569
15570fi
15571if test -z "$ac_cv_prog_STRIP"; then
15572  ac_ct_STRIP=$STRIP
15573  # Extract the first word of "strip", so it can be a program name with args.
15574set dummy strip; ac_word=$2
15575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15577if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15578  echo $ECHO_N "(cached) $ECHO_C" >&6
15579else
15580  if test -n "$ac_ct_STRIP"; then
15581  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15582else
15583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584for as_dir in $PATH
15585do
15586  IFS=$as_save_IFS
15587  test -z "$as_dir" && as_dir=.
15588  for ac_exec_ext in '' $ac_executable_extensions; do
15589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15590    ac_cv_prog_ac_ct_STRIP="strip"
15591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15592    break 2
15593  fi
15594done
15595done
15596IFS=$as_save_IFS
15597
15598fi
15599fi
15600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15601if test -n "$ac_ct_STRIP"; then
15602  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15603echo "${ECHO_T}$ac_ct_STRIP" >&6; }
15604else
15605  { echo "$as_me:$LINENO: result: no" >&5
15606echo "${ECHO_T}no" >&6; }
15607fi
15608
15609  if test "x$ac_ct_STRIP" = x; then
15610    STRIP=":"
15611  else
15612    case $cross_compiling:$ac_tool_warned in
15613yes:)
15614{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15615whose name does not start with the host triplet.  If you think this
15616configuration is useful to you, please write to autoconf@gnu.org." >&5
15617echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15618whose name does not start with the host triplet.  If you think this
15619configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15620ac_tool_warned=yes ;;
15621esac
15622    STRIP=$ac_ct_STRIP
15623  fi
15624else
15625  STRIP="$ac_cv_prog_STRIP"
15626fi
15627
15628
15629old_CC="$CC"
15630old_CFLAGS="$CFLAGS"
15631
15632# Set sane defaults for various variables
15633test -z "$AR" && AR=ar
15634test -z "$AR_FLAGS" && AR_FLAGS=cru
15635test -z "$AS" && AS=as
15636test -z "$CC" && CC=cc
15637test -z "$LTCC" && LTCC=$CC
15638test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15639test -z "$DLLTOOL" && DLLTOOL=dlltool
15640test -z "$LD" && LD=ld
15641test -z "$LN_S" && LN_S="ln -s"
15642test -z "$MAGIC_CMD" && MAGIC_CMD=file
15643test -z "$NM" && NM=nm
15644test -z "$SED" && SED=sed
15645test -z "$OBJDUMP" && OBJDUMP=objdump
15646test -z "$RANLIB" && RANLIB=:
15647test -z "$STRIP" && STRIP=:
15648test -z "$ac_objext" && ac_objext=o
15649
15650# Determine commands to create old-style static archives.
15651old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15652old_postinstall_cmds='chmod 644 $oldlib'
15653old_postuninstall_cmds=
15654
15655if test -n "$RANLIB"; then
15656  case $host_os in
15657  openbsd*)
15658    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15659    ;;
15660  *)
15661    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15662    ;;
15663  esac
15664  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15665fi
15666
15667for cc_temp in $compiler""; do
15668  case $cc_temp in
15669    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15670    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15671    \-*) ;;
15672    *) break;;
15673  esac
15674done
15675cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15676
15677
15678# Only perform the check for file, if the check method requires it
15679case $deplibs_check_method in
15680file_magic*)
15681  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15682    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15683echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
15684if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15685  echo $ECHO_N "(cached) $ECHO_C" >&6
15686else
15687  case $MAGIC_CMD in
15688[\\/*] |  ?:[\\/]*)
15689  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15690  ;;
15691*)
15692  lt_save_MAGIC_CMD="$MAGIC_CMD"
15693  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15694  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15695  for ac_dir in $ac_dummy; do
15696    IFS="$lt_save_ifs"
15697    test -z "$ac_dir" && ac_dir=.
15698    if test -f $ac_dir/${ac_tool_prefix}file; then
15699      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15700      if test -n "$file_magic_test_file"; then
15701	case $deplibs_check_method in
15702	"file_magic "*)
15703	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15704	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15705	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15706	    $EGREP "$file_magic_regex" > /dev/null; then
15707	    :
15708	  else
15709	    cat <<EOF 1>&2
15710
15711*** Warning: the command libtool uses to detect shared libraries,
15712*** $file_magic_cmd, produces output that libtool cannot recognize.
15713*** The result is that libtool may fail to recognize shared libraries
15714*** as such.  This will affect the creation of libtool libraries that
15715*** depend on shared libraries, but programs linked with such libtool
15716*** libraries will work regardless of this problem.  Nevertheless, you
15717*** may want to report the problem to your system manager and/or to
15718*** bug-libtool@gnu.org
15719
15720EOF
15721	  fi ;;
15722	esac
15723      fi
15724      break
15725    fi
15726  done
15727  IFS="$lt_save_ifs"
15728  MAGIC_CMD="$lt_save_MAGIC_CMD"
15729  ;;
15730esac
15731fi
15732
15733MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15734if test -n "$MAGIC_CMD"; then
15735  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15736echo "${ECHO_T}$MAGIC_CMD" >&6; }
15737else
15738  { echo "$as_me:$LINENO: result: no" >&5
15739echo "${ECHO_T}no" >&6; }
15740fi
15741
15742if test -z "$lt_cv_path_MAGIC_CMD"; then
15743  if test -n "$ac_tool_prefix"; then
15744    { echo "$as_me:$LINENO: checking for file" >&5
15745echo $ECHO_N "checking for file... $ECHO_C" >&6; }
15746if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15747  echo $ECHO_N "(cached) $ECHO_C" >&6
15748else
15749  case $MAGIC_CMD in
15750[\\/*] |  ?:[\\/]*)
15751  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15752  ;;
15753*)
15754  lt_save_MAGIC_CMD="$MAGIC_CMD"
15755  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15756  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15757  for ac_dir in $ac_dummy; do
15758    IFS="$lt_save_ifs"
15759    test -z "$ac_dir" && ac_dir=.
15760    if test -f $ac_dir/file; then
15761      lt_cv_path_MAGIC_CMD="$ac_dir/file"
15762      if test -n "$file_magic_test_file"; then
15763	case $deplibs_check_method in
15764	"file_magic "*)
15765	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15766	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15767	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15768	    $EGREP "$file_magic_regex" > /dev/null; then
15769	    :
15770	  else
15771	    cat <<EOF 1>&2
15772
15773*** Warning: the command libtool uses to detect shared libraries,
15774*** $file_magic_cmd, produces output that libtool cannot recognize.
15775*** The result is that libtool may fail to recognize shared libraries
15776*** as such.  This will affect the creation of libtool libraries that
15777*** depend on shared libraries, but programs linked with such libtool
15778*** libraries will work regardless of this problem.  Nevertheless, you
15779*** may want to report the problem to your system manager and/or to
15780*** bug-libtool@gnu.org
15781
15782EOF
15783	  fi ;;
15784	esac
15785      fi
15786      break
15787    fi
15788  done
15789  IFS="$lt_save_ifs"
15790  MAGIC_CMD="$lt_save_MAGIC_CMD"
15791  ;;
15792esac
15793fi
15794
15795MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15796if test -n "$MAGIC_CMD"; then
15797  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15798echo "${ECHO_T}$MAGIC_CMD" >&6; }
15799else
15800  { echo "$as_me:$LINENO: result: no" >&5
15801echo "${ECHO_T}no" >&6; }
15802fi
15803
15804  else
15805    MAGIC_CMD=:
15806  fi
15807fi
15808
15809  fi
15810  ;;
15811esac
15812
15813enable_dlopen=yes
15814enable_win32_dll=no
15815
15816# Check whether --enable-libtool-lock was given.
15817if test "${enable_libtool_lock+set}" = set; then
15818  enableval=$enable_libtool_lock;
15819fi
15820
15821test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15822
15823
15824# Check whether --with-pic was given.
15825if test "${with_pic+set}" = set; then
15826  withval=$with_pic; pic_mode="$withval"
15827else
15828  pic_mode=default
15829fi
15830
15831test -z "$pic_mode" && pic_mode=default
15832
15833# Use C for the default configuration in the libtool script
15834tagname=
15835lt_save_CC="$CC"
15836ac_ext=c
15837ac_cpp='$CPP $CPPFLAGS'
15838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840ac_compiler_gnu=$ac_cv_c_compiler_gnu
15841
15842
15843# Source file extension for C test sources.
15844ac_ext=c
15845
15846# Object file extension for compiled C test sources.
15847objext=o
15848objext=$objext
15849
15850# Code to be used in simple compile tests
15851lt_simple_compile_test_code="int some_variable = 0;"
15852
15853# Code to be used in simple link tests
15854lt_simple_link_test_code='int main(){return(0);}'
15855
15856
15857# If no C compiler was specified, use CC.
15858LTCC=${LTCC-"$CC"}
15859
15860# If no C compiler flags were specified, use CFLAGS.
15861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15862
15863# Allow CC to be a program name with arguments.
15864compiler=$CC
15865
15866
15867# save warnings/boilerplate of simple test code
15868ac_outfile=conftest.$ac_objext
15869echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15871_lt_compiler_boilerplate=`cat conftest.err`
15872$rm conftest*
15873
15874ac_outfile=conftest.$ac_objext
15875echo "$lt_simple_link_test_code" >conftest.$ac_ext
15876eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15877_lt_linker_boilerplate=`cat conftest.err`
15878$rm conftest*
15879
15880
15881
15882lt_prog_compiler_no_builtin_flag=
15883
15884if test "$GCC" = yes; then
15885  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15886
15887
15888{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15889echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15890if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15891  echo $ECHO_N "(cached) $ECHO_C" >&6
15892else
15893  lt_cv_prog_compiler_rtti_exceptions=no
15894  ac_outfile=conftest.$ac_objext
15895   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15896   lt_compiler_flag="-fno-rtti -fno-exceptions"
15897   # Insert the option either (1) after the last *FLAGS variable, or
15898   # (2) before a word containing "conftest.", or (3) at the end.
15899   # Note that $ac_compile itself does not contain backslashes and begins
15900   # with a dollar sign (not a hyphen), so the echo should work correctly.
15901   # The option is referenced via a variable to avoid confusing sed.
15902   lt_compile=`echo "$ac_compile" | $SED \
15903   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15904   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15905   -e 's:$: $lt_compiler_flag:'`
15906   (eval echo "\"\$as_me:15906: $lt_compile\"" >&5)
15907   (eval "$lt_compile" 2>conftest.err)
15908   ac_status=$?
15909   cat conftest.err >&5
15910   echo "$as_me:15910: \$? = $ac_status" >&5
15911   if (exit $ac_status) && test -s "$ac_outfile"; then
15912     # The compiler can only warn and ignore the option if not recognized
15913     # So say no if there are warnings other than the usual output.
15914     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15915     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15916     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15917       lt_cv_prog_compiler_rtti_exceptions=yes
15918     fi
15919   fi
15920   $rm conftest*
15921
15922fi
15923{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15924echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15925
15926if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15927    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15928else
15929    :
15930fi
15931
15932fi
15933
15934lt_prog_compiler_wl=
15935lt_prog_compiler_pic=
15936lt_prog_compiler_static=
15937
15938{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15939echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15940
15941  if test "$GCC" = yes; then
15942    lt_prog_compiler_wl='-Wl,'
15943    lt_prog_compiler_static='-static'
15944
15945    case $host_os in
15946      aix*)
15947      # All AIX code is PIC.
15948      if test "$host_cpu" = ia64; then
15949	# AIX 5 now supports IA64 processor
15950	lt_prog_compiler_static='-Bstatic'
15951      fi
15952      ;;
15953
15954    amigaos*)
15955      # FIXME: we need at least 68020 code to build shared libraries, but
15956      # adding the `-m68020' flag to GCC prevents building anything better,
15957      # like `-m68040'.
15958      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15959      ;;
15960
15961    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15962      # PIC is the default for these OSes.
15963      ;;
15964
15965    mingw* | cygwin* | pw32* | os2*)
15966      # This hack is so that the source file can tell whether it is being
15967      # built for inclusion in a dll (and should export symbols for example).
15968      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15969      # (--disable-auto-import) libraries
15970      lt_prog_compiler_pic='-DDLL_EXPORT'
15971      ;;
15972
15973    darwin* | rhapsody*)
15974      # PIC is the default on this platform
15975      # Common symbols not allowed in MH_DYLIB files
15976      lt_prog_compiler_pic='-fno-common'
15977      ;;
15978
15979    interix[3-9]*)
15980      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15981      # Instead, we relocate shared libraries at runtime.
15982      ;;
15983
15984    msdosdjgpp*)
15985      # Just because we use GCC doesn't mean we suddenly get shared libraries
15986      # on systems that don't support them.
15987      lt_prog_compiler_can_build_shared=no
15988      enable_shared=no
15989      ;;
15990
15991    sysv4*MP*)
15992      if test -d /usr/nec; then
15993	lt_prog_compiler_pic=-Kconform_pic
15994      fi
15995      ;;
15996
15997    hpux*)
15998      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15999      # not for PA HP-UX.
16000      case $host_cpu in
16001      hppa*64*|ia64*)
16002	# +Z the default
16003	;;
16004      *)
16005	lt_prog_compiler_pic='-fPIC'
16006	;;
16007      esac
16008      ;;
16009
16010    *)
16011      lt_prog_compiler_pic='-fPIC'
16012      ;;
16013    esac
16014  else
16015    # PORTME Check for flag to pass linker flags through the system compiler.
16016    case $host_os in
16017    aix*)
16018      lt_prog_compiler_wl='-Wl,'
16019      if test "$host_cpu" = ia64; then
16020	# AIX 5 now supports IA64 processor
16021	lt_prog_compiler_static='-Bstatic'
16022      else
16023	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16024      fi
16025      ;;
16026      darwin*)
16027        # PIC is the default on this platform
16028        # Common symbols not allowed in MH_DYLIB files
16029       case $cc_basename in
16030         xlc*)
16031         lt_prog_compiler_pic='-qnocommon'
16032         lt_prog_compiler_wl='-Wl,'
16033         ;;
16034       esac
16035       ;;
16036
16037    mingw* | cygwin* | pw32* | os2*)
16038      # This hack is so that the source file can tell whether it is being
16039      # built for inclusion in a dll (and should export symbols for example).
16040      lt_prog_compiler_pic='-DDLL_EXPORT'
16041      ;;
16042
16043    hpux9* | hpux10* | hpux11*)
16044      lt_prog_compiler_wl='-Wl,'
16045      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16046      # not for PA HP-UX.
16047      case $host_cpu in
16048      hppa*64*|ia64*)
16049	# +Z the default
16050	;;
16051      *)
16052	lt_prog_compiler_pic='+Z'
16053	;;
16054      esac
16055      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16056      lt_prog_compiler_static='${wl}-a ${wl}archive'
16057      ;;
16058
16059    irix5* | irix6* | nonstopux*)
16060      lt_prog_compiler_wl='-Wl,'
16061      # PIC (with -KPIC) is the default.
16062      lt_prog_compiler_static='-non_shared'
16063      ;;
16064
16065    newsos6)
16066      lt_prog_compiler_pic='-KPIC'
16067      lt_prog_compiler_static='-Bstatic'
16068      ;;
16069
16070    linux* | k*bsd*-gnu)
16071      case $cc_basename in
16072      icc* | ecc*)
16073	lt_prog_compiler_wl='-Wl,'
16074	lt_prog_compiler_pic='-KPIC'
16075	lt_prog_compiler_static='-static'
16076        ;;
16077      pgcc* | pgf77* | pgf90* | pgf95*)
16078        # Portland Group compilers (*not* the Pentium gcc compiler,
16079	# which looks to be a dead project)
16080	lt_prog_compiler_wl='-Wl,'
16081	lt_prog_compiler_pic='-fpic'
16082	lt_prog_compiler_static='-Bstatic'
16083        ;;
16084      ccc*)
16085        lt_prog_compiler_wl='-Wl,'
16086        # All Alpha code is PIC.
16087        lt_prog_compiler_static='-non_shared'
16088        ;;
16089      *)
16090        case `$CC -V 2>&1 | sed 5q` in
16091	*Sun\ C*)
16092	  # Sun C 5.9
16093	  lt_prog_compiler_pic='-KPIC'
16094	  lt_prog_compiler_static='-Bstatic'
16095	  lt_prog_compiler_wl='-Wl,'
16096	  ;;
16097	*Sun\ F*)
16098	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16099	  lt_prog_compiler_pic='-KPIC'
16100	  lt_prog_compiler_static='-Bstatic'
16101	  lt_prog_compiler_wl=''
16102	  ;;
16103	esac
16104	;;
16105      esac
16106      ;;
16107
16108    osf3* | osf4* | osf5*)
16109      lt_prog_compiler_wl='-Wl,'
16110      # All OSF/1 code is PIC.
16111      lt_prog_compiler_static='-non_shared'
16112      ;;
16113
16114    rdos*)
16115      lt_prog_compiler_static='-non_shared'
16116      ;;
16117
16118    solaris*)
16119      lt_prog_compiler_pic='-KPIC'
16120      lt_prog_compiler_static='-Bstatic'
16121      case $cc_basename in
16122      f77* | f90* | f95*)
16123	lt_prog_compiler_wl='-Qoption ld ';;
16124      *)
16125	lt_prog_compiler_wl='-Wl,';;
16126      esac
16127      ;;
16128
16129    sunos4*)
16130      lt_prog_compiler_wl='-Qoption ld '
16131      lt_prog_compiler_pic='-PIC'
16132      lt_prog_compiler_static='-Bstatic'
16133      ;;
16134
16135    sysv4 | sysv4.2uw2* | sysv4.3*)
16136      lt_prog_compiler_wl='-Wl,'
16137      lt_prog_compiler_pic='-KPIC'
16138      lt_prog_compiler_static='-Bstatic'
16139      ;;
16140
16141    sysv4*MP*)
16142      if test -d /usr/nec ;then
16143	lt_prog_compiler_pic='-Kconform_pic'
16144	lt_prog_compiler_static='-Bstatic'
16145      fi
16146      ;;
16147
16148    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16149      lt_prog_compiler_wl='-Wl,'
16150      lt_prog_compiler_pic='-KPIC'
16151      lt_prog_compiler_static='-Bstatic'
16152      ;;
16153
16154    unicos*)
16155      lt_prog_compiler_wl='-Wl,'
16156      lt_prog_compiler_can_build_shared=no
16157      ;;
16158
16159    uts4*)
16160      lt_prog_compiler_pic='-pic'
16161      lt_prog_compiler_static='-Bstatic'
16162      ;;
16163
16164    *)
16165      lt_prog_compiler_can_build_shared=no
16166      ;;
16167    esac
16168  fi
16169
16170{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16171echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
16172
16173#
16174# Check to make sure the PIC flag actually works.
16175#
16176if test -n "$lt_prog_compiler_pic"; then
16177
16178{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16179echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
16180if test "${lt_prog_compiler_pic_works+set}" = set; then
16181  echo $ECHO_N "(cached) $ECHO_C" >&6
16182else
16183  lt_prog_compiler_pic_works=no
16184  ac_outfile=conftest.$ac_objext
16185   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16186   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16187   # Insert the option either (1) after the last *FLAGS variable, or
16188   # (2) before a word containing "conftest.", or (3) at the end.
16189   # Note that $ac_compile itself does not contain backslashes and begins
16190   # with a dollar sign (not a hyphen), so the echo should work correctly.
16191   # The option is referenced via a variable to avoid confusing sed.
16192   lt_compile=`echo "$ac_compile" | $SED \
16193   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16194   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16195   -e 's:$: $lt_compiler_flag:'`
16196   (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
16197   (eval "$lt_compile" 2>conftest.err)
16198   ac_status=$?
16199   cat conftest.err >&5
16200   echo "$as_me:16200: \$? = $ac_status" >&5
16201   if (exit $ac_status) && test -s "$ac_outfile"; then
16202     # The compiler can only warn and ignore the option if not recognized
16203     # So say no if there are warnings other than the usual output.
16204     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16205     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16206     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16207       lt_prog_compiler_pic_works=yes
16208     fi
16209   fi
16210   $rm conftest*
16211
16212fi
16213{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16214echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
16215
16216if test x"$lt_prog_compiler_pic_works" = xyes; then
16217    case $lt_prog_compiler_pic in
16218     "" | " "*) ;;
16219     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16220     esac
16221else
16222    lt_prog_compiler_pic=
16223     lt_prog_compiler_can_build_shared=no
16224fi
16225
16226fi
16227case $host_os in
16228  # For platforms which do not support PIC, -DPIC is meaningless:
16229  *djgpp*)
16230    lt_prog_compiler_pic=
16231    ;;
16232  *)
16233    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16234    ;;
16235esac
16236
16237#
16238# Check to make sure the static flag actually works.
16239#
16240wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16241{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16242echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16243if test "${lt_prog_compiler_static_works+set}" = set; then
16244  echo $ECHO_N "(cached) $ECHO_C" >&6
16245else
16246  lt_prog_compiler_static_works=no
16247   save_LDFLAGS="$LDFLAGS"
16248   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16249   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16250   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251     # The linker can only warn and ignore the option if not recognized
16252     # So say no if there are warnings
16253     if test -s conftest.err; then
16254       # Append any errors to the config.log.
16255       cat conftest.err 1>&5
16256       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16257       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258       if diff conftest.exp conftest.er2 >/dev/null; then
16259         lt_prog_compiler_static_works=yes
16260       fi
16261     else
16262       lt_prog_compiler_static_works=yes
16263     fi
16264   fi
16265   $rm conftest*
16266   LDFLAGS="$save_LDFLAGS"
16267
16268fi
16269{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16270echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
16271
16272if test x"$lt_prog_compiler_static_works" = xyes; then
16273    :
16274else
16275    lt_prog_compiler_static=
16276fi
16277
16278
16279{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16280echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16281if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16282  echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284  lt_cv_prog_compiler_c_o=no
16285   $rm -r conftest 2>/dev/null
16286   mkdir conftest
16287   cd conftest
16288   mkdir out
16289   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16290
16291   lt_compiler_flag="-o out/conftest2.$ac_objext"
16292   # Insert the option either (1) after the last *FLAGS variable, or
16293   # (2) before a word containing "conftest.", or (3) at the end.
16294   # Note that $ac_compile itself does not contain backslashes and begins
16295   # with a dollar sign (not a hyphen), so the echo should work correctly.
16296   lt_compile=`echo "$ac_compile" | $SED \
16297   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16298   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16299   -e 's:$: $lt_compiler_flag:'`
16300   (eval echo "\"\$as_me:16300: $lt_compile\"" >&5)
16301   (eval "$lt_compile" 2>out/conftest.err)
16302   ac_status=$?
16303   cat out/conftest.err >&5
16304   echo "$as_me:16304: \$? = $ac_status" >&5
16305   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16306   then
16307     # The compiler can only warn and ignore the option if not recognized
16308     # So say no if there are warnings
16309     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16310     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16311     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16312       lt_cv_prog_compiler_c_o=yes
16313     fi
16314   fi
16315   chmod u+w . 2>&5
16316   $rm conftest*
16317   # SGI C++ compiler will create directory out/ii_files/ for
16318   # template instantiation
16319   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16320   $rm out/* && rmdir out
16321   cd ..
16322   rmdir conftest
16323   $rm conftest*
16324
16325fi
16326{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16327echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
16328
16329
16330hard_links="nottested"
16331if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16332  # do not overwrite the value of need_locks provided by the user
16333  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16334echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16335  hard_links=yes
16336  $rm conftest*
16337  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16338  touch conftest.a
16339  ln conftest.a conftest.b 2>&5 || hard_links=no
16340  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16341  { echo "$as_me:$LINENO: result: $hard_links" >&5
16342echo "${ECHO_T}$hard_links" >&6; }
16343  if test "$hard_links" = no; then
16344    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16345echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16346    need_locks=warn
16347  fi
16348else
16349  need_locks=no
16350fi
16351
16352{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16353echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16354
16355  runpath_var=
16356  allow_undefined_flag=
16357  enable_shared_with_static_runtimes=no
16358  archive_cmds=
16359  archive_expsym_cmds=
16360  old_archive_From_new_cmds=
16361  old_archive_from_expsyms_cmds=
16362  export_dynamic_flag_spec=
16363  whole_archive_flag_spec=
16364  thread_safe_flag_spec=
16365  hardcode_libdir_flag_spec=
16366  hardcode_libdir_flag_spec_ld=
16367  hardcode_libdir_separator=
16368  hardcode_direct=no
16369  hardcode_minus_L=no
16370  hardcode_shlibpath_var=unsupported
16371  link_all_deplibs=unknown
16372  hardcode_automatic=no
16373  module_cmds=
16374  module_expsym_cmds=
16375  always_export_symbols=no
16376  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377  # include_expsyms should be a list of space-separated symbols to be *always*
16378  # included in the symbol list
16379  include_expsyms=
16380  # exclude_expsyms can be an extended regexp of symbols to exclude
16381  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16382  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16383  # as well as any symbol that contains `d'.
16384  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16385  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16386  # platforms (ab)use it in PIC code, but their linkers get confused if
16387  # the symbol is explicitly referenced.  Since portable code cannot
16388  # rely on this symbol name, it's probably fine to never include it in
16389  # preloaded symbol tables.
16390  extract_expsyms_cmds=
16391  # Just being paranoid about ensuring that cc_basename is set.
16392  for cc_temp in $compiler""; do
16393  case $cc_temp in
16394    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16395    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16396    \-*) ;;
16397    *) break;;
16398  esac
16399done
16400cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16401
16402  case $host_os in
16403  cygwin* | mingw* | pw32*)
16404    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16405    # When not using gcc, we currently assume that we are using
16406    # Microsoft Visual C++.
16407    if test "$GCC" != yes; then
16408      with_gnu_ld=no
16409    fi
16410    ;;
16411  interix*)
16412    # we just hope/assume this is gcc and not c89 (= MSVC++)
16413    with_gnu_ld=yes
16414    ;;
16415  openbsd*)
16416    with_gnu_ld=no
16417    ;;
16418  esac
16419
16420  ld_shlibs=yes
16421  if test "$with_gnu_ld" = yes; then
16422    # If archive_cmds runs LD, not CC, wlarc should be empty
16423    wlarc='${wl}'
16424
16425    # Set some defaults for GNU ld with shared library support. These
16426    # are reset later if shared libraries are not supported. Putting them
16427    # here allows them to be overridden if necessary.
16428    runpath_var=LD_RUN_PATH
16429    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
16430    export_dynamic_flag_spec='${wl}--export-dynamic'
16431    # ancient GNU ld didn't support --whole-archive et. al.
16432    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16433	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16434      else
16435  	whole_archive_flag_spec=
16436    fi
16437    supports_anon_versioning=no
16438    case `$LD -v 2>/dev/null` in
16439      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16440      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16441      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16442      *\ 2.11.*) ;; # other 2.11 versions
16443      *) supports_anon_versioning=yes ;;
16444    esac
16445
16446    # See if GNU ld supports shared libraries.
16447    case $host_os in
16448    aix3* | aix4* | aix5*)
16449      # On AIX/PPC, the GNU linker is very broken
16450      if test "$host_cpu" != ia64; then
16451	ld_shlibs=no
16452	cat <<EOF 1>&2
16453
16454*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16455*** to be unable to reliably create shared libraries on AIX.
16456*** Therefore, libtool is disabling shared libraries support.  If you
16457*** really care for shared libraries, you may want to modify your PATH
16458*** so that a non-GNU linker is found, and then restart.
16459
16460EOF
16461      fi
16462      ;;
16463
16464    amigaos*)
16465      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)'
16466      hardcode_libdir_flag_spec='-L$libdir'
16467      hardcode_minus_L=yes
16468
16469      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16470      # that the semantics of dynamic libraries on AmigaOS, at least up
16471      # to version 4, is to share data among multiple programs linked
16472      # with the same dynamic library.  Since this doesn't match the
16473      # behavior of shared libraries on other platforms, we can't use
16474      # them.
16475      ld_shlibs=no
16476      ;;
16477
16478    beos*)
16479      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16480	allow_undefined_flag=unsupported
16481	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16482	# support --undefined.  This deserves some investigation.  FIXME
16483	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484      else
16485	ld_shlibs=no
16486      fi
16487      ;;
16488
16489    cygwin* | mingw* | pw32*)
16490      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16491      # as there is no search path for DLLs.
16492      hardcode_libdir_flag_spec='-L$libdir'
16493      allow_undefined_flag=unsupported
16494      always_export_symbols=no
16495      enable_shared_with_static_runtimes=yes
16496      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16497
16498      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16499        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16500	# If the export-symbols file already is a .def file (1st line
16501	# is EXPORTS), use it as is; otherwise, prepend...
16502	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16503	  cp $export_symbols $output_objdir/$soname.def;
16504	else
16505	  echo EXPORTS > $output_objdir/$soname.def;
16506	  cat $export_symbols >> $output_objdir/$soname.def;
16507	fi~
16508	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16509      else
16510	ld_shlibs=no
16511      fi
16512      ;;
16513
16514    interix[3-9]*)
16515      hardcode_direct=no
16516      hardcode_shlibpath_var=no
16517      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16518      export_dynamic_flag_spec='${wl}-E'
16519      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16520      # Instead, shared libraries are loaded at an image base (0x10000000 by
16521      # default) and relocated if they conflict, which is a slow very memory
16522      # consuming and fragmenting process.  To avoid this, we pick a random,
16523      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16524      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16525      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16526      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'
16527      ;;
16528
16529    gnu* | linux* | k*bsd*-gnu)
16530      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16531	tmp_addflag=
16532	case $cc_basename,$host_cpu in
16533	pgcc*)				# Portland Group C compiler
16534	  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'
16535	  tmp_addflag=' $pic_flag'
16536	  ;;
16537	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16538	  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'
16539	  tmp_addflag=' $pic_flag -Mnomain' ;;
16540	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16541	  tmp_addflag=' -i_dynamic' ;;
16542	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16543	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16544	ifc* | ifort*)			# Intel Fortran compiler
16545	  tmp_addflag=' -nofor_main' ;;
16546	esac
16547	case `$CC -V 2>&1 | sed 5q` in
16548	*Sun\ C*)			# Sun C 5.9
16549	  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'
16550	  tmp_sharedflag='-G' ;;
16551	*Sun\ F*)			# Sun Fortran 8.3
16552	  tmp_sharedflag='-G' ;;
16553	*)
16554	  tmp_sharedflag='-shared' ;;
16555	esac
16556	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16557
16558	if test $supports_anon_versioning = yes; then
16559	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16560  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16561  $echo "local: *; };" >> $output_objdir/$libname.ver~
16562	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16563	fi
16564      else
16565	ld_shlibs=no
16566      fi
16567      ;;
16568
16569    netbsd*)
16570      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16571	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16572	wlarc=
16573      else
16574	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16575	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16576      fi
16577      ;;
16578
16579    solaris*)
16580      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16581	ld_shlibs=no
16582	cat <<EOF 1>&2
16583
16584*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16585*** create shared libraries on Solaris systems.  Therefore, libtool
16586*** is disabling shared libraries support.  We urge you to upgrade GNU
16587*** binutils to release 2.9.1 or newer.  Another option is to modify
16588*** your PATH or compiler configuration so that the native linker is
16589*** used, and then restart.
16590
16591EOF
16592      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16593	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16595      else
16596	ld_shlibs=no
16597      fi
16598      ;;
16599
16600    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16601      case `$LD -v 2>&1` in
16602        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16603	ld_shlibs=no
16604	cat <<_LT_EOF 1>&2
16605
16606*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16607*** reliably create shared libraries on SCO systems.  Therefore, libtool
16608*** is disabling shared libraries support.  We urge you to upgrade GNU
16609*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16610*** your PATH or compiler configuration so that the native linker is
16611*** used, and then restart.
16612
16613_LT_EOF
16614	;;
16615	*)
16616	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16617	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16618	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16619	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16620	  else
16621	    ld_shlibs=no
16622	  fi
16623	;;
16624      esac
16625      ;;
16626
16627    sunos4*)
16628      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16629      wlarc=
16630      hardcode_direct=yes
16631      hardcode_shlibpath_var=no
16632      ;;
16633
16634    *)
16635      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16636	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16637	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16638      else
16639	ld_shlibs=no
16640      fi
16641      ;;
16642    esac
16643
16644    if test "$ld_shlibs" = no; then
16645      runpath_var=
16646      hardcode_libdir_flag_spec=
16647      export_dynamic_flag_spec=
16648      whole_archive_flag_spec=
16649    fi
16650  else
16651    # PORTME fill in a description of your system's linker (not GNU ld)
16652    case $host_os in
16653    aix3*)
16654      allow_undefined_flag=unsupported
16655      always_export_symbols=yes
16656      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'
16657      # Note: this linker hardcodes the directories in LIBPATH if there
16658      # are no directories specified by -L.
16659      hardcode_minus_L=yes
16660      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16661	# Neither direct hardcoding nor static linking is supported with a
16662	# broken collect2.
16663	hardcode_direct=unsupported
16664      fi
16665      ;;
16666
16667    aix4* | aix5*)
16668      if test "$host_cpu" = ia64; then
16669	# On IA64, the linker does run time linking by default, so we don't
16670	# have to do anything special.
16671	aix_use_runtimelinking=no
16672	exp_sym_flag='-Bexport'
16673	no_entry_flag=""
16674      else
16675	# If we're using GNU nm, then we don't want the "-C" option.
16676	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16677	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16678	  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'
16679	else
16680	  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'
16681	fi
16682	aix_use_runtimelinking=no
16683
16684	# Test if we are trying to use run time linking or normal
16685	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16686	# need to do runtime linking.
16687	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16688	  for ld_flag in $LDFLAGS; do
16689  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16690  	    aix_use_runtimelinking=yes
16691  	    break
16692  	  fi
16693	  done
16694	  ;;
16695	esac
16696
16697	exp_sym_flag='-bexport'
16698	no_entry_flag='-bnoentry'
16699      fi
16700
16701      # When large executables or shared objects are built, AIX ld can
16702      # have problems creating the table of contents.  If linking a library
16703      # or program results in "error TOC overflow" add -mminimal-toc to
16704      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16705      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16706
16707      archive_cmds=''
16708      hardcode_direct=yes
16709      hardcode_libdir_separator=':'
16710      link_all_deplibs=yes
16711
16712      if test "$GCC" = yes; then
16713	case $host_os in aix4.[012]|aix4.[012].*)
16714	# We only want to do this on AIX 4.2 and lower, the check
16715	# below for broken collect2 doesn't work under 4.3+
16716	  collect2name=`${CC} -print-prog-name=collect2`
16717	  if test -f "$collect2name" && \
16718  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16719	  then
16720  	  # We have reworked collect2
16721  	  :
16722	  else
16723  	  # We have old collect2
16724  	  hardcode_direct=unsupported
16725  	  # It fails to find uninstalled libraries when the uninstalled
16726  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16727  	  # to unsupported forces relinking
16728  	  hardcode_minus_L=yes
16729  	  hardcode_libdir_flag_spec='-L$libdir'
16730  	  hardcode_libdir_separator=
16731	  fi
16732	  ;;
16733	esac
16734	shared_flag='-shared'
16735	if test "$aix_use_runtimelinking" = yes; then
16736	  shared_flag="$shared_flag "'${wl}-G'
16737	fi
16738      else
16739	# not using gcc
16740	if test "$host_cpu" = ia64; then
16741  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16742  	# chokes on -Wl,-G. The following line is correct:
16743	  shared_flag='-G'
16744	else
16745	  if test "$aix_use_runtimelinking" = yes; then
16746	    shared_flag='${wl}-G'
16747	  else
16748	    shared_flag='${wl}-bM:SRE'
16749	  fi
16750	fi
16751      fi
16752
16753      # It seems that -bexpall does not export symbols beginning with
16754      # underscore (_), so it is better to generate a list of symbols to export.
16755      always_export_symbols=yes
16756      if test "$aix_use_runtimelinking" = yes; then
16757	# Warning - without using the other runtime loading flags (-brtl),
16758	# -berok will link without error, but may produce a broken library.
16759	allow_undefined_flag='-berok'
16760       # Determine the default libpath from the value encoded in an empty executable.
16761       cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h.  */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h.  */
16767
16768int
16769main ()
16770{
16771
16772  ;
16773  return 0;
16774}
16775_ACEOF
16776rm -f conftest.$ac_objext conftest$ac_exeext
16777if { (ac_try="$ac_link"
16778case "(($ac_try" in
16779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780  *) ac_try_echo=$ac_try;;
16781esac
16782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783  (eval "$ac_link") 2>conftest.er1
16784  ac_status=$?
16785  grep -v '^ *+' conftest.er1 >conftest.err
16786  rm -f conftest.er1
16787  cat conftest.err >&5
16788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789  (exit $ac_status); } && {
16790	 test -z "$ac_c_werror_flag" ||
16791	 test ! -s conftest.err
16792       } && test -s conftest$ac_exeext &&
16793       $as_test_x conftest$ac_exeext; then
16794
16795lt_aix_libpath_sed='
16796    /Import File Strings/,/^$/ {
16797	/^0/ {
16798	    s/^0  *\(.*\)$/\1/
16799	    p
16800	}
16801    }'
16802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16803# Check for a 64-bit object if we didn't find anything.
16804if test -z "$aix_libpath"; then
16805  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16806fi
16807else
16808  echo "$as_me: failed program was:" >&5
16809sed 's/^/| /' conftest.$ac_ext >&5
16810
16811
16812fi
16813
16814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16815      conftest$ac_exeext conftest.$ac_ext
16816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16817
16818       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16819	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"
16820       else
16821	if test "$host_cpu" = ia64; then
16822	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16823	  allow_undefined_flag="-z nodefs"
16824	  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"
16825	else
16826	 # Determine the default libpath from the value encoded in an empty executable.
16827	 cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h.  */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h.  */
16833
16834int
16835main ()
16836{
16837
16838  ;
16839  return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext conftest$ac_exeext
16843if { (ac_try="$ac_link"
16844case "(($ac_try" in
16845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846  *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849  (eval "$ac_link") 2>conftest.er1
16850  ac_status=$?
16851  grep -v '^ *+' conftest.er1 >conftest.err
16852  rm -f conftest.er1
16853  cat conftest.err >&5
16854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855  (exit $ac_status); } && {
16856	 test -z "$ac_c_werror_flag" ||
16857	 test ! -s conftest.err
16858       } && test -s conftest$ac_exeext &&
16859       $as_test_x conftest$ac_exeext; then
16860
16861lt_aix_libpath_sed='
16862    /Import File Strings/,/^$/ {
16863	/^0/ {
16864	    s/^0  *\(.*\)$/\1/
16865	    p
16866	}
16867    }'
16868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16869# Check for a 64-bit object if we didn't find anything.
16870if test -z "$aix_libpath"; then
16871  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16872fi
16873else
16874  echo "$as_me: failed program was:" >&5
16875sed 's/^/| /' conftest.$ac_ext >&5
16876
16877
16878fi
16879
16880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881      conftest$ac_exeext conftest.$ac_ext
16882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16883
16884	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16885	  # Warning - without using the other run time loading flags,
16886	  # -berok will link without error, but may produce a broken library.
16887	  no_undefined_flag=' ${wl}-bernotok'
16888	  allow_undefined_flag=' ${wl}-berok'
16889	  # Exported symbols can be pulled into shared objects from archives
16890	  whole_archive_flag_spec='$convenience'
16891	  archive_cmds_need_lc=yes
16892	  # This is similar to how AIX traditionally builds its shared libraries.
16893	  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'
16894	fi
16895      fi
16896      ;;
16897
16898    amigaos*)
16899      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)'
16900      hardcode_libdir_flag_spec='-L$libdir'
16901      hardcode_minus_L=yes
16902      # see comment about different semantics on the GNU ld section
16903      ld_shlibs=no
16904      ;;
16905
16906    bsdi[45]*)
16907      export_dynamic_flag_spec=-rdynamic
16908      ;;
16909
16910    cygwin* | mingw* | pw32*)
16911      # When not using gcc, we currently assume that we are using
16912      # Microsoft Visual C++.
16913      # hardcode_libdir_flag_spec is actually meaningless, as there is
16914      # no search path for DLLs.
16915      hardcode_libdir_flag_spec=' '
16916      allow_undefined_flag=unsupported
16917      # Tell ltmain to make .lib files, not .a files.
16918      libext=lib
16919      # Tell ltmain to make .dll files, not .so files.
16920      shrext_cmds=".dll"
16921      # FIXME: Setting linknames here is a bad hack.
16922      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16923      # The linker will automatically build a .lib file if we build a DLL.
16924      old_archive_From_new_cmds='true'
16925      # FIXME: Should let the user specify the lib program.
16926      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16927      fix_srcfile_path='`cygpath -w "$srcfile"`'
16928      enable_shared_with_static_runtimes=yes
16929      ;;
16930
16931    darwin* | rhapsody*)
16932      case $host_os in
16933        rhapsody* | darwin1.[012])
16934         allow_undefined_flag='${wl}-undefined ${wl}suppress'
16935         ;;
16936       *) # Darwin 1.3 on
16937         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16938           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16939         else
16940           case ${MACOSX_DEPLOYMENT_TARGET} in
16941             10.[012])
16942               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16943               ;;
16944             10.*)
16945               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16946               ;;
16947           esac
16948         fi
16949         ;;
16950      esac
16951      archive_cmds_need_lc=no
16952      hardcode_direct=no
16953      hardcode_automatic=yes
16954      hardcode_shlibpath_var=unsupported
16955      whole_archive_flag_spec=''
16956      link_all_deplibs=yes
16957    if test "$GCC" = yes ; then
16958    	output_verbose_link_cmd='echo'
16959        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16960      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16961      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16962      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}'
16963      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}'
16964    else
16965      case $cc_basename in
16966        xlc*)
16967         output_verbose_link_cmd='echo'
16968         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16969         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16970          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16971         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}'
16972          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}'
16973          ;;
16974       *)
16975         ld_shlibs=no
16976          ;;
16977      esac
16978    fi
16979      ;;
16980
16981    dgux*)
16982      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983      hardcode_libdir_flag_spec='-L$libdir'
16984      hardcode_shlibpath_var=no
16985      ;;
16986
16987    freebsd1*)
16988      ld_shlibs=no
16989      ;;
16990
16991    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16992    # support.  Future versions do this automatically, but an explicit c++rt0.o
16993    # does not break anything, and helps significantly (at the cost of a little
16994    # extra space).
16995    freebsd2.2*)
16996      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16997      hardcode_libdir_flag_spec='-R$libdir'
16998      hardcode_direct=yes
16999      hardcode_shlibpath_var=no
17000      ;;
17001
17002    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17003    freebsd2*)
17004      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17005      hardcode_direct=yes
17006      hardcode_minus_L=yes
17007      hardcode_shlibpath_var=no
17008      ;;
17009
17010    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17011    freebsd* | dragonfly*)
17012      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17013      hardcode_libdir_flag_spec='-R$libdir'
17014      hardcode_direct=yes
17015      hardcode_shlibpath_var=no
17016      ;;
17017
17018    hpux9*)
17019      if test "$GCC" = yes; then
17020	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'
17021      else
17022	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'
17023      fi
17024      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17025      hardcode_libdir_separator=:
17026      hardcode_direct=yes
17027
17028      # hardcode_minus_L: Not really in the search PATH,
17029      # but as the default location of the library.
17030      hardcode_minus_L=yes
17031      export_dynamic_flag_spec='${wl}-E'
17032      ;;
17033
17034    hpux10*)
17035      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17036	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17037      else
17038	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17039      fi
17040      if test "$with_gnu_ld" = no; then
17041	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17042	hardcode_libdir_separator=:
17043
17044	hardcode_direct=yes
17045	export_dynamic_flag_spec='${wl}-E'
17046
17047	# hardcode_minus_L: Not really in the search PATH,
17048	# but as the default location of the library.
17049	hardcode_minus_L=yes
17050      fi
17051      ;;
17052
17053    hpux11*)
17054      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17055	case $host_cpu in
17056	hppa*64*)
17057	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17058	  ;;
17059	ia64*)
17060	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17061	  ;;
17062	*)
17063	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17064	  ;;
17065	esac
17066      else
17067	case $host_cpu in
17068	hppa*64*)
17069	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17070	  ;;
17071	ia64*)
17072	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17073	  ;;
17074	*)
17075	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17076	  ;;
17077	esac
17078      fi
17079      if test "$with_gnu_ld" = no; then
17080	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17081	hardcode_libdir_separator=:
17082
17083	case $host_cpu in
17084	hppa*64*|ia64*)
17085	  hardcode_libdir_flag_spec_ld='+b $libdir'
17086	  hardcode_direct=no
17087	  hardcode_shlibpath_var=no
17088	  ;;
17089	*)
17090	  hardcode_direct=yes
17091	  export_dynamic_flag_spec='${wl}-E'
17092
17093	  # hardcode_minus_L: Not really in the search PATH,
17094	  # but as the default location of the library.
17095	  hardcode_minus_L=yes
17096	  ;;
17097	esac
17098      fi
17099      ;;
17100
17101    irix5* | irix6* | nonstopux*)
17102      if test "$GCC" = yes; then
17103	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'
17104      else
17105	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'
17106	hardcode_libdir_flag_spec_ld='-rpath $libdir'
17107      fi
17108      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17109      hardcode_libdir_separator=:
17110      link_all_deplibs=yes
17111      ;;
17112
17113    netbsd*)
17114      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17115	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17116      else
17117	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17118      fi
17119      hardcode_libdir_flag_spec='-R$libdir'
17120      hardcode_direct=yes
17121      hardcode_shlibpath_var=no
17122      ;;
17123
17124    newsos6)
17125      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126      hardcode_direct=yes
17127      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17128      hardcode_libdir_separator=:
17129      hardcode_shlibpath_var=no
17130      ;;
17131
17132    openbsd*)
17133      if test -f /usr/libexec/ld.so; then
17134	hardcode_direct=yes
17135	hardcode_shlibpath_var=no
17136	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17137	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17138	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17139	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17140	  export_dynamic_flag_spec='${wl}-E'
17141	else
17142	  case $host_os in
17143	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17144	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17145	     hardcode_libdir_flag_spec='-R$libdir'
17146	     ;;
17147	   *)
17148	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17149	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17150	     ;;
17151	  esac
17152        fi
17153      else
17154	ld_shlibs=no
17155      fi
17156      ;;
17157
17158    os2*)
17159      hardcode_libdir_flag_spec='-L$libdir'
17160      hardcode_minus_L=yes
17161      allow_undefined_flag=unsupported
17162      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'
17163      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17164      ;;
17165
17166    osf3*)
17167      if test "$GCC" = yes; then
17168	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17169	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'
17170      else
17171	allow_undefined_flag=' -expect_unresolved \*'
17172	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'
17173      fi
17174      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17175      hardcode_libdir_separator=:
17176      ;;
17177
17178    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17179      if test "$GCC" = yes; then
17180	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17181	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'
17182	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17183      else
17184	allow_undefined_flag=' -expect_unresolved \*'
17185	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'
17186	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17187	$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'
17188
17189	# Both c and cxx compiler support -rpath directly
17190	hardcode_libdir_flag_spec='-rpath $libdir'
17191      fi
17192      hardcode_libdir_separator=:
17193      ;;
17194
17195    solaris*)
17196      no_undefined_flag=' -z text'
17197      if test "$GCC" = yes; then
17198	wlarc='${wl}'
17199	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17200	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17201	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17202      else
17203	wlarc=''
17204	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17205	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17206  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17207      fi
17208      hardcode_libdir_flag_spec='-R$libdir'
17209      hardcode_shlibpath_var=no
17210      case $host_os in
17211      solaris2.[0-5] | solaris2.[0-5].*) ;;
17212      *)
17213	# The compiler driver will combine and reorder linker options,
17214	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17215	# but is careful enough not to reorder.
17216 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17217	if test "$GCC" = yes; then
17218	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17219	else
17220	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17221	fi
17222	;;
17223      esac
17224      link_all_deplibs=yes
17225      ;;
17226
17227    sunos4*)
17228      if test "x$host_vendor" = xsequent; then
17229	# Use $CC to link under sequent, because it throws in some extra .o
17230	# files that make .init and .fini sections work.
17231	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17232      else
17233	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17234      fi
17235      hardcode_libdir_flag_spec='-L$libdir'
17236      hardcode_direct=yes
17237      hardcode_minus_L=yes
17238      hardcode_shlibpath_var=no
17239      ;;
17240
17241    sysv4)
17242      case $host_vendor in
17243	sni)
17244	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17245	  hardcode_direct=yes # is this really true???
17246	;;
17247	siemens)
17248	  ## LD is ld it makes a PLAMLIB
17249	  ## CC just makes a GrossModule.
17250	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17251	  reload_cmds='$CC -r -o $output$reload_objs'
17252	  hardcode_direct=no
17253        ;;
17254	motorola)
17255	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17257	;;
17258      esac
17259      runpath_var='LD_RUN_PATH'
17260      hardcode_shlibpath_var=no
17261      ;;
17262
17263    sysv4.3*)
17264      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17265      hardcode_shlibpath_var=no
17266      export_dynamic_flag_spec='-Bexport'
17267      ;;
17268
17269    sysv4*MP*)
17270      if test -d /usr/nec; then
17271	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17272	hardcode_shlibpath_var=no
17273	runpath_var=LD_RUN_PATH
17274	hardcode_runpath_var=yes
17275	ld_shlibs=yes
17276      fi
17277      ;;
17278
17279    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17280      no_undefined_flag='${wl}-z,text'
17281      archive_cmds_need_lc=no
17282      hardcode_shlibpath_var=no
17283      runpath_var='LD_RUN_PATH'
17284
17285      if test "$GCC" = yes; then
17286	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17287	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17288      else
17289	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17290	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17291      fi
17292      ;;
17293
17294    sysv5* | sco3.2v5* | sco5v6*)
17295      # Note: We can NOT use -z defs as we might desire, because we do not
17296      # link with -lc, and that would cause any symbols used from libc to
17297      # always be unresolved, which means just about no library would
17298      # ever link correctly.  If we're not using GNU ld we use -z text
17299      # though, which does catch some bad symbols but isn't as heavy-handed
17300      # as -z defs.
17301      no_undefined_flag='${wl}-z,text'
17302      allow_undefined_flag='${wl}-z,nodefs'
17303      archive_cmds_need_lc=no
17304      hardcode_shlibpath_var=no
17305      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17306      hardcode_libdir_separator=':'
17307      link_all_deplibs=yes
17308      export_dynamic_flag_spec='${wl}-Bexport'
17309      runpath_var='LD_RUN_PATH'
17310
17311      if test "$GCC" = yes; then
17312	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17313	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17314      else
17315	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17316	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17317      fi
17318      ;;
17319
17320    uts4*)
17321      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17322      hardcode_libdir_flag_spec='-L$libdir'
17323      hardcode_shlibpath_var=no
17324      ;;
17325
17326    *)
17327      ld_shlibs=no
17328      ;;
17329    esac
17330  fi
17331
17332{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17333echo "${ECHO_T}$ld_shlibs" >&6; }
17334test "$ld_shlibs" = no && can_build_shared=no
17335
17336#
17337# Do we need to explicitly link libc?
17338#
17339case "x$archive_cmds_need_lc" in
17340x|xyes)
17341  # Assume -lc should be added
17342  archive_cmds_need_lc=yes
17343
17344  if test "$enable_shared" = yes && test "$GCC" = yes; then
17345    case $archive_cmds in
17346    *'~'*)
17347      # FIXME: we may have to deal with multi-command sequences.
17348      ;;
17349    '$CC '*)
17350      # Test whether the compiler implicitly links with -lc since on some
17351      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17352      # to ld, don't add -lc before -lgcc.
17353      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17354echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17355      $rm conftest*
17356      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17357
17358      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359  (eval $ac_compile) 2>&5
17360  ac_status=$?
17361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362  (exit $ac_status); } 2>conftest.err; then
17363        soname=conftest
17364        lib=conftest
17365        libobjs=conftest.$ac_objext
17366        deplibs=
17367        wl=$lt_prog_compiler_wl
17368	pic_flag=$lt_prog_compiler_pic
17369        compiler_flags=-v
17370        linker_flags=-v
17371        verstring=
17372        output_objdir=.
17373        libname=conftest
17374        lt_save_allow_undefined_flag=$allow_undefined_flag
17375        allow_undefined_flag=
17376        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17377  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17378  ac_status=$?
17379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380  (exit $ac_status); }
17381        then
17382	  archive_cmds_need_lc=no
17383        else
17384	  archive_cmds_need_lc=yes
17385        fi
17386        allow_undefined_flag=$lt_save_allow_undefined_flag
17387      else
17388        cat conftest.err 1>&5
17389      fi
17390      $rm conftest*
17391      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
17392echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
17393      ;;
17394    esac
17395  fi
17396  ;;
17397esac
17398
17399{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17401library_names_spec=
17402libname_spec='lib$name'
17403soname_spec=
17404shrext_cmds=".so"
17405postinstall_cmds=
17406postuninstall_cmds=
17407finish_cmds=
17408finish_eval=
17409shlibpath_var=
17410shlibpath_overrides_runpath=unknown
17411version_type=none
17412dynamic_linker="$host_os ld.so"
17413sys_lib_dlsearch_path_spec="/lib /usr/lib"
17414
17415if test "$GCC" = yes; then
17416  case $host_os in
17417    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17418    *) lt_awk_arg="/^libraries:/" ;;
17419  esac
17420  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17421  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
17422    # if the path contains ";" then we assume it to be the separator
17423    # otherwise default to the standard path separator (i.e. ":") - it is
17424    # assumed that no part of a normal pathname contains ";" but that should
17425    # okay in the real world where ";" in dirpaths is itself problematic.
17426    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
17427  else
17428    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17429  fi
17430  # Ok, now we have the path, separated by spaces, we can step through it
17431  # and add multilib dir if necessary.
17432  lt_tmp_lt_search_path_spec=
17433  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17434  for lt_sys_path in $lt_search_path_spec; do
17435    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17436      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17437    else
17438      test -d "$lt_sys_path" && \
17439	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17440    fi
17441  done
17442  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
17443BEGIN {RS=" "; FS="/|\n";} {
17444  lt_foo="";
17445  lt_count=0;
17446  for (lt_i = NF; lt_i > 0; lt_i--) {
17447    if ($lt_i != "" && $lt_i != ".") {
17448      if ($lt_i == "..") {
17449        lt_count++;
17450      } else {
17451        if (lt_count == 0) {
17452          lt_foo="/" $lt_i lt_foo;
17453        } else {
17454          lt_count--;
17455        }
17456      }
17457    }
17458  }
17459  if (lt_foo != "") { lt_freq[lt_foo]++; }
17460  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17461}'`
17462  sys_lib_search_path_spec=`echo $lt_search_path_spec`
17463else
17464  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17465fi
17466need_lib_prefix=unknown
17467hardcode_into_libs=no
17468
17469# when you set need_version to no, make sure it does not cause -set_version
17470# flags to be left without arguments
17471need_version=unknown
17472
17473case $host_os in
17474aix3*)
17475  version_type=linux
17476  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17477  shlibpath_var=LIBPATH
17478
17479  # AIX 3 has no versioning support, so we append a major version to the name.
17480  soname_spec='${libname}${release}${shared_ext}$major'
17481  ;;
17482
17483aix4* | aix5*)
17484  version_type=linux
17485  need_lib_prefix=no
17486  need_version=no
17487  hardcode_into_libs=yes
17488  if test "$host_cpu" = ia64; then
17489    # AIX 5 supports IA64
17490    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17491    shlibpath_var=LD_LIBRARY_PATH
17492  else
17493    # With GCC up to 2.95.x, collect2 would create an import file
17494    # for dependence libraries.  The import file would start with
17495    # the line `#! .'.  This would cause the generated library to
17496    # depend on `.', always an invalid library.  This was fixed in
17497    # development snapshots of GCC prior to 3.0.
17498    case $host_os in
17499      aix4 | aix4.[01] | aix4.[01].*)
17500      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17501	   echo ' yes '
17502	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17503	:
17504      else
17505	can_build_shared=no
17506      fi
17507      ;;
17508    esac
17509    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17510    # soname into executable. Probably we can add versioning support to
17511    # collect2, so additional links can be useful in future.
17512    if test "$aix_use_runtimelinking" = yes; then
17513      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17514      # instead of lib<name>.a to let people know that these are not
17515      # typical AIX shared libraries.
17516      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517    else
17518      # We preserve .a as extension for shared libraries through AIX4.2
17519      # and later when we are not doing run time linking.
17520      library_names_spec='${libname}${release}.a $libname.a'
17521      soname_spec='${libname}${release}${shared_ext}$major'
17522    fi
17523    shlibpath_var=LIBPATH
17524  fi
17525  ;;
17526
17527amigaos*)
17528  library_names_spec='$libname.ixlibrary $libname.a'
17529  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17530  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'
17531  ;;
17532
17533beos*)
17534  library_names_spec='${libname}${shared_ext}'
17535  dynamic_linker="$host_os ld.so"
17536  shlibpath_var=LIBRARY_PATH
17537  ;;
17538
17539bsdi[45]*)
17540  version_type=linux
17541  need_version=no
17542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543  soname_spec='${libname}${release}${shared_ext}$major'
17544  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17545  shlibpath_var=LD_LIBRARY_PATH
17546  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17547  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17548  # the default ld.so.conf also contains /usr/contrib/lib and
17549  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17550  # libtool to hard-code these into programs
17551  ;;
17552
17553cygwin* | mingw* | pw32*)
17554  version_type=windows
17555  shrext_cmds=".dll"
17556  need_version=no
17557  need_lib_prefix=no
17558
17559  case $GCC,$host_os in
17560  yes,cygwin* | yes,mingw* | yes,pw32*)
17561    library_names_spec='$libname.dll.a'
17562    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17563    postinstall_cmds='base_file=`basename \${file}`~
17564      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17565      dldir=$destdir/`dirname \$dlpath`~
17566      test -d \$dldir || mkdir -p \$dldir~
17567      $install_prog $dir/$dlname \$dldir/$dlname~
17568      chmod a+x \$dldir/$dlname'
17569    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17570      dlpath=$dir/\$dldll~
17571       $rm \$dlpath'
17572    shlibpath_overrides_runpath=yes
17573
17574    case $host_os in
17575    cygwin*)
17576      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17577      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17578      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17579      ;;
17580    mingw*)
17581      # MinGW DLLs use traditional 'lib' prefix
17582      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17583      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17584      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17585        # It is most probably a Windows format PATH printed by
17586        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17587        # path with ; separators, and with drive letters. We can handle the
17588        # drive letters (cygwin fileutils understands them), so leave them,
17589        # especially as we might pass files found there to a mingw objdump,
17590        # which wouldn't understand a cygwinified path. Ahh.
17591        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17592      else
17593        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17594      fi
17595      ;;
17596    pw32*)
17597      # pw32 DLLs use 'pw' prefix rather than 'lib'
17598      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17599      ;;
17600    esac
17601    ;;
17602
17603  *)
17604    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17605    ;;
17606  esac
17607  dynamic_linker='Win32 ld.exe'
17608  # FIXME: first we should search . and the directory the executable is in
17609  shlibpath_var=PATH
17610  ;;
17611
17612darwin* | rhapsody*)
17613  dynamic_linker="$host_os dyld"
17614  version_type=darwin
17615  need_lib_prefix=no
17616  need_version=no
17617  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17618  soname_spec='${libname}${release}${major}$shared_ext'
17619  shlibpath_overrides_runpath=yes
17620  shlibpath_var=DYLD_LIBRARY_PATH
17621  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17622
17623  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17624  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17625  ;;
17626
17627dgux*)
17628  version_type=linux
17629  need_lib_prefix=no
17630  need_version=no
17631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17632  soname_spec='${libname}${release}${shared_ext}$major'
17633  shlibpath_var=LD_LIBRARY_PATH
17634  ;;
17635
17636freebsd1*)
17637  dynamic_linker=no
17638  ;;
17639
17640freebsd* | dragonfly*)
17641  # DragonFly does not have aout.  When/if they implement a new
17642  # versioning mechanism, adjust this.
17643  if test -x /usr/bin/objformat; then
17644    objformat=`/usr/bin/objformat`
17645  else
17646    case $host_os in
17647    freebsd[123]*) objformat=aout ;;
17648    *) objformat=elf ;;
17649    esac
17650  fi
17651  version_type=freebsd-$objformat
17652  case $version_type in
17653    freebsd-elf*)
17654      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17655      need_version=no
17656      need_lib_prefix=no
17657      ;;
17658    freebsd-*)
17659      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17660      need_version=yes
17661      ;;
17662  esac
17663  shlibpath_var=LD_LIBRARY_PATH
17664  case $host_os in
17665  freebsd2*)
17666    shlibpath_overrides_runpath=yes
17667    ;;
17668  freebsd3.[01]* | freebsdelf3.[01]*)
17669    shlibpath_overrides_runpath=yes
17670    hardcode_into_libs=yes
17671    ;;
17672  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17673  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17674    shlibpath_overrides_runpath=no
17675    hardcode_into_libs=yes
17676    ;;
17677  *) # from 4.6 on, and DragonFly
17678    shlibpath_overrides_runpath=yes
17679    hardcode_into_libs=yes
17680    ;;
17681  esac
17682  ;;
17683
17684gnu*)
17685  version_type=linux
17686  need_lib_prefix=no
17687  need_version=no
17688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17689  soname_spec='${libname}${release}${shared_ext}$major'
17690  shlibpath_var=LD_LIBRARY_PATH
17691  hardcode_into_libs=yes
17692  ;;
17693
17694hpux9* | hpux10* | hpux11*)
17695  # Give a soname corresponding to the major version so that dld.sl refuses to
17696  # link against other versions.
17697  version_type=sunos
17698  need_lib_prefix=no
17699  need_version=no
17700  case $host_cpu in
17701  ia64*)
17702    shrext_cmds='.so'
17703    hardcode_into_libs=yes
17704    dynamic_linker="$host_os dld.so"
17705    shlibpath_var=LD_LIBRARY_PATH
17706    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17708    soname_spec='${libname}${release}${shared_ext}$major'
17709    if test "X$HPUX_IA64_MODE" = X32; then
17710      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17711    else
17712      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17713    fi
17714    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17715    ;;
17716   hppa*64*)
17717     shrext_cmds='.sl'
17718     hardcode_into_libs=yes
17719     dynamic_linker="$host_os dld.sl"
17720     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17721     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17726     ;;
17727   *)
17728    shrext_cmds='.sl'
17729    dynamic_linker="$host_os dld.sl"
17730    shlibpath_var=SHLIB_PATH
17731    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17732    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733    soname_spec='${libname}${release}${shared_ext}$major'
17734    ;;
17735  esac
17736  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17737  postinstall_cmds='chmod 555 $lib'
17738  ;;
17739
17740interix[3-9]*)
17741  version_type=linux
17742  need_lib_prefix=no
17743  need_version=no
17744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17745  soname_spec='${libname}${release}${shared_ext}$major'
17746  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17747  shlibpath_var=LD_LIBRARY_PATH
17748  shlibpath_overrides_runpath=no
17749  hardcode_into_libs=yes
17750  ;;
17751
17752irix5* | irix6* | nonstopux*)
17753  case $host_os in
17754    nonstopux*) version_type=nonstopux ;;
17755    *)
17756	if test "$lt_cv_prog_gnu_ld" = yes; then
17757		version_type=linux
17758	else
17759		version_type=irix
17760	fi ;;
17761  esac
17762  need_lib_prefix=no
17763  need_version=no
17764  soname_spec='${libname}${release}${shared_ext}$major'
17765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17766  case $host_os in
17767  irix5* | nonstopux*)
17768    libsuff= shlibsuff=
17769    ;;
17770  *)
17771    case $LD in # libtool.m4 will add one of these switches to LD
17772    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17773      libsuff= shlibsuff= libmagic=32-bit;;
17774    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17775      libsuff=32 shlibsuff=N32 libmagic=N32;;
17776    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17777      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17778    *) libsuff= shlibsuff= libmagic=never-match;;
17779    esac
17780    ;;
17781  esac
17782  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17783  shlibpath_overrides_runpath=no
17784  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17785  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17786  hardcode_into_libs=yes
17787  ;;
17788
17789# No shared lib support for Linux oldld, aout, or coff.
17790linux*oldld* | linux*aout* | linux*coff*)
17791  dynamic_linker=no
17792  ;;
17793
17794# This must be Linux ELF.
17795linux* | k*bsd*-gnu)
17796  version_type=linux
17797  need_lib_prefix=no
17798  need_version=no
17799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800  soname_spec='${libname}${release}${shared_ext}$major'
17801  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17802  shlibpath_var=LD_LIBRARY_PATH
17803  shlibpath_overrides_runpath=no
17804  # This implies no fast_install, which is unacceptable.
17805  # Some rework will be needed to allow for fast_install
17806  # before this can be enabled.
17807  hardcode_into_libs=yes
17808
17809  # Append ld.so.conf contents to the search path
17810  if test -f /etc/ld.so.conf; then
17811    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' ' '`
17812    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17813  fi
17814
17815  # We used to test for /lib/ld.so.1 and disable shared libraries on
17816  # powerpc, because MkLinux only supported shared libraries with the
17817  # GNU dynamic linker.  Since this was broken with cross compilers,
17818  # most powerpc-linux boxes support dynamic linking these days and
17819  # people can always --disable-shared, the test was removed, and we
17820  # assume the GNU/Linux dynamic linker is in use.
17821  dynamic_linker='GNU/Linux ld.so'
17822  ;;
17823
17824netbsd*)
17825  version_type=sunos
17826  need_lib_prefix=no
17827  need_version=no
17828  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17829    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17830    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17831    dynamic_linker='NetBSD (a.out) ld.so'
17832  else
17833    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17834    soname_spec='${libname}${release}${shared_ext}$major'
17835    dynamic_linker='NetBSD ld.elf_so'
17836  fi
17837  shlibpath_var=LD_LIBRARY_PATH
17838  shlibpath_overrides_runpath=yes
17839  hardcode_into_libs=yes
17840  ;;
17841
17842newsos6)
17843  version_type=linux
17844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845  shlibpath_var=LD_LIBRARY_PATH
17846  shlibpath_overrides_runpath=yes
17847  ;;
17848
17849nto-qnx*)
17850  version_type=linux
17851  need_lib_prefix=no
17852  need_version=no
17853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854  soname_spec='${libname}${release}${shared_ext}$major'
17855  shlibpath_var=LD_LIBRARY_PATH
17856  shlibpath_overrides_runpath=yes
17857  ;;
17858
17859openbsd*)
17860  version_type=sunos
17861  sys_lib_dlsearch_path_spec="/usr/lib"
17862  need_lib_prefix=no
17863  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17864  case $host_os in
17865    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17866    *)                         need_version=no  ;;
17867  esac
17868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17870  shlibpath_var=LD_LIBRARY_PATH
17871  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17872    case $host_os in
17873      openbsd2.[89] | openbsd2.[89].*)
17874	shlibpath_overrides_runpath=no
17875	;;
17876      *)
17877	shlibpath_overrides_runpath=yes
17878	;;
17879      esac
17880  else
17881    shlibpath_overrides_runpath=yes
17882  fi
17883  ;;
17884
17885os2*)
17886  libname_spec='$name'
17887  shrext_cmds=".dll"
17888  need_lib_prefix=no
17889  library_names_spec='$libname${shared_ext} $libname.a'
17890  dynamic_linker='OS/2 ld.exe'
17891  shlibpath_var=LIBPATH
17892  ;;
17893
17894osf3* | osf4* | osf5*)
17895  version_type=osf
17896  need_lib_prefix=no
17897  need_version=no
17898  soname_spec='${libname}${release}${shared_ext}$major'
17899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900  shlibpath_var=LD_LIBRARY_PATH
17901  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17902  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17903  ;;
17904
17905rdos*)
17906  dynamic_linker=no
17907  ;;
17908
17909solaris*)
17910  version_type=linux
17911  need_lib_prefix=no
17912  need_version=no
17913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17914  soname_spec='${libname}${release}${shared_ext}$major'
17915  shlibpath_var=LD_LIBRARY_PATH
17916  shlibpath_overrides_runpath=yes
17917  hardcode_into_libs=yes
17918  # ldd complains unless libraries are executable
17919  postinstall_cmds='chmod +x $lib'
17920  ;;
17921
17922sunos4*)
17923  version_type=sunos
17924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17925  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17926  shlibpath_var=LD_LIBRARY_PATH
17927  shlibpath_overrides_runpath=yes
17928  if test "$with_gnu_ld" = yes; then
17929    need_lib_prefix=no
17930  fi
17931  need_version=yes
17932  ;;
17933
17934sysv4 | sysv4.3*)
17935  version_type=linux
17936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17937  soname_spec='${libname}${release}${shared_ext}$major'
17938  shlibpath_var=LD_LIBRARY_PATH
17939  case $host_vendor in
17940    sni)
17941      shlibpath_overrides_runpath=no
17942      need_lib_prefix=no
17943      export_dynamic_flag_spec='${wl}-Blargedynsym'
17944      runpath_var=LD_RUN_PATH
17945      ;;
17946    siemens)
17947      need_lib_prefix=no
17948      ;;
17949    motorola)
17950      need_lib_prefix=no
17951      need_version=no
17952      shlibpath_overrides_runpath=no
17953      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17954      ;;
17955  esac
17956  ;;
17957
17958sysv4*MP*)
17959  if test -d /usr/nec ;then
17960    version_type=linux
17961    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17962    soname_spec='$libname${shared_ext}.$major'
17963    shlibpath_var=LD_LIBRARY_PATH
17964  fi
17965  ;;
17966
17967sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17968  version_type=freebsd-elf
17969  need_lib_prefix=no
17970  need_version=no
17971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17972  soname_spec='${libname}${release}${shared_ext}$major'
17973  shlibpath_var=LD_LIBRARY_PATH
17974  hardcode_into_libs=yes
17975  if test "$with_gnu_ld" = yes; then
17976    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17977    shlibpath_overrides_runpath=no
17978  else
17979    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17980    shlibpath_overrides_runpath=yes
17981    case $host_os in
17982      sco3.2v5*)
17983        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17984	;;
17985    esac
17986  fi
17987  sys_lib_dlsearch_path_spec='/usr/lib'
17988  ;;
17989
17990uts4*)
17991  version_type=linux
17992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993  soname_spec='${libname}${release}${shared_ext}$major'
17994  shlibpath_var=LD_LIBRARY_PATH
17995  ;;
17996
17997*)
17998  dynamic_linker=no
17999  ;;
18000esac
18001{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18002echo "${ECHO_T}$dynamic_linker" >&6; }
18003test "$dynamic_linker" = no && can_build_shared=no
18004
18005variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18006if test "$GCC" = yes; then
18007  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18008fi
18009
18010{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18011echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18012hardcode_action=
18013if test -n "$hardcode_libdir_flag_spec" || \
18014   test -n "$runpath_var" || \
18015   test "X$hardcode_automatic" = "Xyes" ; then
18016
18017  # We can hardcode non-existant directories.
18018  if test "$hardcode_direct" != no &&
18019     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18020     # have to relink, otherwise we might link with an installed library
18021     # when we should be linking with a yet-to-be-installed one
18022     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
18023     test "$hardcode_minus_L" != no; then
18024    # Linking always hardcodes the temporary library directory.
18025    hardcode_action=relink
18026  else
18027    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18028    hardcode_action=immediate
18029  fi
18030else
18031  # We cannot hardcode anything, or else we can only hardcode existing
18032  # directories.
18033  hardcode_action=unsupported
18034fi
18035{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
18036echo "${ECHO_T}$hardcode_action" >&6; }
18037
18038if test "$hardcode_action" = relink; then
18039  # Fast installation is not supported
18040  enable_fast_install=no
18041elif test "$shlibpath_overrides_runpath" = yes ||
18042     test "$enable_shared" = no; then
18043  # Fast installation is not necessary
18044  enable_fast_install=needless
18045fi
18046
18047striplib=
18048old_striplib=
18049{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18050echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18051if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18052  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18053  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18054  { echo "$as_me:$LINENO: result: yes" >&5
18055echo "${ECHO_T}yes" >&6; }
18056else
18057# FIXME - insert some real tests, host_os isn't really good enough
18058  case $host_os in
18059   darwin*)
18060       if test -n "$STRIP" ; then
18061         striplib="$STRIP -x"
18062         old_striplib="$STRIP -S"
18063         { echo "$as_me:$LINENO: result: yes" >&5
18064echo "${ECHO_T}yes" >&6; }
18065       else
18066  { echo "$as_me:$LINENO: result: no" >&5
18067echo "${ECHO_T}no" >&6; }
18068fi
18069       ;;
18070   *)
18071  { echo "$as_me:$LINENO: result: no" >&5
18072echo "${ECHO_T}no" >&6; }
18073    ;;
18074  esac
18075fi
18076
18077if test "x$enable_dlopen" != xyes; then
18078  enable_dlopen=unknown
18079  enable_dlopen_self=unknown
18080  enable_dlopen_self_static=unknown
18081else
18082  lt_cv_dlopen=no
18083  lt_cv_dlopen_libs=
18084
18085  case $host_os in
18086  beos*)
18087    lt_cv_dlopen="load_add_on"
18088    lt_cv_dlopen_libs=
18089    lt_cv_dlopen_self=yes
18090    ;;
18091
18092  mingw* | pw32*)
18093    lt_cv_dlopen="LoadLibrary"
18094    lt_cv_dlopen_libs=
18095   ;;
18096
18097  cygwin*)
18098    lt_cv_dlopen="dlopen"
18099    lt_cv_dlopen_libs=
18100   ;;
18101
18102  darwin*)
18103  # if libdl is installed we need to link against it
18104    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18105echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18106if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18107  echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109  ac_check_lib_save_LIBS=$LIBS
18110LIBS="-ldl  $LIBS"
18111cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h.  */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h.  */
18117
18118/* Override any GCC internal prototype to avoid an error.
18119   Use char because int might match the return type of a GCC
18120   builtin and then its argument prototype would still apply.  */
18121#ifdef __cplusplus
18122extern "C"
18123#endif
18124char dlopen ();
18125int
18126main ()
18127{
18128return dlopen ();
18129  ;
18130  return 0;
18131}
18132_ACEOF
18133rm -f conftest.$ac_objext conftest$ac_exeext
18134if { (ac_try="$ac_link"
18135case "(($ac_try" in
18136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137  *) ac_try_echo=$ac_try;;
18138esac
18139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140  (eval "$ac_link") 2>conftest.er1
18141  ac_status=$?
18142  grep -v '^ *+' conftest.er1 >conftest.err
18143  rm -f conftest.er1
18144  cat conftest.err >&5
18145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146  (exit $ac_status); } && {
18147	 test -z "$ac_c_werror_flag" ||
18148	 test ! -s conftest.err
18149       } && test -s conftest$ac_exeext &&
18150       $as_test_x conftest$ac_exeext; then
18151  ac_cv_lib_dl_dlopen=yes
18152else
18153  echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
18155
18156	ac_cv_lib_dl_dlopen=no
18157fi
18158
18159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160      conftest$ac_exeext conftest.$ac_ext
18161LIBS=$ac_check_lib_save_LIBS
18162fi
18163{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18164echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18165if test $ac_cv_lib_dl_dlopen = yes; then
18166  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18167else
18168
18169    lt_cv_dlopen="dyld"
18170    lt_cv_dlopen_libs=
18171    lt_cv_dlopen_self=yes
18172
18173fi
18174
18175   ;;
18176
18177  *)
18178    { echo "$as_me:$LINENO: checking for shl_load" >&5
18179echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18180if test "${ac_cv_func_shl_load+set}" = set; then
18181  echo $ECHO_N "(cached) $ECHO_C" >&6
18182else
18183  cat >conftest.$ac_ext <<_ACEOF
18184/* confdefs.h.  */
18185_ACEOF
18186cat confdefs.h >>conftest.$ac_ext
18187cat >>conftest.$ac_ext <<_ACEOF
18188/* end confdefs.h.  */
18189/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18190   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18191#define shl_load innocuous_shl_load
18192
18193/* System header to define __stub macros and hopefully few prototypes,
18194    which can conflict with char shl_load (); below.
18195    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196    <limits.h> exists even on freestanding compilers.  */
18197
18198#ifdef __STDC__
18199# include <limits.h>
18200#else
18201# include <assert.h>
18202#endif
18203
18204#undef shl_load
18205
18206/* Override any GCC internal prototype to avoid an error.
18207   Use char because int might match the return type of a GCC
18208   builtin and then its argument prototype would still apply.  */
18209#ifdef __cplusplus
18210extern "C"
18211#endif
18212char shl_load ();
18213/* The GNU C library defines this for functions which it implements
18214    to always fail with ENOSYS.  Some functions are actually named
18215    something starting with __ and the normal name is an alias.  */
18216#if defined __stub_shl_load || defined __stub___shl_load
18217choke me
18218#endif
18219
18220int
18221main ()
18222{
18223return shl_load ();
18224  ;
18225  return 0;
18226}
18227_ACEOF
18228rm -f conftest.$ac_objext conftest$ac_exeext
18229if { (ac_try="$ac_link"
18230case "(($ac_try" in
18231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232  *) ac_try_echo=$ac_try;;
18233esac
18234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235  (eval "$ac_link") 2>conftest.er1
18236  ac_status=$?
18237  grep -v '^ *+' conftest.er1 >conftest.err
18238  rm -f conftest.er1
18239  cat conftest.err >&5
18240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241  (exit $ac_status); } && {
18242	 test -z "$ac_c_werror_flag" ||
18243	 test ! -s conftest.err
18244       } && test -s conftest$ac_exeext &&
18245       $as_test_x conftest$ac_exeext; then
18246  ac_cv_func_shl_load=yes
18247else
18248  echo "$as_me: failed program was:" >&5
18249sed 's/^/| /' conftest.$ac_ext >&5
18250
18251	ac_cv_func_shl_load=no
18252fi
18253
18254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18255      conftest$ac_exeext conftest.$ac_ext
18256fi
18257{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18258echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18259if test $ac_cv_func_shl_load = yes; then
18260  lt_cv_dlopen="shl_load"
18261else
18262  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18263echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18264if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18265  echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
18267  ac_check_lib_save_LIBS=$LIBS
18268LIBS="-ldld  $LIBS"
18269cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h.  */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h.  */
18275
18276/* Override any GCC internal prototype to avoid an error.
18277   Use char because int might match the return type of a GCC
18278   builtin and then its argument prototype would still apply.  */
18279#ifdef __cplusplus
18280extern "C"
18281#endif
18282char shl_load ();
18283int
18284main ()
18285{
18286return shl_load ();
18287  ;
18288  return 0;
18289}
18290_ACEOF
18291rm -f conftest.$ac_objext conftest$ac_exeext
18292if { (ac_try="$ac_link"
18293case "(($ac_try" in
18294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295  *) ac_try_echo=$ac_try;;
18296esac
18297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298  (eval "$ac_link") 2>conftest.er1
18299  ac_status=$?
18300  grep -v '^ *+' conftest.er1 >conftest.err
18301  rm -f conftest.er1
18302  cat conftest.err >&5
18303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304  (exit $ac_status); } && {
18305	 test -z "$ac_c_werror_flag" ||
18306	 test ! -s conftest.err
18307       } && test -s conftest$ac_exeext &&
18308       $as_test_x conftest$ac_exeext; then
18309  ac_cv_lib_dld_shl_load=yes
18310else
18311  echo "$as_me: failed program was:" >&5
18312sed 's/^/| /' conftest.$ac_ext >&5
18313
18314	ac_cv_lib_dld_shl_load=no
18315fi
18316
18317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18318      conftest$ac_exeext conftest.$ac_ext
18319LIBS=$ac_check_lib_save_LIBS
18320fi
18321{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18322echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18323if test $ac_cv_lib_dld_shl_load = yes; then
18324  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18325else
18326  { echo "$as_me:$LINENO: checking for dlopen" >&5
18327echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18328if test "${ac_cv_func_dlopen+set}" = set; then
18329  echo $ECHO_N "(cached) $ECHO_C" >&6
18330else
18331  cat >conftest.$ac_ext <<_ACEOF
18332/* confdefs.h.  */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h.  */
18337/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18338   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18339#define dlopen innocuous_dlopen
18340
18341/* System header to define __stub macros and hopefully few prototypes,
18342    which can conflict with char dlopen (); below.
18343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18344    <limits.h> exists even on freestanding compilers.  */
18345
18346#ifdef __STDC__
18347# include <limits.h>
18348#else
18349# include <assert.h>
18350#endif
18351
18352#undef dlopen
18353
18354/* Override any GCC internal prototype to avoid an error.
18355   Use char because int might match the return type of a GCC
18356   builtin and then its argument prototype would still apply.  */
18357#ifdef __cplusplus
18358extern "C"
18359#endif
18360char dlopen ();
18361/* The GNU C library defines this for functions which it implements
18362    to always fail with ENOSYS.  Some functions are actually named
18363    something starting with __ and the normal name is an alias.  */
18364#if defined __stub_dlopen || defined __stub___dlopen
18365choke me
18366#endif
18367
18368int
18369main ()
18370{
18371return dlopen ();
18372  ;
18373  return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext conftest$ac_exeext
18377if { (ac_try="$ac_link"
18378case "(($ac_try" in
18379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380  *) ac_try_echo=$ac_try;;
18381esac
18382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383  (eval "$ac_link") 2>conftest.er1
18384  ac_status=$?
18385  grep -v '^ *+' conftest.er1 >conftest.err
18386  rm -f conftest.er1
18387  cat conftest.err >&5
18388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389  (exit $ac_status); } && {
18390	 test -z "$ac_c_werror_flag" ||
18391	 test ! -s conftest.err
18392       } && test -s conftest$ac_exeext &&
18393       $as_test_x conftest$ac_exeext; then
18394  ac_cv_func_dlopen=yes
18395else
18396  echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399	ac_cv_func_dlopen=no
18400fi
18401
18402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18403      conftest$ac_exeext conftest.$ac_ext
18404fi
18405{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18406echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18407if test $ac_cv_func_dlopen = yes; then
18408  lt_cv_dlopen="dlopen"
18409else
18410  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18411echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18412if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18413  echo $ECHO_N "(cached) $ECHO_C" >&6
18414else
18415  ac_check_lib_save_LIBS=$LIBS
18416LIBS="-ldl  $LIBS"
18417cat >conftest.$ac_ext <<_ACEOF
18418/* confdefs.h.  */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h.  */
18423
18424/* Override any GCC internal prototype to avoid an error.
18425   Use char because int might match the return type of a GCC
18426   builtin and then its argument prototype would still apply.  */
18427#ifdef __cplusplus
18428extern "C"
18429#endif
18430char dlopen ();
18431int
18432main ()
18433{
18434return dlopen ();
18435  ;
18436  return 0;
18437}
18438_ACEOF
18439rm -f conftest.$ac_objext conftest$ac_exeext
18440if { (ac_try="$ac_link"
18441case "(($ac_try" in
18442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443  *) ac_try_echo=$ac_try;;
18444esac
18445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446  (eval "$ac_link") 2>conftest.er1
18447  ac_status=$?
18448  grep -v '^ *+' conftest.er1 >conftest.err
18449  rm -f conftest.er1
18450  cat conftest.err >&5
18451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452  (exit $ac_status); } && {
18453	 test -z "$ac_c_werror_flag" ||
18454	 test ! -s conftest.err
18455       } && test -s conftest$ac_exeext &&
18456       $as_test_x conftest$ac_exeext; then
18457  ac_cv_lib_dl_dlopen=yes
18458else
18459  echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
18462	ac_cv_lib_dl_dlopen=no
18463fi
18464
18465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466      conftest$ac_exeext conftest.$ac_ext
18467LIBS=$ac_check_lib_save_LIBS
18468fi
18469{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18470echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18471if test $ac_cv_lib_dl_dlopen = yes; then
18472  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18473else
18474  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18475echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18476if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18477  echo $ECHO_N "(cached) $ECHO_C" >&6
18478else
18479  ac_check_lib_save_LIBS=$LIBS
18480LIBS="-lsvld  $LIBS"
18481cat >conftest.$ac_ext <<_ACEOF
18482/* confdefs.h.  */
18483_ACEOF
18484cat confdefs.h >>conftest.$ac_ext
18485cat >>conftest.$ac_ext <<_ACEOF
18486/* end confdefs.h.  */
18487
18488/* Override any GCC internal prototype to avoid an error.
18489   Use char because int might match the return type of a GCC
18490   builtin and then its argument prototype would still apply.  */
18491#ifdef __cplusplus
18492extern "C"
18493#endif
18494char dlopen ();
18495int
18496main ()
18497{
18498return dlopen ();
18499  ;
18500  return 0;
18501}
18502_ACEOF
18503rm -f conftest.$ac_objext conftest$ac_exeext
18504if { (ac_try="$ac_link"
18505case "(($ac_try" in
18506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507  *) ac_try_echo=$ac_try;;
18508esac
18509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510  (eval "$ac_link") 2>conftest.er1
18511  ac_status=$?
18512  grep -v '^ *+' conftest.er1 >conftest.err
18513  rm -f conftest.er1
18514  cat conftest.err >&5
18515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516  (exit $ac_status); } && {
18517	 test -z "$ac_c_werror_flag" ||
18518	 test ! -s conftest.err
18519       } && test -s conftest$ac_exeext &&
18520       $as_test_x conftest$ac_exeext; then
18521  ac_cv_lib_svld_dlopen=yes
18522else
18523  echo "$as_me: failed program was:" >&5
18524sed 's/^/| /' conftest.$ac_ext >&5
18525
18526	ac_cv_lib_svld_dlopen=no
18527fi
18528
18529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18530      conftest$ac_exeext conftest.$ac_ext
18531LIBS=$ac_check_lib_save_LIBS
18532fi
18533{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18534echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18535if test $ac_cv_lib_svld_dlopen = yes; then
18536  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18537else
18538  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18539echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18540if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18541  echo $ECHO_N "(cached) $ECHO_C" >&6
18542else
18543  ac_check_lib_save_LIBS=$LIBS
18544LIBS="-ldld  $LIBS"
18545cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h.  */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h.  */
18551
18552/* Override any GCC internal prototype to avoid an error.
18553   Use char because int might match the return type of a GCC
18554   builtin and then its argument prototype would still apply.  */
18555#ifdef __cplusplus
18556extern "C"
18557#endif
18558char dld_link ();
18559int
18560main ()
18561{
18562return dld_link ();
18563  ;
18564  return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext conftest$ac_exeext
18568if { (ac_try="$ac_link"
18569case "(($ac_try" in
18570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571  *) ac_try_echo=$ac_try;;
18572esac
18573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574  (eval "$ac_link") 2>conftest.er1
18575  ac_status=$?
18576  grep -v '^ *+' conftest.er1 >conftest.err
18577  rm -f conftest.er1
18578  cat conftest.err >&5
18579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580  (exit $ac_status); } && {
18581	 test -z "$ac_c_werror_flag" ||
18582	 test ! -s conftest.err
18583       } && test -s conftest$ac_exeext &&
18584       $as_test_x conftest$ac_exeext; then
18585  ac_cv_lib_dld_dld_link=yes
18586else
18587  echo "$as_me: failed program was:" >&5
18588sed 's/^/| /' conftest.$ac_ext >&5
18589
18590	ac_cv_lib_dld_dld_link=no
18591fi
18592
18593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18594      conftest$ac_exeext conftest.$ac_ext
18595LIBS=$ac_check_lib_save_LIBS
18596fi
18597{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18598echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18599if test $ac_cv_lib_dld_dld_link = yes; then
18600  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18601fi
18602
18603
18604fi
18605
18606
18607fi
18608
18609
18610fi
18611
18612
18613fi
18614
18615
18616fi
18617
18618    ;;
18619  esac
18620
18621  if test "x$lt_cv_dlopen" != xno; then
18622    enable_dlopen=yes
18623  else
18624    enable_dlopen=no
18625  fi
18626
18627  case $lt_cv_dlopen in
18628  dlopen)
18629    save_CPPFLAGS="$CPPFLAGS"
18630    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18631
18632    save_LDFLAGS="$LDFLAGS"
18633    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18634
18635    save_LIBS="$LIBS"
18636    LIBS="$lt_cv_dlopen_libs $LIBS"
18637
18638    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18639echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18640if test "${lt_cv_dlopen_self+set}" = set; then
18641  echo $ECHO_N "(cached) $ECHO_C" >&6
18642else
18643  	  if test "$cross_compiling" = yes; then :
18644  lt_cv_dlopen_self=cross
18645else
18646  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18647  lt_status=$lt_dlunknown
18648  cat > conftest.$ac_ext <<EOF
18649#line 18649 "configure"
18650#include "confdefs.h"
18651
18652#if HAVE_DLFCN_H
18653#include <dlfcn.h>
18654#endif
18655
18656#include <stdio.h>
18657
18658#ifdef RTLD_GLOBAL
18659#  define LT_DLGLOBAL		RTLD_GLOBAL
18660#else
18661#  ifdef DL_GLOBAL
18662#    define LT_DLGLOBAL		DL_GLOBAL
18663#  else
18664#    define LT_DLGLOBAL		0
18665#  endif
18666#endif
18667
18668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18669   find out it does not work in some platform. */
18670#ifndef LT_DLLAZY_OR_NOW
18671#  ifdef RTLD_LAZY
18672#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18673#  else
18674#    ifdef DL_LAZY
18675#      define LT_DLLAZY_OR_NOW		DL_LAZY
18676#    else
18677#      ifdef RTLD_NOW
18678#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18679#      else
18680#        ifdef DL_NOW
18681#          define LT_DLLAZY_OR_NOW	DL_NOW
18682#        else
18683#          define LT_DLLAZY_OR_NOW	0
18684#        endif
18685#      endif
18686#    endif
18687#  endif
18688#endif
18689
18690#ifdef __cplusplus
18691extern "C" void exit (int);
18692#endif
18693
18694void fnord() { int i=42;}
18695int main ()
18696{
18697  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18698  int status = $lt_dlunknown;
18699
18700  if (self)
18701    {
18702      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18703      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18704      /* dlclose (self); */
18705    }
18706  else
18707    puts (dlerror ());
18708
18709    exit (status);
18710}
18711EOF
18712  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713  (eval $ac_link) 2>&5
18714  ac_status=$?
18715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18717    (./conftest; exit; ) >&5 2>/dev/null
18718    lt_status=$?
18719    case x$lt_status in
18720      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18721      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18722      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18723    esac
18724  else :
18725    # compilation failed
18726    lt_cv_dlopen_self=no
18727  fi
18728fi
18729rm -fr conftest*
18730
18731
18732fi
18733{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18734echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18735
18736    if test "x$lt_cv_dlopen_self" = xyes; then
18737      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18738      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18739echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18740if test "${lt_cv_dlopen_self_static+set}" = set; then
18741  echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743  	  if test "$cross_compiling" = yes; then :
18744  lt_cv_dlopen_self_static=cross
18745else
18746  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18747  lt_status=$lt_dlunknown
18748  cat > conftest.$ac_ext <<EOF
18749#line 18749 "configure"
18750#include "confdefs.h"
18751
18752#if HAVE_DLFCN_H
18753#include <dlfcn.h>
18754#endif
18755
18756#include <stdio.h>
18757
18758#ifdef RTLD_GLOBAL
18759#  define LT_DLGLOBAL		RTLD_GLOBAL
18760#else
18761#  ifdef DL_GLOBAL
18762#    define LT_DLGLOBAL		DL_GLOBAL
18763#  else
18764#    define LT_DLGLOBAL		0
18765#  endif
18766#endif
18767
18768/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18769   find out it does not work in some platform. */
18770#ifndef LT_DLLAZY_OR_NOW
18771#  ifdef RTLD_LAZY
18772#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18773#  else
18774#    ifdef DL_LAZY
18775#      define LT_DLLAZY_OR_NOW		DL_LAZY
18776#    else
18777#      ifdef RTLD_NOW
18778#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18779#      else
18780#        ifdef DL_NOW
18781#          define LT_DLLAZY_OR_NOW	DL_NOW
18782#        else
18783#          define LT_DLLAZY_OR_NOW	0
18784#        endif
18785#      endif
18786#    endif
18787#  endif
18788#endif
18789
18790#ifdef __cplusplus
18791extern "C" void exit (int);
18792#endif
18793
18794void fnord() { int i=42;}
18795int main ()
18796{
18797  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18798  int status = $lt_dlunknown;
18799
18800  if (self)
18801    {
18802      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18803      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18804      /* dlclose (self); */
18805    }
18806  else
18807    puts (dlerror ());
18808
18809    exit (status);
18810}
18811EOF
18812  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813  (eval $ac_link) 2>&5
18814  ac_status=$?
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18817    (./conftest; exit; ) >&5 2>/dev/null
18818    lt_status=$?
18819    case x$lt_status in
18820      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18821      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18822      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18823    esac
18824  else :
18825    # compilation failed
18826    lt_cv_dlopen_self_static=no
18827  fi
18828fi
18829rm -fr conftest*
18830
18831
18832fi
18833{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18834echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18835    fi
18836
18837    CPPFLAGS="$save_CPPFLAGS"
18838    LDFLAGS="$save_LDFLAGS"
18839    LIBS="$save_LIBS"
18840    ;;
18841  esac
18842
18843  case $lt_cv_dlopen_self in
18844  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18845  *) enable_dlopen_self=unknown ;;
18846  esac
18847
18848  case $lt_cv_dlopen_self_static in
18849  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18850  *) enable_dlopen_self_static=unknown ;;
18851  esac
18852fi
18853
18854
18855# Report which library types will actually be built
18856{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18857echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18858{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
18859echo "${ECHO_T}$can_build_shared" >&6; }
18860
18861{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18862echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18863test "$can_build_shared" = "no" && enable_shared=no
18864
18865# On AIX, shared libraries and static libraries use the same namespace, and
18866# are all built from PIC.
18867case $host_os in
18868aix3*)
18869  test "$enable_shared" = yes && enable_static=no
18870  if test -n "$RANLIB"; then
18871    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18872    postinstall_cmds='$RANLIB $lib'
18873  fi
18874  ;;
18875
18876aix4* | aix5*)
18877  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18878    test "$enable_shared" = yes && enable_static=no
18879  fi
18880    ;;
18881esac
18882{ echo "$as_me:$LINENO: result: $enable_shared" >&5
18883echo "${ECHO_T}$enable_shared" >&6; }
18884
18885{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18886echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18887# Make sure either enable_shared or enable_static is yes.
18888test "$enable_shared" = yes || enable_static=yes
18889{ echo "$as_me:$LINENO: result: $enable_static" >&5
18890echo "${ECHO_T}$enable_static" >&6; }
18891
18892# The else clause should only fire when bootstrapping the
18893# libtool distribution, otherwise you forgot to ship ltmain.sh
18894# with your package, and you will get complaints that there are
18895# no rules to generate ltmain.sh.
18896if test -f "$ltmain"; then
18897  # See if we are running on zsh, and set the options which allow our commands through
18898  # without removal of \ escapes.
18899  if test -n "${ZSH_VERSION+set}" ; then
18900    setopt NO_GLOB_SUBST
18901  fi
18902  # Now quote all the things that may contain metacharacters while being
18903  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18904  # variables and quote the copies for generation of the libtool script.
18905  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18906    SED SHELL STRIP \
18907    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18908    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18909    deplibs_check_method reload_flag reload_cmds need_locks \
18910    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18911    lt_cv_sys_global_symbol_to_c_name_address \
18912    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18913    old_postinstall_cmds old_postuninstall_cmds \
18914    compiler \
18915    CC \
18916    LD \
18917    lt_prog_compiler_wl \
18918    lt_prog_compiler_pic \
18919    lt_prog_compiler_static \
18920    lt_prog_compiler_no_builtin_flag \
18921    export_dynamic_flag_spec \
18922    thread_safe_flag_spec \
18923    whole_archive_flag_spec \
18924    enable_shared_with_static_runtimes \
18925    old_archive_cmds \
18926    old_archive_from_new_cmds \
18927    predep_objects \
18928    postdep_objects \
18929    predeps \
18930    postdeps \
18931    compiler_lib_search_path \
18932    archive_cmds \
18933    archive_expsym_cmds \
18934    postinstall_cmds \
18935    postuninstall_cmds \
18936    old_archive_from_expsyms_cmds \
18937    allow_undefined_flag \
18938    no_undefined_flag \
18939    export_symbols_cmds \
18940    hardcode_libdir_flag_spec \
18941    hardcode_libdir_flag_spec_ld \
18942    hardcode_libdir_separator \
18943    hardcode_automatic \
18944    module_cmds \
18945    module_expsym_cmds \
18946    lt_cv_prog_compiler_c_o \
18947    fix_srcfile_path \
18948    exclude_expsyms \
18949    include_expsyms; do
18950
18951    case $var in
18952    old_archive_cmds | \
18953    old_archive_from_new_cmds | \
18954    archive_cmds | \
18955    archive_expsym_cmds | \
18956    module_cmds | \
18957    module_expsym_cmds | \
18958    old_archive_from_expsyms_cmds | \
18959    export_symbols_cmds | \
18960    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18961    postinstall_cmds | postuninstall_cmds | \
18962    old_postinstall_cmds | old_postuninstall_cmds | \
18963    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18964      # Double-quote double-evaled strings.
18965      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18966      ;;
18967    *)
18968      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18969      ;;
18970    esac
18971  done
18972
18973  case $lt_echo in
18974  *'\$0 --fallback-echo"')
18975    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18976    ;;
18977  esac
18978
18979cfgfile="${ofile}T"
18980  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18981  $rm -f "$cfgfile"
18982  { echo "$as_me:$LINENO: creating $ofile" >&5
18983echo "$as_me: creating $ofile" >&6;}
18984
18985  cat <<__EOF__ >> "$cfgfile"
18986#! $SHELL
18987
18988# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18989# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18990# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18991#
18992# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
18993# Free Software Foundation, Inc.
18994#
18995# This file is part of GNU Libtool:
18996# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18997#
18998# This program is free software; you can redistribute it and/or modify
18999# it under the terms of the GNU General Public License as published by
19000# the Free Software Foundation; either version 2 of the License, or
19001# (at your option) any later version.
19002#
19003# This program is distributed in the hope that it will be useful, but
19004# WITHOUT ANY WARRANTY; without even the implied warranty of
19005# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19006# General Public License for more details.
19007#
19008# You should have received a copy of the GNU General Public License
19009# along with this program; if not, write to the Free Software
19010# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19011#
19012# As a special exception to the GNU General Public License, if you
19013# distribute this file as part of a program that contains a
19014# configuration script generated by Autoconf, you may include it under
19015# the same distribution terms that you use for the rest of that program.
19016
19017# A sed program that does not truncate output.
19018SED=$lt_SED
19019
19020# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19021Xsed="$SED -e 1s/^X//"
19022
19023# The HP-UX ksh and POSIX shell print the target directory to stdout
19024# if CDPATH is set.
19025(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19026
19027# The names of the tagged configurations supported by this script.
19028available_tags=
19029
19030# ### BEGIN LIBTOOL CONFIG
19031
19032# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033
19034# Shell to use when invoking shell scripts.
19035SHELL=$lt_SHELL
19036
19037# Whether or not to build shared libraries.
19038build_libtool_libs=$enable_shared
19039
19040# Whether or not to build static libraries.
19041build_old_libs=$enable_static
19042
19043# Whether or not to add -lc for building shared libraries.
19044build_libtool_need_lc=$archive_cmds_need_lc
19045
19046# Whether or not to disallow shared libs when runtime libs are static
19047allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19048
19049# Whether or not to optimize for fast installation.
19050fast_install=$enable_fast_install
19051
19052# The host system.
19053host_alias=$host_alias
19054host=$host
19055host_os=$host_os
19056
19057# The build system.
19058build_alias=$build_alias
19059build=$build
19060build_os=$build_os
19061
19062# An echo program that does not interpret backslashes.
19063echo=$lt_echo
19064
19065# The archiver.
19066AR=$lt_AR
19067AR_FLAGS=$lt_AR_FLAGS
19068
19069# A C compiler.
19070LTCC=$lt_LTCC
19071
19072# LTCC compiler flags.
19073LTCFLAGS=$lt_LTCFLAGS
19074
19075# A language-specific compiler.
19076CC=$lt_compiler
19077
19078# Is the compiler the GNU C compiler?
19079with_gcc=$GCC
19080
19081# An ERE matcher.
19082EGREP=$lt_EGREP
19083
19084# The linker used to build libraries.
19085LD=$lt_LD
19086
19087# Whether we need hard or soft links.
19088LN_S=$lt_LN_S
19089
19090# A BSD-compatible nm program.
19091NM=$lt_NM
19092
19093# A symbol stripping program
19094STRIP=$lt_STRIP
19095
19096# Used to examine libraries when file_magic_cmd begins "file"
19097MAGIC_CMD=$MAGIC_CMD
19098
19099# Used on cygwin: DLL creation program.
19100DLLTOOL="$DLLTOOL"
19101
19102# Used on cygwin: object dumper.
19103OBJDUMP="$OBJDUMP"
19104
19105# Used on cygwin: assembler.
19106AS="$AS"
19107
19108# The name of the directory that contains temporary libtool files.
19109objdir=$objdir
19110
19111# How to create reloadable object files.
19112reload_flag=$lt_reload_flag
19113reload_cmds=$lt_reload_cmds
19114
19115# How to pass a linker flag through the compiler.
19116wl=$lt_lt_prog_compiler_wl
19117
19118# Object file suffix (normally "o").
19119objext="$ac_objext"
19120
19121# Old archive suffix (normally "a").
19122libext="$libext"
19123
19124# Shared library suffix (normally ".so").
19125shrext_cmds='$shrext_cmds'
19126
19127# Executable file suffix (normally "").
19128exeext="$exeext"
19129
19130# Additional compiler flags for building library objects.
19131pic_flag=$lt_lt_prog_compiler_pic
19132pic_mode=$pic_mode
19133
19134# What is the maximum length of a command?
19135max_cmd_len=$lt_cv_sys_max_cmd_len
19136
19137# Does compiler simultaneously support -c and -o options?
19138compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19139
19140# Must we lock files when doing compilation?
19141need_locks=$lt_need_locks
19142
19143# Do we need the lib prefix for modules?
19144need_lib_prefix=$need_lib_prefix
19145
19146# Do we need a version for libraries?
19147need_version=$need_version
19148
19149# Whether dlopen is supported.
19150dlopen_support=$enable_dlopen
19151
19152# Whether dlopen of programs is supported.
19153dlopen_self=$enable_dlopen_self
19154
19155# Whether dlopen of statically linked programs is supported.
19156dlopen_self_static=$enable_dlopen_self_static
19157
19158# Compiler flag to prevent dynamic linking.
19159link_static_flag=$lt_lt_prog_compiler_static
19160
19161# Compiler flag to turn off builtin functions.
19162no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19163
19164# Compiler flag to allow reflexive dlopens.
19165export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19166
19167# Compiler flag to generate shared objects directly from archives.
19168whole_archive_flag_spec=$lt_whole_archive_flag_spec
19169
19170# Compiler flag to generate thread-safe objects.
19171thread_safe_flag_spec=$lt_thread_safe_flag_spec
19172
19173# Library versioning type.
19174version_type=$version_type
19175
19176# Format of library name prefix.
19177libname_spec=$lt_libname_spec
19178
19179# List of archive names.  First name is the real one, the rest are links.
19180# The last name is the one that the linker finds with -lNAME.
19181library_names_spec=$lt_library_names_spec
19182
19183# The coded name of the library, if different from the real name.
19184soname_spec=$lt_soname_spec
19185
19186# Commands used to build and install an old-style archive.
19187RANLIB=$lt_RANLIB
19188old_archive_cmds=$lt_old_archive_cmds
19189old_postinstall_cmds=$lt_old_postinstall_cmds
19190old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191
19192# Create an old-style archive from a shared archive.
19193old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19194
19195# Create a temporary old-style archive to link instead of a shared archive.
19196old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19197
19198# Commands used to build and install a shared archive.
19199archive_cmds=$lt_archive_cmds
19200archive_expsym_cmds=$lt_archive_expsym_cmds
19201postinstall_cmds=$lt_postinstall_cmds
19202postuninstall_cmds=$lt_postuninstall_cmds
19203
19204# Commands used to build a loadable module (assumed same as above if empty)
19205module_cmds=$lt_module_cmds
19206module_expsym_cmds=$lt_module_expsym_cmds
19207
19208# Commands to strip libraries.
19209old_striplib=$lt_old_striplib
19210striplib=$lt_striplib
19211
19212# Dependencies to place before the objects being linked to create a
19213# shared library.
19214predep_objects=$lt_predep_objects
19215
19216# Dependencies to place after the objects being linked to create a
19217# shared library.
19218postdep_objects=$lt_postdep_objects
19219
19220# Dependencies to place before the objects being linked to create a
19221# shared library.
19222predeps=$lt_predeps
19223
19224# Dependencies to place after the objects being linked to create a
19225# shared library.
19226postdeps=$lt_postdeps
19227
19228# The library search path used internally by the compiler when linking
19229# a shared library.
19230compiler_lib_search_path=$lt_compiler_lib_search_path
19231
19232# Method to check whether dependent libraries are shared objects.
19233deplibs_check_method=$lt_deplibs_check_method
19234
19235# Command to use when deplibs_check_method == file_magic.
19236file_magic_cmd=$lt_file_magic_cmd
19237
19238# Flag that allows shared libraries with undefined symbols to be built.
19239allow_undefined_flag=$lt_allow_undefined_flag
19240
19241# Flag that forces no undefined symbols.
19242no_undefined_flag=$lt_no_undefined_flag
19243
19244# Commands used to finish a libtool library installation in a directory.
19245finish_cmds=$lt_finish_cmds
19246
19247# Same as above, but a single script fragment to be evaled but not shown.
19248finish_eval=$lt_finish_eval
19249
19250# Take the output of nm and produce a listing of raw symbols and C names.
19251global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19252
19253# Transform the output of nm in a proper C declaration
19254global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19255
19256# Transform the output of nm in a C name address pair
19257global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19258
19259# This is the shared library runtime path variable.
19260runpath_var=$runpath_var
19261
19262# This is the shared library path variable.
19263shlibpath_var=$shlibpath_var
19264
19265# Is shlibpath searched before the hard-coded library search path?
19266shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267
19268# How to hardcode a shared library path into an executable.
19269hardcode_action=$hardcode_action
19270
19271# Whether we should hardcode library paths into libraries.
19272hardcode_into_libs=$hardcode_into_libs
19273
19274# Flag to hardcode \$libdir into a binary during linking.
19275# This must work even if \$libdir does not exist.
19276hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19277
19278# If ld is used when linking, flag to hardcode \$libdir into
19279# a binary during linking. This must work even if \$libdir does
19280# not exist.
19281hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19282
19283# Whether we need a single -rpath flag with a separated argument.
19284hardcode_libdir_separator=$lt_hardcode_libdir_separator
19285
19286# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19287# resulting binary.
19288hardcode_direct=$hardcode_direct
19289
19290# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19291# resulting binary.
19292hardcode_minus_L=$hardcode_minus_L
19293
19294# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19295# the resulting binary.
19296hardcode_shlibpath_var=$hardcode_shlibpath_var
19297
19298# Set to yes if building a shared library automatically hardcodes DIR into the library
19299# and all subsequent libraries and executables linked against it.
19300hardcode_automatic=$hardcode_automatic
19301
19302# Variables whose values should be saved in libtool wrapper scripts and
19303# restored at relink time.
19304variables_saved_for_relink="$variables_saved_for_relink"
19305
19306# Whether libtool must link a program against all its dependency libraries.
19307link_all_deplibs=$link_all_deplibs
19308
19309# Compile-time system search path for libraries
19310sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19311
19312# Run-time system search path for libraries
19313sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19314
19315# Fix the shell variable \$srcfile for the compiler.
19316fix_srcfile_path=$lt_fix_srcfile_path
19317
19318# Set to yes if exported symbols are required.
19319always_export_symbols=$always_export_symbols
19320
19321# The commands to list exported symbols.
19322export_symbols_cmds=$lt_export_symbols_cmds
19323
19324# The commands to extract the exported symbol list from a shared archive.
19325extract_expsyms_cmds=$lt_extract_expsyms_cmds
19326
19327# Symbols that should not be listed in the preloaded symbols.
19328exclude_expsyms=$lt_exclude_expsyms
19329
19330# Symbols that must always be exported.
19331include_expsyms=$lt_include_expsyms
19332
19333# ### END LIBTOOL CONFIG
19334
19335__EOF__
19336
19337
19338  case $host_os in
19339  aix3*)
19340    cat <<\EOF >> "$cfgfile"
19341
19342# AIX sometimes has problems with the GCC collect2 program.  For some
19343# reason, if we set the COLLECT_NAMES environment variable, the problems
19344# vanish in a puff of smoke.
19345if test "X${COLLECT_NAMES+set}" != Xset; then
19346  COLLECT_NAMES=
19347  export COLLECT_NAMES
19348fi
19349EOF
19350    ;;
19351  esac
19352
19353  # We use sed instead of cat because bash on DJGPP gets confused if
19354  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19355  # text mode, it properly converts lines to CR/LF.  This bash problem
19356  # is reportedly fixed, but why not run on old versions too?
19357  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19358
19359  mv -f "$cfgfile" "$ofile" || \
19360    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19361  chmod +x "$ofile"
19362
19363else
19364  # If there is no Makefile yet, we rely on a make rule to execute
19365  # `config.status --recheck' to rerun these tests and create the
19366  # libtool script then.
19367  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19368  if test -f "$ltmain_in"; then
19369    test -f Makefile && make "$ltmain"
19370  fi
19371fi
19372
19373
19374ac_ext=c
19375ac_cpp='$CPP $CPPFLAGS'
19376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379
19380CC="$lt_save_CC"
19381
19382
19383# Check whether --with-tags was given.
19384if test "${with_tags+set}" = set; then
19385  withval=$with_tags; tagnames="$withval"
19386fi
19387
19388
19389if test -f "$ltmain" && test -n "$tagnames"; then
19390  if test ! -f "${ofile}"; then
19391    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
19392echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
19393  fi
19394
19395  if test -z "$LTCC"; then
19396    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
19397    if test -z "$LTCC"; then
19398      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
19399echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
19400    else
19401      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
19402echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
19403    fi
19404  fi
19405  if test -z "$LTCFLAGS"; then
19406    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
19407  fi
19408
19409  # Extract list of available tagged configurations in $ofile.
19410  # Note that this assumes the entire list is on one line.
19411  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
19412
19413  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19414  for tagname in $tagnames; do
19415    IFS="$lt_save_ifs"
19416    # Check whether tagname contains only valid characters
19417    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
19418    "") ;;
19419    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
19420echo "$as_me: error: invalid tag name: $tagname" >&2;}
19421   { (exit 1); exit 1; }; }
19422	;;
19423    esac
19424
19425    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
19426    then
19427      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
19428echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
19429   { (exit 1); exit 1; }; }
19430    fi
19431
19432    # Update the list of available tags.
19433    if test -n "$tagname"; then
19434      echo appending configuration tag \"$tagname\" to $ofile
19435
19436      case $tagname in
19437      CXX)
19438	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19439	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19440	    (test "X$CXX" != "Xg++"))) ; then
19441	  ac_ext=cpp
19442ac_cpp='$CXXCPP $CPPFLAGS'
19443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19446
19447
19448
19449
19450archive_cmds_need_lc_CXX=no
19451allow_undefined_flag_CXX=
19452always_export_symbols_CXX=no
19453archive_expsym_cmds_CXX=
19454export_dynamic_flag_spec_CXX=
19455hardcode_direct_CXX=no
19456hardcode_libdir_flag_spec_CXX=
19457hardcode_libdir_flag_spec_ld_CXX=
19458hardcode_libdir_separator_CXX=
19459hardcode_minus_L_CXX=no
19460hardcode_shlibpath_var_CXX=unsupported
19461hardcode_automatic_CXX=no
19462module_cmds_CXX=
19463module_expsym_cmds_CXX=
19464link_all_deplibs_CXX=unknown
19465old_archive_cmds_CXX=$old_archive_cmds
19466no_undefined_flag_CXX=
19467whole_archive_flag_spec_CXX=
19468enable_shared_with_static_runtimes_CXX=no
19469
19470# Dependencies to place before and after the object being linked:
19471predep_objects_CXX=
19472postdep_objects_CXX=
19473predeps_CXX=
19474postdeps_CXX=
19475compiler_lib_search_path_CXX=
19476
19477# Source file extension for C++ test sources.
19478ac_ext=cpp
19479
19480# Object file extension for compiled C++ test sources.
19481objext=o
19482objext_CXX=$objext
19483
19484# Code to be used in simple compile tests
19485lt_simple_compile_test_code="int some_variable = 0;"
19486
19487# Code to be used in simple link tests
19488lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19489
19490# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19491
19492# If no C compiler was specified, use CC.
19493LTCC=${LTCC-"$CC"}
19494
19495# If no C compiler flags were specified, use CFLAGS.
19496LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19497
19498# Allow CC to be a program name with arguments.
19499compiler=$CC
19500
19501
19502# save warnings/boilerplate of simple test code
19503ac_outfile=conftest.$ac_objext
19504echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19505eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19506_lt_compiler_boilerplate=`cat conftest.err`
19507$rm conftest*
19508
19509ac_outfile=conftest.$ac_objext
19510echo "$lt_simple_link_test_code" >conftest.$ac_ext
19511eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19512_lt_linker_boilerplate=`cat conftest.err`
19513$rm conftest*
19514
19515
19516# Allow CC to be a program name with arguments.
19517lt_save_CC=$CC
19518lt_save_LD=$LD
19519lt_save_GCC=$GCC
19520GCC=$GXX
19521lt_save_with_gnu_ld=$with_gnu_ld
19522lt_save_path_LD=$lt_cv_path_LD
19523if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19524  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19525else
19526  $as_unset lt_cv_prog_gnu_ld
19527fi
19528if test -n "${lt_cv_path_LDCXX+set}"; then
19529  lt_cv_path_LD=$lt_cv_path_LDCXX
19530else
19531  $as_unset lt_cv_path_LD
19532fi
19533test -z "${LDCXX+set}" || LD=$LDCXX
19534CC=${CXX-"c++"}
19535compiler=$CC
19536compiler_CXX=$CC
19537for cc_temp in $compiler""; do
19538  case $cc_temp in
19539    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19540    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19541    \-*) ;;
19542    *) break;;
19543  esac
19544done
19545cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19546
19547
19548# We don't want -fno-exception wen compiling C++ code, so set the
19549# no_builtin_flag separately
19550if test "$GXX" = yes; then
19551  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19552else
19553  lt_prog_compiler_no_builtin_flag_CXX=
19554fi
19555
19556if test "$GXX" = yes; then
19557  # Set up default GNU C++ configuration
19558
19559
19560# Check whether --with-gnu-ld was given.
19561if test "${with_gnu_ld+set}" = set; then
19562  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19563else
19564  with_gnu_ld=no
19565fi
19566
19567ac_prog=ld
19568if test "$GCC" = yes; then
19569  # Check if gcc -print-prog-name=ld gives a path.
19570  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
19571echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
19572  case $host in
19573  *-*-mingw*)
19574    # gcc leaves a trailing carriage return which upsets mingw
19575    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19576  *)
19577    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19578  esac
19579  case $ac_prog in
19580    # Accept absolute paths.
19581    [\\/]* | ?:[\\/]*)
19582      re_direlt='/[^/][^/]*/\.\./'
19583      # Canonicalize the pathname of ld
19584      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
19585      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19586	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
19587      done
19588      test -z "$LD" && LD="$ac_prog"
19589      ;;
19590  "")
19591    # If it fails, then pretend we aren't using GCC.
19592    ac_prog=ld
19593    ;;
19594  *)
19595    # If it is relative, then search for the first ld in PATH.
19596    with_gnu_ld=unknown
19597    ;;
19598  esac
19599elif test "$with_gnu_ld" = yes; then
19600  { echo "$as_me:$LINENO: checking for GNU ld" >&5
19601echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
19602else
19603  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19604echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
19605fi
19606if test "${lt_cv_path_LD+set}" = set; then
19607  echo $ECHO_N "(cached) $ECHO_C" >&6
19608else
19609  if test -z "$LD"; then
19610  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19611  for ac_dir in $PATH; do
19612    IFS="$lt_save_ifs"
19613    test -z "$ac_dir" && ac_dir=.
19614    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19615      lt_cv_path_LD="$ac_dir/$ac_prog"
19616      # Check to see if the program is GNU ld.  I'd rather use --version,
19617      # but apparently some variants of GNU ld only accept -v.
19618      # Break only if it was the GNU/non-GNU ld that we prefer.
19619      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19620      *GNU* | *'with BFD'*)
19621	test "$with_gnu_ld" != no && break
19622	;;
19623      *)
19624	test "$with_gnu_ld" != yes && break
19625	;;
19626      esac
19627    fi
19628  done
19629  IFS="$lt_save_ifs"
19630else
19631  lt_cv_path_LD="$LD" # Let the user override the test with a path.
19632fi
19633fi
19634
19635LD="$lt_cv_path_LD"
19636if test -n "$LD"; then
19637  { echo "$as_me:$LINENO: result: $LD" >&5
19638echo "${ECHO_T}$LD" >&6; }
19639else
19640  { echo "$as_me:$LINENO: result: no" >&5
19641echo "${ECHO_T}no" >&6; }
19642fi
19643test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19644echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19645   { (exit 1); exit 1; }; }
19646{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19647echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19648if test "${lt_cv_prog_gnu_ld+set}" = set; then
19649  echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19652case `$LD -v 2>&1 </dev/null` in
19653*GNU* | *'with BFD'*)
19654  lt_cv_prog_gnu_ld=yes
19655  ;;
19656*)
19657  lt_cv_prog_gnu_ld=no
19658  ;;
19659esac
19660fi
19661{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19662echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
19663with_gnu_ld=$lt_cv_prog_gnu_ld
19664
19665
19666
19667  # Check if GNU C++ uses GNU ld as the underlying linker, since the
19668  # archiving commands below assume that GNU ld is being used.
19669  if test "$with_gnu_ld" = yes; then
19670    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19671    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'
19672
19673    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19674    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19675
19676    # If archive_cmds runs LD, not CC, wlarc should be empty
19677    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19678    #     investigate it a little bit more. (MM)
19679    wlarc='${wl}'
19680
19681    # ancient GNU ld didn't support --whole-archive et. al.
19682    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
19683	grep 'no-whole-archive' > /dev/null; then
19684      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19685    else
19686      whole_archive_flag_spec_CXX=
19687    fi
19688  else
19689    with_gnu_ld=no
19690    wlarc=
19691
19692    # A generic and very simple default shared library creation
19693    # command for GNU C++ for the case where it uses the native
19694    # linker, instead of GNU ld.  If possible, this setting should
19695    # overridden to take advantage of the native linker features on
19696    # the platform it is being used on.
19697    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19698  fi
19699
19700  # Commands to make compiler produce verbose output that lists
19701  # what "hidden" libraries, object files and flags are used when
19702  # linking a shared library.
19703  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19704
19705else
19706  GXX=no
19707  with_gnu_ld=no
19708  wlarc=
19709fi
19710
19711# PORTME: fill in a description of your system's C++ link characteristics
19712{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19713echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19714ld_shlibs_CXX=yes
19715case $host_os in
19716  aix3*)
19717    # FIXME: insert proper C++ library support
19718    ld_shlibs_CXX=no
19719    ;;
19720  aix4* | aix5*)
19721    if test "$host_cpu" = ia64; then
19722      # On IA64, the linker does run time linking by default, so we don't
19723      # have to do anything special.
19724      aix_use_runtimelinking=no
19725      exp_sym_flag='-Bexport'
19726      no_entry_flag=""
19727    else
19728      aix_use_runtimelinking=no
19729
19730      # Test if we are trying to use run time linking or normal
19731      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19732      # need to do runtime linking.
19733      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19734	for ld_flag in $LDFLAGS; do
19735	  case $ld_flag in
19736	  *-brtl*)
19737	    aix_use_runtimelinking=yes
19738	    break
19739	    ;;
19740	  esac
19741	done
19742	;;
19743      esac
19744
19745      exp_sym_flag='-bexport'
19746      no_entry_flag='-bnoentry'
19747    fi
19748
19749    # When large executables or shared objects are built, AIX ld can
19750    # have problems creating the table of contents.  If linking a library
19751    # or program results in "error TOC overflow" add -mminimal-toc to
19752    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19753    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19754
19755    archive_cmds_CXX=''
19756    hardcode_direct_CXX=yes
19757    hardcode_libdir_separator_CXX=':'
19758    link_all_deplibs_CXX=yes
19759
19760    if test "$GXX" = yes; then
19761      case $host_os in aix4.[012]|aix4.[012].*)
19762      # We only want to do this on AIX 4.2 and lower, the check
19763      # below for broken collect2 doesn't work under 4.3+
19764	collect2name=`${CC} -print-prog-name=collect2`
19765	if test -f "$collect2name" && \
19766	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19767	then
19768	  # We have reworked collect2
19769	  :
19770	else
19771	  # We have old collect2
19772	  hardcode_direct_CXX=unsupported
19773	  # It fails to find uninstalled libraries when the uninstalled
19774	  # path is not listed in the libpath.  Setting hardcode_minus_L
19775	  # to unsupported forces relinking
19776	  hardcode_minus_L_CXX=yes
19777	  hardcode_libdir_flag_spec_CXX='-L$libdir'
19778	  hardcode_libdir_separator_CXX=
19779	fi
19780	;;
19781      esac
19782      shared_flag='-shared'
19783      if test "$aix_use_runtimelinking" = yes; then
19784	shared_flag="$shared_flag "'${wl}-G'
19785      fi
19786    else
19787      # not using gcc
19788      if test "$host_cpu" = ia64; then
19789	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19790	# chokes on -Wl,-G. The following line is correct:
19791	shared_flag='-G'
19792      else
19793	if test "$aix_use_runtimelinking" = yes; then
19794	  shared_flag='${wl}-G'
19795	else
19796	  shared_flag='${wl}-bM:SRE'
19797	fi
19798      fi
19799    fi
19800
19801    # It seems that -bexpall does not export symbols beginning with
19802    # underscore (_), so it is better to generate a list of symbols to export.
19803    always_export_symbols_CXX=yes
19804    if test "$aix_use_runtimelinking" = yes; then
19805      # Warning - without using the other runtime loading flags (-brtl),
19806      # -berok will link without error, but may produce a broken library.
19807      allow_undefined_flag_CXX='-berok'
19808      # Determine the default libpath from the value encoded in an empty executable.
19809      cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h.  */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h.  */
19815
19816int
19817main ()
19818{
19819
19820  ;
19821  return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext conftest$ac_exeext
19825if { (ac_try="$ac_link"
19826case "(($ac_try" in
19827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828  *) ac_try_echo=$ac_try;;
19829esac
19830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831  (eval "$ac_link") 2>conftest.er1
19832  ac_status=$?
19833  grep -v '^ *+' conftest.er1 >conftest.err
19834  rm -f conftest.er1
19835  cat conftest.err >&5
19836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837  (exit $ac_status); } && {
19838	 test -z "$ac_cxx_werror_flag" ||
19839	 test ! -s conftest.err
19840       } && test -s conftest$ac_exeext &&
19841       $as_test_x conftest$ac_exeext; then
19842
19843lt_aix_libpath_sed='
19844    /Import File Strings/,/^$/ {
19845	/^0/ {
19846	    s/^0  *\(.*\)$/\1/
19847	    p
19848	}
19849    }'
19850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19851# Check for a 64-bit object if we didn't find anything.
19852if test -z "$aix_libpath"; then
19853  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19854fi
19855else
19856  echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
19859
19860fi
19861
19862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19863      conftest$ac_exeext conftest.$ac_ext
19864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19865
19866      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19867
19868      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"
19869     else
19870      if test "$host_cpu" = ia64; then
19871	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19872	allow_undefined_flag_CXX="-z nodefs"
19873	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"
19874      else
19875	# Determine the default libpath from the value encoded in an empty executable.
19876	cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h.  */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h.  */
19882
19883int
19884main ()
19885{
19886
19887  ;
19888  return 0;
19889}
19890_ACEOF
19891rm -f conftest.$ac_objext conftest$ac_exeext
19892if { (ac_try="$ac_link"
19893case "(($ac_try" in
19894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895  *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898  (eval "$ac_link") 2>conftest.er1
19899  ac_status=$?
19900  grep -v '^ *+' conftest.er1 >conftest.err
19901  rm -f conftest.er1
19902  cat conftest.err >&5
19903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904  (exit $ac_status); } && {
19905	 test -z "$ac_cxx_werror_flag" ||
19906	 test ! -s conftest.err
19907       } && test -s conftest$ac_exeext &&
19908       $as_test_x conftest$ac_exeext; then
19909
19910lt_aix_libpath_sed='
19911    /Import File Strings/,/^$/ {
19912	/^0/ {
19913	    s/^0  *\(.*\)$/\1/
19914	    p
19915	}
19916    }'
19917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19918# Check for a 64-bit object if we didn't find anything.
19919if test -z "$aix_libpath"; then
19920  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19921fi
19922else
19923  echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926
19927fi
19928
19929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930      conftest$ac_exeext conftest.$ac_ext
19931if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19932
19933	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19934	# Warning - without using the other run time loading flags,
19935	# -berok will link without error, but may produce a broken library.
19936	no_undefined_flag_CXX=' ${wl}-bernotok'
19937	allow_undefined_flag_CXX=' ${wl}-berok'
19938	# Exported symbols can be pulled into shared objects from archives
19939	whole_archive_flag_spec_CXX='$convenience'
19940	archive_cmds_need_lc_CXX=yes
19941	# This is similar to how AIX traditionally builds its shared libraries.
19942	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'
19943      fi
19944    fi
19945    ;;
19946
19947  beos*)
19948    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19949      allow_undefined_flag_CXX=unsupported
19950      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19951      # support --undefined.  This deserves some investigation.  FIXME
19952      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19953    else
19954      ld_shlibs_CXX=no
19955    fi
19956    ;;
19957
19958  chorus*)
19959    case $cc_basename in
19960      *)
19961	# FIXME: insert proper C++ library support
19962	ld_shlibs_CXX=no
19963	;;
19964    esac
19965    ;;
19966
19967  cygwin* | mingw* | pw32*)
19968    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19969    # as there is no search path for DLLs.
19970    hardcode_libdir_flag_spec_CXX='-L$libdir'
19971    allow_undefined_flag_CXX=unsupported
19972    always_export_symbols_CXX=no
19973    enable_shared_with_static_runtimes_CXX=yes
19974
19975    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19976      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'
19977      # If the export-symbols file already is a .def file (1st line
19978      # is EXPORTS), use it as is; otherwise, prepend...
19979      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19980	cp $export_symbols $output_objdir/$soname.def;
19981      else
19982	echo EXPORTS > $output_objdir/$soname.def;
19983	cat $export_symbols >> $output_objdir/$soname.def;
19984      fi~
19985      $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'
19986    else
19987      ld_shlibs_CXX=no
19988    fi
19989  ;;
19990      darwin* | rhapsody*)
19991        case $host_os in
19992        rhapsody* | darwin1.[012])
19993         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19994         ;;
19995       *) # Darwin 1.3 on
19996         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19997           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19998         else
19999           case ${MACOSX_DEPLOYMENT_TARGET} in
20000             10.[012])
20001               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20002               ;;
20003             10.*)
20004               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
20005               ;;
20006           esac
20007         fi
20008         ;;
20009        esac
20010      archive_cmds_need_lc_CXX=no
20011      hardcode_direct_CXX=no
20012      hardcode_automatic_CXX=yes
20013      hardcode_shlibpath_var_CXX=unsupported
20014      whole_archive_flag_spec_CXX=''
20015      link_all_deplibs_CXX=yes
20016
20017    if test "$GXX" = yes ; then
20018      lt_int_apple_cc_single_mod=no
20019      output_verbose_link_cmd='echo'
20020      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
20021       lt_int_apple_cc_single_mod=yes
20022      fi
20023      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20024       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20025      else
20026          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'
20027        fi
20028        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20029        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20030          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20031            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}'
20032          else
20033            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}'
20034          fi
20035            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}'
20036      else
20037      case $cc_basename in
20038        xlc*)
20039         output_verbose_link_cmd='echo'
20040          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'
20041          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20042          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20043          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}'
20044          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}'
20045          ;;
20046       *)
20047         ld_shlibs_CXX=no
20048          ;;
20049      esac
20050      fi
20051        ;;
20052
20053  dgux*)
20054    case $cc_basename in
20055      ec++*)
20056	# FIXME: insert proper C++ library support
20057	ld_shlibs_CXX=no
20058	;;
20059      ghcx*)
20060	# Green Hills C++ Compiler
20061	# FIXME: insert proper C++ library support
20062	ld_shlibs_CXX=no
20063	;;
20064      *)
20065	# FIXME: insert proper C++ library support
20066	ld_shlibs_CXX=no
20067	;;
20068    esac
20069    ;;
20070  freebsd[12]*)
20071    # C++ shared libraries reported to be fairly broken before switch to ELF
20072    ld_shlibs_CXX=no
20073    ;;
20074  freebsd-elf*)
20075    archive_cmds_need_lc_CXX=no
20076    ;;
20077  freebsd* | dragonfly*)
20078    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20079    # conventions
20080    ld_shlibs_CXX=yes
20081    ;;
20082  gnu*)
20083    ;;
20084  hpux9*)
20085    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20086    hardcode_libdir_separator_CXX=:
20087    export_dynamic_flag_spec_CXX='${wl}-E'
20088    hardcode_direct_CXX=yes
20089    hardcode_minus_L_CXX=yes # Not in the search PATH,
20090				# but as the default
20091				# location of the library.
20092
20093    case $cc_basename in
20094    CC*)
20095      # FIXME: insert proper C++ library support
20096      ld_shlibs_CXX=no
20097      ;;
20098    aCC*)
20099      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'
20100      # Commands to make compiler produce verbose output that lists
20101      # what "hidden" libraries, object files and flags are used when
20102      # linking a shared library.
20103      #
20104      # There doesn't appear to be a way to prevent this compiler from
20105      # explicitly linking system object files so we need to strip them
20106      # from the output so that they don't get included in the library
20107      # dependencies.
20108      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'
20109      ;;
20110    *)
20111      if test "$GXX" = yes; then
20112        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'
20113      else
20114        # FIXME: insert proper C++ library support
20115        ld_shlibs_CXX=no
20116      fi
20117      ;;
20118    esac
20119    ;;
20120  hpux10*|hpux11*)
20121    if test $with_gnu_ld = no; then
20122      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20123      hardcode_libdir_separator_CXX=:
20124
20125      case $host_cpu in
20126      hppa*64*|ia64*) ;;
20127      *)
20128	export_dynamic_flag_spec_CXX='${wl}-E'
20129        ;;
20130      esac
20131    fi
20132    case $host_cpu in
20133    hppa*64*|ia64*)
20134      hardcode_direct_CXX=no
20135      hardcode_shlibpath_var_CXX=no
20136      ;;
20137    *)
20138      hardcode_direct_CXX=yes
20139      hardcode_minus_L_CXX=yes # Not in the search PATH,
20140					      # but as the default
20141					      # location of the library.
20142      ;;
20143    esac
20144
20145    case $cc_basename in
20146      CC*)
20147	# FIXME: insert proper C++ library support
20148	ld_shlibs_CXX=no
20149	;;
20150      aCC*)
20151	case $host_cpu in
20152	hppa*64*)
20153	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20154	  ;;
20155	ia64*)
20156	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20157	  ;;
20158	*)
20159	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20160	  ;;
20161	esac
20162	# Commands to make compiler produce verbose output that lists
20163	# what "hidden" libraries, object files and flags are used when
20164	# linking a shared library.
20165	#
20166	# There doesn't appear to be a way to prevent this compiler from
20167	# explicitly linking system object files so we need to strip them
20168	# from the output so that they don't get included in the library
20169	# dependencies.
20170	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'
20171	;;
20172      *)
20173	if test "$GXX" = yes; then
20174	  if test $with_gnu_ld = no; then
20175	    case $host_cpu in
20176	    hppa*64*)
20177	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20178	      ;;
20179	    ia64*)
20180	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20181	      ;;
20182	    *)
20183	      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'
20184	      ;;
20185	    esac
20186	  fi
20187	else
20188	  # FIXME: insert proper C++ library support
20189	  ld_shlibs_CXX=no
20190	fi
20191	;;
20192    esac
20193    ;;
20194  interix[3-9]*)
20195    hardcode_direct_CXX=no
20196    hardcode_shlibpath_var_CXX=no
20197    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20198    export_dynamic_flag_spec_CXX='${wl}-E'
20199    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20200    # Instead, shared libraries are loaded at an image base (0x10000000 by
20201    # default) and relocated if they conflict, which is a slow very memory
20202    # consuming and fragmenting process.  To avoid this, we pick a random,
20203    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20204    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20205    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'
20206    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'
20207    ;;
20208  irix5* | irix6*)
20209    case $cc_basename in
20210      CC*)
20211	# SGI C++
20212	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'
20213
20214	# Archives containing C++ object files must be created using
20215	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20216	# necessary to make sure instantiated templates are included
20217	# in the archive.
20218	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20219	;;
20220      *)
20221	if test "$GXX" = yes; then
20222	  if test "$with_gnu_ld" = no; then
20223	    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'
20224	  else
20225	    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'
20226	  fi
20227	fi
20228	link_all_deplibs_CXX=yes
20229	;;
20230    esac
20231    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20232    hardcode_libdir_separator_CXX=:
20233    ;;
20234  linux* | k*bsd*-gnu)
20235    case $cc_basename in
20236      KCC*)
20237	# Kuck and Associates, Inc. (KAI) C++ Compiler
20238
20239	# KCC will only create a shared library if the output file
20240	# ends with ".so" (or ".sl" for HP-UX), so rename the library
20241	# to its proper name (with version) after linking.
20242	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'
20243	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'
20244	# Commands to make compiler produce verbose output that lists
20245	# what "hidden" libraries, object files and flags are used when
20246	# linking a shared library.
20247	#
20248	# There doesn't appear to be a way to prevent this compiler from
20249	# explicitly linking system object files so we need to strip them
20250	# from the output so that they don't get included in the library
20251	# dependencies.
20252	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'
20253
20254	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
20255	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20256
20257	# Archives containing C++ object files must be created using
20258	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
20259	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20260	;;
20261      icpc*)
20262	# Intel C++
20263	with_gnu_ld=yes
20264	# version 8.0 and above of icpc choke on multiply defined symbols
20265	# if we add $predep_objects and $postdep_objects, however 7.1 and
20266	# earlier do not add the objects themselves.
20267	case `$CC -V 2>&1` in
20268	*"Version 7."*)
20269  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20270  	  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'
20271	  ;;
20272	*)  # Version 8.0 or newer
20273	  tmp_idyn=
20274	  case $host_cpu in
20275	    ia64*) tmp_idyn=' -i_dynamic';;
20276	  esac
20277  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20278	  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'
20279	  ;;
20280	esac
20281	archive_cmds_need_lc_CXX=no
20282	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20283	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20284	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20285	;;
20286      pgCC*)
20287        # Portland Group C++ compiler
20288	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20289  	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'
20290
20291	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20292	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20293	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'
20294        ;;
20295      cxx*)
20296	# Compaq C++
20297	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20298	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'
20299
20300	runpath_var=LD_RUN_PATH
20301	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20302	hardcode_libdir_separator_CXX=:
20303
20304	# Commands to make compiler produce verbose output that lists
20305	# what "hidden" libraries, object files and flags are used when
20306	# linking a shared library.
20307	#
20308	# There doesn't appear to be a way to prevent this compiler from
20309	# explicitly linking system object files so we need to strip them
20310	# from the output so that they don't get included in the library
20311	# dependencies.
20312	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'
20313	;;
20314      *)
20315	case `$CC -V 2>&1 | sed 5q` in
20316	*Sun\ C*)
20317	  # Sun C++ 5.9
20318	  no_undefined_flag_CXX=' -zdefs'
20319	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20320	  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'
20321	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20322	  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'
20323
20324	  # Not sure whether something based on
20325	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20326	  # would be better.
20327	  output_verbose_link_cmd='echo'
20328
20329	  # Archives containing C++ object files must be created using
20330	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20331	  # necessary to make sure instantiated templates are included
20332	  # in the archive.
20333	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20334	  ;;
20335	esac
20336	;;
20337    esac
20338    ;;
20339  lynxos*)
20340    # FIXME: insert proper C++ library support
20341    ld_shlibs_CXX=no
20342    ;;
20343  m88k*)
20344    # FIXME: insert proper C++ library support
20345    ld_shlibs_CXX=no
20346    ;;
20347  mvs*)
20348    case $cc_basename in
20349      cxx*)
20350	# FIXME: insert proper C++ library support
20351	ld_shlibs_CXX=no
20352	;;
20353      *)
20354	# FIXME: insert proper C++ library support
20355	ld_shlibs_CXX=no
20356	;;
20357    esac
20358    ;;
20359  netbsd*)
20360    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20361      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20362      wlarc=
20363      hardcode_libdir_flag_spec_CXX='-R$libdir'
20364      hardcode_direct_CXX=yes
20365      hardcode_shlibpath_var_CXX=no
20366    fi
20367    # Workaround some broken pre-1.5 toolchains
20368    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20369    ;;
20370  openbsd2*)
20371    # C++ shared libraries are fairly broken
20372    ld_shlibs_CXX=no
20373    ;;
20374  openbsd*)
20375    if test -f /usr/libexec/ld.so; then
20376      hardcode_direct_CXX=yes
20377      hardcode_shlibpath_var_CXX=no
20378      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20379      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20380      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20381	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20382	export_dynamic_flag_spec_CXX='${wl}-E'
20383	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20384      fi
20385      output_verbose_link_cmd='echo'
20386    else
20387      ld_shlibs_CXX=no
20388    fi
20389    ;;
20390  osf3*)
20391    case $cc_basename in
20392      KCC*)
20393	# Kuck and Associates, Inc. (KAI) C++ Compiler
20394
20395	# KCC will only create a shared library if the output file
20396	# ends with ".so" (or ".sl" for HP-UX), so rename the library
20397	# to its proper name (with version) after linking.
20398	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'
20399
20400	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20401	hardcode_libdir_separator_CXX=:
20402
20403	# Archives containing C++ object files must be created using
20404	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
20405	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20406
20407	;;
20408      RCC*)
20409	# Rational C++ 2.4.1
20410	# FIXME: insert proper C++ library support
20411	ld_shlibs_CXX=no
20412	;;
20413      cxx*)
20414	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20415	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'
20416
20417	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20418	hardcode_libdir_separator_CXX=:
20419
20420	# Commands to make compiler produce verbose output that lists
20421	# what "hidden" libraries, object files and flags are used when
20422	# linking a shared library.
20423	#
20424	# There doesn't appear to be a way to prevent this compiler from
20425	# explicitly linking system object files so we need to strip them
20426	# from the output so that they don't get included in the library
20427	# dependencies.
20428	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'
20429	;;
20430      *)
20431	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20432	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20433	  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'
20434
20435	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20436	  hardcode_libdir_separator_CXX=:
20437
20438	  # Commands to make compiler produce verbose output that lists
20439	  # what "hidden" libraries, object files and flags are used when
20440	  # linking a shared library.
20441	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20442
20443	else
20444	  # FIXME: insert proper C++ library support
20445	  ld_shlibs_CXX=no
20446	fi
20447	;;
20448    esac
20449    ;;
20450  osf4* | osf5*)
20451    case $cc_basename in
20452      KCC*)
20453	# Kuck and Associates, Inc. (KAI) C++ Compiler
20454
20455	# KCC will only create a shared library if the output file
20456	# ends with ".so" (or ".sl" for HP-UX), so rename the library
20457	# to its proper name (with version) after linking.
20458	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'
20459
20460	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20461	hardcode_libdir_separator_CXX=:
20462
20463	# Archives containing C++ object files must be created using
20464	# the KAI C++ compiler.
20465	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
20466	;;
20467      RCC*)
20468	# Rational C++ 2.4.1
20469	# FIXME: insert proper C++ library support
20470	ld_shlibs_CXX=no
20471	;;
20472      cxx*)
20473	allow_undefined_flag_CXX=' -expect_unresolved \*'
20474	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'
20475	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20476	  echo "-hidden">> $lib.exp~
20477	  $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~
20478	  $rm $lib.exp'
20479
20480	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20481	hardcode_libdir_separator_CXX=:
20482
20483	# Commands to make compiler produce verbose output that lists
20484	# what "hidden" libraries, object files and flags are used when
20485	# linking a shared library.
20486	#
20487	# There doesn't appear to be a way to prevent this compiler from
20488	# explicitly linking system object files so we need to strip them
20489	# from the output so that they don't get included in the library
20490	# dependencies.
20491	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'
20492	;;
20493      *)
20494	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20495	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20496	 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'
20497
20498	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20499	  hardcode_libdir_separator_CXX=:
20500
20501	  # Commands to make compiler produce verbose output that lists
20502	  # what "hidden" libraries, object files and flags are used when
20503	  # linking a shared library.
20504	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20505
20506	else
20507	  # FIXME: insert proper C++ library support
20508	  ld_shlibs_CXX=no
20509	fi
20510	;;
20511    esac
20512    ;;
20513  psos*)
20514    # FIXME: insert proper C++ library support
20515    ld_shlibs_CXX=no
20516    ;;
20517  sunos4*)
20518    case $cc_basename in
20519      CC*)
20520	# Sun C++ 4.x
20521	# FIXME: insert proper C++ library support
20522	ld_shlibs_CXX=no
20523	;;
20524      lcc*)
20525	# Lucid
20526	# FIXME: insert proper C++ library support
20527	ld_shlibs_CXX=no
20528	;;
20529      *)
20530	# FIXME: insert proper C++ library support
20531	ld_shlibs_CXX=no
20532	;;
20533    esac
20534    ;;
20535  solaris*)
20536    case $cc_basename in
20537      CC*)
20538	# Sun C++ 4.2, 5.x and Centerline C++
20539        archive_cmds_need_lc_CXX=yes
20540	no_undefined_flag_CXX=' -zdefs'
20541	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20542	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20543	$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'
20544
20545	hardcode_libdir_flag_spec_CXX='-R$libdir'
20546	hardcode_shlibpath_var_CXX=no
20547	case $host_os in
20548	  solaris2.[0-5] | solaris2.[0-5].*) ;;
20549	  *)
20550	    # The compiler driver will combine and reorder linker options,
20551	    # but understands `-z linker_flag'.
20552	    # Supported since Solaris 2.6 (maybe 2.5.1?)
20553	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20554	    ;;
20555	esac
20556	link_all_deplibs_CXX=yes
20557
20558	output_verbose_link_cmd='echo'
20559
20560	# Archives containing C++ object files must be created using
20561	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
20562	# necessary to make sure instantiated templates are included
20563	# in the archive.
20564	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20565	;;
20566      gcx*)
20567	# Green Hills C++ Compiler
20568	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20569
20570	# The C++ compiler must be used to create the archive.
20571	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20572	;;
20573      *)
20574	# GNU C++ compiler with Solaris linker
20575	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20576	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20577	  if $CC --version | grep -v '^2\.7' > /dev/null; then
20578	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20579	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20580		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20581
20582	    # Commands to make compiler produce verbose output that lists
20583	    # what "hidden" libraries, object files and flags are used when
20584	    # linking a shared library.
20585	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
20586	  else
20587	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
20588	    # platform.
20589	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20590	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20591		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20592
20593	    # Commands to make compiler produce verbose output that lists
20594	    # what "hidden" libraries, object files and flags are used when
20595	    # linking a shared library.
20596	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
20597	  fi
20598
20599	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20600	  case $host_os in
20601	  solaris2.[0-5] | solaris2.[0-5].*) ;;
20602	  *)
20603	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20604	    ;;
20605	  esac
20606	fi
20607	;;
20608    esac
20609    ;;
20610  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20611    no_undefined_flag_CXX='${wl}-z,text'
20612    archive_cmds_need_lc_CXX=no
20613    hardcode_shlibpath_var_CXX=no
20614    runpath_var='LD_RUN_PATH'
20615
20616    case $cc_basename in
20617      CC*)
20618	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20619	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20620	;;
20621      *)
20622	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20623	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20624	;;
20625    esac
20626    ;;
20627  sysv5* | sco3.2v5* | sco5v6*)
20628    # Note: We can NOT use -z defs as we might desire, because we do not
20629    # link with -lc, and that would cause any symbols used from libc to
20630    # always be unresolved, which means just about no library would
20631    # ever link correctly.  If we're not using GNU ld we use -z text
20632    # though, which does catch some bad symbols but isn't as heavy-handed
20633    # as -z defs.
20634    # For security reasons, it is highly recommended that you always
20635    # use absolute paths for naming shared libraries, and exclude the
20636    # DT_RUNPATH tag from executables and libraries.  But doing so
20637    # requires that you compile everything twice, which is a pain.
20638    # So that behaviour is only enabled if SCOABSPATH is set to a
20639    # non-empty value in the environment.  Most likely only useful for
20640    # creating official distributions of packages.
20641    # This is a hack until libtool officially supports absolute path
20642    # names for shared libraries.
20643    no_undefined_flag_CXX='${wl}-z,text'
20644    allow_undefined_flag_CXX='${wl}-z,nodefs'
20645    archive_cmds_need_lc_CXX=no
20646    hardcode_shlibpath_var_CXX=no
20647    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20648    hardcode_libdir_separator_CXX=':'
20649    link_all_deplibs_CXX=yes
20650    export_dynamic_flag_spec_CXX='${wl}-Bexport'
20651    runpath_var='LD_RUN_PATH'
20652
20653    case $cc_basename in
20654      CC*)
20655	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20656	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20657	;;
20658      *)
20659	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20660	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20661	;;
20662    esac
20663    ;;
20664  tandem*)
20665    case $cc_basename in
20666      NCC*)
20667	# NonStop-UX NCC 3.20
20668	# FIXME: insert proper C++ library support
20669	ld_shlibs_CXX=no
20670	;;
20671      *)
20672	# FIXME: insert proper C++ library support
20673	ld_shlibs_CXX=no
20674	;;
20675    esac
20676    ;;
20677  vxworks*)
20678    # FIXME: insert proper C++ library support
20679    ld_shlibs_CXX=no
20680    ;;
20681  *)
20682    # FIXME: insert proper C++ library support
20683    ld_shlibs_CXX=no
20684    ;;
20685esac
20686{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20687echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20688test "$ld_shlibs_CXX" = no && can_build_shared=no
20689
20690GCC_CXX="$GXX"
20691LD_CXX="$LD"
20692
20693
20694cat > conftest.$ac_ext <<EOF
20695class Foo
20696{
20697public:
20698  Foo (void) { a = 0; }
20699private:
20700  int a;
20701};
20702EOF
20703
20704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705  (eval $ac_compile) 2>&5
20706  ac_status=$?
20707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708  (exit $ac_status); }; then
20709  # Parse the compiler output and extract the necessary
20710  # objects, libraries and library flags.
20711
20712  # Sentinel used to keep track of whether or not we are before
20713  # the conftest object file.
20714  pre_test_object_deps_done=no
20715
20716  # The `*' in the case matches for architectures that use `case' in
20717  # $output_verbose_cmd can trigger glob expansion during the loop
20718  # eval without this substitution.
20719  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
20720
20721  for p in `eval $output_verbose_link_cmd`; do
20722    case $p in
20723
20724    -L* | -R* | -l*)
20725       # Some compilers place space between "-{L,R}" and the path.
20726       # Remove the space.
20727       if test $p = "-L" \
20728	  || test $p = "-R"; then
20729	 prev=$p
20730	 continue
20731       else
20732	 prev=
20733       fi
20734
20735       if test "$pre_test_object_deps_done" = no; then
20736	 case $p in
20737	 -L* | -R*)
20738	   # Internal compiler library paths should come after those
20739	   # provided the user.  The postdeps already come after the
20740	   # user supplied libs so there is no need to process them.
20741	   if test -z "$compiler_lib_search_path_CXX"; then
20742	     compiler_lib_search_path_CXX="${prev}${p}"
20743	   else
20744	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20745	   fi
20746	   ;;
20747	 # The "-l" case would never come before the object being
20748	 # linked, so don't bother handling this case.
20749	 esac
20750       else
20751	 if test -z "$postdeps_CXX"; then
20752	   postdeps_CXX="${prev}${p}"
20753	 else
20754	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20755	 fi
20756       fi
20757       ;;
20758
20759    *.$objext)
20760       # This assumes that the test object file only shows up
20761       # once in the compiler output.
20762       if test "$p" = "conftest.$objext"; then
20763	 pre_test_object_deps_done=yes
20764	 continue
20765       fi
20766
20767       if test "$pre_test_object_deps_done" = no; then
20768	 if test -z "$predep_objects_CXX"; then
20769	   predep_objects_CXX="$p"
20770	 else
20771	   predep_objects_CXX="$predep_objects_CXX $p"
20772	 fi
20773       else
20774	 if test -z "$postdep_objects_CXX"; then
20775	   postdep_objects_CXX="$p"
20776	 else
20777	   postdep_objects_CXX="$postdep_objects_CXX $p"
20778	 fi
20779       fi
20780       ;;
20781
20782    *) ;; # Ignore the rest.
20783
20784    esac
20785  done
20786
20787  # Clean up.
20788  rm -f a.out a.exe
20789else
20790  echo "libtool.m4: error: problem compiling CXX test program"
20791fi
20792
20793$rm -f confest.$objext
20794
20795# PORTME: override above test on systems where it is broken
20796case $host_os in
20797interix[3-9]*)
20798  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20799  # hack all around it, let's just trust "g++" to DTRT.
20800  predep_objects_CXX=
20801  postdep_objects_CXX=
20802  postdeps_CXX=
20803  ;;
20804
20805linux*)
20806  case `$CC -V 2>&1 | sed 5q` in
20807  *Sun\ C*)
20808    # Sun C++ 5.9
20809    #
20810    # The more standards-conforming stlport4 library is
20811    # incompatible with the Cstd library. Avoid specifying
20812    # it if it's in CXXFLAGS. Ignore libCrun as
20813    # -library=stlport4 depends on it.
20814    case " $CXX $CXXFLAGS " in
20815    *" -library=stlport4 "*)
20816      solaris_use_stlport4=yes
20817      ;;
20818    esac
20819    if test "$solaris_use_stlport4" != yes; then
20820      postdeps_CXX='-library=Cstd -library=Crun'
20821    fi
20822    ;;
20823  esac
20824  ;;
20825
20826solaris*)
20827  case $cc_basename in
20828  CC*)
20829    # The more standards-conforming stlport4 library is
20830    # incompatible with the Cstd library. Avoid specifying
20831    # it if it's in CXXFLAGS. Ignore libCrun as
20832    # -library=stlport4 depends on it.
20833    case " $CXX $CXXFLAGS " in
20834    *" -library=stlport4 "*)
20835      solaris_use_stlport4=yes
20836      ;;
20837    esac
20838
20839    # Adding this requires a known-good setup of shared libraries for
20840    # Sun compiler versions before 5.6, else PIC objects from an old
20841    # archive will be linked into the output, leading to subtle bugs.
20842    if test "$solaris_use_stlport4" != yes; then
20843      postdeps_CXX='-library=Cstd -library=Crun'
20844    fi
20845    ;;
20846  esac
20847  ;;
20848esac
20849
20850
20851case " $postdeps_CXX " in
20852*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20853esac
20854
20855lt_prog_compiler_wl_CXX=
20856lt_prog_compiler_pic_CXX=
20857lt_prog_compiler_static_CXX=
20858
20859{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20860echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20861
20862  # C++ specific cases for pic, static, wl, etc.
20863  if test "$GXX" = yes; then
20864    lt_prog_compiler_wl_CXX='-Wl,'
20865    lt_prog_compiler_static_CXX='-static'
20866
20867    case $host_os in
20868    aix*)
20869      # All AIX code is PIC.
20870      if test "$host_cpu" = ia64; then
20871	# AIX 5 now supports IA64 processor
20872	lt_prog_compiler_static_CXX='-Bstatic'
20873      fi
20874      ;;
20875    amigaos*)
20876      # FIXME: we need at least 68020 code to build shared libraries, but
20877      # adding the `-m68020' flag to GCC prevents building anything better,
20878      # like `-m68040'.
20879      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20880      ;;
20881    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20882      # PIC is the default for these OSes.
20883      ;;
20884    mingw* | cygwin* | os2* | pw32*)
20885      # This hack is so that the source file can tell whether it is being
20886      # built for inclusion in a dll (and should export symbols for example).
20887      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20888      # (--disable-auto-import) libraries
20889      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20890      ;;
20891    darwin* | rhapsody*)
20892      # PIC is the default on this platform
20893      # Common symbols not allowed in MH_DYLIB files
20894      lt_prog_compiler_pic_CXX='-fno-common'
20895      ;;
20896    *djgpp*)
20897      # DJGPP does not support shared libraries at all
20898      lt_prog_compiler_pic_CXX=
20899      ;;
20900    interix[3-9]*)
20901      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20902      # Instead, we relocate shared libraries at runtime.
20903      ;;
20904    sysv4*MP*)
20905      if test -d /usr/nec; then
20906	lt_prog_compiler_pic_CXX=-Kconform_pic
20907      fi
20908      ;;
20909    hpux*)
20910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20911      # not for PA HP-UX.
20912      case $host_cpu in
20913      hppa*64*|ia64*)
20914	;;
20915      *)
20916	lt_prog_compiler_pic_CXX='-fPIC'
20917	;;
20918      esac
20919      ;;
20920    *)
20921      lt_prog_compiler_pic_CXX='-fPIC'
20922      ;;
20923    esac
20924  else
20925    case $host_os in
20926      aix4* | aix5*)
20927	# All AIX code is PIC.
20928	if test "$host_cpu" = ia64; then
20929	  # AIX 5 now supports IA64 processor
20930	  lt_prog_compiler_static_CXX='-Bstatic'
20931	else
20932	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20933	fi
20934	;;
20935      chorus*)
20936	case $cc_basename in
20937	cxch68*)
20938	  # Green Hills C++ Compiler
20939	  # _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"
20940	  ;;
20941	esac
20942	;;
20943       darwin*)
20944         # PIC is the default on this platform
20945         # Common symbols not allowed in MH_DYLIB files
20946         case $cc_basename in
20947           xlc*)
20948           lt_prog_compiler_pic_CXX='-qnocommon'
20949           lt_prog_compiler_wl_CXX='-Wl,'
20950           ;;
20951         esac
20952       ;;
20953      dgux*)
20954	case $cc_basename in
20955	  ec++*)
20956	    lt_prog_compiler_pic_CXX='-KPIC'
20957	    ;;
20958	  ghcx*)
20959	    # Green Hills C++ Compiler
20960	    lt_prog_compiler_pic_CXX='-pic'
20961	    ;;
20962	  *)
20963	    ;;
20964	esac
20965	;;
20966      freebsd* | dragonfly*)
20967	# FreeBSD uses GNU C++
20968	;;
20969      hpux9* | hpux10* | hpux11*)
20970	case $cc_basename in
20971	  CC*)
20972	    lt_prog_compiler_wl_CXX='-Wl,'
20973	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20974	    if test "$host_cpu" != ia64; then
20975	      lt_prog_compiler_pic_CXX='+Z'
20976	    fi
20977	    ;;
20978	  aCC*)
20979	    lt_prog_compiler_wl_CXX='-Wl,'
20980	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20981	    case $host_cpu in
20982	    hppa*64*|ia64*)
20983	      # +Z the default
20984	      ;;
20985	    *)
20986	      lt_prog_compiler_pic_CXX='+Z'
20987	      ;;
20988	    esac
20989	    ;;
20990	  *)
20991	    ;;
20992	esac
20993	;;
20994      interix*)
20995	# This is c89, which is MS Visual C++ (no shared libs)
20996	# Anyone wants to do a port?
20997	;;
20998      irix5* | irix6* | nonstopux*)
20999	case $cc_basename in
21000	  CC*)
21001	    lt_prog_compiler_wl_CXX='-Wl,'
21002	    lt_prog_compiler_static_CXX='-non_shared'
21003	    # CC pic flag -KPIC is the default.
21004	    ;;
21005	  *)
21006	    ;;
21007	esac
21008	;;
21009      linux* | k*bsd*-gnu)
21010	case $cc_basename in
21011	  KCC*)
21012	    # KAI C++ Compiler
21013	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21014	    lt_prog_compiler_pic_CXX='-fPIC'
21015	    ;;
21016	  icpc* | ecpc*)
21017	    # Intel C++
21018	    lt_prog_compiler_wl_CXX='-Wl,'
21019	    lt_prog_compiler_pic_CXX='-KPIC'
21020	    lt_prog_compiler_static_CXX='-static'
21021	    ;;
21022	  pgCC*)
21023	    # Portland Group C++ compiler.
21024	    lt_prog_compiler_wl_CXX='-Wl,'
21025	    lt_prog_compiler_pic_CXX='-fpic'
21026	    lt_prog_compiler_static_CXX='-Bstatic'
21027	    ;;
21028	  cxx*)
21029	    # Compaq C++
21030	    # Make sure the PIC flag is empty.  It appears that all Alpha
21031	    # Linux and Compaq Tru64 Unix objects are PIC.
21032	    lt_prog_compiler_pic_CXX=
21033	    lt_prog_compiler_static_CXX='-non_shared'
21034	    ;;
21035	  *)
21036	    case `$CC -V 2>&1 | sed 5q` in
21037	    *Sun\ C*)
21038	      # Sun C++ 5.9
21039	      lt_prog_compiler_pic_CXX='-KPIC'
21040	      lt_prog_compiler_static_CXX='-Bstatic'
21041	      lt_prog_compiler_wl_CXX='-Qoption ld '
21042	      ;;
21043	    esac
21044	    ;;
21045	esac
21046	;;
21047      lynxos*)
21048	;;
21049      m88k*)
21050	;;
21051      mvs*)
21052	case $cc_basename in
21053	  cxx*)
21054	    lt_prog_compiler_pic_CXX='-W c,exportall'
21055	    ;;
21056	  *)
21057	    ;;
21058	esac
21059	;;
21060      netbsd*)
21061	;;
21062      osf3* | osf4* | osf5*)
21063	case $cc_basename in
21064	  KCC*)
21065	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21066	    ;;
21067	  RCC*)
21068	    # Rational C++ 2.4.1
21069	    lt_prog_compiler_pic_CXX='-pic'
21070	    ;;
21071	  cxx*)
21072	    # Digital/Compaq C++
21073	    lt_prog_compiler_wl_CXX='-Wl,'
21074	    # Make sure the PIC flag is empty.  It appears that all Alpha
21075	    # Linux and Compaq Tru64 Unix objects are PIC.
21076	    lt_prog_compiler_pic_CXX=
21077	    lt_prog_compiler_static_CXX='-non_shared'
21078	    ;;
21079	  *)
21080	    ;;
21081	esac
21082	;;
21083      psos*)
21084	;;
21085      solaris*)
21086	case $cc_basename in
21087	  CC*)
21088	    # Sun C++ 4.2, 5.x and Centerline C++
21089	    lt_prog_compiler_pic_CXX='-KPIC'
21090	    lt_prog_compiler_static_CXX='-Bstatic'
21091	    lt_prog_compiler_wl_CXX='-Qoption ld '
21092	    ;;
21093	  gcx*)
21094	    # Green Hills C++ Compiler
21095	    lt_prog_compiler_pic_CXX='-PIC'
21096	    ;;
21097	  *)
21098	    ;;
21099	esac
21100	;;
21101      sunos4*)
21102	case $cc_basename in
21103	  CC*)
21104	    # Sun C++ 4.x
21105	    lt_prog_compiler_pic_CXX='-pic'
21106	    lt_prog_compiler_static_CXX='-Bstatic'
21107	    ;;
21108	  lcc*)
21109	    # Lucid
21110	    lt_prog_compiler_pic_CXX='-pic'
21111	    ;;
21112	  *)
21113	    ;;
21114	esac
21115	;;
21116      tandem*)
21117	case $cc_basename in
21118	  NCC*)
21119	    # NonStop-UX NCC 3.20
21120	    lt_prog_compiler_pic_CXX='-KPIC'
21121	    ;;
21122	  *)
21123	    ;;
21124	esac
21125	;;
21126      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21127	case $cc_basename in
21128	  CC*)
21129	    lt_prog_compiler_wl_CXX='-Wl,'
21130	    lt_prog_compiler_pic_CXX='-KPIC'
21131	    lt_prog_compiler_static_CXX='-Bstatic'
21132	    ;;
21133	esac
21134	;;
21135      vxworks*)
21136	;;
21137      *)
21138	lt_prog_compiler_can_build_shared_CXX=no
21139	;;
21140    esac
21141  fi
21142
21143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
21144echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
21145
21146#
21147# Check to make sure the PIC flag actually works.
21148#
21149if test -n "$lt_prog_compiler_pic_CXX"; then
21150
21151{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
21153if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
21154  echo $ECHO_N "(cached) $ECHO_C" >&6
21155else
21156  lt_prog_compiler_pic_works_CXX=no
21157  ac_outfile=conftest.$ac_objext
21158   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21159   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21160   # Insert the option either (1) after the last *FLAGS variable, or
21161   # (2) before a word containing "conftest.", or (3) at the end.
21162   # Note that $ac_compile itself does not contain backslashes and begins
21163   # with a dollar sign (not a hyphen), so the echo should work correctly.
21164   # The option is referenced via a variable to avoid confusing sed.
21165   lt_compile=`echo "$ac_compile" | $SED \
21166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21168   -e 's:$: $lt_compiler_flag:'`
21169   (eval echo "\"\$as_me:21169: $lt_compile\"" >&5)
21170   (eval "$lt_compile" 2>conftest.err)
21171   ac_status=$?
21172   cat conftest.err >&5
21173   echo "$as_me:21173: \$? = $ac_status" >&5
21174   if (exit $ac_status) && test -s "$ac_outfile"; then
21175     # The compiler can only warn and ignore the option if not recognized
21176     # So say no if there are warnings other than the usual output.
21177     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21178     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21179     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21180       lt_prog_compiler_pic_works_CXX=yes
21181     fi
21182   fi
21183   $rm conftest*
21184
21185fi
21186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
21187echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
21188
21189if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
21190    case $lt_prog_compiler_pic_CXX in
21191     "" | " "*) ;;
21192     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21193     esac
21194else
21195    lt_prog_compiler_pic_CXX=
21196     lt_prog_compiler_can_build_shared_CXX=no
21197fi
21198
21199fi
21200case $host_os in
21201  # For platforms which do not support PIC, -DPIC is meaningless:
21202  *djgpp*)
21203    lt_prog_compiler_pic_CXX=
21204    ;;
21205  *)
21206    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21207    ;;
21208esac
21209
21210#
21211# Check to make sure the static flag actually works.
21212#
21213wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21214{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21216if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
21217  echo $ECHO_N "(cached) $ECHO_C" >&6
21218else
21219  lt_prog_compiler_static_works_CXX=no
21220   save_LDFLAGS="$LDFLAGS"
21221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21222   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21224     # The linker can only warn and ignore the option if not recognized
21225     # So say no if there are warnings
21226     if test -s conftest.err; then
21227       # Append any errors to the config.log.
21228       cat conftest.err 1>&5
21229       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21231       if diff conftest.exp conftest.er2 >/dev/null; then
21232         lt_prog_compiler_static_works_CXX=yes
21233       fi
21234     else
21235       lt_prog_compiler_static_works_CXX=yes
21236     fi
21237   fi
21238   $rm conftest*
21239   LDFLAGS="$save_LDFLAGS"
21240
21241fi
21242{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
21243echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
21244
21245if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
21246    :
21247else
21248    lt_prog_compiler_static_CXX=
21249fi
21250
21251
21252{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21254if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
21255  echo $ECHO_N "(cached) $ECHO_C" >&6
21256else
21257  lt_cv_prog_compiler_c_o_CXX=no
21258   $rm -r conftest 2>/dev/null
21259   mkdir conftest
21260   cd conftest
21261   mkdir out
21262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21263
21264   lt_compiler_flag="-o out/conftest2.$ac_objext"
21265   # Insert the option either (1) after the last *FLAGS variable, or
21266   # (2) before a word containing "conftest.", or (3) at the end.
21267   # Note that $ac_compile itself does not contain backslashes and begins
21268   # with a dollar sign (not a hyphen), so the echo should work correctly.
21269   lt_compile=`echo "$ac_compile" | $SED \
21270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21272   -e 's:$: $lt_compiler_flag:'`
21273   (eval echo "\"\$as_me:21273: $lt_compile\"" >&5)
21274   (eval "$lt_compile" 2>out/conftest.err)
21275   ac_status=$?
21276   cat out/conftest.err >&5
21277   echo "$as_me:21277: \$? = $ac_status" >&5
21278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21279   then
21280     # The compiler can only warn and ignore the option if not recognized
21281     # So say no if there are warnings
21282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21285       lt_cv_prog_compiler_c_o_CXX=yes
21286     fi
21287   fi
21288   chmod u+w . 2>&5
21289   $rm conftest*
21290   # SGI C++ compiler will create directory out/ii_files/ for
21291   # template instantiation
21292   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21293   $rm out/* && rmdir out
21294   cd ..
21295   rmdir conftest
21296   $rm conftest*
21297
21298fi
21299{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21300echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
21301
21302
21303hard_links="nottested"
21304if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21305  # do not overwrite the value of need_locks provided by the user
21306  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21308  hard_links=yes
21309  $rm conftest*
21310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21311  touch conftest.a
21312  ln conftest.a conftest.b 2>&5 || hard_links=no
21313  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21314  { echo "$as_me:$LINENO: result: $hard_links" >&5
21315echo "${ECHO_T}$hard_links" >&6; }
21316  if test "$hard_links" = no; then
21317    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21319    need_locks=warn
21320  fi
21321else
21322  need_locks=no
21323fi
21324
21325{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21327
21328  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21329  case $host_os in
21330  aix4* | aix5*)
21331    # If we're using GNU nm, then we don't want the "-C" option.
21332    # -C means demangle to AIX nm, but means don't demangle with GNU nm
21333    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21334      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'
21335    else
21336      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'
21337    fi
21338    ;;
21339  pw32*)
21340    export_symbols_cmds_CXX="$ltdll_cmds"
21341  ;;
21342  cygwin* | mingw*)
21343    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'
21344  ;;
21345  *)
21346    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21347  ;;
21348  esac
21349
21350{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21351echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
21352test "$ld_shlibs_CXX" = no && can_build_shared=no
21353
21354#
21355# Do we need to explicitly link libc?
21356#
21357case "x$archive_cmds_need_lc_CXX" in
21358x|xyes)
21359  # Assume -lc should be added
21360  archive_cmds_need_lc_CXX=yes
21361
21362  if test "$enable_shared" = yes && test "$GCC" = yes; then
21363    case $archive_cmds_CXX in
21364    *'~'*)
21365      # FIXME: we may have to deal with multi-command sequences.
21366      ;;
21367    '$CC '*)
21368      # Test whether the compiler implicitly links with -lc since on some
21369      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21370      # to ld, don't add -lc before -lgcc.
21371      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21372echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21373      $rm conftest*
21374      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21375
21376      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21377  (eval $ac_compile) 2>&5
21378  ac_status=$?
21379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380  (exit $ac_status); } 2>conftest.err; then
21381        soname=conftest
21382        lib=conftest
21383        libobjs=conftest.$ac_objext
21384        deplibs=
21385        wl=$lt_prog_compiler_wl_CXX
21386	pic_flag=$lt_prog_compiler_pic_CXX
21387        compiler_flags=-v
21388        linker_flags=-v
21389        verstring=
21390        output_objdir=.
21391        libname=conftest
21392        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21393        allow_undefined_flag_CXX=
21394        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21395  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21396  ac_status=$?
21397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398  (exit $ac_status); }
21399        then
21400	  archive_cmds_need_lc_CXX=no
21401        else
21402	  archive_cmds_need_lc_CXX=yes
21403        fi
21404        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21405      else
21406        cat conftest.err 1>&5
21407      fi
21408      $rm conftest*
21409      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
21410echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
21411      ;;
21412    esac
21413  fi
21414  ;;
21415esac
21416
21417{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21418echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21419library_names_spec=
21420libname_spec='lib$name'
21421soname_spec=
21422shrext_cmds=".so"
21423postinstall_cmds=
21424postuninstall_cmds=
21425finish_cmds=
21426finish_eval=
21427shlibpath_var=
21428shlibpath_overrides_runpath=unknown
21429version_type=none
21430dynamic_linker="$host_os ld.so"
21431sys_lib_dlsearch_path_spec="/lib /usr/lib"
21432
21433need_lib_prefix=unknown
21434hardcode_into_libs=no
21435
21436# when you set need_version to no, make sure it does not cause -set_version
21437# flags to be left without arguments
21438need_version=unknown
21439
21440case $host_os in
21441aix3*)
21442  version_type=linux
21443  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21444  shlibpath_var=LIBPATH
21445
21446  # AIX 3 has no versioning support, so we append a major version to the name.
21447  soname_spec='${libname}${release}${shared_ext}$major'
21448  ;;
21449
21450aix4* | aix5*)
21451  version_type=linux
21452  need_lib_prefix=no
21453  need_version=no
21454  hardcode_into_libs=yes
21455  if test "$host_cpu" = ia64; then
21456    # AIX 5 supports IA64
21457    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21458    shlibpath_var=LD_LIBRARY_PATH
21459  else
21460    # With GCC up to 2.95.x, collect2 would create an import file
21461    # for dependence libraries.  The import file would start with
21462    # the line `#! .'.  This would cause the generated library to
21463    # depend on `.', always an invalid library.  This was fixed in
21464    # development snapshots of GCC prior to 3.0.
21465    case $host_os in
21466      aix4 | aix4.[01] | aix4.[01].*)
21467      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21468	   echo ' yes '
21469	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21470	:
21471      else
21472	can_build_shared=no
21473      fi
21474      ;;
21475    esac
21476    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21477    # soname into executable. Probably we can add versioning support to
21478    # collect2, so additional links can be useful in future.
21479    if test "$aix_use_runtimelinking" = yes; then
21480      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21481      # instead of lib<name>.a to let people know that these are not
21482      # typical AIX shared libraries.
21483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21484    else
21485      # We preserve .a as extension for shared libraries through AIX4.2
21486      # and later when we are not doing run time linking.
21487      library_names_spec='${libname}${release}.a $libname.a'
21488      soname_spec='${libname}${release}${shared_ext}$major'
21489    fi
21490    shlibpath_var=LIBPATH
21491  fi
21492  ;;
21493
21494amigaos*)
21495  library_names_spec='$libname.ixlibrary $libname.a'
21496  # Create ${libname}_ixlibrary.a entries in /sys/libs.
21497  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'
21498  ;;
21499
21500beos*)
21501  library_names_spec='${libname}${shared_ext}'
21502  dynamic_linker="$host_os ld.so"
21503  shlibpath_var=LIBRARY_PATH
21504  ;;
21505
21506bsdi[45]*)
21507  version_type=linux
21508  need_version=no
21509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21510  soname_spec='${libname}${release}${shared_ext}$major'
21511  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21512  shlibpath_var=LD_LIBRARY_PATH
21513  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21514  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21515  # the default ld.so.conf also contains /usr/contrib/lib and
21516  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21517  # libtool to hard-code these into programs
21518  ;;
21519
21520cygwin* | mingw* | pw32*)
21521  version_type=windows
21522  shrext_cmds=".dll"
21523  need_version=no
21524  need_lib_prefix=no
21525
21526  case $GCC,$host_os in
21527  yes,cygwin* | yes,mingw* | yes,pw32*)
21528    library_names_spec='$libname.dll.a'
21529    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21530    postinstall_cmds='base_file=`basename \${file}`~
21531      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21532      dldir=$destdir/`dirname \$dlpath`~
21533      test -d \$dldir || mkdir -p \$dldir~
21534      $install_prog $dir/$dlname \$dldir/$dlname~
21535      chmod a+x \$dldir/$dlname'
21536    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21537      dlpath=$dir/\$dldll~
21538       $rm \$dlpath'
21539    shlibpath_overrides_runpath=yes
21540
21541    case $host_os in
21542    cygwin*)
21543      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21544      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21545      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21546      ;;
21547    mingw*)
21548      # MinGW DLLs use traditional 'lib' prefix
21549      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21550      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21551      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21552        # It is most probably a Windows format PATH printed by
21553        # mingw gcc, but we are running on Cygwin. Gcc prints its search
21554        # path with ; separators, and with drive letters. We can handle the
21555        # drive letters (cygwin fileutils understands them), so leave them,
21556        # especially as we might pass files found there to a mingw objdump,
21557        # which wouldn't understand a cygwinified path. Ahh.
21558        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21559      else
21560        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21561      fi
21562      ;;
21563    pw32*)
21564      # pw32 DLLs use 'pw' prefix rather than 'lib'
21565      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21566      ;;
21567    esac
21568    ;;
21569
21570  *)
21571    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21572    ;;
21573  esac
21574  dynamic_linker='Win32 ld.exe'
21575  # FIXME: first we should search . and the directory the executable is in
21576  shlibpath_var=PATH
21577  ;;
21578
21579darwin* | rhapsody*)
21580  dynamic_linker="$host_os dyld"
21581  version_type=darwin
21582  need_lib_prefix=no
21583  need_version=no
21584  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21585  soname_spec='${libname}${release}${major}$shared_ext'
21586  shlibpath_overrides_runpath=yes
21587  shlibpath_var=DYLD_LIBRARY_PATH
21588  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21589
21590  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21591  ;;
21592
21593dgux*)
21594  version_type=linux
21595  need_lib_prefix=no
21596  need_version=no
21597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21598  soname_spec='${libname}${release}${shared_ext}$major'
21599  shlibpath_var=LD_LIBRARY_PATH
21600  ;;
21601
21602freebsd1*)
21603  dynamic_linker=no
21604  ;;
21605
21606freebsd* | dragonfly*)
21607  # DragonFly does not have aout.  When/if they implement a new
21608  # versioning mechanism, adjust this.
21609  if test -x /usr/bin/objformat; then
21610    objformat=`/usr/bin/objformat`
21611  else
21612    case $host_os in
21613    freebsd[123]*) objformat=aout ;;
21614    *) objformat=elf ;;
21615    esac
21616  fi
21617  version_type=freebsd-$objformat
21618  case $version_type in
21619    freebsd-elf*)
21620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21621      need_version=no
21622      need_lib_prefix=no
21623      ;;
21624    freebsd-*)
21625      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21626      need_version=yes
21627      ;;
21628  esac
21629  shlibpath_var=LD_LIBRARY_PATH
21630  case $host_os in
21631  freebsd2*)
21632    shlibpath_overrides_runpath=yes
21633    ;;
21634  freebsd3.[01]* | freebsdelf3.[01]*)
21635    shlibpath_overrides_runpath=yes
21636    hardcode_into_libs=yes
21637    ;;
21638  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21639  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21640    shlibpath_overrides_runpath=no
21641    hardcode_into_libs=yes
21642    ;;
21643  *) # from 4.6 on, and DragonFly
21644    shlibpath_overrides_runpath=yes
21645    hardcode_into_libs=yes
21646    ;;
21647  esac
21648  ;;
21649
21650gnu*)
21651  version_type=linux
21652  need_lib_prefix=no
21653  need_version=no
21654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21655  soname_spec='${libname}${release}${shared_ext}$major'
21656  shlibpath_var=LD_LIBRARY_PATH
21657  hardcode_into_libs=yes
21658  ;;
21659
21660hpux9* | hpux10* | hpux11*)
21661  # Give a soname corresponding to the major version so that dld.sl refuses to
21662  # link against other versions.
21663  version_type=sunos
21664  need_lib_prefix=no
21665  need_version=no
21666  case $host_cpu in
21667  ia64*)
21668    shrext_cmds='.so'
21669    hardcode_into_libs=yes
21670    dynamic_linker="$host_os dld.so"
21671    shlibpath_var=LD_LIBRARY_PATH
21672    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21673    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21674    soname_spec='${libname}${release}${shared_ext}$major'
21675    if test "X$HPUX_IA64_MODE" = X32; then
21676      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21677    else
21678      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21679    fi
21680    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21681    ;;
21682   hppa*64*)
21683     shrext_cmds='.sl'
21684     hardcode_into_libs=yes
21685     dynamic_linker="$host_os dld.sl"
21686     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21687     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21689     soname_spec='${libname}${release}${shared_ext}$major'
21690     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21692     ;;
21693   *)
21694    shrext_cmds='.sl'
21695    dynamic_linker="$host_os dld.sl"
21696    shlibpath_var=SHLIB_PATH
21697    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21698    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699    soname_spec='${libname}${release}${shared_ext}$major'
21700    ;;
21701  esac
21702  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21703  postinstall_cmds='chmod 555 $lib'
21704  ;;
21705
21706interix[3-9]*)
21707  version_type=linux
21708  need_lib_prefix=no
21709  need_version=no
21710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21711  soname_spec='${libname}${release}${shared_ext}$major'
21712  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21713  shlibpath_var=LD_LIBRARY_PATH
21714  shlibpath_overrides_runpath=no
21715  hardcode_into_libs=yes
21716  ;;
21717
21718irix5* | irix6* | nonstopux*)
21719  case $host_os in
21720    nonstopux*) version_type=nonstopux ;;
21721    *)
21722	if test "$lt_cv_prog_gnu_ld" = yes; then
21723		version_type=linux
21724	else
21725		version_type=irix
21726	fi ;;
21727  esac
21728  need_lib_prefix=no
21729  need_version=no
21730  soname_spec='${libname}${release}${shared_ext}$major'
21731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21732  case $host_os in
21733  irix5* | nonstopux*)
21734    libsuff= shlibsuff=
21735    ;;
21736  *)
21737    case $LD in # libtool.m4 will add one of these switches to LD
21738    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21739      libsuff= shlibsuff= libmagic=32-bit;;
21740    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21741      libsuff=32 shlibsuff=N32 libmagic=N32;;
21742    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21743      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21744    *) libsuff= shlibsuff= libmagic=never-match;;
21745    esac
21746    ;;
21747  esac
21748  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21749  shlibpath_overrides_runpath=no
21750  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21751  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21752  hardcode_into_libs=yes
21753  ;;
21754
21755# No shared lib support for Linux oldld, aout, or coff.
21756linux*oldld* | linux*aout* | linux*coff*)
21757  dynamic_linker=no
21758  ;;
21759
21760# This must be Linux ELF.
21761linux* | k*bsd*-gnu)
21762  version_type=linux
21763  need_lib_prefix=no
21764  need_version=no
21765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21766  soname_spec='${libname}${release}${shared_ext}$major'
21767  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21768  shlibpath_var=LD_LIBRARY_PATH
21769  shlibpath_overrides_runpath=no
21770  # This implies no fast_install, which is unacceptable.
21771  # Some rework will be needed to allow for fast_install
21772  # before this can be enabled.
21773  hardcode_into_libs=yes
21774
21775  # Append ld.so.conf contents to the search path
21776  if test -f /etc/ld.so.conf; then
21777    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' ' '`
21778    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21779  fi
21780
21781  # We used to test for /lib/ld.so.1 and disable shared libraries on
21782  # powerpc, because MkLinux only supported shared libraries with the
21783  # GNU dynamic linker.  Since this was broken with cross compilers,
21784  # most powerpc-linux boxes support dynamic linking these days and
21785  # people can always --disable-shared, the test was removed, and we
21786  # assume the GNU/Linux dynamic linker is in use.
21787  dynamic_linker='GNU/Linux ld.so'
21788  ;;
21789
21790netbsd*)
21791  version_type=sunos
21792  need_lib_prefix=no
21793  need_version=no
21794  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21797    dynamic_linker='NetBSD (a.out) ld.so'
21798  else
21799    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21800    soname_spec='${libname}${release}${shared_ext}$major'
21801    dynamic_linker='NetBSD ld.elf_so'
21802  fi
21803  shlibpath_var=LD_LIBRARY_PATH
21804  shlibpath_overrides_runpath=yes
21805  hardcode_into_libs=yes
21806  ;;
21807
21808newsos6)
21809  version_type=linux
21810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21811  shlibpath_var=LD_LIBRARY_PATH
21812  shlibpath_overrides_runpath=yes
21813  ;;
21814
21815nto-qnx*)
21816  version_type=linux
21817  need_lib_prefix=no
21818  need_version=no
21819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21820  soname_spec='${libname}${release}${shared_ext}$major'
21821  shlibpath_var=LD_LIBRARY_PATH
21822  shlibpath_overrides_runpath=yes
21823  ;;
21824
21825openbsd*)
21826  version_type=sunos
21827  sys_lib_dlsearch_path_spec="/usr/lib"
21828  need_lib_prefix=no
21829  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21830  case $host_os in
21831    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21832    *)                         need_version=no  ;;
21833  esac
21834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21835  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21836  shlibpath_var=LD_LIBRARY_PATH
21837  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21838    case $host_os in
21839      openbsd2.[89] | openbsd2.[89].*)
21840	shlibpath_overrides_runpath=no
21841	;;
21842      *)
21843	shlibpath_overrides_runpath=yes
21844	;;
21845      esac
21846  else
21847    shlibpath_overrides_runpath=yes
21848  fi
21849  ;;
21850
21851os2*)
21852  libname_spec='$name'
21853  shrext_cmds=".dll"
21854  need_lib_prefix=no
21855  library_names_spec='$libname${shared_ext} $libname.a'
21856  dynamic_linker='OS/2 ld.exe'
21857  shlibpath_var=LIBPATH
21858  ;;
21859
21860osf3* | osf4* | osf5*)
21861  version_type=osf
21862  need_lib_prefix=no
21863  need_version=no
21864  soname_spec='${libname}${release}${shared_ext}$major'
21865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21866  shlibpath_var=LD_LIBRARY_PATH
21867  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21868  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21869  ;;
21870
21871rdos*)
21872  dynamic_linker=no
21873  ;;
21874
21875solaris*)
21876  version_type=linux
21877  need_lib_prefix=no
21878  need_version=no
21879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21880  soname_spec='${libname}${release}${shared_ext}$major'
21881  shlibpath_var=LD_LIBRARY_PATH
21882  shlibpath_overrides_runpath=yes
21883  hardcode_into_libs=yes
21884  # ldd complains unless libraries are executable
21885  postinstall_cmds='chmod +x $lib'
21886  ;;
21887
21888sunos4*)
21889  version_type=sunos
21890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21891  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21892  shlibpath_var=LD_LIBRARY_PATH
21893  shlibpath_overrides_runpath=yes
21894  if test "$with_gnu_ld" = yes; then
21895    need_lib_prefix=no
21896  fi
21897  need_version=yes
21898  ;;
21899
21900sysv4 | sysv4.3*)
21901  version_type=linux
21902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21903  soname_spec='${libname}${release}${shared_ext}$major'
21904  shlibpath_var=LD_LIBRARY_PATH
21905  case $host_vendor in
21906    sni)
21907      shlibpath_overrides_runpath=no
21908      need_lib_prefix=no
21909      export_dynamic_flag_spec='${wl}-Blargedynsym'
21910      runpath_var=LD_RUN_PATH
21911      ;;
21912    siemens)
21913      need_lib_prefix=no
21914      ;;
21915    motorola)
21916      need_lib_prefix=no
21917      need_version=no
21918      shlibpath_overrides_runpath=no
21919      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21920      ;;
21921  esac
21922  ;;
21923
21924sysv4*MP*)
21925  if test -d /usr/nec ;then
21926    version_type=linux
21927    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21928    soname_spec='$libname${shared_ext}.$major'
21929    shlibpath_var=LD_LIBRARY_PATH
21930  fi
21931  ;;
21932
21933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21934  version_type=freebsd-elf
21935  need_lib_prefix=no
21936  need_version=no
21937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21938  soname_spec='${libname}${release}${shared_ext}$major'
21939  shlibpath_var=LD_LIBRARY_PATH
21940  hardcode_into_libs=yes
21941  if test "$with_gnu_ld" = yes; then
21942    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21943    shlibpath_overrides_runpath=no
21944  else
21945    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21946    shlibpath_overrides_runpath=yes
21947    case $host_os in
21948      sco3.2v5*)
21949        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21950	;;
21951    esac
21952  fi
21953  sys_lib_dlsearch_path_spec='/usr/lib'
21954  ;;
21955
21956uts4*)
21957  version_type=linux
21958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21959  soname_spec='${libname}${release}${shared_ext}$major'
21960  shlibpath_var=LD_LIBRARY_PATH
21961  ;;
21962
21963*)
21964  dynamic_linker=no
21965  ;;
21966esac
21967{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21968echo "${ECHO_T}$dynamic_linker" >&6; }
21969test "$dynamic_linker" = no && can_build_shared=no
21970
21971variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21972if test "$GCC" = yes; then
21973  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21974fi
21975
21976{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21977echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21978hardcode_action_CXX=
21979if test -n "$hardcode_libdir_flag_spec_CXX" || \
21980   test -n "$runpath_var_CXX" || \
21981   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21982
21983  # We can hardcode non-existant directories.
21984  if test "$hardcode_direct_CXX" != no &&
21985     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21986     # have to relink, otherwise we might link with an installed library
21987     # when we should be linking with a yet-to-be-installed one
21988     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21989     test "$hardcode_minus_L_CXX" != no; then
21990    # Linking always hardcodes the temporary library directory.
21991    hardcode_action_CXX=relink
21992  else
21993    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21994    hardcode_action_CXX=immediate
21995  fi
21996else
21997  # We cannot hardcode anything, or else we can only hardcode existing
21998  # directories.
21999  hardcode_action_CXX=unsupported
22000fi
22001{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22002echo "${ECHO_T}$hardcode_action_CXX" >&6; }
22003
22004if test "$hardcode_action_CXX" = relink; then
22005  # Fast installation is not supported
22006  enable_fast_install=no
22007elif test "$shlibpath_overrides_runpath" = yes ||
22008     test "$enable_shared" = no; then
22009  # Fast installation is not necessary
22010  enable_fast_install=needless
22011fi
22012
22013
22014# The else clause should only fire when bootstrapping the
22015# libtool distribution, otherwise you forgot to ship ltmain.sh
22016# with your package, and you will get complaints that there are
22017# no rules to generate ltmain.sh.
22018if test -f "$ltmain"; then
22019  # See if we are running on zsh, and set the options which allow our commands through
22020  # without removal of \ escapes.
22021  if test -n "${ZSH_VERSION+set}" ; then
22022    setopt NO_GLOB_SUBST
22023  fi
22024  # Now quote all the things that may contain metacharacters while being
22025  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22026  # variables and quote the copies for generation of the libtool script.
22027  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22028    SED SHELL STRIP \
22029    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22030    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22031    deplibs_check_method reload_flag reload_cmds need_locks \
22032    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22033    lt_cv_sys_global_symbol_to_c_name_address \
22034    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22035    old_postinstall_cmds old_postuninstall_cmds \
22036    compiler_CXX \
22037    CC_CXX \
22038    LD_CXX \
22039    lt_prog_compiler_wl_CXX \
22040    lt_prog_compiler_pic_CXX \
22041    lt_prog_compiler_static_CXX \
22042    lt_prog_compiler_no_builtin_flag_CXX \
22043    export_dynamic_flag_spec_CXX \
22044    thread_safe_flag_spec_CXX \
22045    whole_archive_flag_spec_CXX \
22046    enable_shared_with_static_runtimes_CXX \
22047    old_archive_cmds_CXX \
22048    old_archive_from_new_cmds_CXX \
22049    predep_objects_CXX \
22050    postdep_objects_CXX \
22051    predeps_CXX \
22052    postdeps_CXX \
22053    compiler_lib_search_path_CXX \
22054    archive_cmds_CXX \
22055    archive_expsym_cmds_CXX \
22056    postinstall_cmds_CXX \
22057    postuninstall_cmds_CXX \
22058    old_archive_from_expsyms_cmds_CXX \
22059    allow_undefined_flag_CXX \
22060    no_undefined_flag_CXX \
22061    export_symbols_cmds_CXX \
22062    hardcode_libdir_flag_spec_CXX \
22063    hardcode_libdir_flag_spec_ld_CXX \
22064    hardcode_libdir_separator_CXX \
22065    hardcode_automatic_CXX \
22066    module_cmds_CXX \
22067    module_expsym_cmds_CXX \
22068    lt_cv_prog_compiler_c_o_CXX \
22069    fix_srcfile_path_CXX \
22070    exclude_expsyms_CXX \
22071    include_expsyms_CXX; do
22072
22073    case $var in
22074    old_archive_cmds_CXX | \
22075    old_archive_from_new_cmds_CXX | \
22076    archive_cmds_CXX | \
22077    archive_expsym_cmds_CXX | \
22078    module_cmds_CXX | \
22079    module_expsym_cmds_CXX | \
22080    old_archive_from_expsyms_cmds_CXX | \
22081    export_symbols_cmds_CXX | \
22082    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22083    postinstall_cmds | postuninstall_cmds | \
22084    old_postinstall_cmds | old_postuninstall_cmds | \
22085    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22086      # Double-quote double-evaled strings.
22087      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22088      ;;
22089    *)
22090      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22091      ;;
22092    esac
22093  done
22094
22095  case $lt_echo in
22096  *'\$0 --fallback-echo"')
22097    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22098    ;;
22099  esac
22100
22101cfgfile="$ofile"
22102
22103  cat <<__EOF__ >> "$cfgfile"
22104# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22105
22106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22107
22108# Shell to use when invoking shell scripts.
22109SHELL=$lt_SHELL
22110
22111# Whether or not to build shared libraries.
22112build_libtool_libs=$enable_shared
22113
22114# Whether or not to build static libraries.
22115build_old_libs=$enable_static
22116
22117# Whether or not to add -lc for building shared libraries.
22118build_libtool_need_lc=$archive_cmds_need_lc_CXX
22119
22120# Whether or not to disallow shared libs when runtime libs are static
22121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22122
22123# Whether or not to optimize for fast installation.
22124fast_install=$enable_fast_install
22125
22126# The host system.
22127host_alias=$host_alias
22128host=$host
22129host_os=$host_os
22130
22131# The build system.
22132build_alias=$build_alias
22133build=$build
22134build_os=$build_os
22135
22136# An echo program that does not interpret backslashes.
22137echo=$lt_echo
22138
22139# The archiver.
22140AR=$lt_AR
22141AR_FLAGS=$lt_AR_FLAGS
22142
22143# A C compiler.
22144LTCC=$lt_LTCC
22145
22146# LTCC compiler flags.
22147LTCFLAGS=$lt_LTCFLAGS
22148
22149# A language-specific compiler.
22150CC=$lt_compiler_CXX
22151
22152# Is the compiler the GNU C compiler?
22153with_gcc=$GCC_CXX
22154
22155# An ERE matcher.
22156EGREP=$lt_EGREP
22157
22158# The linker used to build libraries.
22159LD=$lt_LD_CXX
22160
22161# Whether we need hard or soft links.
22162LN_S=$lt_LN_S
22163
22164# A BSD-compatible nm program.
22165NM=$lt_NM
22166
22167# A symbol stripping program
22168STRIP=$lt_STRIP
22169
22170# Used to examine libraries when file_magic_cmd begins "file"
22171MAGIC_CMD=$MAGIC_CMD
22172
22173# Used on cygwin: DLL creation program.
22174DLLTOOL="$DLLTOOL"
22175
22176# Used on cygwin: object dumper.
22177OBJDUMP="$OBJDUMP"
22178
22179# Used on cygwin: assembler.
22180AS="$AS"
22181
22182# The name of the directory that contains temporary libtool files.
22183objdir=$objdir
22184
22185# How to create reloadable object files.
22186reload_flag=$lt_reload_flag
22187reload_cmds=$lt_reload_cmds
22188
22189# How to pass a linker flag through the compiler.
22190wl=$lt_lt_prog_compiler_wl_CXX
22191
22192# Object file suffix (normally "o").
22193objext="$ac_objext"
22194
22195# Old archive suffix (normally "a").
22196libext="$libext"
22197
22198# Shared library suffix (normally ".so").
22199shrext_cmds='$shrext_cmds'
22200
22201# Executable file suffix (normally "").
22202exeext="$exeext"
22203
22204# Additional compiler flags for building library objects.
22205pic_flag=$lt_lt_prog_compiler_pic_CXX
22206pic_mode=$pic_mode
22207
22208# What is the maximum length of a command?
22209max_cmd_len=$lt_cv_sys_max_cmd_len
22210
22211# Does compiler simultaneously support -c and -o options?
22212compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22213
22214# Must we lock files when doing compilation?
22215need_locks=$lt_need_locks
22216
22217# Do we need the lib prefix for modules?
22218need_lib_prefix=$need_lib_prefix
22219
22220# Do we need a version for libraries?
22221need_version=$need_version
22222
22223# Whether dlopen is supported.
22224dlopen_support=$enable_dlopen
22225
22226# Whether dlopen of programs is supported.
22227dlopen_self=$enable_dlopen_self
22228
22229# Whether dlopen of statically linked programs is supported.
22230dlopen_self_static=$enable_dlopen_self_static
22231
22232# Compiler flag to prevent dynamic linking.
22233link_static_flag=$lt_lt_prog_compiler_static_CXX
22234
22235# Compiler flag to turn off builtin functions.
22236no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22237
22238# Compiler flag to allow reflexive dlopens.
22239export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22240
22241# Compiler flag to generate shared objects directly from archives.
22242whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22243
22244# Compiler flag to generate thread-safe objects.
22245thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
22246
22247# Library versioning type.
22248version_type=$version_type
22249
22250# Format of library name prefix.
22251libname_spec=$lt_libname_spec
22252
22253# List of archive names.  First name is the real one, the rest are links.
22254# The last name is the one that the linker finds with -lNAME.
22255library_names_spec=$lt_library_names_spec
22256
22257# The coded name of the library, if different from the real name.
22258soname_spec=$lt_soname_spec
22259
22260# Commands used to build and install an old-style archive.
22261RANLIB=$lt_RANLIB
22262old_archive_cmds=$lt_old_archive_cmds_CXX
22263old_postinstall_cmds=$lt_old_postinstall_cmds
22264old_postuninstall_cmds=$lt_old_postuninstall_cmds
22265
22266# Create an old-style archive from a shared archive.
22267old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22268
22269# Create a temporary old-style archive to link instead of a shared archive.
22270old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22271
22272# Commands used to build and install a shared archive.
22273archive_cmds=$lt_archive_cmds_CXX
22274archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22275postinstall_cmds=$lt_postinstall_cmds
22276postuninstall_cmds=$lt_postuninstall_cmds
22277
22278# Commands used to build a loadable module (assumed same as above if empty)
22279module_cmds=$lt_module_cmds_CXX
22280module_expsym_cmds=$lt_module_expsym_cmds_CXX
22281
22282# Commands to strip libraries.
22283old_striplib=$lt_old_striplib
22284striplib=$lt_striplib
22285
22286# Dependencies to place before the objects being linked to create a
22287# shared library.
22288predep_objects=$lt_predep_objects_CXX
22289
22290# Dependencies to place after the objects being linked to create a
22291# shared library.
22292postdep_objects=$lt_postdep_objects_CXX
22293
22294# Dependencies to place before the objects being linked to create a
22295# shared library.
22296predeps=$lt_predeps_CXX
22297
22298# Dependencies to place after the objects being linked to create a
22299# shared library.
22300postdeps=$lt_postdeps_CXX
22301
22302# The library search path used internally by the compiler when linking
22303# a shared library.
22304compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22305
22306# Method to check whether dependent libraries are shared objects.
22307deplibs_check_method=$lt_deplibs_check_method
22308
22309# Command to use when deplibs_check_method == file_magic.
22310file_magic_cmd=$lt_file_magic_cmd
22311
22312# Flag that allows shared libraries with undefined symbols to be built.
22313allow_undefined_flag=$lt_allow_undefined_flag_CXX
22314
22315# Flag that forces no undefined symbols.
22316no_undefined_flag=$lt_no_undefined_flag_CXX
22317
22318# Commands used to finish a libtool library installation in a directory.
22319finish_cmds=$lt_finish_cmds
22320
22321# Same as above, but a single script fragment to be evaled but not shown.
22322finish_eval=$lt_finish_eval
22323
22324# Take the output of nm and produce a listing of raw symbols and C names.
22325global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22326
22327# Transform the output of nm in a proper C declaration
22328global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22329
22330# Transform the output of nm in a C name address pair
22331global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22332
22333# This is the shared library runtime path variable.
22334runpath_var=$runpath_var
22335
22336# This is the shared library path variable.
22337shlibpath_var=$shlibpath_var
22338
22339# Is shlibpath searched before the hard-coded library search path?
22340shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22341
22342# How to hardcode a shared library path into an executable.
22343hardcode_action=$hardcode_action_CXX
22344
22345# Whether we should hardcode library paths into libraries.
22346hardcode_into_libs=$hardcode_into_libs
22347
22348# Flag to hardcode \$libdir into a binary during linking.
22349# This must work even if \$libdir does not exist.
22350hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22351
22352# If ld is used when linking, flag to hardcode \$libdir into
22353# a binary during linking. This must work even if \$libdir does
22354# not exist.
22355hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22356
22357# Whether we need a single -rpath flag with a separated argument.
22358hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22359
22360# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22361# resulting binary.
22362hardcode_direct=$hardcode_direct_CXX
22363
22364# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22365# resulting binary.
22366hardcode_minus_L=$hardcode_minus_L_CXX
22367
22368# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22369# the resulting binary.
22370hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22371
22372# Set to yes if building a shared library automatically hardcodes DIR into the library
22373# and all subsequent libraries and executables linked against it.
22374hardcode_automatic=$hardcode_automatic_CXX
22375
22376# Variables whose values should be saved in libtool wrapper scripts and
22377# restored at relink time.
22378variables_saved_for_relink="$variables_saved_for_relink"
22379
22380# Whether libtool must link a program against all its dependency libraries.
22381link_all_deplibs=$link_all_deplibs_CXX
22382
22383# Compile-time system search path for libraries
22384sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22385
22386# Run-time system search path for libraries
22387sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22388
22389# Fix the shell variable \$srcfile for the compiler.
22390fix_srcfile_path=$lt_fix_srcfile_path
22391
22392# Set to yes if exported symbols are required.
22393always_export_symbols=$always_export_symbols_CXX
22394
22395# The commands to list exported symbols.
22396export_symbols_cmds=$lt_export_symbols_cmds_CXX
22397
22398# The commands to extract the exported symbol list from a shared archive.
22399extract_expsyms_cmds=$lt_extract_expsyms_cmds
22400
22401# Symbols that should not be listed in the preloaded symbols.
22402exclude_expsyms=$lt_exclude_expsyms_CXX
22403
22404# Symbols that must always be exported.
22405include_expsyms=$lt_include_expsyms_CXX
22406
22407# ### END LIBTOOL TAG CONFIG: $tagname
22408
22409__EOF__
22410
22411
22412else
22413  # If there is no Makefile yet, we rely on a make rule to execute
22414  # `config.status --recheck' to rerun these tests and create the
22415  # libtool script then.
22416  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22417  if test -f "$ltmain_in"; then
22418    test -f Makefile && make "$ltmain"
22419  fi
22420fi
22421
22422
22423ac_ext=c
22424ac_cpp='$CPP $CPPFLAGS'
22425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22427ac_compiler_gnu=$ac_cv_c_compiler_gnu
22428
22429CC=$lt_save_CC
22430LDCXX=$LD
22431LD=$lt_save_LD
22432GCC=$lt_save_GCC
22433with_gnu_ldcxx=$with_gnu_ld
22434with_gnu_ld=$lt_save_with_gnu_ld
22435lt_cv_path_LDCXX=$lt_cv_path_LD
22436lt_cv_path_LD=$lt_save_path_LD
22437lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22438lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22439
22440	else
22441	  tagname=""
22442	fi
22443	;;
22444
22445      F77)
22446	if test -n "$F77" && test "X$F77" != "Xno"; then
22447
22448ac_ext=f
22449ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22450ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22452
22453
22454archive_cmds_need_lc_F77=no
22455allow_undefined_flag_F77=
22456always_export_symbols_F77=no
22457archive_expsym_cmds_F77=
22458export_dynamic_flag_spec_F77=
22459hardcode_direct_F77=no
22460hardcode_libdir_flag_spec_F77=
22461hardcode_libdir_flag_spec_ld_F77=
22462hardcode_libdir_separator_F77=
22463hardcode_minus_L_F77=no
22464hardcode_automatic_F77=no
22465module_cmds_F77=
22466module_expsym_cmds_F77=
22467link_all_deplibs_F77=unknown
22468old_archive_cmds_F77=$old_archive_cmds
22469no_undefined_flag_F77=
22470whole_archive_flag_spec_F77=
22471enable_shared_with_static_runtimes_F77=no
22472
22473# Source file extension for f77 test sources.
22474ac_ext=f
22475
22476# Object file extension for compiled f77 test sources.
22477objext=o
22478objext_F77=$objext
22479
22480# Code to be used in simple compile tests
22481lt_simple_compile_test_code="\
22482      subroutine t
22483      return
22484      end
22485"
22486
22487# Code to be used in simple link tests
22488lt_simple_link_test_code="\
22489      program t
22490      end
22491"
22492
22493# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22494
22495# If no C compiler was specified, use CC.
22496LTCC=${LTCC-"$CC"}
22497
22498# If no C compiler flags were specified, use CFLAGS.
22499LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22500
22501# Allow CC to be a program name with arguments.
22502compiler=$CC
22503
22504
22505# save warnings/boilerplate of simple test code
22506ac_outfile=conftest.$ac_objext
22507echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22508eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22509_lt_compiler_boilerplate=`cat conftest.err`
22510$rm conftest*
22511
22512ac_outfile=conftest.$ac_objext
22513echo "$lt_simple_link_test_code" >conftest.$ac_ext
22514eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22515_lt_linker_boilerplate=`cat conftest.err`
22516$rm conftest*
22517
22518
22519# Allow CC to be a program name with arguments.
22520lt_save_CC="$CC"
22521CC=${F77-"f77"}
22522compiler=$CC
22523compiler_F77=$CC
22524for cc_temp in $compiler""; do
22525  case $cc_temp in
22526    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22527    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22528    \-*) ;;
22529    *) break;;
22530  esac
22531done
22532cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22533
22534
22535{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
22536echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
22537{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
22538echo "${ECHO_T}$can_build_shared" >&6; }
22539
22540{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
22541echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
22542test "$can_build_shared" = "no" && enable_shared=no
22543
22544# On AIX, shared libraries and static libraries use the same namespace, and
22545# are all built from PIC.
22546case $host_os in
22547aix3*)
22548  test "$enable_shared" = yes && enable_static=no
22549  if test -n "$RANLIB"; then
22550    archive_cmds="$archive_cmds~\$RANLIB \$lib"
22551    postinstall_cmds='$RANLIB $lib'
22552  fi
22553  ;;
22554aix4* | aix5*)
22555  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22556    test "$enable_shared" = yes && enable_static=no
22557  fi
22558  ;;
22559esac
22560{ echo "$as_me:$LINENO: result: $enable_shared" >&5
22561echo "${ECHO_T}$enable_shared" >&6; }
22562
22563{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
22564echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
22565# Make sure either enable_shared or enable_static is yes.
22566test "$enable_shared" = yes || enable_static=yes
22567{ echo "$as_me:$LINENO: result: $enable_static" >&5
22568echo "${ECHO_T}$enable_static" >&6; }
22569
22570GCC_F77="$G77"
22571LD_F77="$LD"
22572
22573lt_prog_compiler_wl_F77=
22574lt_prog_compiler_pic_F77=
22575lt_prog_compiler_static_F77=
22576
22577{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22578echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22579
22580  if test "$GCC" = yes; then
22581    lt_prog_compiler_wl_F77='-Wl,'
22582    lt_prog_compiler_static_F77='-static'
22583
22584    case $host_os in
22585      aix*)
22586      # All AIX code is PIC.
22587      if test "$host_cpu" = ia64; then
22588	# AIX 5 now supports IA64 processor
22589	lt_prog_compiler_static_F77='-Bstatic'
22590      fi
22591      ;;
22592
22593    amigaos*)
22594      # FIXME: we need at least 68020 code to build shared libraries, but
22595      # adding the `-m68020' flag to GCC prevents building anything better,
22596      # like `-m68040'.
22597      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22598      ;;
22599
22600    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22601      # PIC is the default for these OSes.
22602      ;;
22603
22604    mingw* | cygwin* | pw32* | os2*)
22605      # This hack is so that the source file can tell whether it is being
22606      # built for inclusion in a dll (and should export symbols for example).
22607      # Although the cygwin gcc ignores -fPIC, still need this for old-style
22608      # (--disable-auto-import) libraries
22609      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22610      ;;
22611
22612    darwin* | rhapsody*)
22613      # PIC is the default on this platform
22614      # Common symbols not allowed in MH_DYLIB files
22615      lt_prog_compiler_pic_F77='-fno-common'
22616      ;;
22617
22618    interix[3-9]*)
22619      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22620      # Instead, we relocate shared libraries at runtime.
22621      ;;
22622
22623    msdosdjgpp*)
22624      # Just because we use GCC doesn't mean we suddenly get shared libraries
22625      # on systems that don't support them.
22626      lt_prog_compiler_can_build_shared_F77=no
22627      enable_shared=no
22628      ;;
22629
22630    sysv4*MP*)
22631      if test -d /usr/nec; then
22632	lt_prog_compiler_pic_F77=-Kconform_pic
22633      fi
22634      ;;
22635
22636    hpux*)
22637      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22638      # not for PA HP-UX.
22639      case $host_cpu in
22640      hppa*64*|ia64*)
22641	# +Z the default
22642	;;
22643      *)
22644	lt_prog_compiler_pic_F77='-fPIC'
22645	;;
22646      esac
22647      ;;
22648
22649    *)
22650      lt_prog_compiler_pic_F77='-fPIC'
22651      ;;
22652    esac
22653  else
22654    # PORTME Check for flag to pass linker flags through the system compiler.
22655    case $host_os in
22656    aix*)
22657      lt_prog_compiler_wl_F77='-Wl,'
22658      if test "$host_cpu" = ia64; then
22659	# AIX 5 now supports IA64 processor
22660	lt_prog_compiler_static_F77='-Bstatic'
22661      else
22662	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22663      fi
22664      ;;
22665      darwin*)
22666        # PIC is the default on this platform
22667        # Common symbols not allowed in MH_DYLIB files
22668       case $cc_basename in
22669         xlc*)
22670         lt_prog_compiler_pic_F77='-qnocommon'
22671         lt_prog_compiler_wl_F77='-Wl,'
22672         ;;
22673       esac
22674       ;;
22675
22676    mingw* | cygwin* | pw32* | os2*)
22677      # This hack is so that the source file can tell whether it is being
22678      # built for inclusion in a dll (and should export symbols for example).
22679      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22680      ;;
22681
22682    hpux9* | hpux10* | hpux11*)
22683      lt_prog_compiler_wl_F77='-Wl,'
22684      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22685      # not for PA HP-UX.
22686      case $host_cpu in
22687      hppa*64*|ia64*)
22688	# +Z the default
22689	;;
22690      *)
22691	lt_prog_compiler_pic_F77='+Z'
22692	;;
22693      esac
22694      # Is there a better lt_prog_compiler_static that works with the bundled CC?
22695      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22696      ;;
22697
22698    irix5* | irix6* | nonstopux*)
22699      lt_prog_compiler_wl_F77='-Wl,'
22700      # PIC (with -KPIC) is the default.
22701      lt_prog_compiler_static_F77='-non_shared'
22702      ;;
22703
22704    newsos6)
22705      lt_prog_compiler_pic_F77='-KPIC'
22706      lt_prog_compiler_static_F77='-Bstatic'
22707      ;;
22708
22709    linux* | k*bsd*-gnu)
22710      case $cc_basename in
22711      icc* | ecc*)
22712	lt_prog_compiler_wl_F77='-Wl,'
22713	lt_prog_compiler_pic_F77='-KPIC'
22714	lt_prog_compiler_static_F77='-static'
22715        ;;
22716      pgcc* | pgf77* | pgf90* | pgf95*)
22717        # Portland Group compilers (*not* the Pentium gcc compiler,
22718	# which looks to be a dead project)
22719	lt_prog_compiler_wl_F77='-Wl,'
22720	lt_prog_compiler_pic_F77='-fpic'
22721	lt_prog_compiler_static_F77='-Bstatic'
22722        ;;
22723      ccc*)
22724        lt_prog_compiler_wl_F77='-Wl,'
22725        # All Alpha code is PIC.
22726        lt_prog_compiler_static_F77='-non_shared'
22727        ;;
22728      *)
22729        case `$CC -V 2>&1 | sed 5q` in
22730	*Sun\ C*)
22731	  # Sun C 5.9
22732	  lt_prog_compiler_pic_F77='-KPIC'
22733	  lt_prog_compiler_static_F77='-Bstatic'
22734	  lt_prog_compiler_wl_F77='-Wl,'
22735	  ;;
22736	*Sun\ F*)
22737	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
22738	  lt_prog_compiler_pic_F77='-KPIC'
22739	  lt_prog_compiler_static_F77='-Bstatic'
22740	  lt_prog_compiler_wl_F77=''
22741	  ;;
22742	esac
22743	;;
22744      esac
22745      ;;
22746
22747    osf3* | osf4* | osf5*)
22748      lt_prog_compiler_wl_F77='-Wl,'
22749      # All OSF/1 code is PIC.
22750      lt_prog_compiler_static_F77='-non_shared'
22751      ;;
22752
22753    rdos*)
22754      lt_prog_compiler_static_F77='-non_shared'
22755      ;;
22756
22757    solaris*)
22758      lt_prog_compiler_pic_F77='-KPIC'
22759      lt_prog_compiler_static_F77='-Bstatic'
22760      case $cc_basename in
22761      f77* | f90* | f95*)
22762	lt_prog_compiler_wl_F77='-Qoption ld ';;
22763      *)
22764	lt_prog_compiler_wl_F77='-Wl,';;
22765      esac
22766      ;;
22767
22768    sunos4*)
22769      lt_prog_compiler_wl_F77='-Qoption ld '
22770      lt_prog_compiler_pic_F77='-PIC'
22771      lt_prog_compiler_static_F77='-Bstatic'
22772      ;;
22773
22774    sysv4 | sysv4.2uw2* | sysv4.3*)
22775      lt_prog_compiler_wl_F77='-Wl,'
22776      lt_prog_compiler_pic_F77='-KPIC'
22777      lt_prog_compiler_static_F77='-Bstatic'
22778      ;;
22779
22780    sysv4*MP*)
22781      if test -d /usr/nec ;then
22782	lt_prog_compiler_pic_F77='-Kconform_pic'
22783	lt_prog_compiler_static_F77='-Bstatic'
22784      fi
22785      ;;
22786
22787    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22788      lt_prog_compiler_wl_F77='-Wl,'
22789      lt_prog_compiler_pic_F77='-KPIC'
22790      lt_prog_compiler_static_F77='-Bstatic'
22791      ;;
22792
22793    unicos*)
22794      lt_prog_compiler_wl_F77='-Wl,'
22795      lt_prog_compiler_can_build_shared_F77=no
22796      ;;
22797
22798    uts4*)
22799      lt_prog_compiler_pic_F77='-pic'
22800      lt_prog_compiler_static_F77='-Bstatic'
22801      ;;
22802
22803    *)
22804      lt_prog_compiler_can_build_shared_F77=no
22805      ;;
22806    esac
22807  fi
22808
22809{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22810echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
22811
22812#
22813# Check to make sure the PIC flag actually works.
22814#
22815if test -n "$lt_prog_compiler_pic_F77"; then
22816
22817{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22818echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
22819if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22820  echo $ECHO_N "(cached) $ECHO_C" >&6
22821else
22822  lt_prog_compiler_pic_works_F77=no
22823  ac_outfile=conftest.$ac_objext
22824   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22825   lt_compiler_flag="$lt_prog_compiler_pic_F77"
22826   # Insert the option either (1) after the last *FLAGS variable, or
22827   # (2) before a word containing "conftest.", or (3) at the end.
22828   # Note that $ac_compile itself does not contain backslashes and begins
22829   # with a dollar sign (not a hyphen), so the echo should work correctly.
22830   # The option is referenced via a variable to avoid confusing sed.
22831   lt_compile=`echo "$ac_compile" | $SED \
22832   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22833   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22834   -e 's:$: $lt_compiler_flag:'`
22835   (eval echo "\"\$as_me:22835: $lt_compile\"" >&5)
22836   (eval "$lt_compile" 2>conftest.err)
22837   ac_status=$?
22838   cat conftest.err >&5
22839   echo "$as_me:22839: \$? = $ac_status" >&5
22840   if (exit $ac_status) && test -s "$ac_outfile"; then
22841     # The compiler can only warn and ignore the option if not recognized
22842     # So say no if there are warnings other than the usual output.
22843     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22844     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22845     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22846       lt_prog_compiler_pic_works_F77=yes
22847     fi
22848   fi
22849   $rm conftest*
22850
22851fi
22852{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
22853echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
22854
22855if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22856    case $lt_prog_compiler_pic_F77 in
22857     "" | " "*) ;;
22858     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22859     esac
22860else
22861    lt_prog_compiler_pic_F77=
22862     lt_prog_compiler_can_build_shared_F77=no
22863fi
22864
22865fi
22866case $host_os in
22867  # For platforms which do not support PIC, -DPIC is meaningless:
22868  *djgpp*)
22869    lt_prog_compiler_pic_F77=
22870    ;;
22871  *)
22872    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22873    ;;
22874esac
22875
22876#
22877# Check to make sure the static flag actually works.
22878#
22879wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22880{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22881echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22882if test "${lt_prog_compiler_static_works_F77+set}" = set; then
22883  echo $ECHO_N "(cached) $ECHO_C" >&6
22884else
22885  lt_prog_compiler_static_works_F77=no
22886   save_LDFLAGS="$LDFLAGS"
22887   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22888   echo "$lt_simple_link_test_code" > conftest.$ac_ext
22889   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22890     # The linker can only warn and ignore the option if not recognized
22891     # So say no if there are warnings
22892     if test -s conftest.err; then
22893       # Append any errors to the config.log.
22894       cat conftest.err 1>&5
22895       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22896       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22897       if diff conftest.exp conftest.er2 >/dev/null; then
22898         lt_prog_compiler_static_works_F77=yes
22899       fi
22900     else
22901       lt_prog_compiler_static_works_F77=yes
22902     fi
22903   fi
22904   $rm conftest*
22905   LDFLAGS="$save_LDFLAGS"
22906
22907fi
22908{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22909echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22910
22911if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22912    :
22913else
22914    lt_prog_compiler_static_F77=
22915fi
22916
22917
22918{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22919echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22920if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22921  echo $ECHO_N "(cached) $ECHO_C" >&6
22922else
22923  lt_cv_prog_compiler_c_o_F77=no
22924   $rm -r conftest 2>/dev/null
22925   mkdir conftest
22926   cd conftest
22927   mkdir out
22928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22929
22930   lt_compiler_flag="-o out/conftest2.$ac_objext"
22931   # Insert the option either (1) after the last *FLAGS variable, or
22932   # (2) before a word containing "conftest.", or (3) at the end.
22933   # Note that $ac_compile itself does not contain backslashes and begins
22934   # with a dollar sign (not a hyphen), so the echo should work correctly.
22935   lt_compile=`echo "$ac_compile" | $SED \
22936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22938   -e 's:$: $lt_compiler_flag:'`
22939   (eval echo "\"\$as_me:22939: $lt_compile\"" >&5)
22940   (eval "$lt_compile" 2>out/conftest.err)
22941   ac_status=$?
22942   cat out/conftest.err >&5
22943   echo "$as_me:22943: \$? = $ac_status" >&5
22944   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22945   then
22946     # The compiler can only warn and ignore the option if not recognized
22947     # So say no if there are warnings
22948     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22949     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22950     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22951       lt_cv_prog_compiler_c_o_F77=yes
22952     fi
22953   fi
22954   chmod u+w . 2>&5
22955   $rm conftest*
22956   # SGI C++ compiler will create directory out/ii_files/ for
22957   # template instantiation
22958   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22959   $rm out/* && rmdir out
22960   cd ..
22961   rmdir conftest
22962   $rm conftest*
22963
22964fi
22965{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22966echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22967
22968
22969hard_links="nottested"
22970if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22971  # do not overwrite the value of need_locks provided by the user
22972  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22973echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22974  hard_links=yes
22975  $rm conftest*
22976  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22977  touch conftest.a
22978  ln conftest.a conftest.b 2>&5 || hard_links=no
22979  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22980  { echo "$as_me:$LINENO: result: $hard_links" >&5
22981echo "${ECHO_T}$hard_links" >&6; }
22982  if test "$hard_links" = no; then
22983    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22984echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22985    need_locks=warn
22986  fi
22987else
22988  need_locks=no
22989fi
22990
22991{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22992echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22993
22994  runpath_var=
22995  allow_undefined_flag_F77=
22996  enable_shared_with_static_runtimes_F77=no
22997  archive_cmds_F77=
22998  archive_expsym_cmds_F77=
22999  old_archive_From_new_cmds_F77=
23000  old_archive_from_expsyms_cmds_F77=
23001  export_dynamic_flag_spec_F77=
23002  whole_archive_flag_spec_F77=
23003  thread_safe_flag_spec_F77=
23004  hardcode_libdir_flag_spec_F77=
23005  hardcode_libdir_flag_spec_ld_F77=
23006  hardcode_libdir_separator_F77=
23007  hardcode_direct_F77=no
23008  hardcode_minus_L_F77=no
23009  hardcode_shlibpath_var_F77=unsupported
23010  link_all_deplibs_F77=unknown
23011  hardcode_automatic_F77=no
23012  module_cmds_F77=
23013  module_expsym_cmds_F77=
23014  always_export_symbols_F77=no
23015  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23016  # include_expsyms should be a list of space-separated symbols to be *always*
23017  # included in the symbol list
23018  include_expsyms_F77=
23019  # exclude_expsyms can be an extended regexp of symbols to exclude
23020  # it will be wrapped by ` (' and `)$', so one must not match beginning or
23021  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23022  # as well as any symbol that contains `d'.
23023  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
23024  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23025  # platforms (ab)use it in PIC code, but their linkers get confused if
23026  # the symbol is explicitly referenced.  Since portable code cannot
23027  # rely on this symbol name, it's probably fine to never include it in
23028  # preloaded symbol tables.
23029  extract_expsyms_cmds=
23030  # Just being paranoid about ensuring that cc_basename is set.
23031  for cc_temp in $compiler""; do
23032  case $cc_temp in
23033    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23034    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23035    \-*) ;;
23036    *) break;;
23037  esac
23038done
23039cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23040
23041  case $host_os in
23042  cygwin* | mingw* | pw32*)
23043    # FIXME: the MSVC++ port hasn't been tested in a loooong time
23044    # When not using gcc, we currently assume that we are using
23045    # Microsoft Visual C++.
23046    if test "$GCC" != yes; then
23047      with_gnu_ld=no
23048    fi
23049    ;;
23050  interix*)
23051    # we just hope/assume this is gcc and not c89 (= MSVC++)
23052    with_gnu_ld=yes
23053    ;;
23054  openbsd*)
23055    with_gnu_ld=no
23056    ;;
23057  esac
23058
23059  ld_shlibs_F77=yes
23060  if test "$with_gnu_ld" = yes; then
23061    # If archive_cmds runs LD, not CC, wlarc should be empty
23062    wlarc='${wl}'
23063
23064    # Set some defaults for GNU ld with shared library support. These
23065    # are reset later if shared libraries are not supported. Putting them
23066    # here allows them to be overridden if necessary.
23067    runpath_var=LD_RUN_PATH
23068    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
23069    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
23070    # ancient GNU ld didn't support --whole-archive et. al.
23071    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23072	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23073      else
23074  	whole_archive_flag_spec_F77=
23075    fi
23076    supports_anon_versioning=no
23077    case `$LD -v 2>/dev/null` in
23078      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23079      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23080      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23081      *\ 2.11.*) ;; # other 2.11 versions
23082      *) supports_anon_versioning=yes ;;
23083    esac
23084
23085    # See if GNU ld supports shared libraries.
23086    case $host_os in
23087    aix3* | aix4* | aix5*)
23088      # On AIX/PPC, the GNU linker is very broken
23089      if test "$host_cpu" != ia64; then
23090	ld_shlibs_F77=no
23091	cat <<EOF 1>&2
23092
23093*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23094*** to be unable to reliably create shared libraries on AIX.
23095*** Therefore, libtool is disabling shared libraries support.  If you
23096*** really care for shared libraries, you may want to modify your PATH
23097*** so that a non-GNU linker is found, and then restart.
23098
23099EOF
23100      fi
23101      ;;
23102
23103    amigaos*)
23104      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)'
23105      hardcode_libdir_flag_spec_F77='-L$libdir'
23106      hardcode_minus_L_F77=yes
23107
23108      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23109      # that the semantics of dynamic libraries on AmigaOS, at least up
23110      # to version 4, is to share data among multiple programs linked
23111      # with the same dynamic library.  Since this doesn't match the
23112      # behavior of shared libraries on other platforms, we can't use
23113      # them.
23114      ld_shlibs_F77=no
23115      ;;
23116
23117    beos*)
23118      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23119	allow_undefined_flag_F77=unsupported
23120	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23121	# support --undefined.  This deserves some investigation.  FIXME
23122	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23123      else
23124	ld_shlibs_F77=no
23125      fi
23126      ;;
23127
23128    cygwin* | mingw* | pw32*)
23129      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
23130      # as there is no search path for DLLs.
23131      hardcode_libdir_flag_spec_F77='-L$libdir'
23132      allow_undefined_flag_F77=unsupported
23133      always_export_symbols_F77=no
23134      enable_shared_with_static_runtimes_F77=yes
23135      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23136
23137      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23138        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23139	# If the export-symbols file already is a .def file (1st line
23140	# is EXPORTS), use it as is; otherwise, prepend...
23141	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23142	  cp $export_symbols $output_objdir/$soname.def;
23143	else
23144	  echo EXPORTS > $output_objdir/$soname.def;
23145	  cat $export_symbols >> $output_objdir/$soname.def;
23146	fi~
23147	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23148      else
23149	ld_shlibs_F77=no
23150      fi
23151      ;;
23152
23153    interix[3-9]*)
23154      hardcode_direct_F77=no
23155      hardcode_shlibpath_var_F77=no
23156      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23157      export_dynamic_flag_spec_F77='${wl}-E'
23158      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23159      # Instead, shared libraries are loaded at an image base (0x10000000 by
23160      # default) and relocated if they conflict, which is a slow very memory
23161      # consuming and fragmenting process.  To avoid this, we pick a random,
23162      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23163      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23164      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'
23165      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'
23166      ;;
23167
23168    gnu* | linux* | k*bsd*-gnu)
23169      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23170	tmp_addflag=
23171	case $cc_basename,$host_cpu in
23172	pgcc*)				# Portland Group C compiler
23173	  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'
23174	  tmp_addflag=' $pic_flag'
23175	  ;;
23176	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
23177	  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'
23178	  tmp_addflag=' $pic_flag -Mnomain' ;;
23179	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
23180	  tmp_addflag=' -i_dynamic' ;;
23181	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
23182	  tmp_addflag=' -i_dynamic -nofor_main' ;;
23183	ifc* | ifort*)			# Intel Fortran compiler
23184	  tmp_addflag=' -nofor_main' ;;
23185	esac
23186	case `$CC -V 2>&1 | sed 5q` in
23187	*Sun\ C*)			# Sun C 5.9
23188	  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'
23189	  tmp_sharedflag='-G' ;;
23190	*Sun\ F*)			# Sun Fortran 8.3
23191	  tmp_sharedflag='-G' ;;
23192	*)
23193	  tmp_sharedflag='-shared' ;;
23194	esac
23195	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23196
23197	if test $supports_anon_versioning = yes; then
23198	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
23199  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23200  $echo "local: *; };" >> $output_objdir/$libname.ver~
23201	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23202	fi
23203      else
23204	ld_shlibs_F77=no
23205      fi
23206      ;;
23207
23208    netbsd*)
23209      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23210	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23211	wlarc=
23212      else
23213	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23214	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23215      fi
23216      ;;
23217
23218    solaris*)
23219      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23220	ld_shlibs_F77=no
23221	cat <<EOF 1>&2
23222
23223*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23224*** create shared libraries on Solaris systems.  Therefore, libtool
23225*** is disabling shared libraries support.  We urge you to upgrade GNU
23226*** binutils to release 2.9.1 or newer.  Another option is to modify
23227*** your PATH or compiler configuration so that the native linker is
23228*** used, and then restart.
23229
23230EOF
23231      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23232	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23233	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23234      else
23235	ld_shlibs_F77=no
23236      fi
23237      ;;
23238
23239    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23240      case `$LD -v 2>&1` in
23241        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23242	ld_shlibs_F77=no
23243	cat <<_LT_EOF 1>&2
23244
23245*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23246*** reliably create shared libraries on SCO systems.  Therefore, libtool
23247*** is disabling shared libraries support.  We urge you to upgrade GNU
23248*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23249*** your PATH or compiler configuration so that the native linker is
23250*** used, and then restart.
23251
23252_LT_EOF
23253	;;
23254	*)
23255	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23256	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23257	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23258	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23259	  else
23260	    ld_shlibs_F77=no
23261	  fi
23262	;;
23263      esac
23264      ;;
23265
23266    sunos4*)
23267      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23268      wlarc=
23269      hardcode_direct_F77=yes
23270      hardcode_shlibpath_var_F77=no
23271      ;;
23272
23273    *)
23274      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23275	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23276	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23277      else
23278	ld_shlibs_F77=no
23279      fi
23280      ;;
23281    esac
23282
23283    if test "$ld_shlibs_F77" = no; then
23284      runpath_var=
23285      hardcode_libdir_flag_spec_F77=
23286      export_dynamic_flag_spec_F77=
23287      whole_archive_flag_spec_F77=
23288    fi
23289  else
23290    # PORTME fill in a description of your system's linker (not GNU ld)
23291    case $host_os in
23292    aix3*)
23293      allow_undefined_flag_F77=unsupported
23294      always_export_symbols_F77=yes
23295      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'
23296      # Note: this linker hardcodes the directories in LIBPATH if there
23297      # are no directories specified by -L.
23298      hardcode_minus_L_F77=yes
23299      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23300	# Neither direct hardcoding nor static linking is supported with a
23301	# broken collect2.
23302	hardcode_direct_F77=unsupported
23303      fi
23304      ;;
23305
23306    aix4* | aix5*)
23307      if test "$host_cpu" = ia64; then
23308	# On IA64, the linker does run time linking by default, so we don't
23309	# have to do anything special.
23310	aix_use_runtimelinking=no
23311	exp_sym_flag='-Bexport'
23312	no_entry_flag=""
23313      else
23314	# If we're using GNU nm, then we don't want the "-C" option.
23315	# -C means demangle to AIX nm, but means don't demangle with GNU nm
23316	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23317	  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'
23318	else
23319	  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'
23320	fi
23321	aix_use_runtimelinking=no
23322
23323	# Test if we are trying to use run time linking or normal
23324	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
23325	# need to do runtime linking.
23326	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23327	  for ld_flag in $LDFLAGS; do
23328  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23329  	    aix_use_runtimelinking=yes
23330  	    break
23331  	  fi
23332	  done
23333	  ;;
23334	esac
23335
23336	exp_sym_flag='-bexport'
23337	no_entry_flag='-bnoentry'
23338      fi
23339
23340      # When large executables or shared objects are built, AIX ld can
23341      # have problems creating the table of contents.  If linking a library
23342      # or program results in "error TOC overflow" add -mminimal-toc to
23343      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23344      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23345
23346      archive_cmds_F77=''
23347      hardcode_direct_F77=yes
23348      hardcode_libdir_separator_F77=':'
23349      link_all_deplibs_F77=yes
23350
23351      if test "$GCC" = yes; then
23352	case $host_os in aix4.[012]|aix4.[012].*)
23353	# We only want to do this on AIX 4.2 and lower, the check
23354	# below for broken collect2 doesn't work under 4.3+
23355	  collect2name=`${CC} -print-prog-name=collect2`
23356	  if test -f "$collect2name" && \
23357  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
23358	  then
23359  	  # We have reworked collect2
23360  	  :
23361	  else
23362  	  # We have old collect2
23363  	  hardcode_direct_F77=unsupported
23364  	  # It fails to find uninstalled libraries when the uninstalled
23365  	  # path is not listed in the libpath.  Setting hardcode_minus_L
23366  	  # to unsupported forces relinking
23367  	  hardcode_minus_L_F77=yes
23368  	  hardcode_libdir_flag_spec_F77='-L$libdir'
23369  	  hardcode_libdir_separator_F77=
23370	  fi
23371	  ;;
23372	esac
23373	shared_flag='-shared'
23374	if test "$aix_use_runtimelinking" = yes; then
23375	  shared_flag="$shared_flag "'${wl}-G'
23376	fi
23377      else
23378	# not using gcc
23379	if test "$host_cpu" = ia64; then
23380  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23381  	# chokes on -Wl,-G. The following line is correct:
23382	  shared_flag='-G'
23383	else
23384	  if test "$aix_use_runtimelinking" = yes; then
23385	    shared_flag='${wl}-G'
23386	  else
23387	    shared_flag='${wl}-bM:SRE'
23388	  fi
23389	fi
23390      fi
23391
23392      # It seems that -bexpall does not export symbols beginning with
23393      # underscore (_), so it is better to generate a list of symbols to export.
23394      always_export_symbols_F77=yes
23395      if test "$aix_use_runtimelinking" = yes; then
23396	# Warning - without using the other runtime loading flags (-brtl),
23397	# -berok will link without error, but may produce a broken library.
23398	allow_undefined_flag_F77='-berok'
23399       # Determine the default libpath from the value encoded in an empty executable.
23400       cat >conftest.$ac_ext <<_ACEOF
23401      program main
23402
23403      end
23404_ACEOF
23405rm -f conftest.$ac_objext conftest$ac_exeext
23406if { (ac_try="$ac_link"
23407case "(($ac_try" in
23408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409  *) ac_try_echo=$ac_try;;
23410esac
23411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412  (eval "$ac_link") 2>conftest.er1
23413  ac_status=$?
23414  grep -v '^ *+' conftest.er1 >conftest.err
23415  rm -f conftest.er1
23416  cat conftest.err >&5
23417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418  (exit $ac_status); } && {
23419	 test -z "$ac_f77_werror_flag" ||
23420	 test ! -s conftest.err
23421       } && test -s conftest$ac_exeext &&
23422       $as_test_x conftest$ac_exeext; then
23423
23424lt_aix_libpath_sed='
23425    /Import File Strings/,/^$/ {
23426	/^0/ {
23427	    s/^0  *\(.*\)$/\1/
23428	    p
23429	}
23430    }'
23431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23432# Check for a 64-bit object if we didn't find anything.
23433if test -z "$aix_libpath"; then
23434  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23435fi
23436else
23437  echo "$as_me: failed program was:" >&5
23438sed 's/^/| /' conftest.$ac_ext >&5
23439
23440
23441fi
23442
23443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23444      conftest$ac_exeext conftest.$ac_ext
23445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23446
23447       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23448	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"
23449       else
23450	if test "$host_cpu" = ia64; then
23451	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23452	  allow_undefined_flag_F77="-z nodefs"
23453	  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"
23454	else
23455	 # Determine the default libpath from the value encoded in an empty executable.
23456	 cat >conftest.$ac_ext <<_ACEOF
23457      program main
23458
23459      end
23460_ACEOF
23461rm -f conftest.$ac_objext conftest$ac_exeext
23462if { (ac_try="$ac_link"
23463case "(($ac_try" in
23464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465  *) ac_try_echo=$ac_try;;
23466esac
23467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468  (eval "$ac_link") 2>conftest.er1
23469  ac_status=$?
23470  grep -v '^ *+' conftest.er1 >conftest.err
23471  rm -f conftest.er1
23472  cat conftest.err >&5
23473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474  (exit $ac_status); } && {
23475	 test -z "$ac_f77_werror_flag" ||
23476	 test ! -s conftest.err
23477       } && test -s conftest$ac_exeext &&
23478       $as_test_x conftest$ac_exeext; then
23479
23480lt_aix_libpath_sed='
23481    /Import File Strings/,/^$/ {
23482	/^0/ {
23483	    s/^0  *\(.*\)$/\1/
23484	    p
23485	}
23486    }'
23487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23488# Check for a 64-bit object if we didn't find anything.
23489if test -z "$aix_libpath"; then
23490  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23491fi
23492else
23493  echo "$as_me: failed program was:" >&5
23494sed 's/^/| /' conftest.$ac_ext >&5
23495
23496
23497fi
23498
23499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500      conftest$ac_exeext conftest.$ac_ext
23501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23502
23503	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23504	  # Warning - without using the other run time loading flags,
23505	  # -berok will link without error, but may produce a broken library.
23506	  no_undefined_flag_F77=' ${wl}-bernotok'
23507	  allow_undefined_flag_F77=' ${wl}-berok'
23508	  # Exported symbols can be pulled into shared objects from archives
23509	  whole_archive_flag_spec_F77='$convenience'
23510	  archive_cmds_need_lc_F77=yes
23511	  # This is similar to how AIX traditionally builds its shared libraries.
23512	  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'
23513	fi
23514      fi
23515      ;;
23516
23517    amigaos*)
23518      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)'
23519      hardcode_libdir_flag_spec_F77='-L$libdir'
23520      hardcode_minus_L_F77=yes
23521      # see comment about different semantics on the GNU ld section
23522      ld_shlibs_F77=no
23523      ;;
23524
23525    bsdi[45]*)
23526      export_dynamic_flag_spec_F77=-rdynamic
23527      ;;
23528
23529    cygwin* | mingw* | pw32*)
23530      # When not using gcc, we currently assume that we are using
23531      # Microsoft Visual C++.
23532      # hardcode_libdir_flag_spec is actually meaningless, as there is
23533      # no search path for DLLs.
23534      hardcode_libdir_flag_spec_F77=' '
23535      allow_undefined_flag_F77=unsupported
23536      # Tell ltmain to make .lib files, not .a files.
23537      libext=lib
23538      # Tell ltmain to make .dll files, not .so files.
23539      shrext_cmds=".dll"
23540      # FIXME: Setting linknames here is a bad hack.
23541      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23542      # The linker will automatically build a .lib file if we build a DLL.
23543      old_archive_From_new_cmds_F77='true'
23544      # FIXME: Should let the user specify the lib program.
23545      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
23546      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
23547      enable_shared_with_static_runtimes_F77=yes
23548      ;;
23549
23550    darwin* | rhapsody*)
23551      case $host_os in
23552        rhapsody* | darwin1.[012])
23553         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
23554         ;;
23555       *) # Darwin 1.3 on
23556         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23557           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23558         else
23559           case ${MACOSX_DEPLOYMENT_TARGET} in
23560             10.[012])
23561               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23562               ;;
23563             10.*)
23564               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
23565               ;;
23566           esac
23567         fi
23568         ;;
23569      esac
23570      archive_cmds_need_lc_F77=no
23571      hardcode_direct_F77=no
23572      hardcode_automatic_F77=yes
23573      hardcode_shlibpath_var_F77=unsupported
23574      whole_archive_flag_spec_F77=''
23575      link_all_deplibs_F77=yes
23576    if test "$GCC" = yes ; then
23577    	output_verbose_link_cmd='echo'
23578        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23579      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23580      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23581      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}'
23582      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}'
23583    else
23584      case $cc_basename in
23585        xlc*)
23586         output_verbose_link_cmd='echo'
23587         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
23588         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23589          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23590         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}'
23591          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}'
23592          ;;
23593       *)
23594         ld_shlibs_F77=no
23595          ;;
23596      esac
23597    fi
23598      ;;
23599
23600    dgux*)
23601      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23602      hardcode_libdir_flag_spec_F77='-L$libdir'
23603      hardcode_shlibpath_var_F77=no
23604      ;;
23605
23606    freebsd1*)
23607      ld_shlibs_F77=no
23608      ;;
23609
23610    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23611    # support.  Future versions do this automatically, but an explicit c++rt0.o
23612    # does not break anything, and helps significantly (at the cost of a little
23613    # extra space).
23614    freebsd2.2*)
23615      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23616      hardcode_libdir_flag_spec_F77='-R$libdir'
23617      hardcode_direct_F77=yes
23618      hardcode_shlibpath_var_F77=no
23619      ;;
23620
23621    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23622    freebsd2*)
23623      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23624      hardcode_direct_F77=yes
23625      hardcode_minus_L_F77=yes
23626      hardcode_shlibpath_var_F77=no
23627      ;;
23628
23629    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23630    freebsd* | dragonfly*)
23631      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23632      hardcode_libdir_flag_spec_F77='-R$libdir'
23633      hardcode_direct_F77=yes
23634      hardcode_shlibpath_var_F77=no
23635      ;;
23636
23637    hpux9*)
23638      if test "$GCC" = yes; then
23639	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'
23640      else
23641	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'
23642      fi
23643      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23644      hardcode_libdir_separator_F77=:
23645      hardcode_direct_F77=yes
23646
23647      # hardcode_minus_L: Not really in the search PATH,
23648      # but as the default location of the library.
23649      hardcode_minus_L_F77=yes
23650      export_dynamic_flag_spec_F77='${wl}-E'
23651      ;;
23652
23653    hpux10*)
23654      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23655	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23656      else
23657	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23658      fi
23659      if test "$with_gnu_ld" = no; then
23660	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23661	hardcode_libdir_separator_F77=:
23662
23663	hardcode_direct_F77=yes
23664	export_dynamic_flag_spec_F77='${wl}-E'
23665
23666	# hardcode_minus_L: Not really in the search PATH,
23667	# but as the default location of the library.
23668	hardcode_minus_L_F77=yes
23669      fi
23670      ;;
23671
23672    hpux11*)
23673      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23674	case $host_cpu in
23675	hppa*64*)
23676	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23677	  ;;
23678	ia64*)
23679	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23680	  ;;
23681	*)
23682	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23683	  ;;
23684	esac
23685      else
23686	case $host_cpu in
23687	hppa*64*)
23688	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23689	  ;;
23690	ia64*)
23691	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23692	  ;;
23693	*)
23694	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23695	  ;;
23696	esac
23697      fi
23698      if test "$with_gnu_ld" = no; then
23699	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23700	hardcode_libdir_separator_F77=:
23701
23702	case $host_cpu in
23703	hppa*64*|ia64*)
23704	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23705	  hardcode_direct_F77=no
23706	  hardcode_shlibpath_var_F77=no
23707	  ;;
23708	*)
23709	  hardcode_direct_F77=yes
23710	  export_dynamic_flag_spec_F77='${wl}-E'
23711
23712	  # hardcode_minus_L: Not really in the search PATH,
23713	  # but as the default location of the library.
23714	  hardcode_minus_L_F77=yes
23715	  ;;
23716	esac
23717      fi
23718      ;;
23719
23720    irix5* | irix6* | nonstopux*)
23721      if test "$GCC" = yes; then
23722	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'
23723      else
23724	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'
23725	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23726      fi
23727      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23728      hardcode_libdir_separator_F77=:
23729      link_all_deplibs_F77=yes
23730      ;;
23731
23732    netbsd*)
23733      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23734	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23735      else
23736	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23737      fi
23738      hardcode_libdir_flag_spec_F77='-R$libdir'
23739      hardcode_direct_F77=yes
23740      hardcode_shlibpath_var_F77=no
23741      ;;
23742
23743    newsos6)
23744      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23745      hardcode_direct_F77=yes
23746      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23747      hardcode_libdir_separator_F77=:
23748      hardcode_shlibpath_var_F77=no
23749      ;;
23750
23751    openbsd*)
23752      if test -f /usr/libexec/ld.so; then
23753	hardcode_direct_F77=yes
23754	hardcode_shlibpath_var_F77=no
23755	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23756	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23757	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23758	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23759	  export_dynamic_flag_spec_F77='${wl}-E'
23760	else
23761	  case $host_os in
23762	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23763	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23764	     hardcode_libdir_flag_spec_F77='-R$libdir'
23765	     ;;
23766	   *)
23767	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23768	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23769	     ;;
23770	  esac
23771        fi
23772      else
23773	ld_shlibs_F77=no
23774      fi
23775      ;;
23776
23777    os2*)
23778      hardcode_libdir_flag_spec_F77='-L$libdir'
23779      hardcode_minus_L_F77=yes
23780      allow_undefined_flag_F77=unsupported
23781      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'
23782      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23783      ;;
23784
23785    osf3*)
23786      if test "$GCC" = yes; then
23787	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23788	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'
23789      else
23790	allow_undefined_flag_F77=' -expect_unresolved \*'
23791	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'
23792      fi
23793      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23794      hardcode_libdir_separator_F77=:
23795      ;;
23796
23797    osf4* | osf5*)	# as osf3* with the addition of -msym flag
23798      if test "$GCC" = yes; then
23799	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23800	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'
23801	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23802      else
23803	allow_undefined_flag_F77=' -expect_unresolved \*'
23804	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'
23805	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~
23806	$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'
23807
23808	# Both c and cxx compiler support -rpath directly
23809	hardcode_libdir_flag_spec_F77='-rpath $libdir'
23810      fi
23811      hardcode_libdir_separator_F77=:
23812      ;;
23813
23814    solaris*)
23815      no_undefined_flag_F77=' -z text'
23816      if test "$GCC" = yes; then
23817	wlarc='${wl}'
23818	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23819	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23820	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23821      else
23822	wlarc=''
23823	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23824	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23825  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23826      fi
23827      hardcode_libdir_flag_spec_F77='-R$libdir'
23828      hardcode_shlibpath_var_F77=no
23829      case $host_os in
23830      solaris2.[0-5] | solaris2.[0-5].*) ;;
23831      *)
23832	# The compiler driver will combine and reorder linker options,
23833	# but understands `-z linker_flag'.  GCC discards it without `$wl',
23834	# but is careful enough not to reorder.
23835 	# Supported since Solaris 2.6 (maybe 2.5.1?)
23836	if test "$GCC" = yes; then
23837	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23838	else
23839	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23840	fi
23841	;;
23842      esac
23843      link_all_deplibs_F77=yes
23844      ;;
23845
23846    sunos4*)
23847      if test "x$host_vendor" = xsequent; then
23848	# Use $CC to link under sequent, because it throws in some extra .o
23849	# files that make .init and .fini sections work.
23850	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23851      else
23852	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23853      fi
23854      hardcode_libdir_flag_spec_F77='-L$libdir'
23855      hardcode_direct_F77=yes
23856      hardcode_minus_L_F77=yes
23857      hardcode_shlibpath_var_F77=no
23858      ;;
23859
23860    sysv4)
23861      case $host_vendor in
23862	sni)
23863	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23864	  hardcode_direct_F77=yes # is this really true???
23865	;;
23866	siemens)
23867	  ## LD is ld it makes a PLAMLIB
23868	  ## CC just makes a GrossModule.
23869	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23870	  reload_cmds_F77='$CC -r -o $output$reload_objs'
23871	  hardcode_direct_F77=no
23872        ;;
23873	motorola)
23874	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23875	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23876	;;
23877      esac
23878      runpath_var='LD_RUN_PATH'
23879      hardcode_shlibpath_var_F77=no
23880      ;;
23881
23882    sysv4.3*)
23883      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23884      hardcode_shlibpath_var_F77=no
23885      export_dynamic_flag_spec_F77='-Bexport'
23886      ;;
23887
23888    sysv4*MP*)
23889      if test -d /usr/nec; then
23890	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23891	hardcode_shlibpath_var_F77=no
23892	runpath_var=LD_RUN_PATH
23893	hardcode_runpath_var=yes
23894	ld_shlibs_F77=yes
23895      fi
23896      ;;
23897
23898    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23899      no_undefined_flag_F77='${wl}-z,text'
23900      archive_cmds_need_lc_F77=no
23901      hardcode_shlibpath_var_F77=no
23902      runpath_var='LD_RUN_PATH'
23903
23904      if test "$GCC" = yes; then
23905	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23906	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23907      else
23908	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23909	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23910      fi
23911      ;;
23912
23913    sysv5* | sco3.2v5* | sco5v6*)
23914      # Note: We can NOT use -z defs as we might desire, because we do not
23915      # link with -lc, and that would cause any symbols used from libc to
23916      # always be unresolved, which means just about no library would
23917      # ever link correctly.  If we're not using GNU ld we use -z text
23918      # though, which does catch some bad symbols but isn't as heavy-handed
23919      # as -z defs.
23920      no_undefined_flag_F77='${wl}-z,text'
23921      allow_undefined_flag_F77='${wl}-z,nodefs'
23922      archive_cmds_need_lc_F77=no
23923      hardcode_shlibpath_var_F77=no
23924      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23925      hardcode_libdir_separator_F77=':'
23926      link_all_deplibs_F77=yes
23927      export_dynamic_flag_spec_F77='${wl}-Bexport'
23928      runpath_var='LD_RUN_PATH'
23929
23930      if test "$GCC" = yes; then
23931	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23932	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23933      else
23934	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23935	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23936      fi
23937      ;;
23938
23939    uts4*)
23940      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23941      hardcode_libdir_flag_spec_F77='-L$libdir'
23942      hardcode_shlibpath_var_F77=no
23943      ;;
23944
23945    *)
23946      ld_shlibs_F77=no
23947      ;;
23948    esac
23949  fi
23950
23951{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23952echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23953test "$ld_shlibs_F77" = no && can_build_shared=no
23954
23955#
23956# Do we need to explicitly link libc?
23957#
23958case "x$archive_cmds_need_lc_F77" in
23959x|xyes)
23960  # Assume -lc should be added
23961  archive_cmds_need_lc_F77=yes
23962
23963  if test "$enable_shared" = yes && test "$GCC" = yes; then
23964    case $archive_cmds_F77 in
23965    *'~'*)
23966      # FIXME: we may have to deal with multi-command sequences.
23967      ;;
23968    '$CC '*)
23969      # Test whether the compiler implicitly links with -lc since on some
23970      # systems, -lgcc has to come before -lc. If gcc already passes -lc
23971      # to ld, don't add -lc before -lgcc.
23972      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23973echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23974      $rm conftest*
23975      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23976
23977      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23978  (eval $ac_compile) 2>&5
23979  ac_status=$?
23980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981  (exit $ac_status); } 2>conftest.err; then
23982        soname=conftest
23983        lib=conftest
23984        libobjs=conftest.$ac_objext
23985        deplibs=
23986        wl=$lt_prog_compiler_wl_F77
23987	pic_flag=$lt_prog_compiler_pic_F77
23988        compiler_flags=-v
23989        linker_flags=-v
23990        verstring=
23991        output_objdir=.
23992        libname=conftest
23993        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23994        allow_undefined_flag_F77=
23995        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23996  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23997  ac_status=$?
23998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999  (exit $ac_status); }
24000        then
24001	  archive_cmds_need_lc_F77=no
24002        else
24003	  archive_cmds_need_lc_F77=yes
24004        fi
24005        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
24006      else
24007        cat conftest.err 1>&5
24008      fi
24009      $rm conftest*
24010      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
24011echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
24012      ;;
24013    esac
24014  fi
24015  ;;
24016esac
24017
24018{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24019echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24020library_names_spec=
24021libname_spec='lib$name'
24022soname_spec=
24023shrext_cmds=".so"
24024postinstall_cmds=
24025postuninstall_cmds=
24026finish_cmds=
24027finish_eval=
24028shlibpath_var=
24029shlibpath_overrides_runpath=unknown
24030version_type=none
24031dynamic_linker="$host_os ld.so"
24032sys_lib_dlsearch_path_spec="/lib /usr/lib"
24033
24034need_lib_prefix=unknown
24035hardcode_into_libs=no
24036
24037# when you set need_version to no, make sure it does not cause -set_version
24038# flags to be left without arguments
24039need_version=unknown
24040
24041case $host_os in
24042aix3*)
24043  version_type=linux
24044  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24045  shlibpath_var=LIBPATH
24046
24047  # AIX 3 has no versioning support, so we append a major version to the name.
24048  soname_spec='${libname}${release}${shared_ext}$major'
24049  ;;
24050
24051aix4* | aix5*)
24052  version_type=linux
24053  need_lib_prefix=no
24054  need_version=no
24055  hardcode_into_libs=yes
24056  if test "$host_cpu" = ia64; then
24057    # AIX 5 supports IA64
24058    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24059    shlibpath_var=LD_LIBRARY_PATH
24060  else
24061    # With GCC up to 2.95.x, collect2 would create an import file
24062    # for dependence libraries.  The import file would start with
24063    # the line `#! .'.  This would cause the generated library to
24064    # depend on `.', always an invalid library.  This was fixed in
24065    # development snapshots of GCC prior to 3.0.
24066    case $host_os in
24067      aix4 | aix4.[01] | aix4.[01].*)
24068      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24069	   echo ' yes '
24070	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24071	:
24072      else
24073	can_build_shared=no
24074      fi
24075      ;;
24076    esac
24077    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24078    # soname into executable. Probably we can add versioning support to
24079    # collect2, so additional links can be useful in future.
24080    if test "$aix_use_runtimelinking" = yes; then
24081      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24082      # instead of lib<name>.a to let people know that these are not
24083      # typical AIX shared libraries.
24084      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24085    else
24086      # We preserve .a as extension for shared libraries through AIX4.2
24087      # and later when we are not doing run time linking.
24088      library_names_spec='${libname}${release}.a $libname.a'
24089      soname_spec='${libname}${release}${shared_ext}$major'
24090    fi
24091    shlibpath_var=LIBPATH
24092  fi
24093  ;;
24094
24095amigaos*)
24096  library_names_spec='$libname.ixlibrary $libname.a'
24097  # Create ${libname}_ixlibrary.a entries in /sys/libs.
24098  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'
24099  ;;
24100
24101beos*)
24102  library_names_spec='${libname}${shared_ext}'
24103  dynamic_linker="$host_os ld.so"
24104  shlibpath_var=LIBRARY_PATH
24105  ;;
24106
24107bsdi[45]*)
24108  version_type=linux
24109  need_version=no
24110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24111  soname_spec='${libname}${release}${shared_ext}$major'
24112  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24113  shlibpath_var=LD_LIBRARY_PATH
24114  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24115  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24116  # the default ld.so.conf also contains /usr/contrib/lib and
24117  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24118  # libtool to hard-code these into programs
24119  ;;
24120
24121cygwin* | mingw* | pw32*)
24122  version_type=windows
24123  shrext_cmds=".dll"
24124  need_version=no
24125  need_lib_prefix=no
24126
24127  case $GCC,$host_os in
24128  yes,cygwin* | yes,mingw* | yes,pw32*)
24129    library_names_spec='$libname.dll.a'
24130    # DLL is installed to $(libdir)/../bin by postinstall_cmds
24131    postinstall_cmds='base_file=`basename \${file}`~
24132      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24133      dldir=$destdir/`dirname \$dlpath`~
24134      test -d \$dldir || mkdir -p \$dldir~
24135      $install_prog $dir/$dlname \$dldir/$dlname~
24136      chmod a+x \$dldir/$dlname'
24137    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24138      dlpath=$dir/\$dldll~
24139       $rm \$dlpath'
24140    shlibpath_overrides_runpath=yes
24141
24142    case $host_os in
24143    cygwin*)
24144      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24145      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24146      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24147      ;;
24148    mingw*)
24149      # MinGW DLLs use traditional 'lib' prefix
24150      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24151      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24152      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24153        # It is most probably a Windows format PATH printed by
24154        # mingw gcc, but we are running on Cygwin. Gcc prints its search
24155        # path with ; separators, and with drive letters. We can handle the
24156        # drive letters (cygwin fileutils understands them), so leave them,
24157        # especially as we might pass files found there to a mingw objdump,
24158        # which wouldn't understand a cygwinified path. Ahh.
24159        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24160      else
24161        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24162      fi
24163      ;;
24164    pw32*)
24165      # pw32 DLLs use 'pw' prefix rather than 'lib'
24166      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24167      ;;
24168    esac
24169    ;;
24170
24171  *)
24172    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24173    ;;
24174  esac
24175  dynamic_linker='Win32 ld.exe'
24176  # FIXME: first we should search . and the directory the executable is in
24177  shlibpath_var=PATH
24178  ;;
24179
24180darwin* | rhapsody*)
24181  dynamic_linker="$host_os dyld"
24182  version_type=darwin
24183  need_lib_prefix=no
24184  need_version=no
24185  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24186  soname_spec='${libname}${release}${major}$shared_ext'
24187  shlibpath_overrides_runpath=yes
24188  shlibpath_var=DYLD_LIBRARY_PATH
24189  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24190
24191  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24192  ;;
24193
24194dgux*)
24195  version_type=linux
24196  need_lib_prefix=no
24197  need_version=no
24198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24199  soname_spec='${libname}${release}${shared_ext}$major'
24200  shlibpath_var=LD_LIBRARY_PATH
24201  ;;
24202
24203freebsd1*)
24204  dynamic_linker=no
24205  ;;
24206
24207freebsd* | dragonfly*)
24208  # DragonFly does not have aout.  When/if they implement a new
24209  # versioning mechanism, adjust this.
24210  if test -x /usr/bin/objformat; then
24211    objformat=`/usr/bin/objformat`
24212  else
24213    case $host_os in
24214    freebsd[123]*) objformat=aout ;;
24215    *) objformat=elf ;;
24216    esac
24217  fi
24218  version_type=freebsd-$objformat
24219  case $version_type in
24220    freebsd-elf*)
24221      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24222      need_version=no
24223      need_lib_prefix=no
24224      ;;
24225    freebsd-*)
24226      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24227      need_version=yes
24228      ;;
24229  esac
24230  shlibpath_var=LD_LIBRARY_PATH
24231  case $host_os in
24232  freebsd2*)
24233    shlibpath_overrides_runpath=yes
24234    ;;
24235  freebsd3.[01]* | freebsdelf3.[01]*)
24236    shlibpath_overrides_runpath=yes
24237    hardcode_into_libs=yes
24238    ;;
24239  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24240  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24241    shlibpath_overrides_runpath=no
24242    hardcode_into_libs=yes
24243    ;;
24244  *) # from 4.6 on, and DragonFly
24245    shlibpath_overrides_runpath=yes
24246    hardcode_into_libs=yes
24247    ;;
24248  esac
24249  ;;
24250
24251gnu*)
24252  version_type=linux
24253  need_lib_prefix=no
24254  need_version=no
24255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24256  soname_spec='${libname}${release}${shared_ext}$major'
24257  shlibpath_var=LD_LIBRARY_PATH
24258  hardcode_into_libs=yes
24259  ;;
24260
24261hpux9* | hpux10* | hpux11*)
24262  # Give a soname corresponding to the major version so that dld.sl refuses to
24263  # link against other versions.
24264  version_type=sunos
24265  need_lib_prefix=no
24266  need_version=no
24267  case $host_cpu in
24268  ia64*)
24269    shrext_cmds='.so'
24270    hardcode_into_libs=yes
24271    dynamic_linker="$host_os dld.so"
24272    shlibpath_var=LD_LIBRARY_PATH
24273    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24274    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24275    soname_spec='${libname}${release}${shared_ext}$major'
24276    if test "X$HPUX_IA64_MODE" = X32; then
24277      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24278    else
24279      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24280    fi
24281    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24282    ;;
24283   hppa*64*)
24284     shrext_cmds='.sl'
24285     hardcode_into_libs=yes
24286     dynamic_linker="$host_os dld.sl"
24287     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24288     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24290     soname_spec='${libname}${release}${shared_ext}$major'
24291     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24293     ;;
24294   *)
24295    shrext_cmds='.sl'
24296    dynamic_linker="$host_os dld.sl"
24297    shlibpath_var=SHLIB_PATH
24298    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24300    soname_spec='${libname}${release}${shared_ext}$major'
24301    ;;
24302  esac
24303  # HP-UX runs *really* slowly unless shared libraries are mode 555.
24304  postinstall_cmds='chmod 555 $lib'
24305  ;;
24306
24307interix[3-9]*)
24308  version_type=linux
24309  need_lib_prefix=no
24310  need_version=no
24311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24312  soname_spec='${libname}${release}${shared_ext}$major'
24313  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24314  shlibpath_var=LD_LIBRARY_PATH
24315  shlibpath_overrides_runpath=no
24316  hardcode_into_libs=yes
24317  ;;
24318
24319irix5* | irix6* | nonstopux*)
24320  case $host_os in
24321    nonstopux*) version_type=nonstopux ;;
24322    *)
24323	if test "$lt_cv_prog_gnu_ld" = yes; then
24324		version_type=linux
24325	else
24326		version_type=irix
24327	fi ;;
24328  esac
24329  need_lib_prefix=no
24330  need_version=no
24331  soname_spec='${libname}${release}${shared_ext}$major'
24332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24333  case $host_os in
24334  irix5* | nonstopux*)
24335    libsuff= shlibsuff=
24336    ;;
24337  *)
24338    case $LD in # libtool.m4 will add one of these switches to LD
24339    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24340      libsuff= shlibsuff= libmagic=32-bit;;
24341    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24342      libsuff=32 shlibsuff=N32 libmagic=N32;;
24343    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24344      libsuff=64 shlibsuff=64 libmagic=64-bit;;
24345    *) libsuff= shlibsuff= libmagic=never-match;;
24346    esac
24347    ;;
24348  esac
24349  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24350  shlibpath_overrides_runpath=no
24351  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24352  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24353  hardcode_into_libs=yes
24354  ;;
24355
24356# No shared lib support for Linux oldld, aout, or coff.
24357linux*oldld* | linux*aout* | linux*coff*)
24358  dynamic_linker=no
24359  ;;
24360
24361# This must be Linux ELF.
24362linux* | k*bsd*-gnu)
24363  version_type=linux
24364  need_lib_prefix=no
24365  need_version=no
24366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24367  soname_spec='${libname}${release}${shared_ext}$major'
24368  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24369  shlibpath_var=LD_LIBRARY_PATH
24370  shlibpath_overrides_runpath=no
24371  # This implies no fast_install, which is unacceptable.
24372  # Some rework will be needed to allow for fast_install
24373  # before this can be enabled.
24374  hardcode_into_libs=yes
24375
24376  # Append ld.so.conf contents to the search path
24377  if test -f /etc/ld.so.conf; then
24378    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' ' '`
24379    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24380  fi
24381
24382  # We used to test for /lib/ld.so.1 and disable shared libraries on
24383  # powerpc, because MkLinux only supported shared libraries with the
24384  # GNU dynamic linker.  Since this was broken with cross compilers,
24385  # most powerpc-linux boxes support dynamic linking these days and
24386  # people can always --disable-shared, the test was removed, and we
24387  # assume the GNU/Linux dynamic linker is in use.
24388  dynamic_linker='GNU/Linux ld.so'
24389  ;;
24390
24391netbsd*)
24392  version_type=sunos
24393  need_lib_prefix=no
24394  need_version=no
24395  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24397    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24398    dynamic_linker='NetBSD (a.out) ld.so'
24399  else
24400    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24401    soname_spec='${libname}${release}${shared_ext}$major'
24402    dynamic_linker='NetBSD ld.elf_so'
24403  fi
24404  shlibpath_var=LD_LIBRARY_PATH
24405  shlibpath_overrides_runpath=yes
24406  hardcode_into_libs=yes
24407  ;;
24408
24409newsos6)
24410  version_type=linux
24411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24412  shlibpath_var=LD_LIBRARY_PATH
24413  shlibpath_overrides_runpath=yes
24414  ;;
24415
24416nto-qnx*)
24417  version_type=linux
24418  need_lib_prefix=no
24419  need_version=no
24420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24421  soname_spec='${libname}${release}${shared_ext}$major'
24422  shlibpath_var=LD_LIBRARY_PATH
24423  shlibpath_overrides_runpath=yes
24424  ;;
24425
24426openbsd*)
24427  version_type=sunos
24428  sys_lib_dlsearch_path_spec="/usr/lib"
24429  need_lib_prefix=no
24430  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24431  case $host_os in
24432    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24433    *)                         need_version=no  ;;
24434  esac
24435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24436  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24437  shlibpath_var=LD_LIBRARY_PATH
24438  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24439    case $host_os in
24440      openbsd2.[89] | openbsd2.[89].*)
24441	shlibpath_overrides_runpath=no
24442	;;
24443      *)
24444	shlibpath_overrides_runpath=yes
24445	;;
24446      esac
24447  else
24448    shlibpath_overrides_runpath=yes
24449  fi
24450  ;;
24451
24452os2*)
24453  libname_spec='$name'
24454  shrext_cmds=".dll"
24455  need_lib_prefix=no
24456  library_names_spec='$libname${shared_ext} $libname.a'
24457  dynamic_linker='OS/2 ld.exe'
24458  shlibpath_var=LIBPATH
24459  ;;
24460
24461osf3* | osf4* | osf5*)
24462  version_type=osf
24463  need_lib_prefix=no
24464  need_version=no
24465  soname_spec='${libname}${release}${shared_ext}$major'
24466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24467  shlibpath_var=LD_LIBRARY_PATH
24468  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24469  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24470  ;;
24471
24472rdos*)
24473  dynamic_linker=no
24474  ;;
24475
24476solaris*)
24477  version_type=linux
24478  need_lib_prefix=no
24479  need_version=no
24480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24481  soname_spec='${libname}${release}${shared_ext}$major'
24482  shlibpath_var=LD_LIBRARY_PATH
24483  shlibpath_overrides_runpath=yes
24484  hardcode_into_libs=yes
24485  # ldd complains unless libraries are executable
24486  postinstall_cmds='chmod +x $lib'
24487  ;;
24488
24489sunos4*)
24490  version_type=sunos
24491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24492  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24493  shlibpath_var=LD_LIBRARY_PATH
24494  shlibpath_overrides_runpath=yes
24495  if test "$with_gnu_ld" = yes; then
24496    need_lib_prefix=no
24497  fi
24498  need_version=yes
24499  ;;
24500
24501sysv4 | sysv4.3*)
24502  version_type=linux
24503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24504  soname_spec='${libname}${release}${shared_ext}$major'
24505  shlibpath_var=LD_LIBRARY_PATH
24506  case $host_vendor in
24507    sni)
24508      shlibpath_overrides_runpath=no
24509      need_lib_prefix=no
24510      export_dynamic_flag_spec='${wl}-Blargedynsym'
24511      runpath_var=LD_RUN_PATH
24512      ;;
24513    siemens)
24514      need_lib_prefix=no
24515      ;;
24516    motorola)
24517      need_lib_prefix=no
24518      need_version=no
24519      shlibpath_overrides_runpath=no
24520      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24521      ;;
24522  esac
24523  ;;
24524
24525sysv4*MP*)
24526  if test -d /usr/nec ;then
24527    version_type=linux
24528    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24529    soname_spec='$libname${shared_ext}.$major'
24530    shlibpath_var=LD_LIBRARY_PATH
24531  fi
24532  ;;
24533
24534sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24535  version_type=freebsd-elf
24536  need_lib_prefix=no
24537  need_version=no
24538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24539  soname_spec='${libname}${release}${shared_ext}$major'
24540  shlibpath_var=LD_LIBRARY_PATH
24541  hardcode_into_libs=yes
24542  if test "$with_gnu_ld" = yes; then
24543    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24544    shlibpath_overrides_runpath=no
24545  else
24546    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24547    shlibpath_overrides_runpath=yes
24548    case $host_os in
24549      sco3.2v5*)
24550        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24551	;;
24552    esac
24553  fi
24554  sys_lib_dlsearch_path_spec='/usr/lib'
24555  ;;
24556
24557uts4*)
24558  version_type=linux
24559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24560  soname_spec='${libname}${release}${shared_ext}$major'
24561  shlibpath_var=LD_LIBRARY_PATH
24562  ;;
24563
24564*)
24565  dynamic_linker=no
24566  ;;
24567esac
24568{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24569echo "${ECHO_T}$dynamic_linker" >&6; }
24570test "$dynamic_linker" = no && can_build_shared=no
24571
24572variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24573if test "$GCC" = yes; then
24574  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24575fi
24576
24577{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24578echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24579hardcode_action_F77=
24580if test -n "$hardcode_libdir_flag_spec_F77" || \
24581   test -n "$runpath_var_F77" || \
24582   test "X$hardcode_automatic_F77" = "Xyes" ; then
24583
24584  # We can hardcode non-existant directories.
24585  if test "$hardcode_direct_F77" != no &&
24586     # If the only mechanism to avoid hardcoding is shlibpath_var, we
24587     # have to relink, otherwise we might link with an installed library
24588     # when we should be linking with a yet-to-be-installed one
24589     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24590     test "$hardcode_minus_L_F77" != no; then
24591    # Linking always hardcodes the temporary library directory.
24592    hardcode_action_F77=relink
24593  else
24594    # We can link without hardcoding, and we can hardcode nonexisting dirs.
24595    hardcode_action_F77=immediate
24596  fi
24597else
24598  # We cannot hardcode anything, or else we can only hardcode existing
24599  # directories.
24600  hardcode_action_F77=unsupported
24601fi
24602{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24603echo "${ECHO_T}$hardcode_action_F77" >&6; }
24604
24605if test "$hardcode_action_F77" = relink; then
24606  # Fast installation is not supported
24607  enable_fast_install=no
24608elif test "$shlibpath_overrides_runpath" = yes ||
24609     test "$enable_shared" = no; then
24610  # Fast installation is not necessary
24611  enable_fast_install=needless
24612fi
24613
24614
24615# The else clause should only fire when bootstrapping the
24616# libtool distribution, otherwise you forgot to ship ltmain.sh
24617# with your package, and you will get complaints that there are
24618# no rules to generate ltmain.sh.
24619if test -f "$ltmain"; then
24620  # See if we are running on zsh, and set the options which allow our commands through
24621  # without removal of \ escapes.
24622  if test -n "${ZSH_VERSION+set}" ; then
24623    setopt NO_GLOB_SUBST
24624  fi
24625  # Now quote all the things that may contain metacharacters while being
24626  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24627  # variables and quote the copies for generation of the libtool script.
24628  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24629    SED SHELL STRIP \
24630    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24631    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24632    deplibs_check_method reload_flag reload_cmds need_locks \
24633    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24634    lt_cv_sys_global_symbol_to_c_name_address \
24635    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24636    old_postinstall_cmds old_postuninstall_cmds \
24637    compiler_F77 \
24638    CC_F77 \
24639    LD_F77 \
24640    lt_prog_compiler_wl_F77 \
24641    lt_prog_compiler_pic_F77 \
24642    lt_prog_compiler_static_F77 \
24643    lt_prog_compiler_no_builtin_flag_F77 \
24644    export_dynamic_flag_spec_F77 \
24645    thread_safe_flag_spec_F77 \
24646    whole_archive_flag_spec_F77 \
24647    enable_shared_with_static_runtimes_F77 \
24648    old_archive_cmds_F77 \
24649    old_archive_from_new_cmds_F77 \
24650    predep_objects_F77 \
24651    postdep_objects_F77 \
24652    predeps_F77 \
24653    postdeps_F77 \
24654    compiler_lib_search_path_F77 \
24655    archive_cmds_F77 \
24656    archive_expsym_cmds_F77 \
24657    postinstall_cmds_F77 \
24658    postuninstall_cmds_F77 \
24659    old_archive_from_expsyms_cmds_F77 \
24660    allow_undefined_flag_F77 \
24661    no_undefined_flag_F77 \
24662    export_symbols_cmds_F77 \
24663    hardcode_libdir_flag_spec_F77 \
24664    hardcode_libdir_flag_spec_ld_F77 \
24665    hardcode_libdir_separator_F77 \
24666    hardcode_automatic_F77 \
24667    module_cmds_F77 \
24668    module_expsym_cmds_F77 \
24669    lt_cv_prog_compiler_c_o_F77 \
24670    fix_srcfile_path_F77 \
24671    exclude_expsyms_F77 \
24672    include_expsyms_F77; do
24673
24674    case $var in
24675    old_archive_cmds_F77 | \
24676    old_archive_from_new_cmds_F77 | \
24677    archive_cmds_F77 | \
24678    archive_expsym_cmds_F77 | \
24679    module_cmds_F77 | \
24680    module_expsym_cmds_F77 | \
24681    old_archive_from_expsyms_cmds_F77 | \
24682    export_symbols_cmds_F77 | \
24683    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24684    postinstall_cmds | postuninstall_cmds | \
24685    old_postinstall_cmds | old_postuninstall_cmds | \
24686    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24687      # Double-quote double-evaled strings.
24688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24689      ;;
24690    *)
24691      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24692      ;;
24693    esac
24694  done
24695
24696  case $lt_echo in
24697  *'\$0 --fallback-echo"')
24698    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24699    ;;
24700  esac
24701
24702cfgfile="$ofile"
24703
24704  cat <<__EOF__ >> "$cfgfile"
24705# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24706
24707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24708
24709# Shell to use when invoking shell scripts.
24710SHELL=$lt_SHELL
24711
24712# Whether or not to build shared libraries.
24713build_libtool_libs=$enable_shared
24714
24715# Whether or not to build static libraries.
24716build_old_libs=$enable_static
24717
24718# Whether or not to add -lc for building shared libraries.
24719build_libtool_need_lc=$archive_cmds_need_lc_F77
24720
24721# Whether or not to disallow shared libs when runtime libs are static
24722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24723
24724# Whether or not to optimize for fast installation.
24725fast_install=$enable_fast_install
24726
24727# The host system.
24728host_alias=$host_alias
24729host=$host
24730host_os=$host_os
24731
24732# The build system.
24733build_alias=$build_alias
24734build=$build
24735build_os=$build_os
24736
24737# An echo program that does not interpret backslashes.
24738echo=$lt_echo
24739
24740# The archiver.
24741AR=$lt_AR
24742AR_FLAGS=$lt_AR_FLAGS
24743
24744# A C compiler.
24745LTCC=$lt_LTCC
24746
24747# LTCC compiler flags.
24748LTCFLAGS=$lt_LTCFLAGS
24749
24750# A language-specific compiler.
24751CC=$lt_compiler_F77
24752
24753# Is the compiler the GNU C compiler?
24754with_gcc=$GCC_F77
24755
24756# An ERE matcher.
24757EGREP=$lt_EGREP
24758
24759# The linker used to build libraries.
24760LD=$lt_LD_F77
24761
24762# Whether we need hard or soft links.
24763LN_S=$lt_LN_S
24764
24765# A BSD-compatible nm program.
24766NM=$lt_NM
24767
24768# A symbol stripping program
24769STRIP=$lt_STRIP
24770
24771# Used to examine libraries when file_magic_cmd begins "file"
24772MAGIC_CMD=$MAGIC_CMD
24773
24774# Used on cygwin: DLL creation program.
24775DLLTOOL="$DLLTOOL"
24776
24777# Used on cygwin: object dumper.
24778OBJDUMP="$OBJDUMP"
24779
24780# Used on cygwin: assembler.
24781AS="$AS"
24782
24783# The name of the directory that contains temporary libtool files.
24784objdir=$objdir
24785
24786# How to create reloadable object files.
24787reload_flag=$lt_reload_flag
24788reload_cmds=$lt_reload_cmds
24789
24790# How to pass a linker flag through the compiler.
24791wl=$lt_lt_prog_compiler_wl_F77
24792
24793# Object file suffix (normally "o").
24794objext="$ac_objext"
24795
24796# Old archive suffix (normally "a").
24797libext="$libext"
24798
24799# Shared library suffix (normally ".so").
24800shrext_cmds='$shrext_cmds'
24801
24802# Executable file suffix (normally "").
24803exeext="$exeext"
24804
24805# Additional compiler flags for building library objects.
24806pic_flag=$lt_lt_prog_compiler_pic_F77
24807pic_mode=$pic_mode
24808
24809# What is the maximum length of a command?
24810max_cmd_len=$lt_cv_sys_max_cmd_len
24811
24812# Does compiler simultaneously support -c and -o options?
24813compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24814
24815# Must we lock files when doing compilation?
24816need_locks=$lt_need_locks
24817
24818# Do we need the lib prefix for modules?
24819need_lib_prefix=$need_lib_prefix
24820
24821# Do we need a version for libraries?
24822need_version=$need_version
24823
24824# Whether dlopen is supported.
24825dlopen_support=$enable_dlopen
24826
24827# Whether dlopen of programs is supported.
24828dlopen_self=$enable_dlopen_self
24829
24830# Whether dlopen of statically linked programs is supported.
24831dlopen_self_static=$enable_dlopen_self_static
24832
24833# Compiler flag to prevent dynamic linking.
24834link_static_flag=$lt_lt_prog_compiler_static_F77
24835
24836# Compiler flag to turn off builtin functions.
24837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24838
24839# Compiler flag to allow reflexive dlopens.
24840export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24841
24842# Compiler flag to generate shared objects directly from archives.
24843whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24844
24845# Compiler flag to generate thread-safe objects.
24846thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24847
24848# Library versioning type.
24849version_type=$version_type
24850
24851# Format of library name prefix.
24852libname_spec=$lt_libname_spec
24853
24854# List of archive names.  First name is the real one, the rest are links.
24855# The last name is the one that the linker finds with -lNAME.
24856library_names_spec=$lt_library_names_spec
24857
24858# The coded name of the library, if different from the real name.
24859soname_spec=$lt_soname_spec
24860
24861# Commands used to build and install an old-style archive.
24862RANLIB=$lt_RANLIB
24863old_archive_cmds=$lt_old_archive_cmds_F77
24864old_postinstall_cmds=$lt_old_postinstall_cmds
24865old_postuninstall_cmds=$lt_old_postuninstall_cmds
24866
24867# Create an old-style archive from a shared archive.
24868old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24869
24870# Create a temporary old-style archive to link instead of a shared archive.
24871old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24872
24873# Commands used to build and install a shared archive.
24874archive_cmds=$lt_archive_cmds_F77
24875archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24876postinstall_cmds=$lt_postinstall_cmds
24877postuninstall_cmds=$lt_postuninstall_cmds
24878
24879# Commands used to build a loadable module (assumed same as above if empty)
24880module_cmds=$lt_module_cmds_F77
24881module_expsym_cmds=$lt_module_expsym_cmds_F77
24882
24883# Commands to strip libraries.
24884old_striplib=$lt_old_striplib
24885striplib=$lt_striplib
24886
24887# Dependencies to place before the objects being linked to create a
24888# shared library.
24889predep_objects=$lt_predep_objects_F77
24890
24891# Dependencies to place after the objects being linked to create a
24892# shared library.
24893postdep_objects=$lt_postdep_objects_F77
24894
24895# Dependencies to place before the objects being linked to create a
24896# shared library.
24897predeps=$lt_predeps_F77
24898
24899# Dependencies to place after the objects being linked to create a
24900# shared library.
24901postdeps=$lt_postdeps_F77
24902
24903# The library search path used internally by the compiler when linking
24904# a shared library.
24905compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24906
24907# Method to check whether dependent libraries are shared objects.
24908deplibs_check_method=$lt_deplibs_check_method
24909
24910# Command to use when deplibs_check_method == file_magic.
24911file_magic_cmd=$lt_file_magic_cmd
24912
24913# Flag that allows shared libraries with undefined symbols to be built.
24914allow_undefined_flag=$lt_allow_undefined_flag_F77
24915
24916# Flag that forces no undefined symbols.
24917no_undefined_flag=$lt_no_undefined_flag_F77
24918
24919# Commands used to finish a libtool library installation in a directory.
24920finish_cmds=$lt_finish_cmds
24921
24922# Same as above, but a single script fragment to be evaled but not shown.
24923finish_eval=$lt_finish_eval
24924
24925# Take the output of nm and produce a listing of raw symbols and C names.
24926global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24927
24928# Transform the output of nm in a proper C declaration
24929global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24930
24931# Transform the output of nm in a C name address pair
24932global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24933
24934# This is the shared library runtime path variable.
24935runpath_var=$runpath_var
24936
24937# This is the shared library path variable.
24938shlibpath_var=$shlibpath_var
24939
24940# Is shlibpath searched before the hard-coded library search path?
24941shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24942
24943# How to hardcode a shared library path into an executable.
24944hardcode_action=$hardcode_action_F77
24945
24946# Whether we should hardcode library paths into libraries.
24947hardcode_into_libs=$hardcode_into_libs
24948
24949# Flag to hardcode \$libdir into a binary during linking.
24950# This must work even if \$libdir does not exist.
24951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24952
24953# If ld is used when linking, flag to hardcode \$libdir into
24954# a binary during linking. This must work even if \$libdir does
24955# not exist.
24956hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24957
24958# Whether we need a single -rpath flag with a separated argument.
24959hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24960
24961# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24962# resulting binary.
24963hardcode_direct=$hardcode_direct_F77
24964
24965# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24966# resulting binary.
24967hardcode_minus_L=$hardcode_minus_L_F77
24968
24969# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24970# the resulting binary.
24971hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24972
24973# Set to yes if building a shared library automatically hardcodes DIR into the library
24974# and all subsequent libraries and executables linked against it.
24975hardcode_automatic=$hardcode_automatic_F77
24976
24977# Variables whose values should be saved in libtool wrapper scripts and
24978# restored at relink time.
24979variables_saved_for_relink="$variables_saved_for_relink"
24980
24981# Whether libtool must link a program against all its dependency libraries.
24982link_all_deplibs=$link_all_deplibs_F77
24983
24984# Compile-time system search path for libraries
24985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24986
24987# Run-time system search path for libraries
24988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24989
24990# Fix the shell variable \$srcfile for the compiler.
24991fix_srcfile_path=$lt_fix_srcfile_path
24992
24993# Set to yes if exported symbols are required.
24994always_export_symbols=$always_export_symbols_F77
24995
24996# The commands to list exported symbols.
24997export_symbols_cmds=$lt_export_symbols_cmds_F77
24998
24999# The commands to extract the exported symbol list from a shared archive.
25000extract_expsyms_cmds=$lt_extract_expsyms_cmds
25001
25002# Symbols that should not be listed in the preloaded symbols.
25003exclude_expsyms=$lt_exclude_expsyms_F77
25004
25005# Symbols that must always be exported.
25006include_expsyms=$lt_include_expsyms_F77
25007
25008# ### END LIBTOOL TAG CONFIG: $tagname
25009
25010__EOF__
25011
25012
25013else
25014  # If there is no Makefile yet, we rely on a make rule to execute
25015  # `config.status --recheck' to rerun these tests and create the
25016  # libtool script then.
25017  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25018  if test -f "$ltmain_in"; then
25019    test -f Makefile && make "$ltmain"
25020  fi
25021fi
25022
25023
25024ac_ext=c
25025ac_cpp='$CPP $CPPFLAGS'
25026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25028ac_compiler_gnu=$ac_cv_c_compiler_gnu
25029
25030CC="$lt_save_CC"
25031
25032	else
25033	  tagname=""
25034	fi
25035	;;
25036
25037      GCJ)
25038	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
25039
25040
25041# Source file extension for Java test sources.
25042ac_ext=java
25043
25044# Object file extension for compiled Java test sources.
25045objext=o
25046objext_GCJ=$objext
25047
25048# Code to be used in simple compile tests
25049lt_simple_compile_test_code="class foo {}"
25050
25051# Code to be used in simple link tests
25052lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
25053
25054# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25055
25056# If no C compiler was specified, use CC.
25057LTCC=${LTCC-"$CC"}
25058
25059# If no C compiler flags were specified, use CFLAGS.
25060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25061
25062# Allow CC to be a program name with arguments.
25063compiler=$CC
25064
25065
25066# save warnings/boilerplate of simple test code
25067ac_outfile=conftest.$ac_objext
25068echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25070_lt_compiler_boilerplate=`cat conftest.err`
25071$rm conftest*
25072
25073ac_outfile=conftest.$ac_objext
25074echo "$lt_simple_link_test_code" >conftest.$ac_ext
25075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25076_lt_linker_boilerplate=`cat conftest.err`
25077$rm conftest*
25078
25079
25080# Allow CC to be a program name with arguments.
25081lt_save_CC="$CC"
25082CC=${GCJ-"gcj"}
25083compiler=$CC
25084compiler_GCJ=$CC
25085for cc_temp in $compiler""; do
25086  case $cc_temp in
25087    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25088    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25089    \-*) ;;
25090    *) break;;
25091  esac
25092done
25093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25094
25095
25096# GCJ did not exist at the time GCC didn't implicitly link libc in.
25097archive_cmds_need_lc_GCJ=no
25098
25099old_archive_cmds_GCJ=$old_archive_cmds
25100
25101
25102lt_prog_compiler_no_builtin_flag_GCJ=
25103
25104if test "$GCC" = yes; then
25105  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
25106
25107
25108{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25109echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
25110if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25111  echo $ECHO_N "(cached) $ECHO_C" >&6
25112else
25113  lt_cv_prog_compiler_rtti_exceptions=no
25114  ac_outfile=conftest.$ac_objext
25115   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25116   lt_compiler_flag="-fno-rtti -fno-exceptions"
25117   # Insert the option either (1) after the last *FLAGS variable, or
25118   # (2) before a word containing "conftest.", or (3) at the end.
25119   # Note that $ac_compile itself does not contain backslashes and begins
25120   # with a dollar sign (not a hyphen), so the echo should work correctly.
25121   # The option is referenced via a variable to avoid confusing sed.
25122   lt_compile=`echo "$ac_compile" | $SED \
25123   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25124   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25125   -e 's:$: $lt_compiler_flag:'`
25126   (eval echo "\"\$as_me:25126: $lt_compile\"" >&5)
25127   (eval "$lt_compile" 2>conftest.err)
25128   ac_status=$?
25129   cat conftest.err >&5
25130   echo "$as_me:25130: \$? = $ac_status" >&5
25131   if (exit $ac_status) && test -s "$ac_outfile"; then
25132     # The compiler can only warn and ignore the option if not recognized
25133     # So say no if there are warnings other than the usual output.
25134     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25135     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25136     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25137       lt_cv_prog_compiler_rtti_exceptions=yes
25138     fi
25139   fi
25140   $rm conftest*
25141
25142fi
25143{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25144echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
25145
25146if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25147    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
25148else
25149    :
25150fi
25151
25152fi
25153
25154lt_prog_compiler_wl_GCJ=
25155lt_prog_compiler_pic_GCJ=
25156lt_prog_compiler_static_GCJ=
25157
25158{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25159echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
25160
25161  if test "$GCC" = yes; then
25162    lt_prog_compiler_wl_GCJ='-Wl,'
25163    lt_prog_compiler_static_GCJ='-static'
25164
25165    case $host_os in
25166      aix*)
25167      # All AIX code is PIC.
25168      if test "$host_cpu" = ia64; then
25169	# AIX 5 now supports IA64 processor
25170	lt_prog_compiler_static_GCJ='-Bstatic'
25171      fi
25172      ;;
25173
25174    amigaos*)
25175      # FIXME: we need at least 68020 code to build shared libraries, but
25176      # adding the `-m68020' flag to GCC prevents building anything better,
25177      # like `-m68040'.
25178      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
25179      ;;
25180
25181    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25182      # PIC is the default for these OSes.
25183      ;;
25184
25185    mingw* | cygwin* | pw32* | os2*)
25186      # This hack is so that the source file can tell whether it is being
25187      # built for inclusion in a dll (and should export symbols for example).
25188      # Although the cygwin gcc ignores -fPIC, still need this for old-style
25189      # (--disable-auto-import) libraries
25190      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25191      ;;
25192
25193    darwin* | rhapsody*)
25194      # PIC is the default on this platform
25195      # Common symbols not allowed in MH_DYLIB files
25196      lt_prog_compiler_pic_GCJ='-fno-common'
25197      ;;
25198
25199    interix[3-9]*)
25200      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25201      # Instead, we relocate shared libraries at runtime.
25202      ;;
25203
25204    msdosdjgpp*)
25205      # Just because we use GCC doesn't mean we suddenly get shared libraries
25206      # on systems that don't support them.
25207      lt_prog_compiler_can_build_shared_GCJ=no
25208      enable_shared=no
25209      ;;
25210
25211    sysv4*MP*)
25212      if test -d /usr/nec; then
25213	lt_prog_compiler_pic_GCJ=-Kconform_pic
25214      fi
25215      ;;
25216
25217    hpux*)
25218      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25219      # not for PA HP-UX.
25220      case $host_cpu in
25221      hppa*64*|ia64*)
25222	# +Z the default
25223	;;
25224      *)
25225	lt_prog_compiler_pic_GCJ='-fPIC'
25226	;;
25227      esac
25228      ;;
25229
25230    *)
25231      lt_prog_compiler_pic_GCJ='-fPIC'
25232      ;;
25233    esac
25234  else
25235    # PORTME Check for flag to pass linker flags through the system compiler.
25236    case $host_os in
25237    aix*)
25238      lt_prog_compiler_wl_GCJ='-Wl,'
25239      if test "$host_cpu" = ia64; then
25240	# AIX 5 now supports IA64 processor
25241	lt_prog_compiler_static_GCJ='-Bstatic'
25242      else
25243	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
25244      fi
25245      ;;
25246      darwin*)
25247        # PIC is the default on this platform
25248        # Common symbols not allowed in MH_DYLIB files
25249       case $cc_basename in
25250         xlc*)
25251         lt_prog_compiler_pic_GCJ='-qnocommon'
25252         lt_prog_compiler_wl_GCJ='-Wl,'
25253         ;;
25254       esac
25255       ;;
25256
25257    mingw* | cygwin* | pw32* | os2*)
25258      # This hack is so that the source file can tell whether it is being
25259      # built for inclusion in a dll (and should export symbols for example).
25260      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
25261      ;;
25262
25263    hpux9* | hpux10* | hpux11*)
25264      lt_prog_compiler_wl_GCJ='-Wl,'
25265      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25266      # not for PA HP-UX.
25267      case $host_cpu in
25268      hppa*64*|ia64*)
25269	# +Z the default
25270	;;
25271      *)
25272	lt_prog_compiler_pic_GCJ='+Z'
25273	;;
25274      esac
25275      # Is there a better lt_prog_compiler_static that works with the bundled CC?
25276      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
25277      ;;
25278
25279    irix5* | irix6* | nonstopux*)
25280      lt_prog_compiler_wl_GCJ='-Wl,'
25281      # PIC (with -KPIC) is the default.
25282      lt_prog_compiler_static_GCJ='-non_shared'
25283      ;;
25284
25285    newsos6)
25286      lt_prog_compiler_pic_GCJ='-KPIC'
25287      lt_prog_compiler_static_GCJ='-Bstatic'
25288      ;;
25289
25290    linux* | k*bsd*-gnu)
25291      case $cc_basename in
25292      icc* | ecc*)
25293	lt_prog_compiler_wl_GCJ='-Wl,'
25294	lt_prog_compiler_pic_GCJ='-KPIC'
25295	lt_prog_compiler_static_GCJ='-static'
25296        ;;
25297      pgcc* | pgf77* | pgf90* | pgf95*)
25298        # Portland Group compilers (*not* the Pentium gcc compiler,
25299	# which looks to be a dead project)
25300	lt_prog_compiler_wl_GCJ='-Wl,'
25301	lt_prog_compiler_pic_GCJ='-fpic'
25302	lt_prog_compiler_static_GCJ='-Bstatic'
25303        ;;
25304      ccc*)
25305        lt_prog_compiler_wl_GCJ='-Wl,'
25306        # All Alpha code is PIC.
25307        lt_prog_compiler_static_GCJ='-non_shared'
25308        ;;
25309      *)
25310        case `$CC -V 2>&1 | sed 5q` in
25311	*Sun\ C*)
25312	  # Sun C 5.9
25313	  lt_prog_compiler_pic_GCJ='-KPIC'
25314	  lt_prog_compiler_static_GCJ='-Bstatic'
25315	  lt_prog_compiler_wl_GCJ='-Wl,'
25316	  ;;
25317	*Sun\ F*)
25318	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
25319	  lt_prog_compiler_pic_GCJ='-KPIC'
25320	  lt_prog_compiler_static_GCJ='-Bstatic'
25321	  lt_prog_compiler_wl_GCJ=''
25322	  ;;
25323	esac
25324	;;
25325      esac
25326      ;;
25327
25328    osf3* | osf4* | osf5*)
25329      lt_prog_compiler_wl_GCJ='-Wl,'
25330      # All OSF/1 code is PIC.
25331      lt_prog_compiler_static_GCJ='-non_shared'
25332      ;;
25333
25334    rdos*)
25335      lt_prog_compiler_static_GCJ='-non_shared'
25336      ;;
25337
25338    solaris*)
25339      lt_prog_compiler_pic_GCJ='-KPIC'
25340      lt_prog_compiler_static_GCJ='-Bstatic'
25341      case $cc_basename in
25342      f77* | f90* | f95*)
25343	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
25344      *)
25345	lt_prog_compiler_wl_GCJ='-Wl,';;
25346      esac
25347      ;;
25348
25349    sunos4*)
25350      lt_prog_compiler_wl_GCJ='-Qoption ld '
25351      lt_prog_compiler_pic_GCJ='-PIC'
25352      lt_prog_compiler_static_GCJ='-Bstatic'
25353      ;;
25354
25355    sysv4 | sysv4.2uw2* | sysv4.3*)
25356      lt_prog_compiler_wl_GCJ='-Wl,'
25357      lt_prog_compiler_pic_GCJ='-KPIC'
25358      lt_prog_compiler_static_GCJ='-Bstatic'
25359      ;;
25360
25361    sysv4*MP*)
25362      if test -d /usr/nec ;then
25363	lt_prog_compiler_pic_GCJ='-Kconform_pic'
25364	lt_prog_compiler_static_GCJ='-Bstatic'
25365      fi
25366      ;;
25367
25368    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25369      lt_prog_compiler_wl_GCJ='-Wl,'
25370      lt_prog_compiler_pic_GCJ='-KPIC'
25371      lt_prog_compiler_static_GCJ='-Bstatic'
25372      ;;
25373
25374    unicos*)
25375      lt_prog_compiler_wl_GCJ='-Wl,'
25376      lt_prog_compiler_can_build_shared_GCJ=no
25377      ;;
25378
25379    uts4*)
25380      lt_prog_compiler_pic_GCJ='-pic'
25381      lt_prog_compiler_static_GCJ='-Bstatic'
25382      ;;
25383
25384    *)
25385      lt_prog_compiler_can_build_shared_GCJ=no
25386      ;;
25387    esac
25388  fi
25389
25390{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
25391echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
25392
25393#
25394# Check to make sure the PIC flag actually works.
25395#
25396if test -n "$lt_prog_compiler_pic_GCJ"; then
25397
25398{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
25399echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
25400if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
25401  echo $ECHO_N "(cached) $ECHO_C" >&6
25402else
25403  lt_prog_compiler_pic_works_GCJ=no
25404  ac_outfile=conftest.$ac_objext
25405   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25406   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
25407   # Insert the option either (1) after the last *FLAGS variable, or
25408   # (2) before a word containing "conftest.", or (3) at the end.
25409   # Note that $ac_compile itself does not contain backslashes and begins
25410   # with a dollar sign (not a hyphen), so the echo should work correctly.
25411   # The option is referenced via a variable to avoid confusing sed.
25412   lt_compile=`echo "$ac_compile" | $SED \
25413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25415   -e 's:$: $lt_compiler_flag:'`
25416   (eval echo "\"\$as_me:25416: $lt_compile\"" >&5)
25417   (eval "$lt_compile" 2>conftest.err)
25418   ac_status=$?
25419   cat conftest.err >&5
25420   echo "$as_me:25420: \$? = $ac_status" >&5
25421   if (exit $ac_status) && test -s "$ac_outfile"; then
25422     # The compiler can only warn and ignore the option if not recognized
25423     # So say no if there are warnings other than the usual output.
25424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
25425     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25426     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25427       lt_prog_compiler_pic_works_GCJ=yes
25428     fi
25429   fi
25430   $rm conftest*
25431
25432fi
25433{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
25434echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
25435
25436if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25437    case $lt_prog_compiler_pic_GCJ in
25438     "" | " "*) ;;
25439     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25440     esac
25441else
25442    lt_prog_compiler_pic_GCJ=
25443     lt_prog_compiler_can_build_shared_GCJ=no
25444fi
25445
25446fi
25447case $host_os in
25448  # For platforms which do not support PIC, -DPIC is meaningless:
25449  *djgpp*)
25450    lt_prog_compiler_pic_GCJ=
25451    ;;
25452  *)
25453    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
25454    ;;
25455esac
25456
25457#
25458# Check to make sure the static flag actually works.
25459#
25460wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
25461{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25462echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
25463if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
25464  echo $ECHO_N "(cached) $ECHO_C" >&6
25465else
25466  lt_prog_compiler_static_works_GCJ=no
25467   save_LDFLAGS="$LDFLAGS"
25468   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25469   echo "$lt_simple_link_test_code" > conftest.$ac_ext
25470   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25471     # The linker can only warn and ignore the option if not recognized
25472     # So say no if there are warnings
25473     if test -s conftest.err; then
25474       # Append any errors to the config.log.
25475       cat conftest.err 1>&5
25476       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
25477       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25478       if diff conftest.exp conftest.er2 >/dev/null; then
25479         lt_prog_compiler_static_works_GCJ=yes
25480       fi
25481     else
25482       lt_prog_compiler_static_works_GCJ=yes
25483     fi
25484   fi
25485   $rm conftest*
25486   LDFLAGS="$save_LDFLAGS"
25487
25488fi
25489{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
25490echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
25491
25492if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
25493    :
25494else
25495    lt_prog_compiler_static_GCJ=
25496fi
25497
25498
25499{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25500echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
25501if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25502  echo $ECHO_N "(cached) $ECHO_C" >&6
25503else
25504  lt_cv_prog_compiler_c_o_GCJ=no
25505   $rm -r conftest 2>/dev/null
25506   mkdir conftest
25507   cd conftest
25508   mkdir out
25509   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25510
25511   lt_compiler_flag="-o out/conftest2.$ac_objext"
25512   # Insert the option either (1) after the last *FLAGS variable, or
25513   # (2) before a word containing "conftest.", or (3) at the end.
25514   # Note that $ac_compile itself does not contain backslashes and begins
25515   # with a dollar sign (not a hyphen), so the echo should work correctly.
25516   lt_compile=`echo "$ac_compile" | $SED \
25517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25519   -e 's:$: $lt_compiler_flag:'`
25520   (eval echo "\"\$as_me:25520: $lt_compile\"" >&5)
25521   (eval "$lt_compile" 2>out/conftest.err)
25522   ac_status=$?
25523   cat out/conftest.err >&5
25524   echo "$as_me:25524: \$? = $ac_status" >&5
25525   if (exit $ac_status) && test -s out/conftest2.$ac_objext
25526   then
25527     # The compiler can only warn and ignore the option if not recognized
25528     # So say no if there are warnings
25529     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
25530     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25531     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25532       lt_cv_prog_compiler_c_o_GCJ=yes
25533     fi
25534   fi
25535   chmod u+w . 2>&5
25536   $rm conftest*
25537   # SGI C++ compiler will create directory out/ii_files/ for
25538   # template instantiation
25539   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25540   $rm out/* && rmdir out
25541   cd ..
25542   rmdir conftest
25543   $rm conftest*
25544
25545fi
25546{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25547echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
25548
25549
25550hard_links="nottested"
25551if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25552  # do not overwrite the value of need_locks provided by the user
25553  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25554echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
25555  hard_links=yes
25556  $rm conftest*
25557  ln conftest.a conftest.b 2>/dev/null && hard_links=no
25558  touch conftest.a
25559  ln conftest.a conftest.b 2>&5 || hard_links=no
25560  ln conftest.a conftest.b 2>/dev/null && hard_links=no
25561  { echo "$as_me:$LINENO: result: $hard_links" >&5
25562echo "${ECHO_T}$hard_links" >&6; }
25563  if test "$hard_links" = no; then
25564    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25565echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25566    need_locks=warn
25567  fi
25568else
25569  need_locks=no
25570fi
25571
25572{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25573echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
25574
25575  runpath_var=
25576  allow_undefined_flag_GCJ=
25577  enable_shared_with_static_runtimes_GCJ=no
25578  archive_cmds_GCJ=
25579  archive_expsym_cmds_GCJ=
25580  old_archive_From_new_cmds_GCJ=
25581  old_archive_from_expsyms_cmds_GCJ=
25582  export_dynamic_flag_spec_GCJ=
25583  whole_archive_flag_spec_GCJ=
25584  thread_safe_flag_spec_GCJ=
25585  hardcode_libdir_flag_spec_GCJ=
25586  hardcode_libdir_flag_spec_ld_GCJ=
25587  hardcode_libdir_separator_GCJ=
25588  hardcode_direct_GCJ=no
25589  hardcode_minus_L_GCJ=no
25590  hardcode_shlibpath_var_GCJ=unsupported
25591  link_all_deplibs_GCJ=unknown
25592  hardcode_automatic_GCJ=no
25593  module_cmds_GCJ=
25594  module_expsym_cmds_GCJ=
25595  always_export_symbols_GCJ=no
25596  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25597  # include_expsyms should be a list of space-separated symbols to be *always*
25598  # included in the symbol list
25599  include_expsyms_GCJ=
25600  # exclude_expsyms can be an extended regexp of symbols to exclude
25601  # it will be wrapped by ` (' and `)$', so one must not match beginning or
25602  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25603  # as well as any symbol that contains `d'.
25604  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25605  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25606  # platforms (ab)use it in PIC code, but their linkers get confused if
25607  # the symbol is explicitly referenced.  Since portable code cannot
25608  # rely on this symbol name, it's probably fine to never include it in
25609  # preloaded symbol tables.
25610  extract_expsyms_cmds=
25611  # Just being paranoid about ensuring that cc_basename is set.
25612  for cc_temp in $compiler""; do
25613  case $cc_temp in
25614    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25615    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25616    \-*) ;;
25617    *) break;;
25618  esac
25619done
25620cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25621
25622  case $host_os in
25623  cygwin* | mingw* | pw32*)
25624    # FIXME: the MSVC++ port hasn't been tested in a loooong time
25625    # When not using gcc, we currently assume that we are using
25626    # Microsoft Visual C++.
25627    if test "$GCC" != yes; then
25628      with_gnu_ld=no
25629    fi
25630    ;;
25631  interix*)
25632    # we just hope/assume this is gcc and not c89 (= MSVC++)
25633    with_gnu_ld=yes
25634    ;;
25635  openbsd*)
25636    with_gnu_ld=no
25637    ;;
25638  esac
25639
25640  ld_shlibs_GCJ=yes
25641  if test "$with_gnu_ld" = yes; then
25642    # If archive_cmds runs LD, not CC, wlarc should be empty
25643    wlarc='${wl}'
25644
25645    # Set some defaults for GNU ld with shared library support. These
25646    # are reset later if shared libraries are not supported. Putting them
25647    # here allows them to be overridden if necessary.
25648    runpath_var=LD_RUN_PATH
25649    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25650    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25651    # ancient GNU ld didn't support --whole-archive et. al.
25652    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25653	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25654      else
25655  	whole_archive_flag_spec_GCJ=
25656    fi
25657    supports_anon_versioning=no
25658    case `$LD -v 2>/dev/null` in
25659      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25660      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25661      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25662      *\ 2.11.*) ;; # other 2.11 versions
25663      *) supports_anon_versioning=yes ;;
25664    esac
25665
25666    # See if GNU ld supports shared libraries.
25667    case $host_os in
25668    aix3* | aix4* | aix5*)
25669      # On AIX/PPC, the GNU linker is very broken
25670      if test "$host_cpu" != ia64; then
25671	ld_shlibs_GCJ=no
25672	cat <<EOF 1>&2
25673
25674*** Warning: the GNU linker, at least up to release 2.9.1, is reported
25675*** to be unable to reliably create shared libraries on AIX.
25676*** Therefore, libtool is disabling shared libraries support.  If you
25677*** really care for shared libraries, you may want to modify your PATH
25678*** so that a non-GNU linker is found, and then restart.
25679
25680EOF
25681      fi
25682      ;;
25683
25684    amigaos*)
25685      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)'
25686      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25687      hardcode_minus_L_GCJ=yes
25688
25689      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25690      # that the semantics of dynamic libraries on AmigaOS, at least up
25691      # to version 4, is to share data among multiple programs linked
25692      # with the same dynamic library.  Since this doesn't match the
25693      # behavior of shared libraries on other platforms, we can't use
25694      # them.
25695      ld_shlibs_GCJ=no
25696      ;;
25697
25698    beos*)
25699      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25700	allow_undefined_flag_GCJ=unsupported
25701	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25702	# support --undefined.  This deserves some investigation.  FIXME
25703	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25704      else
25705	ld_shlibs_GCJ=no
25706      fi
25707      ;;
25708
25709    cygwin* | mingw* | pw32*)
25710      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25711      # as there is no search path for DLLs.
25712      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25713      allow_undefined_flag_GCJ=unsupported
25714      always_export_symbols_GCJ=no
25715      enable_shared_with_static_runtimes_GCJ=yes
25716      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25717
25718      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25719        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25720	# If the export-symbols file already is a .def file (1st line
25721	# is EXPORTS), use it as is; otherwise, prepend...
25722	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25723	  cp $export_symbols $output_objdir/$soname.def;
25724	else
25725	  echo EXPORTS > $output_objdir/$soname.def;
25726	  cat $export_symbols >> $output_objdir/$soname.def;
25727	fi~
25728	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25729      else
25730	ld_shlibs_GCJ=no
25731      fi
25732      ;;
25733
25734    interix[3-9]*)
25735      hardcode_direct_GCJ=no
25736      hardcode_shlibpath_var_GCJ=no
25737      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25738      export_dynamic_flag_spec_GCJ='${wl}-E'
25739      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25740      # Instead, shared libraries are loaded at an image base (0x10000000 by
25741      # default) and relocated if they conflict, which is a slow very memory
25742      # consuming and fragmenting process.  To avoid this, we pick a random,
25743      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25744      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25745      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'
25746      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'
25747      ;;
25748
25749    gnu* | linux* | k*bsd*-gnu)
25750      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25751	tmp_addflag=
25752	case $cc_basename,$host_cpu in
25753	pgcc*)				# Portland Group C compiler
25754	  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'
25755	  tmp_addflag=' $pic_flag'
25756	  ;;
25757	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
25758	  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'
25759	  tmp_addflag=' $pic_flag -Mnomain' ;;
25760	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
25761	  tmp_addflag=' -i_dynamic' ;;
25762	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
25763	  tmp_addflag=' -i_dynamic -nofor_main' ;;
25764	ifc* | ifort*)			# Intel Fortran compiler
25765	  tmp_addflag=' -nofor_main' ;;
25766	esac
25767	case `$CC -V 2>&1 | sed 5q` in
25768	*Sun\ C*)			# Sun C 5.9
25769	  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'
25770	  tmp_sharedflag='-G' ;;
25771	*Sun\ F*)			# Sun Fortran 8.3
25772	  tmp_sharedflag='-G' ;;
25773	*)
25774	  tmp_sharedflag='-shared' ;;
25775	esac
25776	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25777
25778	if test $supports_anon_versioning = yes; then
25779	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25780  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25781  $echo "local: *; };" >> $output_objdir/$libname.ver~
25782	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25783	fi
25784      else
25785	ld_shlibs_GCJ=no
25786      fi
25787      ;;
25788
25789    netbsd*)
25790      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25791	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25792	wlarc=
25793      else
25794	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25795	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25796      fi
25797      ;;
25798
25799    solaris*)
25800      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25801	ld_shlibs_GCJ=no
25802	cat <<EOF 1>&2
25803
25804*** Warning: The releases 2.8.* of the GNU linker cannot reliably
25805*** create shared libraries on Solaris systems.  Therefore, libtool
25806*** is disabling shared libraries support.  We urge you to upgrade GNU
25807*** binutils to release 2.9.1 or newer.  Another option is to modify
25808*** your PATH or compiler configuration so that the native linker is
25809*** used, and then restart.
25810
25811EOF
25812      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25813	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25814	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25815      else
25816	ld_shlibs_GCJ=no
25817      fi
25818      ;;
25819
25820    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25821      case `$LD -v 2>&1` in
25822        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25823	ld_shlibs_GCJ=no
25824	cat <<_LT_EOF 1>&2
25825
25826*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25827*** reliably create shared libraries on SCO systems.  Therefore, libtool
25828*** is disabling shared libraries support.  We urge you to upgrade GNU
25829*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
25830*** your PATH or compiler configuration so that the native linker is
25831*** used, and then restart.
25832
25833_LT_EOF
25834	;;
25835	*)
25836	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25837	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25838	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25839	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25840	  else
25841	    ld_shlibs_GCJ=no
25842	  fi
25843	;;
25844      esac
25845      ;;
25846
25847    sunos4*)
25848      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25849      wlarc=
25850      hardcode_direct_GCJ=yes
25851      hardcode_shlibpath_var_GCJ=no
25852      ;;
25853
25854    *)
25855      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25856	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25857	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25858      else
25859	ld_shlibs_GCJ=no
25860      fi
25861      ;;
25862    esac
25863
25864    if test "$ld_shlibs_GCJ" = no; then
25865      runpath_var=
25866      hardcode_libdir_flag_spec_GCJ=
25867      export_dynamic_flag_spec_GCJ=
25868      whole_archive_flag_spec_GCJ=
25869    fi
25870  else
25871    # PORTME fill in a description of your system's linker (not GNU ld)
25872    case $host_os in
25873    aix3*)
25874      allow_undefined_flag_GCJ=unsupported
25875      always_export_symbols_GCJ=yes
25876      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'
25877      # Note: this linker hardcodes the directories in LIBPATH if there
25878      # are no directories specified by -L.
25879      hardcode_minus_L_GCJ=yes
25880      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25881	# Neither direct hardcoding nor static linking is supported with a
25882	# broken collect2.
25883	hardcode_direct_GCJ=unsupported
25884      fi
25885      ;;
25886
25887    aix4* | aix5*)
25888      if test "$host_cpu" = ia64; then
25889	# On IA64, the linker does run time linking by default, so we don't
25890	# have to do anything special.
25891	aix_use_runtimelinking=no
25892	exp_sym_flag='-Bexport'
25893	no_entry_flag=""
25894      else
25895	# If we're using GNU nm, then we don't want the "-C" option.
25896	# -C means demangle to AIX nm, but means don't demangle with GNU nm
25897	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25898	  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'
25899	else
25900	  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'
25901	fi
25902	aix_use_runtimelinking=no
25903
25904	# Test if we are trying to use run time linking or normal
25905	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
25906	# need to do runtime linking.
25907	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25908	  for ld_flag in $LDFLAGS; do
25909  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25910  	    aix_use_runtimelinking=yes
25911  	    break
25912  	  fi
25913	  done
25914	  ;;
25915	esac
25916
25917	exp_sym_flag='-bexport'
25918	no_entry_flag='-bnoentry'
25919      fi
25920
25921      # When large executables or shared objects are built, AIX ld can
25922      # have problems creating the table of contents.  If linking a library
25923      # or program results in "error TOC overflow" add -mminimal-toc to
25924      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25925      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25926
25927      archive_cmds_GCJ=''
25928      hardcode_direct_GCJ=yes
25929      hardcode_libdir_separator_GCJ=':'
25930      link_all_deplibs_GCJ=yes
25931
25932      if test "$GCC" = yes; then
25933	case $host_os in aix4.[012]|aix4.[012].*)
25934	# We only want to do this on AIX 4.2 and lower, the check
25935	# below for broken collect2 doesn't work under 4.3+
25936	  collect2name=`${CC} -print-prog-name=collect2`
25937	  if test -f "$collect2name" && \
25938  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
25939	  then
25940  	  # We have reworked collect2
25941  	  :
25942	  else
25943  	  # We have old collect2
25944  	  hardcode_direct_GCJ=unsupported
25945  	  # It fails to find uninstalled libraries when the uninstalled
25946  	  # path is not listed in the libpath.  Setting hardcode_minus_L
25947  	  # to unsupported forces relinking
25948  	  hardcode_minus_L_GCJ=yes
25949  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
25950  	  hardcode_libdir_separator_GCJ=
25951	  fi
25952	  ;;
25953	esac
25954	shared_flag='-shared'
25955	if test "$aix_use_runtimelinking" = yes; then
25956	  shared_flag="$shared_flag "'${wl}-G'
25957	fi
25958      else
25959	# not using gcc
25960	if test "$host_cpu" = ia64; then
25961  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25962  	# chokes on -Wl,-G. The following line is correct:
25963	  shared_flag='-G'
25964	else
25965	  if test "$aix_use_runtimelinking" = yes; then
25966	    shared_flag='${wl}-G'
25967	  else
25968	    shared_flag='${wl}-bM:SRE'
25969	  fi
25970	fi
25971      fi
25972
25973      # It seems that -bexpall does not export symbols beginning with
25974      # underscore (_), so it is better to generate a list of symbols to export.
25975      always_export_symbols_GCJ=yes
25976      if test "$aix_use_runtimelinking" = yes; then
25977	# Warning - without using the other runtime loading flags (-brtl),
25978	# -berok will link without error, but may produce a broken library.
25979	allow_undefined_flag_GCJ='-berok'
25980       # Determine the default libpath from the value encoded in an empty executable.
25981       cat >conftest.$ac_ext <<_ACEOF
25982/* confdefs.h.  */
25983_ACEOF
25984cat confdefs.h >>conftest.$ac_ext
25985cat >>conftest.$ac_ext <<_ACEOF
25986/* end confdefs.h.  */
25987
25988int
25989main ()
25990{
25991
25992  ;
25993  return 0;
25994}
25995_ACEOF
25996rm -f conftest.$ac_objext conftest$ac_exeext
25997if { (ac_try="$ac_link"
25998case "(($ac_try" in
25999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000  *) ac_try_echo=$ac_try;;
26001esac
26002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003  (eval "$ac_link") 2>conftest.er1
26004  ac_status=$?
26005  grep -v '^ *+' conftest.er1 >conftest.err
26006  rm -f conftest.er1
26007  cat conftest.err >&5
26008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009  (exit $ac_status); } && {
26010	 test -z "$ac_c_werror_flag" ||
26011	 test ! -s conftest.err
26012       } && test -s conftest$ac_exeext &&
26013       $as_test_x conftest$ac_exeext; then
26014
26015lt_aix_libpath_sed='
26016    /Import File Strings/,/^$/ {
26017	/^0/ {
26018	    s/^0  *\(.*\)$/\1/
26019	    p
26020	}
26021    }'
26022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26023# Check for a 64-bit object if we didn't find anything.
26024if test -z "$aix_libpath"; then
26025  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26026fi
26027else
26028  echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031
26032fi
26033
26034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26035      conftest$ac_exeext conftest.$ac_ext
26036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26037
26038       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26039	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"
26040       else
26041	if test "$host_cpu" = ia64; then
26042	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
26043	  allow_undefined_flag_GCJ="-z nodefs"
26044	  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"
26045	else
26046	 # Determine the default libpath from the value encoded in an empty executable.
26047	 cat >conftest.$ac_ext <<_ACEOF
26048/* confdefs.h.  */
26049_ACEOF
26050cat confdefs.h >>conftest.$ac_ext
26051cat >>conftest.$ac_ext <<_ACEOF
26052/* end confdefs.h.  */
26053
26054int
26055main ()
26056{
26057
26058  ;
26059  return 0;
26060}
26061_ACEOF
26062rm -f conftest.$ac_objext conftest$ac_exeext
26063if { (ac_try="$ac_link"
26064case "(($ac_try" in
26065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066  *) ac_try_echo=$ac_try;;
26067esac
26068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069  (eval "$ac_link") 2>conftest.er1
26070  ac_status=$?
26071  grep -v '^ *+' conftest.er1 >conftest.err
26072  rm -f conftest.er1
26073  cat conftest.err >&5
26074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075  (exit $ac_status); } && {
26076	 test -z "$ac_c_werror_flag" ||
26077	 test ! -s conftest.err
26078       } && test -s conftest$ac_exeext &&
26079       $as_test_x conftest$ac_exeext; then
26080
26081lt_aix_libpath_sed='
26082    /Import File Strings/,/^$/ {
26083	/^0/ {
26084	    s/^0  *\(.*\)$/\1/
26085	    p
26086	}
26087    }'
26088aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26089# Check for a 64-bit object if we didn't find anything.
26090if test -z "$aix_libpath"; then
26091  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26092fi
26093else
26094  echo "$as_me: failed program was:" >&5
26095sed 's/^/| /' conftest.$ac_ext >&5
26096
26097
26098fi
26099
26100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26101      conftest$ac_exeext conftest.$ac_ext
26102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26103
26104	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
26105	  # Warning - without using the other run time loading flags,
26106	  # -berok will link without error, but may produce a broken library.
26107	  no_undefined_flag_GCJ=' ${wl}-bernotok'
26108	  allow_undefined_flag_GCJ=' ${wl}-berok'
26109	  # Exported symbols can be pulled into shared objects from archives
26110	  whole_archive_flag_spec_GCJ='$convenience'
26111	  archive_cmds_need_lc_GCJ=yes
26112	  # This is similar to how AIX traditionally builds its shared libraries.
26113	  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'
26114	fi
26115      fi
26116      ;;
26117
26118    amigaos*)
26119      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)'
26120      hardcode_libdir_flag_spec_GCJ='-L$libdir'
26121      hardcode_minus_L_GCJ=yes
26122      # see comment about different semantics on the GNU ld section
26123      ld_shlibs_GCJ=no
26124      ;;
26125
26126    bsdi[45]*)
26127      export_dynamic_flag_spec_GCJ=-rdynamic
26128      ;;
26129
26130    cygwin* | mingw* | pw32*)
26131      # When not using gcc, we currently assume that we are using
26132      # Microsoft Visual C++.
26133      # hardcode_libdir_flag_spec is actually meaningless, as there is
26134      # no search path for DLLs.
26135      hardcode_libdir_flag_spec_GCJ=' '
26136      allow_undefined_flag_GCJ=unsupported
26137      # Tell ltmain to make .lib files, not .a files.
26138      libext=lib
26139      # Tell ltmain to make .dll files, not .so files.
26140      shrext_cmds=".dll"
26141      # FIXME: Setting linknames here is a bad hack.
26142      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
26143      # The linker will automatically build a .lib file if we build a DLL.
26144      old_archive_From_new_cmds_GCJ='true'
26145      # FIXME: Should let the user specify the lib program.
26146      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
26147      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
26148      enable_shared_with_static_runtimes_GCJ=yes
26149      ;;
26150
26151    darwin* | rhapsody*)
26152      case $host_os in
26153        rhapsody* | darwin1.[012])
26154         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
26155         ;;
26156       *) # Darwin 1.3 on
26157         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26158           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26159         else
26160           case ${MACOSX_DEPLOYMENT_TARGET} in
26161             10.[012])
26162               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26163               ;;
26164             10.*)
26165               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
26166               ;;
26167           esac
26168         fi
26169         ;;
26170      esac
26171      archive_cmds_need_lc_GCJ=no
26172      hardcode_direct_GCJ=no
26173      hardcode_automatic_GCJ=yes
26174      hardcode_shlibpath_var_GCJ=unsupported
26175      whole_archive_flag_spec_GCJ=''
26176      link_all_deplibs_GCJ=yes
26177    if test "$GCC" = yes ; then
26178    	output_verbose_link_cmd='echo'
26179        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26180      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26181      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26182      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}'
26183      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}'
26184    else
26185      case $cc_basename in
26186        xlc*)
26187         output_verbose_link_cmd='echo'
26188         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
26189         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26190          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26191         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}'
26192          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}'
26193          ;;
26194       *)
26195         ld_shlibs_GCJ=no
26196          ;;
26197      esac
26198    fi
26199      ;;
26200
26201    dgux*)
26202      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26203      hardcode_libdir_flag_spec_GCJ='-L$libdir'
26204      hardcode_shlibpath_var_GCJ=no
26205      ;;
26206
26207    freebsd1*)
26208      ld_shlibs_GCJ=no
26209      ;;
26210
26211    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26212    # support.  Future versions do this automatically, but an explicit c++rt0.o
26213    # does not break anything, and helps significantly (at the cost of a little
26214    # extra space).
26215    freebsd2.2*)
26216      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26217      hardcode_libdir_flag_spec_GCJ='-R$libdir'
26218      hardcode_direct_GCJ=yes
26219      hardcode_shlibpath_var_GCJ=no
26220      ;;
26221
26222    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26223    freebsd2*)
26224      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26225      hardcode_direct_GCJ=yes
26226      hardcode_minus_L_GCJ=yes
26227      hardcode_shlibpath_var_GCJ=no
26228      ;;
26229
26230    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26231    freebsd* | dragonfly*)
26232      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26233      hardcode_libdir_flag_spec_GCJ='-R$libdir'
26234      hardcode_direct_GCJ=yes
26235      hardcode_shlibpath_var_GCJ=no
26236      ;;
26237
26238    hpux9*)
26239      if test "$GCC" = yes; then
26240	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'
26241      else
26242	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'
26243      fi
26244      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26245      hardcode_libdir_separator_GCJ=:
26246      hardcode_direct_GCJ=yes
26247
26248      # hardcode_minus_L: Not really in the search PATH,
26249      # but as the default location of the library.
26250      hardcode_minus_L_GCJ=yes
26251      export_dynamic_flag_spec_GCJ='${wl}-E'
26252      ;;
26253
26254    hpux10*)
26255      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26256	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26257      else
26258	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26259      fi
26260      if test "$with_gnu_ld" = no; then
26261	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26262	hardcode_libdir_separator_GCJ=:
26263
26264	hardcode_direct_GCJ=yes
26265	export_dynamic_flag_spec_GCJ='${wl}-E'
26266
26267	# hardcode_minus_L: Not really in the search PATH,
26268	# but as the default location of the library.
26269	hardcode_minus_L_GCJ=yes
26270      fi
26271      ;;
26272
26273    hpux11*)
26274      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26275	case $host_cpu in
26276	hppa*64*)
26277	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26278	  ;;
26279	ia64*)
26280	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26281	  ;;
26282	*)
26283	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26284	  ;;
26285	esac
26286      else
26287	case $host_cpu in
26288	hppa*64*)
26289	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26290	  ;;
26291	ia64*)
26292	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26293	  ;;
26294	*)
26295	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26296	  ;;
26297	esac
26298      fi
26299      if test "$with_gnu_ld" = no; then
26300	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
26301	hardcode_libdir_separator_GCJ=:
26302
26303	case $host_cpu in
26304	hppa*64*|ia64*)
26305	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
26306	  hardcode_direct_GCJ=no
26307	  hardcode_shlibpath_var_GCJ=no
26308	  ;;
26309	*)
26310	  hardcode_direct_GCJ=yes
26311	  export_dynamic_flag_spec_GCJ='${wl}-E'
26312
26313	  # hardcode_minus_L: Not really in the search PATH,
26314	  # but as the default location of the library.
26315	  hardcode_minus_L_GCJ=yes
26316	  ;;
26317	esac
26318      fi
26319      ;;
26320
26321    irix5* | irix6* | nonstopux*)
26322      if test "$GCC" = yes; then
26323	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'
26324      else
26325	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'
26326	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
26327      fi
26328      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26329      hardcode_libdir_separator_GCJ=:
26330      link_all_deplibs_GCJ=yes
26331      ;;
26332
26333    netbsd*)
26334      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26335	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26336      else
26337	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
26338      fi
26339      hardcode_libdir_flag_spec_GCJ='-R$libdir'
26340      hardcode_direct_GCJ=yes
26341      hardcode_shlibpath_var_GCJ=no
26342      ;;
26343
26344    newsos6)
26345      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26346      hardcode_direct_GCJ=yes
26347      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26348      hardcode_libdir_separator_GCJ=:
26349      hardcode_shlibpath_var_GCJ=no
26350      ;;
26351
26352    openbsd*)
26353      if test -f /usr/libexec/ld.so; then
26354	hardcode_direct_GCJ=yes
26355	hardcode_shlibpath_var_GCJ=no
26356	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26357	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26358	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26359	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26360	  export_dynamic_flag_spec_GCJ='${wl}-E'
26361	else
26362	  case $host_os in
26363	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26364	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26365	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
26366	     ;;
26367	   *)
26368	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26369	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26370	     ;;
26371	  esac
26372        fi
26373      else
26374	ld_shlibs_GCJ=no
26375      fi
26376      ;;
26377
26378    os2*)
26379      hardcode_libdir_flag_spec_GCJ='-L$libdir'
26380      hardcode_minus_L_GCJ=yes
26381      allow_undefined_flag_GCJ=unsupported
26382      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'
26383      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26384      ;;
26385
26386    osf3*)
26387      if test "$GCC" = yes; then
26388	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
26389	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'
26390      else
26391	allow_undefined_flag_GCJ=' -expect_unresolved \*'
26392	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'
26393      fi
26394      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26395      hardcode_libdir_separator_GCJ=:
26396      ;;
26397
26398    osf4* | osf5*)	# as osf3* with the addition of -msym flag
26399      if test "$GCC" = yes; then
26400	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
26401	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'
26402	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
26403      else
26404	allow_undefined_flag_GCJ=' -expect_unresolved \*'
26405	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'
26406	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~
26407	$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'
26408
26409	# Both c and cxx compiler support -rpath directly
26410	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
26411      fi
26412      hardcode_libdir_separator_GCJ=:
26413      ;;
26414
26415    solaris*)
26416      no_undefined_flag_GCJ=' -z text'
26417      if test "$GCC" = yes; then
26418	wlarc='${wl}'
26419	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26420	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26421	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26422      else
26423	wlarc=''
26424	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26425	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26426  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26427      fi
26428      hardcode_libdir_flag_spec_GCJ='-R$libdir'
26429      hardcode_shlibpath_var_GCJ=no
26430      case $host_os in
26431      solaris2.[0-5] | solaris2.[0-5].*) ;;
26432      *)
26433	# The compiler driver will combine and reorder linker options,
26434	# but understands `-z linker_flag'.  GCC discards it without `$wl',
26435	# but is careful enough not to reorder.
26436 	# Supported since Solaris 2.6 (maybe 2.5.1?)
26437	if test "$GCC" = yes; then
26438	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26439	else
26440	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
26441	fi
26442	;;
26443      esac
26444      link_all_deplibs_GCJ=yes
26445      ;;
26446
26447    sunos4*)
26448      if test "x$host_vendor" = xsequent; then
26449	# Use $CC to link under sequent, because it throws in some extra .o
26450	# files that make .init and .fini sections work.
26451	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26452      else
26453	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26454      fi
26455      hardcode_libdir_flag_spec_GCJ='-L$libdir'
26456      hardcode_direct_GCJ=yes
26457      hardcode_minus_L_GCJ=yes
26458      hardcode_shlibpath_var_GCJ=no
26459      ;;
26460
26461    sysv4)
26462      case $host_vendor in
26463	sni)
26464	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26465	  hardcode_direct_GCJ=yes # is this really true???
26466	;;
26467	siemens)
26468	  ## LD is ld it makes a PLAMLIB
26469	  ## CC just makes a GrossModule.
26470	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26471	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
26472	  hardcode_direct_GCJ=no
26473        ;;
26474	motorola)
26475	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26476	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
26477	;;
26478      esac
26479      runpath_var='LD_RUN_PATH'
26480      hardcode_shlibpath_var_GCJ=no
26481      ;;
26482
26483    sysv4.3*)
26484      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26485      hardcode_shlibpath_var_GCJ=no
26486      export_dynamic_flag_spec_GCJ='-Bexport'
26487      ;;
26488
26489    sysv4*MP*)
26490      if test -d /usr/nec; then
26491	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26492	hardcode_shlibpath_var_GCJ=no
26493	runpath_var=LD_RUN_PATH
26494	hardcode_runpath_var=yes
26495	ld_shlibs_GCJ=yes
26496      fi
26497      ;;
26498
26499    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26500      no_undefined_flag_GCJ='${wl}-z,text'
26501      archive_cmds_need_lc_GCJ=no
26502      hardcode_shlibpath_var_GCJ=no
26503      runpath_var='LD_RUN_PATH'
26504
26505      if test "$GCC" = yes; then
26506	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26507	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26508      else
26509	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26510	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26511      fi
26512      ;;
26513
26514    sysv5* | sco3.2v5* | sco5v6*)
26515      # Note: We can NOT use -z defs as we might desire, because we do not
26516      # link with -lc, and that would cause any symbols used from libc to
26517      # always be unresolved, which means just about no library would
26518      # ever link correctly.  If we're not using GNU ld we use -z text
26519      # though, which does catch some bad symbols but isn't as heavy-handed
26520      # as -z defs.
26521      no_undefined_flag_GCJ='${wl}-z,text'
26522      allow_undefined_flag_GCJ='${wl}-z,nodefs'
26523      archive_cmds_need_lc_GCJ=no
26524      hardcode_shlibpath_var_GCJ=no
26525      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
26526      hardcode_libdir_separator_GCJ=':'
26527      link_all_deplibs_GCJ=yes
26528      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26529      runpath_var='LD_RUN_PATH'
26530
26531      if test "$GCC" = yes; then
26532	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26533	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26534      else
26535	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26536	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26537      fi
26538      ;;
26539
26540    uts4*)
26541      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26542      hardcode_libdir_flag_spec_GCJ='-L$libdir'
26543      hardcode_shlibpath_var_GCJ=no
26544      ;;
26545
26546    *)
26547      ld_shlibs_GCJ=no
26548      ;;
26549    esac
26550  fi
26551
26552{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26553echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
26554test "$ld_shlibs_GCJ" = no && can_build_shared=no
26555
26556#
26557# Do we need to explicitly link libc?
26558#
26559case "x$archive_cmds_need_lc_GCJ" in
26560x|xyes)
26561  # Assume -lc should be added
26562  archive_cmds_need_lc_GCJ=yes
26563
26564  if test "$enable_shared" = yes && test "$GCC" = yes; then
26565    case $archive_cmds_GCJ in
26566    *'~'*)
26567      # FIXME: we may have to deal with multi-command sequences.
26568      ;;
26569    '$CC '*)
26570      # Test whether the compiler implicitly links with -lc since on some
26571      # systems, -lgcc has to come before -lc. If gcc already passes -lc
26572      # to ld, don't add -lc before -lgcc.
26573      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
26575      $rm conftest*
26576      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26577
26578      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26579  (eval $ac_compile) 2>&5
26580  ac_status=$?
26581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582  (exit $ac_status); } 2>conftest.err; then
26583        soname=conftest
26584        lib=conftest
26585        libobjs=conftest.$ac_objext
26586        deplibs=
26587        wl=$lt_prog_compiler_wl_GCJ
26588	pic_flag=$lt_prog_compiler_pic_GCJ
26589        compiler_flags=-v
26590        linker_flags=-v
26591        verstring=
26592        output_objdir=.
26593        libname=conftest
26594        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26595        allow_undefined_flag_GCJ=
26596        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26597  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26598  ac_status=$?
26599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600  (exit $ac_status); }
26601        then
26602	  archive_cmds_need_lc_GCJ=no
26603        else
26604	  archive_cmds_need_lc_GCJ=yes
26605        fi
26606        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26607      else
26608        cat conftest.err 1>&5
26609      fi
26610      $rm conftest*
26611      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26612echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
26613      ;;
26614    esac
26615  fi
26616  ;;
26617esac
26618
26619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
26621library_names_spec=
26622libname_spec='lib$name'
26623soname_spec=
26624shrext_cmds=".so"
26625postinstall_cmds=
26626postuninstall_cmds=
26627finish_cmds=
26628finish_eval=
26629shlibpath_var=
26630shlibpath_overrides_runpath=unknown
26631version_type=none
26632dynamic_linker="$host_os ld.so"
26633sys_lib_dlsearch_path_spec="/lib /usr/lib"
26634
26635need_lib_prefix=unknown
26636hardcode_into_libs=no
26637
26638# when you set need_version to no, make sure it does not cause -set_version
26639# flags to be left without arguments
26640need_version=unknown
26641
26642case $host_os in
26643aix3*)
26644  version_type=linux
26645  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26646  shlibpath_var=LIBPATH
26647
26648  # AIX 3 has no versioning support, so we append a major version to the name.
26649  soname_spec='${libname}${release}${shared_ext}$major'
26650  ;;
26651
26652aix4* | aix5*)
26653  version_type=linux
26654  need_lib_prefix=no
26655  need_version=no
26656  hardcode_into_libs=yes
26657  if test "$host_cpu" = ia64; then
26658    # AIX 5 supports IA64
26659    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26660    shlibpath_var=LD_LIBRARY_PATH
26661  else
26662    # With GCC up to 2.95.x, collect2 would create an import file
26663    # for dependence libraries.  The import file would start with
26664    # the line `#! .'.  This would cause the generated library to
26665    # depend on `.', always an invalid library.  This was fixed in
26666    # development snapshots of GCC prior to 3.0.
26667    case $host_os in
26668      aix4 | aix4.[01] | aix4.[01].*)
26669      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26670	   echo ' yes '
26671	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26672	:
26673      else
26674	can_build_shared=no
26675      fi
26676      ;;
26677    esac
26678    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26679    # soname into executable. Probably we can add versioning support to
26680    # collect2, so additional links can be useful in future.
26681    if test "$aix_use_runtimelinking" = yes; then
26682      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26683      # instead of lib<name>.a to let people know that these are not
26684      # typical AIX shared libraries.
26685      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26686    else
26687      # We preserve .a as extension for shared libraries through AIX4.2
26688      # and later when we are not doing run time linking.
26689      library_names_spec='${libname}${release}.a $libname.a'
26690      soname_spec='${libname}${release}${shared_ext}$major'
26691    fi
26692    shlibpath_var=LIBPATH
26693  fi
26694  ;;
26695
26696amigaos*)
26697  library_names_spec='$libname.ixlibrary $libname.a'
26698  # Create ${libname}_ixlibrary.a entries in /sys/libs.
26699  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'
26700  ;;
26701
26702beos*)
26703  library_names_spec='${libname}${shared_ext}'
26704  dynamic_linker="$host_os ld.so"
26705  shlibpath_var=LIBRARY_PATH
26706  ;;
26707
26708bsdi[45]*)
26709  version_type=linux
26710  need_version=no
26711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26712  soname_spec='${libname}${release}${shared_ext}$major'
26713  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26714  shlibpath_var=LD_LIBRARY_PATH
26715  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26716  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26717  # the default ld.so.conf also contains /usr/contrib/lib and
26718  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26719  # libtool to hard-code these into programs
26720  ;;
26721
26722cygwin* | mingw* | pw32*)
26723  version_type=windows
26724  shrext_cmds=".dll"
26725  need_version=no
26726  need_lib_prefix=no
26727
26728  case $GCC,$host_os in
26729  yes,cygwin* | yes,mingw* | yes,pw32*)
26730    library_names_spec='$libname.dll.a'
26731    # DLL is installed to $(libdir)/../bin by postinstall_cmds
26732    postinstall_cmds='base_file=`basename \${file}`~
26733      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26734      dldir=$destdir/`dirname \$dlpath`~
26735      test -d \$dldir || mkdir -p \$dldir~
26736      $install_prog $dir/$dlname \$dldir/$dlname~
26737      chmod a+x \$dldir/$dlname'
26738    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26739      dlpath=$dir/\$dldll~
26740       $rm \$dlpath'
26741    shlibpath_overrides_runpath=yes
26742
26743    case $host_os in
26744    cygwin*)
26745      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26746      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26747      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26748      ;;
26749    mingw*)
26750      # MinGW DLLs use traditional 'lib' prefix
26751      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26752      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26753      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26754        # It is most probably a Windows format PATH printed by
26755        # mingw gcc, but we are running on Cygwin. Gcc prints its search
26756        # path with ; separators, and with drive letters. We can handle the
26757        # drive letters (cygwin fileutils understands them), so leave them,
26758        # especially as we might pass files found there to a mingw objdump,
26759        # which wouldn't understand a cygwinified path. Ahh.
26760        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26761      else
26762        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26763      fi
26764      ;;
26765    pw32*)
26766      # pw32 DLLs use 'pw' prefix rather than 'lib'
26767      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26768      ;;
26769    esac
26770    ;;
26771
26772  *)
26773    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26774    ;;
26775  esac
26776  dynamic_linker='Win32 ld.exe'
26777  # FIXME: first we should search . and the directory the executable is in
26778  shlibpath_var=PATH
26779  ;;
26780
26781darwin* | rhapsody*)
26782  dynamic_linker="$host_os dyld"
26783  version_type=darwin
26784  need_lib_prefix=no
26785  need_version=no
26786  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26787  soname_spec='${libname}${release}${major}$shared_ext'
26788  shlibpath_overrides_runpath=yes
26789  shlibpath_var=DYLD_LIBRARY_PATH
26790  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26791
26792  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26793  ;;
26794
26795dgux*)
26796  version_type=linux
26797  need_lib_prefix=no
26798  need_version=no
26799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26800  soname_spec='${libname}${release}${shared_ext}$major'
26801  shlibpath_var=LD_LIBRARY_PATH
26802  ;;
26803
26804freebsd1*)
26805  dynamic_linker=no
26806  ;;
26807
26808freebsd* | dragonfly*)
26809  # DragonFly does not have aout.  When/if they implement a new
26810  # versioning mechanism, adjust this.
26811  if test -x /usr/bin/objformat; then
26812    objformat=`/usr/bin/objformat`
26813  else
26814    case $host_os in
26815    freebsd[123]*) objformat=aout ;;
26816    *) objformat=elf ;;
26817    esac
26818  fi
26819  version_type=freebsd-$objformat
26820  case $version_type in
26821    freebsd-elf*)
26822      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26823      need_version=no
26824      need_lib_prefix=no
26825      ;;
26826    freebsd-*)
26827      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26828      need_version=yes
26829      ;;
26830  esac
26831  shlibpath_var=LD_LIBRARY_PATH
26832  case $host_os in
26833  freebsd2*)
26834    shlibpath_overrides_runpath=yes
26835    ;;
26836  freebsd3.[01]* | freebsdelf3.[01]*)
26837    shlibpath_overrides_runpath=yes
26838    hardcode_into_libs=yes
26839    ;;
26840  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26841  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26842    shlibpath_overrides_runpath=no
26843    hardcode_into_libs=yes
26844    ;;
26845  *) # from 4.6 on, and DragonFly
26846    shlibpath_overrides_runpath=yes
26847    hardcode_into_libs=yes
26848    ;;
26849  esac
26850  ;;
26851
26852gnu*)
26853  version_type=linux
26854  need_lib_prefix=no
26855  need_version=no
26856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26857  soname_spec='${libname}${release}${shared_ext}$major'
26858  shlibpath_var=LD_LIBRARY_PATH
26859  hardcode_into_libs=yes
26860  ;;
26861
26862hpux9* | hpux10* | hpux11*)
26863  # Give a soname corresponding to the major version so that dld.sl refuses to
26864  # link against other versions.
26865  version_type=sunos
26866  need_lib_prefix=no
26867  need_version=no
26868  case $host_cpu in
26869  ia64*)
26870    shrext_cmds='.so'
26871    hardcode_into_libs=yes
26872    dynamic_linker="$host_os dld.so"
26873    shlibpath_var=LD_LIBRARY_PATH
26874    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26876    soname_spec='${libname}${release}${shared_ext}$major'
26877    if test "X$HPUX_IA64_MODE" = X32; then
26878      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26879    else
26880      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26881    fi
26882    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26883    ;;
26884   hppa*64*)
26885     shrext_cmds='.sl'
26886     hardcode_into_libs=yes
26887     dynamic_linker="$host_os dld.sl"
26888     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26889     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26891     soname_spec='${libname}${release}${shared_ext}$major'
26892     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26893     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26894     ;;
26895   *)
26896    shrext_cmds='.sl'
26897    dynamic_linker="$host_os dld.sl"
26898    shlibpath_var=SHLIB_PATH
26899    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26900    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26901    soname_spec='${libname}${release}${shared_ext}$major'
26902    ;;
26903  esac
26904  # HP-UX runs *really* slowly unless shared libraries are mode 555.
26905  postinstall_cmds='chmod 555 $lib'
26906  ;;
26907
26908interix[3-9]*)
26909  version_type=linux
26910  need_lib_prefix=no
26911  need_version=no
26912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26913  soname_spec='${libname}${release}${shared_ext}$major'
26914  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26915  shlibpath_var=LD_LIBRARY_PATH
26916  shlibpath_overrides_runpath=no
26917  hardcode_into_libs=yes
26918  ;;
26919
26920irix5* | irix6* | nonstopux*)
26921  case $host_os in
26922    nonstopux*) version_type=nonstopux ;;
26923    *)
26924	if test "$lt_cv_prog_gnu_ld" = yes; then
26925		version_type=linux
26926	else
26927		version_type=irix
26928	fi ;;
26929  esac
26930  need_lib_prefix=no
26931  need_version=no
26932  soname_spec='${libname}${release}${shared_ext}$major'
26933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26934  case $host_os in
26935  irix5* | nonstopux*)
26936    libsuff= shlibsuff=
26937    ;;
26938  *)
26939    case $LD in # libtool.m4 will add one of these switches to LD
26940    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26941      libsuff= shlibsuff= libmagic=32-bit;;
26942    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26943      libsuff=32 shlibsuff=N32 libmagic=N32;;
26944    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26945      libsuff=64 shlibsuff=64 libmagic=64-bit;;
26946    *) libsuff= shlibsuff= libmagic=never-match;;
26947    esac
26948    ;;
26949  esac
26950  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26951  shlibpath_overrides_runpath=no
26952  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26953  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26954  hardcode_into_libs=yes
26955  ;;
26956
26957# No shared lib support for Linux oldld, aout, or coff.
26958linux*oldld* | linux*aout* | linux*coff*)
26959  dynamic_linker=no
26960  ;;
26961
26962# This must be Linux ELF.
26963linux* | k*bsd*-gnu)
26964  version_type=linux
26965  need_lib_prefix=no
26966  need_version=no
26967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26968  soname_spec='${libname}${release}${shared_ext}$major'
26969  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26970  shlibpath_var=LD_LIBRARY_PATH
26971  shlibpath_overrides_runpath=no
26972  # This implies no fast_install, which is unacceptable.
26973  # Some rework will be needed to allow for fast_install
26974  # before this can be enabled.
26975  hardcode_into_libs=yes
26976
26977  # Append ld.so.conf contents to the search path
26978  if test -f /etc/ld.so.conf; then
26979    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' ' '`
26980    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26981  fi
26982
26983  # We used to test for /lib/ld.so.1 and disable shared libraries on
26984  # powerpc, because MkLinux only supported shared libraries with the
26985  # GNU dynamic linker.  Since this was broken with cross compilers,
26986  # most powerpc-linux boxes support dynamic linking these days and
26987  # people can always --disable-shared, the test was removed, and we
26988  # assume the GNU/Linux dynamic linker is in use.
26989  dynamic_linker='GNU/Linux ld.so'
26990  ;;
26991
26992netbsd*)
26993  version_type=sunos
26994  need_lib_prefix=no
26995  need_version=no
26996  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26997    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26998    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26999    dynamic_linker='NetBSD (a.out) ld.so'
27000  else
27001    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27002    soname_spec='${libname}${release}${shared_ext}$major'
27003    dynamic_linker='NetBSD ld.elf_so'
27004  fi
27005  shlibpath_var=LD_LIBRARY_PATH
27006  shlibpath_overrides_runpath=yes
27007  hardcode_into_libs=yes
27008  ;;
27009
27010newsos6)
27011  version_type=linux
27012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27013  shlibpath_var=LD_LIBRARY_PATH
27014  shlibpath_overrides_runpath=yes
27015  ;;
27016
27017nto-qnx*)
27018  version_type=linux
27019  need_lib_prefix=no
27020  need_version=no
27021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27022  soname_spec='${libname}${release}${shared_ext}$major'
27023  shlibpath_var=LD_LIBRARY_PATH
27024  shlibpath_overrides_runpath=yes
27025  ;;
27026
27027openbsd*)
27028  version_type=sunos
27029  sys_lib_dlsearch_path_spec="/usr/lib"
27030  need_lib_prefix=no
27031  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27032  case $host_os in
27033    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
27034    *)                         need_version=no  ;;
27035  esac
27036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27037  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27038  shlibpath_var=LD_LIBRARY_PATH
27039  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27040    case $host_os in
27041      openbsd2.[89] | openbsd2.[89].*)
27042	shlibpath_overrides_runpath=no
27043	;;
27044      *)
27045	shlibpath_overrides_runpath=yes
27046	;;
27047      esac
27048  else
27049    shlibpath_overrides_runpath=yes
27050  fi
27051  ;;
27052
27053os2*)
27054  libname_spec='$name'
27055  shrext_cmds=".dll"
27056  need_lib_prefix=no
27057  library_names_spec='$libname${shared_ext} $libname.a'
27058  dynamic_linker='OS/2 ld.exe'
27059  shlibpath_var=LIBPATH
27060  ;;
27061
27062osf3* | osf4* | osf5*)
27063  version_type=osf
27064  need_lib_prefix=no
27065  need_version=no
27066  soname_spec='${libname}${release}${shared_ext}$major'
27067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27068  shlibpath_var=LD_LIBRARY_PATH
27069  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27070  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27071  ;;
27072
27073rdos*)
27074  dynamic_linker=no
27075  ;;
27076
27077solaris*)
27078  version_type=linux
27079  need_lib_prefix=no
27080  need_version=no
27081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27082  soname_spec='${libname}${release}${shared_ext}$major'
27083  shlibpath_var=LD_LIBRARY_PATH
27084  shlibpath_overrides_runpath=yes
27085  hardcode_into_libs=yes
27086  # ldd complains unless libraries are executable
27087  postinstall_cmds='chmod +x $lib'
27088  ;;
27089
27090sunos4*)
27091  version_type=sunos
27092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27093  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27094  shlibpath_var=LD_LIBRARY_PATH
27095  shlibpath_overrides_runpath=yes
27096  if test "$with_gnu_ld" = yes; then
27097    need_lib_prefix=no
27098  fi
27099  need_version=yes
27100  ;;
27101
27102sysv4 | sysv4.3*)
27103  version_type=linux
27104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27105  soname_spec='${libname}${release}${shared_ext}$major'
27106  shlibpath_var=LD_LIBRARY_PATH
27107  case $host_vendor in
27108    sni)
27109      shlibpath_overrides_runpath=no
27110      need_lib_prefix=no
27111      export_dynamic_flag_spec='${wl}-Blargedynsym'
27112      runpath_var=LD_RUN_PATH
27113      ;;
27114    siemens)
27115      need_lib_prefix=no
27116      ;;
27117    motorola)
27118      need_lib_prefix=no
27119      need_version=no
27120      shlibpath_overrides_runpath=no
27121      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27122      ;;
27123  esac
27124  ;;
27125
27126sysv4*MP*)
27127  if test -d /usr/nec ;then
27128    version_type=linux
27129    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27130    soname_spec='$libname${shared_ext}.$major'
27131    shlibpath_var=LD_LIBRARY_PATH
27132  fi
27133  ;;
27134
27135sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27136  version_type=freebsd-elf
27137  need_lib_prefix=no
27138  need_version=no
27139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27140  soname_spec='${libname}${release}${shared_ext}$major'
27141  shlibpath_var=LD_LIBRARY_PATH
27142  hardcode_into_libs=yes
27143  if test "$with_gnu_ld" = yes; then
27144    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
27145    shlibpath_overrides_runpath=no
27146  else
27147    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
27148    shlibpath_overrides_runpath=yes
27149    case $host_os in
27150      sco3.2v5*)
27151        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
27152	;;
27153    esac
27154  fi
27155  sys_lib_dlsearch_path_spec='/usr/lib'
27156  ;;
27157
27158uts4*)
27159  version_type=linux
27160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27161  soname_spec='${libname}${release}${shared_ext}$major'
27162  shlibpath_var=LD_LIBRARY_PATH
27163  ;;
27164
27165*)
27166  dynamic_linker=no
27167  ;;
27168esac
27169{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27170echo "${ECHO_T}$dynamic_linker" >&6; }
27171test "$dynamic_linker" = no && can_build_shared=no
27172
27173variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27174if test "$GCC" = yes; then
27175  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27176fi
27177
27178{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27179echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
27180hardcode_action_GCJ=
27181if test -n "$hardcode_libdir_flag_spec_GCJ" || \
27182   test -n "$runpath_var_GCJ" || \
27183   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
27184
27185  # We can hardcode non-existant directories.
27186  if test "$hardcode_direct_GCJ" != no &&
27187     # If the only mechanism to avoid hardcoding is shlibpath_var, we
27188     # have to relink, otherwise we might link with an installed library
27189     # when we should be linking with a yet-to-be-installed one
27190     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
27191     test "$hardcode_minus_L_GCJ" != no; then
27192    # Linking always hardcodes the temporary library directory.
27193    hardcode_action_GCJ=relink
27194  else
27195    # We can link without hardcoding, and we can hardcode nonexisting dirs.
27196    hardcode_action_GCJ=immediate
27197  fi
27198else
27199  # We cannot hardcode anything, or else we can only hardcode existing
27200  # directories.
27201  hardcode_action_GCJ=unsupported
27202fi
27203{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
27204echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
27205
27206if test "$hardcode_action_GCJ" = relink; then
27207  # Fast installation is not supported
27208  enable_fast_install=no
27209elif test "$shlibpath_overrides_runpath" = yes ||
27210     test "$enable_shared" = no; then
27211  # Fast installation is not necessary
27212  enable_fast_install=needless
27213fi
27214
27215
27216# The else clause should only fire when bootstrapping the
27217# libtool distribution, otherwise you forgot to ship ltmain.sh
27218# with your package, and you will get complaints that there are
27219# no rules to generate ltmain.sh.
27220if test -f "$ltmain"; then
27221  # See if we are running on zsh, and set the options which allow our commands through
27222  # without removal of \ escapes.
27223  if test -n "${ZSH_VERSION+set}" ; then
27224    setopt NO_GLOB_SUBST
27225  fi
27226  # Now quote all the things that may contain metacharacters while being
27227  # careful not to overquote the AC_SUBSTed values.  We take copies of the
27228  # variables and quote the copies for generation of the libtool script.
27229  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27230    SED SHELL STRIP \
27231    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27232    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27233    deplibs_check_method reload_flag reload_cmds need_locks \
27234    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27235    lt_cv_sys_global_symbol_to_c_name_address \
27236    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27237    old_postinstall_cmds old_postuninstall_cmds \
27238    compiler_GCJ \
27239    CC_GCJ \
27240    LD_GCJ \
27241    lt_prog_compiler_wl_GCJ \
27242    lt_prog_compiler_pic_GCJ \
27243    lt_prog_compiler_static_GCJ \
27244    lt_prog_compiler_no_builtin_flag_GCJ \
27245    export_dynamic_flag_spec_GCJ \
27246    thread_safe_flag_spec_GCJ \
27247    whole_archive_flag_spec_GCJ \
27248    enable_shared_with_static_runtimes_GCJ \
27249    old_archive_cmds_GCJ \
27250    old_archive_from_new_cmds_GCJ \
27251    predep_objects_GCJ \
27252    postdep_objects_GCJ \
27253    predeps_GCJ \
27254    postdeps_GCJ \
27255    compiler_lib_search_path_GCJ \
27256    archive_cmds_GCJ \
27257    archive_expsym_cmds_GCJ \
27258    postinstall_cmds_GCJ \
27259    postuninstall_cmds_GCJ \
27260    old_archive_from_expsyms_cmds_GCJ \
27261    allow_undefined_flag_GCJ \
27262    no_undefined_flag_GCJ \
27263    export_symbols_cmds_GCJ \
27264    hardcode_libdir_flag_spec_GCJ \
27265    hardcode_libdir_flag_spec_ld_GCJ \
27266    hardcode_libdir_separator_GCJ \
27267    hardcode_automatic_GCJ \
27268    module_cmds_GCJ \
27269    module_expsym_cmds_GCJ \
27270    lt_cv_prog_compiler_c_o_GCJ \
27271    fix_srcfile_path_GCJ \
27272    exclude_expsyms_GCJ \
27273    include_expsyms_GCJ; do
27274
27275    case $var in
27276    old_archive_cmds_GCJ | \
27277    old_archive_from_new_cmds_GCJ | \
27278    archive_cmds_GCJ | \
27279    archive_expsym_cmds_GCJ | \
27280    module_cmds_GCJ | \
27281    module_expsym_cmds_GCJ | \
27282    old_archive_from_expsyms_cmds_GCJ | \
27283    export_symbols_cmds_GCJ | \
27284    extract_expsyms_cmds | reload_cmds | finish_cmds | \
27285    postinstall_cmds | postuninstall_cmds | \
27286    old_postinstall_cmds | old_postuninstall_cmds | \
27287    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27288      # Double-quote double-evaled strings.
27289      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27290      ;;
27291    *)
27292      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27293      ;;
27294    esac
27295  done
27296
27297  case $lt_echo in
27298  *'\$0 --fallback-echo"')
27299    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27300    ;;
27301  esac
27302
27303cfgfile="$ofile"
27304
27305  cat <<__EOF__ >> "$cfgfile"
27306# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27307
27308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27309
27310# Shell to use when invoking shell scripts.
27311SHELL=$lt_SHELL
27312
27313# Whether or not to build shared libraries.
27314build_libtool_libs=$enable_shared
27315
27316# Whether or not to build static libraries.
27317build_old_libs=$enable_static
27318
27319# Whether or not to add -lc for building shared libraries.
27320build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27321
27322# Whether or not to disallow shared libs when runtime libs are static
27323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27324
27325# Whether or not to optimize for fast installation.
27326fast_install=$enable_fast_install
27327
27328# The host system.
27329host_alias=$host_alias
27330host=$host
27331host_os=$host_os
27332
27333# The build system.
27334build_alias=$build_alias
27335build=$build
27336build_os=$build_os
27337
27338# An echo program that does not interpret backslashes.
27339echo=$lt_echo
27340
27341# The archiver.
27342AR=$lt_AR
27343AR_FLAGS=$lt_AR_FLAGS
27344
27345# A C compiler.
27346LTCC=$lt_LTCC
27347
27348# LTCC compiler flags.
27349LTCFLAGS=$lt_LTCFLAGS
27350
27351# A language-specific compiler.
27352CC=$lt_compiler_GCJ
27353
27354# Is the compiler the GNU C compiler?
27355with_gcc=$GCC_GCJ
27356
27357# An ERE matcher.
27358EGREP=$lt_EGREP
27359
27360# The linker used to build libraries.
27361LD=$lt_LD_GCJ
27362
27363# Whether we need hard or soft links.
27364LN_S=$lt_LN_S
27365
27366# A BSD-compatible nm program.
27367NM=$lt_NM
27368
27369# A symbol stripping program
27370STRIP=$lt_STRIP
27371
27372# Used to examine libraries when file_magic_cmd begins "file"
27373MAGIC_CMD=$MAGIC_CMD
27374
27375# Used on cygwin: DLL creation program.
27376DLLTOOL="$DLLTOOL"
27377
27378# Used on cygwin: object dumper.
27379OBJDUMP="$OBJDUMP"
27380
27381# Used on cygwin: assembler.
27382AS="$AS"
27383
27384# The name of the directory that contains temporary libtool files.
27385objdir=$objdir
27386
27387# How to create reloadable object files.
27388reload_flag=$lt_reload_flag
27389reload_cmds=$lt_reload_cmds
27390
27391# How to pass a linker flag through the compiler.
27392wl=$lt_lt_prog_compiler_wl_GCJ
27393
27394# Object file suffix (normally "o").
27395objext="$ac_objext"
27396
27397# Old archive suffix (normally "a").
27398libext="$libext"
27399
27400# Shared library suffix (normally ".so").
27401shrext_cmds='$shrext_cmds'
27402
27403# Executable file suffix (normally "").
27404exeext="$exeext"
27405
27406# Additional compiler flags for building library objects.
27407pic_flag=$lt_lt_prog_compiler_pic_GCJ
27408pic_mode=$pic_mode
27409
27410# What is the maximum length of a command?
27411max_cmd_len=$lt_cv_sys_max_cmd_len
27412
27413# Does compiler simultaneously support -c and -o options?
27414compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27415
27416# Must we lock files when doing compilation?
27417need_locks=$lt_need_locks
27418
27419# Do we need the lib prefix for modules?
27420need_lib_prefix=$need_lib_prefix
27421
27422# Do we need a version for libraries?
27423need_version=$need_version
27424
27425# Whether dlopen is supported.
27426dlopen_support=$enable_dlopen
27427
27428# Whether dlopen of programs is supported.
27429dlopen_self=$enable_dlopen_self
27430
27431# Whether dlopen of statically linked programs is supported.
27432dlopen_self_static=$enable_dlopen_self_static
27433
27434# Compiler flag to prevent dynamic linking.
27435link_static_flag=$lt_lt_prog_compiler_static_GCJ
27436
27437# Compiler flag to turn off builtin functions.
27438no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27439
27440# Compiler flag to allow reflexive dlopens.
27441export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27442
27443# Compiler flag to generate shared objects directly from archives.
27444whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27445
27446# Compiler flag to generate thread-safe objects.
27447thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
27448
27449# Library versioning type.
27450version_type=$version_type
27451
27452# Format of library name prefix.
27453libname_spec=$lt_libname_spec
27454
27455# List of archive names.  First name is the real one, the rest are links.
27456# The last name is the one that the linker finds with -lNAME.
27457library_names_spec=$lt_library_names_spec
27458
27459# The coded name of the library, if different from the real name.
27460soname_spec=$lt_soname_spec
27461
27462# Commands used to build and install an old-style archive.
27463RANLIB=$lt_RANLIB
27464old_archive_cmds=$lt_old_archive_cmds_GCJ
27465old_postinstall_cmds=$lt_old_postinstall_cmds
27466old_postuninstall_cmds=$lt_old_postuninstall_cmds
27467
27468# Create an old-style archive from a shared archive.
27469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27470
27471# Create a temporary old-style archive to link instead of a shared archive.
27472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27473
27474# Commands used to build and install a shared archive.
27475archive_cmds=$lt_archive_cmds_GCJ
27476archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27477postinstall_cmds=$lt_postinstall_cmds
27478postuninstall_cmds=$lt_postuninstall_cmds
27479
27480# Commands used to build a loadable module (assumed same as above if empty)
27481module_cmds=$lt_module_cmds_GCJ
27482module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27483
27484# Commands to strip libraries.
27485old_striplib=$lt_old_striplib
27486striplib=$lt_striplib
27487
27488# Dependencies to place before the objects being linked to create a
27489# shared library.
27490predep_objects=$lt_predep_objects_GCJ
27491
27492# Dependencies to place after the objects being linked to create a
27493# shared library.
27494postdep_objects=$lt_postdep_objects_GCJ
27495
27496# Dependencies to place before the objects being linked to create a
27497# shared library.
27498predeps=$lt_predeps_GCJ
27499
27500# Dependencies to place after the objects being linked to create a
27501# shared library.
27502postdeps=$lt_postdeps_GCJ
27503
27504# The library search path used internally by the compiler when linking
27505# a shared library.
27506compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27507
27508# Method to check whether dependent libraries are shared objects.
27509deplibs_check_method=$lt_deplibs_check_method
27510
27511# Command to use when deplibs_check_method == file_magic.
27512file_magic_cmd=$lt_file_magic_cmd
27513
27514# Flag that allows shared libraries with undefined symbols to be built.
27515allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27516
27517# Flag that forces no undefined symbols.
27518no_undefined_flag=$lt_no_undefined_flag_GCJ
27519
27520# Commands used to finish a libtool library installation in a directory.
27521finish_cmds=$lt_finish_cmds
27522
27523# Same as above, but a single script fragment to be evaled but not shown.
27524finish_eval=$lt_finish_eval
27525
27526# Take the output of nm and produce a listing of raw symbols and C names.
27527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27528
27529# Transform the output of nm in a proper C declaration
27530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27531
27532# Transform the output of nm in a C name address pair
27533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27534
27535# This is the shared library runtime path variable.
27536runpath_var=$runpath_var
27537
27538# This is the shared library path variable.
27539shlibpath_var=$shlibpath_var
27540
27541# Is shlibpath searched before the hard-coded library search path?
27542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27543
27544# How to hardcode a shared library path into an executable.
27545hardcode_action=$hardcode_action_GCJ
27546
27547# Whether we should hardcode library paths into libraries.
27548hardcode_into_libs=$hardcode_into_libs
27549
27550# Flag to hardcode \$libdir into a binary during linking.
27551# This must work even if \$libdir does not exist.
27552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27553
27554# If ld is used when linking, flag to hardcode \$libdir into
27555# a binary during linking. This must work even if \$libdir does
27556# not exist.
27557hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27558
27559# Whether we need a single -rpath flag with a separated argument.
27560hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27561
27562# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27563# resulting binary.
27564hardcode_direct=$hardcode_direct_GCJ
27565
27566# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27567# resulting binary.
27568hardcode_minus_L=$hardcode_minus_L_GCJ
27569
27570# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27571# the resulting binary.
27572hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27573
27574# Set to yes if building a shared library automatically hardcodes DIR into the library
27575# and all subsequent libraries and executables linked against it.
27576hardcode_automatic=$hardcode_automatic_GCJ
27577
27578# Variables whose values should be saved in libtool wrapper scripts and
27579# restored at relink time.
27580variables_saved_for_relink="$variables_saved_for_relink"
27581
27582# Whether libtool must link a program against all its dependency libraries.
27583link_all_deplibs=$link_all_deplibs_GCJ
27584
27585# Compile-time system search path for libraries
27586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27587
27588# Run-time system search path for libraries
27589sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27590
27591# Fix the shell variable \$srcfile for the compiler.
27592fix_srcfile_path=$lt_fix_srcfile_path
27593
27594# Set to yes if exported symbols are required.
27595always_export_symbols=$always_export_symbols_GCJ
27596
27597# The commands to list exported symbols.
27598export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27599
27600# The commands to extract the exported symbol list from a shared archive.
27601extract_expsyms_cmds=$lt_extract_expsyms_cmds
27602
27603# Symbols that should not be listed in the preloaded symbols.
27604exclude_expsyms=$lt_exclude_expsyms_GCJ
27605
27606# Symbols that must always be exported.
27607include_expsyms=$lt_include_expsyms_GCJ
27608
27609# ### END LIBTOOL TAG CONFIG: $tagname
27610
27611__EOF__
27612
27613
27614else
27615  # If there is no Makefile yet, we rely on a make rule to execute
27616  # `config.status --recheck' to rerun these tests and create the
27617  # libtool script then.
27618  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27619  if test -f "$ltmain_in"; then
27620    test -f Makefile && make "$ltmain"
27621  fi
27622fi
27623
27624
27625ac_ext=c
27626ac_cpp='$CPP $CPPFLAGS'
27627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27629ac_compiler_gnu=$ac_cv_c_compiler_gnu
27630
27631CC="$lt_save_CC"
27632
27633	else
27634	  tagname=""
27635	fi
27636	;;
27637
27638      RC)
27639
27640
27641# Source file extension for RC test sources.
27642ac_ext=rc
27643
27644# Object file extension for compiled RC test sources.
27645objext=o
27646objext_RC=$objext
27647
27648# Code to be used in simple compile tests
27649lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
27650
27651# Code to be used in simple link tests
27652lt_simple_link_test_code="$lt_simple_compile_test_code"
27653
27654# ltmain only uses $CC for tagged configurations so make sure $CC is set.
27655
27656# If no C compiler was specified, use CC.
27657LTCC=${LTCC-"$CC"}
27658
27659# If no C compiler flags were specified, use CFLAGS.
27660LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27661
27662# Allow CC to be a program name with arguments.
27663compiler=$CC
27664
27665
27666# save warnings/boilerplate of simple test code
27667ac_outfile=conftest.$ac_objext
27668echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27669eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27670_lt_compiler_boilerplate=`cat conftest.err`
27671$rm conftest*
27672
27673ac_outfile=conftest.$ac_objext
27674echo "$lt_simple_link_test_code" >conftest.$ac_ext
27675eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27676_lt_linker_boilerplate=`cat conftest.err`
27677$rm conftest*
27678
27679
27680# Allow CC to be a program name with arguments.
27681lt_save_CC="$CC"
27682CC=${RC-"windres"}
27683compiler=$CC
27684compiler_RC=$CC
27685for cc_temp in $compiler""; do
27686  case $cc_temp in
27687    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27688    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27689    \-*) ;;
27690    *) break;;
27691  esac
27692done
27693cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27694
27695lt_cv_prog_compiler_c_o_RC=yes
27696
27697# The else clause should only fire when bootstrapping the
27698# libtool distribution, otherwise you forgot to ship ltmain.sh
27699# with your package, and you will get complaints that there are
27700# no rules to generate ltmain.sh.
27701if test -f "$ltmain"; then
27702  # See if we are running on zsh, and set the options which allow our commands through
27703  # without removal of \ escapes.
27704  if test -n "${ZSH_VERSION+set}" ; then
27705    setopt NO_GLOB_SUBST
27706  fi
27707  # Now quote all the things that may contain metacharacters while being
27708  # careful not to overquote the AC_SUBSTed values.  We take copies of the
27709  # variables and quote the copies for generation of the libtool script.
27710  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27711    SED SHELL STRIP \
27712    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27713    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27714    deplibs_check_method reload_flag reload_cmds need_locks \
27715    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27716    lt_cv_sys_global_symbol_to_c_name_address \
27717    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27718    old_postinstall_cmds old_postuninstall_cmds \
27719    compiler_RC \
27720    CC_RC \
27721    LD_RC \
27722    lt_prog_compiler_wl_RC \
27723    lt_prog_compiler_pic_RC \
27724    lt_prog_compiler_static_RC \
27725    lt_prog_compiler_no_builtin_flag_RC \
27726    export_dynamic_flag_spec_RC \
27727    thread_safe_flag_spec_RC \
27728    whole_archive_flag_spec_RC \
27729    enable_shared_with_static_runtimes_RC \
27730    old_archive_cmds_RC \
27731    old_archive_from_new_cmds_RC \
27732    predep_objects_RC \
27733    postdep_objects_RC \
27734    predeps_RC \
27735    postdeps_RC \
27736    compiler_lib_search_path_RC \
27737    archive_cmds_RC \
27738    archive_expsym_cmds_RC \
27739    postinstall_cmds_RC \
27740    postuninstall_cmds_RC \
27741    old_archive_from_expsyms_cmds_RC \
27742    allow_undefined_flag_RC \
27743    no_undefined_flag_RC \
27744    export_symbols_cmds_RC \
27745    hardcode_libdir_flag_spec_RC \
27746    hardcode_libdir_flag_spec_ld_RC \
27747    hardcode_libdir_separator_RC \
27748    hardcode_automatic_RC \
27749    module_cmds_RC \
27750    module_expsym_cmds_RC \
27751    lt_cv_prog_compiler_c_o_RC \
27752    fix_srcfile_path_RC \
27753    exclude_expsyms_RC \
27754    include_expsyms_RC; do
27755
27756    case $var in
27757    old_archive_cmds_RC | \
27758    old_archive_from_new_cmds_RC | \
27759    archive_cmds_RC | \
27760    archive_expsym_cmds_RC | \
27761    module_cmds_RC | \
27762    module_expsym_cmds_RC | \
27763    old_archive_from_expsyms_cmds_RC | \
27764    export_symbols_cmds_RC | \
27765    extract_expsyms_cmds | reload_cmds | finish_cmds | \
27766    postinstall_cmds | postuninstall_cmds | \
27767    old_postinstall_cmds | old_postuninstall_cmds | \
27768    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27769      # Double-quote double-evaled strings.
27770      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27771      ;;
27772    *)
27773      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27774      ;;
27775    esac
27776  done
27777
27778  case $lt_echo in
27779  *'\$0 --fallback-echo"')
27780    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27781    ;;
27782  esac
27783
27784cfgfile="$ofile"
27785
27786  cat <<__EOF__ >> "$cfgfile"
27787# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27788
27789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27790
27791# Shell to use when invoking shell scripts.
27792SHELL=$lt_SHELL
27793
27794# Whether or not to build shared libraries.
27795build_libtool_libs=$enable_shared
27796
27797# Whether or not to build static libraries.
27798build_old_libs=$enable_static
27799
27800# Whether or not to add -lc for building shared libraries.
27801build_libtool_need_lc=$archive_cmds_need_lc_RC
27802
27803# Whether or not to disallow shared libs when runtime libs are static
27804allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27805
27806# Whether or not to optimize for fast installation.
27807fast_install=$enable_fast_install
27808
27809# The host system.
27810host_alias=$host_alias
27811host=$host
27812host_os=$host_os
27813
27814# The build system.
27815build_alias=$build_alias
27816build=$build
27817build_os=$build_os
27818
27819# An echo program that does not interpret backslashes.
27820echo=$lt_echo
27821
27822# The archiver.
27823AR=$lt_AR
27824AR_FLAGS=$lt_AR_FLAGS
27825
27826# A C compiler.
27827LTCC=$lt_LTCC
27828
27829# LTCC compiler flags.
27830LTCFLAGS=$lt_LTCFLAGS
27831
27832# A language-specific compiler.
27833CC=$lt_compiler_RC
27834
27835# Is the compiler the GNU C compiler?
27836with_gcc=$GCC_RC
27837
27838# An ERE matcher.
27839EGREP=$lt_EGREP
27840
27841# The linker used to build libraries.
27842LD=$lt_LD_RC
27843
27844# Whether we need hard or soft links.
27845LN_S=$lt_LN_S
27846
27847# A BSD-compatible nm program.
27848NM=$lt_NM
27849
27850# A symbol stripping program
27851STRIP=$lt_STRIP
27852
27853# Used to examine libraries when file_magic_cmd begins "file"
27854MAGIC_CMD=$MAGIC_CMD
27855
27856# Used on cygwin: DLL creation program.
27857DLLTOOL="$DLLTOOL"
27858
27859# Used on cygwin: object dumper.
27860OBJDUMP="$OBJDUMP"
27861
27862# Used on cygwin: assembler.
27863AS="$AS"
27864
27865# The name of the directory that contains temporary libtool files.
27866objdir=$objdir
27867
27868# How to create reloadable object files.
27869reload_flag=$lt_reload_flag
27870reload_cmds=$lt_reload_cmds
27871
27872# How to pass a linker flag through the compiler.
27873wl=$lt_lt_prog_compiler_wl_RC
27874
27875# Object file suffix (normally "o").
27876objext="$ac_objext"
27877
27878# Old archive suffix (normally "a").
27879libext="$libext"
27880
27881# Shared library suffix (normally ".so").
27882shrext_cmds='$shrext_cmds'
27883
27884# Executable file suffix (normally "").
27885exeext="$exeext"
27886
27887# Additional compiler flags for building library objects.
27888pic_flag=$lt_lt_prog_compiler_pic_RC
27889pic_mode=$pic_mode
27890
27891# What is the maximum length of a command?
27892max_cmd_len=$lt_cv_sys_max_cmd_len
27893
27894# Does compiler simultaneously support -c and -o options?
27895compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27896
27897# Must we lock files when doing compilation?
27898need_locks=$lt_need_locks
27899
27900# Do we need the lib prefix for modules?
27901need_lib_prefix=$need_lib_prefix
27902
27903# Do we need a version for libraries?
27904need_version=$need_version
27905
27906# Whether dlopen is supported.
27907dlopen_support=$enable_dlopen
27908
27909# Whether dlopen of programs is supported.
27910dlopen_self=$enable_dlopen_self
27911
27912# Whether dlopen of statically linked programs is supported.
27913dlopen_self_static=$enable_dlopen_self_static
27914
27915# Compiler flag to prevent dynamic linking.
27916link_static_flag=$lt_lt_prog_compiler_static_RC
27917
27918# Compiler flag to turn off builtin functions.
27919no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27920
27921# Compiler flag to allow reflexive dlopens.
27922export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27923
27924# Compiler flag to generate shared objects directly from archives.
27925whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27926
27927# Compiler flag to generate thread-safe objects.
27928thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27929
27930# Library versioning type.
27931version_type=$version_type
27932
27933# Format of library name prefix.
27934libname_spec=$lt_libname_spec
27935
27936# List of archive names.  First name is the real one, the rest are links.
27937# The last name is the one that the linker finds with -lNAME.
27938library_names_spec=$lt_library_names_spec
27939
27940# The coded name of the library, if different from the real name.
27941soname_spec=$lt_soname_spec
27942
27943# Commands used to build and install an old-style archive.
27944RANLIB=$lt_RANLIB
27945old_archive_cmds=$lt_old_archive_cmds_RC
27946old_postinstall_cmds=$lt_old_postinstall_cmds
27947old_postuninstall_cmds=$lt_old_postuninstall_cmds
27948
27949# Create an old-style archive from a shared archive.
27950old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27951
27952# Create a temporary old-style archive to link instead of a shared archive.
27953old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27954
27955# Commands used to build and install a shared archive.
27956archive_cmds=$lt_archive_cmds_RC
27957archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27958postinstall_cmds=$lt_postinstall_cmds
27959postuninstall_cmds=$lt_postuninstall_cmds
27960
27961# Commands used to build a loadable module (assumed same as above if empty)
27962module_cmds=$lt_module_cmds_RC
27963module_expsym_cmds=$lt_module_expsym_cmds_RC
27964
27965# Commands to strip libraries.
27966old_striplib=$lt_old_striplib
27967striplib=$lt_striplib
27968
27969# Dependencies to place before the objects being linked to create a
27970# shared library.
27971predep_objects=$lt_predep_objects_RC
27972
27973# Dependencies to place after the objects being linked to create a
27974# shared library.
27975postdep_objects=$lt_postdep_objects_RC
27976
27977# Dependencies to place before the objects being linked to create a
27978# shared library.
27979predeps=$lt_predeps_RC
27980
27981# Dependencies to place after the objects being linked to create a
27982# shared library.
27983postdeps=$lt_postdeps_RC
27984
27985# The library search path used internally by the compiler when linking
27986# a shared library.
27987compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27988
27989# Method to check whether dependent libraries are shared objects.
27990deplibs_check_method=$lt_deplibs_check_method
27991
27992# Command to use when deplibs_check_method == file_magic.
27993file_magic_cmd=$lt_file_magic_cmd
27994
27995# Flag that allows shared libraries with undefined symbols to be built.
27996allow_undefined_flag=$lt_allow_undefined_flag_RC
27997
27998# Flag that forces no undefined symbols.
27999no_undefined_flag=$lt_no_undefined_flag_RC
28000
28001# Commands used to finish a libtool library installation in a directory.
28002finish_cmds=$lt_finish_cmds
28003
28004# Same as above, but a single script fragment to be evaled but not shown.
28005finish_eval=$lt_finish_eval
28006
28007# Take the output of nm and produce a listing of raw symbols and C names.
28008global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28009
28010# Transform the output of nm in a proper C declaration
28011global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28012
28013# Transform the output of nm in a C name address pair
28014global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28015
28016# This is the shared library runtime path variable.
28017runpath_var=$runpath_var
28018
28019# This is the shared library path variable.
28020shlibpath_var=$shlibpath_var
28021
28022# Is shlibpath searched before the hard-coded library search path?
28023shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28024
28025# How to hardcode a shared library path into an executable.
28026hardcode_action=$hardcode_action_RC
28027
28028# Whether we should hardcode library paths into libraries.
28029hardcode_into_libs=$hardcode_into_libs
28030
28031# Flag to hardcode \$libdir into a binary during linking.
28032# This must work even if \$libdir does not exist.
28033hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28034
28035# If ld is used when linking, flag to hardcode \$libdir into
28036# a binary during linking. This must work even if \$libdir does
28037# not exist.
28038hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
28039
28040# Whether we need a single -rpath flag with a separated argument.
28041hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28042
28043# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28044# resulting binary.
28045hardcode_direct=$hardcode_direct_RC
28046
28047# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28048# resulting binary.
28049hardcode_minus_L=$hardcode_minus_L_RC
28050
28051# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28052# the resulting binary.
28053hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28054
28055# Set to yes if building a shared library automatically hardcodes DIR into the library
28056# and all subsequent libraries and executables linked against it.
28057hardcode_automatic=$hardcode_automatic_RC
28058
28059# Variables whose values should be saved in libtool wrapper scripts and
28060# restored at relink time.
28061variables_saved_for_relink="$variables_saved_for_relink"
28062
28063# Whether libtool must link a program against all its dependency libraries.
28064link_all_deplibs=$link_all_deplibs_RC
28065
28066# Compile-time system search path for libraries
28067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28068
28069# Run-time system search path for libraries
28070sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28071
28072# Fix the shell variable \$srcfile for the compiler.
28073fix_srcfile_path=$lt_fix_srcfile_path
28074
28075# Set to yes if exported symbols are required.
28076always_export_symbols=$always_export_symbols_RC
28077
28078# The commands to list exported symbols.
28079export_symbols_cmds=$lt_export_symbols_cmds_RC
28080
28081# The commands to extract the exported symbol list from a shared archive.
28082extract_expsyms_cmds=$lt_extract_expsyms_cmds
28083
28084# Symbols that should not be listed in the preloaded symbols.
28085exclude_expsyms=$lt_exclude_expsyms_RC
28086
28087# Symbols that must always be exported.
28088include_expsyms=$lt_include_expsyms_RC
28089
28090# ### END LIBTOOL TAG CONFIG: $tagname
28091
28092__EOF__
28093
28094
28095else
28096  # If there is no Makefile yet, we rely on a make rule to execute
28097  # `config.status --recheck' to rerun these tests and create the
28098  # libtool script then.
28099  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28100  if test -f "$ltmain_in"; then
28101    test -f Makefile && make "$ltmain"
28102  fi
28103fi
28104
28105
28106ac_ext=c
28107ac_cpp='$CPP $CPPFLAGS'
28108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28110ac_compiler_gnu=$ac_cv_c_compiler_gnu
28111
28112CC="$lt_save_CC"
28113
28114	;;
28115
28116      *)
28117	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
28118echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28119   { (exit 1); exit 1; }; }
28120	;;
28121      esac
28122
28123      # Append the new tag name to the list of available tags.
28124      if test -n "$tagname" ; then
28125      available_tags="$available_tags $tagname"
28126    fi
28127    fi
28128  done
28129  IFS="$lt_save_ifs"
28130
28131  # Now substitute the updated list of available tags.
28132  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
28133    mv "${ofile}T" "$ofile"
28134    chmod +x "$ofile"
28135  else
28136    rm -f "${ofile}T"
28137    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
28138echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
28139   { (exit 1); exit 1; }; }
28140  fi
28141fi
28142
28143
28144
28145# This can be used to rebuild libtool when needed
28146LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
28147
28148# Always use our own libtool.
28149LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28150
28151# Prevent multiple expansion
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173subdirs="$subdirs libltdl"
28174
28175TME_PREOPEN=
28176if test $enable_shared = no; then
28177  TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
28178fi
28179
28180
28181# Check whether --enable-debug was given.
28182if test "${enable_debug+set}" = set; then
28183  enableval=$enable_debug;
28184else
28185  enable_debug=no
28186fi
28187
28188if test "x$enable_debug" = "xyes"; then
28189  CFLAGS="${CFLAGS-} -g -O0"
28190  CXXFLAGS="${CXXFLAGS-} -g3 -O0"
28191else
28192  CPPFLAGS="${CPPFLAGS-} -DTME_NO_LOG -DTME_NO_DEBUG_LOCKS -DTME_NO_AUDIT_ATOMICS -DNDEBUG"
28193fi
28194# Check whether --enable-warnings was given.
28195if test "${enable_warnings+set}" = set; then
28196  enableval=$enable_warnings;
28197else
28198  enable_warnings=yes
28199fi
28200
28201if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then
28202  CFLAGS="${CFLAGS-} -Wundef -Wall -Werror"
28203  CXXFLAGS="${CXXFLAGS-} -W"
28204fi
28205
28206CFLAGS_NO_STRICT_ALIASING=
28207if test "x$GCC" = "xyes"; then
28208  CFLAGS_NO_STRICT_ALIASING=" -fno-strict-aliasing"
28209fi
28210
28211
28212ac_config_commands="$ac_config_commands default-1"
28213
28214
28215ac_config_files="$ac_config_files Makefile tme/Makefile tme/ic/Makefile tme/machine/Makefile tme/generic/Makefile tme/scsi/Makefile tme/host/Makefile tme/bus/Makefile libtme/Makefile libtme/host/Makefile libtme/host/x86/Makefile ic/Makefile ic/m68k/Makefile ic/ieee754/Makefile ic/sparc/Makefile ic/stp22xx/Makefile machine/Makefile machine/sun/Makefile machine/sun2/Makefile machine/sun3/Makefile machine/sun4/Makefile machine/sun4u/Makefile host/Makefile host/posix/Makefile host/bsd/Makefile host/gtk/Makefile bus/Makefile bus/multibus/Makefile bus/sbus/Makefile serial/Makefile scsi/Makefile generic/Makefile tmesh/Makefile tools/Makefile"
28216
28217cat >confcache <<\_ACEOF
28218# This file is a shell script that caches the results of configure
28219# tests run on this system so they can be shared between configure
28220# scripts and configure runs, see configure's option --config-cache.
28221# It is not useful on other systems.  If it contains results you don't
28222# want to keep, you may remove or edit it.
28223#
28224# config.status only pays attention to the cache file if you give it
28225# the --recheck option to rerun configure.
28226#
28227# `ac_cv_env_foo' variables (set or unset) will be overridden when
28228# loading this file, other *unset* `ac_cv_foo' will be assigned the
28229# following values.
28230
28231_ACEOF
28232
28233# The following way of writing the cache mishandles newlines in values,
28234# but we know of no workaround that is simple, portable, and efficient.
28235# So, we kill variables containing newlines.
28236# Ultrix sh set writes to stderr and can't be redirected directly,
28237# and sets the high bit in the cache file unless we assign to the vars.
28238(
28239  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28240    eval ac_val=\$$ac_var
28241    case $ac_val in #(
28242    *${as_nl}*)
28243      case $ac_var in #(
28244      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28245echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28246      esac
28247      case $ac_var in #(
28248      _ | IFS | as_nl) ;; #(
28249      *) $as_unset $ac_var ;;
28250      esac ;;
28251    esac
28252  done
28253
28254  (set) 2>&1 |
28255    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28256    *${as_nl}ac_space=\ *)
28257      # `set' does not quote correctly, so add quotes (double-quote
28258      # substitution turns \\\\ into \\, and sed turns \\ into \).
28259      sed -n \
28260	"s/'/'\\\\''/g;
28261	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28262      ;; #(
28263    *)
28264      # `set' quotes correctly as required by POSIX, so do not add quotes.
28265      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28266      ;;
28267    esac |
28268    sort
28269) |
28270  sed '
28271     /^ac_cv_env_/b end
28272     t clear
28273     :clear
28274     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28275     t end
28276     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28277     :end' >>confcache
28278if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28279  if test -w "$cache_file"; then
28280    test "x$cache_file" != "x/dev/null" &&
28281      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28282echo "$as_me: updating cache $cache_file" >&6;}
28283    cat confcache >$cache_file
28284  else
28285    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28286echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28287  fi
28288fi
28289rm -f confcache
28290
28291test "x$prefix" = xNONE && prefix=$ac_default_prefix
28292# Let make expand exec_prefix.
28293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28294
28295DEFS=-DHAVE_CONFIG_H
28296
28297ac_libobjs=
28298ac_ltlibobjs=
28299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28300  # 1. Remove the extension, and $U if already installed.
28301  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28302  ac_i=`echo "$ac_i" | sed "$ac_script"`
28303  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28304  #    will be set to the directory where LIBOBJS objects are built.
28305  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28306  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28307done
28308LIBOBJS=$ac_libobjs
28309
28310LTLIBOBJS=$ac_ltlibobjs
28311
28312
28313if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28314  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28315Usually this means the macro was only invoked conditionally." >&5
28316echo "$as_me: error: conditional \"AMDEP\" was never defined.
28317Usually this means the macro was only invoked conditionally." >&2;}
28318   { (exit 1); exit 1; }; }
28319fi
28320if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28321  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28322Usually this means the macro was only invoked conditionally." >&5
28323echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28324Usually this means the macro was only invoked conditionally." >&2;}
28325   { (exit 1); exit 1; }; }
28326fi
28327if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28328  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28329Usually this means the macro was only invoked conditionally." >&5
28330echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28331Usually this means the macro was only invoked conditionally." >&2;}
28332   { (exit 1); exit 1; }; }
28333fi
28334
28335: ${CONFIG_STATUS=./config.status}
28336ac_clean_files_save=$ac_clean_files
28337ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28338{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28339echo "$as_me: creating $CONFIG_STATUS" >&6;}
28340cat >$CONFIG_STATUS <<_ACEOF
28341#! $SHELL
28342# Generated by $as_me.
28343# Run this file to recreate the current configuration.
28344# Compiler output produced by configure, useful for debugging
28345# configure, is in config.log if it exists.
28346
28347debug=false
28348ac_cs_recheck=false
28349ac_cs_silent=false
28350SHELL=\${CONFIG_SHELL-$SHELL}
28351_ACEOF
28352
28353cat >>$CONFIG_STATUS <<\_ACEOF
28354## --------------------- ##
28355## M4sh Initialization.  ##
28356## --------------------- ##
28357
28358# Be more Bourne compatible
28359DUALCASE=1; export DUALCASE # for MKS sh
28360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28361  emulate sh
28362  NULLCMD=:
28363  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28364  # is contrary to our usage.  Disable this feature.
28365  alias -g '${1+"$@"}'='"$@"'
28366  setopt NO_GLOB_SUBST
28367else
28368  case `(set -o) 2>/dev/null` in
28369  *posix*) set -o posix ;;
28370esac
28371
28372fi
28373
28374
28375
28376
28377# PATH needs CR
28378# Avoid depending upon Character Ranges.
28379as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28380as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28381as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28382as_cr_digits='0123456789'
28383as_cr_alnum=$as_cr_Letters$as_cr_digits
28384
28385# The user is always right.
28386if test "${PATH_SEPARATOR+set}" != set; then
28387  echo "#! /bin/sh" >conf$$.sh
28388  echo  "exit 0"   >>conf$$.sh
28389  chmod +x conf$$.sh
28390  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28391    PATH_SEPARATOR=';'
28392  else
28393    PATH_SEPARATOR=:
28394  fi
28395  rm -f conf$$.sh
28396fi
28397
28398# Support unset when possible.
28399if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28400  as_unset=unset
28401else
28402  as_unset=false
28403fi
28404
28405
28406# IFS
28407# We need space, tab and new line, in precisely that order.  Quoting is
28408# there to prevent editors from complaining about space-tab.
28409# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28410# splitting by setting IFS to empty value.)
28411as_nl='
28412'
28413IFS=" ""	$as_nl"
28414
28415# Find who we are.  Look in the path if we contain no directory separator.
28416case $0 in
28417  *[\\/]* ) as_myself=$0 ;;
28418  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28419for as_dir in $PATH
28420do
28421  IFS=$as_save_IFS
28422  test -z "$as_dir" && as_dir=.
28423  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28424done
28425IFS=$as_save_IFS
28426
28427     ;;
28428esac
28429# We did not find ourselves, most probably we were run as `sh COMMAND'
28430# in which case we are not to be found in the path.
28431if test "x$as_myself" = x; then
28432  as_myself=$0
28433fi
28434if test ! -f "$as_myself"; then
28435  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28436  { (exit 1); exit 1; }
28437fi
28438
28439# Work around bugs in pre-3.0 UWIN ksh.
28440for as_var in ENV MAIL MAILPATH
28441do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28442done
28443PS1='$ '
28444PS2='> '
28445PS4='+ '
28446
28447# NLS nuisances.
28448for as_var in \
28449  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28450  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28451  LC_TELEPHONE LC_TIME
28452do
28453  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28454    eval $as_var=C; export $as_var
28455  else
28456    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28457  fi
28458done
28459
28460# Required to use basename.
28461if expr a : '\(a\)' >/dev/null 2>&1 &&
28462   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28463  as_expr=expr
28464else
28465  as_expr=false
28466fi
28467
28468if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28469  as_basename=basename
28470else
28471  as_basename=false
28472fi
28473
28474
28475# Name of the executable.
28476as_me=`$as_basename -- "$0" ||
28477$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28478	 X"$0" : 'X\(//\)$' \| \
28479	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28480echo X/"$0" |
28481    sed '/^.*\/\([^/][^/]*\)\/*$/{
28482	    s//\1/
28483	    q
28484	  }
28485	  /^X\/\(\/\/\)$/{
28486	    s//\1/
28487	    q
28488	  }
28489	  /^X\/\(\/\).*/{
28490	    s//\1/
28491	    q
28492	  }
28493	  s/.*/./; q'`
28494
28495# CDPATH.
28496$as_unset CDPATH
28497
28498
28499
28500  as_lineno_1=$LINENO
28501  as_lineno_2=$LINENO
28502  test "x$as_lineno_1" != "x$as_lineno_2" &&
28503  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28504
28505  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28506  # uniformly replaced by the line number.  The first 'sed' inserts a
28507  # line-number line after each line using $LINENO; the second 'sed'
28508  # does the real work.  The second script uses 'N' to pair each
28509  # line-number line with the line containing $LINENO, and appends
28510  # trailing '-' during substitution so that $LINENO is not a special
28511  # case at line end.
28512  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28513  # scripts with optimization help from Paolo Bonzini.  Blame Lee
28514  # E. McMahon (1931-1989) for sed's syntax.  :-)
28515  sed -n '
28516    p
28517    /[$]LINENO/=
28518  ' <$as_myself |
28519    sed '
28520      s/[$]LINENO.*/&-/
28521      t lineno
28522      b
28523      :lineno
28524      N
28525      :loop
28526      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28527      t loop
28528      s/-\n.*//
28529    ' >$as_me.lineno &&
28530  chmod +x "$as_me.lineno" ||
28531    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28532   { (exit 1); exit 1; }; }
28533
28534  # Don't try to exec as it changes $[0], causing all sort of problems
28535  # (the dirname of $[0] is not the place where we might find the
28536  # original and so on.  Autoconf is especially sensitive to this).
28537  . "./$as_me.lineno"
28538  # Exit status is that of the last command.
28539  exit
28540}
28541
28542
28543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28544  as_dirname=dirname
28545else
28546  as_dirname=false
28547fi
28548
28549ECHO_C= ECHO_N= ECHO_T=
28550case `echo -n x` in
28551-n*)
28552  case `echo 'x\c'` in
28553  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28554  *)   ECHO_C='\c';;
28555  esac;;
28556*)
28557  ECHO_N='-n';;
28558esac
28559
28560if expr a : '\(a\)' >/dev/null 2>&1 &&
28561   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28562  as_expr=expr
28563else
28564  as_expr=false
28565fi
28566
28567rm -f conf$$ conf$$.exe conf$$.file
28568if test -d conf$$.dir; then
28569  rm -f conf$$.dir/conf$$.file
28570else
28571  rm -f conf$$.dir
28572  mkdir conf$$.dir
28573fi
28574echo >conf$$.file
28575if ln -s conf$$.file conf$$ 2>/dev/null; then
28576  as_ln_s='ln -s'
28577  # ... but there are two gotchas:
28578  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28579  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28580  # In both cases, we have to default to `cp -p'.
28581  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28582    as_ln_s='cp -p'
28583elif ln conf$$.file conf$$ 2>/dev/null; then
28584  as_ln_s=ln
28585else
28586  as_ln_s='cp -p'
28587fi
28588rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28589rmdir conf$$.dir 2>/dev/null
28590
28591if mkdir -p . 2>/dev/null; then
28592  as_mkdir_p=:
28593else
28594  test -d ./-p && rmdir ./-p
28595  as_mkdir_p=false
28596fi
28597
28598if test -x / >/dev/null 2>&1; then
28599  as_test_x='test -x'
28600else
28601  if ls -dL / >/dev/null 2>&1; then
28602    as_ls_L_option=L
28603  else
28604    as_ls_L_option=
28605  fi
28606  as_test_x='
28607    eval sh -c '\''
28608      if test -d "$1"; then
28609        test -d "$1/.";
28610      else
28611	case $1 in
28612        -*)set "./$1";;
28613	esac;
28614	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28615	???[sx]*):;;*)false;;esac;fi
28616    '\'' sh
28617  '
28618fi
28619as_executable_p=$as_test_x
28620
28621# Sed expression to map a string onto a valid CPP name.
28622as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28623
28624# Sed expression to map a string onto a valid variable name.
28625as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28626
28627
28628exec 6>&1
28629
28630# Save the log message, to keep $[0] and so on meaningful, and to
28631# report actual input values of CONFIG_FILES etc. instead of their
28632# values after options handling.
28633ac_log="
28634This file was extended by $as_me, which was
28635generated by GNU Autoconf 2.61.  Invocation command line was
28636
28637  CONFIG_FILES    = $CONFIG_FILES
28638  CONFIG_HEADERS  = $CONFIG_HEADERS
28639  CONFIG_LINKS    = $CONFIG_LINKS
28640  CONFIG_COMMANDS = $CONFIG_COMMANDS
28641  $ $0 $@
28642
28643on `(hostname || uname -n) 2>/dev/null | sed 1q`
28644"
28645
28646_ACEOF
28647
28648cat >>$CONFIG_STATUS <<_ACEOF
28649# Files that config.status was made for.
28650config_files="$ac_config_files"
28651config_headers="$ac_config_headers"
28652config_commands="$ac_config_commands"
28653
28654_ACEOF
28655
28656cat >>$CONFIG_STATUS <<\_ACEOF
28657ac_cs_usage="\
28658\`$as_me' instantiates files from templates according to the
28659current configuration.
28660
28661Usage: $0 [OPTIONS] [FILE]...
28662
28663  -h, --help       print this help, then exit
28664  -V, --version    print version number and configuration settings, then exit
28665  -q, --quiet      do not print progress messages
28666  -d, --debug      don't remove temporary files
28667      --recheck    update $as_me by reconfiguring in the same conditions
28668  --file=FILE[:TEMPLATE]
28669		   instantiate the configuration file FILE
28670  --header=FILE[:TEMPLATE]
28671		   instantiate the configuration header FILE
28672
28673Configuration files:
28674$config_files
28675
28676Configuration headers:
28677$config_headers
28678
28679Configuration commands:
28680$config_commands
28681
28682Report bugs to <bug-autoconf@gnu.org>."
28683
28684_ACEOF
28685cat >>$CONFIG_STATUS <<_ACEOF
28686ac_cs_version="\\
28687config.status
28688configured by $0, generated by GNU Autoconf 2.61,
28689  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28690
28691Copyright (C) 2006 Free Software Foundation, Inc.
28692This config.status script is free software; the Free Software Foundation
28693gives unlimited permission to copy, distribute and modify it."
28694
28695ac_pwd='$ac_pwd'
28696srcdir='$srcdir'
28697INSTALL='$INSTALL'
28698MKDIR_P='$MKDIR_P'
28699_ACEOF
28700
28701cat >>$CONFIG_STATUS <<\_ACEOF
28702# If no file are specified by the user, then we need to provide default
28703# value.  By we need to know if files were specified by the user.
28704ac_need_defaults=:
28705while test $# != 0
28706do
28707  case $1 in
28708  --*=*)
28709    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28710    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28711    ac_shift=:
28712    ;;
28713  *)
28714    ac_option=$1
28715    ac_optarg=$2
28716    ac_shift=shift
28717    ;;
28718  esac
28719
28720  case $ac_option in
28721  # Handling of the options.
28722  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28723    ac_cs_recheck=: ;;
28724  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28725    echo "$ac_cs_version"; exit ;;
28726  --debug | --debu | --deb | --de | --d | -d )
28727    debug=: ;;
28728  --file | --fil | --fi | --f )
28729    $ac_shift
28730    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28731    ac_need_defaults=false;;
28732  --header | --heade | --head | --hea )
28733    $ac_shift
28734    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28735    ac_need_defaults=false;;
28736  --he | --h)
28737    # Conflict between --help and --header
28738    { echo "$as_me: error: ambiguous option: $1
28739Try \`$0 --help' for more information." >&2
28740   { (exit 1); exit 1; }; };;
28741  --help | --hel | -h )
28742    echo "$ac_cs_usage"; exit ;;
28743  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28744  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28745    ac_cs_silent=: ;;
28746
28747  # This is an error.
28748  -*) { echo "$as_me: error: unrecognized option: $1
28749Try \`$0 --help' for more information." >&2
28750   { (exit 1); exit 1; }; } ;;
28751
28752  *) ac_config_targets="$ac_config_targets $1"
28753     ac_need_defaults=false ;;
28754
28755  esac
28756  shift
28757done
28758
28759ac_configure_extra_args=
28760
28761if $ac_cs_silent; then
28762  exec 6>/dev/null
28763  ac_configure_extra_args="$ac_configure_extra_args --silent"
28764fi
28765
28766_ACEOF
28767cat >>$CONFIG_STATUS <<_ACEOF
28768if \$ac_cs_recheck; then
28769  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28770  CONFIG_SHELL=$SHELL
28771  export CONFIG_SHELL
28772  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28773fi
28774
28775_ACEOF
28776cat >>$CONFIG_STATUS <<\_ACEOF
28777exec 5>>config.log
28778{
28779  echo
28780  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28781## Running $as_me. ##
28782_ASBOX
28783  echo "$ac_log"
28784} >&5
28785
28786_ACEOF
28787cat >>$CONFIG_STATUS <<_ACEOF
28788#
28789# INIT-COMMANDS
28790#
28791AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28792
28793recode_hosts="$recode_hosts"
28794recode_size_guest_max="$recode_size_guest_max"
28795misc_hosts="$misc_hosts"
28796srcdir="$srcdir"
28797PACKAGE="$PACKAGE"
28798VERSION="$VERSION"
28799target="$target"
28800ac_cv_sizeof_int="$ac_cv_sizeof_int"
28801ac_cv_sizeof_long="$ac_cv_sizeof_long"
28802ac_cv_sizeof_short="$ac_cv_sizeof_short"
28803bus_size_max="$bus_size_max"
28804
28805
28806_ACEOF
28807
28808cat >>$CONFIG_STATUS <<\_ACEOF
28809
28810# Handling of arguments.
28811for ac_config_target in $ac_config_targets
28812do
28813  case $ac_config_target in
28814    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28815    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28816    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28817    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28818    "tme/Makefile") CONFIG_FILES="$CONFIG_FILES tme/Makefile" ;;
28819    "tme/ic/Makefile") CONFIG_FILES="$CONFIG_FILES tme/ic/Makefile" ;;
28820    "tme/machine/Makefile") CONFIG_FILES="$CONFIG_FILES tme/machine/Makefile" ;;
28821    "tme/generic/Makefile") CONFIG_FILES="$CONFIG_FILES tme/generic/Makefile" ;;
28822    "tme/scsi/Makefile") CONFIG_FILES="$CONFIG_FILES tme/scsi/Makefile" ;;
28823    "tme/host/Makefile") CONFIG_FILES="$CONFIG_FILES tme/host/Makefile" ;;
28824    "tme/bus/Makefile") CONFIG_FILES="$CONFIG_FILES tme/bus/Makefile" ;;
28825    "libtme/Makefile") CONFIG_FILES="$CONFIG_FILES libtme/Makefile" ;;
28826    "libtme/host/Makefile") CONFIG_FILES="$CONFIG_FILES libtme/host/Makefile" ;;
28827    "libtme/host/x86/Makefile") CONFIG_FILES="$CONFIG_FILES libtme/host/x86/Makefile" ;;
28828    "ic/Makefile") CONFIG_FILES="$CONFIG_FILES ic/Makefile" ;;
28829    "ic/m68k/Makefile") CONFIG_FILES="$CONFIG_FILES ic/m68k/Makefile" ;;
28830    "ic/ieee754/Makefile") CONFIG_FILES="$CONFIG_FILES ic/ieee754/Makefile" ;;
28831    "ic/sparc/Makefile") CONFIG_FILES="$CONFIG_FILES ic/sparc/Makefile" ;;
28832    "ic/stp22xx/Makefile") CONFIG_FILES="$CONFIG_FILES ic/stp22xx/Makefile" ;;
28833    "machine/Makefile") CONFIG_FILES="$CONFIG_FILES machine/Makefile" ;;
28834    "machine/sun/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun/Makefile" ;;
28835    "machine/sun2/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun2/Makefile" ;;
28836    "machine/sun3/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun3/Makefile" ;;
28837    "machine/sun4/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun4/Makefile" ;;
28838    "machine/sun4u/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sun4u/Makefile" ;;
28839    "host/Makefile") CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
28840    "host/posix/Makefile") CONFIG_FILES="$CONFIG_FILES host/posix/Makefile" ;;
28841    "host/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES host/bsd/Makefile" ;;
28842    "host/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES host/gtk/Makefile" ;;
28843    "bus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;;
28844    "bus/multibus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/multibus/Makefile" ;;
28845    "bus/sbus/Makefile") CONFIG_FILES="$CONFIG_FILES bus/sbus/Makefile" ;;
28846    "serial/Makefile") CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
28847    "scsi/Makefile") CONFIG_FILES="$CONFIG_FILES scsi/Makefile" ;;
28848    "generic/Makefile") CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
28849    "tmesh/Makefile") CONFIG_FILES="$CONFIG_FILES tmesh/Makefile" ;;
28850    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28851
28852  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28853echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28854   { (exit 1); exit 1; }; };;
28855  esac
28856done
28857
28858
28859# If the user did not use the arguments to specify the items to instantiate,
28860# then the envvar interface is used.  Set only those that are not.
28861# We use the long form for the default assignment because of an extremely
28862# bizarre bug on SunOS 4.1.3.
28863if $ac_need_defaults; then
28864  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28865  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28866  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28867fi
28868
28869# Have a temporary directory for convenience.  Make it in the build tree
28870# simply because there is no reason against having it here, and in addition,
28871# creating and moving files from /tmp can sometimes cause problems.
28872# Hook for its removal unless debugging.
28873# Note that there is a small window in which the directory will not be cleaned:
28874# after its creation but before its name has been assigned to `$tmp'.
28875$debug ||
28876{
28877  tmp=
28878  trap 'exit_status=$?
28879  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28880' 0
28881  trap '{ (exit 1); exit 1; }' 1 2 13 15
28882}
28883# Create a (secure) tmp directory for tmp files.
28884
28885{
28886  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28887  test -n "$tmp" && test -d "$tmp"
28888}  ||
28889{
28890  tmp=./conf$$-$RANDOM
28891  (umask 077 && mkdir "$tmp")
28892} ||
28893{
28894   echo "$me: cannot create a temporary directory in ." >&2
28895   { (exit 1); exit 1; }
28896}
28897
28898#
28899# Set up the sed scripts for CONFIG_FILES section.
28900#
28901
28902# No need to generate the scripts if there are no CONFIG_FILES.
28903# This happens for instance when ./config.status config.h
28904if test -n "$CONFIG_FILES"; then
28905
28906_ACEOF
28907
28908
28909
28910ac_delim='%!_!# '
28911for ac_last_try in false false false false false :; do
28912  cat >conf$$subs.sed <<_ACEOF
28913SHELL!$SHELL$ac_delim
28914PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28915PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28916PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28917PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28918PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28919PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28920exec_prefix!$exec_prefix$ac_delim
28921prefix!$prefix$ac_delim
28922program_transform_name!$program_transform_name$ac_delim
28923bindir!$bindir$ac_delim
28924sbindir!$sbindir$ac_delim
28925libexecdir!$libexecdir$ac_delim
28926datarootdir!$datarootdir$ac_delim
28927datadir!$datadir$ac_delim
28928sysconfdir!$sysconfdir$ac_delim
28929sharedstatedir!$sharedstatedir$ac_delim
28930localstatedir!$localstatedir$ac_delim
28931includedir!$includedir$ac_delim
28932oldincludedir!$oldincludedir$ac_delim
28933docdir!$docdir$ac_delim
28934infodir!$infodir$ac_delim
28935htmldir!$htmldir$ac_delim
28936dvidir!$dvidir$ac_delim
28937pdfdir!$pdfdir$ac_delim
28938psdir!$psdir$ac_delim
28939libdir!$libdir$ac_delim
28940localedir!$localedir$ac_delim
28941mandir!$mandir$ac_delim
28942DEFS!$DEFS$ac_delim
28943ECHO_C!$ECHO_C$ac_delim
28944ECHO_N!$ECHO_N$ac_delim
28945ECHO_T!$ECHO_T$ac_delim
28946LIBS!$LIBS$ac_delim
28947build_alias!$build_alias$ac_delim
28948host_alias!$host_alias$ac_delim
28949target_alias!$target_alias$ac_delim
28950build!$build$ac_delim
28951build_cpu!$build_cpu$ac_delim
28952build_vendor!$build_vendor$ac_delim
28953build_os!$build_os$ac_delim
28954host!$host$ac_delim
28955host_cpu!$host_cpu$ac_delim
28956host_vendor!$host_vendor$ac_delim
28957host_os!$host_os$ac_delim
28958target!$target$ac_delim
28959target_cpu!$target_cpu$ac_delim
28960target_vendor!$target_vendor$ac_delim
28961target_os!$target_os$ac_delim
28962INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28963INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28964INSTALL_DATA!$INSTALL_DATA$ac_delim
28965am__isrc!$am__isrc$ac_delim
28966CYGPATH_W!$CYGPATH_W$ac_delim
28967PACKAGE!$PACKAGE$ac_delim
28968VERSION!$VERSION$ac_delim
28969ACLOCAL!$ACLOCAL$ac_delim
28970AUTOCONF!$AUTOCONF$ac_delim
28971AUTOMAKE!$AUTOMAKE$ac_delim
28972AUTOHEADER!$AUTOHEADER$ac_delim
28973MAKEINFO!$MAKEINFO$ac_delim
28974install_sh!$install_sh$ac_delim
28975STRIP!$STRIP$ac_delim
28976INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28977mkdir_p!$mkdir_p$ac_delim
28978AWK!$AWK$ac_delim
28979SET_MAKE!$SET_MAKE$ac_delim
28980am__leading_dot!$am__leading_dot$ac_delim
28981AMTAR!$AMTAR$ac_delim
28982am__tar!$am__tar$ac_delim
28983am__untar!$am__untar$ac_delim
28984CC!$CC$ac_delim
28985CFLAGS!$CFLAGS$ac_delim
28986LDFLAGS!$LDFLAGS$ac_delim
28987CPPFLAGS!$CPPFLAGS$ac_delim
28988ac_ct_CC!$ac_ct_CC$ac_delim
28989EXEEXT!$EXEEXT$ac_delim
28990OBJEXT!$OBJEXT$ac_delim
28991DEPDIR!$DEPDIR$ac_delim
28992am__include!$am__include$ac_delim
28993am__quote!$am__quote$ac_delim
28994AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28995AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28996AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28997CCDEPMODE!$CCDEPMODE$ac_delim
28998am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28999am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29000CPP!$CPP$ac_delim
29001YACC!$YACC$ac_delim
29002YFLAGS!$YFLAGS$ac_delim
29003GREP!$GREP$ac_delim
29004EGREP!$EGREP$ac_delim
29005LIBOBJS!$LIBOBJS$ac_delim
29006PERL!$PERL$ac_delim
29007XMKMF!$XMKMF$ac_delim
29008X_CFLAGS!$X_CFLAGS$ac_delim
29009X_PRE_LIBS!$X_PRE_LIBS$ac_delim
29010_ACEOF
29011
29012  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29013    break
29014  elif $ac_last_try; then
29015    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29016echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29017   { (exit 1); exit 1; }; }
29018  else
29019    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29020  fi
29021done
29022
29023ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29024if test -n "$ac_eof"; then
29025  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29026  ac_eof=`expr $ac_eof + 1`
29027fi
29028
29029cat >>$CONFIG_STATUS <<_ACEOF
29030cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29031/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29032_ACEOF
29033sed '
29034s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29035s/^/s,@/; s/!/@,|#_!!_#|/
29036:n
29037t n
29038s/'"$ac_delim"'$/,g/; t
29039s/$/\\/; p
29040N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29041' >>$CONFIG_STATUS <conf$$subs.sed
29042rm -f conf$$subs.sed
29043cat >>$CONFIG_STATUS <<_ACEOF
29044CEOF$ac_eof
29045_ACEOF
29046
29047
29048ac_delim='%!_!# '
29049for ac_last_try in false false false false false :; do
29050  cat >conf$$subs.sed <<_ACEOF
29051X_LIBS!$X_LIBS$ac_delim
29052X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
29053PKG_CONFIG!$PKG_CONFIG$ac_delim
29054GTK_CFLAGS!$GTK_CFLAGS$ac_delim
29055GTK_LIBS!$GTK_LIBS$ac_delim
29056TME_FB_XLAT_DST!$TME_FB_XLAT_DST$ac_delim
29057TME_MACHINE_SUBDIRS!$TME_MACHINE_SUBDIRS$ac_delim
29058TME_IC_SUBDIRS!$TME_IC_SUBDIRS$ac_delim
29059TME_ICS!$TME_ICS$ac_delim
29060TME_SERIAL_SUBDIRS!$TME_SERIAL_SUBDIRS$ac_delim
29061TME_SERIALS!$TME_SERIALS$ac_delim
29062TME_BUS_SUBDIRS!$TME_BUS_SUBDIRS$ac_delim
29063TME_FB_XLAT_SRC!$TME_FB_XLAT_SRC$ac_delim
29064TME_HOSTS!$TME_HOSTS$ac_delim
29065INCLTDL!$INCLTDL$ac_delim
29066LIBLTDL!$LIBLTDL$ac_delim
29067SED!$SED$ac_delim
29068LN_S!$LN_S$ac_delim
29069ECHO!$ECHO$ac_delim
29070AR!$AR$ac_delim
29071RANLIB!$RANLIB$ac_delim
29072CXX!$CXX$ac_delim
29073CXXFLAGS!$CXXFLAGS$ac_delim
29074ac_ct_CXX!$ac_ct_CXX$ac_delim
29075CXXDEPMODE!$CXXDEPMODE$ac_delim
29076am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29077am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29078CXXCPP!$CXXCPP$ac_delim
29079F77!$F77$ac_delim
29080FFLAGS!$FFLAGS$ac_delim
29081ac_ct_F77!$ac_ct_F77$ac_delim
29082LIBTOOL!$LIBTOOL$ac_delim
29083LTLIBOBJS!$LTLIBOBJS$ac_delim
29084subdirs!$subdirs$ac_delim
29085TME_PREOPEN!$TME_PREOPEN$ac_delim
29086CFLAGS_NO_STRICT_ALIASING!$CFLAGS_NO_STRICT_ALIASING$ac_delim
29087_ACEOF
29088
29089  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
29090    break
29091  elif $ac_last_try; then
29092    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29093echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29094   { (exit 1); exit 1; }; }
29095  else
29096    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29097  fi
29098done
29099
29100ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29101if test -n "$ac_eof"; then
29102  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29103  ac_eof=`expr $ac_eof + 1`
29104fi
29105
29106cat >>$CONFIG_STATUS <<_ACEOF
29107cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29109_ACEOF
29110sed '
29111s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29112s/^/s,@/; s/!/@,|#_!!_#|/
29113:n
29114t n
29115s/'"$ac_delim"'$/,g/; t
29116s/$/\\/; p
29117N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29118' >>$CONFIG_STATUS <conf$$subs.sed
29119rm -f conf$$subs.sed
29120cat >>$CONFIG_STATUS <<_ACEOF
29121:end
29122s/|#_!!_#|//g
29123CEOF$ac_eof
29124_ACEOF
29125
29126
29127# VPATH may cause trouble with some makes, so we remove $(srcdir),
29128# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29129# trailing colons and then remove the whole line if VPATH becomes empty
29130# (actually we leave an empty line to preserve line numbers).
29131if test "x$srcdir" = x.; then
29132  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29133s/:*\$(srcdir):*/:/
29134s/:*\${srcdir}:*/:/
29135s/:*@srcdir@:*/:/
29136s/^\([^=]*=[	 ]*\):*/\1/
29137s/:*$//
29138s/^[^=]*=[	 ]*$//
29139}'
29140fi
29141
29142cat >>$CONFIG_STATUS <<\_ACEOF
29143fi # test -n "$CONFIG_FILES"
29144
29145
29146for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29147do
29148  case $ac_tag in
29149  :[FHLC]) ac_mode=$ac_tag; continue;;
29150  esac
29151  case $ac_mode$ac_tag in
29152  :[FHL]*:*);;
29153  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29154echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29155   { (exit 1); exit 1; }; };;
29156  :[FH]-) ac_tag=-:-;;
29157  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29158  esac
29159  ac_save_IFS=$IFS
29160  IFS=:
29161  set x $ac_tag
29162  IFS=$ac_save_IFS
29163  shift
29164  ac_file=$1
29165  shift
29166
29167  case $ac_mode in
29168  :L) ac_source=$1;;
29169  :[FH])
29170    ac_file_inputs=
29171    for ac_f
29172    do
29173      case $ac_f in
29174      -) ac_f="$tmp/stdin";;
29175      *) # Look for the file first in the build tree, then in the source tree
29176	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29177	 # because $ac_f cannot contain `:'.
29178	 test -f "$ac_f" ||
29179	   case $ac_f in
29180	   [\\/$]*) false;;
29181	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29182	   esac ||
29183	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29184echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29185   { (exit 1); exit 1; }; };;
29186      esac
29187      ac_file_inputs="$ac_file_inputs $ac_f"
29188    done
29189
29190    # Let's still pretend it is `configure' which instantiates (i.e., don't
29191    # use $as_me), people would be surprised to read:
29192    #    /* config.h.  Generated by config.status.  */
29193    configure_input="Generated from "`IFS=:
29194	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29195    if test x"$ac_file" != x-; then
29196      configure_input="$ac_file.  $configure_input"
29197      { echo "$as_me:$LINENO: creating $ac_file" >&5
29198echo "$as_me: creating $ac_file" >&6;}
29199    fi
29200
29201    case $ac_tag in
29202    *:-:* | *:-) cat >"$tmp/stdin";;
29203    esac
29204    ;;
29205  esac
29206
29207  ac_dir=`$as_dirname -- "$ac_file" ||
29208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29209	 X"$ac_file" : 'X\(//\)[^/]' \| \
29210	 X"$ac_file" : 'X\(//\)$' \| \
29211	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29212echo X"$ac_file" |
29213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29214	    s//\1/
29215	    q
29216	  }
29217	  /^X\(\/\/\)[^/].*/{
29218	    s//\1/
29219	    q
29220	  }
29221	  /^X\(\/\/\)$/{
29222	    s//\1/
29223	    q
29224	  }
29225	  /^X\(\/\).*/{
29226	    s//\1/
29227	    q
29228	  }
29229	  s/.*/./; q'`
29230  { as_dir="$ac_dir"
29231  case $as_dir in #(
29232  -*) as_dir=./$as_dir;;
29233  esac
29234  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29235    as_dirs=
29236    while :; do
29237      case $as_dir in #(
29238      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29239      *) as_qdir=$as_dir;;
29240      esac
29241      as_dirs="'$as_qdir' $as_dirs"
29242      as_dir=`$as_dirname -- "$as_dir" ||
29243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29244	 X"$as_dir" : 'X\(//\)[^/]' \| \
29245	 X"$as_dir" : 'X\(//\)$' \| \
29246	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29247echo X"$as_dir" |
29248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29249	    s//\1/
29250	    q
29251	  }
29252	  /^X\(\/\/\)[^/].*/{
29253	    s//\1/
29254	    q
29255	  }
29256	  /^X\(\/\/\)$/{
29257	    s//\1/
29258	    q
29259	  }
29260	  /^X\(\/\).*/{
29261	    s//\1/
29262	    q
29263	  }
29264	  s/.*/./; q'`
29265      test -d "$as_dir" && break
29266    done
29267    test -z "$as_dirs" || eval "mkdir $as_dirs"
29268  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29269echo "$as_me: error: cannot create directory $as_dir" >&2;}
29270   { (exit 1); exit 1; }; }; }
29271  ac_builddir=.
29272
29273case "$ac_dir" in
29274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29275*)
29276  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29277  # A ".." for each directory in $ac_dir_suffix.
29278  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29279  case $ac_top_builddir_sub in
29280  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29281  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29282  esac ;;
29283esac
29284ac_abs_top_builddir=$ac_pwd
29285ac_abs_builddir=$ac_pwd$ac_dir_suffix
29286# for backward compatibility:
29287ac_top_builddir=$ac_top_build_prefix
29288
29289case $srcdir in
29290  .)  # We are building in place.
29291    ac_srcdir=.
29292    ac_top_srcdir=$ac_top_builddir_sub
29293    ac_abs_top_srcdir=$ac_pwd ;;
29294  [\\/]* | ?:[\\/]* )  # Absolute name.
29295    ac_srcdir=$srcdir$ac_dir_suffix;
29296    ac_top_srcdir=$srcdir
29297    ac_abs_top_srcdir=$srcdir ;;
29298  *) # Relative name.
29299    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29300    ac_top_srcdir=$ac_top_build_prefix$srcdir
29301    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29302esac
29303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29304
29305
29306  case $ac_mode in
29307  :F)
29308  #
29309  # CONFIG_FILE
29310  #
29311
29312  case $INSTALL in
29313  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29314  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29315  esac
29316  ac_MKDIR_P=$MKDIR_P
29317  case $MKDIR_P in
29318  [\\/$]* | ?:[\\/]* ) ;;
29319  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29320  esac
29321_ACEOF
29322
29323cat >>$CONFIG_STATUS <<\_ACEOF
29324# If the template does not know about datarootdir, expand it.
29325# FIXME: This hack should be removed a few years after 2.60.
29326ac_datarootdir_hack=; ac_datarootdir_seen=
29327
29328case `sed -n '/datarootdir/ {
29329  p
29330  q
29331}
29332/@datadir@/p
29333/@docdir@/p
29334/@infodir@/p
29335/@localedir@/p
29336/@mandir@/p
29337' $ac_file_inputs` in
29338*datarootdir*) ac_datarootdir_seen=yes;;
29339*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29340  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29341echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29342_ACEOF
29343cat >>$CONFIG_STATUS <<_ACEOF
29344  ac_datarootdir_hack='
29345  s&@datadir@&$datadir&g
29346  s&@docdir@&$docdir&g
29347  s&@infodir@&$infodir&g
29348  s&@localedir@&$localedir&g
29349  s&@mandir@&$mandir&g
29350    s&\\\${datarootdir}&$datarootdir&g' ;;
29351esac
29352_ACEOF
29353
29354# Neutralize VPATH when `$srcdir' = `.'.
29355# Shell code in configure.ac might set extrasub.
29356# FIXME: do we really want to maintain this feature?
29357cat >>$CONFIG_STATUS <<_ACEOF
29358  sed "$ac_vpsub
29359$extrasub
29360_ACEOF
29361cat >>$CONFIG_STATUS <<\_ACEOF
29362:t
29363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29364s&@configure_input@&$configure_input&;t t
29365s&@top_builddir@&$ac_top_builddir_sub&;t t
29366s&@srcdir@&$ac_srcdir&;t t
29367s&@abs_srcdir@&$ac_abs_srcdir&;t t
29368s&@top_srcdir@&$ac_top_srcdir&;t t
29369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29370s&@builddir@&$ac_builddir&;t t
29371s&@abs_builddir@&$ac_abs_builddir&;t t
29372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29373s&@INSTALL@&$ac_INSTALL&;t t
29374s&@MKDIR_P@&$ac_MKDIR_P&;t t
29375$ac_datarootdir_hack
29376" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29377
29378test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29379  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29380  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29381  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29382which seems to be undefined.  Please make sure it is defined." >&5
29383echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29384which seems to be undefined.  Please make sure it is defined." >&2;}
29385
29386  rm -f "$tmp/stdin"
29387  case $ac_file in
29388  -) cat "$tmp/out"; rm -f "$tmp/out";;
29389  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29390  esac
29391 ;;
29392  :H)
29393  #
29394  # CONFIG_HEADER
29395  #
29396_ACEOF
29397
29398# Transform confdefs.h into a sed script `conftest.defines', that
29399# substitutes the proper values into config.h.in to produce config.h.
29400rm -f conftest.defines conftest.tail
29401# First, append a space to every undef/define line, to ease matching.
29402echo 's/$/ /' >conftest.defines
29403# Then, protect against being on the right side of a sed subst, or in
29404# an unquoted here document, in config.status.  If some macros were
29405# called several times there might be several #defines for the same
29406# symbol, which is useless.  But do not sort them, since the last
29407# AC_DEFINE must be honored.
29408ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29409# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29410# NAME is the cpp macro being defined, VALUE is the value it is being given.
29411# PARAMS is the parameter list in the macro definition--in most cases, it's
29412# just an empty string.
29413ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
29414ac_dB='\\)[	 (].*,\\1define\\2'
29415ac_dC=' '
29416ac_dD=' ,'
29417
29418uniq confdefs.h |
29419  sed -n '
29420	t rset
29421	:rset
29422	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
29423	t ok
29424	d
29425	:ok
29426	s/[\\&,]/\\&/g
29427	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29428	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29429  ' >>conftest.defines
29430
29431# Remove the space that was appended to ease matching.
29432# Then replace #undef with comments.  This is necessary, for
29433# example, in the case of _POSIX_SOURCE, which is predefined and required
29434# on some systems where configure will not decide to define it.
29435# (The regexp can be short, since the line contains either #define or #undef.)
29436echo 's/ $//
29437s,^[	 #]*u.*,/* & */,' >>conftest.defines
29438
29439# Break up conftest.defines:
29440ac_max_sed_lines=50
29441
29442# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29443# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29444# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29445# et cetera.
29446ac_in='$ac_file_inputs'
29447ac_out='"$tmp/out1"'
29448ac_nxt='"$tmp/out2"'
29449
29450while :
29451do
29452  # Write a here document:
29453    cat >>$CONFIG_STATUS <<_ACEOF
29454    # First, check the format of the line:
29455    cat >"\$tmp/defines.sed" <<\\CEOF
29456/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
29457/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
29458b
29459:def
29460_ACEOF
29461  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29462  echo 'CEOF
29463    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29464  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29465  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29466  grep . conftest.tail >/dev/null || break
29467  rm -f conftest.defines
29468  mv conftest.tail conftest.defines
29469done
29470rm -f conftest.defines conftest.tail
29471
29472echo "ac_result=$ac_in" >>$CONFIG_STATUS
29473cat >>$CONFIG_STATUS <<\_ACEOF
29474  if test x"$ac_file" != x-; then
29475    echo "/* $configure_input  */" >"$tmp/config.h"
29476    cat "$ac_result" >>"$tmp/config.h"
29477    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29478      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29479echo "$as_me: $ac_file is unchanged" >&6;}
29480    else
29481      rm -f $ac_file
29482      mv "$tmp/config.h" $ac_file
29483    fi
29484  else
29485    echo "/* $configure_input  */"
29486    cat "$ac_result"
29487  fi
29488  rm -f "$tmp/out12"
29489# Compute $ac_file's index in $config_headers.
29490_am_stamp_count=1
29491for _am_header in $config_headers :; do
29492  case $_am_header in
29493    $ac_file | $ac_file:* )
29494      break ;;
29495    * )
29496      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29497  esac
29498done
29499echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
29500$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29501	 X$ac_file : 'X\(//\)[^/]' \| \
29502	 X$ac_file : 'X\(//\)$' \| \
29503	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
29504echo X$ac_file |
29505    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29506	    s//\1/
29507	    q
29508	  }
29509	  /^X\(\/\/\)[^/].*/{
29510	    s//\1/
29511	    q
29512	  }
29513	  /^X\(\/\/\)$/{
29514	    s//\1/
29515	    q
29516	  }
29517	  /^X\(\/\).*/{
29518	    s//\1/
29519	    q
29520	  }
29521	  s/.*/./; q'`/stamp-h$_am_stamp_count
29522 ;;
29523
29524  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29525echo "$as_me: executing $ac_file commands" >&6;}
29526 ;;
29527  esac
29528
29529
29530  case $ac_file$ac_mode in
29531    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29532  # Strip MF so we end up with the name of the file.
29533  mf=`echo "$mf" | sed -e 's/:.*$//'`
29534  # Check whether this is an Automake generated Makefile or not.
29535  # We used to match only the files named `Makefile.in', but
29536  # some people rename them; so instead we look at the file content.
29537  # Grep'ing the first line is not enough: some people post-process
29538  # each Makefile.in and add a new line on top of each file to say so.
29539  # Grep'ing the whole file is not good either: AIX grep has a line
29540  # limit of 2048, but all sed's we know have understand at least 4000.
29541  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
29542    dirpart=`$as_dirname -- "$mf" ||
29543$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29544	 X"$mf" : 'X\(//\)[^/]' \| \
29545	 X"$mf" : 'X\(//\)$' \| \
29546	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29547echo X"$mf" |
29548    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29549	    s//\1/
29550	    q
29551	  }
29552	  /^X\(\/\/\)[^/].*/{
29553	    s//\1/
29554	    q
29555	  }
29556	  /^X\(\/\/\)$/{
29557	    s//\1/
29558	    q
29559	  }
29560	  /^X\(\/\).*/{
29561	    s//\1/
29562	    q
29563	  }
29564	  s/.*/./; q'`
29565  else
29566    continue
29567  fi
29568  # Extract the definition of DEPDIR, am__include, and am__quote
29569  # from the Makefile without running `make'.
29570  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29571  test -z "$DEPDIR" && continue
29572  am__include=`sed -n 's/^am__include = //p' < "$mf"`
29573  test -z "am__include" && continue
29574  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29575  # When using ansi2knr, U may be empty or an underscore; expand it
29576  U=`sed -n 's/^U = //p' < "$mf"`
29577  # Find all dependency output files, they are included files with
29578  # $(DEPDIR) in their names.  We invoke sed twice because it is the
29579  # simplest approach to changing $(DEPDIR) to its actual value in the
29580  # expansion.
29581  for file in `sed -n "
29582    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29583       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29584    # Make sure the directory exists.
29585    test -f "$dirpart/$file" && continue
29586    fdir=`$as_dirname -- "$file" ||
29587$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29588	 X"$file" : 'X\(//\)[^/]' \| \
29589	 X"$file" : 'X\(//\)$' \| \
29590	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29591echo X"$file" |
29592    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29593	    s//\1/
29594	    q
29595	  }
29596	  /^X\(\/\/\)[^/].*/{
29597	    s//\1/
29598	    q
29599	  }
29600	  /^X\(\/\/\)$/{
29601	    s//\1/
29602	    q
29603	  }
29604	  /^X\(\/\).*/{
29605	    s//\1/
29606	    q
29607	  }
29608	  s/.*/./; q'`
29609    { as_dir=$dirpart/$fdir
29610  case $as_dir in #(
29611  -*) as_dir=./$as_dir;;
29612  esac
29613  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29614    as_dirs=
29615    while :; do
29616      case $as_dir in #(
29617      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29618      *) as_qdir=$as_dir;;
29619      esac
29620      as_dirs="'$as_qdir' $as_dirs"
29621      as_dir=`$as_dirname -- "$as_dir" ||
29622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29623	 X"$as_dir" : 'X\(//\)[^/]' \| \
29624	 X"$as_dir" : 'X\(//\)$' \| \
29625	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29626echo X"$as_dir" |
29627    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29628	    s//\1/
29629	    q
29630	  }
29631	  /^X\(\/\/\)[^/].*/{
29632	    s//\1/
29633	    q
29634	  }
29635	  /^X\(\/\/\)$/{
29636	    s//\1/
29637	    q
29638	  }
29639	  /^X\(\/\).*/{
29640	    s//\1/
29641	    q
29642	  }
29643	  s/.*/./; q'`
29644      test -d "$as_dir" && break
29645    done
29646    test -z "$as_dirs" || eval "mkdir $as_dirs"
29647  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29648echo "$as_me: error: cannot create directory $as_dir" >&2;}
29649   { (exit 1); exit 1; }; }; }
29650    # echo "creating $dirpart/$file"
29651    echo '# dummy' > "$dirpart/$file"
29652  done
29653done
29654 ;;
29655    "default-1":C)
29656
29657## Generate our configure-time sources in two
29658## cases:
29659## 1. `config.status' is run either explicitly, or via configure.
29660##     Esp. not when it is run in `Makefile' to generate makefiles and
29661##     config.h
29662## 2. CONFIG_OTHER is set explicitly
29663##
29664## Case 1 is difficult.  We know that `automake' sets one of
29665## CONFIG_FILES or CONFIG_HEADERS to empty.  This heuristic works
29666## only when AM_CONFIG_HEADER is set, however.
29667
29668case "x$CONFIG_OTHER" in
29669*tmeconfig.h) gen_tmeconfig_h=yes
29670;;
29671esac
29672if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
29673  # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
29674  if test "x${CONFIG_OTHER}" = x; then
29675    gen_tmeconfig_h=yes
29676  fi
29677fi
29678
29679## If we're generating tmeconfig.h:
29680if test "x$gen_tmeconfig_h" = xyes; then
29681  outfile=tmeconfig.h
29682  echo "$as_me: creating $outfile"
29683  cat <<TMEEOF > ${outfile}-tmp
29684/* tmeconfig.h
29685 *
29686 * This is an automatically generated file - please modify 'configure.in'.
29687 */
29688
29689#ifndef _TMECONFIG_H
29690#define _TMECONFIG_H
29691
29692TMEEOF
29693  (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
29694    grep $word config.h | sed 's/#define[ 	]\{1,\}/&_TME_/' ; \
29695  done) | sort | uniq >> ${outfile}-tmp
29696  grep FLOAT_FORMAT config.h | \
29697    sed 's/#define[ 	]\{1,\}\([A-Za-z0-9_]\{1,\}\)[ 	]\{1,\}\([A-Za-z0-9_]\{1,\}\)/#define TME_\1 TME_FLOAT_FORMAT_\2/' >> ${outfile}-tmp
29698  echo '#define TME_BUSMAX_LOG2 TME_BUS'${bus_size_max}'_LOG2' >> ${outfile}-tmp
29699  echo '#define TME_HAVE_RECODE (' \
29700    `if test "x${recode_hosts}" = x; then echo 0; else echo 1; fi` ')' >> ${outfile}-tmp
29701  echo '#define TME_RECODE_SIZE_GUEST_MAX TME_RECODE_SIZE_'${recode_size_guest_max} >> ${outfile}-tmp
29702  echo '#define TME_RELEASE_MAJOR (' \
29703    `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp
29704  echo '#define TME_RELEASE_MINOR (' \
29705    `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp
29706  echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp
29707  if test $ac_cv_sizeof_long = 8; then
29708    echo '#define TME_HAVE_INT64_T' >> ${outfile}-tmp
29709    echo '#define _TME_PRI64 "l"' >> ${outfile}-tmp
29710    echo 'typedef signed long tme_int64_t;' >> ${outfile}-tmp
29711    echo 'typedef unsigned long tme_uint64_t;' >> ${outfile}-tmp
29712  fi
29713  if test $ac_cv_sizeof_int = 4; then
29714    echo '#define _TME_PRI32 ""' >> ${outfile}-tmp
29715    echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp
29716    echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp
29717  elif test $ac_cv_sizeof_long = 4; then
29718    echo '#define _TME_PRI32 "l"' >> ${outfile}-tmp
29719    echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp
29720    echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp
29721  fi
29722  if test $ac_cv_sizeof_int = 2; then
29723    echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp
29724    echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp
29725  elif test $ac_cv_sizeof_short = 2; then
29726    echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp
29727    echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp
29728  fi
29729  echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp
29730  echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp
29731  cat <<TMEEOF >> ${outfile}-tmp
29732
29733/* features that aren't currently controlled by a configure option: */
29734#define TME_THREADS_SJLJ
29735
29736#endif /* !_TMECONFIG_H */
29737TMEEOF
29738  if cmp -s ${outfile}-tmp $outfile; then
29739    echo "$as_me: $outfile is unchanged"
29740    rm -f ${outfile}-tmp
29741  else
29742    mv ${outfile}-tmp ${outfile}
29743  fi
29744
29745  outfile=tme/recode-host.h
29746  echo "$as_me: creating $outfile"
29747  cat <<TMEEOF > ${outfile}-tmp
29748/* recode-host.h
29749 *
29750 * This is an automatically generated file - please modify 'configure.in'.
29751 */
29752
29753TMEEOF
29754  for host in ${recode_hosts}; do
29755    echo '#include <tme/host/recode-'${host}'.h>' >> ${outfile}-tmp
29756  done
29757  delim='#define TME_RECODE_HOST_IC \'
29758  for host in ${recode_hosts}; do
29759    echo ${delim} >> ${outfile}-tmp
29760    echo -n '  TME_RECODE_'`echo ${host} | tr '[a-z]' '[A-Z]'`'_IC' >> ${outfile}-tmp
29761    delim='; \'
29762  done
29763  echo '' >> ${outfile}-tmp
29764  if cmp -s ${outfile}-tmp $outfile; then
29765    echo "$as_me: $outfile is unchanged"
29766    rm -f ${outfile}-tmp
29767  else
29768    mv ${outfile}-tmp ${outfile}
29769  fi
29770
29771  outfile=libtme/recode-host.c
29772  echo "$as_me: creating $outfile"
29773  cat <<TMEEOF > ${outfile}-tmp
29774/* recode-host.c
29775 *
29776 * This is an automatically generated file - please modify 'configure.in'.
29777 */
29778
29779TMEEOF
29780  for host in ${recode_hosts}; do
29781    if test -d ${srcdir}/libtme/host/${host}; then
29782      echo '#include "libtme/host/'${host}'/recode-'${host}'.c"' >> ${outfile}-tmp
29783    else
29784      echo '#include "libtme/host/recode-'${host}'.c"' >> ${outfile}-tmp
29785    fi
29786  done
29787  if cmp -s ${outfile}-tmp $outfile; then
29788    echo "$as_me: $outfile is unchanged"
29789    rm -f ${outfile}-tmp
29790  else
29791    mv ${outfile}-tmp ${outfile}
29792  fi
29793
29794  outfile=libtme/misc-host.c
29795  echo "$as_me: creating $outfile"
29796  cat <<TMEEOF > ${outfile}-tmp
29797/* misc-host.c
29798 *
29799 * This is an automatically generated file - please modify 'configure.in'.
29800 */
29801
29802TMEEOF
29803  for host in ${misc_hosts}; do
29804    if test -d ${srcdir}/libtme/host/${host}; then
29805      echo '#include "libtme/host/'${host}'/misc-'${host}'.c"' >> ${outfile}-tmp
29806    else
29807      echo '#include "libtme/host/misc-'${host}'.c"' >> ${outfile}-tmp
29808    fi
29809  done
29810  echo '#include "libtme/misc.c"' >> ${outfile}-tmp
29811  if cmp -s ${outfile}-tmp $outfile; then
29812    echo "$as_me: $outfile is unchanged"
29813    rm -f ${outfile}-tmp
29814  else
29815    mv ${outfile}-tmp ${outfile}
29816  fi
29817
29818fi
29819 ;;
29820
29821  esac
29822done # for ac_tag
29823
29824
29825{ (exit 0); exit 0; }
29826_ACEOF
29827chmod +x $CONFIG_STATUS
29828ac_clean_files=$ac_clean_files_save
29829
29830
29831# configure is writing to config.log, and then calls config.status.
29832# config.status does its own redirection, appending to config.log.
29833# Unfortunately, on DOS this fails, as config.log is still kept open
29834# by configure, so config.status won't be able to write to it; its
29835# output is simply discarded.  So we exec the FD to /dev/null,
29836# effectively closing config.log, so it can be properly (re)opened and
29837# appended to by config.status.  When coming back to configure, we
29838# need to make the FD available again.
29839if test "$no_create" != yes; then
29840  ac_cs_success=:
29841  ac_config_status_args=
29842  test "$silent" = yes &&
29843    ac_config_status_args="$ac_config_status_args --quiet"
29844  exec 5>/dev/null
29845  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29846  exec 5>>config.log
29847  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29848  # would make configure fail if this is the last instruction.
29849  $ac_cs_success || { (exit 1); exit 1; }
29850fi
29851
29852#
29853# CONFIG_SUBDIRS section.
29854#
29855if test "$no_recursion" != yes; then
29856
29857  # Remove --cache-file and --srcdir arguments so they do not pile up.
29858  ac_sub_configure_args=
29859  ac_prev=
29860  eval "set x $ac_configure_args"
29861  shift
29862  for ac_arg
29863  do
29864    if test -n "$ac_prev"; then
29865      ac_prev=
29866      continue
29867    fi
29868    case $ac_arg in
29869    -cache-file | --cache-file | --cache-fil | --cache-fi \
29870    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29871      ac_prev=cache_file ;;
29872    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29873    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29874    | --c=*)
29875      ;;
29876    --config-cache | -C)
29877      ;;
29878    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29879      ac_prev=srcdir ;;
29880    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29881      ;;
29882    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29883      ac_prev=prefix ;;
29884    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29885      ;;
29886    *)
29887      case $ac_arg in
29888      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29889      esac
29890      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
29891    esac
29892  done
29893
29894  # Always prepend --prefix to ensure using the same prefix
29895  # in subdir configurations.
29896  ac_arg="--prefix=$prefix"
29897  case $ac_arg in
29898  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29899  esac
29900  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
29901
29902  # Pass --silent
29903  if test "$silent" = yes; then
29904    ac_sub_configure_args="--silent $ac_sub_configure_args"
29905  fi
29906
29907  ac_popdir=`pwd`
29908  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
29909
29910    # Do not complain, so a configure script can configure whichever
29911    # parts of a large source tree are present.
29912    test -d "$srcdir/$ac_dir" || continue
29913
29914    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
29915    echo "$as_me:$LINENO: $ac_msg" >&5
29916    echo "$ac_msg" >&6
29917    { as_dir="$ac_dir"
29918  case $as_dir in #(
29919  -*) as_dir=./$as_dir;;
29920  esac
29921  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29922    as_dirs=
29923    while :; do
29924      case $as_dir in #(
29925      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29926      *) as_qdir=$as_dir;;
29927      esac
29928      as_dirs="'$as_qdir' $as_dirs"
29929      as_dir=`$as_dirname -- "$as_dir" ||
29930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29931	 X"$as_dir" : 'X\(//\)[^/]' \| \
29932	 X"$as_dir" : 'X\(//\)$' \| \
29933	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29934echo X"$as_dir" |
29935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29936	    s//\1/
29937	    q
29938	  }
29939	  /^X\(\/\/\)[^/].*/{
29940	    s//\1/
29941	    q
29942	  }
29943	  /^X\(\/\/\)$/{
29944	    s//\1/
29945	    q
29946	  }
29947	  /^X\(\/\).*/{
29948	    s//\1/
29949	    q
29950	  }
29951	  s/.*/./; q'`
29952      test -d "$as_dir" && break
29953    done
29954    test -z "$as_dirs" || eval "mkdir $as_dirs"
29955  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29956echo "$as_me: error: cannot create directory $as_dir" >&2;}
29957   { (exit 1); exit 1; }; }; }
29958    ac_builddir=.
29959
29960case "$ac_dir" in
29961.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29962*)
29963  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29964  # A ".." for each directory in $ac_dir_suffix.
29965  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29966  case $ac_top_builddir_sub in
29967  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29968  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29969  esac ;;
29970esac
29971ac_abs_top_builddir=$ac_pwd
29972ac_abs_builddir=$ac_pwd$ac_dir_suffix
29973# for backward compatibility:
29974ac_top_builddir=$ac_top_build_prefix
29975
29976case $srcdir in
29977  .)  # We are building in place.
29978    ac_srcdir=.
29979    ac_top_srcdir=$ac_top_builddir_sub
29980    ac_abs_top_srcdir=$ac_pwd ;;
29981  [\\/]* | ?:[\\/]* )  # Absolute name.
29982    ac_srcdir=$srcdir$ac_dir_suffix;
29983    ac_top_srcdir=$srcdir
29984    ac_abs_top_srcdir=$srcdir ;;
29985  *) # Relative name.
29986    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29987    ac_top_srcdir=$ac_top_build_prefix$srcdir
29988    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29989esac
29990ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29991
29992
29993    cd "$ac_dir"
29994
29995    # Check for guested configure; otherwise get Cygnus style configure.
29996    if test -f "$ac_srcdir/configure.gnu"; then
29997      ac_sub_configure=$ac_srcdir/configure.gnu
29998    elif test -f "$ac_srcdir/configure"; then
29999      ac_sub_configure=$ac_srcdir/configure
30000    elif test -f "$ac_srcdir/configure.in"; then
30001      # This should be Cygnus configure.
30002      ac_sub_configure=$ac_aux_dir/configure
30003    else
30004      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
30005echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30006      ac_sub_configure=
30007    fi
30008
30009    # The recursion is here.
30010    if test -n "$ac_sub_configure"; then
30011      # Make the cache file name correct relative to the subdirectory.
30012      case $cache_file in
30013      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30014      *) # Relative name.
30015	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
30016      esac
30017
30018      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30019echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30020      # The eval makes quoting arguments work.
30021      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
30022	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
30023	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
30024echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
30025   { (exit 1); exit 1; }; }
30026    fi
30027
30028    cd "$ac_popdir"
30029  done
30030fi
30031
30032
30033