1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60.
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 Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells that exist, to save several forks.
234	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235		{ ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538# Check that we are running under the correct shell.
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541case X$ECHO in
542X*--fallback-echo)
543  # Remove one level of quotation (which was required for Make).
544  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545  ;;
546esac
547
548echo=${ECHO-echo}
549if test "X$1" = X--no-reexec; then
550  # Discard the --no-reexec flag, and continue.
551  shift
552elif test "X$1" = X--fallback-echo; then
553  # Avoid inline document here, it may be left over
554  :
555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556  # Yippee, $echo works!
557  :
558else
559  # Restart under the correct shell.
560  exec $SHELL "$0" --no-reexec ${1+"$@"}
561fi
562
563if test "X$1" = X--fallback-echo; then
564  # used as fallback echo
565  shift
566  cat <<EOF
567$*
568EOF
569  exit 0
570fi
571
572# The HP-UX ksh and POSIX shell print the target directory to stdout
573# if CDPATH is set.
574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576if test -z "$ECHO"; then
577if test "X${echo_test_string+set}" != Xset; then
578# find a string as large as possible, as long as the shell can cope with it
579  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582       echo_test_string=`eval $cmd` &&
583       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584    then
585      break
586    fi
587  done
588fi
589
590if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592   test "X$echo_testing_string" = "X$echo_test_string"; then
593  :
594else
595  # The Solaris, AIX, and Digital Unix default echo programs unquote
596  # backslashes.  This makes it impossible to quote backslashes using
597  #   echo "$something" | sed 's/\\/\\\\/g'
598  #
599  # So, first we look for a working echo in the user's PATH.
600
601  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602  for dir in $PATH /usr/ucb; do
603    IFS="$lt_save_ifs"
604    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607       test "X$echo_testing_string" = "X$echo_test_string"; then
608      echo="$dir/echo"
609      break
610    fi
611  done
612  IFS="$lt_save_ifs"
613
614  if test "X$echo" = Xecho; then
615    # We didn't find a better echo, so look for alternatives.
616    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618       test "X$echo_testing_string" = "X$echo_test_string"; then
619      # This shell has a builtin print -r that does the trick.
620      echo='print -r'
621    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622	 test "X$CONFIG_SHELL" != X/bin/ksh; then
623      # If we have ksh, try running configure again with it.
624      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625      export ORIGINAL_CONFIG_SHELL
626      CONFIG_SHELL=/bin/ksh
627      export CONFIG_SHELL
628      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629    else
630      # Try using printf.
631      echo='printf %s\n'
632      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634	 test "X$echo_testing_string" = "X$echo_test_string"; then
635	# Cool, printf works
636	:
637      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	   test "X$echo_testing_string" = 'X\t' &&
639	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	   test "X$echo_testing_string" = "X$echo_test_string"; then
641	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642	export CONFIG_SHELL
643	SHELL="$CONFIG_SHELL"
644	export SHELL
645	echo="$CONFIG_SHELL $0 --fallback-echo"
646      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647	   test "X$echo_testing_string" = 'X\t' &&
648	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649	   test "X$echo_testing_string" = "X$echo_test_string"; then
650	echo="$CONFIG_SHELL $0 --fallback-echo"
651      else
652	# maybe with a smaller string...
653	prev=:
654
655	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657	  then
658	    break
659	  fi
660	  prev="$cmd"
661	done
662
663	if test "$prev" != 'sed 50q "$0"'; then
664	  echo_test_string=`eval $prev`
665	  export echo_test_string
666	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667	else
668	  # Oops.  We lost completely, so just stick with echo.
669	  echo=echo
670	fi
671      fi
672    fi
673  fi
674fi
675fi
676
677# Copy echo and quote the copy suitably for passing to libtool from
678# the Makefile, instead of quoting the original, which is used later.
679ECHO=$echo
680if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682fi
683
684
685
686
687tagnames=${tagnames+${tagnames},}CXX
688
689tagnames=${tagnames+${tagnames},}F77
690
691exec 7<&0 </dev/null 6>&1
692
693# Name of the host.
694# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695# so uname gets run too.
696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
702ac_clean_files=
703ac_config_libobj_dir=.
704LIBOBJS=
705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709SHELL=${CONFIG_SHELL-/bin/sh}
710
711# Identity of this package.
712PACKAGE_NAME=
713PACKAGE_TARNAME=
714PACKAGE_VERSION=
715PACKAGE_STRING=
716PACKAGE_BUGREPORT=
717
718ac_unique_file="lib/iconv.c"
719# Factoring default headers for most tests.
720ac_includes_default="\
721#include <stdio.h>
722#if HAVE_SYS_TYPES_H
723# include <sys/types.h>
724#endif
725#if HAVE_SYS_STAT_H
726# include <sys/stat.h>
727#endif
728#if STDC_HEADERS
729# include <stdlib.h>
730# include <stddef.h>
731#else
732# if HAVE_STDLIB_H
733#  include <stdlib.h>
734# endif
735#endif
736#if HAVE_STRING_H
737# if !STDC_HEADERS && HAVE_MEMORY_H
738#  include <memory.h>
739# endif
740# include <string.h>
741#endif
742#if HAVE_STRINGS_H
743# include <strings.h>
744#endif
745#if HAVE_INTTYPES_H
746# include <inttypes.h>
747#endif
748#if HAVE_STDINT_H
749# include <stdint.h>
750#endif
751#if HAVE_UNISTD_H
752# include <unistd.h>
753#endif"
754
755ac_subst_vars='SHELL
756PATH_SEPARATOR
757PACKAGE_NAME
758PACKAGE_TARNAME
759PACKAGE_VERSION
760PACKAGE_STRING
761PACKAGE_BUGREPORT
762exec_prefix
763prefix
764program_transform_name
765bindir
766sbindir
767libexecdir
768datarootdir
769datadir
770sysconfdir
771sharedstatedir
772localstatedir
773includedir
774oldincludedir
775docdir
776infodir
777htmldir
778dvidir
779pdfdir
780psdir
781libdir
782localedir
783mandir
784DEFS
785ECHO_C
786ECHO_N
787ECHO_T
788LIBS
789build_alias
790host_alias
791target_alias
792INSTALL_PROGRAM
793INSTALL_SCRIPT
794INSTALL_DATA
795CYGPATH_W
796PACKAGE
797VERSION
798ACLOCAL
799AUTOCONF
800AUTOMAKE
801AUTOHEADER
802MAKEINFO
803install_sh
804STRIP
805INSTALL_STRIP_PROGRAM
806mkdir_p
807AWK
808SET_MAKE
809am__leading_dot
810AMTAR
811am__tar
812am__untar
813CC
814CFLAGS
815LDFLAGS
816CPPFLAGS
817ac_ct_CC
818EXEEXT
819OBJEXT
820DEPDIR
821am__include
822am__quote
823AMDEP_TRUE
824AMDEP_FALSE
825AMDEPBACKSLASH
826CCDEPMODE
827am__fastdepCC_TRUE
828am__fastdepCC_FALSE
829CPP
830GREP
831EGREP
832build
833build_cpu
834build_vendor
835build_os
836host
837host_cpu
838host_vendor
839host_os
840RELOCATABLE
841SET_RELOCATABLE
842RELOCATABLE_VIA_LD_TRUE
843RELOCATABLE_VIA_LD_FALSE
844USE_EXTRA_ENCODINGS
845RANLIB
846CP
847LN
848LN_S
849ECHO
850AR
851DLLTOOL
852AS
853OBJDUMP
854CXX
855CXXFLAGS
856ac_ct_CXX
857CXXDEPMODE
858am__fastdepCXX_TRUE
859am__fastdepCXX_FALSE
860CXXCPP
861F77
862FFLAGS
863ac_ct_F77
864LIBTOOL
865CFLAG_VISIBILITY
866HAVE_VISIBILITY
867LIBICONV
868LTLIBICONV
869USE_NLS
870MSGFMT
871GMSGFMT
872MSGFMT_015
873GMSGFMT_015
874XGETTEXT
875XGETTEXT_015
876MSGMERGE
877INTL_MACOSX_LIBS
878INTLLIBS
879LIBINTL
880LTLIBINTL
881POSUB
882UNISTD_H
883HAVE_WCHAR_H
884FULL_PATH_STDINT_H
885HAVE_STDINT_H
886FULL_PATH_INTTYPES_H
887HAVE_INTTYPES_H
888HAVE_SYS_INTTYPES_H
889HAVE_SYS_BITYPES_H
890HAVE_LONG_64BIT
891HAVE_LONG_LONG_64BIT
892HAVE_INT8_T
893HAVE_INT16_T
894HAVE_INT32_T
895HAVE_INT64_T
896HAVE_UINT8_T
897HAVE_UINT16_T
898HAVE_UINT32_T
899HAVE_UINT64_T
900HAVE_INT_LEAST8_T
901HAVE_INT_LEAST16_T
902HAVE_INT_LEAST32_T
903HAVE_INT_LEAST64_T
904HAVE_UINT_LEAST8_T
905HAVE_UINT_LEAST16_T
906HAVE_UINT_LEAST32_T
907HAVE_UINT_LEAST64_T
908HAVE_INT_FAST8_T
909HAVE_INT_FAST16_T
910HAVE_INT_FAST32_T
911HAVE_INT_FAST64_T
912HAVE_UINT_FAST8_T
913HAVE_UINT_FAST16_T
914HAVE_UINT_FAST32_T
915HAVE_UINT_FAST64_T
916HAVE_INTPTR_T
917HAVE_UINTPTR_T
918HAVE_INTMAX_T
919HAVE_UINTMAX_T
920HAVE_INT64_T_IN_STDINT_H
921HAVE_UINT64_T_IN_STDINT_H
922HAVE_INT_LEAST64_T_IN_STDINT_H
923HAVE_UINT_LEAST64_T_IN_STDINT_H
924HAVE_INT_FAST64_T_IN_STDINT_H
925HAVE_UINT_FAST64_T_IN_STDINT_H
926BITSIZEOF_INT8_T
927BITSIZEOF_INT16_T
928BITSIZEOF_INT32_T
929BITSIZEOF_INT64_T
930BITSIZEOF_UINT8_T
931BITSIZEOF_UINT16_T
932BITSIZEOF_UINT32_T
933BITSIZEOF_UINT64_T
934BITSIZEOF_INT_LEAST8_T
935BITSIZEOF_INT_LEAST16_T
936BITSIZEOF_INT_LEAST32_T
937BITSIZEOF_INT_LEAST64_T
938BITSIZEOF_UINT_LEAST8_T
939BITSIZEOF_UINT_LEAST16_T
940BITSIZEOF_UINT_LEAST32_T
941BITSIZEOF_UINT_LEAST64_T
942BITSIZEOF_INT_FAST8_T
943BITSIZEOF_INT_FAST16_T
944BITSIZEOF_INT_FAST32_T
945BITSIZEOF_INT_FAST64_T
946BITSIZEOF_UINT_FAST8_T
947BITSIZEOF_UINT_FAST16_T
948BITSIZEOF_UINT_FAST32_T
949BITSIZEOF_UINT_FAST64_T
950BITSIZEOF_INTPTR_T
951BITSIZEOF_UINTPTR_T
952BITSIZEOF_INTMAX_T
953BITSIZEOF_UINTMAX_T
954BITSIZEOF_UNSIGNED_INT
955BITSIZEOF_LONG
956BITSIZEOF_UNSIGNED_LONG
957BITSIZEOF_PTRDIFF_T
958BITSIZEOF_SIZE_T
959SAME_TYPE_PTRDIFF_T_LONG
960SAME_TYPE_SIZE_T_UNSIGNED_LONG
961BITSIZEOF_SIG_ATOMIC_T
962HAVE_SIGNED_SIG_ATOMIC_T
963SAME_TYPE_SIG_ATOMIC_T_LONG
964SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG
965BITSIZEOF_WCHAR_T
966HAVE_SIGNED_WCHAR_T
967SAME_TYPE_WCHAR_T_LONG
968SAME_TYPE_WCHAR_T_UNSIGNED_LONG
969BITSIZEOF_WINT_T
970HAVE_SIGNED_WINT_T
971SAME_TYPE_WINT_T_LONG
972SAME_TYPE_WINT_T_UNSIGNED_LONG
973STDINT_H
974ICONV_CONST
975HAVE_WCHAR_T
976EILSEQ
977ALLOCA
978ALLOCA_H
979STDBOOL_H
980HAVE__BOOL
981SRCLIBOBJS
982OS
983GCC
984PLUGLIB
985WOE32DLL
986DLL_VARIABLE
987subdirs
988LIBOBJS
989LTLIBOBJS'
990ac_subst_files=''
991      ac_precious_vars='build_alias
992host_alias
993target_alias
994CC
995CFLAGS
996LDFLAGS
997CPPFLAGS
998CPP
999CXX
1000CXXFLAGS
1001CCC
1002CXXCPP
1003F77
1004FFLAGS'
1005ac_subdirs_all='libcharset'
1006
1007# Initialize some variables set by options.
1008ac_init_help=
1009ac_init_version=false
1010# The variables have the same names as the options, with
1011# dashes changed to underlines.
1012cache_file=/dev/null
1013exec_prefix=NONE
1014no_create=
1015no_recursion=
1016prefix=NONE
1017program_prefix=NONE
1018program_suffix=NONE
1019program_transform_name=s,x,x,
1020silent=
1021site=
1022srcdir=
1023verbose=
1024x_includes=NONE
1025x_libraries=NONE
1026
1027# Installation directory options.
1028# These are left unexpanded so users can "make install exec_prefix=/foo"
1029# and all the variables that are supposed to be based on exec_prefix
1030# by default will actually change.
1031# Use braces instead of parens because sh, perl, etc. also accept them.
1032# (The list follows the same order as the GNU Coding Standards.)
1033bindir='${exec_prefix}/bin'
1034sbindir='${exec_prefix}/sbin'
1035libexecdir='${exec_prefix}/libexec'
1036datarootdir='${prefix}/share'
1037datadir='${datarootdir}'
1038sysconfdir='${prefix}/etc'
1039sharedstatedir='${prefix}/com'
1040localstatedir='${prefix}/var'
1041includedir='${prefix}/include'
1042oldincludedir='/usr/include'
1043docdir='${datarootdir}/doc/${PACKAGE}'
1044infodir='${datarootdir}/info'
1045htmldir='${docdir}'
1046dvidir='${docdir}'
1047pdfdir='${docdir}'
1048psdir='${docdir}'
1049libdir='${exec_prefix}/lib'
1050localedir='${datarootdir}/locale'
1051mandir='${datarootdir}/man'
1052
1053ac_prev=
1054ac_dashdash=
1055for ac_option
1056do
1057  # If the previous option needs an argument, assign it.
1058  if test -n "$ac_prev"; then
1059    eval $ac_prev=\$ac_option
1060    ac_prev=
1061    continue
1062  fi
1063
1064  case $ac_option in
1065  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066  *)	ac_optarg=yes ;;
1067  esac
1068
1069  # Accept the important Cygnus configure options, so we can diagnose typos.
1070
1071  case $ac_dashdash$ac_option in
1072  --)
1073    ac_dashdash=yes ;;
1074
1075  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076    ac_prev=bindir ;;
1077  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078    bindir=$ac_optarg ;;
1079
1080  -build | --build | --buil | --bui | --bu)
1081    ac_prev=build_alias ;;
1082  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083    build_alias=$ac_optarg ;;
1084
1085  -cache-file | --cache-file | --cache-fil | --cache-fi \
1086  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087    ac_prev=cache_file ;;
1088  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090    cache_file=$ac_optarg ;;
1091
1092  --config-cache | -C)
1093    cache_file=config.cache ;;
1094
1095  -datadir | --datadir | --datadi | --datad)
1096    ac_prev=datadir ;;
1097  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098    datadir=$ac_optarg ;;
1099
1100  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101  | --dataroo | --dataro | --datar)
1102    ac_prev=datarootdir ;;
1103  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105    datarootdir=$ac_optarg ;;
1106
1107  -disable-* | --disable-*)
1108    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1111      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1112   { (exit 1); exit 1; }; }
1113    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1114    eval enable_$ac_feature=no ;;
1115
1116  -docdir | --docdir | --docdi | --doc | --do)
1117    ac_prev=docdir ;;
1118  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119    docdir=$ac_optarg ;;
1120
1121  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1122    ac_prev=dvidir ;;
1123  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124    dvidir=$ac_optarg ;;
1125
1126  -enable-* | --enable-*)
1127    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1130      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1131   { (exit 1); exit 1; }; }
1132    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1133    eval enable_$ac_feature=\$ac_optarg ;;
1134
1135  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1136  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1137  | --exec | --exe | --ex)
1138    ac_prev=exec_prefix ;;
1139  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1140  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1141  | --exec=* | --exe=* | --ex=*)
1142    exec_prefix=$ac_optarg ;;
1143
1144  -gas | --gas | --ga | --g)
1145    # Obsolete; use --with-gas.
1146    with_gas=yes ;;
1147
1148  -help | --help | --hel | --he | -h)
1149    ac_init_help=long ;;
1150  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1151    ac_init_help=recursive ;;
1152  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1153    ac_init_help=short ;;
1154
1155  -host | --host | --hos | --ho)
1156    ac_prev=host_alias ;;
1157  -host=* | --host=* | --hos=* | --ho=*)
1158    host_alias=$ac_optarg ;;
1159
1160  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1161    ac_prev=htmldir ;;
1162  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1163  | --ht=*)
1164    htmldir=$ac_optarg ;;
1165
1166  -includedir | --includedir | --includedi | --included | --include \
1167  | --includ | --inclu | --incl | --inc)
1168    ac_prev=includedir ;;
1169  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1170  | --includ=* | --inclu=* | --incl=* | --inc=*)
1171    includedir=$ac_optarg ;;
1172
1173  -infodir | --infodir | --infodi | --infod | --info | --inf)
1174    ac_prev=infodir ;;
1175  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1176    infodir=$ac_optarg ;;
1177
1178  -libdir | --libdir | --libdi | --libd)
1179    ac_prev=libdir ;;
1180  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1181    libdir=$ac_optarg ;;
1182
1183  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1184  | --libexe | --libex | --libe)
1185    ac_prev=libexecdir ;;
1186  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1187  | --libexe=* | --libex=* | --libe=*)
1188    libexecdir=$ac_optarg ;;
1189
1190  -localedir | --localedir | --localedi | --localed | --locale)
1191    ac_prev=localedir ;;
1192  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1193    localedir=$ac_optarg ;;
1194
1195  -localstatedir | --localstatedir | --localstatedi | --localstated \
1196  | --localstate | --localstat | --localsta | --localst | --locals)
1197    ac_prev=localstatedir ;;
1198  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1199  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1200    localstatedir=$ac_optarg ;;
1201
1202  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1203    ac_prev=mandir ;;
1204  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1205    mandir=$ac_optarg ;;
1206
1207  -nfp | --nfp | --nf)
1208    # Obsolete; use --without-fp.
1209    with_fp=no ;;
1210
1211  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1212  | --no-cr | --no-c | -n)
1213    no_create=yes ;;
1214
1215  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1216  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1217    no_recursion=yes ;;
1218
1219  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1220  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1221  | --oldin | --oldi | --old | --ol | --o)
1222    ac_prev=oldincludedir ;;
1223  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1224  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1225  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1226    oldincludedir=$ac_optarg ;;
1227
1228  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1229    ac_prev=prefix ;;
1230  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1231    prefix=$ac_optarg ;;
1232
1233  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1234  | --program-pre | --program-pr | --program-p)
1235    ac_prev=program_prefix ;;
1236  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1237  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1238    program_prefix=$ac_optarg ;;
1239
1240  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1241  | --program-suf | --program-su | --program-s)
1242    ac_prev=program_suffix ;;
1243  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1244  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1245    program_suffix=$ac_optarg ;;
1246
1247  -program-transform-name | --program-transform-name \
1248  | --program-transform-nam | --program-transform-na \
1249  | --program-transform-n | --program-transform- \
1250  | --program-transform | --program-transfor \
1251  | --program-transfo | --program-transf \
1252  | --program-trans | --program-tran \
1253  | --progr-tra | --program-tr | --program-t)
1254    ac_prev=program_transform_name ;;
1255  -program-transform-name=* | --program-transform-name=* \
1256  | --program-transform-nam=* | --program-transform-na=* \
1257  | --program-transform-n=* | --program-transform-=* \
1258  | --program-transform=* | --program-transfor=* \
1259  | --program-transfo=* | --program-transf=* \
1260  | --program-trans=* | --program-tran=* \
1261  | --progr-tra=* | --program-tr=* | --program-t=*)
1262    program_transform_name=$ac_optarg ;;
1263
1264  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1265    ac_prev=pdfdir ;;
1266  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1267    pdfdir=$ac_optarg ;;
1268
1269  -psdir | --psdir | --psdi | --psd | --ps)
1270    ac_prev=psdir ;;
1271  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1272    psdir=$ac_optarg ;;
1273
1274  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275  | -silent | --silent | --silen | --sile | --sil)
1276    silent=yes ;;
1277
1278  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1279    ac_prev=sbindir ;;
1280  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1281  | --sbi=* | --sb=*)
1282    sbindir=$ac_optarg ;;
1283
1284  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1285  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1286  | --sharedst | --shareds | --shared | --share | --shar \
1287  | --sha | --sh)
1288    ac_prev=sharedstatedir ;;
1289  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1290  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1291  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1292  | --sha=* | --sh=*)
1293    sharedstatedir=$ac_optarg ;;
1294
1295  -site | --site | --sit)
1296    ac_prev=site ;;
1297  -site=* | --site=* | --sit=*)
1298    site=$ac_optarg ;;
1299
1300  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1301    ac_prev=srcdir ;;
1302  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1303    srcdir=$ac_optarg ;;
1304
1305  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1306  | --syscon | --sysco | --sysc | --sys | --sy)
1307    ac_prev=sysconfdir ;;
1308  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1309  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1310    sysconfdir=$ac_optarg ;;
1311
1312  -target | --target | --targe | --targ | --tar | --ta | --t)
1313    ac_prev=target_alias ;;
1314  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1315    target_alias=$ac_optarg ;;
1316
1317  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1318    verbose=yes ;;
1319
1320  -version | --version | --versio | --versi | --vers | -V)
1321    ac_init_version=: ;;
1322
1323  -with-* | --with-*)
1324    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1325    # Reject names that are not valid shell variable names.
1326    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1327      { echo "$as_me: error: invalid package name: $ac_package" >&2
1328   { (exit 1); exit 1; }; }
1329    ac_package=`echo $ac_package| sed 's/-/_/g'`
1330    eval with_$ac_package=\$ac_optarg ;;
1331
1332  -without-* | --without-*)
1333    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334    # Reject names that are not valid shell variable names.
1335    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1336      { echo "$as_me: error: invalid package name: $ac_package" >&2
1337   { (exit 1); exit 1; }; }
1338    ac_package=`echo $ac_package | sed 's/-/_/g'`
1339    eval with_$ac_package=no ;;
1340
1341  --x)
1342    # Obsolete; use --with-x.
1343    with_x=yes ;;
1344
1345  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346  | --x-incl | --x-inc | --x-in | --x-i)
1347    ac_prev=x_includes ;;
1348  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350    x_includes=$ac_optarg ;;
1351
1352  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354    ac_prev=x_libraries ;;
1355  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357    x_libraries=$ac_optarg ;;
1358
1359  -*) { echo "$as_me: error: unrecognized option: $ac_option
1360Try \`$0 --help' for more information." >&2
1361   { (exit 1); exit 1; }; }
1362    ;;
1363
1364  *=*)
1365    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366    # Reject names that are not valid shell variable names.
1367    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1368      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1369   { (exit 1); exit 1; }; }
1370    eval $ac_envvar=\$ac_optarg
1371    export $ac_envvar ;;
1372
1373  *)
1374    # FIXME: should be removed in autoconf 3.0.
1375    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1379    ;;
1380
1381  esac
1382done
1383
1384if test -n "$ac_prev"; then
1385  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386  { echo "$as_me: error: missing argument to $ac_option" >&2
1387   { (exit 1); exit 1; }; }
1388fi
1389
1390# Be sure to have absolute directory names.
1391for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392		datadir sysconfdir sharedstatedir localstatedir includedir \
1393		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394		libdir localedir mandir
1395do
1396  eval ac_val=\$$ac_var
1397  case $ac_val in
1398    [\\/$]* | ?:[\\/]* )  continue;;
1399    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400  esac
1401  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1402   { (exit 1); exit 1; }; }
1403done
1404
1405# There might be people who depend on the old broken behavior: `$host'
1406# used to hold the argument of --host etc.
1407# FIXME: To remove some day.
1408build=$build_alias
1409host=$host_alias
1410target=$target_alias
1411
1412# FIXME: To remove some day.
1413if test "x$host_alias" != x; then
1414  if test "x$build_alias" = x; then
1415    cross_compiling=maybe
1416    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417    If a cross compiler is detected then cross compile mode will be used." >&2
1418  elif test "x$build_alias" != "x$host_alias"; then
1419    cross_compiling=yes
1420  fi
1421fi
1422
1423ac_tool_prefix=
1424test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426test "$silent" = yes && exec 6>/dev/null
1427
1428
1429ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430ac_ls_di=`ls -di .` &&
1431ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432  { echo "$as_me: error: Working directory cannot be determined" >&2
1433   { (exit 1); exit 1; }; }
1434test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435  { echo "$as_me: error: pwd does not report name of working directory" >&2
1436   { (exit 1); exit 1; }; }
1437
1438
1439# Find the source files, if location was not specified.
1440if test -z "$srcdir"; then
1441  ac_srcdir_defaulted=yes
1442  # Try the directory containing this script, then the parent directory.
1443  ac_confdir=`$as_dirname -- "$0" ||
1444$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445	 X"$0" : 'X\(//\)[^/]' \| \
1446	 X"$0" : 'X\(//\)$' \| \
1447	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1448echo X"$0" |
1449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450	    s//\1/
1451	    q
1452	  }
1453	  /^X\(\/\/\)[^/].*/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)$/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\).*/{
1462	    s//\1/
1463	    q
1464	  }
1465	  s/.*/./; q'`
1466  srcdir=$ac_confdir
1467  if test ! -r "$srcdir/$ac_unique_file"; then
1468    srcdir=..
1469  fi
1470else
1471  ac_srcdir_defaulted=no
1472fi
1473if test ! -r "$srcdir/$ac_unique_file"; then
1474  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1475  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1476   { (exit 1); exit 1; }; }
1477fi
1478ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479ac_abs_confdir=`(
1480	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1481   { (exit 1); exit 1; }; }
1482	pwd)`
1483# When building in place, set srcdir=.
1484if test "$ac_abs_confdir" = "$ac_pwd"; then
1485  srcdir=.
1486fi
1487# Remove unnecessary trailing slashes from srcdir.
1488# Double slashes in file names in object file debugging info
1489# mess up M-x gdb in Emacs.
1490case $srcdir in
1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492esac
1493for ac_var in $ac_precious_vars; do
1494  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495  eval ac_env_${ac_var}_value=\$${ac_var}
1496  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498done
1499
1500#
1501# Report the --help message.
1502#
1503if test "$ac_init_help" = "long"; then
1504  # Omit some internal or obsolete options to make the list less imposing.
1505  # This message is too long to be a string in the A/UX 3.1 sh.
1506  cat <<_ACEOF
1507\`configure' configures this package to adapt to many kinds of systems.
1508
1509Usage: $0 [OPTION]... [VAR=VALUE]...
1510
1511To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512VAR=VALUE.  See below for descriptions of some of the useful variables.
1513
1514Defaults for the options are specified in brackets.
1515
1516Configuration:
1517  -h, --help              display this help and exit
1518      --help=short        display options specific to this package
1519      --help=recursive    display the short help of all the included packages
1520  -V, --version           display version information and exit
1521  -q, --quiet, --silent   do not print \`checking...' messages
1522      --cache-file=FILE   cache test results in FILE [disabled]
1523  -C, --config-cache      alias for \`--cache-file=config.cache'
1524  -n, --no-create         do not create output files
1525      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1526
1527Installation directories:
1528  --prefix=PREFIX         install architecture-independent files in PREFIX
1529			  [$ac_default_prefix]
1530  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1531			  [PREFIX]
1532
1533By default, \`make install' will install all the files in
1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1535an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536for instance \`--prefix=\$HOME'.
1537
1538For better control, use the options below.
1539
1540Fine tuning of the installation directories:
1541  --bindir=DIR           user executables [EPREFIX/bin]
1542  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1543  --libexecdir=DIR       program executables [EPREFIX/libexec]
1544  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1545  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1546  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1547  --libdir=DIR           object code libraries [EPREFIX/lib]
1548  --includedir=DIR       C header files [PREFIX/include]
1549  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1550  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1551  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1552  --infodir=DIR          info documentation [DATAROOTDIR/info]
1553  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1554  --mandir=DIR           man documentation [DATAROOTDIR/man]
1555  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1556  --htmldir=DIR          html documentation [DOCDIR]
1557  --dvidir=DIR           dvi documentation [DOCDIR]
1558  --pdfdir=DIR           pdf documentation [DOCDIR]
1559  --psdir=DIR            ps documentation [DOCDIR]
1560_ACEOF
1561
1562  cat <<\_ACEOF
1563
1564Program names:
1565  --program-prefix=PREFIX            prepend PREFIX to installed program names
1566  --program-suffix=SUFFIX            append SUFFIX to installed program names
1567  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1568
1569System types:
1570  --build=BUILD     configure for building on BUILD [guessed]
1571  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1572_ACEOF
1573fi
1574
1575if test -n "$ac_init_help"; then
1576
1577  cat <<\_ACEOF
1578
1579Optional Features:
1580  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1581  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1582  --disable-dependency-tracking  speeds up one-time build
1583  --enable-dependency-tracking   do not reject slow dependency extractors
1584  --enable-relocatable    install a package that can be moved in the filesystem
1585  --enable-extra-encodings
1586                          add support for a few rarely used encodings
1587  --enable-static[=PKGS]  build static libraries [default=no]
1588  --enable-shared[=PKGS]  build shared libraries [default=yes]
1589  --enable-fast-install[=PKGS]
1590                          optimize for fast installation [default=yes]
1591  --disable-libtool-lock  avoid locking (might break parallel builds)
1592  --disable-rpath         do not hardcode runtime library paths
1593  --disable-nls           do not use Native Language Support
1594
1595Optional Packages:
1596  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1597  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1598  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1599  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1600  --with-pic              try to use only PIC/non-PIC objects [default=use
1601                          both]
1602  --with-tags[=TAGS]      include additional configurations [automatic]
1603  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1604  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1605  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1606  --without-libintl-prefix     don't search for libintl in includedir and libdir
1607
1608Some influential environment variables:
1609  CC          C compiler command
1610  CFLAGS      C compiler flags
1611  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612              nonstandard directory <lib dir>
1613  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1614              you have headers in a nonstandard directory <include dir>
1615  CPP         C preprocessor
1616  CXX         C++ compiler command
1617  CXXFLAGS    C++ compiler flags
1618  CXXCPP      C++ preprocessor
1619  F77         Fortran 77 compiler command
1620  FFLAGS      Fortran 77 compiler flags
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
1625_ACEOF
1626ac_status=$?
1627fi
1628
1629if test "$ac_init_help" = "recursive"; then
1630  # If there are subdirs, report their specific --help.
1631  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632    test -d "$ac_dir" || continue
1633    ac_builddir=.
1634
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
1638  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639  # A ".." for each directory in $ac_dir_suffix.
1640  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641  case $ac_top_builddir_sub in
1642  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644  esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
1650
1651case $srcdir in
1652  .)  # We are building in place.
1653    ac_srcdir=.
1654    ac_top_srcdir=$ac_top_builddir_sub
1655    ac_abs_top_srcdir=$ac_pwd ;;
1656  [\\/]* | ?:[\\/]* )  # Absolute name.
1657    ac_srcdir=$srcdir$ac_dir_suffix;
1658    ac_top_srcdir=$srcdir
1659    ac_abs_top_srcdir=$srcdir ;;
1660  *) # Relative name.
1661    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662    ac_top_srcdir=$ac_top_build_prefix$srcdir
1663    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664esac
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667    cd "$ac_dir" || { ac_status=$?; continue; }
1668    # Check for guested configure.
1669    if test -f "$ac_srcdir/configure.gnu"; then
1670      echo &&
1671      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672    elif test -f "$ac_srcdir/configure"; then
1673      echo &&
1674      $SHELL "$ac_srcdir/configure" --help=recursive
1675    else
1676      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677    fi || ac_status=$?
1678    cd "$ac_pwd" || { ac_status=$?; break; }
1679  done
1680fi
1681
1682test -n "$ac_init_help" && exit $ac_status
1683if $ac_init_version; then
1684  cat <<\_ACEOF
1685configure
1686generated by GNU Autoconf 2.60
1687
1688Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16892002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690This configure script is free software; the Free Software Foundation
1691gives unlimited permission to copy, distribute and modify it.
1692_ACEOF
1693  exit
1694fi
1695cat >config.log <<_ACEOF
1696This file contains any messages produced by compilers while
1697running configure, to aid debugging if configure makes a mistake.
1698
1699It was created by $as_me, which was
1700generated by GNU Autoconf 2.60.  Invocation command line was
1701
1702  $ $0 $@
1703
1704_ACEOF
1705exec 5>>config.log
1706{
1707cat <<_ASUNAME
1708## --------- ##
1709## Platform. ##
1710## --------- ##
1711
1712hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717
1718/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1720
1721/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1722/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1723/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1725/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1726/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1727/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1728
1729_ASUNAME
1730
1731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734  IFS=$as_save_IFS
1735  test -z "$as_dir" && as_dir=.
1736  echo "PATH: $as_dir"
1737done
1738IFS=$as_save_IFS
1739
1740} >&5
1741
1742cat >&5 <<_ACEOF
1743
1744
1745## ----------- ##
1746## Core tests. ##
1747## ----------- ##
1748
1749_ACEOF
1750
1751
1752# Keep a trace of the command line.
1753# Strip out --no-create and --no-recursion so they do not pile up.
1754# Strip out --silent because we don't want to record it for future runs.
1755# Also quote any args containing shell meta-characters.
1756# Make two passes to allow for proper duplicate-argument suppression.
1757ac_configure_args=
1758ac_configure_args0=
1759ac_configure_args1=
1760ac_must_keep_next=false
1761for ac_pass in 1 2
1762do
1763  for ac_arg
1764  do
1765    case $ac_arg in
1766    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768    | -silent | --silent | --silen | --sile | --sil)
1769      continue ;;
1770    *\'*)
1771      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772    esac
1773    case $ac_pass in
1774    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775    2)
1776      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777      if test $ac_must_keep_next = true; then
1778	ac_must_keep_next=false # Got value, back to normal.
1779      else
1780	case $ac_arg in
1781	  *=* | --config-cache | -C | -disable-* | --disable-* \
1782	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784	  | -with-* | --with-* | -without-* | --without-* | --x)
1785	    case "$ac_configure_args0 " in
1786	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787	    esac
1788	    ;;
1789	  -* ) ac_must_keep_next=true ;;
1790	esac
1791      fi
1792      ac_configure_args="$ac_configure_args '$ac_arg'"
1793      ;;
1794    esac
1795  done
1796done
1797$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799
1800# When interrupted or exit'd, cleanup temporary files, and complete
1801# config.log.  We remove comments because anyway the quotes in there
1802# would cause problems or look ugly.
1803# WARNING: Use '\'' to represent an apostrophe within the trap.
1804# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805trap 'exit_status=$?
1806  # Save into config.log some information that might help in debugging.
1807  {
1808    echo
1809
1810    cat <<\_ASBOX
1811## ---------------- ##
1812## Cache variables. ##
1813## ---------------- ##
1814_ASBOX
1815    echo
1816    # The following way of writing the cache mishandles newlines in values,
1817(
1818  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819    eval ac_val=\$$ac_var
1820    case $ac_val in #(
1821    *${as_nl}*)
1822      case $ac_var in #(
1823      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825      esac
1826      case $ac_var in #(
1827      _ | IFS | as_nl) ;; #(
1828      *) $as_unset $ac_var ;;
1829      esac ;;
1830    esac
1831  done
1832  (set) 2>&1 |
1833    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834    *${as_nl}ac_space=\ *)
1835      sed -n \
1836	"s/'\''/'\''\\\\'\'''\''/g;
1837	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838      ;; #(
1839    *)
1840      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841      ;;
1842    esac |
1843    sort
1844)
1845    echo
1846
1847    cat <<\_ASBOX
1848## ----------------- ##
1849## Output variables. ##
1850## ----------------- ##
1851_ASBOX
1852    echo
1853    for ac_var in $ac_subst_vars
1854    do
1855      eval ac_val=\$$ac_var
1856      case $ac_val in
1857      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858      esac
1859      echo "$ac_var='\''$ac_val'\''"
1860    done | sort
1861    echo
1862
1863    if test -n "$ac_subst_files"; then
1864      cat <<\_ASBOX
1865## ------------------- ##
1866## File substitutions. ##
1867## ------------------- ##
1868_ASBOX
1869      echo
1870      for ac_var in $ac_subst_files
1871      do
1872	eval ac_val=\$$ac_var
1873	case $ac_val in
1874	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875	esac
1876	echo "$ac_var='\''$ac_val'\''"
1877      done | sort
1878      echo
1879    fi
1880
1881    if test -s confdefs.h; then
1882      cat <<\_ASBOX
1883## ----------- ##
1884## confdefs.h. ##
1885## ----------- ##
1886_ASBOX
1887      echo
1888      cat confdefs.h
1889      echo
1890    fi
1891    test "$ac_signal" != 0 &&
1892      echo "$as_me: caught signal $ac_signal"
1893    echo "$as_me: exit $exit_status"
1894  } >&5
1895  rm -f core *.core core.conftest.* &&
1896    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897    exit $exit_status
1898' 0
1899for ac_signal in 1 2 13 15; do
1900  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1901done
1902ac_signal=0
1903
1904# confdefs.h avoids OS command line length limits that DEFS can exceed.
1905rm -f -r conftest* confdefs.h
1906
1907# Predefined preprocessor variables.
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_NAME "$PACKAGE_NAME"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_VERSION "$PACKAGE_VERSION"
1921_ACEOF
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE_STRING "$PACKAGE_STRING"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931_ACEOF
1932
1933
1934# Let the site file select an alternate cache file if it wants to.
1935# Prefer explicitly selected file to automatically selected ones.
1936if test -n "$CONFIG_SITE"; then
1937  set x "$CONFIG_SITE"
1938elif test "x$prefix" != xNONE; then
1939  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1940else
1941  set x "$ac_default_prefix/share/config.site" \
1942	"$ac_default_prefix/etc/config.site"
1943fi
1944shift
1945for ac_site_file
1946do
1947  if test -r "$ac_site_file"; then
1948    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949echo "$as_me: loading site script $ac_site_file" >&6;}
1950    sed 's/^/| /' "$ac_site_file" >&5
1951    . "$ac_site_file"
1952  fi
1953done
1954
1955if test -r "$cache_file"; then
1956  # Some versions of bash will fail to source /dev/null (special
1957  # files actually), so we avoid doing that.
1958  if test -f "$cache_file"; then
1959    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960echo "$as_me: loading cache $cache_file" >&6;}
1961    case $cache_file in
1962      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963      *)                      . "./$cache_file";;
1964    esac
1965  fi
1966else
1967  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968echo "$as_me: creating cache $cache_file" >&6;}
1969  >$cache_file
1970fi
1971
1972# Check that the precious variables saved in the cache have kept the same
1973# value.
1974ac_cache_corrupted=false
1975for ac_var in $ac_precious_vars; do
1976  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977  eval ac_new_set=\$ac_env_${ac_var}_set
1978  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979  eval ac_new_val=\$ac_env_${ac_var}_value
1980  case $ac_old_set,$ac_new_set in
1981    set,)
1982      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984      ac_cache_corrupted=: ;;
1985    ,set)
1986      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988      ac_cache_corrupted=: ;;
1989    ,);;
1990    *)
1991      if test "x$ac_old_val" != "x$ac_new_val"; then
1992	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1995echo "$as_me:   former value:  $ac_old_val" >&2;}
1996	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1997echo "$as_me:   current value: $ac_new_val" >&2;}
1998	ac_cache_corrupted=:
1999      fi;;
2000  esac
2001  # Pass precious variables to config.status.
2002  if test "$ac_new_set" = set; then
2003    case $ac_new_val in
2004    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005    *) ac_arg=$ac_var=$ac_new_val ;;
2006    esac
2007    case " $ac_configure_args " in
2008      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2009      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2010    esac
2011  fi
2012done
2013if $ac_cache_corrupted; then
2014  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018   { (exit 1); exit 1; }; }
2019fi
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037ac_ext=c
2038ac_cpp='$CPP $CPPFLAGS'
2039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044
2045ac_aux_dir=
2046for ac_dir in build-aux "$srcdir"/build-aux; do
2047  if test -f "$ac_dir/install-sh"; then
2048    ac_aux_dir=$ac_dir
2049    ac_install_sh="$ac_aux_dir/install-sh -c"
2050    break
2051  elif test -f "$ac_dir/install.sh"; then
2052    ac_aux_dir=$ac_dir
2053    ac_install_sh="$ac_aux_dir/install.sh -c"
2054    break
2055  elif test -f "$ac_dir/shtool"; then
2056    ac_aux_dir=$ac_dir
2057    ac_install_sh="$ac_aux_dir/shtool install -c"
2058    break
2059  fi
2060done
2061if test -z "$ac_aux_dir"; then
2062  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2063echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2064   { (exit 1); exit 1; }; }
2065fi
2066
2067# These three variables are undocumented and unsupported,
2068# and are intended to be withdrawn in a future Autoconf release.
2069# They can cause serious problems if a builder's source tree is in a directory
2070# whose full name contains unusual characters.
2071ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2072ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2073ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2074
2075
2076am__api_version="1.9"
2077# Find a good install program.  We prefer a C program (faster),
2078# so one script is as good as another.  But avoid the broken or
2079# incompatible versions:
2080# SysV /etc/install, /usr/sbin/install
2081# SunOS /usr/etc/install
2082# IRIX /sbin/install
2083# AIX /bin/install
2084# AmigaOS /C/install, which installs bootblocks on floppy discs
2085# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2086# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2087# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2088# OS/2's system install, which has a completely different semantic
2089# ./install, which can be erroneously created by make from ./install.sh.
2090{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2091echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2092if test -z "$INSTALL"; then
2093if test "${ac_cv_path_install+set}" = set; then
2094  echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099  IFS=$as_save_IFS
2100  test -z "$as_dir" && as_dir=.
2101  # Account for people who put trailing slashes in PATH elements.
2102case $as_dir/ in
2103  ./ | .// | /cC/* | \
2104  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2105  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2106  /usr/ucb/* ) ;;
2107  *)
2108    # OSF1 and SCO ODT 3.0 have their own names for install.
2109    # Don't use installbsd from OSF since it installs stuff as root
2110    # by default.
2111    for ac_prog in ginstall scoinst install; do
2112      for ac_exec_ext in '' $ac_executable_extensions; do
2113	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2114	  if test $ac_prog = install &&
2115	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2116	    # AIX install.  It has an incompatible calling convention.
2117	    :
2118	  elif test $ac_prog = install &&
2119	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2120	    # program-specific install script used by HP pwplus--don't use.
2121	    :
2122	  else
2123	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2124	    break 3
2125	  fi
2126	fi
2127      done
2128    done
2129    ;;
2130esac
2131done
2132IFS=$as_save_IFS
2133
2134
2135fi
2136  if test "${ac_cv_path_install+set}" = set; then
2137    INSTALL=$ac_cv_path_install
2138  else
2139    # As a last resort, use the slow shell script.  Don't cache a
2140    # value for INSTALL within a source directory, because that will
2141    # break other packages using the cache if that directory is
2142    # removed, or if the value is a relative name.
2143    INSTALL=$ac_install_sh
2144  fi
2145fi
2146{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2147echo "${ECHO_T}$INSTALL" >&6; }
2148
2149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150# It thinks the first close brace ends the variable substitution.
2151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2152
2153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2154
2155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2156
2157{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2158echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2159# Just in case
2160sleep 1
2161echo timestamp > conftest.file
2162# Do `set' in a subshell so we don't clobber the current shell's
2163# arguments.  Must try -L first in case configure is actually a
2164# symlink; some systems play weird games with the mod time of symlinks
2165# (eg FreeBSD returns the mod time of the symlink's containing
2166# directory).
2167if (
2168   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2169   if test "$*" = "X"; then
2170      # -L didn't work.
2171      set X `ls -t $srcdir/configure conftest.file`
2172   fi
2173   rm -f conftest.file
2174   if test "$*" != "X $srcdir/configure conftest.file" \
2175      && test "$*" != "X conftest.file $srcdir/configure"; then
2176
2177      # If neither matched, then we have a broken ls.  This can happen
2178      # if, for instance, CONFIG_SHELL is bash and it inherits a
2179      # broken ls alias from the environment.  This has actually
2180      # happened.  Such a system could not be considered "sane".
2181      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2182alias in your environment" >&5
2183echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2184alias in your environment" >&2;}
2185   { (exit 1); exit 1; }; }
2186   fi
2187
2188   test "$2" = conftest.file
2189   )
2190then
2191   # Ok.
2192   :
2193else
2194   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2195Check your system clock" >&5
2196echo "$as_me: error: newly created file is older than distributed files!
2197Check your system clock" >&2;}
2198   { (exit 1); exit 1; }; }
2199fi
2200{ echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6; }
2202test "$program_prefix" != NONE &&
2203  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2204# Use a double $ so make ignores it.
2205test "$program_suffix" != NONE &&
2206  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2207# Double any \ or $.  echo might interpret backslashes.
2208# By default was `s,x,x', remove it if useless.
2209cat <<\_ACEOF >conftest.sed
2210s/[\\$]/&&/g;s/;s,x,x,$//
2211_ACEOF
2212program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2213rm -f conftest.sed
2214
2215# expand $ac_aux_dir to an absolute path
2216am_aux_dir=`cd $ac_aux_dir && pwd`
2217
2218test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2219# Use eval to expand $SHELL
2220if eval "$MISSING --run true"; then
2221  am_missing_run="$MISSING --run "
2222else
2223  am_missing_run=
2224  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2225echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2226fi
2227
2228if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2229  # We used to keeping the `.' as first argument, in order to
2230  # allow $(mkdir_p) to be used without argument.  As in
2231  #   $(mkdir_p) $(somedir)
2232  # where $(somedir) is conditionally defined.  However this is wrong
2233  # for two reasons:
2234  #  1. if the package is installed by a user who cannot write `.'
2235  #     make install will fail,
2236  #  2. the above comment should most certainly read
2237  #     $(mkdir_p) $(DESTDIR)$(somedir)
2238  #     so it does not work when $(somedir) is undefined and
2239  #     $(DESTDIR) is not.
2240  #  To support the latter case, we have to write
2241  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2242  #  so the `.' trick is pointless.
2243  mkdir_p='mkdir -p --'
2244else
2245  # On NextStep and OpenStep, the `mkdir' command does not
2246  # recognize any option.  It will interpret all options as
2247  # directories to create, and then abort because `.' already
2248  # exists.
2249  for d in ./-p ./--version;
2250  do
2251    test -d $d && rmdir $d
2252  done
2253  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2254  if test -f "$ac_aux_dir/mkinstalldirs"; then
2255    mkdir_p='$(mkinstalldirs)'
2256  else
2257    mkdir_p='$(install_sh) -d'
2258  fi
2259fi
2260
2261for ac_prog in gawk mawk nawk awk
2262do
2263  # Extract the first word of "$ac_prog", so it can be a program name with args.
2264set dummy $ac_prog; ac_word=$2
2265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267if test "${ac_cv_prog_AWK+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270  if test -n "$AWK"; then
2271  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2272else
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278  for ac_exec_ext in '' $ac_executable_extensions; do
2279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2280    ac_cv_prog_AWK="$ac_prog"
2281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282    break 2
2283  fi
2284done
2285done
2286IFS=$as_save_IFS
2287
2288fi
2289fi
2290AWK=$ac_cv_prog_AWK
2291if test -n "$AWK"; then
2292  { echo "$as_me:$LINENO: result: $AWK" >&5
2293echo "${ECHO_T}$AWK" >&6; }
2294else
2295  { echo "$as_me:$LINENO: result: no" >&5
2296echo "${ECHO_T}no" >&6; }
2297fi
2298
2299
2300  test -n "$AWK" && break
2301done
2302
2303{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2304echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2305set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2306if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  cat >conftest.make <<\_ACEOF
2310SHELL = /bin/sh
2311all:
2312	@echo '@@@%%%=$(MAKE)=@@@%%%'
2313_ACEOF
2314# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2315case `${MAKE-make} -f conftest.make 2>/dev/null` in
2316  *@@@%%%=?*=@@@%%%*)
2317    eval ac_cv_prog_make_${ac_make}_set=yes;;
2318  *)
2319    eval ac_cv_prog_make_${ac_make}_set=no;;
2320esac
2321rm -f conftest.make
2322fi
2323if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2324  { echo "$as_me:$LINENO: result: yes" >&5
2325echo "${ECHO_T}yes" >&6; }
2326  SET_MAKE=
2327else
2328  { echo "$as_me:$LINENO: result: no" >&5
2329echo "${ECHO_T}no" >&6; }
2330  SET_MAKE="MAKE=${MAKE-make}"
2331fi
2332
2333rm -rf .tst 2>/dev/null
2334mkdir .tst 2>/dev/null
2335if test -d .tst; then
2336  am__leading_dot=.
2337else
2338  am__leading_dot=_
2339fi
2340rmdir .tst 2>/dev/null
2341
2342# test to see if srcdir already configured
2343if test "`cd $srcdir && pwd`" != "`pwd`" &&
2344   test -f $srcdir/config.status; then
2345  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2346echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2347   { (exit 1); exit 1; }; }
2348fi
2349
2350# test whether we have cygpath
2351if test -z "$CYGPATH_W"; then
2352  if (cygpath --version) >/dev/null 2>/dev/null; then
2353    CYGPATH_W='cygpath -w'
2354  else
2355    CYGPATH_W=echo
2356  fi
2357fi
2358
2359
2360# Define the identity of the package.
2361 PACKAGE=libiconv
2362 VERSION=1.11
2363
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE "$PACKAGE"
2367_ACEOF
2368
2369
2370cat >>confdefs.h <<_ACEOF
2371#define VERSION "$VERSION"
2372_ACEOF
2373
2374# Some tools Automake needs.
2375
2376ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2377
2378
2379AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2380
2381
2382AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2383
2384
2385AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2386
2387
2388MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2389
2390install_sh=${install_sh-"$am_aux_dir/install-sh"}
2391
2392# Installed binaries are usually stripped using `strip' when the user
2393# run `make install-strip'.  However `strip' might not be the right
2394# tool to use in cross-compilation environments, therefore Automake
2395# will honor the `STRIP' environment variable to overrule this program.
2396if test "$cross_compiling" != no; then
2397  if test -n "$ac_tool_prefix"; then
2398  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2399set dummy ${ac_tool_prefix}strip; ac_word=$2
2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402if test "${ac_cv_prog_STRIP+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  if test -n "$STRIP"; then
2406  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411  IFS=$as_save_IFS
2412  test -z "$as_dir" && as_dir=.
2413  for ac_exec_ext in '' $ac_executable_extensions; do
2414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417    break 2
2418  fi
2419done
2420done
2421IFS=$as_save_IFS
2422
2423fi
2424fi
2425STRIP=$ac_cv_prog_STRIP
2426if test -n "$STRIP"; then
2427  { echo "$as_me:$LINENO: result: $STRIP" >&5
2428echo "${ECHO_T}$STRIP" >&6; }
2429else
2430  { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
2432fi
2433
2434
2435fi
2436if test -z "$ac_cv_prog_STRIP"; then
2437  ac_ct_STRIP=$STRIP
2438  # Extract the first word of "strip", so it can be a program name with args.
2439set dummy strip; ac_word=$2
2440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2443  echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445  if test -n "$ac_ct_STRIP"; then
2446  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451  IFS=$as_save_IFS
2452  test -z "$as_dir" && as_dir=.
2453  for ac_exec_ext in '' $ac_executable_extensions; do
2454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455    ac_cv_prog_ac_ct_STRIP="strip"
2456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457    break 2
2458  fi
2459done
2460done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2466if test -n "$ac_ct_STRIP"; then
2467  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2468echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2469else
2470  { echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6; }
2472fi
2473
2474  if test "x$ac_ct_STRIP" = x; then
2475    STRIP=":"
2476  else
2477    case $cross_compiling:$ac_tool_warned in
2478yes:)
2479{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480whose name does not start with the host triplet.  If you think this
2481configuration is useful to you, please write to autoconf@gnu.org." >&5
2482echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483whose name does not start with the host triplet.  If you think this
2484configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485ac_tool_warned=yes ;;
2486esac
2487    STRIP=$ac_ct_STRIP
2488  fi
2489else
2490  STRIP="$ac_cv_prog_STRIP"
2491fi
2492
2493fi
2494INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2495
2496# We need awk for the "check" target.  The system "awk" is bad on
2497# some platforms.
2498# Always define AMTAR for backward compatibility.
2499
2500AMTAR=${AMTAR-"${am_missing_run}tar"}
2501
2502am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2503
2504
2505
2506
2507
2508ac_config_headers="$ac_config_headers config.h lib/config.h"
2509
2510{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2511echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2512set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2513if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2514  echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516  cat >conftest.make <<\_ACEOF
2517SHELL = /bin/sh
2518all:
2519	@echo '@@@%%%=$(MAKE)=@@@%%%'
2520_ACEOF
2521# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2522case `${MAKE-make} -f conftest.make 2>/dev/null` in
2523  *@@@%%%=?*=@@@%%%*)
2524    eval ac_cv_prog_make_${ac_make}_set=yes;;
2525  *)
2526    eval ac_cv_prog_make_${ac_make}_set=no;;
2527esac
2528rm -f conftest.make
2529fi
2530if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2531  { echo "$as_me:$LINENO: result: yes" >&5
2532echo "${ECHO_T}yes" >&6; }
2533  SET_MAKE=
2534else
2535  { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
2537  SET_MAKE="MAKE=${MAKE-make}"
2538fi
2539
2540
2541
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547if test -n "$ac_tool_prefix"; then
2548  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2549set dummy ${ac_tool_prefix}gcc; ac_word=$2
2550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552if test "${ac_cv_prog_CC+set}" = set; then
2553  echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555  if test -n "$CC"; then
2556  ac_cv_prog_CC="$CC" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563  for ac_exec_ext in '' $ac_executable_extensions; do
2564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2565    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2566    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567    break 2
2568  fi
2569done
2570done
2571IFS=$as_save_IFS
2572
2573fi
2574fi
2575CC=$ac_cv_prog_CC
2576if test -n "$CC"; then
2577  { echo "$as_me:$LINENO: result: $CC" >&5
2578echo "${ECHO_T}$CC" >&6; }
2579else
2580  { echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6; }
2582fi
2583
2584
2585fi
2586if test -z "$ac_cv_prog_CC"; then
2587  ac_ct_CC=$CC
2588  # Extract the first word of "gcc", so it can be a program name with args.
2589set dummy 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_ac_ct_CC+set}" = set; then
2593  echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595  if test -n "$ac_ct_CC"; then
2596  ac_cv_prog_ac_ct_CC="$ac_ct_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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605    ac_cv_prog_ac_ct_CC="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
2615ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616if test -n "$ac_ct_CC"; then
2617  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618echo "${ECHO_T}$ac_ct_CC" >&6; }
2619else
2620  { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
2622fi
2623
2624  if test "x$ac_ct_CC" = x; then
2625    CC=""
2626  else
2627    case $cross_compiling:$ac_tool_warned in
2628yes:)
2629{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2630whose name does not start with the host triplet.  If you think this
2631configuration is useful to you, please write to autoconf@gnu.org." >&5
2632echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2633whose name does not start with the host triplet.  If you think this
2634configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2635ac_tool_warned=yes ;;
2636esac
2637    CC=$ac_ct_CC
2638  fi
2639else
2640  CC="$ac_cv_prog_CC"
2641fi
2642
2643if test -z "$CC"; then
2644          if test -n "$ac_tool_prefix"; then
2645    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2646set dummy ${ac_tool_prefix}cc; ac_word=$2
2647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649if test "${ac_cv_prog_CC+set}" = set; then
2650  echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652  if test -n "$CC"; then
2653  ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660  for ac_exec_ext in '' $ac_executable_extensions; do
2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2662    ac_cv_prog_CC="${ac_tool_prefix}cc"
2663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
2674  { echo "$as_me:$LINENO: result: $CC" >&5
2675echo "${ECHO_T}$CC" >&6; }
2676else
2677  { echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6; }
2679fi
2680
2681
2682  fi
2683fi
2684if test -z "$CC"; then
2685  # Extract the first word of "cc", so it can be a program name with args.
2686set dummy 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
2695  ac_prog_rejected=no
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699  IFS=$as_save_IFS
2700  test -z "$as_dir" && as_dir=.
2701  for ac_exec_ext in '' $ac_executable_extensions; do
2702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2703    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2704       ac_prog_rejected=yes
2705       continue
2706     fi
2707    ac_cv_prog_CC="cc"
2708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709    break 2
2710  fi
2711done
2712done
2713IFS=$as_save_IFS
2714
2715if test $ac_prog_rejected = yes; then
2716  # We found a bogon in the path, so make sure we never use it.
2717  set dummy $ac_cv_prog_CC
2718  shift
2719  if test $# != 0; then
2720    # We chose a different compiler from the bogus one.
2721    # However, it has the same basename, so the bogon will be chosen
2722    # first if we set CC to just the basename; use the full file name.
2723    shift
2724    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2725  fi
2726fi
2727fi
2728fi
2729CC=$ac_cv_prog_CC
2730if test -n "$CC"; then
2731  { echo "$as_me:$LINENO: result: $CC" >&5
2732echo "${ECHO_T}$CC" >&6; }
2733else
2734  { echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6; }
2736fi
2737
2738
2739fi
2740if test -z "$CC"; then
2741  if test -n "$ac_tool_prefix"; then
2742  for ac_prog in cl.exe
2743  do
2744    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748if test "${ac_cv_prog_CC+set}" = set; then
2749  echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751  if test -n "$CC"; then
2752  ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757  IFS=$as_save_IFS
2758  test -z "$as_dir" && as_dir=.
2759  for ac_exec_ext in '' $ac_executable_extensions; do
2760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2761    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763    break 2
2764  fi
2765done
2766done
2767IFS=$as_save_IFS
2768
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773  { echo "$as_me:$LINENO: result: $CC" >&5
2774echo "${ECHO_T}$CC" >&6; }
2775else
2776  { echo "$as_me:$LINENO: result: no" >&5
2777echo "${ECHO_T}no" >&6; }
2778fi
2779
2780
2781    test -n "$CC" && break
2782  done
2783fi
2784if test -z "$CC"; then
2785  ac_ct_CC=$CC
2786  for ac_prog in cl.exe
2787do
2788  # Extract the first word of "$ac_prog", so it can be a program name with args.
2789set dummy $ac_prog; ac_word=$2
2790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2793  echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795  if test -n "$ac_ct_CC"; then
2796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803  for ac_exec_ext in '' $ac_executable_extensions; do
2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2805    ac_cv_prog_ac_ct_CC="$ac_prog"
2806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
2817  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2818echo "${ECHO_T}$ac_ct_CC" >&6; }
2819else
2820  { echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6; }
2822fi
2823
2824
2825  test -n "$ac_ct_CC" && break
2826done
2827
2828  if test "x$ac_ct_CC" = x; then
2829    CC=""
2830  else
2831    case $cross_compiling:$ac_tool_warned in
2832yes:)
2833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2834whose name does not start with the host triplet.  If you think this
2835configuration is useful to you, please write to autoconf@gnu.org." >&5
2836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2837whose name does not start with the host triplet.  If you think this
2838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2839ac_tool_warned=yes ;;
2840esac
2841    CC=$ac_ct_CC
2842  fi
2843fi
2844
2845fi
2846
2847
2848test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2849See \`config.log' for more details." >&5
2850echo "$as_me: error: no acceptable C compiler found in \$PATH
2851See \`config.log' for more details." >&2;}
2852   { (exit 1); exit 1; }; }
2853
2854# Provide some information about the compiler.
2855echo "$as_me:$LINENO: checking for C compiler version" >&5
2856ac_compiler=`set X $ac_compile; echo $2`
2857{ (ac_try="$ac_compiler --version >&5"
2858case "(($ac_try" in
2859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860  *) ac_try_echo=$ac_try;;
2861esac
2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863  (eval "$ac_compiler --version >&5") 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }
2867{ (ac_try="$ac_compiler -v >&5"
2868case "(($ac_try" in
2869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870  *) ac_try_echo=$ac_try;;
2871esac
2872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873  (eval "$ac_compiler -v >&5") 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }
2877{ (ac_try="$ac_compiler -V >&5"
2878case "(($ac_try" in
2879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880  *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883  (eval "$ac_compiler -V >&5") 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }
2887
2888cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h.  */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h.  */
2894
2895int
2896main ()
2897{
2898
2899  ;
2900  return 0;
2901}
2902_ACEOF
2903ac_clean_files_save=$ac_clean_files
2904ac_clean_files="$ac_clean_files a.out a.exe b.out"
2905# Try to create an executable without -o first, disregard a.out.
2906# It will help us diagnose broken compilers, and finding out an intuition
2907# of exeext.
2908{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2909echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2910ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2911#
2912# List of possible output files, starting from the most likely.
2913# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2914# only as a last resort.  b.out is created by i960 compilers.
2915ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2916#
2917# The IRIX 6 linker writes into existing files which may not be
2918# executable, retaining their permissions.  Remove them first so a
2919# subsequent execution test works.
2920ac_rmfiles=
2921for ac_file in $ac_files
2922do
2923  case $ac_file in
2924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2925    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926  esac
2927done
2928rm -f $ac_rmfiles
2929
2930if { (ac_try="$ac_link_default"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_link_default") 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; then
2940  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2942# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2943# so that the user can short-circuit this test for compilers unknown to
2944# Autoconf.
2945for ac_file in $ac_files
2946do
2947  test -f "$ac_file" || continue
2948  case $ac_file in
2949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2950	;;
2951    [ab].out )
2952	# We found the default executable, but exeext='' is most
2953	# certainly right.
2954	break;;
2955    *.* )
2956        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2957	then :; else
2958	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2959	fi
2960	# We set ac_cv_exeext here because the later test for it is not
2961	# safe: cross compilers may not add the suffix if given an `-o'
2962	# argument, so we may need to know it at that point already.
2963	# Even if this section looks crufty: it has the advantage of
2964	# actually working.
2965	break;;
2966    * )
2967	break;;
2968  esac
2969done
2970test "$ac_cv_exeext" = no && ac_cv_exeext=
2971
2972else
2973  echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2977See \`config.log' for more details." >&5
2978echo "$as_me: error: C compiler cannot create executables
2979See \`config.log' for more details." >&2;}
2980   { (exit 77); exit 77; }; }
2981fi
2982
2983ac_exeext=$ac_cv_exeext
2984{ echo "$as_me:$LINENO: result: $ac_file" >&5
2985echo "${ECHO_T}$ac_file" >&6; }
2986
2987# Check that the compiler produces executables we can run.  If not, either
2988# the compiler is broken, or we cross compile.
2989{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2990echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2991# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2992# If not cross compiling, check that we can run a simple program.
2993if test "$cross_compiling" != yes; then
2994  if { ac_try='./$ac_file'
2995  { (case "(($ac_try" in
2996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997  *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000  (eval "$ac_try") 2>&5
3001  ac_status=$?
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); }; }; then
3004    cross_compiling=no
3005  else
3006    if test "$cross_compiling" = maybe; then
3007	cross_compiling=yes
3008    else
3009	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3010If you meant to cross compile, use \`--host'.
3011See \`config.log' for more details." >&5
3012echo "$as_me: error: cannot run C compiled programs.
3013If you meant to cross compile, use \`--host'.
3014See \`config.log' for more details." >&2;}
3015   { (exit 1); exit 1; }; }
3016    fi
3017  fi
3018fi
3019{ echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6; }
3021
3022rm -f a.out a.exe conftest$ac_cv_exeext b.out
3023ac_clean_files=$ac_clean_files_save
3024# Check that the compiler produces executables we can run.  If not, either
3025# the compiler is broken, or we cross compile.
3026{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3027echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3028{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3029echo "${ECHO_T}$cross_compiling" >&6; }
3030
3031{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3032echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3033if { (ac_try="$ac_link"
3034case "(($ac_try" in
3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036  *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039  (eval "$ac_link") 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; then
3043  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3044# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3045# work properly (i.e., refer to `conftest.exe'), while it won't with
3046# `rm'.
3047for ac_file in conftest.exe conftest conftest.*; do
3048  test -f "$ac_file" || continue
3049  case $ac_file in
3050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3051    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052	  break;;
3053    * ) break;;
3054  esac
3055done
3056else
3057  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3058See \`config.log' for more details." >&5
3059echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3060See \`config.log' for more details." >&2;}
3061   { (exit 1); exit 1; }; }
3062fi
3063
3064rm -f conftest$ac_cv_exeext
3065{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3066echo "${ECHO_T}$ac_cv_exeext" >&6; }
3067
3068rm -f conftest.$ac_ext
3069EXEEXT=$ac_cv_exeext
3070ac_exeext=$EXEEXT
3071{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3072echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3073if test "${ac_cv_objext+set}" = set; then
3074  echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076  cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082
3083int
3084main ()
3085{
3086
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091rm -f conftest.o conftest.obj
3092if { (ac_try="$ac_compile"
3093case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098  (eval "$ac_compile") 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; then
3102  for ac_file in conftest.o conftest.obj conftest.*; do
3103  test -f "$ac_file" || continue;
3104  case $ac_file in
3105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3106    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3107       break;;
3108  esac
3109done
3110else
3111  echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3115See \`config.log' for more details." >&5
3116echo "$as_me: error: cannot compute suffix of object files: cannot compile
3117See \`config.log' for more details." >&2;}
3118   { (exit 1); exit 1; }; }
3119fi
3120
3121rm -f conftest.$ac_cv_objext conftest.$ac_ext
3122fi
3123{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3124echo "${ECHO_T}$ac_cv_objext" >&6; }
3125OBJEXT=$ac_cv_objext
3126ac_objext=$OBJEXT
3127{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3128echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3129if test "${ac_cv_c_compiler_gnu+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h.  */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h.  */
3138
3139int
3140main ()
3141{
3142#ifndef __GNUC__
3143       choke me
3144#endif
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (ac_try="$ac_compile"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_compile") 2>conftest.er1
3158  ac_status=$?
3159  grep -v '^ *+' conftest.er1 >conftest.err
3160  rm -f conftest.er1
3161  cat conftest.err >&5
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); } &&
3164	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165  { (case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170  (eval "$ac_try") 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; } &&
3174	 { ac_try='test -s conftest.$ac_objext'
3175  { (case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180  (eval "$ac_try") 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; }; then
3184  ac_compiler_gnu=yes
3185else
3186  echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189	ac_compiler_gnu=no
3190fi
3191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193ac_cv_c_compiler_gnu=$ac_compiler_gnu
3194
3195fi
3196{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3197echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3198GCC=`test $ac_compiler_gnu = yes && echo yes`
3199ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS
3201{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3203if test "${ac_cv_prog_cc_g+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  ac_save_c_werror_flag=$ac_c_werror_flag
3207   ac_c_werror_flag=yes
3208   ac_cv_prog_cc_g=no
3209   CFLAGS="-g"
3210   cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h.  */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h.  */
3216
3217int
3218main ()
3219{
3220
3221  ;
3222  return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229  *) ac_try_echo=$ac_try;;
3230esac
3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232  (eval "$ac_compile") 2>conftest.er1
3233  ac_status=$?
3234  grep -v '^ *+' conftest.er1 >conftest.err
3235  rm -f conftest.er1
3236  cat conftest.err >&5
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); } &&
3239	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240  { (case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245  (eval "$ac_try") 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }; } &&
3249	 { ac_try='test -s conftest.$ac_objext'
3250  { (case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255  (eval "$ac_try") 2>&5
3256  ac_status=$?
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); }; }; then
3259  ac_cv_prog_cc_g=yes
3260else
3261  echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264	CFLAGS=""
3265      cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h.  */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280rm -f conftest.$ac_objext
3281if { (ac_try="$ac_compile"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287  (eval "$ac_compile") 2>conftest.er1
3288  ac_status=$?
3289  grep -v '^ *+' conftest.er1 >conftest.err
3290  rm -f conftest.er1
3291  cat conftest.err >&5
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } &&
3294	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3295  { (case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300  (eval "$ac_try") 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; } &&
3304	 { ac_try='test -s conftest.$ac_objext'
3305  { (case "(($ac_try" in
3306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307  *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310  (eval "$ac_try") 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; }; then
3314  :
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319	ac_c_werror_flag=$ac_save_c_werror_flag
3320	 CFLAGS="-g"
3321	 cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h.  */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
3337if { (ac_try="$ac_compile"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343  (eval "$ac_compile") 2>conftest.er1
3344  ac_status=$?
3345  grep -v '^ *+' conftest.er1 >conftest.err
3346  rm -f conftest.er1
3347  cat conftest.err >&5
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); } &&
3350	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351  { (case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356  (eval "$ac_try") 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360	 { ac_try='test -s conftest.$ac_objext'
3361  { (case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366  (eval "$ac_try") 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  ac_cv_prog_cc_g=yes
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375
3376fi
3377
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379fi
3380
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382fi
3383
3384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385   ac_c_werror_flag=$ac_save_c_werror_flag
3386fi
3387{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3388echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3389if test "$ac_test_CFLAGS" = set; then
3390  CFLAGS=$ac_save_CFLAGS
3391elif test $ac_cv_prog_cc_g = yes; then
3392  if test "$GCC" = yes; then
3393    CFLAGS="-g -O2"
3394  else
3395    CFLAGS="-g"
3396  fi
3397else
3398  if test "$GCC" = yes; then
3399    CFLAGS="-O2"
3400  else
3401    CFLAGS=
3402  fi
3403fi
3404{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3405echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3406if test "${ac_cv_prog_cc_c89+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  ac_cv_prog_cc_c89=no
3410ac_save_CC=$CC
3411cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417#include <stdarg.h>
3418#include <stdio.h>
3419#include <sys/types.h>
3420#include <sys/stat.h>
3421/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3422struct buf { int x; };
3423FILE * (*rcsopen) (struct buf *, struct stat *, int);
3424static char *e (p, i)
3425     char **p;
3426     int i;
3427{
3428  return p[i];
3429}
3430static char *f (char * (*g) (char **, int), char **p, ...)
3431{
3432  char *s;
3433  va_list v;
3434  va_start (v,p);
3435  s = g (p, va_arg (v,int));
3436  va_end (v);
3437  return s;
3438}
3439
3440/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3441   function prototypes and stuff, but not '\xHH' hex character constants.
3442   These don't provoke an error unfortunately, instead are silently treated
3443   as 'x'.  The following induces an error, until -std is added to get
3444   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3445   array size at least.  It's necessary to write '\x00'==0 to get something
3446   that's true only with -std.  */
3447int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448
3449/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3450   inside strings and character constants.  */
3451#define FOO(x) 'x'
3452int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453
3454int test (int i, double x);
3455struct s1 {int (*f) (int a);};
3456struct s2 {int (*f) (double a);};
3457int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3458int argc;
3459char **argv;
3460int
3461main ()
3462{
3463return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3469	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470do
3471  CC="$ac_save_CC $ac_arg"
3472  rm -f conftest.$ac_objext
3473if { (ac_try="$ac_compile"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479  (eval "$ac_compile") 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } &&
3486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3487  { (case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492  (eval "$ac_try") 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; } &&
3496	 { ac_try='test -s conftest.$ac_objext'
3497  { (case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502  (eval "$ac_try") 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; }; then
3506  ac_cv_prog_cc_c89=$ac_arg
3507else
3508  echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511
3512fi
3513
3514rm -f core conftest.err conftest.$ac_objext
3515  test "x$ac_cv_prog_cc_c89" != "xno" && break
3516done
3517rm -f conftest.$ac_ext
3518CC=$ac_save_CC
3519
3520fi
3521# AC_CACHE_VAL
3522case "x$ac_cv_prog_cc_c89" in
3523  x)
3524    { echo "$as_me:$LINENO: result: none needed" >&5
3525echo "${ECHO_T}none needed" >&6; } ;;
3526  xno)
3527    { echo "$as_me:$LINENO: result: unsupported" >&5
3528echo "${ECHO_T}unsupported" >&6; } ;;
3529  *)
3530    CC="$CC $ac_cv_prog_cc_c89"
3531    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3532echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3533esac
3534
3535
3536ac_ext=c
3537ac_cpp='$CPP $CPPFLAGS'
3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541DEPDIR="${am__leading_dot}deps"
3542
3543ac_config_commands="$ac_config_commands depfiles"
3544
3545
3546am_make=${MAKE-make}
3547cat > confinc << 'END'
3548am__doit:
3549	@echo done
3550.PHONY: am__doit
3551END
3552# If we don't find an include directive, just comment out the code.
3553{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3554echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3555am__include="#"
3556am__quote=
3557_am_result=none
3558# First try GNU make style include.
3559echo "include confinc" > confmf
3560# We grep out `Entering directory' and `Leaving directory'
3561# messages which can occur if `w' ends up in MAKEFLAGS.
3562# In particular we don't look at `^make:' because GNU make might
3563# be invoked under some other name (usually "gmake"), in which
3564# case it prints its new name instead of `make'.
3565if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3566   am__include=include
3567   am__quote=
3568   _am_result=GNU
3569fi
3570# Now try BSD make style include.
3571if test "$am__include" = "#"; then
3572   echo '.include "confinc"' > confmf
3573   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3574      am__include=.include
3575      am__quote="\""
3576      _am_result=BSD
3577   fi
3578fi
3579
3580
3581{ echo "$as_me:$LINENO: result: $_am_result" >&5
3582echo "${ECHO_T}$_am_result" >&6; }
3583rm -f confinc confmf
3584
3585# Check whether --enable-dependency-tracking was given.
3586if test "${enable_dependency_tracking+set}" = set; then
3587  enableval=$enable_dependency_tracking;
3588fi
3589
3590if test "x$enable_dependency_tracking" != xno; then
3591  am_depcomp="$ac_aux_dir/depcomp"
3592  AMDEPBACKSLASH='\'
3593fi
3594
3595
3596if test "x$enable_dependency_tracking" != xno; then
3597  AMDEP_TRUE=
3598  AMDEP_FALSE='#'
3599else
3600  AMDEP_TRUE='#'
3601  AMDEP_FALSE=
3602fi
3603
3604
3605
3606
3607depcc="$CC"   am_compiler_list=
3608
3609{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3610echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3611if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3612  echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3615  # We make a subdir and do the tests there.  Otherwise we can end up
3616  # making bogus files that we don't know about and never remove.  For
3617  # instance it was reported that on HP-UX the gcc test will end up
3618  # making a dummy file named `D' -- because `-MD' means `put the output
3619  # in D'.
3620  mkdir conftest.dir
3621  # Copy depcomp to subdir because otherwise we won't find it if we're
3622  # using a relative directory.
3623  cp "$am_depcomp" conftest.dir
3624  cd conftest.dir
3625  # We will build objects and dependencies in a subdirectory because
3626  # it helps to detect inapplicable dependency modes.  For instance
3627  # both Tru64's cc and ICC support -MD to output dependencies as a
3628  # side effect of compilation, but ICC will put the dependencies in
3629  # the current directory while Tru64 will put them in the object
3630  # directory.
3631  mkdir sub
3632
3633  am_cv_CC_dependencies_compiler_type=none
3634  if test "$am_compiler_list" = ""; then
3635     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3636  fi
3637  for depmode in $am_compiler_list; do
3638    # Setup a source with many dependencies, because some compilers
3639    # like to wrap large dependency lists on column 80 (with \), and
3640    # we should not choose a depcomp mode which is confused by this.
3641    #
3642    # We need to recreate these files for each test, as the compiler may
3643    # overwrite some of them when testing with obscure command lines.
3644    # This happens at least with the AIX C compiler.
3645    : > sub/conftest.c
3646    for i in 1 2 3 4 5 6; do
3647      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3648      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3649      # Solaris 8's {/usr,}/bin/sh.
3650      touch sub/conftst$i.h
3651    done
3652    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3653
3654    case $depmode in
3655    nosideeffect)
3656      # after this tag, mechanisms are not by side-effect, so they'll
3657      # only be used when explicitly requested
3658      if test "x$enable_dependency_tracking" = xyes; then
3659	continue
3660      else
3661	break
3662      fi
3663      ;;
3664    none) break ;;
3665    esac
3666    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3667    # mode.  It turns out that the SunPro C++ compiler does not properly
3668    # handle `-M -o', and we need to detect this.
3669    if depmode=$depmode \
3670       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3671       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3672       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3673         >/dev/null 2>conftest.err &&
3674       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3675       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3676       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3677      # icc doesn't choke on unknown options, it will just issue warnings
3678      # or remarks (even with -Werror).  So we grep stderr for any message
3679      # that says an option was ignored or not supported.
3680      # When given -MP, icc 7.0 and 7.1 complain thusly:
3681      #   icc: Command line warning: ignoring option '-M'; no argument required
3682      # The diagnosis changed in icc 8.0:
3683      #   icc: Command line remark: option '-MP' not supported
3684      if (grep 'ignoring option' conftest.err ||
3685          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3686        am_cv_CC_dependencies_compiler_type=$depmode
3687        break
3688      fi
3689    fi
3690  done
3691
3692  cd ..
3693  rm -rf conftest.dir
3694else
3695  am_cv_CC_dependencies_compiler_type=none
3696fi
3697
3698fi
3699{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3700echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3701CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3702
3703
3704
3705if
3706  test "x$enable_dependency_tracking" != xno \
3707  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708  am__fastdepCC_TRUE=
3709  am__fastdepCC_FALSE='#'
3710else
3711  am__fastdepCC_TRUE='#'
3712  am__fastdepCC_FALSE=
3713fi
3714
3715
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3722echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3723# On Suns, sometimes $CPP names a directory.
3724if test -n "$CPP" && test -d "$CPP"; then
3725  CPP=
3726fi
3727if test -z "$CPP"; then
3728  if test "${ac_cv_prog_CPP+set}" = set; then
3729  echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731      # Double quotes because CPP needs to be expanded
3732    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3733    do
3734      ac_preproc_ok=false
3735for ac_c_preproc_warn_flag in '' yes
3736do
3737  # Use a header file that comes with gcc, so configuring glibc
3738  # with a fresh cross-compiler works.
3739  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740  # <limits.h> exists even on freestanding compilers.
3741  # On the NeXT, cc -E runs the code through the compiler's parser,
3742  # not just through cpp. "Syntax error" is here to catch this case.
3743  cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h.  */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h.  */
3749#ifdef __STDC__
3750# include <limits.h>
3751#else
3752# include <assert.h>
3753#endif
3754		     Syntax error
3755_ACEOF
3756if { (ac_try="$ac_cpp conftest.$ac_ext"
3757case "(($ac_try" in
3758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759  *) ac_try_echo=$ac_try;;
3760esac
3761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3763  ac_status=$?
3764  grep -v '^ *+' conftest.er1 >conftest.err
3765  rm -f conftest.er1
3766  cat conftest.err >&5
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); } >/dev/null; then
3769  if test -s conftest.err; then
3770    ac_cpp_err=$ac_c_preproc_warn_flag
3771    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3772  else
3773    ac_cpp_err=
3774  fi
3775else
3776  ac_cpp_err=yes
3777fi
3778if test -z "$ac_cpp_err"; then
3779  :
3780else
3781  echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784  # Broken: fails on valid input.
3785continue
3786fi
3787
3788rm -f conftest.err conftest.$ac_ext
3789
3790  # OK, works on sane cases.  Now check whether nonexistent headers
3791  # can be detected and how.
3792  cat >conftest.$ac_ext <<_ACEOF
3793/* confdefs.h.  */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h.  */
3798#include <ac_nonexistent.h>
3799_ACEOF
3800if { (ac_try="$ac_cpp conftest.$ac_ext"
3801case "(($ac_try" in
3802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803  *) ac_try_echo=$ac_try;;
3804esac
3805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3807  ac_status=$?
3808  grep -v '^ *+' conftest.er1 >conftest.err
3809  rm -f conftest.er1
3810  cat conftest.err >&5
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); } >/dev/null; then
3813  if test -s conftest.err; then
3814    ac_cpp_err=$ac_c_preproc_warn_flag
3815    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3816  else
3817    ac_cpp_err=
3818  fi
3819else
3820  ac_cpp_err=yes
3821fi
3822if test -z "$ac_cpp_err"; then
3823  # Broken: success on invalid input.
3824continue
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829  # Passes both tests.
3830ac_preproc_ok=:
3831break
3832fi
3833
3834rm -f conftest.err conftest.$ac_ext
3835
3836done
3837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838rm -f conftest.err conftest.$ac_ext
3839if $ac_preproc_ok; then
3840  break
3841fi
3842
3843    done
3844    ac_cv_prog_CPP=$CPP
3845
3846fi
3847  CPP=$ac_cv_prog_CPP
3848else
3849  ac_cv_prog_CPP=$CPP
3850fi
3851{ echo "$as_me:$LINENO: result: $CPP" >&5
3852echo "${ECHO_T}$CPP" >&6; }
3853ac_preproc_ok=false
3854for ac_c_preproc_warn_flag in '' yes
3855do
3856  # Use a header file that comes with gcc, so configuring glibc
3857  # with a fresh cross-compiler works.
3858  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859  # <limits.h> exists even on freestanding compilers.
3860  # On the NeXT, cc -E runs the code through the compiler's parser,
3861  # not just through cpp. "Syntax error" is here to catch this case.
3862  cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h.  */
3868#ifdef __STDC__
3869# include <limits.h>
3870#else
3871# include <assert.h>
3872#endif
3873		     Syntax error
3874_ACEOF
3875if { (ac_try="$ac_cpp conftest.$ac_ext"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882  ac_status=$?
3883  grep -v '^ *+' conftest.er1 >conftest.err
3884  rm -f conftest.er1
3885  cat conftest.err >&5
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); } >/dev/null; then
3888  if test -s conftest.err; then
3889    ac_cpp_err=$ac_c_preproc_warn_flag
3890    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3891  else
3892    ac_cpp_err=
3893  fi
3894else
3895  ac_cpp_err=yes
3896fi
3897if test -z "$ac_cpp_err"; then
3898  :
3899else
3900  echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903  # Broken: fails on valid input.
3904continue
3905fi
3906
3907rm -f conftest.err conftest.$ac_ext
3908
3909  # OK, works on sane cases.  Now check whether nonexistent headers
3910  # can be detected and how.
3911  cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h.  */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h.  */
3917#include <ac_nonexistent.h>
3918_ACEOF
3919if { (ac_try="$ac_cpp conftest.$ac_ext"
3920case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3926  ac_status=$?
3927  grep -v '^ *+' conftest.er1 >conftest.err
3928  rm -f conftest.er1
3929  cat conftest.err >&5
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); } >/dev/null; then
3932  if test -s conftest.err; then
3933    ac_cpp_err=$ac_c_preproc_warn_flag
3934    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3935  else
3936    ac_cpp_err=
3937  fi
3938else
3939  ac_cpp_err=yes
3940fi
3941if test -z "$ac_cpp_err"; then
3942  # Broken: success on invalid input.
3943continue
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948  # Passes both tests.
3949ac_preproc_ok=:
3950break
3951fi
3952
3953rm -f conftest.err conftest.$ac_ext
3954
3955done
3956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3957rm -f conftest.err conftest.$ac_ext
3958if $ac_preproc_ok; then
3959  :
3960else
3961  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3962See \`config.log' for more details." >&5
3963echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3964See \`config.log' for more details." >&2;}
3965   { (exit 1); exit 1; }; }
3966fi
3967
3968ac_ext=c
3969ac_cpp='$CPP $CPPFLAGS'
3970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
3974
3975
3976{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978if test "${ac_cv_path_GREP+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  # Extract the first word of "grep ggrep" to use in msg output
3982if test -z "$GREP"; then
3983set dummy grep ggrep; ac_prog_name=$2
3984if test "${ac_cv_path_GREP+set}" = set; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  ac_path_GREP_found=false
3988# Loop through the user's path and test for each of PROGNAME-LIST
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994  for ac_prog in grep ggrep; do
3995  for ac_exec_ext in '' $ac_executable_extensions; do
3996    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3998    # Check for GNU ac_path_GREP and select it if it is found.
3999  # Check for GNU $ac_path_GREP
4000case `"$ac_path_GREP" --version 2>&1` in
4001*GNU*)
4002  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003*)
4004  ac_count=0
4005  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006  while :
4007  do
4008    cat "conftest.in" "conftest.in" >"conftest.tmp"
4009    mv "conftest.tmp" "conftest.in"
4010    cp "conftest.in" "conftest.nl"
4011    echo 'GREP' >> "conftest.nl"
4012    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014    ac_count=`expr $ac_count + 1`
4015    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016      # Best one so far, save it but keep looking for a better one
4017      ac_cv_path_GREP="$ac_path_GREP"
4018      ac_path_GREP_max=$ac_count
4019    fi
4020    # 10*(2^10) chars as input seems more than enough
4021    test $ac_count -gt 10 && break
4022  done
4023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024esac
4025
4026
4027    $ac_path_GREP_found && break 3
4028  done
4029done
4030
4031done
4032IFS=$as_save_IFS
4033
4034
4035fi
4036
4037GREP="$ac_cv_path_GREP"
4038if test -z "$GREP"; then
4039  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041   { (exit 1); exit 1; }; }
4042fi
4043
4044else
4045  ac_cv_path_GREP=$GREP
4046fi
4047
4048
4049fi
4050{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4053
4054
4055{ echo "$as_me:$LINENO: checking for egrep" >&5
4056echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057if test "${ac_cv_path_EGREP+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061   then ac_cv_path_EGREP="$GREP -E"
4062   else
4063     # Extract the first word of "egrep" to use in msg output
4064if test -z "$EGREP"; then
4065set dummy egrep; ac_prog_name=$2
4066if test "${ac_cv_path_EGREP+set}" = set; then
4067  echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069  ac_path_EGREP_found=false
4070# Loop through the user's path and test for each of PROGNAME-LIST
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073do
4074  IFS=$as_save_IFS
4075  test -z "$as_dir" && as_dir=.
4076  for ac_prog in egrep; do
4077  for ac_exec_ext in '' $ac_executable_extensions; do
4078    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4080    # Check for GNU ac_path_EGREP and select it if it is found.
4081  # Check for GNU $ac_path_EGREP
4082case `"$ac_path_EGREP" --version 2>&1` in
4083*GNU*)
4084  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085*)
4086  ac_count=0
4087  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088  while :
4089  do
4090    cat "conftest.in" "conftest.in" >"conftest.tmp"
4091    mv "conftest.tmp" "conftest.in"
4092    cp "conftest.in" "conftest.nl"
4093    echo 'EGREP' >> "conftest.nl"
4094    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096    ac_count=`expr $ac_count + 1`
4097    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098      # Best one so far, save it but keep looking for a better one
4099      ac_cv_path_EGREP="$ac_path_EGREP"
4100      ac_path_EGREP_max=$ac_count
4101    fi
4102    # 10*(2^10) chars as input seems more than enough
4103    test $ac_count -gt 10 && break
4104  done
4105  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106esac
4107
4108
4109    $ac_path_EGREP_found && break 3
4110  done
4111done
4112
4113done
4114IFS=$as_save_IFS
4115
4116
4117fi
4118
4119EGREP="$ac_cv_path_EGREP"
4120if test -z "$EGREP"; then
4121  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123   { (exit 1); exit 1; }; }
4124fi
4125
4126else
4127  ac_cv_path_EGREP=$EGREP
4128fi
4129
4130
4131   fi
4132fi
4133{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4136
4137
4138if test $ac_cv_c_compiler_gnu = yes; then
4139    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142  echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144    ac_pattern="Autoconf.*'x'"
4145  cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151#include <sgtty.h>
4152Autoconf TIOCGETP
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156  ac_cv_prog_gcc_traditional=yes
4157else
4158  ac_cv_prog_gcc_traditional=no
4159fi
4160rm -f conftest*
4161
4162
4163  if test $ac_cv_prog_gcc_traditional = no; then
4164    cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h.  */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h.  */
4170#include <termio.h>
4171Autoconf TCGETA
4172_ACEOF
4173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175  ac_cv_prog_gcc_traditional=yes
4176fi
4177rm -f conftest*
4178
4179  fi
4180fi
4181{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183  if test $ac_cv_prog_gcc_traditional = yes; then
4184    CC="$CC -traditional"
4185  fi
4186fi
4187
4188# Find a good install program.  We prefer a C program (faster),
4189# so one script is as good as another.  But avoid the broken or
4190# incompatible versions:
4191# SysV /etc/install, /usr/sbin/install
4192# SunOS /usr/etc/install
4193# IRIX /sbin/install
4194# AIX /bin/install
4195# AmigaOS /C/install, which installs bootblocks on floppy discs
4196# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4197# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4198# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4199# OS/2's system install, which has a completely different semantic
4200# ./install, which can be erroneously created by make from ./install.sh.
4201{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4202echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4203if test -z "$INSTALL"; then
4204if test "${ac_cv_path_install+set}" = set; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210  IFS=$as_save_IFS
4211  test -z "$as_dir" && as_dir=.
4212  # Account for people who put trailing slashes in PATH elements.
4213case $as_dir/ in
4214  ./ | .// | /cC/* | \
4215  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4216  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4217  /usr/ucb/* ) ;;
4218  *)
4219    # OSF1 and SCO ODT 3.0 have their own names for install.
4220    # Don't use installbsd from OSF since it installs stuff as root
4221    # by default.
4222    for ac_prog in ginstall scoinst install; do
4223      for ac_exec_ext in '' $ac_executable_extensions; do
4224	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4225	  if test $ac_prog = install &&
4226	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4227	    # AIX install.  It has an incompatible calling convention.
4228	    :
4229	  elif test $ac_prog = install &&
4230	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4231	    # program-specific install script used by HP pwplus--don't use.
4232	    :
4233	  else
4234	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4235	    break 3
4236	  fi
4237	fi
4238      done
4239    done
4240    ;;
4241esac
4242done
4243IFS=$as_save_IFS
4244
4245
4246fi
4247  if test "${ac_cv_path_install+set}" = set; then
4248    INSTALL=$ac_cv_path_install
4249  else
4250    # As a last resort, use the slow shell script.  Don't cache a
4251    # value for INSTALL within a source directory, because that will
4252    # break other packages using the cache if that directory is
4253    # removed, or if the value is a relative name.
4254    INSTALL=$ac_install_sh
4255  fi
4256fi
4257{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4258echo "${ECHO_T}$INSTALL" >&6; }
4259
4260# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4261# It thinks the first close brace ends the variable substitution.
4262test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4263
4264test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4265
4266test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4267
4268
4269
4270# Make sure we can run config.sub.
4271$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4272  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4273echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4274   { (exit 1); exit 1; }; }
4275
4276{ echo "$as_me:$LINENO: checking build system type" >&5
4277echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4278if test "${ac_cv_build+set}" = set; then
4279  echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281  ac_build_alias=$build_alias
4282test "x$ac_build_alias" = x &&
4283  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4284test "x$ac_build_alias" = x &&
4285  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4286echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4287   { (exit 1); exit 1; }; }
4288ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4289  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4290echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4291   { (exit 1); exit 1; }; }
4292
4293fi
4294{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4295echo "${ECHO_T}$ac_cv_build" >&6; }
4296case $ac_cv_build in
4297*-*-*) ;;
4298*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4299echo "$as_me: error: invalid value of canonical build" >&2;}
4300   { (exit 1); exit 1; }; };;
4301esac
4302build=$ac_cv_build
4303ac_save_IFS=$IFS; IFS='-'
4304set x $ac_cv_build
4305shift
4306build_cpu=$1
4307build_vendor=$2
4308shift; shift
4309# Remember, the first character of IFS is used to create $*,
4310# except with old shells:
4311build_os=$*
4312IFS=$ac_save_IFS
4313case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4314
4315
4316{ echo "$as_me:$LINENO: checking host system type" >&5
4317echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4318if test "${ac_cv_host+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  if test "x$host_alias" = x; then
4322  ac_cv_host=$ac_cv_build
4323else
4324  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4325    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4326echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4327   { (exit 1); exit 1; }; }
4328fi
4329
4330fi
4331{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4332echo "${ECHO_T}$ac_cv_host" >&6; }
4333case $ac_cv_host in
4334*-*-*) ;;
4335*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4336echo "$as_me: error: invalid value of canonical host" >&2;}
4337   { (exit 1); exit 1; }; };;
4338esac
4339host=$ac_cv_host
4340ac_save_IFS=$IFS; IFS='-'
4341set x $ac_cv_host
4342shift
4343host_cpu=$1
4344host_vendor=$2
4345shift; shift
4346# Remember, the first character of IFS is used to create $*,
4347# except with old shells:
4348host_os=$*
4349IFS=$ac_save_IFS
4350case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362cat >>confdefs.h <<\_ACEOF
4363#define _GNU_SOURCE 1
4364_ACEOF
4365
4366
4367
4368{ echo "$as_me:$LINENO: checking for AIX" >&5
4369echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4370cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h.  */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h.  */
4376#ifdef _AIX
4377  yes
4378#endif
4379
4380_ACEOF
4381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382  $EGREP "yes" >/dev/null 2>&1; then
4383  { echo "$as_me:$LINENO: result: yes" >&5
4384echo "${ECHO_T}yes" >&6; }
4385cat >>confdefs.h <<\_ACEOF
4386#define _ALL_SOURCE 1
4387_ACEOF
4388
4389else
4390  { echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6; }
4392fi
4393rm -f conftest*
4394
4395
4396{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4397echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4398if test "${ac_cv_header_stdc+set}" = set; then
4399  echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401  cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h.  */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h.  */
4407#include <stdlib.h>
4408#include <stdarg.h>
4409#include <string.h>
4410#include <float.h>
4411
4412int
4413main ()
4414{
4415
4416  ;
4417  return 0;
4418}
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (ac_try="$ac_compile"
4422case "(($ac_try" in
4423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424  *) ac_try_echo=$ac_try;;
4425esac
4426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427  (eval "$ac_compile") 2>conftest.er1
4428  ac_status=$?
4429  grep -v '^ *+' conftest.er1 >conftest.err
4430  rm -f conftest.er1
4431  cat conftest.err >&5
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); } &&
4434	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4435  { (case "(($ac_try" in
4436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437  *) ac_try_echo=$ac_try;;
4438esac
4439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440  (eval "$ac_try") 2>&5
4441  ac_status=$?
4442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443  (exit $ac_status); }; } &&
4444	 { ac_try='test -s conftest.$ac_objext'
4445  { (case "(($ac_try" in
4446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447  *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450  (eval "$ac_try") 2>&5
4451  ac_status=$?
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); }; }; then
4454  ac_cv_header_stdc=yes
4455else
4456  echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459	ac_cv_header_stdc=no
4460fi
4461
4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463
4464if test $ac_cv_header_stdc = yes; then
4465  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4466  cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h.  */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h.  */
4472#include <string.h>
4473
4474_ACEOF
4475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476  $EGREP "memchr" >/dev/null 2>&1; then
4477  :
4478else
4479  ac_cv_header_stdc=no
4480fi
4481rm -f conftest*
4482
4483fi
4484
4485if test $ac_cv_header_stdc = yes; then
4486  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4487  cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h.  */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h.  */
4493#include <stdlib.h>
4494
4495_ACEOF
4496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497  $EGREP "free" >/dev/null 2>&1; then
4498  :
4499else
4500  ac_cv_header_stdc=no
4501fi
4502rm -f conftest*
4503
4504fi
4505
4506if test $ac_cv_header_stdc = yes; then
4507  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4508  if test "$cross_compiling" = yes; then
4509  :
4510else
4511  cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h.  */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h.  */
4517#include <ctype.h>
4518#include <stdlib.h>
4519#if ((' ' & 0x0FF) == 0x020)
4520# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4521# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4522#else
4523# define ISLOWER(c) \
4524		   (('a' <= (c) && (c) <= 'i') \
4525		     || ('j' <= (c) && (c) <= 'r') \
4526		     || ('s' <= (c) && (c) <= 'z'))
4527# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4528#endif
4529
4530#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4531int
4532main ()
4533{
4534  int i;
4535  for (i = 0; i < 256; i++)
4536    if (XOR (islower (i), ISLOWER (i))
4537	|| toupper (i) != TOUPPER (i))
4538      return 2;
4539  return 0;
4540}
4541_ACEOF
4542rm -f conftest$ac_exeext
4543if { (ac_try="$ac_link"
4544case "(($ac_try" in
4545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546  *) ac_try_echo=$ac_try;;
4547esac
4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549  (eval "$ac_link") 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4553  { (case "(($ac_try" in
4554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555  *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558  (eval "$ac_try") 2>&5
4559  ac_status=$?
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; }; then
4562  :
4563else
4564  echo "$as_me: program exited with status $ac_status" >&5
4565echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568( exit $ac_status )
4569ac_cv_header_stdc=no
4570fi
4571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572fi
4573
4574
4575fi
4576fi
4577{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4578echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4579if test $ac_cv_header_stdc = yes; then
4580
4581cat >>confdefs.h <<\_ACEOF
4582#define STDC_HEADERS 1
4583_ACEOF
4584
4585fi
4586
4587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4598		  inttypes.h stdint.h unistd.h
4599do
4600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4601{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h.  */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h.  */
4612$ac_includes_default
4613
4614#include <$ac_header>
4615_ACEOF
4616rm -f conftest.$ac_objext
4617if { (ac_try="$ac_compile"
4618case "(($ac_try" in
4619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620  *) ac_try_echo=$ac_try;;
4621esac
4622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623  (eval "$ac_compile") 2>conftest.er1
4624  ac_status=$?
4625  grep -v '^ *+' conftest.er1 >conftest.err
4626  rm -f conftest.er1
4627  cat conftest.err >&5
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); } &&
4630	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4631  { (case "(($ac_try" in
4632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633  *) ac_try_echo=$ac_try;;
4634esac
4635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636  (eval "$ac_try") 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }; } &&
4640	 { ac_try='test -s conftest.$ac_objext'
4641  { (case "(($ac_try" in
4642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643  *) ac_try_echo=$ac_try;;
4644esac
4645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646  (eval "$ac_try") 2>&5
4647  ac_status=$?
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); }; }; then
4650  eval "$as_ac_Header=yes"
4651else
4652  echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655	eval "$as_ac_Header=no"
4656fi
4657
4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659fi
4660ac_res=`eval echo '${'$as_ac_Header'}'`
4661	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4662echo "${ECHO_T}$ac_res" >&6; }
4663if test `eval echo '${'$as_ac_Header'}'` = yes; then
4664  cat >>confdefs.h <<_ACEOF
4665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666_ACEOF
4667
4668fi
4669
4670done
4671
4672
4673if test "${ac_cv_header_minix_config_h+set}" = set; then
4674  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4675echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4676if test "${ac_cv_header_minix_config_h+set}" = set; then
4677  echo $ECHO_N "(cached) $ECHO_C" >&6
4678fi
4679{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4680echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4681else
4682  # Is the header compilable?
4683{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4684echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4685cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h.  */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h.  */
4691$ac_includes_default
4692#include <minix/config.h>
4693_ACEOF
4694rm -f conftest.$ac_objext
4695if { (ac_try="$ac_compile"
4696case "(($ac_try" in
4697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698  *) ac_try_echo=$ac_try;;
4699esac
4700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701  (eval "$ac_compile") 2>conftest.er1
4702  ac_status=$?
4703  grep -v '^ *+' conftest.er1 >conftest.err
4704  rm -f conftest.er1
4705  cat conftest.err >&5
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); } &&
4708	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709  { (case "(($ac_try" in
4710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711  *) ac_try_echo=$ac_try;;
4712esac
4713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714  (eval "$ac_try") 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; } &&
4718	 { ac_try='test -s conftest.$ac_objext'
4719  { (case "(($ac_try" in
4720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721  *) ac_try_echo=$ac_try;;
4722esac
4723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724  (eval "$ac_try") 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; }; then
4728  ac_header_compiler=yes
4729else
4730  echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733	ac_header_compiler=no
4734fi
4735
4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4738echo "${ECHO_T}$ac_header_compiler" >&6; }
4739
4740# Is the header present?
4741{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4742echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4743cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <minix/config.h>
4750_ACEOF
4751if { (ac_try="$ac_cpp conftest.$ac_ext"
4752case "(($ac_try" in
4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754  *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758  ac_status=$?
4759  grep -v '^ *+' conftest.er1 >conftest.err
4760  rm -f conftest.er1
4761  cat conftest.err >&5
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } >/dev/null; then
4764  if test -s conftest.err; then
4765    ac_cpp_err=$ac_c_preproc_warn_flag
4766    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4767  else
4768    ac_cpp_err=
4769  fi
4770else
4771  ac_cpp_err=yes
4772fi
4773if test -z "$ac_cpp_err"; then
4774  ac_header_preproc=yes
4775else
4776  echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779  ac_header_preproc=no
4780fi
4781
4782rm -f conftest.err conftest.$ac_ext
4783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4784echo "${ECHO_T}$ac_header_preproc" >&6; }
4785
4786# So?  What about this header?
4787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4788  yes:no: )
4789    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4790echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4791    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4792echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4793    ac_header_preproc=yes
4794    ;;
4795  no:yes:* )
4796    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4797echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4798    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4799echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4800    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4801echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4802    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4803echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4804    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4805echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4806    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4807echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4808
4809    ;;
4810esac
4811{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4812echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4813if test "${ac_cv_header_minix_config_h+set}" = set; then
4814  echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816  ac_cv_header_minix_config_h=$ac_header_preproc
4817fi
4818{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4819echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4820
4821fi
4822if test $ac_cv_header_minix_config_h = yes; then
4823  MINIX=yes
4824else
4825  MINIX=
4826fi
4827
4828
4829if test "$MINIX" = yes; then
4830
4831cat >>confdefs.h <<\_ACEOF
4832#define _POSIX_SOURCE 1
4833_ACEOF
4834
4835
4836cat >>confdefs.h <<\_ACEOF
4837#define _POSIX_1_SOURCE 2
4838_ACEOF
4839
4840
4841cat >>confdefs.h <<\_ACEOF
4842#define _MINIX 1
4843_ACEOF
4844
4845fi
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857  cat >>confdefs.h <<\_ACEOF
4858#define __EXTENSIONS__ 1
4859_ACEOF
4860
4861
4862{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4863echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4864if test "${ac_cv_search_strerror+set}" = set; then
4865  echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867  ac_func_search_save_LIBS=$LIBS
4868cat >conftest.$ac_ext <<_ACEOF
4869/* confdefs.h.  */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h.  */
4874
4875/* Override any GCC internal prototype to avoid an error.
4876   Use char because int might match the return type of a GCC
4877   builtin and then its argument prototype would still apply.  */
4878#ifdef __cplusplus
4879extern "C"
4880#endif
4881char strerror ();
4882int
4883main ()
4884{
4885return strerror ();
4886  ;
4887  return 0;
4888}
4889_ACEOF
4890for ac_lib in '' cposix; do
4891  if test -z "$ac_lib"; then
4892    ac_res="none required"
4893  else
4894    ac_res=-l$ac_lib
4895    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4896  fi
4897  rm -f conftest.$ac_objext conftest$ac_exeext
4898if { (ac_try="$ac_link"
4899case "(($ac_try" in
4900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901  *) ac_try_echo=$ac_try;;
4902esac
4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904  (eval "$ac_link") 2>conftest.er1
4905  ac_status=$?
4906  grep -v '^ *+' conftest.er1 >conftest.err
4907  rm -f conftest.er1
4908  cat conftest.err >&5
4909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); } &&
4911	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4912  { (case "(($ac_try" in
4913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914  *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917  (eval "$ac_try") 2>&5
4918  ac_status=$?
4919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920  (exit $ac_status); }; } &&
4921	 { ac_try='test -s conftest$ac_exeext'
4922  { (case "(($ac_try" in
4923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924  *) ac_try_echo=$ac_try;;
4925esac
4926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927  (eval "$ac_try") 2>&5
4928  ac_status=$?
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); }; }; then
4931  ac_cv_search_strerror=$ac_res
4932else
4933  echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936
4937fi
4938
4939rm -f core conftest.err conftest.$ac_objext \
4940      conftest$ac_exeext
4941  if test "${ac_cv_search_strerror+set}" = set; then
4942  break
4943fi
4944done
4945if test "${ac_cv_search_strerror+set}" = set; then
4946  :
4947else
4948  ac_cv_search_strerror=no
4949fi
4950rm conftest.$ac_ext
4951LIBS=$ac_func_search_save_LIBS
4952fi
4953{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4954echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4955ac_res=$ac_cv_search_strerror
4956if test "$ac_res" != no; then
4957  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4958
4959fi
4960
4961
4962
4963
4964# Check whether --with-gnu-ld was given.
4965if test "${with_gnu_ld+set}" = set; then
4966  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4967else
4968  with_gnu_ld=no
4969fi
4970
4971# Prepare PATH_SEPARATOR.
4972# The user is always right.
4973if test "${PATH_SEPARATOR+set}" != set; then
4974  echo "#! /bin/sh" >conf$$.sh
4975  echo  "exit 0"   >>conf$$.sh
4976  chmod +x conf$$.sh
4977  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4978    PATH_SEPARATOR=';'
4979  else
4980    PATH_SEPARATOR=:
4981  fi
4982  rm -f conf$$.sh
4983fi
4984ac_prog=ld
4985if test "$GCC" = yes; then
4986  # Check if gcc -print-prog-name=ld gives a path.
4987  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4988echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4989  case $host in
4990  *-*-mingw*)
4991    # gcc leaves a trailing carriage return which upsets mingw
4992    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4993  *)
4994    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4995  esac
4996  case $ac_prog in
4997    # Accept absolute paths.
4998    [\\/]* | [A-Za-z]:[\\/]*)
4999      re_direlt='/[^/][^/]*/\.\./'
5000      # Canonicalize the path of ld
5001      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5002      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5003	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5004      done
5005      test -z "$LD" && LD="$ac_prog"
5006      ;;
5007  "")
5008    # If it fails, then pretend we aren't using GCC.
5009    ac_prog=ld
5010    ;;
5011  *)
5012    # If it is relative, then search for the first ld in PATH.
5013    with_gnu_ld=unknown
5014    ;;
5015  esac
5016elif test "$with_gnu_ld" = yes; then
5017  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5018echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5019else
5020  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5021echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5022fi
5023if test "${acl_cv_path_LD+set}" = set; then
5024  echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026  if test -z "$LD"; then
5027  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5028  for ac_dir in $PATH; do
5029    test -z "$ac_dir" && ac_dir=.
5030    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5031      acl_cv_path_LD="$ac_dir/$ac_prog"
5032      # Check to see if the program is GNU ld.  I'd rather use --version,
5033      # but apparently some GNU ld's only accept -v.
5034      # Break only if it was the GNU/non-GNU ld that we prefer.
5035      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5036      *GNU* | *'with BFD'*)
5037	test "$with_gnu_ld" != no && break ;;
5038      *)
5039	test "$with_gnu_ld" != yes && break ;;
5040      esac
5041    fi
5042  done
5043  IFS="$ac_save_ifs"
5044else
5045  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5046fi
5047fi
5048
5049LD="$acl_cv_path_LD"
5050if test -n "$LD"; then
5051  { echo "$as_me:$LINENO: result: $LD" >&5
5052echo "${ECHO_T}$LD" >&6; }
5053else
5054  { echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6; }
5056fi
5057test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5058echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5059   { (exit 1); exit 1; }; }
5060{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5061echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5062if test "${acl_cv_prog_gnu_ld+set}" = set; then
5063  echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5066case `$LD -v 2>&1 </dev/null` in
5067*GNU* | *'with BFD'*)
5068  acl_cv_prog_gnu_ld=yes ;;
5069*)
5070  acl_cv_prog_gnu_ld=no ;;
5071esac
5072fi
5073{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5074echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
5075with_gnu_ld=$acl_cv_prog_gnu_ld
5076
5077
5078
5079                              { echo "$as_me:$LINENO: checking for shared library path variable" >&5
5080echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6; }
5081if test "${acl_cv_libpath+set}" = set; then
5082  echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084
5085    LD="$LD" \
5086    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
5087    . ./conftest.sh
5088    rm -f ./conftest.sh
5089    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
5090
5091fi
5092{ echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
5093echo "${ECHO_T}$acl_cv_libpath" >&6; }
5094  shlibpath_var="$acl_cv_shlibpath_var"
5095
5096
5097  { echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
5098echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6; }
5099  # Check whether --enable-relocatable was given.
5100if test "${enable_relocatable+set}" = set; then
5101  enableval=$enable_relocatable; if test "$enableval" != no; then
5102       RELOCATABLE=yes
5103     else
5104       RELOCATABLE=no
5105     fi
5106
5107else
5108  RELOCATABLE=no
5109fi
5110
5111
5112  { echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
5113echo "${ECHO_T}$RELOCATABLE" >&6; }
5114
5115
5116
5117    if test "X$prefix" = "XNONE"; then
5118    reloc_final_prefix="$ac_default_prefix"
5119  else
5120    reloc_final_prefix="$prefix"
5121  fi
5122
5123cat >>confdefs.h <<_ACEOF
5124#define INSTALLPREFIX "${reloc_final_prefix}"
5125_ACEOF
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135  is_noop=no
5136  use_elf_origin_trick=no
5137  if test $RELOCATABLE = yes; then
5138    # --enable-relocatable implies --disable-rpath
5139    enable_rpath=no
5140    SRCLIBOBJS="$SRCLIBOBJS relocatable.$ac_objext"
5141
5142cat >>confdefs.h <<\_ACEOF
5143#define ENABLE_RELOCATABLE 1
5144_ACEOF
5145
5146
5147
5148for ac_header in unistd.h mach-o/dyld.h
5149do
5150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5152  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5155  echo $ECHO_N "(cached) $ECHO_C" >&6
5156fi
5157ac_res=`eval echo '${'$as_ac_Header'}'`
5158	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5159echo "${ECHO_T}$ac_res" >&6; }
5160else
5161  # Is the header compilable?
5162{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5163echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5164cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h.  */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h.  */
5170$ac_includes_default
5171#include <$ac_header>
5172_ACEOF
5173rm -f conftest.$ac_objext
5174if { (ac_try="$ac_compile"
5175case "(($ac_try" in
5176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177  *) ac_try_echo=$ac_try;;
5178esac
5179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180  (eval "$ac_compile") 2>conftest.er1
5181  ac_status=$?
5182  grep -v '^ *+' conftest.er1 >conftest.err
5183  rm -f conftest.er1
5184  cat conftest.err >&5
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); } &&
5187	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5188  { (case "(($ac_try" in
5189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190  *) ac_try_echo=$ac_try;;
5191esac
5192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193  (eval "$ac_try") 2>&5
5194  ac_status=$?
5195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); }; } &&
5197	 { ac_try='test -s conftest.$ac_objext'
5198  { (case "(($ac_try" in
5199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200  *) ac_try_echo=$ac_try;;
5201esac
5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203  (eval "$ac_try") 2>&5
5204  ac_status=$?
5205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); }; }; then
5207  ac_header_compiler=yes
5208else
5209  echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212	ac_header_compiler=no
5213fi
5214
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5217echo "${ECHO_T}$ac_header_compiler" >&6; }
5218
5219# Is the header present?
5220{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5221echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5222cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h.  */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h.  */
5228#include <$ac_header>
5229_ACEOF
5230if { (ac_try="$ac_cpp conftest.$ac_ext"
5231case "(($ac_try" in
5232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233  *) ac_try_echo=$ac_try;;
5234esac
5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5237  ac_status=$?
5238  grep -v '^ *+' conftest.er1 >conftest.err
5239  rm -f conftest.er1
5240  cat conftest.err >&5
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); } >/dev/null; then
5243  if test -s conftest.err; then
5244    ac_cpp_err=$ac_c_preproc_warn_flag
5245    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5246  else
5247    ac_cpp_err=
5248  fi
5249else
5250  ac_cpp_err=yes
5251fi
5252if test -z "$ac_cpp_err"; then
5253  ac_header_preproc=yes
5254else
5255  echo "$as_me: failed program was:" >&5
5256sed 's/^/| /' conftest.$ac_ext >&5
5257
5258  ac_header_preproc=no
5259fi
5260
5261rm -f conftest.err conftest.$ac_ext
5262{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5263echo "${ECHO_T}$ac_header_preproc" >&6; }
5264
5265# So?  What about this header?
5266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5267  yes:no: )
5268    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5270    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5271echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5272    ac_header_preproc=yes
5273    ;;
5274  no:yes:* )
5275    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5277    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5278echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5279    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5280echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5281    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5282echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5283    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5285    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5286echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5287
5288    ;;
5289esac
5290{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5293  echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295  eval "$as_ac_Header=\$ac_header_preproc"
5296fi
5297ac_res=`eval echo '${'$as_ac_Header'}'`
5298	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5299echo "${ECHO_T}$ac_res" >&6; }
5300
5301fi
5302if test `eval echo '${'$as_ac_Header'}'` = yes; then
5303  cat >>confdefs.h <<_ACEOF
5304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5305_ACEOF
5306
5307fi
5308
5309done
5310
5311
5312for ac_func in _NSGetExecutablePath
5313do
5314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5315{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5318  echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320  cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h.  */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h.  */
5326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5327   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5328#define $ac_func innocuous_$ac_func
5329
5330/* System header to define __stub macros and hopefully few prototypes,
5331    which can conflict with char $ac_func (); below.
5332    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333    <limits.h> exists even on freestanding compilers.  */
5334
5335#ifdef __STDC__
5336# include <limits.h>
5337#else
5338# include <assert.h>
5339#endif
5340
5341#undef $ac_func
5342
5343/* Override any GCC internal prototype to avoid an error.
5344   Use char because int might match the return type of a GCC
5345   builtin and then its argument prototype would still apply.  */
5346#ifdef __cplusplus
5347extern "C"
5348#endif
5349char $ac_func ();
5350/* The GNU C library defines this for functions which it implements
5351    to always fail with ENOSYS.  Some functions are actually named
5352    something starting with __ and the normal name is an alias.  */
5353#if defined __stub_$ac_func || defined __stub___$ac_func
5354choke me
5355#endif
5356
5357int
5358main ()
5359{
5360return $ac_func ();
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365rm -f conftest.$ac_objext conftest$ac_exeext
5366if { (ac_try="$ac_link"
5367case "(($ac_try" in
5368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369  *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372  (eval "$ac_link") 2>conftest.er1
5373  ac_status=$?
5374  grep -v '^ *+' conftest.er1 >conftest.err
5375  rm -f conftest.er1
5376  cat conftest.err >&5
5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); } &&
5379	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380  { (case "(($ac_try" in
5381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382  *) ac_try_echo=$ac_try;;
5383esac
5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385  (eval "$ac_try") 2>&5
5386  ac_status=$?
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); }; } &&
5389	 { ac_try='test -s conftest$ac_exeext'
5390  { (case "(($ac_try" in
5391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392  *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395  (eval "$ac_try") 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); }; }; then
5399  eval "$as_ac_var=yes"
5400else
5401  echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
5404	eval "$as_ac_var=no"
5405fi
5406
5407rm -f core conftest.err conftest.$ac_objext \
5408      conftest$ac_exeext conftest.$ac_ext
5409fi
5410ac_res=`eval echo '${'$as_ac_var'}'`
5411	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5412echo "${ECHO_T}$ac_res" >&6; }
5413if test `eval echo '${'$as_ac_var'}'` = yes; then
5414  cat >>confdefs.h <<_ACEOF
5415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5416_ACEOF
5417
5418fi
5419done
5420
5421    case "$host_os" in
5422      mingw*) is_noop=yes ;;
5423      linux*) use_elf_origin_trick=yes ;;
5424    esac
5425    if test $is_noop = yes; then
5426      SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5427    else
5428      if test $use_elf_origin_trick = yes; then
5429                case "$ac_aux_dir" in
5430          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5431          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5432        esac
5433        SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5434      else
5435                                        SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
5436        case "$ac_aux_dir" in
5437          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5438          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5439        esac
5440      fi
5441    fi
5442  else
5443    SET_RELOCATABLE=
5444  fi
5445
5446
5447
5448if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5449  RELOCATABLE_VIA_LD_TRUE=
5450  RELOCATABLE_VIA_LD_FALSE='#'
5451else
5452  RELOCATABLE_VIA_LD_TRUE='#'
5453  RELOCATABLE_VIA_LD_FALSE=
5454fi
5455
5456
5457
5458# Check whether --enable-extra-encodings was given.
5459if test "${enable_extra_encodings+set}" = set; then
5460  enableval=$enable_extra_encodings;
5461cat >>confdefs.h <<\_ACEOF
5462#define ENABLE_EXTRA 1
5463_ACEOF
5464
5465   USE_EXTRA_ENCODINGS=yes
5466else
5467  USE_EXTRA_ENCODINGS=no
5468fi
5469
5470
5471
5472
5473if test -n "$ac_tool_prefix"; then
5474  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5475set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5478if test "${ac_cv_prog_RANLIB+set}" = set; then
5479  echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481  if test -n "$RANLIB"; then
5482  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5483else
5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487  IFS=$as_save_IFS
5488  test -z "$as_dir" && as_dir=.
5489  for ac_exec_ext in '' $ac_executable_extensions; do
5490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5491    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5492    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493    break 2
5494  fi
5495done
5496done
5497IFS=$as_save_IFS
5498
5499fi
5500fi
5501RANLIB=$ac_cv_prog_RANLIB
5502if test -n "$RANLIB"; then
5503  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5504echo "${ECHO_T}$RANLIB" >&6; }
5505else
5506  { echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6; }
5508fi
5509
5510
5511fi
5512if test -z "$ac_cv_prog_RANLIB"; then
5513  ac_ct_RANLIB=$RANLIB
5514  # Extract the first word of "ranlib", so it can be a program name with args.
5515set dummy ranlib; ac_word=$2
5516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5518if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  if test -n "$ac_ct_RANLIB"; then
5522  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529  for ac_exec_ext in '' $ac_executable_extensions; do
5530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5531    ac_cv_prog_ac_ct_RANLIB="ranlib"
5532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5542if test -n "$ac_ct_RANLIB"; then
5543  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5544echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5545else
5546  { echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6; }
5548fi
5549
5550  if test "x$ac_ct_RANLIB" = x; then
5551    RANLIB=":"
5552  else
5553    case $cross_compiling:$ac_tool_warned in
5554yes:)
5555{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5556whose name does not start with the host triplet.  If you think this
5557configuration is useful to you, please write to autoconf@gnu.org." >&5
5558echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5559whose name does not start with the host triplet.  If you think this
5560configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5561ac_tool_warned=yes ;;
5562esac
5563    RANLIB=$ac_ct_RANLIB
5564  fi
5565else
5566  RANLIB="$ac_cv_prog_RANLIB"
5567fi
5568
5569{ echo "$as_me:$LINENO: checking how to copy files" >&5
5570echo $ECHO_N "checking how to copy files... $ECHO_C" >&6; }
5571if test "${cl_cv_prog_cp+set}" = set; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574
5575echo "blabla" > conftest.x
5576err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
5577if test -z "$err"; then
5578  cl_cv_prog_cp='cp -p'
5579else
5580  cl_cv_prog_cp='cp'
5581fi
5582rm -f conftest*
5583
5584fi
5585{ echo "$as_me:$LINENO: result: $cl_cv_prog_cp" >&5
5586echo "${ECHO_T}$cl_cv_prog_cp" >&6; }
5587CP="$cl_cv_prog_cp"
5588
5589{ echo "$as_me:$LINENO: checking how to make hard links" >&5
5590echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6; }
5591if test "${cl_cv_prog_LN+set}" = set; then
5592  echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594
5595rm -f conftestdata conftestfile
5596echo data > conftestfile
5597if ln conftestfile conftestdata 2>/dev/null; then
5598  cl_cv_prog_LN=ln
5599else
5600  cl_cv_prog_LN="$cl_cv_prog_cp"
5601fi
5602rm -f conftestdata conftestfile
5603
5604fi
5605{ echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
5606echo "${ECHO_T}$cl_cv_prog_LN" >&6; }
5607LN="$cl_cv_prog_LN"
5608
5609{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5610echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5611LN_S=$as_ln_s
5612if test "$LN_S" = "ln -s"; then
5613  { echo "$as_me:$LINENO: result: yes" >&5
5614echo "${ECHO_T}yes" >&6; }
5615else
5616  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5617echo "${ECHO_T}no, using $LN_S" >&6; }
5618fi
5619
5620
5621
5622
5623
5624
5625
5626# Check whether --enable-static was given.
5627if test "${enable_static+set}" = set; then
5628  enableval=$enable_static; p=${PACKAGE-default}
5629    case $enableval in
5630    yes) enable_static=yes ;;
5631    no) enable_static=no ;;
5632    *)
5633     enable_static=no
5634      # Look at the argument we got.  We use all the common list separators.
5635      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5636      for pkg in $enableval; do
5637	IFS="$lt_save_ifs"
5638	if test "X$pkg" = "X$p"; then
5639	  enable_static=yes
5640	fi
5641      done
5642      IFS="$lt_save_ifs"
5643      ;;
5644    esac
5645else
5646  enable_static=no
5647fi
5648
5649
5650
5651
5652
5653# Check whether --enable-shared was given.
5654if test "${enable_shared+set}" = set; then
5655  enableval=$enable_shared; p=${PACKAGE-default}
5656    case $enableval in
5657    yes) enable_shared=yes ;;
5658    no) enable_shared=no ;;
5659    *)
5660      enable_shared=no
5661      # Look at the argument we got.  We use all the common list separators.
5662      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5663      for pkg in $enableval; do
5664	IFS="$lt_save_ifs"
5665	if test "X$pkg" = "X$p"; then
5666	  enable_shared=yes
5667	fi
5668      done
5669      IFS="$lt_save_ifs"
5670      ;;
5671    esac
5672else
5673  enable_shared=yes
5674fi
5675
5676
5677# Check whether --enable-fast-install was given.
5678if test "${enable_fast_install+set}" = set; then
5679  enableval=$enable_fast_install; p=${PACKAGE-default}
5680    case $enableval in
5681    yes) enable_fast_install=yes ;;
5682    no) enable_fast_install=no ;;
5683    *)
5684      enable_fast_install=no
5685      # Look at the argument we got.  We use all the common list separators.
5686      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5687      for pkg in $enableval; do
5688	IFS="$lt_save_ifs"
5689	if test "X$pkg" = "X$p"; then
5690	  enable_fast_install=yes
5691	fi
5692      done
5693      IFS="$lt_save_ifs"
5694      ;;
5695    esac
5696else
5697  enable_fast_install=yes
5698fi
5699
5700
5701{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5702echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5703if test "${lt_cv_path_SED+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  # Loop through the user's path and test for sed and gsed.
5707# Then use that list of sed's as ones to test for truncation.
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  test -z "$as_dir" && as_dir=.
5713  for lt_ac_prog in sed gsed; do
5714    for ac_exec_ext in '' $ac_executable_extensions; do
5715      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5716        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5717      fi
5718    done
5719  done
5720done
5721lt_ac_max=0
5722lt_ac_count=0
5723# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5724# along with /bin/sed that truncates output.
5725for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5726  test ! -f $lt_ac_sed && continue
5727  cat /dev/null > conftest.in
5728  lt_ac_count=0
5729  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5730  # Check for GNU sed and select it if it is found.
5731  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5732    lt_cv_path_SED=$lt_ac_sed
5733    break
5734  fi
5735  while true; do
5736    cat conftest.in conftest.in >conftest.tmp
5737    mv conftest.tmp conftest.in
5738    cp conftest.in conftest.nl
5739    echo >>conftest.nl
5740    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5741    cmp -s conftest.out conftest.nl || break
5742    # 10000 chars as input seems more than enough
5743    test $lt_ac_count -gt 10 && break
5744    lt_ac_count=`expr $lt_ac_count + 1`
5745    if test $lt_ac_count -gt $lt_ac_max; then
5746      lt_ac_max=$lt_ac_count
5747      lt_cv_path_SED=$lt_ac_sed
5748    fi
5749  done
5750done
5751
5752fi
5753
5754SED=$lt_cv_path_SED
5755{ echo "$as_me:$LINENO: result: $SED" >&5
5756echo "${ECHO_T}$SED" >&6; }
5757
5758
5759# Check whether --with-gnu-ld was given.
5760if test "${with_gnu_ld+set}" = set; then
5761  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5762else
5763  with_gnu_ld=no
5764fi
5765
5766ac_prog=ld
5767if test "$GCC" = yes; then
5768  # Check if gcc -print-prog-name=ld gives a path.
5769  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5770echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5771  case $host in
5772  *-*-mingw*)
5773    # gcc leaves a trailing carriage return which upsets mingw
5774    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5775  *)
5776    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5777  esac
5778  case $ac_prog in
5779    # Accept absolute paths.
5780    [\\/]* | ?:[\\/]*)
5781      re_direlt='/[^/][^/]*/\.\./'
5782      # Canonicalize the pathname of ld
5783      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5784      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5785	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5786      done
5787      test -z "$LD" && LD="$ac_prog"
5788      ;;
5789  "")
5790    # If it fails, then pretend we aren't using GCC.
5791    ac_prog=ld
5792    ;;
5793  *)
5794    # If it is relative, then search for the first ld in PATH.
5795    with_gnu_ld=unknown
5796    ;;
5797  esac
5798elif test "$with_gnu_ld" = yes; then
5799  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5800echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5801else
5802  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5803echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5804fi
5805if test "${lt_cv_path_LD+set}" = set; then
5806  echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808  if test -z "$LD"; then
5809  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5810  for ac_dir in $PATH; do
5811    IFS="$lt_save_ifs"
5812    test -z "$ac_dir" && ac_dir=.
5813    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5814      lt_cv_path_LD="$ac_dir/$ac_prog"
5815      # Check to see if the program is GNU ld.  I'd rather use --version,
5816      # but apparently some variants of GNU ld only accept -v.
5817      # Break only if it was the GNU/non-GNU ld that we prefer.
5818      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5819      *GNU* | *'with BFD'*)
5820	test "$with_gnu_ld" != no && break
5821	;;
5822      *)
5823	test "$with_gnu_ld" != yes && break
5824	;;
5825      esac
5826    fi
5827  done
5828  IFS="$lt_save_ifs"
5829else
5830  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5831fi
5832fi
5833
5834LD="$lt_cv_path_LD"
5835if test -n "$LD"; then
5836  { echo "$as_me:$LINENO: result: $LD" >&5
5837echo "${ECHO_T}$LD" >&6; }
5838else
5839  { echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6; }
5841fi
5842test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5843echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5844   { (exit 1); exit 1; }; }
5845{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5846echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5847if test "${lt_cv_prog_gnu_ld+set}" = set; then
5848  echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5851case `$LD -v 2>&1 </dev/null` in
5852*GNU* | *'with BFD'*)
5853  lt_cv_prog_gnu_ld=yes
5854  ;;
5855*)
5856  lt_cv_prog_gnu_ld=no
5857  ;;
5858esac
5859fi
5860{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5861echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5862with_gnu_ld=$lt_cv_prog_gnu_ld
5863
5864
5865{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5866echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5867if test "${lt_cv_ld_reload_flag+set}" = set; then
5868  echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870  lt_cv_ld_reload_flag='-r'
5871fi
5872{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5873echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5874reload_flag=$lt_cv_ld_reload_flag
5875case $reload_flag in
5876"" | " "*) ;;
5877*) reload_flag=" $reload_flag" ;;
5878esac
5879reload_cmds='$LD$reload_flag -o $output$reload_objs'
5880case $host_os in
5881  darwin*)
5882    if test "$GCC" = yes; then
5883      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5884    else
5885      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5886    fi
5887    ;;
5888esac
5889
5890{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5891echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5892if test "${lt_cv_path_NM+set}" = set; then
5893  echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895  if test -n "$NM"; then
5896  # Let the user override the test.
5897  lt_cv_path_NM="$NM"
5898else
5899  lt_nm_to_check="${ac_tool_prefix}nm"
5900  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5901    lt_nm_to_check="$lt_nm_to_check nm"
5902  fi
5903  for lt_tmp_nm in $lt_nm_to_check; do
5904    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5906      IFS="$lt_save_ifs"
5907      test -z "$ac_dir" && ac_dir=.
5908      tmp_nm="$ac_dir/$lt_tmp_nm"
5909      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5910	# Check to see if the nm accepts a BSD-compat flag.
5911	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5912	#   nm: unknown option "B" ignored
5913	# Tru64's nm complains that /dev/null is an invalid object file
5914	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5915	*/dev/null* | *'Invalid file or object type'*)
5916	  lt_cv_path_NM="$tmp_nm -B"
5917	  break
5918	  ;;
5919	*)
5920	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5921	  */dev/null*)
5922	    lt_cv_path_NM="$tmp_nm -p"
5923	    break
5924	    ;;
5925	  *)
5926	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5927	    continue # so that we can try to find one that supports BSD flags
5928	    ;;
5929	  esac
5930	  ;;
5931	esac
5932      fi
5933    done
5934    IFS="$lt_save_ifs"
5935  done
5936  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5937fi
5938fi
5939{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5940echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5941NM="$lt_cv_path_NM"
5942
5943{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5944echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5945if test "${lt_cv_deplibs_check_method+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948  lt_cv_file_magic_cmd='$MAGIC_CMD'
5949lt_cv_file_magic_test_file=
5950lt_cv_deplibs_check_method='unknown'
5951# Need to set the preceding variable on all platforms that support
5952# interlibrary dependencies.
5953# 'none' -- dependencies not supported.
5954# `unknown' -- same as none, but documents that we really don't know.
5955# 'pass_all' -- all dependencies passed with no checks.
5956# 'test_compile' -- check by making test program.
5957# 'file_magic [[regex]]' -- check by looking for files in library path
5958# which responds to the $file_magic_cmd with a given extended regex.
5959# If you have `file' or equivalent on your system and you're not sure
5960# whether `pass_all' will *always* work, you probably want this one.
5961
5962case $host_os in
5963aix4* | aix5*)
5964  lt_cv_deplibs_check_method=pass_all
5965  ;;
5966
5967beos*)
5968  lt_cv_deplibs_check_method=pass_all
5969  ;;
5970
5971bsdi[45]*)
5972  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5973  lt_cv_file_magic_cmd='/usr/bin/file -L'
5974  lt_cv_file_magic_test_file=/shlib/libc.so
5975  ;;
5976
5977cygwin*)
5978  # func_win32_libid is a shell function defined in ltmain.sh
5979  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5980  lt_cv_file_magic_cmd='func_win32_libid'
5981  ;;
5982
5983mingw* | pw32*)
5984  # Base MSYS/MinGW do not provide the 'file' command needed by
5985  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5986  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5987  lt_cv_file_magic_cmd='$OBJDUMP -f'
5988  ;;
5989
5990darwin* | rhapsody*)
5991  lt_cv_deplibs_check_method=pass_all
5992  ;;
5993
5994freebsd* | kfreebsd*-gnu | dragonfly*)
5995  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5996    case $host_cpu in
5997    i*86 )
5998      # Not sure whether the presence of OpenBSD here was a mistake.
5999      # Let's accept both of them until this is cleared up.
6000      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6001      lt_cv_file_magic_cmd=/usr/bin/file
6002      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6003      ;;
6004    esac
6005  else
6006    lt_cv_deplibs_check_method=pass_all
6007  fi
6008  ;;
6009
6010gnu*)
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013
6014hpux10.20* | hpux11*)
6015  lt_cv_file_magic_cmd=/usr/bin/file
6016  case $host_cpu in
6017  ia64*)
6018    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6019    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6020    ;;
6021  hppa*64*)
6022    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]'
6023    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6024    ;;
6025  *)
6026    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6027    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6028    ;;
6029  esac
6030  ;;
6031
6032interix3*)
6033  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6034  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6035  ;;
6036
6037irix5* | irix6* | nonstopux*)
6038  case $LD in
6039  *-32|*"-32 ") libmagic=32-bit;;
6040  *-n32|*"-n32 ") libmagic=N32;;
6041  *-64|*"-64 ") libmagic=64-bit;;
6042  *) libmagic=never-match;;
6043  esac
6044  lt_cv_deplibs_check_method=pass_all
6045  ;;
6046
6047# This must be Linux ELF.
6048linux*)
6049  lt_cv_deplibs_check_method=pass_all
6050  ;;
6051
6052netbsd*)
6053  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6054    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6055  else
6056    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6057  fi
6058  ;;
6059
6060newos6*)
6061  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6062  lt_cv_file_magic_cmd=/usr/bin/file
6063  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6064  ;;
6065
6066nto-qnx*)
6067  lt_cv_deplibs_check_method=unknown
6068  ;;
6069
6070openbsd*)
6071  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6073  else
6074    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6075  fi
6076  ;;
6077
6078osf3* | osf4* | osf5*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081
6082solaris*)
6083  lt_cv_deplibs_check_method=pass_all
6084  ;;
6085
6086sysv4 | sysv4.3*)
6087  case $host_vendor in
6088  motorola)
6089    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]'
6090    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6091    ;;
6092  ncr)
6093    lt_cv_deplibs_check_method=pass_all
6094    ;;
6095  sequent)
6096    lt_cv_file_magic_cmd='/bin/file'
6097    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6098    ;;
6099  sni)
6100    lt_cv_file_magic_cmd='/bin/file'
6101    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6102    lt_cv_file_magic_test_file=/lib/libc.so
6103    ;;
6104  siemens)
6105    lt_cv_deplibs_check_method=pass_all
6106    ;;
6107  pc)
6108    lt_cv_deplibs_check_method=pass_all
6109    ;;
6110  esac
6111  ;;
6112
6113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6114  lt_cv_deplibs_check_method=pass_all
6115  ;;
6116esac
6117
6118fi
6119{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6120echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6121file_magic_cmd=$lt_cv_file_magic_cmd
6122deplibs_check_method=$lt_cv_deplibs_check_method
6123test -z "$deplibs_check_method" && deplibs_check_method=unknown
6124
6125
6126# If no C compiler was specified, use CC.
6127LTCC=${LTCC-"$CC"}
6128
6129# If no C compiler flags were specified, use CFLAGS.
6130LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6131
6132# Allow CC to be a program name with arguments.
6133compiler=$CC
6134
6135# Check whether --enable-libtool-lock was given.
6136if test "${enable_libtool_lock+set}" = set; then
6137  enableval=$enable_libtool_lock;
6138fi
6139
6140test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6141
6142# Some flags need to be propagated to the compiler or linker for good
6143# libtool support.
6144case $host in
6145ia64-*-hpux*)
6146  # Find out which ABI we are using.
6147  echo 'int i;' > conftest.$ac_ext
6148  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149  (eval $ac_compile) 2>&5
6150  ac_status=$?
6151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152  (exit $ac_status); }; then
6153    case `/usr/bin/file conftest.$ac_objext` in
6154    *ELF-32*)
6155      HPUX_IA64_MODE="32"
6156      ;;
6157    *ELF-64*)
6158      HPUX_IA64_MODE="64"
6159      ;;
6160    esac
6161  fi
6162  rm -rf conftest*
6163  ;;
6164*-*-irix6*)
6165  # Find out which ABI we are using.
6166  echo '#line 6166 "configure"' > conftest.$ac_ext
6167  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168  (eval $ac_compile) 2>&5
6169  ac_status=$?
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); }; then
6172   if test "$lt_cv_prog_gnu_ld" = yes; then
6173    case `/usr/bin/file conftest.$ac_objext` in
6174    *32-bit*)
6175      LD="${LD-ld} -melf32bsmip"
6176      ;;
6177    *N32*)
6178      LD="${LD-ld} -melf32bmipn32"
6179      ;;
6180    *64-bit*)
6181      LD="${LD-ld} -melf64bmip"
6182      ;;
6183    esac
6184   else
6185    case `/usr/bin/file conftest.$ac_objext` in
6186    *32-bit*)
6187      LD="${LD-ld} -32"
6188      ;;
6189    *N32*)
6190      LD="${LD-ld} -n32"
6191      ;;
6192    *64-bit*)
6193      LD="${LD-ld} -64"
6194      ;;
6195    esac
6196   fi
6197  fi
6198  rm -rf conftest*
6199  ;;
6200
6201x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6202  # Find out which ABI we are using.
6203  echo 'int i;' > conftest.$ac_ext
6204  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205  (eval $ac_compile) 2>&5
6206  ac_status=$?
6207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208  (exit $ac_status); }; then
6209    case `/usr/bin/file conftest.o` in
6210    *32-bit*)
6211      case $host in
6212        x86_64-*linux*)
6213          LD="${LD-ld} -m elf_i386"
6214          ;;
6215        ppc64-*linux*|powerpc64-*linux*)
6216          LD="${LD-ld} -m elf32ppclinux"
6217          ;;
6218        s390x-*linux*)
6219          LD="${LD-ld} -m elf_s390"
6220          ;;
6221        sparc64-*linux*)
6222          LD="${LD-ld} -m elf32_sparc"
6223          ;;
6224      esac
6225      ;;
6226    *64-bit*)
6227      case $host in
6228        x86_64-*linux*)
6229          LD="${LD-ld} -m elf_x86_64"
6230          ;;
6231        ppc*-*linux*|powerpc*-*linux*)
6232          LD="${LD-ld} -m elf64ppc"
6233          ;;
6234        s390*-*linux*)
6235          LD="${LD-ld} -m elf64_s390"
6236          ;;
6237        sparc*-*linux*)
6238          LD="${LD-ld} -m elf64_sparc"
6239          ;;
6240      esac
6241      ;;
6242    esac
6243  fi
6244  rm -rf conftest*
6245  ;;
6246
6247*-*-sco3.2v5*)
6248  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6249  SAVE_CFLAGS="$CFLAGS"
6250  CFLAGS="$CFLAGS -belf"
6251  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6252echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6253if test "${lt_cv_cc_needs_belf+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  ac_ext=c
6257ac_cpp='$CPP $CPPFLAGS'
6258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260ac_compiler_gnu=$ac_cv_c_compiler_gnu
6261
6262     cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h.  */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h.  */
6268
6269int
6270main ()
6271{
6272
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext conftest$ac_exeext
6278if { (ac_try="$ac_link"
6279case "(($ac_try" in
6280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281  *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284  (eval "$ac_link") 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } &&
6291	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6292  { (case "(($ac_try" in
6293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294  *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297  (eval "$ac_try") 2>&5
6298  ac_status=$?
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); }; } &&
6301	 { ac_try='test -s conftest$ac_exeext'
6302  { (case "(($ac_try" in
6303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304  *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307  (eval "$ac_try") 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; }; then
6311  lt_cv_cc_needs_belf=yes
6312else
6313  echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316	lt_cv_cc_needs_belf=no
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext \
6320      conftest$ac_exeext conftest.$ac_ext
6321     ac_ext=c
6322ac_cpp='$CPP $CPPFLAGS'
6323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327fi
6328{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6329echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6330  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6331    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6332    CFLAGS="$SAVE_CFLAGS"
6333  fi
6334  ;;
6335sparc*-*solaris*)
6336  # Find out which ABI we are using.
6337  echo 'int i;' > conftest.$ac_ext
6338  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339  (eval $ac_compile) 2>&5
6340  ac_status=$?
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); }; then
6343    case `/usr/bin/file conftest.o` in
6344    *64-bit*)
6345      case $lt_cv_prog_gnu_ld in
6346      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6347      *)    LD="${LD-ld} -64" ;;
6348      esac
6349      ;;
6350    esac
6351  fi
6352  rm -rf conftest*
6353  ;;
6354
6355*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6356  if test -n "$ac_tool_prefix"; then
6357  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6358set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6362  echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364  if test -n "$DLLTOOL"; then
6365  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6366else
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370  IFS=$as_save_IFS
6371  test -z "$as_dir" && as_dir=.
6372  for ac_exec_ext in '' $ac_executable_extensions; do
6373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376    break 2
6377  fi
6378done
6379done
6380IFS=$as_save_IFS
6381
6382fi
6383fi
6384DLLTOOL=$ac_cv_prog_DLLTOOL
6385if test -n "$DLLTOOL"; then
6386  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6387echo "${ECHO_T}$DLLTOOL" >&6; }
6388else
6389  { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
6391fi
6392
6393
6394fi
6395if test -z "$ac_cv_prog_DLLTOOL"; then
6396  ac_ct_DLLTOOL=$DLLTOOL
6397  # Extract the first word of "dlltool", so it can be a program name with args.
6398set dummy dlltool; ac_word=$2
6399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6401if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6402  echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404  if test -n "$ac_ct_DLLTOOL"; then
6405  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410  IFS=$as_save_IFS
6411  test -z "$as_dir" && as_dir=.
6412  for ac_exec_ext in '' $ac_executable_extensions; do
6413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416    break 2
6417  fi
6418done
6419done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6425if test -n "$ac_ct_DLLTOOL"; then
6426  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6427echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6428else
6429  { echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6; }
6431fi
6432
6433  if test "x$ac_ct_DLLTOOL" = x; then
6434    DLLTOOL="false"
6435  else
6436    case $cross_compiling:$ac_tool_warned in
6437yes:)
6438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6439whose name does not start with the host triplet.  If you think this
6440configuration is useful to you, please write to autoconf@gnu.org." >&5
6441echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6442whose name does not start with the host triplet.  If you think this
6443configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6444ac_tool_warned=yes ;;
6445esac
6446    DLLTOOL=$ac_ct_DLLTOOL
6447  fi
6448else
6449  DLLTOOL="$ac_cv_prog_DLLTOOL"
6450fi
6451
6452  if test -n "$ac_tool_prefix"; then
6453  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6454set dummy ${ac_tool_prefix}as; ac_word=$2
6455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457if test "${ac_cv_prog_AS+set}" = set; then
6458  echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460  if test -n "$AS"; then
6461  ac_cv_prog_AS="$AS" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466  IFS=$as_save_IFS
6467  test -z "$as_dir" && as_dir=.
6468  for ac_exec_ext in '' $ac_executable_extensions; do
6469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470    ac_cv_prog_AS="${ac_tool_prefix}as"
6471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472    break 2
6473  fi
6474done
6475done
6476IFS=$as_save_IFS
6477
6478fi
6479fi
6480AS=$ac_cv_prog_AS
6481if test -n "$AS"; then
6482  { echo "$as_me:$LINENO: result: $AS" >&5
6483echo "${ECHO_T}$AS" >&6; }
6484else
6485  { echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6; }
6487fi
6488
6489
6490fi
6491if test -z "$ac_cv_prog_AS"; then
6492  ac_ct_AS=$AS
6493  # Extract the first word of "as", so it can be a program name with args.
6494set dummy as; ac_word=$2
6495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6497if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6498  echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500  if test -n "$ac_ct_AS"; then
6501  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506  IFS=$as_save_IFS
6507  test -z "$as_dir" && as_dir=.
6508  for ac_exec_ext in '' $ac_executable_extensions; do
6509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6510    ac_cv_prog_ac_ct_AS="as"
6511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512    break 2
6513  fi
6514done
6515done
6516IFS=$as_save_IFS
6517
6518fi
6519fi
6520ac_ct_AS=$ac_cv_prog_ac_ct_AS
6521if test -n "$ac_ct_AS"; then
6522  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6523echo "${ECHO_T}$ac_ct_AS" >&6; }
6524else
6525  { echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6; }
6527fi
6528
6529  if test "x$ac_ct_AS" = x; then
6530    AS="false"
6531  else
6532    case $cross_compiling:$ac_tool_warned in
6533yes:)
6534{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6535whose name does not start with the host triplet.  If you think this
6536configuration is useful to you, please write to autoconf@gnu.org." >&5
6537echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6538whose name does not start with the host triplet.  If you think this
6539configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6540ac_tool_warned=yes ;;
6541esac
6542    AS=$ac_ct_AS
6543  fi
6544else
6545  AS="$ac_cv_prog_AS"
6546fi
6547
6548  if test -n "$ac_tool_prefix"; then
6549  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6550set dummy ${ac_tool_prefix}objdump; ac_word=$2
6551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6554  echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556  if test -n "$OBJDUMP"; then
6557  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562  IFS=$as_save_IFS
6563  test -z "$as_dir" && as_dir=.
6564  for ac_exec_ext in '' $ac_executable_extensions; do
6565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6566    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568    break 2
6569  fi
6570done
6571done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576OBJDUMP=$ac_cv_prog_OBJDUMP
6577if test -n "$OBJDUMP"; then
6578  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6579echo "${ECHO_T}$OBJDUMP" >&6; }
6580else
6581  { echo "$as_me:$LINENO: result: no" >&5
6582echo "${ECHO_T}no" >&6; }
6583fi
6584
6585
6586fi
6587if test -z "$ac_cv_prog_OBJDUMP"; then
6588  ac_ct_OBJDUMP=$OBJDUMP
6589  # Extract the first word of "objdump", so it can be a program name with args.
6590set dummy objdump; ac_word=$2
6591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6594  echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596  if test -n "$ac_ct_OBJDUMP"; then
6597  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602  IFS=$as_save_IFS
6603  test -z "$as_dir" && as_dir=.
6604  for ac_exec_ext in '' $ac_executable_extensions; do
6605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6617if test -n "$ac_ct_OBJDUMP"; then
6618  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6619echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6620else
6621  { echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6; }
6623fi
6624
6625  if test "x$ac_ct_OBJDUMP" = x; then
6626    OBJDUMP="false"
6627  else
6628    case $cross_compiling:$ac_tool_warned in
6629yes:)
6630{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6631whose name does not start with the host triplet.  If you think this
6632configuration is useful to you, please write to autoconf@gnu.org." >&5
6633echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6634whose name does not start with the host triplet.  If you think this
6635configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6636ac_tool_warned=yes ;;
6637esac
6638    OBJDUMP=$ac_ct_OBJDUMP
6639  fi
6640else
6641  OBJDUMP="$ac_cv_prog_OBJDUMP"
6642fi
6643
6644  ;;
6645
6646esac
6647
6648need_locks="$enable_libtool_lock"
6649
6650
6651
6652for ac_header in dlfcn.h
6653do
6654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6656  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660fi
6661ac_res=`eval echo '${'$as_ac_Header'}'`
6662	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6663echo "${ECHO_T}$ac_res" >&6; }
6664else
6665  # Is the header compilable?
6666{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6668cat >conftest.$ac_ext <<_ACEOF
6669/* confdefs.h.  */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h.  */
6674$ac_includes_default
6675#include <$ac_header>
6676_ACEOF
6677rm -f conftest.$ac_objext
6678if { (ac_try="$ac_compile"
6679case "(($ac_try" in
6680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681  *) ac_try_echo=$ac_try;;
6682esac
6683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684  (eval "$ac_compile") 2>conftest.er1
6685  ac_status=$?
6686  grep -v '^ *+' conftest.er1 >conftest.err
6687  rm -f conftest.er1
6688  cat conftest.err >&5
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); } &&
6691	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6692  { (case "(($ac_try" in
6693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694  *) ac_try_echo=$ac_try;;
6695esac
6696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697  (eval "$ac_try") 2>&5
6698  ac_status=$?
6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); }; } &&
6701	 { ac_try='test -s conftest.$ac_objext'
6702  { (case "(($ac_try" in
6703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704  *) ac_try_echo=$ac_try;;
6705esac
6706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707  (eval "$ac_try") 2>&5
6708  ac_status=$?
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); }; }; then
6711  ac_header_compiler=yes
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716	ac_header_compiler=no
6717fi
6718
6719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6721echo "${ECHO_T}$ac_header_compiler" >&6; }
6722
6723# Is the header present?
6724{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6726cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h.  */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h.  */
6732#include <$ac_header>
6733_ACEOF
6734if { (ac_try="$ac_cpp conftest.$ac_ext"
6735case "(($ac_try" in
6736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737  *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6741  ac_status=$?
6742  grep -v '^ *+' conftest.er1 >conftest.err
6743  rm -f conftest.er1
6744  cat conftest.err >&5
6745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746  (exit $ac_status); } >/dev/null; then
6747  if test -s conftest.err; then
6748    ac_cpp_err=$ac_c_preproc_warn_flag
6749    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750  else
6751    ac_cpp_err=
6752  fi
6753else
6754  ac_cpp_err=yes
6755fi
6756if test -z "$ac_cpp_err"; then
6757  ac_header_preproc=yes
6758else
6759  echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762  ac_header_preproc=no
6763fi
6764
6765rm -f conftest.err conftest.$ac_ext
6766{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6767echo "${ECHO_T}$ac_header_preproc" >&6; }
6768
6769# So?  What about this header?
6770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6771  yes:no: )
6772    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6774    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6776    ac_header_preproc=yes
6777    ;;
6778  no:yes:* )
6779    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6781    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6782echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6783    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6785    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6786echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6789    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6791
6792    ;;
6793esac
6794{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6797  echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799  eval "$as_ac_Header=\$ac_header_preproc"
6800fi
6801ac_res=`eval echo '${'$as_ac_Header'}'`
6802	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6803echo "${ECHO_T}$ac_res" >&6; }
6804
6805fi
6806if test `eval echo '${'$as_ac_Header'}'` = yes; then
6807  cat >>confdefs.h <<_ACEOF
6808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809_ACEOF
6810
6811fi
6812
6813done
6814
6815ac_ext=cpp
6816ac_cpp='$CXXCPP $CPPFLAGS'
6817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6820if test -z "$CXX"; then
6821  if test -n "$CCC"; then
6822    CXX=$CCC
6823  else
6824    if test -n "$ac_tool_prefix"; then
6825  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6826  do
6827    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6828set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_prog_CXX+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  if test -n "$CXX"; then
6835  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842  for ac_exec_ext in '' $ac_executable_extensions; do
6843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854CXX=$ac_cv_prog_CXX
6855if test -n "$CXX"; then
6856  { echo "$as_me:$LINENO: result: $CXX" >&5
6857echo "${ECHO_T}$CXX" >&6; }
6858else
6859  { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
6861fi
6862
6863
6864    test -n "$CXX" && break
6865  done
6866fi
6867if test -z "$CXX"; then
6868  ac_ct_CXX=$CXX
6869  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6870do
6871  # Extract the first word of "$ac_prog", so it can be a program name with args.
6872set dummy $ac_prog; ac_word=$2
6873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6876  echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878  if test -n "$ac_ct_CXX"; then
6879  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884  IFS=$as_save_IFS
6885  test -z "$as_dir" && as_dir=.
6886  for ac_exec_ext in '' $ac_executable_extensions; do
6887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888    ac_cv_prog_ac_ct_CXX="$ac_prog"
6889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890    break 2
6891  fi
6892done
6893done
6894IFS=$as_save_IFS
6895
6896fi
6897fi
6898ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6899if test -n "$ac_ct_CXX"; then
6900  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6901echo "${ECHO_T}$ac_ct_CXX" >&6; }
6902else
6903  { echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6; }
6905fi
6906
6907
6908  test -n "$ac_ct_CXX" && break
6909done
6910
6911  if test "x$ac_ct_CXX" = x; then
6912    CXX="g++"
6913  else
6914    case $cross_compiling:$ac_tool_warned in
6915yes:)
6916{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6917whose name does not start with the host triplet.  If you think this
6918configuration is useful to you, please write to autoconf@gnu.org." >&5
6919echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6920whose name does not start with the host triplet.  If you think this
6921configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924    CXX=$ac_ct_CXX
6925  fi
6926fi
6927
6928  fi
6929fi
6930# Provide some information about the compiler.
6931echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6932ac_compiler=`set X $ac_compile; echo $2`
6933{ (ac_try="$ac_compiler --version >&5"
6934case "(($ac_try" in
6935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936  *) ac_try_echo=$ac_try;;
6937esac
6938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939  (eval "$ac_compiler --version >&5") 2>&5
6940  ac_status=$?
6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); }
6943{ (ac_try="$ac_compiler -v >&5"
6944case "(($ac_try" in
6945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946  *) ac_try_echo=$ac_try;;
6947esac
6948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949  (eval "$ac_compiler -v >&5") 2>&5
6950  ac_status=$?
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); }
6953{ (ac_try="$ac_compiler -V >&5"
6954case "(($ac_try" in
6955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956  *) ac_try_echo=$ac_try;;
6957esac
6958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959  (eval "$ac_compiler -V >&5") 2>&5
6960  ac_status=$?
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); }
6963
6964{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6965echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6966if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h.  */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h.  */
6975
6976int
6977main ()
6978{
6979#ifndef __GNUC__
6980       choke me
6981#endif
6982
6983  ;
6984  return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext
6988if { (ac_try="$ac_compile"
6989case "(($ac_try" in
6990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991  *) ac_try_echo=$ac_try;;
6992esac
6993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994  (eval "$ac_compile") 2>conftest.er1
6995  ac_status=$?
6996  grep -v '^ *+' conftest.er1 >conftest.err
6997  rm -f conftest.er1
6998  cat conftest.err >&5
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } &&
7001	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7002  { (case "(($ac_try" in
7003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004  *) ac_try_echo=$ac_try;;
7005esac
7006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007  (eval "$ac_try") 2>&5
7008  ac_status=$?
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); }; } &&
7011	 { ac_try='test -s conftest.$ac_objext'
7012  { (case "(($ac_try" in
7013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014  *) ac_try_echo=$ac_try;;
7015esac
7016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017  (eval "$ac_try") 2>&5
7018  ac_status=$?
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); }; }; then
7021  ac_compiler_gnu=yes
7022else
7023  echo "$as_me: failed program was:" >&5
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026	ac_compiler_gnu=no
7027fi
7028
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7031
7032fi
7033{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7034echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7035GXX=`test $ac_compiler_gnu = yes && echo yes`
7036ac_test_CXXFLAGS=${CXXFLAGS+set}
7037ac_save_CXXFLAGS=$CXXFLAGS
7038{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7039echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7040if test "${ac_cv_prog_cxx_g+set}" = set; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7044   ac_cxx_werror_flag=yes
7045   ac_cv_prog_cxx_g=no
7046   CXXFLAGS="-g"
7047   cat >conftest.$ac_ext <<_ACEOF
7048/* confdefs.h.  */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h.  */
7053
7054int
7055main ()
7056{
7057
7058  ;
7059  return 0;
7060}
7061_ACEOF
7062rm -f conftest.$ac_objext
7063if { (ac_try="$ac_compile"
7064case "(($ac_try" in
7065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066  *) ac_try_echo=$ac_try;;
7067esac
7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069  (eval "$ac_compile") 2>conftest.er1
7070  ac_status=$?
7071  grep -v '^ *+' conftest.er1 >conftest.err
7072  rm -f conftest.er1
7073  cat conftest.err >&5
7074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075  (exit $ac_status); } &&
7076	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7077  { (case "(($ac_try" in
7078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079  *) ac_try_echo=$ac_try;;
7080esac
7081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082  (eval "$ac_try") 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }; } &&
7086	 { ac_try='test -s conftest.$ac_objext'
7087  { (case "(($ac_try" in
7088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089  *) ac_try_echo=$ac_try;;
7090esac
7091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092  (eval "$ac_try") 2>&5
7093  ac_status=$?
7094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095  (exit $ac_status); }; }; then
7096  ac_cv_prog_cxx_g=yes
7097else
7098  echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
7100
7101	CXXFLAGS=""
7102      cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h.  */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h.  */
7108
7109int
7110main ()
7111{
7112
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext
7118if { (ac_try="$ac_compile"
7119case "(($ac_try" in
7120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121  *) ac_try_echo=$ac_try;;
7122esac
7123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124  (eval "$ac_compile") 2>conftest.er1
7125  ac_status=$?
7126  grep -v '^ *+' conftest.er1 >conftest.err
7127  rm -f conftest.er1
7128  cat conftest.err >&5
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); } &&
7131	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7132  { (case "(($ac_try" in
7133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134  *) ac_try_echo=$ac_try;;
7135esac
7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137  (eval "$ac_try") 2>&5
7138  ac_status=$?
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); }; } &&
7141	 { ac_try='test -s conftest.$ac_objext'
7142  { (case "(($ac_try" in
7143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144  *) ac_try_echo=$ac_try;;
7145esac
7146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147  (eval "$ac_try") 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); }; }; then
7151  :
7152else
7153  echo "$as_me: failed program was:" >&5
7154sed 's/^/| /' conftest.$ac_ext >&5
7155
7156	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7157	 CXXFLAGS="-g"
7158	 cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h.  */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h.  */
7164
7165int
7166main ()
7167{
7168
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext
7174if { (ac_try="$ac_compile"
7175case "(($ac_try" in
7176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177  *) ac_try_echo=$ac_try;;
7178esac
7179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180  (eval "$ac_compile") 2>conftest.er1
7181  ac_status=$?
7182  grep -v '^ *+' conftest.er1 >conftest.err
7183  rm -f conftest.er1
7184  cat conftest.err >&5
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); } &&
7187	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7188  { (case "(($ac_try" in
7189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190  *) ac_try_echo=$ac_try;;
7191esac
7192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193  (eval "$ac_try") 2>&5
7194  ac_status=$?
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); }; } &&
7197	 { ac_try='test -s conftest.$ac_objext'
7198  { (case "(($ac_try" in
7199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200  *) ac_try_echo=$ac_try;;
7201esac
7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203  (eval "$ac_try") 2>&5
7204  ac_status=$?
7205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206  (exit $ac_status); }; }; then
7207  ac_cv_prog_cxx_g=yes
7208else
7209  echo "$as_me: failed program was:" >&5
7210sed 's/^/| /' conftest.$ac_ext >&5
7211
7212
7213fi
7214
7215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216fi
7217
7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219fi
7220
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7223fi
7224{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7225echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7226if test "$ac_test_CXXFLAGS" = set; then
7227  CXXFLAGS=$ac_save_CXXFLAGS
7228elif test $ac_cv_prog_cxx_g = yes; then
7229  if test "$GXX" = yes; then
7230    CXXFLAGS="-g -O2"
7231  else
7232    CXXFLAGS="-g"
7233  fi
7234else
7235  if test "$GXX" = yes; then
7236    CXXFLAGS="-O2"
7237  else
7238    CXXFLAGS=
7239  fi
7240fi
7241ac_ext=cpp
7242ac_cpp='$CXXCPP $CPPFLAGS'
7243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7246
7247depcc="$CXX"  am_compiler_list=
7248
7249{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7250echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7251if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7255  # We make a subdir and do the tests there.  Otherwise we can end up
7256  # making bogus files that we don't know about and never remove.  For
7257  # instance it was reported that on HP-UX the gcc test will end up
7258  # making a dummy file named `D' -- because `-MD' means `put the output
7259  # in D'.
7260  mkdir conftest.dir
7261  # Copy depcomp to subdir because otherwise we won't find it if we're
7262  # using a relative directory.
7263  cp "$am_depcomp" conftest.dir
7264  cd conftest.dir
7265  # We will build objects and dependencies in a subdirectory because
7266  # it helps to detect inapplicable dependency modes.  For instance
7267  # both Tru64's cc and ICC support -MD to output dependencies as a
7268  # side effect of compilation, but ICC will put the dependencies in
7269  # the current directory while Tru64 will put them in the object
7270  # directory.
7271  mkdir sub
7272
7273  am_cv_CXX_dependencies_compiler_type=none
7274  if test "$am_compiler_list" = ""; then
7275     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7276  fi
7277  for depmode in $am_compiler_list; do
7278    # Setup a source with many dependencies, because some compilers
7279    # like to wrap large dependency lists on column 80 (with \), and
7280    # we should not choose a depcomp mode which is confused by this.
7281    #
7282    # We need to recreate these files for each test, as the compiler may
7283    # overwrite some of them when testing with obscure command lines.
7284    # This happens at least with the AIX C compiler.
7285    : > sub/conftest.c
7286    for i in 1 2 3 4 5 6; do
7287      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7288      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7289      # Solaris 8's {/usr,}/bin/sh.
7290      touch sub/conftst$i.h
7291    done
7292    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7293
7294    case $depmode in
7295    nosideeffect)
7296      # after this tag, mechanisms are not by side-effect, so they'll
7297      # only be used when explicitly requested
7298      if test "x$enable_dependency_tracking" = xyes; then
7299	continue
7300      else
7301	break
7302      fi
7303      ;;
7304    none) break ;;
7305    esac
7306    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7307    # mode.  It turns out that the SunPro C++ compiler does not properly
7308    # handle `-M -o', and we need to detect this.
7309    if depmode=$depmode \
7310       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7311       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7312       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7313         >/dev/null 2>conftest.err &&
7314       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7315       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7316       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7317      # icc doesn't choke on unknown options, it will just issue warnings
7318      # or remarks (even with -Werror).  So we grep stderr for any message
7319      # that says an option was ignored or not supported.
7320      # When given -MP, icc 7.0 and 7.1 complain thusly:
7321      #   icc: Command line warning: ignoring option '-M'; no argument required
7322      # The diagnosis changed in icc 8.0:
7323      #   icc: Command line remark: option '-MP' not supported
7324      if (grep 'ignoring option' conftest.err ||
7325          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7326        am_cv_CXX_dependencies_compiler_type=$depmode
7327        break
7328      fi
7329    fi
7330  done
7331
7332  cd ..
7333  rm -rf conftest.dir
7334else
7335  am_cv_CXX_dependencies_compiler_type=none
7336fi
7337
7338fi
7339{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7340echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7341CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7342
7343
7344
7345if
7346  test "x$enable_dependency_tracking" != xno \
7347  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7348  am__fastdepCXX_TRUE=
7349  am__fastdepCXX_FALSE='#'
7350else
7351  am__fastdepCXX_TRUE='#'
7352  am__fastdepCXX_FALSE=
7353fi
7354
7355
7356
7357
7358if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7359    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7360    (test "X$CXX" != "Xg++"))) ; then
7361  ac_ext=cpp
7362ac_cpp='$CXXCPP $CPPFLAGS'
7363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7366{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7367echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7368if test -z "$CXXCPP"; then
7369  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7370  echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372      # Double quotes because CXXCPP needs to be expanded
7373    for CXXCPP in "$CXX -E" "/lib/cpp"
7374    do
7375      ac_preproc_ok=false
7376for ac_cxx_preproc_warn_flag in '' yes
7377do
7378  # Use a header file that comes with gcc, so configuring glibc
7379  # with a fresh cross-compiler works.
7380  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381  # <limits.h> exists even on freestanding compilers.
7382  # On the NeXT, cc -E runs the code through the compiler's parser,
7383  # not just through cpp. "Syntax error" is here to catch this case.
7384  cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h.  */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h.  */
7390#ifdef __STDC__
7391# include <limits.h>
7392#else
7393# include <assert.h>
7394#endif
7395		     Syntax error
7396_ACEOF
7397if { (ac_try="$ac_cpp conftest.$ac_ext"
7398case "(($ac_try" in
7399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400  *) ac_try_echo=$ac_try;;
7401esac
7402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7404  ac_status=$?
7405  grep -v '^ *+' conftest.er1 >conftest.err
7406  rm -f conftest.er1
7407  cat conftest.err >&5
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } >/dev/null; then
7410  if test -s conftest.err; then
7411    ac_cpp_err=$ac_cxx_preproc_warn_flag
7412    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7413  else
7414    ac_cpp_err=
7415  fi
7416else
7417  ac_cpp_err=yes
7418fi
7419if test -z "$ac_cpp_err"; then
7420  :
7421else
7422  echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425  # Broken: fails on valid input.
7426continue
7427fi
7428
7429rm -f conftest.err conftest.$ac_ext
7430
7431  # OK, works on sane cases.  Now check whether nonexistent headers
7432  # can be detected and how.
7433  cat >conftest.$ac_ext <<_ACEOF
7434/* confdefs.h.  */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h.  */
7439#include <ac_nonexistent.h>
7440_ACEOF
7441if { (ac_try="$ac_cpp conftest.$ac_ext"
7442case "(($ac_try" in
7443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444  *) ac_try_echo=$ac_try;;
7445esac
7446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7448  ac_status=$?
7449  grep -v '^ *+' conftest.er1 >conftest.err
7450  rm -f conftest.er1
7451  cat conftest.err >&5
7452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); } >/dev/null; then
7454  if test -s conftest.err; then
7455    ac_cpp_err=$ac_cxx_preproc_warn_flag
7456    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7457  else
7458    ac_cpp_err=
7459  fi
7460else
7461  ac_cpp_err=yes
7462fi
7463if test -z "$ac_cpp_err"; then
7464  # Broken: success on invalid input.
7465continue
7466else
7467  echo "$as_me: failed program was:" >&5
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470  # Passes both tests.
7471ac_preproc_ok=:
7472break
7473fi
7474
7475rm -f conftest.err conftest.$ac_ext
7476
7477done
7478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479rm -f conftest.err conftest.$ac_ext
7480if $ac_preproc_ok; then
7481  break
7482fi
7483
7484    done
7485    ac_cv_prog_CXXCPP=$CXXCPP
7486
7487fi
7488  CXXCPP=$ac_cv_prog_CXXCPP
7489else
7490  ac_cv_prog_CXXCPP=$CXXCPP
7491fi
7492{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7493echo "${ECHO_T}$CXXCPP" >&6; }
7494ac_preproc_ok=false
7495for ac_cxx_preproc_warn_flag in '' yes
7496do
7497  # Use a header file that comes with gcc, so configuring glibc
7498  # with a fresh cross-compiler works.
7499  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7500  # <limits.h> exists even on freestanding compilers.
7501  # On the NeXT, cc -E runs the code through the compiler's parser,
7502  # not just through cpp. "Syntax error" is here to catch this case.
7503  cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h.  */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h.  */
7509#ifdef __STDC__
7510# include <limits.h>
7511#else
7512# include <assert.h>
7513#endif
7514		     Syntax error
7515_ACEOF
7516if { (ac_try="$ac_cpp conftest.$ac_ext"
7517case "(($ac_try" in
7518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519  *) ac_try_echo=$ac_try;;
7520esac
7521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7522  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7523  ac_status=$?
7524  grep -v '^ *+' conftest.er1 >conftest.err
7525  rm -f conftest.er1
7526  cat conftest.err >&5
7527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528  (exit $ac_status); } >/dev/null; then
7529  if test -s conftest.err; then
7530    ac_cpp_err=$ac_cxx_preproc_warn_flag
7531    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7532  else
7533    ac_cpp_err=
7534  fi
7535else
7536  ac_cpp_err=yes
7537fi
7538if test -z "$ac_cpp_err"; then
7539  :
7540else
7541  echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544  # Broken: fails on valid input.
7545continue
7546fi
7547
7548rm -f conftest.err conftest.$ac_ext
7549
7550  # OK, works on sane cases.  Now check whether nonexistent headers
7551  # can be detected and how.
7552  cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h.  */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h.  */
7558#include <ac_nonexistent.h>
7559_ACEOF
7560if { (ac_try="$ac_cpp conftest.$ac_ext"
7561case "(($ac_try" in
7562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563  *) ac_try_echo=$ac_try;;
7564esac
7565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7567  ac_status=$?
7568  grep -v '^ *+' conftest.er1 >conftest.err
7569  rm -f conftest.er1
7570  cat conftest.err >&5
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); } >/dev/null; then
7573  if test -s conftest.err; then
7574    ac_cpp_err=$ac_cxx_preproc_warn_flag
7575    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7576  else
7577    ac_cpp_err=
7578  fi
7579else
7580  ac_cpp_err=yes
7581fi
7582if test -z "$ac_cpp_err"; then
7583  # Broken: success on invalid input.
7584continue
7585else
7586  echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589  # Passes both tests.
7590ac_preproc_ok=:
7591break
7592fi
7593
7594rm -f conftest.err conftest.$ac_ext
7595
7596done
7597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7598rm -f conftest.err conftest.$ac_ext
7599if $ac_preproc_ok; then
7600  :
7601else
7602  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7603See \`config.log' for more details." >&5
7604echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7605See \`config.log' for more details." >&2;}
7606   { (exit 1); exit 1; }; }
7607fi
7608
7609ac_ext=cpp
7610ac_cpp='$CXXCPP $CPPFLAGS'
7611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7614
7615fi
7616
7617
7618ac_ext=f
7619ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7620ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7622if test -n "$ac_tool_prefix"; then
7623  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7624  do
7625    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629if test "${ac_cv_prog_F77+set}" = set; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  if test -n "$F77"; then
7633  ac_cv_prog_F77="$F77" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638  IFS=$as_save_IFS
7639  test -z "$as_dir" && as_dir=.
7640  for ac_exec_ext in '' $ac_executable_extensions; do
7641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644    break 2
7645  fi
7646done
7647done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652F77=$ac_cv_prog_F77
7653if test -n "$F77"; then
7654  { echo "$as_me:$LINENO: result: $F77" >&5
7655echo "${ECHO_T}$F77" >&6; }
7656else
7657  { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
7659fi
7660
7661
7662    test -n "$F77" && break
7663  done
7664fi
7665if test -z "$F77"; then
7666  ac_ct_F77=$F77
7667  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7668do
7669  # Extract the first word of "$ac_prog", so it can be a program name with args.
7670set dummy $ac_prog; ac_word=$2
7671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7674  echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676  if test -n "$ac_ct_F77"; then
7677  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684  for ac_exec_ext in '' $ac_executable_extensions; do
7685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686    ac_cv_prog_ac_ct_F77="$ac_prog"
7687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691done
7692IFS=$as_save_IFS
7693
7694fi
7695fi
7696ac_ct_F77=$ac_cv_prog_ac_ct_F77
7697if test -n "$ac_ct_F77"; then
7698  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7699echo "${ECHO_T}$ac_ct_F77" >&6; }
7700else
7701  { echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6; }
7703fi
7704
7705
7706  test -n "$ac_ct_F77" && break
7707done
7708
7709  if test "x$ac_ct_F77" = x; then
7710    F77=""
7711  else
7712    case $cross_compiling:$ac_tool_warned in
7713yes:)
7714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7715whose name does not start with the host triplet.  If you think this
7716configuration is useful to you, please write to autoconf@gnu.org." >&5
7717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7718whose name does not start with the host triplet.  If you think this
7719configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7720ac_tool_warned=yes ;;
7721esac
7722    F77=$ac_ct_F77
7723  fi
7724fi
7725
7726
7727# Provide some information about the compiler.
7728echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7729ac_compiler=`set X $ac_compile; echo $2`
7730{ (ac_try="$ac_compiler --version >&5"
7731case "(($ac_try" in
7732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733  *) ac_try_echo=$ac_try;;
7734esac
7735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736  (eval "$ac_compiler --version >&5") 2>&5
7737  ac_status=$?
7738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739  (exit $ac_status); }
7740{ (ac_try="$ac_compiler -v >&5"
7741case "(($ac_try" in
7742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743  *) ac_try_echo=$ac_try;;
7744esac
7745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746  (eval "$ac_compiler -v >&5") 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); }
7750{ (ac_try="$ac_compiler -V >&5"
7751case "(($ac_try" in
7752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753  *) ac_try_echo=$ac_try;;
7754esac
7755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756  (eval "$ac_compiler -V >&5") 2>&5
7757  ac_status=$?
7758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759  (exit $ac_status); }
7760rm -f a.out
7761
7762# If we don't use `.F' as extension, the preprocessor is not run on the
7763# input file.  (Note that this only needs to work for GNU compilers.)
7764ac_save_ext=$ac_ext
7765ac_ext=F
7766{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7767echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7768if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7769  echo $ECHO_N "(cached) $ECHO_C" >&6
7770else
7771  cat >conftest.$ac_ext <<_ACEOF
7772      program main
7773#ifndef __GNUC__
7774       choke me
7775#endif
7776
7777      end
7778_ACEOF
7779rm -f conftest.$ac_objext
7780if { (ac_try="$ac_compile"
7781case "(($ac_try" in
7782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783  *) ac_try_echo=$ac_try;;
7784esac
7785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786  (eval "$ac_compile") 2>conftest.er1
7787  ac_status=$?
7788  grep -v '^ *+' conftest.er1 >conftest.err
7789  rm -f conftest.er1
7790  cat conftest.err >&5
7791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792  (exit $ac_status); } &&
7793	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7794  { (case "(($ac_try" in
7795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796  *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799  (eval "$ac_try") 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); }; } &&
7803	 { ac_try='test -s conftest.$ac_objext'
7804  { (case "(($ac_try" in
7805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806  *) ac_try_echo=$ac_try;;
7807esac
7808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809  (eval "$ac_try") 2>&5
7810  ac_status=$?
7811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812  (exit $ac_status); }; }; then
7813  ac_compiler_gnu=yes
7814else
7815  echo "$as_me: failed program was:" >&5
7816sed 's/^/| /' conftest.$ac_ext >&5
7817
7818	ac_compiler_gnu=no
7819fi
7820
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7823
7824fi
7825{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7826echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7827ac_ext=$ac_save_ext
7828ac_test_FFLAGS=${FFLAGS+set}
7829ac_save_FFLAGS=$FFLAGS
7830FFLAGS=
7831{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7832echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7833if test "${ac_cv_prog_f77_g+set}" = set; then
7834  echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836  FFLAGS=-g
7837cat >conftest.$ac_ext <<_ACEOF
7838      program main
7839
7840      end
7841_ACEOF
7842rm -f conftest.$ac_objext
7843if { (ac_try="$ac_compile"
7844case "(($ac_try" in
7845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846  *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849  (eval "$ac_compile") 2>conftest.er1
7850  ac_status=$?
7851  grep -v '^ *+' conftest.er1 >conftest.err
7852  rm -f conftest.er1
7853  cat conftest.err >&5
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); } &&
7856	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7857  { (case "(($ac_try" in
7858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859  *) ac_try_echo=$ac_try;;
7860esac
7861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862  (eval "$ac_try") 2>&5
7863  ac_status=$?
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); }; } &&
7866	 { ac_try='test -s conftest.$ac_objext'
7867  { (case "(($ac_try" in
7868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869  *) ac_try_echo=$ac_try;;
7870esac
7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872  (eval "$ac_try") 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); }; }; then
7876  ac_cv_prog_f77_g=yes
7877else
7878  echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881	ac_cv_prog_f77_g=no
7882fi
7883
7884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885
7886fi
7887{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7888echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7889if test "$ac_test_FFLAGS" = set; then
7890  FFLAGS=$ac_save_FFLAGS
7891elif test $ac_cv_prog_f77_g = yes; then
7892  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7893    FFLAGS="-g -O2"
7894  else
7895    FFLAGS="-g"
7896  fi
7897else
7898  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7899    FFLAGS="-O2"
7900  else
7901    FFLAGS=
7902  fi
7903fi
7904
7905G77=`test $ac_compiler_gnu = yes && echo yes`
7906ac_ext=c
7907ac_cpp='$CPP $CPPFLAGS'
7908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911
7912
7913
7914# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7915
7916# find the maximum length of command line arguments
7917{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7918echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7919if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7920  echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922    i=0
7923  teststring="ABCD"
7924
7925  case $build_os in
7926  msdosdjgpp*)
7927    # On DJGPP, this test can blow up pretty badly due to problems in libc
7928    # (any single argument exceeding 2000 bytes causes a buffer overrun
7929    # during glob expansion).  Even if it were fixed, the result of this
7930    # check would be larger than it should be.
7931    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7932    ;;
7933
7934  gnu*)
7935    # Under GNU Hurd, this test is not required because there is
7936    # no limit to the length of command line arguments.
7937    # Libtool will interpret -1 as no limit whatsoever
7938    lt_cv_sys_max_cmd_len=-1;
7939    ;;
7940
7941  cygwin* | mingw*)
7942    # On Win9x/ME, this test blows up -- it succeeds, but takes
7943    # about 5 minutes as the teststring grows exponentially.
7944    # Worse, since 9x/ME are not pre-emptively multitasking,
7945    # you end up with a "frozen" computer, even though with patience
7946    # the test eventually succeeds (with a max line length of 256k).
7947    # Instead, let's just punt: use the minimum linelength reported by
7948    # all of the supported platforms: 8192 (on NT/2K/XP).
7949    lt_cv_sys_max_cmd_len=8192;
7950    ;;
7951
7952  amigaos*)
7953    # On AmigaOS with pdksh, this test takes hours, literally.
7954    # So we just punt and use a minimum line length of 8192.
7955    lt_cv_sys_max_cmd_len=8192;
7956    ;;
7957
7958  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7959    # This has been around since 386BSD, at least.  Likely further.
7960    if test -x /sbin/sysctl; then
7961      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7962    elif test -x /usr/sbin/sysctl; then
7963      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7964    else
7965      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7966    fi
7967    # And add a safety zone
7968    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7969    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7970    ;;
7971
7972  interix*)
7973    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7974    lt_cv_sys_max_cmd_len=196608
7975    ;;
7976
7977  osf*)
7978    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7979    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7980    # nice to cause kernel panics so lets avoid the loop below.
7981    # First set a reasonable default.
7982    lt_cv_sys_max_cmd_len=16384
7983    #
7984    if test -x /sbin/sysconfig; then
7985      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7986        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7987      esac
7988    fi
7989    ;;
7990  sco3.2v5*)
7991    lt_cv_sys_max_cmd_len=102400
7992    ;;
7993  sysv5* | sco5v6* | sysv4.2uw2*)
7994    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7995    if test -n "$kargmax"; then
7996      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7997    else
7998      lt_cv_sys_max_cmd_len=32768
7999    fi
8000    ;;
8001  *)
8002    # If test is not a shell built-in, we'll probably end up computing a
8003    # maximum length that is only half of the actual maximum length, but
8004    # we can't tell.
8005    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8006    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8007	       = "XX$teststring") >/dev/null 2>&1 &&
8008	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8009	    lt_cv_sys_max_cmd_len=$new_result &&
8010	    test $i != 17 # 1/2 MB should be enough
8011    do
8012      i=`expr $i + 1`
8013      teststring=$teststring$teststring
8014    done
8015    teststring=
8016    # Add a significant safety factor because C++ compilers can tack on massive
8017    # amounts of additional arguments before passing them to the linker.
8018    # It appears as though 1/2 is a usable value.
8019    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8020    ;;
8021  esac
8022
8023fi
8024
8025if test -n $lt_cv_sys_max_cmd_len ; then
8026  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8027echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8028else
8029  { echo "$as_me:$LINENO: result: none" >&5
8030echo "${ECHO_T}none" >&6; }
8031fi
8032
8033
8034
8035
8036# Check for command to grab the raw symbol name followed by C symbol from nm.
8037{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8038echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8039if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8040  echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042
8043# These are sane defaults that work on at least a few old systems.
8044# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8045
8046# Character class describing NM global symbol codes.
8047symcode='[BCDEGRST]'
8048
8049# Regexp to match symbols that can be accessed directly from C.
8050sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8051
8052# Transform an extracted symbol line into a proper C declaration
8053lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8054
8055# Transform an extracted symbol line into symbol name and symbol address
8056lt_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'"
8057
8058# Define system-specific variables.
8059case $host_os in
8060aix*)
8061  symcode='[BCDT]'
8062  ;;
8063cygwin* | mingw* | pw32*)
8064  symcode='[ABCDGISTW]'
8065  ;;
8066hpux*) # Its linker distinguishes data from code symbols
8067  if test "$host_cpu" = ia64; then
8068    symcode='[ABCDEGRST]'
8069  fi
8070  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8071  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'"
8072  ;;
8073linux*)
8074  if test "$host_cpu" = ia64; then
8075    symcode='[ABCDGIRSTW]'
8076    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8077    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'"
8078  fi
8079  ;;
8080irix* | nonstopux*)
8081  symcode='[BCDEGRST]'
8082  ;;
8083osf*)
8084  symcode='[BCDEGQRST]'
8085  ;;
8086solaris*)
8087  symcode='[BDRT]'
8088  ;;
8089sco3.2v5*)
8090  symcode='[DT]'
8091  ;;
8092sysv4.2uw2*)
8093  symcode='[DT]'
8094  ;;
8095sysv5* | sco5v6* | unixware* | OpenUNIX*)
8096  symcode='[ABDT]'
8097  ;;
8098sysv4)
8099  symcode='[DFNSTU]'
8100  ;;
8101esac
8102
8103# Handle CRLF in mingw tool chain
8104opt_cr=
8105case $build_os in
8106mingw*)
8107  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8108  ;;
8109esac
8110
8111# If we're using GNU nm, then use its standard symbol codes.
8112case `$NM -V 2>&1` in
8113*GNU* | *'with BFD'*)
8114  symcode='[ABCDGIRSTW]' ;;
8115esac
8116
8117# Try without a prefix undercore, then with it.
8118for ac_symprfx in "" "_"; do
8119
8120  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8121  symxfrm="\\1 $ac_symprfx\\2 \\2"
8122
8123  # Write the raw and C identifiers.
8124  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8125
8126  # Check to see that the pipe works correctly.
8127  pipe_works=no
8128
8129  rm -f conftest*
8130  cat > conftest.$ac_ext <<EOF
8131#ifdef __cplusplus
8132extern "C" {
8133#endif
8134char nm_test_var;
8135void nm_test_func(){}
8136#ifdef __cplusplus
8137}
8138#endif
8139int main(){nm_test_var='a';nm_test_func();return(0);}
8140EOF
8141
8142  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8143  (eval $ac_compile) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); }; then
8147    # Now try to grab the symbols.
8148    nlist=conftest.nm
8149    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8150  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8151  ac_status=$?
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); } && test -s "$nlist"; then
8154      # Try sorting and uniquifying the output.
8155      if sort "$nlist" | uniq > "$nlist"T; then
8156	mv -f "$nlist"T "$nlist"
8157      else
8158	rm -f "$nlist"T
8159      fi
8160
8161      # Make sure that we snagged all the symbols we need.
8162      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8163	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8164	  cat <<EOF > conftest.$ac_ext
8165#ifdef __cplusplus
8166extern "C" {
8167#endif
8168
8169EOF
8170	  # Now generate the symbol file.
8171	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8172
8173	  cat <<EOF >> conftest.$ac_ext
8174#if defined (__STDC__) && __STDC__
8175# define lt_ptr_t void *
8176#else
8177# define lt_ptr_t char *
8178# define const
8179#endif
8180
8181/* The mapping between symbol names and symbols. */
8182const struct {
8183  const char *name;
8184  lt_ptr_t address;
8185}
8186lt_preloaded_symbols[] =
8187{
8188EOF
8189	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8190	  cat <<\EOF >> conftest.$ac_ext
8191  {0, (lt_ptr_t) 0}
8192};
8193
8194#ifdef __cplusplus
8195}
8196#endif
8197EOF
8198	  # Now try linking the two files.
8199	  mv conftest.$ac_objext conftstm.$ac_objext
8200	  lt_save_LIBS="$LIBS"
8201	  lt_save_CFLAGS="$CFLAGS"
8202	  LIBS="conftstm.$ac_objext"
8203	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8204	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8205  (eval $ac_link) 2>&5
8206  ac_status=$?
8207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8209	    pipe_works=yes
8210	  fi
8211	  LIBS="$lt_save_LIBS"
8212	  CFLAGS="$lt_save_CFLAGS"
8213	else
8214	  echo "cannot find nm_test_func in $nlist" >&5
8215	fi
8216      else
8217	echo "cannot find nm_test_var in $nlist" >&5
8218      fi
8219    else
8220      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8221    fi
8222  else
8223    echo "$progname: failed program was:" >&5
8224    cat conftest.$ac_ext >&5
8225  fi
8226  rm -f conftest* conftst*
8227
8228  # Do not use the global_symbol_pipe unless it works.
8229  if test "$pipe_works" = yes; then
8230    break
8231  else
8232    lt_cv_sys_global_symbol_pipe=
8233  fi
8234done
8235
8236fi
8237
8238if test -z "$lt_cv_sys_global_symbol_pipe"; then
8239  lt_cv_sys_global_symbol_to_cdecl=
8240fi
8241if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8242  { echo "$as_me:$LINENO: result: failed" >&5
8243echo "${ECHO_T}failed" >&6; }
8244else
8245  { echo "$as_me:$LINENO: result: ok" >&5
8246echo "${ECHO_T}ok" >&6; }
8247fi
8248
8249{ echo "$as_me:$LINENO: checking for objdir" >&5
8250echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8251if test "${lt_cv_objdir+set}" = set; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  rm -f .libs 2>/dev/null
8255mkdir .libs 2>/dev/null
8256if test -d .libs; then
8257  lt_cv_objdir=.libs
8258else
8259  # MS-DOS does not allow filenames that begin with a dot.
8260  lt_cv_objdir=_libs
8261fi
8262rmdir .libs 2>/dev/null
8263fi
8264{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8265echo "${ECHO_T}$lt_cv_objdir" >&6; }
8266objdir=$lt_cv_objdir
8267
8268
8269
8270
8271
8272case $host_os in
8273aix3*)
8274  # AIX sometimes has problems with the GCC collect2 program.  For some
8275  # reason, if we set the COLLECT_NAMES environment variable, the problems
8276  # vanish in a puff of smoke.
8277  if test "X${COLLECT_NAMES+set}" != Xset; then
8278    COLLECT_NAMES=
8279    export COLLECT_NAMES
8280  fi
8281  ;;
8282esac
8283
8284# Sed substitution that helps us do robust quoting.  It backslashifies
8285# metacharacters that are still active within double-quoted strings.
8286Xsed='sed -e 1s/^X//'
8287sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8288
8289# Same as above, but do not quote variable references.
8290double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8291
8292# Sed substitution to delay expansion of an escaped shell variable in a
8293# double_quote_subst'ed string.
8294delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8295
8296# Sed substitution to avoid accidental globbing in evaled expressions
8297no_glob_subst='s/\*/\\\*/g'
8298
8299# Constants:
8300rm="rm -f"
8301
8302# Global variables:
8303default_ofile=libtool
8304can_build_shared=yes
8305
8306# All known linkers require a `.a' archive for static linking (except MSVC,
8307# which needs '.lib').
8308libext=a
8309ltmain="$ac_aux_dir/ltmain.sh"
8310ofile="$default_ofile"
8311with_gnu_ld="$lt_cv_prog_gnu_ld"
8312
8313if test -n "$ac_tool_prefix"; then
8314  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8315set dummy ${ac_tool_prefix}ar; ac_word=$2
8316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318if test "${ac_cv_prog_AR+set}" = set; then
8319  echo $ECHO_N "(cached) $ECHO_C" >&6
8320else
8321  if test -n "$AR"; then
8322  ac_cv_prog_AR="$AR" # Let the user override the test.
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327  IFS=$as_save_IFS
8328  test -z "$as_dir" && as_dir=.
8329  for ac_exec_ext in '' $ac_executable_extensions; do
8330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8331    ac_cv_prog_AR="${ac_tool_prefix}ar"
8332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333    break 2
8334  fi
8335done
8336done
8337IFS=$as_save_IFS
8338
8339fi
8340fi
8341AR=$ac_cv_prog_AR
8342if test -n "$AR"; then
8343  { echo "$as_me:$LINENO: result: $AR" >&5
8344echo "${ECHO_T}$AR" >&6; }
8345else
8346  { echo "$as_me:$LINENO: result: no" >&5
8347echo "${ECHO_T}no" >&6; }
8348fi
8349
8350
8351fi
8352if test -z "$ac_cv_prog_AR"; then
8353  ac_ct_AR=$AR
8354  # Extract the first word of "ar", so it can be a program name with args.
8355set dummy ar; ac_word=$2
8356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361  if test -n "$ac_ct_AR"; then
8362  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367  IFS=$as_save_IFS
8368  test -z "$as_dir" && as_dir=.
8369  for ac_exec_ext in '' $ac_executable_extensions; do
8370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371    ac_cv_prog_ac_ct_AR="ar"
8372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373    break 2
8374  fi
8375done
8376done
8377IFS=$as_save_IFS
8378
8379fi
8380fi
8381ac_ct_AR=$ac_cv_prog_ac_ct_AR
8382if test -n "$ac_ct_AR"; then
8383  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8384echo "${ECHO_T}$ac_ct_AR" >&6; }
8385else
8386  { echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6; }
8388fi
8389
8390  if test "x$ac_ct_AR" = x; then
8391    AR="false"
8392  else
8393    case $cross_compiling:$ac_tool_warned in
8394yes:)
8395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8396whose name does not start with the host triplet.  If you think this
8397configuration is useful to you, please write to autoconf@gnu.org." >&5
8398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8399whose name does not start with the host triplet.  If you think this
8400configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8401ac_tool_warned=yes ;;
8402esac
8403    AR=$ac_ct_AR
8404  fi
8405else
8406  AR="$ac_cv_prog_AR"
8407fi
8408
8409if test -n "$ac_tool_prefix"; then
8410  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8414if test "${ac_cv_prog_RANLIB+set}" = set; then
8415  echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417  if test -n "$RANLIB"; then
8418  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423  IFS=$as_save_IFS
8424  test -z "$as_dir" && as_dir=.
8425  for ac_exec_ext in '' $ac_executable_extensions; do
8426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8427    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429    break 2
8430  fi
8431done
8432done
8433IFS=$as_save_IFS
8434
8435fi
8436fi
8437RANLIB=$ac_cv_prog_RANLIB
8438if test -n "$RANLIB"; then
8439  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8440echo "${ECHO_T}$RANLIB" >&6; }
8441else
8442  { echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6; }
8444fi
8445
8446
8447fi
8448if test -z "$ac_cv_prog_RANLIB"; then
8449  ac_ct_RANLIB=$RANLIB
8450  # Extract the first word of "ranlib", so it can be a program name with args.
8451set dummy ranlib; ac_word=$2
8452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8455  echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457  if test -n "$ac_ct_RANLIB"; then
8458  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8459else
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463  IFS=$as_save_IFS
8464  test -z "$as_dir" && as_dir=.
8465  for ac_exec_ext in '' $ac_executable_extensions; do
8466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8467    ac_cv_prog_ac_ct_RANLIB="ranlib"
8468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469    break 2
8470  fi
8471done
8472done
8473IFS=$as_save_IFS
8474
8475fi
8476fi
8477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8478if test -n "$ac_ct_RANLIB"; then
8479  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8480echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8481else
8482  { echo "$as_me:$LINENO: result: no" >&5
8483echo "${ECHO_T}no" >&6; }
8484fi
8485
8486  if test "x$ac_ct_RANLIB" = x; then
8487    RANLIB=":"
8488  else
8489    case $cross_compiling:$ac_tool_warned in
8490yes:)
8491{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8492whose name does not start with the host triplet.  If you think this
8493configuration is useful to you, please write to autoconf@gnu.org." >&5
8494echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8495whose name does not start with the host triplet.  If you think this
8496configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8497ac_tool_warned=yes ;;
8498esac
8499    RANLIB=$ac_ct_RANLIB
8500  fi
8501else
8502  RANLIB="$ac_cv_prog_RANLIB"
8503fi
8504
8505if test -n "$ac_tool_prefix"; then
8506  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8507set dummy ${ac_tool_prefix}strip; ac_word=$2
8508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8510if test "${ac_cv_prog_STRIP+set}" = set; then
8511  echo $ECHO_N "(cached) $ECHO_C" >&6
8512else
8513  if test -n "$STRIP"; then
8514  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8515else
8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519  IFS=$as_save_IFS
8520  test -z "$as_dir" && as_dir=.
8521  for ac_exec_ext in '' $ac_executable_extensions; do
8522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8523    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525    break 2
8526  fi
8527done
8528done
8529IFS=$as_save_IFS
8530
8531fi
8532fi
8533STRIP=$ac_cv_prog_STRIP
8534if test -n "$STRIP"; then
8535  { echo "$as_me:$LINENO: result: $STRIP" >&5
8536echo "${ECHO_T}$STRIP" >&6; }
8537else
8538  { echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6; }
8540fi
8541
8542
8543fi
8544if test -z "$ac_cv_prog_STRIP"; then
8545  ac_ct_STRIP=$STRIP
8546  # Extract the first word of "strip", so it can be a program name with args.
8547set dummy strip; ac_word=$2
8548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8550if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  if test -n "$ac_ct_STRIP"; then
8554  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559  IFS=$as_save_IFS
8560  test -z "$as_dir" && as_dir=.
8561  for ac_exec_ext in '' $ac_executable_extensions; do
8562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8563    ac_cv_prog_ac_ct_STRIP="strip"
8564    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565    break 2
8566  fi
8567done
8568done
8569IFS=$as_save_IFS
8570
8571fi
8572fi
8573ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8574if test -n "$ac_ct_STRIP"; then
8575  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8576echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8577else
8578  { echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6; }
8580fi
8581
8582  if test "x$ac_ct_STRIP" = x; then
8583    STRIP=":"
8584  else
8585    case $cross_compiling:$ac_tool_warned in
8586yes:)
8587{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8588whose name does not start with the host triplet.  If you think this
8589configuration is useful to you, please write to autoconf@gnu.org." >&5
8590echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8591whose name does not start with the host triplet.  If you think this
8592configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8593ac_tool_warned=yes ;;
8594esac
8595    STRIP=$ac_ct_STRIP
8596  fi
8597else
8598  STRIP="$ac_cv_prog_STRIP"
8599fi
8600
8601
8602old_CC="$CC"
8603old_CFLAGS="$CFLAGS"
8604
8605# Set sane defaults for various variables
8606test -z "$AR" && AR=ar
8607test -z "$AR_FLAGS" && AR_FLAGS=cru
8608test -z "$AS" && AS=as
8609test -z "$CC" && CC=cc
8610test -z "$LTCC" && LTCC=$CC
8611test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8612test -z "$DLLTOOL" && DLLTOOL=dlltool
8613test -z "$LD" && LD=ld
8614test -z "$LN_S" && LN_S="ln -s"
8615test -z "$MAGIC_CMD" && MAGIC_CMD=file
8616test -z "$NM" && NM=nm
8617test -z "$SED" && SED=sed
8618test -z "$OBJDUMP" && OBJDUMP=objdump
8619test -z "$RANLIB" && RANLIB=:
8620test -z "$STRIP" && STRIP=:
8621test -z "$ac_objext" && ac_objext=o
8622
8623# Determine commands to create old-style static archives.
8624old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8625old_postinstall_cmds='chmod 644 $oldlib'
8626old_postuninstall_cmds=
8627
8628if test -n "$RANLIB"; then
8629  case $host_os in
8630  openbsd*)
8631    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8632    ;;
8633  *)
8634    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8635    ;;
8636  esac
8637  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8638fi
8639
8640for cc_temp in $compiler""; do
8641  case $cc_temp in
8642    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8643    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8644    \-*) ;;
8645    *) break;;
8646  esac
8647done
8648cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8649
8650
8651# Only perform the check for file, if the check method requires it
8652case $deplibs_check_method in
8653file_magic*)
8654  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8655    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8656echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8657if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8658  echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660  case $MAGIC_CMD in
8661[\\/*] |  ?:[\\/]*)
8662  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8663  ;;
8664*)
8665  lt_save_MAGIC_CMD="$MAGIC_CMD"
8666  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8667  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8668  for ac_dir in $ac_dummy; do
8669    IFS="$lt_save_ifs"
8670    test -z "$ac_dir" && ac_dir=.
8671    if test -f $ac_dir/${ac_tool_prefix}file; then
8672      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8673      if test -n "$file_magic_test_file"; then
8674	case $deplibs_check_method in
8675	"file_magic "*)
8676	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8677	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8678	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8679	    $EGREP "$file_magic_regex" > /dev/null; then
8680	    :
8681	  else
8682	    cat <<EOF 1>&2
8683
8684*** Warning: the command libtool uses to detect shared libraries,
8685*** $file_magic_cmd, produces output that libtool cannot recognize.
8686*** The result is that libtool may fail to recognize shared libraries
8687*** as such.  This will affect the creation of libtool libraries that
8688*** depend on shared libraries, but programs linked with such libtool
8689*** libraries will work regardless of this problem.  Nevertheless, you
8690*** may want to report the problem to your system manager and/or to
8691*** bug-libtool@gnu.org
8692
8693EOF
8694	  fi ;;
8695	esac
8696      fi
8697      break
8698    fi
8699  done
8700  IFS="$lt_save_ifs"
8701  MAGIC_CMD="$lt_save_MAGIC_CMD"
8702  ;;
8703esac
8704fi
8705
8706MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8707if test -n "$MAGIC_CMD"; then
8708  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8709echo "${ECHO_T}$MAGIC_CMD" >&6; }
8710else
8711  { echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
8713fi
8714
8715if test -z "$lt_cv_path_MAGIC_CMD"; then
8716  if test -n "$ac_tool_prefix"; then
8717    { echo "$as_me:$LINENO: checking for file" >&5
8718echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8719if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8720  echo $ECHO_N "(cached) $ECHO_C" >&6
8721else
8722  case $MAGIC_CMD in
8723[\\/*] |  ?:[\\/]*)
8724  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8725  ;;
8726*)
8727  lt_save_MAGIC_CMD="$MAGIC_CMD"
8728  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8729  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8730  for ac_dir in $ac_dummy; do
8731    IFS="$lt_save_ifs"
8732    test -z "$ac_dir" && ac_dir=.
8733    if test -f $ac_dir/file; then
8734      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8735      if test -n "$file_magic_test_file"; then
8736	case $deplibs_check_method in
8737	"file_magic "*)
8738	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8739	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8740	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8741	    $EGREP "$file_magic_regex" > /dev/null; then
8742	    :
8743	  else
8744	    cat <<EOF 1>&2
8745
8746*** Warning: the command libtool uses to detect shared libraries,
8747*** $file_magic_cmd, produces output that libtool cannot recognize.
8748*** The result is that libtool may fail to recognize shared libraries
8749*** as such.  This will affect the creation of libtool libraries that
8750*** depend on shared libraries, but programs linked with such libtool
8751*** libraries will work regardless of this problem.  Nevertheless, you
8752*** may want to report the problem to your system manager and/or to
8753*** bug-libtool@gnu.org
8754
8755EOF
8756	  fi ;;
8757	esac
8758      fi
8759      break
8760    fi
8761  done
8762  IFS="$lt_save_ifs"
8763  MAGIC_CMD="$lt_save_MAGIC_CMD"
8764  ;;
8765esac
8766fi
8767
8768MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8769if test -n "$MAGIC_CMD"; then
8770  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8771echo "${ECHO_T}$MAGIC_CMD" >&6; }
8772else
8773  { echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6; }
8775fi
8776
8777  else
8778    MAGIC_CMD=:
8779  fi
8780fi
8781
8782  fi
8783  ;;
8784esac
8785
8786enable_dlopen=no
8787enable_win32_dll=yes
8788
8789# Check whether --enable-libtool-lock was given.
8790if test "${enable_libtool_lock+set}" = set; then
8791  enableval=$enable_libtool_lock;
8792fi
8793
8794test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8795
8796
8797# Check whether --with-pic was given.
8798if test "${with_pic+set}" = set; then
8799  withval=$with_pic; pic_mode="$withval"
8800else
8801  pic_mode=default
8802fi
8803
8804test -z "$pic_mode" && pic_mode=default
8805
8806# Use C for the default configuration in the libtool script
8807tagname=
8808lt_save_CC="$CC"
8809ac_ext=c
8810ac_cpp='$CPP $CPPFLAGS'
8811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813ac_compiler_gnu=$ac_cv_c_compiler_gnu
8814
8815
8816# Source file extension for C test sources.
8817ac_ext=c
8818
8819# Object file extension for compiled C test sources.
8820objext=o
8821objext=$objext
8822
8823# Code to be used in simple compile tests
8824lt_simple_compile_test_code="int some_variable = 0;\n"
8825
8826# Code to be used in simple link tests
8827lt_simple_link_test_code='int main(){return(0);}\n'
8828
8829
8830# If no C compiler was specified, use CC.
8831LTCC=${LTCC-"$CC"}
8832
8833# If no C compiler flags were specified, use CFLAGS.
8834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8835
8836# Allow CC to be a program name with arguments.
8837compiler=$CC
8838
8839
8840# save warnings/boilerplate of simple test code
8841ac_outfile=conftest.$ac_objext
8842printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8844_lt_compiler_boilerplate=`cat conftest.err`
8845$rm conftest*
8846
8847ac_outfile=conftest.$ac_objext
8848printf "$lt_simple_link_test_code" >conftest.$ac_ext
8849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8850_lt_linker_boilerplate=`cat conftest.err`
8851$rm conftest*
8852
8853
8854## CAVEAT EMPTOR:
8855## There is no encapsulation within the following macros, do not change
8856## the running order or otherwise move them around unless you know exactly
8857## what you are doing...
8858
8859lt_prog_compiler_no_builtin_flag=
8860
8861if test "$GCC" = yes; then
8862  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8863
8864
8865{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8866echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8867if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8868  echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870  lt_cv_prog_compiler_rtti_exceptions=no
8871  ac_outfile=conftest.$ac_objext
8872   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8873   lt_compiler_flag="-fno-rtti -fno-exceptions"
8874   # Insert the option either (1) after the last *FLAGS variable, or
8875   # (2) before a word containing "conftest.", or (3) at the end.
8876   # Note that $ac_compile itself does not contain backslashes and begins
8877   # with a dollar sign (not a hyphen), so the echo should work correctly.
8878   # The option is referenced via a variable to avoid confusing sed.
8879   lt_compile=`echo "$ac_compile" | $SED \
8880   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8881   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8882   -e 's:$: $lt_compiler_flag:'`
8883   (eval echo "\"\$as_me:8883: $lt_compile\"" >&5)
8884   (eval "$lt_compile" 2>conftest.err)
8885   ac_status=$?
8886   cat conftest.err >&5
8887   echo "$as_me:8887: \$? = $ac_status" >&5
8888   if (exit $ac_status) && test -s "$ac_outfile"; then
8889     # The compiler can only warn and ignore the option if not recognized
8890     # So say no if there are warnings other than the usual output.
8891     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8892     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8893     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8894       lt_cv_prog_compiler_rtti_exceptions=yes
8895     fi
8896   fi
8897   $rm conftest*
8898
8899fi
8900{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8901echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8902
8903if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8904    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8905else
8906    :
8907fi
8908
8909fi
8910
8911lt_prog_compiler_wl=
8912lt_prog_compiler_pic=
8913lt_prog_compiler_static=
8914
8915{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8916echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8917
8918  if test "$GCC" = yes; then
8919    lt_prog_compiler_wl='-Wl,'
8920    lt_prog_compiler_static='-static'
8921
8922    case $host_os in
8923      aix*)
8924      # All AIX code is PIC.
8925      if test "$host_cpu" = ia64; then
8926	# AIX 5 now supports IA64 processor
8927	lt_prog_compiler_static='-Bstatic'
8928      fi
8929      ;;
8930
8931    amigaos*)
8932      # FIXME: we need at least 68020 code to build shared libraries, but
8933      # adding the `-m68020' flag to GCC prevents building anything better,
8934      # like `-m68040'.
8935      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8936      ;;
8937
8938    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8939      # PIC is the default for these OSes.
8940      ;;
8941
8942    mingw* | cygwin* | pw32* | os2*)
8943      # This hack is so that the source file can tell whether it is being
8944      # built for inclusion in a dll (and should export symbols for example).
8945      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8946      # (--disable-auto-import) libraries
8947      lt_prog_compiler_pic='-DDLL_EXPORT'
8948      ;;
8949
8950    darwin* | rhapsody*)
8951      # PIC is the default on this platform
8952      # Common symbols not allowed in MH_DYLIB files
8953      lt_prog_compiler_pic='-fno-common'
8954      ;;
8955
8956    interix3*)
8957      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8958      # Instead, we relocate shared libraries at runtime.
8959      ;;
8960
8961    msdosdjgpp*)
8962      # Just because we use GCC doesn't mean we suddenly get shared libraries
8963      # on systems that don't support them.
8964      lt_prog_compiler_can_build_shared=no
8965      enable_shared=no
8966      ;;
8967
8968    sysv4*MP*)
8969      if test -d /usr/nec; then
8970	lt_prog_compiler_pic=-Kconform_pic
8971      fi
8972      ;;
8973
8974    hpux*)
8975      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8976      # not for PA HP-UX.
8977      case $host_cpu in
8978      hppa*64*|ia64*)
8979	# +Z the default
8980	;;
8981      *)
8982	lt_prog_compiler_pic='-fPIC'
8983	;;
8984      esac
8985      ;;
8986
8987    *)
8988      lt_prog_compiler_pic='-fPIC'
8989      ;;
8990    esac
8991  else
8992    # PORTME Check for flag to pass linker flags through the system compiler.
8993    case $host_os in
8994    aix*)
8995      lt_prog_compiler_wl='-Wl,'
8996      if test "$host_cpu" = ia64; then
8997	# AIX 5 now supports IA64 processor
8998	lt_prog_compiler_static='-Bstatic'
8999      else
9000	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9001      fi
9002      ;;
9003      darwin*)
9004        # PIC is the default on this platform
9005        # Common symbols not allowed in MH_DYLIB files
9006       case $cc_basename in
9007         xlc*)
9008         lt_prog_compiler_pic='-qnocommon'
9009         lt_prog_compiler_wl='-Wl,'
9010         ;;
9011       esac
9012       ;;
9013
9014    mingw* | cygwin* | pw32* | os2*)
9015      # This hack is so that the source file can tell whether it is being
9016      # built for inclusion in a dll (and should export symbols for example).
9017      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9018      # (--disable-auto-import) libraries
9019      lt_prog_compiler_pic='-DDLL_EXPORT'
9020      ;;
9021
9022    hpux9* | hpux10* | hpux11*)
9023      lt_prog_compiler_wl='-Wl,'
9024      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9025      # not for PA HP-UX.
9026      case $host_cpu in
9027      hppa*64*|ia64*)
9028	# +Z the default
9029	;;
9030      *)
9031	lt_prog_compiler_pic='+Z'
9032	;;
9033      esac
9034      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9035      lt_prog_compiler_static='${wl}-a ${wl}archive'
9036      ;;
9037
9038    irix5* | irix6* | nonstopux*)
9039      lt_prog_compiler_wl='-Wl,'
9040      # PIC (with -KPIC) is the default.
9041      lt_prog_compiler_static='-non_shared'
9042      ;;
9043
9044    newsos6)
9045      lt_prog_compiler_pic='-KPIC'
9046      lt_prog_compiler_static='-Bstatic'
9047      ;;
9048
9049    linux*)
9050      case $cc_basename in
9051      icc* | ecc*)
9052	lt_prog_compiler_wl='-Wl,'
9053	lt_prog_compiler_pic='-KPIC'
9054	lt_prog_compiler_static='-static'
9055        ;;
9056      pgcc* | pgf77* | pgf90* | pgf95*)
9057        # Portland Group compilers (*not* the Pentium gcc compiler,
9058	# which looks to be a dead project)
9059	lt_prog_compiler_wl='-Wl,'
9060	lt_prog_compiler_pic='-fpic'
9061	lt_prog_compiler_static='-Bstatic'
9062        ;;
9063      ccc*)
9064        lt_prog_compiler_wl='-Wl,'
9065        # All Alpha code is PIC.
9066        lt_prog_compiler_static='-non_shared'
9067        ;;
9068      como)
9069        lt_prog_compiler_wl='-lopt='
9070        ;;
9071      *)
9072        case `$CC -V 2>&1 | sed 5q` in
9073	*Sun\ C*)
9074	  # Sun C 5.9
9075	  lt_prog_compiler_pic='-KPIC'
9076	  lt_prog_compiler_static='-Bstatic'
9077	  lt_prog_compiler_wl='-Wl,'
9078	  ;;
9079	*Sun\ F*)
9080	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9081	  lt_prog_compiler_pic='-KPIC'
9082	  lt_prog_compiler_static='-Bstatic'
9083	  lt_prog_compiler_wl=''
9084	  ;;
9085	esac
9086	;;
9087      esac
9088      ;;
9089
9090    osf3* | osf4* | osf5*)
9091      lt_prog_compiler_wl='-Wl,'
9092      # All OSF/1 code is PIC.
9093      lt_prog_compiler_static='-non_shared'
9094      ;;
9095
9096    solaris*)
9097      lt_prog_compiler_pic='-KPIC'
9098      lt_prog_compiler_static='-Bstatic'
9099      case $cc_basename in
9100      f77* | f90* | f95*)
9101	lt_prog_compiler_wl='-Qoption ld ';;
9102      *)
9103	lt_prog_compiler_wl='-Wl,';;
9104      esac
9105      ;;
9106
9107    sunos4*)
9108      lt_prog_compiler_wl='-Qoption ld '
9109      lt_prog_compiler_pic='-PIC'
9110      lt_prog_compiler_static='-Bstatic'
9111      ;;
9112
9113    sysv4 | sysv4.2uw2* | sysv4.3*)
9114      lt_prog_compiler_wl='-Wl,'
9115      lt_prog_compiler_pic='-KPIC'
9116      lt_prog_compiler_static='-Bstatic'
9117      ;;
9118
9119    sysv4*MP*)
9120      if test -d /usr/nec ;then
9121	lt_prog_compiler_pic='-Kconform_pic'
9122	lt_prog_compiler_static='-Bstatic'
9123      fi
9124      ;;
9125
9126    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9127      lt_prog_compiler_wl='-Wl,'
9128      lt_prog_compiler_pic='-KPIC'
9129      lt_prog_compiler_static='-Bstatic'
9130      ;;
9131
9132    unicos*)
9133      lt_prog_compiler_wl='-Wl,'
9134      lt_prog_compiler_can_build_shared=no
9135      ;;
9136
9137    uts4*)
9138      lt_prog_compiler_pic='-pic'
9139      lt_prog_compiler_static='-Bstatic'
9140      ;;
9141
9142    *)
9143      lt_prog_compiler_can_build_shared=no
9144      ;;
9145    esac
9146  fi
9147
9148{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9149echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9150
9151#
9152# Check to make sure the PIC flag actually works.
9153#
9154if test -n "$lt_prog_compiler_pic"; then
9155
9156{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9157echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9158if test "${lt_prog_compiler_pic_works+set}" = set; then
9159  echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161  lt_prog_compiler_pic_works=no
9162  ac_outfile=conftest.$ac_objext
9163   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9164   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9165   # Insert the option either (1) after the last *FLAGS variable, or
9166   # (2) before a word containing "conftest.", or (3) at the end.
9167   # Note that $ac_compile itself does not contain backslashes and begins
9168   # with a dollar sign (not a hyphen), so the echo should work correctly.
9169   # The option is referenced via a variable to avoid confusing sed.
9170   lt_compile=`echo "$ac_compile" | $SED \
9171   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173   -e 's:$: $lt_compiler_flag:'`
9174   (eval echo "\"\$as_me:9174: $lt_compile\"" >&5)
9175   (eval "$lt_compile" 2>conftest.err)
9176   ac_status=$?
9177   cat conftest.err >&5
9178   echo "$as_me:9178: \$? = $ac_status" >&5
9179   if (exit $ac_status) && test -s "$ac_outfile"; then
9180     # The compiler can only warn and ignore the option if not recognized
9181     # So say no if there are warnings other than the usual output.
9182     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9183     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9184     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9185       lt_prog_compiler_pic_works=yes
9186     fi
9187   fi
9188   $rm conftest*
9189
9190fi
9191{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9192echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9193
9194if test x"$lt_prog_compiler_pic_works" = xyes; then
9195    case $lt_prog_compiler_pic in
9196     "" | " "*) ;;
9197     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9198     esac
9199else
9200    lt_prog_compiler_pic=
9201     lt_prog_compiler_can_build_shared=no
9202fi
9203
9204fi
9205case $host_os in
9206  # For platforms which do not support PIC, -DPIC is meaningless:
9207  *djgpp*)
9208    lt_prog_compiler_pic=
9209    ;;
9210  *)
9211    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9212    ;;
9213esac
9214
9215#
9216# Check to make sure the static flag actually works.
9217#
9218wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9219{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9220echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9221if test "${lt_prog_compiler_static_works+set}" = set; then
9222  echo $ECHO_N "(cached) $ECHO_C" >&6
9223else
9224  lt_prog_compiler_static_works=no
9225   save_LDFLAGS="$LDFLAGS"
9226   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9227   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9228   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9229     # The linker can only warn and ignore the option if not recognized
9230     # So say no if there are warnings
9231     if test -s conftest.err; then
9232       # Append any errors to the config.log.
9233       cat conftest.err 1>&5
9234       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9235       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9236       if diff conftest.exp conftest.er2 >/dev/null; then
9237         lt_prog_compiler_static_works=yes
9238       fi
9239     else
9240       lt_prog_compiler_static_works=yes
9241     fi
9242   fi
9243   $rm conftest*
9244   LDFLAGS="$save_LDFLAGS"
9245
9246fi
9247{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9248echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9249
9250if test x"$lt_prog_compiler_static_works" = xyes; then
9251    :
9252else
9253    lt_prog_compiler_static=
9254fi
9255
9256
9257{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9258echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9259if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9260  echo $ECHO_N "(cached) $ECHO_C" >&6
9261else
9262  lt_cv_prog_compiler_c_o=no
9263   $rm -r conftest 2>/dev/null
9264   mkdir conftest
9265   cd conftest
9266   mkdir out
9267   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9268
9269   lt_compiler_flag="-o out/conftest2.$ac_objext"
9270   # Insert the option either (1) after the last *FLAGS variable, or
9271   # (2) before a word containing "conftest.", or (3) at the end.
9272   # Note that $ac_compile itself does not contain backslashes and begins
9273   # with a dollar sign (not a hyphen), so the echo should work correctly.
9274   lt_compile=`echo "$ac_compile" | $SED \
9275   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9276   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9277   -e 's:$: $lt_compiler_flag:'`
9278   (eval echo "\"\$as_me:9278: $lt_compile\"" >&5)
9279   (eval "$lt_compile" 2>out/conftest.err)
9280   ac_status=$?
9281   cat out/conftest.err >&5
9282   echo "$as_me:9282: \$? = $ac_status" >&5
9283   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9284   then
9285     # The compiler can only warn and ignore the option if not recognized
9286     # So say no if there are warnings
9287     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9288     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9289     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9290       lt_cv_prog_compiler_c_o=yes
9291     fi
9292   fi
9293   chmod u+w . 2>&5
9294   $rm conftest*
9295   # SGI C++ compiler will create directory out/ii_files/ for
9296   # template instantiation
9297   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9298   $rm out/* && rmdir out
9299   cd ..
9300   rmdir conftest
9301   $rm conftest*
9302
9303fi
9304{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9305echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9306
9307
9308hard_links="nottested"
9309if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9310  # do not overwrite the value of need_locks provided by the user
9311  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9312echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9313  hard_links=yes
9314  $rm conftest*
9315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9316  touch conftest.a
9317  ln conftest.a conftest.b 2>&5 || hard_links=no
9318  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9319  { echo "$as_me:$LINENO: result: $hard_links" >&5
9320echo "${ECHO_T}$hard_links" >&6; }
9321  if test "$hard_links" = no; then
9322    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9323echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9324    need_locks=warn
9325  fi
9326else
9327  need_locks=no
9328fi
9329
9330{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9331echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9332
9333  runpath_var=
9334  allow_undefined_flag=
9335  enable_shared_with_static_runtimes=no
9336  archive_cmds=
9337  archive_expsym_cmds=
9338  old_archive_From_new_cmds=
9339  old_archive_from_expsyms_cmds=
9340  export_dynamic_flag_spec=
9341  whole_archive_flag_spec=
9342  thread_safe_flag_spec=
9343  hardcode_libdir_flag_spec=
9344  hardcode_libdir_flag_spec_ld=
9345  hardcode_libdir_separator=
9346  hardcode_direct=no
9347  hardcode_minus_L=no
9348  hardcode_shlibpath_var=unsupported
9349  link_all_deplibs=unknown
9350  hardcode_automatic=no
9351  module_cmds=
9352  module_expsym_cmds=
9353  always_export_symbols=no
9354  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9355  # include_expsyms should be a list of space-separated symbols to be *always*
9356  # included in the symbol list
9357  include_expsyms=
9358  # exclude_expsyms can be an extended regexp of symbols to exclude
9359  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9360  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9361  # as well as any symbol that contains `d'.
9362  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9363  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9364  # platforms (ab)use it in PIC code, but their linkers get confused if
9365  # the symbol is explicitly referenced.  Since portable code cannot
9366  # rely on this symbol name, it's probably fine to never include it in
9367  # preloaded symbol tables.
9368  extract_expsyms_cmds=
9369  # Just being paranoid about ensuring that cc_basename is set.
9370  for cc_temp in $compiler""; do
9371  case $cc_temp in
9372    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9373    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9374    \-*) ;;
9375    *) break;;
9376  esac
9377done
9378cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9379
9380  case $host_os in
9381  cygwin* | mingw* | pw32*)
9382    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9383    # When not using gcc, we currently assume that we are using
9384    # Microsoft Visual C++.
9385    if test "$GCC" != yes; then
9386      with_gnu_ld=no
9387    fi
9388    ;;
9389  interix*)
9390    # we just hope/assume this is gcc and not c89 (= MSVC++)
9391    with_gnu_ld=yes
9392    ;;
9393  openbsd*)
9394    with_gnu_ld=no
9395    ;;
9396  esac
9397
9398  ld_shlibs=yes
9399  if test "$with_gnu_ld" = yes; then
9400    # If archive_cmds runs LD, not CC, wlarc should be empty
9401    wlarc='${wl}'
9402
9403    # Set some defaults for GNU ld with shared library support. These
9404    # are reset later if shared libraries are not supported. Putting them
9405    # here allows them to be overridden if necessary.
9406    runpath_var=LD_RUN_PATH
9407    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9408    export_dynamic_flag_spec='${wl}--export-dynamic'
9409    # ancient GNU ld didn't support --whole-archive et. al.
9410    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9411	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9412      else
9413  	whole_archive_flag_spec=
9414    fi
9415    supports_anon_versioning=no
9416    case `$LD -v 2>/dev/null` in
9417      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9418      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9419      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9420      *\ 2.11.*) ;; # other 2.11 versions
9421      *) supports_anon_versioning=yes ;;
9422    esac
9423
9424    # See if GNU ld supports shared libraries.
9425    case $host_os in
9426    aix3* | aix4* | aix5*)
9427      # On AIX/PPC, the GNU linker is very broken
9428      if test "$host_cpu" != ia64; then
9429	ld_shlibs=no
9430	cat <<EOF 1>&2
9431
9432*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9433*** to be unable to reliably create shared libraries on AIX.
9434*** Therefore, libtool is disabling shared libraries support.  If you
9435*** really care for shared libraries, you may want to modify your PATH
9436*** so that a non-GNU linker is found, and then restart.
9437
9438EOF
9439      fi
9440      ;;
9441
9442    amigaos*)
9443      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)'
9444      hardcode_libdir_flag_spec='-L$libdir'
9445      hardcode_minus_L=yes
9446
9447      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9448      # that the semantics of dynamic libraries on AmigaOS, at least up
9449      # to version 4, is to share data among multiple programs linked
9450      # with the same dynamic library.  Since this doesn't match the
9451      # behavior of shared libraries on other platforms, we can't use
9452      # them.
9453      ld_shlibs=no
9454      ;;
9455
9456    beos*)
9457      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9458	allow_undefined_flag=unsupported
9459	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9460	# support --undefined.  This deserves some investigation.  FIXME
9461	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462      else
9463	ld_shlibs=no
9464      fi
9465      ;;
9466
9467    cygwin* | mingw* | pw32*)
9468      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9469      # as there is no search path for DLLs.
9470      hardcode_libdir_flag_spec='-L$libdir'
9471      allow_undefined_flag=unsupported
9472      always_export_symbols=no
9473      enable_shared_with_static_runtimes=yes
9474      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9475
9476      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9477        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478	# If the export-symbols file already is a .def file (1st line
9479	# is EXPORTS), use it as is; otherwise, prepend...
9480	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9481	  cp $export_symbols $output_objdir/$soname.def;
9482	else
9483	  echo EXPORTS > $output_objdir/$soname.def;
9484	  cat $export_symbols >> $output_objdir/$soname.def;
9485	fi~
9486	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9487      else
9488	ld_shlibs=no
9489      fi
9490      ;;
9491
9492    interix3*)
9493      hardcode_direct=no
9494      hardcode_shlibpath_var=no
9495      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496      export_dynamic_flag_spec='${wl}-E'
9497      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9498      # Instead, shared libraries are loaded at an image base (0x10000000 by
9499      # default) and relocated if they conflict, which is a slow very memory
9500      # consuming and fragmenting process.  To avoid this, we pick a random,
9501      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9502      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9503      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9504      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'
9505      ;;
9506
9507    linux*)
9508      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9509	tmp_addflag=
9510	case $cc_basename,$host_cpu in
9511	pgcc*)				# Portland Group C compiler
9512	  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'
9513	  tmp_addflag=' $pic_flag'
9514	  ;;
9515	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9516	  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'
9517	  tmp_addflag=' $pic_flag -Mnomain' ;;
9518	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9519	  tmp_addflag=' -i_dynamic' ;;
9520	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9521	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9522	ifc* | ifort*)			# Intel Fortran compiler
9523	  tmp_addflag=' -nofor_main' ;;
9524	esac
9525	case `$CC -V 2>&1 | sed 5q` in
9526	*Sun\ C*)			# Sun C 5.9
9527	  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 /dev/null'
9528	  tmp_sharedflag='-G' ;;
9529	*Sun\ F*)			# Sun Fortran 8.3
9530	  tmp_sharedflag='-G' ;;
9531	*)
9532	  tmp_sharedflag='-shared' ;;
9533	esac
9534	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535
9536	if test $supports_anon_versioning = yes; then
9537	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9538  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9539  $echo "local: *; };" >> $output_objdir/$libname.ver~
9540	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9541	fi
9542      else
9543	ld_shlibs=no
9544      fi
9545      ;;
9546
9547    netbsd*)
9548      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9549	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9550	wlarc=
9551      else
9552	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9554      fi
9555      ;;
9556
9557    solaris*)
9558      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9559	ld_shlibs=no
9560	cat <<EOF 1>&2
9561
9562*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9563*** create shared libraries on Solaris systems.  Therefore, libtool
9564*** is disabling shared libraries support.  We urge you to upgrade GNU
9565*** binutils to release 2.9.1 or newer.  Another option is to modify
9566*** your PATH or compiler configuration so that the native linker is
9567*** used, and then restart.
9568
9569EOF
9570      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9571	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573      else
9574	ld_shlibs=no
9575      fi
9576      ;;
9577
9578    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9579      case `$LD -v 2>&1` in
9580        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9581	ld_shlibs=no
9582	cat <<_LT_EOF 1>&2
9583
9584*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9585*** reliably create shared libraries on SCO systems.  Therefore, libtool
9586*** is disabling shared libraries support.  We urge you to upgrade GNU
9587*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9588*** your PATH or compiler configuration so that the native linker is
9589*** used, and then restart.
9590
9591_LT_EOF
9592	;;
9593	*)
9594	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9595	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9596	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9597	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9598	  else
9599	    ld_shlibs=no
9600	  fi
9601	;;
9602      esac
9603      ;;
9604
9605    sunos4*)
9606      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9607      wlarc=
9608      hardcode_direct=yes
9609      hardcode_shlibpath_var=no
9610      ;;
9611
9612    *)
9613      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9614	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9616      else
9617	ld_shlibs=no
9618      fi
9619      ;;
9620    esac
9621
9622    if test "$ld_shlibs" = no; then
9623      runpath_var=
9624      hardcode_libdir_flag_spec=
9625      export_dynamic_flag_spec=
9626      whole_archive_flag_spec=
9627    fi
9628  else
9629    # PORTME fill in a description of your system's linker (not GNU ld)
9630    case $host_os in
9631    aix3*)
9632      allow_undefined_flag=unsupported
9633      always_export_symbols=yes
9634      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'
9635      # Note: this linker hardcodes the directories in LIBPATH if there
9636      # are no directories specified by -L.
9637      hardcode_minus_L=yes
9638      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9639	# Neither direct hardcoding nor static linking is supported with a
9640	# broken collect2.
9641	hardcode_direct=unsupported
9642      fi
9643      ;;
9644
9645    aix4* | aix5*)
9646      if test "$host_cpu" = ia64; then
9647	# On IA64, the linker does run time linking by default, so we don't
9648	# have to do anything special.
9649	aix_use_runtimelinking=no
9650	exp_sym_flag='-Bexport'
9651	no_entry_flag=""
9652      else
9653	# If we're using GNU nm, then we don't want the "-C" option.
9654	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9655	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9656	  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'
9657	else
9658	  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'
9659	fi
9660	aix_use_runtimelinking=no
9661
9662	# Test if we are trying to use run time linking or normal
9663	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9664	# need to do runtime linking.
9665	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9666	  for ld_flag in $LDFLAGS; do
9667  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9668  	    aix_use_runtimelinking=yes
9669  	    break
9670  	  fi
9671	  done
9672	  ;;
9673	esac
9674
9675	exp_sym_flag='-bexport'
9676	no_entry_flag='-bnoentry'
9677      fi
9678
9679      # When large executables or shared objects are built, AIX ld can
9680      # have problems creating the table of contents.  If linking a library
9681      # or program results in "error TOC overflow" add -mminimal-toc to
9682      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9683      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9684
9685      archive_cmds=''
9686      hardcode_direct=yes
9687      hardcode_libdir_separator=':'
9688      link_all_deplibs=yes
9689
9690      if test "$GCC" = yes; then
9691	case $host_os in aix4.[012]|aix4.[012].*)
9692	# We only want to do this on AIX 4.2 and lower, the check
9693	# below for broken collect2 doesn't work under 4.3+
9694	  collect2name=`${CC} -print-prog-name=collect2`
9695	  if test -f "$collect2name" && \
9696  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9697	  then
9698  	  # We have reworked collect2
9699  	  hardcode_direct=yes
9700	  else
9701  	  # We have old collect2
9702  	  hardcode_direct=unsupported
9703  	  # It fails to find uninstalled libraries when the uninstalled
9704  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9705  	  # to unsupported forces relinking
9706  	  hardcode_minus_L=yes
9707  	  hardcode_libdir_flag_spec='-L$libdir'
9708  	  hardcode_libdir_separator=
9709	  fi
9710	  ;;
9711	esac
9712	shared_flag='-shared'
9713	if test "$aix_use_runtimelinking" = yes; then
9714	  shared_flag="$shared_flag "'${wl}-G'
9715	fi
9716      else
9717	# not using gcc
9718	if test "$host_cpu" = ia64; then
9719  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9720  	# chokes on -Wl,-G. The following line is correct:
9721	  shared_flag='-G'
9722	else
9723	  if test "$aix_use_runtimelinking" = yes; then
9724	    shared_flag='${wl}-G'
9725	  else
9726	    shared_flag='${wl}-bM:SRE'
9727	  fi
9728	fi
9729      fi
9730
9731      # It seems that -bexpall does not export symbols beginning with
9732      # underscore (_), so it is better to generate a list of symbols to export.
9733      always_export_symbols=yes
9734      if test "$aix_use_runtimelinking" = yes; then
9735	# Warning - without using the other runtime loading flags (-brtl),
9736	# -berok will link without error, but may produce a broken library.
9737	allow_undefined_flag='-berok'
9738       # Determine the default libpath from the value encoded in an empty executable.
9739       cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h.  */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h.  */
9745
9746int
9747main ()
9748{
9749
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext conftest$ac_exeext
9755if { (ac_try="$ac_link"
9756case "(($ac_try" in
9757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758  *) ac_try_echo=$ac_try;;
9759esac
9760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761  (eval "$ac_link") 2>conftest.er1
9762  ac_status=$?
9763  grep -v '^ *+' conftest.er1 >conftest.err
9764  rm -f conftest.er1
9765  cat conftest.err >&5
9766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767  (exit $ac_status); } &&
9768	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9769  { (case "(($ac_try" in
9770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771  *) ac_try_echo=$ac_try;;
9772esac
9773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774  (eval "$ac_try") 2>&5
9775  ac_status=$?
9776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777  (exit $ac_status); }; } &&
9778	 { ac_try='test -s conftest$ac_exeext'
9779  { (case "(($ac_try" in
9780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781  *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784  (eval "$ac_try") 2>&5
9785  ac_status=$?
9786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787  (exit $ac_status); }; }; then
9788
9789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9790}'`
9791# Check for a 64-bit object if we didn't find anything.
9792if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9793}'`; fi
9794else
9795  echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798
9799fi
9800
9801rm -f core conftest.err conftest.$ac_objext \
9802      conftest$ac_exeext conftest.$ac_ext
9803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9804
9805       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9806	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"
9807       else
9808	if test "$host_cpu" = ia64; then
9809	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9810	  allow_undefined_flag="-z nodefs"
9811	  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"
9812	else
9813	 # Determine the default libpath from the value encoded in an empty executable.
9814	 cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h.  */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h.  */
9820
9821int
9822main ()
9823{
9824
9825  ;
9826  return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
9830if { (ac_try="$ac_link"
9831case "(($ac_try" in
9832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833  *) ac_try_echo=$ac_try;;
9834esac
9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836  (eval "$ac_link") 2>conftest.er1
9837  ac_status=$?
9838  grep -v '^ *+' conftest.er1 >conftest.err
9839  rm -f conftest.er1
9840  cat conftest.err >&5
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); } &&
9843	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9844  { (case "(($ac_try" in
9845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846  *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849  (eval "$ac_try") 2>&5
9850  ac_status=$?
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); }; } &&
9853	 { ac_try='test -s conftest$ac_exeext'
9854  { (case "(($ac_try" in
9855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856  *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859  (eval "$ac_try") 2>&5
9860  ac_status=$?
9861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862  (exit $ac_status); }; }; then
9863
9864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9865}'`
9866# Check for a 64-bit object if we didn't find anything.
9867if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9868}'`; fi
9869else
9870  echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873
9874fi
9875
9876rm -f core conftest.err conftest.$ac_objext \
9877      conftest$ac_exeext conftest.$ac_ext
9878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9879
9880	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9881	  # Warning - without using the other run time loading flags,
9882	  # -berok will link without error, but may produce a broken library.
9883	  no_undefined_flag=' ${wl}-bernotok'
9884	  allow_undefined_flag=' ${wl}-berok'
9885	  # Exported symbols can be pulled into shared objects from archives
9886	  whole_archive_flag_spec='$convenience'
9887	  archive_cmds_need_lc=yes
9888	  # This is similar to how AIX traditionally builds its shared libraries.
9889	  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'
9890	fi
9891      fi
9892      ;;
9893
9894    amigaos*)
9895      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)'
9896      hardcode_libdir_flag_spec='-L$libdir'
9897      hardcode_minus_L=yes
9898      # see comment about different semantics on the GNU ld section
9899      ld_shlibs=no
9900      ;;
9901
9902    bsdi[45]*)
9903      export_dynamic_flag_spec=-rdynamic
9904      ;;
9905
9906    cygwin* | mingw* | pw32*)
9907      # When not using gcc, we currently assume that we are using
9908      # Microsoft Visual C++.
9909      # hardcode_libdir_flag_spec is actually meaningless, as there is
9910      # no search path for DLLs.
9911      hardcode_libdir_flag_spec=' '
9912      allow_undefined_flag=unsupported
9913      # Tell ltmain to make .lib files, not .a files.
9914      libext=lib
9915      # Tell ltmain to make .dll files, not .so files.
9916      shrext_cmds=".dll"
9917      # FIXME: Setting linknames here is a bad hack.
9918      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9919      # The linker will automatically build a .lib file if we build a DLL.
9920      old_archive_From_new_cmds='true'
9921      # FIXME: Should let the user specify the lib program.
9922      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9923      fix_srcfile_path='`cygpath -w "$srcfile"`'
9924      enable_shared_with_static_runtimes=yes
9925      ;;
9926
9927    darwin* | rhapsody*)
9928      case $host_os in
9929        rhapsody* | darwin1.[012])
9930         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9931         ;;
9932       *) # Darwin 1.3 on
9933         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9934           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9935         else
9936           case ${MACOSX_DEPLOYMENT_TARGET} in
9937             10.[012])
9938               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9939               ;;
9940             10.*)
9941               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9942               ;;
9943           esac
9944         fi
9945         ;;
9946      esac
9947      archive_cmds_need_lc=no
9948      hardcode_direct=no
9949      hardcode_automatic=yes
9950      hardcode_shlibpath_var=unsupported
9951      whole_archive_flag_spec=''
9952      link_all_deplibs=yes
9953    if test "$GCC" = yes ; then
9954    	output_verbose_link_cmd='echo'
9955        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9956      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9957      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9958      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}'
9959      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}'
9960    else
9961      case $cc_basename in
9962        xlc*)
9963         output_verbose_link_cmd='echo'
9964         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9965         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9966          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9967         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9968          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}'
9969          ;;
9970       *)
9971         ld_shlibs=no
9972          ;;
9973      esac
9974    fi
9975      ;;
9976
9977    dgux*)
9978      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979      hardcode_libdir_flag_spec='-L$libdir'
9980      hardcode_shlibpath_var=no
9981      ;;
9982
9983    freebsd1*)
9984      ld_shlibs=no
9985      ;;
9986
9987    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9988    # support.  Future versions do this automatically, but an explicit c++rt0.o
9989    # does not break anything, and helps significantly (at the cost of a little
9990    # extra space).
9991    freebsd2.2*)
9992      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9993      hardcode_libdir_flag_spec='-R$libdir'
9994      hardcode_direct=yes
9995      hardcode_shlibpath_var=no
9996      ;;
9997
9998    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9999    freebsd2*)
10000      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10001      hardcode_direct=yes
10002      hardcode_minus_L=yes
10003      hardcode_shlibpath_var=no
10004      ;;
10005
10006    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10007    freebsd* | kfreebsd*-gnu | dragonfly*)
10008      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10009      hardcode_libdir_flag_spec='-R$libdir'
10010      hardcode_direct=yes
10011      hardcode_shlibpath_var=no
10012      ;;
10013
10014    hpux9*)
10015      if test "$GCC" = yes; then
10016	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'
10017      else
10018	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'
10019      fi
10020      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10021      hardcode_libdir_separator=:
10022      hardcode_direct=yes
10023
10024      # hardcode_minus_L: Not really in the search PATH,
10025      # but as the default location of the library.
10026      hardcode_minus_L=yes
10027      export_dynamic_flag_spec='${wl}-E'
10028      ;;
10029
10030    hpux10*)
10031      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10032	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10033      else
10034	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10035      fi
10036      if test "$with_gnu_ld" = no; then
10037	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10038	hardcode_libdir_separator=:
10039
10040	hardcode_direct=yes
10041	export_dynamic_flag_spec='${wl}-E'
10042
10043	# hardcode_minus_L: Not really in the search PATH,
10044	# but as the default location of the library.
10045	hardcode_minus_L=yes
10046      fi
10047      ;;
10048
10049    hpux11*)
10050      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10051	case $host_cpu in
10052	hppa*64*)
10053	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054	  ;;
10055	ia64*)
10056	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057	  ;;
10058	*)
10059	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10060	  ;;
10061	esac
10062      else
10063	case $host_cpu in
10064	hppa*64*)
10065	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10066	  ;;
10067	ia64*)
10068	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10069	  ;;
10070	*)
10071	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10072	  ;;
10073	esac
10074      fi
10075      if test "$with_gnu_ld" = no; then
10076	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10077	hardcode_libdir_separator=:
10078
10079	case $host_cpu in
10080	hppa*64*|ia64*)
10081	  hardcode_libdir_flag_spec_ld='+b $libdir'
10082	  hardcode_direct=no
10083	  hardcode_shlibpath_var=no
10084	  ;;
10085	*)
10086	  hardcode_direct=yes
10087	  export_dynamic_flag_spec='${wl}-E'
10088
10089	  # hardcode_minus_L: Not really in the search PATH,
10090	  # but as the default location of the library.
10091	  hardcode_minus_L=yes
10092	  ;;
10093	esac
10094      fi
10095      ;;
10096
10097    irix5* | irix6* | nonstopux*)
10098      if test "$GCC" = yes; then
10099	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'
10100      else
10101	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'
10102	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10103      fi
10104      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10105      hardcode_libdir_separator=:
10106      link_all_deplibs=yes
10107      ;;
10108
10109    netbsd*)
10110      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10111	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10112      else
10113	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10114      fi
10115      hardcode_libdir_flag_spec='-R$libdir'
10116      hardcode_direct=yes
10117      hardcode_shlibpath_var=no
10118      ;;
10119
10120    newsos6)
10121      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122      hardcode_direct=yes
10123      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124      hardcode_libdir_separator=:
10125      hardcode_shlibpath_var=no
10126      ;;
10127
10128    openbsd*)
10129      hardcode_direct=yes
10130      hardcode_shlibpath_var=no
10131      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10132	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10133	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10134	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10135	export_dynamic_flag_spec='${wl}-E'
10136      else
10137       case $host_os in
10138	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10139	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10140	   hardcode_libdir_flag_spec='-R$libdir'
10141	   ;;
10142	 *)
10143	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10144	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10145	   ;;
10146       esac
10147      fi
10148      ;;
10149
10150    os2*)
10151      hardcode_libdir_flag_spec='-L$libdir'
10152      hardcode_minus_L=yes
10153      allow_undefined_flag=unsupported
10154      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'
10155      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10156      ;;
10157
10158    osf3*)
10159      if test "$GCC" = yes; then
10160	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10161	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'
10162      else
10163	allow_undefined_flag=' -expect_unresolved \*'
10164	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'
10165      fi
10166      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167      hardcode_libdir_separator=:
10168      ;;
10169
10170    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10171      if test "$GCC" = yes; then
10172	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10173	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'
10174	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175      else
10176	allow_undefined_flag=' -expect_unresolved \*'
10177	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'
10178	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10179	$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'
10180
10181	# Both c and cxx compiler support -rpath directly
10182	hardcode_libdir_flag_spec='-rpath $libdir'
10183      fi
10184      hardcode_libdir_separator=:
10185      ;;
10186
10187    solaris*)
10188      no_undefined_flag=' -z text'
10189      if test "$GCC" = yes; then
10190	wlarc='${wl}'
10191	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10192	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10193	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10194      else
10195	wlarc=''
10196	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10198  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10199      fi
10200      hardcode_libdir_flag_spec='-R$libdir'
10201      hardcode_shlibpath_var=no
10202      case $host_os in
10203      solaris2.[0-5] | solaris2.[0-5].*) ;;
10204      *)
10205 	# The compiler driver will combine linker options so we
10206 	# cannot just pass the convience library names through
10207 	# without $wl, iff we do not link with $LD.
10208 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10209 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10210 	case $wlarc in
10211 	'')
10212 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10213 	*)
10214 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10215 	esac ;;
10216      esac
10217      link_all_deplibs=yes
10218      ;;
10219
10220    sunos4*)
10221      if test "x$host_vendor" = xsequent; then
10222	# Use $CC to link under sequent, because it throws in some extra .o
10223	# files that make .init and .fini sections work.
10224	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10225      else
10226	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10227      fi
10228      hardcode_libdir_flag_spec='-L$libdir'
10229      hardcode_direct=yes
10230      hardcode_minus_L=yes
10231      hardcode_shlibpath_var=no
10232      ;;
10233
10234    sysv4)
10235      case $host_vendor in
10236	sni)
10237	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238	  hardcode_direct=yes # is this really true???
10239	;;
10240	siemens)
10241	  ## LD is ld it makes a PLAMLIB
10242	  ## CC just makes a GrossModule.
10243	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10244	  reload_cmds='$CC -r -o $output$reload_objs'
10245	  hardcode_direct=no
10246        ;;
10247	motorola)
10248	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10250	;;
10251      esac
10252      runpath_var='LD_RUN_PATH'
10253      hardcode_shlibpath_var=no
10254      ;;
10255
10256    sysv4.3*)
10257      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10258      hardcode_shlibpath_var=no
10259      export_dynamic_flag_spec='-Bexport'
10260      ;;
10261
10262    sysv4*MP*)
10263      if test -d /usr/nec; then
10264	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265	hardcode_shlibpath_var=no
10266	runpath_var=LD_RUN_PATH
10267	hardcode_runpath_var=yes
10268	ld_shlibs=yes
10269      fi
10270      ;;
10271
10272    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10273      no_undefined_flag='${wl}-z,text'
10274      archive_cmds_need_lc=no
10275      hardcode_shlibpath_var=no
10276      runpath_var='LD_RUN_PATH'
10277
10278      if test "$GCC" = yes; then
10279	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281      else
10282	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284      fi
10285      ;;
10286
10287    sysv5* | sco3.2v5* | sco5v6*)
10288      # Note: We can NOT use -z defs as we might desire, because we do not
10289      # link with -lc, and that would cause any symbols used from libc to
10290      # always be unresolved, which means just about no library would
10291      # ever link correctly.  If we're not using GNU ld we use -z text
10292      # though, which does catch some bad symbols but isn't as heavy-handed
10293      # as -z defs.
10294      no_undefined_flag='${wl}-z,text'
10295      allow_undefined_flag='${wl}-z,nodefs'
10296      archive_cmds_need_lc=no
10297      hardcode_shlibpath_var=no
10298      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10299      hardcode_libdir_separator=':'
10300      link_all_deplibs=yes
10301      export_dynamic_flag_spec='${wl}-Bexport'
10302      runpath_var='LD_RUN_PATH'
10303
10304      if test "$GCC" = yes; then
10305	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10306	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10307      else
10308	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10309	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10310      fi
10311      ;;
10312
10313    uts4*)
10314      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315      hardcode_libdir_flag_spec='-L$libdir'
10316      hardcode_shlibpath_var=no
10317      ;;
10318
10319    *)
10320      ld_shlibs=no
10321      ;;
10322    esac
10323  fi
10324
10325{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10326echo "${ECHO_T}$ld_shlibs" >&6; }
10327test "$ld_shlibs" = no && can_build_shared=no
10328
10329#
10330# Do we need to explicitly link libc?
10331#
10332case "x$archive_cmds_need_lc" in
10333x|xyes)
10334  # Assume -lc should be added
10335  archive_cmds_need_lc=yes
10336
10337  if test "$enable_shared" = yes && test "$GCC" = yes; then
10338    case $archive_cmds in
10339    *'~'*)
10340      # FIXME: we may have to deal with multi-command sequences.
10341      ;;
10342    '$CC '*)
10343      # Test whether the compiler implicitly links with -lc since on some
10344      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10345      # to ld, don't add -lc before -lgcc.
10346      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10347echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10348      $rm conftest*
10349      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10350
10351      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352  (eval $ac_compile) 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); } 2>conftest.err; then
10356        soname=conftest
10357        lib=conftest
10358        libobjs=conftest.$ac_objext
10359        deplibs=
10360        wl=$lt_prog_compiler_wl
10361	pic_flag=$lt_prog_compiler_pic
10362        compiler_flags=-v
10363        linker_flags=-v
10364        verstring=
10365        output_objdir=.
10366        libname=conftest
10367        lt_save_allow_undefined_flag=$allow_undefined_flag
10368        allow_undefined_flag=
10369        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10370  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); }
10374        then
10375	  archive_cmds_need_lc=no
10376        else
10377	  archive_cmds_need_lc=yes
10378        fi
10379        allow_undefined_flag=$lt_save_allow_undefined_flag
10380      else
10381        cat conftest.err 1>&5
10382      fi
10383      $rm conftest*
10384      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10385echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10386      ;;
10387    esac
10388  fi
10389  ;;
10390esac
10391
10392{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10393echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10394library_names_spec=
10395libname_spec='lib$name'
10396soname_spec=
10397shrext_cmds=".so"
10398postinstall_cmds=
10399postuninstall_cmds=
10400finish_cmds=
10401finish_eval=
10402shlibpath_var=
10403shlibpath_overrides_runpath=unknown
10404version_type=none
10405dynamic_linker="$host_os ld.so"
10406sys_lib_dlsearch_path_spec="/lib /usr/lib"
10407if test "$GCC" = yes; then
10408  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10409  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10410    # if the path contains ";" then we assume it to be the separator
10411    # otherwise default to the standard path separator (i.e. ":") - it is
10412    # assumed that no part of a normal pathname contains ";" but that should
10413    # okay in the real world where ";" in dirpaths is itself problematic.
10414    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10415  else
10416    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10417  fi
10418else
10419  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10420fi
10421need_lib_prefix=unknown
10422hardcode_into_libs=no
10423
10424# when you set need_version to no, make sure it does not cause -set_version
10425# flags to be left without arguments
10426need_version=unknown
10427
10428case $host_os in
10429aix3*)
10430  version_type=linux
10431  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10432  shlibpath_var=LIBPATH
10433
10434  # AIX 3 has no versioning support, so we append a major version to the name.
10435  soname_spec='${libname}${release}${shared_ext}$major'
10436  ;;
10437
10438aix4* | aix5*)
10439  version_type=linux
10440  need_lib_prefix=no
10441  need_version=no
10442  hardcode_into_libs=yes
10443  if test "$host_cpu" = ia64; then
10444    # AIX 5 supports IA64
10445    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10446    shlibpath_var=LD_LIBRARY_PATH
10447  else
10448    # With GCC up to 2.95.x, collect2 would create an import file
10449    # for dependence libraries.  The import file would start with
10450    # the line `#! .'.  This would cause the generated library to
10451    # depend on `.', always an invalid library.  This was fixed in
10452    # development snapshots of GCC prior to 3.0.
10453    case $host_os in
10454      aix4 | aix4.[01] | aix4.[01].*)
10455      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10456	   echo ' yes '
10457	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10458	:
10459      else
10460	can_build_shared=no
10461      fi
10462      ;;
10463    esac
10464    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10465    # soname into executable. Probably we can add versioning support to
10466    # collect2, so additional links can be useful in future.
10467    if test "$aix_use_runtimelinking" = yes; then
10468      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10469      # instead of lib<name>.a to let people know that these are not
10470      # typical AIX shared libraries.
10471      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472    else
10473      # We preserve .a as extension for shared libraries through AIX4.2
10474      # and later when we are not doing run time linking.
10475      library_names_spec='${libname}${release}.a $libname.a'
10476      soname_spec='${libname}${release}${shared_ext}$major'
10477    fi
10478    shlibpath_var=LIBPATH
10479  fi
10480  ;;
10481
10482amigaos*)
10483  library_names_spec='$libname.ixlibrary $libname.a'
10484  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10485  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'
10486  ;;
10487
10488beos*)
10489  library_names_spec='${libname}${shared_ext}'
10490  dynamic_linker="$host_os ld.so"
10491  shlibpath_var=LIBRARY_PATH
10492  ;;
10493
10494bsdi[45]*)
10495  version_type=linux
10496  need_version=no
10497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498  soname_spec='${libname}${release}${shared_ext}$major'
10499  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10500  shlibpath_var=LD_LIBRARY_PATH
10501  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10502  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10503  # the default ld.so.conf also contains /usr/contrib/lib and
10504  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10505  # libtool to hard-code these into programs
10506  ;;
10507
10508cygwin* | mingw* | pw32*)
10509  version_type=windows
10510  shrext_cmds=".dll"
10511  need_version=no
10512  need_lib_prefix=no
10513
10514  case $GCC,$host_os in
10515  yes,cygwin* | yes,mingw* | yes,pw32*)
10516    library_names_spec='$libname.dll.a'
10517    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10518    postinstall_cmds='base_file=`basename \${file}`~
10519      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10520      dldir=$destdir/`dirname \$dlpath`~
10521      test -d \$dldir || mkdir -p \$dldir~
10522      $install_prog $dir/$dlname \$dldir/$dlname~
10523      chmod a+x \$dldir/$dlname'
10524    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10525      dlpath=$dir/\$dldll~
10526       $rm \$dlpath'
10527    shlibpath_overrides_runpath=yes
10528
10529    case $host_os in
10530    cygwin*)
10531      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10532      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10533      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10534      ;;
10535    mingw*)
10536      # MinGW DLLs use traditional 'lib' prefix
10537      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10539      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10540        # It is most probably a Windows format PATH printed by
10541        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10542        # path with ; separators, and with drive letters. We can handle the
10543        # drive letters (cygwin fileutils understands them), so leave them,
10544        # especially as we might pass files found there to a mingw objdump,
10545        # which wouldn't understand a cygwinified path. Ahh.
10546        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10547      else
10548        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10549      fi
10550      ;;
10551    pw32*)
10552      # pw32 DLLs use 'pw' prefix rather than 'lib'
10553      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10554      ;;
10555    esac
10556    ;;
10557
10558  *)
10559    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10560    ;;
10561  esac
10562  dynamic_linker='Win32 ld.exe'
10563  # FIXME: first we should search . and the directory the executable is in
10564  shlibpath_var=PATH
10565  ;;
10566
10567darwin* | rhapsody*)
10568  dynamic_linker="$host_os dyld"
10569  version_type=darwin
10570  need_lib_prefix=no
10571  need_version=no
10572  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10573  soname_spec='${libname}${release}${major}$shared_ext'
10574  shlibpath_overrides_runpath=yes
10575  shlibpath_var=DYLD_LIBRARY_PATH
10576  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10577  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10578  if test "$GCC" = yes; then
10579    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10580  else
10581    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10582  fi
10583  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10584  ;;
10585
10586dgux*)
10587  version_type=linux
10588  need_lib_prefix=no
10589  need_version=no
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10591  soname_spec='${libname}${release}${shared_ext}$major'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  ;;
10594
10595freebsd1*)
10596  dynamic_linker=no
10597  ;;
10598
10599kfreebsd*-gnu)
10600  version_type=linux
10601  need_lib_prefix=no
10602  need_version=no
10603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604  soname_spec='${libname}${release}${shared_ext}$major'
10605  shlibpath_var=LD_LIBRARY_PATH
10606  shlibpath_overrides_runpath=no
10607  hardcode_into_libs=yes
10608  dynamic_linker='GNU ld.so'
10609  ;;
10610
10611freebsd* | dragonfly*)
10612  # DragonFly does not have aout.  When/if they implement a new
10613  # versioning mechanism, adjust this.
10614  if test -x /usr/bin/objformat; then
10615    objformat=`/usr/bin/objformat`
10616  else
10617    case $host_os in
10618    freebsd[123]*) objformat=aout ;;
10619    *) objformat=elf ;;
10620    esac
10621  fi
10622  version_type=freebsd-$objformat
10623  case $version_type in
10624    freebsd-elf*)
10625      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10626      need_version=no
10627      need_lib_prefix=no
10628      ;;
10629    freebsd-*)
10630      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10631      need_version=yes
10632      ;;
10633  esac
10634  shlibpath_var=LD_LIBRARY_PATH
10635  case $host_os in
10636  freebsd2*)
10637    shlibpath_overrides_runpath=yes
10638    ;;
10639  freebsd3.[01]* | freebsdelf3.[01]*)
10640    shlibpath_overrides_runpath=yes
10641    hardcode_into_libs=yes
10642    ;;
10643  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10644  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10645    shlibpath_overrides_runpath=no
10646    hardcode_into_libs=yes
10647    ;;
10648  freebsd*) # from 4.6 on
10649    shlibpath_overrides_runpath=yes
10650    hardcode_into_libs=yes
10651    ;;
10652  esac
10653  ;;
10654
10655gnu*)
10656  version_type=linux
10657  need_lib_prefix=no
10658  need_version=no
10659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10660  soname_spec='${libname}${release}${shared_ext}$major'
10661  shlibpath_var=LD_LIBRARY_PATH
10662  hardcode_into_libs=yes
10663  ;;
10664
10665hpux9* | hpux10* | hpux11*)
10666  # Give a soname corresponding to the major version so that dld.sl refuses to
10667  # link against other versions.
10668  version_type=sunos
10669  need_lib_prefix=no
10670  need_version=no
10671  case $host_cpu in
10672  ia64*)
10673    shrext_cmds='.so'
10674    hardcode_into_libs=yes
10675    dynamic_linker="$host_os dld.so"
10676    shlibpath_var=LD_LIBRARY_PATH
10677    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679    soname_spec='${libname}${release}${shared_ext}$major'
10680    if test "X$HPUX_IA64_MODE" = X32; then
10681      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10682    else
10683      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10684    fi
10685    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10686    ;;
10687   hppa*64*)
10688     shrext_cmds='.sl'
10689     hardcode_into_libs=yes
10690     dynamic_linker="$host_os dld.sl"
10691     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10692     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694     soname_spec='${libname}${release}${shared_ext}$major'
10695     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10696     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10697     ;;
10698   *)
10699    shrext_cmds='.sl'
10700    dynamic_linker="$host_os dld.sl"
10701    shlibpath_var=SHLIB_PATH
10702    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10703    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704    soname_spec='${libname}${release}${shared_ext}$major'
10705    ;;
10706  esac
10707  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10708  postinstall_cmds='chmod 555 $lib'
10709  ;;
10710
10711interix3*)
10712  version_type=linux
10713  need_lib_prefix=no
10714  need_version=no
10715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10716  soname_spec='${libname}${release}${shared_ext}$major'
10717  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10718  shlibpath_var=LD_LIBRARY_PATH
10719  shlibpath_overrides_runpath=no
10720  hardcode_into_libs=yes
10721  ;;
10722
10723irix5* | irix6* | nonstopux*)
10724  case $host_os in
10725    nonstopux*) version_type=nonstopux ;;
10726    *)
10727	if test "$lt_cv_prog_gnu_ld" = yes; then
10728		version_type=linux
10729	else
10730		version_type=irix
10731	fi ;;
10732  esac
10733  need_lib_prefix=no
10734  need_version=no
10735  soname_spec='${libname}${release}${shared_ext}$major'
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10737  case $host_os in
10738  irix5* | nonstopux*)
10739    libsuff= shlibsuff=
10740    ;;
10741  *)
10742    case $LD in # libtool.m4 will add one of these switches to LD
10743    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10744      libsuff= shlibsuff= libmagic=32-bit;;
10745    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10746      libsuff=32 shlibsuff=N32 libmagic=N32;;
10747    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10748      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10749    *) libsuff= shlibsuff= libmagic=never-match;;
10750    esac
10751    ;;
10752  esac
10753  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10754  shlibpath_overrides_runpath=no
10755  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10756  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10757  hardcode_into_libs=yes
10758  ;;
10759
10760# No shared lib support for Linux oldld, aout, or coff.
10761linux*oldld* | linux*aout* | linux*coff*)
10762  dynamic_linker=no
10763  ;;
10764
10765# This must be Linux ELF.
10766linux*)
10767  version_type=linux
10768  need_lib_prefix=no
10769  need_version=no
10770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771  soname_spec='${libname}${release}${shared_ext}$major'
10772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10773  shlibpath_var=LD_LIBRARY_PATH
10774  shlibpath_overrides_runpath=no
10775  # This implies no fast_install, which is unacceptable.
10776  # Some rework will be needed to allow for fast_install
10777  # before this can be enabled.
10778  hardcode_into_libs=yes
10779
10780  # Append ld.so.conf contents to the search path
10781  if test -f /etc/ld.so.conf; then
10782    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10783    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10784  fi
10785
10786  # We used to test for /lib/ld.so.1 and disable shared libraries on
10787  # powerpc, because MkLinux only supported shared libraries with the
10788  # GNU dynamic linker.  Since this was broken with cross compilers,
10789  # most powerpc-linux boxes support dynamic linking these days and
10790  # people can always --disable-shared, the test was removed, and we
10791  # assume the GNU/Linux dynamic linker is in use.
10792  dynamic_linker='GNU/Linux ld.so'
10793  ;;
10794
10795knetbsd*-gnu)
10796  version_type=linux
10797  need_lib_prefix=no
10798  need_version=no
10799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10800  soname_spec='${libname}${release}${shared_ext}$major'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  shlibpath_overrides_runpath=no
10803  hardcode_into_libs=yes
10804  dynamic_linker='GNU ld.so'
10805  ;;
10806
10807netbsd*)
10808  version_type=sunos
10809  need_lib_prefix=no
10810  need_version=no
10811  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10813    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10814    dynamic_linker='NetBSD (a.out) ld.so'
10815  else
10816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10817    soname_spec='${libname}${release}${shared_ext}$major'
10818    dynamic_linker='NetBSD ld.elf_so'
10819  fi
10820  shlibpath_var=LD_LIBRARY_PATH
10821  shlibpath_overrides_runpath=yes
10822  hardcode_into_libs=yes
10823  ;;
10824
10825newsos6)
10826  version_type=linux
10827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828  shlibpath_var=LD_LIBRARY_PATH
10829  shlibpath_overrides_runpath=yes
10830  ;;
10831
10832nto-qnx*)
10833  version_type=linux
10834  need_lib_prefix=no
10835  need_version=no
10836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837  soname_spec='${libname}${release}${shared_ext}$major'
10838  shlibpath_var=LD_LIBRARY_PATH
10839  shlibpath_overrides_runpath=yes
10840  ;;
10841
10842openbsd*)
10843  version_type=sunos
10844  sys_lib_dlsearch_path_spec="/usr/lib"
10845  need_lib_prefix=no
10846  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10847  case $host_os in
10848    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10849    *)                         need_version=no  ;;
10850  esac
10851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10852  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10853  shlibpath_var=LD_LIBRARY_PATH
10854  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10855    case $host_os in
10856      openbsd2.[89] | openbsd2.[89].*)
10857	shlibpath_overrides_runpath=no
10858	;;
10859      *)
10860	shlibpath_overrides_runpath=yes
10861	;;
10862      esac
10863  else
10864    shlibpath_overrides_runpath=yes
10865  fi
10866  ;;
10867
10868os2*)
10869  libname_spec='$name'
10870  shrext_cmds=".dll"
10871  need_lib_prefix=no
10872  library_names_spec='$libname${shared_ext} $libname.a'
10873  dynamic_linker='OS/2 ld.exe'
10874  shlibpath_var=LIBPATH
10875  ;;
10876
10877osf3* | osf4* | osf5*)
10878  version_type=osf
10879  need_lib_prefix=no
10880  need_version=no
10881  soname_spec='${libname}${release}${shared_ext}$major'
10882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883  shlibpath_var=LD_LIBRARY_PATH
10884  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10885  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10886  ;;
10887
10888solaris*)
10889  version_type=linux
10890  need_lib_prefix=no
10891  need_version=no
10892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893  soname_spec='${libname}${release}${shared_ext}$major'
10894  shlibpath_var=LD_LIBRARY_PATH
10895  shlibpath_overrides_runpath=yes
10896  hardcode_into_libs=yes
10897  # ldd complains unless libraries are executable
10898  postinstall_cmds='chmod +x $lib'
10899  ;;
10900
10901sunos4*)
10902  version_type=sunos
10903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10904  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10905  shlibpath_var=LD_LIBRARY_PATH
10906  shlibpath_overrides_runpath=yes
10907  if test "$with_gnu_ld" = yes; then
10908    need_lib_prefix=no
10909  fi
10910  need_version=yes
10911  ;;
10912
10913sysv4 | sysv4.3*)
10914  version_type=linux
10915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10916  soname_spec='${libname}${release}${shared_ext}$major'
10917  shlibpath_var=LD_LIBRARY_PATH
10918  case $host_vendor in
10919    sni)
10920      shlibpath_overrides_runpath=no
10921      need_lib_prefix=no
10922      export_dynamic_flag_spec='${wl}-Blargedynsym'
10923      runpath_var=LD_RUN_PATH
10924      ;;
10925    siemens)
10926      need_lib_prefix=no
10927      ;;
10928    motorola)
10929      need_lib_prefix=no
10930      need_version=no
10931      shlibpath_overrides_runpath=no
10932      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10933      ;;
10934  esac
10935  ;;
10936
10937sysv4*MP*)
10938  if test -d /usr/nec ;then
10939    version_type=linux
10940    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10941    soname_spec='$libname${shared_ext}.$major'
10942    shlibpath_var=LD_LIBRARY_PATH
10943  fi
10944  ;;
10945
10946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10947  version_type=freebsd-elf
10948  need_lib_prefix=no
10949  need_version=no
10950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10951  soname_spec='${libname}${release}${shared_ext}$major'
10952  shlibpath_var=LD_LIBRARY_PATH
10953  hardcode_into_libs=yes
10954  if test "$with_gnu_ld" = yes; then
10955    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10956    shlibpath_overrides_runpath=no
10957  else
10958    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10959    shlibpath_overrides_runpath=yes
10960    case $host_os in
10961      sco3.2v5*)
10962        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10963	;;
10964    esac
10965  fi
10966  sys_lib_dlsearch_path_spec='/usr/lib'
10967  ;;
10968
10969uts4*)
10970  version_type=linux
10971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972  soname_spec='${libname}${release}${shared_ext}$major'
10973  shlibpath_var=LD_LIBRARY_PATH
10974  ;;
10975
10976*)
10977  dynamic_linker=no
10978  ;;
10979esac
10980{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10981echo "${ECHO_T}$dynamic_linker" >&6; }
10982test "$dynamic_linker" = no && can_build_shared=no
10983
10984variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10985if test "$GCC" = yes; then
10986  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10987fi
10988
10989{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10990echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10991hardcode_action=
10992if test -n "$hardcode_libdir_flag_spec" || \
10993   test -n "$runpath_var" || \
10994   test "X$hardcode_automatic" = "Xyes" ; then
10995
10996  # We can hardcode non-existant directories.
10997  if test "$hardcode_direct" != no &&
10998     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10999     # have to relink, otherwise we might link with an installed library
11000     # when we should be linking with a yet-to-be-installed one
11001     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11002     test "$hardcode_minus_L" != no; then
11003    # Linking always hardcodes the temporary library directory.
11004    hardcode_action=relink
11005  else
11006    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11007    hardcode_action=immediate
11008  fi
11009else
11010  # We cannot hardcode anything, or else we can only hardcode existing
11011  # directories.
11012  hardcode_action=unsupported
11013fi
11014{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11015echo "${ECHO_T}$hardcode_action" >&6; }
11016
11017if test "$hardcode_action" = relink; then
11018  # Fast installation is not supported
11019  enable_fast_install=no
11020elif test "$shlibpath_overrides_runpath" = yes ||
11021     test "$enable_shared" = no; then
11022  # Fast installation is not necessary
11023  enable_fast_install=needless
11024fi
11025
11026striplib=
11027old_striplib=
11028{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11029echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11030if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11031  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11032  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11033  { echo "$as_me:$LINENO: result: yes" >&5
11034echo "${ECHO_T}yes" >&6; }
11035else
11036# FIXME - insert some real tests, host_os isn't really good enough
11037  case $host_os in
11038   darwin*)
11039       if test -n "$STRIP" ; then
11040         striplib="$STRIP -x"
11041         { echo "$as_me:$LINENO: result: yes" >&5
11042echo "${ECHO_T}yes" >&6; }
11043       else
11044  { echo "$as_me:$LINENO: result: no" >&5
11045echo "${ECHO_T}no" >&6; }
11046fi
11047       ;;
11048   *)
11049  { echo "$as_me:$LINENO: result: no" >&5
11050echo "${ECHO_T}no" >&6; }
11051    ;;
11052  esac
11053fi
11054
11055if test "x$enable_dlopen" != xyes; then
11056  enable_dlopen=unknown
11057  enable_dlopen_self=unknown
11058  enable_dlopen_self_static=unknown
11059else
11060  lt_cv_dlopen=no
11061  lt_cv_dlopen_libs=
11062
11063  case $host_os in
11064  beos*)
11065    lt_cv_dlopen="load_add_on"
11066    lt_cv_dlopen_libs=
11067    lt_cv_dlopen_self=yes
11068    ;;
11069
11070  mingw* | pw32*)
11071    lt_cv_dlopen="LoadLibrary"
11072    lt_cv_dlopen_libs=
11073   ;;
11074
11075  cygwin*)
11076    lt_cv_dlopen="dlopen"
11077    lt_cv_dlopen_libs=
11078   ;;
11079
11080  darwin*)
11081  # if libdl is installed we need to link against it
11082    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11083echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11084if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11085  echo $ECHO_N "(cached) $ECHO_C" >&6
11086else
11087  ac_check_lib_save_LIBS=$LIBS
11088LIBS="-ldl  $LIBS"
11089cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h.  */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h.  */
11095
11096/* Override any GCC internal prototype to avoid an error.
11097   Use char because int might match the return type of a GCC
11098   builtin and then its argument prototype would still apply.  */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102char dlopen ();
11103int
11104main ()
11105{
11106return dlopen ();
11107  ;
11108  return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext conftest$ac_exeext
11112if { (ac_try="$ac_link"
11113case "(($ac_try" in
11114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115  *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118  (eval "$ac_link") 2>conftest.er1
11119  ac_status=$?
11120  grep -v '^ *+' conftest.er1 >conftest.err
11121  rm -f conftest.er1
11122  cat conftest.err >&5
11123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124  (exit $ac_status); } &&
11125	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11126  { (case "(($ac_try" in
11127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128  *) ac_try_echo=$ac_try;;
11129esac
11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131  (eval "$ac_try") 2>&5
11132  ac_status=$?
11133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134  (exit $ac_status); }; } &&
11135	 { ac_try='test -s conftest$ac_exeext'
11136  { (case "(($ac_try" in
11137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138  *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141  (eval "$ac_try") 2>&5
11142  ac_status=$?
11143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144  (exit $ac_status); }; }; then
11145  ac_cv_lib_dl_dlopen=yes
11146else
11147  echo "$as_me: failed program was:" >&5
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
11150	ac_cv_lib_dl_dlopen=no
11151fi
11152
11153rm -f core conftest.err conftest.$ac_objext \
11154      conftest$ac_exeext conftest.$ac_ext
11155LIBS=$ac_check_lib_save_LIBS
11156fi
11157{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11158echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11159if test $ac_cv_lib_dl_dlopen = yes; then
11160  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11161else
11162
11163    lt_cv_dlopen="dyld"
11164    lt_cv_dlopen_libs=
11165    lt_cv_dlopen_self=yes
11166
11167fi
11168
11169   ;;
11170
11171  *)
11172    { echo "$as_me:$LINENO: checking for shl_load" >&5
11173echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11174if test "${ac_cv_func_shl_load+set}" = set; then
11175  echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177  cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h.  */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h.  */
11183/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11185#define shl_load innocuous_shl_load
11186
11187/* System header to define __stub macros and hopefully few prototypes,
11188    which can conflict with char shl_load (); below.
11189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190    <limits.h> exists even on freestanding compilers.  */
11191
11192#ifdef __STDC__
11193# include <limits.h>
11194#else
11195# include <assert.h>
11196#endif
11197
11198#undef shl_load
11199
11200/* Override any GCC internal prototype to avoid an error.
11201   Use char because int might match the return type of a GCC
11202   builtin and then its argument prototype would still apply.  */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char shl_load ();
11207/* The GNU C library defines this for functions which it implements
11208    to always fail with ENOSYS.  Some functions are actually named
11209    something starting with __ and the normal name is an alias.  */
11210#if defined __stub_shl_load || defined __stub___shl_load
11211choke me
11212#endif
11213
11214int
11215main ()
11216{
11217return shl_load ();
11218  ;
11219  return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext conftest$ac_exeext
11223if { (ac_try="$ac_link"
11224case "(($ac_try" in
11225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226  *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229  (eval "$ac_link") 2>conftest.er1
11230  ac_status=$?
11231  grep -v '^ *+' conftest.er1 >conftest.err
11232  rm -f conftest.er1
11233  cat conftest.err >&5
11234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235  (exit $ac_status); } &&
11236	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237  { (case "(($ac_try" in
11238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239  *) ac_try_echo=$ac_try;;
11240esac
11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242  (eval "$ac_try") 2>&5
11243  ac_status=$?
11244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245  (exit $ac_status); }; } &&
11246	 { ac_try='test -s conftest$ac_exeext'
11247  { (case "(($ac_try" in
11248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249  *) ac_try_echo=$ac_try;;
11250esac
11251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252  (eval "$ac_try") 2>&5
11253  ac_status=$?
11254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255  (exit $ac_status); }; }; then
11256  ac_cv_func_shl_load=yes
11257else
11258  echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261	ac_cv_func_shl_load=no
11262fi
11263
11264rm -f core conftest.err conftest.$ac_objext \
11265      conftest$ac_exeext conftest.$ac_ext
11266fi
11267{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11268echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11269if test $ac_cv_func_shl_load = yes; then
11270  lt_cv_dlopen="shl_load"
11271else
11272  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11273echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11274if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11275  echo $ECHO_N "(cached) $ECHO_C" >&6
11276else
11277  ac_check_lib_save_LIBS=$LIBS
11278LIBS="-ldld  $LIBS"
11279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h.  */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h.  */
11285
11286/* Override any GCC internal prototype to avoid an error.
11287   Use char because int might match the return type of a GCC
11288   builtin and then its argument prototype would still apply.  */
11289#ifdef __cplusplus
11290extern "C"
11291#endif
11292char shl_load ();
11293int
11294main ()
11295{
11296return shl_load ();
11297  ;
11298  return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext conftest$ac_exeext
11302if { (ac_try="$ac_link"
11303case "(($ac_try" in
11304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305  *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308  (eval "$ac_link") 2>conftest.er1
11309  ac_status=$?
11310  grep -v '^ *+' conftest.er1 >conftest.err
11311  rm -f conftest.er1
11312  cat conftest.err >&5
11313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314  (exit $ac_status); } &&
11315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316  { (case "(($ac_try" in
11317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318  *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321  (eval "$ac_try") 2>&5
11322  ac_status=$?
11323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324  (exit $ac_status); }; } &&
11325	 { ac_try='test -s conftest$ac_exeext'
11326  { (case "(($ac_try" in
11327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328  *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331  (eval "$ac_try") 2>&5
11332  ac_status=$?
11333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334  (exit $ac_status); }; }; then
11335  ac_cv_lib_dld_shl_load=yes
11336else
11337  echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340	ac_cv_lib_dld_shl_load=no
11341fi
11342
11343rm -f core conftest.err conftest.$ac_objext \
11344      conftest$ac_exeext conftest.$ac_ext
11345LIBS=$ac_check_lib_save_LIBS
11346fi
11347{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11348echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11349if test $ac_cv_lib_dld_shl_load = yes; then
11350  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11351else
11352  { echo "$as_me:$LINENO: checking for dlopen" >&5
11353echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11354if test "${ac_cv_func_dlopen+set}" = set; then
11355  echo $ECHO_N "(cached) $ECHO_C" >&6
11356else
11357  cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h.  */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h.  */
11363/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11364   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11365#define dlopen innocuous_dlopen
11366
11367/* System header to define __stub macros and hopefully few prototypes,
11368    which can conflict with char dlopen (); below.
11369    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11370    <limits.h> exists even on freestanding compilers.  */
11371
11372#ifdef __STDC__
11373# include <limits.h>
11374#else
11375# include <assert.h>
11376#endif
11377
11378#undef dlopen
11379
11380/* Override any GCC internal prototype to avoid an error.
11381   Use char because int might match the return type of a GCC
11382   builtin and then its argument prototype would still apply.  */
11383#ifdef __cplusplus
11384extern "C"
11385#endif
11386char dlopen ();
11387/* The GNU C library defines this for functions which it implements
11388    to always fail with ENOSYS.  Some functions are actually named
11389    something starting with __ and the normal name is an alias.  */
11390#if defined __stub_dlopen || defined __stub___dlopen
11391choke me
11392#endif
11393
11394int
11395main ()
11396{
11397return dlopen ();
11398  ;
11399  return 0;
11400}
11401_ACEOF
11402rm -f conftest.$ac_objext conftest$ac_exeext
11403if { (ac_try="$ac_link"
11404case "(($ac_try" in
11405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406  *) ac_try_echo=$ac_try;;
11407esac
11408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409  (eval "$ac_link") 2>conftest.er1
11410  ac_status=$?
11411  grep -v '^ *+' conftest.er1 >conftest.err
11412  rm -f conftest.er1
11413  cat conftest.err >&5
11414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415  (exit $ac_status); } &&
11416	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11417  { (case "(($ac_try" in
11418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419  *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422  (eval "$ac_try") 2>&5
11423  ac_status=$?
11424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425  (exit $ac_status); }; } &&
11426	 { ac_try='test -s conftest$ac_exeext'
11427  { (case "(($ac_try" in
11428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429  *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432  (eval "$ac_try") 2>&5
11433  ac_status=$?
11434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435  (exit $ac_status); }; }; then
11436  ac_cv_func_dlopen=yes
11437else
11438  echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
11440
11441	ac_cv_func_dlopen=no
11442fi
11443
11444rm -f core conftest.err conftest.$ac_objext \
11445      conftest$ac_exeext conftest.$ac_ext
11446fi
11447{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11448echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11449if test $ac_cv_func_dlopen = yes; then
11450  lt_cv_dlopen="dlopen"
11451else
11452  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11453echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11454if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11455  echo $ECHO_N "(cached) $ECHO_C" >&6
11456else
11457  ac_check_lib_save_LIBS=$LIBS
11458LIBS="-ldl  $LIBS"
11459cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h.  */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h.  */
11465
11466/* Override any GCC internal prototype to avoid an error.
11467   Use char because int might match the return type of a GCC
11468   builtin and then its argument prototype would still apply.  */
11469#ifdef __cplusplus
11470extern "C"
11471#endif
11472char dlopen ();
11473int
11474main ()
11475{
11476return dlopen ();
11477  ;
11478  return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext conftest$ac_exeext
11482if { (ac_try="$ac_link"
11483case "(($ac_try" in
11484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485  *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488  (eval "$ac_link") 2>conftest.er1
11489  ac_status=$?
11490  grep -v '^ *+' conftest.er1 >conftest.err
11491  rm -f conftest.er1
11492  cat conftest.err >&5
11493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494  (exit $ac_status); } &&
11495	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496  { (case "(($ac_try" in
11497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498  *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501  (eval "$ac_try") 2>&5
11502  ac_status=$?
11503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504  (exit $ac_status); }; } &&
11505	 { ac_try='test -s conftest$ac_exeext'
11506  { (case "(($ac_try" in
11507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508  *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511  (eval "$ac_try") 2>&5
11512  ac_status=$?
11513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514  (exit $ac_status); }; }; then
11515  ac_cv_lib_dl_dlopen=yes
11516else
11517  echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520	ac_cv_lib_dl_dlopen=no
11521fi
11522
11523rm -f core conftest.err conftest.$ac_objext \
11524      conftest$ac_exeext conftest.$ac_ext
11525LIBS=$ac_check_lib_save_LIBS
11526fi
11527{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11528echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11529if test $ac_cv_lib_dl_dlopen = yes; then
11530  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11531else
11532  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11533echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11534if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11535  echo $ECHO_N "(cached) $ECHO_C" >&6
11536else
11537  ac_check_lib_save_LIBS=$LIBS
11538LIBS="-lsvld  $LIBS"
11539cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h.  */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h.  */
11545
11546/* Override any GCC internal prototype to avoid an error.
11547   Use char because int might match the return type of a GCC
11548   builtin and then its argument prototype would still apply.  */
11549#ifdef __cplusplus
11550extern "C"
11551#endif
11552char dlopen ();
11553int
11554main ()
11555{
11556return dlopen ();
11557  ;
11558  return 0;
11559}
11560_ACEOF
11561rm -f conftest.$ac_objext conftest$ac_exeext
11562if { (ac_try="$ac_link"
11563case "(($ac_try" in
11564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565  *) ac_try_echo=$ac_try;;
11566esac
11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568  (eval "$ac_link") 2>conftest.er1
11569  ac_status=$?
11570  grep -v '^ *+' conftest.er1 >conftest.err
11571  rm -f conftest.er1
11572  cat conftest.err >&5
11573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); } &&
11575	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11576  { (case "(($ac_try" in
11577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578  *) ac_try_echo=$ac_try;;
11579esac
11580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581  (eval "$ac_try") 2>&5
11582  ac_status=$?
11583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584  (exit $ac_status); }; } &&
11585	 { ac_try='test -s conftest$ac_exeext'
11586  { (case "(($ac_try" in
11587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588  *) ac_try_echo=$ac_try;;
11589esac
11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591  (eval "$ac_try") 2>&5
11592  ac_status=$?
11593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594  (exit $ac_status); }; }; then
11595  ac_cv_lib_svld_dlopen=yes
11596else
11597  echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600	ac_cv_lib_svld_dlopen=no
11601fi
11602
11603rm -f core conftest.err conftest.$ac_objext \
11604      conftest$ac_exeext conftest.$ac_ext
11605LIBS=$ac_check_lib_save_LIBS
11606fi
11607{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11608echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11609if test $ac_cv_lib_svld_dlopen = yes; then
11610  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11611else
11612  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11613echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11614if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11615  echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617  ac_check_lib_save_LIBS=$LIBS
11618LIBS="-ldld  $LIBS"
11619cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h.  */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h.  */
11625
11626/* Override any GCC internal prototype to avoid an error.
11627   Use char because int might match the return type of a GCC
11628   builtin and then its argument prototype would still apply.  */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char dld_link ();
11633int
11634main ()
11635{
11636return dld_link ();
11637  ;
11638  return 0;
11639}
11640_ACEOF
11641rm -f conftest.$ac_objext conftest$ac_exeext
11642if { (ac_try="$ac_link"
11643case "(($ac_try" in
11644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645  *) ac_try_echo=$ac_try;;
11646esac
11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648  (eval "$ac_link") 2>conftest.er1
11649  ac_status=$?
11650  grep -v '^ *+' conftest.er1 >conftest.err
11651  rm -f conftest.er1
11652  cat conftest.err >&5
11653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654  (exit $ac_status); } &&
11655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11656  { (case "(($ac_try" in
11657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658  *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661  (eval "$ac_try") 2>&5
11662  ac_status=$?
11663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); }; } &&
11665	 { ac_try='test -s conftest$ac_exeext'
11666  { (case "(($ac_try" in
11667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668  *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671  (eval "$ac_try") 2>&5
11672  ac_status=$?
11673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674  (exit $ac_status); }; }; then
11675  ac_cv_lib_dld_dld_link=yes
11676else
11677  echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680	ac_cv_lib_dld_dld_link=no
11681fi
11682
11683rm -f core conftest.err conftest.$ac_objext \
11684      conftest$ac_exeext conftest.$ac_ext
11685LIBS=$ac_check_lib_save_LIBS
11686fi
11687{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11688echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11689if test $ac_cv_lib_dld_dld_link = yes; then
11690  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702
11703fi
11704
11705
11706fi
11707
11708    ;;
11709  esac
11710
11711  if test "x$lt_cv_dlopen" != xno; then
11712    enable_dlopen=yes
11713  else
11714    enable_dlopen=no
11715  fi
11716
11717  case $lt_cv_dlopen in
11718  dlopen)
11719    save_CPPFLAGS="$CPPFLAGS"
11720    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11721
11722    save_LDFLAGS="$LDFLAGS"
11723    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11724
11725    save_LIBS="$LIBS"
11726    LIBS="$lt_cv_dlopen_libs $LIBS"
11727
11728    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11729echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11730if test "${lt_cv_dlopen_self+set}" = set; then
11731  echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733  	  if test "$cross_compiling" = yes; then :
11734  lt_cv_dlopen_self=cross
11735else
11736  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11737  lt_status=$lt_dlunknown
11738  cat > conftest.$ac_ext <<EOF
11739#line 11739 "configure"
11740#include "confdefs.h"
11741
11742#if HAVE_DLFCN_H
11743#include <dlfcn.h>
11744#endif
11745
11746#include <stdio.h>
11747
11748#ifdef RTLD_GLOBAL
11749#  define LT_DLGLOBAL		RTLD_GLOBAL
11750#else
11751#  ifdef DL_GLOBAL
11752#    define LT_DLGLOBAL		DL_GLOBAL
11753#  else
11754#    define LT_DLGLOBAL		0
11755#  endif
11756#endif
11757
11758/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11759   find out it does not work in some platform. */
11760#ifndef LT_DLLAZY_OR_NOW
11761#  ifdef RTLD_LAZY
11762#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11763#  else
11764#    ifdef DL_LAZY
11765#      define LT_DLLAZY_OR_NOW		DL_LAZY
11766#    else
11767#      ifdef RTLD_NOW
11768#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11769#      else
11770#        ifdef DL_NOW
11771#          define LT_DLLAZY_OR_NOW	DL_NOW
11772#        else
11773#          define LT_DLLAZY_OR_NOW	0
11774#        endif
11775#      endif
11776#    endif
11777#  endif
11778#endif
11779
11780#ifdef __cplusplus
11781extern "C" void exit (int);
11782#endif
11783
11784void fnord() { int i=42;}
11785int main ()
11786{
11787  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11788  int status = $lt_dlunknown;
11789
11790  if (self)
11791    {
11792      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11793      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11794      /* dlclose (self); */
11795    }
11796  else
11797    puts (dlerror ());
11798
11799    exit (status);
11800}
11801EOF
11802  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803  (eval $ac_link) 2>&5
11804  ac_status=$?
11805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11807    (./conftest; exit; ) >&5 2>/dev/null
11808    lt_status=$?
11809    case x$lt_status in
11810      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11813    esac
11814  else :
11815    # compilation failed
11816    lt_cv_dlopen_self=no
11817  fi
11818fi
11819rm -fr conftest*
11820
11821
11822fi
11823{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11824echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11825
11826    if test "x$lt_cv_dlopen_self" = xyes; then
11827      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11829echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11830if test "${lt_cv_dlopen_self_static+set}" = set; then
11831  echo $ECHO_N "(cached) $ECHO_C" >&6
11832else
11833  	  if test "$cross_compiling" = yes; then :
11834  lt_cv_dlopen_self_static=cross
11835else
11836  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837  lt_status=$lt_dlunknown
11838  cat > conftest.$ac_ext <<EOF
11839#line 11839 "configure"
11840#include "confdefs.h"
11841
11842#if HAVE_DLFCN_H
11843#include <dlfcn.h>
11844#endif
11845
11846#include <stdio.h>
11847
11848#ifdef RTLD_GLOBAL
11849#  define LT_DLGLOBAL		RTLD_GLOBAL
11850#else
11851#  ifdef DL_GLOBAL
11852#    define LT_DLGLOBAL		DL_GLOBAL
11853#  else
11854#    define LT_DLGLOBAL		0
11855#  endif
11856#endif
11857
11858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859   find out it does not work in some platform. */
11860#ifndef LT_DLLAZY_OR_NOW
11861#  ifdef RTLD_LAZY
11862#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11863#  else
11864#    ifdef DL_LAZY
11865#      define LT_DLLAZY_OR_NOW		DL_LAZY
11866#    else
11867#      ifdef RTLD_NOW
11868#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11869#      else
11870#        ifdef DL_NOW
11871#          define LT_DLLAZY_OR_NOW	DL_NOW
11872#        else
11873#          define LT_DLLAZY_OR_NOW	0
11874#        endif
11875#      endif
11876#    endif
11877#  endif
11878#endif
11879
11880#ifdef __cplusplus
11881extern "C" void exit (int);
11882#endif
11883
11884void fnord() { int i=42;}
11885int main ()
11886{
11887  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888  int status = $lt_dlunknown;
11889
11890  if (self)
11891    {
11892      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11893      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11894      /* dlclose (self); */
11895    }
11896  else
11897    puts (dlerror ());
11898
11899    exit (status);
11900}
11901EOF
11902  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903  (eval $ac_link) 2>&5
11904  ac_status=$?
11905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11907    (./conftest; exit; ) >&5 2>/dev/null
11908    lt_status=$?
11909    case x$lt_status in
11910      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11911      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11912      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11913    esac
11914  else :
11915    # compilation failed
11916    lt_cv_dlopen_self_static=no
11917  fi
11918fi
11919rm -fr conftest*
11920
11921
11922fi
11923{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11924echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11925    fi
11926
11927    CPPFLAGS="$save_CPPFLAGS"
11928    LDFLAGS="$save_LDFLAGS"
11929    LIBS="$save_LIBS"
11930    ;;
11931  esac
11932
11933  case $lt_cv_dlopen_self in
11934  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11935  *) enable_dlopen_self=unknown ;;
11936  esac
11937
11938  case $lt_cv_dlopen_self_static in
11939  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11940  *) enable_dlopen_self_static=unknown ;;
11941  esac
11942fi
11943
11944
11945# Report which library types will actually be built
11946{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11947echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11948{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11949echo "${ECHO_T}$can_build_shared" >&6; }
11950
11951{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11952echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11953test "$can_build_shared" = "no" && enable_shared=no
11954
11955# On AIX, shared libraries and static libraries use the same namespace, and
11956# are all built from PIC.
11957case $host_os in
11958aix3*)
11959  test "$enable_shared" = yes && enable_static=no
11960  if test -n "$RANLIB"; then
11961    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11962    postinstall_cmds='$RANLIB $lib'
11963  fi
11964  ;;
11965
11966aix4* | aix5*)
11967  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11968    test "$enable_shared" = yes && enable_static=no
11969  fi
11970    ;;
11971esac
11972{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11973echo "${ECHO_T}$enable_shared" >&6; }
11974
11975{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11976echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11977# Make sure either enable_shared or enable_static is yes.
11978test "$enable_shared" = yes || enable_static=yes
11979{ echo "$as_me:$LINENO: result: $enable_static" >&5
11980echo "${ECHO_T}$enable_static" >&6; }
11981
11982# The else clause should only fire when bootstrapping the
11983# libtool distribution, otherwise you forgot to ship ltmain.sh
11984# with your package, and you will get complaints that there are
11985# no rules to generate ltmain.sh.
11986if test -f "$ltmain"; then
11987  # See if we are running on zsh, and set the options which allow our commands through
11988  # without removal of \ escapes.
11989  if test -n "${ZSH_VERSION+set}" ; then
11990    setopt NO_GLOB_SUBST
11991  fi
11992  # Now quote all the things that may contain metacharacters while being
11993  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11994  # variables and quote the copies for generation of the libtool script.
11995  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11996    SED SHELL STRIP \
11997    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11998    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11999    deplibs_check_method reload_flag reload_cmds need_locks \
12000    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12001    lt_cv_sys_global_symbol_to_c_name_address \
12002    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12003    old_postinstall_cmds old_postuninstall_cmds \
12004    compiler \
12005    CC \
12006    LD \
12007    lt_prog_compiler_wl \
12008    lt_prog_compiler_pic \
12009    lt_prog_compiler_static \
12010    lt_prog_compiler_no_builtin_flag \
12011    export_dynamic_flag_spec \
12012    thread_safe_flag_spec \
12013    whole_archive_flag_spec \
12014    enable_shared_with_static_runtimes \
12015    old_archive_cmds \
12016    old_archive_from_new_cmds \
12017    predep_objects \
12018    postdep_objects \
12019    predeps \
12020    postdeps \
12021    compiler_lib_search_path \
12022    archive_cmds \
12023    archive_expsym_cmds \
12024    postinstall_cmds \
12025    postuninstall_cmds \
12026    old_archive_from_expsyms_cmds \
12027    allow_undefined_flag \
12028    no_undefined_flag \
12029    export_symbols_cmds \
12030    hardcode_libdir_flag_spec \
12031    hardcode_libdir_flag_spec_ld \
12032    hardcode_libdir_separator \
12033    hardcode_automatic \
12034    module_cmds \
12035    module_expsym_cmds \
12036    lt_cv_prog_compiler_c_o \
12037    exclude_expsyms \
12038    include_expsyms; do
12039
12040    case $var in
12041    old_archive_cmds | \
12042    old_archive_from_new_cmds | \
12043    archive_cmds | \
12044    archive_expsym_cmds | \
12045    module_cmds | \
12046    module_expsym_cmds | \
12047    old_archive_from_expsyms_cmds | \
12048    export_symbols_cmds | \
12049    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12050    postinstall_cmds | postuninstall_cmds | \
12051    old_postinstall_cmds | old_postuninstall_cmds | \
12052    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12053      # Double-quote double-evaled strings.
12054      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12055      ;;
12056    *)
12057      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12058      ;;
12059    esac
12060  done
12061
12062  case $lt_echo in
12063  *'\$0 --fallback-echo"')
12064    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12065    ;;
12066  esac
12067
12068cfgfile="${ofile}T"
12069  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12070  $rm -f "$cfgfile"
12071  { echo "$as_me:$LINENO: creating $ofile" >&5
12072echo "$as_me: creating $ofile" >&6;}
12073
12074  cat <<__EOF__ >> "$cfgfile"
12075#! $SHELL
12076
12077# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12078# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12079# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12080#
12081# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12082# Free Software Foundation, Inc.
12083#
12084# This file is part of GNU Libtool:
12085# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12086#
12087# This program is free software; you can redistribute it and/or modify
12088# it under the terms of the GNU General Public License as published by
12089# the Free Software Foundation; either version 2 of the License, or
12090# (at your option) any later version.
12091#
12092# This program is distributed in the hope that it will be useful, but
12093# WITHOUT ANY WARRANTY; without even the implied warranty of
12094# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12095# General Public License for more details.
12096#
12097# You should have received a copy of the GNU General Public License
12098# along with this program; if not, write to the Free Software
12099# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12100#
12101# As a special exception to the GNU General Public License, if you
12102# distribute this file as part of a program that contains a
12103# configuration script generated by Autoconf, you may include it under
12104# the same distribution terms that you use for the rest of that program.
12105
12106# A sed program that does not truncate output.
12107SED=$lt_SED
12108
12109# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12110Xsed="$SED -e 1s/^X//"
12111
12112# The HP-UX ksh and POSIX shell print the target directory to stdout
12113# if CDPATH is set.
12114(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12115
12116# The names of the tagged configurations supported by this script.
12117available_tags=
12118
12119# ### BEGIN LIBTOOL CONFIG
12120
12121# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12122
12123# Shell to use when invoking shell scripts.
12124SHELL=$lt_SHELL
12125
12126# Whether or not to build shared libraries.
12127build_libtool_libs=$enable_shared
12128
12129# Whether or not to build static libraries.
12130build_old_libs=$enable_static
12131
12132# Whether or not to add -lc for building shared libraries.
12133build_libtool_need_lc=$archive_cmds_need_lc
12134
12135# Whether or not to disallow shared libs when runtime libs are static
12136allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12137
12138# Whether or not to optimize for fast installation.
12139fast_install=$enable_fast_install
12140
12141# The host system.
12142host_alias=$host_alias
12143host=$host
12144host_os=$host_os
12145
12146# The build system.
12147build_alias=$build_alias
12148build=$build
12149build_os=$build_os
12150
12151# An echo program that does not interpret backslashes.
12152echo=$lt_echo
12153
12154# The archiver.
12155AR=$lt_AR
12156AR_FLAGS=$lt_AR_FLAGS
12157
12158# A C compiler.
12159LTCC=$lt_LTCC
12160
12161# LTCC compiler flags.
12162LTCFLAGS=$lt_LTCFLAGS
12163
12164# A language-specific compiler.
12165CC=$lt_compiler
12166
12167# Is the compiler the GNU C compiler?
12168with_gcc=$GCC
12169
12170# An ERE matcher.
12171EGREP=$lt_EGREP
12172
12173# The linker used to build libraries.
12174LD=$lt_LD
12175
12176# Whether we need hard or soft links.
12177LN_S=$lt_LN_S
12178
12179# A BSD-compatible nm program.
12180NM=$lt_NM
12181
12182# A symbol stripping program
12183STRIP=$lt_STRIP
12184
12185# Used to examine libraries when file_magic_cmd begins "file"
12186MAGIC_CMD=$MAGIC_CMD
12187
12188# Used on cygwin: DLL creation program.
12189DLLTOOL="$DLLTOOL"
12190
12191# Used on cygwin: object dumper.
12192OBJDUMP="$OBJDUMP"
12193
12194# Used on cygwin: assembler.
12195AS="$AS"
12196
12197# The name of the directory that contains temporary libtool files.
12198objdir=$objdir
12199
12200# How to create reloadable object files.
12201reload_flag=$lt_reload_flag
12202reload_cmds=$lt_reload_cmds
12203
12204# How to pass a linker flag through the compiler.
12205wl=$lt_lt_prog_compiler_wl
12206
12207# Object file suffix (normally "o").
12208objext="$ac_objext"
12209
12210# Old archive suffix (normally "a").
12211libext="$libext"
12212
12213# Shared library suffix (normally ".so").
12214shrext_cmds='$shrext_cmds'
12215
12216# Executable file suffix (normally "").
12217exeext="$exeext"
12218
12219# Additional compiler flags for building library objects.
12220pic_flag=$lt_lt_prog_compiler_pic
12221pic_mode=$pic_mode
12222
12223# What is the maximum length of a command?
12224max_cmd_len=$lt_cv_sys_max_cmd_len
12225
12226# Does compiler simultaneously support -c and -o options?
12227compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12228
12229# Must we lock files when doing compilation?
12230need_locks=$lt_need_locks
12231
12232# Do we need the lib prefix for modules?
12233need_lib_prefix=$need_lib_prefix
12234
12235# Do we need a version for libraries?
12236need_version=$need_version
12237
12238# Whether dlopen is supported.
12239dlopen_support=$enable_dlopen
12240
12241# Whether dlopen of programs is supported.
12242dlopen_self=$enable_dlopen_self
12243
12244# Whether dlopen of statically linked programs is supported.
12245dlopen_self_static=$enable_dlopen_self_static
12246
12247# Compiler flag to prevent dynamic linking.
12248link_static_flag=$lt_lt_prog_compiler_static
12249
12250# Compiler flag to turn off builtin functions.
12251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12252
12253# Compiler flag to allow reflexive dlopens.
12254export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12255
12256# Compiler flag to generate shared objects directly from archives.
12257whole_archive_flag_spec=$lt_whole_archive_flag_spec
12258
12259# Compiler flag to generate thread-safe objects.
12260thread_safe_flag_spec=$lt_thread_safe_flag_spec
12261
12262# Library versioning type.
12263version_type=$version_type
12264
12265# Format of library name prefix.
12266libname_spec=$lt_libname_spec
12267
12268# List of archive names.  First name is the real one, the rest are links.
12269# The last name is the one that the linker finds with -lNAME.
12270library_names_spec=$lt_library_names_spec
12271
12272# The coded name of the library, if different from the real name.
12273soname_spec=$lt_soname_spec
12274
12275# Commands used to build and install an old-style archive.
12276RANLIB=$lt_RANLIB
12277old_archive_cmds=$lt_old_archive_cmds
12278old_postinstall_cmds=$lt_old_postinstall_cmds
12279old_postuninstall_cmds=$lt_old_postuninstall_cmds
12280
12281# Create an old-style archive from a shared archive.
12282old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12283
12284# Create a temporary old-style archive to link instead of a shared archive.
12285old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12286
12287# Commands used to build and install a shared archive.
12288archive_cmds=$lt_archive_cmds
12289archive_expsym_cmds=$lt_archive_expsym_cmds
12290postinstall_cmds=$lt_postinstall_cmds
12291postuninstall_cmds=$lt_postuninstall_cmds
12292
12293# Commands used to build a loadable module (assumed same as above if empty)
12294module_cmds=$lt_module_cmds
12295module_expsym_cmds=$lt_module_expsym_cmds
12296
12297# Commands to strip libraries.
12298old_striplib=$lt_old_striplib
12299striplib=$lt_striplib
12300
12301# Dependencies to place before the objects being linked to create a
12302# shared library.
12303predep_objects=$lt_predep_objects
12304
12305# Dependencies to place after the objects being linked to create a
12306# shared library.
12307postdep_objects=$lt_postdep_objects
12308
12309# Dependencies to place before the objects being linked to create a
12310# shared library.
12311predeps=$lt_predeps
12312
12313# Dependencies to place after the objects being linked to create a
12314# shared library.
12315postdeps=$lt_postdeps
12316
12317# The library search path used internally by the compiler when linking
12318# a shared library.
12319compiler_lib_search_path=$lt_compiler_lib_search_path
12320
12321# Method to check whether dependent libraries are shared objects.
12322deplibs_check_method=$lt_deplibs_check_method
12323
12324# Command to use when deplibs_check_method == file_magic.
12325file_magic_cmd=$lt_file_magic_cmd
12326
12327# Flag that allows shared libraries with undefined symbols to be built.
12328allow_undefined_flag=$lt_allow_undefined_flag
12329
12330# Flag that forces no undefined symbols.
12331no_undefined_flag=$lt_no_undefined_flag
12332
12333# Commands used to finish a libtool library installation in a directory.
12334finish_cmds=$lt_finish_cmds
12335
12336# Same as above, but a single script fragment to be evaled but not shown.
12337finish_eval=$lt_finish_eval
12338
12339# Take the output of nm and produce a listing of raw symbols and C names.
12340global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12341
12342# Transform the output of nm in a proper C declaration
12343global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12344
12345# Transform the output of nm in a C name address pair
12346global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12347
12348# This is the shared library runtime path variable.
12349runpath_var=$runpath_var
12350
12351# This is the shared library path variable.
12352shlibpath_var=$shlibpath_var
12353
12354# Is shlibpath searched before the hard-coded library search path?
12355shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12356
12357# How to hardcode a shared library path into an executable.
12358hardcode_action=$hardcode_action
12359
12360# Whether we should hardcode library paths into libraries.
12361hardcode_into_libs=$hardcode_into_libs
12362
12363# Flag to hardcode \$libdir into a binary during linking.
12364# This must work even if \$libdir does not exist.
12365hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12366
12367# If ld is used when linking, flag to hardcode \$libdir into
12368# a binary during linking. This must work even if \$libdir does
12369# not exist.
12370hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12371
12372# Whether we need a single -rpath flag with a separated argument.
12373hardcode_libdir_separator=$lt_hardcode_libdir_separator
12374
12375# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12376# resulting binary.
12377hardcode_direct=$hardcode_direct
12378
12379# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12380# resulting binary.
12381hardcode_minus_L=$hardcode_minus_L
12382
12383# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12384# the resulting binary.
12385hardcode_shlibpath_var=$hardcode_shlibpath_var
12386
12387# Set to yes if building a shared library automatically hardcodes DIR into the library
12388# and all subsequent libraries and executables linked against it.
12389hardcode_automatic=$hardcode_automatic
12390
12391# Variables whose values should be saved in libtool wrapper scripts and
12392# restored at relink time.
12393variables_saved_for_relink="$variables_saved_for_relink"
12394
12395# Whether libtool must link a program against all its dependency libraries.
12396link_all_deplibs=$link_all_deplibs
12397
12398# Compile-time system search path for libraries
12399sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12400
12401# Run-time system search path for libraries
12402sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12403
12404# Fix the shell variable \$srcfile for the compiler.
12405fix_srcfile_path="$fix_srcfile_path"
12406
12407# Set to yes if exported symbols are required.
12408always_export_symbols=$always_export_symbols
12409
12410# The commands to list exported symbols.
12411export_symbols_cmds=$lt_export_symbols_cmds
12412
12413# The commands to extract the exported symbol list from a shared archive.
12414extract_expsyms_cmds=$lt_extract_expsyms_cmds
12415
12416# Symbols that should not be listed in the preloaded symbols.
12417exclude_expsyms=$lt_exclude_expsyms
12418
12419# Symbols that must always be exported.
12420include_expsyms=$lt_include_expsyms
12421
12422# ### END LIBTOOL CONFIG
12423
12424__EOF__
12425
12426
12427  case $host_os in
12428  aix3*)
12429    cat <<\EOF >> "$cfgfile"
12430
12431# AIX sometimes has problems with the GCC collect2 program.  For some
12432# reason, if we set the COLLECT_NAMES environment variable, the problems
12433# vanish in a puff of smoke.
12434if test "X${COLLECT_NAMES+set}" != Xset; then
12435  COLLECT_NAMES=
12436  export COLLECT_NAMES
12437fi
12438EOF
12439    ;;
12440  esac
12441
12442  # We use sed instead of cat because bash on DJGPP gets confused if
12443  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12444  # text mode, it properly converts lines to CR/LF.  This bash problem
12445  # is reportedly fixed, but why not run on old versions too?
12446  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12447
12448  mv -f "$cfgfile" "$ofile" || \
12449    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12450  chmod +x "$ofile"
12451
12452else
12453  # If there is no Makefile yet, we rely on a make rule to execute
12454  # `config.status --recheck' to rerun these tests and create the
12455  # libtool script then.
12456  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12457  if test -f "$ltmain_in"; then
12458    test -f Makefile && make "$ltmain"
12459  fi
12460fi
12461
12462
12463ac_ext=c
12464ac_cpp='$CPP $CPPFLAGS'
12465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12467ac_compiler_gnu=$ac_cv_c_compiler_gnu
12468
12469CC="$lt_save_CC"
12470
12471
12472# Check whether --with-tags was given.
12473if test "${with_tags+set}" = set; then
12474  withval=$with_tags; tagnames="$withval"
12475fi
12476
12477
12478if test -f "$ltmain" && test -n "$tagnames"; then
12479  if test ! -f "${ofile}"; then
12480    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12481echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12482  fi
12483
12484  if test -z "$LTCC"; then
12485    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12486    if test -z "$LTCC"; then
12487      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12488echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12489    else
12490      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12491echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12492    fi
12493  fi
12494  if test -z "$LTCFLAGS"; then
12495    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12496  fi
12497
12498  # Extract list of available tagged configurations in $ofile.
12499  # Note that this assumes the entire list is on one line.
12500  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12501
12502  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12503  for tagname in $tagnames; do
12504    IFS="$lt_save_ifs"
12505    # Check whether tagname contains only valid characters
12506    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12507    "") ;;
12508    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12509echo "$as_me: error: invalid tag name: $tagname" >&2;}
12510   { (exit 1); exit 1; }; }
12511	;;
12512    esac
12513
12514    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12515    then
12516      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12517echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12518   { (exit 1); exit 1; }; }
12519    fi
12520
12521    # Update the list of available tags.
12522    if test -n "$tagname"; then
12523      echo appending configuration tag \"$tagname\" to $ofile
12524
12525      case $tagname in
12526      CXX)
12527	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12528	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12529	    (test "X$CXX" != "Xg++"))) ; then
12530	  ac_ext=cpp
12531ac_cpp='$CXXCPP $CPPFLAGS'
12532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12535
12536
12537
12538
12539archive_cmds_need_lc_CXX=no
12540allow_undefined_flag_CXX=
12541always_export_symbols_CXX=no
12542archive_expsym_cmds_CXX=
12543export_dynamic_flag_spec_CXX=
12544hardcode_direct_CXX=no
12545hardcode_libdir_flag_spec_CXX=
12546hardcode_libdir_flag_spec_ld_CXX=
12547hardcode_libdir_separator_CXX=
12548hardcode_minus_L_CXX=no
12549hardcode_shlibpath_var_CXX=unsupported
12550hardcode_automatic_CXX=no
12551module_cmds_CXX=
12552module_expsym_cmds_CXX=
12553link_all_deplibs_CXX=unknown
12554old_archive_cmds_CXX=$old_archive_cmds
12555no_undefined_flag_CXX=
12556whole_archive_flag_spec_CXX=
12557enable_shared_with_static_runtimes_CXX=no
12558
12559# Dependencies to place before and after the object being linked:
12560predep_objects_CXX=
12561postdep_objects_CXX=
12562predeps_CXX=
12563postdeps_CXX=
12564compiler_lib_search_path_CXX=
12565
12566# Source file extension for C++ test sources.
12567ac_ext=cpp
12568
12569# Object file extension for compiled C++ test sources.
12570objext=o
12571objext_CXX=$objext
12572
12573# Code to be used in simple compile tests
12574lt_simple_compile_test_code="int some_variable = 0;\n"
12575
12576# Code to be used in simple link tests
12577lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12578
12579# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12580
12581# If no C compiler was specified, use CC.
12582LTCC=${LTCC-"$CC"}
12583
12584# If no C compiler flags were specified, use CFLAGS.
12585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12586
12587# Allow CC to be a program name with arguments.
12588compiler=$CC
12589
12590
12591# save warnings/boilerplate of simple test code
12592ac_outfile=conftest.$ac_objext
12593printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12594eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12595_lt_compiler_boilerplate=`cat conftest.err`
12596$rm conftest*
12597
12598ac_outfile=conftest.$ac_objext
12599printf "$lt_simple_link_test_code" >conftest.$ac_ext
12600eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12601_lt_linker_boilerplate=`cat conftest.err`
12602$rm conftest*
12603
12604
12605# Allow CC to be a program name with arguments.
12606lt_save_CC=$CC
12607lt_save_LD=$LD
12608lt_save_GCC=$GCC
12609GCC=$GXX
12610lt_save_with_gnu_ld=$with_gnu_ld
12611lt_save_path_LD=$lt_cv_path_LD
12612if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12613  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12614else
12615  $as_unset lt_cv_prog_gnu_ld
12616fi
12617if test -n "${lt_cv_path_LDCXX+set}"; then
12618  lt_cv_path_LD=$lt_cv_path_LDCXX
12619else
12620  $as_unset lt_cv_path_LD
12621fi
12622test -z "${LDCXX+set}" || LD=$LDCXX
12623CC=${CXX-"c++"}
12624compiler=$CC
12625compiler_CXX=$CC
12626for cc_temp in $compiler""; do
12627  case $cc_temp in
12628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12630    \-*) ;;
12631    *) break;;
12632  esac
12633done
12634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12635
12636
12637# We don't want -fno-exception wen compiling C++ code, so set the
12638# no_builtin_flag separately
12639if test "$GXX" = yes; then
12640  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12641else
12642  lt_prog_compiler_no_builtin_flag_CXX=
12643fi
12644
12645if test "$GXX" = yes; then
12646  # Set up default GNU C++ configuration
12647
12648
12649# Check whether --with-gnu-ld was given.
12650if test "${with_gnu_ld+set}" = set; then
12651  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12652else
12653  with_gnu_ld=no
12654fi
12655
12656ac_prog=ld
12657if test "$GCC" = yes; then
12658  # Check if gcc -print-prog-name=ld gives a path.
12659  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12660echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12661  case $host in
12662  *-*-mingw*)
12663    # gcc leaves a trailing carriage return which upsets mingw
12664    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12665  *)
12666    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12667  esac
12668  case $ac_prog in
12669    # Accept absolute paths.
12670    [\\/]* | ?:[\\/]*)
12671      re_direlt='/[^/][^/]*/\.\./'
12672      # Canonicalize the pathname of ld
12673      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12674      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12675	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12676      done
12677      test -z "$LD" && LD="$ac_prog"
12678      ;;
12679  "")
12680    # If it fails, then pretend we aren't using GCC.
12681    ac_prog=ld
12682    ;;
12683  *)
12684    # If it is relative, then search for the first ld in PATH.
12685    with_gnu_ld=unknown
12686    ;;
12687  esac
12688elif test "$with_gnu_ld" = yes; then
12689  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12690echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12691else
12692  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12693echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12694fi
12695if test "${lt_cv_path_LD+set}" = set; then
12696  echo $ECHO_N "(cached) $ECHO_C" >&6
12697else
12698  if test -z "$LD"; then
12699  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12700  for ac_dir in $PATH; do
12701    IFS="$lt_save_ifs"
12702    test -z "$ac_dir" && ac_dir=.
12703    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12704      lt_cv_path_LD="$ac_dir/$ac_prog"
12705      # Check to see if the program is GNU ld.  I'd rather use --version,
12706      # but apparently some variants of GNU ld only accept -v.
12707      # Break only if it was the GNU/non-GNU ld that we prefer.
12708      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12709      *GNU* | *'with BFD'*)
12710	test "$with_gnu_ld" != no && break
12711	;;
12712      *)
12713	test "$with_gnu_ld" != yes && break
12714	;;
12715      esac
12716    fi
12717  done
12718  IFS="$lt_save_ifs"
12719else
12720  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12721fi
12722fi
12723
12724LD="$lt_cv_path_LD"
12725if test -n "$LD"; then
12726  { echo "$as_me:$LINENO: result: $LD" >&5
12727echo "${ECHO_T}$LD" >&6; }
12728else
12729  { echo "$as_me:$LINENO: result: no" >&5
12730echo "${ECHO_T}no" >&6; }
12731fi
12732test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12733echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12734   { (exit 1); exit 1; }; }
12735{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12736echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12737if test "${lt_cv_prog_gnu_ld+set}" = set; then
12738  echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12741case `$LD -v 2>&1 </dev/null` in
12742*GNU* | *'with BFD'*)
12743  lt_cv_prog_gnu_ld=yes
12744  ;;
12745*)
12746  lt_cv_prog_gnu_ld=no
12747  ;;
12748esac
12749fi
12750{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12751echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12752with_gnu_ld=$lt_cv_prog_gnu_ld
12753
12754
12755
12756  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12757  # archiving commands below assume that GNU ld is being used.
12758  if test "$with_gnu_ld" = yes; then
12759    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12760    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'
12761
12762    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12763    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12764
12765    # If archive_cmds runs LD, not CC, wlarc should be empty
12766    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12767    #     investigate it a little bit more. (MM)
12768    wlarc='${wl}'
12769
12770    # ancient GNU ld didn't support --whole-archive et. al.
12771    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12772	grep 'no-whole-archive' > /dev/null; then
12773      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12774    else
12775      whole_archive_flag_spec_CXX=
12776    fi
12777  else
12778    with_gnu_ld=no
12779    wlarc=
12780
12781    # A generic and very simple default shared library creation
12782    # command for GNU C++ for the case where it uses the native
12783    # linker, instead of GNU ld.  If possible, this setting should
12784    # overridden to take advantage of the native linker features on
12785    # the platform it is being used on.
12786    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12787  fi
12788
12789  # Commands to make compiler produce verbose output that lists
12790  # what "hidden" libraries, object files and flags are used when
12791  # linking a shared library.
12792  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12793
12794else
12795  GXX=no
12796  with_gnu_ld=no
12797  wlarc=
12798fi
12799
12800# PORTME: fill in a description of your system's C++ link characteristics
12801{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12803ld_shlibs_CXX=yes
12804case $host_os in
12805  aix3*)
12806    # FIXME: insert proper C++ library support
12807    ld_shlibs_CXX=no
12808    ;;
12809  aix4* | aix5*)
12810    if test "$host_cpu" = ia64; then
12811      # On IA64, the linker does run time linking by default, so we don't
12812      # have to do anything special.
12813      aix_use_runtimelinking=no
12814      exp_sym_flag='-Bexport'
12815      no_entry_flag=""
12816    else
12817      aix_use_runtimelinking=no
12818
12819      # Test if we are trying to use run time linking or normal
12820      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12821      # need to do runtime linking.
12822      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12823	for ld_flag in $LDFLAGS; do
12824	  case $ld_flag in
12825	  *-brtl*)
12826	    aix_use_runtimelinking=yes
12827	    break
12828	    ;;
12829	  esac
12830	done
12831	;;
12832      esac
12833
12834      exp_sym_flag='-bexport'
12835      no_entry_flag='-bnoentry'
12836    fi
12837
12838    # When large executables or shared objects are built, AIX ld can
12839    # have problems creating the table of contents.  If linking a library
12840    # or program results in "error TOC overflow" add -mminimal-toc to
12841    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12842    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12843
12844    archive_cmds_CXX=''
12845    hardcode_direct_CXX=yes
12846    hardcode_libdir_separator_CXX=':'
12847    link_all_deplibs_CXX=yes
12848
12849    if test "$GXX" = yes; then
12850      case $host_os in aix4.[012]|aix4.[012].*)
12851      # We only want to do this on AIX 4.2 and lower, the check
12852      # below for broken collect2 doesn't work under 4.3+
12853	collect2name=`${CC} -print-prog-name=collect2`
12854	if test -f "$collect2name" && \
12855	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12856	then
12857	  # We have reworked collect2
12858	  hardcode_direct_CXX=yes
12859	else
12860	  # We have old collect2
12861	  hardcode_direct_CXX=unsupported
12862	  # It fails to find uninstalled libraries when the uninstalled
12863	  # path is not listed in the libpath.  Setting hardcode_minus_L
12864	  # to unsupported forces relinking
12865	  hardcode_minus_L_CXX=yes
12866	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12867	  hardcode_libdir_separator_CXX=
12868	fi
12869	;;
12870      esac
12871      shared_flag='-shared'
12872      if test "$aix_use_runtimelinking" = yes; then
12873	shared_flag="$shared_flag "'${wl}-G'
12874      fi
12875    else
12876      # not using gcc
12877      if test "$host_cpu" = ia64; then
12878	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12879	# chokes on -Wl,-G. The following line is correct:
12880	shared_flag='-G'
12881      else
12882	if test "$aix_use_runtimelinking" = yes; then
12883	  shared_flag='${wl}-G'
12884	else
12885	  shared_flag='${wl}-bM:SRE'
12886	fi
12887      fi
12888    fi
12889
12890    # It seems that -bexpall does not export symbols beginning with
12891    # underscore (_), so it is better to generate a list of symbols to export.
12892    always_export_symbols_CXX=yes
12893    if test "$aix_use_runtimelinking" = yes; then
12894      # Warning - without using the other runtime loading flags (-brtl),
12895      # -berok will link without error, but may produce a broken library.
12896      allow_undefined_flag_CXX='-berok'
12897      # Determine the default libpath from the value encoded in an empty executable.
12898      cat >conftest.$ac_ext <<_ACEOF
12899/* confdefs.h.  */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h.  */
12904
12905int
12906main ()
12907{
12908
12909  ;
12910  return 0;
12911}
12912_ACEOF
12913rm -f conftest.$ac_objext conftest$ac_exeext
12914if { (ac_try="$ac_link"
12915case "(($ac_try" in
12916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917  *) ac_try_echo=$ac_try;;
12918esac
12919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920  (eval "$ac_link") 2>conftest.er1
12921  ac_status=$?
12922  grep -v '^ *+' conftest.er1 >conftest.err
12923  rm -f conftest.er1
12924  cat conftest.err >&5
12925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926  (exit $ac_status); } &&
12927	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12928  { (case "(($ac_try" in
12929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930  *) ac_try_echo=$ac_try;;
12931esac
12932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933  (eval "$ac_try") 2>&5
12934  ac_status=$?
12935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936  (exit $ac_status); }; } &&
12937	 { ac_try='test -s conftest$ac_exeext'
12938  { (case "(($ac_try" in
12939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940  *) ac_try_echo=$ac_try;;
12941esac
12942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943  (eval "$ac_try") 2>&5
12944  ac_status=$?
12945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946  (exit $ac_status); }; }; then
12947
12948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12949}'`
12950# Check for a 64-bit object if we didn't find anything.
12951if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12952}'`; fi
12953else
12954  echo "$as_me: failed program was:" >&5
12955sed 's/^/| /' conftest.$ac_ext >&5
12956
12957
12958fi
12959
12960rm -f core conftest.err conftest.$ac_objext \
12961      conftest$ac_exeext conftest.$ac_ext
12962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12963
12964      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12965
12966      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"
12967     else
12968      if test "$host_cpu" = ia64; then
12969	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12970	allow_undefined_flag_CXX="-z nodefs"
12971	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"
12972      else
12973	# Determine the default libpath from the value encoded in an empty executable.
12974	cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h.  */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h.  */
12980
12981int
12982main ()
12983{
12984
12985  ;
12986  return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext conftest$ac_exeext
12990if { (ac_try="$ac_link"
12991case "(($ac_try" in
12992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993  *) ac_try_echo=$ac_try;;
12994esac
12995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996  (eval "$ac_link") 2>conftest.er1
12997  ac_status=$?
12998  grep -v '^ *+' conftest.er1 >conftest.err
12999  rm -f conftest.er1
13000  cat conftest.err >&5
13001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002  (exit $ac_status); } &&
13003	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13004  { (case "(($ac_try" in
13005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006  *) ac_try_echo=$ac_try;;
13007esac
13008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009  (eval "$ac_try") 2>&5
13010  ac_status=$?
13011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012  (exit $ac_status); }; } &&
13013	 { ac_try='test -s conftest$ac_exeext'
13014  { (case "(($ac_try" in
13015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016  *) ac_try_echo=$ac_try;;
13017esac
13018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019  (eval "$ac_try") 2>&5
13020  ac_status=$?
13021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022  (exit $ac_status); }; }; then
13023
13024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13025}'`
13026# Check for a 64-bit object if we didn't find anything.
13027if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13028}'`; fi
13029else
13030  echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033
13034fi
13035
13036rm -f core conftest.err conftest.$ac_objext \
13037      conftest$ac_exeext conftest.$ac_ext
13038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13039
13040	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13041	# Warning - without using the other run time loading flags,
13042	# -berok will link without error, but may produce a broken library.
13043	no_undefined_flag_CXX=' ${wl}-bernotok'
13044	allow_undefined_flag_CXX=' ${wl}-berok'
13045	# Exported symbols can be pulled into shared objects from archives
13046	whole_archive_flag_spec_CXX='$convenience'
13047	archive_cmds_need_lc_CXX=yes
13048	# This is similar to how AIX traditionally builds its shared libraries.
13049	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'
13050      fi
13051    fi
13052    ;;
13053
13054  beos*)
13055    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13056      allow_undefined_flag_CXX=unsupported
13057      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13058      # support --undefined.  This deserves some investigation.  FIXME
13059      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13060    else
13061      ld_shlibs_CXX=no
13062    fi
13063    ;;
13064
13065  chorus*)
13066    case $cc_basename in
13067      *)
13068	# FIXME: insert proper C++ library support
13069	ld_shlibs_CXX=no
13070	;;
13071    esac
13072    ;;
13073
13074  cygwin* | mingw* | pw32*)
13075    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13076    # as there is no search path for DLLs.
13077    hardcode_libdir_flag_spec_CXX='-L$libdir'
13078    allow_undefined_flag_CXX=unsupported
13079    always_export_symbols_CXX=no
13080    enable_shared_with_static_runtimes_CXX=yes
13081
13082    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13083      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'
13084      # If the export-symbols file already is a .def file (1st line
13085      # is EXPORTS), use it as is; otherwise, prepend...
13086      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13087	cp $export_symbols $output_objdir/$soname.def;
13088      else
13089	echo EXPORTS > $output_objdir/$soname.def;
13090	cat $export_symbols >> $output_objdir/$soname.def;
13091      fi~
13092      $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'
13093    else
13094      ld_shlibs_CXX=no
13095    fi
13096  ;;
13097      darwin* | rhapsody*)
13098        case $host_os in
13099        rhapsody* | darwin1.[012])
13100         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13101         ;;
13102       *) # Darwin 1.3 on
13103         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13104           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13105         else
13106           case ${MACOSX_DEPLOYMENT_TARGET} in
13107             10.[012])
13108               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13109               ;;
13110             10.*)
13111               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13112               ;;
13113           esac
13114         fi
13115         ;;
13116        esac
13117      archive_cmds_need_lc_CXX=no
13118      hardcode_direct_CXX=no
13119      hardcode_automatic_CXX=yes
13120      hardcode_shlibpath_var_CXX=unsupported
13121      whole_archive_flag_spec_CXX=''
13122      link_all_deplibs_CXX=yes
13123
13124    if test "$GXX" = yes ; then
13125      lt_int_apple_cc_single_mod=no
13126      output_verbose_link_cmd='echo'
13127      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13128       lt_int_apple_cc_single_mod=yes
13129      fi
13130      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13131       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13132      else
13133          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'
13134        fi
13135        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13136        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13137          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13138            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}'
13139          else
13140            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}'
13141          fi
13142            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}'
13143      else
13144      case $cc_basename in
13145        xlc*)
13146         output_verbose_link_cmd='echo'
13147          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13148          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13149          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13150          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13151          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}'
13152          ;;
13153       *)
13154         ld_shlibs_CXX=no
13155          ;;
13156      esac
13157      fi
13158        ;;
13159
13160  dgux*)
13161    case $cc_basename in
13162      ec++*)
13163	# FIXME: insert proper C++ library support
13164	ld_shlibs_CXX=no
13165	;;
13166      ghcx*)
13167	# Green Hills C++ Compiler
13168	# FIXME: insert proper C++ library support
13169	ld_shlibs_CXX=no
13170	;;
13171      *)
13172	# FIXME: insert proper C++ library support
13173	ld_shlibs_CXX=no
13174	;;
13175    esac
13176    ;;
13177  freebsd[12]*)
13178    # C++ shared libraries reported to be fairly broken before switch to ELF
13179    ld_shlibs_CXX=no
13180    ;;
13181  freebsd-elf*)
13182    archive_cmds_need_lc_CXX=no
13183    ;;
13184  freebsd* | kfreebsd*-gnu | dragonfly*)
13185    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13186    # conventions
13187    ld_shlibs_CXX=yes
13188    ;;
13189  gnu*)
13190    ;;
13191  hpux9*)
13192    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13193    hardcode_libdir_separator_CXX=:
13194    export_dynamic_flag_spec_CXX='${wl}-E'
13195    hardcode_direct_CXX=yes
13196    hardcode_minus_L_CXX=yes # Not in the search PATH,
13197				# but as the default
13198				# location of the library.
13199
13200    case $cc_basename in
13201    CC*)
13202      # FIXME: insert proper C++ library support
13203      ld_shlibs_CXX=no
13204      ;;
13205    aCC*)
13206      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'
13207      # Commands to make compiler produce verbose output that lists
13208      # what "hidden" libraries, object files and flags are used when
13209      # linking a shared library.
13210      #
13211      # There doesn't appear to be a way to prevent this compiler from
13212      # explicitly linking system object files so we need to strip them
13213      # from the output so that they don't get included in the library
13214      # dependencies.
13215      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'
13216      ;;
13217    *)
13218      if test "$GXX" = yes; then
13219        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'
13220      else
13221        # FIXME: insert proper C++ library support
13222        ld_shlibs_CXX=no
13223      fi
13224      ;;
13225    esac
13226    ;;
13227  hpux10*|hpux11*)
13228    if test $with_gnu_ld = no; then
13229      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13230      hardcode_libdir_separator_CXX=:
13231
13232      case $host_cpu in
13233      hppa*64*|ia64*)
13234	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13235        ;;
13236      *)
13237	export_dynamic_flag_spec_CXX='${wl}-E'
13238        ;;
13239      esac
13240    fi
13241    case $host_cpu in
13242    hppa*64*|ia64*)
13243      hardcode_direct_CXX=no
13244      hardcode_shlibpath_var_CXX=no
13245      ;;
13246    *)
13247      hardcode_direct_CXX=yes
13248      hardcode_minus_L_CXX=yes # Not in the search PATH,
13249					      # but as the default
13250					      # location of the library.
13251      ;;
13252    esac
13253
13254    case $cc_basename in
13255      CC*)
13256	# FIXME: insert proper C++ library support
13257	ld_shlibs_CXX=no
13258	;;
13259      aCC*)
13260	case $host_cpu in
13261	hppa*64*)
13262	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263	  ;;
13264	ia64*)
13265	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13266	  ;;
13267	*)
13268	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269	  ;;
13270	esac
13271	# Commands to make compiler produce verbose output that lists
13272	# what "hidden" libraries, object files and flags are used when
13273	# linking a shared library.
13274	#
13275	# There doesn't appear to be a way to prevent this compiler from
13276	# explicitly linking system object files so we need to strip them
13277	# from the output so that they don't get included in the library
13278	# dependencies.
13279	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'
13280	;;
13281      *)
13282	if test "$GXX" = yes; then
13283	  if test $with_gnu_ld = no; then
13284	    case $host_cpu in
13285	    hppa*64*)
13286	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287	      ;;
13288	    ia64*)
13289	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290	      ;;
13291	    *)
13292	      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'
13293	      ;;
13294	    esac
13295	  fi
13296	else
13297	  # FIXME: insert proper C++ library support
13298	  ld_shlibs_CXX=no
13299	fi
13300	;;
13301    esac
13302    ;;
13303  interix3*)
13304    hardcode_direct_CXX=no
13305    hardcode_shlibpath_var_CXX=no
13306    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13307    export_dynamic_flag_spec_CXX='${wl}-E'
13308    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13309    # Instead, shared libraries are loaded at an image base (0x10000000 by
13310    # default) and relocated if they conflict, which is a slow very memory
13311    # consuming and fragmenting process.  To avoid this, we pick a random,
13312    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13313    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13314    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'
13315    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'
13316    ;;
13317  irix5* | irix6*)
13318    case $cc_basename in
13319      CC*)
13320	# SGI C++
13321	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'
13322
13323	# Archives containing C++ object files must be created using
13324	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13325	# necessary to make sure instantiated templates are included
13326	# in the archive.
13327	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13328	;;
13329      *)
13330	if test "$GXX" = yes; then
13331	  if test "$with_gnu_ld" = no; then
13332	    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'
13333	  else
13334	    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'
13335	  fi
13336	fi
13337	link_all_deplibs_CXX=yes
13338	;;
13339    esac
13340    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341    hardcode_libdir_separator_CXX=:
13342    ;;
13343  linux*)
13344    case $cc_basename in
13345      KCC*)
13346	# Kuck and Associates, Inc. (KAI) C++ Compiler
13347
13348	# KCC will only create a shared library if the output file
13349	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13350	# to its proper name (with version) after linking.
13351	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'
13352	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'
13353	# Commands to make compiler produce verbose output that lists
13354	# what "hidden" libraries, object files and flags are used when
13355	# linking a shared library.
13356	#
13357	# There doesn't appear to be a way to prevent this compiler from
13358	# explicitly linking system object files so we need to strip them
13359	# from the output so that they don't get included in the library
13360	# dependencies.
13361	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'
13362
13363	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13364	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13365
13366	# Archives containing C++ object files must be created using
13367	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13368	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13369	;;
13370      icpc*)
13371	# Intel C++
13372	with_gnu_ld=yes
13373	# version 8.0 and above of icpc choke on multiply defined symbols
13374	# if we add $predep_objects and $postdep_objects, however 7.1 and
13375	# earlier do not add the objects themselves.
13376	case `$CC -V 2>&1` in
13377	*"Version 7."*)
13378  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379  	  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'
13380	  ;;
13381	*)  # Version 8.0 or newer
13382	  tmp_idyn=
13383	  case $host_cpu in
13384	    ia64*) tmp_idyn=' -i_dynamic';;
13385	  esac
13386  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387	  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'
13388	  ;;
13389	esac
13390	archive_cmds_need_lc_CXX=no
13391	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13392	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13393	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13394	;;
13395      pgCC*)
13396        # Portland Group C++ compiler
13397	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13398  	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'
13399
13400	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13401	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13402	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'
13403        ;;
13404      cxx*)
13405	# Compaq C++
13406	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13407	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'
13408
13409	runpath_var=LD_RUN_PATH
13410	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13411	hardcode_libdir_separator_CXX=:
13412
13413	# Commands to make compiler produce verbose output that lists
13414	# what "hidden" libraries, object files and flags are used when
13415	# linking a shared library.
13416	#
13417	# There doesn't appear to be a way to prevent this compiler from
13418	# explicitly linking system object files so we need to strip them
13419	# from the output so that they don't get included in the library
13420	# dependencies.
13421	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'
13422	;;
13423      *)
13424	case `$CC -V 2>&1 | sed 5q` in
13425	*Sun\ C*)
13426	  # Sun C++ 5.9
13427	  no_undefined_flag_CXX=' -zdefs'
13428	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13429	  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'
13430	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13431	  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'
13432
13433	  # Not sure whether something based on
13434	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13435	  # would be better.
13436	  output_verbose_link_cmd='echo'
13437
13438	  # Archives containing C++ object files must be created using
13439	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13440	  # necessary to make sure instantiated templates are included
13441	  # in the archive.
13442	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13443	  ;;
13444	esac
13445	;;
13446    esac
13447    ;;
13448  lynxos*)
13449    # FIXME: insert proper C++ library support
13450    ld_shlibs_CXX=no
13451    ;;
13452  m88k*)
13453    # FIXME: insert proper C++ library support
13454    ld_shlibs_CXX=no
13455    ;;
13456  mvs*)
13457    case $cc_basename in
13458      cxx*)
13459	# FIXME: insert proper C++ library support
13460	ld_shlibs_CXX=no
13461	;;
13462      *)
13463	# FIXME: insert proper C++ library support
13464	ld_shlibs_CXX=no
13465	;;
13466    esac
13467    ;;
13468  netbsd*)
13469    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13470      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13471      wlarc=
13472      hardcode_libdir_flag_spec_CXX='-R$libdir'
13473      hardcode_direct_CXX=yes
13474      hardcode_shlibpath_var_CXX=no
13475    fi
13476    # Workaround some broken pre-1.5 toolchains
13477    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13478    ;;
13479  openbsd2*)
13480    # C++ shared libraries are fairly broken
13481    ld_shlibs_CXX=no
13482    ;;
13483  openbsd*)
13484    hardcode_direct_CXX=yes
13485    hardcode_shlibpath_var_CXX=no
13486    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13487    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13488    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13489      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13490      export_dynamic_flag_spec_CXX='${wl}-E'
13491      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13492    fi
13493    output_verbose_link_cmd='echo'
13494    ;;
13495  osf3*)
13496    case $cc_basename in
13497      KCC*)
13498	# Kuck and Associates, Inc. (KAI) C++ Compiler
13499
13500	# KCC will only create a shared library if the output file
13501	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13502	# to its proper name (with version) after linking.
13503	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'
13504
13505	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13506	hardcode_libdir_separator_CXX=:
13507
13508	# Archives containing C++ object files must be created using
13509	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13510	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13511
13512	;;
13513      RCC*)
13514	# Rational C++ 2.4.1
13515	# FIXME: insert proper C++ library support
13516	ld_shlibs_CXX=no
13517	;;
13518      cxx*)
13519	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13520	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'
13521
13522	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523	hardcode_libdir_separator_CXX=:
13524
13525	# Commands to make compiler produce verbose output that lists
13526	# what "hidden" libraries, object files and flags are used when
13527	# linking a shared library.
13528	#
13529	# There doesn't appear to be a way to prevent this compiler from
13530	# explicitly linking system object files so we need to strip them
13531	# from the output so that they don't get included in the library
13532	# dependencies.
13533	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'
13534	;;
13535      *)
13536	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13537	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13538	  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'
13539
13540	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13541	  hardcode_libdir_separator_CXX=:
13542
13543	  # Commands to make compiler produce verbose output that lists
13544	  # what "hidden" libraries, object files and flags are used when
13545	  # linking a shared library.
13546	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13547
13548	else
13549	  # FIXME: insert proper C++ library support
13550	  ld_shlibs_CXX=no
13551	fi
13552	;;
13553    esac
13554    ;;
13555  osf4* | osf5*)
13556    case $cc_basename in
13557      KCC*)
13558	# Kuck and Associates, Inc. (KAI) C++ Compiler
13559
13560	# KCC will only create a shared library if the output file
13561	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13562	# to its proper name (with version) after linking.
13563	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'
13564
13565	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13566	hardcode_libdir_separator_CXX=:
13567
13568	# Archives containing C++ object files must be created using
13569	# the KAI C++ compiler.
13570	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13571	;;
13572      RCC*)
13573	# Rational C++ 2.4.1
13574	# FIXME: insert proper C++ library support
13575	ld_shlibs_CXX=no
13576	;;
13577      cxx*)
13578	allow_undefined_flag_CXX=' -expect_unresolved \*'
13579	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'
13580	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13581	  echo "-hidden">> $lib.exp~
13582	  $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~
13583	  $rm $lib.exp'
13584
13585	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13586	hardcode_libdir_separator_CXX=:
13587
13588	# Commands to make compiler produce verbose output that lists
13589	# what "hidden" libraries, object files and flags are used when
13590	# linking a shared library.
13591	#
13592	# There doesn't appear to be a way to prevent this compiler from
13593	# explicitly linking system object files so we need to strip them
13594	# from the output so that they don't get included in the library
13595	# dependencies.
13596	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'
13597	;;
13598      *)
13599	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13600	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13601	 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'
13602
13603	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13604	  hardcode_libdir_separator_CXX=:
13605
13606	  # Commands to make compiler produce verbose output that lists
13607	  # what "hidden" libraries, object files and flags are used when
13608	  # linking a shared library.
13609	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13610
13611	else
13612	  # FIXME: insert proper C++ library support
13613	  ld_shlibs_CXX=no
13614	fi
13615	;;
13616    esac
13617    ;;
13618  psos*)
13619    # FIXME: insert proper C++ library support
13620    ld_shlibs_CXX=no
13621    ;;
13622  sunos4*)
13623    case $cc_basename in
13624      CC*)
13625	# Sun C++ 4.x
13626	# FIXME: insert proper C++ library support
13627	ld_shlibs_CXX=no
13628	;;
13629      lcc*)
13630	# Lucid
13631	# FIXME: insert proper C++ library support
13632	ld_shlibs_CXX=no
13633	;;
13634      *)
13635	# FIXME: insert proper C++ library support
13636	ld_shlibs_CXX=no
13637	;;
13638    esac
13639    ;;
13640  solaris*)
13641    case $cc_basename in
13642      CC*)
13643	# Sun C++ 4.2, 5.x and Centerline C++
13644        archive_cmds_need_lc_CXX=yes
13645	no_undefined_flag_CXX=' -zdefs'
13646	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13648	$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'
13649
13650	hardcode_libdir_flag_spec_CXX='-R$libdir'
13651	hardcode_shlibpath_var_CXX=no
13652	case $host_os in
13653	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13654	  *)
13655	    # The C++ compiler is used as linker so we must use $wl
13656	    # flag to pass the commands to the underlying system
13657	    # linker. We must also pass each convience library through
13658	    # to the system linker between allextract/defaultextract.
13659	    # The C++ compiler will combine linker options so we
13660	    # cannot just pass the convience library names through
13661	    # without $wl.
13662	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13663	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13664	    ;;
13665	esac
13666	link_all_deplibs_CXX=yes
13667
13668	output_verbose_link_cmd='echo'
13669
13670	# Archives containing C++ object files must be created using
13671	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13672	# necessary to make sure instantiated templates are included
13673	# in the archive.
13674	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13675	;;
13676      gcx*)
13677	# Green Hills C++ Compiler
13678	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13679
13680	# The C++ compiler must be used to create the archive.
13681	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13682	;;
13683      *)
13684	# GNU C++ compiler with Solaris linker
13685	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13686	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13687	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13688	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13689	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13690		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13691
13692	    # Commands to make compiler produce verbose output that lists
13693	    # what "hidden" libraries, object files and flags are used when
13694	    # linking a shared library.
13695	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13696	  else
13697	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13698	    # platform.
13699	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13700	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13701		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13702
13703	    # Commands to make compiler produce verbose output that lists
13704	    # what "hidden" libraries, object files and flags are used when
13705	    # linking a shared library.
13706	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13707	  fi
13708
13709	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13710	fi
13711	;;
13712    esac
13713    ;;
13714  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13715    no_undefined_flag_CXX='${wl}-z,text'
13716    archive_cmds_need_lc_CXX=no
13717    hardcode_shlibpath_var_CXX=no
13718    runpath_var='LD_RUN_PATH'
13719
13720    case $cc_basename in
13721      CC*)
13722	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13723	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13724	;;
13725      *)
13726	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13727	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13728	;;
13729    esac
13730    ;;
13731  sysv5* | sco3.2v5* | sco5v6*)
13732    # Note: We can NOT use -z defs as we might desire, because we do not
13733    # link with -lc, and that would cause any symbols used from libc to
13734    # always be unresolved, which means just about no library would
13735    # ever link correctly.  If we're not using GNU ld we use -z text
13736    # though, which does catch some bad symbols but isn't as heavy-handed
13737    # as -z defs.
13738    # For security reasons, it is highly recommended that you always
13739    # use absolute paths for naming shared libraries, and exclude the
13740    # DT_RUNPATH tag from executables and libraries.  But doing so
13741    # requires that you compile everything twice, which is a pain.
13742    # So that behaviour is only enabled if SCOABSPATH is set to a
13743    # non-empty value in the environment.  Most likely only useful for
13744    # creating official distributions of packages.
13745    # This is a hack until libtool officially supports absolute path
13746    # names for shared libraries.
13747    no_undefined_flag_CXX='${wl}-z,text'
13748    allow_undefined_flag_CXX='${wl}-z,nodefs'
13749    archive_cmds_need_lc_CXX=no
13750    hardcode_shlibpath_var_CXX=no
13751    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13752    hardcode_libdir_separator_CXX=':'
13753    link_all_deplibs_CXX=yes
13754    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13755    runpath_var='LD_RUN_PATH'
13756
13757    case $cc_basename in
13758      CC*)
13759	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13760	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13761	;;
13762      *)
13763	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13764	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13765	;;
13766    esac
13767    ;;
13768  tandem*)
13769    case $cc_basename in
13770      NCC*)
13771	# NonStop-UX NCC 3.20
13772	# FIXME: insert proper C++ library support
13773	ld_shlibs_CXX=no
13774	;;
13775      *)
13776	# FIXME: insert proper C++ library support
13777	ld_shlibs_CXX=no
13778	;;
13779    esac
13780    ;;
13781  vxworks*)
13782    # FIXME: insert proper C++ library support
13783    ld_shlibs_CXX=no
13784    ;;
13785  *)
13786    # FIXME: insert proper C++ library support
13787    ld_shlibs_CXX=no
13788    ;;
13789esac
13790{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13791echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13792test "$ld_shlibs_CXX" = no && can_build_shared=no
13793
13794GCC_CXX="$GXX"
13795LD_CXX="$LD"
13796
13797## CAVEAT EMPTOR:
13798## There is no encapsulation within the following macros, do not change
13799## the running order or otherwise move them around unless you know exactly
13800## what you are doing...
13801
13802cat > conftest.$ac_ext <<EOF
13803class Foo
13804{
13805public:
13806  Foo (void) { a = 0; }
13807private:
13808  int a;
13809};
13810EOF
13811
13812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813  (eval $ac_compile) 2>&5
13814  ac_status=$?
13815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816  (exit $ac_status); }; then
13817  # Parse the compiler output and extract the necessary
13818  # objects, libraries and library flags.
13819
13820  # Sentinel used to keep track of whether or not we are before
13821  # the conftest object file.
13822  pre_test_object_deps_done=no
13823
13824  # The `*' in the case matches for architectures that use `case' in
13825  # $output_verbose_cmd can trigger glob expansion during the loop
13826  # eval without this substitution.
13827  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13828
13829  for p in `eval $output_verbose_link_cmd`; do
13830    case $p in
13831
13832    -L* | -R* | -l*)
13833       # Some compilers place space between "-{L,R}" and the path.
13834       # Remove the space.
13835       if test $p = "-L" \
13836	  || test $p = "-R"; then
13837	 prev=$p
13838	 continue
13839       else
13840	 prev=
13841       fi
13842
13843       if test "$pre_test_object_deps_done" = no; then
13844	 case $p in
13845	 -L* | -R*)
13846	   # Internal compiler library paths should come after those
13847	   # provided the user.  The postdeps already come after the
13848	   # user supplied libs so there is no need to process them.
13849	   if test -z "$compiler_lib_search_path_CXX"; then
13850	     compiler_lib_search_path_CXX="${prev}${p}"
13851	   else
13852	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13853	   fi
13854	   ;;
13855	 # The "-l" case would never come before the object being
13856	 # linked, so don't bother handling this case.
13857	 esac
13858       else
13859	 if test -z "$postdeps_CXX"; then
13860	   postdeps_CXX="${prev}${p}"
13861	 else
13862	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13863	 fi
13864       fi
13865       ;;
13866
13867    *.$objext)
13868       # This assumes that the test object file only shows up
13869       # once in the compiler output.
13870       if test "$p" = "conftest.$objext"; then
13871	 pre_test_object_deps_done=yes
13872	 continue
13873       fi
13874
13875       if test "$pre_test_object_deps_done" = no; then
13876	 if test -z "$predep_objects_CXX"; then
13877	   predep_objects_CXX="$p"
13878	 else
13879	   predep_objects_CXX="$predep_objects_CXX $p"
13880	 fi
13881       else
13882	 if test -z "$postdep_objects_CXX"; then
13883	   postdep_objects_CXX="$p"
13884	 else
13885	   postdep_objects_CXX="$postdep_objects_CXX $p"
13886	 fi
13887       fi
13888       ;;
13889
13890    *) ;; # Ignore the rest.
13891
13892    esac
13893  done
13894
13895  # Clean up.
13896  rm -f a.out a.exe
13897else
13898  echo "libtool.m4: error: problem compiling CXX test program"
13899fi
13900
13901$rm -f confest.$objext
13902
13903# PORTME: override above test on systems where it is broken
13904case $host_os in
13905interix3*)
13906  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13907  # hack all around it, let's just trust "g++" to DTRT.
13908  predep_objects_CXX=
13909  postdep_objects_CXX=
13910  postdeps_CXX=
13911  ;;
13912
13913linux*)
13914  case `$CC -V 2>&1 | sed 5q` in
13915  *Sun\ C*)
13916    # Sun C++ 5.9
13917    postdeps_CXX='-lCstd -lCrun'
13918    ;;
13919  esac
13920  ;;
13921
13922solaris*)
13923  case $cc_basename in
13924  CC*)
13925    # Adding this requires a known-good setup of shared libraries for
13926    # Sun compiler versions before 5.6, else PIC objects from an old
13927    # archive will be linked into the output, leading to subtle bugs.
13928    postdeps_CXX='-lCstd -lCrun'
13929    ;;
13930  esac
13931  ;;
13932esac
13933
13934
13935case " $postdeps_CXX " in
13936*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13937esac
13938
13939lt_prog_compiler_wl_CXX=
13940lt_prog_compiler_pic_CXX=
13941lt_prog_compiler_static_CXX=
13942
13943{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13944echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13945
13946  # C++ specific cases for pic, static, wl, etc.
13947  if test "$GXX" = yes; then
13948    lt_prog_compiler_wl_CXX='-Wl,'
13949    lt_prog_compiler_static_CXX='-static'
13950
13951    case $host_os in
13952    aix*)
13953      # All AIX code is PIC.
13954      if test "$host_cpu" = ia64; then
13955	# AIX 5 now supports IA64 processor
13956	lt_prog_compiler_static_CXX='-Bstatic'
13957      fi
13958      ;;
13959    amigaos*)
13960      # FIXME: we need at least 68020 code to build shared libraries, but
13961      # adding the `-m68020' flag to GCC prevents building anything better,
13962      # like `-m68040'.
13963      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13964      ;;
13965    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13966      # PIC is the default for these OSes.
13967      ;;
13968    mingw* | cygwin* | os2* | pw32*)
13969      # This hack is so that the source file can tell whether it is being
13970      # built for inclusion in a dll (and should export symbols for example).
13971      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13972      # (--disable-auto-import) libraries
13973      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13974      ;;
13975    darwin* | rhapsody*)
13976      # PIC is the default on this platform
13977      # Common symbols not allowed in MH_DYLIB files
13978      lt_prog_compiler_pic_CXX='-fno-common'
13979      ;;
13980    *djgpp*)
13981      # DJGPP does not support shared libraries at all
13982      lt_prog_compiler_pic_CXX=
13983      ;;
13984    interix3*)
13985      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13986      # Instead, we relocate shared libraries at runtime.
13987      ;;
13988    sysv4*MP*)
13989      if test -d /usr/nec; then
13990	lt_prog_compiler_pic_CXX=-Kconform_pic
13991      fi
13992      ;;
13993    hpux*)
13994      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13995      # not for PA HP-UX.
13996      case $host_cpu in
13997      hppa*64*|ia64*)
13998	;;
13999      *)
14000	lt_prog_compiler_pic_CXX='-fPIC'
14001	;;
14002      esac
14003      ;;
14004    *)
14005      lt_prog_compiler_pic_CXX='-fPIC'
14006      ;;
14007    esac
14008  else
14009    case $host_os in
14010      aix4* | aix5*)
14011	# All AIX code is PIC.
14012	if test "$host_cpu" = ia64; then
14013	  # AIX 5 now supports IA64 processor
14014	  lt_prog_compiler_static_CXX='-Bstatic'
14015	else
14016	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14017	fi
14018	;;
14019      chorus*)
14020	case $cc_basename in
14021	cxch68*)
14022	  # Green Hills C++ Compiler
14023	  # _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"
14024	  ;;
14025	esac
14026	;;
14027       darwin*)
14028         # PIC is the default on this platform
14029         # Common symbols not allowed in MH_DYLIB files
14030         case $cc_basename in
14031           xlc*)
14032           lt_prog_compiler_pic_CXX='-qnocommon'
14033           lt_prog_compiler_wl_CXX='-Wl,'
14034           ;;
14035         esac
14036       ;;
14037      dgux*)
14038	case $cc_basename in
14039	  ec++*)
14040	    lt_prog_compiler_pic_CXX='-KPIC'
14041	    ;;
14042	  ghcx*)
14043	    # Green Hills C++ Compiler
14044	    lt_prog_compiler_pic_CXX='-pic'
14045	    ;;
14046	  *)
14047	    ;;
14048	esac
14049	;;
14050      freebsd* | kfreebsd*-gnu | dragonfly*)
14051	# FreeBSD uses GNU C++
14052	;;
14053      hpux9* | hpux10* | hpux11*)
14054	case $cc_basename in
14055	  CC*)
14056	    lt_prog_compiler_wl_CXX='-Wl,'
14057	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14058	    if test "$host_cpu" != ia64; then
14059	      lt_prog_compiler_pic_CXX='+Z'
14060	    fi
14061	    ;;
14062	  aCC*)
14063	    lt_prog_compiler_wl_CXX='-Wl,'
14064	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14065	    case $host_cpu in
14066	    hppa*64*|ia64*)
14067	      # +Z the default
14068	      ;;
14069	    *)
14070	      lt_prog_compiler_pic_CXX='+Z'
14071	      ;;
14072	    esac
14073	    ;;
14074	  *)
14075	    ;;
14076	esac
14077	;;
14078      interix*)
14079	# This is c89, which is MS Visual C++ (no shared libs)
14080	# Anyone wants to do a port?
14081	;;
14082      irix5* | irix6* | nonstopux*)
14083	case $cc_basename in
14084	  CC*)
14085	    lt_prog_compiler_wl_CXX='-Wl,'
14086	    lt_prog_compiler_static_CXX='-non_shared'
14087	    # CC pic flag -KPIC is the default.
14088	    ;;
14089	  *)
14090	    ;;
14091	esac
14092	;;
14093      linux*)
14094	case $cc_basename in
14095	  KCC*)
14096	    # KAI C++ Compiler
14097	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14098	    lt_prog_compiler_pic_CXX='-fPIC'
14099	    ;;
14100	  icpc* | ecpc*)
14101	    # Intel C++
14102	    lt_prog_compiler_wl_CXX='-Wl,'
14103	    lt_prog_compiler_pic_CXX='-KPIC'
14104	    lt_prog_compiler_static_CXX='-static'
14105	    ;;
14106	  pgCC*)
14107	    # Portland Group C++ compiler.
14108	    lt_prog_compiler_wl_CXX='-Wl,'
14109	    lt_prog_compiler_pic_CXX='-fpic'
14110	    lt_prog_compiler_static_CXX='-Bstatic'
14111	    ;;
14112	  cxx*)
14113	    # Compaq C++
14114	    # Make sure the PIC flag is empty.  It appears that all Alpha
14115	    # Linux and Compaq Tru64 Unix objects are PIC.
14116	    lt_prog_compiler_pic_CXX=
14117	    lt_prog_compiler_static_CXX='-non_shared'
14118	    ;;
14119	  *)
14120	    case `$CC -V 2>&1 | sed 5q` in
14121	    *Sun\ C*)
14122	      # Sun C++ 5.9
14123	      lt_prog_compiler_pic_CXX='-KPIC'
14124	      lt_prog_compiler_static_CXX='-Bstatic'
14125	      lt_prog_compiler_wl_CXX='-Qoption ld '
14126	      ;;
14127	    esac
14128	    ;;
14129	esac
14130	;;
14131      lynxos*)
14132	;;
14133      m88k*)
14134	;;
14135      mvs*)
14136	case $cc_basename in
14137	  cxx*)
14138	    lt_prog_compiler_pic_CXX='-W c,exportall'
14139	    ;;
14140	  *)
14141	    ;;
14142	esac
14143	;;
14144      netbsd*)
14145	;;
14146      osf3* | osf4* | osf5*)
14147	case $cc_basename in
14148	  KCC*)
14149	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14150	    ;;
14151	  RCC*)
14152	    # Rational C++ 2.4.1
14153	    lt_prog_compiler_pic_CXX='-pic'
14154	    ;;
14155	  cxx*)
14156	    # Digital/Compaq C++
14157	    lt_prog_compiler_wl_CXX='-Wl,'
14158	    # Make sure the PIC flag is empty.  It appears that all Alpha
14159	    # Linux and Compaq Tru64 Unix objects are PIC.
14160	    lt_prog_compiler_pic_CXX=
14161	    lt_prog_compiler_static_CXX='-non_shared'
14162	    ;;
14163	  *)
14164	    ;;
14165	esac
14166	;;
14167      psos*)
14168	;;
14169      solaris*)
14170	case $cc_basename in
14171	  CC*)
14172	    # Sun C++ 4.2, 5.x and Centerline C++
14173	    lt_prog_compiler_pic_CXX='-KPIC'
14174	    lt_prog_compiler_static_CXX='-Bstatic'
14175	    lt_prog_compiler_wl_CXX='-Qoption ld '
14176	    ;;
14177	  gcx*)
14178	    # Green Hills C++ Compiler
14179	    lt_prog_compiler_pic_CXX='-PIC'
14180	    ;;
14181	  *)
14182	    ;;
14183	esac
14184	;;
14185      sunos4*)
14186	case $cc_basename in
14187	  CC*)
14188	    # Sun C++ 4.x
14189	    lt_prog_compiler_pic_CXX='-pic'
14190	    lt_prog_compiler_static_CXX='-Bstatic'
14191	    ;;
14192	  lcc*)
14193	    # Lucid
14194	    lt_prog_compiler_pic_CXX='-pic'
14195	    ;;
14196	  *)
14197	    ;;
14198	esac
14199	;;
14200      tandem*)
14201	case $cc_basename in
14202	  NCC*)
14203	    # NonStop-UX NCC 3.20
14204	    lt_prog_compiler_pic_CXX='-KPIC'
14205	    ;;
14206	  *)
14207	    ;;
14208	esac
14209	;;
14210      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14211	case $cc_basename in
14212	  CC*)
14213	    lt_prog_compiler_wl_CXX='-Wl,'
14214	    lt_prog_compiler_pic_CXX='-KPIC'
14215	    lt_prog_compiler_static_CXX='-Bstatic'
14216	    ;;
14217	esac
14218	;;
14219      vxworks*)
14220	;;
14221      *)
14222	lt_prog_compiler_can_build_shared_CXX=no
14223	;;
14224    esac
14225  fi
14226
14227{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14228echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14229
14230#
14231# Check to make sure the PIC flag actually works.
14232#
14233if test -n "$lt_prog_compiler_pic_CXX"; then
14234
14235{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14236echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14237if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14238  echo $ECHO_N "(cached) $ECHO_C" >&6
14239else
14240  lt_prog_compiler_pic_works_CXX=no
14241  ac_outfile=conftest.$ac_objext
14242   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14243   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14244   # Insert the option either (1) after the last *FLAGS variable, or
14245   # (2) before a word containing "conftest.", or (3) at the end.
14246   # Note that $ac_compile itself does not contain backslashes and begins
14247   # with a dollar sign (not a hyphen), so the echo should work correctly.
14248   # The option is referenced via a variable to avoid confusing sed.
14249   lt_compile=`echo "$ac_compile" | $SED \
14250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14252   -e 's:$: $lt_compiler_flag:'`
14253   (eval echo "\"\$as_me:14253: $lt_compile\"" >&5)
14254   (eval "$lt_compile" 2>conftest.err)
14255   ac_status=$?
14256   cat conftest.err >&5
14257   echo "$as_me:14257: \$? = $ac_status" >&5
14258   if (exit $ac_status) && test -s "$ac_outfile"; then
14259     # The compiler can only warn and ignore the option if not recognized
14260     # So say no if there are warnings other than the usual output.
14261     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14262     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14263     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14264       lt_prog_compiler_pic_works_CXX=yes
14265     fi
14266   fi
14267   $rm conftest*
14268
14269fi
14270{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14271echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14272
14273if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14274    case $lt_prog_compiler_pic_CXX in
14275     "" | " "*) ;;
14276     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14277     esac
14278else
14279    lt_prog_compiler_pic_CXX=
14280     lt_prog_compiler_can_build_shared_CXX=no
14281fi
14282
14283fi
14284case $host_os in
14285  # For platforms which do not support PIC, -DPIC is meaningless:
14286  *djgpp*)
14287    lt_prog_compiler_pic_CXX=
14288    ;;
14289  *)
14290    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14291    ;;
14292esac
14293
14294#
14295# Check to make sure the static flag actually works.
14296#
14297wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14298{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14299echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14300if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14301  echo $ECHO_N "(cached) $ECHO_C" >&6
14302else
14303  lt_prog_compiler_static_works_CXX=no
14304   save_LDFLAGS="$LDFLAGS"
14305   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14306   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14307   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14308     # The linker can only warn and ignore the option if not recognized
14309     # So say no if there are warnings
14310     if test -s conftest.err; then
14311       # Append any errors to the config.log.
14312       cat conftest.err 1>&5
14313       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14314       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14315       if diff conftest.exp conftest.er2 >/dev/null; then
14316         lt_prog_compiler_static_works_CXX=yes
14317       fi
14318     else
14319       lt_prog_compiler_static_works_CXX=yes
14320     fi
14321   fi
14322   $rm conftest*
14323   LDFLAGS="$save_LDFLAGS"
14324
14325fi
14326{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14327echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14328
14329if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14330    :
14331else
14332    lt_prog_compiler_static_CXX=
14333fi
14334
14335
14336{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14338if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14339  echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341  lt_cv_prog_compiler_c_o_CXX=no
14342   $rm -r conftest 2>/dev/null
14343   mkdir conftest
14344   cd conftest
14345   mkdir out
14346   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14347
14348   lt_compiler_flag="-o out/conftest2.$ac_objext"
14349   # Insert the option either (1) after the last *FLAGS variable, or
14350   # (2) before a word containing "conftest.", or (3) at the end.
14351   # Note that $ac_compile itself does not contain backslashes and begins
14352   # with a dollar sign (not a hyphen), so the echo should work correctly.
14353   lt_compile=`echo "$ac_compile" | $SED \
14354   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14355   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14356   -e 's:$: $lt_compiler_flag:'`
14357   (eval echo "\"\$as_me:14357: $lt_compile\"" >&5)
14358   (eval "$lt_compile" 2>out/conftest.err)
14359   ac_status=$?
14360   cat out/conftest.err >&5
14361   echo "$as_me:14361: \$? = $ac_status" >&5
14362   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14363   then
14364     # The compiler can only warn and ignore the option if not recognized
14365     # So say no if there are warnings
14366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14367     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14368     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14369       lt_cv_prog_compiler_c_o_CXX=yes
14370     fi
14371   fi
14372   chmod u+w . 2>&5
14373   $rm conftest*
14374   # SGI C++ compiler will create directory out/ii_files/ for
14375   # template instantiation
14376   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14377   $rm out/* && rmdir out
14378   cd ..
14379   rmdir conftest
14380   $rm conftest*
14381
14382fi
14383{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14384echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14385
14386
14387hard_links="nottested"
14388if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14389  # do not overwrite the value of need_locks provided by the user
14390  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14391echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14392  hard_links=yes
14393  $rm conftest*
14394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14395  touch conftest.a
14396  ln conftest.a conftest.b 2>&5 || hard_links=no
14397  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14398  { echo "$as_me:$LINENO: result: $hard_links" >&5
14399echo "${ECHO_T}$hard_links" >&6; }
14400  if test "$hard_links" = no; then
14401    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14402echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14403    need_locks=warn
14404  fi
14405else
14406  need_locks=no
14407fi
14408
14409{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14410echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14411
14412  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14413  case $host_os in
14414  aix4* | aix5*)
14415    # If we're using GNU nm, then we don't want the "-C" option.
14416    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14417    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14418      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'
14419    else
14420      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'
14421    fi
14422    ;;
14423  pw32*)
14424    export_symbols_cmds_CXX="$ltdll_cmds"
14425  ;;
14426  cygwin* | mingw*)
14427    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'
14428  ;;
14429  *)
14430    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14431  ;;
14432  esac
14433
14434{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14435echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14436test "$ld_shlibs_CXX" = no && can_build_shared=no
14437
14438#
14439# Do we need to explicitly link libc?
14440#
14441case "x$archive_cmds_need_lc_CXX" in
14442x|xyes)
14443  # Assume -lc should be added
14444  archive_cmds_need_lc_CXX=yes
14445
14446  if test "$enable_shared" = yes && test "$GCC" = yes; then
14447    case $archive_cmds_CXX in
14448    *'~'*)
14449      # FIXME: we may have to deal with multi-command sequences.
14450      ;;
14451    '$CC '*)
14452      # Test whether the compiler implicitly links with -lc since on some
14453      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14454      # to ld, don't add -lc before -lgcc.
14455      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14456echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14457      $rm conftest*
14458      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14459
14460      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461  (eval $ac_compile) 2>&5
14462  ac_status=$?
14463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464  (exit $ac_status); } 2>conftest.err; then
14465        soname=conftest
14466        lib=conftest
14467        libobjs=conftest.$ac_objext
14468        deplibs=
14469        wl=$lt_prog_compiler_wl_CXX
14470	pic_flag=$lt_prog_compiler_pic_CXX
14471        compiler_flags=-v
14472        linker_flags=-v
14473        verstring=
14474        output_objdir=.
14475        libname=conftest
14476        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14477        allow_undefined_flag_CXX=
14478        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14479  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14480  ac_status=$?
14481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482  (exit $ac_status); }
14483        then
14484	  archive_cmds_need_lc_CXX=no
14485        else
14486	  archive_cmds_need_lc_CXX=yes
14487        fi
14488        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14489      else
14490        cat conftest.err 1>&5
14491      fi
14492      $rm conftest*
14493      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14494echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14495      ;;
14496    esac
14497  fi
14498  ;;
14499esac
14500
14501{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14503library_names_spec=
14504libname_spec='lib$name'
14505soname_spec=
14506shrext_cmds=".so"
14507postinstall_cmds=
14508postuninstall_cmds=
14509finish_cmds=
14510finish_eval=
14511shlibpath_var=
14512shlibpath_overrides_runpath=unknown
14513version_type=none
14514dynamic_linker="$host_os ld.so"
14515sys_lib_dlsearch_path_spec="/lib /usr/lib"
14516if test "$GCC" = yes; then
14517  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14518  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14519    # if the path contains ";" then we assume it to be the separator
14520    # otherwise default to the standard path separator (i.e. ":") - it is
14521    # assumed that no part of a normal pathname contains ";" but that should
14522    # okay in the real world where ";" in dirpaths is itself problematic.
14523    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14524  else
14525    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14526  fi
14527else
14528  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14529fi
14530need_lib_prefix=unknown
14531hardcode_into_libs=no
14532
14533# when you set need_version to no, make sure it does not cause -set_version
14534# flags to be left without arguments
14535need_version=unknown
14536
14537case $host_os in
14538aix3*)
14539  version_type=linux
14540  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14541  shlibpath_var=LIBPATH
14542
14543  # AIX 3 has no versioning support, so we append a major version to the name.
14544  soname_spec='${libname}${release}${shared_ext}$major'
14545  ;;
14546
14547aix4* | aix5*)
14548  version_type=linux
14549  need_lib_prefix=no
14550  need_version=no
14551  hardcode_into_libs=yes
14552  if test "$host_cpu" = ia64; then
14553    # AIX 5 supports IA64
14554    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14555    shlibpath_var=LD_LIBRARY_PATH
14556  else
14557    # With GCC up to 2.95.x, collect2 would create an import file
14558    # for dependence libraries.  The import file would start with
14559    # the line `#! .'.  This would cause the generated library to
14560    # depend on `.', always an invalid library.  This was fixed in
14561    # development snapshots of GCC prior to 3.0.
14562    case $host_os in
14563      aix4 | aix4.[01] | aix4.[01].*)
14564      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14565	   echo ' yes '
14566	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14567	:
14568      else
14569	can_build_shared=no
14570      fi
14571      ;;
14572    esac
14573    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14574    # soname into executable. Probably we can add versioning support to
14575    # collect2, so additional links can be useful in future.
14576    if test "$aix_use_runtimelinking" = yes; then
14577      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14578      # instead of lib<name>.a to let people know that these are not
14579      # typical AIX shared libraries.
14580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581    else
14582      # We preserve .a as extension for shared libraries through AIX4.2
14583      # and later when we are not doing run time linking.
14584      library_names_spec='${libname}${release}.a $libname.a'
14585      soname_spec='${libname}${release}${shared_ext}$major'
14586    fi
14587    shlibpath_var=LIBPATH
14588  fi
14589  ;;
14590
14591amigaos*)
14592  library_names_spec='$libname.ixlibrary $libname.a'
14593  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14594  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'
14595  ;;
14596
14597beos*)
14598  library_names_spec='${libname}${shared_ext}'
14599  dynamic_linker="$host_os ld.so"
14600  shlibpath_var=LIBRARY_PATH
14601  ;;
14602
14603bsdi[45]*)
14604  version_type=linux
14605  need_version=no
14606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607  soname_spec='${libname}${release}${shared_ext}$major'
14608  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14609  shlibpath_var=LD_LIBRARY_PATH
14610  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14611  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14612  # the default ld.so.conf also contains /usr/contrib/lib and
14613  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14614  # libtool to hard-code these into programs
14615  ;;
14616
14617cygwin* | mingw* | pw32*)
14618  version_type=windows
14619  shrext_cmds=".dll"
14620  need_version=no
14621  need_lib_prefix=no
14622
14623  case $GCC,$host_os in
14624  yes,cygwin* | yes,mingw* | yes,pw32*)
14625    library_names_spec='$libname.dll.a'
14626    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14627    postinstall_cmds='base_file=`basename \${file}`~
14628      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14629      dldir=$destdir/`dirname \$dlpath`~
14630      test -d \$dldir || mkdir -p \$dldir~
14631      $install_prog $dir/$dlname \$dldir/$dlname~
14632      chmod a+x \$dldir/$dlname'
14633    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14634      dlpath=$dir/\$dldll~
14635       $rm \$dlpath'
14636    shlibpath_overrides_runpath=yes
14637
14638    case $host_os in
14639    cygwin*)
14640      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14641      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14642      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14643      ;;
14644    mingw*)
14645      # MinGW DLLs use traditional 'lib' prefix
14646      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14648      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14649        # It is most probably a Windows format PATH printed by
14650        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14651        # path with ; separators, and with drive letters. We can handle the
14652        # drive letters (cygwin fileutils understands them), so leave them,
14653        # especially as we might pass files found there to a mingw objdump,
14654        # which wouldn't understand a cygwinified path. Ahh.
14655        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14656      else
14657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14658      fi
14659      ;;
14660    pw32*)
14661      # pw32 DLLs use 'pw' prefix rather than 'lib'
14662      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14663      ;;
14664    esac
14665    ;;
14666
14667  *)
14668    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14669    ;;
14670  esac
14671  dynamic_linker='Win32 ld.exe'
14672  # FIXME: first we should search . and the directory the executable is in
14673  shlibpath_var=PATH
14674  ;;
14675
14676darwin* | rhapsody*)
14677  dynamic_linker="$host_os dyld"
14678  version_type=darwin
14679  need_lib_prefix=no
14680  need_version=no
14681  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14682  soname_spec='${libname}${release}${major}$shared_ext'
14683  shlibpath_overrides_runpath=yes
14684  shlibpath_var=DYLD_LIBRARY_PATH
14685  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14686  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14687  if test "$GCC" = yes; then
14688    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14689  else
14690    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14691  fi
14692  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14693  ;;
14694
14695dgux*)
14696  version_type=linux
14697  need_lib_prefix=no
14698  need_version=no
14699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14700  soname_spec='${libname}${release}${shared_ext}$major'
14701  shlibpath_var=LD_LIBRARY_PATH
14702  ;;
14703
14704freebsd1*)
14705  dynamic_linker=no
14706  ;;
14707
14708kfreebsd*-gnu)
14709  version_type=linux
14710  need_lib_prefix=no
14711  need_version=no
14712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14713  soname_spec='${libname}${release}${shared_ext}$major'
14714  shlibpath_var=LD_LIBRARY_PATH
14715  shlibpath_overrides_runpath=no
14716  hardcode_into_libs=yes
14717  dynamic_linker='GNU ld.so'
14718  ;;
14719
14720freebsd* | dragonfly*)
14721  # DragonFly does not have aout.  When/if they implement a new
14722  # versioning mechanism, adjust this.
14723  if test -x /usr/bin/objformat; then
14724    objformat=`/usr/bin/objformat`
14725  else
14726    case $host_os in
14727    freebsd[123]*) objformat=aout ;;
14728    *) objformat=elf ;;
14729    esac
14730  fi
14731  version_type=freebsd-$objformat
14732  case $version_type in
14733    freebsd-elf*)
14734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14735      need_version=no
14736      need_lib_prefix=no
14737      ;;
14738    freebsd-*)
14739      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14740      need_version=yes
14741      ;;
14742  esac
14743  shlibpath_var=LD_LIBRARY_PATH
14744  case $host_os in
14745  freebsd2*)
14746    shlibpath_overrides_runpath=yes
14747    ;;
14748  freebsd3.[01]* | freebsdelf3.[01]*)
14749    shlibpath_overrides_runpath=yes
14750    hardcode_into_libs=yes
14751    ;;
14752  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14753  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14754    shlibpath_overrides_runpath=no
14755    hardcode_into_libs=yes
14756    ;;
14757  freebsd*) # from 4.6 on
14758    shlibpath_overrides_runpath=yes
14759    hardcode_into_libs=yes
14760    ;;
14761  esac
14762  ;;
14763
14764gnu*)
14765  version_type=linux
14766  need_lib_prefix=no
14767  need_version=no
14768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14769  soname_spec='${libname}${release}${shared_ext}$major'
14770  shlibpath_var=LD_LIBRARY_PATH
14771  hardcode_into_libs=yes
14772  ;;
14773
14774hpux9* | hpux10* | hpux11*)
14775  # Give a soname corresponding to the major version so that dld.sl refuses to
14776  # link against other versions.
14777  version_type=sunos
14778  need_lib_prefix=no
14779  need_version=no
14780  case $host_cpu in
14781  ia64*)
14782    shrext_cmds='.so'
14783    hardcode_into_libs=yes
14784    dynamic_linker="$host_os dld.so"
14785    shlibpath_var=LD_LIBRARY_PATH
14786    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14787    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788    soname_spec='${libname}${release}${shared_ext}$major'
14789    if test "X$HPUX_IA64_MODE" = X32; then
14790      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14791    else
14792      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14793    fi
14794    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14795    ;;
14796   hppa*64*)
14797     shrext_cmds='.sl'
14798     hardcode_into_libs=yes
14799     dynamic_linker="$host_os dld.sl"
14800     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14801     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803     soname_spec='${libname}${release}${shared_ext}$major'
14804     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14805     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14806     ;;
14807   *)
14808    shrext_cmds='.sl'
14809    dynamic_linker="$host_os dld.sl"
14810    shlibpath_var=SHLIB_PATH
14811    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14813    soname_spec='${libname}${release}${shared_ext}$major'
14814    ;;
14815  esac
14816  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14817  postinstall_cmds='chmod 555 $lib'
14818  ;;
14819
14820interix3*)
14821  version_type=linux
14822  need_lib_prefix=no
14823  need_version=no
14824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14825  soname_spec='${libname}${release}${shared_ext}$major'
14826  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14827  shlibpath_var=LD_LIBRARY_PATH
14828  shlibpath_overrides_runpath=no
14829  hardcode_into_libs=yes
14830  ;;
14831
14832irix5* | irix6* | nonstopux*)
14833  case $host_os in
14834    nonstopux*) version_type=nonstopux ;;
14835    *)
14836	if test "$lt_cv_prog_gnu_ld" = yes; then
14837		version_type=linux
14838	else
14839		version_type=irix
14840	fi ;;
14841  esac
14842  need_lib_prefix=no
14843  need_version=no
14844  soname_spec='${libname}${release}${shared_ext}$major'
14845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14846  case $host_os in
14847  irix5* | nonstopux*)
14848    libsuff= shlibsuff=
14849    ;;
14850  *)
14851    case $LD in # libtool.m4 will add one of these switches to LD
14852    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14853      libsuff= shlibsuff= libmagic=32-bit;;
14854    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14855      libsuff=32 shlibsuff=N32 libmagic=N32;;
14856    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14857      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14858    *) libsuff= shlibsuff= libmagic=never-match;;
14859    esac
14860    ;;
14861  esac
14862  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14863  shlibpath_overrides_runpath=no
14864  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14865  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14866  hardcode_into_libs=yes
14867  ;;
14868
14869# No shared lib support for Linux oldld, aout, or coff.
14870linux*oldld* | linux*aout* | linux*coff*)
14871  dynamic_linker=no
14872  ;;
14873
14874# This must be Linux ELF.
14875linux*)
14876  version_type=linux
14877  need_lib_prefix=no
14878  need_version=no
14879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880  soname_spec='${libname}${release}${shared_ext}$major'
14881  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14882  shlibpath_var=LD_LIBRARY_PATH
14883  shlibpath_overrides_runpath=no
14884  # This implies no fast_install, which is unacceptable.
14885  # Some rework will be needed to allow for fast_install
14886  # before this can be enabled.
14887  hardcode_into_libs=yes
14888
14889  # Append ld.so.conf contents to the search path
14890  if test -f /etc/ld.so.conf; then
14891    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14892    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14893  fi
14894
14895  # We used to test for /lib/ld.so.1 and disable shared libraries on
14896  # powerpc, because MkLinux only supported shared libraries with the
14897  # GNU dynamic linker.  Since this was broken with cross compilers,
14898  # most powerpc-linux boxes support dynamic linking these days and
14899  # people can always --disable-shared, the test was removed, and we
14900  # assume the GNU/Linux dynamic linker is in use.
14901  dynamic_linker='GNU/Linux ld.so'
14902  ;;
14903
14904knetbsd*-gnu)
14905  version_type=linux
14906  need_lib_prefix=no
14907  need_version=no
14908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14909  soname_spec='${libname}${release}${shared_ext}$major'
14910  shlibpath_var=LD_LIBRARY_PATH
14911  shlibpath_overrides_runpath=no
14912  hardcode_into_libs=yes
14913  dynamic_linker='GNU ld.so'
14914  ;;
14915
14916netbsd*)
14917  version_type=sunos
14918  need_lib_prefix=no
14919  need_version=no
14920  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14922    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14923    dynamic_linker='NetBSD (a.out) ld.so'
14924  else
14925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14926    soname_spec='${libname}${release}${shared_ext}$major'
14927    dynamic_linker='NetBSD ld.elf_so'
14928  fi
14929  shlibpath_var=LD_LIBRARY_PATH
14930  shlibpath_overrides_runpath=yes
14931  hardcode_into_libs=yes
14932  ;;
14933
14934newsos6)
14935  version_type=linux
14936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937  shlibpath_var=LD_LIBRARY_PATH
14938  shlibpath_overrides_runpath=yes
14939  ;;
14940
14941nto-qnx*)
14942  version_type=linux
14943  need_lib_prefix=no
14944  need_version=no
14945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946  soname_spec='${libname}${release}${shared_ext}$major'
14947  shlibpath_var=LD_LIBRARY_PATH
14948  shlibpath_overrides_runpath=yes
14949  ;;
14950
14951openbsd*)
14952  version_type=sunos
14953  sys_lib_dlsearch_path_spec="/usr/lib"
14954  need_lib_prefix=no
14955  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14956  case $host_os in
14957    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14958    *)                         need_version=no  ;;
14959  esac
14960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14961  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14962  shlibpath_var=LD_LIBRARY_PATH
14963  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14964    case $host_os in
14965      openbsd2.[89] | openbsd2.[89].*)
14966	shlibpath_overrides_runpath=no
14967	;;
14968      *)
14969	shlibpath_overrides_runpath=yes
14970	;;
14971      esac
14972  else
14973    shlibpath_overrides_runpath=yes
14974  fi
14975  ;;
14976
14977os2*)
14978  libname_spec='$name'
14979  shrext_cmds=".dll"
14980  need_lib_prefix=no
14981  library_names_spec='$libname${shared_ext} $libname.a'
14982  dynamic_linker='OS/2 ld.exe'
14983  shlibpath_var=LIBPATH
14984  ;;
14985
14986osf3* | osf4* | osf5*)
14987  version_type=osf
14988  need_lib_prefix=no
14989  need_version=no
14990  soname_spec='${libname}${release}${shared_ext}$major'
14991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992  shlibpath_var=LD_LIBRARY_PATH
14993  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14994  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14995  ;;
14996
14997solaris*)
14998  version_type=linux
14999  need_lib_prefix=no
15000  need_version=no
15001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002  soname_spec='${libname}${release}${shared_ext}$major'
15003  shlibpath_var=LD_LIBRARY_PATH
15004  shlibpath_overrides_runpath=yes
15005  hardcode_into_libs=yes
15006  # ldd complains unless libraries are executable
15007  postinstall_cmds='chmod +x $lib'
15008  ;;
15009
15010sunos4*)
15011  version_type=sunos
15012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15013  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15014  shlibpath_var=LD_LIBRARY_PATH
15015  shlibpath_overrides_runpath=yes
15016  if test "$with_gnu_ld" = yes; then
15017    need_lib_prefix=no
15018  fi
15019  need_version=yes
15020  ;;
15021
15022sysv4 | sysv4.3*)
15023  version_type=linux
15024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025  soname_spec='${libname}${release}${shared_ext}$major'
15026  shlibpath_var=LD_LIBRARY_PATH
15027  case $host_vendor in
15028    sni)
15029      shlibpath_overrides_runpath=no
15030      need_lib_prefix=no
15031      export_dynamic_flag_spec='${wl}-Blargedynsym'
15032      runpath_var=LD_RUN_PATH
15033      ;;
15034    siemens)
15035      need_lib_prefix=no
15036      ;;
15037    motorola)
15038      need_lib_prefix=no
15039      need_version=no
15040      shlibpath_overrides_runpath=no
15041      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15042      ;;
15043  esac
15044  ;;
15045
15046sysv4*MP*)
15047  if test -d /usr/nec ;then
15048    version_type=linux
15049    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15050    soname_spec='$libname${shared_ext}.$major'
15051    shlibpath_var=LD_LIBRARY_PATH
15052  fi
15053  ;;
15054
15055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15056  version_type=freebsd-elf
15057  need_lib_prefix=no
15058  need_version=no
15059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15060  soname_spec='${libname}${release}${shared_ext}$major'
15061  shlibpath_var=LD_LIBRARY_PATH
15062  hardcode_into_libs=yes
15063  if test "$with_gnu_ld" = yes; then
15064    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15065    shlibpath_overrides_runpath=no
15066  else
15067    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15068    shlibpath_overrides_runpath=yes
15069    case $host_os in
15070      sco3.2v5*)
15071        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15072	;;
15073    esac
15074  fi
15075  sys_lib_dlsearch_path_spec='/usr/lib'
15076  ;;
15077
15078uts4*)
15079  version_type=linux
15080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081  soname_spec='${libname}${release}${shared_ext}$major'
15082  shlibpath_var=LD_LIBRARY_PATH
15083  ;;
15084
15085*)
15086  dynamic_linker=no
15087  ;;
15088esac
15089{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15090echo "${ECHO_T}$dynamic_linker" >&6; }
15091test "$dynamic_linker" = no && can_build_shared=no
15092
15093variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15094if test "$GCC" = yes; then
15095  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15096fi
15097
15098{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15099echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15100hardcode_action_CXX=
15101if test -n "$hardcode_libdir_flag_spec_CXX" || \
15102   test -n "$runpath_var_CXX" || \
15103   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15104
15105  # We can hardcode non-existant directories.
15106  if test "$hardcode_direct_CXX" != no &&
15107     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15108     # have to relink, otherwise we might link with an installed library
15109     # when we should be linking with a yet-to-be-installed one
15110     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15111     test "$hardcode_minus_L_CXX" != no; then
15112    # Linking always hardcodes the temporary library directory.
15113    hardcode_action_CXX=relink
15114  else
15115    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15116    hardcode_action_CXX=immediate
15117  fi
15118else
15119  # We cannot hardcode anything, or else we can only hardcode existing
15120  # directories.
15121  hardcode_action_CXX=unsupported
15122fi
15123{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15124echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15125
15126if test "$hardcode_action_CXX" = relink; then
15127  # Fast installation is not supported
15128  enable_fast_install=no
15129elif test "$shlibpath_overrides_runpath" = yes ||
15130     test "$enable_shared" = no; then
15131  # Fast installation is not necessary
15132  enable_fast_install=needless
15133fi
15134
15135
15136# The else clause should only fire when bootstrapping the
15137# libtool distribution, otherwise you forgot to ship ltmain.sh
15138# with your package, and you will get complaints that there are
15139# no rules to generate ltmain.sh.
15140if test -f "$ltmain"; then
15141  # See if we are running on zsh, and set the options which allow our commands through
15142  # without removal of \ escapes.
15143  if test -n "${ZSH_VERSION+set}" ; then
15144    setopt NO_GLOB_SUBST
15145  fi
15146  # Now quote all the things that may contain metacharacters while being
15147  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15148  # variables and quote the copies for generation of the libtool script.
15149  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15150    SED SHELL STRIP \
15151    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15152    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15153    deplibs_check_method reload_flag reload_cmds need_locks \
15154    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15155    lt_cv_sys_global_symbol_to_c_name_address \
15156    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15157    old_postinstall_cmds old_postuninstall_cmds \
15158    compiler_CXX \
15159    CC_CXX \
15160    LD_CXX \
15161    lt_prog_compiler_wl_CXX \
15162    lt_prog_compiler_pic_CXX \
15163    lt_prog_compiler_static_CXX \
15164    lt_prog_compiler_no_builtin_flag_CXX \
15165    export_dynamic_flag_spec_CXX \
15166    thread_safe_flag_spec_CXX \
15167    whole_archive_flag_spec_CXX \
15168    enable_shared_with_static_runtimes_CXX \
15169    old_archive_cmds_CXX \
15170    old_archive_from_new_cmds_CXX \
15171    predep_objects_CXX \
15172    postdep_objects_CXX \
15173    predeps_CXX \
15174    postdeps_CXX \
15175    compiler_lib_search_path_CXX \
15176    archive_cmds_CXX \
15177    archive_expsym_cmds_CXX \
15178    postinstall_cmds_CXX \
15179    postuninstall_cmds_CXX \
15180    old_archive_from_expsyms_cmds_CXX \
15181    allow_undefined_flag_CXX \
15182    no_undefined_flag_CXX \
15183    export_symbols_cmds_CXX \
15184    hardcode_libdir_flag_spec_CXX \
15185    hardcode_libdir_flag_spec_ld_CXX \
15186    hardcode_libdir_separator_CXX \
15187    hardcode_automatic_CXX \
15188    module_cmds_CXX \
15189    module_expsym_cmds_CXX \
15190    lt_cv_prog_compiler_c_o_CXX \
15191    exclude_expsyms_CXX \
15192    include_expsyms_CXX; do
15193
15194    case $var in
15195    old_archive_cmds_CXX | \
15196    old_archive_from_new_cmds_CXX | \
15197    archive_cmds_CXX | \
15198    archive_expsym_cmds_CXX | \
15199    module_cmds_CXX | \
15200    module_expsym_cmds_CXX | \
15201    old_archive_from_expsyms_cmds_CXX | \
15202    export_symbols_cmds_CXX | \
15203    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15204    postinstall_cmds | postuninstall_cmds | \
15205    old_postinstall_cmds | old_postuninstall_cmds | \
15206    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15207      # Double-quote double-evaled strings.
15208      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15209      ;;
15210    *)
15211      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15212      ;;
15213    esac
15214  done
15215
15216  case $lt_echo in
15217  *'\$0 --fallback-echo"')
15218    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15219    ;;
15220  esac
15221
15222cfgfile="$ofile"
15223
15224  cat <<__EOF__ >> "$cfgfile"
15225# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15226
15227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15228
15229# Shell to use when invoking shell scripts.
15230SHELL=$lt_SHELL
15231
15232# Whether or not to build shared libraries.
15233build_libtool_libs=$enable_shared
15234
15235# Whether or not to build static libraries.
15236build_old_libs=$enable_static
15237
15238# Whether or not to add -lc for building shared libraries.
15239build_libtool_need_lc=$archive_cmds_need_lc_CXX
15240
15241# Whether or not to disallow shared libs when runtime libs are static
15242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15243
15244# Whether or not to optimize for fast installation.
15245fast_install=$enable_fast_install
15246
15247# The host system.
15248host_alias=$host_alias
15249host=$host
15250host_os=$host_os
15251
15252# The build system.
15253build_alias=$build_alias
15254build=$build
15255build_os=$build_os
15256
15257# An echo program that does not interpret backslashes.
15258echo=$lt_echo
15259
15260# The archiver.
15261AR=$lt_AR
15262AR_FLAGS=$lt_AR_FLAGS
15263
15264# A C compiler.
15265LTCC=$lt_LTCC
15266
15267# LTCC compiler flags.
15268LTCFLAGS=$lt_LTCFLAGS
15269
15270# A language-specific compiler.
15271CC=$lt_compiler_CXX
15272
15273# Is the compiler the GNU C compiler?
15274with_gcc=$GCC_CXX
15275
15276# An ERE matcher.
15277EGREP=$lt_EGREP
15278
15279# The linker used to build libraries.
15280LD=$lt_LD_CXX
15281
15282# Whether we need hard or soft links.
15283LN_S=$lt_LN_S
15284
15285# A BSD-compatible nm program.
15286NM=$lt_NM
15287
15288# A symbol stripping program
15289STRIP=$lt_STRIP
15290
15291# Used to examine libraries when file_magic_cmd begins "file"
15292MAGIC_CMD=$MAGIC_CMD
15293
15294# Used on cygwin: DLL creation program.
15295DLLTOOL="$DLLTOOL"
15296
15297# Used on cygwin: object dumper.
15298OBJDUMP="$OBJDUMP"
15299
15300# Used on cygwin: assembler.
15301AS="$AS"
15302
15303# The name of the directory that contains temporary libtool files.
15304objdir=$objdir
15305
15306# How to create reloadable object files.
15307reload_flag=$lt_reload_flag
15308reload_cmds=$lt_reload_cmds
15309
15310# How to pass a linker flag through the compiler.
15311wl=$lt_lt_prog_compiler_wl_CXX
15312
15313# Object file suffix (normally "o").
15314objext="$ac_objext"
15315
15316# Old archive suffix (normally "a").
15317libext="$libext"
15318
15319# Shared library suffix (normally ".so").
15320shrext_cmds='$shrext_cmds'
15321
15322# Executable file suffix (normally "").
15323exeext="$exeext"
15324
15325# Additional compiler flags for building library objects.
15326pic_flag=$lt_lt_prog_compiler_pic_CXX
15327pic_mode=$pic_mode
15328
15329# What is the maximum length of a command?
15330max_cmd_len=$lt_cv_sys_max_cmd_len
15331
15332# Does compiler simultaneously support -c and -o options?
15333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15334
15335# Must we lock files when doing compilation?
15336need_locks=$lt_need_locks
15337
15338# Do we need the lib prefix for modules?
15339need_lib_prefix=$need_lib_prefix
15340
15341# Do we need a version for libraries?
15342need_version=$need_version
15343
15344# Whether dlopen is supported.
15345dlopen_support=$enable_dlopen
15346
15347# Whether dlopen of programs is supported.
15348dlopen_self=$enable_dlopen_self
15349
15350# Whether dlopen of statically linked programs is supported.
15351dlopen_self_static=$enable_dlopen_self_static
15352
15353# Compiler flag to prevent dynamic linking.
15354link_static_flag=$lt_lt_prog_compiler_static_CXX
15355
15356# Compiler flag to turn off builtin functions.
15357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15358
15359# Compiler flag to allow reflexive dlopens.
15360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15361
15362# Compiler flag to generate shared objects directly from archives.
15363whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15364
15365# Compiler flag to generate thread-safe objects.
15366thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15367
15368# Library versioning type.
15369version_type=$version_type
15370
15371# Format of library name prefix.
15372libname_spec=$lt_libname_spec
15373
15374# List of archive names.  First name is the real one, the rest are links.
15375# The last name is the one that the linker finds with -lNAME.
15376library_names_spec=$lt_library_names_spec
15377
15378# The coded name of the library, if different from the real name.
15379soname_spec=$lt_soname_spec
15380
15381# Commands used to build and install an old-style archive.
15382RANLIB=$lt_RANLIB
15383old_archive_cmds=$lt_old_archive_cmds_CXX
15384old_postinstall_cmds=$lt_old_postinstall_cmds
15385old_postuninstall_cmds=$lt_old_postuninstall_cmds
15386
15387# Create an old-style archive from a shared archive.
15388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15389
15390# Create a temporary old-style archive to link instead of a shared archive.
15391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15392
15393# Commands used to build and install a shared archive.
15394archive_cmds=$lt_archive_cmds_CXX
15395archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15396postinstall_cmds=$lt_postinstall_cmds
15397postuninstall_cmds=$lt_postuninstall_cmds
15398
15399# Commands used to build a loadable module (assumed same as above if empty)
15400module_cmds=$lt_module_cmds_CXX
15401module_expsym_cmds=$lt_module_expsym_cmds_CXX
15402
15403# Commands to strip libraries.
15404old_striplib=$lt_old_striplib
15405striplib=$lt_striplib
15406
15407# Dependencies to place before the objects being linked to create a
15408# shared library.
15409predep_objects=$lt_predep_objects_CXX
15410
15411# Dependencies to place after the objects being linked to create a
15412# shared library.
15413postdep_objects=$lt_postdep_objects_CXX
15414
15415# Dependencies to place before the objects being linked to create a
15416# shared library.
15417predeps=$lt_predeps_CXX
15418
15419# Dependencies to place after the objects being linked to create a
15420# shared library.
15421postdeps=$lt_postdeps_CXX
15422
15423# The library search path used internally by the compiler when linking
15424# a shared library.
15425compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15426
15427# Method to check whether dependent libraries are shared objects.
15428deplibs_check_method=$lt_deplibs_check_method
15429
15430# Command to use when deplibs_check_method == file_magic.
15431file_magic_cmd=$lt_file_magic_cmd
15432
15433# Flag that allows shared libraries with undefined symbols to be built.
15434allow_undefined_flag=$lt_allow_undefined_flag_CXX
15435
15436# Flag that forces no undefined symbols.
15437no_undefined_flag=$lt_no_undefined_flag_CXX
15438
15439# Commands used to finish a libtool library installation in a directory.
15440finish_cmds=$lt_finish_cmds
15441
15442# Same as above, but a single script fragment to be evaled but not shown.
15443finish_eval=$lt_finish_eval
15444
15445# Take the output of nm and produce a listing of raw symbols and C names.
15446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15447
15448# Transform the output of nm in a proper C declaration
15449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15450
15451# Transform the output of nm in a C name address pair
15452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15453
15454# This is the shared library runtime path variable.
15455runpath_var=$runpath_var
15456
15457# This is the shared library path variable.
15458shlibpath_var=$shlibpath_var
15459
15460# Is shlibpath searched before the hard-coded library search path?
15461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15462
15463# How to hardcode a shared library path into an executable.
15464hardcode_action=$hardcode_action_CXX
15465
15466# Whether we should hardcode library paths into libraries.
15467hardcode_into_libs=$hardcode_into_libs
15468
15469# Flag to hardcode \$libdir into a binary during linking.
15470# This must work even if \$libdir does not exist.
15471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15472
15473# If ld is used when linking, flag to hardcode \$libdir into
15474# a binary during linking. This must work even if \$libdir does
15475# not exist.
15476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15477
15478# Whether we need a single -rpath flag with a separated argument.
15479hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15480
15481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15482# resulting binary.
15483hardcode_direct=$hardcode_direct_CXX
15484
15485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15486# resulting binary.
15487hardcode_minus_L=$hardcode_minus_L_CXX
15488
15489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15490# the resulting binary.
15491hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15492
15493# Set to yes if building a shared library automatically hardcodes DIR into the library
15494# and all subsequent libraries and executables linked against it.
15495hardcode_automatic=$hardcode_automatic_CXX
15496
15497# Variables whose values should be saved in libtool wrapper scripts and
15498# restored at relink time.
15499variables_saved_for_relink="$variables_saved_for_relink"
15500
15501# Whether libtool must link a program against all its dependency libraries.
15502link_all_deplibs=$link_all_deplibs_CXX
15503
15504# Compile-time system search path for libraries
15505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15506
15507# Run-time system search path for libraries
15508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15509
15510# Fix the shell variable \$srcfile for the compiler.
15511fix_srcfile_path="$fix_srcfile_path_CXX"
15512
15513# Set to yes if exported symbols are required.
15514always_export_symbols=$always_export_symbols_CXX
15515
15516# The commands to list exported symbols.
15517export_symbols_cmds=$lt_export_symbols_cmds_CXX
15518
15519# The commands to extract the exported symbol list from a shared archive.
15520extract_expsyms_cmds=$lt_extract_expsyms_cmds
15521
15522# Symbols that should not be listed in the preloaded symbols.
15523exclude_expsyms=$lt_exclude_expsyms_CXX
15524
15525# Symbols that must always be exported.
15526include_expsyms=$lt_include_expsyms_CXX
15527
15528# ### END LIBTOOL TAG CONFIG: $tagname
15529
15530__EOF__
15531
15532
15533else
15534  # If there is no Makefile yet, we rely on a make rule to execute
15535  # `config.status --recheck' to rerun these tests and create the
15536  # libtool script then.
15537  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15538  if test -f "$ltmain_in"; then
15539    test -f Makefile && make "$ltmain"
15540  fi
15541fi
15542
15543
15544ac_ext=c
15545ac_cpp='$CPP $CPPFLAGS'
15546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15548ac_compiler_gnu=$ac_cv_c_compiler_gnu
15549
15550CC=$lt_save_CC
15551LDCXX=$LD
15552LD=$lt_save_LD
15553GCC=$lt_save_GCC
15554with_gnu_ldcxx=$with_gnu_ld
15555with_gnu_ld=$lt_save_with_gnu_ld
15556lt_cv_path_LDCXX=$lt_cv_path_LD
15557lt_cv_path_LD=$lt_save_path_LD
15558lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15559lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15560
15561	else
15562	  tagname=""
15563	fi
15564	;;
15565
15566      F77)
15567	if test -n "$F77" && test "X$F77" != "Xno"; then
15568
15569ac_ext=f
15570ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15571ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15572ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15573
15574
15575archive_cmds_need_lc_F77=no
15576allow_undefined_flag_F77=
15577always_export_symbols_F77=no
15578archive_expsym_cmds_F77=
15579export_dynamic_flag_spec_F77=
15580hardcode_direct_F77=no
15581hardcode_libdir_flag_spec_F77=
15582hardcode_libdir_flag_spec_ld_F77=
15583hardcode_libdir_separator_F77=
15584hardcode_minus_L_F77=no
15585hardcode_automatic_F77=no
15586module_cmds_F77=
15587module_expsym_cmds_F77=
15588link_all_deplibs_F77=unknown
15589old_archive_cmds_F77=$old_archive_cmds
15590no_undefined_flag_F77=
15591whole_archive_flag_spec_F77=
15592enable_shared_with_static_runtimes_F77=no
15593
15594# Source file extension for f77 test sources.
15595ac_ext=f
15596
15597# Object file extension for compiled f77 test sources.
15598objext=o
15599objext_F77=$objext
15600
15601# Code to be used in simple compile tests
15602lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15603
15604# Code to be used in simple link tests
15605lt_simple_link_test_code="      program t\n      end\n"
15606
15607# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15608
15609# If no C compiler was specified, use CC.
15610LTCC=${LTCC-"$CC"}
15611
15612# If no C compiler flags were specified, use CFLAGS.
15613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15614
15615# Allow CC to be a program name with arguments.
15616compiler=$CC
15617
15618
15619# save warnings/boilerplate of simple test code
15620ac_outfile=conftest.$ac_objext
15621printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15622eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15623_lt_compiler_boilerplate=`cat conftest.err`
15624$rm conftest*
15625
15626ac_outfile=conftest.$ac_objext
15627printf "$lt_simple_link_test_code" >conftest.$ac_ext
15628eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15629_lt_linker_boilerplate=`cat conftest.err`
15630$rm conftest*
15631
15632
15633# Allow CC to be a program name with arguments.
15634lt_save_CC="$CC"
15635CC=${F77-"f77"}
15636compiler=$CC
15637compiler_F77=$CC
15638for cc_temp in $compiler""; do
15639  case $cc_temp in
15640    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15641    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15642    \-*) ;;
15643    *) break;;
15644  esac
15645done
15646cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15647
15648
15649{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15650echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15651{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15652echo "${ECHO_T}$can_build_shared" >&6; }
15653
15654{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15655echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15656test "$can_build_shared" = "no" && enable_shared=no
15657
15658# On AIX, shared libraries and static libraries use the same namespace, and
15659# are all built from PIC.
15660case $host_os in
15661aix3*)
15662  test "$enable_shared" = yes && enable_static=no
15663  if test -n "$RANLIB"; then
15664    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15665    postinstall_cmds='$RANLIB $lib'
15666  fi
15667  ;;
15668aix4* | aix5*)
15669  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15670    test "$enable_shared" = yes && enable_static=no
15671  fi
15672  ;;
15673esac
15674{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15675echo "${ECHO_T}$enable_shared" >&6; }
15676
15677{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15678echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15679# Make sure either enable_shared or enable_static is yes.
15680test "$enable_shared" = yes || enable_static=yes
15681{ echo "$as_me:$LINENO: result: $enable_static" >&5
15682echo "${ECHO_T}$enable_static" >&6; }
15683
15684GCC_F77="$G77"
15685LD_F77="$LD"
15686
15687lt_prog_compiler_wl_F77=
15688lt_prog_compiler_pic_F77=
15689lt_prog_compiler_static_F77=
15690
15691{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15692echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15693
15694  if test "$GCC" = yes; then
15695    lt_prog_compiler_wl_F77='-Wl,'
15696    lt_prog_compiler_static_F77='-static'
15697
15698    case $host_os in
15699      aix*)
15700      # All AIX code is PIC.
15701      if test "$host_cpu" = ia64; then
15702	# AIX 5 now supports IA64 processor
15703	lt_prog_compiler_static_F77='-Bstatic'
15704      fi
15705      ;;
15706
15707    amigaos*)
15708      # FIXME: we need at least 68020 code to build shared libraries, but
15709      # adding the `-m68020' flag to GCC prevents building anything better,
15710      # like `-m68040'.
15711      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15712      ;;
15713
15714    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15715      # PIC is the default for these OSes.
15716      ;;
15717
15718    mingw* | cygwin* | pw32* | os2*)
15719      # This hack is so that the source file can tell whether it is being
15720      # built for inclusion in a dll (and should export symbols for example).
15721      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15722      # (--disable-auto-import) libraries
15723      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15724      ;;
15725
15726    darwin* | rhapsody*)
15727      # PIC is the default on this platform
15728      # Common symbols not allowed in MH_DYLIB files
15729      lt_prog_compiler_pic_F77='-fno-common'
15730      ;;
15731
15732    interix3*)
15733      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15734      # Instead, we relocate shared libraries at runtime.
15735      ;;
15736
15737    msdosdjgpp*)
15738      # Just because we use GCC doesn't mean we suddenly get shared libraries
15739      # on systems that don't support them.
15740      lt_prog_compiler_can_build_shared_F77=no
15741      enable_shared=no
15742      ;;
15743
15744    sysv4*MP*)
15745      if test -d /usr/nec; then
15746	lt_prog_compiler_pic_F77=-Kconform_pic
15747      fi
15748      ;;
15749
15750    hpux*)
15751      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15752      # not for PA HP-UX.
15753      case $host_cpu in
15754      hppa*64*|ia64*)
15755	# +Z the default
15756	;;
15757      *)
15758	lt_prog_compiler_pic_F77='-fPIC'
15759	;;
15760      esac
15761      ;;
15762
15763    *)
15764      lt_prog_compiler_pic_F77='-fPIC'
15765      ;;
15766    esac
15767  else
15768    # PORTME Check for flag to pass linker flags through the system compiler.
15769    case $host_os in
15770    aix*)
15771      lt_prog_compiler_wl_F77='-Wl,'
15772      if test "$host_cpu" = ia64; then
15773	# AIX 5 now supports IA64 processor
15774	lt_prog_compiler_static_F77='-Bstatic'
15775      else
15776	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15777      fi
15778      ;;
15779      darwin*)
15780        # PIC is the default on this platform
15781        # Common symbols not allowed in MH_DYLIB files
15782       case $cc_basename in
15783         xlc*)
15784         lt_prog_compiler_pic_F77='-qnocommon'
15785         lt_prog_compiler_wl_F77='-Wl,'
15786         ;;
15787       esac
15788       ;;
15789
15790    mingw* | cygwin* | pw32* | os2*)
15791      # This hack is so that the source file can tell whether it is being
15792      # built for inclusion in a dll (and should export symbols for example).
15793      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15794      # (--disable-auto-import) libraries
15795      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15796      ;;
15797
15798    hpux9* | hpux10* | hpux11*)
15799      lt_prog_compiler_wl_F77='-Wl,'
15800      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15801      # not for PA HP-UX.
15802      case $host_cpu in
15803      hppa*64*|ia64*)
15804	# +Z the default
15805	;;
15806      *)
15807	lt_prog_compiler_pic_F77='+Z'
15808	;;
15809      esac
15810      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15811      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15812      ;;
15813
15814    irix5* | irix6* | nonstopux*)
15815      lt_prog_compiler_wl_F77='-Wl,'
15816      # PIC (with -KPIC) is the default.
15817      lt_prog_compiler_static_F77='-non_shared'
15818      ;;
15819
15820    newsos6)
15821      lt_prog_compiler_pic_F77='-KPIC'
15822      lt_prog_compiler_static_F77='-Bstatic'
15823      ;;
15824
15825    linux*)
15826      case $cc_basename in
15827      icc* | ecc*)
15828	lt_prog_compiler_wl_F77='-Wl,'
15829	lt_prog_compiler_pic_F77='-KPIC'
15830	lt_prog_compiler_static_F77='-static'
15831        ;;
15832      pgcc* | pgf77* | pgf90* | pgf95*)
15833        # Portland Group compilers (*not* the Pentium gcc compiler,
15834	# which looks to be a dead project)
15835	lt_prog_compiler_wl_F77='-Wl,'
15836	lt_prog_compiler_pic_F77='-fpic'
15837	lt_prog_compiler_static_F77='-Bstatic'
15838        ;;
15839      ccc*)
15840        lt_prog_compiler_wl_F77='-Wl,'
15841        # All Alpha code is PIC.
15842        lt_prog_compiler_static_F77='-non_shared'
15843        ;;
15844      como)
15845        lt_prog_compiler_wl_F77='-lopt='
15846        ;;
15847      *)
15848        case `$CC -V 2>&1 | sed 5q` in
15849	*Sun\ C*)
15850	  # Sun C 5.9
15851	  lt_prog_compiler_pic_F77='-KPIC'
15852	  lt_prog_compiler_static_F77='-Bstatic'
15853	  lt_prog_compiler_wl_F77='-Wl,'
15854	  ;;
15855	*Sun\ F*)
15856	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15857	  lt_prog_compiler_pic_F77='-KPIC'
15858	  lt_prog_compiler_static_F77='-Bstatic'
15859	  lt_prog_compiler_wl_F77=''
15860	  ;;
15861	esac
15862	;;
15863      esac
15864      ;;
15865
15866    osf3* | osf4* | osf5*)
15867      lt_prog_compiler_wl_F77='-Wl,'
15868      # All OSF/1 code is PIC.
15869      lt_prog_compiler_static_F77='-non_shared'
15870      ;;
15871
15872    solaris*)
15873      lt_prog_compiler_pic_F77='-KPIC'
15874      lt_prog_compiler_static_F77='-Bstatic'
15875      case $cc_basename in
15876      f77* | f90* | f95*)
15877	lt_prog_compiler_wl_F77='-Qoption ld ';;
15878      *)
15879	lt_prog_compiler_wl_F77='-Wl,';;
15880      esac
15881      ;;
15882
15883    sunos4*)
15884      lt_prog_compiler_wl_F77='-Qoption ld '
15885      lt_prog_compiler_pic_F77='-PIC'
15886      lt_prog_compiler_static_F77='-Bstatic'
15887      ;;
15888
15889    sysv4 | sysv4.2uw2* | sysv4.3*)
15890      lt_prog_compiler_wl_F77='-Wl,'
15891      lt_prog_compiler_pic_F77='-KPIC'
15892      lt_prog_compiler_static_F77='-Bstatic'
15893      ;;
15894
15895    sysv4*MP*)
15896      if test -d /usr/nec ;then
15897	lt_prog_compiler_pic_F77='-Kconform_pic'
15898	lt_prog_compiler_static_F77='-Bstatic'
15899      fi
15900      ;;
15901
15902    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15903      lt_prog_compiler_wl_F77='-Wl,'
15904      lt_prog_compiler_pic_F77='-KPIC'
15905      lt_prog_compiler_static_F77='-Bstatic'
15906      ;;
15907
15908    unicos*)
15909      lt_prog_compiler_wl_F77='-Wl,'
15910      lt_prog_compiler_can_build_shared_F77=no
15911      ;;
15912
15913    uts4*)
15914      lt_prog_compiler_pic_F77='-pic'
15915      lt_prog_compiler_static_F77='-Bstatic'
15916      ;;
15917
15918    *)
15919      lt_prog_compiler_can_build_shared_F77=no
15920      ;;
15921    esac
15922  fi
15923
15924{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15925echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15926
15927#
15928# Check to make sure the PIC flag actually works.
15929#
15930if test -n "$lt_prog_compiler_pic_F77"; then
15931
15932{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15933echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15934if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15935  echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
15937  lt_prog_compiler_pic_works_F77=no
15938  ac_outfile=conftest.$ac_objext
15939   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15940   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15941   # Insert the option either (1) after the last *FLAGS variable, or
15942   # (2) before a word containing "conftest.", or (3) at the end.
15943   # Note that $ac_compile itself does not contain backslashes and begins
15944   # with a dollar sign (not a hyphen), so the echo should work correctly.
15945   # The option is referenced via a variable to avoid confusing sed.
15946   lt_compile=`echo "$ac_compile" | $SED \
15947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15949   -e 's:$: $lt_compiler_flag:'`
15950   (eval echo "\"\$as_me:15950: $lt_compile\"" >&5)
15951   (eval "$lt_compile" 2>conftest.err)
15952   ac_status=$?
15953   cat conftest.err >&5
15954   echo "$as_me:15954: \$? = $ac_status" >&5
15955   if (exit $ac_status) && test -s "$ac_outfile"; then
15956     # The compiler can only warn and ignore the option if not recognized
15957     # So say no if there are warnings other than the usual output.
15958     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15959     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15960     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15961       lt_prog_compiler_pic_works_F77=yes
15962     fi
15963   fi
15964   $rm conftest*
15965
15966fi
15967{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15968echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15969
15970if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15971    case $lt_prog_compiler_pic_F77 in
15972     "" | " "*) ;;
15973     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15974     esac
15975else
15976    lt_prog_compiler_pic_F77=
15977     lt_prog_compiler_can_build_shared_F77=no
15978fi
15979
15980fi
15981case $host_os in
15982  # For platforms which do not support PIC, -DPIC is meaningless:
15983  *djgpp*)
15984    lt_prog_compiler_pic_F77=
15985    ;;
15986  *)
15987    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15988    ;;
15989esac
15990
15991#
15992# Check to make sure the static flag actually works.
15993#
15994wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15995{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15996echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15997if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15998  echo $ECHO_N "(cached) $ECHO_C" >&6
15999else
16000  lt_prog_compiler_static_works_F77=no
16001   save_LDFLAGS="$LDFLAGS"
16002   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16003   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16004   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16005     # The linker can only warn and ignore the option if not recognized
16006     # So say no if there are warnings
16007     if test -s conftest.err; then
16008       # Append any errors to the config.log.
16009       cat conftest.err 1>&5
16010       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16011       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16012       if diff conftest.exp conftest.er2 >/dev/null; then
16013         lt_prog_compiler_static_works_F77=yes
16014       fi
16015     else
16016       lt_prog_compiler_static_works_F77=yes
16017     fi
16018   fi
16019   $rm conftest*
16020   LDFLAGS="$save_LDFLAGS"
16021
16022fi
16023{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16024echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
16025
16026if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16027    :
16028else
16029    lt_prog_compiler_static_F77=
16030fi
16031
16032
16033{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16034echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16035if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16036  echo $ECHO_N "(cached) $ECHO_C" >&6
16037else
16038  lt_cv_prog_compiler_c_o_F77=no
16039   $rm -r conftest 2>/dev/null
16040   mkdir conftest
16041   cd conftest
16042   mkdir out
16043   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
16045   lt_compiler_flag="-o out/conftest2.$ac_objext"
16046   # Insert the option either (1) after the last *FLAGS variable, or
16047   # (2) before a word containing "conftest.", or (3) at the end.
16048   # Note that $ac_compile itself does not contain backslashes and begins
16049   # with a dollar sign (not a hyphen), so the echo should work correctly.
16050   lt_compile=`echo "$ac_compile" | $SED \
16051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053   -e 's:$: $lt_compiler_flag:'`
16054   (eval echo "\"\$as_me:16054: $lt_compile\"" >&5)
16055   (eval "$lt_compile" 2>out/conftest.err)
16056   ac_status=$?
16057   cat out/conftest.err >&5
16058   echo "$as_me:16058: \$? = $ac_status" >&5
16059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16060   then
16061     # The compiler can only warn and ignore the option if not recognized
16062     # So say no if there are warnings
16063     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16066       lt_cv_prog_compiler_c_o_F77=yes
16067     fi
16068   fi
16069   chmod u+w . 2>&5
16070   $rm conftest*
16071   # SGI C++ compiler will create directory out/ii_files/ for
16072   # template instantiation
16073   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16074   $rm out/* && rmdir out
16075   cd ..
16076   rmdir conftest
16077   $rm conftest*
16078
16079fi
16080{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16081echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16082
16083
16084hard_links="nottested"
16085if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16086  # do not overwrite the value of need_locks provided by the user
16087  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16089  hard_links=yes
16090  $rm conftest*
16091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16092  touch conftest.a
16093  ln conftest.a conftest.b 2>&5 || hard_links=no
16094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16095  { echo "$as_me:$LINENO: result: $hard_links" >&5
16096echo "${ECHO_T}$hard_links" >&6; }
16097  if test "$hard_links" = no; then
16098    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16100    need_locks=warn
16101  fi
16102else
16103  need_locks=no
16104fi
16105
16106{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16108
16109  runpath_var=
16110  allow_undefined_flag_F77=
16111  enable_shared_with_static_runtimes_F77=no
16112  archive_cmds_F77=
16113  archive_expsym_cmds_F77=
16114  old_archive_From_new_cmds_F77=
16115  old_archive_from_expsyms_cmds_F77=
16116  export_dynamic_flag_spec_F77=
16117  whole_archive_flag_spec_F77=
16118  thread_safe_flag_spec_F77=
16119  hardcode_libdir_flag_spec_F77=
16120  hardcode_libdir_flag_spec_ld_F77=
16121  hardcode_libdir_separator_F77=
16122  hardcode_direct_F77=no
16123  hardcode_minus_L_F77=no
16124  hardcode_shlibpath_var_F77=unsupported
16125  link_all_deplibs_F77=unknown
16126  hardcode_automatic_F77=no
16127  module_cmds_F77=
16128  module_expsym_cmds_F77=
16129  always_export_symbols_F77=no
16130  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16131  # include_expsyms should be a list of space-separated symbols to be *always*
16132  # included in the symbol list
16133  include_expsyms_F77=
16134  # exclude_expsyms can be an extended regexp of symbols to exclude
16135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16137  # as well as any symbol that contains `d'.
16138  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16140  # platforms (ab)use it in PIC code, but their linkers get confused if
16141  # the symbol is explicitly referenced.  Since portable code cannot
16142  # rely on this symbol name, it's probably fine to never include it in
16143  # preloaded symbol tables.
16144  extract_expsyms_cmds=
16145  # Just being paranoid about ensuring that cc_basename is set.
16146  for cc_temp in $compiler""; do
16147  case $cc_temp in
16148    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16149    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16150    \-*) ;;
16151    *) break;;
16152  esac
16153done
16154cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16155
16156  case $host_os in
16157  cygwin* | mingw* | pw32*)
16158    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16159    # When not using gcc, we currently assume that we are using
16160    # Microsoft Visual C++.
16161    if test "$GCC" != yes; then
16162      with_gnu_ld=no
16163    fi
16164    ;;
16165  interix*)
16166    # we just hope/assume this is gcc and not c89 (= MSVC++)
16167    with_gnu_ld=yes
16168    ;;
16169  openbsd*)
16170    with_gnu_ld=no
16171    ;;
16172  esac
16173
16174  ld_shlibs_F77=yes
16175  if test "$with_gnu_ld" = yes; then
16176    # If archive_cmds runs LD, not CC, wlarc should be empty
16177    wlarc='${wl}'
16178
16179    # Set some defaults for GNU ld with shared library support. These
16180    # are reset later if shared libraries are not supported. Putting them
16181    # here allows them to be overridden if necessary.
16182    runpath_var=LD_RUN_PATH
16183    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16184    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16185    # ancient GNU ld didn't support --whole-archive et. al.
16186    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16187	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16188      else
16189  	whole_archive_flag_spec_F77=
16190    fi
16191    supports_anon_versioning=no
16192    case `$LD -v 2>/dev/null` in
16193      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16194      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16195      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16196      *\ 2.11.*) ;; # other 2.11 versions
16197      *) supports_anon_versioning=yes ;;
16198    esac
16199
16200    # See if GNU ld supports shared libraries.
16201    case $host_os in
16202    aix3* | aix4* | aix5*)
16203      # On AIX/PPC, the GNU linker is very broken
16204      if test "$host_cpu" != ia64; then
16205	ld_shlibs_F77=no
16206	cat <<EOF 1>&2
16207
16208*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16209*** to be unable to reliably create shared libraries on AIX.
16210*** Therefore, libtool is disabling shared libraries support.  If you
16211*** really care for shared libraries, you may want to modify your PATH
16212*** so that a non-GNU linker is found, and then restart.
16213
16214EOF
16215      fi
16216      ;;
16217
16218    amigaos*)
16219      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)'
16220      hardcode_libdir_flag_spec_F77='-L$libdir'
16221      hardcode_minus_L_F77=yes
16222
16223      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16224      # that the semantics of dynamic libraries on AmigaOS, at least up
16225      # to version 4, is to share data among multiple programs linked
16226      # with the same dynamic library.  Since this doesn't match the
16227      # behavior of shared libraries on other platforms, we can't use
16228      # them.
16229      ld_shlibs_F77=no
16230      ;;
16231
16232    beos*)
16233      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16234	allow_undefined_flag_F77=unsupported
16235	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16236	# support --undefined.  This deserves some investigation.  FIXME
16237	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16238      else
16239	ld_shlibs_F77=no
16240      fi
16241      ;;
16242
16243    cygwin* | mingw* | pw32*)
16244      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16245      # as there is no search path for DLLs.
16246      hardcode_libdir_flag_spec_F77='-L$libdir'
16247      allow_undefined_flag_F77=unsupported
16248      always_export_symbols_F77=no
16249      enable_shared_with_static_runtimes_F77=yes
16250      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16251
16252      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16253        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16254	# If the export-symbols file already is a .def file (1st line
16255	# is EXPORTS), use it as is; otherwise, prepend...
16256	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16257	  cp $export_symbols $output_objdir/$soname.def;
16258	else
16259	  echo EXPORTS > $output_objdir/$soname.def;
16260	  cat $export_symbols >> $output_objdir/$soname.def;
16261	fi~
16262	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16263      else
16264	ld_shlibs_F77=no
16265      fi
16266      ;;
16267
16268    interix3*)
16269      hardcode_direct_F77=no
16270      hardcode_shlibpath_var_F77=no
16271      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16272      export_dynamic_flag_spec_F77='${wl}-E'
16273      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16274      # Instead, shared libraries are loaded at an image base (0x10000000 by
16275      # default) and relocated if they conflict, which is a slow very memory
16276      # consuming and fragmenting process.  To avoid this, we pick a random,
16277      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16278      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16279      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'
16280      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'
16281      ;;
16282
16283    linux*)
16284      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16285	tmp_addflag=
16286	case $cc_basename,$host_cpu in
16287	pgcc*)				# Portland Group C compiler
16288	  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'
16289	  tmp_addflag=' $pic_flag'
16290	  ;;
16291	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16292	  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'
16293	  tmp_addflag=' $pic_flag -Mnomain' ;;
16294	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16295	  tmp_addflag=' -i_dynamic' ;;
16296	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16297	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16298	ifc* | ifort*)			# Intel Fortran compiler
16299	  tmp_addflag=' -nofor_main' ;;
16300	esac
16301	case `$CC -V 2>&1 | sed 5q` in
16302	*Sun\ C*)			# Sun C 5.9
16303	  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 /dev/null'
16304	  tmp_sharedflag='-G' ;;
16305	*Sun\ F*)			# Sun Fortran 8.3
16306	  tmp_sharedflag='-G' ;;
16307	*)
16308	  tmp_sharedflag='-shared' ;;
16309	esac
16310	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16311
16312	if test $supports_anon_versioning = yes; then
16313	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16314  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16315  $echo "local: *; };" >> $output_objdir/$libname.ver~
16316	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16317	fi
16318      else
16319	ld_shlibs_F77=no
16320      fi
16321      ;;
16322
16323    netbsd*)
16324      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16325	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16326	wlarc=
16327      else
16328	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16329	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16330      fi
16331      ;;
16332
16333    solaris*)
16334      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16335	ld_shlibs_F77=no
16336	cat <<EOF 1>&2
16337
16338*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16339*** create shared libraries on Solaris systems.  Therefore, libtool
16340*** is disabling shared libraries support.  We urge you to upgrade GNU
16341*** binutils to release 2.9.1 or newer.  Another option is to modify
16342*** your PATH or compiler configuration so that the native linker is
16343*** used, and then restart.
16344
16345EOF
16346      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16347	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16348	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16349      else
16350	ld_shlibs_F77=no
16351      fi
16352      ;;
16353
16354    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16355      case `$LD -v 2>&1` in
16356        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16357	ld_shlibs_F77=no
16358	cat <<_LT_EOF 1>&2
16359
16360*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16361*** reliably create shared libraries on SCO systems.  Therefore, libtool
16362*** is disabling shared libraries support.  We urge you to upgrade GNU
16363*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16364*** your PATH or compiler configuration so that the native linker is
16365*** used, and then restart.
16366
16367_LT_EOF
16368	;;
16369	*)
16370	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16371	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16372	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16373	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16374	  else
16375	    ld_shlibs_F77=no
16376	  fi
16377	;;
16378      esac
16379      ;;
16380
16381    sunos4*)
16382      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16383      wlarc=
16384      hardcode_direct_F77=yes
16385      hardcode_shlibpath_var_F77=no
16386      ;;
16387
16388    *)
16389      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16390	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16392      else
16393	ld_shlibs_F77=no
16394      fi
16395      ;;
16396    esac
16397
16398    if test "$ld_shlibs_F77" = no; then
16399      runpath_var=
16400      hardcode_libdir_flag_spec_F77=
16401      export_dynamic_flag_spec_F77=
16402      whole_archive_flag_spec_F77=
16403    fi
16404  else
16405    # PORTME fill in a description of your system's linker (not GNU ld)
16406    case $host_os in
16407    aix3*)
16408      allow_undefined_flag_F77=unsupported
16409      always_export_symbols_F77=yes
16410      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'
16411      # Note: this linker hardcodes the directories in LIBPATH if there
16412      # are no directories specified by -L.
16413      hardcode_minus_L_F77=yes
16414      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16415	# Neither direct hardcoding nor static linking is supported with a
16416	# broken collect2.
16417	hardcode_direct_F77=unsupported
16418      fi
16419      ;;
16420
16421    aix4* | aix5*)
16422      if test "$host_cpu" = ia64; then
16423	# On IA64, the linker does run time linking by default, so we don't
16424	# have to do anything special.
16425	aix_use_runtimelinking=no
16426	exp_sym_flag='-Bexport'
16427	no_entry_flag=""
16428      else
16429	# If we're using GNU nm, then we don't want the "-C" option.
16430	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16431	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16432	  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'
16433	else
16434	  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'
16435	fi
16436	aix_use_runtimelinking=no
16437
16438	# Test if we are trying to use run time linking or normal
16439	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16440	# need to do runtime linking.
16441	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16442	  for ld_flag in $LDFLAGS; do
16443  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16444  	    aix_use_runtimelinking=yes
16445  	    break
16446  	  fi
16447	  done
16448	  ;;
16449	esac
16450
16451	exp_sym_flag='-bexport'
16452	no_entry_flag='-bnoentry'
16453      fi
16454
16455      # When large executables or shared objects are built, AIX ld can
16456      # have problems creating the table of contents.  If linking a library
16457      # or program results in "error TOC overflow" add -mminimal-toc to
16458      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16459      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16460
16461      archive_cmds_F77=''
16462      hardcode_direct_F77=yes
16463      hardcode_libdir_separator_F77=':'
16464      link_all_deplibs_F77=yes
16465
16466      if test "$GCC" = yes; then
16467	case $host_os in aix4.[012]|aix4.[012].*)
16468	# We only want to do this on AIX 4.2 and lower, the check
16469	# below for broken collect2 doesn't work under 4.3+
16470	  collect2name=`${CC} -print-prog-name=collect2`
16471	  if test -f "$collect2name" && \
16472  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16473	  then
16474  	  # We have reworked collect2
16475  	  hardcode_direct_F77=yes
16476	  else
16477  	  # We have old collect2
16478  	  hardcode_direct_F77=unsupported
16479  	  # It fails to find uninstalled libraries when the uninstalled
16480  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16481  	  # to unsupported forces relinking
16482  	  hardcode_minus_L_F77=yes
16483  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16484  	  hardcode_libdir_separator_F77=
16485	  fi
16486	  ;;
16487	esac
16488	shared_flag='-shared'
16489	if test "$aix_use_runtimelinking" = yes; then
16490	  shared_flag="$shared_flag "'${wl}-G'
16491	fi
16492      else
16493	# not using gcc
16494	if test "$host_cpu" = ia64; then
16495  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16496  	# chokes on -Wl,-G. The following line is correct:
16497	  shared_flag='-G'
16498	else
16499	  if test "$aix_use_runtimelinking" = yes; then
16500	    shared_flag='${wl}-G'
16501	  else
16502	    shared_flag='${wl}-bM:SRE'
16503	  fi
16504	fi
16505      fi
16506
16507      # It seems that -bexpall does not export symbols beginning with
16508      # underscore (_), so it is better to generate a list of symbols to export.
16509      always_export_symbols_F77=yes
16510      if test "$aix_use_runtimelinking" = yes; then
16511	# Warning - without using the other runtime loading flags (-brtl),
16512	# -berok will link without error, but may produce a broken library.
16513	allow_undefined_flag_F77='-berok'
16514       # Determine the default libpath from the value encoded in an empty executable.
16515       cat >conftest.$ac_ext <<_ACEOF
16516      program main
16517
16518      end
16519_ACEOF
16520rm -f conftest.$ac_objext conftest$ac_exeext
16521if { (ac_try="$ac_link"
16522case "(($ac_try" in
16523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524  *) ac_try_echo=$ac_try;;
16525esac
16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527  (eval "$ac_link") 2>conftest.er1
16528  ac_status=$?
16529  grep -v '^ *+' conftest.er1 >conftest.err
16530  rm -f conftest.er1
16531  cat conftest.err >&5
16532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533  (exit $ac_status); } &&
16534	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16535  { (case "(($ac_try" in
16536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537  *) ac_try_echo=$ac_try;;
16538esac
16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540  (eval "$ac_try") 2>&5
16541  ac_status=$?
16542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543  (exit $ac_status); }; } &&
16544	 { ac_try='test -s conftest$ac_exeext'
16545  { (case "(($ac_try" in
16546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547  *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550  (eval "$ac_try") 2>&5
16551  ac_status=$?
16552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553  (exit $ac_status); }; }; then
16554
16555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16556}'`
16557# Check for a 64-bit object if we didn't find anything.
16558if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16559}'`; fi
16560else
16561  echo "$as_me: failed program was:" >&5
16562sed 's/^/| /' conftest.$ac_ext >&5
16563
16564
16565fi
16566
16567rm -f core conftest.err conftest.$ac_objext \
16568      conftest$ac_exeext conftest.$ac_ext
16569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16570
16571       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16572	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"
16573       else
16574	if test "$host_cpu" = ia64; then
16575	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16576	  allow_undefined_flag_F77="-z nodefs"
16577	  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"
16578	else
16579	 # Determine the default libpath from the value encoded in an empty executable.
16580	 cat >conftest.$ac_ext <<_ACEOF
16581      program main
16582
16583      end
16584_ACEOF
16585rm -f conftest.$ac_objext conftest$ac_exeext
16586if { (ac_try="$ac_link"
16587case "(($ac_try" in
16588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589  *) ac_try_echo=$ac_try;;
16590esac
16591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592  (eval "$ac_link") 2>conftest.er1
16593  ac_status=$?
16594  grep -v '^ *+' conftest.er1 >conftest.err
16595  rm -f conftest.er1
16596  cat conftest.err >&5
16597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598  (exit $ac_status); } &&
16599	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16600  { (case "(($ac_try" in
16601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602  *) ac_try_echo=$ac_try;;
16603esac
16604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605  (eval "$ac_try") 2>&5
16606  ac_status=$?
16607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608  (exit $ac_status); }; } &&
16609	 { ac_try='test -s conftest$ac_exeext'
16610  { (case "(($ac_try" in
16611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612  *) ac_try_echo=$ac_try;;
16613esac
16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615  (eval "$ac_try") 2>&5
16616  ac_status=$?
16617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618  (exit $ac_status); }; }; then
16619
16620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16621}'`
16622# Check for a 64-bit object if we didn't find anything.
16623if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16624}'`; fi
16625else
16626  echo "$as_me: failed program was:" >&5
16627sed 's/^/| /' conftest.$ac_ext >&5
16628
16629
16630fi
16631
16632rm -f core conftest.err conftest.$ac_objext \
16633      conftest$ac_exeext conftest.$ac_ext
16634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16635
16636	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16637	  # Warning - without using the other run time loading flags,
16638	  # -berok will link without error, but may produce a broken library.
16639	  no_undefined_flag_F77=' ${wl}-bernotok'
16640	  allow_undefined_flag_F77=' ${wl}-berok'
16641	  # Exported symbols can be pulled into shared objects from archives
16642	  whole_archive_flag_spec_F77='$convenience'
16643	  archive_cmds_need_lc_F77=yes
16644	  # This is similar to how AIX traditionally builds its shared libraries.
16645	  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'
16646	fi
16647      fi
16648      ;;
16649
16650    amigaos*)
16651      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)'
16652      hardcode_libdir_flag_spec_F77='-L$libdir'
16653      hardcode_minus_L_F77=yes
16654      # see comment about different semantics on the GNU ld section
16655      ld_shlibs_F77=no
16656      ;;
16657
16658    bsdi[45]*)
16659      export_dynamic_flag_spec_F77=-rdynamic
16660      ;;
16661
16662    cygwin* | mingw* | pw32*)
16663      # When not using gcc, we currently assume that we are using
16664      # Microsoft Visual C++.
16665      # hardcode_libdir_flag_spec is actually meaningless, as there is
16666      # no search path for DLLs.
16667      hardcode_libdir_flag_spec_F77=' '
16668      allow_undefined_flag_F77=unsupported
16669      # Tell ltmain to make .lib files, not .a files.
16670      libext=lib
16671      # Tell ltmain to make .dll files, not .so files.
16672      shrext_cmds=".dll"
16673      # FIXME: Setting linknames here is a bad hack.
16674      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16675      # The linker will automatically build a .lib file if we build a DLL.
16676      old_archive_From_new_cmds_F77='true'
16677      # FIXME: Should let the user specify the lib program.
16678      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16679      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16680      enable_shared_with_static_runtimes_F77=yes
16681      ;;
16682
16683    darwin* | rhapsody*)
16684      case $host_os in
16685        rhapsody* | darwin1.[012])
16686         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16687         ;;
16688       *) # Darwin 1.3 on
16689         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16690           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16691         else
16692           case ${MACOSX_DEPLOYMENT_TARGET} in
16693             10.[012])
16694               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16695               ;;
16696             10.*)
16697               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16698               ;;
16699           esac
16700         fi
16701         ;;
16702      esac
16703      archive_cmds_need_lc_F77=no
16704      hardcode_direct_F77=no
16705      hardcode_automatic_F77=yes
16706      hardcode_shlibpath_var_F77=unsupported
16707      whole_archive_flag_spec_F77=''
16708      link_all_deplibs_F77=yes
16709    if test "$GCC" = yes ; then
16710    	output_verbose_link_cmd='echo'
16711        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16712      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16713      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16714      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}'
16715      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}'
16716    else
16717      case $cc_basename in
16718        xlc*)
16719         output_verbose_link_cmd='echo'
16720         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16721         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16722          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16723         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16724          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}'
16725          ;;
16726       *)
16727         ld_shlibs_F77=no
16728          ;;
16729      esac
16730    fi
16731      ;;
16732
16733    dgux*)
16734      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16735      hardcode_libdir_flag_spec_F77='-L$libdir'
16736      hardcode_shlibpath_var_F77=no
16737      ;;
16738
16739    freebsd1*)
16740      ld_shlibs_F77=no
16741      ;;
16742
16743    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16744    # support.  Future versions do this automatically, but an explicit c++rt0.o
16745    # does not break anything, and helps significantly (at the cost of a little
16746    # extra space).
16747    freebsd2.2*)
16748      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16749      hardcode_libdir_flag_spec_F77='-R$libdir'
16750      hardcode_direct_F77=yes
16751      hardcode_shlibpath_var_F77=no
16752      ;;
16753
16754    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16755    freebsd2*)
16756      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16757      hardcode_direct_F77=yes
16758      hardcode_minus_L_F77=yes
16759      hardcode_shlibpath_var_F77=no
16760      ;;
16761
16762    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16763    freebsd* | kfreebsd*-gnu | dragonfly*)
16764      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16765      hardcode_libdir_flag_spec_F77='-R$libdir'
16766      hardcode_direct_F77=yes
16767      hardcode_shlibpath_var_F77=no
16768      ;;
16769
16770    hpux9*)
16771      if test "$GCC" = yes; then
16772	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'
16773      else
16774	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'
16775      fi
16776      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16777      hardcode_libdir_separator_F77=:
16778      hardcode_direct_F77=yes
16779
16780      # hardcode_minus_L: Not really in the search PATH,
16781      # but as the default location of the library.
16782      hardcode_minus_L_F77=yes
16783      export_dynamic_flag_spec_F77='${wl}-E'
16784      ;;
16785
16786    hpux10*)
16787      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16788	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16789      else
16790	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16791      fi
16792      if test "$with_gnu_ld" = no; then
16793	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16794	hardcode_libdir_separator_F77=:
16795
16796	hardcode_direct_F77=yes
16797	export_dynamic_flag_spec_F77='${wl}-E'
16798
16799	# hardcode_minus_L: Not really in the search PATH,
16800	# but as the default location of the library.
16801	hardcode_minus_L_F77=yes
16802      fi
16803      ;;
16804
16805    hpux11*)
16806      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16807	case $host_cpu in
16808	hppa*64*)
16809	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16810	  ;;
16811	ia64*)
16812	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16813	  ;;
16814	*)
16815	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16816	  ;;
16817	esac
16818      else
16819	case $host_cpu in
16820	hppa*64*)
16821	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16822	  ;;
16823	ia64*)
16824	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16825	  ;;
16826	*)
16827	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16828	  ;;
16829	esac
16830      fi
16831      if test "$with_gnu_ld" = no; then
16832	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16833	hardcode_libdir_separator_F77=:
16834
16835	case $host_cpu in
16836	hppa*64*|ia64*)
16837	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16838	  hardcode_direct_F77=no
16839	  hardcode_shlibpath_var_F77=no
16840	  ;;
16841	*)
16842	  hardcode_direct_F77=yes
16843	  export_dynamic_flag_spec_F77='${wl}-E'
16844
16845	  # hardcode_minus_L: Not really in the search PATH,
16846	  # but as the default location of the library.
16847	  hardcode_minus_L_F77=yes
16848	  ;;
16849	esac
16850      fi
16851      ;;
16852
16853    irix5* | irix6* | nonstopux*)
16854      if test "$GCC" = yes; then
16855	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'
16856      else
16857	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'
16858	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16859      fi
16860      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16861      hardcode_libdir_separator_F77=:
16862      link_all_deplibs_F77=yes
16863      ;;
16864
16865    netbsd*)
16866      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16867	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16868      else
16869	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16870      fi
16871      hardcode_libdir_flag_spec_F77='-R$libdir'
16872      hardcode_direct_F77=yes
16873      hardcode_shlibpath_var_F77=no
16874      ;;
16875
16876    newsos6)
16877      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878      hardcode_direct_F77=yes
16879      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16880      hardcode_libdir_separator_F77=:
16881      hardcode_shlibpath_var_F77=no
16882      ;;
16883
16884    openbsd*)
16885      hardcode_direct_F77=yes
16886      hardcode_shlibpath_var_F77=no
16887      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16888	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16889	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16890	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16891	export_dynamic_flag_spec_F77='${wl}-E'
16892      else
16893       case $host_os in
16894	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16895	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16896	   hardcode_libdir_flag_spec_F77='-R$libdir'
16897	   ;;
16898	 *)
16899	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16900	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16901	   ;;
16902       esac
16903      fi
16904      ;;
16905
16906    os2*)
16907      hardcode_libdir_flag_spec_F77='-L$libdir'
16908      hardcode_minus_L_F77=yes
16909      allow_undefined_flag_F77=unsupported
16910      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'
16911      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16912      ;;
16913
16914    osf3*)
16915      if test "$GCC" = yes; then
16916	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16917	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'
16918      else
16919	allow_undefined_flag_F77=' -expect_unresolved \*'
16920	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'
16921      fi
16922      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16923      hardcode_libdir_separator_F77=:
16924      ;;
16925
16926    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16927      if test "$GCC" = yes; then
16928	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16929	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'
16930	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16931      else
16932	allow_undefined_flag_F77=' -expect_unresolved \*'
16933	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'
16934	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~
16935	$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'
16936
16937	# Both c and cxx compiler support -rpath directly
16938	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16939      fi
16940      hardcode_libdir_separator_F77=:
16941      ;;
16942
16943    solaris*)
16944      no_undefined_flag_F77=' -z text'
16945      if test "$GCC" = yes; then
16946	wlarc='${wl}'
16947	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16949	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16950      else
16951	wlarc=''
16952	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16954  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16955      fi
16956      hardcode_libdir_flag_spec_F77='-R$libdir'
16957      hardcode_shlibpath_var_F77=no
16958      case $host_os in
16959      solaris2.[0-5] | solaris2.[0-5].*) ;;
16960      *)
16961 	# The compiler driver will combine linker options so we
16962 	# cannot just pass the convience library names through
16963 	# without $wl, iff we do not link with $LD.
16964 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16965 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16966 	case $wlarc in
16967 	'')
16968 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16969 	*)
16970 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16971 	esac ;;
16972      esac
16973      link_all_deplibs_F77=yes
16974      ;;
16975
16976    sunos4*)
16977      if test "x$host_vendor" = xsequent; then
16978	# Use $CC to link under sequent, because it throws in some extra .o
16979	# files that make .init and .fini sections work.
16980	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16981      else
16982	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16983      fi
16984      hardcode_libdir_flag_spec_F77='-L$libdir'
16985      hardcode_direct_F77=yes
16986      hardcode_minus_L_F77=yes
16987      hardcode_shlibpath_var_F77=no
16988      ;;
16989
16990    sysv4)
16991      case $host_vendor in
16992	sni)
16993	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16994	  hardcode_direct_F77=yes # is this really true???
16995	;;
16996	siemens)
16997	  ## LD is ld it makes a PLAMLIB
16998	  ## CC just makes a GrossModule.
16999	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17000	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17001	  hardcode_direct_F77=no
17002        ;;
17003	motorola)
17004	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17006	;;
17007      esac
17008      runpath_var='LD_RUN_PATH'
17009      hardcode_shlibpath_var_F77=no
17010      ;;
17011
17012    sysv4.3*)
17013      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014      hardcode_shlibpath_var_F77=no
17015      export_dynamic_flag_spec_F77='-Bexport'
17016      ;;
17017
17018    sysv4*MP*)
17019      if test -d /usr/nec; then
17020	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17021	hardcode_shlibpath_var_F77=no
17022	runpath_var=LD_RUN_PATH
17023	hardcode_runpath_var=yes
17024	ld_shlibs_F77=yes
17025      fi
17026      ;;
17027
17028    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17029      no_undefined_flag_F77='${wl}-z,text'
17030      archive_cmds_need_lc_F77=no
17031      hardcode_shlibpath_var_F77=no
17032      runpath_var='LD_RUN_PATH'
17033
17034      if test "$GCC" = yes; then
17035	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17036	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037      else
17038	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17039	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040      fi
17041      ;;
17042
17043    sysv5* | sco3.2v5* | sco5v6*)
17044      # Note: We can NOT use -z defs as we might desire, because we do not
17045      # link with -lc, and that would cause any symbols used from libc to
17046      # always be unresolved, which means just about no library would
17047      # ever link correctly.  If we're not using GNU ld we use -z text
17048      # though, which does catch some bad symbols but isn't as heavy-handed
17049      # as -z defs.
17050      no_undefined_flag_F77='${wl}-z,text'
17051      allow_undefined_flag_F77='${wl}-z,nodefs'
17052      archive_cmds_need_lc_F77=no
17053      hardcode_shlibpath_var_F77=no
17054      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17055      hardcode_libdir_separator_F77=':'
17056      link_all_deplibs_F77=yes
17057      export_dynamic_flag_spec_F77='${wl}-Bexport'
17058      runpath_var='LD_RUN_PATH'
17059
17060      if test "$GCC" = yes; then
17061	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17062	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063      else
17064	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17065	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066      fi
17067      ;;
17068
17069    uts4*)
17070      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17071      hardcode_libdir_flag_spec_F77='-L$libdir'
17072      hardcode_shlibpath_var_F77=no
17073      ;;
17074
17075    *)
17076      ld_shlibs_F77=no
17077      ;;
17078    esac
17079  fi
17080
17081{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17082echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17083test "$ld_shlibs_F77" = no && can_build_shared=no
17084
17085#
17086# Do we need to explicitly link libc?
17087#
17088case "x$archive_cmds_need_lc_F77" in
17089x|xyes)
17090  # Assume -lc should be added
17091  archive_cmds_need_lc_F77=yes
17092
17093  if test "$enable_shared" = yes && test "$GCC" = yes; then
17094    case $archive_cmds_F77 in
17095    *'~'*)
17096      # FIXME: we may have to deal with multi-command sequences.
17097      ;;
17098    '$CC '*)
17099      # Test whether the compiler implicitly links with -lc since on some
17100      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17101      # to ld, don't add -lc before -lgcc.
17102      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17103echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17104      $rm conftest*
17105      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17106
17107      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108  (eval $ac_compile) 2>&5
17109  ac_status=$?
17110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111  (exit $ac_status); } 2>conftest.err; then
17112        soname=conftest
17113        lib=conftest
17114        libobjs=conftest.$ac_objext
17115        deplibs=
17116        wl=$lt_prog_compiler_wl_F77
17117	pic_flag=$lt_prog_compiler_pic_F77
17118        compiler_flags=-v
17119        linker_flags=-v
17120        verstring=
17121        output_objdir=.
17122        libname=conftest
17123        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17124        allow_undefined_flag_F77=
17125        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17126  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17127  ac_status=$?
17128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129  (exit $ac_status); }
17130        then
17131	  archive_cmds_need_lc_F77=no
17132        else
17133	  archive_cmds_need_lc_F77=yes
17134        fi
17135        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17136      else
17137        cat conftest.err 1>&5
17138      fi
17139      $rm conftest*
17140      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17141echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17142      ;;
17143    esac
17144  fi
17145  ;;
17146esac
17147
17148{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17149echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17150library_names_spec=
17151libname_spec='lib$name'
17152soname_spec=
17153shrext_cmds=".so"
17154postinstall_cmds=
17155postuninstall_cmds=
17156finish_cmds=
17157finish_eval=
17158shlibpath_var=
17159shlibpath_overrides_runpath=unknown
17160version_type=none
17161dynamic_linker="$host_os ld.so"
17162sys_lib_dlsearch_path_spec="/lib /usr/lib"
17163if test "$GCC" = yes; then
17164  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17165  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17166    # if the path contains ";" then we assume it to be the separator
17167    # otherwise default to the standard path separator (i.e. ":") - it is
17168    # assumed that no part of a normal pathname contains ";" but that should
17169    # okay in the real world where ";" in dirpaths is itself problematic.
17170    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17171  else
17172    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17173  fi
17174else
17175  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17176fi
17177need_lib_prefix=unknown
17178hardcode_into_libs=no
17179
17180# when you set need_version to no, make sure it does not cause -set_version
17181# flags to be left without arguments
17182need_version=unknown
17183
17184case $host_os in
17185aix3*)
17186  version_type=linux
17187  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17188  shlibpath_var=LIBPATH
17189
17190  # AIX 3 has no versioning support, so we append a major version to the name.
17191  soname_spec='${libname}${release}${shared_ext}$major'
17192  ;;
17193
17194aix4* | aix5*)
17195  version_type=linux
17196  need_lib_prefix=no
17197  need_version=no
17198  hardcode_into_libs=yes
17199  if test "$host_cpu" = ia64; then
17200    # AIX 5 supports IA64
17201    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17202    shlibpath_var=LD_LIBRARY_PATH
17203  else
17204    # With GCC up to 2.95.x, collect2 would create an import file
17205    # for dependence libraries.  The import file would start with
17206    # the line `#! .'.  This would cause the generated library to
17207    # depend on `.', always an invalid library.  This was fixed in
17208    # development snapshots of GCC prior to 3.0.
17209    case $host_os in
17210      aix4 | aix4.[01] | aix4.[01].*)
17211      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17212	   echo ' yes '
17213	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17214	:
17215      else
17216	can_build_shared=no
17217      fi
17218      ;;
17219    esac
17220    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17221    # soname into executable. Probably we can add versioning support to
17222    # collect2, so additional links can be useful in future.
17223    if test "$aix_use_runtimelinking" = yes; then
17224      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17225      # instead of lib<name>.a to let people know that these are not
17226      # typical AIX shared libraries.
17227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228    else
17229      # We preserve .a as extension for shared libraries through AIX4.2
17230      # and later when we are not doing run time linking.
17231      library_names_spec='${libname}${release}.a $libname.a'
17232      soname_spec='${libname}${release}${shared_ext}$major'
17233    fi
17234    shlibpath_var=LIBPATH
17235  fi
17236  ;;
17237
17238amigaos*)
17239  library_names_spec='$libname.ixlibrary $libname.a'
17240  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17241  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'
17242  ;;
17243
17244beos*)
17245  library_names_spec='${libname}${shared_ext}'
17246  dynamic_linker="$host_os ld.so"
17247  shlibpath_var=LIBRARY_PATH
17248  ;;
17249
17250bsdi[45]*)
17251  version_type=linux
17252  need_version=no
17253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254  soname_spec='${libname}${release}${shared_ext}$major'
17255  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17256  shlibpath_var=LD_LIBRARY_PATH
17257  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17258  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17259  # the default ld.so.conf also contains /usr/contrib/lib and
17260  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17261  # libtool to hard-code these into programs
17262  ;;
17263
17264cygwin* | mingw* | pw32*)
17265  version_type=windows
17266  shrext_cmds=".dll"
17267  need_version=no
17268  need_lib_prefix=no
17269
17270  case $GCC,$host_os in
17271  yes,cygwin* | yes,mingw* | yes,pw32*)
17272    library_names_spec='$libname.dll.a'
17273    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17274    postinstall_cmds='base_file=`basename \${file}`~
17275      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17276      dldir=$destdir/`dirname \$dlpath`~
17277      test -d \$dldir || mkdir -p \$dldir~
17278      $install_prog $dir/$dlname \$dldir/$dlname~
17279      chmod a+x \$dldir/$dlname'
17280    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17281      dlpath=$dir/\$dldll~
17282       $rm \$dlpath'
17283    shlibpath_overrides_runpath=yes
17284
17285    case $host_os in
17286    cygwin*)
17287      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17288      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17289      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17290      ;;
17291    mingw*)
17292      # MinGW DLLs use traditional 'lib' prefix
17293      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17295      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17296        # It is most probably a Windows format PATH printed by
17297        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17298        # path with ; separators, and with drive letters. We can handle the
17299        # drive letters (cygwin fileutils understands them), so leave them,
17300        # especially as we might pass files found there to a mingw objdump,
17301        # which wouldn't understand a cygwinified path. Ahh.
17302        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17303      else
17304        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17305      fi
17306      ;;
17307    pw32*)
17308      # pw32 DLLs use 'pw' prefix rather than 'lib'
17309      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17310      ;;
17311    esac
17312    ;;
17313
17314  *)
17315    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17316    ;;
17317  esac
17318  dynamic_linker='Win32 ld.exe'
17319  # FIXME: first we should search . and the directory the executable is in
17320  shlibpath_var=PATH
17321  ;;
17322
17323darwin* | rhapsody*)
17324  dynamic_linker="$host_os dyld"
17325  version_type=darwin
17326  need_lib_prefix=no
17327  need_version=no
17328  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17329  soname_spec='${libname}${release}${major}$shared_ext'
17330  shlibpath_overrides_runpath=yes
17331  shlibpath_var=DYLD_LIBRARY_PATH
17332  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17333  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17334  if test "$GCC" = yes; then
17335    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17336  else
17337    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17338  fi
17339  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17340  ;;
17341
17342dgux*)
17343  version_type=linux
17344  need_lib_prefix=no
17345  need_version=no
17346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17347  soname_spec='${libname}${release}${shared_ext}$major'
17348  shlibpath_var=LD_LIBRARY_PATH
17349  ;;
17350
17351freebsd1*)
17352  dynamic_linker=no
17353  ;;
17354
17355kfreebsd*-gnu)
17356  version_type=linux
17357  need_lib_prefix=no
17358  need_version=no
17359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17360  soname_spec='${libname}${release}${shared_ext}$major'
17361  shlibpath_var=LD_LIBRARY_PATH
17362  shlibpath_overrides_runpath=no
17363  hardcode_into_libs=yes
17364  dynamic_linker='GNU ld.so'
17365  ;;
17366
17367freebsd* | dragonfly*)
17368  # DragonFly does not have aout.  When/if they implement a new
17369  # versioning mechanism, adjust this.
17370  if test -x /usr/bin/objformat; then
17371    objformat=`/usr/bin/objformat`
17372  else
17373    case $host_os in
17374    freebsd[123]*) objformat=aout ;;
17375    *) objformat=elf ;;
17376    esac
17377  fi
17378  version_type=freebsd-$objformat
17379  case $version_type in
17380    freebsd-elf*)
17381      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17382      need_version=no
17383      need_lib_prefix=no
17384      ;;
17385    freebsd-*)
17386      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17387      need_version=yes
17388      ;;
17389  esac
17390  shlibpath_var=LD_LIBRARY_PATH
17391  case $host_os in
17392  freebsd2*)
17393    shlibpath_overrides_runpath=yes
17394    ;;
17395  freebsd3.[01]* | freebsdelf3.[01]*)
17396    shlibpath_overrides_runpath=yes
17397    hardcode_into_libs=yes
17398    ;;
17399  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17400  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17401    shlibpath_overrides_runpath=no
17402    hardcode_into_libs=yes
17403    ;;
17404  freebsd*) # from 4.6 on
17405    shlibpath_overrides_runpath=yes
17406    hardcode_into_libs=yes
17407    ;;
17408  esac
17409  ;;
17410
17411gnu*)
17412  version_type=linux
17413  need_lib_prefix=no
17414  need_version=no
17415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17416  soname_spec='${libname}${release}${shared_ext}$major'
17417  shlibpath_var=LD_LIBRARY_PATH
17418  hardcode_into_libs=yes
17419  ;;
17420
17421hpux9* | hpux10* | hpux11*)
17422  # Give a soname corresponding to the major version so that dld.sl refuses to
17423  # link against other versions.
17424  version_type=sunos
17425  need_lib_prefix=no
17426  need_version=no
17427  case $host_cpu in
17428  ia64*)
17429    shrext_cmds='.so'
17430    hardcode_into_libs=yes
17431    dynamic_linker="$host_os dld.so"
17432    shlibpath_var=LD_LIBRARY_PATH
17433    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435    soname_spec='${libname}${release}${shared_ext}$major'
17436    if test "X$HPUX_IA64_MODE" = X32; then
17437      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17438    else
17439      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17440    fi
17441    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17442    ;;
17443   hppa*64*)
17444     shrext_cmds='.sl'
17445     hardcode_into_libs=yes
17446     dynamic_linker="$host_os dld.sl"
17447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450     soname_spec='${libname}${release}${shared_ext}$major'
17451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17453     ;;
17454   *)
17455    shrext_cmds='.sl'
17456    dynamic_linker="$host_os dld.sl"
17457    shlibpath_var=SHLIB_PATH
17458    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460    soname_spec='${libname}${release}${shared_ext}$major'
17461    ;;
17462  esac
17463  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17464  postinstall_cmds='chmod 555 $lib'
17465  ;;
17466
17467interix3*)
17468  version_type=linux
17469  need_lib_prefix=no
17470  need_version=no
17471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17472  soname_spec='${libname}${release}${shared_ext}$major'
17473  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17474  shlibpath_var=LD_LIBRARY_PATH
17475  shlibpath_overrides_runpath=no
17476  hardcode_into_libs=yes
17477  ;;
17478
17479irix5* | irix6* | nonstopux*)
17480  case $host_os in
17481    nonstopux*) version_type=nonstopux ;;
17482    *)
17483	if test "$lt_cv_prog_gnu_ld" = yes; then
17484		version_type=linux
17485	else
17486		version_type=irix
17487	fi ;;
17488  esac
17489  need_lib_prefix=no
17490  need_version=no
17491  soname_spec='${libname}${release}${shared_ext}$major'
17492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17493  case $host_os in
17494  irix5* | nonstopux*)
17495    libsuff= shlibsuff=
17496    ;;
17497  *)
17498    case $LD in # libtool.m4 will add one of these switches to LD
17499    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17500      libsuff= shlibsuff= libmagic=32-bit;;
17501    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17502      libsuff=32 shlibsuff=N32 libmagic=N32;;
17503    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17504      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17505    *) libsuff= shlibsuff= libmagic=never-match;;
17506    esac
17507    ;;
17508  esac
17509  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17510  shlibpath_overrides_runpath=no
17511  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17512  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17513  hardcode_into_libs=yes
17514  ;;
17515
17516# No shared lib support for Linux oldld, aout, or coff.
17517linux*oldld* | linux*aout* | linux*coff*)
17518  dynamic_linker=no
17519  ;;
17520
17521# This must be Linux ELF.
17522linux*)
17523  version_type=linux
17524  need_lib_prefix=no
17525  need_version=no
17526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527  soname_spec='${libname}${release}${shared_ext}$major'
17528  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17529  shlibpath_var=LD_LIBRARY_PATH
17530  shlibpath_overrides_runpath=no
17531  # This implies no fast_install, which is unacceptable.
17532  # Some rework will be needed to allow for fast_install
17533  # before this can be enabled.
17534  hardcode_into_libs=yes
17535
17536  # Append ld.so.conf contents to the search path
17537  if test -f /etc/ld.so.conf; then
17538    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17539    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17540  fi
17541
17542  # We used to test for /lib/ld.so.1 and disable shared libraries on
17543  # powerpc, because MkLinux only supported shared libraries with the
17544  # GNU dynamic linker.  Since this was broken with cross compilers,
17545  # most powerpc-linux boxes support dynamic linking these days and
17546  # people can always --disable-shared, the test was removed, and we
17547  # assume the GNU/Linux dynamic linker is in use.
17548  dynamic_linker='GNU/Linux ld.so'
17549  ;;
17550
17551knetbsd*-gnu)
17552  version_type=linux
17553  need_lib_prefix=no
17554  need_version=no
17555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17556  soname_spec='${libname}${release}${shared_ext}$major'
17557  shlibpath_var=LD_LIBRARY_PATH
17558  shlibpath_overrides_runpath=no
17559  hardcode_into_libs=yes
17560  dynamic_linker='GNU ld.so'
17561  ;;
17562
17563netbsd*)
17564  version_type=sunos
17565  need_lib_prefix=no
17566  need_version=no
17567  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17568    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17569    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17570    dynamic_linker='NetBSD (a.out) ld.so'
17571  else
17572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17573    soname_spec='${libname}${release}${shared_ext}$major'
17574    dynamic_linker='NetBSD ld.elf_so'
17575  fi
17576  shlibpath_var=LD_LIBRARY_PATH
17577  shlibpath_overrides_runpath=yes
17578  hardcode_into_libs=yes
17579  ;;
17580
17581newsos6)
17582  version_type=linux
17583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584  shlibpath_var=LD_LIBRARY_PATH
17585  shlibpath_overrides_runpath=yes
17586  ;;
17587
17588nto-qnx*)
17589  version_type=linux
17590  need_lib_prefix=no
17591  need_version=no
17592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17593  soname_spec='${libname}${release}${shared_ext}$major'
17594  shlibpath_var=LD_LIBRARY_PATH
17595  shlibpath_overrides_runpath=yes
17596  ;;
17597
17598openbsd*)
17599  version_type=sunos
17600  sys_lib_dlsearch_path_spec="/usr/lib"
17601  need_lib_prefix=no
17602  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17603  case $host_os in
17604    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17605    *)                         need_version=no  ;;
17606  esac
17607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17608  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17609  shlibpath_var=LD_LIBRARY_PATH
17610  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17611    case $host_os in
17612      openbsd2.[89] | openbsd2.[89].*)
17613	shlibpath_overrides_runpath=no
17614	;;
17615      *)
17616	shlibpath_overrides_runpath=yes
17617	;;
17618      esac
17619  else
17620    shlibpath_overrides_runpath=yes
17621  fi
17622  ;;
17623
17624os2*)
17625  libname_spec='$name'
17626  shrext_cmds=".dll"
17627  need_lib_prefix=no
17628  library_names_spec='$libname${shared_ext} $libname.a'
17629  dynamic_linker='OS/2 ld.exe'
17630  shlibpath_var=LIBPATH
17631  ;;
17632
17633osf3* | osf4* | osf5*)
17634  version_type=osf
17635  need_lib_prefix=no
17636  need_version=no
17637  soname_spec='${libname}${release}${shared_ext}$major'
17638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639  shlibpath_var=LD_LIBRARY_PATH
17640  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17641  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17642  ;;
17643
17644solaris*)
17645  version_type=linux
17646  need_lib_prefix=no
17647  need_version=no
17648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649  soname_spec='${libname}${release}${shared_ext}$major'
17650  shlibpath_var=LD_LIBRARY_PATH
17651  shlibpath_overrides_runpath=yes
17652  hardcode_into_libs=yes
17653  # ldd complains unless libraries are executable
17654  postinstall_cmds='chmod +x $lib'
17655  ;;
17656
17657sunos4*)
17658  version_type=sunos
17659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17660  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17661  shlibpath_var=LD_LIBRARY_PATH
17662  shlibpath_overrides_runpath=yes
17663  if test "$with_gnu_ld" = yes; then
17664    need_lib_prefix=no
17665  fi
17666  need_version=yes
17667  ;;
17668
17669sysv4 | sysv4.3*)
17670  version_type=linux
17671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17672  soname_spec='${libname}${release}${shared_ext}$major'
17673  shlibpath_var=LD_LIBRARY_PATH
17674  case $host_vendor in
17675    sni)
17676      shlibpath_overrides_runpath=no
17677      need_lib_prefix=no
17678      export_dynamic_flag_spec='${wl}-Blargedynsym'
17679      runpath_var=LD_RUN_PATH
17680      ;;
17681    siemens)
17682      need_lib_prefix=no
17683      ;;
17684    motorola)
17685      need_lib_prefix=no
17686      need_version=no
17687      shlibpath_overrides_runpath=no
17688      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17689      ;;
17690  esac
17691  ;;
17692
17693sysv4*MP*)
17694  if test -d /usr/nec ;then
17695    version_type=linux
17696    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17697    soname_spec='$libname${shared_ext}.$major'
17698    shlibpath_var=LD_LIBRARY_PATH
17699  fi
17700  ;;
17701
17702sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17703  version_type=freebsd-elf
17704  need_lib_prefix=no
17705  need_version=no
17706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17707  soname_spec='${libname}${release}${shared_ext}$major'
17708  shlibpath_var=LD_LIBRARY_PATH
17709  hardcode_into_libs=yes
17710  if test "$with_gnu_ld" = yes; then
17711    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17712    shlibpath_overrides_runpath=no
17713  else
17714    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17715    shlibpath_overrides_runpath=yes
17716    case $host_os in
17717      sco3.2v5*)
17718        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17719	;;
17720    esac
17721  fi
17722  sys_lib_dlsearch_path_spec='/usr/lib'
17723  ;;
17724
17725uts4*)
17726  version_type=linux
17727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17728  soname_spec='${libname}${release}${shared_ext}$major'
17729  shlibpath_var=LD_LIBRARY_PATH
17730  ;;
17731
17732*)
17733  dynamic_linker=no
17734  ;;
17735esac
17736{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17737echo "${ECHO_T}$dynamic_linker" >&6; }
17738test "$dynamic_linker" = no && can_build_shared=no
17739
17740variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17741if test "$GCC" = yes; then
17742  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17743fi
17744
17745{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17746echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17747hardcode_action_F77=
17748if test -n "$hardcode_libdir_flag_spec_F77" || \
17749   test -n "$runpath_var_F77" || \
17750   test "X$hardcode_automatic_F77" = "Xyes" ; then
17751
17752  # We can hardcode non-existant directories.
17753  if test "$hardcode_direct_F77" != no &&
17754     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17755     # have to relink, otherwise we might link with an installed library
17756     # when we should be linking with a yet-to-be-installed one
17757     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17758     test "$hardcode_minus_L_F77" != no; then
17759    # Linking always hardcodes the temporary library directory.
17760    hardcode_action_F77=relink
17761  else
17762    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17763    hardcode_action_F77=immediate
17764  fi
17765else
17766  # We cannot hardcode anything, or else we can only hardcode existing
17767  # directories.
17768  hardcode_action_F77=unsupported
17769fi
17770{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17771echo "${ECHO_T}$hardcode_action_F77" >&6; }
17772
17773if test "$hardcode_action_F77" = relink; then
17774  # Fast installation is not supported
17775  enable_fast_install=no
17776elif test "$shlibpath_overrides_runpath" = yes ||
17777     test "$enable_shared" = no; then
17778  # Fast installation is not necessary
17779  enable_fast_install=needless
17780fi
17781
17782
17783# The else clause should only fire when bootstrapping the
17784# libtool distribution, otherwise you forgot to ship ltmain.sh
17785# with your package, and you will get complaints that there are
17786# no rules to generate ltmain.sh.
17787if test -f "$ltmain"; then
17788  # See if we are running on zsh, and set the options which allow our commands through
17789  # without removal of \ escapes.
17790  if test -n "${ZSH_VERSION+set}" ; then
17791    setopt NO_GLOB_SUBST
17792  fi
17793  # Now quote all the things that may contain metacharacters while being
17794  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17795  # variables and quote the copies for generation of the libtool script.
17796  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17797    SED SHELL STRIP \
17798    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800    deplibs_check_method reload_flag reload_cmds need_locks \
17801    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802    lt_cv_sys_global_symbol_to_c_name_address \
17803    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804    old_postinstall_cmds old_postuninstall_cmds \
17805    compiler_F77 \
17806    CC_F77 \
17807    LD_F77 \
17808    lt_prog_compiler_wl_F77 \
17809    lt_prog_compiler_pic_F77 \
17810    lt_prog_compiler_static_F77 \
17811    lt_prog_compiler_no_builtin_flag_F77 \
17812    export_dynamic_flag_spec_F77 \
17813    thread_safe_flag_spec_F77 \
17814    whole_archive_flag_spec_F77 \
17815    enable_shared_with_static_runtimes_F77 \
17816    old_archive_cmds_F77 \
17817    old_archive_from_new_cmds_F77 \
17818    predep_objects_F77 \
17819    postdep_objects_F77 \
17820    predeps_F77 \
17821    postdeps_F77 \
17822    compiler_lib_search_path_F77 \
17823    archive_cmds_F77 \
17824    archive_expsym_cmds_F77 \
17825    postinstall_cmds_F77 \
17826    postuninstall_cmds_F77 \
17827    old_archive_from_expsyms_cmds_F77 \
17828    allow_undefined_flag_F77 \
17829    no_undefined_flag_F77 \
17830    export_symbols_cmds_F77 \
17831    hardcode_libdir_flag_spec_F77 \
17832    hardcode_libdir_flag_spec_ld_F77 \
17833    hardcode_libdir_separator_F77 \
17834    hardcode_automatic_F77 \
17835    module_cmds_F77 \
17836    module_expsym_cmds_F77 \
17837    lt_cv_prog_compiler_c_o_F77 \
17838    exclude_expsyms_F77 \
17839    include_expsyms_F77; do
17840
17841    case $var in
17842    old_archive_cmds_F77 | \
17843    old_archive_from_new_cmds_F77 | \
17844    archive_cmds_F77 | \
17845    archive_expsym_cmds_F77 | \
17846    module_cmds_F77 | \
17847    module_expsym_cmds_F77 | \
17848    old_archive_from_expsyms_cmds_F77 | \
17849    export_symbols_cmds_F77 | \
17850    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851    postinstall_cmds | postuninstall_cmds | \
17852    old_postinstall_cmds | old_postuninstall_cmds | \
17853    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854      # Double-quote double-evaled strings.
17855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17856      ;;
17857    *)
17858      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17859      ;;
17860    esac
17861  done
17862
17863  case $lt_echo in
17864  *'\$0 --fallback-echo"')
17865    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17866    ;;
17867  esac
17868
17869cfgfile="$ofile"
17870
17871  cat <<__EOF__ >> "$cfgfile"
17872# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17873
17874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17875
17876# Shell to use when invoking shell scripts.
17877SHELL=$lt_SHELL
17878
17879# Whether or not to build shared libraries.
17880build_libtool_libs=$enable_shared
17881
17882# Whether or not to build static libraries.
17883build_old_libs=$enable_static
17884
17885# Whether or not to add -lc for building shared libraries.
17886build_libtool_need_lc=$archive_cmds_need_lc_F77
17887
17888# Whether or not to disallow shared libs when runtime libs are static
17889allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17890
17891# Whether or not to optimize for fast installation.
17892fast_install=$enable_fast_install
17893
17894# The host system.
17895host_alias=$host_alias
17896host=$host
17897host_os=$host_os
17898
17899# The build system.
17900build_alias=$build_alias
17901build=$build
17902build_os=$build_os
17903
17904# An echo program that does not interpret backslashes.
17905echo=$lt_echo
17906
17907# The archiver.
17908AR=$lt_AR
17909AR_FLAGS=$lt_AR_FLAGS
17910
17911# A C compiler.
17912LTCC=$lt_LTCC
17913
17914# LTCC compiler flags.
17915LTCFLAGS=$lt_LTCFLAGS
17916
17917# A language-specific compiler.
17918CC=$lt_compiler_F77
17919
17920# Is the compiler the GNU C compiler?
17921with_gcc=$GCC_F77
17922
17923# An ERE matcher.
17924EGREP=$lt_EGREP
17925
17926# The linker used to build libraries.
17927LD=$lt_LD_F77
17928
17929# Whether we need hard or soft links.
17930LN_S=$lt_LN_S
17931
17932# A BSD-compatible nm program.
17933NM=$lt_NM
17934
17935# A symbol stripping program
17936STRIP=$lt_STRIP
17937
17938# Used to examine libraries when file_magic_cmd begins "file"
17939MAGIC_CMD=$MAGIC_CMD
17940
17941# Used on cygwin: DLL creation program.
17942DLLTOOL="$DLLTOOL"
17943
17944# Used on cygwin: object dumper.
17945OBJDUMP="$OBJDUMP"
17946
17947# Used on cygwin: assembler.
17948AS="$AS"
17949
17950# The name of the directory that contains temporary libtool files.
17951objdir=$objdir
17952
17953# How to create reloadable object files.
17954reload_flag=$lt_reload_flag
17955reload_cmds=$lt_reload_cmds
17956
17957# How to pass a linker flag through the compiler.
17958wl=$lt_lt_prog_compiler_wl_F77
17959
17960# Object file suffix (normally "o").
17961objext="$ac_objext"
17962
17963# Old archive suffix (normally "a").
17964libext="$libext"
17965
17966# Shared library suffix (normally ".so").
17967shrext_cmds='$shrext_cmds'
17968
17969# Executable file suffix (normally "").
17970exeext="$exeext"
17971
17972# Additional compiler flags for building library objects.
17973pic_flag=$lt_lt_prog_compiler_pic_F77
17974pic_mode=$pic_mode
17975
17976# What is the maximum length of a command?
17977max_cmd_len=$lt_cv_sys_max_cmd_len
17978
17979# Does compiler simultaneously support -c and -o options?
17980compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17981
17982# Must we lock files when doing compilation?
17983need_locks=$lt_need_locks
17984
17985# Do we need the lib prefix for modules?
17986need_lib_prefix=$need_lib_prefix
17987
17988# Do we need a version for libraries?
17989need_version=$need_version
17990
17991# Whether dlopen is supported.
17992dlopen_support=$enable_dlopen
17993
17994# Whether dlopen of programs is supported.
17995dlopen_self=$enable_dlopen_self
17996
17997# Whether dlopen of statically linked programs is supported.
17998dlopen_self_static=$enable_dlopen_self_static
17999
18000# Compiler flag to prevent dynamic linking.
18001link_static_flag=$lt_lt_prog_compiler_static_F77
18002
18003# Compiler flag to turn off builtin functions.
18004no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18005
18006# Compiler flag to allow reflexive dlopens.
18007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18008
18009# Compiler flag to generate shared objects directly from archives.
18010whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18011
18012# Compiler flag to generate thread-safe objects.
18013thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18014
18015# Library versioning type.
18016version_type=$version_type
18017
18018# Format of library name prefix.
18019libname_spec=$lt_libname_spec
18020
18021# List of archive names.  First name is the real one, the rest are links.
18022# The last name is the one that the linker finds with -lNAME.
18023library_names_spec=$lt_library_names_spec
18024
18025# The coded name of the library, if different from the real name.
18026soname_spec=$lt_soname_spec
18027
18028# Commands used to build and install an old-style archive.
18029RANLIB=$lt_RANLIB
18030old_archive_cmds=$lt_old_archive_cmds_F77
18031old_postinstall_cmds=$lt_old_postinstall_cmds
18032old_postuninstall_cmds=$lt_old_postuninstall_cmds
18033
18034# Create an old-style archive from a shared archive.
18035old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18036
18037# Create a temporary old-style archive to link instead of a shared archive.
18038old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18039
18040# Commands used to build and install a shared archive.
18041archive_cmds=$lt_archive_cmds_F77
18042archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18043postinstall_cmds=$lt_postinstall_cmds
18044postuninstall_cmds=$lt_postuninstall_cmds
18045
18046# Commands used to build a loadable module (assumed same as above if empty)
18047module_cmds=$lt_module_cmds_F77
18048module_expsym_cmds=$lt_module_expsym_cmds_F77
18049
18050# Commands to strip libraries.
18051old_striplib=$lt_old_striplib
18052striplib=$lt_striplib
18053
18054# Dependencies to place before the objects being linked to create a
18055# shared library.
18056predep_objects=$lt_predep_objects_F77
18057
18058# Dependencies to place after the objects being linked to create a
18059# shared library.
18060postdep_objects=$lt_postdep_objects_F77
18061
18062# Dependencies to place before the objects being linked to create a
18063# shared library.
18064predeps=$lt_predeps_F77
18065
18066# Dependencies to place after the objects being linked to create a
18067# shared library.
18068postdeps=$lt_postdeps_F77
18069
18070# The library search path used internally by the compiler when linking
18071# a shared library.
18072compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18073
18074# Method to check whether dependent libraries are shared objects.
18075deplibs_check_method=$lt_deplibs_check_method
18076
18077# Command to use when deplibs_check_method == file_magic.
18078file_magic_cmd=$lt_file_magic_cmd
18079
18080# Flag that allows shared libraries with undefined symbols to be built.
18081allow_undefined_flag=$lt_allow_undefined_flag_F77
18082
18083# Flag that forces no undefined symbols.
18084no_undefined_flag=$lt_no_undefined_flag_F77
18085
18086# Commands used to finish a libtool library installation in a directory.
18087finish_cmds=$lt_finish_cmds
18088
18089# Same as above, but a single script fragment to be evaled but not shown.
18090finish_eval=$lt_finish_eval
18091
18092# Take the output of nm and produce a listing of raw symbols and C names.
18093global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18094
18095# Transform the output of nm in a proper C declaration
18096global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18097
18098# Transform the output of nm in a C name address pair
18099global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18100
18101# This is the shared library runtime path variable.
18102runpath_var=$runpath_var
18103
18104# This is the shared library path variable.
18105shlibpath_var=$shlibpath_var
18106
18107# Is shlibpath searched before the hard-coded library search path?
18108shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18109
18110# How to hardcode a shared library path into an executable.
18111hardcode_action=$hardcode_action_F77
18112
18113# Whether we should hardcode library paths into libraries.
18114hardcode_into_libs=$hardcode_into_libs
18115
18116# Flag to hardcode \$libdir into a binary during linking.
18117# This must work even if \$libdir does not exist.
18118hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18119
18120# If ld is used when linking, flag to hardcode \$libdir into
18121# a binary during linking. This must work even if \$libdir does
18122# not exist.
18123hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18124
18125# Whether we need a single -rpath flag with a separated argument.
18126hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18127
18128# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18129# resulting binary.
18130hardcode_direct=$hardcode_direct_F77
18131
18132# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18133# resulting binary.
18134hardcode_minus_L=$hardcode_minus_L_F77
18135
18136# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18137# the resulting binary.
18138hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18139
18140# Set to yes if building a shared library automatically hardcodes DIR into the library
18141# and all subsequent libraries and executables linked against it.
18142hardcode_automatic=$hardcode_automatic_F77
18143
18144# Variables whose values should be saved in libtool wrapper scripts and
18145# restored at relink time.
18146variables_saved_for_relink="$variables_saved_for_relink"
18147
18148# Whether libtool must link a program against all its dependency libraries.
18149link_all_deplibs=$link_all_deplibs_F77
18150
18151# Compile-time system search path for libraries
18152sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18153
18154# Run-time system search path for libraries
18155sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18156
18157# Fix the shell variable \$srcfile for the compiler.
18158fix_srcfile_path="$fix_srcfile_path_F77"
18159
18160# Set to yes if exported symbols are required.
18161always_export_symbols=$always_export_symbols_F77
18162
18163# The commands to list exported symbols.
18164export_symbols_cmds=$lt_export_symbols_cmds_F77
18165
18166# The commands to extract the exported symbol list from a shared archive.
18167extract_expsyms_cmds=$lt_extract_expsyms_cmds
18168
18169# Symbols that should not be listed in the preloaded symbols.
18170exclude_expsyms=$lt_exclude_expsyms_F77
18171
18172# Symbols that must always be exported.
18173include_expsyms=$lt_include_expsyms_F77
18174
18175# ### END LIBTOOL TAG CONFIG: $tagname
18176
18177__EOF__
18178
18179
18180else
18181  # If there is no Makefile yet, we rely on a make rule to execute
18182  # `config.status --recheck' to rerun these tests and create the
18183  # libtool script then.
18184  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18185  if test -f "$ltmain_in"; then
18186    test -f Makefile && make "$ltmain"
18187  fi
18188fi
18189
18190
18191ac_ext=c
18192ac_cpp='$CPP $CPPFLAGS'
18193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196
18197CC="$lt_save_CC"
18198
18199	else
18200	  tagname=""
18201	fi
18202	;;
18203
18204      GCJ)
18205	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18206
18207
18208# Source file extension for Java test sources.
18209ac_ext=java
18210
18211# Object file extension for compiled Java test sources.
18212objext=o
18213objext_GCJ=$objext
18214
18215# Code to be used in simple compile tests
18216lt_simple_compile_test_code="class foo {}\n"
18217
18218# Code to be used in simple link tests
18219lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18220
18221# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18222
18223# If no C compiler was specified, use CC.
18224LTCC=${LTCC-"$CC"}
18225
18226# If no C compiler flags were specified, use CFLAGS.
18227LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18228
18229# Allow CC to be a program name with arguments.
18230compiler=$CC
18231
18232
18233# save warnings/boilerplate of simple test code
18234ac_outfile=conftest.$ac_objext
18235printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18237_lt_compiler_boilerplate=`cat conftest.err`
18238$rm conftest*
18239
18240ac_outfile=conftest.$ac_objext
18241printf "$lt_simple_link_test_code" >conftest.$ac_ext
18242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18243_lt_linker_boilerplate=`cat conftest.err`
18244$rm conftest*
18245
18246
18247# Allow CC to be a program name with arguments.
18248lt_save_CC="$CC"
18249CC=${GCJ-"gcj"}
18250compiler=$CC
18251compiler_GCJ=$CC
18252for cc_temp in $compiler""; do
18253  case $cc_temp in
18254    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18255    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18256    \-*) ;;
18257    *) break;;
18258  esac
18259done
18260cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18261
18262
18263# GCJ did not exist at the time GCC didn't implicitly link libc in.
18264archive_cmds_need_lc_GCJ=no
18265
18266old_archive_cmds_GCJ=$old_archive_cmds
18267
18268## CAVEAT EMPTOR:
18269## There is no encapsulation within the following macros, do not change
18270## the running order or otherwise move them around unless you know exactly
18271## what you are doing...
18272
18273lt_prog_compiler_no_builtin_flag_GCJ=
18274
18275if test "$GCC" = yes; then
18276  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18277
18278
18279{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18280echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18281if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18282  echo $ECHO_N "(cached) $ECHO_C" >&6
18283else
18284  lt_cv_prog_compiler_rtti_exceptions=no
18285  ac_outfile=conftest.$ac_objext
18286   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18287   lt_compiler_flag="-fno-rtti -fno-exceptions"
18288   # Insert the option either (1) after the last *FLAGS variable, or
18289   # (2) before a word containing "conftest.", or (3) at the end.
18290   # Note that $ac_compile itself does not contain backslashes and begins
18291   # with a dollar sign (not a hyphen), so the echo should work correctly.
18292   # The option is referenced via a variable to avoid confusing sed.
18293   lt_compile=`echo "$ac_compile" | $SED \
18294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18296   -e 's:$: $lt_compiler_flag:'`
18297   (eval echo "\"\$as_me:18297: $lt_compile\"" >&5)
18298   (eval "$lt_compile" 2>conftest.err)
18299   ac_status=$?
18300   cat conftest.err >&5
18301   echo "$as_me:18301: \$? = $ac_status" >&5
18302   if (exit $ac_status) && test -s "$ac_outfile"; then
18303     # The compiler can only warn and ignore the option if not recognized
18304     # So say no if there are warnings other than the usual output.
18305     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18308       lt_cv_prog_compiler_rtti_exceptions=yes
18309     fi
18310   fi
18311   $rm conftest*
18312
18313fi
18314{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18315echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18316
18317if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18318    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18319else
18320    :
18321fi
18322
18323fi
18324
18325lt_prog_compiler_wl_GCJ=
18326lt_prog_compiler_pic_GCJ=
18327lt_prog_compiler_static_GCJ=
18328
18329{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18330echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18331
18332  if test "$GCC" = yes; then
18333    lt_prog_compiler_wl_GCJ='-Wl,'
18334    lt_prog_compiler_static_GCJ='-static'
18335
18336    case $host_os in
18337      aix*)
18338      # All AIX code is PIC.
18339      if test "$host_cpu" = ia64; then
18340	# AIX 5 now supports IA64 processor
18341	lt_prog_compiler_static_GCJ='-Bstatic'
18342      fi
18343      ;;
18344
18345    amigaos*)
18346      # FIXME: we need at least 68020 code to build shared libraries, but
18347      # adding the `-m68020' flag to GCC prevents building anything better,
18348      # like `-m68040'.
18349      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18350      ;;
18351
18352    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18353      # PIC is the default for these OSes.
18354      ;;
18355
18356    mingw* | cygwin* | pw32* | os2*)
18357      # This hack is so that the source file can tell whether it is being
18358      # built for inclusion in a dll (and should export symbols for example).
18359      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18360      # (--disable-auto-import) libraries
18361      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18362      ;;
18363
18364    darwin* | rhapsody*)
18365      # PIC is the default on this platform
18366      # Common symbols not allowed in MH_DYLIB files
18367      lt_prog_compiler_pic_GCJ='-fno-common'
18368      ;;
18369
18370    interix3*)
18371      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18372      # Instead, we relocate shared libraries at runtime.
18373      ;;
18374
18375    msdosdjgpp*)
18376      # Just because we use GCC doesn't mean we suddenly get shared libraries
18377      # on systems that don't support them.
18378      lt_prog_compiler_can_build_shared_GCJ=no
18379      enable_shared=no
18380      ;;
18381
18382    sysv4*MP*)
18383      if test -d /usr/nec; then
18384	lt_prog_compiler_pic_GCJ=-Kconform_pic
18385      fi
18386      ;;
18387
18388    hpux*)
18389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18390      # not for PA HP-UX.
18391      case $host_cpu in
18392      hppa*64*|ia64*)
18393	# +Z the default
18394	;;
18395      *)
18396	lt_prog_compiler_pic_GCJ='-fPIC'
18397	;;
18398      esac
18399      ;;
18400
18401    *)
18402      lt_prog_compiler_pic_GCJ='-fPIC'
18403      ;;
18404    esac
18405  else
18406    # PORTME Check for flag to pass linker flags through the system compiler.
18407    case $host_os in
18408    aix*)
18409      lt_prog_compiler_wl_GCJ='-Wl,'
18410      if test "$host_cpu" = ia64; then
18411	# AIX 5 now supports IA64 processor
18412	lt_prog_compiler_static_GCJ='-Bstatic'
18413      else
18414	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18415      fi
18416      ;;
18417      darwin*)
18418        # PIC is the default on this platform
18419        # Common symbols not allowed in MH_DYLIB files
18420       case $cc_basename in
18421         xlc*)
18422         lt_prog_compiler_pic_GCJ='-qnocommon'
18423         lt_prog_compiler_wl_GCJ='-Wl,'
18424         ;;
18425       esac
18426       ;;
18427
18428    mingw* | cygwin* | pw32* | os2*)
18429      # This hack is so that the source file can tell whether it is being
18430      # built for inclusion in a dll (and should export symbols for example).
18431      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18432      # (--disable-auto-import) libraries
18433      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18434      ;;
18435
18436    hpux9* | hpux10* | hpux11*)
18437      lt_prog_compiler_wl_GCJ='-Wl,'
18438      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18439      # not for PA HP-UX.
18440      case $host_cpu in
18441      hppa*64*|ia64*)
18442	# +Z the default
18443	;;
18444      *)
18445	lt_prog_compiler_pic_GCJ='+Z'
18446	;;
18447      esac
18448      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18449      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18450      ;;
18451
18452    irix5* | irix6* | nonstopux*)
18453      lt_prog_compiler_wl_GCJ='-Wl,'
18454      # PIC (with -KPIC) is the default.
18455      lt_prog_compiler_static_GCJ='-non_shared'
18456      ;;
18457
18458    newsos6)
18459      lt_prog_compiler_pic_GCJ='-KPIC'
18460      lt_prog_compiler_static_GCJ='-Bstatic'
18461      ;;
18462
18463    linux*)
18464      case $cc_basename in
18465      icc* | ecc*)
18466	lt_prog_compiler_wl_GCJ='-Wl,'
18467	lt_prog_compiler_pic_GCJ='-KPIC'
18468	lt_prog_compiler_static_GCJ='-static'
18469        ;;
18470      pgcc* | pgf77* | pgf90* | pgf95*)
18471        # Portland Group compilers (*not* the Pentium gcc compiler,
18472	# which looks to be a dead project)
18473	lt_prog_compiler_wl_GCJ='-Wl,'
18474	lt_prog_compiler_pic_GCJ='-fpic'
18475	lt_prog_compiler_static_GCJ='-Bstatic'
18476        ;;
18477      ccc*)
18478        lt_prog_compiler_wl_GCJ='-Wl,'
18479        # All Alpha code is PIC.
18480        lt_prog_compiler_static_GCJ='-non_shared'
18481        ;;
18482      como)
18483        lt_prog_compiler_wl_GCJ='-lopt='
18484        ;;
18485      *)
18486        case `$CC -V 2>&1 | sed 5q` in
18487	*Sun\ C*)
18488	  # Sun C 5.9
18489	  lt_prog_compiler_pic_GCJ='-KPIC'
18490	  lt_prog_compiler_static_GCJ='-Bstatic'
18491	  lt_prog_compiler_wl_GCJ='-Wl,'
18492	  ;;
18493	*Sun\ F*)
18494	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18495	  lt_prog_compiler_pic_GCJ='-KPIC'
18496	  lt_prog_compiler_static_GCJ='-Bstatic'
18497	  lt_prog_compiler_wl_GCJ=''
18498	  ;;
18499	esac
18500	;;
18501      esac
18502      ;;
18503
18504    osf3* | osf4* | osf5*)
18505      lt_prog_compiler_wl_GCJ='-Wl,'
18506      # All OSF/1 code is PIC.
18507      lt_prog_compiler_static_GCJ='-non_shared'
18508      ;;
18509
18510    solaris*)
18511      lt_prog_compiler_pic_GCJ='-KPIC'
18512      lt_prog_compiler_static_GCJ='-Bstatic'
18513      case $cc_basename in
18514      f77* | f90* | f95*)
18515	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18516      *)
18517	lt_prog_compiler_wl_GCJ='-Wl,';;
18518      esac
18519      ;;
18520
18521    sunos4*)
18522      lt_prog_compiler_wl_GCJ='-Qoption ld '
18523      lt_prog_compiler_pic_GCJ='-PIC'
18524      lt_prog_compiler_static_GCJ='-Bstatic'
18525      ;;
18526
18527    sysv4 | sysv4.2uw2* | sysv4.3*)
18528      lt_prog_compiler_wl_GCJ='-Wl,'
18529      lt_prog_compiler_pic_GCJ='-KPIC'
18530      lt_prog_compiler_static_GCJ='-Bstatic'
18531      ;;
18532
18533    sysv4*MP*)
18534      if test -d /usr/nec ;then
18535	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18536	lt_prog_compiler_static_GCJ='-Bstatic'
18537      fi
18538      ;;
18539
18540    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18541      lt_prog_compiler_wl_GCJ='-Wl,'
18542      lt_prog_compiler_pic_GCJ='-KPIC'
18543      lt_prog_compiler_static_GCJ='-Bstatic'
18544      ;;
18545
18546    unicos*)
18547      lt_prog_compiler_wl_GCJ='-Wl,'
18548      lt_prog_compiler_can_build_shared_GCJ=no
18549      ;;
18550
18551    uts4*)
18552      lt_prog_compiler_pic_GCJ='-pic'
18553      lt_prog_compiler_static_GCJ='-Bstatic'
18554      ;;
18555
18556    *)
18557      lt_prog_compiler_can_build_shared_GCJ=no
18558      ;;
18559    esac
18560  fi
18561
18562{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18563echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18564
18565#
18566# Check to make sure the PIC flag actually works.
18567#
18568if test -n "$lt_prog_compiler_pic_GCJ"; then
18569
18570{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18571echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18572if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18573  echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575  lt_prog_compiler_pic_works_GCJ=no
18576  ac_outfile=conftest.$ac_objext
18577   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18578   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18579   # Insert the option either (1) after the last *FLAGS variable, or
18580   # (2) before a word containing "conftest.", or (3) at the end.
18581   # Note that $ac_compile itself does not contain backslashes and begins
18582   # with a dollar sign (not a hyphen), so the echo should work correctly.
18583   # The option is referenced via a variable to avoid confusing sed.
18584   lt_compile=`echo "$ac_compile" | $SED \
18585   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18587   -e 's:$: $lt_compiler_flag:'`
18588   (eval echo "\"\$as_me:18588: $lt_compile\"" >&5)
18589   (eval "$lt_compile" 2>conftest.err)
18590   ac_status=$?
18591   cat conftest.err >&5
18592   echo "$as_me:18592: \$? = $ac_status" >&5
18593   if (exit $ac_status) && test -s "$ac_outfile"; then
18594     # The compiler can only warn and ignore the option if not recognized
18595     # So say no if there are warnings other than the usual output.
18596     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18597     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18598     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18599       lt_prog_compiler_pic_works_GCJ=yes
18600     fi
18601   fi
18602   $rm conftest*
18603
18604fi
18605{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18606echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18607
18608if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18609    case $lt_prog_compiler_pic_GCJ in
18610     "" | " "*) ;;
18611     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18612     esac
18613else
18614    lt_prog_compiler_pic_GCJ=
18615     lt_prog_compiler_can_build_shared_GCJ=no
18616fi
18617
18618fi
18619case $host_os in
18620  # For platforms which do not support PIC, -DPIC is meaningless:
18621  *djgpp*)
18622    lt_prog_compiler_pic_GCJ=
18623    ;;
18624  *)
18625    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18626    ;;
18627esac
18628
18629#
18630# Check to make sure the static flag actually works.
18631#
18632wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18633{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18634echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18635if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18636  echo $ECHO_N "(cached) $ECHO_C" >&6
18637else
18638  lt_prog_compiler_static_works_GCJ=no
18639   save_LDFLAGS="$LDFLAGS"
18640   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18641   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18642   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18643     # The linker can only warn and ignore the option if not recognized
18644     # So say no if there are warnings
18645     if test -s conftest.err; then
18646       # Append any errors to the config.log.
18647       cat conftest.err 1>&5
18648       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18649       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18650       if diff conftest.exp conftest.er2 >/dev/null; then
18651         lt_prog_compiler_static_works_GCJ=yes
18652       fi
18653     else
18654       lt_prog_compiler_static_works_GCJ=yes
18655     fi
18656   fi
18657   $rm conftest*
18658   LDFLAGS="$save_LDFLAGS"
18659
18660fi
18661{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18662echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18663
18664if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18665    :
18666else
18667    lt_prog_compiler_static_GCJ=
18668fi
18669
18670
18671{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18672echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18673if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18674  echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676  lt_cv_prog_compiler_c_o_GCJ=no
18677   $rm -r conftest 2>/dev/null
18678   mkdir conftest
18679   cd conftest
18680   mkdir out
18681   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18682
18683   lt_compiler_flag="-o out/conftest2.$ac_objext"
18684   # Insert the option either (1) after the last *FLAGS variable, or
18685   # (2) before a word containing "conftest.", or (3) at the end.
18686   # Note that $ac_compile itself does not contain backslashes and begins
18687   # with a dollar sign (not a hyphen), so the echo should work correctly.
18688   lt_compile=`echo "$ac_compile" | $SED \
18689   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18691   -e 's:$: $lt_compiler_flag:'`
18692   (eval echo "\"\$as_me:18692: $lt_compile\"" >&5)
18693   (eval "$lt_compile" 2>out/conftest.err)
18694   ac_status=$?
18695   cat out/conftest.err >&5
18696   echo "$as_me:18696: \$? = $ac_status" >&5
18697   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18698   then
18699     # The compiler can only warn and ignore the option if not recognized
18700     # So say no if there are warnings
18701     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18702     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18703     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18704       lt_cv_prog_compiler_c_o_GCJ=yes
18705     fi
18706   fi
18707   chmod u+w . 2>&5
18708   $rm conftest*
18709   # SGI C++ compiler will create directory out/ii_files/ for
18710   # template instantiation
18711   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18712   $rm out/* && rmdir out
18713   cd ..
18714   rmdir conftest
18715   $rm conftest*
18716
18717fi
18718{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18719echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18720
18721
18722hard_links="nottested"
18723if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18724  # do not overwrite the value of need_locks provided by the user
18725  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18726echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18727  hard_links=yes
18728  $rm conftest*
18729  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18730  touch conftest.a
18731  ln conftest.a conftest.b 2>&5 || hard_links=no
18732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18733  { echo "$as_me:$LINENO: result: $hard_links" >&5
18734echo "${ECHO_T}$hard_links" >&6; }
18735  if test "$hard_links" = no; then
18736    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18737echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18738    need_locks=warn
18739  fi
18740else
18741  need_locks=no
18742fi
18743
18744{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18745echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18746
18747  runpath_var=
18748  allow_undefined_flag_GCJ=
18749  enable_shared_with_static_runtimes_GCJ=no
18750  archive_cmds_GCJ=
18751  archive_expsym_cmds_GCJ=
18752  old_archive_From_new_cmds_GCJ=
18753  old_archive_from_expsyms_cmds_GCJ=
18754  export_dynamic_flag_spec_GCJ=
18755  whole_archive_flag_spec_GCJ=
18756  thread_safe_flag_spec_GCJ=
18757  hardcode_libdir_flag_spec_GCJ=
18758  hardcode_libdir_flag_spec_ld_GCJ=
18759  hardcode_libdir_separator_GCJ=
18760  hardcode_direct_GCJ=no
18761  hardcode_minus_L_GCJ=no
18762  hardcode_shlibpath_var_GCJ=unsupported
18763  link_all_deplibs_GCJ=unknown
18764  hardcode_automatic_GCJ=no
18765  module_cmds_GCJ=
18766  module_expsym_cmds_GCJ=
18767  always_export_symbols_GCJ=no
18768  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18769  # include_expsyms should be a list of space-separated symbols to be *always*
18770  # included in the symbol list
18771  include_expsyms_GCJ=
18772  # exclude_expsyms can be an extended regexp of symbols to exclude
18773  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18774  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18775  # as well as any symbol that contains `d'.
18776  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18777  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18778  # platforms (ab)use it in PIC code, but their linkers get confused if
18779  # the symbol is explicitly referenced.  Since portable code cannot
18780  # rely on this symbol name, it's probably fine to never include it in
18781  # preloaded symbol tables.
18782  extract_expsyms_cmds=
18783  # Just being paranoid about ensuring that cc_basename is set.
18784  for cc_temp in $compiler""; do
18785  case $cc_temp in
18786    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18787    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18788    \-*) ;;
18789    *) break;;
18790  esac
18791done
18792cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18793
18794  case $host_os in
18795  cygwin* | mingw* | pw32*)
18796    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18797    # When not using gcc, we currently assume that we are using
18798    # Microsoft Visual C++.
18799    if test "$GCC" != yes; then
18800      with_gnu_ld=no
18801    fi
18802    ;;
18803  interix*)
18804    # we just hope/assume this is gcc and not c89 (= MSVC++)
18805    with_gnu_ld=yes
18806    ;;
18807  openbsd*)
18808    with_gnu_ld=no
18809    ;;
18810  esac
18811
18812  ld_shlibs_GCJ=yes
18813  if test "$with_gnu_ld" = yes; then
18814    # If archive_cmds runs LD, not CC, wlarc should be empty
18815    wlarc='${wl}'
18816
18817    # Set some defaults for GNU ld with shared library support. These
18818    # are reset later if shared libraries are not supported. Putting them
18819    # here allows them to be overridden if necessary.
18820    runpath_var=LD_RUN_PATH
18821    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18822    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18823    # ancient GNU ld didn't support --whole-archive et. al.
18824    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18825	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18826      else
18827  	whole_archive_flag_spec_GCJ=
18828    fi
18829    supports_anon_versioning=no
18830    case `$LD -v 2>/dev/null` in
18831      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18832      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18833      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18834      *\ 2.11.*) ;; # other 2.11 versions
18835      *) supports_anon_versioning=yes ;;
18836    esac
18837
18838    # See if GNU ld supports shared libraries.
18839    case $host_os in
18840    aix3* | aix4* | aix5*)
18841      # On AIX/PPC, the GNU linker is very broken
18842      if test "$host_cpu" != ia64; then
18843	ld_shlibs_GCJ=no
18844	cat <<EOF 1>&2
18845
18846*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18847*** to be unable to reliably create shared libraries on AIX.
18848*** Therefore, libtool is disabling shared libraries support.  If you
18849*** really care for shared libraries, you may want to modify your PATH
18850*** so that a non-GNU linker is found, and then restart.
18851
18852EOF
18853      fi
18854      ;;
18855
18856    amigaos*)
18857      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)'
18858      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859      hardcode_minus_L_GCJ=yes
18860
18861      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18862      # that the semantics of dynamic libraries on AmigaOS, at least up
18863      # to version 4, is to share data among multiple programs linked
18864      # with the same dynamic library.  Since this doesn't match the
18865      # behavior of shared libraries on other platforms, we can't use
18866      # them.
18867      ld_shlibs_GCJ=no
18868      ;;
18869
18870    beos*)
18871      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18872	allow_undefined_flag_GCJ=unsupported
18873	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18874	# support --undefined.  This deserves some investigation.  FIXME
18875	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18876      else
18877	ld_shlibs_GCJ=no
18878      fi
18879      ;;
18880
18881    cygwin* | mingw* | pw32*)
18882      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18883      # as there is no search path for DLLs.
18884      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18885      allow_undefined_flag_GCJ=unsupported
18886      always_export_symbols_GCJ=no
18887      enable_shared_with_static_runtimes_GCJ=yes
18888      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18889
18890      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18891        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18892	# If the export-symbols file already is a .def file (1st line
18893	# is EXPORTS), use it as is; otherwise, prepend...
18894	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18895	  cp $export_symbols $output_objdir/$soname.def;
18896	else
18897	  echo EXPORTS > $output_objdir/$soname.def;
18898	  cat $export_symbols >> $output_objdir/$soname.def;
18899	fi~
18900	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18901      else
18902	ld_shlibs_GCJ=no
18903      fi
18904      ;;
18905
18906    interix3*)
18907      hardcode_direct_GCJ=no
18908      hardcode_shlibpath_var_GCJ=no
18909      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18910      export_dynamic_flag_spec_GCJ='${wl}-E'
18911      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18912      # Instead, shared libraries are loaded at an image base (0x10000000 by
18913      # default) and relocated if they conflict, which is a slow very memory
18914      # consuming and fragmenting process.  To avoid this, we pick a random,
18915      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18916      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18917      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'
18918      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'
18919      ;;
18920
18921    linux*)
18922      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18923	tmp_addflag=
18924	case $cc_basename,$host_cpu in
18925	pgcc*)				# Portland Group C compiler
18926	  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'
18927	  tmp_addflag=' $pic_flag'
18928	  ;;
18929	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18930	  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'
18931	  tmp_addflag=' $pic_flag -Mnomain' ;;
18932	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18933	  tmp_addflag=' -i_dynamic' ;;
18934	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18935	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18936	ifc* | ifort*)			# Intel Fortran compiler
18937	  tmp_addflag=' -nofor_main' ;;
18938	esac
18939	case `$CC -V 2>&1 | sed 5q` in
18940	*Sun\ C*)			# Sun C 5.9
18941	  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 /dev/null'
18942	  tmp_sharedflag='-G' ;;
18943	*Sun\ F*)			# Sun Fortran 8.3
18944	  tmp_sharedflag='-G' ;;
18945	*)
18946	  tmp_sharedflag='-shared' ;;
18947	esac
18948	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18949
18950	if test $supports_anon_versioning = yes; then
18951	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18952  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18953  $echo "local: *; };" >> $output_objdir/$libname.ver~
18954	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18955	fi
18956      else
18957	ld_shlibs_GCJ=no
18958      fi
18959      ;;
18960
18961    netbsd*)
18962      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18963	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18964	wlarc=
18965      else
18966	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18967	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18968      fi
18969      ;;
18970
18971    solaris*)
18972      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18973	ld_shlibs_GCJ=no
18974	cat <<EOF 1>&2
18975
18976*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18977*** create shared libraries on Solaris systems.  Therefore, libtool
18978*** is disabling shared libraries support.  We urge you to upgrade GNU
18979*** binutils to release 2.9.1 or newer.  Another option is to modify
18980*** your PATH or compiler configuration so that the native linker is
18981*** used, and then restart.
18982
18983EOF
18984      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18985	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18986	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18987      else
18988	ld_shlibs_GCJ=no
18989      fi
18990      ;;
18991
18992    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18993      case `$LD -v 2>&1` in
18994        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18995	ld_shlibs_GCJ=no
18996	cat <<_LT_EOF 1>&2
18997
18998*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18999*** reliably create shared libraries on SCO systems.  Therefore, libtool
19000*** is disabling shared libraries support.  We urge you to upgrade GNU
19001*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19002*** your PATH or compiler configuration so that the native linker is
19003*** used, and then restart.
19004
19005_LT_EOF
19006	;;
19007	*)
19008	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19009	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19010	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19011	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19012	  else
19013	    ld_shlibs_GCJ=no
19014	  fi
19015	;;
19016      esac
19017      ;;
19018
19019    sunos4*)
19020      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19021      wlarc=
19022      hardcode_direct_GCJ=yes
19023      hardcode_shlibpath_var_GCJ=no
19024      ;;
19025
19026    *)
19027      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19028	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19029	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19030      else
19031	ld_shlibs_GCJ=no
19032      fi
19033      ;;
19034    esac
19035
19036    if test "$ld_shlibs_GCJ" = no; then
19037      runpath_var=
19038      hardcode_libdir_flag_spec_GCJ=
19039      export_dynamic_flag_spec_GCJ=
19040      whole_archive_flag_spec_GCJ=
19041    fi
19042  else
19043    # PORTME fill in a description of your system's linker (not GNU ld)
19044    case $host_os in
19045    aix3*)
19046      allow_undefined_flag_GCJ=unsupported
19047      always_export_symbols_GCJ=yes
19048      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'
19049      # Note: this linker hardcodes the directories in LIBPATH if there
19050      # are no directories specified by -L.
19051      hardcode_minus_L_GCJ=yes
19052      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19053	# Neither direct hardcoding nor static linking is supported with a
19054	# broken collect2.
19055	hardcode_direct_GCJ=unsupported
19056      fi
19057      ;;
19058
19059    aix4* | aix5*)
19060      if test "$host_cpu" = ia64; then
19061	# On IA64, the linker does run time linking by default, so we don't
19062	# have to do anything special.
19063	aix_use_runtimelinking=no
19064	exp_sym_flag='-Bexport'
19065	no_entry_flag=""
19066      else
19067	# If we're using GNU nm, then we don't want the "-C" option.
19068	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19069	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19070	  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'
19071	else
19072	  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'
19073	fi
19074	aix_use_runtimelinking=no
19075
19076	# Test if we are trying to use run time linking or normal
19077	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19078	# need to do runtime linking.
19079	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19080	  for ld_flag in $LDFLAGS; do
19081  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19082  	    aix_use_runtimelinking=yes
19083  	    break
19084  	  fi
19085	  done
19086	  ;;
19087	esac
19088
19089	exp_sym_flag='-bexport'
19090	no_entry_flag='-bnoentry'
19091      fi
19092
19093      # When large executables or shared objects are built, AIX ld can
19094      # have problems creating the table of contents.  If linking a library
19095      # or program results in "error TOC overflow" add -mminimal-toc to
19096      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19097      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19098
19099      archive_cmds_GCJ=''
19100      hardcode_direct_GCJ=yes
19101      hardcode_libdir_separator_GCJ=':'
19102      link_all_deplibs_GCJ=yes
19103
19104      if test "$GCC" = yes; then
19105	case $host_os in aix4.[012]|aix4.[012].*)
19106	# We only want to do this on AIX 4.2 and lower, the check
19107	# below for broken collect2 doesn't work under 4.3+
19108	  collect2name=`${CC} -print-prog-name=collect2`
19109	  if test -f "$collect2name" && \
19110  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19111	  then
19112  	  # We have reworked collect2
19113  	  hardcode_direct_GCJ=yes
19114	  else
19115  	  # We have old collect2
19116  	  hardcode_direct_GCJ=unsupported
19117  	  # It fails to find uninstalled libraries when the uninstalled
19118  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19119  	  # to unsupported forces relinking
19120  	  hardcode_minus_L_GCJ=yes
19121  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19122  	  hardcode_libdir_separator_GCJ=
19123	  fi
19124	  ;;
19125	esac
19126	shared_flag='-shared'
19127	if test "$aix_use_runtimelinking" = yes; then
19128	  shared_flag="$shared_flag "'${wl}-G'
19129	fi
19130      else
19131	# not using gcc
19132	if test "$host_cpu" = ia64; then
19133  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19134  	# chokes on -Wl,-G. The following line is correct:
19135	  shared_flag='-G'
19136	else
19137	  if test "$aix_use_runtimelinking" = yes; then
19138	    shared_flag='${wl}-G'
19139	  else
19140	    shared_flag='${wl}-bM:SRE'
19141	  fi
19142	fi
19143      fi
19144
19145      # It seems that -bexpall does not export symbols beginning with
19146      # underscore (_), so it is better to generate a list of symbols to export.
19147      always_export_symbols_GCJ=yes
19148      if test "$aix_use_runtimelinking" = yes; then
19149	# Warning - without using the other runtime loading flags (-brtl),
19150	# -berok will link without error, but may produce a broken library.
19151	allow_undefined_flag_GCJ='-berok'
19152       # Determine the default libpath from the value encoded in an empty executable.
19153       cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h.  */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
19158/* end confdefs.h.  */
19159
19160int
19161main ()
19162{
19163
19164  ;
19165  return 0;
19166}
19167_ACEOF
19168rm -f conftest.$ac_objext conftest$ac_exeext
19169if { (ac_try="$ac_link"
19170case "(($ac_try" in
19171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172  *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175  (eval "$ac_link") 2>conftest.er1
19176  ac_status=$?
19177  grep -v '^ *+' conftest.er1 >conftest.err
19178  rm -f conftest.er1
19179  cat conftest.err >&5
19180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181  (exit $ac_status); } &&
19182	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19183  { (case "(($ac_try" in
19184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185  *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188  (eval "$ac_try") 2>&5
19189  ac_status=$?
19190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191  (exit $ac_status); }; } &&
19192	 { ac_try='test -s conftest$ac_exeext'
19193  { (case "(($ac_try" in
19194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195  *) ac_try_echo=$ac_try;;
19196esac
19197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198  (eval "$ac_try") 2>&5
19199  ac_status=$?
19200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201  (exit $ac_status); }; }; then
19202
19203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19204}'`
19205# Check for a 64-bit object if we didn't find anything.
19206if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19207}'`; fi
19208else
19209  echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212
19213fi
19214
19215rm -f core conftest.err conftest.$ac_objext \
19216      conftest$ac_exeext conftest.$ac_ext
19217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19218
19219       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19220	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"
19221       else
19222	if test "$host_cpu" = ia64; then
19223	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19224	  allow_undefined_flag_GCJ="-z nodefs"
19225	  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"
19226	else
19227	 # Determine the default libpath from the value encoded in an empty executable.
19228	 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h.  */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h.  */
19234
19235int
19236main ()
19237{
19238
19239  ;
19240  return 0;
19241}
19242_ACEOF
19243rm -f conftest.$ac_objext conftest$ac_exeext
19244if { (ac_try="$ac_link"
19245case "(($ac_try" in
19246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247  *) ac_try_echo=$ac_try;;
19248esac
19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250  (eval "$ac_link") 2>conftest.er1
19251  ac_status=$?
19252  grep -v '^ *+' conftest.er1 >conftest.err
19253  rm -f conftest.er1
19254  cat conftest.err >&5
19255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256  (exit $ac_status); } &&
19257	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19258  { (case "(($ac_try" in
19259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260  *) ac_try_echo=$ac_try;;
19261esac
19262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263  (eval "$ac_try") 2>&5
19264  ac_status=$?
19265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266  (exit $ac_status); }; } &&
19267	 { ac_try='test -s conftest$ac_exeext'
19268  { (case "(($ac_try" in
19269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270  *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273  (eval "$ac_try") 2>&5
19274  ac_status=$?
19275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276  (exit $ac_status); }; }; then
19277
19278aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19279}'`
19280# Check for a 64-bit object if we didn't find anything.
19281if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19282}'`; fi
19283else
19284  echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287
19288fi
19289
19290rm -f core conftest.err conftest.$ac_objext \
19291      conftest$ac_exeext conftest.$ac_ext
19292if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19293
19294	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19295	  # Warning - without using the other run time loading flags,
19296	  # -berok will link without error, but may produce a broken library.
19297	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19298	  allow_undefined_flag_GCJ=' ${wl}-berok'
19299	  # Exported symbols can be pulled into shared objects from archives
19300	  whole_archive_flag_spec_GCJ='$convenience'
19301	  archive_cmds_need_lc_GCJ=yes
19302	  # This is similar to how AIX traditionally builds its shared libraries.
19303	  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'
19304	fi
19305      fi
19306      ;;
19307
19308    amigaos*)
19309      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)'
19310      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19311      hardcode_minus_L_GCJ=yes
19312      # see comment about different semantics on the GNU ld section
19313      ld_shlibs_GCJ=no
19314      ;;
19315
19316    bsdi[45]*)
19317      export_dynamic_flag_spec_GCJ=-rdynamic
19318      ;;
19319
19320    cygwin* | mingw* | pw32*)
19321      # When not using gcc, we currently assume that we are using
19322      # Microsoft Visual C++.
19323      # hardcode_libdir_flag_spec is actually meaningless, as there is
19324      # no search path for DLLs.
19325      hardcode_libdir_flag_spec_GCJ=' '
19326      allow_undefined_flag_GCJ=unsupported
19327      # Tell ltmain to make .lib files, not .a files.
19328      libext=lib
19329      # Tell ltmain to make .dll files, not .so files.
19330      shrext_cmds=".dll"
19331      # FIXME: Setting linknames here is a bad hack.
19332      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19333      # The linker will automatically build a .lib file if we build a DLL.
19334      old_archive_From_new_cmds_GCJ='true'
19335      # FIXME: Should let the user specify the lib program.
19336      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19337      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19338      enable_shared_with_static_runtimes_GCJ=yes
19339      ;;
19340
19341    darwin* | rhapsody*)
19342      case $host_os in
19343        rhapsody* | darwin1.[012])
19344         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19345         ;;
19346       *) # Darwin 1.3 on
19347         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19348           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19349         else
19350           case ${MACOSX_DEPLOYMENT_TARGET} in
19351             10.[012])
19352               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19353               ;;
19354             10.*)
19355               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19356               ;;
19357           esac
19358         fi
19359         ;;
19360      esac
19361      archive_cmds_need_lc_GCJ=no
19362      hardcode_direct_GCJ=no
19363      hardcode_automatic_GCJ=yes
19364      hardcode_shlibpath_var_GCJ=unsupported
19365      whole_archive_flag_spec_GCJ=''
19366      link_all_deplibs_GCJ=yes
19367    if test "$GCC" = yes ; then
19368    	output_verbose_link_cmd='echo'
19369        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19370      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19371      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19372      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}'
19373      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}'
19374    else
19375      case $cc_basename in
19376        xlc*)
19377         output_verbose_link_cmd='echo'
19378         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19379         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19380          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19381         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19382          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}'
19383          ;;
19384       *)
19385         ld_shlibs_GCJ=no
19386          ;;
19387      esac
19388    fi
19389      ;;
19390
19391    dgux*)
19392      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19393      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19394      hardcode_shlibpath_var_GCJ=no
19395      ;;
19396
19397    freebsd1*)
19398      ld_shlibs_GCJ=no
19399      ;;
19400
19401    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19402    # support.  Future versions do this automatically, but an explicit c++rt0.o
19403    # does not break anything, and helps significantly (at the cost of a little
19404    # extra space).
19405    freebsd2.2*)
19406      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19407      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19408      hardcode_direct_GCJ=yes
19409      hardcode_shlibpath_var_GCJ=no
19410      ;;
19411
19412    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19413    freebsd2*)
19414      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19415      hardcode_direct_GCJ=yes
19416      hardcode_minus_L_GCJ=yes
19417      hardcode_shlibpath_var_GCJ=no
19418      ;;
19419
19420    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19421    freebsd* | kfreebsd*-gnu | dragonfly*)
19422      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19423      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19424      hardcode_direct_GCJ=yes
19425      hardcode_shlibpath_var_GCJ=no
19426      ;;
19427
19428    hpux9*)
19429      if test "$GCC" = yes; then
19430	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'
19431      else
19432	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'
19433      fi
19434      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19435      hardcode_libdir_separator_GCJ=:
19436      hardcode_direct_GCJ=yes
19437
19438      # hardcode_minus_L: Not really in the search PATH,
19439      # but as the default location of the library.
19440      hardcode_minus_L_GCJ=yes
19441      export_dynamic_flag_spec_GCJ='${wl}-E'
19442      ;;
19443
19444    hpux10*)
19445      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19446	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19447      else
19448	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19449      fi
19450      if test "$with_gnu_ld" = no; then
19451	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19452	hardcode_libdir_separator_GCJ=:
19453
19454	hardcode_direct_GCJ=yes
19455	export_dynamic_flag_spec_GCJ='${wl}-E'
19456
19457	# hardcode_minus_L: Not really in the search PATH,
19458	# but as the default location of the library.
19459	hardcode_minus_L_GCJ=yes
19460      fi
19461      ;;
19462
19463    hpux11*)
19464      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19465	case $host_cpu in
19466	hppa*64*)
19467	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468	  ;;
19469	ia64*)
19470	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19471	  ;;
19472	*)
19473	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19474	  ;;
19475	esac
19476      else
19477	case $host_cpu in
19478	hppa*64*)
19479	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19480	  ;;
19481	ia64*)
19482	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19483	  ;;
19484	*)
19485	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19486	  ;;
19487	esac
19488      fi
19489      if test "$with_gnu_ld" = no; then
19490	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19491	hardcode_libdir_separator_GCJ=:
19492
19493	case $host_cpu in
19494	hppa*64*|ia64*)
19495	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19496	  hardcode_direct_GCJ=no
19497	  hardcode_shlibpath_var_GCJ=no
19498	  ;;
19499	*)
19500	  hardcode_direct_GCJ=yes
19501	  export_dynamic_flag_spec_GCJ='${wl}-E'
19502
19503	  # hardcode_minus_L: Not really in the search PATH,
19504	  # but as the default location of the library.
19505	  hardcode_minus_L_GCJ=yes
19506	  ;;
19507	esac
19508      fi
19509      ;;
19510
19511    irix5* | irix6* | nonstopux*)
19512      if test "$GCC" = yes; then
19513	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'
19514      else
19515	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'
19516	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19517      fi
19518      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19519      hardcode_libdir_separator_GCJ=:
19520      link_all_deplibs_GCJ=yes
19521      ;;
19522
19523    netbsd*)
19524      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19525	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19526      else
19527	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19528      fi
19529      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19530      hardcode_direct_GCJ=yes
19531      hardcode_shlibpath_var_GCJ=no
19532      ;;
19533
19534    newsos6)
19535      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19536      hardcode_direct_GCJ=yes
19537      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19538      hardcode_libdir_separator_GCJ=:
19539      hardcode_shlibpath_var_GCJ=no
19540      ;;
19541
19542    openbsd*)
19543      hardcode_direct_GCJ=yes
19544      hardcode_shlibpath_var_GCJ=no
19545      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19546	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19547	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19548	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19549	export_dynamic_flag_spec_GCJ='${wl}-E'
19550      else
19551       case $host_os in
19552	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19553	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19554	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19555	   ;;
19556	 *)
19557	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19558	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19559	   ;;
19560       esac
19561      fi
19562      ;;
19563
19564    os2*)
19565      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19566      hardcode_minus_L_GCJ=yes
19567      allow_undefined_flag_GCJ=unsupported
19568      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'
19569      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19570      ;;
19571
19572    osf3*)
19573      if test "$GCC" = yes; then
19574	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19575	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'
19576      else
19577	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19578	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'
19579      fi
19580      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19581      hardcode_libdir_separator_GCJ=:
19582      ;;
19583
19584    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19585      if test "$GCC" = yes; then
19586	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19587	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'
19588	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19589      else
19590	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19591	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'
19592	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~
19593	$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'
19594
19595	# Both c and cxx compiler support -rpath directly
19596	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19597      fi
19598      hardcode_libdir_separator_GCJ=:
19599      ;;
19600
19601    solaris*)
19602      no_undefined_flag_GCJ=' -z text'
19603      if test "$GCC" = yes; then
19604	wlarc='${wl}'
19605	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19606	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19607	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19608      else
19609	wlarc=''
19610	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19611	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19612  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19613      fi
19614      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19615      hardcode_shlibpath_var_GCJ=no
19616      case $host_os in
19617      solaris2.[0-5] | solaris2.[0-5].*) ;;
19618      *)
19619 	# The compiler driver will combine linker options so we
19620 	# cannot just pass the convience library names through
19621 	# without $wl, iff we do not link with $LD.
19622 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19623 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19624 	case $wlarc in
19625 	'')
19626 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19627 	*)
19628 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19629 	esac ;;
19630      esac
19631      link_all_deplibs_GCJ=yes
19632      ;;
19633
19634    sunos4*)
19635      if test "x$host_vendor" = xsequent; then
19636	# Use $CC to link under sequent, because it throws in some extra .o
19637	# files that make .init and .fini sections work.
19638	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19639      else
19640	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19641      fi
19642      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19643      hardcode_direct_GCJ=yes
19644      hardcode_minus_L_GCJ=yes
19645      hardcode_shlibpath_var_GCJ=no
19646      ;;
19647
19648    sysv4)
19649      case $host_vendor in
19650	sni)
19651	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652	  hardcode_direct_GCJ=yes # is this really true???
19653	;;
19654	siemens)
19655	  ## LD is ld it makes a PLAMLIB
19656	  ## CC just makes a GrossModule.
19657	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19658	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19659	  hardcode_direct_GCJ=no
19660        ;;
19661	motorola)
19662	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19663	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19664	;;
19665      esac
19666      runpath_var='LD_RUN_PATH'
19667      hardcode_shlibpath_var_GCJ=no
19668      ;;
19669
19670    sysv4.3*)
19671      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19672      hardcode_shlibpath_var_GCJ=no
19673      export_dynamic_flag_spec_GCJ='-Bexport'
19674      ;;
19675
19676    sysv4*MP*)
19677      if test -d /usr/nec; then
19678	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19679	hardcode_shlibpath_var_GCJ=no
19680	runpath_var=LD_RUN_PATH
19681	hardcode_runpath_var=yes
19682	ld_shlibs_GCJ=yes
19683      fi
19684      ;;
19685
19686    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19687      no_undefined_flag_GCJ='${wl}-z,text'
19688      archive_cmds_need_lc_GCJ=no
19689      hardcode_shlibpath_var_GCJ=no
19690      runpath_var='LD_RUN_PATH'
19691
19692      if test "$GCC" = yes; then
19693	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19694	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19695      else
19696	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19697	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698      fi
19699      ;;
19700
19701    sysv5* | sco3.2v5* | sco5v6*)
19702      # Note: We can NOT use -z defs as we might desire, because we do not
19703      # link with -lc, and that would cause any symbols used from libc to
19704      # always be unresolved, which means just about no library would
19705      # ever link correctly.  If we're not using GNU ld we use -z text
19706      # though, which does catch some bad symbols but isn't as heavy-handed
19707      # as -z defs.
19708      no_undefined_flag_GCJ='${wl}-z,text'
19709      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19710      archive_cmds_need_lc_GCJ=no
19711      hardcode_shlibpath_var_GCJ=no
19712      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19713      hardcode_libdir_separator_GCJ=':'
19714      link_all_deplibs_GCJ=yes
19715      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19716      runpath_var='LD_RUN_PATH'
19717
19718      if test "$GCC" = yes; then
19719	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19720	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19721      else
19722	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19724      fi
19725      ;;
19726
19727    uts4*)
19728      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19730      hardcode_shlibpath_var_GCJ=no
19731      ;;
19732
19733    *)
19734      ld_shlibs_GCJ=no
19735      ;;
19736    esac
19737  fi
19738
19739{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19740echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19741test "$ld_shlibs_GCJ" = no && can_build_shared=no
19742
19743#
19744# Do we need to explicitly link libc?
19745#
19746case "x$archive_cmds_need_lc_GCJ" in
19747x|xyes)
19748  # Assume -lc should be added
19749  archive_cmds_need_lc_GCJ=yes
19750
19751  if test "$enable_shared" = yes && test "$GCC" = yes; then
19752    case $archive_cmds_GCJ in
19753    *'~'*)
19754      # FIXME: we may have to deal with multi-command sequences.
19755      ;;
19756    '$CC '*)
19757      # Test whether the compiler implicitly links with -lc since on some
19758      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19759      # to ld, don't add -lc before -lgcc.
19760      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19761echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19762      $rm conftest*
19763      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19764
19765      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766  (eval $ac_compile) 2>&5
19767  ac_status=$?
19768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769  (exit $ac_status); } 2>conftest.err; then
19770        soname=conftest
19771        lib=conftest
19772        libobjs=conftest.$ac_objext
19773        deplibs=
19774        wl=$lt_prog_compiler_wl_GCJ
19775	pic_flag=$lt_prog_compiler_pic_GCJ
19776        compiler_flags=-v
19777        linker_flags=-v
19778        verstring=
19779        output_objdir=.
19780        libname=conftest
19781        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19782        allow_undefined_flag_GCJ=
19783        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19784  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19785  ac_status=$?
19786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787  (exit $ac_status); }
19788        then
19789	  archive_cmds_need_lc_GCJ=no
19790        else
19791	  archive_cmds_need_lc_GCJ=yes
19792        fi
19793        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19794      else
19795        cat conftest.err 1>&5
19796      fi
19797      $rm conftest*
19798      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19799echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19800      ;;
19801    esac
19802  fi
19803  ;;
19804esac
19805
19806{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19807echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19808library_names_spec=
19809libname_spec='lib$name'
19810soname_spec=
19811shrext_cmds=".so"
19812postinstall_cmds=
19813postuninstall_cmds=
19814finish_cmds=
19815finish_eval=
19816shlibpath_var=
19817shlibpath_overrides_runpath=unknown
19818version_type=none
19819dynamic_linker="$host_os ld.so"
19820sys_lib_dlsearch_path_spec="/lib /usr/lib"
19821if test "$GCC" = yes; then
19822  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19823  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19824    # if the path contains ";" then we assume it to be the separator
19825    # otherwise default to the standard path separator (i.e. ":") - it is
19826    # assumed that no part of a normal pathname contains ";" but that should
19827    # okay in the real world where ";" in dirpaths is itself problematic.
19828    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19829  else
19830    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19831  fi
19832else
19833  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19834fi
19835need_lib_prefix=unknown
19836hardcode_into_libs=no
19837
19838# when you set need_version to no, make sure it does not cause -set_version
19839# flags to be left without arguments
19840need_version=unknown
19841
19842case $host_os in
19843aix3*)
19844  version_type=linux
19845  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19846  shlibpath_var=LIBPATH
19847
19848  # AIX 3 has no versioning support, so we append a major version to the name.
19849  soname_spec='${libname}${release}${shared_ext}$major'
19850  ;;
19851
19852aix4* | aix5*)
19853  version_type=linux
19854  need_lib_prefix=no
19855  need_version=no
19856  hardcode_into_libs=yes
19857  if test "$host_cpu" = ia64; then
19858    # AIX 5 supports IA64
19859    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19860    shlibpath_var=LD_LIBRARY_PATH
19861  else
19862    # With GCC up to 2.95.x, collect2 would create an import file
19863    # for dependence libraries.  The import file would start with
19864    # the line `#! .'.  This would cause the generated library to
19865    # depend on `.', always an invalid library.  This was fixed in
19866    # development snapshots of GCC prior to 3.0.
19867    case $host_os in
19868      aix4 | aix4.[01] | aix4.[01].*)
19869      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19870	   echo ' yes '
19871	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19872	:
19873      else
19874	can_build_shared=no
19875      fi
19876      ;;
19877    esac
19878    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19879    # soname into executable. Probably we can add versioning support to
19880    # collect2, so additional links can be useful in future.
19881    if test "$aix_use_runtimelinking" = yes; then
19882      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19883      # instead of lib<name>.a to let people know that these are not
19884      # typical AIX shared libraries.
19885      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19886    else
19887      # We preserve .a as extension for shared libraries through AIX4.2
19888      # and later when we are not doing run time linking.
19889      library_names_spec='${libname}${release}.a $libname.a'
19890      soname_spec='${libname}${release}${shared_ext}$major'
19891    fi
19892    shlibpath_var=LIBPATH
19893  fi
19894  ;;
19895
19896amigaos*)
19897  library_names_spec='$libname.ixlibrary $libname.a'
19898  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19899  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'
19900  ;;
19901
19902beos*)
19903  library_names_spec='${libname}${shared_ext}'
19904  dynamic_linker="$host_os ld.so"
19905  shlibpath_var=LIBRARY_PATH
19906  ;;
19907
19908bsdi[45]*)
19909  version_type=linux
19910  need_version=no
19911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19912  soname_spec='${libname}${release}${shared_ext}$major'
19913  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19914  shlibpath_var=LD_LIBRARY_PATH
19915  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19916  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19917  # the default ld.so.conf also contains /usr/contrib/lib and
19918  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19919  # libtool to hard-code these into programs
19920  ;;
19921
19922cygwin* | mingw* | pw32*)
19923  version_type=windows
19924  shrext_cmds=".dll"
19925  need_version=no
19926  need_lib_prefix=no
19927
19928  case $GCC,$host_os in
19929  yes,cygwin* | yes,mingw* | yes,pw32*)
19930    library_names_spec='$libname.dll.a'
19931    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19932    postinstall_cmds='base_file=`basename \${file}`~
19933      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19934      dldir=$destdir/`dirname \$dlpath`~
19935      test -d \$dldir || mkdir -p \$dldir~
19936      $install_prog $dir/$dlname \$dldir/$dlname~
19937      chmod a+x \$dldir/$dlname'
19938    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19939      dlpath=$dir/\$dldll~
19940       $rm \$dlpath'
19941    shlibpath_overrides_runpath=yes
19942
19943    case $host_os in
19944    cygwin*)
19945      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19946      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19947      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19948      ;;
19949    mingw*)
19950      # MinGW DLLs use traditional 'lib' prefix
19951      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19952      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19953      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19954        # It is most probably a Windows format PATH printed by
19955        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19956        # path with ; separators, and with drive letters. We can handle the
19957        # drive letters (cygwin fileutils understands them), so leave them,
19958        # especially as we might pass files found there to a mingw objdump,
19959        # which wouldn't understand a cygwinified path. Ahh.
19960        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19961      else
19962        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19963      fi
19964      ;;
19965    pw32*)
19966      # pw32 DLLs use 'pw' prefix rather than 'lib'
19967      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19968      ;;
19969    esac
19970    ;;
19971
19972  *)
19973    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19974    ;;
19975  esac
19976  dynamic_linker='Win32 ld.exe'
19977  # FIXME: first we should search . and the directory the executable is in
19978  shlibpath_var=PATH
19979  ;;
19980
19981darwin* | rhapsody*)
19982  dynamic_linker="$host_os dyld"
19983  version_type=darwin
19984  need_lib_prefix=no
19985  need_version=no
19986  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19987  soname_spec='${libname}${release}${major}$shared_ext'
19988  shlibpath_overrides_runpath=yes
19989  shlibpath_var=DYLD_LIBRARY_PATH
19990  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19991  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19992  if test "$GCC" = yes; then
19993    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19994  else
19995    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19996  fi
19997  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19998  ;;
19999
20000dgux*)
20001  version_type=linux
20002  need_lib_prefix=no
20003  need_version=no
20004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20005  soname_spec='${libname}${release}${shared_ext}$major'
20006  shlibpath_var=LD_LIBRARY_PATH
20007  ;;
20008
20009freebsd1*)
20010  dynamic_linker=no
20011  ;;
20012
20013kfreebsd*-gnu)
20014  version_type=linux
20015  need_lib_prefix=no
20016  need_version=no
20017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20018  soname_spec='${libname}${release}${shared_ext}$major'
20019  shlibpath_var=LD_LIBRARY_PATH
20020  shlibpath_overrides_runpath=no
20021  hardcode_into_libs=yes
20022  dynamic_linker='GNU ld.so'
20023  ;;
20024
20025freebsd* | dragonfly*)
20026  # DragonFly does not have aout.  When/if they implement a new
20027  # versioning mechanism, adjust this.
20028  if test -x /usr/bin/objformat; then
20029    objformat=`/usr/bin/objformat`
20030  else
20031    case $host_os in
20032    freebsd[123]*) objformat=aout ;;
20033    *) objformat=elf ;;
20034    esac
20035  fi
20036  version_type=freebsd-$objformat
20037  case $version_type in
20038    freebsd-elf*)
20039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20040      need_version=no
20041      need_lib_prefix=no
20042      ;;
20043    freebsd-*)
20044      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20045      need_version=yes
20046      ;;
20047  esac
20048  shlibpath_var=LD_LIBRARY_PATH
20049  case $host_os in
20050  freebsd2*)
20051    shlibpath_overrides_runpath=yes
20052    ;;
20053  freebsd3.[01]* | freebsdelf3.[01]*)
20054    shlibpath_overrides_runpath=yes
20055    hardcode_into_libs=yes
20056    ;;
20057  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20058  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20059    shlibpath_overrides_runpath=no
20060    hardcode_into_libs=yes
20061    ;;
20062  freebsd*) # from 4.6 on
20063    shlibpath_overrides_runpath=yes
20064    hardcode_into_libs=yes
20065    ;;
20066  esac
20067  ;;
20068
20069gnu*)
20070  version_type=linux
20071  need_lib_prefix=no
20072  need_version=no
20073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20074  soname_spec='${libname}${release}${shared_ext}$major'
20075  shlibpath_var=LD_LIBRARY_PATH
20076  hardcode_into_libs=yes
20077  ;;
20078
20079hpux9* | hpux10* | hpux11*)
20080  # Give a soname corresponding to the major version so that dld.sl refuses to
20081  # link against other versions.
20082  version_type=sunos
20083  need_lib_prefix=no
20084  need_version=no
20085  case $host_cpu in
20086  ia64*)
20087    shrext_cmds='.so'
20088    hardcode_into_libs=yes
20089    dynamic_linker="$host_os dld.so"
20090    shlibpath_var=LD_LIBRARY_PATH
20091    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20093    soname_spec='${libname}${release}${shared_ext}$major'
20094    if test "X$HPUX_IA64_MODE" = X32; then
20095      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20096    else
20097      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20098    fi
20099    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20100    ;;
20101   hppa*64*)
20102     shrext_cmds='.sl'
20103     hardcode_into_libs=yes
20104     dynamic_linker="$host_os dld.sl"
20105     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20108     soname_spec='${libname}${release}${shared_ext}$major'
20109     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20111     ;;
20112   *)
20113    shrext_cmds='.sl'
20114    dynamic_linker="$host_os dld.sl"
20115    shlibpath_var=SHLIB_PATH
20116    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118    soname_spec='${libname}${release}${shared_ext}$major'
20119    ;;
20120  esac
20121  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20122  postinstall_cmds='chmod 555 $lib'
20123  ;;
20124
20125interix3*)
20126  version_type=linux
20127  need_lib_prefix=no
20128  need_version=no
20129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20130  soname_spec='${libname}${release}${shared_ext}$major'
20131  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20132  shlibpath_var=LD_LIBRARY_PATH
20133  shlibpath_overrides_runpath=no
20134  hardcode_into_libs=yes
20135  ;;
20136
20137irix5* | irix6* | nonstopux*)
20138  case $host_os in
20139    nonstopux*) version_type=nonstopux ;;
20140    *)
20141	if test "$lt_cv_prog_gnu_ld" = yes; then
20142		version_type=linux
20143	else
20144		version_type=irix
20145	fi ;;
20146  esac
20147  need_lib_prefix=no
20148  need_version=no
20149  soname_spec='${libname}${release}${shared_ext}$major'
20150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20151  case $host_os in
20152  irix5* | nonstopux*)
20153    libsuff= shlibsuff=
20154    ;;
20155  *)
20156    case $LD in # libtool.m4 will add one of these switches to LD
20157    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20158      libsuff= shlibsuff= libmagic=32-bit;;
20159    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20160      libsuff=32 shlibsuff=N32 libmagic=N32;;
20161    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20162      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20163    *) libsuff= shlibsuff= libmagic=never-match;;
20164    esac
20165    ;;
20166  esac
20167  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20168  shlibpath_overrides_runpath=no
20169  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20170  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20171  hardcode_into_libs=yes
20172  ;;
20173
20174# No shared lib support for Linux oldld, aout, or coff.
20175linux*oldld* | linux*aout* | linux*coff*)
20176  dynamic_linker=no
20177  ;;
20178
20179# This must be Linux ELF.
20180linux*)
20181  version_type=linux
20182  need_lib_prefix=no
20183  need_version=no
20184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185  soname_spec='${libname}${release}${shared_ext}$major'
20186  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20187  shlibpath_var=LD_LIBRARY_PATH
20188  shlibpath_overrides_runpath=no
20189  # This implies no fast_install, which is unacceptable.
20190  # Some rework will be needed to allow for fast_install
20191  # before this can be enabled.
20192  hardcode_into_libs=yes
20193
20194  # Append ld.so.conf contents to the search path
20195  if test -f /etc/ld.so.conf; then
20196    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20197    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20198  fi
20199
20200  # We used to test for /lib/ld.so.1 and disable shared libraries on
20201  # powerpc, because MkLinux only supported shared libraries with the
20202  # GNU dynamic linker.  Since this was broken with cross compilers,
20203  # most powerpc-linux boxes support dynamic linking these days and
20204  # people can always --disable-shared, the test was removed, and we
20205  # assume the GNU/Linux dynamic linker is in use.
20206  dynamic_linker='GNU/Linux ld.so'
20207  ;;
20208
20209knetbsd*-gnu)
20210  version_type=linux
20211  need_lib_prefix=no
20212  need_version=no
20213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20214  soname_spec='${libname}${release}${shared_ext}$major'
20215  shlibpath_var=LD_LIBRARY_PATH
20216  shlibpath_overrides_runpath=no
20217  hardcode_into_libs=yes
20218  dynamic_linker='GNU ld.so'
20219  ;;
20220
20221netbsd*)
20222  version_type=sunos
20223  need_lib_prefix=no
20224  need_version=no
20225  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20227    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20228    dynamic_linker='NetBSD (a.out) ld.so'
20229  else
20230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20231    soname_spec='${libname}${release}${shared_ext}$major'
20232    dynamic_linker='NetBSD ld.elf_so'
20233  fi
20234  shlibpath_var=LD_LIBRARY_PATH
20235  shlibpath_overrides_runpath=yes
20236  hardcode_into_libs=yes
20237  ;;
20238
20239newsos6)
20240  version_type=linux
20241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242  shlibpath_var=LD_LIBRARY_PATH
20243  shlibpath_overrides_runpath=yes
20244  ;;
20245
20246nto-qnx*)
20247  version_type=linux
20248  need_lib_prefix=no
20249  need_version=no
20250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251  soname_spec='${libname}${release}${shared_ext}$major'
20252  shlibpath_var=LD_LIBRARY_PATH
20253  shlibpath_overrides_runpath=yes
20254  ;;
20255
20256openbsd*)
20257  version_type=sunos
20258  sys_lib_dlsearch_path_spec="/usr/lib"
20259  need_lib_prefix=no
20260  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20261  case $host_os in
20262    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20263    *)                         need_version=no  ;;
20264  esac
20265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20267  shlibpath_var=LD_LIBRARY_PATH
20268  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20269    case $host_os in
20270      openbsd2.[89] | openbsd2.[89].*)
20271	shlibpath_overrides_runpath=no
20272	;;
20273      *)
20274	shlibpath_overrides_runpath=yes
20275	;;
20276      esac
20277  else
20278    shlibpath_overrides_runpath=yes
20279  fi
20280  ;;
20281
20282os2*)
20283  libname_spec='$name'
20284  shrext_cmds=".dll"
20285  need_lib_prefix=no
20286  library_names_spec='$libname${shared_ext} $libname.a'
20287  dynamic_linker='OS/2 ld.exe'
20288  shlibpath_var=LIBPATH
20289  ;;
20290
20291osf3* | osf4* | osf5*)
20292  version_type=osf
20293  need_lib_prefix=no
20294  need_version=no
20295  soname_spec='${libname}${release}${shared_ext}$major'
20296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297  shlibpath_var=LD_LIBRARY_PATH
20298  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20299  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20300  ;;
20301
20302solaris*)
20303  version_type=linux
20304  need_lib_prefix=no
20305  need_version=no
20306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307  soname_spec='${libname}${release}${shared_ext}$major'
20308  shlibpath_var=LD_LIBRARY_PATH
20309  shlibpath_overrides_runpath=yes
20310  hardcode_into_libs=yes
20311  # ldd complains unless libraries are executable
20312  postinstall_cmds='chmod +x $lib'
20313  ;;
20314
20315sunos4*)
20316  version_type=sunos
20317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20318  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20319  shlibpath_var=LD_LIBRARY_PATH
20320  shlibpath_overrides_runpath=yes
20321  if test "$with_gnu_ld" = yes; then
20322    need_lib_prefix=no
20323  fi
20324  need_version=yes
20325  ;;
20326
20327sysv4 | sysv4.3*)
20328  version_type=linux
20329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330  soname_spec='${libname}${release}${shared_ext}$major'
20331  shlibpath_var=LD_LIBRARY_PATH
20332  case $host_vendor in
20333    sni)
20334      shlibpath_overrides_runpath=no
20335      need_lib_prefix=no
20336      export_dynamic_flag_spec='${wl}-Blargedynsym'
20337      runpath_var=LD_RUN_PATH
20338      ;;
20339    siemens)
20340      need_lib_prefix=no
20341      ;;
20342    motorola)
20343      need_lib_prefix=no
20344      need_version=no
20345      shlibpath_overrides_runpath=no
20346      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20347      ;;
20348  esac
20349  ;;
20350
20351sysv4*MP*)
20352  if test -d /usr/nec ;then
20353    version_type=linux
20354    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20355    soname_spec='$libname${shared_ext}.$major'
20356    shlibpath_var=LD_LIBRARY_PATH
20357  fi
20358  ;;
20359
20360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20361  version_type=freebsd-elf
20362  need_lib_prefix=no
20363  need_version=no
20364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20365  soname_spec='${libname}${release}${shared_ext}$major'
20366  shlibpath_var=LD_LIBRARY_PATH
20367  hardcode_into_libs=yes
20368  if test "$with_gnu_ld" = yes; then
20369    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20370    shlibpath_overrides_runpath=no
20371  else
20372    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20373    shlibpath_overrides_runpath=yes
20374    case $host_os in
20375      sco3.2v5*)
20376        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20377	;;
20378    esac
20379  fi
20380  sys_lib_dlsearch_path_spec='/usr/lib'
20381  ;;
20382
20383uts4*)
20384  version_type=linux
20385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386  soname_spec='${libname}${release}${shared_ext}$major'
20387  shlibpath_var=LD_LIBRARY_PATH
20388  ;;
20389
20390*)
20391  dynamic_linker=no
20392  ;;
20393esac
20394{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20395echo "${ECHO_T}$dynamic_linker" >&6; }
20396test "$dynamic_linker" = no && can_build_shared=no
20397
20398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20399if test "$GCC" = yes; then
20400  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20401fi
20402
20403{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20404echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20405hardcode_action_GCJ=
20406if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20407   test -n "$runpath_var_GCJ" || \
20408   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20409
20410  # We can hardcode non-existant directories.
20411  if test "$hardcode_direct_GCJ" != no &&
20412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20413     # have to relink, otherwise we might link with an installed library
20414     # when we should be linking with a yet-to-be-installed one
20415     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20416     test "$hardcode_minus_L_GCJ" != no; then
20417    # Linking always hardcodes the temporary library directory.
20418    hardcode_action_GCJ=relink
20419  else
20420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20421    hardcode_action_GCJ=immediate
20422  fi
20423else
20424  # We cannot hardcode anything, or else we can only hardcode existing
20425  # directories.
20426  hardcode_action_GCJ=unsupported
20427fi
20428{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20429echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20430
20431if test "$hardcode_action_GCJ" = relink; then
20432  # Fast installation is not supported
20433  enable_fast_install=no
20434elif test "$shlibpath_overrides_runpath" = yes ||
20435     test "$enable_shared" = no; then
20436  # Fast installation is not necessary
20437  enable_fast_install=needless
20438fi
20439
20440
20441# The else clause should only fire when bootstrapping the
20442# libtool distribution, otherwise you forgot to ship ltmain.sh
20443# with your package, and you will get complaints that there are
20444# no rules to generate ltmain.sh.
20445if test -f "$ltmain"; then
20446  # See if we are running on zsh, and set the options which allow our commands through
20447  # without removal of \ escapes.
20448  if test -n "${ZSH_VERSION+set}" ; then
20449    setopt NO_GLOB_SUBST
20450  fi
20451  # Now quote all the things that may contain metacharacters while being
20452  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20453  # variables and quote the copies for generation of the libtool script.
20454  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20455    SED SHELL STRIP \
20456    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20457    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20458    deplibs_check_method reload_flag reload_cmds need_locks \
20459    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20460    lt_cv_sys_global_symbol_to_c_name_address \
20461    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20462    old_postinstall_cmds old_postuninstall_cmds \
20463    compiler_GCJ \
20464    CC_GCJ \
20465    LD_GCJ \
20466    lt_prog_compiler_wl_GCJ \
20467    lt_prog_compiler_pic_GCJ \
20468    lt_prog_compiler_static_GCJ \
20469    lt_prog_compiler_no_builtin_flag_GCJ \
20470    export_dynamic_flag_spec_GCJ \
20471    thread_safe_flag_spec_GCJ \
20472    whole_archive_flag_spec_GCJ \
20473    enable_shared_with_static_runtimes_GCJ \
20474    old_archive_cmds_GCJ \
20475    old_archive_from_new_cmds_GCJ \
20476    predep_objects_GCJ \
20477    postdep_objects_GCJ \
20478    predeps_GCJ \
20479    postdeps_GCJ \
20480    compiler_lib_search_path_GCJ \
20481    archive_cmds_GCJ \
20482    archive_expsym_cmds_GCJ \
20483    postinstall_cmds_GCJ \
20484    postuninstall_cmds_GCJ \
20485    old_archive_from_expsyms_cmds_GCJ \
20486    allow_undefined_flag_GCJ \
20487    no_undefined_flag_GCJ \
20488    export_symbols_cmds_GCJ \
20489    hardcode_libdir_flag_spec_GCJ \
20490    hardcode_libdir_flag_spec_ld_GCJ \
20491    hardcode_libdir_separator_GCJ \
20492    hardcode_automatic_GCJ \
20493    module_cmds_GCJ \
20494    module_expsym_cmds_GCJ \
20495    lt_cv_prog_compiler_c_o_GCJ \
20496    exclude_expsyms_GCJ \
20497    include_expsyms_GCJ; do
20498
20499    case $var in
20500    old_archive_cmds_GCJ | \
20501    old_archive_from_new_cmds_GCJ | \
20502    archive_cmds_GCJ | \
20503    archive_expsym_cmds_GCJ | \
20504    module_cmds_GCJ | \
20505    module_expsym_cmds_GCJ | \
20506    old_archive_from_expsyms_cmds_GCJ | \
20507    export_symbols_cmds_GCJ | \
20508    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20509    postinstall_cmds | postuninstall_cmds | \
20510    old_postinstall_cmds | old_postuninstall_cmds | \
20511    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20512      # Double-quote double-evaled strings.
20513      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20514      ;;
20515    *)
20516      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20517      ;;
20518    esac
20519  done
20520
20521  case $lt_echo in
20522  *'\$0 --fallback-echo"')
20523    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20524    ;;
20525  esac
20526
20527cfgfile="$ofile"
20528
20529  cat <<__EOF__ >> "$cfgfile"
20530# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20531
20532# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20533
20534# Shell to use when invoking shell scripts.
20535SHELL=$lt_SHELL
20536
20537# Whether or not to build shared libraries.
20538build_libtool_libs=$enable_shared
20539
20540# Whether or not to build static libraries.
20541build_old_libs=$enable_static
20542
20543# Whether or not to add -lc for building shared libraries.
20544build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20545
20546# Whether or not to disallow shared libs when runtime libs are static
20547allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20548
20549# Whether or not to optimize for fast installation.
20550fast_install=$enable_fast_install
20551
20552# The host system.
20553host_alias=$host_alias
20554host=$host
20555host_os=$host_os
20556
20557# The build system.
20558build_alias=$build_alias
20559build=$build
20560build_os=$build_os
20561
20562# An echo program that does not interpret backslashes.
20563echo=$lt_echo
20564
20565# The archiver.
20566AR=$lt_AR
20567AR_FLAGS=$lt_AR_FLAGS
20568
20569# A C compiler.
20570LTCC=$lt_LTCC
20571
20572# LTCC compiler flags.
20573LTCFLAGS=$lt_LTCFLAGS
20574
20575# A language-specific compiler.
20576CC=$lt_compiler_GCJ
20577
20578# Is the compiler the GNU C compiler?
20579with_gcc=$GCC_GCJ
20580
20581# An ERE matcher.
20582EGREP=$lt_EGREP
20583
20584# The linker used to build libraries.
20585LD=$lt_LD_GCJ
20586
20587# Whether we need hard or soft links.
20588LN_S=$lt_LN_S
20589
20590# A BSD-compatible nm program.
20591NM=$lt_NM
20592
20593# A symbol stripping program
20594STRIP=$lt_STRIP
20595
20596# Used to examine libraries when file_magic_cmd begins "file"
20597MAGIC_CMD=$MAGIC_CMD
20598
20599# Used on cygwin: DLL creation program.
20600DLLTOOL="$DLLTOOL"
20601
20602# Used on cygwin: object dumper.
20603OBJDUMP="$OBJDUMP"
20604
20605# Used on cygwin: assembler.
20606AS="$AS"
20607
20608# The name of the directory that contains temporary libtool files.
20609objdir=$objdir
20610
20611# How to create reloadable object files.
20612reload_flag=$lt_reload_flag
20613reload_cmds=$lt_reload_cmds
20614
20615# How to pass a linker flag through the compiler.
20616wl=$lt_lt_prog_compiler_wl_GCJ
20617
20618# Object file suffix (normally "o").
20619objext="$ac_objext"
20620
20621# Old archive suffix (normally "a").
20622libext="$libext"
20623
20624# Shared library suffix (normally ".so").
20625shrext_cmds='$shrext_cmds'
20626
20627# Executable file suffix (normally "").
20628exeext="$exeext"
20629
20630# Additional compiler flags for building library objects.
20631pic_flag=$lt_lt_prog_compiler_pic_GCJ
20632pic_mode=$pic_mode
20633
20634# What is the maximum length of a command?
20635max_cmd_len=$lt_cv_sys_max_cmd_len
20636
20637# Does compiler simultaneously support -c and -o options?
20638compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20639
20640# Must we lock files when doing compilation?
20641need_locks=$lt_need_locks
20642
20643# Do we need the lib prefix for modules?
20644need_lib_prefix=$need_lib_prefix
20645
20646# Do we need a version for libraries?
20647need_version=$need_version
20648
20649# Whether dlopen is supported.
20650dlopen_support=$enable_dlopen
20651
20652# Whether dlopen of programs is supported.
20653dlopen_self=$enable_dlopen_self
20654
20655# Whether dlopen of statically linked programs is supported.
20656dlopen_self_static=$enable_dlopen_self_static
20657
20658# Compiler flag to prevent dynamic linking.
20659link_static_flag=$lt_lt_prog_compiler_static_GCJ
20660
20661# Compiler flag to turn off builtin functions.
20662no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20663
20664# Compiler flag to allow reflexive dlopens.
20665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20666
20667# Compiler flag to generate shared objects directly from archives.
20668whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20669
20670# Compiler flag to generate thread-safe objects.
20671thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20672
20673# Library versioning type.
20674version_type=$version_type
20675
20676# Format of library name prefix.
20677libname_spec=$lt_libname_spec
20678
20679# List of archive names.  First name is the real one, the rest are links.
20680# The last name is the one that the linker finds with -lNAME.
20681library_names_spec=$lt_library_names_spec
20682
20683# The coded name of the library, if different from the real name.
20684soname_spec=$lt_soname_spec
20685
20686# Commands used to build and install an old-style archive.
20687RANLIB=$lt_RANLIB
20688old_archive_cmds=$lt_old_archive_cmds_GCJ
20689old_postinstall_cmds=$lt_old_postinstall_cmds
20690old_postuninstall_cmds=$lt_old_postuninstall_cmds
20691
20692# Create an old-style archive from a shared archive.
20693old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20694
20695# Create a temporary old-style archive to link instead of a shared archive.
20696old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20697
20698# Commands used to build and install a shared archive.
20699archive_cmds=$lt_archive_cmds_GCJ
20700archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20701postinstall_cmds=$lt_postinstall_cmds
20702postuninstall_cmds=$lt_postuninstall_cmds
20703
20704# Commands used to build a loadable module (assumed same as above if empty)
20705module_cmds=$lt_module_cmds_GCJ
20706module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20707
20708# Commands to strip libraries.
20709old_striplib=$lt_old_striplib
20710striplib=$lt_striplib
20711
20712# Dependencies to place before the objects being linked to create a
20713# shared library.
20714predep_objects=$lt_predep_objects_GCJ
20715
20716# Dependencies to place after the objects being linked to create a
20717# shared library.
20718postdep_objects=$lt_postdep_objects_GCJ
20719
20720# Dependencies to place before the objects being linked to create a
20721# shared library.
20722predeps=$lt_predeps_GCJ
20723
20724# Dependencies to place after the objects being linked to create a
20725# shared library.
20726postdeps=$lt_postdeps_GCJ
20727
20728# The library search path used internally by the compiler when linking
20729# a shared library.
20730compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20731
20732# Method to check whether dependent libraries are shared objects.
20733deplibs_check_method=$lt_deplibs_check_method
20734
20735# Command to use when deplibs_check_method == file_magic.
20736file_magic_cmd=$lt_file_magic_cmd
20737
20738# Flag that allows shared libraries with undefined symbols to be built.
20739allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20740
20741# Flag that forces no undefined symbols.
20742no_undefined_flag=$lt_no_undefined_flag_GCJ
20743
20744# Commands used to finish a libtool library installation in a directory.
20745finish_cmds=$lt_finish_cmds
20746
20747# Same as above, but a single script fragment to be evaled but not shown.
20748finish_eval=$lt_finish_eval
20749
20750# Take the output of nm and produce a listing of raw symbols and C names.
20751global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20752
20753# Transform the output of nm in a proper C declaration
20754global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20755
20756# Transform the output of nm in a C name address pair
20757global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20758
20759# This is the shared library runtime path variable.
20760runpath_var=$runpath_var
20761
20762# This is the shared library path variable.
20763shlibpath_var=$shlibpath_var
20764
20765# Is shlibpath searched before the hard-coded library search path?
20766shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20767
20768# How to hardcode a shared library path into an executable.
20769hardcode_action=$hardcode_action_GCJ
20770
20771# Whether we should hardcode library paths into libraries.
20772hardcode_into_libs=$hardcode_into_libs
20773
20774# Flag to hardcode \$libdir into a binary during linking.
20775# This must work even if \$libdir does not exist.
20776hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20777
20778# If ld is used when linking, flag to hardcode \$libdir into
20779# a binary during linking. This must work even if \$libdir does
20780# not exist.
20781hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20782
20783# Whether we need a single -rpath flag with a separated argument.
20784hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20785
20786# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20787# resulting binary.
20788hardcode_direct=$hardcode_direct_GCJ
20789
20790# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20791# resulting binary.
20792hardcode_minus_L=$hardcode_minus_L_GCJ
20793
20794# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20795# the resulting binary.
20796hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20797
20798# Set to yes if building a shared library automatically hardcodes DIR into the library
20799# and all subsequent libraries and executables linked against it.
20800hardcode_automatic=$hardcode_automatic_GCJ
20801
20802# Variables whose values should be saved in libtool wrapper scripts and
20803# restored at relink time.
20804variables_saved_for_relink="$variables_saved_for_relink"
20805
20806# Whether libtool must link a program against all its dependency libraries.
20807link_all_deplibs=$link_all_deplibs_GCJ
20808
20809# Compile-time system search path for libraries
20810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20811
20812# Run-time system search path for libraries
20813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20814
20815# Fix the shell variable \$srcfile for the compiler.
20816fix_srcfile_path="$fix_srcfile_path_GCJ"
20817
20818# Set to yes if exported symbols are required.
20819always_export_symbols=$always_export_symbols_GCJ
20820
20821# The commands to list exported symbols.
20822export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20823
20824# The commands to extract the exported symbol list from a shared archive.
20825extract_expsyms_cmds=$lt_extract_expsyms_cmds
20826
20827# Symbols that should not be listed in the preloaded symbols.
20828exclude_expsyms=$lt_exclude_expsyms_GCJ
20829
20830# Symbols that must always be exported.
20831include_expsyms=$lt_include_expsyms_GCJ
20832
20833# ### END LIBTOOL TAG CONFIG: $tagname
20834
20835__EOF__
20836
20837
20838else
20839  # If there is no Makefile yet, we rely on a make rule to execute
20840  # `config.status --recheck' to rerun these tests and create the
20841  # libtool script then.
20842  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20843  if test -f "$ltmain_in"; then
20844    test -f Makefile && make "$ltmain"
20845  fi
20846fi
20847
20848
20849ac_ext=c
20850ac_cpp='$CPP $CPPFLAGS'
20851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854
20855CC="$lt_save_CC"
20856
20857	else
20858	  tagname=""
20859	fi
20860	;;
20861
20862      RC)
20863
20864
20865# Source file extension for RC test sources.
20866ac_ext=rc
20867
20868# Object file extension for compiled RC test sources.
20869objext=o
20870objext_RC=$objext
20871
20872# Code to be used in simple compile tests
20873lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20874
20875# Code to be used in simple link tests
20876lt_simple_link_test_code="$lt_simple_compile_test_code"
20877
20878# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20879
20880# If no C compiler was specified, use CC.
20881LTCC=${LTCC-"$CC"}
20882
20883# If no C compiler flags were specified, use CFLAGS.
20884LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20885
20886# Allow CC to be a program name with arguments.
20887compiler=$CC
20888
20889
20890# save warnings/boilerplate of simple test code
20891ac_outfile=conftest.$ac_objext
20892printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20893eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20894_lt_compiler_boilerplate=`cat conftest.err`
20895$rm conftest*
20896
20897ac_outfile=conftest.$ac_objext
20898printf "$lt_simple_link_test_code" >conftest.$ac_ext
20899eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20900_lt_linker_boilerplate=`cat conftest.err`
20901$rm conftest*
20902
20903
20904# Allow CC to be a program name with arguments.
20905lt_save_CC="$CC"
20906CC=${RC-"windres"}
20907compiler=$CC
20908compiler_RC=$CC
20909for cc_temp in $compiler""; do
20910  case $cc_temp in
20911    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20912    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20913    \-*) ;;
20914    *) break;;
20915  esac
20916done
20917cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20918
20919lt_cv_prog_compiler_c_o_RC=yes
20920
20921# The else clause should only fire when bootstrapping the
20922# libtool distribution, otherwise you forgot to ship ltmain.sh
20923# with your package, and you will get complaints that there are
20924# no rules to generate ltmain.sh.
20925if test -f "$ltmain"; then
20926  # See if we are running on zsh, and set the options which allow our commands through
20927  # without removal of \ escapes.
20928  if test -n "${ZSH_VERSION+set}" ; then
20929    setopt NO_GLOB_SUBST
20930  fi
20931  # Now quote all the things that may contain metacharacters while being
20932  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20933  # variables and quote the copies for generation of the libtool script.
20934  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20935    SED SHELL STRIP \
20936    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20937    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20938    deplibs_check_method reload_flag reload_cmds need_locks \
20939    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20940    lt_cv_sys_global_symbol_to_c_name_address \
20941    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20942    old_postinstall_cmds old_postuninstall_cmds \
20943    compiler_RC \
20944    CC_RC \
20945    LD_RC \
20946    lt_prog_compiler_wl_RC \
20947    lt_prog_compiler_pic_RC \
20948    lt_prog_compiler_static_RC \
20949    lt_prog_compiler_no_builtin_flag_RC \
20950    export_dynamic_flag_spec_RC \
20951    thread_safe_flag_spec_RC \
20952    whole_archive_flag_spec_RC \
20953    enable_shared_with_static_runtimes_RC \
20954    old_archive_cmds_RC \
20955    old_archive_from_new_cmds_RC \
20956    predep_objects_RC \
20957    postdep_objects_RC \
20958    predeps_RC \
20959    postdeps_RC \
20960    compiler_lib_search_path_RC \
20961    archive_cmds_RC \
20962    archive_expsym_cmds_RC \
20963    postinstall_cmds_RC \
20964    postuninstall_cmds_RC \
20965    old_archive_from_expsyms_cmds_RC \
20966    allow_undefined_flag_RC \
20967    no_undefined_flag_RC \
20968    export_symbols_cmds_RC \
20969    hardcode_libdir_flag_spec_RC \
20970    hardcode_libdir_flag_spec_ld_RC \
20971    hardcode_libdir_separator_RC \
20972    hardcode_automatic_RC \
20973    module_cmds_RC \
20974    module_expsym_cmds_RC \
20975    lt_cv_prog_compiler_c_o_RC \
20976    exclude_expsyms_RC \
20977    include_expsyms_RC; do
20978
20979    case $var in
20980    old_archive_cmds_RC | \
20981    old_archive_from_new_cmds_RC | \
20982    archive_cmds_RC | \
20983    archive_expsym_cmds_RC | \
20984    module_cmds_RC | \
20985    module_expsym_cmds_RC | \
20986    old_archive_from_expsyms_cmds_RC | \
20987    export_symbols_cmds_RC | \
20988    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20989    postinstall_cmds | postuninstall_cmds | \
20990    old_postinstall_cmds | old_postuninstall_cmds | \
20991    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20992      # Double-quote double-evaled strings.
20993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20994      ;;
20995    *)
20996      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20997      ;;
20998    esac
20999  done
21000
21001  case $lt_echo in
21002  *'\$0 --fallback-echo"')
21003    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21004    ;;
21005  esac
21006
21007cfgfile="$ofile"
21008
21009  cat <<__EOF__ >> "$cfgfile"
21010# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21011
21012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21013
21014# Shell to use when invoking shell scripts.
21015SHELL=$lt_SHELL
21016
21017# Whether or not to build shared libraries.
21018build_libtool_libs=$enable_shared
21019
21020# Whether or not to build static libraries.
21021build_old_libs=$enable_static
21022
21023# Whether or not to add -lc for building shared libraries.
21024build_libtool_need_lc=$archive_cmds_need_lc_RC
21025
21026# Whether or not to disallow shared libs when runtime libs are static
21027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21028
21029# Whether or not to optimize for fast installation.
21030fast_install=$enable_fast_install
21031
21032# The host system.
21033host_alias=$host_alias
21034host=$host
21035host_os=$host_os
21036
21037# The build system.
21038build_alias=$build_alias
21039build=$build
21040build_os=$build_os
21041
21042# An echo program that does not interpret backslashes.
21043echo=$lt_echo
21044
21045# The archiver.
21046AR=$lt_AR
21047AR_FLAGS=$lt_AR_FLAGS
21048
21049# A C compiler.
21050LTCC=$lt_LTCC
21051
21052# LTCC compiler flags.
21053LTCFLAGS=$lt_LTCFLAGS
21054
21055# A language-specific compiler.
21056CC=$lt_compiler_RC
21057
21058# Is the compiler the GNU C compiler?
21059with_gcc=$GCC_RC
21060
21061# An ERE matcher.
21062EGREP=$lt_EGREP
21063
21064# The linker used to build libraries.
21065LD=$lt_LD_RC
21066
21067# Whether we need hard or soft links.
21068LN_S=$lt_LN_S
21069
21070# A BSD-compatible nm program.
21071NM=$lt_NM
21072
21073# A symbol stripping program
21074STRIP=$lt_STRIP
21075
21076# Used to examine libraries when file_magic_cmd begins "file"
21077MAGIC_CMD=$MAGIC_CMD
21078
21079# Used on cygwin: DLL creation program.
21080DLLTOOL="$DLLTOOL"
21081
21082# Used on cygwin: object dumper.
21083OBJDUMP="$OBJDUMP"
21084
21085# Used on cygwin: assembler.
21086AS="$AS"
21087
21088# The name of the directory that contains temporary libtool files.
21089objdir=$objdir
21090
21091# How to create reloadable object files.
21092reload_flag=$lt_reload_flag
21093reload_cmds=$lt_reload_cmds
21094
21095# How to pass a linker flag through the compiler.
21096wl=$lt_lt_prog_compiler_wl_RC
21097
21098# Object file suffix (normally "o").
21099objext="$ac_objext"
21100
21101# Old archive suffix (normally "a").
21102libext="$libext"
21103
21104# Shared library suffix (normally ".so").
21105shrext_cmds='$shrext_cmds'
21106
21107# Executable file suffix (normally "").
21108exeext="$exeext"
21109
21110# Additional compiler flags for building library objects.
21111pic_flag=$lt_lt_prog_compiler_pic_RC
21112pic_mode=$pic_mode
21113
21114# What is the maximum length of a command?
21115max_cmd_len=$lt_cv_sys_max_cmd_len
21116
21117# Does compiler simultaneously support -c and -o options?
21118compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21119
21120# Must we lock files when doing compilation?
21121need_locks=$lt_need_locks
21122
21123# Do we need the lib prefix for modules?
21124need_lib_prefix=$need_lib_prefix
21125
21126# Do we need a version for libraries?
21127need_version=$need_version
21128
21129# Whether dlopen is supported.
21130dlopen_support=$enable_dlopen
21131
21132# Whether dlopen of programs is supported.
21133dlopen_self=$enable_dlopen_self
21134
21135# Whether dlopen of statically linked programs is supported.
21136dlopen_self_static=$enable_dlopen_self_static
21137
21138# Compiler flag to prevent dynamic linking.
21139link_static_flag=$lt_lt_prog_compiler_static_RC
21140
21141# Compiler flag to turn off builtin functions.
21142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21143
21144# Compiler flag to allow reflexive dlopens.
21145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21146
21147# Compiler flag to generate shared objects directly from archives.
21148whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21149
21150# Compiler flag to generate thread-safe objects.
21151thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21152
21153# Library versioning type.
21154version_type=$version_type
21155
21156# Format of library name prefix.
21157libname_spec=$lt_libname_spec
21158
21159# List of archive names.  First name is the real one, the rest are links.
21160# The last name is the one that the linker finds with -lNAME.
21161library_names_spec=$lt_library_names_spec
21162
21163# The coded name of the library, if different from the real name.
21164soname_spec=$lt_soname_spec
21165
21166# Commands used to build and install an old-style archive.
21167RANLIB=$lt_RANLIB
21168old_archive_cmds=$lt_old_archive_cmds_RC
21169old_postinstall_cmds=$lt_old_postinstall_cmds
21170old_postuninstall_cmds=$lt_old_postuninstall_cmds
21171
21172# Create an old-style archive from a shared archive.
21173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21174
21175# Create a temporary old-style archive to link instead of a shared archive.
21176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21177
21178# Commands used to build and install a shared archive.
21179archive_cmds=$lt_archive_cmds_RC
21180archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21181postinstall_cmds=$lt_postinstall_cmds
21182postuninstall_cmds=$lt_postuninstall_cmds
21183
21184# Commands used to build a loadable module (assumed same as above if empty)
21185module_cmds=$lt_module_cmds_RC
21186module_expsym_cmds=$lt_module_expsym_cmds_RC
21187
21188# Commands to strip libraries.
21189old_striplib=$lt_old_striplib
21190striplib=$lt_striplib
21191
21192# Dependencies to place before the objects being linked to create a
21193# shared library.
21194predep_objects=$lt_predep_objects_RC
21195
21196# Dependencies to place after the objects being linked to create a
21197# shared library.
21198postdep_objects=$lt_postdep_objects_RC
21199
21200# Dependencies to place before the objects being linked to create a
21201# shared library.
21202predeps=$lt_predeps_RC
21203
21204# Dependencies to place after the objects being linked to create a
21205# shared library.
21206postdeps=$lt_postdeps_RC
21207
21208# The library search path used internally by the compiler when linking
21209# a shared library.
21210compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21211
21212# Method to check whether dependent libraries are shared objects.
21213deplibs_check_method=$lt_deplibs_check_method
21214
21215# Command to use when deplibs_check_method == file_magic.
21216file_magic_cmd=$lt_file_magic_cmd
21217
21218# Flag that allows shared libraries with undefined symbols to be built.
21219allow_undefined_flag=$lt_allow_undefined_flag_RC
21220
21221# Flag that forces no undefined symbols.
21222no_undefined_flag=$lt_no_undefined_flag_RC
21223
21224# Commands used to finish a libtool library installation in a directory.
21225finish_cmds=$lt_finish_cmds
21226
21227# Same as above, but a single script fragment to be evaled but not shown.
21228finish_eval=$lt_finish_eval
21229
21230# Take the output of nm and produce a listing of raw symbols and C names.
21231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21232
21233# Transform the output of nm in a proper C declaration
21234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21235
21236# Transform the output of nm in a C name address pair
21237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21238
21239# This is the shared library runtime path variable.
21240runpath_var=$runpath_var
21241
21242# This is the shared library path variable.
21243shlibpath_var=$shlibpath_var
21244
21245# Is shlibpath searched before the hard-coded library search path?
21246shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21247
21248# How to hardcode a shared library path into an executable.
21249hardcode_action=$hardcode_action_RC
21250
21251# Whether we should hardcode library paths into libraries.
21252hardcode_into_libs=$hardcode_into_libs
21253
21254# Flag to hardcode \$libdir into a binary during linking.
21255# This must work even if \$libdir does not exist.
21256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21257
21258# If ld is used when linking, flag to hardcode \$libdir into
21259# a binary during linking. This must work even if \$libdir does
21260# not exist.
21261hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21262
21263# Whether we need a single -rpath flag with a separated argument.
21264hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21265
21266# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21267# resulting binary.
21268hardcode_direct=$hardcode_direct_RC
21269
21270# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21271# resulting binary.
21272hardcode_minus_L=$hardcode_minus_L_RC
21273
21274# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21275# the resulting binary.
21276hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21277
21278# Set to yes if building a shared library automatically hardcodes DIR into the library
21279# and all subsequent libraries and executables linked against it.
21280hardcode_automatic=$hardcode_automatic_RC
21281
21282# Variables whose values should be saved in libtool wrapper scripts and
21283# restored at relink time.
21284variables_saved_for_relink="$variables_saved_for_relink"
21285
21286# Whether libtool must link a program against all its dependency libraries.
21287link_all_deplibs=$link_all_deplibs_RC
21288
21289# Compile-time system search path for libraries
21290sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21291
21292# Run-time system search path for libraries
21293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21294
21295# Fix the shell variable \$srcfile for the compiler.
21296fix_srcfile_path="$fix_srcfile_path_RC"
21297
21298# Set to yes if exported symbols are required.
21299always_export_symbols=$always_export_symbols_RC
21300
21301# The commands to list exported symbols.
21302export_symbols_cmds=$lt_export_symbols_cmds_RC
21303
21304# The commands to extract the exported symbol list from a shared archive.
21305extract_expsyms_cmds=$lt_extract_expsyms_cmds
21306
21307# Symbols that should not be listed in the preloaded symbols.
21308exclude_expsyms=$lt_exclude_expsyms_RC
21309
21310# Symbols that must always be exported.
21311include_expsyms=$lt_include_expsyms_RC
21312
21313# ### END LIBTOOL TAG CONFIG: $tagname
21314
21315__EOF__
21316
21317
21318else
21319  # If there is no Makefile yet, we rely on a make rule to execute
21320  # `config.status --recheck' to rerun these tests and create the
21321  # libtool script then.
21322  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21323  if test -f "$ltmain_in"; then
21324    test -f Makefile && make "$ltmain"
21325  fi
21326fi
21327
21328
21329ac_ext=c
21330ac_cpp='$CPP $CPPFLAGS'
21331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333ac_compiler_gnu=$ac_cv_c_compiler_gnu
21334
21335CC="$lt_save_CC"
21336
21337	;;
21338
21339      *)
21340	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21341echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21342   { (exit 1); exit 1; }; }
21343	;;
21344      esac
21345
21346      # Append the new tag name to the list of available tags.
21347      if test -n "$tagname" ; then
21348      available_tags="$available_tags $tagname"
21349    fi
21350    fi
21351  done
21352  IFS="$lt_save_ifs"
21353
21354  # Now substitute the updated list of available tags.
21355  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21356    mv "${ofile}T" "$ofile"
21357    chmod +x "$ofile"
21358  else
21359    rm -f "${ofile}T"
21360    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21361echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21362   { (exit 1); exit 1; }; }
21363  fi
21364fi
21365
21366
21367
21368# This can be used to rebuild libtool when needed
21369LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21370
21371# Always use our own libtool.
21372LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21373
21374# Prevent multiple expansion
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397  CFLAG_VISIBILITY=
21398  HAVE_VISIBILITY=0
21399  if test -n "$GCC"; then
21400    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
21401echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
21402    if test "${gl_cv_cc_visibility+set}" = set; then
21403  echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405
21406      gl_save_CFLAGS="$CFLAGS"
21407      CFLAGS="$CFLAGS -fvisibility=hidden"
21408      cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h.  */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
21413/* end confdefs.h.  */
21414extern __attribute__((__visibility__("hidden"))) int hiddenvar;
21415         extern __attribute__((__visibility__("default"))) int exportedvar;
21416         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
21417         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
21418int
21419main ()
21420{
21421
21422  ;
21423  return 0;
21424}
21425_ACEOF
21426rm -f conftest.$ac_objext
21427if { (ac_try="$ac_compile"
21428case "(($ac_try" in
21429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430  *) ac_try_echo=$ac_try;;
21431esac
21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433  (eval "$ac_compile") 2>conftest.er1
21434  ac_status=$?
21435  grep -v '^ *+' conftest.er1 >conftest.err
21436  rm -f conftest.er1
21437  cat conftest.err >&5
21438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439  (exit $ac_status); } &&
21440	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21441  { (case "(($ac_try" in
21442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443  *) ac_try_echo=$ac_try;;
21444esac
21445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446  (eval "$ac_try") 2>&5
21447  ac_status=$?
21448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449  (exit $ac_status); }; } &&
21450	 { ac_try='test -s conftest.$ac_objext'
21451  { (case "(($ac_try" in
21452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453  *) ac_try_echo=$ac_try;;
21454esac
21455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456  (eval "$ac_try") 2>&5
21457  ac_status=$?
21458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459  (exit $ac_status); }; }; then
21460  gl_cv_cc_visibility=yes
21461else
21462  echo "$as_me: failed program was:" >&5
21463sed 's/^/| /' conftest.$ac_ext >&5
21464
21465	gl_cv_cc_visibility=no
21466fi
21467
21468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469      CFLAGS="$gl_save_CFLAGS"
21470fi
21471
21472    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
21473echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
21474    if test $gl_cv_cc_visibility = yes; then
21475      CFLAG_VISIBILITY="-fvisibility=hidden"
21476      HAVE_VISIBILITY=1
21477    fi
21478  fi
21479
21480
21481
21482cat >>confdefs.h <<_ACEOF
21483#define HAVE_VISIBILITY $HAVE_VISIBILITY
21484_ACEOF
21485
21486
21487
21488      if test "X$prefix" = "XNONE"; then
21489    acl_final_prefix="$ac_default_prefix"
21490  else
21491    acl_final_prefix="$prefix"
21492  fi
21493  if test "X$exec_prefix" = "XNONE"; then
21494    acl_final_exec_prefix='${prefix}'
21495  else
21496    acl_final_exec_prefix="$exec_prefix"
21497  fi
21498  acl_save_prefix="$prefix"
21499  prefix="$acl_final_prefix"
21500  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21501  prefix="$acl_save_prefix"
21502
21503
21504
21505                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21506echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21507if test "${acl_cv_rpath+set}" = set; then
21508  echo $ECHO_N "(cached) $ECHO_C" >&6
21509else
21510
21511    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21512    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21513    . ./conftest.sh
21514    rm -f ./conftest.sh
21515    acl_cv_rpath=done
21516
21517fi
21518{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21519echo "${ECHO_T}$acl_cv_rpath" >&6; }
21520  wl="$acl_cv_wl"
21521  libext="$acl_cv_libext"
21522  shlibext="$acl_cv_shlibext"
21523  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21524  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21525  hardcode_direct="$acl_cv_hardcode_direct"
21526  hardcode_minus_L="$acl_cv_hardcode_minus_L"
21527    # Check whether --enable-rpath was given.
21528if test "${enable_rpath+set}" = set; then
21529  enableval=$enable_rpath; :
21530else
21531  enable_rpath=yes
21532fi
21533
21534
21535
21536                  acl_libdirstem=lib
21537  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21538  if test -n "$searchpath"; then
21539    acl_save_IFS="${IFS= 	}"; IFS=":"
21540    for searchdir in $searchpath; do
21541      if test -d "$searchdir"; then
21542        case "$searchdir" in
21543          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21544          *) searchdir=`cd "$searchdir" && pwd`
21545             case "$searchdir" in
21546               */lib64 ) acl_libdirstem=lib64 ;;
21547             esac ;;
21548        esac
21549      fi
21550    done
21551    IFS="$acl_save_IFS"
21552  fi
21553
21554
21555
21556
21557
21558
21559
21560
21561    use_additional=yes
21562
21563  acl_save_prefix="$prefix"
21564  prefix="$acl_final_prefix"
21565  acl_save_exec_prefix="$exec_prefix"
21566  exec_prefix="$acl_final_exec_prefix"
21567
21568    eval additional_includedir=\"$includedir\"
21569    eval additional_libdir=\"$libdir\"
21570
21571  exec_prefix="$acl_save_exec_prefix"
21572  prefix="$acl_save_prefix"
21573
21574
21575# Check whether --with-libiconv-prefix was given.
21576if test "${with_libiconv_prefix+set}" = set; then
21577  withval=$with_libiconv_prefix;
21578    if test "X$withval" = "Xno"; then
21579      use_additional=no
21580    else
21581      if test "X$withval" = "X"; then
21582
21583  acl_save_prefix="$prefix"
21584  prefix="$acl_final_prefix"
21585  acl_save_exec_prefix="$exec_prefix"
21586  exec_prefix="$acl_final_exec_prefix"
21587
21588          eval additional_includedir=\"$includedir\"
21589          eval additional_libdir=\"$libdir\"
21590
21591  exec_prefix="$acl_save_exec_prefix"
21592  prefix="$acl_save_prefix"
21593
21594      else
21595        additional_includedir="$withval/include"
21596        additional_libdir="$withval/$acl_libdirstem"
21597      fi
21598    fi
21599
21600fi
21601
21602      LIBICONV=
21603  LTLIBICONV=
21604  INCICONV=
21605  rpathdirs=
21606  ltrpathdirs=
21607  names_already_handled=
21608  names_next_round='iconv '
21609  while test -n "$names_next_round"; do
21610    names_this_round="$names_next_round"
21611    names_next_round=
21612    for name in $names_this_round; do
21613      already_handled=
21614      for n in $names_already_handled; do
21615        if test "$n" = "$name"; then
21616          already_handled=yes
21617          break
21618        fi
21619      done
21620      if test -z "$already_handled"; then
21621        names_already_handled="$names_already_handled $name"
21622                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21623        eval value=\"\$HAVE_LIB$uppername\"
21624        if test -n "$value"; then
21625          if test "$value" = yes; then
21626            eval value=\"\$LIB$uppername\"
21627            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21628            eval value=\"\$LTLIB$uppername\"
21629            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21630          else
21631                                    :
21632          fi
21633        else
21634                              found_dir=
21635          found_la=
21636          found_so=
21637          found_a=
21638          if test $use_additional = yes; then
21639            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21640              found_dir="$additional_libdir"
21641              found_so="$additional_libdir/lib$name.$shlibext"
21642              if test -f "$additional_libdir/lib$name.la"; then
21643                found_la="$additional_libdir/lib$name.la"
21644              fi
21645            else
21646              if test -f "$additional_libdir/lib$name.$libext"; then
21647                found_dir="$additional_libdir"
21648                found_a="$additional_libdir/lib$name.$libext"
21649                if test -f "$additional_libdir/lib$name.la"; then
21650                  found_la="$additional_libdir/lib$name.la"
21651                fi
21652              fi
21653            fi
21654          fi
21655          if test "X$found_dir" = "X"; then
21656            for x in $LDFLAGS $LTLIBICONV; do
21657
21658  acl_save_prefix="$prefix"
21659  prefix="$acl_final_prefix"
21660  acl_save_exec_prefix="$exec_prefix"
21661  exec_prefix="$acl_final_exec_prefix"
21662  eval x=\"$x\"
21663  exec_prefix="$acl_save_exec_prefix"
21664  prefix="$acl_save_prefix"
21665
21666              case "$x" in
21667                -L*)
21668                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21669                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21670                    found_dir="$dir"
21671                    found_so="$dir/lib$name.$shlibext"
21672                    if test -f "$dir/lib$name.la"; then
21673                      found_la="$dir/lib$name.la"
21674                    fi
21675                  else
21676                    if test -f "$dir/lib$name.$libext"; then
21677                      found_dir="$dir"
21678                      found_a="$dir/lib$name.$libext"
21679                      if test -f "$dir/lib$name.la"; then
21680                        found_la="$dir/lib$name.la"
21681                      fi
21682                    fi
21683                  fi
21684                  ;;
21685              esac
21686              if test "X$found_dir" != "X"; then
21687                break
21688              fi
21689            done
21690          fi
21691          if test "X$found_dir" != "X"; then
21692                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21693            if test "X$found_so" != "X"; then
21694                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21695                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21696              else
21697                                                                                haveit=
21698                for x in $ltrpathdirs; do
21699                  if test "X$x" = "X$found_dir"; then
21700                    haveit=yes
21701                    break
21702                  fi
21703                done
21704                if test -z "$haveit"; then
21705                  ltrpathdirs="$ltrpathdirs $found_dir"
21706                fi
21707                                if test "$hardcode_direct" = yes; then
21708                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21709                else
21710                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21711                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21712                                                            haveit=
21713                    for x in $rpathdirs; do
21714                      if test "X$x" = "X$found_dir"; then
21715                        haveit=yes
21716                        break
21717                      fi
21718                    done
21719                    if test -z "$haveit"; then
21720                      rpathdirs="$rpathdirs $found_dir"
21721                    fi
21722                  else
21723                                                                                haveit=
21724                    for x in $LDFLAGS $LIBICONV; do
21725
21726  acl_save_prefix="$prefix"
21727  prefix="$acl_final_prefix"
21728  acl_save_exec_prefix="$exec_prefix"
21729  exec_prefix="$acl_final_exec_prefix"
21730  eval x=\"$x\"
21731  exec_prefix="$acl_save_exec_prefix"
21732  prefix="$acl_save_prefix"
21733
21734                      if test "X$x" = "X-L$found_dir"; then
21735                        haveit=yes
21736                        break
21737                      fi
21738                    done
21739                    if test -z "$haveit"; then
21740                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21741                    fi
21742                    if test "$hardcode_minus_L" != no; then
21743                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21744                    else
21745                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21746                    fi
21747                  fi
21748                fi
21749              fi
21750            else
21751              if test "X$found_a" != "X"; then
21752                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21753              else
21754                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21755              fi
21756            fi
21757                        additional_includedir=
21758            case "$found_dir" in
21759              */$acl_libdirstem | */$acl_libdirstem/)
21760                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21761                additional_includedir="$basedir/include"
21762                ;;
21763            esac
21764            if test "X$additional_includedir" != "X"; then
21765                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21766                haveit=
21767                if test "X$additional_includedir" = "X/usr/local/include"; then
21768                  if test -n "$GCC"; then
21769                    case $host_os in
21770                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21771                    esac
21772                  fi
21773                fi
21774                if test -z "$haveit"; then
21775                  for x in $CPPFLAGS $INCICONV; do
21776
21777  acl_save_prefix="$prefix"
21778  prefix="$acl_final_prefix"
21779  acl_save_exec_prefix="$exec_prefix"
21780  exec_prefix="$acl_final_exec_prefix"
21781  eval x=\"$x\"
21782  exec_prefix="$acl_save_exec_prefix"
21783  prefix="$acl_save_prefix"
21784
21785                    if test "X$x" = "X-I$additional_includedir"; then
21786                      haveit=yes
21787                      break
21788                    fi
21789                  done
21790                  if test -z "$haveit"; then
21791                    if test -d "$additional_includedir"; then
21792                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21793                    fi
21794                  fi
21795                fi
21796              fi
21797            fi
21798                        if test -n "$found_la"; then
21799                                                        save_libdir="$libdir"
21800              case "$found_la" in
21801                */* | *\\*) . "$found_la" ;;
21802                *) . "./$found_la" ;;
21803              esac
21804              libdir="$save_libdir"
21805                            for dep in $dependency_libs; do
21806                case "$dep" in
21807                  -L*)
21808                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21809                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21810                      haveit=
21811                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21812                        if test -n "$GCC"; then
21813                          case $host_os in
21814                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21815                          esac
21816                        fi
21817                      fi
21818                      if test -z "$haveit"; then
21819                        haveit=
21820                        for x in $LDFLAGS $LIBICONV; do
21821
21822  acl_save_prefix="$prefix"
21823  prefix="$acl_final_prefix"
21824  acl_save_exec_prefix="$exec_prefix"
21825  exec_prefix="$acl_final_exec_prefix"
21826  eval x=\"$x\"
21827  exec_prefix="$acl_save_exec_prefix"
21828  prefix="$acl_save_prefix"
21829
21830                          if test "X$x" = "X-L$additional_libdir"; then
21831                            haveit=yes
21832                            break
21833                          fi
21834                        done
21835                        if test -z "$haveit"; then
21836                          if test -d "$additional_libdir"; then
21837                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21838                          fi
21839                        fi
21840                        haveit=
21841                        for x in $LDFLAGS $LTLIBICONV; do
21842
21843  acl_save_prefix="$prefix"
21844  prefix="$acl_final_prefix"
21845  acl_save_exec_prefix="$exec_prefix"
21846  exec_prefix="$acl_final_exec_prefix"
21847  eval x=\"$x\"
21848  exec_prefix="$acl_save_exec_prefix"
21849  prefix="$acl_save_prefix"
21850
21851                          if test "X$x" = "X-L$additional_libdir"; then
21852                            haveit=yes
21853                            break
21854                          fi
21855                        done
21856                        if test -z "$haveit"; then
21857                          if test -d "$additional_libdir"; then
21858                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21859                          fi
21860                        fi
21861                      fi
21862                    fi
21863                    ;;
21864                  -R*)
21865                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21866                    if test "$enable_rpath" != no; then
21867                                                                  haveit=
21868                      for x in $rpathdirs; do
21869                        if test "X$x" = "X$dir"; then
21870                          haveit=yes
21871                          break
21872                        fi
21873                      done
21874                      if test -z "$haveit"; then
21875                        rpathdirs="$rpathdirs $dir"
21876                      fi
21877                                                                  haveit=
21878                      for x in $ltrpathdirs; do
21879                        if test "X$x" = "X$dir"; then
21880                          haveit=yes
21881                          break
21882                        fi
21883                      done
21884                      if test -z "$haveit"; then
21885                        ltrpathdirs="$ltrpathdirs $dir"
21886                      fi
21887                    fi
21888                    ;;
21889                  -l*)
21890                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21891                    ;;
21892                  *.la)
21893                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21894                    ;;
21895                  *)
21896                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21897                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21898                    ;;
21899                esac
21900              done
21901            fi
21902          else
21903                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21904            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21905          fi
21906        fi
21907      fi
21908    done
21909  done
21910  if test "X$rpathdirs" != "X"; then
21911    if test -n "$hardcode_libdir_separator"; then
21912                        alldirs=
21913      for found_dir in $rpathdirs; do
21914        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21915      done
21916            acl_save_libdir="$libdir"
21917      libdir="$alldirs"
21918      eval flag=\"$hardcode_libdir_flag_spec\"
21919      libdir="$acl_save_libdir"
21920      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21921    else
21922            for found_dir in $rpathdirs; do
21923        acl_save_libdir="$libdir"
21924        libdir="$found_dir"
21925        eval flag=\"$hardcode_libdir_flag_spec\"
21926        libdir="$acl_save_libdir"
21927        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21928      done
21929    fi
21930  fi
21931  if test "X$ltrpathdirs" != "X"; then
21932            for found_dir in $ltrpathdirs; do
21933      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21934    done
21935  fi
21936
21937
21938
21939
21940
21941
21942
21943          am_save_CPPFLAGS="$CPPFLAGS"
21944
21945  for element in $INCICONV; do
21946    haveit=
21947    for x in $CPPFLAGS; do
21948
21949  acl_save_prefix="$prefix"
21950  prefix="$acl_final_prefix"
21951  acl_save_exec_prefix="$exec_prefix"
21952  exec_prefix="$acl_final_exec_prefix"
21953  eval x=\"$x\"
21954  exec_prefix="$acl_save_exec_prefix"
21955  prefix="$acl_save_prefix"
21956
21957      if test "X$x" = "X$element"; then
21958        haveit=yes
21959        break
21960      fi
21961    done
21962    if test -z "$haveit"; then
21963      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21964    fi
21965  done
21966
21967
21968  { echo "$as_me:$LINENO: checking for iconv" >&5
21969echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21970if test "${am_cv_func_iconv+set}" = set; then
21971  echo $ECHO_N "(cached) $ECHO_C" >&6
21972else
21973
21974    am_cv_func_iconv="no, consider installing GNU libiconv"
21975    am_cv_lib_iconv=no
21976    cat >conftest.$ac_ext <<_ACEOF
21977/* confdefs.h.  */
21978_ACEOF
21979cat confdefs.h >>conftest.$ac_ext
21980cat >>conftest.$ac_ext <<_ACEOF
21981/* end confdefs.h.  */
21982#include <stdlib.h>
21983#include <iconv.h>
21984int
21985main ()
21986{
21987iconv_t cd = iconv_open("","");
21988       iconv(cd,NULL,NULL,NULL,NULL);
21989       iconv_close(cd);
21990  ;
21991  return 0;
21992}
21993_ACEOF
21994rm -f conftest.$ac_objext conftest$ac_exeext
21995if { (ac_try="$ac_link"
21996case "(($ac_try" in
21997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998  *) ac_try_echo=$ac_try;;
21999esac
22000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001  (eval "$ac_link") 2>conftest.er1
22002  ac_status=$?
22003  grep -v '^ *+' conftest.er1 >conftest.err
22004  rm -f conftest.er1
22005  cat conftest.err >&5
22006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007  (exit $ac_status); } &&
22008	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22009  { (case "(($ac_try" in
22010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011  *) ac_try_echo=$ac_try;;
22012esac
22013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014  (eval "$ac_try") 2>&5
22015  ac_status=$?
22016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017  (exit $ac_status); }; } &&
22018	 { ac_try='test -s conftest$ac_exeext'
22019  { (case "(($ac_try" in
22020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021  *) ac_try_echo=$ac_try;;
22022esac
22023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024  (eval "$ac_try") 2>&5
22025  ac_status=$?
22026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027  (exit $ac_status); }; }; then
22028  am_cv_func_iconv=yes
22029else
22030  echo "$as_me: failed program was:" >&5
22031sed 's/^/| /' conftest.$ac_ext >&5
22032
22033
22034fi
22035
22036rm -f core conftest.err conftest.$ac_objext \
22037      conftest$ac_exeext conftest.$ac_ext
22038    if test "$am_cv_func_iconv" != yes; then
22039      am_save_LIBS="$LIBS"
22040      LIBS="$LIBS $LIBICONV"
22041      cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h.  */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h.  */
22047#include <stdlib.h>
22048#include <iconv.h>
22049int
22050main ()
22051{
22052iconv_t cd = iconv_open("","");
22053         iconv(cd,NULL,NULL,NULL,NULL);
22054         iconv_close(cd);
22055  ;
22056  return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext conftest$ac_exeext
22060if { (ac_try="$ac_link"
22061case "(($ac_try" in
22062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063  *) ac_try_echo=$ac_try;;
22064esac
22065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066  (eval "$ac_link") 2>conftest.er1
22067  ac_status=$?
22068  grep -v '^ *+' conftest.er1 >conftest.err
22069  rm -f conftest.er1
22070  cat conftest.err >&5
22071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072  (exit $ac_status); } &&
22073	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22074  { (case "(($ac_try" in
22075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076  *) ac_try_echo=$ac_try;;
22077esac
22078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079  (eval "$ac_try") 2>&5
22080  ac_status=$?
22081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082  (exit $ac_status); }; } &&
22083	 { ac_try='test -s conftest$ac_exeext'
22084  { (case "(($ac_try" in
22085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086  *) ac_try_echo=$ac_try;;
22087esac
22088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089  (eval "$ac_try") 2>&5
22090  ac_status=$?
22091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092  (exit $ac_status); }; }; then
22093  am_cv_lib_iconv=yes
22094        am_cv_func_iconv=yes
22095else
22096  echo "$as_me: failed program was:" >&5
22097sed 's/^/| /' conftest.$ac_ext >&5
22098
22099
22100fi
22101
22102rm -f core conftest.err conftest.$ac_objext \
22103      conftest$ac_exeext conftest.$ac_ext
22104      LIBS="$am_save_LIBS"
22105    fi
22106
22107fi
22108{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22109echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22110  if test "$am_cv_func_iconv" = yes; then
22111
22112cat >>confdefs.h <<\_ACEOF
22113#define HAVE_ICONV 1
22114_ACEOF
22115
22116  fi
22117  if test "$am_cv_lib_iconv" = yes; then
22118    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22119echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22120    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22121echo "${ECHO_T}$LIBICONV" >&6; }
22122  else
22123            CPPFLAGS="$am_save_CPPFLAGS"
22124    LIBICONV=
22125    LTLIBICONV=
22126  fi
22127
22128
22129
22130  if test "$am_cv_func_iconv" = yes; then
22131    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22132echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22133    if test "${am_cv_proto_iconv+set}" = set; then
22134  echo $ECHO_N "(cached) $ECHO_C" >&6
22135else
22136
22137      cat >conftest.$ac_ext <<_ACEOF
22138/* confdefs.h.  */
22139_ACEOF
22140cat confdefs.h >>conftest.$ac_ext
22141cat >>conftest.$ac_ext <<_ACEOF
22142/* end confdefs.h.  */
22143
22144#include <stdlib.h>
22145#include <iconv.h>
22146extern
22147#ifdef __cplusplus
22148"C"
22149#endif
22150#if defined(__STDC__) || defined(__cplusplus)
22151size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22152#else
22153size_t iconv();
22154#endif
22155
22156int
22157main ()
22158{
22159
22160  ;
22161  return 0;
22162}
22163_ACEOF
22164rm -f conftest.$ac_objext
22165if { (ac_try="$ac_compile"
22166case "(($ac_try" in
22167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168  *) ac_try_echo=$ac_try;;
22169esac
22170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171  (eval "$ac_compile") 2>conftest.er1
22172  ac_status=$?
22173  grep -v '^ *+' conftest.er1 >conftest.err
22174  rm -f conftest.er1
22175  cat conftest.err >&5
22176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177  (exit $ac_status); } &&
22178	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22179  { (case "(($ac_try" in
22180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181  *) ac_try_echo=$ac_try;;
22182esac
22183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184  (eval "$ac_try") 2>&5
22185  ac_status=$?
22186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187  (exit $ac_status); }; } &&
22188	 { ac_try='test -s conftest.$ac_objext'
22189  { (case "(($ac_try" in
22190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191  *) ac_try_echo=$ac_try;;
22192esac
22193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194  (eval "$ac_try") 2>&5
22195  ac_status=$?
22196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197  (exit $ac_status); }; }; then
22198  am_cv_proto_iconv_arg1=""
22199else
22200  echo "$as_me: failed program was:" >&5
22201sed 's/^/| /' conftest.$ac_ext >&5
22202
22203	am_cv_proto_iconv_arg1="const"
22204fi
22205
22206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22208fi
22209
22210    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22211    { echo "$as_me:$LINENO: result: ${ac_t:-
22212         }$am_cv_proto_iconv" >&5
22213echo "${ECHO_T}${ac_t:-
22214         }$am_cv_proto_iconv" >&6; }
22215
22216cat >>confdefs.h <<_ACEOF
22217#define ICONV_CONST $am_cv_proto_iconv_arg1
22218_ACEOF
22219
22220  fi
22221
22222
22223  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22224echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
22225    # Check whether --enable-nls was given.
22226if test "${enable_nls+set}" = set; then
22227  enableval=$enable_nls; USE_NLS=$enableval
22228else
22229  USE_NLS=yes
22230fi
22231
22232  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
22233echo "${ECHO_T}$USE_NLS" >&6; }
22234
22235
22236
22237
22238
22239
22240# Prepare PATH_SEPARATOR.
22241# The user is always right.
22242if test "${PATH_SEPARATOR+set}" != set; then
22243  echo "#! /bin/sh" >conf$$.sh
22244  echo  "exit 0"   >>conf$$.sh
22245  chmod +x conf$$.sh
22246  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22247    PATH_SEPARATOR=';'
22248  else
22249    PATH_SEPARATOR=:
22250  fi
22251  rm -f conf$$.sh
22252fi
22253
22254# Find out how to test for executable files. Don't use a zero-byte file,
22255# as systems may use methods other than mode bits to determine executability.
22256cat >conf$$.file <<_ASEOF
22257#! /bin/sh
22258exit 0
22259_ASEOF
22260chmod +x conf$$.file
22261if test -x conf$$.file >/dev/null 2>&1; then
22262  ac_executable_p="test -x"
22263else
22264  ac_executable_p="test -f"
22265fi
22266rm -f conf$$.file
22267
22268# Extract the first word of "msgfmt", so it can be a program name with args.
22269set dummy msgfmt; ac_word=$2
22270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22272if test "${ac_cv_path_MSGFMT+set}" = set; then
22273  echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275  case "$MSGFMT" in
22276  [\\/]* | ?:[\\/]*)
22277    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22278    ;;
22279  *)
22280    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22281    for ac_dir in $PATH; do
22282      IFS="$ac_save_IFS"
22283      test -z "$ac_dir" && ac_dir=.
22284      for ac_exec_ext in '' $ac_executable_extensions; do
22285        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22286          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22287          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
22288     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22289            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22290            break 2
22291          fi
22292        fi
22293      done
22294    done
22295    IFS="$ac_save_IFS"
22296  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22297    ;;
22298esac
22299fi
22300MSGFMT="$ac_cv_path_MSGFMT"
22301if test "$MSGFMT" != ":"; then
22302  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22303echo "${ECHO_T}$MSGFMT" >&6; }
22304else
22305  { echo "$as_me:$LINENO: result: no" >&5
22306echo "${ECHO_T}no" >&6; }
22307fi
22308
22309  # Extract the first word of "gmsgfmt", so it can be a program name with args.
22310set dummy gmsgfmt; ac_word=$2
22311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22313if test "${ac_cv_path_GMSGFMT+set}" = set; then
22314  echo $ECHO_N "(cached) $ECHO_C" >&6
22315else
22316  case $GMSGFMT in
22317  [\\/]* | ?:[\\/]*)
22318  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22319  ;;
22320  *)
22321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22322for as_dir in $PATH
22323do
22324  IFS=$as_save_IFS
22325  test -z "$as_dir" && as_dir=.
22326  for ac_exec_ext in '' $ac_executable_extensions; do
22327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22328    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22330    break 2
22331  fi
22332done
22333done
22334IFS=$as_save_IFS
22335
22336  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22337  ;;
22338esac
22339fi
22340GMSGFMT=$ac_cv_path_GMSGFMT
22341if test -n "$GMSGFMT"; then
22342  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22343echo "${ECHO_T}$GMSGFMT" >&6; }
22344else
22345  { echo "$as_me:$LINENO: result: no" >&5
22346echo "${ECHO_T}no" >&6; }
22347fi
22348
22349
22350
22351    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22352    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
22353    *) MSGFMT_015=$MSGFMT ;;
22354  esac
22355
22356  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22357    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
22358    *) GMSGFMT_015=$GMSGFMT ;;
22359  esac
22360
22361
22362
22363# Prepare PATH_SEPARATOR.
22364# The user is always right.
22365if test "${PATH_SEPARATOR+set}" != set; then
22366  echo "#! /bin/sh" >conf$$.sh
22367  echo  "exit 0"   >>conf$$.sh
22368  chmod +x conf$$.sh
22369  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22370    PATH_SEPARATOR=';'
22371  else
22372    PATH_SEPARATOR=:
22373  fi
22374  rm -f conf$$.sh
22375fi
22376
22377# Find out how to test for executable files. Don't use a zero-byte file,
22378# as systems may use methods other than mode bits to determine executability.
22379cat >conf$$.file <<_ASEOF
22380#! /bin/sh
22381exit 0
22382_ASEOF
22383chmod +x conf$$.file
22384if test -x conf$$.file >/dev/null 2>&1; then
22385  ac_executable_p="test -x"
22386else
22387  ac_executable_p="test -f"
22388fi
22389rm -f conf$$.file
22390
22391# Extract the first word of "xgettext", so it can be a program name with args.
22392set dummy xgettext; ac_word=$2
22393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22395if test "${ac_cv_path_XGETTEXT+set}" = set; then
22396  echo $ECHO_N "(cached) $ECHO_C" >&6
22397else
22398  case "$XGETTEXT" in
22399  [\\/]* | ?:[\\/]*)
22400    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22401    ;;
22402  *)
22403    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22404    for ac_dir in $PATH; do
22405      IFS="$ac_save_IFS"
22406      test -z "$ac_dir" && ac_dir=.
22407      for ac_exec_ext in '' $ac_executable_extensions; do
22408        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22409          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22410          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
22411     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22412            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22413            break 2
22414          fi
22415        fi
22416      done
22417    done
22418    IFS="$ac_save_IFS"
22419  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22420    ;;
22421esac
22422fi
22423XGETTEXT="$ac_cv_path_XGETTEXT"
22424if test "$XGETTEXT" != ":"; then
22425  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22426echo "${ECHO_T}$XGETTEXT" >&6; }
22427else
22428  { echo "$as_me:$LINENO: result: no" >&5
22429echo "${ECHO_T}no" >&6; }
22430fi
22431
22432    rm -f messages.po
22433
22434    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22435    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
22436    *) XGETTEXT_015=$XGETTEXT ;;
22437  esac
22438
22439
22440
22441# Prepare PATH_SEPARATOR.
22442# The user is always right.
22443if test "${PATH_SEPARATOR+set}" != set; then
22444  echo "#! /bin/sh" >conf$$.sh
22445  echo  "exit 0"   >>conf$$.sh
22446  chmod +x conf$$.sh
22447  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22448    PATH_SEPARATOR=';'
22449  else
22450    PATH_SEPARATOR=:
22451  fi
22452  rm -f conf$$.sh
22453fi
22454
22455# Find out how to test for executable files. Don't use a zero-byte file,
22456# as systems may use methods other than mode bits to determine executability.
22457cat >conf$$.file <<_ASEOF
22458#! /bin/sh
22459exit 0
22460_ASEOF
22461chmod +x conf$$.file
22462if test -x conf$$.file >/dev/null 2>&1; then
22463  ac_executable_p="test -x"
22464else
22465  ac_executable_p="test -f"
22466fi
22467rm -f conf$$.file
22468
22469# Extract the first word of "msgmerge", so it can be a program name with args.
22470set dummy msgmerge; ac_word=$2
22471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22473if test "${ac_cv_path_MSGMERGE+set}" = set; then
22474  echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
22476  case "$MSGMERGE" in
22477  [\\/]* | ?:[\\/]*)
22478    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22479    ;;
22480  *)
22481    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22482    for ac_dir in $PATH; do
22483      IFS="$ac_save_IFS"
22484      test -z "$ac_dir" && ac_dir=.
22485      for ac_exec_ext in '' $ac_executable_extensions; do
22486        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22487          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22488          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
22489            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22490            break 2
22491          fi
22492        fi
22493      done
22494    done
22495    IFS="$ac_save_IFS"
22496  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22497    ;;
22498esac
22499fi
22500MSGMERGE="$ac_cv_path_MSGMERGE"
22501if test "$MSGMERGE" != ":"; then
22502  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22503echo "${ECHO_T}$MSGMERGE" >&6; }
22504else
22505  { echo "$as_me:$LINENO: result: no" >&5
22506echo "${ECHO_T}no" >&6; }
22507fi
22508
22509
22510        test -n "$localedir" || localedir='${datadir}/locale'
22511
22512
22513  ac_config_commands="$ac_config_commands po-directories"
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22533echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
22534if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22535  echo $ECHO_N "(cached) $ECHO_C" >&6
22536else
22537  gt_save_LIBS="$LIBS"
22538     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22539     cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h.  */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h.  */
22545#include <CoreFoundation/CFPreferences.h>
22546int
22547main ()
22548{
22549CFPreferencesCopyAppValue(NULL, NULL)
22550  ;
22551  return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext conftest$ac_exeext
22555if { (ac_try="$ac_link"
22556case "(($ac_try" in
22557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558  *) ac_try_echo=$ac_try;;
22559esac
22560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561  (eval "$ac_link") 2>conftest.er1
22562  ac_status=$?
22563  grep -v '^ *+' conftest.er1 >conftest.err
22564  rm -f conftest.er1
22565  cat conftest.err >&5
22566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567  (exit $ac_status); } &&
22568	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22569  { (case "(($ac_try" in
22570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571  *) ac_try_echo=$ac_try;;
22572esac
22573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574  (eval "$ac_try") 2>&5
22575  ac_status=$?
22576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577  (exit $ac_status); }; } &&
22578	 { ac_try='test -s conftest$ac_exeext'
22579  { (case "(($ac_try" in
22580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581  *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584  (eval "$ac_try") 2>&5
22585  ac_status=$?
22586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587  (exit $ac_status); }; }; then
22588  gt_cv_func_CFPreferencesCopyAppValue=yes
22589else
22590  echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593	gt_cv_func_CFPreferencesCopyAppValue=no
22594fi
22595
22596rm -f core conftest.err conftest.$ac_objext \
22597      conftest$ac_exeext conftest.$ac_ext
22598     LIBS="$gt_save_LIBS"
22599fi
22600{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22601echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22602  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22603
22604cat >>confdefs.h <<\_ACEOF
22605#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22606_ACEOF
22607
22608  fi
22609    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22610echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
22611if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22612  echo $ECHO_N "(cached) $ECHO_C" >&6
22613else
22614  gt_save_LIBS="$LIBS"
22615     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22616     cat >conftest.$ac_ext <<_ACEOF
22617/* confdefs.h.  */
22618_ACEOF
22619cat confdefs.h >>conftest.$ac_ext
22620cat >>conftest.$ac_ext <<_ACEOF
22621/* end confdefs.h.  */
22622#include <CoreFoundation/CFLocale.h>
22623int
22624main ()
22625{
22626CFLocaleCopyCurrent();
22627  ;
22628  return 0;
22629}
22630_ACEOF
22631rm -f conftest.$ac_objext conftest$ac_exeext
22632if { (ac_try="$ac_link"
22633case "(($ac_try" in
22634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635  *) ac_try_echo=$ac_try;;
22636esac
22637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638  (eval "$ac_link") 2>conftest.er1
22639  ac_status=$?
22640  grep -v '^ *+' conftest.er1 >conftest.err
22641  rm -f conftest.er1
22642  cat conftest.err >&5
22643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644  (exit $ac_status); } &&
22645	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22646  { (case "(($ac_try" in
22647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648  *) ac_try_echo=$ac_try;;
22649esac
22650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22651  (eval "$ac_try") 2>&5
22652  ac_status=$?
22653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654  (exit $ac_status); }; } &&
22655	 { ac_try='test -s conftest$ac_exeext'
22656  { (case "(($ac_try" in
22657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658  *) ac_try_echo=$ac_try;;
22659esac
22660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661  (eval "$ac_try") 2>&5
22662  ac_status=$?
22663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664  (exit $ac_status); }; }; then
22665  gt_cv_func_CFLocaleCopyCurrent=yes
22666else
22667  echo "$as_me: failed program was:" >&5
22668sed 's/^/| /' conftest.$ac_ext >&5
22669
22670	gt_cv_func_CFLocaleCopyCurrent=no
22671fi
22672
22673rm -f core conftest.err conftest.$ac_objext \
22674      conftest$ac_exeext conftest.$ac_ext
22675     LIBS="$gt_save_LIBS"
22676fi
22677{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22678echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22679  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22680
22681cat >>confdefs.h <<\_ACEOF
22682#define HAVE_CFLOCALECOPYCURRENT 1
22683_ACEOF
22684
22685  fi
22686  INTL_MACOSX_LIBS=
22687  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22688    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22689  fi
22690
22691
22692
22693
22694
22695
22696  LIBINTL=
22697  LTLIBINTL=
22698  POSUB=
22699
22700    if test "$USE_NLS" = "yes"; then
22701    gt_use_preinstalled_gnugettext=no
22702
22703
22704
22705
22706
22707
22708        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22709echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
22710if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22711  echo $ECHO_N "(cached) $ECHO_C" >&6
22712else
22713  cat >conftest.$ac_ext <<_ACEOF
22714/* confdefs.h.  */
22715_ACEOF
22716cat confdefs.h >>conftest.$ac_ext
22717cat >>conftest.$ac_ext <<_ACEOF
22718/* end confdefs.h.  */
22719#include <libintl.h>
22720extern int _nl_msg_cat_cntr;
22721extern int *_nl_domain_bindings;
22722int
22723main ()
22724{
22725bindtextdomain ("", "");
22726return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22727  ;
22728  return 0;
22729}
22730_ACEOF
22731rm -f conftest.$ac_objext conftest$ac_exeext
22732if { (ac_try="$ac_link"
22733case "(($ac_try" in
22734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735  *) ac_try_echo=$ac_try;;
22736esac
22737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738  (eval "$ac_link") 2>conftest.er1
22739  ac_status=$?
22740  grep -v '^ *+' conftest.er1 >conftest.err
22741  rm -f conftest.er1
22742  cat conftest.err >&5
22743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744  (exit $ac_status); } &&
22745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22746  { (case "(($ac_try" in
22747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748  *) ac_try_echo=$ac_try;;
22749esac
22750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751  (eval "$ac_try") 2>&5
22752  ac_status=$?
22753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754  (exit $ac_status); }; } &&
22755	 { ac_try='test -s conftest$ac_exeext'
22756  { (case "(($ac_try" in
22757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758  *) ac_try_echo=$ac_try;;
22759esac
22760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761  (eval "$ac_try") 2>&5
22762  ac_status=$?
22763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764  (exit $ac_status); }; }; then
22765  gt_cv_func_gnugettext2_libc=yes
22766else
22767  echo "$as_me: failed program was:" >&5
22768sed 's/^/| /' conftest.$ac_ext >&5
22769
22770	gt_cv_func_gnugettext2_libc=no
22771fi
22772
22773rm -f core conftest.err conftest.$ac_objext \
22774      conftest$ac_exeext conftest.$ac_ext
22775fi
22776{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22777echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
22778
22779        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22780
22781
22782
22783
22784
22785          am_save_CPPFLAGS="$CPPFLAGS"
22786
22787  for element in $INCICONV; do
22788    haveit=
22789    for x in $CPPFLAGS; do
22790
22791  acl_save_prefix="$prefix"
22792  prefix="$acl_final_prefix"
22793  acl_save_exec_prefix="$exec_prefix"
22794  exec_prefix="$acl_final_exec_prefix"
22795  eval x=\"$x\"
22796  exec_prefix="$acl_save_exec_prefix"
22797  prefix="$acl_save_prefix"
22798
22799      if test "X$x" = "X$element"; then
22800        haveit=yes
22801        break
22802      fi
22803    done
22804    if test -z "$haveit"; then
22805      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22806    fi
22807  done
22808
22809
22810  { echo "$as_me:$LINENO: checking for iconv" >&5
22811echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22812if test "${am_cv_func_iconv+set}" = set; then
22813  echo $ECHO_N "(cached) $ECHO_C" >&6
22814else
22815
22816    am_cv_func_iconv="no, consider installing GNU libiconv"
22817    am_cv_lib_iconv=no
22818    cat >conftest.$ac_ext <<_ACEOF
22819/* confdefs.h.  */
22820_ACEOF
22821cat confdefs.h >>conftest.$ac_ext
22822cat >>conftest.$ac_ext <<_ACEOF
22823/* end confdefs.h.  */
22824#include <stdlib.h>
22825#include <iconv.h>
22826int
22827main ()
22828{
22829iconv_t cd = iconv_open("","");
22830       iconv(cd,NULL,NULL,NULL,NULL);
22831       iconv_close(cd);
22832  ;
22833  return 0;
22834}
22835_ACEOF
22836rm -f conftest.$ac_objext conftest$ac_exeext
22837if { (ac_try="$ac_link"
22838case "(($ac_try" in
22839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840  *) ac_try_echo=$ac_try;;
22841esac
22842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22843  (eval "$ac_link") 2>conftest.er1
22844  ac_status=$?
22845  grep -v '^ *+' conftest.er1 >conftest.err
22846  rm -f conftest.er1
22847  cat conftest.err >&5
22848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849  (exit $ac_status); } &&
22850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22851  { (case "(($ac_try" in
22852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853  *) ac_try_echo=$ac_try;;
22854esac
22855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22856  (eval "$ac_try") 2>&5
22857  ac_status=$?
22858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859  (exit $ac_status); }; } &&
22860	 { ac_try='test -s conftest$ac_exeext'
22861  { (case "(($ac_try" in
22862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863  *) ac_try_echo=$ac_try;;
22864esac
22865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866  (eval "$ac_try") 2>&5
22867  ac_status=$?
22868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869  (exit $ac_status); }; }; then
22870  am_cv_func_iconv=yes
22871else
22872  echo "$as_me: failed program was:" >&5
22873sed 's/^/| /' conftest.$ac_ext >&5
22874
22875
22876fi
22877
22878rm -f core conftest.err conftest.$ac_objext \
22879      conftest$ac_exeext conftest.$ac_ext
22880    if test "$am_cv_func_iconv" != yes; then
22881      am_save_LIBS="$LIBS"
22882      LIBS="$LIBS $LIBICONV"
22883      cat >conftest.$ac_ext <<_ACEOF
22884/* confdefs.h.  */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h.  */
22889#include <stdlib.h>
22890#include <iconv.h>
22891int
22892main ()
22893{
22894iconv_t cd = iconv_open("","");
22895         iconv(cd,NULL,NULL,NULL,NULL);
22896         iconv_close(cd);
22897  ;
22898  return 0;
22899}
22900_ACEOF
22901rm -f conftest.$ac_objext conftest$ac_exeext
22902if { (ac_try="$ac_link"
22903case "(($ac_try" in
22904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905  *) ac_try_echo=$ac_try;;
22906esac
22907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908  (eval "$ac_link") 2>conftest.er1
22909  ac_status=$?
22910  grep -v '^ *+' conftest.er1 >conftest.err
22911  rm -f conftest.er1
22912  cat conftest.err >&5
22913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914  (exit $ac_status); } &&
22915	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22916  { (case "(($ac_try" in
22917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918  *) ac_try_echo=$ac_try;;
22919esac
22920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921  (eval "$ac_try") 2>&5
22922  ac_status=$?
22923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924  (exit $ac_status); }; } &&
22925	 { ac_try='test -s conftest$ac_exeext'
22926  { (case "(($ac_try" in
22927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928  *) ac_try_echo=$ac_try;;
22929esac
22930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931  (eval "$ac_try") 2>&5
22932  ac_status=$?
22933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934  (exit $ac_status); }; }; then
22935  am_cv_lib_iconv=yes
22936        am_cv_func_iconv=yes
22937else
22938  echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941
22942fi
22943
22944rm -f core conftest.err conftest.$ac_objext \
22945      conftest$ac_exeext conftest.$ac_ext
22946      LIBS="$am_save_LIBS"
22947    fi
22948
22949fi
22950{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22951echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22952  if test "$am_cv_func_iconv" = yes; then
22953
22954cat >>confdefs.h <<\_ACEOF
22955#define HAVE_ICONV 1
22956_ACEOF
22957
22958  fi
22959  if test "$am_cv_lib_iconv" = yes; then
22960    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22961echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22962    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22963echo "${ECHO_T}$LIBICONV" >&6; }
22964  else
22965            CPPFLAGS="$am_save_CPPFLAGS"
22966    LIBICONV=
22967    LTLIBICONV=
22968  fi
22969
22970
22971
22972
22973
22974
22975
22976    use_additional=yes
22977
22978  acl_save_prefix="$prefix"
22979  prefix="$acl_final_prefix"
22980  acl_save_exec_prefix="$exec_prefix"
22981  exec_prefix="$acl_final_exec_prefix"
22982
22983    eval additional_includedir=\"$includedir\"
22984    eval additional_libdir=\"$libdir\"
22985
22986  exec_prefix="$acl_save_exec_prefix"
22987  prefix="$acl_save_prefix"
22988
22989
22990# Check whether --with-libintl-prefix was given.
22991if test "${with_libintl_prefix+set}" = set; then
22992  withval=$with_libintl_prefix;
22993    if test "X$withval" = "Xno"; then
22994      use_additional=no
22995    else
22996      if test "X$withval" = "X"; then
22997
22998  acl_save_prefix="$prefix"
22999  prefix="$acl_final_prefix"
23000  acl_save_exec_prefix="$exec_prefix"
23001  exec_prefix="$acl_final_exec_prefix"
23002
23003          eval additional_includedir=\"$includedir\"
23004          eval additional_libdir=\"$libdir\"
23005
23006  exec_prefix="$acl_save_exec_prefix"
23007  prefix="$acl_save_prefix"
23008
23009      else
23010        additional_includedir="$withval/include"
23011        additional_libdir="$withval/$acl_libdirstem"
23012      fi
23013    fi
23014
23015fi
23016
23017      LIBINTL=
23018  LTLIBINTL=
23019  INCINTL=
23020  rpathdirs=
23021  ltrpathdirs=
23022  names_already_handled=
23023  names_next_round='intl '
23024  while test -n "$names_next_round"; do
23025    names_this_round="$names_next_round"
23026    names_next_round=
23027    for name in $names_this_round; do
23028      already_handled=
23029      for n in $names_already_handled; do
23030        if test "$n" = "$name"; then
23031          already_handled=yes
23032          break
23033        fi
23034      done
23035      if test -z "$already_handled"; then
23036        names_already_handled="$names_already_handled $name"
23037                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23038        eval value=\"\$HAVE_LIB$uppername\"
23039        if test -n "$value"; then
23040          if test "$value" = yes; then
23041            eval value=\"\$LIB$uppername\"
23042            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23043            eval value=\"\$LTLIB$uppername\"
23044            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23045          else
23046                                    :
23047          fi
23048        else
23049                              found_dir=
23050          found_la=
23051          found_so=
23052          found_a=
23053          if test $use_additional = yes; then
23054            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23055              found_dir="$additional_libdir"
23056              found_so="$additional_libdir/lib$name.$shlibext"
23057              if test -f "$additional_libdir/lib$name.la"; then
23058                found_la="$additional_libdir/lib$name.la"
23059              fi
23060            else
23061              if test -f "$additional_libdir/lib$name.$libext"; then
23062                found_dir="$additional_libdir"
23063                found_a="$additional_libdir/lib$name.$libext"
23064                if test -f "$additional_libdir/lib$name.la"; then
23065                  found_la="$additional_libdir/lib$name.la"
23066                fi
23067              fi
23068            fi
23069          fi
23070          if test "X$found_dir" = "X"; then
23071            for x in $LDFLAGS $LTLIBINTL; do
23072
23073  acl_save_prefix="$prefix"
23074  prefix="$acl_final_prefix"
23075  acl_save_exec_prefix="$exec_prefix"
23076  exec_prefix="$acl_final_exec_prefix"
23077  eval x=\"$x\"
23078  exec_prefix="$acl_save_exec_prefix"
23079  prefix="$acl_save_prefix"
23080
23081              case "$x" in
23082                -L*)
23083                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23084                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23085                    found_dir="$dir"
23086                    found_so="$dir/lib$name.$shlibext"
23087                    if test -f "$dir/lib$name.la"; then
23088                      found_la="$dir/lib$name.la"
23089                    fi
23090                  else
23091                    if test -f "$dir/lib$name.$libext"; then
23092                      found_dir="$dir"
23093                      found_a="$dir/lib$name.$libext"
23094                      if test -f "$dir/lib$name.la"; then
23095                        found_la="$dir/lib$name.la"
23096                      fi
23097                    fi
23098                  fi
23099                  ;;
23100              esac
23101              if test "X$found_dir" != "X"; then
23102                break
23103              fi
23104            done
23105          fi
23106          if test "X$found_dir" != "X"; then
23107                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23108            if test "X$found_so" != "X"; then
23109                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23110                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23111              else
23112                                                                                haveit=
23113                for x in $ltrpathdirs; do
23114                  if test "X$x" = "X$found_dir"; then
23115                    haveit=yes
23116                    break
23117                  fi
23118                done
23119                if test -z "$haveit"; then
23120                  ltrpathdirs="$ltrpathdirs $found_dir"
23121                fi
23122                                if test "$hardcode_direct" = yes; then
23123                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23124                else
23125                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23126                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23127                                                            haveit=
23128                    for x in $rpathdirs; do
23129                      if test "X$x" = "X$found_dir"; then
23130                        haveit=yes
23131                        break
23132                      fi
23133                    done
23134                    if test -z "$haveit"; then
23135                      rpathdirs="$rpathdirs $found_dir"
23136                    fi
23137                  else
23138                                                                                haveit=
23139                    for x in $LDFLAGS $LIBINTL; do
23140
23141  acl_save_prefix="$prefix"
23142  prefix="$acl_final_prefix"
23143  acl_save_exec_prefix="$exec_prefix"
23144  exec_prefix="$acl_final_exec_prefix"
23145  eval x=\"$x\"
23146  exec_prefix="$acl_save_exec_prefix"
23147  prefix="$acl_save_prefix"
23148
23149                      if test "X$x" = "X-L$found_dir"; then
23150                        haveit=yes
23151                        break
23152                      fi
23153                    done
23154                    if test -z "$haveit"; then
23155                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23156                    fi
23157                    if test "$hardcode_minus_L" != no; then
23158                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23159                    else
23160                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23161                    fi
23162                  fi
23163                fi
23164              fi
23165            else
23166              if test "X$found_a" != "X"; then
23167                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23168              else
23169                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23170              fi
23171            fi
23172                        additional_includedir=
23173            case "$found_dir" in
23174              */$acl_libdirstem | */$acl_libdirstem/)
23175                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23176                additional_includedir="$basedir/include"
23177                ;;
23178            esac
23179            if test "X$additional_includedir" != "X"; then
23180                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23181                haveit=
23182                if test "X$additional_includedir" = "X/usr/local/include"; then
23183                  if test -n "$GCC"; then
23184                    case $host_os in
23185                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23186                    esac
23187                  fi
23188                fi
23189                if test -z "$haveit"; then
23190                  for x in $CPPFLAGS $INCINTL; do
23191
23192  acl_save_prefix="$prefix"
23193  prefix="$acl_final_prefix"
23194  acl_save_exec_prefix="$exec_prefix"
23195  exec_prefix="$acl_final_exec_prefix"
23196  eval x=\"$x\"
23197  exec_prefix="$acl_save_exec_prefix"
23198  prefix="$acl_save_prefix"
23199
23200                    if test "X$x" = "X-I$additional_includedir"; then
23201                      haveit=yes
23202                      break
23203                    fi
23204                  done
23205                  if test -z "$haveit"; then
23206                    if test -d "$additional_includedir"; then
23207                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23208                    fi
23209                  fi
23210                fi
23211              fi
23212            fi
23213                        if test -n "$found_la"; then
23214                                                        save_libdir="$libdir"
23215              case "$found_la" in
23216                */* | *\\*) . "$found_la" ;;
23217                *) . "./$found_la" ;;
23218              esac
23219              libdir="$save_libdir"
23220                            for dep in $dependency_libs; do
23221                case "$dep" in
23222                  -L*)
23223                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23224                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23225                      haveit=
23226                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23227                        if test -n "$GCC"; then
23228                          case $host_os in
23229                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23230                          esac
23231                        fi
23232                      fi
23233                      if test -z "$haveit"; then
23234                        haveit=
23235                        for x in $LDFLAGS $LIBINTL; do
23236
23237  acl_save_prefix="$prefix"
23238  prefix="$acl_final_prefix"
23239  acl_save_exec_prefix="$exec_prefix"
23240  exec_prefix="$acl_final_exec_prefix"
23241  eval x=\"$x\"
23242  exec_prefix="$acl_save_exec_prefix"
23243  prefix="$acl_save_prefix"
23244
23245                          if test "X$x" = "X-L$additional_libdir"; then
23246                            haveit=yes
23247                            break
23248                          fi
23249                        done
23250                        if test -z "$haveit"; then
23251                          if test -d "$additional_libdir"; then
23252                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23253                          fi
23254                        fi
23255                        haveit=
23256                        for x in $LDFLAGS $LTLIBINTL; do
23257
23258  acl_save_prefix="$prefix"
23259  prefix="$acl_final_prefix"
23260  acl_save_exec_prefix="$exec_prefix"
23261  exec_prefix="$acl_final_exec_prefix"
23262  eval x=\"$x\"
23263  exec_prefix="$acl_save_exec_prefix"
23264  prefix="$acl_save_prefix"
23265
23266                          if test "X$x" = "X-L$additional_libdir"; then
23267                            haveit=yes
23268                            break
23269                          fi
23270                        done
23271                        if test -z "$haveit"; then
23272                          if test -d "$additional_libdir"; then
23273                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23274                          fi
23275                        fi
23276                      fi
23277                    fi
23278                    ;;
23279                  -R*)
23280                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
23281                    if test "$enable_rpath" != no; then
23282                                                                  haveit=
23283                      for x in $rpathdirs; do
23284                        if test "X$x" = "X$dir"; then
23285                          haveit=yes
23286                          break
23287                        fi
23288                      done
23289                      if test -z "$haveit"; then
23290                        rpathdirs="$rpathdirs $dir"
23291                      fi
23292                                                                  haveit=
23293                      for x in $ltrpathdirs; do
23294                        if test "X$x" = "X$dir"; then
23295                          haveit=yes
23296                          break
23297                        fi
23298                      done
23299                      if test -z "$haveit"; then
23300                        ltrpathdirs="$ltrpathdirs $dir"
23301                      fi
23302                    fi
23303                    ;;
23304                  -l*)
23305                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23306                    ;;
23307                  *.la)
23308                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23309                    ;;
23310                  *)
23311                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23312                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23313                    ;;
23314                esac
23315              done
23316            fi
23317          else
23318                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23319            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23320          fi
23321        fi
23322      fi
23323    done
23324  done
23325  if test "X$rpathdirs" != "X"; then
23326    if test -n "$hardcode_libdir_separator"; then
23327                        alldirs=
23328      for found_dir in $rpathdirs; do
23329        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23330      done
23331            acl_save_libdir="$libdir"
23332      libdir="$alldirs"
23333      eval flag=\"$hardcode_libdir_flag_spec\"
23334      libdir="$acl_save_libdir"
23335      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23336    else
23337            for found_dir in $rpathdirs; do
23338        acl_save_libdir="$libdir"
23339        libdir="$found_dir"
23340        eval flag=\"$hardcode_libdir_flag_spec\"
23341        libdir="$acl_save_libdir"
23342        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23343      done
23344    fi
23345  fi
23346  if test "X$ltrpathdirs" != "X"; then
23347            for found_dir in $ltrpathdirs; do
23348      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23349    done
23350  fi
23351
23352          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23353echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23354if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23355  echo $ECHO_N "(cached) $ECHO_C" >&6
23356else
23357  gt_save_CPPFLAGS="$CPPFLAGS"
23358            CPPFLAGS="$CPPFLAGS $INCINTL"
23359            gt_save_LIBS="$LIBS"
23360            LIBS="$LIBS $LIBINTL"
23361                        cat >conftest.$ac_ext <<_ACEOF
23362/* confdefs.h.  */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h.  */
23367#include <libintl.h>
23368extern int _nl_msg_cat_cntr;
23369extern
23370#ifdef __cplusplus
23371"C"
23372#endif
23373const char *_nl_expand_alias (const char *);
23374int
23375main ()
23376{
23377bindtextdomain ("", "");
23378return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23379  ;
23380  return 0;
23381}
23382_ACEOF
23383rm -f conftest.$ac_objext conftest$ac_exeext
23384if { (ac_try="$ac_link"
23385case "(($ac_try" in
23386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387  *) ac_try_echo=$ac_try;;
23388esac
23389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390  (eval "$ac_link") 2>conftest.er1
23391  ac_status=$?
23392  grep -v '^ *+' conftest.er1 >conftest.err
23393  rm -f conftest.er1
23394  cat conftest.err >&5
23395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396  (exit $ac_status); } &&
23397	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23398  { (case "(($ac_try" in
23399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400  *) ac_try_echo=$ac_try;;
23401esac
23402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403  (eval "$ac_try") 2>&5
23404  ac_status=$?
23405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406  (exit $ac_status); }; } &&
23407	 { ac_try='test -s conftest$ac_exeext'
23408  { (case "(($ac_try" in
23409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410  *) ac_try_echo=$ac_try;;
23411esac
23412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413  (eval "$ac_try") 2>&5
23414  ac_status=$?
23415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416  (exit $ac_status); }; }; then
23417  gt_cv_func_gnugettext2_libintl=yes
23418else
23419  echo "$as_me: failed program was:" >&5
23420sed 's/^/| /' conftest.$ac_ext >&5
23421
23422	gt_cv_func_gnugettext2_libintl=no
23423fi
23424
23425rm -f core conftest.err conftest.$ac_objext \
23426      conftest$ac_exeext conftest.$ac_ext
23427                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23428              LIBS="$LIBS $LIBICONV"
23429              cat >conftest.$ac_ext <<_ACEOF
23430/* confdefs.h.  */
23431_ACEOF
23432cat confdefs.h >>conftest.$ac_ext
23433cat >>conftest.$ac_ext <<_ACEOF
23434/* end confdefs.h.  */
23435#include <libintl.h>
23436extern int _nl_msg_cat_cntr;
23437extern
23438#ifdef __cplusplus
23439"C"
23440#endif
23441const char *_nl_expand_alias (const char *);
23442int
23443main ()
23444{
23445bindtextdomain ("", "");
23446return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23447  ;
23448  return 0;
23449}
23450_ACEOF
23451rm -f conftest.$ac_objext conftest$ac_exeext
23452if { (ac_try="$ac_link"
23453case "(($ac_try" in
23454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455  *) ac_try_echo=$ac_try;;
23456esac
23457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458  (eval "$ac_link") 2>conftest.er1
23459  ac_status=$?
23460  grep -v '^ *+' conftest.er1 >conftest.err
23461  rm -f conftest.er1
23462  cat conftest.err >&5
23463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464  (exit $ac_status); } &&
23465	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23466  { (case "(($ac_try" in
23467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468  *) ac_try_echo=$ac_try;;
23469esac
23470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471  (eval "$ac_try") 2>&5
23472  ac_status=$?
23473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474  (exit $ac_status); }; } &&
23475	 { ac_try='test -s conftest$ac_exeext'
23476  { (case "(($ac_try" in
23477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478  *) ac_try_echo=$ac_try;;
23479esac
23480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481  (eval "$ac_try") 2>&5
23482  ac_status=$?
23483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484  (exit $ac_status); }; }; then
23485  LIBINTL="$LIBINTL $LIBICONV"
23486                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23487                gt_cv_func_gnugettext2_libintl=yes
23488
23489else
23490  echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
23493
23494fi
23495
23496rm -f core conftest.err conftest.$ac_objext \
23497      conftest$ac_exeext conftest.$ac_ext
23498            fi
23499            CPPFLAGS="$gt_save_CPPFLAGS"
23500            LIBS="$gt_save_LIBS"
23501fi
23502{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23503echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
23504        fi
23505
23506                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23507           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23508                && test "$PACKAGE" != gettext-runtime \
23509                && test "$PACKAGE" != gettext-tools; }; then
23510          gt_use_preinstalled_gnugettext=yes
23511        else
23512                    LIBINTL=
23513          LTLIBINTL=
23514          INCINTL=
23515        fi
23516
23517
23518
23519    if test -n "$INTL_MACOSX_LIBS"; then
23520      if test "$gt_use_preinstalled_gnugettext" = "yes" \
23521         || test "$nls_cv_use_gnu_gettext" = "yes"; then
23522                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23523        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23524      fi
23525    fi
23526
23527    if test "$gt_use_preinstalled_gnugettext" = "yes" \
23528       || test "$nls_cv_use_gnu_gettext" = "yes"; then
23529
23530cat >>confdefs.h <<\_ACEOF
23531#define ENABLE_NLS 1
23532_ACEOF
23533
23534    else
23535      USE_NLS=no
23536    fi
23537  fi
23538
23539  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23540echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23541  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23542echo "${ECHO_T}$USE_NLS" >&6; }
23543  if test "$USE_NLS" = "yes"; then
23544    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23545echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23546    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23547      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23548        gt_source="external libintl"
23549      else
23550        gt_source="libc"
23551      fi
23552    else
23553      gt_source="included intl directory"
23554    fi
23555    { echo "$as_me:$LINENO: result: $gt_source" >&5
23556echo "${ECHO_T}$gt_source" >&6; }
23557  fi
23558
23559  if test "$USE_NLS" = "yes"; then
23560
23561    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23562      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23563        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23564echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23565        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23566echo "${ECHO_T}$LIBINTL" >&6; }
23567
23568  for element in $INCINTL; do
23569    haveit=
23570    for x in $CPPFLAGS; do
23571
23572  acl_save_prefix="$prefix"
23573  prefix="$acl_final_prefix"
23574  acl_save_exec_prefix="$exec_prefix"
23575  exec_prefix="$acl_final_exec_prefix"
23576  eval x=\"$x\"
23577  exec_prefix="$acl_save_exec_prefix"
23578  prefix="$acl_save_prefix"
23579
23580      if test "X$x" = "X$element"; then
23581        haveit=yes
23582        break
23583      fi
23584    done
23585    if test -z "$haveit"; then
23586      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23587    fi
23588  done
23589
23590      fi
23591
23592
23593cat >>confdefs.h <<\_ACEOF
23594#define HAVE_GETTEXT 1
23595_ACEOF
23596
23597
23598cat >>confdefs.h <<\_ACEOF
23599#define HAVE_DCGETTEXT 1
23600_ACEOF
23601
23602    fi
23603
23604        POSUB=po
23605  fi
23606
23607
23608
23609    INTLLIBS="$LIBINTL"
23610
23611
23612
23613
23614
23615
23616
23617
23618{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23619echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23620if test "${ac_cv_header_stdc+set}" = set; then
23621  echo $ECHO_N "(cached) $ECHO_C" >&6
23622else
23623  cat >conftest.$ac_ext <<_ACEOF
23624/* confdefs.h.  */
23625_ACEOF
23626cat confdefs.h >>conftest.$ac_ext
23627cat >>conftest.$ac_ext <<_ACEOF
23628/* end confdefs.h.  */
23629#include <stdlib.h>
23630#include <stdarg.h>
23631#include <string.h>
23632#include <float.h>
23633
23634int
23635main ()
23636{
23637
23638  ;
23639  return 0;
23640}
23641_ACEOF
23642rm -f conftest.$ac_objext
23643if { (ac_try="$ac_compile"
23644case "(($ac_try" in
23645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646  *) ac_try_echo=$ac_try;;
23647esac
23648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649  (eval "$ac_compile") 2>conftest.er1
23650  ac_status=$?
23651  grep -v '^ *+' conftest.er1 >conftest.err
23652  rm -f conftest.er1
23653  cat conftest.err >&5
23654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655  (exit $ac_status); } &&
23656	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23657  { (case "(($ac_try" in
23658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659  *) ac_try_echo=$ac_try;;
23660esac
23661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662  (eval "$ac_try") 2>&5
23663  ac_status=$?
23664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665  (exit $ac_status); }; } &&
23666	 { ac_try='test -s conftest.$ac_objext'
23667  { (case "(($ac_try" in
23668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669  *) ac_try_echo=$ac_try;;
23670esac
23671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672  (eval "$ac_try") 2>&5
23673  ac_status=$?
23674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675  (exit $ac_status); }; }; then
23676  ac_cv_header_stdc=yes
23677else
23678  echo "$as_me: failed program was:" >&5
23679sed 's/^/| /' conftest.$ac_ext >&5
23680
23681	ac_cv_header_stdc=no
23682fi
23683
23684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685
23686if test $ac_cv_header_stdc = yes; then
23687  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23688  cat >conftest.$ac_ext <<_ACEOF
23689/* confdefs.h.  */
23690_ACEOF
23691cat confdefs.h >>conftest.$ac_ext
23692cat >>conftest.$ac_ext <<_ACEOF
23693/* end confdefs.h.  */
23694#include <string.h>
23695
23696_ACEOF
23697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23698  $EGREP "memchr" >/dev/null 2>&1; then
23699  :
23700else
23701  ac_cv_header_stdc=no
23702fi
23703rm -f conftest*
23704
23705fi
23706
23707if test $ac_cv_header_stdc = yes; then
23708  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23709  cat >conftest.$ac_ext <<_ACEOF
23710/* confdefs.h.  */
23711_ACEOF
23712cat confdefs.h >>conftest.$ac_ext
23713cat >>conftest.$ac_ext <<_ACEOF
23714/* end confdefs.h.  */
23715#include <stdlib.h>
23716
23717_ACEOF
23718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23719  $EGREP "free" >/dev/null 2>&1; then
23720  :
23721else
23722  ac_cv_header_stdc=no
23723fi
23724rm -f conftest*
23725
23726fi
23727
23728if test $ac_cv_header_stdc = yes; then
23729  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23730  if test "$cross_compiling" = yes; then
23731  :
23732else
23733  cat >conftest.$ac_ext <<_ACEOF
23734/* confdefs.h.  */
23735_ACEOF
23736cat confdefs.h >>conftest.$ac_ext
23737cat >>conftest.$ac_ext <<_ACEOF
23738/* end confdefs.h.  */
23739#include <ctype.h>
23740#include <stdlib.h>
23741#if ((' ' & 0x0FF) == 0x020)
23742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23744#else
23745# define ISLOWER(c) \
23746		   (('a' <= (c) && (c) <= 'i') \
23747		     || ('j' <= (c) && (c) <= 'r') \
23748		     || ('s' <= (c) && (c) <= 'z'))
23749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23750#endif
23751
23752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23753int
23754main ()
23755{
23756  int i;
23757  for (i = 0; i < 256; i++)
23758    if (XOR (islower (i), ISLOWER (i))
23759	|| toupper (i) != TOUPPER (i))
23760      return 2;
23761  return 0;
23762}
23763_ACEOF
23764rm -f conftest$ac_exeext
23765if { (ac_try="$ac_link"
23766case "(($ac_try" in
23767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768  *) ac_try_echo=$ac_try;;
23769esac
23770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23771  (eval "$ac_link") 2>&5
23772  ac_status=$?
23773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23775  { (case "(($ac_try" in
23776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777  *) ac_try_echo=$ac_try;;
23778esac
23779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780  (eval "$ac_try") 2>&5
23781  ac_status=$?
23782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783  (exit $ac_status); }; }; then
23784  :
23785else
23786  echo "$as_me: program exited with status $ac_status" >&5
23787echo "$as_me: failed program was:" >&5
23788sed 's/^/| /' conftest.$ac_ext >&5
23789
23790( exit $ac_status )
23791ac_cv_header_stdc=no
23792fi
23793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23794fi
23795
23796
23797fi
23798fi
23799{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23800echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23801if test $ac_cv_header_stdc = yes; then
23802
23803cat >>confdefs.h <<\_ACEOF
23804#define STDC_HEADERS 1
23805_ACEOF
23806
23807fi
23808
23809
23810
23811
23812
23813for ac_header in locale.h stddef.h stdlib.h string.h
23814do
23815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23817  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23820  echo $ECHO_N "(cached) $ECHO_C" >&6
23821fi
23822ac_res=`eval echo '${'$as_ac_Header'}'`
23823	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23824echo "${ECHO_T}$ac_res" >&6; }
23825else
23826  # Is the header compilable?
23827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23829cat >conftest.$ac_ext <<_ACEOF
23830/* confdefs.h.  */
23831_ACEOF
23832cat confdefs.h >>conftest.$ac_ext
23833cat >>conftest.$ac_ext <<_ACEOF
23834/* end confdefs.h.  */
23835$ac_includes_default
23836#include <$ac_header>
23837_ACEOF
23838rm -f conftest.$ac_objext
23839if { (ac_try="$ac_compile"
23840case "(($ac_try" in
23841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842  *) ac_try_echo=$ac_try;;
23843esac
23844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845  (eval "$ac_compile") 2>conftest.er1
23846  ac_status=$?
23847  grep -v '^ *+' conftest.er1 >conftest.err
23848  rm -f conftest.er1
23849  cat conftest.err >&5
23850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851  (exit $ac_status); } &&
23852	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23853  { (case "(($ac_try" in
23854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855  *) ac_try_echo=$ac_try;;
23856esac
23857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858  (eval "$ac_try") 2>&5
23859  ac_status=$?
23860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861  (exit $ac_status); }; } &&
23862	 { ac_try='test -s conftest.$ac_objext'
23863  { (case "(($ac_try" in
23864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865  *) ac_try_echo=$ac_try;;
23866esac
23867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868  (eval "$ac_try") 2>&5
23869  ac_status=$?
23870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871  (exit $ac_status); }; }; then
23872  ac_header_compiler=yes
23873else
23874  echo "$as_me: failed program was:" >&5
23875sed 's/^/| /' conftest.$ac_ext >&5
23876
23877	ac_header_compiler=no
23878fi
23879
23880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23882echo "${ECHO_T}$ac_header_compiler" >&6; }
23883
23884# Is the header present?
23885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23887cat >conftest.$ac_ext <<_ACEOF
23888/* confdefs.h.  */
23889_ACEOF
23890cat confdefs.h >>conftest.$ac_ext
23891cat >>conftest.$ac_ext <<_ACEOF
23892/* end confdefs.h.  */
23893#include <$ac_header>
23894_ACEOF
23895if { (ac_try="$ac_cpp conftest.$ac_ext"
23896case "(($ac_try" in
23897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898  *) ac_try_echo=$ac_try;;
23899esac
23900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23902  ac_status=$?
23903  grep -v '^ *+' conftest.er1 >conftest.err
23904  rm -f conftest.er1
23905  cat conftest.err >&5
23906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907  (exit $ac_status); } >/dev/null; then
23908  if test -s conftest.err; then
23909    ac_cpp_err=$ac_c_preproc_warn_flag
23910    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23911  else
23912    ac_cpp_err=
23913  fi
23914else
23915  ac_cpp_err=yes
23916fi
23917if test -z "$ac_cpp_err"; then
23918  ac_header_preproc=yes
23919else
23920  echo "$as_me: failed program was:" >&5
23921sed 's/^/| /' conftest.$ac_ext >&5
23922
23923  ac_header_preproc=no
23924fi
23925
23926rm -f conftest.err conftest.$ac_ext
23927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23928echo "${ECHO_T}$ac_header_preproc" >&6; }
23929
23930# So?  What about this header?
23931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23932  yes:no: )
23933    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23937    ac_header_preproc=yes
23938    ;;
23939  no:yes:* )
23940    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23942    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23943echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23944    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23946    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23947echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23950    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23952
23953    ;;
23954esac
23955{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23958  echo $ECHO_N "(cached) $ECHO_C" >&6
23959else
23960  eval "$as_ac_Header=\$ac_header_preproc"
23961fi
23962ac_res=`eval echo '${'$as_ac_Header'}'`
23963	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23964echo "${ECHO_T}$ac_res" >&6; }
23965
23966fi
23967if test `eval echo '${'$as_ac_Header'}'` = yes; then
23968  cat >>confdefs.h <<_ACEOF
23969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23970_ACEOF
23971
23972fi
23973
23974done
23975
23976
23977
23978for ac_header in unistd.h
23979do
23980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23982  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23985  echo $ECHO_N "(cached) $ECHO_C" >&6
23986fi
23987ac_res=`eval echo '${'$as_ac_Header'}'`
23988	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23989echo "${ECHO_T}$ac_res" >&6; }
23990else
23991  # Is the header compilable?
23992{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23994cat >conftest.$ac_ext <<_ACEOF
23995/* confdefs.h.  */
23996_ACEOF
23997cat confdefs.h >>conftest.$ac_ext
23998cat >>conftest.$ac_ext <<_ACEOF
23999/* end confdefs.h.  */
24000$ac_includes_default
24001#include <$ac_header>
24002_ACEOF
24003rm -f conftest.$ac_objext
24004if { (ac_try="$ac_compile"
24005case "(($ac_try" in
24006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007  *) ac_try_echo=$ac_try;;
24008esac
24009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010  (eval "$ac_compile") 2>conftest.er1
24011  ac_status=$?
24012  grep -v '^ *+' conftest.er1 >conftest.err
24013  rm -f conftest.er1
24014  cat conftest.err >&5
24015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016  (exit $ac_status); } &&
24017	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24018  { (case "(($ac_try" in
24019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020  *) ac_try_echo=$ac_try;;
24021esac
24022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023  (eval "$ac_try") 2>&5
24024  ac_status=$?
24025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026  (exit $ac_status); }; } &&
24027	 { ac_try='test -s conftest.$ac_objext'
24028  { (case "(($ac_try" in
24029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030  *) ac_try_echo=$ac_try;;
24031esac
24032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033  (eval "$ac_try") 2>&5
24034  ac_status=$?
24035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036  (exit $ac_status); }; }; then
24037  ac_header_compiler=yes
24038else
24039  echo "$as_me: failed program was:" >&5
24040sed 's/^/| /' conftest.$ac_ext >&5
24041
24042	ac_header_compiler=no
24043fi
24044
24045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24046{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24047echo "${ECHO_T}$ac_header_compiler" >&6; }
24048
24049# Is the header present?
24050{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24052cat >conftest.$ac_ext <<_ACEOF
24053/* confdefs.h.  */
24054_ACEOF
24055cat confdefs.h >>conftest.$ac_ext
24056cat >>conftest.$ac_ext <<_ACEOF
24057/* end confdefs.h.  */
24058#include <$ac_header>
24059_ACEOF
24060if { (ac_try="$ac_cpp conftest.$ac_ext"
24061case "(($ac_try" in
24062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063  *) ac_try_echo=$ac_try;;
24064esac
24065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24067  ac_status=$?
24068  grep -v '^ *+' conftest.er1 >conftest.err
24069  rm -f conftest.er1
24070  cat conftest.err >&5
24071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072  (exit $ac_status); } >/dev/null; then
24073  if test -s conftest.err; then
24074    ac_cpp_err=$ac_c_preproc_warn_flag
24075    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24076  else
24077    ac_cpp_err=
24078  fi
24079else
24080  ac_cpp_err=yes
24081fi
24082if test -z "$ac_cpp_err"; then
24083  ac_header_preproc=yes
24084else
24085  echo "$as_me: failed program was:" >&5
24086sed 's/^/| /' conftest.$ac_ext >&5
24087
24088  ac_header_preproc=no
24089fi
24090
24091rm -f conftest.err conftest.$ac_ext
24092{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24093echo "${ECHO_T}$ac_header_preproc" >&6; }
24094
24095# So?  What about this header?
24096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24097  yes:no: )
24098    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24100    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24102    ac_header_preproc=yes
24103    ;;
24104  no:yes:* )
24105    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24107    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24108echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24109    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24111    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24112echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24113    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24115    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24117
24118    ;;
24119esac
24120{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24123  echo $ECHO_N "(cached) $ECHO_C" >&6
24124else
24125  eval "$as_ac_Header=\$ac_header_preproc"
24126fi
24127ac_res=`eval echo '${'$as_ac_Header'}'`
24128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24129echo "${ECHO_T}$ac_res" >&6; }
24130
24131fi
24132if test `eval echo '${'$as_ac_Header'}'` = yes; then
24133  cat >>confdefs.h <<_ACEOF
24134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24135_ACEOF
24136
24137    UNISTD_H=''
24138
24139else
24140
24141    UNISTD_H='unistd.h'
24142
24143fi
24144
24145done
24146
24147
24148
24149
24150
24151{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
24152echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24153if test "${ac_cv_type_mbstate_t+set}" = set; then
24154  echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156  cat >conftest.$ac_ext <<_ACEOF
24157/* confdefs.h.  */
24158_ACEOF
24159cat confdefs.h >>conftest.$ac_ext
24160cat >>conftest.$ac_ext <<_ACEOF
24161/* end confdefs.h.  */
24162$ac_includes_default
24163#	    include <wchar.h>
24164int
24165main ()
24166{
24167mbstate_t x; return sizeof x;
24168  ;
24169  return 0;
24170}
24171_ACEOF
24172rm -f conftest.$ac_objext
24173if { (ac_try="$ac_compile"
24174case "(($ac_try" in
24175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176  *) ac_try_echo=$ac_try;;
24177esac
24178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179  (eval "$ac_compile") 2>conftest.er1
24180  ac_status=$?
24181  grep -v '^ *+' conftest.er1 >conftest.err
24182  rm -f conftest.er1
24183  cat conftest.err >&5
24184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185  (exit $ac_status); } &&
24186	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24187  { (case "(($ac_try" in
24188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189  *) ac_try_echo=$ac_try;;
24190esac
24191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192  (eval "$ac_try") 2>&5
24193  ac_status=$?
24194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195  (exit $ac_status); }; } &&
24196	 { ac_try='test -s conftest.$ac_objext'
24197  { (case "(($ac_try" in
24198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199  *) ac_try_echo=$ac_try;;
24200esac
24201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202  (eval "$ac_try") 2>&5
24203  ac_status=$?
24204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205  (exit $ac_status); }; }; then
24206  ac_cv_type_mbstate_t=yes
24207else
24208  echo "$as_me: failed program was:" >&5
24209sed 's/^/| /' conftest.$ac_ext >&5
24210
24211	ac_cv_type_mbstate_t=no
24212fi
24213
24214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215fi
24216{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24217echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24218   if test $ac_cv_type_mbstate_t = yes; then
24219
24220cat >>confdefs.h <<\_ACEOF
24221#define HAVE_MBSTATE_T 1
24222_ACEOF
24223
24224   else
24225
24226cat >>confdefs.h <<\_ACEOF
24227#define mbstate_t int
24228_ACEOF
24229
24230   fi
24231
24232
24233for ac_header in wchar.h
24234do
24235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24237  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24240  echo $ECHO_N "(cached) $ECHO_C" >&6
24241fi
24242ac_res=`eval echo '${'$as_ac_Header'}'`
24243	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24244echo "${ECHO_T}$ac_res" >&6; }
24245else
24246  # Is the header compilable?
24247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24249cat >conftest.$ac_ext <<_ACEOF
24250/* confdefs.h.  */
24251_ACEOF
24252cat confdefs.h >>conftest.$ac_ext
24253cat >>conftest.$ac_ext <<_ACEOF
24254/* end confdefs.h.  */
24255$ac_includes_default
24256#include <$ac_header>
24257_ACEOF
24258rm -f conftest.$ac_objext
24259if { (ac_try="$ac_compile"
24260case "(($ac_try" in
24261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262  *) ac_try_echo=$ac_try;;
24263esac
24264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265  (eval "$ac_compile") 2>conftest.er1
24266  ac_status=$?
24267  grep -v '^ *+' conftest.er1 >conftest.err
24268  rm -f conftest.er1
24269  cat conftest.err >&5
24270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271  (exit $ac_status); } &&
24272	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24273  { (case "(($ac_try" in
24274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24275  *) ac_try_echo=$ac_try;;
24276esac
24277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24278  (eval "$ac_try") 2>&5
24279  ac_status=$?
24280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281  (exit $ac_status); }; } &&
24282	 { ac_try='test -s conftest.$ac_objext'
24283  { (case "(($ac_try" in
24284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285  *) ac_try_echo=$ac_try;;
24286esac
24287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288  (eval "$ac_try") 2>&5
24289  ac_status=$?
24290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291  (exit $ac_status); }; }; then
24292  ac_header_compiler=yes
24293else
24294  echo "$as_me: failed program was:" >&5
24295sed 's/^/| /' conftest.$ac_ext >&5
24296
24297	ac_header_compiler=no
24298fi
24299
24300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24302echo "${ECHO_T}$ac_header_compiler" >&6; }
24303
24304# Is the header present?
24305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24307cat >conftest.$ac_ext <<_ACEOF
24308/* confdefs.h.  */
24309_ACEOF
24310cat confdefs.h >>conftest.$ac_ext
24311cat >>conftest.$ac_ext <<_ACEOF
24312/* end confdefs.h.  */
24313#include <$ac_header>
24314_ACEOF
24315if { (ac_try="$ac_cpp conftest.$ac_ext"
24316case "(($ac_try" in
24317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318  *) ac_try_echo=$ac_try;;
24319esac
24320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24322  ac_status=$?
24323  grep -v '^ *+' conftest.er1 >conftest.err
24324  rm -f conftest.er1
24325  cat conftest.err >&5
24326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327  (exit $ac_status); } >/dev/null; then
24328  if test -s conftest.err; then
24329    ac_cpp_err=$ac_c_preproc_warn_flag
24330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24331  else
24332    ac_cpp_err=
24333  fi
24334else
24335  ac_cpp_err=yes
24336fi
24337if test -z "$ac_cpp_err"; then
24338  ac_header_preproc=yes
24339else
24340  echo "$as_me: failed program was:" >&5
24341sed 's/^/| /' conftest.$ac_ext >&5
24342
24343  ac_header_preproc=no
24344fi
24345
24346rm -f conftest.err conftest.$ac_ext
24347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24348echo "${ECHO_T}$ac_header_preproc" >&6; }
24349
24350# So?  What about this header?
24351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24352  yes:no: )
24353    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24355    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24357    ac_header_preproc=yes
24358    ;;
24359  no:yes:* )
24360    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24362    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24363echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24364    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24366    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24367echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24368    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24370    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24372
24373    ;;
24374esac
24375{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24378  echo $ECHO_N "(cached) $ECHO_C" >&6
24379else
24380  eval "$as_ac_Header=\$ac_header_preproc"
24381fi
24382ac_res=`eval echo '${'$as_ac_Header'}'`
24383	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24384echo "${ECHO_T}$ac_res" >&6; }
24385
24386fi
24387if test `eval echo '${'$as_ac_Header'}'` = yes; then
24388  cat >>confdefs.h <<_ACEOF
24389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24390_ACEOF
24391
24392fi
24393
24394done
24395
24396
24397
24398
24399for ac_header in stdint.h
24400do
24401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24403  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24406  echo $ECHO_N "(cached) $ECHO_C" >&6
24407fi
24408ac_res=`eval echo '${'$as_ac_Header'}'`
24409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24410echo "${ECHO_T}$ac_res" >&6; }
24411else
24412  # Is the header compilable?
24413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24415cat >conftest.$ac_ext <<_ACEOF
24416/* confdefs.h.  */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h.  */
24421$ac_includes_default
24422#include <$ac_header>
24423_ACEOF
24424rm -f conftest.$ac_objext
24425if { (ac_try="$ac_compile"
24426case "(($ac_try" in
24427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428  *) ac_try_echo=$ac_try;;
24429esac
24430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431  (eval "$ac_compile") 2>conftest.er1
24432  ac_status=$?
24433  grep -v '^ *+' conftest.er1 >conftest.err
24434  rm -f conftest.er1
24435  cat conftest.err >&5
24436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437  (exit $ac_status); } &&
24438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24439  { (case "(($ac_try" in
24440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441  *) ac_try_echo=$ac_try;;
24442esac
24443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444  (eval "$ac_try") 2>&5
24445  ac_status=$?
24446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447  (exit $ac_status); }; } &&
24448	 { ac_try='test -s conftest.$ac_objext'
24449  { (case "(($ac_try" in
24450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451  *) ac_try_echo=$ac_try;;
24452esac
24453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454  (eval "$ac_try") 2>&5
24455  ac_status=$?
24456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457  (exit $ac_status); }; }; then
24458  ac_header_compiler=yes
24459else
24460  echo "$as_me: failed program was:" >&5
24461sed 's/^/| /' conftest.$ac_ext >&5
24462
24463	ac_header_compiler=no
24464fi
24465
24466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24468echo "${ECHO_T}$ac_header_compiler" >&6; }
24469
24470# Is the header present?
24471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24473cat >conftest.$ac_ext <<_ACEOF
24474/* confdefs.h.  */
24475_ACEOF
24476cat confdefs.h >>conftest.$ac_ext
24477cat >>conftest.$ac_ext <<_ACEOF
24478/* end confdefs.h.  */
24479#include <$ac_header>
24480_ACEOF
24481if { (ac_try="$ac_cpp conftest.$ac_ext"
24482case "(($ac_try" in
24483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484  *) ac_try_echo=$ac_try;;
24485esac
24486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24488  ac_status=$?
24489  grep -v '^ *+' conftest.er1 >conftest.err
24490  rm -f conftest.er1
24491  cat conftest.err >&5
24492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493  (exit $ac_status); } >/dev/null; then
24494  if test -s conftest.err; then
24495    ac_cpp_err=$ac_c_preproc_warn_flag
24496    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24497  else
24498    ac_cpp_err=
24499  fi
24500else
24501  ac_cpp_err=yes
24502fi
24503if test -z "$ac_cpp_err"; then
24504  ac_header_preproc=yes
24505else
24506  echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509  ac_header_preproc=no
24510fi
24511
24512rm -f conftest.err conftest.$ac_ext
24513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24514echo "${ECHO_T}$ac_header_preproc" >&6; }
24515
24516# So?  What about this header?
24517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24518  yes:no: )
24519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24523    ac_header_preproc=yes
24524    ;;
24525  no:yes:* )
24526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24538
24539    ;;
24540esac
24541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24544  echo $ECHO_N "(cached) $ECHO_C" >&6
24545else
24546  eval "$as_ac_Header=\$ac_header_preproc"
24547fi
24548ac_res=`eval echo '${'$as_ac_Header'}'`
24549	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24550echo "${ECHO_T}$ac_res" >&6; }
24551
24552fi
24553if test `eval echo '${'$as_ac_Header'}'` = yes; then
24554  cat >>confdefs.h <<_ACEOF
24555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24556_ACEOF
24557
24558fi
24559
24560done
24561
24562
24563
24564
24565for ac_header in inttypes.h
24566do
24567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24569  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24572  echo $ECHO_N "(cached) $ECHO_C" >&6
24573fi
24574ac_res=`eval echo '${'$as_ac_Header'}'`
24575	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24576echo "${ECHO_T}$ac_res" >&6; }
24577else
24578  # Is the header compilable?
24579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24581cat >conftest.$ac_ext <<_ACEOF
24582/* confdefs.h.  */
24583_ACEOF
24584cat confdefs.h >>conftest.$ac_ext
24585cat >>conftest.$ac_ext <<_ACEOF
24586/* end confdefs.h.  */
24587$ac_includes_default
24588#include <$ac_header>
24589_ACEOF
24590rm -f conftest.$ac_objext
24591if { (ac_try="$ac_compile"
24592case "(($ac_try" in
24593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24594  *) ac_try_echo=$ac_try;;
24595esac
24596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24597  (eval "$ac_compile") 2>conftest.er1
24598  ac_status=$?
24599  grep -v '^ *+' conftest.er1 >conftest.err
24600  rm -f conftest.er1
24601  cat conftest.err >&5
24602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603  (exit $ac_status); } &&
24604	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24605  { (case "(($ac_try" in
24606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607  *) ac_try_echo=$ac_try;;
24608esac
24609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610  (eval "$ac_try") 2>&5
24611  ac_status=$?
24612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613  (exit $ac_status); }; } &&
24614	 { ac_try='test -s conftest.$ac_objext'
24615  { (case "(($ac_try" in
24616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617  *) ac_try_echo=$ac_try;;
24618esac
24619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620  (eval "$ac_try") 2>&5
24621  ac_status=$?
24622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623  (exit $ac_status); }; }; then
24624  ac_header_compiler=yes
24625else
24626  echo "$as_me: failed program was:" >&5
24627sed 's/^/| /' conftest.$ac_ext >&5
24628
24629	ac_header_compiler=no
24630fi
24631
24632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24634echo "${ECHO_T}$ac_header_compiler" >&6; }
24635
24636# Is the header present?
24637{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24639cat >conftest.$ac_ext <<_ACEOF
24640/* confdefs.h.  */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h.  */
24645#include <$ac_header>
24646_ACEOF
24647if { (ac_try="$ac_cpp conftest.$ac_ext"
24648case "(($ac_try" in
24649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650  *) ac_try_echo=$ac_try;;
24651esac
24652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24654  ac_status=$?
24655  grep -v '^ *+' conftest.er1 >conftest.err
24656  rm -f conftest.er1
24657  cat conftest.err >&5
24658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659  (exit $ac_status); } >/dev/null; then
24660  if test -s conftest.err; then
24661    ac_cpp_err=$ac_c_preproc_warn_flag
24662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24663  else
24664    ac_cpp_err=
24665  fi
24666else
24667  ac_cpp_err=yes
24668fi
24669if test -z "$ac_cpp_err"; then
24670  ac_header_preproc=yes
24671else
24672  echo "$as_me: failed program was:" >&5
24673sed 's/^/| /' conftest.$ac_ext >&5
24674
24675  ac_header_preproc=no
24676fi
24677
24678rm -f conftest.err conftest.$ac_ext
24679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24680echo "${ECHO_T}$ac_header_preproc" >&6; }
24681
24682# So?  What about this header?
24683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24684  yes:no: )
24685    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24687    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24689    ac_header_preproc=yes
24690    ;;
24691  no:yes:* )
24692    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24694    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24695echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24696    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24698    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24699echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24700    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24702    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24704
24705    ;;
24706esac
24707{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24710  echo $ECHO_N "(cached) $ECHO_C" >&6
24711else
24712  eval "$as_ac_Header=\$ac_header_preproc"
24713fi
24714ac_res=`eval echo '${'$as_ac_Header'}'`
24715	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24716echo "${ECHO_T}$ac_res" >&6; }
24717
24718fi
24719if test `eval echo '${'$as_ac_Header'}'` = yes; then
24720  cat >>confdefs.h <<_ACEOF
24721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24722_ACEOF
24723
24724fi
24725
24726done
24727
24728
24729{ echo "$as_me:$LINENO: checking for size_t" >&5
24730echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24731if test "${ac_cv_type_size_t+set}" = set; then
24732  echo $ECHO_N "(cached) $ECHO_C" >&6
24733else
24734  cat >conftest.$ac_ext <<_ACEOF
24735/* confdefs.h.  */
24736_ACEOF
24737cat confdefs.h >>conftest.$ac_ext
24738cat >>conftest.$ac_ext <<_ACEOF
24739/* end confdefs.h.  */
24740$ac_includes_default
24741typedef size_t ac__type_new_;
24742int
24743main ()
24744{
24745if ((ac__type_new_ *) 0)
24746  return 0;
24747if (sizeof (ac__type_new_))
24748  return 0;
24749  ;
24750  return 0;
24751}
24752_ACEOF
24753rm -f conftest.$ac_objext
24754if { (ac_try="$ac_compile"
24755case "(($ac_try" in
24756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757  *) ac_try_echo=$ac_try;;
24758esac
24759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760  (eval "$ac_compile") 2>conftest.er1
24761  ac_status=$?
24762  grep -v '^ *+' conftest.er1 >conftest.err
24763  rm -f conftest.er1
24764  cat conftest.err >&5
24765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766  (exit $ac_status); } &&
24767	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24768  { (case "(($ac_try" in
24769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770  *) ac_try_echo=$ac_try;;
24771esac
24772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773  (eval "$ac_try") 2>&5
24774  ac_status=$?
24775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776  (exit $ac_status); }; } &&
24777	 { ac_try='test -s conftest.$ac_objext'
24778  { (case "(($ac_try" in
24779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780  *) ac_try_echo=$ac_try;;
24781esac
24782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783  (eval "$ac_try") 2>&5
24784  ac_status=$?
24785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786  (exit $ac_status); }; }; then
24787  ac_cv_type_size_t=yes
24788else
24789  echo "$as_me: failed program was:" >&5
24790sed 's/^/| /' conftest.$ac_ext >&5
24791
24792	ac_cv_type_size_t=no
24793fi
24794
24795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796fi
24797{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24798echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24799if test $ac_cv_type_size_t = yes; then
24800  :
24801else
24802
24803cat >>confdefs.h <<_ACEOF
24804#define size_t unsigned int
24805_ACEOF
24806
24807fi
24808
24809
24810  { echo "$as_me:$LINENO: checking for wchar_t" >&5
24811echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24812if test "${gt_cv_c_wchar_t+set}" = set; then
24813  echo $ECHO_N "(cached) $ECHO_C" >&6
24814else
24815  cat >conftest.$ac_ext <<_ACEOF
24816/* confdefs.h.  */
24817_ACEOF
24818cat confdefs.h >>conftest.$ac_ext
24819cat >>conftest.$ac_ext <<_ACEOF
24820/* end confdefs.h.  */
24821#include <stddef.h>
24822       wchar_t foo = (wchar_t)'\0';
24823int
24824main ()
24825{
24826
24827  ;
24828  return 0;
24829}
24830_ACEOF
24831rm -f conftest.$ac_objext
24832if { (ac_try="$ac_compile"
24833case "(($ac_try" in
24834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835  *) ac_try_echo=$ac_try;;
24836esac
24837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838  (eval "$ac_compile") 2>conftest.er1
24839  ac_status=$?
24840  grep -v '^ *+' conftest.er1 >conftest.err
24841  rm -f conftest.er1
24842  cat conftest.err >&5
24843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844  (exit $ac_status); } &&
24845	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24846  { (case "(($ac_try" in
24847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848  *) ac_try_echo=$ac_try;;
24849esac
24850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851  (eval "$ac_try") 2>&5
24852  ac_status=$?
24853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854  (exit $ac_status); }; } &&
24855	 { ac_try='test -s conftest.$ac_objext'
24856  { (case "(($ac_try" in
24857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858  *) ac_try_echo=$ac_try;;
24859esac
24860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861  (eval "$ac_try") 2>&5
24862  ac_status=$?
24863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864  (exit $ac_status); }; }; then
24865  gt_cv_c_wchar_t=yes
24866else
24867  echo "$as_me: failed program was:" >&5
24868sed 's/^/| /' conftest.$ac_ext >&5
24869
24870	gt_cv_c_wchar_t=no
24871fi
24872
24873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874fi
24875{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
24876echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
24877  if test $gt_cv_c_wchar_t = yes; then
24878
24879cat >>confdefs.h <<\_ACEOF
24880#define HAVE_WCHAR_T 1
24881_ACEOF
24882
24883  fi
24884
24885
24886
24887  :
24888
24889
24890
24891
24892
24893  if test $ac_cv_header_wchar_h = yes; then
24894    HAVE_WCHAR_H=1
24895  else
24896    HAVE_WCHAR_H=0
24897  fi
24898
24899
24900
24901    { echo "$as_me:$LINENO: checking for stdint.h" >&5
24902echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
24903if test "${gl_cv_header_stdint_h+set}" = set; then
24904  echo $ECHO_N "(cached) $ECHO_C" >&6
24905else
24906
24907    cat >conftest.$ac_ext <<_ACEOF
24908/* confdefs.h.  */
24909_ACEOF
24910cat confdefs.h >>conftest.$ac_ext
24911cat >>conftest.$ac_ext <<_ACEOF
24912/* end confdefs.h.  */
24913
24914#include <sys/types.h>
24915#include <stdint.h>
24916int
24917main ()
24918{
24919
24920  ;
24921  return 0;
24922}
24923_ACEOF
24924rm -f conftest.$ac_objext
24925if { (ac_try="$ac_compile"
24926case "(($ac_try" in
24927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928  *) ac_try_echo=$ac_try;;
24929esac
24930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931  (eval "$ac_compile") 2>conftest.er1
24932  ac_status=$?
24933  grep -v '^ *+' conftest.er1 >conftest.err
24934  rm -f conftest.er1
24935  cat conftest.err >&5
24936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937  (exit $ac_status); } &&
24938	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24939  { (case "(($ac_try" in
24940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941  *) ac_try_echo=$ac_try;;
24942esac
24943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944  (eval "$ac_try") 2>&5
24945  ac_status=$?
24946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947  (exit $ac_status); }; } &&
24948	 { ac_try='test -s conftest.$ac_objext'
24949  { (case "(($ac_try" in
24950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951  *) ac_try_echo=$ac_try;;
24952esac
24953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954  (eval "$ac_try") 2>&5
24955  ac_status=$?
24956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957  (exit $ac_status); }; }; then
24958  gl_cv_header_stdint_h=yes
24959else
24960  echo "$as_me: failed program was:" >&5
24961sed 's/^/| /' conftest.$ac_ext >&5
24962
24963	gl_cv_header_stdint_h=no
24964fi
24965
24966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24967
24968fi
24969{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
24970echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
24971  if test $gl_cv_header_stdint_h = yes; then
24972
24973cat >>confdefs.h <<_ACEOF
24974#define HAVE_STDINT_H 1
24975_ACEOF
24976
24977  fi
24978
24979  if test $gl_cv_header_stdint_h = yes; then
24980    ac_cv_header_stdint_h=yes;       { echo "$as_me:$LINENO: checking full path to <stdint.h>" >&5
24981echo $ECHO_N "checking full path to <stdint.h>... $ECHO_C" >&6; }
24982if test "${gl_cv_full_path_stdint_h+set}" = set; then
24983  echo $ECHO_N "(cached) $ECHO_C" >&6
24984else
24985
24986  :
24987
24988
24989
24990
24991    if test $ac_cv_header_stdint_h = yes; then
24992      cat >conftest.$ac_ext <<_ACEOF
24993/* confdefs.h.  */
24994_ACEOF
24995cat confdefs.h >>conftest.$ac_ext
24996cat >>conftest.$ac_ext <<_ACEOF
24997/* end confdefs.h.  */
24998#include <stdint.h>
24999_ACEOF
25000      gl_cv_full_path_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25001sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;p;q;}'`
25002    fi
25003
25004fi
25005{ echo "$as_me:$LINENO: result: $gl_cv_full_path_stdint_h" >&5
25006echo "${ECHO_T}$gl_cv_full_path_stdint_h" >&6; }
25007cat >>confdefs.h <<_ACEOF
25008#define FULL_PATH_STDINT_H <$gl_cv_full_path_stdint_h>
25009_ACEOF
25010
25011
25012    FULL_PATH_STDINT_H='<'$gl_cv_full_path_stdint_h'>'
25013
25014    HAVE_STDINT_H=1
25015  else
25016    HAVE_STDINT_H=0
25017  fi
25018
25019
25020
25021      { echo "$as_me:$LINENO: checking for inttypes.h" >&5
25022echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
25023if test "${gl_cv_header_inttypes_h+set}" = set; then
25024  echo $ECHO_N "(cached) $ECHO_C" >&6
25025else
25026
25027    cat >conftest.$ac_ext <<_ACEOF
25028/* confdefs.h.  */
25029_ACEOF
25030cat confdefs.h >>conftest.$ac_ext
25031cat >>conftest.$ac_ext <<_ACEOF
25032/* end confdefs.h.  */
25033
25034#include <sys/types.h>
25035#include <inttypes.h>
25036int
25037main ()
25038{
25039
25040  ;
25041  return 0;
25042}
25043_ACEOF
25044rm -f conftest.$ac_objext
25045if { (ac_try="$ac_compile"
25046case "(($ac_try" in
25047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25048  *) ac_try_echo=$ac_try;;
25049esac
25050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25051  (eval "$ac_compile") 2>conftest.er1
25052  ac_status=$?
25053  grep -v '^ *+' conftest.er1 >conftest.err
25054  rm -f conftest.er1
25055  cat conftest.err >&5
25056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057  (exit $ac_status); } &&
25058	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25059  { (case "(($ac_try" in
25060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061  *) ac_try_echo=$ac_try;;
25062esac
25063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064  (eval "$ac_try") 2>&5
25065  ac_status=$?
25066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067  (exit $ac_status); }; } &&
25068	 { ac_try='test -s conftest.$ac_objext'
25069  { (case "(($ac_try" in
25070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071  *) ac_try_echo=$ac_try;;
25072esac
25073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25074  (eval "$ac_try") 2>&5
25075  ac_status=$?
25076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077  (exit $ac_status); }; }; then
25078  gl_cv_header_inttypes_h=yes
25079else
25080  echo "$as_me: failed program was:" >&5
25081sed 's/^/| /' conftest.$ac_ext >&5
25082
25083	gl_cv_header_inttypes_h=no
25084fi
25085
25086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087
25088fi
25089{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
25090echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
25091  if test $gl_cv_header_inttypes_h = yes; then
25092
25093cat >>confdefs.h <<_ACEOF
25094#define HAVE_INTTYPES_H 1
25095_ACEOF
25096
25097  fi
25098
25099  if test $gl_cv_header_inttypes_h = yes; then
25100    ac_cv_header_inttypes_h=yes;       { echo "$as_me:$LINENO: checking full path to <inttypes.h>" >&5
25101echo $ECHO_N "checking full path to <inttypes.h>... $ECHO_C" >&6; }
25102if test "${gl_cv_full_path_inttypes_h+set}" = set; then
25103  echo $ECHO_N "(cached) $ECHO_C" >&6
25104else
25105
25106  :
25107
25108
25109
25110
25111    if test $ac_cv_header_inttypes_h = yes; then
25112      cat >conftest.$ac_ext <<_ACEOF
25113/* confdefs.h.  */
25114_ACEOF
25115cat confdefs.h >>conftest.$ac_ext
25116cat >>conftest.$ac_ext <<_ACEOF
25117/* end confdefs.h.  */
25118#include <inttypes.h>
25119_ACEOF
25120      gl_cv_full_path_inttypes_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25121sed -n '\#/inttypes.h#{s#.*"\(.*/inttypes.h\)".*#\1#;p;q;}'`
25122    fi
25123
25124fi
25125{ echo "$as_me:$LINENO: result: $gl_cv_full_path_inttypes_h" >&5
25126echo "${ECHO_T}$gl_cv_full_path_inttypes_h" >&6; }
25127cat >>confdefs.h <<_ACEOF
25128#define FULL_PATH_INTTYPES_H <$gl_cv_full_path_inttypes_h>
25129_ACEOF
25130
25131
25132    FULL_PATH_INTTYPES_H='<'$gl_cv_full_path_inttypes_h'>'
25133
25134    HAVE_INTTYPES_H=1
25135  else
25136    HAVE_INTTYPES_H=0
25137  fi
25138
25139
25140
25141for ac_header in sys/inttypes.h
25142do
25143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25145  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25148  echo $ECHO_N "(cached) $ECHO_C" >&6
25149fi
25150ac_res=`eval echo '${'$as_ac_Header'}'`
25151	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25152echo "${ECHO_T}$ac_res" >&6; }
25153else
25154  # Is the header compilable?
25155{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25157cat >conftest.$ac_ext <<_ACEOF
25158/* confdefs.h.  */
25159_ACEOF
25160cat confdefs.h >>conftest.$ac_ext
25161cat >>conftest.$ac_ext <<_ACEOF
25162/* end confdefs.h.  */
25163$ac_includes_default
25164#include <$ac_header>
25165_ACEOF
25166rm -f conftest.$ac_objext
25167if { (ac_try="$ac_compile"
25168case "(($ac_try" in
25169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170  *) ac_try_echo=$ac_try;;
25171esac
25172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25173  (eval "$ac_compile") 2>conftest.er1
25174  ac_status=$?
25175  grep -v '^ *+' conftest.er1 >conftest.err
25176  rm -f conftest.er1
25177  cat conftest.err >&5
25178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179  (exit $ac_status); } &&
25180	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25181  { (case "(($ac_try" in
25182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183  *) ac_try_echo=$ac_try;;
25184esac
25185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186  (eval "$ac_try") 2>&5
25187  ac_status=$?
25188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189  (exit $ac_status); }; } &&
25190	 { ac_try='test -s conftest.$ac_objext'
25191  { (case "(($ac_try" in
25192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193  *) ac_try_echo=$ac_try;;
25194esac
25195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196  (eval "$ac_try") 2>&5
25197  ac_status=$?
25198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199  (exit $ac_status); }; }; then
25200  ac_header_compiler=yes
25201else
25202  echo "$as_me: failed program was:" >&5
25203sed 's/^/| /' conftest.$ac_ext >&5
25204
25205	ac_header_compiler=no
25206fi
25207
25208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25210echo "${ECHO_T}$ac_header_compiler" >&6; }
25211
25212# Is the header present?
25213{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25215cat >conftest.$ac_ext <<_ACEOF
25216/* confdefs.h.  */
25217_ACEOF
25218cat confdefs.h >>conftest.$ac_ext
25219cat >>conftest.$ac_ext <<_ACEOF
25220/* end confdefs.h.  */
25221#include <$ac_header>
25222_ACEOF
25223if { (ac_try="$ac_cpp conftest.$ac_ext"
25224case "(($ac_try" in
25225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226  *) ac_try_echo=$ac_try;;
25227esac
25228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25230  ac_status=$?
25231  grep -v '^ *+' conftest.er1 >conftest.err
25232  rm -f conftest.er1
25233  cat conftest.err >&5
25234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235  (exit $ac_status); } >/dev/null; then
25236  if test -s conftest.err; then
25237    ac_cpp_err=$ac_c_preproc_warn_flag
25238    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25239  else
25240    ac_cpp_err=
25241  fi
25242else
25243  ac_cpp_err=yes
25244fi
25245if test -z "$ac_cpp_err"; then
25246  ac_header_preproc=yes
25247else
25248  echo "$as_me: failed program was:" >&5
25249sed 's/^/| /' conftest.$ac_ext >&5
25250
25251  ac_header_preproc=no
25252fi
25253
25254rm -f conftest.err conftest.$ac_ext
25255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25256echo "${ECHO_T}$ac_header_preproc" >&6; }
25257
25258# So?  What about this header?
25259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25260  yes:no: )
25261    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25263    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25265    ac_header_preproc=yes
25266    ;;
25267  no:yes:* )
25268    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25270    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25271echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25272    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25274    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25275echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25276    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25278    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25280
25281    ;;
25282esac
25283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25286  echo $ECHO_N "(cached) $ECHO_C" >&6
25287else
25288  eval "$as_ac_Header=\$ac_header_preproc"
25289fi
25290ac_res=`eval echo '${'$as_ac_Header'}'`
25291	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25292echo "${ECHO_T}$ac_res" >&6; }
25293
25294fi
25295if test `eval echo '${'$as_ac_Header'}'` = yes; then
25296  cat >>confdefs.h <<_ACEOF
25297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25298_ACEOF
25299
25300fi
25301
25302done
25303
25304  if test $ac_cv_header_sys_inttypes_h = yes; then
25305    HAVE_SYS_INTTYPES_H=1
25306  else
25307    HAVE_SYS_INTTYPES_H=0
25308  fi
25309
25310
25311
25312for ac_header in sys/bitypes.h
25313do
25314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25316  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25319  echo $ECHO_N "(cached) $ECHO_C" >&6
25320fi
25321ac_res=`eval echo '${'$as_ac_Header'}'`
25322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25323echo "${ECHO_T}$ac_res" >&6; }
25324else
25325  # Is the header compilable?
25326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25328cat >conftest.$ac_ext <<_ACEOF
25329/* confdefs.h.  */
25330_ACEOF
25331cat confdefs.h >>conftest.$ac_ext
25332cat >>conftest.$ac_ext <<_ACEOF
25333/* end confdefs.h.  */
25334$ac_includes_default
25335#include <$ac_header>
25336_ACEOF
25337rm -f conftest.$ac_objext
25338if { (ac_try="$ac_compile"
25339case "(($ac_try" in
25340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341  *) ac_try_echo=$ac_try;;
25342esac
25343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25344  (eval "$ac_compile") 2>conftest.er1
25345  ac_status=$?
25346  grep -v '^ *+' conftest.er1 >conftest.err
25347  rm -f conftest.er1
25348  cat conftest.err >&5
25349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350  (exit $ac_status); } &&
25351	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25352  { (case "(($ac_try" in
25353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354  *) ac_try_echo=$ac_try;;
25355esac
25356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25357  (eval "$ac_try") 2>&5
25358  ac_status=$?
25359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360  (exit $ac_status); }; } &&
25361	 { ac_try='test -s conftest.$ac_objext'
25362  { (case "(($ac_try" in
25363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364  *) ac_try_echo=$ac_try;;
25365esac
25366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25367  (eval "$ac_try") 2>&5
25368  ac_status=$?
25369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370  (exit $ac_status); }; }; then
25371  ac_header_compiler=yes
25372else
25373  echo "$as_me: failed program was:" >&5
25374sed 's/^/| /' conftest.$ac_ext >&5
25375
25376	ac_header_compiler=no
25377fi
25378
25379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25380{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25381echo "${ECHO_T}$ac_header_compiler" >&6; }
25382
25383# Is the header present?
25384{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25386cat >conftest.$ac_ext <<_ACEOF
25387/* confdefs.h.  */
25388_ACEOF
25389cat confdefs.h >>conftest.$ac_ext
25390cat >>conftest.$ac_ext <<_ACEOF
25391/* end confdefs.h.  */
25392#include <$ac_header>
25393_ACEOF
25394if { (ac_try="$ac_cpp conftest.$ac_ext"
25395case "(($ac_try" in
25396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397  *) ac_try_echo=$ac_try;;
25398esac
25399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25400  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25401  ac_status=$?
25402  grep -v '^ *+' conftest.er1 >conftest.err
25403  rm -f conftest.er1
25404  cat conftest.err >&5
25405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406  (exit $ac_status); } >/dev/null; then
25407  if test -s conftest.err; then
25408    ac_cpp_err=$ac_c_preproc_warn_flag
25409    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25410  else
25411    ac_cpp_err=
25412  fi
25413else
25414  ac_cpp_err=yes
25415fi
25416if test -z "$ac_cpp_err"; then
25417  ac_header_preproc=yes
25418else
25419  echo "$as_me: failed program was:" >&5
25420sed 's/^/| /' conftest.$ac_ext >&5
25421
25422  ac_header_preproc=no
25423fi
25424
25425rm -f conftest.err conftest.$ac_ext
25426{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25427echo "${ECHO_T}$ac_header_preproc" >&6; }
25428
25429# So?  What about this header?
25430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25431  yes:no: )
25432    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25434    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25436    ac_header_preproc=yes
25437    ;;
25438  no:yes:* )
25439    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25441    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25442echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25443    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25445    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25446echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25447    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25449    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25451
25452    ;;
25453esac
25454{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25457  echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459  eval "$as_ac_Header=\$ac_header_preproc"
25460fi
25461ac_res=`eval echo '${'$as_ac_Header'}'`
25462	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25463echo "${ECHO_T}$ac_res" >&6; }
25464
25465fi
25466if test `eval echo '${'$as_ac_Header'}'` = yes; then
25467  cat >>confdefs.h <<_ACEOF
25468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25469_ACEOF
25470
25471fi
25472
25473done
25474
25475  if test $ac_cv_header_sys_bitypes_h = yes; then
25476    HAVE_SYS_BITYPES_H=1
25477  else
25478    HAVE_SYS_BITYPES_H=0
25479  fi
25480
25481
25482    { echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
25483echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6; }
25484if test "${gl_cv_long_bitsize_64+set}" = set; then
25485  echo $ECHO_N "(cached) $ECHO_C" >&6
25486else
25487
25488    cat >conftest.$ac_ext <<_ACEOF
25489/* confdefs.h.  */
25490_ACEOF
25491cat confdefs.h >>conftest.$ac_ext
25492cat >>conftest.$ac_ext <<_ACEOF
25493/* end confdefs.h.  */
25494
25495#define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
25496#define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
25497typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
25498
25499int
25500main ()
25501{
25502
25503  ;
25504  return 0;
25505}
25506_ACEOF
25507rm -f conftest.$ac_objext
25508if { (ac_try="$ac_compile"
25509case "(($ac_try" in
25510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511  *) ac_try_echo=$ac_try;;
25512esac
25513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514  (eval "$ac_compile") 2>conftest.er1
25515  ac_status=$?
25516  grep -v '^ *+' conftest.er1 >conftest.err
25517  rm -f conftest.er1
25518  cat conftest.err >&5
25519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520  (exit $ac_status); } &&
25521	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25522  { (case "(($ac_try" in
25523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524  *) ac_try_echo=$ac_try;;
25525esac
25526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527  (eval "$ac_try") 2>&5
25528  ac_status=$?
25529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530  (exit $ac_status); }; } &&
25531	 { ac_try='test -s conftest.$ac_objext'
25532  { (case "(($ac_try" in
25533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534  *) ac_try_echo=$ac_try;;
25535esac
25536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537  (eval "$ac_try") 2>&5
25538  ac_status=$?
25539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540  (exit $ac_status); }; }; then
25541  gl_cv_long_bitsize_64=yes
25542else
25543  echo "$as_me: failed program was:" >&5
25544sed 's/^/| /' conftest.$ac_ext >&5
25545
25546	gl_cv_long_bitsize_64=no
25547fi
25548
25549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550fi
25551{ echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
25552echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6; }
25553  if test $gl_cv_long_bitsize_64 = yes; then
25554    HAVE_LONG_64BIT=1
25555  else
25556    HAVE_LONG_64BIT=0
25557  fi
25558
25559
25560    { echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
25561echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6; }
25562if test "${gl_cv_longlong_bitsize_64+set}" = set; then
25563  echo $ECHO_N "(cached) $ECHO_C" >&6
25564else
25565
25566    cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h.  */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h.  */
25572
25573#define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
25574#define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
25575typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
25576
25577int
25578main ()
25579{
25580
25581  ;
25582  return 0;
25583}
25584_ACEOF
25585rm -f conftest.$ac_objext
25586if { (ac_try="$ac_compile"
25587case "(($ac_try" in
25588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589  *) ac_try_echo=$ac_try;;
25590esac
25591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25592  (eval "$ac_compile") 2>conftest.er1
25593  ac_status=$?
25594  grep -v '^ *+' conftest.er1 >conftest.err
25595  rm -f conftest.er1
25596  cat conftest.err >&5
25597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598  (exit $ac_status); } &&
25599	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25600  { (case "(($ac_try" in
25601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25602  *) ac_try_echo=$ac_try;;
25603esac
25604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25605  (eval "$ac_try") 2>&5
25606  ac_status=$?
25607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608  (exit $ac_status); }; } &&
25609	 { ac_try='test -s conftest.$ac_objext'
25610  { (case "(($ac_try" in
25611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612  *) ac_try_echo=$ac_try;;
25613esac
25614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615  (eval "$ac_try") 2>&5
25616  ac_status=$?
25617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618  (exit $ac_status); }; }; then
25619  gl_cv_longlong_bitsize_64=yes
25620else
25621  echo "$as_me: failed program was:" >&5
25622sed 's/^/| /' conftest.$ac_ext >&5
25623
25624	gl_cv_longlong_bitsize_64=no
25625fi
25626
25627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628fi
25629{ echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
25630echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6; }
25631  if test $gl_cv_longlong_bitsize_64 = yes; then
25632    HAVE_LONG_LONG_64BIT=1
25633  else
25634    HAVE_LONG_LONG_64BIT=0
25635  fi
25636
25637
25638          other_includes='
25639/* Get those types that are already defined in other system include files.  */
25640#if defined(__FreeBSD__) && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)
25641# include <sys/inttypes.h>
25642#endif
25643#if defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)
25644# include <sys/types.h>
25645# if HAVE_INTTYPES_H
25646#  include FULL_PATH_INTTYPES_H
25647# endif
25648#endif
25649#if defined(__linux__) && HAVE_SYS_BITYPES_H
25650# include <sys/bitypes.h>
25651#endif
25652#if defined(__sun) && HAVE_SYS_INTTYPES_H
25653# include <sys/inttypes.h>
25654#endif
25655#if (defined(__hpux) || defined(_AIX)) && HAVE_INTTYPES_H
25656# include FULL_PATH_INTTYPES_H
25657#endif
25658#if HAVE_STDINT_H && !(defined(__sgi) && HAVE_INTTYPES_H && !defined(__c99))
25659# include FULL_PATH_STDINT_H
25660#endif
25661'
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692  for gltype in int8_t int16_t int32_t int64_t \
25693     uint8_t uint16_t uint32_t uint64_t \
25694     int_least8_t int_least16_t int_least32_t int_least64_t \
25695     uint_least8_t uint_least16_t uint_least32_t uint_least64_t \
25696     int_fast8_t int_fast16_t int_fast32_t int_fast64_t \
25697     uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t \
25698     intptr_t uintptr_t \
25699     intmax_t uintmax_t ; do
25700    { echo "$as_me:$LINENO: checking for $gltype" >&5
25701echo $ECHO_N "checking for $gltype... $ECHO_C" >&6; }
25702    cat >conftest.$ac_ext <<_ACEOF
25703
25704      /* confdefs.h.  */
25705_ACEOF
25706cat confdefs.h >>conftest.$ac_ext
25707cat >>conftest.$ac_ext <<_ACEOF
25708/* end confdefs.h.  */
25709$other_includes
25710/* Test if the type exists.  */
25711$gltype x = 17;
25712
25713int
25714main ()
25715{
25716
25717  ;
25718  return 0;
25719}
25720_ACEOF
25721rm -f conftest.$ac_objext
25722if { (ac_try="$ac_compile"
25723case "(($ac_try" in
25724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725  *) ac_try_echo=$ac_try;;
25726esac
25727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728  (eval "$ac_compile") 2>conftest.er1
25729  ac_status=$?
25730  grep -v '^ *+' conftest.er1 >conftest.err
25731  rm -f conftest.er1
25732  cat conftest.err >&5
25733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734  (exit $ac_status); } &&
25735	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25736  { (case "(($ac_try" in
25737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738  *) ac_try_echo=$ac_try;;
25739esac
25740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25741  (eval "$ac_try") 2>&5
25742  ac_status=$?
25743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744  (exit $ac_status); }; } &&
25745	 { ac_try='test -s conftest.$ac_objext'
25746  { (case "(($ac_try" in
25747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748  *) ac_try_echo=$ac_try;;
25749esac
25750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25751  (eval "$ac_try") 2>&5
25752  ac_status=$?
25753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754  (exit $ac_status); }; }; then
25755  result=yes
25756else
25757  echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760	result=no
25761fi
25762
25763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764    eval gl_cv_type_${gltype}=\$result
25765    { echo "$as_me:$LINENO: result: $result" >&5
25766echo "${ECHO_T}$result" >&6; }
25767    GLTYPE=`echo "$gltype" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
25768    if test $result = yes; then
25769      cat >>confdefs.h <<_ACEOF
25770#define HAVE_${GLTYPE} 1
25771_ACEOF
25772
25773      eval HAVE_${GLTYPE}=1
25774    else
25775      eval HAVE_${GLTYPE}=0
25776    fi
25777  done
25778
25779
25780
25781    gl_cv_header_working_stdint_h=no
25782  if test $gl_cv_header_stdint_h = yes; then
25783
25784
25785
25786
25787
25788
25789
25790
25791  for gltype in int64_t uint64_t \
25792       int_least64_t uint_least64_t \
25793       int_fast64_t uint_fast64_t ; do
25794    { echo "$as_me:$LINENO: checking for $gltype" >&5
25795echo $ECHO_N "checking for $gltype... $ECHO_C" >&6; }
25796    cat >conftest.$ac_ext <<_ACEOF
25797
25798      /* confdefs.h.  */
25799_ACEOF
25800cat confdefs.h >>conftest.$ac_ext
25801cat >>conftest.$ac_ext <<_ACEOF
25802/* end confdefs.h.  */
25803#include <stdint.h>
25804/* Test if the type exists.  */
25805$gltype x = 17;
25806
25807int
25808main ()
25809{
25810
25811  ;
25812  return 0;
25813}
25814_ACEOF
25815rm -f conftest.$ac_objext
25816if { (ac_try="$ac_compile"
25817case "(($ac_try" in
25818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819  *) ac_try_echo=$ac_try;;
25820esac
25821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822  (eval "$ac_compile") 2>conftest.er1
25823  ac_status=$?
25824  grep -v '^ *+' conftest.er1 >conftest.err
25825  rm -f conftest.er1
25826  cat conftest.err >&5
25827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828  (exit $ac_status); } &&
25829	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25830  { (case "(($ac_try" in
25831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832  *) ac_try_echo=$ac_try;;
25833esac
25834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25835  (eval "$ac_try") 2>&5
25836  ac_status=$?
25837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838  (exit $ac_status); }; } &&
25839	 { ac_try='test -s conftest.$ac_objext'
25840  { (case "(($ac_try" in
25841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842  *) ac_try_echo=$ac_try;;
25843esac
25844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25845  (eval "$ac_try") 2>&5
25846  ac_status=$?
25847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848  (exit $ac_status); }; }; then
25849  result=yes
25850else
25851  echo "$as_me: failed program was:" >&5
25852sed 's/^/| /' conftest.$ac_ext >&5
25853
25854	result=no
25855fi
25856
25857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25858    eval gl_cv_stdint_${gltype}=\$result
25859    { echo "$as_me:$LINENO: result: $result" >&5
25860echo "${ECHO_T}$result" >&6; }
25861    GLTYPE=`echo "$gltype" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
25862    if test $result = yes; then
25863      cat >>confdefs.h <<_ACEOF
25864#define HAVE_${GLTYPE}_IN_STDINT_H 1
25865_ACEOF
25866
25867      eval HAVE_${GLTYPE}_IN_STDINT_H=1
25868    else
25869      eval HAVE_${GLTYPE}_IN_STDINT_H=0
25870    fi
25871  done
25872
25873
25874    cat >conftest.$ac_ext <<_ACEOF
25875
25876      /* confdefs.h.  */
25877_ACEOF
25878cat confdefs.h >>conftest.$ac_ext
25879cat >>conftest.$ac_ext <<_ACEOF
25880/* end confdefs.h.  */
25881
25882#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
25883#include <stdint.h>
25884int8_t a1 = INT8_C (17);
25885int16_t a2 = INT16_C (17);
25886int32_t a3 = INT32_C (17);
25887#if HAVE_INT64_T_IN_STDINT_H
25888int64_t a4 = INT64_C (17);
25889#endif
25890uint8_t b1 = UINT8_C (17);
25891uint16_t b2 = UINT16_C (17);
25892uint32_t b3 = UINT32_C (17);
25893#if HAVE_UINT64_T_IN_STDINT_H
25894uint64_t b4 = UINT64_C (17);
25895#endif
25896int_least8_t c1 = 17;
25897int_least16_t c2 = 17;
25898int_least32_t c3 = 17;
25899#if HAVE_INT_LEAST64_T_IN_STDINT_H
25900int_least64_t c4 = 17;
25901#endif
25902uint_least8_t d1 = 17;
25903uint_least16_t d2 = 17;
25904uint_least32_t d3 = 17;
25905#if HAVE_UINT_LEAST64_T_IN_STDINT_H
25906uint_least64_t d4 = 17;
25907#endif
25908int_fast8_t e1 = 17;
25909int_fast16_t e2 = 17;
25910int_fast32_t e3 = 17;
25911#if HAVE_INT_FAST64_T_IN_STDINT_H
25912int_fast64_t e4 = 17;
25913#endif
25914uint_fast8_t f1 = 17;
25915uint_fast16_t f2 = 17;
25916uint_fast32_t f3 = 17;
25917#if HAVE_UINT_FAST64_T_IN_STDINT_H
25918uint_fast64_t f4 = 17;
25919#endif
25920intptr_t g = 17;
25921uintptr_t h = 17;
25922intmax_t i = INTMAX_C (17);
25923uintmax_t j = UINTMAX_C (17);
25924
25925int
25926main ()
25927{
25928
25929  ;
25930  return 0;
25931}
25932_ACEOF
25933rm -f conftest.$ac_objext
25934if { (ac_try="$ac_compile"
25935case "(($ac_try" in
25936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937  *) ac_try_echo=$ac_try;;
25938esac
25939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940  (eval "$ac_compile") 2>conftest.er1
25941  ac_status=$?
25942  grep -v '^ *+' conftest.er1 >conftest.err
25943  rm -f conftest.er1
25944  cat conftest.err >&5
25945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946  (exit $ac_status); } &&
25947	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25948  { (case "(($ac_try" in
25949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950  *) ac_try_echo=$ac_try;;
25951esac
25952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953  (eval "$ac_try") 2>&5
25954  ac_status=$?
25955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956  (exit $ac_status); }; } &&
25957	 { ac_try='test -s conftest.$ac_objext'
25958  { (case "(($ac_try" in
25959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960  *) ac_try_echo=$ac_try;;
25961esac
25962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963  (eval "$ac_try") 2>&5
25964  ac_status=$?
25965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966  (exit $ac_status); }; }; then
25967  gl_cv_header_working_stdint_h=yes
25968else
25969  echo "$as_me: failed program was:" >&5
25970sed 's/^/| /' conftest.$ac_ext >&5
25971
25972
25973fi
25974
25975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25976  fi
25977  if test $gl_cv_header_working_stdint_h = yes; then
25978        suff64=
25979    suffu64=
25980    if test $HAVE_LONG_64BIT = 1; then
25981      suff64=L
25982      suffu64=UL
25983    else
25984      if test $HAVE_LONG_LONG_64BIT = 1; then
25985        suff64=LL
25986        suffu64=ULL
25987      else
25988        cat >conftest.$ac_ext <<_ACEOF
25989/* confdefs.h.  */
25990_ACEOF
25991cat confdefs.h >>conftest.$ac_ext
25992cat >>conftest.$ac_ext <<_ACEOF
25993/* end confdefs.h.  */
25994
25995#ifdef _MSC_VER
25996msvc compiler
25997#endif
25998
25999_ACEOF
26000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26001  $EGREP "msvc compiler" >/dev/null 2>&1; then
26002
26003          suff64=i64
26004          suffu64=ui64
26005
26006fi
26007rm -f conftest*
26008
26009      fi
26010    fi
26011
26012  { echo "$as_me:$LINENO: checking for INT8_MIN" >&5
26013echo $ECHO_N "checking for INT8_MIN... $ECHO_C" >&6; }
26014if test "${gl_cv_stdint_INT8_MIN+set}" = set; then
26015  echo $ECHO_N "(cached) $ECHO_C" >&6
26016else
26017  cat >conftest.$ac_ext <<_ACEOF
26018/* confdefs.h.  */
26019_ACEOF
26020cat confdefs.h >>conftest.$ac_ext
26021cat >>conftest.$ac_ext <<_ACEOF
26022/* end confdefs.h.  */
26023#include <stdint.h>
26024#ifdef INT8_MIN
26025found it
26026#endif
26027
26028_ACEOF
26029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26030  $EGREP "found it" >/dev/null 2>&1; then
26031  gl_cv_stdint_INT8_MIN=yes
26032else
26033  gl_cv_stdint_INT8_MIN="-128"
26034fi
26035rm -f conftest*
26036
26037fi
26038{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT8_MIN" >&5
26039echo "${ECHO_T}$gl_cv_stdint_INT8_MIN" >&6; }
26040  if test "$gl_cv_stdint_INT8_MIN" != yes; then
26041
26042cat >>confdefs.h <<_ACEOF
26043#define INT8_MIN -128
26044_ACEOF
26045
26046  fi
26047
26048
26049  { echo "$as_me:$LINENO: checking for INT8_MAX" >&5
26050echo $ECHO_N "checking for INT8_MAX... $ECHO_C" >&6; }
26051if test "${gl_cv_stdint_INT8_MAX+set}" = set; then
26052  echo $ECHO_N "(cached) $ECHO_C" >&6
26053else
26054  cat >conftest.$ac_ext <<_ACEOF
26055/* confdefs.h.  */
26056_ACEOF
26057cat confdefs.h >>conftest.$ac_ext
26058cat >>conftest.$ac_ext <<_ACEOF
26059/* end confdefs.h.  */
26060#include <stdint.h>
26061#ifdef INT8_MAX
26062found it
26063#endif
26064
26065_ACEOF
26066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26067  $EGREP "found it" >/dev/null 2>&1; then
26068  gl_cv_stdint_INT8_MAX=yes
26069else
26070  gl_cv_stdint_INT8_MAX="127"
26071fi
26072rm -f conftest*
26073
26074fi
26075{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT8_MAX" >&5
26076echo "${ECHO_T}$gl_cv_stdint_INT8_MAX" >&6; }
26077  if test "$gl_cv_stdint_INT8_MAX" != yes; then
26078
26079cat >>confdefs.h <<_ACEOF
26080#define INT8_MAX 127
26081_ACEOF
26082
26083  fi
26084
26085
26086  { echo "$as_me:$LINENO: checking for UINT8_MAX" >&5
26087echo $ECHO_N "checking for UINT8_MAX... $ECHO_C" >&6; }
26088if test "${gl_cv_stdint_UINT8_MAX+set}" = set; then
26089  echo $ECHO_N "(cached) $ECHO_C" >&6
26090else
26091  cat >conftest.$ac_ext <<_ACEOF
26092/* confdefs.h.  */
26093_ACEOF
26094cat confdefs.h >>conftest.$ac_ext
26095cat >>conftest.$ac_ext <<_ACEOF
26096/* end confdefs.h.  */
26097#include <stdint.h>
26098#ifdef UINT8_MAX
26099found it
26100#endif
26101
26102_ACEOF
26103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26104  $EGREP "found it" >/dev/null 2>&1; then
26105  gl_cv_stdint_UINT8_MAX=yes
26106else
26107  gl_cv_stdint_UINT8_MAX="255"
26108fi
26109rm -f conftest*
26110
26111fi
26112{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT8_MAX" >&5
26113echo "${ECHO_T}$gl_cv_stdint_UINT8_MAX" >&6; }
26114  if test "$gl_cv_stdint_UINT8_MAX" != yes; then
26115
26116cat >>confdefs.h <<_ACEOF
26117#define UINT8_MAX 255
26118_ACEOF
26119
26120  fi
26121
26122
26123  { echo "$as_me:$LINENO: checking for INT16_MIN" >&5
26124echo $ECHO_N "checking for INT16_MIN... $ECHO_C" >&6; }
26125if test "${gl_cv_stdint_INT16_MIN+set}" = set; then
26126  echo $ECHO_N "(cached) $ECHO_C" >&6
26127else
26128  cat >conftest.$ac_ext <<_ACEOF
26129/* confdefs.h.  */
26130_ACEOF
26131cat confdefs.h >>conftest.$ac_ext
26132cat >>conftest.$ac_ext <<_ACEOF
26133/* end confdefs.h.  */
26134#include <stdint.h>
26135#ifdef INT16_MIN
26136found it
26137#endif
26138
26139_ACEOF
26140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26141  $EGREP "found it" >/dev/null 2>&1; then
26142  gl_cv_stdint_INT16_MIN=yes
26143else
26144  gl_cv_stdint_INT16_MIN="-32768"
26145fi
26146rm -f conftest*
26147
26148fi
26149{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT16_MIN" >&5
26150echo "${ECHO_T}$gl_cv_stdint_INT16_MIN" >&6; }
26151  if test "$gl_cv_stdint_INT16_MIN" != yes; then
26152
26153cat >>confdefs.h <<_ACEOF
26154#define INT16_MIN -32768
26155_ACEOF
26156
26157  fi
26158
26159
26160  { echo "$as_me:$LINENO: checking for INT16_MAX" >&5
26161echo $ECHO_N "checking for INT16_MAX... $ECHO_C" >&6; }
26162if test "${gl_cv_stdint_INT16_MAX+set}" = set; then
26163  echo $ECHO_N "(cached) $ECHO_C" >&6
26164else
26165  cat >conftest.$ac_ext <<_ACEOF
26166/* confdefs.h.  */
26167_ACEOF
26168cat confdefs.h >>conftest.$ac_ext
26169cat >>conftest.$ac_ext <<_ACEOF
26170/* end confdefs.h.  */
26171#include <stdint.h>
26172#ifdef INT16_MAX
26173found it
26174#endif
26175
26176_ACEOF
26177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26178  $EGREP "found it" >/dev/null 2>&1; then
26179  gl_cv_stdint_INT16_MAX=yes
26180else
26181  gl_cv_stdint_INT16_MAX="32767"
26182fi
26183rm -f conftest*
26184
26185fi
26186{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT16_MAX" >&5
26187echo "${ECHO_T}$gl_cv_stdint_INT16_MAX" >&6; }
26188  if test "$gl_cv_stdint_INT16_MAX" != yes; then
26189
26190cat >>confdefs.h <<_ACEOF
26191#define INT16_MAX 32767
26192_ACEOF
26193
26194  fi
26195
26196
26197  { echo "$as_me:$LINENO: checking for UINT16_MAX" >&5
26198echo $ECHO_N "checking for UINT16_MAX... $ECHO_C" >&6; }
26199if test "${gl_cv_stdint_UINT16_MAX+set}" = set; then
26200  echo $ECHO_N "(cached) $ECHO_C" >&6
26201else
26202  cat >conftest.$ac_ext <<_ACEOF
26203/* confdefs.h.  */
26204_ACEOF
26205cat confdefs.h >>conftest.$ac_ext
26206cat >>conftest.$ac_ext <<_ACEOF
26207/* end confdefs.h.  */
26208#include <stdint.h>
26209#ifdef UINT16_MAX
26210found it
26211#endif
26212
26213_ACEOF
26214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26215  $EGREP "found it" >/dev/null 2>&1; then
26216  gl_cv_stdint_UINT16_MAX=yes
26217else
26218  gl_cv_stdint_UINT16_MAX="65535"
26219fi
26220rm -f conftest*
26221
26222fi
26223{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT16_MAX" >&5
26224echo "${ECHO_T}$gl_cv_stdint_UINT16_MAX" >&6; }
26225  if test "$gl_cv_stdint_UINT16_MAX" != yes; then
26226
26227cat >>confdefs.h <<_ACEOF
26228#define UINT16_MAX 65535
26229_ACEOF
26230
26231  fi
26232
26233
26234  { echo "$as_me:$LINENO: checking for INT32_MIN" >&5
26235echo $ECHO_N "checking for INT32_MIN... $ECHO_C" >&6; }
26236if test "${gl_cv_stdint_INT32_MIN+set}" = set; then
26237  echo $ECHO_N "(cached) $ECHO_C" >&6
26238else
26239  cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h.  */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h.  */
26245#include <stdint.h>
26246#ifdef INT32_MIN
26247found it
26248#endif
26249
26250_ACEOF
26251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26252  $EGREP "found it" >/dev/null 2>&1; then
26253  gl_cv_stdint_INT32_MIN=yes
26254else
26255  gl_cv_stdint_INT32_MIN="(~INT32_MAX)"
26256fi
26257rm -f conftest*
26258
26259fi
26260{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT32_MIN" >&5
26261echo "${ECHO_T}$gl_cv_stdint_INT32_MIN" >&6; }
26262  if test "$gl_cv_stdint_INT32_MIN" != yes; then
26263
26264cat >>confdefs.h <<_ACEOF
26265#define INT32_MIN (~INT32_MAX)
26266_ACEOF
26267
26268  fi
26269
26270
26271  { echo "$as_me:$LINENO: checking for INT32_MAX" >&5
26272echo $ECHO_N "checking for INT32_MAX... $ECHO_C" >&6; }
26273if test "${gl_cv_stdint_INT32_MAX+set}" = set; then
26274  echo $ECHO_N "(cached) $ECHO_C" >&6
26275else
26276  cat >conftest.$ac_ext <<_ACEOF
26277/* confdefs.h.  */
26278_ACEOF
26279cat confdefs.h >>conftest.$ac_ext
26280cat >>conftest.$ac_ext <<_ACEOF
26281/* end confdefs.h.  */
26282#include <stdint.h>
26283#ifdef INT32_MAX
26284found it
26285#endif
26286
26287_ACEOF
26288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289  $EGREP "found it" >/dev/null 2>&1; then
26290  gl_cv_stdint_INT32_MAX=yes
26291else
26292  gl_cv_stdint_INT32_MAX="2147483647"
26293fi
26294rm -f conftest*
26295
26296fi
26297{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT32_MAX" >&5
26298echo "${ECHO_T}$gl_cv_stdint_INT32_MAX" >&6; }
26299  if test "$gl_cv_stdint_INT32_MAX" != yes; then
26300
26301cat >>confdefs.h <<_ACEOF
26302#define INT32_MAX 2147483647
26303_ACEOF
26304
26305  fi
26306
26307
26308  { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
26309echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
26310if test "${gl_cv_stdint_UINT32_MAX+set}" = set; then
26311  echo $ECHO_N "(cached) $ECHO_C" >&6
26312else
26313  cat >conftest.$ac_ext <<_ACEOF
26314/* confdefs.h.  */
26315_ACEOF
26316cat confdefs.h >>conftest.$ac_ext
26317cat >>conftest.$ac_ext <<_ACEOF
26318/* end confdefs.h.  */
26319#include <stdint.h>
26320#ifdef UINT32_MAX
26321found it
26322#endif
26323
26324_ACEOF
26325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26326  $EGREP "found it" >/dev/null 2>&1; then
26327  gl_cv_stdint_UINT32_MAX=yes
26328else
26329  gl_cv_stdint_UINT32_MAX="4294967295U"
26330fi
26331rm -f conftest*
26332
26333fi
26334{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT32_MAX" >&5
26335echo "${ECHO_T}$gl_cv_stdint_UINT32_MAX" >&6; }
26336  if test "$gl_cv_stdint_UINT32_MAX" != yes; then
26337
26338cat >>confdefs.h <<_ACEOF
26339#define UINT32_MAX 4294967295U
26340_ACEOF
26341
26342  fi
26343
26344    if test $gl_cv_stdint_int64_t = yes; then
26345
26346  { echo "$as_me:$LINENO: checking for INT64_MIN" >&5
26347echo $ECHO_N "checking for INT64_MIN... $ECHO_C" >&6; }
26348if test "${gl_cv_stdint_INT64_MIN+set}" = set; then
26349  echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351  cat >conftest.$ac_ext <<_ACEOF
26352/* confdefs.h.  */
26353_ACEOF
26354cat confdefs.h >>conftest.$ac_ext
26355cat >>conftest.$ac_ext <<_ACEOF
26356/* end confdefs.h.  */
26357#include <stdint.h>
26358#ifdef INT64_MIN
26359found it
26360#endif
26361
26362_ACEOF
26363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26364  $EGREP "found it" >/dev/null 2>&1; then
26365  gl_cv_stdint_INT64_MIN=yes
26366else
26367  gl_cv_stdint_INT64_MIN="(~INT64_MAX)"
26368fi
26369rm -f conftest*
26370
26371fi
26372{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT64_MIN" >&5
26373echo "${ECHO_T}$gl_cv_stdint_INT64_MIN" >&6; }
26374  if test "$gl_cv_stdint_INT64_MIN" != yes; then
26375
26376cat >>confdefs.h <<_ACEOF
26377#define INT64_MIN (~INT64_MAX)
26378_ACEOF
26379
26380  fi
26381
26382
26383  { echo "$as_me:$LINENO: checking for INT64_MAX" >&5
26384echo $ECHO_N "checking for INT64_MAX... $ECHO_C" >&6; }
26385if test "${gl_cv_stdint_INT64_MAX+set}" = set; then
26386  echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388  cat >conftest.$ac_ext <<_ACEOF
26389/* confdefs.h.  */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h.  */
26394#include <stdint.h>
26395#ifdef INT64_MAX
26396found it
26397#endif
26398
26399_ACEOF
26400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26401  $EGREP "found it" >/dev/null 2>&1; then
26402  gl_cv_stdint_INT64_MAX=yes
26403else
26404  gl_cv_stdint_INT64_MAX="9223372036854775807${suff64}"
26405fi
26406rm -f conftest*
26407
26408fi
26409{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT64_MAX" >&5
26410echo "${ECHO_T}$gl_cv_stdint_INT64_MAX" >&6; }
26411  if test "$gl_cv_stdint_INT64_MAX" != yes; then
26412
26413cat >>confdefs.h <<_ACEOF
26414#define INT64_MAX 9223372036854775807${suff64}
26415_ACEOF
26416
26417  fi
26418
26419    fi
26420    if test $gl_cv_stdint_uint64_t = yes; then
26421
26422  { echo "$as_me:$LINENO: checking for UINT64_MAX" >&5
26423echo $ECHO_N "checking for UINT64_MAX... $ECHO_C" >&6; }
26424if test "${gl_cv_stdint_UINT64_MAX+set}" = set; then
26425  echo $ECHO_N "(cached) $ECHO_C" >&6
26426else
26427  cat >conftest.$ac_ext <<_ACEOF
26428/* confdefs.h.  */
26429_ACEOF
26430cat confdefs.h >>conftest.$ac_ext
26431cat >>conftest.$ac_ext <<_ACEOF
26432/* end confdefs.h.  */
26433#include <stdint.h>
26434#ifdef UINT64_MAX
26435found it
26436#endif
26437
26438_ACEOF
26439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26440  $EGREP "found it" >/dev/null 2>&1; then
26441  gl_cv_stdint_UINT64_MAX=yes
26442else
26443  gl_cv_stdint_UINT64_MAX="18446744073709551615${suffu64}"
26444fi
26445rm -f conftest*
26446
26447fi
26448{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT64_MAX" >&5
26449echo "${ECHO_T}$gl_cv_stdint_UINT64_MAX" >&6; }
26450  if test "$gl_cv_stdint_UINT64_MAX" != yes; then
26451
26452cat >>confdefs.h <<_ACEOF
26453#define UINT64_MAX 18446744073709551615${suffu64}
26454_ACEOF
26455
26456  fi
26457
26458    fi
26459
26460  { echo "$as_me:$LINENO: checking for INT_LEAST8_MIN" >&5
26461echo $ECHO_N "checking for INT_LEAST8_MIN... $ECHO_C" >&6; }
26462if test "${gl_cv_stdint_INT_LEAST8_MIN+set}" = set; then
26463  echo $ECHO_N "(cached) $ECHO_C" >&6
26464else
26465  cat >conftest.$ac_ext <<_ACEOF
26466/* confdefs.h.  */
26467_ACEOF
26468cat confdefs.h >>conftest.$ac_ext
26469cat >>conftest.$ac_ext <<_ACEOF
26470/* end confdefs.h.  */
26471#include <stdint.h>
26472#ifdef INT_LEAST8_MIN
26473found it
26474#endif
26475
26476_ACEOF
26477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26478  $EGREP "found it" >/dev/null 2>&1; then
26479  gl_cv_stdint_INT_LEAST8_MIN=yes
26480else
26481  gl_cv_stdint_INT_LEAST8_MIN="INT8_MIN"
26482fi
26483rm -f conftest*
26484
26485fi
26486{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST8_MIN" >&5
26487echo "${ECHO_T}$gl_cv_stdint_INT_LEAST8_MIN" >&6; }
26488  if test "$gl_cv_stdint_INT_LEAST8_MIN" != yes; then
26489
26490cat >>confdefs.h <<_ACEOF
26491#define INT_LEAST8_MIN INT8_MIN
26492_ACEOF
26493
26494  fi
26495
26496
26497  { echo "$as_me:$LINENO: checking for INT_LEAST8_MAX" >&5
26498echo $ECHO_N "checking for INT_LEAST8_MAX... $ECHO_C" >&6; }
26499if test "${gl_cv_stdint_INT_LEAST8_MAX+set}" = set; then
26500  echo $ECHO_N "(cached) $ECHO_C" >&6
26501else
26502  cat >conftest.$ac_ext <<_ACEOF
26503/* confdefs.h.  */
26504_ACEOF
26505cat confdefs.h >>conftest.$ac_ext
26506cat >>conftest.$ac_ext <<_ACEOF
26507/* end confdefs.h.  */
26508#include <stdint.h>
26509#ifdef INT_LEAST8_MAX
26510found it
26511#endif
26512
26513_ACEOF
26514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26515  $EGREP "found it" >/dev/null 2>&1; then
26516  gl_cv_stdint_INT_LEAST8_MAX=yes
26517else
26518  gl_cv_stdint_INT_LEAST8_MAX="INT8_MAX"
26519fi
26520rm -f conftest*
26521
26522fi
26523{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST8_MAX" >&5
26524echo "${ECHO_T}$gl_cv_stdint_INT_LEAST8_MAX" >&6; }
26525  if test "$gl_cv_stdint_INT_LEAST8_MAX" != yes; then
26526
26527cat >>confdefs.h <<_ACEOF
26528#define INT_LEAST8_MAX INT8_MAX
26529_ACEOF
26530
26531  fi
26532
26533
26534  { echo "$as_me:$LINENO: checking for UINT_LEAST8_MAX" >&5
26535echo $ECHO_N "checking for UINT_LEAST8_MAX... $ECHO_C" >&6; }
26536if test "${gl_cv_stdint_UINT_LEAST8_MAX+set}" = set; then
26537  echo $ECHO_N "(cached) $ECHO_C" >&6
26538else
26539  cat >conftest.$ac_ext <<_ACEOF
26540/* confdefs.h.  */
26541_ACEOF
26542cat confdefs.h >>conftest.$ac_ext
26543cat >>conftest.$ac_ext <<_ACEOF
26544/* end confdefs.h.  */
26545#include <stdint.h>
26546#ifdef UINT_LEAST8_MAX
26547found it
26548#endif
26549
26550_ACEOF
26551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26552  $EGREP "found it" >/dev/null 2>&1; then
26553  gl_cv_stdint_UINT_LEAST8_MAX=yes
26554else
26555  gl_cv_stdint_UINT_LEAST8_MAX="UINT8_MAX"
26556fi
26557rm -f conftest*
26558
26559fi
26560{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST8_MAX" >&5
26561echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST8_MAX" >&6; }
26562  if test "$gl_cv_stdint_UINT_LEAST8_MAX" != yes; then
26563
26564cat >>confdefs.h <<_ACEOF
26565#define UINT_LEAST8_MAX UINT8_MAX
26566_ACEOF
26567
26568  fi
26569
26570
26571  { echo "$as_me:$LINENO: checking for INT_LEAST16_MIN" >&5
26572echo $ECHO_N "checking for INT_LEAST16_MIN... $ECHO_C" >&6; }
26573if test "${gl_cv_stdint_INT_LEAST16_MIN+set}" = set; then
26574  echo $ECHO_N "(cached) $ECHO_C" >&6
26575else
26576  cat >conftest.$ac_ext <<_ACEOF
26577/* confdefs.h.  */
26578_ACEOF
26579cat confdefs.h >>conftest.$ac_ext
26580cat >>conftest.$ac_ext <<_ACEOF
26581/* end confdefs.h.  */
26582#include <stdint.h>
26583#ifdef INT_LEAST16_MIN
26584found it
26585#endif
26586
26587_ACEOF
26588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26589  $EGREP "found it" >/dev/null 2>&1; then
26590  gl_cv_stdint_INT_LEAST16_MIN=yes
26591else
26592  gl_cv_stdint_INT_LEAST16_MIN="INT16_MIN"
26593fi
26594rm -f conftest*
26595
26596fi
26597{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST16_MIN" >&5
26598echo "${ECHO_T}$gl_cv_stdint_INT_LEAST16_MIN" >&6; }
26599  if test "$gl_cv_stdint_INT_LEAST16_MIN" != yes; then
26600
26601cat >>confdefs.h <<_ACEOF
26602#define INT_LEAST16_MIN INT16_MIN
26603_ACEOF
26604
26605  fi
26606
26607
26608  { echo "$as_me:$LINENO: checking for INT_LEAST16_MAX" >&5
26609echo $ECHO_N "checking for INT_LEAST16_MAX... $ECHO_C" >&6; }
26610if test "${gl_cv_stdint_INT_LEAST16_MAX+set}" = set; then
26611  echo $ECHO_N "(cached) $ECHO_C" >&6
26612else
26613  cat >conftest.$ac_ext <<_ACEOF
26614/* confdefs.h.  */
26615_ACEOF
26616cat confdefs.h >>conftest.$ac_ext
26617cat >>conftest.$ac_ext <<_ACEOF
26618/* end confdefs.h.  */
26619#include <stdint.h>
26620#ifdef INT_LEAST16_MAX
26621found it
26622#endif
26623
26624_ACEOF
26625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26626  $EGREP "found it" >/dev/null 2>&1; then
26627  gl_cv_stdint_INT_LEAST16_MAX=yes
26628else
26629  gl_cv_stdint_INT_LEAST16_MAX="INT16_MAX"
26630fi
26631rm -f conftest*
26632
26633fi
26634{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST16_MAX" >&5
26635echo "${ECHO_T}$gl_cv_stdint_INT_LEAST16_MAX" >&6; }
26636  if test "$gl_cv_stdint_INT_LEAST16_MAX" != yes; then
26637
26638cat >>confdefs.h <<_ACEOF
26639#define INT_LEAST16_MAX INT16_MAX
26640_ACEOF
26641
26642  fi
26643
26644
26645  { echo "$as_me:$LINENO: checking for UINT_LEAST16_MAX" >&5
26646echo $ECHO_N "checking for UINT_LEAST16_MAX... $ECHO_C" >&6; }
26647if test "${gl_cv_stdint_UINT_LEAST16_MAX+set}" = set; then
26648  echo $ECHO_N "(cached) $ECHO_C" >&6
26649else
26650  cat >conftest.$ac_ext <<_ACEOF
26651/* confdefs.h.  */
26652_ACEOF
26653cat confdefs.h >>conftest.$ac_ext
26654cat >>conftest.$ac_ext <<_ACEOF
26655/* end confdefs.h.  */
26656#include <stdint.h>
26657#ifdef UINT_LEAST16_MAX
26658found it
26659#endif
26660
26661_ACEOF
26662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26663  $EGREP "found it" >/dev/null 2>&1; then
26664  gl_cv_stdint_UINT_LEAST16_MAX=yes
26665else
26666  gl_cv_stdint_UINT_LEAST16_MAX="UINT16_MAX"
26667fi
26668rm -f conftest*
26669
26670fi
26671{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST16_MAX" >&5
26672echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST16_MAX" >&6; }
26673  if test "$gl_cv_stdint_UINT_LEAST16_MAX" != yes; then
26674
26675cat >>confdefs.h <<_ACEOF
26676#define UINT_LEAST16_MAX UINT16_MAX
26677_ACEOF
26678
26679  fi
26680
26681
26682  { echo "$as_me:$LINENO: checking for INT_LEAST32_MIN" >&5
26683echo $ECHO_N "checking for INT_LEAST32_MIN... $ECHO_C" >&6; }
26684if test "${gl_cv_stdint_INT_LEAST32_MIN+set}" = set; then
26685  echo $ECHO_N "(cached) $ECHO_C" >&6
26686else
26687  cat >conftest.$ac_ext <<_ACEOF
26688/* confdefs.h.  */
26689_ACEOF
26690cat confdefs.h >>conftest.$ac_ext
26691cat >>conftest.$ac_ext <<_ACEOF
26692/* end confdefs.h.  */
26693#include <stdint.h>
26694#ifdef INT_LEAST32_MIN
26695found it
26696#endif
26697
26698_ACEOF
26699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26700  $EGREP "found it" >/dev/null 2>&1; then
26701  gl_cv_stdint_INT_LEAST32_MIN=yes
26702else
26703  gl_cv_stdint_INT_LEAST32_MIN="INT32_MIN"
26704fi
26705rm -f conftest*
26706
26707fi
26708{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST32_MIN" >&5
26709echo "${ECHO_T}$gl_cv_stdint_INT_LEAST32_MIN" >&6; }
26710  if test "$gl_cv_stdint_INT_LEAST32_MIN" != yes; then
26711
26712cat >>confdefs.h <<_ACEOF
26713#define INT_LEAST32_MIN INT32_MIN
26714_ACEOF
26715
26716  fi
26717
26718
26719  { echo "$as_me:$LINENO: checking for INT_LEAST32_MAX" >&5
26720echo $ECHO_N "checking for INT_LEAST32_MAX... $ECHO_C" >&6; }
26721if test "${gl_cv_stdint_INT_LEAST32_MAX+set}" = set; then
26722  echo $ECHO_N "(cached) $ECHO_C" >&6
26723else
26724  cat >conftest.$ac_ext <<_ACEOF
26725/* confdefs.h.  */
26726_ACEOF
26727cat confdefs.h >>conftest.$ac_ext
26728cat >>conftest.$ac_ext <<_ACEOF
26729/* end confdefs.h.  */
26730#include <stdint.h>
26731#ifdef INT_LEAST32_MAX
26732found it
26733#endif
26734
26735_ACEOF
26736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26737  $EGREP "found it" >/dev/null 2>&1; then
26738  gl_cv_stdint_INT_LEAST32_MAX=yes
26739else
26740  gl_cv_stdint_INT_LEAST32_MAX="INT32_MAX"
26741fi
26742rm -f conftest*
26743
26744fi
26745{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST32_MAX" >&5
26746echo "${ECHO_T}$gl_cv_stdint_INT_LEAST32_MAX" >&6; }
26747  if test "$gl_cv_stdint_INT_LEAST32_MAX" != yes; then
26748
26749cat >>confdefs.h <<_ACEOF
26750#define INT_LEAST32_MAX INT32_MAX
26751_ACEOF
26752
26753  fi
26754
26755
26756  { echo "$as_me:$LINENO: checking for UINT_LEAST32_MAX" >&5
26757echo $ECHO_N "checking for UINT_LEAST32_MAX... $ECHO_C" >&6; }
26758if test "${gl_cv_stdint_UINT_LEAST32_MAX+set}" = set; then
26759  echo $ECHO_N "(cached) $ECHO_C" >&6
26760else
26761  cat >conftest.$ac_ext <<_ACEOF
26762/* confdefs.h.  */
26763_ACEOF
26764cat confdefs.h >>conftest.$ac_ext
26765cat >>conftest.$ac_ext <<_ACEOF
26766/* end confdefs.h.  */
26767#include <stdint.h>
26768#ifdef UINT_LEAST32_MAX
26769found it
26770#endif
26771
26772_ACEOF
26773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26774  $EGREP "found it" >/dev/null 2>&1; then
26775  gl_cv_stdint_UINT_LEAST32_MAX=yes
26776else
26777  gl_cv_stdint_UINT_LEAST32_MAX="UINT32_MAX"
26778fi
26779rm -f conftest*
26780
26781fi
26782{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST32_MAX" >&5
26783echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST32_MAX" >&6; }
26784  if test "$gl_cv_stdint_UINT_LEAST32_MAX" != yes; then
26785
26786cat >>confdefs.h <<_ACEOF
26787#define UINT_LEAST32_MAX UINT32_MAX
26788_ACEOF
26789
26790  fi
26791
26792    if test $gl_cv_stdint_int_least64_t = yes; then
26793
26794  { echo "$as_me:$LINENO: checking for INT_LEAST64_MIN" >&5
26795echo $ECHO_N "checking for INT_LEAST64_MIN... $ECHO_C" >&6; }
26796if test "${gl_cv_stdint_INT_LEAST64_MIN+set}" = set; then
26797  echo $ECHO_N "(cached) $ECHO_C" >&6
26798else
26799  cat >conftest.$ac_ext <<_ACEOF
26800/* confdefs.h.  */
26801_ACEOF
26802cat confdefs.h >>conftest.$ac_ext
26803cat >>conftest.$ac_ext <<_ACEOF
26804/* end confdefs.h.  */
26805#include <stdint.h>
26806#ifdef INT_LEAST64_MIN
26807found it
26808#endif
26809
26810_ACEOF
26811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26812  $EGREP "found it" >/dev/null 2>&1; then
26813  gl_cv_stdint_INT_LEAST64_MIN=yes
26814else
26815  gl_cv_stdint_INT_LEAST64_MIN="INT64_MIN"
26816fi
26817rm -f conftest*
26818
26819fi
26820{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST64_MIN" >&5
26821echo "${ECHO_T}$gl_cv_stdint_INT_LEAST64_MIN" >&6; }
26822  if test "$gl_cv_stdint_INT_LEAST64_MIN" != yes; then
26823
26824cat >>confdefs.h <<_ACEOF
26825#define INT_LEAST64_MIN INT64_MIN
26826_ACEOF
26827
26828  fi
26829
26830
26831  { echo "$as_me:$LINENO: checking for INT_LEAST64_MAX" >&5
26832echo $ECHO_N "checking for INT_LEAST64_MAX... $ECHO_C" >&6; }
26833if test "${gl_cv_stdint_INT_LEAST64_MAX+set}" = set; then
26834  echo $ECHO_N "(cached) $ECHO_C" >&6
26835else
26836  cat >conftest.$ac_ext <<_ACEOF
26837/* confdefs.h.  */
26838_ACEOF
26839cat confdefs.h >>conftest.$ac_ext
26840cat >>conftest.$ac_ext <<_ACEOF
26841/* end confdefs.h.  */
26842#include <stdint.h>
26843#ifdef INT_LEAST64_MAX
26844found it
26845#endif
26846
26847_ACEOF
26848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26849  $EGREP "found it" >/dev/null 2>&1; then
26850  gl_cv_stdint_INT_LEAST64_MAX=yes
26851else
26852  gl_cv_stdint_INT_LEAST64_MAX="INT64_MAX"
26853fi
26854rm -f conftest*
26855
26856fi
26857{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST64_MAX" >&5
26858echo "${ECHO_T}$gl_cv_stdint_INT_LEAST64_MAX" >&6; }
26859  if test "$gl_cv_stdint_INT_LEAST64_MAX" != yes; then
26860
26861cat >>confdefs.h <<_ACEOF
26862#define INT_LEAST64_MAX INT64_MAX
26863_ACEOF
26864
26865  fi
26866
26867    fi
26868    if test $gl_cv_stdint_uint_least64_t = yes; then
26869
26870  { echo "$as_me:$LINENO: checking for UINT_LEAST64_MAX" >&5
26871echo $ECHO_N "checking for UINT_LEAST64_MAX... $ECHO_C" >&6; }
26872if test "${gl_cv_stdint_UINT_LEAST64_MAX+set}" = set; then
26873  echo $ECHO_N "(cached) $ECHO_C" >&6
26874else
26875  cat >conftest.$ac_ext <<_ACEOF
26876/* confdefs.h.  */
26877_ACEOF
26878cat confdefs.h >>conftest.$ac_ext
26879cat >>conftest.$ac_ext <<_ACEOF
26880/* end confdefs.h.  */
26881#include <stdint.h>
26882#ifdef UINT_LEAST64_MAX
26883found it
26884#endif
26885
26886_ACEOF
26887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26888  $EGREP "found it" >/dev/null 2>&1; then
26889  gl_cv_stdint_UINT_LEAST64_MAX=yes
26890else
26891  gl_cv_stdint_UINT_LEAST64_MAX="UINT64_MAX"
26892fi
26893rm -f conftest*
26894
26895fi
26896{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST64_MAX" >&5
26897echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST64_MAX" >&6; }
26898  if test "$gl_cv_stdint_UINT_LEAST64_MAX" != yes; then
26899
26900cat >>confdefs.h <<_ACEOF
26901#define UINT_LEAST64_MAX UINT64_MAX
26902_ACEOF
26903
26904  fi
26905
26906    fi
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918  sed_unsigned='s,^\(U*\).*,\1,'
26919  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
26920  for bound in INT_FAST8_MIN INT_FAST8_MAX UINT_FAST8_MAX \
26921                              INT_FAST16_MIN INT_FAST16_MAX UINT_FAST16_MAX \
26922                              INT_FAST32_MIN INT_FAST32_MAX UINT_FAST32_MAX; do
26923    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
26924    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
26925    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
26926    limitkind=`echo $bound | sed -e "$sed_limitkind"`
26927    { echo "$as_me:$LINENO: checking for $bound" >&5
26928echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
26929if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
26930  echo $ECHO_N "(cached) $ECHO_C" >&6
26931else
26932  cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h.  */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h.  */
26938#include <stdint.h>
26939#ifdef $bound
26940found it
26941#endif
26942
26943_ACEOF
26944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26945  $EGREP "found it" >/dev/null 2>&1; then
26946  eval gl_cv_stdint_$bound=yes
26947else
26948  result=
26949          case $width in
26950            *8) widthlist="8 16 32 64" ;;
26951            *16) widthlist="16 32 64" ;;
26952            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
26953            *64) widthlist="64" ;;
26954          esac
26955          for w in $widthlist; do
26956            if test -z "$result"; then
26957              cat >conftest.$ac_ext <<_ACEOF
26958
26959#include <stdint.h>
26960int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
26961
26962_ACEOF
26963rm -f conftest.$ac_objext
26964if { (ac_try="$ac_compile"
26965case "(($ac_try" in
26966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967  *) ac_try_echo=$ac_try;;
26968esac
26969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970  (eval "$ac_compile") 2>conftest.er1
26971  ac_status=$?
26972  grep -v '^ *+' conftest.er1 >conftest.err
26973  rm -f conftest.er1
26974  cat conftest.err >&5
26975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976  (exit $ac_status); } &&
26977	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26978  { (case "(($ac_try" in
26979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980  *) ac_try_echo=$ac_try;;
26981esac
26982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983  (eval "$ac_try") 2>&5
26984  ac_status=$?
26985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986  (exit $ac_status); }; } &&
26987	 { ac_try='test -s conftest.$ac_objext'
26988  { (case "(($ac_try" in
26989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990  *) ac_try_echo=$ac_try;;
26991esac
26992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993  (eval "$ac_try") 2>&5
26994  ac_status=$?
26995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996  (exit $ac_status); }; }; then
26997  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
26998else
26999  echo "$as_me: failed program was:" >&5
27000sed 's/^/| /' conftest.$ac_ext >&5
27001
27002
27003fi
27004
27005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27006            else
27007              break
27008            fi
27009          done
27010          if test -z "$result"; then
27011            result=no
27012          fi
27013          eval gl_cv_stdint_$bound=\$result
27014
27015fi
27016rm -f conftest*
27017
27018fi
27019ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27020	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27021echo "${ECHO_T}$ac_res" >&6; }
27022    eval result=\$gl_cv_stdint_$bound
27023    if test "$result" != yes && test "$result" != no; then
27024
27025cat >>confdefs.h <<_ACEOF
27026#define $bound $result
27027_ACEOF
27028
27029    fi
27030  done
27031
27032    if test $gl_cv_stdint_uint_fast64_t = yes; then
27033
27034
27035
27036
27037  sed_unsigned='s,^\(U*\).*,\1,'
27038  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27039  for bound in INT_FAST64_MIN INT_FAST64_MAX; do
27040    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27041    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27042    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27043    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27044    { echo "$as_me:$LINENO: checking for $bound" >&5
27045echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27046if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27047  echo $ECHO_N "(cached) $ECHO_C" >&6
27048else
27049  cat >conftest.$ac_ext <<_ACEOF
27050/* confdefs.h.  */
27051_ACEOF
27052cat confdefs.h >>conftest.$ac_ext
27053cat >>conftest.$ac_ext <<_ACEOF
27054/* end confdefs.h.  */
27055#include <stdint.h>
27056#ifdef $bound
27057found it
27058#endif
27059
27060_ACEOF
27061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27062  $EGREP "found it" >/dev/null 2>&1; then
27063  eval gl_cv_stdint_$bound=yes
27064else
27065  result=
27066          case $width in
27067            *8) widthlist="8 16 32 64" ;;
27068            *16) widthlist="16 32 64" ;;
27069            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27070            *64) widthlist="64" ;;
27071          esac
27072          for w in $widthlist; do
27073            if test -z "$result"; then
27074              cat >conftest.$ac_ext <<_ACEOF
27075
27076#include <stdint.h>
27077int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27078
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084  *) ac_try_echo=$ac_try;;
27085esac
27086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087  (eval "$ac_compile") 2>conftest.er1
27088  ac_status=$?
27089  grep -v '^ *+' conftest.er1 >conftest.err
27090  rm -f conftest.er1
27091  cat conftest.err >&5
27092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093  (exit $ac_status); } &&
27094	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27095  { (case "(($ac_try" in
27096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097  *) ac_try_echo=$ac_try;;
27098esac
27099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100  (eval "$ac_try") 2>&5
27101  ac_status=$?
27102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103  (exit $ac_status); }; } &&
27104	 { ac_try='test -s conftest.$ac_objext'
27105  { (case "(($ac_try" in
27106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107  *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110  (eval "$ac_try") 2>&5
27111  ac_status=$?
27112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113  (exit $ac_status); }; }; then
27114  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27115else
27116  echo "$as_me: failed program was:" >&5
27117sed 's/^/| /' conftest.$ac_ext >&5
27118
27119
27120fi
27121
27122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123            else
27124              break
27125            fi
27126          done
27127          if test -z "$result"; then
27128            result=no
27129          fi
27130          eval gl_cv_stdint_$bound=\$result
27131
27132fi
27133rm -f conftest*
27134
27135fi
27136ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27137	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27138echo "${ECHO_T}$ac_res" >&6; }
27139    eval result=\$gl_cv_stdint_$bound
27140    if test "$result" != yes && test "$result" != no; then
27141
27142cat >>confdefs.h <<_ACEOF
27143#define $bound $result
27144_ACEOF
27145
27146    fi
27147  done
27148
27149    fi
27150    if test $gl_cv_stdint_uint_fast64_t = yes; then
27151
27152
27153
27154  sed_unsigned='s,^\(U*\).*,\1,'
27155  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27156  for bound in UINT_FAST64_MAX; do
27157    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27158    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27159    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27160    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27161    { echo "$as_me:$LINENO: checking for $bound" >&5
27162echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27163if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27164  echo $ECHO_N "(cached) $ECHO_C" >&6
27165else
27166  cat >conftest.$ac_ext <<_ACEOF
27167/* confdefs.h.  */
27168_ACEOF
27169cat confdefs.h >>conftest.$ac_ext
27170cat >>conftest.$ac_ext <<_ACEOF
27171/* end confdefs.h.  */
27172#include <stdint.h>
27173#ifdef $bound
27174found it
27175#endif
27176
27177_ACEOF
27178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27179  $EGREP "found it" >/dev/null 2>&1; then
27180  eval gl_cv_stdint_$bound=yes
27181else
27182  result=
27183          case $width in
27184            *8) widthlist="8 16 32 64" ;;
27185            *16) widthlist="16 32 64" ;;
27186            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27187            *64) widthlist="64" ;;
27188          esac
27189          for w in $widthlist; do
27190            if test -z "$result"; then
27191              cat >conftest.$ac_ext <<_ACEOF
27192
27193#include <stdint.h>
27194int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27195
27196_ACEOF
27197rm -f conftest.$ac_objext
27198if { (ac_try="$ac_compile"
27199case "(($ac_try" in
27200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201  *) ac_try_echo=$ac_try;;
27202esac
27203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204  (eval "$ac_compile") 2>conftest.er1
27205  ac_status=$?
27206  grep -v '^ *+' conftest.er1 >conftest.err
27207  rm -f conftest.er1
27208  cat conftest.err >&5
27209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210  (exit $ac_status); } &&
27211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27212  { (case "(($ac_try" in
27213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214  *) ac_try_echo=$ac_try;;
27215esac
27216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217  (eval "$ac_try") 2>&5
27218  ac_status=$?
27219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220  (exit $ac_status); }; } &&
27221	 { ac_try='test -s conftest.$ac_objext'
27222  { (case "(($ac_try" in
27223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224  *) ac_try_echo=$ac_try;;
27225esac
27226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27227  (eval "$ac_try") 2>&5
27228  ac_status=$?
27229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230  (exit $ac_status); }; }; then
27231  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27232else
27233  echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236
27237fi
27238
27239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27240            else
27241              break
27242            fi
27243          done
27244          if test -z "$result"; then
27245            result=no
27246          fi
27247          eval gl_cv_stdint_$bound=\$result
27248
27249fi
27250rm -f conftest*
27251
27252fi
27253ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27254	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27255echo "${ECHO_T}$ac_res" >&6; }
27256    eval result=\$gl_cv_stdint_$bound
27257    if test "$result" != yes && test "$result" != no; then
27258
27259cat >>confdefs.h <<_ACEOF
27260#define $bound $result
27261_ACEOF
27262
27263    fi
27264  done
27265
27266    fi
27267
27268
27269
27270
27271
27272
27273
27274
27275  sed_unsigned='s,^\(U*\).*,\1,'
27276  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27277  for bound in INTPTR_MIN INTPTR_MAX UINTPTR_MAX \
27278                              INTMAX_MIN INTMAX_MAX UINTMAX_MAX; do
27279    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27280    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27281    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27282    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27283    { echo "$as_me:$LINENO: checking for $bound" >&5
27284echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27285if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27286  echo $ECHO_N "(cached) $ECHO_C" >&6
27287else
27288  cat >conftest.$ac_ext <<_ACEOF
27289/* confdefs.h.  */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h.  */
27294#include <stdint.h>
27295#ifdef $bound
27296found it
27297#endif
27298
27299_ACEOF
27300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27301  $EGREP "found it" >/dev/null 2>&1; then
27302  eval gl_cv_stdint_$bound=yes
27303else
27304  result=
27305          case $width in
27306            *8) widthlist="8 16 32 64" ;;
27307            *16) widthlist="16 32 64" ;;
27308            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27309            *64) widthlist="64" ;;
27310          esac
27311          for w in $widthlist; do
27312            if test -z "$result"; then
27313              cat >conftest.$ac_ext <<_ACEOF
27314
27315#include <stdint.h>
27316int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27317
27318_ACEOF
27319rm -f conftest.$ac_objext
27320if { (ac_try="$ac_compile"
27321case "(($ac_try" in
27322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323  *) ac_try_echo=$ac_try;;
27324esac
27325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326  (eval "$ac_compile") 2>conftest.er1
27327  ac_status=$?
27328  grep -v '^ *+' conftest.er1 >conftest.err
27329  rm -f conftest.er1
27330  cat conftest.err >&5
27331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332  (exit $ac_status); } &&
27333	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27334  { (case "(($ac_try" in
27335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336  *) ac_try_echo=$ac_try;;
27337esac
27338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339  (eval "$ac_try") 2>&5
27340  ac_status=$?
27341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342  (exit $ac_status); }; } &&
27343	 { ac_try='test -s conftest.$ac_objext'
27344  { (case "(($ac_try" in
27345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346  *) ac_try_echo=$ac_try;;
27347esac
27348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349  (eval "$ac_try") 2>&5
27350  ac_status=$?
27351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352  (exit $ac_status); }; }; then
27353  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27354else
27355  echo "$as_me: failed program was:" >&5
27356sed 's/^/| /' conftest.$ac_ext >&5
27357
27358
27359fi
27360
27361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362            else
27363              break
27364            fi
27365          done
27366          if test -z "$result"; then
27367            result=no
27368          fi
27369          eval gl_cv_stdint_$bound=\$result
27370
27371fi
27372rm -f conftest*
27373
27374fi
27375ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27376	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27377echo "${ECHO_T}$ac_res" >&6; }
27378    eval result=\$gl_cv_stdint_$bound
27379    if test "$result" != yes && test "$result" != no; then
27380
27381cat >>confdefs.h <<_ACEOF
27382#define $bound $result
27383_ACEOF
27384
27385    fi
27386  done
27387
27388
27389
27390
27391
27392  sed_unsigned='s,^\(U*\).*,\1,'
27393  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27394  for bound in PTRDIFF_MIN PTRDIFF_MAX; do
27395    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27396    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27397    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27398    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27399    { echo "$as_me:$LINENO: checking for $bound" >&5
27400echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27401if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27402  echo $ECHO_N "(cached) $ECHO_C" >&6
27403else
27404  cat >conftest.$ac_ext <<_ACEOF
27405/* confdefs.h.  */
27406_ACEOF
27407cat confdefs.h >>conftest.$ac_ext
27408cat >>conftest.$ac_ext <<_ACEOF
27409/* end confdefs.h.  */
27410#include <stdint.h>
27411#ifdef $bound
27412found it
27413#endif
27414
27415_ACEOF
27416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27417  $EGREP "found it" >/dev/null 2>&1; then
27418  eval gl_cv_stdint_$bound=yes
27419else
27420  result=
27421          case $width in
27422            *8) widthlist="8 16 32 64" ;;
27423            *16) widthlist="16 32 64" ;;
27424            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27425            *64) widthlist="64" ;;
27426          esac
27427          for w in $widthlist; do
27428            if test -z "$result"; then
27429              cat >conftest.$ac_ext <<_ACEOF
27430#include <stddef.h>
27431#include <stdint.h>
27432int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27433
27434_ACEOF
27435rm -f conftest.$ac_objext
27436if { (ac_try="$ac_compile"
27437case "(($ac_try" in
27438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439  *) ac_try_echo=$ac_try;;
27440esac
27441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442  (eval "$ac_compile") 2>conftest.er1
27443  ac_status=$?
27444  grep -v '^ *+' conftest.er1 >conftest.err
27445  rm -f conftest.er1
27446  cat conftest.err >&5
27447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448  (exit $ac_status); } &&
27449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27450  { (case "(($ac_try" in
27451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452  *) ac_try_echo=$ac_try;;
27453esac
27454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455  (eval "$ac_try") 2>&5
27456  ac_status=$?
27457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458  (exit $ac_status); }; } &&
27459	 { ac_try='test -s conftest.$ac_objext'
27460  { (case "(($ac_try" in
27461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462  *) ac_try_echo=$ac_try;;
27463esac
27464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465  (eval "$ac_try") 2>&5
27466  ac_status=$?
27467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468  (exit $ac_status); }; }; then
27469  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27470else
27471  echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
27474
27475fi
27476
27477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478            else
27479              break
27480            fi
27481          done
27482          if test -z "$result"; then
27483            result=no
27484          fi
27485          eval gl_cv_stdint_$bound=\$result
27486
27487fi
27488rm -f conftest*
27489
27490fi
27491ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27492	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27493echo "${ECHO_T}$ac_res" >&6; }
27494    eval result=\$gl_cv_stdint_$bound
27495    if test "$result" != yes && test "$result" != no; then
27496
27497cat >>confdefs.h <<_ACEOF
27498#define $bound $result
27499_ACEOF
27500
27501    fi
27502  done
27503
27504
27505
27506for ac_header in stdint.h
27507do
27508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27510  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27513  echo $ECHO_N "(cached) $ECHO_C" >&6
27514fi
27515ac_res=`eval echo '${'$as_ac_Header'}'`
27516	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27517echo "${ECHO_T}$ac_res" >&6; }
27518else
27519  # Is the header compilable?
27520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27522cat >conftest.$ac_ext <<_ACEOF
27523/* confdefs.h.  */
27524_ACEOF
27525cat confdefs.h >>conftest.$ac_ext
27526cat >>conftest.$ac_ext <<_ACEOF
27527/* end confdefs.h.  */
27528$ac_includes_default
27529#include <$ac_header>
27530_ACEOF
27531rm -f conftest.$ac_objext
27532if { (ac_try="$ac_compile"
27533case "(($ac_try" in
27534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535  *) ac_try_echo=$ac_try;;
27536esac
27537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538  (eval "$ac_compile") 2>conftest.er1
27539  ac_status=$?
27540  grep -v '^ *+' conftest.er1 >conftest.err
27541  rm -f conftest.er1
27542  cat conftest.err >&5
27543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544  (exit $ac_status); } &&
27545	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27546  { (case "(($ac_try" in
27547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548  *) ac_try_echo=$ac_try;;
27549esac
27550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551  (eval "$ac_try") 2>&5
27552  ac_status=$?
27553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554  (exit $ac_status); }; } &&
27555	 { ac_try='test -s conftest.$ac_objext'
27556  { (case "(($ac_try" in
27557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558  *) ac_try_echo=$ac_try;;
27559esac
27560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561  (eval "$ac_try") 2>&5
27562  ac_status=$?
27563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564  (exit $ac_status); }; }; then
27565  ac_header_compiler=yes
27566else
27567  echo "$as_me: failed program was:" >&5
27568sed 's/^/| /' conftest.$ac_ext >&5
27569
27570	ac_header_compiler=no
27571fi
27572
27573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27575echo "${ECHO_T}$ac_header_compiler" >&6; }
27576
27577# Is the header present?
27578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27580cat >conftest.$ac_ext <<_ACEOF
27581/* confdefs.h.  */
27582_ACEOF
27583cat confdefs.h >>conftest.$ac_ext
27584cat >>conftest.$ac_ext <<_ACEOF
27585/* end confdefs.h.  */
27586#include <$ac_header>
27587_ACEOF
27588if { (ac_try="$ac_cpp conftest.$ac_ext"
27589case "(($ac_try" in
27590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591  *) ac_try_echo=$ac_try;;
27592esac
27593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27594  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27595  ac_status=$?
27596  grep -v '^ *+' conftest.er1 >conftest.err
27597  rm -f conftest.er1
27598  cat conftest.err >&5
27599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600  (exit $ac_status); } >/dev/null; then
27601  if test -s conftest.err; then
27602    ac_cpp_err=$ac_c_preproc_warn_flag
27603    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27604  else
27605    ac_cpp_err=
27606  fi
27607else
27608  ac_cpp_err=yes
27609fi
27610if test -z "$ac_cpp_err"; then
27611  ac_header_preproc=yes
27612else
27613  echo "$as_me: failed program was:" >&5
27614sed 's/^/| /' conftest.$ac_ext >&5
27615
27616  ac_header_preproc=no
27617fi
27618
27619rm -f conftest.err conftest.$ac_ext
27620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27621echo "${ECHO_T}$ac_header_preproc" >&6; }
27622
27623# So?  What about this header?
27624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27625  yes:no: )
27626    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27628    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27630    ac_header_preproc=yes
27631    ;;
27632  no:yes:* )
27633    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27635    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27636echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27637    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27639    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27640echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27641    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27643    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27645
27646    ;;
27647esac
27648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27651  echo $ECHO_N "(cached) $ECHO_C" >&6
27652else
27653  eval "$as_ac_Header=\$ac_header_preproc"
27654fi
27655ac_res=`eval echo '${'$as_ac_Header'}'`
27656	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27657echo "${ECHO_T}$ac_res" >&6; }
27658
27659fi
27660if test `eval echo '${'$as_ac_Header'}'` = yes; then
27661  cat >>confdefs.h <<_ACEOF
27662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27663_ACEOF
27664
27665fi
27666
27667done
27668
27669    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
27670echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
27671  result=
27672  cat >conftest.$ac_ext <<_ACEOF
27673/* confdefs.h.  */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h.  */
27678
27679#include <limits.h>
27680#if HAVE_STDINT_H
27681#include <stdint.h>
27682#endif
27683#ifdef SIZE_MAX
27684Found it
27685#endif
27686
27687_ACEOF
27688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27689  $EGREP "Found it" >/dev/null 2>&1; then
27690  result=yes
27691fi
27692rm -f conftest*
27693
27694  if test -z "$result"; then
27695                if test "$cross_compiling" = yes; then
27696  # Depending upon the size, compute the lo and hi bounds.
27697cat >conftest.$ac_ext <<_ACEOF
27698/* confdefs.h.  */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h.  */
27703#include <stddef.h>
27704#include <limits.h>
27705int
27706main ()
27707{
27708static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
27709test_array [0] = 0
27710
27711  ;
27712  return 0;
27713}
27714_ACEOF
27715rm -f conftest.$ac_objext
27716if { (ac_try="$ac_compile"
27717case "(($ac_try" in
27718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719  *) ac_try_echo=$ac_try;;
27720esac
27721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722  (eval "$ac_compile") 2>conftest.er1
27723  ac_status=$?
27724  grep -v '^ *+' conftest.er1 >conftest.err
27725  rm -f conftest.er1
27726  cat conftest.err >&5
27727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728  (exit $ac_status); } &&
27729	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27730  { (case "(($ac_try" in
27731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732  *) ac_try_echo=$ac_try;;
27733esac
27734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735  (eval "$ac_try") 2>&5
27736  ac_status=$?
27737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738  (exit $ac_status); }; } &&
27739	 { ac_try='test -s conftest.$ac_objext'
27740  { (case "(($ac_try" in
27741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742  *) ac_try_echo=$ac_try;;
27743esac
27744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745  (eval "$ac_try") 2>&5
27746  ac_status=$?
27747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748  (exit $ac_status); }; }; then
27749  ac_lo=0 ac_mid=0
27750  while :; do
27751    cat >conftest.$ac_ext <<_ACEOF
27752/* confdefs.h.  */
27753_ACEOF
27754cat confdefs.h >>conftest.$ac_ext
27755cat >>conftest.$ac_ext <<_ACEOF
27756/* end confdefs.h.  */
27757#include <stddef.h>
27758#include <limits.h>
27759int
27760main ()
27761{
27762static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27763test_array [0] = 0
27764
27765  ;
27766  return 0;
27767}
27768_ACEOF
27769rm -f conftest.$ac_objext
27770if { (ac_try="$ac_compile"
27771case "(($ac_try" in
27772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773  *) ac_try_echo=$ac_try;;
27774esac
27775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776  (eval "$ac_compile") 2>conftest.er1
27777  ac_status=$?
27778  grep -v '^ *+' conftest.er1 >conftest.err
27779  rm -f conftest.er1
27780  cat conftest.err >&5
27781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782  (exit $ac_status); } &&
27783	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27784  { (case "(($ac_try" in
27785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786  *) ac_try_echo=$ac_try;;
27787esac
27788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789  (eval "$ac_try") 2>&5
27790  ac_status=$?
27791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792  (exit $ac_status); }; } &&
27793	 { ac_try='test -s conftest.$ac_objext'
27794  { (case "(($ac_try" in
27795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796  *) ac_try_echo=$ac_try;;
27797esac
27798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799  (eval "$ac_try") 2>&5
27800  ac_status=$?
27801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802  (exit $ac_status); }; }; then
27803  ac_hi=$ac_mid; break
27804else
27805  echo "$as_me: failed program was:" >&5
27806sed 's/^/| /' conftest.$ac_ext >&5
27807
27808	ac_lo=`expr $ac_mid + 1`
27809			if test $ac_lo -le $ac_mid; then
27810			  ac_lo= ac_hi=
27811			  break
27812			fi
27813			ac_mid=`expr 2 '*' $ac_mid + 1`
27814fi
27815
27816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27817  done
27818else
27819  echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822	cat >conftest.$ac_ext <<_ACEOF
27823/* confdefs.h.  */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h.  */
27828#include <stddef.h>
27829#include <limits.h>
27830int
27831main ()
27832{
27833static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
27834test_array [0] = 0
27835
27836  ;
27837  return 0;
27838}
27839_ACEOF
27840rm -f conftest.$ac_objext
27841if { (ac_try="$ac_compile"
27842case "(($ac_try" in
27843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844  *) ac_try_echo=$ac_try;;
27845esac
27846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847  (eval "$ac_compile") 2>conftest.er1
27848  ac_status=$?
27849  grep -v '^ *+' conftest.er1 >conftest.err
27850  rm -f conftest.er1
27851  cat conftest.err >&5
27852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853  (exit $ac_status); } &&
27854	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27855  { (case "(($ac_try" in
27856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857  *) ac_try_echo=$ac_try;;
27858esac
27859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860  (eval "$ac_try") 2>&5
27861  ac_status=$?
27862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863  (exit $ac_status); }; } &&
27864	 { ac_try='test -s conftest.$ac_objext'
27865  { (case "(($ac_try" in
27866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867  *) ac_try_echo=$ac_try;;
27868esac
27869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870  (eval "$ac_try") 2>&5
27871  ac_status=$?
27872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873  (exit $ac_status); }; }; then
27874  ac_hi=-1 ac_mid=-1
27875  while :; do
27876    cat >conftest.$ac_ext <<_ACEOF
27877/* confdefs.h.  */
27878_ACEOF
27879cat confdefs.h >>conftest.$ac_ext
27880cat >>conftest.$ac_ext <<_ACEOF
27881/* end confdefs.h.  */
27882#include <stddef.h>
27883#include <limits.h>
27884int
27885main ()
27886{
27887static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27888test_array [0] = 0
27889
27890  ;
27891  return 0;
27892}
27893_ACEOF
27894rm -f conftest.$ac_objext
27895if { (ac_try="$ac_compile"
27896case "(($ac_try" in
27897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898  *) ac_try_echo=$ac_try;;
27899esac
27900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901  (eval "$ac_compile") 2>conftest.er1
27902  ac_status=$?
27903  grep -v '^ *+' conftest.er1 >conftest.err
27904  rm -f conftest.er1
27905  cat conftest.err >&5
27906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907  (exit $ac_status); } &&
27908	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27909  { (case "(($ac_try" in
27910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911  *) ac_try_echo=$ac_try;;
27912esac
27913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914  (eval "$ac_try") 2>&5
27915  ac_status=$?
27916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917  (exit $ac_status); }; } &&
27918	 { ac_try='test -s conftest.$ac_objext'
27919  { (case "(($ac_try" in
27920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921  *) ac_try_echo=$ac_try;;
27922esac
27923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924  (eval "$ac_try") 2>&5
27925  ac_status=$?
27926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927  (exit $ac_status); }; }; then
27928  ac_lo=$ac_mid; break
27929else
27930  echo "$as_me: failed program was:" >&5
27931sed 's/^/| /' conftest.$ac_ext >&5
27932
27933	ac_hi=`expr '(' $ac_mid ')' - 1`
27934			if test $ac_mid -le $ac_hi; then
27935			  ac_lo= ac_hi=
27936			  break
27937			fi
27938			ac_mid=`expr 2 '*' $ac_mid`
27939fi
27940
27941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27942  done
27943else
27944  echo "$as_me: failed program was:" >&5
27945sed 's/^/| /' conftest.$ac_ext >&5
27946
27947	ac_lo= ac_hi=
27948fi
27949
27950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27951fi
27952
27953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27954# Binary search between lo and hi bounds.
27955while test "x$ac_lo" != "x$ac_hi"; do
27956  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27957  cat >conftest.$ac_ext <<_ACEOF
27958/* confdefs.h.  */
27959_ACEOF
27960cat confdefs.h >>conftest.$ac_ext
27961cat >>conftest.$ac_ext <<_ACEOF
27962/* end confdefs.h.  */
27963#include <stddef.h>
27964#include <limits.h>
27965int
27966main ()
27967{
27968static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27969test_array [0] = 0
27970
27971  ;
27972  return 0;
27973}
27974_ACEOF
27975rm -f conftest.$ac_objext
27976if { (ac_try="$ac_compile"
27977case "(($ac_try" in
27978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979  *) ac_try_echo=$ac_try;;
27980esac
27981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982  (eval "$ac_compile") 2>conftest.er1
27983  ac_status=$?
27984  grep -v '^ *+' conftest.er1 >conftest.err
27985  rm -f conftest.er1
27986  cat conftest.err >&5
27987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988  (exit $ac_status); } &&
27989	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27990  { (case "(($ac_try" in
27991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992  *) ac_try_echo=$ac_try;;
27993esac
27994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995  (eval "$ac_try") 2>&5
27996  ac_status=$?
27997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998  (exit $ac_status); }; } &&
27999	 { ac_try='test -s conftest.$ac_objext'
28000  { (case "(($ac_try" in
28001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002  *) ac_try_echo=$ac_try;;
28003esac
28004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005  (eval "$ac_try") 2>&5
28006  ac_status=$?
28007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008  (exit $ac_status); }; }; then
28009  ac_hi=$ac_mid
28010else
28011  echo "$as_me: failed program was:" >&5
28012sed 's/^/| /' conftest.$ac_ext >&5
28013
28014	ac_lo=`expr '(' $ac_mid ')' + 1`
28015fi
28016
28017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018done
28019case $ac_lo in
28020?*) size_t_bits_minus_1=$ac_lo;;
28021'') size_t_bits_minus_1= ;;
28022esac
28023else
28024  cat >conftest.$ac_ext <<_ACEOF
28025/* confdefs.h.  */
28026_ACEOF
28027cat confdefs.h >>conftest.$ac_ext
28028cat >>conftest.$ac_ext <<_ACEOF
28029/* end confdefs.h.  */
28030#include <stddef.h>
28031#include <limits.h>
28032static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
28033static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
28034#include <stdio.h>
28035#include <stdlib.h>
28036int
28037main ()
28038{
28039
28040  FILE *f = fopen ("conftest.val", "w");
28041  if (! f)
28042    return 1;
28043  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
28044    {
28045      long int i = longval ();
28046      if (i != (sizeof (size_t) * CHAR_BIT - 1))
28047	return 1;
28048      fprintf (f, "%ld\n", i);
28049    }
28050  else
28051    {
28052      unsigned long int i = ulongval ();
28053      if (i != (sizeof (size_t) * CHAR_BIT - 1))
28054	return 1;
28055      fprintf (f, "%lu\n", i);
28056    }
28057  return ferror (f) || fclose (f) != 0;
28058
28059  ;
28060  return 0;
28061}
28062_ACEOF
28063rm -f conftest$ac_exeext
28064if { (ac_try="$ac_link"
28065case "(($ac_try" in
28066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067  *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070  (eval "$ac_link") 2>&5
28071  ac_status=$?
28072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28074  { (case "(($ac_try" in
28075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076  *) ac_try_echo=$ac_try;;
28077esac
28078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079  (eval "$ac_try") 2>&5
28080  ac_status=$?
28081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082  (exit $ac_status); }; }; then
28083  size_t_bits_minus_1=`cat conftest.val`
28084else
28085  echo "$as_me: program exited with status $ac_status" >&5
28086echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089( exit $ac_status )
28090size_t_bits_minus_1=
28091fi
28092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28093fi
28094rm -f conftest.val
28095    if test "$cross_compiling" = yes; then
28096  # Depending upon the size, compute the lo and hi bounds.
28097cat >conftest.$ac_ext <<_ACEOF
28098/* confdefs.h.  */
28099_ACEOF
28100cat confdefs.h >>conftest.$ac_ext
28101cat >>conftest.$ac_ext <<_ACEOF
28102/* end confdefs.h.  */
28103#include <stddef.h>
28104int
28105main ()
28106{
28107static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
28108test_array [0] = 0
28109
28110  ;
28111  return 0;
28112}
28113_ACEOF
28114rm -f conftest.$ac_objext
28115if { (ac_try="$ac_compile"
28116case "(($ac_try" in
28117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118  *) ac_try_echo=$ac_try;;
28119esac
28120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121  (eval "$ac_compile") 2>conftest.er1
28122  ac_status=$?
28123  grep -v '^ *+' conftest.er1 >conftest.err
28124  rm -f conftest.er1
28125  cat conftest.err >&5
28126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127  (exit $ac_status); } &&
28128	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129  { (case "(($ac_try" in
28130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131  *) ac_try_echo=$ac_try;;
28132esac
28133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134  (eval "$ac_try") 2>&5
28135  ac_status=$?
28136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137  (exit $ac_status); }; } &&
28138	 { ac_try='test -s conftest.$ac_objext'
28139  { (case "(($ac_try" in
28140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141  *) ac_try_echo=$ac_try;;
28142esac
28143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144  (eval "$ac_try") 2>&5
28145  ac_status=$?
28146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147  (exit $ac_status); }; }; then
28148  ac_lo=0 ac_mid=0
28149  while :; do
28150    cat >conftest.$ac_ext <<_ACEOF
28151/* confdefs.h.  */
28152_ACEOF
28153cat confdefs.h >>conftest.$ac_ext
28154cat >>conftest.$ac_ext <<_ACEOF
28155/* end confdefs.h.  */
28156#include <stddef.h>
28157int
28158main ()
28159{
28160static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
28161test_array [0] = 0
28162
28163  ;
28164  return 0;
28165}
28166_ACEOF
28167rm -f conftest.$ac_objext
28168if { (ac_try="$ac_compile"
28169case "(($ac_try" in
28170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171  *) ac_try_echo=$ac_try;;
28172esac
28173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174  (eval "$ac_compile") 2>conftest.er1
28175  ac_status=$?
28176  grep -v '^ *+' conftest.er1 >conftest.err
28177  rm -f conftest.er1
28178  cat conftest.err >&5
28179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180  (exit $ac_status); } &&
28181	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28182  { (case "(($ac_try" in
28183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184  *) ac_try_echo=$ac_try;;
28185esac
28186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187  (eval "$ac_try") 2>&5
28188  ac_status=$?
28189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190  (exit $ac_status); }; } &&
28191	 { ac_try='test -s conftest.$ac_objext'
28192  { (case "(($ac_try" in
28193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194  *) ac_try_echo=$ac_try;;
28195esac
28196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197  (eval "$ac_try") 2>&5
28198  ac_status=$?
28199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200  (exit $ac_status); }; }; then
28201  ac_hi=$ac_mid; break
28202else
28203  echo "$as_me: failed program was:" >&5
28204sed 's/^/| /' conftest.$ac_ext >&5
28205
28206	ac_lo=`expr $ac_mid + 1`
28207			if test $ac_lo -le $ac_mid; then
28208			  ac_lo= ac_hi=
28209			  break
28210			fi
28211			ac_mid=`expr 2 '*' $ac_mid + 1`
28212fi
28213
28214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28215  done
28216else
28217  echo "$as_me: failed program was:" >&5
28218sed 's/^/| /' conftest.$ac_ext >&5
28219
28220	cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h.  */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h.  */
28226#include <stddef.h>
28227int
28228main ()
28229{
28230static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
28231test_array [0] = 0
28232
28233  ;
28234  return 0;
28235}
28236_ACEOF
28237rm -f conftest.$ac_objext
28238if { (ac_try="$ac_compile"
28239case "(($ac_try" in
28240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241  *) ac_try_echo=$ac_try;;
28242esac
28243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244  (eval "$ac_compile") 2>conftest.er1
28245  ac_status=$?
28246  grep -v '^ *+' conftest.er1 >conftest.err
28247  rm -f conftest.er1
28248  cat conftest.err >&5
28249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250  (exit $ac_status); } &&
28251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28252  { (case "(($ac_try" in
28253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28254  *) ac_try_echo=$ac_try;;
28255esac
28256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28257  (eval "$ac_try") 2>&5
28258  ac_status=$?
28259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260  (exit $ac_status); }; } &&
28261	 { ac_try='test -s conftest.$ac_objext'
28262  { (case "(($ac_try" in
28263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264  *) ac_try_echo=$ac_try;;
28265esac
28266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267  (eval "$ac_try") 2>&5
28268  ac_status=$?
28269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270  (exit $ac_status); }; }; then
28271  ac_hi=-1 ac_mid=-1
28272  while :; do
28273    cat >conftest.$ac_ext <<_ACEOF
28274/* confdefs.h.  */
28275_ACEOF
28276cat confdefs.h >>conftest.$ac_ext
28277cat >>conftest.$ac_ext <<_ACEOF
28278/* end confdefs.h.  */
28279#include <stddef.h>
28280int
28281main ()
28282{
28283static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
28284test_array [0] = 0
28285
28286  ;
28287  return 0;
28288}
28289_ACEOF
28290rm -f conftest.$ac_objext
28291if { (ac_try="$ac_compile"
28292case "(($ac_try" in
28293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294  *) ac_try_echo=$ac_try;;
28295esac
28296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297  (eval "$ac_compile") 2>conftest.er1
28298  ac_status=$?
28299  grep -v '^ *+' conftest.er1 >conftest.err
28300  rm -f conftest.er1
28301  cat conftest.err >&5
28302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303  (exit $ac_status); } &&
28304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28305  { (case "(($ac_try" in
28306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307  *) ac_try_echo=$ac_try;;
28308esac
28309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310  (eval "$ac_try") 2>&5
28311  ac_status=$?
28312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313  (exit $ac_status); }; } &&
28314	 { ac_try='test -s conftest.$ac_objext'
28315  { (case "(($ac_try" in
28316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317  *) ac_try_echo=$ac_try;;
28318esac
28319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320  (eval "$ac_try") 2>&5
28321  ac_status=$?
28322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323  (exit $ac_status); }; }; then
28324  ac_lo=$ac_mid; break
28325else
28326  echo "$as_me: failed program was:" >&5
28327sed 's/^/| /' conftest.$ac_ext >&5
28328
28329	ac_hi=`expr '(' $ac_mid ')' - 1`
28330			if test $ac_mid -le $ac_hi; then
28331			  ac_lo= ac_hi=
28332			  break
28333			fi
28334			ac_mid=`expr 2 '*' $ac_mid`
28335fi
28336
28337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28338  done
28339else
28340  echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343	ac_lo= ac_hi=
28344fi
28345
28346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347fi
28348
28349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28350# Binary search between lo and hi bounds.
28351while test "x$ac_lo" != "x$ac_hi"; do
28352  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28353  cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h.  */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h.  */
28359#include <stddef.h>
28360int
28361main ()
28362{
28363static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
28364test_array [0] = 0
28365
28366  ;
28367  return 0;
28368}
28369_ACEOF
28370rm -f conftest.$ac_objext
28371if { (ac_try="$ac_compile"
28372case "(($ac_try" in
28373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374  *) ac_try_echo=$ac_try;;
28375esac
28376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377  (eval "$ac_compile") 2>conftest.er1
28378  ac_status=$?
28379  grep -v '^ *+' conftest.er1 >conftest.err
28380  rm -f conftest.er1
28381  cat conftest.err >&5
28382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383  (exit $ac_status); } &&
28384	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28385  { (case "(($ac_try" in
28386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387  *) ac_try_echo=$ac_try;;
28388esac
28389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390  (eval "$ac_try") 2>&5
28391  ac_status=$?
28392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393  (exit $ac_status); }; } &&
28394	 { ac_try='test -s conftest.$ac_objext'
28395  { (case "(($ac_try" in
28396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397  *) ac_try_echo=$ac_try;;
28398esac
28399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28400  (eval "$ac_try") 2>&5
28401  ac_status=$?
28402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403  (exit $ac_status); }; }; then
28404  ac_hi=$ac_mid
28405else
28406  echo "$as_me: failed program was:" >&5
28407sed 's/^/| /' conftest.$ac_ext >&5
28408
28409	ac_lo=`expr '(' $ac_mid ')' + 1`
28410fi
28411
28412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28413done
28414case $ac_lo in
28415?*) fits_in_uint=$ac_lo;;
28416'') fits_in_uint= ;;
28417esac
28418else
28419  cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h.  */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h.  */
28425#include <stddef.h>
28426static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
28427static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
28428#include <stdio.h>
28429#include <stdlib.h>
28430int
28431main ()
28432{
28433
28434  FILE *f = fopen ("conftest.val", "w");
28435  if (! f)
28436    return 1;
28437  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
28438    {
28439      long int i = longval ();
28440      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28441	return 1;
28442      fprintf (f, "%ld\n", i);
28443    }
28444  else
28445    {
28446      unsigned long int i = ulongval ();
28447      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28448	return 1;
28449      fprintf (f, "%lu\n", i);
28450    }
28451  return ferror (f) || fclose (f) != 0;
28452
28453  ;
28454  return 0;
28455}
28456_ACEOF
28457rm -f conftest$ac_exeext
28458if { (ac_try="$ac_link"
28459case "(($ac_try" in
28460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461  *) ac_try_echo=$ac_try;;
28462esac
28463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464  (eval "$ac_link") 2>&5
28465  ac_status=$?
28466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28468  { (case "(($ac_try" in
28469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470  *) ac_try_echo=$ac_try;;
28471esac
28472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473  (eval "$ac_try") 2>&5
28474  ac_status=$?
28475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476  (exit $ac_status); }; }; then
28477  fits_in_uint=`cat conftest.val`
28478else
28479  echo "$as_me: program exited with status $ac_status" >&5
28480echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483( exit $ac_status )
28484fits_in_uint=
28485fi
28486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28487fi
28488rm -f conftest.val
28489    if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
28490      if test $fits_in_uint = 1; then
28491                        cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h.  */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h.  */
28497#include <stddef.h>
28498          extern size_t foo;
28499          extern unsigned long foo;
28500
28501int
28502main ()
28503{
28504
28505  ;
28506  return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext
28510if { (ac_try="$ac_compile"
28511case "(($ac_try" in
28512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513  *) ac_try_echo=$ac_try;;
28514esac
28515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516  (eval "$ac_compile") 2>conftest.er1
28517  ac_status=$?
28518  grep -v '^ *+' conftest.er1 >conftest.err
28519  rm -f conftest.er1
28520  cat conftest.err >&5
28521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522  (exit $ac_status); } &&
28523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28524  { (case "(($ac_try" in
28525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28526  *) ac_try_echo=$ac_try;;
28527esac
28528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28529  (eval "$ac_try") 2>&5
28530  ac_status=$?
28531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532  (exit $ac_status); }; } &&
28533	 { ac_try='test -s conftest.$ac_objext'
28534  { (case "(($ac_try" in
28535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536  *) ac_try_echo=$ac_try;;
28537esac
28538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539  (eval "$ac_try") 2>&5
28540  ac_status=$?
28541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542  (exit $ac_status); }; }; then
28543  fits_in_uint=0
28544else
28545  echo "$as_me: failed program was:" >&5
28546sed 's/^/| /' conftest.$ac_ext >&5
28547
28548
28549fi
28550
28551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552      fi
28553                        if test $fits_in_uint = 1; then
28554        result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
28555      else
28556        result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
28557      fi
28558    else
28559            result='((size_t)~(size_t)0)'
28560    fi
28561  fi
28562  { echo "$as_me:$LINENO: result: $result" >&5
28563echo "${ECHO_T}$result" >&6; }
28564  if test "$result" != yes; then
28565
28566cat >>confdefs.h <<_ACEOF
28567#define SIZE_MAX $result
28568_ACEOF
28569
28570  fi
28571
28572
28573
28574
28575
28576  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
28577  for bound in SIG_ATOMIC_MIN SIG_ATOMIC_MAX; do
28578    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
28579    limitkind=`echo $bound | sed -e "$sed_limitkind"`
28580    { echo "$as_me:$LINENO: checking for $bound" >&5
28581echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
28582if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
28583  echo $ECHO_N "(cached) $ECHO_C" >&6
28584else
28585  cat >conftest.$ac_ext <<_ACEOF
28586/* confdefs.h.  */
28587_ACEOF
28588cat confdefs.h >>conftest.$ac_ext
28589cat >>conftest.$ac_ext <<_ACEOF
28590/* end confdefs.h.  */
28591#include <stdint.h>
28592#ifdef $bound
28593found it
28594#endif
28595
28596_ACEOF
28597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28598  $EGREP "found it" >/dev/null 2>&1; then
28599  eval gl_cv_stdint_$bound=yes
28600else
28601  result=
28602          cat >conftest.$ac_ext <<_ACEOF
28603#include <signal.h>
28604            int verify[2 * (($type) -1 >= ($type) 0) - 1];
28605
28606_ACEOF
28607rm -f conftest.$ac_objext
28608if { (ac_try="$ac_compile"
28609case "(($ac_try" in
28610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28611  *) ac_try_echo=$ac_try;;
28612esac
28613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28614  (eval "$ac_compile") 2>conftest.er1
28615  ac_status=$?
28616  grep -v '^ *+' conftest.er1 >conftest.err
28617  rm -f conftest.er1
28618  cat conftest.err >&5
28619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620  (exit $ac_status); } &&
28621	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28622  { (case "(($ac_try" in
28623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624  *) ac_try_echo=$ac_try;;
28625esac
28626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627  (eval "$ac_try") 2>&5
28628  ac_status=$?
28629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630  (exit $ac_status); }; } &&
28631	 { ac_try='test -s conftest.$ac_objext'
28632  { (case "(($ac_try" in
28633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634  *) ac_try_echo=$ac_try;;
28635esac
28636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637  (eval "$ac_try") 2>&5
28638  ac_status=$?
28639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640  (exit $ac_status); }; }; then
28641  eval gl_cv_${type}_signed=no
28642else
28643  echo "$as_me: failed program was:" >&5
28644sed 's/^/| /' conftest.$ac_ext >&5
28645
28646	eval gl_cv_${type}_signed=yes
28647fi
28648
28649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28650          if eval test \$gl_cv_${type}_signed = yes; then
28651            for w in 8 16 32 64; do
28652              if test -z "$result"; then
28653                cat >conftest.$ac_ext <<_ACEOF
28654#include <signal.h>
28655#include <stdint.h>
28656int verify[2 * (sizeof ($type) == sizeof (int${w}_t)) - 1];
28657
28658_ACEOF
28659rm -f conftest.$ac_objext
28660if { (ac_try="$ac_compile"
28661case "(($ac_try" in
28662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663  *) ac_try_echo=$ac_try;;
28664esac
28665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666  (eval "$ac_compile") 2>conftest.er1
28667  ac_status=$?
28668  grep -v '^ *+' conftest.er1 >conftest.err
28669  rm -f conftest.er1
28670  cat conftest.err >&5
28671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672  (exit $ac_status); } &&
28673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28674  { (case "(($ac_try" in
28675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676  *) ac_try_echo=$ac_try;;
28677esac
28678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679  (eval "$ac_try") 2>&5
28680  ac_status=$?
28681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682  (exit $ac_status); }; } &&
28683	 { ac_try='test -s conftest.$ac_objext'
28684  { (case "(($ac_try" in
28685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686  *) ac_try_echo=$ac_try;;
28687esac
28688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689  (eval "$ac_try") 2>&5
28690  ac_status=$?
28691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692  (exit $ac_status); }; }; then
28693  result=INT${w}${limitkind}
28694else
28695  echo "$as_me: failed program was:" >&5
28696sed 's/^/| /' conftest.$ac_ext >&5
28697
28698
28699fi
28700
28701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28702              else
28703                break
28704              fi
28705            done
28706          else
28707            if test ${limitkind} = _MIN; then
28708              result=0
28709            else
28710              for w in 8 16 32 64; do
28711                if test -z "$result"; then
28712                  cat >conftest.$ac_ext <<_ACEOF
28713#include <signal.h>
28714#include <stdint.h>
28715int verify[2 * (sizeof ($type) == sizeof (uint${w}_t)) - 1];
28716
28717_ACEOF
28718rm -f conftest.$ac_objext
28719if { (ac_try="$ac_compile"
28720case "(($ac_try" in
28721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28722  *) ac_try_echo=$ac_try;;
28723esac
28724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28725  (eval "$ac_compile") 2>conftest.er1
28726  ac_status=$?
28727  grep -v '^ *+' conftest.er1 >conftest.err
28728  rm -f conftest.er1
28729  cat conftest.err >&5
28730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731  (exit $ac_status); } &&
28732	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28733  { (case "(($ac_try" in
28734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28735  *) ac_try_echo=$ac_try;;
28736esac
28737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28738  (eval "$ac_try") 2>&5
28739  ac_status=$?
28740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741  (exit $ac_status); }; } &&
28742	 { ac_try='test -s conftest.$ac_objext'
28743  { (case "(($ac_try" in
28744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745  *) ac_try_echo=$ac_try;;
28746esac
28747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28748  (eval "$ac_try") 2>&5
28749  ac_status=$?
28750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751  (exit $ac_status); }; }; then
28752  result=UINT${w}${limitkind}
28753else
28754  echo "$as_me: failed program was:" >&5
28755sed 's/^/| /' conftest.$ac_ext >&5
28756
28757
28758fi
28759
28760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761                else
28762                  break
28763                fi
28764              done
28765            fi
28766          fi
28767          if test -z "$result"; then
28768            result=no
28769          fi
28770          eval gl_cv_stdint_$bound=\$result
28771
28772fi
28773rm -f conftest*
28774
28775fi
28776ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
28777	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28778echo "${ECHO_T}$ac_res" >&6; }
28779    eval result=\$gl_cv_stdint_$bound
28780    if test "$result" != yes && test "$result" != no; then
28781
28782cat >>confdefs.h <<_ACEOF
28783#define $bound $result
28784_ACEOF
28785
28786    fi
28787  done
28788
28789
28790
28791
28792
28793  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
28794  for bound in WINT_MIN WINT_MAX; do
28795    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
28796    limitkind=`echo $bound | sed -e "$sed_limitkind"`
28797    { echo "$as_me:$LINENO: checking for $bound" >&5
28798echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
28799if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
28800  echo $ECHO_N "(cached) $ECHO_C" >&6
28801else
28802  cat >conftest.$ac_ext <<_ACEOF
28803/* confdefs.h.  */
28804_ACEOF
28805cat confdefs.h >>conftest.$ac_ext
28806cat >>conftest.$ac_ext <<_ACEOF
28807/* end confdefs.h.  */
28808#include <stdint.h>
28809#ifdef $bound
28810found it
28811#endif
28812
28813_ACEOF
28814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28815  $EGREP "found it" >/dev/null 2>&1; then
28816  eval gl_cv_stdint_$bound=yes
28817else
28818  result=
28819          cat >conftest.$ac_ext <<_ACEOF
28820
28821#include <stdio.h>
28822#include <time.h>
28823#include <wchar.h>
28824
28825            int verify[2 * (($type) -1 >= ($type) 0) - 1];
28826
28827_ACEOF
28828rm -f conftest.$ac_objext
28829if { (ac_try="$ac_compile"
28830case "(($ac_try" in
28831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832  *) ac_try_echo=$ac_try;;
28833esac
28834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835  (eval "$ac_compile") 2>conftest.er1
28836  ac_status=$?
28837  grep -v '^ *+' conftest.er1 >conftest.err
28838  rm -f conftest.er1
28839  cat conftest.err >&5
28840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841  (exit $ac_status); } &&
28842	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28843  { (case "(($ac_try" in
28844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28845  *) ac_try_echo=$ac_try;;
28846esac
28847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28848  (eval "$ac_try") 2>&5
28849  ac_status=$?
28850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851  (exit $ac_status); }; } &&
28852	 { ac_try='test -s conftest.$ac_objext'
28853  { (case "(($ac_try" in
28854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855  *) ac_try_echo=$ac_try;;
28856esac
28857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858  (eval "$ac_try") 2>&5
28859  ac_status=$?
28860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861  (exit $ac_status); }; }; then
28862  eval gl_cv_${type}_signed=no
28863else
28864  echo "$as_me: failed program was:" >&5
28865sed 's/^/| /' conftest.$ac_ext >&5
28866
28867	eval gl_cv_${type}_signed=yes
28868fi
28869
28870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28871          if eval test \$gl_cv_${type}_signed = yes; then
28872            for w in 8 16 32 64; do
28873              if test -z "$result"; then
28874                cat >conftest.$ac_ext <<_ACEOF
28875
28876#include <stdio.h>
28877#include <time.h>
28878#include <wchar.h>
28879
28880#include <stdint.h>
28881int verify[2 * (sizeof ($type) == sizeof (int${w}_t)) - 1];
28882
28883_ACEOF
28884rm -f conftest.$ac_objext
28885if { (ac_try="$ac_compile"
28886case "(($ac_try" in
28887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888  *) ac_try_echo=$ac_try;;
28889esac
28890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891  (eval "$ac_compile") 2>conftest.er1
28892  ac_status=$?
28893  grep -v '^ *+' conftest.er1 >conftest.err
28894  rm -f conftest.er1
28895  cat conftest.err >&5
28896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897  (exit $ac_status); } &&
28898	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28899  { (case "(($ac_try" in
28900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901  *) ac_try_echo=$ac_try;;
28902esac
28903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904  (eval "$ac_try") 2>&5
28905  ac_status=$?
28906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907  (exit $ac_status); }; } &&
28908	 { ac_try='test -s conftest.$ac_objext'
28909  { (case "(($ac_try" in
28910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911  *) ac_try_echo=$ac_try;;
28912esac
28913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914  (eval "$ac_try") 2>&5
28915  ac_status=$?
28916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917  (exit $ac_status); }; }; then
28918  result=INT${w}${limitkind}
28919else
28920  echo "$as_me: failed program was:" >&5
28921sed 's/^/| /' conftest.$ac_ext >&5
28922
28923
28924fi
28925
28926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28927              else
28928                break
28929              fi
28930            done
28931          else
28932            if test ${limitkind} = _MIN; then
28933              result=0
28934            else
28935              for w in 8 16 32 64; do
28936                if test -z "$result"; then
28937                  cat >conftest.$ac_ext <<_ACEOF
28938
28939#include <stdio.h>
28940#include <time.h>
28941#include <wchar.h>
28942
28943#include <stdint.h>
28944int verify[2 * (sizeof ($type) == sizeof (uint${w}_t)) - 1];
28945
28946_ACEOF
28947rm -f conftest.$ac_objext
28948if { (ac_try="$ac_compile"
28949case "(($ac_try" in
28950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951  *) ac_try_echo=$ac_try;;
28952esac
28953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954  (eval "$ac_compile") 2>conftest.er1
28955  ac_status=$?
28956  grep -v '^ *+' conftest.er1 >conftest.err
28957  rm -f conftest.er1
28958  cat conftest.err >&5
28959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960  (exit $ac_status); } &&
28961	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28962  { (case "(($ac_try" in
28963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964  *) ac_try_echo=$ac_try;;
28965esac
28966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967  (eval "$ac_try") 2>&5
28968  ac_status=$?
28969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970  (exit $ac_status); }; } &&
28971	 { ac_try='test -s conftest.$ac_objext'
28972  { (case "(($ac_try" in
28973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974  *) ac_try_echo=$ac_try;;
28975esac
28976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977  (eval "$ac_try") 2>&5
28978  ac_status=$?
28979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980  (exit $ac_status); }; }; then
28981  result=UINT${w}${limitkind}
28982else
28983  echo "$as_me: failed program was:" >&5
28984sed 's/^/| /' conftest.$ac_ext >&5
28985
28986
28987fi
28988
28989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28990                else
28991                  break
28992                fi
28993              done
28994            fi
28995          fi
28996          if test -z "$result"; then
28997            result=no
28998          fi
28999          eval gl_cv_stdint_$bound=\$result
29000
29001fi
29002rm -f conftest*
29003
29004fi
29005ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
29006	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29007echo "${ECHO_T}$ac_res" >&6; }
29008    eval result=\$gl_cv_stdint_$bound
29009    if test "$result" != yes && test "$result" != no; then
29010
29011cat >>confdefs.h <<_ACEOF
29012#define $bound $result
29013_ACEOF
29014
29015    fi
29016  done
29017
29018    STDINT_H=''
29019  else
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051  for gltype in int8_t int16_t int32_t int64_t \
29052       uint8_t uint16_t uint32_t uint64_t \
29053       int_least8_t int_least16_t int_least32_t int_least64_t \
29054       uint_least8_t uint_least16_t uint_least32_t uint_least64_t \
29055       int_fast8_t int_fast16_t int_fast32_t int_fast64_t \
29056       uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t \
29057       intptr_t uintptr_t \
29058       intmax_t uintmax_t ; do
29059    if eval test \$gl_cv_type_${gltype} = yes; then
29060      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29061echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
29062if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29063  echo $ECHO_N "(cached) $ECHO_C" >&6
29064else
29065  if test "$cross_compiling" = yes; then
29066  # Depending upon the size, compute the lo and hi bounds.
29067cat >conftest.$ac_ext <<_ACEOF
29068/* confdefs.h.  */
29069_ACEOF
29070cat confdefs.h >>conftest.$ac_ext
29071cat >>conftest.$ac_ext <<_ACEOF
29072/* end confdefs.h.  */
29073$other_includes
29074#include <limits.h>
29075int
29076main ()
29077{
29078static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29079test_array [0] = 0
29080
29081  ;
29082  return 0;
29083}
29084_ACEOF
29085rm -f conftest.$ac_objext
29086if { (ac_try="$ac_compile"
29087case "(($ac_try" in
29088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089  *) ac_try_echo=$ac_try;;
29090esac
29091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092  (eval "$ac_compile") 2>conftest.er1
29093  ac_status=$?
29094  grep -v '^ *+' conftest.er1 >conftest.err
29095  rm -f conftest.er1
29096  cat conftest.err >&5
29097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098  (exit $ac_status); } &&
29099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29100  { (case "(($ac_try" in
29101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102  *) ac_try_echo=$ac_try;;
29103esac
29104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105  (eval "$ac_try") 2>&5
29106  ac_status=$?
29107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108  (exit $ac_status); }; } &&
29109	 { ac_try='test -s conftest.$ac_objext'
29110  { (case "(($ac_try" in
29111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112  *) ac_try_echo=$ac_try;;
29113esac
29114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115  (eval "$ac_try") 2>&5
29116  ac_status=$?
29117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118  (exit $ac_status); }; }; then
29119  ac_lo=0 ac_mid=0
29120  while :; do
29121    cat >conftest.$ac_ext <<_ACEOF
29122/* confdefs.h.  */
29123_ACEOF
29124cat confdefs.h >>conftest.$ac_ext
29125cat >>conftest.$ac_ext <<_ACEOF
29126/* end confdefs.h.  */
29127$other_includes
29128#include <limits.h>
29129int
29130main ()
29131{
29132static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29133test_array [0] = 0
29134
29135  ;
29136  return 0;
29137}
29138_ACEOF
29139rm -f conftest.$ac_objext
29140if { (ac_try="$ac_compile"
29141case "(($ac_try" in
29142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143  *) ac_try_echo=$ac_try;;
29144esac
29145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146  (eval "$ac_compile") 2>conftest.er1
29147  ac_status=$?
29148  grep -v '^ *+' conftest.er1 >conftest.err
29149  rm -f conftest.er1
29150  cat conftest.err >&5
29151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152  (exit $ac_status); } &&
29153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29154  { (case "(($ac_try" in
29155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156  *) ac_try_echo=$ac_try;;
29157esac
29158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159  (eval "$ac_try") 2>&5
29160  ac_status=$?
29161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162  (exit $ac_status); }; } &&
29163	 { ac_try='test -s conftest.$ac_objext'
29164  { (case "(($ac_try" in
29165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166  *) ac_try_echo=$ac_try;;
29167esac
29168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169  (eval "$ac_try") 2>&5
29170  ac_status=$?
29171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172  (exit $ac_status); }; }; then
29173  ac_hi=$ac_mid; break
29174else
29175  echo "$as_me: failed program was:" >&5
29176sed 's/^/| /' conftest.$ac_ext >&5
29177
29178	ac_lo=`expr $ac_mid + 1`
29179			if test $ac_lo -le $ac_mid; then
29180			  ac_lo= ac_hi=
29181			  break
29182			fi
29183			ac_mid=`expr 2 '*' $ac_mid + 1`
29184fi
29185
29186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29187  done
29188else
29189  echo "$as_me: failed program was:" >&5
29190sed 's/^/| /' conftest.$ac_ext >&5
29191
29192	cat >conftest.$ac_ext <<_ACEOF
29193/* confdefs.h.  */
29194_ACEOF
29195cat confdefs.h >>conftest.$ac_ext
29196cat >>conftest.$ac_ext <<_ACEOF
29197/* end confdefs.h.  */
29198$other_includes
29199#include <limits.h>
29200int
29201main ()
29202{
29203static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29204test_array [0] = 0
29205
29206  ;
29207  return 0;
29208}
29209_ACEOF
29210rm -f conftest.$ac_objext
29211if { (ac_try="$ac_compile"
29212case "(($ac_try" in
29213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214  *) ac_try_echo=$ac_try;;
29215esac
29216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217  (eval "$ac_compile") 2>conftest.er1
29218  ac_status=$?
29219  grep -v '^ *+' conftest.er1 >conftest.err
29220  rm -f conftest.er1
29221  cat conftest.err >&5
29222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223  (exit $ac_status); } &&
29224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29225  { (case "(($ac_try" in
29226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227  *) ac_try_echo=$ac_try;;
29228esac
29229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230  (eval "$ac_try") 2>&5
29231  ac_status=$?
29232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233  (exit $ac_status); }; } &&
29234	 { ac_try='test -s conftest.$ac_objext'
29235  { (case "(($ac_try" in
29236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29237  *) ac_try_echo=$ac_try;;
29238esac
29239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29240  (eval "$ac_try") 2>&5
29241  ac_status=$?
29242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243  (exit $ac_status); }; }; then
29244  ac_hi=-1 ac_mid=-1
29245  while :; do
29246    cat >conftest.$ac_ext <<_ACEOF
29247/* confdefs.h.  */
29248_ACEOF
29249cat confdefs.h >>conftest.$ac_ext
29250cat >>conftest.$ac_ext <<_ACEOF
29251/* end confdefs.h.  */
29252$other_includes
29253#include <limits.h>
29254int
29255main ()
29256{
29257static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29258test_array [0] = 0
29259
29260  ;
29261  return 0;
29262}
29263_ACEOF
29264rm -f conftest.$ac_objext
29265if { (ac_try="$ac_compile"
29266case "(($ac_try" in
29267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268  *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271  (eval "$ac_compile") 2>conftest.er1
29272  ac_status=$?
29273  grep -v '^ *+' conftest.er1 >conftest.err
29274  rm -f conftest.er1
29275  cat conftest.err >&5
29276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277  (exit $ac_status); } &&
29278	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29279  { (case "(($ac_try" in
29280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281  *) ac_try_echo=$ac_try;;
29282esac
29283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284  (eval "$ac_try") 2>&5
29285  ac_status=$?
29286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287  (exit $ac_status); }; } &&
29288	 { ac_try='test -s conftest.$ac_objext'
29289  { (case "(($ac_try" in
29290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291  *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294  (eval "$ac_try") 2>&5
29295  ac_status=$?
29296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297  (exit $ac_status); }; }; then
29298  ac_lo=$ac_mid; break
29299else
29300  echo "$as_me: failed program was:" >&5
29301sed 's/^/| /' conftest.$ac_ext >&5
29302
29303	ac_hi=`expr '(' $ac_mid ')' - 1`
29304			if test $ac_mid -le $ac_hi; then
29305			  ac_lo= ac_hi=
29306			  break
29307			fi
29308			ac_mid=`expr 2 '*' $ac_mid`
29309fi
29310
29311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29312  done
29313else
29314  echo "$as_me: failed program was:" >&5
29315sed 's/^/| /' conftest.$ac_ext >&5
29316
29317	ac_lo= ac_hi=
29318fi
29319
29320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29321fi
29322
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324# Binary search between lo and hi bounds.
29325while test "x$ac_lo" != "x$ac_hi"; do
29326  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29327  cat >conftest.$ac_ext <<_ACEOF
29328/* confdefs.h.  */
29329_ACEOF
29330cat confdefs.h >>conftest.$ac_ext
29331cat >>conftest.$ac_ext <<_ACEOF
29332/* end confdefs.h.  */
29333$other_includes
29334#include <limits.h>
29335int
29336main ()
29337{
29338static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29339test_array [0] = 0
29340
29341  ;
29342  return 0;
29343}
29344_ACEOF
29345rm -f conftest.$ac_objext
29346if { (ac_try="$ac_compile"
29347case "(($ac_try" in
29348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349  *) ac_try_echo=$ac_try;;
29350esac
29351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352  (eval "$ac_compile") 2>conftest.er1
29353  ac_status=$?
29354  grep -v '^ *+' conftest.er1 >conftest.err
29355  rm -f conftest.er1
29356  cat conftest.err >&5
29357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358  (exit $ac_status); } &&
29359	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29360  { (case "(($ac_try" in
29361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362  *) ac_try_echo=$ac_try;;
29363esac
29364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365  (eval "$ac_try") 2>&5
29366  ac_status=$?
29367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368  (exit $ac_status); }; } &&
29369	 { ac_try='test -s conftest.$ac_objext'
29370  { (case "(($ac_try" in
29371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29372  *) ac_try_echo=$ac_try;;
29373esac
29374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29375  (eval "$ac_try") 2>&5
29376  ac_status=$?
29377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378  (exit $ac_status); }; }; then
29379  ac_hi=$ac_mid
29380else
29381  echo "$as_me: failed program was:" >&5
29382sed 's/^/| /' conftest.$ac_ext >&5
29383
29384	ac_lo=`expr '(' $ac_mid ')' + 1`
29385fi
29386
29387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388done
29389case $ac_lo in
29390?*) result=$ac_lo;;
29391'') result=unknown ;;
29392esac
29393else
29394  cat >conftest.$ac_ext <<_ACEOF
29395/* confdefs.h.  */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h.  */
29400$other_includes
29401#include <limits.h>
29402static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29403static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29404#include <stdio.h>
29405#include <stdlib.h>
29406int
29407main ()
29408{
29409
29410  FILE *f = fopen ("conftest.val", "w");
29411  if (! f)
29412    return 1;
29413  if ((sizeof ($gltype) * CHAR_BIT) < 0)
29414    {
29415      long int i = longval ();
29416      if (i != (sizeof ($gltype) * CHAR_BIT))
29417	return 1;
29418      fprintf (f, "%ld\n", i);
29419    }
29420  else
29421    {
29422      unsigned long int i = ulongval ();
29423      if (i != (sizeof ($gltype) * CHAR_BIT))
29424	return 1;
29425      fprintf (f, "%lu\n", i);
29426    }
29427  return ferror (f) || fclose (f) != 0;
29428
29429  ;
29430  return 0;
29431}
29432_ACEOF
29433rm -f conftest$ac_exeext
29434if { (ac_try="$ac_link"
29435case "(($ac_try" in
29436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437  *) ac_try_echo=$ac_try;;
29438esac
29439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440  (eval "$ac_link") 2>&5
29441  ac_status=$?
29442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29444  { (case "(($ac_try" in
29445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446  *) ac_try_echo=$ac_try;;
29447esac
29448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449  (eval "$ac_try") 2>&5
29450  ac_status=$?
29451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452  (exit $ac_status); }; }; then
29453  result=`cat conftest.val`
29454else
29455  echo "$as_me: program exited with status $ac_status" >&5
29456echo "$as_me: failed program was:" >&5
29457sed 's/^/| /' conftest.$ac_ext >&5
29458
29459( exit $ac_status )
29460result=unknown
29461fi
29462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29463fi
29464rm -f conftest.val
29465         eval gl_cv_bitsizeof_${gltype}=\$result
29466
29467fi
29468ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
29469	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29470echo "${ECHO_T}$ac_res" >&6; }
29471      eval result=\$gl_cv_bitsizeof_${gltype}
29472    else
29473                                                result=0
29474    fi
29475    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29476    cat >>confdefs.h <<_ACEOF
29477#define BITSIZEOF_${GLTYPE} $result
29478_ACEOF
29479
29480    eval BITSIZEOF_${GLTYPE}=\$result
29481  done
29482
29483
29484
29485    gl_cv_type_unsigned_int=yes
29486    gl_cv_type_long=yes
29487    gl_cv_type_unsigned_long=yes
29488
29489
29490
29491
29492
29493  for gltype in unsigned_int long unsigned_long ; do
29494    if eval test \$gl_cv_type_${gltype} = yes; then
29495      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29496echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
29497if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29498  echo $ECHO_N "(cached) $ECHO_C" >&6
29499else
29500  if test "$cross_compiling" = yes; then
29501  # Depending upon the size, compute the lo and hi bounds.
29502cat >conftest.$ac_ext <<_ACEOF
29503/* confdefs.h.  */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h.  */
29508typedef unsigned int unsigned_int;
29509       typedef unsigned long unsigned_long;
29510#include <limits.h>
29511int
29512main ()
29513{
29514static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29515test_array [0] = 0
29516
29517  ;
29518  return 0;
29519}
29520_ACEOF
29521rm -f conftest.$ac_objext
29522if { (ac_try="$ac_compile"
29523case "(($ac_try" in
29524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525  *) ac_try_echo=$ac_try;;
29526esac
29527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528  (eval "$ac_compile") 2>conftest.er1
29529  ac_status=$?
29530  grep -v '^ *+' conftest.er1 >conftest.err
29531  rm -f conftest.er1
29532  cat conftest.err >&5
29533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534  (exit $ac_status); } &&
29535	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29536  { (case "(($ac_try" in
29537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538  *) ac_try_echo=$ac_try;;
29539esac
29540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541  (eval "$ac_try") 2>&5
29542  ac_status=$?
29543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544  (exit $ac_status); }; } &&
29545	 { ac_try='test -s conftest.$ac_objext'
29546  { (case "(($ac_try" in
29547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548  *) ac_try_echo=$ac_try;;
29549esac
29550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29551  (eval "$ac_try") 2>&5
29552  ac_status=$?
29553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554  (exit $ac_status); }; }; then
29555  ac_lo=0 ac_mid=0
29556  while :; do
29557    cat >conftest.$ac_ext <<_ACEOF
29558/* confdefs.h.  */
29559_ACEOF
29560cat confdefs.h >>conftest.$ac_ext
29561cat >>conftest.$ac_ext <<_ACEOF
29562/* end confdefs.h.  */
29563typedef unsigned int unsigned_int;
29564       typedef unsigned long unsigned_long;
29565#include <limits.h>
29566int
29567main ()
29568{
29569static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29570test_array [0] = 0
29571
29572  ;
29573  return 0;
29574}
29575_ACEOF
29576rm -f conftest.$ac_objext
29577if { (ac_try="$ac_compile"
29578case "(($ac_try" in
29579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580  *) ac_try_echo=$ac_try;;
29581esac
29582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583  (eval "$ac_compile") 2>conftest.er1
29584  ac_status=$?
29585  grep -v '^ *+' conftest.er1 >conftest.err
29586  rm -f conftest.er1
29587  cat conftest.err >&5
29588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589  (exit $ac_status); } &&
29590	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29591  { (case "(($ac_try" in
29592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593  *) ac_try_echo=$ac_try;;
29594esac
29595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596  (eval "$ac_try") 2>&5
29597  ac_status=$?
29598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599  (exit $ac_status); }; } &&
29600	 { ac_try='test -s conftest.$ac_objext'
29601  { (case "(($ac_try" in
29602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603  *) ac_try_echo=$ac_try;;
29604esac
29605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606  (eval "$ac_try") 2>&5
29607  ac_status=$?
29608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609  (exit $ac_status); }; }; then
29610  ac_hi=$ac_mid; break
29611else
29612  echo "$as_me: failed program was:" >&5
29613sed 's/^/| /' conftest.$ac_ext >&5
29614
29615	ac_lo=`expr $ac_mid + 1`
29616			if test $ac_lo -le $ac_mid; then
29617			  ac_lo= ac_hi=
29618			  break
29619			fi
29620			ac_mid=`expr 2 '*' $ac_mid + 1`
29621fi
29622
29623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29624  done
29625else
29626  echo "$as_me: failed program was:" >&5
29627sed 's/^/| /' conftest.$ac_ext >&5
29628
29629	cat >conftest.$ac_ext <<_ACEOF
29630/* confdefs.h.  */
29631_ACEOF
29632cat confdefs.h >>conftest.$ac_ext
29633cat >>conftest.$ac_ext <<_ACEOF
29634/* end confdefs.h.  */
29635typedef unsigned int unsigned_int;
29636       typedef unsigned long unsigned_long;
29637#include <limits.h>
29638int
29639main ()
29640{
29641static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29642test_array [0] = 0
29643
29644  ;
29645  return 0;
29646}
29647_ACEOF
29648rm -f conftest.$ac_objext
29649if { (ac_try="$ac_compile"
29650case "(($ac_try" in
29651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652  *) ac_try_echo=$ac_try;;
29653esac
29654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655  (eval "$ac_compile") 2>conftest.er1
29656  ac_status=$?
29657  grep -v '^ *+' conftest.er1 >conftest.err
29658  rm -f conftest.er1
29659  cat conftest.err >&5
29660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661  (exit $ac_status); } &&
29662	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29663  { (case "(($ac_try" in
29664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665  *) ac_try_echo=$ac_try;;
29666esac
29667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668  (eval "$ac_try") 2>&5
29669  ac_status=$?
29670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671  (exit $ac_status); }; } &&
29672	 { ac_try='test -s conftest.$ac_objext'
29673  { (case "(($ac_try" in
29674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675  *) ac_try_echo=$ac_try;;
29676esac
29677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678  (eval "$ac_try") 2>&5
29679  ac_status=$?
29680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681  (exit $ac_status); }; }; then
29682  ac_hi=-1 ac_mid=-1
29683  while :; do
29684    cat >conftest.$ac_ext <<_ACEOF
29685/* confdefs.h.  */
29686_ACEOF
29687cat confdefs.h >>conftest.$ac_ext
29688cat >>conftest.$ac_ext <<_ACEOF
29689/* end confdefs.h.  */
29690typedef unsigned int unsigned_int;
29691       typedef unsigned long unsigned_long;
29692#include <limits.h>
29693int
29694main ()
29695{
29696static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29697test_array [0] = 0
29698
29699  ;
29700  return 0;
29701}
29702_ACEOF
29703rm -f conftest.$ac_objext
29704if { (ac_try="$ac_compile"
29705case "(($ac_try" in
29706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707  *) ac_try_echo=$ac_try;;
29708esac
29709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710  (eval "$ac_compile") 2>conftest.er1
29711  ac_status=$?
29712  grep -v '^ *+' conftest.er1 >conftest.err
29713  rm -f conftest.er1
29714  cat conftest.err >&5
29715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716  (exit $ac_status); } &&
29717	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29718  { (case "(($ac_try" in
29719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720  *) ac_try_echo=$ac_try;;
29721esac
29722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723  (eval "$ac_try") 2>&5
29724  ac_status=$?
29725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726  (exit $ac_status); }; } &&
29727	 { ac_try='test -s conftest.$ac_objext'
29728  { (case "(($ac_try" in
29729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730  *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733  (eval "$ac_try") 2>&5
29734  ac_status=$?
29735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736  (exit $ac_status); }; }; then
29737  ac_lo=$ac_mid; break
29738else
29739  echo "$as_me: failed program was:" >&5
29740sed 's/^/| /' conftest.$ac_ext >&5
29741
29742	ac_hi=`expr '(' $ac_mid ')' - 1`
29743			if test $ac_mid -le $ac_hi; then
29744			  ac_lo= ac_hi=
29745			  break
29746			fi
29747			ac_mid=`expr 2 '*' $ac_mid`
29748fi
29749
29750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29751  done
29752else
29753  echo "$as_me: failed program was:" >&5
29754sed 's/^/| /' conftest.$ac_ext >&5
29755
29756	ac_lo= ac_hi=
29757fi
29758
29759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29760fi
29761
29762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29763# Binary search between lo and hi bounds.
29764while test "x$ac_lo" != "x$ac_hi"; do
29765  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29766  cat >conftest.$ac_ext <<_ACEOF
29767/* confdefs.h.  */
29768_ACEOF
29769cat confdefs.h >>conftest.$ac_ext
29770cat >>conftest.$ac_ext <<_ACEOF
29771/* end confdefs.h.  */
29772typedef unsigned int unsigned_int;
29773       typedef unsigned long unsigned_long;
29774#include <limits.h>
29775int
29776main ()
29777{
29778static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29779test_array [0] = 0
29780
29781  ;
29782  return 0;
29783}
29784_ACEOF
29785rm -f conftest.$ac_objext
29786if { (ac_try="$ac_compile"
29787case "(($ac_try" in
29788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789  *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792  (eval "$ac_compile") 2>conftest.er1
29793  ac_status=$?
29794  grep -v '^ *+' conftest.er1 >conftest.err
29795  rm -f conftest.er1
29796  cat conftest.err >&5
29797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798  (exit $ac_status); } &&
29799	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29800  { (case "(($ac_try" in
29801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802  *) ac_try_echo=$ac_try;;
29803esac
29804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805  (eval "$ac_try") 2>&5
29806  ac_status=$?
29807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808  (exit $ac_status); }; } &&
29809	 { ac_try='test -s conftest.$ac_objext'
29810  { (case "(($ac_try" in
29811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812  *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815  (eval "$ac_try") 2>&5
29816  ac_status=$?
29817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818  (exit $ac_status); }; }; then
29819  ac_hi=$ac_mid
29820else
29821  echo "$as_me: failed program was:" >&5
29822sed 's/^/| /' conftest.$ac_ext >&5
29823
29824	ac_lo=`expr '(' $ac_mid ')' + 1`
29825fi
29826
29827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828done
29829case $ac_lo in
29830?*) result=$ac_lo;;
29831'') result=unknown ;;
29832esac
29833else
29834  cat >conftest.$ac_ext <<_ACEOF
29835/* confdefs.h.  */
29836_ACEOF
29837cat confdefs.h >>conftest.$ac_ext
29838cat >>conftest.$ac_ext <<_ACEOF
29839/* end confdefs.h.  */
29840typedef unsigned int unsigned_int;
29841       typedef unsigned long unsigned_long;
29842#include <limits.h>
29843static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29844static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29845#include <stdio.h>
29846#include <stdlib.h>
29847int
29848main ()
29849{
29850
29851  FILE *f = fopen ("conftest.val", "w");
29852  if (! f)
29853    return 1;
29854  if ((sizeof ($gltype) * CHAR_BIT) < 0)
29855    {
29856      long int i = longval ();
29857      if (i != (sizeof ($gltype) * CHAR_BIT))
29858	return 1;
29859      fprintf (f, "%ld\n", i);
29860    }
29861  else
29862    {
29863      unsigned long int i = ulongval ();
29864      if (i != (sizeof ($gltype) * CHAR_BIT))
29865	return 1;
29866      fprintf (f, "%lu\n", i);
29867    }
29868  return ferror (f) || fclose (f) != 0;
29869
29870  ;
29871  return 0;
29872}
29873_ACEOF
29874rm -f conftest$ac_exeext
29875if { (ac_try="$ac_link"
29876case "(($ac_try" in
29877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878  *) ac_try_echo=$ac_try;;
29879esac
29880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881  (eval "$ac_link") 2>&5
29882  ac_status=$?
29883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29885  { (case "(($ac_try" in
29886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887  *) ac_try_echo=$ac_try;;
29888esac
29889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890  (eval "$ac_try") 2>&5
29891  ac_status=$?
29892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893  (exit $ac_status); }; }; then
29894  result=`cat conftest.val`
29895else
29896  echo "$as_me: program exited with status $ac_status" >&5
29897echo "$as_me: failed program was:" >&5
29898sed 's/^/| /' conftest.$ac_ext >&5
29899
29900( exit $ac_status )
29901result=unknown
29902fi
29903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29904fi
29905rm -f conftest.val
29906         eval gl_cv_bitsizeof_${gltype}=\$result
29907
29908fi
29909ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
29910	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29911echo "${ECHO_T}$ac_res" >&6; }
29912      eval result=\$gl_cv_bitsizeof_${gltype}
29913    else
29914                                                result=0
29915    fi
29916    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29917    cat >>confdefs.h <<_ACEOF
29918#define BITSIZEOF_${GLTYPE} $result
29919_ACEOF
29920
29921    eval BITSIZEOF_${GLTYPE}=\$result
29922  done
29923
29924
29925
29926    { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
29927echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
29928if test "${ac_cv_type_ptrdiff_t+set}" = set; then
29929  echo $ECHO_N "(cached) $ECHO_C" >&6
29930else
29931  cat >conftest.$ac_ext <<_ACEOF
29932/* confdefs.h.  */
29933_ACEOF
29934cat confdefs.h >>conftest.$ac_ext
29935cat >>conftest.$ac_ext <<_ACEOF
29936/* end confdefs.h.  */
29937$ac_includes_default
29938typedef ptrdiff_t ac__type_new_;
29939int
29940main ()
29941{
29942if ((ac__type_new_ *) 0)
29943  return 0;
29944if (sizeof (ac__type_new_))
29945  return 0;
29946  ;
29947  return 0;
29948}
29949_ACEOF
29950rm -f conftest.$ac_objext
29951if { (ac_try="$ac_compile"
29952case "(($ac_try" in
29953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954  *) ac_try_echo=$ac_try;;
29955esac
29956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957  (eval "$ac_compile") 2>conftest.er1
29958  ac_status=$?
29959  grep -v '^ *+' conftest.er1 >conftest.err
29960  rm -f conftest.er1
29961  cat conftest.err >&5
29962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963  (exit $ac_status); } &&
29964	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29965  { (case "(($ac_try" in
29966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967  *) ac_try_echo=$ac_try;;
29968esac
29969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970  (eval "$ac_try") 2>&5
29971  ac_status=$?
29972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973  (exit $ac_status); }; } &&
29974	 { ac_try='test -s conftest.$ac_objext'
29975  { (case "(($ac_try" in
29976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977  *) ac_try_echo=$ac_try;;
29978esac
29979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980  (eval "$ac_try") 2>&5
29981  ac_status=$?
29982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983  (exit $ac_status); }; }; then
29984  ac_cv_type_ptrdiff_t=yes
29985else
29986  echo "$as_me: failed program was:" >&5
29987sed 's/^/| /' conftest.$ac_ext >&5
29988
29989	ac_cv_type_ptrdiff_t=no
29990fi
29991
29992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993fi
29994{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
29995echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
29996if test $ac_cv_type_ptrdiff_t = yes; then
29997
29998cat >>confdefs.h <<_ACEOF
29999#define HAVE_PTRDIFF_T 1
30000_ACEOF
30001
30002
30003fi
30004
30005    gl_cv_type_ptrdiff_t=$ac_cv_type_ptrdiff_t
30006
30007    gl_cv_type_size_t=yes
30008
30009
30010
30011
30012  for gltype in ptrdiff_t size_t ; do
30013    if eval test \$gl_cv_type_${gltype} = yes; then
30014      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30015echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
30016if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30017  echo $ECHO_N "(cached) $ECHO_C" >&6
30018else
30019  if test "$cross_compiling" = yes; then
30020  # Depending upon the size, compute the lo and hi bounds.
30021cat >conftest.$ac_ext <<_ACEOF
30022/* confdefs.h.  */
30023_ACEOF
30024cat confdefs.h >>conftest.$ac_ext
30025cat >>conftest.$ac_ext <<_ACEOF
30026/* end confdefs.h.  */
30027#include <stddef.h>
30028#include <limits.h>
30029int
30030main ()
30031{
30032static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30033test_array [0] = 0
30034
30035  ;
30036  return 0;
30037}
30038_ACEOF
30039rm -f conftest.$ac_objext
30040if { (ac_try="$ac_compile"
30041case "(($ac_try" in
30042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043  *) ac_try_echo=$ac_try;;
30044esac
30045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046  (eval "$ac_compile") 2>conftest.er1
30047  ac_status=$?
30048  grep -v '^ *+' conftest.er1 >conftest.err
30049  rm -f conftest.er1
30050  cat conftest.err >&5
30051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052  (exit $ac_status); } &&
30053	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30054  { (case "(($ac_try" in
30055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056  *) ac_try_echo=$ac_try;;
30057esac
30058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059  (eval "$ac_try") 2>&5
30060  ac_status=$?
30061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062  (exit $ac_status); }; } &&
30063	 { ac_try='test -s conftest.$ac_objext'
30064  { (case "(($ac_try" in
30065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066  *) ac_try_echo=$ac_try;;
30067esac
30068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069  (eval "$ac_try") 2>&5
30070  ac_status=$?
30071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072  (exit $ac_status); }; }; then
30073  ac_lo=0 ac_mid=0
30074  while :; do
30075    cat >conftest.$ac_ext <<_ACEOF
30076/* confdefs.h.  */
30077_ACEOF
30078cat confdefs.h >>conftest.$ac_ext
30079cat >>conftest.$ac_ext <<_ACEOF
30080/* end confdefs.h.  */
30081#include <stddef.h>
30082#include <limits.h>
30083int
30084main ()
30085{
30086static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30087test_array [0] = 0
30088
30089  ;
30090  return 0;
30091}
30092_ACEOF
30093rm -f conftest.$ac_objext
30094if { (ac_try="$ac_compile"
30095case "(($ac_try" in
30096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097  *) ac_try_echo=$ac_try;;
30098esac
30099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100  (eval "$ac_compile") 2>conftest.er1
30101  ac_status=$?
30102  grep -v '^ *+' conftest.er1 >conftest.err
30103  rm -f conftest.er1
30104  cat conftest.err >&5
30105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106  (exit $ac_status); } &&
30107	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30108  { (case "(($ac_try" in
30109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110  *) ac_try_echo=$ac_try;;
30111esac
30112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113  (eval "$ac_try") 2>&5
30114  ac_status=$?
30115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116  (exit $ac_status); }; } &&
30117	 { ac_try='test -s conftest.$ac_objext'
30118  { (case "(($ac_try" in
30119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120  *) ac_try_echo=$ac_try;;
30121esac
30122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123  (eval "$ac_try") 2>&5
30124  ac_status=$?
30125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126  (exit $ac_status); }; }; then
30127  ac_hi=$ac_mid; break
30128else
30129  echo "$as_me: failed program was:" >&5
30130sed 's/^/| /' conftest.$ac_ext >&5
30131
30132	ac_lo=`expr $ac_mid + 1`
30133			if test $ac_lo -le $ac_mid; then
30134			  ac_lo= ac_hi=
30135			  break
30136			fi
30137			ac_mid=`expr 2 '*' $ac_mid + 1`
30138fi
30139
30140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30141  done
30142else
30143  echo "$as_me: failed program was:" >&5
30144sed 's/^/| /' conftest.$ac_ext >&5
30145
30146	cat >conftest.$ac_ext <<_ACEOF
30147/* confdefs.h.  */
30148_ACEOF
30149cat confdefs.h >>conftest.$ac_ext
30150cat >>conftest.$ac_ext <<_ACEOF
30151/* end confdefs.h.  */
30152#include <stddef.h>
30153#include <limits.h>
30154int
30155main ()
30156{
30157static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30158test_array [0] = 0
30159
30160  ;
30161  return 0;
30162}
30163_ACEOF
30164rm -f conftest.$ac_objext
30165if { (ac_try="$ac_compile"
30166case "(($ac_try" in
30167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30168  *) ac_try_echo=$ac_try;;
30169esac
30170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30171  (eval "$ac_compile") 2>conftest.er1
30172  ac_status=$?
30173  grep -v '^ *+' conftest.er1 >conftest.err
30174  rm -f conftest.er1
30175  cat conftest.err >&5
30176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177  (exit $ac_status); } &&
30178	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30179  { (case "(($ac_try" in
30180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181  *) ac_try_echo=$ac_try;;
30182esac
30183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184  (eval "$ac_try") 2>&5
30185  ac_status=$?
30186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187  (exit $ac_status); }; } &&
30188	 { ac_try='test -s conftest.$ac_objext'
30189  { (case "(($ac_try" in
30190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191  *) ac_try_echo=$ac_try;;
30192esac
30193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194  (eval "$ac_try") 2>&5
30195  ac_status=$?
30196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197  (exit $ac_status); }; }; then
30198  ac_hi=-1 ac_mid=-1
30199  while :; do
30200    cat >conftest.$ac_ext <<_ACEOF
30201/* confdefs.h.  */
30202_ACEOF
30203cat confdefs.h >>conftest.$ac_ext
30204cat >>conftest.$ac_ext <<_ACEOF
30205/* end confdefs.h.  */
30206#include <stddef.h>
30207#include <limits.h>
30208int
30209main ()
30210{
30211static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30212test_array [0] = 0
30213
30214  ;
30215  return 0;
30216}
30217_ACEOF
30218rm -f conftest.$ac_objext
30219if { (ac_try="$ac_compile"
30220case "(($ac_try" in
30221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222  *) ac_try_echo=$ac_try;;
30223esac
30224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225  (eval "$ac_compile") 2>conftest.er1
30226  ac_status=$?
30227  grep -v '^ *+' conftest.er1 >conftest.err
30228  rm -f conftest.er1
30229  cat conftest.err >&5
30230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231  (exit $ac_status); } &&
30232	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30233  { (case "(($ac_try" in
30234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235  *) ac_try_echo=$ac_try;;
30236esac
30237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238  (eval "$ac_try") 2>&5
30239  ac_status=$?
30240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241  (exit $ac_status); }; } &&
30242	 { ac_try='test -s conftest.$ac_objext'
30243  { (case "(($ac_try" in
30244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245  *) ac_try_echo=$ac_try;;
30246esac
30247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248  (eval "$ac_try") 2>&5
30249  ac_status=$?
30250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251  (exit $ac_status); }; }; then
30252  ac_lo=$ac_mid; break
30253else
30254  echo "$as_me: failed program was:" >&5
30255sed 's/^/| /' conftest.$ac_ext >&5
30256
30257	ac_hi=`expr '(' $ac_mid ')' - 1`
30258			if test $ac_mid -le $ac_hi; then
30259			  ac_lo= ac_hi=
30260			  break
30261			fi
30262			ac_mid=`expr 2 '*' $ac_mid`
30263fi
30264
30265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30266  done
30267else
30268  echo "$as_me: failed program was:" >&5
30269sed 's/^/| /' conftest.$ac_ext >&5
30270
30271	ac_lo= ac_hi=
30272fi
30273
30274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30275fi
30276
30277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30278# Binary search between lo and hi bounds.
30279while test "x$ac_lo" != "x$ac_hi"; do
30280  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30281  cat >conftest.$ac_ext <<_ACEOF
30282/* confdefs.h.  */
30283_ACEOF
30284cat confdefs.h >>conftest.$ac_ext
30285cat >>conftest.$ac_ext <<_ACEOF
30286/* end confdefs.h.  */
30287#include <stddef.h>
30288#include <limits.h>
30289int
30290main ()
30291{
30292static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30293test_array [0] = 0
30294
30295  ;
30296  return 0;
30297}
30298_ACEOF
30299rm -f conftest.$ac_objext
30300if { (ac_try="$ac_compile"
30301case "(($ac_try" in
30302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303  *) ac_try_echo=$ac_try;;
30304esac
30305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30306  (eval "$ac_compile") 2>conftest.er1
30307  ac_status=$?
30308  grep -v '^ *+' conftest.er1 >conftest.err
30309  rm -f conftest.er1
30310  cat conftest.err >&5
30311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312  (exit $ac_status); } &&
30313	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30314  { (case "(($ac_try" in
30315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316  *) ac_try_echo=$ac_try;;
30317esac
30318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319  (eval "$ac_try") 2>&5
30320  ac_status=$?
30321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322  (exit $ac_status); }; } &&
30323	 { ac_try='test -s conftest.$ac_objext'
30324  { (case "(($ac_try" in
30325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326  *) ac_try_echo=$ac_try;;
30327esac
30328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329  (eval "$ac_try") 2>&5
30330  ac_status=$?
30331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332  (exit $ac_status); }; }; then
30333  ac_hi=$ac_mid
30334else
30335  echo "$as_me: failed program was:" >&5
30336sed 's/^/| /' conftest.$ac_ext >&5
30337
30338	ac_lo=`expr '(' $ac_mid ')' + 1`
30339fi
30340
30341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30342done
30343case $ac_lo in
30344?*) result=$ac_lo;;
30345'') result=unknown ;;
30346esac
30347else
30348  cat >conftest.$ac_ext <<_ACEOF
30349/* confdefs.h.  */
30350_ACEOF
30351cat confdefs.h >>conftest.$ac_ext
30352cat >>conftest.$ac_ext <<_ACEOF
30353/* end confdefs.h.  */
30354#include <stddef.h>
30355#include <limits.h>
30356static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30357static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30358#include <stdio.h>
30359#include <stdlib.h>
30360int
30361main ()
30362{
30363
30364  FILE *f = fopen ("conftest.val", "w");
30365  if (! f)
30366    return 1;
30367  if ((sizeof ($gltype) * CHAR_BIT) < 0)
30368    {
30369      long int i = longval ();
30370      if (i != (sizeof ($gltype) * CHAR_BIT))
30371	return 1;
30372      fprintf (f, "%ld\n", i);
30373    }
30374  else
30375    {
30376      unsigned long int i = ulongval ();
30377      if (i != (sizeof ($gltype) * CHAR_BIT))
30378	return 1;
30379      fprintf (f, "%lu\n", i);
30380    }
30381  return ferror (f) || fclose (f) != 0;
30382
30383  ;
30384  return 0;
30385}
30386_ACEOF
30387rm -f conftest$ac_exeext
30388if { (ac_try="$ac_link"
30389case "(($ac_try" in
30390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391  *) ac_try_echo=$ac_try;;
30392esac
30393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394  (eval "$ac_link") 2>&5
30395  ac_status=$?
30396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30398  { (case "(($ac_try" in
30399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400  *) ac_try_echo=$ac_try;;
30401esac
30402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403  (eval "$ac_try") 2>&5
30404  ac_status=$?
30405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406  (exit $ac_status); }; }; then
30407  result=`cat conftest.val`
30408else
30409  echo "$as_me: program exited with status $ac_status" >&5
30410echo "$as_me: failed program was:" >&5
30411sed 's/^/| /' conftest.$ac_ext >&5
30412
30413( exit $ac_status )
30414result=unknown
30415fi
30416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30417fi
30418rm -f conftest.val
30419         eval gl_cv_bitsizeof_${gltype}=\$result
30420
30421fi
30422ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
30423	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30424echo "${ECHO_T}$ac_res" >&6; }
30425      eval result=\$gl_cv_bitsizeof_${gltype}
30426    else
30427                                                result=0
30428    fi
30429    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30430    cat >>confdefs.h <<_ACEOF
30431#define BITSIZEOF_${GLTYPE} $result
30432_ACEOF
30433
30434    eval BITSIZEOF_${GLTYPE}=\$result
30435  done
30436
30437
30438
30439  cat >conftest.$ac_ext <<_ACEOF
30440/* confdefs.h.  */
30441_ACEOF
30442cat confdefs.h >>conftest.$ac_ext
30443cat >>conftest.$ac_ext <<_ACEOF
30444/* end confdefs.h.  */
30445#include <stddef.h>
30446    extern ptrdiff_t foo;
30447    extern long foo;
30448int
30449main ()
30450{
30451
30452  ;
30453  return 0;
30454}
30455_ACEOF
30456rm -f conftest.$ac_objext
30457if { (ac_try="$ac_compile"
30458case "(($ac_try" in
30459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460  *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463  (eval "$ac_compile") 2>conftest.er1
30464  ac_status=$?
30465  grep -v '^ *+' conftest.er1 >conftest.err
30466  rm -f conftest.er1
30467  cat conftest.err >&5
30468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469  (exit $ac_status); } &&
30470	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471  { (case "(($ac_try" in
30472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473  *) ac_try_echo=$ac_try;;
30474esac
30475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476  (eval "$ac_try") 2>&5
30477  ac_status=$?
30478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479  (exit $ac_status); }; } &&
30480	 { ac_try='test -s conftest.$ac_objext'
30481  { (case "(($ac_try" in
30482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483  *) ac_try_echo=$ac_try;;
30484esac
30485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486  (eval "$ac_try") 2>&5
30487  ac_status=$?
30488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489  (exit $ac_status); }; }; then
30490  SAME_TYPE_PTRDIFF_T_LONG=1
30491else
30492  echo "$as_me: failed program was:" >&5
30493sed 's/^/| /' conftest.$ac_ext >&5
30494
30495	SAME_TYPE_PTRDIFF_T_LONG=0
30496fi
30497
30498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30499
30500
30501
30502  cat >conftest.$ac_ext <<_ACEOF
30503/* confdefs.h.  */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h.  */
30508#include <stddef.h>
30509    extern size_t foo;
30510    extern unsigned long foo;
30511int
30512main ()
30513{
30514
30515  ;
30516  return 0;
30517}
30518_ACEOF
30519rm -f conftest.$ac_objext
30520if { (ac_try="$ac_compile"
30521case "(($ac_try" in
30522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523  *) ac_try_echo=$ac_try;;
30524esac
30525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526  (eval "$ac_compile") 2>conftest.er1
30527  ac_status=$?
30528  grep -v '^ *+' conftest.er1 >conftest.err
30529  rm -f conftest.er1
30530  cat conftest.err >&5
30531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532  (exit $ac_status); } &&
30533	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534  { (case "(($ac_try" in
30535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536  *) ac_try_echo=$ac_try;;
30537esac
30538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539  (eval "$ac_try") 2>&5
30540  ac_status=$?
30541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542  (exit $ac_status); }; } &&
30543	 { ac_try='test -s conftest.$ac_objext'
30544  { (case "(($ac_try" in
30545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546  *) ac_try_echo=$ac_try;;
30547esac
30548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549  (eval "$ac_try") 2>&5
30550  ac_status=$?
30551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552  (exit $ac_status); }; }; then
30553  SAME_TYPE_SIZE_T_UNSIGNED_LONG=1
30554else
30555  echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
30558	SAME_TYPE_SIZE_T_UNSIGNED_LONG=0
30559fi
30560
30561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30562
30563
30564
30565    { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
30566echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
30567if test "${ac_cv_type_sig_atomic_t+set}" = set; then
30568  echo $ECHO_N "(cached) $ECHO_C" >&6
30569else
30570  cat >conftest.$ac_ext <<_ACEOF
30571/* confdefs.h.  */
30572_ACEOF
30573cat confdefs.h >>conftest.$ac_ext
30574cat >>conftest.$ac_ext <<_ACEOF
30575/* end confdefs.h.  */
30576#include <signal.h>
30577
30578typedef sig_atomic_t ac__type_new_;
30579int
30580main ()
30581{
30582if ((ac__type_new_ *) 0)
30583  return 0;
30584if (sizeof (ac__type_new_))
30585  return 0;
30586  ;
30587  return 0;
30588}
30589_ACEOF
30590rm -f conftest.$ac_objext
30591if { (ac_try="$ac_compile"
30592case "(($ac_try" in
30593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594  *) ac_try_echo=$ac_try;;
30595esac
30596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597  (eval "$ac_compile") 2>conftest.er1
30598  ac_status=$?
30599  grep -v '^ *+' conftest.er1 >conftest.err
30600  rm -f conftest.er1
30601  cat conftest.err >&5
30602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603  (exit $ac_status); } &&
30604	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30605  { (case "(($ac_try" in
30606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607  *) ac_try_echo=$ac_try;;
30608esac
30609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610  (eval "$ac_try") 2>&5
30611  ac_status=$?
30612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613  (exit $ac_status); }; } &&
30614	 { ac_try='test -s conftest.$ac_objext'
30615  { (case "(($ac_try" in
30616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617  *) ac_try_echo=$ac_try;;
30618esac
30619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620  (eval "$ac_try") 2>&5
30621  ac_status=$?
30622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623  (exit $ac_status); }; }; then
30624  ac_cv_type_sig_atomic_t=yes
30625else
30626  echo "$as_me: failed program was:" >&5
30627sed 's/^/| /' conftest.$ac_ext >&5
30628
30629	ac_cv_type_sig_atomic_t=no
30630fi
30631
30632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30633fi
30634{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
30635echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
30636if test $ac_cv_type_sig_atomic_t = yes; then
30637
30638cat >>confdefs.h <<_ACEOF
30639#define HAVE_SIG_ATOMIC_T 1
30640_ACEOF
30641
30642
30643fi
30644
30645    gl_cv_type_sig_atomic_t=$ac_cv_type_sig_atomic_t
30646
30647
30648
30649  for gltype in sig_atomic_t ; do
30650    if eval test \$gl_cv_type_${gltype} = yes; then
30651      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30652echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
30653if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30654  echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656  if test "$cross_compiling" = yes; then
30657  # Depending upon the size, compute the lo and hi bounds.
30658cat >conftest.$ac_ext <<_ACEOF
30659/* confdefs.h.  */
30660_ACEOF
30661cat confdefs.h >>conftest.$ac_ext
30662cat >>conftest.$ac_ext <<_ACEOF
30663/* end confdefs.h.  */
30664#include <signal.h>
30665#include <limits.h>
30666int
30667main ()
30668{
30669static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30670test_array [0] = 0
30671
30672  ;
30673  return 0;
30674}
30675_ACEOF
30676rm -f conftest.$ac_objext
30677if { (ac_try="$ac_compile"
30678case "(($ac_try" in
30679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680  *) ac_try_echo=$ac_try;;
30681esac
30682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683  (eval "$ac_compile") 2>conftest.er1
30684  ac_status=$?
30685  grep -v '^ *+' conftest.er1 >conftest.err
30686  rm -f conftest.er1
30687  cat conftest.err >&5
30688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689  (exit $ac_status); } &&
30690	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30691  { (case "(($ac_try" in
30692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693  *) ac_try_echo=$ac_try;;
30694esac
30695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696  (eval "$ac_try") 2>&5
30697  ac_status=$?
30698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699  (exit $ac_status); }; } &&
30700	 { ac_try='test -s conftest.$ac_objext'
30701  { (case "(($ac_try" in
30702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703  *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706  (eval "$ac_try") 2>&5
30707  ac_status=$?
30708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709  (exit $ac_status); }; }; then
30710  ac_lo=0 ac_mid=0
30711  while :; do
30712    cat >conftest.$ac_ext <<_ACEOF
30713/* confdefs.h.  */
30714_ACEOF
30715cat confdefs.h >>conftest.$ac_ext
30716cat >>conftest.$ac_ext <<_ACEOF
30717/* end confdefs.h.  */
30718#include <signal.h>
30719#include <limits.h>
30720int
30721main ()
30722{
30723static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30724test_array [0] = 0
30725
30726  ;
30727  return 0;
30728}
30729_ACEOF
30730rm -f conftest.$ac_objext
30731if { (ac_try="$ac_compile"
30732case "(($ac_try" in
30733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734  *) ac_try_echo=$ac_try;;
30735esac
30736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737  (eval "$ac_compile") 2>conftest.er1
30738  ac_status=$?
30739  grep -v '^ *+' conftest.er1 >conftest.err
30740  rm -f conftest.er1
30741  cat conftest.err >&5
30742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743  (exit $ac_status); } &&
30744	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30745  { (case "(($ac_try" in
30746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30747  *) ac_try_echo=$ac_try;;
30748esac
30749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30750  (eval "$ac_try") 2>&5
30751  ac_status=$?
30752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753  (exit $ac_status); }; } &&
30754	 { ac_try='test -s conftest.$ac_objext'
30755  { (case "(($ac_try" in
30756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757  *) ac_try_echo=$ac_try;;
30758esac
30759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760  (eval "$ac_try") 2>&5
30761  ac_status=$?
30762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763  (exit $ac_status); }; }; then
30764  ac_hi=$ac_mid; break
30765else
30766  echo "$as_me: failed program was:" >&5
30767sed 's/^/| /' conftest.$ac_ext >&5
30768
30769	ac_lo=`expr $ac_mid + 1`
30770			if test $ac_lo -le $ac_mid; then
30771			  ac_lo= ac_hi=
30772			  break
30773			fi
30774			ac_mid=`expr 2 '*' $ac_mid + 1`
30775fi
30776
30777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30778  done
30779else
30780  echo "$as_me: failed program was:" >&5
30781sed 's/^/| /' conftest.$ac_ext >&5
30782
30783	cat >conftest.$ac_ext <<_ACEOF
30784/* confdefs.h.  */
30785_ACEOF
30786cat confdefs.h >>conftest.$ac_ext
30787cat >>conftest.$ac_ext <<_ACEOF
30788/* end confdefs.h.  */
30789#include <signal.h>
30790#include <limits.h>
30791int
30792main ()
30793{
30794static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30795test_array [0] = 0
30796
30797  ;
30798  return 0;
30799}
30800_ACEOF
30801rm -f conftest.$ac_objext
30802if { (ac_try="$ac_compile"
30803case "(($ac_try" in
30804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805  *) ac_try_echo=$ac_try;;
30806esac
30807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808  (eval "$ac_compile") 2>conftest.er1
30809  ac_status=$?
30810  grep -v '^ *+' conftest.er1 >conftest.err
30811  rm -f conftest.er1
30812  cat conftest.err >&5
30813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814  (exit $ac_status); } &&
30815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30816  { (case "(($ac_try" in
30817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818  *) ac_try_echo=$ac_try;;
30819esac
30820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821  (eval "$ac_try") 2>&5
30822  ac_status=$?
30823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824  (exit $ac_status); }; } &&
30825	 { ac_try='test -s conftest.$ac_objext'
30826  { (case "(($ac_try" in
30827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828  *) ac_try_echo=$ac_try;;
30829esac
30830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831  (eval "$ac_try") 2>&5
30832  ac_status=$?
30833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834  (exit $ac_status); }; }; then
30835  ac_hi=-1 ac_mid=-1
30836  while :; do
30837    cat >conftest.$ac_ext <<_ACEOF
30838/* confdefs.h.  */
30839_ACEOF
30840cat confdefs.h >>conftest.$ac_ext
30841cat >>conftest.$ac_ext <<_ACEOF
30842/* end confdefs.h.  */
30843#include <signal.h>
30844#include <limits.h>
30845int
30846main ()
30847{
30848static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30849test_array [0] = 0
30850
30851  ;
30852  return 0;
30853}
30854_ACEOF
30855rm -f conftest.$ac_objext
30856if { (ac_try="$ac_compile"
30857case "(($ac_try" in
30858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859  *) ac_try_echo=$ac_try;;
30860esac
30861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862  (eval "$ac_compile") 2>conftest.er1
30863  ac_status=$?
30864  grep -v '^ *+' conftest.er1 >conftest.err
30865  rm -f conftest.er1
30866  cat conftest.err >&5
30867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868  (exit $ac_status); } &&
30869	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870  { (case "(($ac_try" in
30871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872  *) ac_try_echo=$ac_try;;
30873esac
30874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875  (eval "$ac_try") 2>&5
30876  ac_status=$?
30877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878  (exit $ac_status); }; } &&
30879	 { ac_try='test -s conftest.$ac_objext'
30880  { (case "(($ac_try" in
30881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882  *) ac_try_echo=$ac_try;;
30883esac
30884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885  (eval "$ac_try") 2>&5
30886  ac_status=$?
30887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888  (exit $ac_status); }; }; then
30889  ac_lo=$ac_mid; break
30890else
30891  echo "$as_me: failed program was:" >&5
30892sed 's/^/| /' conftest.$ac_ext >&5
30893
30894	ac_hi=`expr '(' $ac_mid ')' - 1`
30895			if test $ac_mid -le $ac_hi; then
30896			  ac_lo= ac_hi=
30897			  break
30898			fi
30899			ac_mid=`expr 2 '*' $ac_mid`
30900fi
30901
30902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903  done
30904else
30905  echo "$as_me: failed program was:" >&5
30906sed 's/^/| /' conftest.$ac_ext >&5
30907
30908	ac_lo= ac_hi=
30909fi
30910
30911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912fi
30913
30914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30915# Binary search between lo and hi bounds.
30916while test "x$ac_lo" != "x$ac_hi"; do
30917  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30918  cat >conftest.$ac_ext <<_ACEOF
30919/* confdefs.h.  */
30920_ACEOF
30921cat confdefs.h >>conftest.$ac_ext
30922cat >>conftest.$ac_ext <<_ACEOF
30923/* end confdefs.h.  */
30924#include <signal.h>
30925#include <limits.h>
30926int
30927main ()
30928{
30929static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30930test_array [0] = 0
30931
30932  ;
30933  return 0;
30934}
30935_ACEOF
30936rm -f conftest.$ac_objext
30937if { (ac_try="$ac_compile"
30938case "(($ac_try" in
30939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940  *) ac_try_echo=$ac_try;;
30941esac
30942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943  (eval "$ac_compile") 2>conftest.er1
30944  ac_status=$?
30945  grep -v '^ *+' conftest.er1 >conftest.err
30946  rm -f conftest.er1
30947  cat conftest.err >&5
30948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949  (exit $ac_status); } &&
30950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30951  { (case "(($ac_try" in
30952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953  *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956  (eval "$ac_try") 2>&5
30957  ac_status=$?
30958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959  (exit $ac_status); }; } &&
30960	 { ac_try='test -s conftest.$ac_objext'
30961  { (case "(($ac_try" in
30962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963  *) ac_try_echo=$ac_try;;
30964esac
30965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966  (eval "$ac_try") 2>&5
30967  ac_status=$?
30968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969  (exit $ac_status); }; }; then
30970  ac_hi=$ac_mid
30971else
30972  echo "$as_me: failed program was:" >&5
30973sed 's/^/| /' conftest.$ac_ext >&5
30974
30975	ac_lo=`expr '(' $ac_mid ')' + 1`
30976fi
30977
30978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979done
30980case $ac_lo in
30981?*) result=$ac_lo;;
30982'') result=unknown ;;
30983esac
30984else
30985  cat >conftest.$ac_ext <<_ACEOF
30986/* confdefs.h.  */
30987_ACEOF
30988cat confdefs.h >>conftest.$ac_ext
30989cat >>conftest.$ac_ext <<_ACEOF
30990/* end confdefs.h.  */
30991#include <signal.h>
30992#include <limits.h>
30993static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30994static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30995#include <stdio.h>
30996#include <stdlib.h>
30997int
30998main ()
30999{
31000
31001  FILE *f = fopen ("conftest.val", "w");
31002  if (! f)
31003    return 1;
31004  if ((sizeof ($gltype) * CHAR_BIT) < 0)
31005    {
31006      long int i = longval ();
31007      if (i != (sizeof ($gltype) * CHAR_BIT))
31008	return 1;
31009      fprintf (f, "%ld\n", i);
31010    }
31011  else
31012    {
31013      unsigned long int i = ulongval ();
31014      if (i != (sizeof ($gltype) * CHAR_BIT))
31015	return 1;
31016      fprintf (f, "%lu\n", i);
31017    }
31018  return ferror (f) || fclose (f) != 0;
31019
31020  ;
31021  return 0;
31022}
31023_ACEOF
31024rm -f conftest$ac_exeext
31025if { (ac_try="$ac_link"
31026case "(($ac_try" in
31027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028  *) ac_try_echo=$ac_try;;
31029esac
31030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031  (eval "$ac_link") 2>&5
31032  ac_status=$?
31033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31035  { (case "(($ac_try" in
31036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037  *) ac_try_echo=$ac_try;;
31038esac
31039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040  (eval "$ac_try") 2>&5
31041  ac_status=$?
31042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043  (exit $ac_status); }; }; then
31044  result=`cat conftest.val`
31045else
31046  echo "$as_me: program exited with status $ac_status" >&5
31047echo "$as_me: failed program was:" >&5
31048sed 's/^/| /' conftest.$ac_ext >&5
31049
31050( exit $ac_status )
31051result=unknown
31052fi
31053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31054fi
31055rm -f conftest.val
31056         eval gl_cv_bitsizeof_${gltype}=\$result
31057
31058fi
31059ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
31060	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31061echo "${ECHO_T}$ac_res" >&6; }
31062      eval result=\$gl_cv_bitsizeof_${gltype}
31063    else
31064                                                result=0
31065    fi
31066    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31067    cat >>confdefs.h <<_ACEOF
31068#define BITSIZEOF_${GLTYPE} $result
31069_ACEOF
31070
31071    eval BITSIZEOF_${GLTYPE}=\$result
31072  done
31073
31074
31075
31076
31077
31078  for gltype in sig_atomic_t ; do
31079    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
31080echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
31081if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
31082  echo $ECHO_N "(cached) $ECHO_C" >&6
31083else
31084  cat >conftest.$ac_ext <<_ACEOF
31085/* confdefs.h.  */
31086_ACEOF
31087cat confdefs.h >>conftest.$ac_ext
31088cat >>conftest.$ac_ext <<_ACEOF
31089/* end confdefs.h.  */
31090#include <signal.h>
31091            int verify[2 * ((sig_atomic_t) -1 < (sig_atomic_t) 0) - 1];
31092
31093int
31094main ()
31095{
31096
31097  ;
31098  return 0;
31099}
31100_ACEOF
31101rm -f conftest.$ac_objext
31102if { (ac_try="$ac_compile"
31103case "(($ac_try" in
31104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105  *) ac_try_echo=$ac_try;;
31106esac
31107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108  (eval "$ac_compile") 2>conftest.er1
31109  ac_status=$?
31110  grep -v '^ *+' conftest.er1 >conftest.err
31111  rm -f conftest.er1
31112  cat conftest.err >&5
31113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114  (exit $ac_status); } &&
31115	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31116  { (case "(($ac_try" in
31117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118  *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121  (eval "$ac_try") 2>&5
31122  ac_status=$?
31123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124  (exit $ac_status); }; } &&
31125	 { ac_try='test -s conftest.$ac_objext'
31126  { (case "(($ac_try" in
31127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128  *) ac_try_echo=$ac_try;;
31129esac
31130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31131  (eval "$ac_try") 2>&5
31132  ac_status=$?
31133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134  (exit $ac_status); }; }; then
31135  result=yes
31136else
31137  echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140	result=no
31141fi
31142
31143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144       eval gl_cv_type_${gltype}_signed=\$result
31145
31146fi
31147ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
31148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31149echo "${ECHO_T}$ac_res" >&6; }
31150    eval result=\$gl_cv_type_${gltype}_signed
31151    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31152    if test "$result" = yes; then
31153      cat >>confdefs.h <<_ACEOF
31154#define HAVE_SIGNED_${GLTYPE} 1
31155_ACEOF
31156
31157      eval HAVE_SIGNED_${GLTYPE}=1
31158    else
31159      eval HAVE_SIGNED_${GLTYPE}=0
31160    fi
31161  done
31162
31163
31164    if test $HAVE_SIGNED_SIG_ATOMIC_T = 1; then
31165
31166  cat >conftest.$ac_ext <<_ACEOF
31167/* confdefs.h.  */
31168_ACEOF
31169cat confdefs.h >>conftest.$ac_ext
31170cat >>conftest.$ac_ext <<_ACEOF
31171/* end confdefs.h.  */
31172#include <signal.h>
31173    extern sig_atomic_t foo;
31174    extern long foo;
31175int
31176main ()
31177{
31178
31179  ;
31180  return 0;
31181}
31182_ACEOF
31183rm -f conftest.$ac_objext
31184if { (ac_try="$ac_compile"
31185case "(($ac_try" in
31186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187  *) ac_try_echo=$ac_try;;
31188esac
31189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31190  (eval "$ac_compile") 2>conftest.er1
31191  ac_status=$?
31192  grep -v '^ *+' conftest.er1 >conftest.err
31193  rm -f conftest.er1
31194  cat conftest.err >&5
31195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196  (exit $ac_status); } &&
31197	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31198  { (case "(($ac_try" in
31199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200  *) ac_try_echo=$ac_try;;
31201esac
31202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203  (eval "$ac_try") 2>&5
31204  ac_status=$?
31205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206  (exit $ac_status); }; } &&
31207	 { ac_try='test -s conftest.$ac_objext'
31208  { (case "(($ac_try" in
31209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210  *) ac_try_echo=$ac_try;;
31211esac
31212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213  (eval "$ac_try") 2>&5
31214  ac_status=$?
31215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216  (exit $ac_status); }; }; then
31217  SAME_TYPE_SIG_ATOMIC_T_LONG=1
31218else
31219  echo "$as_me: failed program was:" >&5
31220sed 's/^/| /' conftest.$ac_ext >&5
31221
31222	SAME_TYPE_SIG_ATOMIC_T_LONG=0
31223fi
31224
31225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31226
31227
31228    else
31229
31230  cat >conftest.$ac_ext <<_ACEOF
31231/* confdefs.h.  */
31232_ACEOF
31233cat confdefs.h >>conftest.$ac_ext
31234cat >>conftest.$ac_ext <<_ACEOF
31235/* end confdefs.h.  */
31236#include <signal.h>
31237    extern sig_atomic_t foo;
31238    extern unsigned long foo;
31239int
31240main ()
31241{
31242
31243  ;
31244  return 0;
31245}
31246_ACEOF
31247rm -f conftest.$ac_objext
31248if { (ac_try="$ac_compile"
31249case "(($ac_try" in
31250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251  *) ac_try_echo=$ac_try;;
31252esac
31253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254  (eval "$ac_compile") 2>conftest.er1
31255  ac_status=$?
31256  grep -v '^ *+' conftest.er1 >conftest.err
31257  rm -f conftest.er1
31258  cat conftest.err >&5
31259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260  (exit $ac_status); } &&
31261	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31262  { (case "(($ac_try" in
31263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264  *) ac_try_echo=$ac_try;;
31265esac
31266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267  (eval "$ac_try") 2>&5
31268  ac_status=$?
31269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270  (exit $ac_status); }; } &&
31271	 { ac_try='test -s conftest.$ac_objext'
31272  { (case "(($ac_try" in
31273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274  *) ac_try_echo=$ac_try;;
31275esac
31276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277  (eval "$ac_try") 2>&5
31278  ac_status=$?
31279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280  (exit $ac_status); }; }; then
31281  SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG=1
31282else
31283  echo "$as_me: failed program was:" >&5
31284sed 's/^/| /' conftest.$ac_ext >&5
31285
31286	SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG=0
31287fi
31288
31289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31290
31291
31292    fi
31293
31294
31295    gl_cv_type_wchar_t=$gt_cv_c_wchar_t
31296
31297
31298
31299  for gltype in wchar_t ; do
31300    if eval test \$gl_cv_type_${gltype} = yes; then
31301      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
31302echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
31303if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
31304  echo $ECHO_N "(cached) $ECHO_C" >&6
31305else
31306  if test "$cross_compiling" = yes; then
31307  # Depending upon the size, compute the lo and hi bounds.
31308cat >conftest.$ac_ext <<_ACEOF
31309/* confdefs.h.  */
31310_ACEOF
31311cat confdefs.h >>conftest.$ac_ext
31312cat >>conftest.$ac_ext <<_ACEOF
31313/* end confdefs.h.  */
31314#include <stddef.h>
31315#include <limits.h>
31316int
31317main ()
31318{
31319static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
31320test_array [0] = 0
31321
31322  ;
31323  return 0;
31324}
31325_ACEOF
31326rm -f conftest.$ac_objext
31327if { (ac_try="$ac_compile"
31328case "(($ac_try" in
31329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330  *) ac_try_echo=$ac_try;;
31331esac
31332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333  (eval "$ac_compile") 2>conftest.er1
31334  ac_status=$?
31335  grep -v '^ *+' conftest.er1 >conftest.err
31336  rm -f conftest.er1
31337  cat conftest.err >&5
31338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339  (exit $ac_status); } &&
31340	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31341  { (case "(($ac_try" in
31342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343  *) ac_try_echo=$ac_try;;
31344esac
31345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346  (eval "$ac_try") 2>&5
31347  ac_status=$?
31348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349  (exit $ac_status); }; } &&
31350	 { ac_try='test -s conftest.$ac_objext'
31351  { (case "(($ac_try" in
31352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353  *) ac_try_echo=$ac_try;;
31354esac
31355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356  (eval "$ac_try") 2>&5
31357  ac_status=$?
31358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359  (exit $ac_status); }; }; then
31360  ac_lo=0 ac_mid=0
31361  while :; do
31362    cat >conftest.$ac_ext <<_ACEOF
31363/* confdefs.h.  */
31364_ACEOF
31365cat confdefs.h >>conftest.$ac_ext
31366cat >>conftest.$ac_ext <<_ACEOF
31367/* end confdefs.h.  */
31368#include <stddef.h>
31369#include <limits.h>
31370int
31371main ()
31372{
31373static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
31374test_array [0] = 0
31375
31376  ;
31377  return 0;
31378}
31379_ACEOF
31380rm -f conftest.$ac_objext
31381if { (ac_try="$ac_compile"
31382case "(($ac_try" in
31383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384  *) ac_try_echo=$ac_try;;
31385esac
31386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387  (eval "$ac_compile") 2>conftest.er1
31388  ac_status=$?
31389  grep -v '^ *+' conftest.er1 >conftest.err
31390  rm -f conftest.er1
31391  cat conftest.err >&5
31392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393  (exit $ac_status); } &&
31394	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31395  { (case "(($ac_try" in
31396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31397  *) ac_try_echo=$ac_try;;
31398esac
31399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31400  (eval "$ac_try") 2>&5
31401  ac_status=$?
31402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403  (exit $ac_status); }; } &&
31404	 { ac_try='test -s conftest.$ac_objext'
31405  { (case "(($ac_try" in
31406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31407  *) ac_try_echo=$ac_try;;
31408esac
31409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31410  (eval "$ac_try") 2>&5
31411  ac_status=$?
31412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413  (exit $ac_status); }; }; then
31414  ac_hi=$ac_mid; break
31415else
31416  echo "$as_me: failed program was:" >&5
31417sed 's/^/| /' conftest.$ac_ext >&5
31418
31419	ac_lo=`expr $ac_mid + 1`
31420			if test $ac_lo -le $ac_mid; then
31421			  ac_lo= ac_hi=
31422			  break
31423			fi
31424			ac_mid=`expr 2 '*' $ac_mid + 1`
31425fi
31426
31427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31428  done
31429else
31430  echo "$as_me: failed program was:" >&5
31431sed 's/^/| /' conftest.$ac_ext >&5
31432
31433	cat >conftest.$ac_ext <<_ACEOF
31434/* confdefs.h.  */
31435_ACEOF
31436cat confdefs.h >>conftest.$ac_ext
31437cat >>conftest.$ac_ext <<_ACEOF
31438/* end confdefs.h.  */
31439#include <stddef.h>
31440#include <limits.h>
31441int
31442main ()
31443{
31444static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
31445test_array [0] = 0
31446
31447  ;
31448  return 0;
31449}
31450_ACEOF
31451rm -f conftest.$ac_objext
31452if { (ac_try="$ac_compile"
31453case "(($ac_try" in
31454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455  *) ac_try_echo=$ac_try;;
31456esac
31457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458  (eval "$ac_compile") 2>conftest.er1
31459  ac_status=$?
31460  grep -v '^ *+' conftest.er1 >conftest.err
31461  rm -f conftest.er1
31462  cat conftest.err >&5
31463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464  (exit $ac_status); } &&
31465	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31466  { (case "(($ac_try" in
31467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468  *) ac_try_echo=$ac_try;;
31469esac
31470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471  (eval "$ac_try") 2>&5
31472  ac_status=$?
31473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474  (exit $ac_status); }; } &&
31475	 { ac_try='test -s conftest.$ac_objext'
31476  { (case "(($ac_try" in
31477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31478  *) ac_try_echo=$ac_try;;
31479esac
31480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481  (eval "$ac_try") 2>&5
31482  ac_status=$?
31483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484  (exit $ac_status); }; }; then
31485  ac_hi=-1 ac_mid=-1
31486  while :; do
31487    cat >conftest.$ac_ext <<_ACEOF
31488/* confdefs.h.  */
31489_ACEOF
31490cat confdefs.h >>conftest.$ac_ext
31491cat >>conftest.$ac_ext <<_ACEOF
31492/* end confdefs.h.  */
31493#include <stddef.h>
31494#include <limits.h>
31495int
31496main ()
31497{
31498static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
31499test_array [0] = 0
31500
31501  ;
31502  return 0;
31503}
31504_ACEOF
31505rm -f conftest.$ac_objext
31506if { (ac_try="$ac_compile"
31507case "(($ac_try" in
31508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509  *) ac_try_echo=$ac_try;;
31510esac
31511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512  (eval "$ac_compile") 2>conftest.er1
31513  ac_status=$?
31514  grep -v '^ *+' conftest.er1 >conftest.err
31515  rm -f conftest.er1
31516  cat conftest.err >&5
31517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518  (exit $ac_status); } &&
31519	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31520  { (case "(($ac_try" in
31521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522  *) ac_try_echo=$ac_try;;
31523esac
31524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525  (eval "$ac_try") 2>&5
31526  ac_status=$?
31527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528  (exit $ac_status); }; } &&
31529	 { ac_try='test -s conftest.$ac_objext'
31530  { (case "(($ac_try" in
31531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532  *) ac_try_echo=$ac_try;;
31533esac
31534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535  (eval "$ac_try") 2>&5
31536  ac_status=$?
31537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538  (exit $ac_status); }; }; then
31539  ac_lo=$ac_mid; break
31540else
31541  echo "$as_me: failed program was:" >&5
31542sed 's/^/| /' conftest.$ac_ext >&5
31543
31544	ac_hi=`expr '(' $ac_mid ')' - 1`
31545			if test $ac_mid -le $ac_hi; then
31546			  ac_lo= ac_hi=
31547			  break
31548			fi
31549			ac_mid=`expr 2 '*' $ac_mid`
31550fi
31551
31552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31553  done
31554else
31555  echo "$as_me: failed program was:" >&5
31556sed 's/^/| /' conftest.$ac_ext >&5
31557
31558	ac_lo= ac_hi=
31559fi
31560
31561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31562fi
31563
31564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31565# Binary search between lo and hi bounds.
31566while test "x$ac_lo" != "x$ac_hi"; do
31567  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31568  cat >conftest.$ac_ext <<_ACEOF
31569/* confdefs.h.  */
31570_ACEOF
31571cat confdefs.h >>conftest.$ac_ext
31572cat >>conftest.$ac_ext <<_ACEOF
31573/* end confdefs.h.  */
31574#include <stddef.h>
31575#include <limits.h>
31576int
31577main ()
31578{
31579static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
31580test_array [0] = 0
31581
31582  ;
31583  return 0;
31584}
31585_ACEOF
31586rm -f conftest.$ac_objext
31587if { (ac_try="$ac_compile"
31588case "(($ac_try" in
31589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590  *) ac_try_echo=$ac_try;;
31591esac
31592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593  (eval "$ac_compile") 2>conftest.er1
31594  ac_status=$?
31595  grep -v '^ *+' conftest.er1 >conftest.err
31596  rm -f conftest.er1
31597  cat conftest.err >&5
31598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599  (exit $ac_status); } &&
31600	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31601  { (case "(($ac_try" in
31602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603  *) ac_try_echo=$ac_try;;
31604esac
31605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606  (eval "$ac_try") 2>&5
31607  ac_status=$?
31608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609  (exit $ac_status); }; } &&
31610	 { ac_try='test -s conftest.$ac_objext'
31611  { (case "(($ac_try" in
31612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613  *) ac_try_echo=$ac_try;;
31614esac
31615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616  (eval "$ac_try") 2>&5
31617  ac_status=$?
31618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619  (exit $ac_status); }; }; then
31620  ac_hi=$ac_mid
31621else
31622  echo "$as_me: failed program was:" >&5
31623sed 's/^/| /' conftest.$ac_ext >&5
31624
31625	ac_lo=`expr '(' $ac_mid ')' + 1`
31626fi
31627
31628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31629done
31630case $ac_lo in
31631?*) result=$ac_lo;;
31632'') result=unknown ;;
31633esac
31634else
31635  cat >conftest.$ac_ext <<_ACEOF
31636/* confdefs.h.  */
31637_ACEOF
31638cat confdefs.h >>conftest.$ac_ext
31639cat >>conftest.$ac_ext <<_ACEOF
31640/* end confdefs.h.  */
31641#include <stddef.h>
31642#include <limits.h>
31643static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
31644static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
31645#include <stdio.h>
31646#include <stdlib.h>
31647int
31648main ()
31649{
31650
31651  FILE *f = fopen ("conftest.val", "w");
31652  if (! f)
31653    return 1;
31654  if ((sizeof ($gltype) * CHAR_BIT) < 0)
31655    {
31656      long int i = longval ();
31657      if (i != (sizeof ($gltype) * CHAR_BIT))
31658	return 1;
31659      fprintf (f, "%ld\n", i);
31660    }
31661  else
31662    {
31663      unsigned long int i = ulongval ();
31664      if (i != (sizeof ($gltype) * CHAR_BIT))
31665	return 1;
31666      fprintf (f, "%lu\n", i);
31667    }
31668  return ferror (f) || fclose (f) != 0;
31669
31670  ;
31671  return 0;
31672}
31673_ACEOF
31674rm -f conftest$ac_exeext
31675if { (ac_try="$ac_link"
31676case "(($ac_try" in
31677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678  *) ac_try_echo=$ac_try;;
31679esac
31680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681  (eval "$ac_link") 2>&5
31682  ac_status=$?
31683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31685  { (case "(($ac_try" in
31686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687  *) ac_try_echo=$ac_try;;
31688esac
31689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690  (eval "$ac_try") 2>&5
31691  ac_status=$?
31692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693  (exit $ac_status); }; }; then
31694  result=`cat conftest.val`
31695else
31696  echo "$as_me: program exited with status $ac_status" >&5
31697echo "$as_me: failed program was:" >&5
31698sed 's/^/| /' conftest.$ac_ext >&5
31699
31700( exit $ac_status )
31701result=unknown
31702fi
31703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31704fi
31705rm -f conftest.val
31706         eval gl_cv_bitsizeof_${gltype}=\$result
31707
31708fi
31709ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
31710	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31711echo "${ECHO_T}$ac_res" >&6; }
31712      eval result=\$gl_cv_bitsizeof_${gltype}
31713    else
31714                                                result=0
31715    fi
31716    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31717    cat >>confdefs.h <<_ACEOF
31718#define BITSIZEOF_${GLTYPE} $result
31719_ACEOF
31720
31721    eval BITSIZEOF_${GLTYPE}=\$result
31722  done
31723
31724
31725
31726
31727
31728  for gltype in wchar_t ; do
31729    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
31730echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
31731if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
31732  echo $ECHO_N "(cached) $ECHO_C" >&6
31733else
31734  cat >conftest.$ac_ext <<_ACEOF
31735/* confdefs.h.  */
31736_ACEOF
31737cat confdefs.h >>conftest.$ac_ext
31738cat >>conftest.$ac_ext <<_ACEOF
31739/* end confdefs.h.  */
31740#include <stddef.h>
31741            int verify[2 * ((wchar_t) -1 < (wchar_t) 0) - 1];
31742
31743int
31744main ()
31745{
31746
31747  ;
31748  return 0;
31749}
31750_ACEOF
31751rm -f conftest.$ac_objext
31752if { (ac_try="$ac_compile"
31753case "(($ac_try" in
31754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755  *) ac_try_echo=$ac_try;;
31756esac
31757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758  (eval "$ac_compile") 2>conftest.er1
31759  ac_status=$?
31760  grep -v '^ *+' conftest.er1 >conftest.err
31761  rm -f conftest.er1
31762  cat conftest.err >&5
31763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764  (exit $ac_status); } &&
31765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766  { (case "(($ac_try" in
31767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768  *) ac_try_echo=$ac_try;;
31769esac
31770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771  (eval "$ac_try") 2>&5
31772  ac_status=$?
31773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774  (exit $ac_status); }; } &&
31775	 { ac_try='test -s conftest.$ac_objext'
31776  { (case "(($ac_try" in
31777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778  *) ac_try_echo=$ac_try;;
31779esac
31780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781  (eval "$ac_try") 2>&5
31782  ac_status=$?
31783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784  (exit $ac_status); }; }; then
31785  result=yes
31786else
31787  echo "$as_me: failed program was:" >&5
31788sed 's/^/| /' conftest.$ac_ext >&5
31789
31790	result=no
31791fi
31792
31793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31794       eval gl_cv_type_${gltype}_signed=\$result
31795
31796fi
31797ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
31798	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31799echo "${ECHO_T}$ac_res" >&6; }
31800    eval result=\$gl_cv_type_${gltype}_signed
31801    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31802    if test "$result" = yes; then
31803      cat >>confdefs.h <<_ACEOF
31804#define HAVE_SIGNED_${GLTYPE} 1
31805_ACEOF
31806
31807      eval HAVE_SIGNED_${GLTYPE}=1
31808    else
31809      eval HAVE_SIGNED_${GLTYPE}=0
31810    fi
31811  done
31812
31813
31814    if test $HAVE_SIGNED_WCHAR_T = 1; then
31815
31816  cat >conftest.$ac_ext <<_ACEOF
31817/* confdefs.h.  */
31818_ACEOF
31819cat confdefs.h >>conftest.$ac_ext
31820cat >>conftest.$ac_ext <<_ACEOF
31821/* end confdefs.h.  */
31822#include <stddef.h>
31823    extern wchar_t foo;
31824    extern long foo;
31825int
31826main ()
31827{
31828
31829  ;
31830  return 0;
31831}
31832_ACEOF
31833rm -f conftest.$ac_objext
31834if { (ac_try="$ac_compile"
31835case "(($ac_try" in
31836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837  *) ac_try_echo=$ac_try;;
31838esac
31839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840  (eval "$ac_compile") 2>conftest.er1
31841  ac_status=$?
31842  grep -v '^ *+' conftest.er1 >conftest.err
31843  rm -f conftest.er1
31844  cat conftest.err >&5
31845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846  (exit $ac_status); } &&
31847	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31848  { (case "(($ac_try" in
31849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850  *) ac_try_echo=$ac_try;;
31851esac
31852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853  (eval "$ac_try") 2>&5
31854  ac_status=$?
31855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856  (exit $ac_status); }; } &&
31857	 { ac_try='test -s conftest.$ac_objext'
31858  { (case "(($ac_try" in
31859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860  *) ac_try_echo=$ac_try;;
31861esac
31862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863  (eval "$ac_try") 2>&5
31864  ac_status=$?
31865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866  (exit $ac_status); }; }; then
31867  SAME_TYPE_WCHAR_T_LONG=1
31868else
31869  echo "$as_me: failed program was:" >&5
31870sed 's/^/| /' conftest.$ac_ext >&5
31871
31872	SAME_TYPE_WCHAR_T_LONG=0
31873fi
31874
31875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31876
31877
31878    else
31879
31880  cat >conftest.$ac_ext <<_ACEOF
31881/* confdefs.h.  */
31882_ACEOF
31883cat confdefs.h >>conftest.$ac_ext
31884cat >>conftest.$ac_ext <<_ACEOF
31885/* end confdefs.h.  */
31886#include <stddef.h>
31887    extern wchar_t foo;
31888    extern unsigned long foo;
31889int
31890main ()
31891{
31892
31893  ;
31894  return 0;
31895}
31896_ACEOF
31897rm -f conftest.$ac_objext
31898if { (ac_try="$ac_compile"
31899case "(($ac_try" in
31900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901  *) ac_try_echo=$ac_try;;
31902esac
31903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31904  (eval "$ac_compile") 2>conftest.er1
31905  ac_status=$?
31906  grep -v '^ *+' conftest.er1 >conftest.err
31907  rm -f conftest.er1
31908  cat conftest.err >&5
31909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910  (exit $ac_status); } &&
31911	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31912  { (case "(($ac_try" in
31913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914  *) ac_try_echo=$ac_try;;
31915esac
31916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917  (eval "$ac_try") 2>&5
31918  ac_status=$?
31919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920  (exit $ac_status); }; } &&
31921	 { ac_try='test -s conftest.$ac_objext'
31922  { (case "(($ac_try" in
31923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924  *) ac_try_echo=$ac_try;;
31925esac
31926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927  (eval "$ac_try") 2>&5
31928  ac_status=$?
31929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930  (exit $ac_status); }; }; then
31931  SAME_TYPE_WCHAR_T_UNSIGNED_LONG=1
31932else
31933  echo "$as_me: failed program was:" >&5
31934sed 's/^/| /' conftest.$ac_ext >&5
31935
31936	SAME_TYPE_WCHAR_T_UNSIGNED_LONG=0
31937fi
31938
31939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31940
31941
31942    fi
31943
31944                        { echo "$as_me:$LINENO: checking for wint_t" >&5
31945echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
31946if test "${ac_cv_type_wint_t+set}" = set; then
31947  echo $ECHO_N "(cached) $ECHO_C" >&6
31948else
31949  cat >conftest.$ac_ext <<_ACEOF
31950/* confdefs.h.  */
31951_ACEOF
31952cat confdefs.h >>conftest.$ac_ext
31953cat >>conftest.$ac_ext <<_ACEOF
31954/* end confdefs.h.  */
31955#include <stdio.h>
31956#include <time.h>
31957#include <wchar.h>
31958
31959
31960typedef wint_t ac__type_new_;
31961int
31962main ()
31963{
31964if ((ac__type_new_ *) 0)
31965  return 0;
31966if (sizeof (ac__type_new_))
31967  return 0;
31968  ;
31969  return 0;
31970}
31971_ACEOF
31972rm -f conftest.$ac_objext
31973if { (ac_try="$ac_compile"
31974case "(($ac_try" in
31975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976  *) ac_try_echo=$ac_try;;
31977esac
31978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979  (eval "$ac_compile") 2>conftest.er1
31980  ac_status=$?
31981  grep -v '^ *+' conftest.er1 >conftest.err
31982  rm -f conftest.er1
31983  cat conftest.err >&5
31984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985  (exit $ac_status); } &&
31986	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31987  { (case "(($ac_try" in
31988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989  *) ac_try_echo=$ac_try;;
31990esac
31991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992  (eval "$ac_try") 2>&5
31993  ac_status=$?
31994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995  (exit $ac_status); }; } &&
31996	 { ac_try='test -s conftest.$ac_objext'
31997  { (case "(($ac_try" in
31998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999  *) ac_try_echo=$ac_try;;
32000esac
32001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002  (eval "$ac_try") 2>&5
32003  ac_status=$?
32004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005  (exit $ac_status); }; }; then
32006  ac_cv_type_wint_t=yes
32007else
32008  echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
32011	ac_cv_type_wint_t=no
32012fi
32013
32014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32015fi
32016{ echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
32017echo "${ECHO_T}$ac_cv_type_wint_t" >&6; }
32018if test $ac_cv_type_wint_t = yes; then
32019
32020cat >>confdefs.h <<_ACEOF
32021#define HAVE_WINT_T 1
32022_ACEOF
32023
32024
32025fi
32026
32027    gl_cv_type_wint_t=$ac_cv_type_wint_t
32028
32029
32030
32031  for gltype in wint_t ; do
32032    if eval test \$gl_cv_type_${gltype} = yes; then
32033      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
32034echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
32035if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
32036  echo $ECHO_N "(cached) $ECHO_C" >&6
32037else
32038  if test "$cross_compiling" = yes; then
32039  # Depending upon the size, compute the lo and hi bounds.
32040cat >conftest.$ac_ext <<_ACEOF
32041/* confdefs.h.  */
32042_ACEOF
32043cat confdefs.h >>conftest.$ac_ext
32044cat >>conftest.$ac_ext <<_ACEOF
32045/* end confdefs.h.  */
32046#include <stdio.h>
32047#include <time.h>
32048#include <wchar.h>
32049
32050#include <limits.h>
32051int
32052main ()
32053{
32054static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
32055test_array [0] = 0
32056
32057  ;
32058  return 0;
32059}
32060_ACEOF
32061rm -f conftest.$ac_objext
32062if { (ac_try="$ac_compile"
32063case "(($ac_try" in
32064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065  *) ac_try_echo=$ac_try;;
32066esac
32067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068  (eval "$ac_compile") 2>conftest.er1
32069  ac_status=$?
32070  grep -v '^ *+' conftest.er1 >conftest.err
32071  rm -f conftest.er1
32072  cat conftest.err >&5
32073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074  (exit $ac_status); } &&
32075	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32076  { (case "(($ac_try" in
32077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078  *) ac_try_echo=$ac_try;;
32079esac
32080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081  (eval "$ac_try") 2>&5
32082  ac_status=$?
32083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084  (exit $ac_status); }; } &&
32085	 { ac_try='test -s conftest.$ac_objext'
32086  { (case "(($ac_try" in
32087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088  *) ac_try_echo=$ac_try;;
32089esac
32090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091  (eval "$ac_try") 2>&5
32092  ac_status=$?
32093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094  (exit $ac_status); }; }; then
32095  ac_lo=0 ac_mid=0
32096  while :; do
32097    cat >conftest.$ac_ext <<_ACEOF
32098/* confdefs.h.  */
32099_ACEOF
32100cat confdefs.h >>conftest.$ac_ext
32101cat >>conftest.$ac_ext <<_ACEOF
32102/* end confdefs.h.  */
32103#include <stdio.h>
32104#include <time.h>
32105#include <wchar.h>
32106
32107#include <limits.h>
32108int
32109main ()
32110{
32111static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32112test_array [0] = 0
32113
32114  ;
32115  return 0;
32116}
32117_ACEOF
32118rm -f conftest.$ac_objext
32119if { (ac_try="$ac_compile"
32120case "(($ac_try" in
32121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122  *) ac_try_echo=$ac_try;;
32123esac
32124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125  (eval "$ac_compile") 2>conftest.er1
32126  ac_status=$?
32127  grep -v '^ *+' conftest.er1 >conftest.err
32128  rm -f conftest.er1
32129  cat conftest.err >&5
32130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131  (exit $ac_status); } &&
32132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32133  { (case "(($ac_try" in
32134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135  *) ac_try_echo=$ac_try;;
32136esac
32137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138  (eval "$ac_try") 2>&5
32139  ac_status=$?
32140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141  (exit $ac_status); }; } &&
32142	 { ac_try='test -s conftest.$ac_objext'
32143  { (case "(($ac_try" in
32144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145  *) ac_try_echo=$ac_try;;
32146esac
32147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148  (eval "$ac_try") 2>&5
32149  ac_status=$?
32150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151  (exit $ac_status); }; }; then
32152  ac_hi=$ac_mid; break
32153else
32154  echo "$as_me: failed program was:" >&5
32155sed 's/^/| /' conftest.$ac_ext >&5
32156
32157	ac_lo=`expr $ac_mid + 1`
32158			if test $ac_lo -le $ac_mid; then
32159			  ac_lo= ac_hi=
32160			  break
32161			fi
32162			ac_mid=`expr 2 '*' $ac_mid + 1`
32163fi
32164
32165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32166  done
32167else
32168  echo "$as_me: failed program was:" >&5
32169sed 's/^/| /' conftest.$ac_ext >&5
32170
32171	cat >conftest.$ac_ext <<_ACEOF
32172/* confdefs.h.  */
32173_ACEOF
32174cat confdefs.h >>conftest.$ac_ext
32175cat >>conftest.$ac_ext <<_ACEOF
32176/* end confdefs.h.  */
32177#include <stdio.h>
32178#include <time.h>
32179#include <wchar.h>
32180
32181#include <limits.h>
32182int
32183main ()
32184{
32185static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
32186test_array [0] = 0
32187
32188  ;
32189  return 0;
32190}
32191_ACEOF
32192rm -f conftest.$ac_objext
32193if { (ac_try="$ac_compile"
32194case "(($ac_try" in
32195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196  *) ac_try_echo=$ac_try;;
32197esac
32198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199  (eval "$ac_compile") 2>conftest.er1
32200  ac_status=$?
32201  grep -v '^ *+' conftest.er1 >conftest.err
32202  rm -f conftest.er1
32203  cat conftest.err >&5
32204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205  (exit $ac_status); } &&
32206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32207  { (case "(($ac_try" in
32208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209  *) ac_try_echo=$ac_try;;
32210esac
32211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212  (eval "$ac_try") 2>&5
32213  ac_status=$?
32214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215  (exit $ac_status); }; } &&
32216	 { ac_try='test -s conftest.$ac_objext'
32217  { (case "(($ac_try" in
32218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219  *) ac_try_echo=$ac_try;;
32220esac
32221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222  (eval "$ac_try") 2>&5
32223  ac_status=$?
32224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225  (exit $ac_status); }; }; then
32226  ac_hi=-1 ac_mid=-1
32227  while :; do
32228    cat >conftest.$ac_ext <<_ACEOF
32229/* confdefs.h.  */
32230_ACEOF
32231cat confdefs.h >>conftest.$ac_ext
32232cat >>conftest.$ac_ext <<_ACEOF
32233/* end confdefs.h.  */
32234#include <stdio.h>
32235#include <time.h>
32236#include <wchar.h>
32237
32238#include <limits.h>
32239int
32240main ()
32241{
32242static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
32243test_array [0] = 0
32244
32245  ;
32246  return 0;
32247}
32248_ACEOF
32249rm -f conftest.$ac_objext
32250if { (ac_try="$ac_compile"
32251case "(($ac_try" in
32252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253  *) ac_try_echo=$ac_try;;
32254esac
32255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256  (eval "$ac_compile") 2>conftest.er1
32257  ac_status=$?
32258  grep -v '^ *+' conftest.er1 >conftest.err
32259  rm -f conftest.er1
32260  cat conftest.err >&5
32261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262  (exit $ac_status); } &&
32263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32264  { (case "(($ac_try" in
32265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32266  *) ac_try_echo=$ac_try;;
32267esac
32268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32269  (eval "$ac_try") 2>&5
32270  ac_status=$?
32271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272  (exit $ac_status); }; } &&
32273	 { ac_try='test -s conftest.$ac_objext'
32274  { (case "(($ac_try" in
32275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276  *) ac_try_echo=$ac_try;;
32277esac
32278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279  (eval "$ac_try") 2>&5
32280  ac_status=$?
32281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282  (exit $ac_status); }; }; then
32283  ac_lo=$ac_mid; break
32284else
32285  echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
32288	ac_hi=`expr '(' $ac_mid ')' - 1`
32289			if test $ac_mid -le $ac_hi; then
32290			  ac_lo= ac_hi=
32291			  break
32292			fi
32293			ac_mid=`expr 2 '*' $ac_mid`
32294fi
32295
32296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32297  done
32298else
32299  echo "$as_me: failed program was:" >&5
32300sed 's/^/| /' conftest.$ac_ext >&5
32301
32302	ac_lo= ac_hi=
32303fi
32304
32305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32306fi
32307
32308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32309# Binary search between lo and hi bounds.
32310while test "x$ac_lo" != "x$ac_hi"; do
32311  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32312  cat >conftest.$ac_ext <<_ACEOF
32313/* confdefs.h.  */
32314_ACEOF
32315cat confdefs.h >>conftest.$ac_ext
32316cat >>conftest.$ac_ext <<_ACEOF
32317/* end confdefs.h.  */
32318#include <stdio.h>
32319#include <time.h>
32320#include <wchar.h>
32321
32322#include <limits.h>
32323int
32324main ()
32325{
32326static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32327test_array [0] = 0
32328
32329  ;
32330  return 0;
32331}
32332_ACEOF
32333rm -f conftest.$ac_objext
32334if { (ac_try="$ac_compile"
32335case "(($ac_try" in
32336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32337  *) ac_try_echo=$ac_try;;
32338esac
32339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32340  (eval "$ac_compile") 2>conftest.er1
32341  ac_status=$?
32342  grep -v '^ *+' conftest.er1 >conftest.err
32343  rm -f conftest.er1
32344  cat conftest.err >&5
32345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346  (exit $ac_status); } &&
32347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32348  { (case "(($ac_try" in
32349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32350  *) ac_try_echo=$ac_try;;
32351esac
32352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32353  (eval "$ac_try") 2>&5
32354  ac_status=$?
32355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356  (exit $ac_status); }; } &&
32357	 { ac_try='test -s conftest.$ac_objext'
32358  { (case "(($ac_try" in
32359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360  *) ac_try_echo=$ac_try;;
32361esac
32362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363  (eval "$ac_try") 2>&5
32364  ac_status=$?
32365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366  (exit $ac_status); }; }; then
32367  ac_hi=$ac_mid
32368else
32369  echo "$as_me: failed program was:" >&5
32370sed 's/^/| /' conftest.$ac_ext >&5
32371
32372	ac_lo=`expr '(' $ac_mid ')' + 1`
32373fi
32374
32375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32376done
32377case $ac_lo in
32378?*) result=$ac_lo;;
32379'') result=unknown ;;
32380esac
32381else
32382  cat >conftest.$ac_ext <<_ACEOF
32383/* confdefs.h.  */
32384_ACEOF
32385cat confdefs.h >>conftest.$ac_ext
32386cat >>conftest.$ac_ext <<_ACEOF
32387/* end confdefs.h.  */
32388#include <stdio.h>
32389#include <time.h>
32390#include <wchar.h>
32391
32392#include <limits.h>
32393static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
32394static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
32395#include <stdio.h>
32396#include <stdlib.h>
32397int
32398main ()
32399{
32400
32401  FILE *f = fopen ("conftest.val", "w");
32402  if (! f)
32403    return 1;
32404  if ((sizeof ($gltype) * CHAR_BIT) < 0)
32405    {
32406      long int i = longval ();
32407      if (i != (sizeof ($gltype) * CHAR_BIT))
32408	return 1;
32409      fprintf (f, "%ld\n", i);
32410    }
32411  else
32412    {
32413      unsigned long int i = ulongval ();
32414      if (i != (sizeof ($gltype) * CHAR_BIT))
32415	return 1;
32416      fprintf (f, "%lu\n", i);
32417    }
32418  return ferror (f) || fclose (f) != 0;
32419
32420  ;
32421  return 0;
32422}
32423_ACEOF
32424rm -f conftest$ac_exeext
32425if { (ac_try="$ac_link"
32426case "(($ac_try" in
32427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428  *) ac_try_echo=$ac_try;;
32429esac
32430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431  (eval "$ac_link") 2>&5
32432  ac_status=$?
32433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32435  { (case "(($ac_try" in
32436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32437  *) ac_try_echo=$ac_try;;
32438esac
32439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32440  (eval "$ac_try") 2>&5
32441  ac_status=$?
32442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443  (exit $ac_status); }; }; then
32444  result=`cat conftest.val`
32445else
32446  echo "$as_me: program exited with status $ac_status" >&5
32447echo "$as_me: failed program was:" >&5
32448sed 's/^/| /' conftest.$ac_ext >&5
32449
32450( exit $ac_status )
32451result=unknown
32452fi
32453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32454fi
32455rm -f conftest.val
32456         eval gl_cv_bitsizeof_${gltype}=\$result
32457
32458fi
32459ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
32460	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32461echo "${ECHO_T}$ac_res" >&6; }
32462      eval result=\$gl_cv_bitsizeof_${gltype}
32463    else
32464                                                result=0
32465    fi
32466    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32467    cat >>confdefs.h <<_ACEOF
32468#define BITSIZEOF_${GLTYPE} $result
32469_ACEOF
32470
32471    eval BITSIZEOF_${GLTYPE}=\$result
32472  done
32473
32474
32475
32476
32477
32478  for gltype in wint_t ; do
32479    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
32480echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
32481if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
32482  echo $ECHO_N "(cached) $ECHO_C" >&6
32483else
32484  cat >conftest.$ac_ext <<_ACEOF
32485/* confdefs.h.  */
32486_ACEOF
32487cat confdefs.h >>conftest.$ac_ext
32488cat >>conftest.$ac_ext <<_ACEOF
32489/* end confdefs.h.  */
32490#include <stdio.h>
32491#include <time.h>
32492#include <wchar.h>
32493
32494            int verify[2 * ((wint_t) -1 < (wint_t) 0) - 1];
32495
32496int
32497main ()
32498{
32499
32500  ;
32501  return 0;
32502}
32503_ACEOF
32504rm -f conftest.$ac_objext
32505if { (ac_try="$ac_compile"
32506case "(($ac_try" in
32507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508  *) ac_try_echo=$ac_try;;
32509esac
32510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511  (eval "$ac_compile") 2>conftest.er1
32512  ac_status=$?
32513  grep -v '^ *+' conftest.er1 >conftest.err
32514  rm -f conftest.er1
32515  cat conftest.err >&5
32516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517  (exit $ac_status); } &&
32518	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32519  { (case "(($ac_try" in
32520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521  *) ac_try_echo=$ac_try;;
32522esac
32523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524  (eval "$ac_try") 2>&5
32525  ac_status=$?
32526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527  (exit $ac_status); }; } &&
32528	 { ac_try='test -s conftest.$ac_objext'
32529  { (case "(($ac_try" in
32530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531  *) ac_try_echo=$ac_try;;
32532esac
32533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534  (eval "$ac_try") 2>&5
32535  ac_status=$?
32536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537  (exit $ac_status); }; }; then
32538  result=yes
32539else
32540  echo "$as_me: failed program was:" >&5
32541sed 's/^/| /' conftest.$ac_ext >&5
32542
32543	result=no
32544fi
32545
32546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32547       eval gl_cv_type_${gltype}_signed=\$result
32548
32549fi
32550ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
32551	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32552echo "${ECHO_T}$ac_res" >&6; }
32553    eval result=\$gl_cv_type_${gltype}_signed
32554    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32555    if test "$result" = yes; then
32556      cat >>confdefs.h <<_ACEOF
32557#define HAVE_SIGNED_${GLTYPE} 1
32558_ACEOF
32559
32560      eval HAVE_SIGNED_${GLTYPE}=1
32561    else
32562      eval HAVE_SIGNED_${GLTYPE}=0
32563    fi
32564  done
32565
32566
32567    if test $HAVE_SIGNED_WINT_T = 1; then
32568
32569  cat >conftest.$ac_ext <<_ACEOF
32570/* confdefs.h.  */
32571_ACEOF
32572cat confdefs.h >>conftest.$ac_ext
32573cat >>conftest.$ac_ext <<_ACEOF
32574/* end confdefs.h.  */
32575#include <stdio.h>
32576#include <time.h>
32577#include <wchar.h>
32578
32579    extern wint_t foo;
32580    extern long foo;
32581int
32582main ()
32583{
32584
32585  ;
32586  return 0;
32587}
32588_ACEOF
32589rm -f conftest.$ac_objext
32590if { (ac_try="$ac_compile"
32591case "(($ac_try" in
32592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593  *) ac_try_echo=$ac_try;;
32594esac
32595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596  (eval "$ac_compile") 2>conftest.er1
32597  ac_status=$?
32598  grep -v '^ *+' conftest.er1 >conftest.err
32599  rm -f conftest.er1
32600  cat conftest.err >&5
32601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602  (exit $ac_status); } &&
32603	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32604  { (case "(($ac_try" in
32605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606  *) ac_try_echo=$ac_try;;
32607esac
32608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609  (eval "$ac_try") 2>&5
32610  ac_status=$?
32611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612  (exit $ac_status); }; } &&
32613	 { ac_try='test -s conftest.$ac_objext'
32614  { (case "(($ac_try" in
32615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616  *) ac_try_echo=$ac_try;;
32617esac
32618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619  (eval "$ac_try") 2>&5
32620  ac_status=$?
32621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622  (exit $ac_status); }; }; then
32623  SAME_TYPE_WINT_T_LONG=1
32624else
32625  echo "$as_me: failed program was:" >&5
32626sed 's/^/| /' conftest.$ac_ext >&5
32627
32628	SAME_TYPE_WINT_T_LONG=0
32629fi
32630
32631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32632
32633
32634    else
32635
32636  cat >conftest.$ac_ext <<_ACEOF
32637/* confdefs.h.  */
32638_ACEOF
32639cat confdefs.h >>conftest.$ac_ext
32640cat >>conftest.$ac_ext <<_ACEOF
32641/* end confdefs.h.  */
32642#include <stdio.h>
32643#include <time.h>
32644#include <wchar.h>
32645
32646    extern wint_t foo;
32647    extern unsigned long foo;
32648int
32649main ()
32650{
32651
32652  ;
32653  return 0;
32654}
32655_ACEOF
32656rm -f conftest.$ac_objext
32657if { (ac_try="$ac_compile"
32658case "(($ac_try" in
32659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660  *) ac_try_echo=$ac_try;;
32661esac
32662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663  (eval "$ac_compile") 2>conftest.er1
32664  ac_status=$?
32665  grep -v '^ *+' conftest.er1 >conftest.err
32666  rm -f conftest.er1
32667  cat conftest.err >&5
32668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669  (exit $ac_status); } &&
32670	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32671  { (case "(($ac_try" in
32672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673  *) ac_try_echo=$ac_try;;
32674esac
32675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676  (eval "$ac_try") 2>&5
32677  ac_status=$?
32678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679  (exit $ac_status); }; } &&
32680	 { ac_try='test -s conftest.$ac_objext'
32681  { (case "(($ac_try" in
32682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683  *) ac_try_echo=$ac_try;;
32684esac
32685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686  (eval "$ac_try") 2>&5
32687  ac_status=$?
32688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689  (exit $ac_status); }; }; then
32690  SAME_TYPE_WINT_T_UNSIGNED_LONG=1
32691else
32692  echo "$as_me: failed program was:" >&5
32693sed 's/^/| /' conftest.$ac_ext >&5
32694
32695	SAME_TYPE_WINT_T_UNSIGNED_LONG=0
32696fi
32697
32698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32699
32700
32701    fi
32702
32703    STDINT_H='stdint.h'
32704  fi
32705
32706
32707
32708  { echo "$as_me:$LINENO: checking for wchar_t" >&5
32709echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
32710if test "${gt_cv_c_wchar_t+set}" = set; then
32711  echo $ECHO_N "(cached) $ECHO_C" >&6
32712else
32713  cat >conftest.$ac_ext <<_ACEOF
32714/* confdefs.h.  */
32715_ACEOF
32716cat confdefs.h >>conftest.$ac_ext
32717cat >>conftest.$ac_ext <<_ACEOF
32718/* end confdefs.h.  */
32719#include <stddef.h>
32720       wchar_t foo = (wchar_t)'\0';
32721int
32722main ()
32723{
32724
32725  ;
32726  return 0;
32727}
32728_ACEOF
32729rm -f conftest.$ac_objext
32730if { (ac_try="$ac_compile"
32731case "(($ac_try" in
32732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733  *) ac_try_echo=$ac_try;;
32734esac
32735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736  (eval "$ac_compile") 2>conftest.er1
32737  ac_status=$?
32738  grep -v '^ *+' conftest.er1 >conftest.err
32739  rm -f conftest.er1
32740  cat conftest.err >&5
32741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742  (exit $ac_status); } &&
32743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32744  { (case "(($ac_try" in
32745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746  *) ac_try_echo=$ac_try;;
32747esac
32748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749  (eval "$ac_try") 2>&5
32750  ac_status=$?
32751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752  (exit $ac_status); }; } &&
32753	 { ac_try='test -s conftest.$ac_objext'
32754  { (case "(($ac_try" in
32755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756  *) ac_try_echo=$ac_try;;
32757esac
32758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759  (eval "$ac_try") 2>&5
32760  ac_status=$?
32761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762  (exit $ac_status); }; }; then
32763  gt_cv_c_wchar_t=yes
32764else
32765  echo "$as_me: failed program was:" >&5
32766sed 's/^/| /' conftest.$ac_ext >&5
32767
32768	gt_cv_c_wchar_t=no
32769fi
32770
32771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32772fi
32773{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
32774echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
32775  if test $gt_cv_c_wchar_t = yes; then
32776
32777cat >>confdefs.h <<\_ACEOF
32778#define HAVE_WCHAR_T 1
32779_ACEOF
32780
32781  fi
32782
32783
32784
32785if test "$am_cv_func_iconv" = yes -a -z "$am_cv_proto_iconv_arg1"; then
32786  ICONV_CONST=""
32787else
32788  ICONV_CONST="const"
32789fi
32790
32791
32792if test $gt_cv_c_wchar_t = yes; then
32793  HAVE_WCHAR_T=1
32794else
32795  HAVE_WCHAR_T=0
32796fi
32797
32798
32799
32800
32801
32802
32803
32804for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
32805do
32806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32810  echo $ECHO_N "(cached) $ECHO_C" >&6
32811else
32812  cat >conftest.$ac_ext <<_ACEOF
32813/* confdefs.h.  */
32814_ACEOF
32815cat confdefs.h >>conftest.$ac_ext
32816cat >>conftest.$ac_ext <<_ACEOF
32817/* end confdefs.h.  */
32818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32820#define $ac_func innocuous_$ac_func
32821
32822/* System header to define __stub macros and hopefully few prototypes,
32823    which can conflict with char $ac_func (); below.
32824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32825    <limits.h> exists even on freestanding compilers.  */
32826
32827#ifdef __STDC__
32828# include <limits.h>
32829#else
32830# include <assert.h>
32831#endif
32832
32833#undef $ac_func
32834
32835/* Override any GCC internal prototype to avoid an error.
32836   Use char because int might match the return type of a GCC
32837   builtin and then its argument prototype would still apply.  */
32838#ifdef __cplusplus
32839extern "C"
32840#endif
32841char $ac_func ();
32842/* The GNU C library defines this for functions which it implements
32843    to always fail with ENOSYS.  Some functions are actually named
32844    something starting with __ and the normal name is an alias.  */
32845#if defined __stub_$ac_func || defined __stub___$ac_func
32846choke me
32847#endif
32848
32849int
32850main ()
32851{
32852return $ac_func ();
32853  ;
32854  return 0;
32855}
32856_ACEOF
32857rm -f conftest.$ac_objext conftest$ac_exeext
32858if { (ac_try="$ac_link"
32859case "(($ac_try" in
32860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861  *) ac_try_echo=$ac_try;;
32862esac
32863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864  (eval "$ac_link") 2>conftest.er1
32865  ac_status=$?
32866  grep -v '^ *+' conftest.er1 >conftest.err
32867  rm -f conftest.er1
32868  cat conftest.err >&5
32869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870  (exit $ac_status); } &&
32871	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32872  { (case "(($ac_try" in
32873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874  *) ac_try_echo=$ac_try;;
32875esac
32876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877  (eval "$ac_try") 2>&5
32878  ac_status=$?
32879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880  (exit $ac_status); }; } &&
32881	 { ac_try='test -s conftest$ac_exeext'
32882  { (case "(($ac_try" in
32883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884  *) ac_try_echo=$ac_try;;
32885esac
32886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887  (eval "$ac_try") 2>&5
32888  ac_status=$?
32889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890  (exit $ac_status); }; }; then
32891  eval "$as_ac_var=yes"
32892else
32893  echo "$as_me: failed program was:" >&5
32894sed 's/^/| /' conftest.$ac_ext >&5
32895
32896	eval "$as_ac_var=no"
32897fi
32898
32899rm -f core conftest.err conftest.$ac_objext \
32900      conftest$ac_exeext conftest.$ac_ext
32901fi
32902ac_res=`eval echo '${'$as_ac_var'}'`
32903	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32904echo "${ECHO_T}$ac_res" >&6; }
32905if test `eval echo '${'$as_ac_var'}'` = yes; then
32906  cat >>confdefs.h <<_ACEOF
32907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32908_ACEOF
32909
32910fi
32911done
32912
32913
32914for ac_func in memmove
32915do
32916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32920  echo $ECHO_N "(cached) $ECHO_C" >&6
32921else
32922  cat >conftest.$ac_ext <<_ACEOF
32923/* confdefs.h.  */
32924_ACEOF
32925cat confdefs.h >>conftest.$ac_ext
32926cat >>conftest.$ac_ext <<_ACEOF
32927/* end confdefs.h.  */
32928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32930#define $ac_func innocuous_$ac_func
32931
32932/* System header to define __stub macros and hopefully few prototypes,
32933    which can conflict with char $ac_func (); below.
32934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32935    <limits.h> exists even on freestanding compilers.  */
32936
32937#ifdef __STDC__
32938# include <limits.h>
32939#else
32940# include <assert.h>
32941#endif
32942
32943#undef $ac_func
32944
32945/* Override any GCC internal prototype to avoid an error.
32946   Use char because int might match the return type of a GCC
32947   builtin and then its argument prototype would still apply.  */
32948#ifdef __cplusplus
32949extern "C"
32950#endif
32951char $ac_func ();
32952/* The GNU C library defines this for functions which it implements
32953    to always fail with ENOSYS.  Some functions are actually named
32954    something starting with __ and the normal name is an alias.  */
32955#if defined __stub_$ac_func || defined __stub___$ac_func
32956choke me
32957#endif
32958
32959int
32960main ()
32961{
32962return $ac_func ();
32963  ;
32964  return 0;
32965}
32966_ACEOF
32967rm -f conftest.$ac_objext conftest$ac_exeext
32968if { (ac_try="$ac_link"
32969case "(($ac_try" in
32970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971  *) ac_try_echo=$ac_try;;
32972esac
32973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974  (eval "$ac_link") 2>conftest.er1
32975  ac_status=$?
32976  grep -v '^ *+' conftest.er1 >conftest.err
32977  rm -f conftest.er1
32978  cat conftest.err >&5
32979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980  (exit $ac_status); } &&
32981	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32982  { (case "(($ac_try" in
32983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984  *) ac_try_echo=$ac_try;;
32985esac
32986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987  (eval "$ac_try") 2>&5
32988  ac_status=$?
32989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990  (exit $ac_status); }; } &&
32991	 { ac_try='test -s conftest$ac_exeext'
32992  { (case "(($ac_try" in
32993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32994  *) ac_try_echo=$ac_try;;
32995esac
32996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32997  (eval "$ac_try") 2>&5
32998  ac_status=$?
32999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000  (exit $ac_status); }; }; then
33001  eval "$as_ac_var=yes"
33002else
33003  echo "$as_me: failed program was:" >&5
33004sed 's/^/| /' conftest.$ac_ext >&5
33005
33006	eval "$as_ac_var=no"
33007fi
33008
33009rm -f core conftest.err conftest.$ac_objext \
33010      conftest$ac_exeext conftest.$ac_ext
33011fi
33012ac_res=`eval echo '${'$as_ac_var'}'`
33013	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33014echo "${ECHO_T}$ac_res" >&6; }
33015if test `eval echo '${'$as_ac_var'}'` = yes; then
33016  cat >>confdefs.h <<_ACEOF
33017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33018_ACEOF
33019
33020else
33021  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
33022fi
33023done
33024
33025
33026
33027  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
33028echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
33029if test "${am_cv_langinfo_codeset+set}" = set; then
33030  echo $ECHO_N "(cached) $ECHO_C" >&6
33031else
33032  cat >conftest.$ac_ext <<_ACEOF
33033/* confdefs.h.  */
33034_ACEOF
33035cat confdefs.h >>conftest.$ac_ext
33036cat >>conftest.$ac_ext <<_ACEOF
33037/* end confdefs.h.  */
33038#include <langinfo.h>
33039int
33040main ()
33041{
33042char* cs = nl_langinfo(CODESET);
33043  ;
33044  return 0;
33045}
33046_ACEOF
33047rm -f conftest.$ac_objext conftest$ac_exeext
33048if { (ac_try="$ac_link"
33049case "(($ac_try" in
33050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33051  *) ac_try_echo=$ac_try;;
33052esac
33053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33054  (eval "$ac_link") 2>conftest.er1
33055  ac_status=$?
33056  grep -v '^ *+' conftest.er1 >conftest.err
33057  rm -f conftest.er1
33058  cat conftest.err >&5
33059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060  (exit $ac_status); } &&
33061	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33062  { (case "(($ac_try" in
33063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064  *) ac_try_echo=$ac_try;;
33065esac
33066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33067  (eval "$ac_try") 2>&5
33068  ac_status=$?
33069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070  (exit $ac_status); }; } &&
33071	 { ac_try='test -s conftest$ac_exeext'
33072  { (case "(($ac_try" in
33073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074  *) ac_try_echo=$ac_try;;
33075esac
33076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077  (eval "$ac_try") 2>&5
33078  ac_status=$?
33079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080  (exit $ac_status); }; }; then
33081  am_cv_langinfo_codeset=yes
33082else
33083  echo "$as_me: failed program was:" >&5
33084sed 's/^/| /' conftest.$ac_ext >&5
33085
33086	am_cv_langinfo_codeset=no
33087fi
33088
33089rm -f core conftest.err conftest.$ac_objext \
33090      conftest$ac_exeext conftest.$ac_ext
33091
33092fi
33093{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
33094echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
33095  if test $am_cv_langinfo_codeset = yes; then
33096
33097cat >>confdefs.h <<\_ACEOF
33098#define HAVE_LANGINFO_CODESET 1
33099_ACEOF
33100
33101  fi
33102
33103
33104
33105
33106
33107for ac_header in wchar.h
33108do
33109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33111  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33114  echo $ECHO_N "(cached) $ECHO_C" >&6
33115fi
33116ac_res=`eval echo '${'$as_ac_Header'}'`
33117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33118echo "${ECHO_T}$ac_res" >&6; }
33119else
33120  # Is the header compilable?
33121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33123cat >conftest.$ac_ext <<_ACEOF
33124/* confdefs.h.  */
33125_ACEOF
33126cat confdefs.h >>conftest.$ac_ext
33127cat >>conftest.$ac_ext <<_ACEOF
33128/* end confdefs.h.  */
33129$ac_includes_default
33130#include <$ac_header>
33131_ACEOF
33132rm -f conftest.$ac_objext
33133if { (ac_try="$ac_compile"
33134case "(($ac_try" in
33135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136  *) ac_try_echo=$ac_try;;
33137esac
33138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139  (eval "$ac_compile") 2>conftest.er1
33140  ac_status=$?
33141  grep -v '^ *+' conftest.er1 >conftest.err
33142  rm -f conftest.er1
33143  cat conftest.err >&5
33144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145  (exit $ac_status); } &&
33146	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33147  { (case "(($ac_try" in
33148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149  *) ac_try_echo=$ac_try;;
33150esac
33151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152  (eval "$ac_try") 2>&5
33153  ac_status=$?
33154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155  (exit $ac_status); }; } &&
33156	 { ac_try='test -s conftest.$ac_objext'
33157  { (case "(($ac_try" in
33158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159  *) ac_try_echo=$ac_try;;
33160esac
33161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162  (eval "$ac_try") 2>&5
33163  ac_status=$?
33164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165  (exit $ac_status); }; }; then
33166  ac_header_compiler=yes
33167else
33168  echo "$as_me: failed program was:" >&5
33169sed 's/^/| /' conftest.$ac_ext >&5
33170
33171	ac_header_compiler=no
33172fi
33173
33174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33175{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33176echo "${ECHO_T}$ac_header_compiler" >&6; }
33177
33178# Is the header present?
33179{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33181cat >conftest.$ac_ext <<_ACEOF
33182/* confdefs.h.  */
33183_ACEOF
33184cat confdefs.h >>conftest.$ac_ext
33185cat >>conftest.$ac_ext <<_ACEOF
33186/* end confdefs.h.  */
33187#include <$ac_header>
33188_ACEOF
33189if { (ac_try="$ac_cpp conftest.$ac_ext"
33190case "(($ac_try" in
33191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192  *) ac_try_echo=$ac_try;;
33193esac
33194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33196  ac_status=$?
33197  grep -v '^ *+' conftest.er1 >conftest.err
33198  rm -f conftest.er1
33199  cat conftest.err >&5
33200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201  (exit $ac_status); } >/dev/null; then
33202  if test -s conftest.err; then
33203    ac_cpp_err=$ac_c_preproc_warn_flag
33204    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33205  else
33206    ac_cpp_err=
33207  fi
33208else
33209  ac_cpp_err=yes
33210fi
33211if test -z "$ac_cpp_err"; then
33212  ac_header_preproc=yes
33213else
33214  echo "$as_me: failed program was:" >&5
33215sed 's/^/| /' conftest.$ac_ext >&5
33216
33217  ac_header_preproc=no
33218fi
33219
33220rm -f conftest.err conftest.$ac_ext
33221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33222echo "${ECHO_T}$ac_header_preproc" >&6; }
33223
33224# So?  What about this header?
33225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33226  yes:no: )
33227    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33229    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33231    ac_header_preproc=yes
33232    ;;
33233  no:yes:* )
33234    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33236    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33237echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33238    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33240    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33241echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33242    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33244    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33246
33247    ;;
33248esac
33249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33252  echo $ECHO_N "(cached) $ECHO_C" >&6
33253else
33254  eval "$as_ac_Header=\$ac_header_preproc"
33255fi
33256ac_res=`eval echo '${'$as_ac_Header'}'`
33257	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33258echo "${ECHO_T}$ac_res" >&6; }
33259
33260fi
33261if test `eval echo '${'$as_ac_Header'}'` = yes; then
33262  cat >>confdefs.h <<_ACEOF
33263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33264_ACEOF
33265
33266fi
33267
33268done
33269
33270
33271  { echo "$as_me:$LINENO: checking for EILSEQ" >&5
33272echo $ECHO_N "checking for EILSEQ... $ECHO_C" >&6; }
33273if test "${ac_cv_decl_EILSEQ+set}" = set; then
33274  echo $ECHO_N "(cached) $ECHO_C" >&6
33275else
33276
33277    cat >conftest.$ac_ext <<_ACEOF
33278/* confdefs.h.  */
33279_ACEOF
33280cat confdefs.h >>conftest.$ac_ext
33281cat >>conftest.$ac_ext <<_ACEOF
33282/* end confdefs.h.  */
33283
33284#include <errno.h>
33285#ifdef EILSEQ
33286yes
33287#endif
33288
33289_ACEOF
33290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33291  $EGREP "yes" >/dev/null 2>&1; then
33292  have_eilseq=1
33293fi
33294rm -f conftest*
33295
33296    if test -n "$have_eilseq"; then
33297            ac_cv_decl_EILSEQ=yes
33298    else
33299      cat >conftest.$ac_ext <<_ACEOF
33300/* confdefs.h.  */
33301_ACEOF
33302cat confdefs.h >>conftest.$ac_ext
33303cat >>conftest.$ac_ext <<_ACEOF
33304/* end confdefs.h.  */
33305
33306#include <errno.h>
33307#if HAVE_WCHAR_H
33308#include <wchar.h>
33309#endif
33310#ifdef EILSEQ
33311yes
33312#endif
33313
33314_ACEOF
33315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33316  $EGREP "yes" >/dev/null 2>&1; then
33317  have_eilseq=1
33318fi
33319rm -f conftest*
33320
33321      if test -n "$have_eilseq"; then
33322                        if test "$cross_compiling" = yes; then
33323  # Depending upon the size, compute the lo and hi bounds.
33324cat >conftest.$ac_ext <<_ACEOF
33325/* confdefs.h.  */
33326_ACEOF
33327cat confdefs.h >>conftest.$ac_ext
33328cat >>conftest.$ac_ext <<_ACEOF
33329/* end confdefs.h.  */
33330
33331#include <errno.h>
33332#if HAVE_WCHAR_H
33333#include <wchar.h>
33334#endif
33335/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33336#include <stdio.h>
33337#include <stdlib.h>
33338
33339int
33340main ()
33341{
33342static int test_array [1 - 2 * !((EILSEQ) >= 0)];
33343test_array [0] = 0
33344
33345  ;
33346  return 0;
33347}
33348_ACEOF
33349rm -f conftest.$ac_objext
33350if { (ac_try="$ac_compile"
33351case "(($ac_try" in
33352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353  *) ac_try_echo=$ac_try;;
33354esac
33355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356  (eval "$ac_compile") 2>conftest.er1
33357  ac_status=$?
33358  grep -v '^ *+' conftest.er1 >conftest.err
33359  rm -f conftest.er1
33360  cat conftest.err >&5
33361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362  (exit $ac_status); } &&
33363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33364  { (case "(($ac_try" in
33365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366  *) ac_try_echo=$ac_try;;
33367esac
33368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369  (eval "$ac_try") 2>&5
33370  ac_status=$?
33371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372  (exit $ac_status); }; } &&
33373	 { ac_try='test -s conftest.$ac_objext'
33374  { (case "(($ac_try" in
33375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376  *) ac_try_echo=$ac_try;;
33377esac
33378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379  (eval "$ac_try") 2>&5
33380  ac_status=$?
33381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382  (exit $ac_status); }; }; then
33383  ac_lo=0 ac_mid=0
33384  while :; do
33385    cat >conftest.$ac_ext <<_ACEOF
33386/* confdefs.h.  */
33387_ACEOF
33388cat confdefs.h >>conftest.$ac_ext
33389cat >>conftest.$ac_ext <<_ACEOF
33390/* end confdefs.h.  */
33391
33392#include <errno.h>
33393#if HAVE_WCHAR_H
33394#include <wchar.h>
33395#endif
33396/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33397#include <stdio.h>
33398#include <stdlib.h>
33399
33400int
33401main ()
33402{
33403static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
33404test_array [0] = 0
33405
33406  ;
33407  return 0;
33408}
33409_ACEOF
33410rm -f conftest.$ac_objext
33411if { (ac_try="$ac_compile"
33412case "(($ac_try" in
33413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414  *) ac_try_echo=$ac_try;;
33415esac
33416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417  (eval "$ac_compile") 2>conftest.er1
33418  ac_status=$?
33419  grep -v '^ *+' conftest.er1 >conftest.err
33420  rm -f conftest.er1
33421  cat conftest.err >&5
33422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423  (exit $ac_status); } &&
33424	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33425  { (case "(($ac_try" in
33426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427  *) ac_try_echo=$ac_try;;
33428esac
33429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430  (eval "$ac_try") 2>&5
33431  ac_status=$?
33432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433  (exit $ac_status); }; } &&
33434	 { ac_try='test -s conftest.$ac_objext'
33435  { (case "(($ac_try" in
33436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33437  *) ac_try_echo=$ac_try;;
33438esac
33439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33440  (eval "$ac_try") 2>&5
33441  ac_status=$?
33442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443  (exit $ac_status); }; }; then
33444  ac_hi=$ac_mid; break
33445else
33446  echo "$as_me: failed program was:" >&5
33447sed 's/^/| /' conftest.$ac_ext >&5
33448
33449	ac_lo=`expr $ac_mid + 1`
33450			if test $ac_lo -le $ac_mid; then
33451			  ac_lo= ac_hi=
33452			  break
33453			fi
33454			ac_mid=`expr 2 '*' $ac_mid + 1`
33455fi
33456
33457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33458  done
33459else
33460  echo "$as_me: failed program was:" >&5
33461sed 's/^/| /' conftest.$ac_ext >&5
33462
33463	cat >conftest.$ac_ext <<_ACEOF
33464/* confdefs.h.  */
33465_ACEOF
33466cat confdefs.h >>conftest.$ac_ext
33467cat >>conftest.$ac_ext <<_ACEOF
33468/* end confdefs.h.  */
33469
33470#include <errno.h>
33471#if HAVE_WCHAR_H
33472#include <wchar.h>
33473#endif
33474/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33475#include <stdio.h>
33476#include <stdlib.h>
33477
33478int
33479main ()
33480{
33481static int test_array [1 - 2 * !((EILSEQ) < 0)];
33482test_array [0] = 0
33483
33484  ;
33485  return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext
33489if { (ac_try="$ac_compile"
33490case "(($ac_try" in
33491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492  *) ac_try_echo=$ac_try;;
33493esac
33494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33495  (eval "$ac_compile") 2>conftest.er1
33496  ac_status=$?
33497  grep -v '^ *+' conftest.er1 >conftest.err
33498  rm -f conftest.er1
33499  cat conftest.err >&5
33500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501  (exit $ac_status); } &&
33502	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33503  { (case "(($ac_try" in
33504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33505  *) ac_try_echo=$ac_try;;
33506esac
33507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33508  (eval "$ac_try") 2>&5
33509  ac_status=$?
33510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511  (exit $ac_status); }; } &&
33512	 { ac_try='test -s conftest.$ac_objext'
33513  { (case "(($ac_try" in
33514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515  *) ac_try_echo=$ac_try;;
33516esac
33517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518  (eval "$ac_try") 2>&5
33519  ac_status=$?
33520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521  (exit $ac_status); }; }; then
33522  ac_hi=-1 ac_mid=-1
33523  while :; do
33524    cat >conftest.$ac_ext <<_ACEOF
33525/* confdefs.h.  */
33526_ACEOF
33527cat confdefs.h >>conftest.$ac_ext
33528cat >>conftest.$ac_ext <<_ACEOF
33529/* end confdefs.h.  */
33530
33531#include <errno.h>
33532#if HAVE_WCHAR_H
33533#include <wchar.h>
33534#endif
33535/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33536#include <stdio.h>
33537#include <stdlib.h>
33538
33539int
33540main ()
33541{
33542static int test_array [1 - 2 * !((EILSEQ) >= $ac_mid)];
33543test_array [0] = 0
33544
33545  ;
33546  return 0;
33547}
33548_ACEOF
33549rm -f conftest.$ac_objext
33550if { (ac_try="$ac_compile"
33551case "(($ac_try" in
33552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33553  *) ac_try_echo=$ac_try;;
33554esac
33555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33556  (eval "$ac_compile") 2>conftest.er1
33557  ac_status=$?
33558  grep -v '^ *+' conftest.er1 >conftest.err
33559  rm -f conftest.er1
33560  cat conftest.err >&5
33561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562  (exit $ac_status); } &&
33563	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33564  { (case "(($ac_try" in
33565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566  *) ac_try_echo=$ac_try;;
33567esac
33568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569  (eval "$ac_try") 2>&5
33570  ac_status=$?
33571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572  (exit $ac_status); }; } &&
33573	 { ac_try='test -s conftest.$ac_objext'
33574  { (case "(($ac_try" in
33575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576  *) ac_try_echo=$ac_try;;
33577esac
33578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33579  (eval "$ac_try") 2>&5
33580  ac_status=$?
33581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582  (exit $ac_status); }; }; then
33583  ac_lo=$ac_mid; break
33584else
33585  echo "$as_me: failed program was:" >&5
33586sed 's/^/| /' conftest.$ac_ext >&5
33587
33588	ac_hi=`expr '(' $ac_mid ')' - 1`
33589			if test $ac_mid -le $ac_hi; then
33590			  ac_lo= ac_hi=
33591			  break
33592			fi
33593			ac_mid=`expr 2 '*' $ac_mid`
33594fi
33595
33596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33597  done
33598else
33599  echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602	ac_lo= ac_hi=
33603fi
33604
33605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33606fi
33607
33608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33609# Binary search between lo and hi bounds.
33610while test "x$ac_lo" != "x$ac_hi"; do
33611  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33612  cat >conftest.$ac_ext <<_ACEOF
33613/* confdefs.h.  */
33614_ACEOF
33615cat confdefs.h >>conftest.$ac_ext
33616cat >>conftest.$ac_ext <<_ACEOF
33617/* end confdefs.h.  */
33618
33619#include <errno.h>
33620#if HAVE_WCHAR_H
33621#include <wchar.h>
33622#endif
33623/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33624#include <stdio.h>
33625#include <stdlib.h>
33626
33627int
33628main ()
33629{
33630static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
33631test_array [0] = 0
33632
33633  ;
33634  return 0;
33635}
33636_ACEOF
33637rm -f conftest.$ac_objext
33638if { (ac_try="$ac_compile"
33639case "(($ac_try" in
33640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33641  *) ac_try_echo=$ac_try;;
33642esac
33643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33644  (eval "$ac_compile") 2>conftest.er1
33645  ac_status=$?
33646  grep -v '^ *+' conftest.er1 >conftest.err
33647  rm -f conftest.er1
33648  cat conftest.err >&5
33649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650  (exit $ac_status); } &&
33651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33652  { (case "(($ac_try" in
33653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654  *) ac_try_echo=$ac_try;;
33655esac
33656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657  (eval "$ac_try") 2>&5
33658  ac_status=$?
33659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660  (exit $ac_status); }; } &&
33661	 { ac_try='test -s conftest.$ac_objext'
33662  { (case "(($ac_try" in
33663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33664  *) ac_try_echo=$ac_try;;
33665esac
33666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33667  (eval "$ac_try") 2>&5
33668  ac_status=$?
33669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670  (exit $ac_status); }; }; then
33671  ac_hi=$ac_mid
33672else
33673  echo "$as_me: failed program was:" >&5
33674sed 's/^/| /' conftest.$ac_ext >&5
33675
33676	ac_lo=`expr '(' $ac_mid ')' + 1`
33677fi
33678
33679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33680done
33681case $ac_lo in
33682?*) ac_cv_decl_EILSEQ=$ac_lo;;
33683'')  ;;
33684esac
33685else
33686  cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h.  */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h.  */
33692
33693#include <errno.h>
33694#if HAVE_WCHAR_H
33695#include <wchar.h>
33696#endif
33697/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33698#include <stdio.h>
33699#include <stdlib.h>
33700
33701static long int longval () { return EILSEQ; }
33702static unsigned long int ulongval () { return EILSEQ; }
33703#include <stdio.h>
33704#include <stdlib.h>
33705int
33706main ()
33707{
33708
33709  FILE *f = fopen ("conftest.val", "w");
33710  if (! f)
33711    return 1;
33712  if ((EILSEQ) < 0)
33713    {
33714      long int i = longval ();
33715      if (i != (EILSEQ))
33716	return 1;
33717      fprintf (f, "%ld\n", i);
33718    }
33719  else
33720    {
33721      unsigned long int i = ulongval ();
33722      if (i != (EILSEQ))
33723	return 1;
33724      fprintf (f, "%lu\n", i);
33725    }
33726  return ferror (f) || fclose (f) != 0;
33727
33728  ;
33729  return 0;
33730}
33731_ACEOF
33732rm -f conftest$ac_exeext
33733if { (ac_try="$ac_link"
33734case "(($ac_try" in
33735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736  *) ac_try_echo=$ac_try;;
33737esac
33738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739  (eval "$ac_link") 2>&5
33740  ac_status=$?
33741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33743  { (case "(($ac_try" in
33744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745  *) ac_try_echo=$ac_try;;
33746esac
33747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748  (eval "$ac_try") 2>&5
33749  ac_status=$?
33750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751  (exit $ac_status); }; }; then
33752  ac_cv_decl_EILSEQ=`cat conftest.val`
33753else
33754  echo "$as_me: program exited with status $ac_status" >&5
33755echo "$as_me: failed program was:" >&5
33756sed 's/^/| /' conftest.$ac_ext >&5
33757
33758fi
33759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33760fi
33761rm -f conftest.val
33762      else
33763                                ac_cv_decl_EILSEQ=ENOENT
33764      fi
33765    fi
33766
33767fi
33768{ echo "$as_me:$LINENO: result: $ac_cv_decl_EILSEQ" >&5
33769echo "${ECHO_T}$ac_cv_decl_EILSEQ" >&6; }
33770  if test "$ac_cv_decl_EILSEQ" != yes; then
33771
33772cat >>confdefs.h <<_ACEOF
33773#define EILSEQ $ac_cv_decl_EILSEQ
33774_ACEOF
33775
33776    EILSEQ="$ac_cv_decl_EILSEQ"
33777
33778  fi
33779
33780
33781{ echo "$as_me:$LINENO: checking byte ordering" >&5
33782echo $ECHO_N "checking byte ordering... $ECHO_C" >&6; }
33783if test "${cl_cv_sys_endian+set}" = set; then
33784  echo $ECHO_N "(cached) $ECHO_C" >&6
33785else
33786
33787if test "$cross_compiling" = yes; then
33788  : # must guess the endianness
33789
33790else
33791  cat >conftest.$ac_ext <<_ACEOF
33792/* confdefs.h.  */
33793_ACEOF
33794cat confdefs.h >>conftest.$ac_ext
33795cat >>conftest.$ac_ext <<_ACEOF
33796/* end confdefs.h.  */
33797int main () {
33798  /* Are we little or big endian?  From Harbison&Steele.  */
33799  union
33800  {
33801    long l;
33802    char c[sizeof (long)];
33803  } u;
33804  u.l = 1;
33805  exit (u.c[0] == 1);
33806}
33807_ACEOF
33808rm -f conftest$ac_exeext
33809if { (ac_try="$ac_link"
33810case "(($ac_try" in
33811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812  *) ac_try_echo=$ac_try;;
33813esac
33814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815  (eval "$ac_link") 2>&5
33816  ac_status=$?
33817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33819  { (case "(($ac_try" in
33820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33821  *) ac_try_echo=$ac_try;;
33822esac
33823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33824  (eval "$ac_try") 2>&5
33825  ac_status=$?
33826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827  (exit $ac_status); }; }; then
33828  cl_cv_sys_endian="big endian"
33829else
33830  echo "$as_me: program exited with status $ac_status" >&5
33831echo "$as_me: failed program was:" >&5
33832sed 's/^/| /' conftest.$ac_ext >&5
33833
33834( exit $ac_status )
33835cl_cv_sys_endian="little endian"
33836fi
33837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33838fi
33839
33840
33841if test -z "$cl_cv_sys_endian"; then
33842cat >conftest.$ac_ext <<_ACEOF
33843/* confdefs.h.  */
33844_ACEOF
33845cat confdefs.h >>conftest.$ac_ext
33846cat >>conftest.$ac_ext <<_ACEOF
33847/* end confdefs.h.  */
33848#if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
33849  yes
33850#endif
33851
33852_ACEOF
33853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33854  $EGREP "yes" >/dev/null 2>&1; then
33855  cl_cv_sys_endian="big endian"
33856fi
33857rm -f conftest*
33858
33859fi
33860if test -z "$cl_cv_sys_endian"; then
33861cat >conftest.$ac_ext <<_ACEOF
33862/* confdefs.h.  */
33863_ACEOF
33864cat confdefs.h >>conftest.$ac_ext
33865cat >>conftest.$ac_ext <<_ACEOF
33866/* end confdefs.h.  */
33867#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
33868  yes
33869#endif
33870
33871_ACEOF
33872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33873  $EGREP "yes" >/dev/null 2>&1; then
33874  cl_cv_sys_endian="little endian"
33875fi
33876rm -f conftest*
33877
33878fi
33879if test -z "$cl_cv_sys_endian"; then
33880cl_cv_sys_endian="guessing little endian"
33881fi
33882
33883fi
33884{ echo "$as_me:$LINENO: result: $cl_cv_sys_endian" >&5
33885echo "${ECHO_T}$cl_cv_sys_endian" >&6; }
33886case "$cl_cv_sys_endian" in
33887  *little*)
33888
33889cat >>confdefs.h <<\_ACEOF
33890#define WORDS_LITTLEENDIAN 1
33891_ACEOF
33892 ;;
33893  *big*) ;;
33894esac
33895
33896
33897# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
33898# for constant arguments.  Useless!
33899{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
33900echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
33901if test "${ac_cv_working_alloca_h+set}" = set; then
33902  echo $ECHO_N "(cached) $ECHO_C" >&6
33903else
33904  cat >conftest.$ac_ext <<_ACEOF
33905/* confdefs.h.  */
33906_ACEOF
33907cat confdefs.h >>conftest.$ac_ext
33908cat >>conftest.$ac_ext <<_ACEOF
33909/* end confdefs.h.  */
33910#include <alloca.h>
33911int
33912main ()
33913{
33914char *p = (char *) alloca (2 * sizeof (int));
33915			  if (p) return 0;
33916  ;
33917  return 0;
33918}
33919_ACEOF
33920rm -f conftest.$ac_objext conftest$ac_exeext
33921if { (ac_try="$ac_link"
33922case "(($ac_try" in
33923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33924  *) ac_try_echo=$ac_try;;
33925esac
33926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33927  (eval "$ac_link") 2>conftest.er1
33928  ac_status=$?
33929  grep -v '^ *+' conftest.er1 >conftest.err
33930  rm -f conftest.er1
33931  cat conftest.err >&5
33932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933  (exit $ac_status); } &&
33934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33935  { (case "(($ac_try" in
33936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33937  *) ac_try_echo=$ac_try;;
33938esac
33939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33940  (eval "$ac_try") 2>&5
33941  ac_status=$?
33942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943  (exit $ac_status); }; } &&
33944	 { ac_try='test -s conftest$ac_exeext'
33945  { (case "(($ac_try" in
33946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947  *) ac_try_echo=$ac_try;;
33948esac
33949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950  (eval "$ac_try") 2>&5
33951  ac_status=$?
33952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953  (exit $ac_status); }; }; then
33954  ac_cv_working_alloca_h=yes
33955else
33956  echo "$as_me: failed program was:" >&5
33957sed 's/^/| /' conftest.$ac_ext >&5
33958
33959	ac_cv_working_alloca_h=no
33960fi
33961
33962rm -f core conftest.err conftest.$ac_objext \
33963      conftest$ac_exeext conftest.$ac_ext
33964fi
33965{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
33966echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
33967if test $ac_cv_working_alloca_h = yes; then
33968
33969cat >>confdefs.h <<\_ACEOF
33970#define HAVE_ALLOCA_H 1
33971_ACEOF
33972
33973fi
33974
33975{ echo "$as_me:$LINENO: checking for alloca" >&5
33976echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
33977if test "${ac_cv_func_alloca_works+set}" = set; then
33978  echo $ECHO_N "(cached) $ECHO_C" >&6
33979else
33980  cat >conftest.$ac_ext <<_ACEOF
33981/* confdefs.h.  */
33982_ACEOF
33983cat confdefs.h >>conftest.$ac_ext
33984cat >>conftest.$ac_ext <<_ACEOF
33985/* end confdefs.h.  */
33986#ifdef __GNUC__
33987# define alloca __builtin_alloca
33988#else
33989# ifdef _MSC_VER
33990#  include <malloc.h>
33991#  define alloca _alloca
33992# else
33993#  if HAVE_ALLOCA_H
33994#   include <alloca.h>
33995#  else
33996#   ifdef _AIX
33997 #pragma alloca
33998#   else
33999#    ifndef alloca /* predefined by HP cc +Olibcalls */
34000char *alloca ();
34001#    endif
34002#   endif
34003#  endif
34004# endif
34005#endif
34006
34007int
34008main ()
34009{
34010char *p = (char *) alloca (1);
34011				    if (p) return 0;
34012  ;
34013  return 0;
34014}
34015_ACEOF
34016rm -f conftest.$ac_objext conftest$ac_exeext
34017if { (ac_try="$ac_link"
34018case "(($ac_try" in
34019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020  *) ac_try_echo=$ac_try;;
34021esac
34022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023  (eval "$ac_link") 2>conftest.er1
34024  ac_status=$?
34025  grep -v '^ *+' conftest.er1 >conftest.err
34026  rm -f conftest.er1
34027  cat conftest.err >&5
34028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029  (exit $ac_status); } &&
34030	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34031  { (case "(($ac_try" in
34032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033  *) ac_try_echo=$ac_try;;
34034esac
34035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036  (eval "$ac_try") 2>&5
34037  ac_status=$?
34038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039  (exit $ac_status); }; } &&
34040	 { ac_try='test -s conftest$ac_exeext'
34041  { (case "(($ac_try" in
34042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34043  *) ac_try_echo=$ac_try;;
34044esac
34045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34046  (eval "$ac_try") 2>&5
34047  ac_status=$?
34048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049  (exit $ac_status); }; }; then
34050  ac_cv_func_alloca_works=yes
34051else
34052  echo "$as_me: failed program was:" >&5
34053sed 's/^/| /' conftest.$ac_ext >&5
34054
34055	ac_cv_func_alloca_works=no
34056fi
34057
34058rm -f core conftest.err conftest.$ac_objext \
34059      conftest$ac_exeext conftest.$ac_ext
34060fi
34061{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
34062echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
34063
34064if test $ac_cv_func_alloca_works = yes; then
34065
34066cat >>confdefs.h <<\_ACEOF
34067#define HAVE_ALLOCA 1
34068_ACEOF
34069
34070else
34071  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
34072# that cause trouble.  Some versions do not even contain alloca or
34073# contain a buggy version.  If you still want to use their alloca,
34074# use ar to extract alloca.o from them instead of compiling alloca.c.
34075
34076ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
34077
34078cat >>confdefs.h <<\_ACEOF
34079#define C_ALLOCA 1
34080_ACEOF
34081
34082
34083{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
34084echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
34085if test "${ac_cv_os_cray+set}" = set; then
34086  echo $ECHO_N "(cached) $ECHO_C" >&6
34087else
34088  cat >conftest.$ac_ext <<_ACEOF
34089/* confdefs.h.  */
34090_ACEOF
34091cat confdefs.h >>conftest.$ac_ext
34092cat >>conftest.$ac_ext <<_ACEOF
34093/* end confdefs.h.  */
34094#if defined CRAY && ! defined CRAY2
34095webecray
34096#else
34097wenotbecray
34098#endif
34099
34100_ACEOF
34101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34102  $EGREP "webecray" >/dev/null 2>&1; then
34103  ac_cv_os_cray=yes
34104else
34105  ac_cv_os_cray=no
34106fi
34107rm -f conftest*
34108
34109fi
34110{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
34111echo "${ECHO_T}$ac_cv_os_cray" >&6; }
34112if test $ac_cv_os_cray = yes; then
34113  for ac_func in _getb67 GETB67 getb67; do
34114    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34118  echo $ECHO_N "(cached) $ECHO_C" >&6
34119else
34120  cat >conftest.$ac_ext <<_ACEOF
34121/* confdefs.h.  */
34122_ACEOF
34123cat confdefs.h >>conftest.$ac_ext
34124cat >>conftest.$ac_ext <<_ACEOF
34125/* end confdefs.h.  */
34126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34127   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34128#define $ac_func innocuous_$ac_func
34129
34130/* System header to define __stub macros and hopefully few prototypes,
34131    which can conflict with char $ac_func (); below.
34132    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34133    <limits.h> exists even on freestanding compilers.  */
34134
34135#ifdef __STDC__
34136# include <limits.h>
34137#else
34138# include <assert.h>
34139#endif
34140
34141#undef $ac_func
34142
34143/* Override any GCC internal prototype to avoid an error.
34144   Use char because int might match the return type of a GCC
34145   builtin and then its argument prototype would still apply.  */
34146#ifdef __cplusplus
34147extern "C"
34148#endif
34149char $ac_func ();
34150/* The GNU C library defines this for functions which it implements
34151    to always fail with ENOSYS.  Some functions are actually named
34152    something starting with __ and the normal name is an alias.  */
34153#if defined __stub_$ac_func || defined __stub___$ac_func
34154choke me
34155#endif
34156
34157int
34158main ()
34159{
34160return $ac_func ();
34161  ;
34162  return 0;
34163}
34164_ACEOF
34165rm -f conftest.$ac_objext conftest$ac_exeext
34166if { (ac_try="$ac_link"
34167case "(($ac_try" in
34168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169  *) ac_try_echo=$ac_try;;
34170esac
34171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34172  (eval "$ac_link") 2>conftest.er1
34173  ac_status=$?
34174  grep -v '^ *+' conftest.er1 >conftest.err
34175  rm -f conftest.er1
34176  cat conftest.err >&5
34177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178  (exit $ac_status); } &&
34179	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34180  { (case "(($ac_try" in
34181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34182  *) ac_try_echo=$ac_try;;
34183esac
34184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34185  (eval "$ac_try") 2>&5
34186  ac_status=$?
34187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188  (exit $ac_status); }; } &&
34189	 { ac_try='test -s conftest$ac_exeext'
34190  { (case "(($ac_try" in
34191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34192  *) ac_try_echo=$ac_try;;
34193esac
34194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34195  (eval "$ac_try") 2>&5
34196  ac_status=$?
34197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198  (exit $ac_status); }; }; then
34199  eval "$as_ac_var=yes"
34200else
34201  echo "$as_me: failed program was:" >&5
34202sed 's/^/| /' conftest.$ac_ext >&5
34203
34204	eval "$as_ac_var=no"
34205fi
34206
34207rm -f core conftest.err conftest.$ac_objext \
34208      conftest$ac_exeext conftest.$ac_ext
34209fi
34210ac_res=`eval echo '${'$as_ac_var'}'`
34211	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34212echo "${ECHO_T}$ac_res" >&6; }
34213if test `eval echo '${'$as_ac_var'}'` = yes; then
34214
34215cat >>confdefs.h <<_ACEOF
34216#define CRAY_STACKSEG_END $ac_func
34217_ACEOF
34218
34219    break
34220fi
34221
34222  done
34223fi
34224
34225{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
34226echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
34227if test "${ac_cv_c_stack_direction+set}" = set; then
34228  echo $ECHO_N "(cached) $ECHO_C" >&6
34229else
34230  if test "$cross_compiling" = yes; then
34231  ac_cv_c_stack_direction=0
34232else
34233  cat >conftest.$ac_ext <<_ACEOF
34234/* confdefs.h.  */
34235_ACEOF
34236cat confdefs.h >>conftest.$ac_ext
34237cat >>conftest.$ac_ext <<_ACEOF
34238/* end confdefs.h.  */
34239$ac_includes_default
34240int
34241find_stack_direction ()
34242{
34243  static char *addr = 0;
34244  auto char dummy;
34245  if (addr == 0)
34246    {
34247      addr = &dummy;
34248      return find_stack_direction ();
34249    }
34250  else
34251    return (&dummy > addr) ? 1 : -1;
34252}
34253
34254int
34255main ()
34256{
34257  return find_stack_direction () < 0;
34258}
34259_ACEOF
34260rm -f conftest$ac_exeext
34261if { (ac_try="$ac_link"
34262case "(($ac_try" in
34263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264  *) ac_try_echo=$ac_try;;
34265esac
34266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267  (eval "$ac_link") 2>&5
34268  ac_status=$?
34269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34271  { (case "(($ac_try" in
34272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34273  *) ac_try_echo=$ac_try;;
34274esac
34275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34276  (eval "$ac_try") 2>&5
34277  ac_status=$?
34278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279  (exit $ac_status); }; }; then
34280  ac_cv_c_stack_direction=1
34281else
34282  echo "$as_me: program exited with status $ac_status" >&5
34283echo "$as_me: failed program was:" >&5
34284sed 's/^/| /' conftest.$ac_ext >&5
34285
34286( exit $ac_status )
34287ac_cv_c_stack_direction=-1
34288fi
34289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34290fi
34291
34292
34293fi
34294{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
34295echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
34296
34297cat >>confdefs.h <<_ACEOF
34298#define STACK_DIRECTION $ac_cv_c_stack_direction
34299_ACEOF
34300
34301
34302fi
34303
34304
34305
34306for ac_header in stdlib.h
34307do
34308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34310  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34313  echo $ECHO_N "(cached) $ECHO_C" >&6
34314fi
34315ac_res=`eval echo '${'$as_ac_Header'}'`
34316	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34317echo "${ECHO_T}$ac_res" >&6; }
34318else
34319  # Is the header compilable?
34320{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34322cat >conftest.$ac_ext <<_ACEOF
34323/* confdefs.h.  */
34324_ACEOF
34325cat confdefs.h >>conftest.$ac_ext
34326cat >>conftest.$ac_ext <<_ACEOF
34327/* end confdefs.h.  */
34328$ac_includes_default
34329#include <$ac_header>
34330_ACEOF
34331rm -f conftest.$ac_objext
34332if { (ac_try="$ac_compile"
34333case "(($ac_try" in
34334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34335  *) ac_try_echo=$ac_try;;
34336esac
34337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34338  (eval "$ac_compile") 2>conftest.er1
34339  ac_status=$?
34340  grep -v '^ *+' conftest.er1 >conftest.err
34341  rm -f conftest.er1
34342  cat conftest.err >&5
34343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34344  (exit $ac_status); } &&
34345	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34346  { (case "(($ac_try" in
34347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348  *) ac_try_echo=$ac_try;;
34349esac
34350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351  (eval "$ac_try") 2>&5
34352  ac_status=$?
34353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354  (exit $ac_status); }; } &&
34355	 { ac_try='test -s conftest.$ac_objext'
34356  { (case "(($ac_try" in
34357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34358  *) ac_try_echo=$ac_try;;
34359esac
34360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34361  (eval "$ac_try") 2>&5
34362  ac_status=$?
34363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364  (exit $ac_status); }; }; then
34365  ac_header_compiler=yes
34366else
34367  echo "$as_me: failed program was:" >&5
34368sed 's/^/| /' conftest.$ac_ext >&5
34369
34370	ac_header_compiler=no
34371fi
34372
34373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34374{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34375echo "${ECHO_T}$ac_header_compiler" >&6; }
34376
34377# Is the header present?
34378{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34380cat >conftest.$ac_ext <<_ACEOF
34381/* confdefs.h.  */
34382_ACEOF
34383cat confdefs.h >>conftest.$ac_ext
34384cat >>conftest.$ac_ext <<_ACEOF
34385/* end confdefs.h.  */
34386#include <$ac_header>
34387_ACEOF
34388if { (ac_try="$ac_cpp conftest.$ac_ext"
34389case "(($ac_try" in
34390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34391  *) ac_try_echo=$ac_try;;
34392esac
34393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34394  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34395  ac_status=$?
34396  grep -v '^ *+' conftest.er1 >conftest.err
34397  rm -f conftest.er1
34398  cat conftest.err >&5
34399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400  (exit $ac_status); } >/dev/null; then
34401  if test -s conftest.err; then
34402    ac_cpp_err=$ac_c_preproc_warn_flag
34403    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34404  else
34405    ac_cpp_err=
34406  fi
34407else
34408  ac_cpp_err=yes
34409fi
34410if test -z "$ac_cpp_err"; then
34411  ac_header_preproc=yes
34412else
34413  echo "$as_me: failed program was:" >&5
34414sed 's/^/| /' conftest.$ac_ext >&5
34415
34416  ac_header_preproc=no
34417fi
34418
34419rm -f conftest.err conftest.$ac_ext
34420{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34421echo "${ECHO_T}$ac_header_preproc" >&6; }
34422
34423# So?  What about this header?
34424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34425  yes:no: )
34426    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34428    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34430    ac_header_preproc=yes
34431    ;;
34432  no:yes:* )
34433    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34435    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34436echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34437    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34439    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34440echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34441    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34443    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34445
34446    ;;
34447esac
34448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34451  echo $ECHO_N "(cached) $ECHO_C" >&6
34452else
34453  eval "$as_ac_Header=\$ac_header_preproc"
34454fi
34455ac_res=`eval echo '${'$as_ac_Header'}'`
34456	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34457echo "${ECHO_T}$ac_res" >&6; }
34458
34459fi
34460if test `eval echo '${'$as_ac_Header'}'` = yes; then
34461  cat >>confdefs.h <<_ACEOF
34462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34463_ACEOF
34464
34465fi
34466
34467done
34468
34469
34470
34471
34472for ac_header in string.h
34473do
34474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34476  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34479  echo $ECHO_N "(cached) $ECHO_C" >&6
34480fi
34481ac_res=`eval echo '${'$as_ac_Header'}'`
34482	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34483echo "${ECHO_T}$ac_res" >&6; }
34484else
34485  # Is the header compilable?
34486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34488cat >conftest.$ac_ext <<_ACEOF
34489/* confdefs.h.  */
34490_ACEOF
34491cat confdefs.h >>conftest.$ac_ext
34492cat >>conftest.$ac_ext <<_ACEOF
34493/* end confdefs.h.  */
34494$ac_includes_default
34495#include <$ac_header>
34496_ACEOF
34497rm -f conftest.$ac_objext
34498if { (ac_try="$ac_compile"
34499case "(($ac_try" in
34500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34501  *) ac_try_echo=$ac_try;;
34502esac
34503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34504  (eval "$ac_compile") 2>conftest.er1
34505  ac_status=$?
34506  grep -v '^ *+' conftest.er1 >conftest.err
34507  rm -f conftest.er1
34508  cat conftest.err >&5
34509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510  (exit $ac_status); } &&
34511	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34512  { (case "(($ac_try" in
34513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34514  *) ac_try_echo=$ac_try;;
34515esac
34516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34517  (eval "$ac_try") 2>&5
34518  ac_status=$?
34519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520  (exit $ac_status); }; } &&
34521	 { ac_try='test -s conftest.$ac_objext'
34522  { (case "(($ac_try" in
34523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34524  *) ac_try_echo=$ac_try;;
34525esac
34526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34527  (eval "$ac_try") 2>&5
34528  ac_status=$?
34529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530  (exit $ac_status); }; }; then
34531  ac_header_compiler=yes
34532else
34533  echo "$as_me: failed program was:" >&5
34534sed 's/^/| /' conftest.$ac_ext >&5
34535
34536	ac_header_compiler=no
34537fi
34538
34539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34541echo "${ECHO_T}$ac_header_compiler" >&6; }
34542
34543# Is the header present?
34544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34546cat >conftest.$ac_ext <<_ACEOF
34547/* confdefs.h.  */
34548_ACEOF
34549cat confdefs.h >>conftest.$ac_ext
34550cat >>conftest.$ac_ext <<_ACEOF
34551/* end confdefs.h.  */
34552#include <$ac_header>
34553_ACEOF
34554if { (ac_try="$ac_cpp conftest.$ac_ext"
34555case "(($ac_try" in
34556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557  *) ac_try_echo=$ac_try;;
34558esac
34559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34560  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34561  ac_status=$?
34562  grep -v '^ *+' conftest.er1 >conftest.err
34563  rm -f conftest.er1
34564  cat conftest.err >&5
34565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566  (exit $ac_status); } >/dev/null; then
34567  if test -s conftest.err; then
34568    ac_cpp_err=$ac_c_preproc_warn_flag
34569    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34570  else
34571    ac_cpp_err=
34572  fi
34573else
34574  ac_cpp_err=yes
34575fi
34576if test -z "$ac_cpp_err"; then
34577  ac_header_preproc=yes
34578else
34579  echo "$as_me: failed program was:" >&5
34580sed 's/^/| /' conftest.$ac_ext >&5
34581
34582  ac_header_preproc=no
34583fi
34584
34585rm -f conftest.err conftest.$ac_ext
34586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34587echo "${ECHO_T}$ac_header_preproc" >&6; }
34588
34589# So?  What about this header?
34590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34591  yes:no: )
34592    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34596    ac_header_preproc=yes
34597    ;;
34598  no:yes:* )
34599    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34601    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34602echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34603    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34605    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34606echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34607    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34609    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34611
34612    ;;
34613esac
34614{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34617  echo $ECHO_N "(cached) $ECHO_C" >&6
34618else
34619  eval "$as_ac_Header=\$ac_header_preproc"
34620fi
34621ac_res=`eval echo '${'$as_ac_Header'}'`
34622	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34623echo "${ECHO_T}$ac_res" >&6; }
34624
34625fi
34626if test `eval echo '${'$as_ac_Header'}'` = yes; then
34627  cat >>confdefs.h <<_ACEOF
34628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34629_ACEOF
34630
34631fi
34632
34633done
34634
34635
34636
34637
34638
34639
34640
34641  if test $ac_cv_func_alloca_works = no; then
34642
34643
34644  :
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654  fi
34655
34656  # Define an additional variable used in the Makefile substitution.
34657
34658  cat >conftest.$ac_ext <<_ACEOF
34659/* confdefs.h.  */
34660_ACEOF
34661cat confdefs.h >>conftest.$ac_ext
34662cat >>conftest.$ac_ext <<_ACEOF
34663/* end confdefs.h.  */
34664
34665#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
34666  Need own alloca
34667#endif
34668
34669_ACEOF
34670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34671  $EGREP "Need own alloca" >/dev/null 2>&1; then
34672  ALLOCA_H=alloca.h
34673else
34674  ALLOCA_H=
34675fi
34676rm -f conftest*
34677
34678
34679
34680
34681
34682for ac_header in stdlib.h
34683do
34684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34686  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34689  echo $ECHO_N "(cached) $ECHO_C" >&6
34690fi
34691ac_res=`eval echo '${'$as_ac_Header'}'`
34692	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34693echo "${ECHO_T}$ac_res" >&6; }
34694else
34695  # Is the header compilable?
34696{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34698cat >conftest.$ac_ext <<_ACEOF
34699/* confdefs.h.  */
34700_ACEOF
34701cat confdefs.h >>conftest.$ac_ext
34702cat >>conftest.$ac_ext <<_ACEOF
34703/* end confdefs.h.  */
34704$ac_includes_default
34705#include <$ac_header>
34706_ACEOF
34707rm -f conftest.$ac_objext
34708if { (ac_try="$ac_compile"
34709case "(($ac_try" in
34710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34711  *) ac_try_echo=$ac_try;;
34712esac
34713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34714  (eval "$ac_compile") 2>conftest.er1
34715  ac_status=$?
34716  grep -v '^ *+' conftest.er1 >conftest.err
34717  rm -f conftest.er1
34718  cat conftest.err >&5
34719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720  (exit $ac_status); } &&
34721	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34722  { (case "(($ac_try" in
34723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34724  *) ac_try_echo=$ac_try;;
34725esac
34726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34727  (eval "$ac_try") 2>&5
34728  ac_status=$?
34729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730  (exit $ac_status); }; } &&
34731	 { ac_try='test -s conftest.$ac_objext'
34732  { (case "(($ac_try" in
34733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34734  *) ac_try_echo=$ac_try;;
34735esac
34736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34737  (eval "$ac_try") 2>&5
34738  ac_status=$?
34739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740  (exit $ac_status); }; }; then
34741  ac_header_compiler=yes
34742else
34743  echo "$as_me: failed program was:" >&5
34744sed 's/^/| /' conftest.$ac_ext >&5
34745
34746	ac_header_compiler=no
34747fi
34748
34749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34750{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34751echo "${ECHO_T}$ac_header_compiler" >&6; }
34752
34753# Is the header present?
34754{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34756cat >conftest.$ac_ext <<_ACEOF
34757/* confdefs.h.  */
34758_ACEOF
34759cat confdefs.h >>conftest.$ac_ext
34760cat >>conftest.$ac_ext <<_ACEOF
34761/* end confdefs.h.  */
34762#include <$ac_header>
34763_ACEOF
34764if { (ac_try="$ac_cpp conftest.$ac_ext"
34765case "(($ac_try" in
34766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34767  *) ac_try_echo=$ac_try;;
34768esac
34769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34770  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34771  ac_status=$?
34772  grep -v '^ *+' conftest.er1 >conftest.err
34773  rm -f conftest.er1
34774  cat conftest.err >&5
34775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776  (exit $ac_status); } >/dev/null; then
34777  if test -s conftest.err; then
34778    ac_cpp_err=$ac_c_preproc_warn_flag
34779    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34780  else
34781    ac_cpp_err=
34782  fi
34783else
34784  ac_cpp_err=yes
34785fi
34786if test -z "$ac_cpp_err"; then
34787  ac_header_preproc=yes
34788else
34789  echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792  ac_header_preproc=no
34793fi
34794
34795rm -f conftest.err conftest.$ac_ext
34796{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34797echo "${ECHO_T}$ac_header_preproc" >&6; }
34798
34799# So?  What about this header?
34800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34801  yes:no: )
34802    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34804    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34806    ac_header_preproc=yes
34807    ;;
34808  no:yes:* )
34809    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34811    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34812echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34813    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34815    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34816echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34817    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34819    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34821
34822    ;;
34823esac
34824{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34827  echo $ECHO_N "(cached) $ECHO_C" >&6
34828else
34829  eval "$as_ac_Header=\$ac_header_preproc"
34830fi
34831ac_res=`eval echo '${'$as_ac_Header'}'`
34832	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34833echo "${ECHO_T}$ac_res" >&6; }
34834
34835fi
34836if test `eval echo '${'$as_ac_Header'}'` = yes; then
34837  cat >>confdefs.h <<_ACEOF
34838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34839_ACEOF
34840
34841fi
34842
34843done
34844
34845{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
34846echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
34847if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
34848  echo $ECHO_N "(cached) $ECHO_C" >&6
34849else
34850  if test "$cross_compiling" = yes; then
34851  ac_cv_func_malloc_0_nonnull=no
34852else
34853  cat >conftest.$ac_ext <<_ACEOF
34854/* confdefs.h.  */
34855_ACEOF
34856cat confdefs.h >>conftest.$ac_ext
34857cat >>conftest.$ac_ext <<_ACEOF
34858/* end confdefs.h.  */
34859#if STDC_HEADERS || HAVE_STDLIB_H
34860# include <stdlib.h>
34861#else
34862char *malloc ();
34863#endif
34864
34865int
34866main ()
34867{
34868return ! malloc (0);
34869  ;
34870  return 0;
34871}
34872_ACEOF
34873rm -f conftest$ac_exeext
34874if { (ac_try="$ac_link"
34875case "(($ac_try" in
34876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34877  *) ac_try_echo=$ac_try;;
34878esac
34879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34880  (eval "$ac_link") 2>&5
34881  ac_status=$?
34882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34884  { (case "(($ac_try" in
34885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886  *) ac_try_echo=$ac_try;;
34887esac
34888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889  (eval "$ac_try") 2>&5
34890  ac_status=$?
34891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892  (exit $ac_status); }; }; then
34893  ac_cv_func_malloc_0_nonnull=yes
34894else
34895  echo "$as_me: program exited with status $ac_status" >&5
34896echo "$as_me: failed program was:" >&5
34897sed 's/^/| /' conftest.$ac_ext >&5
34898
34899( exit $ac_status )
34900ac_cv_func_malloc_0_nonnull=no
34901fi
34902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34903fi
34904
34905
34906fi
34907{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
34908echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
34909if test $ac_cv_func_malloc_0_nonnull = yes; then
34910  gl_cv_func_malloc_0_nonnull=1
34911else
34912  gl_cv_func_malloc_0_nonnull=0
34913fi
34914
34915
34916
34917cat >>confdefs.h <<_ACEOF
34918#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
34919_ACEOF
34920
34921
34922
34923  { echo "$as_me:$LINENO: checking for long long" >&5
34924echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34925if test "${ac_cv_type_long_long+set}" = set; then
34926  echo $ECHO_N "(cached) $ECHO_C" >&6
34927else
34928  cat >conftest.$ac_ext <<_ACEOF
34929/* confdefs.h.  */
34930_ACEOF
34931cat confdefs.h >>conftest.$ac_ext
34932cat >>conftest.$ac_ext <<_ACEOF
34933/* end confdefs.h.  */
34934long long ll = 1LL; int i = 63;
34935int
34936main ()
34937{
34938long long llmax = (long long) -1;
34939     return ll << i | ll >> i | llmax / ll | llmax % ll;
34940  ;
34941  return 0;
34942}
34943_ACEOF
34944rm -f conftest.$ac_objext conftest$ac_exeext
34945if { (ac_try="$ac_link"
34946case "(($ac_try" in
34947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34948  *) ac_try_echo=$ac_try;;
34949esac
34950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34951  (eval "$ac_link") 2>conftest.er1
34952  ac_status=$?
34953  grep -v '^ *+' conftest.er1 >conftest.err
34954  rm -f conftest.er1
34955  cat conftest.err >&5
34956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957  (exit $ac_status); } &&
34958	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34959  { (case "(($ac_try" in
34960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34961  *) ac_try_echo=$ac_try;;
34962esac
34963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34964  (eval "$ac_try") 2>&5
34965  ac_status=$?
34966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967  (exit $ac_status); }; } &&
34968	 { ac_try='test -s conftest$ac_exeext'
34969  { (case "(($ac_try" in
34970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34971  *) ac_try_echo=$ac_try;;
34972esac
34973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34974  (eval "$ac_try") 2>&5
34975  ac_status=$?
34976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977  (exit $ac_status); }; }; then
34978  ac_cv_type_long_long=yes
34979else
34980  echo "$as_me: failed program was:" >&5
34981sed 's/^/| /' conftest.$ac_ext >&5
34982
34983	ac_cv_type_long_long=no
34984fi
34985
34986rm -f core conftest.err conftest.$ac_objext \
34987      conftest$ac_exeext conftest.$ac_ext
34988fi
34989{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34990echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34991  if test $ac_cv_type_long_long = yes; then
34992
34993cat >>confdefs.h <<\_ACEOF
34994#define HAVE_LONG_LONG 1
34995_ACEOF
34996
34997  fi
34998
34999
35000  { echo "$as_me:$LINENO: checking for long double" >&5
35001echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
35002if test "${gt_cv_c_long_double+set}" = set; then
35003  echo $ECHO_N "(cached) $ECHO_C" >&6
35004else
35005  if test "$GCC" = yes; then
35006       gt_cv_c_long_double=yes
35007     else
35008       cat >conftest.$ac_ext <<_ACEOF
35009/* confdefs.h.  */
35010_ACEOF
35011cat confdefs.h >>conftest.$ac_ext
35012cat >>conftest.$ac_ext <<_ACEOF
35013/* end confdefs.h.  */
35014
35015         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
35016         long double foo = 0.0;
35017         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
35018         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
35019
35020int
35021main ()
35022{
35023
35024  ;
35025  return 0;
35026}
35027_ACEOF
35028rm -f conftest.$ac_objext
35029if { (ac_try="$ac_compile"
35030case "(($ac_try" in
35031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032  *) ac_try_echo=$ac_try;;
35033esac
35034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035  (eval "$ac_compile") 2>conftest.er1
35036  ac_status=$?
35037  grep -v '^ *+' conftest.er1 >conftest.err
35038  rm -f conftest.er1
35039  cat conftest.err >&5
35040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041  (exit $ac_status); } &&
35042	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35043  { (case "(($ac_try" in
35044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35045  *) ac_try_echo=$ac_try;;
35046esac
35047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35048  (eval "$ac_try") 2>&5
35049  ac_status=$?
35050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051  (exit $ac_status); }; } &&
35052	 { ac_try='test -s conftest.$ac_objext'
35053  { (case "(($ac_try" in
35054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35055  *) ac_try_echo=$ac_try;;
35056esac
35057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35058  (eval "$ac_try") 2>&5
35059  ac_status=$?
35060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061  (exit $ac_status); }; }; then
35062  gt_cv_c_long_double=yes
35063else
35064  echo "$as_me: failed program was:" >&5
35065sed 's/^/| /' conftest.$ac_ext >&5
35066
35067	gt_cv_c_long_double=no
35068fi
35069
35070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35071     fi
35072fi
35073{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
35074echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
35075  if test $gt_cv_c_long_double = yes; then
35076
35077cat >>confdefs.h <<\_ACEOF
35078#define HAVE_LONG_DOUBLE 1
35079_ACEOF
35080
35081  fi
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091for ac_header in sys/param.h
35092do
35093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35095  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35098  echo $ECHO_N "(cached) $ECHO_C" >&6
35099fi
35100ac_res=`eval echo '${'$as_ac_Header'}'`
35101	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35102echo "${ECHO_T}$ac_res" >&6; }
35103else
35104  # Is the header compilable?
35105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35107cat >conftest.$ac_ext <<_ACEOF
35108/* confdefs.h.  */
35109_ACEOF
35110cat confdefs.h >>conftest.$ac_ext
35111cat >>conftest.$ac_ext <<_ACEOF
35112/* end confdefs.h.  */
35113$ac_includes_default
35114#include <$ac_header>
35115_ACEOF
35116rm -f conftest.$ac_objext
35117if { (ac_try="$ac_compile"
35118case "(($ac_try" in
35119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35120  *) ac_try_echo=$ac_try;;
35121esac
35122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35123  (eval "$ac_compile") 2>conftest.er1
35124  ac_status=$?
35125  grep -v '^ *+' conftest.er1 >conftest.err
35126  rm -f conftest.er1
35127  cat conftest.err >&5
35128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129  (exit $ac_status); } &&
35130	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35131  { (case "(($ac_try" in
35132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35133  *) ac_try_echo=$ac_try;;
35134esac
35135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35136  (eval "$ac_try") 2>&5
35137  ac_status=$?
35138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139  (exit $ac_status); }; } &&
35140	 { ac_try='test -s conftest.$ac_objext'
35141  { (case "(($ac_try" in
35142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143  *) ac_try_echo=$ac_try;;
35144esac
35145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146  (eval "$ac_try") 2>&5
35147  ac_status=$?
35148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149  (exit $ac_status); }; }; then
35150  ac_header_compiler=yes
35151else
35152  echo "$as_me: failed program was:" >&5
35153sed 's/^/| /' conftest.$ac_ext >&5
35154
35155	ac_header_compiler=no
35156fi
35157
35158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35160echo "${ECHO_T}$ac_header_compiler" >&6; }
35161
35162# Is the header present?
35163{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35165cat >conftest.$ac_ext <<_ACEOF
35166/* confdefs.h.  */
35167_ACEOF
35168cat confdefs.h >>conftest.$ac_ext
35169cat >>conftest.$ac_ext <<_ACEOF
35170/* end confdefs.h.  */
35171#include <$ac_header>
35172_ACEOF
35173if { (ac_try="$ac_cpp conftest.$ac_ext"
35174case "(($ac_try" in
35175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35176  *) ac_try_echo=$ac_try;;
35177esac
35178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35179  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35180  ac_status=$?
35181  grep -v '^ *+' conftest.er1 >conftest.err
35182  rm -f conftest.er1
35183  cat conftest.err >&5
35184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185  (exit $ac_status); } >/dev/null; then
35186  if test -s conftest.err; then
35187    ac_cpp_err=$ac_c_preproc_warn_flag
35188    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35189  else
35190    ac_cpp_err=
35191  fi
35192else
35193  ac_cpp_err=yes
35194fi
35195if test -z "$ac_cpp_err"; then
35196  ac_header_preproc=yes
35197else
35198  echo "$as_me: failed program was:" >&5
35199sed 's/^/| /' conftest.$ac_ext >&5
35200
35201  ac_header_preproc=no
35202fi
35203
35204rm -f conftest.err conftest.$ac_ext
35205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35206echo "${ECHO_T}$ac_header_preproc" >&6; }
35207
35208# So?  What about this header?
35209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35210  yes:no: )
35211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35215    ac_header_preproc=yes
35216    ;;
35217  no:yes:* )
35218    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35220    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35221echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35222    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35224    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35225echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35228    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35230
35231    ;;
35232esac
35233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35236  echo $ECHO_N "(cached) $ECHO_C" >&6
35237else
35238  eval "$as_ac_Header=\$ac_header_preproc"
35239fi
35240ac_res=`eval echo '${'$as_ac_Header'}'`
35241	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35242echo "${ECHO_T}$ac_res" >&6; }
35243
35244fi
35245if test `eval echo '${'$as_ac_Header'}'` = yes; then
35246  cat >>confdefs.h <<_ACEOF
35247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35248_ACEOF
35249
35250fi
35251
35252done
35253
35254
35255
35256
35257for ac_header in unistd.h
35258do
35259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35261  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35264  echo $ECHO_N "(cached) $ECHO_C" >&6
35265fi
35266ac_res=`eval echo '${'$as_ac_Header'}'`
35267	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35268echo "${ECHO_T}$ac_res" >&6; }
35269else
35270  # Is the header compilable?
35271{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35273cat >conftest.$ac_ext <<_ACEOF
35274/* confdefs.h.  */
35275_ACEOF
35276cat confdefs.h >>conftest.$ac_ext
35277cat >>conftest.$ac_ext <<_ACEOF
35278/* end confdefs.h.  */
35279$ac_includes_default
35280#include <$ac_header>
35281_ACEOF
35282rm -f conftest.$ac_objext
35283if { (ac_try="$ac_compile"
35284case "(($ac_try" in
35285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35286  *) ac_try_echo=$ac_try;;
35287esac
35288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35289  (eval "$ac_compile") 2>conftest.er1
35290  ac_status=$?
35291  grep -v '^ *+' conftest.er1 >conftest.err
35292  rm -f conftest.er1
35293  cat conftest.err >&5
35294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295  (exit $ac_status); } &&
35296	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35297  { (case "(($ac_try" in
35298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35299  *) ac_try_echo=$ac_try;;
35300esac
35301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35302  (eval "$ac_try") 2>&5
35303  ac_status=$?
35304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305  (exit $ac_status); }; } &&
35306	 { ac_try='test -s conftest.$ac_objext'
35307  { (case "(($ac_try" in
35308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35309  *) ac_try_echo=$ac_try;;
35310esac
35311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35312  (eval "$ac_try") 2>&5
35313  ac_status=$?
35314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315  (exit $ac_status); }; }; then
35316  ac_header_compiler=yes
35317else
35318  echo "$as_me: failed program was:" >&5
35319sed 's/^/| /' conftest.$ac_ext >&5
35320
35321	ac_header_compiler=no
35322fi
35323
35324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35325{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35326echo "${ECHO_T}$ac_header_compiler" >&6; }
35327
35328# Is the header present?
35329{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35331cat >conftest.$ac_ext <<_ACEOF
35332/* confdefs.h.  */
35333_ACEOF
35334cat confdefs.h >>conftest.$ac_ext
35335cat >>conftest.$ac_ext <<_ACEOF
35336/* end confdefs.h.  */
35337#include <$ac_header>
35338_ACEOF
35339if { (ac_try="$ac_cpp conftest.$ac_ext"
35340case "(($ac_try" in
35341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35342  *) ac_try_echo=$ac_try;;
35343esac
35344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35345  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35346  ac_status=$?
35347  grep -v '^ *+' conftest.er1 >conftest.err
35348  rm -f conftest.er1
35349  cat conftest.err >&5
35350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351  (exit $ac_status); } >/dev/null; then
35352  if test -s conftest.err; then
35353    ac_cpp_err=$ac_c_preproc_warn_flag
35354    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35355  else
35356    ac_cpp_err=
35357  fi
35358else
35359  ac_cpp_err=yes
35360fi
35361if test -z "$ac_cpp_err"; then
35362  ac_header_preproc=yes
35363else
35364  echo "$as_me: failed program was:" >&5
35365sed 's/^/| /' conftest.$ac_ext >&5
35366
35367  ac_header_preproc=no
35368fi
35369
35370rm -f conftest.err conftest.$ac_ext
35371{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35372echo "${ECHO_T}$ac_header_preproc" >&6; }
35373
35374# So?  What about this header?
35375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35376  yes:no: )
35377    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35379    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35381    ac_header_preproc=yes
35382    ;;
35383  no:yes:* )
35384    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35386    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35387echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35388    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35390    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35391echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35392    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35394    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35396
35397    ;;
35398esac
35399{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35402  echo $ECHO_N "(cached) $ECHO_C" >&6
35403else
35404  eval "$as_ac_Header=\$ac_header_preproc"
35405fi
35406ac_res=`eval echo '${'$as_ac_Header'}'`
35407	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35408echo "${ECHO_T}$ac_res" >&6; }
35409
35410fi
35411if test `eval echo '${'$as_ac_Header'}'` = yes; then
35412  cat >>confdefs.h <<_ACEOF
35413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35414_ACEOF
35415
35416fi
35417
35418done
35419
35420
35421
35422
35423for ac_func in canonicalize_file_name
35424do
35425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35426{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35429  echo $ECHO_N "(cached) $ECHO_C" >&6
35430else
35431  cat >conftest.$ac_ext <<_ACEOF
35432/* confdefs.h.  */
35433_ACEOF
35434cat confdefs.h >>conftest.$ac_ext
35435cat >>conftest.$ac_ext <<_ACEOF
35436/* end confdefs.h.  */
35437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35438   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35439#define $ac_func innocuous_$ac_func
35440
35441/* System header to define __stub macros and hopefully few prototypes,
35442    which can conflict with char $ac_func (); below.
35443    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35444    <limits.h> exists even on freestanding compilers.  */
35445
35446#ifdef __STDC__
35447# include <limits.h>
35448#else
35449# include <assert.h>
35450#endif
35451
35452#undef $ac_func
35453
35454/* Override any GCC internal prototype to avoid an error.
35455   Use char because int might match the return type of a GCC
35456   builtin and then its argument prototype would still apply.  */
35457#ifdef __cplusplus
35458extern "C"
35459#endif
35460char $ac_func ();
35461/* The GNU C library defines this for functions which it implements
35462    to always fail with ENOSYS.  Some functions are actually named
35463    something starting with __ and the normal name is an alias.  */
35464#if defined __stub_$ac_func || defined __stub___$ac_func
35465choke me
35466#endif
35467
35468int
35469main ()
35470{
35471return $ac_func ();
35472  ;
35473  return 0;
35474}
35475_ACEOF
35476rm -f conftest.$ac_objext conftest$ac_exeext
35477if { (ac_try="$ac_link"
35478case "(($ac_try" in
35479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35480  *) ac_try_echo=$ac_try;;
35481esac
35482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35483  (eval "$ac_link") 2>conftest.er1
35484  ac_status=$?
35485  grep -v '^ *+' conftest.er1 >conftest.err
35486  rm -f conftest.er1
35487  cat conftest.err >&5
35488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489  (exit $ac_status); } &&
35490	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35491  { (case "(($ac_try" in
35492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35493  *) ac_try_echo=$ac_try;;
35494esac
35495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35496  (eval "$ac_try") 2>&5
35497  ac_status=$?
35498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499  (exit $ac_status); }; } &&
35500	 { ac_try='test -s conftest$ac_exeext'
35501  { (case "(($ac_try" in
35502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35503  *) ac_try_echo=$ac_try;;
35504esac
35505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35506  (eval "$ac_try") 2>&5
35507  ac_status=$?
35508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509  (exit $ac_status); }; }; then
35510  eval "$as_ac_var=yes"
35511else
35512  echo "$as_me: failed program was:" >&5
35513sed 's/^/| /' conftest.$ac_ext >&5
35514
35515	eval "$as_ac_var=no"
35516fi
35517
35518rm -f core conftest.err conftest.$ac_objext \
35519      conftest$ac_exeext conftest.$ac_ext
35520fi
35521ac_res=`eval echo '${'$as_ac_var'}'`
35522	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35523echo "${ECHO_T}$ac_res" >&6; }
35524if test `eval echo '${'$as_ac_var'}'` = yes; then
35525  cat >>confdefs.h <<_ACEOF
35526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35527_ACEOF
35528
35529fi
35530done
35531
35532  if test $ac_cv_func_canonicalize_file_name = no; then
35533    SRCLIBOBJS="$SRCLIBOBJS canonicalize.$ac_objext"
35534
35535cat >>confdefs.h <<\_ACEOF
35536#define realpath rpl_realpath
35537_ACEOF
35538
35539
35540
35541  :
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552for ac_func in getcwd readlink
35553do
35554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35555{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35557if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35558  echo $ECHO_N "(cached) $ECHO_C" >&6
35559else
35560  cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h.  */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h.  */
35566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35567   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35568#define $ac_func innocuous_$ac_func
35569
35570/* System header to define __stub macros and hopefully few prototypes,
35571    which can conflict with char $ac_func (); below.
35572    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35573    <limits.h> exists even on freestanding compilers.  */
35574
35575#ifdef __STDC__
35576# include <limits.h>
35577#else
35578# include <assert.h>
35579#endif
35580
35581#undef $ac_func
35582
35583/* Override any GCC internal prototype to avoid an error.
35584   Use char because int might match the return type of a GCC
35585   builtin and then its argument prototype would still apply.  */
35586#ifdef __cplusplus
35587extern "C"
35588#endif
35589char $ac_func ();
35590/* The GNU C library defines this for functions which it implements
35591    to always fail with ENOSYS.  Some functions are actually named
35592    something starting with __ and the normal name is an alias.  */
35593#if defined __stub_$ac_func || defined __stub___$ac_func
35594choke me
35595#endif
35596
35597int
35598main ()
35599{
35600return $ac_func ();
35601  ;
35602  return 0;
35603}
35604_ACEOF
35605rm -f conftest.$ac_objext conftest$ac_exeext
35606if { (ac_try="$ac_link"
35607case "(($ac_try" in
35608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35609  *) ac_try_echo=$ac_try;;
35610esac
35611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35612  (eval "$ac_link") 2>conftest.er1
35613  ac_status=$?
35614  grep -v '^ *+' conftest.er1 >conftest.err
35615  rm -f conftest.er1
35616  cat conftest.err >&5
35617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618  (exit $ac_status); } &&
35619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35620  { (case "(($ac_try" in
35621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35622  *) ac_try_echo=$ac_try;;
35623esac
35624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35625  (eval "$ac_try") 2>&5
35626  ac_status=$?
35627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628  (exit $ac_status); }; } &&
35629	 { ac_try='test -s conftest$ac_exeext'
35630  { (case "(($ac_try" in
35631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35632  *) ac_try_echo=$ac_try;;
35633esac
35634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35635  (eval "$ac_try") 2>&5
35636  ac_status=$?
35637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638  (exit $ac_status); }; }; then
35639  eval "$as_ac_var=yes"
35640else
35641  echo "$as_me: failed program was:" >&5
35642sed 's/^/| /' conftest.$ac_ext >&5
35643
35644	eval "$as_ac_var=no"
35645fi
35646
35647rm -f core conftest.err conftest.$ac_objext \
35648      conftest$ac_exeext conftest.$ac_ext
35649fi
35650ac_res=`eval echo '${'$as_ac_var'}'`
35651	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35652echo "${ECHO_T}$ac_res" >&6; }
35653if test `eval echo '${'$as_ac_var'}'` = yes; then
35654  cat >>confdefs.h <<_ACEOF
35655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35656_ACEOF
35657
35658fi
35659done
35660
35661
35662  fi
35663
35664
35665      { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
35666echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
35667if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
35668  echo $ECHO_N "(cached) $ECHO_C" >&6
35669else
35670  cat >conftest.$ac_ext <<_ACEOF
35671/* confdefs.h.  */
35672_ACEOF
35673cat confdefs.h >>conftest.$ac_ext
35674cat >>conftest.$ac_ext <<_ACEOF
35675/* end confdefs.h.  */
35676$ac_includes_default
35677int
35678main ()
35679{
35680#ifndef clearerr_unlocked
35681  char *p = (char *) clearerr_unlocked;
35682  return !p;
35683#endif
35684
35685  ;
35686  return 0;
35687}
35688_ACEOF
35689rm -f conftest.$ac_objext
35690if { (ac_try="$ac_compile"
35691case "(($ac_try" in
35692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35693  *) ac_try_echo=$ac_try;;
35694esac
35695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35696  (eval "$ac_compile") 2>conftest.er1
35697  ac_status=$?
35698  grep -v '^ *+' conftest.er1 >conftest.err
35699  rm -f conftest.er1
35700  cat conftest.err >&5
35701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702  (exit $ac_status); } &&
35703	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35704  { (case "(($ac_try" in
35705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35706  *) ac_try_echo=$ac_try;;
35707esac
35708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35709  (eval "$ac_try") 2>&5
35710  ac_status=$?
35711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712  (exit $ac_status); }; } &&
35713	 { ac_try='test -s conftest.$ac_objext'
35714  { (case "(($ac_try" in
35715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35716  *) ac_try_echo=$ac_try;;
35717esac
35718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35719  (eval "$ac_try") 2>&5
35720  ac_status=$?
35721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35722  (exit $ac_status); }; }; then
35723  ac_cv_have_decl_clearerr_unlocked=yes
35724else
35725  echo "$as_me: failed program was:" >&5
35726sed 's/^/| /' conftest.$ac_ext >&5
35727
35728	ac_cv_have_decl_clearerr_unlocked=no
35729fi
35730
35731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35732fi
35733{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
35734echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
35735if test $ac_cv_have_decl_clearerr_unlocked = yes; then
35736
35737cat >>confdefs.h <<_ACEOF
35738#define HAVE_DECL_CLEARERR_UNLOCKED 1
35739_ACEOF
35740
35741
35742else
35743  cat >>confdefs.h <<_ACEOF
35744#define HAVE_DECL_CLEARERR_UNLOCKED 0
35745_ACEOF
35746
35747
35748fi
35749
35750
35751
35752
35753      { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
35754echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
35755if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
35756  echo $ECHO_N "(cached) $ECHO_C" >&6
35757else
35758  cat >conftest.$ac_ext <<_ACEOF
35759/* confdefs.h.  */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h.  */
35764$ac_includes_default
35765int
35766main ()
35767{
35768#ifndef feof_unlocked
35769  char *p = (char *) feof_unlocked;
35770  return !p;
35771#endif
35772
35773  ;
35774  return 0;
35775}
35776_ACEOF
35777rm -f conftest.$ac_objext
35778if { (ac_try="$ac_compile"
35779case "(($ac_try" in
35780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781  *) ac_try_echo=$ac_try;;
35782esac
35783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784  (eval "$ac_compile") 2>conftest.er1
35785  ac_status=$?
35786  grep -v '^ *+' conftest.er1 >conftest.err
35787  rm -f conftest.er1
35788  cat conftest.err >&5
35789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790  (exit $ac_status); } &&
35791	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35792  { (case "(($ac_try" in
35793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794  *) ac_try_echo=$ac_try;;
35795esac
35796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35797  (eval "$ac_try") 2>&5
35798  ac_status=$?
35799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800  (exit $ac_status); }; } &&
35801	 { ac_try='test -s conftest.$ac_objext'
35802  { (case "(($ac_try" in
35803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35804  *) ac_try_echo=$ac_try;;
35805esac
35806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35807  (eval "$ac_try") 2>&5
35808  ac_status=$?
35809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810  (exit $ac_status); }; }; then
35811  ac_cv_have_decl_feof_unlocked=yes
35812else
35813  echo "$as_me: failed program was:" >&5
35814sed 's/^/| /' conftest.$ac_ext >&5
35815
35816	ac_cv_have_decl_feof_unlocked=no
35817fi
35818
35819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35820fi
35821{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
35822echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
35823if test $ac_cv_have_decl_feof_unlocked = yes; then
35824
35825cat >>confdefs.h <<_ACEOF
35826#define HAVE_DECL_FEOF_UNLOCKED 1
35827_ACEOF
35828
35829
35830else
35831  cat >>confdefs.h <<_ACEOF
35832#define HAVE_DECL_FEOF_UNLOCKED 0
35833_ACEOF
35834
35835
35836fi
35837
35838
35839
35840
35841      { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
35842echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
35843if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
35844  echo $ECHO_N "(cached) $ECHO_C" >&6
35845else
35846  cat >conftest.$ac_ext <<_ACEOF
35847/* confdefs.h.  */
35848_ACEOF
35849cat confdefs.h >>conftest.$ac_ext
35850cat >>conftest.$ac_ext <<_ACEOF
35851/* end confdefs.h.  */
35852$ac_includes_default
35853int
35854main ()
35855{
35856#ifndef ferror_unlocked
35857  char *p = (char *) ferror_unlocked;
35858  return !p;
35859#endif
35860
35861  ;
35862  return 0;
35863}
35864_ACEOF
35865rm -f conftest.$ac_objext
35866if { (ac_try="$ac_compile"
35867case "(($ac_try" in
35868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35869  *) ac_try_echo=$ac_try;;
35870esac
35871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35872  (eval "$ac_compile") 2>conftest.er1
35873  ac_status=$?
35874  grep -v '^ *+' conftest.er1 >conftest.err
35875  rm -f conftest.er1
35876  cat conftest.err >&5
35877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878  (exit $ac_status); } &&
35879	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35880  { (case "(($ac_try" in
35881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882  *) ac_try_echo=$ac_try;;
35883esac
35884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35885  (eval "$ac_try") 2>&5
35886  ac_status=$?
35887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888  (exit $ac_status); }; } &&
35889	 { ac_try='test -s conftest.$ac_objext'
35890  { (case "(($ac_try" in
35891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35892  *) ac_try_echo=$ac_try;;
35893esac
35894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35895  (eval "$ac_try") 2>&5
35896  ac_status=$?
35897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898  (exit $ac_status); }; }; then
35899  ac_cv_have_decl_ferror_unlocked=yes
35900else
35901  echo "$as_me: failed program was:" >&5
35902sed 's/^/| /' conftest.$ac_ext >&5
35903
35904	ac_cv_have_decl_ferror_unlocked=no
35905fi
35906
35907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35908fi
35909{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
35910echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
35911if test $ac_cv_have_decl_ferror_unlocked = yes; then
35912
35913cat >>confdefs.h <<_ACEOF
35914#define HAVE_DECL_FERROR_UNLOCKED 1
35915_ACEOF
35916
35917
35918else
35919  cat >>confdefs.h <<_ACEOF
35920#define HAVE_DECL_FERROR_UNLOCKED 0
35921_ACEOF
35922
35923
35924fi
35925
35926
35927
35928
35929      { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
35930echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
35931if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
35932  echo $ECHO_N "(cached) $ECHO_C" >&6
35933else
35934  cat >conftest.$ac_ext <<_ACEOF
35935/* confdefs.h.  */
35936_ACEOF
35937cat confdefs.h >>conftest.$ac_ext
35938cat >>conftest.$ac_ext <<_ACEOF
35939/* end confdefs.h.  */
35940$ac_includes_default
35941int
35942main ()
35943{
35944#ifndef fflush_unlocked
35945  char *p = (char *) fflush_unlocked;
35946  return !p;
35947#endif
35948
35949  ;
35950  return 0;
35951}
35952_ACEOF
35953rm -f conftest.$ac_objext
35954if { (ac_try="$ac_compile"
35955case "(($ac_try" in
35956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35957  *) ac_try_echo=$ac_try;;
35958esac
35959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35960  (eval "$ac_compile") 2>conftest.er1
35961  ac_status=$?
35962  grep -v '^ *+' conftest.er1 >conftest.err
35963  rm -f conftest.er1
35964  cat conftest.err >&5
35965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966  (exit $ac_status); } &&
35967	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35968  { (case "(($ac_try" in
35969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35970  *) ac_try_echo=$ac_try;;
35971esac
35972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35973  (eval "$ac_try") 2>&5
35974  ac_status=$?
35975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976  (exit $ac_status); }; } &&
35977	 { ac_try='test -s conftest.$ac_objext'
35978  { (case "(($ac_try" in
35979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35980  *) ac_try_echo=$ac_try;;
35981esac
35982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35983  (eval "$ac_try") 2>&5
35984  ac_status=$?
35985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986  (exit $ac_status); }; }; then
35987  ac_cv_have_decl_fflush_unlocked=yes
35988else
35989  echo "$as_me: failed program was:" >&5
35990sed 's/^/| /' conftest.$ac_ext >&5
35991
35992	ac_cv_have_decl_fflush_unlocked=no
35993fi
35994
35995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35996fi
35997{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
35998echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
35999if test $ac_cv_have_decl_fflush_unlocked = yes; then
36000
36001cat >>confdefs.h <<_ACEOF
36002#define HAVE_DECL_FFLUSH_UNLOCKED 1
36003_ACEOF
36004
36005
36006else
36007  cat >>confdefs.h <<_ACEOF
36008#define HAVE_DECL_FFLUSH_UNLOCKED 0
36009_ACEOF
36010
36011
36012fi
36013
36014
36015
36016
36017      { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
36018echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
36019if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
36020  echo $ECHO_N "(cached) $ECHO_C" >&6
36021else
36022  cat >conftest.$ac_ext <<_ACEOF
36023/* confdefs.h.  */
36024_ACEOF
36025cat confdefs.h >>conftest.$ac_ext
36026cat >>conftest.$ac_ext <<_ACEOF
36027/* end confdefs.h.  */
36028$ac_includes_default
36029int
36030main ()
36031{
36032#ifndef fgets_unlocked
36033  char *p = (char *) fgets_unlocked;
36034  return !p;
36035#endif
36036
36037  ;
36038  return 0;
36039}
36040_ACEOF
36041rm -f conftest.$ac_objext
36042if { (ac_try="$ac_compile"
36043case "(($ac_try" in
36044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36045  *) ac_try_echo=$ac_try;;
36046esac
36047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36048  (eval "$ac_compile") 2>conftest.er1
36049  ac_status=$?
36050  grep -v '^ *+' conftest.er1 >conftest.err
36051  rm -f conftest.er1
36052  cat conftest.err >&5
36053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054  (exit $ac_status); } &&
36055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36056  { (case "(($ac_try" in
36057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36058  *) ac_try_echo=$ac_try;;
36059esac
36060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36061  (eval "$ac_try") 2>&5
36062  ac_status=$?
36063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064  (exit $ac_status); }; } &&
36065	 { ac_try='test -s conftest.$ac_objext'
36066  { (case "(($ac_try" in
36067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36068  *) ac_try_echo=$ac_try;;
36069esac
36070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36071  (eval "$ac_try") 2>&5
36072  ac_status=$?
36073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074  (exit $ac_status); }; }; then
36075  ac_cv_have_decl_fgets_unlocked=yes
36076else
36077  echo "$as_me: failed program was:" >&5
36078sed 's/^/| /' conftest.$ac_ext >&5
36079
36080	ac_cv_have_decl_fgets_unlocked=no
36081fi
36082
36083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36084fi
36085{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
36086echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
36087if test $ac_cv_have_decl_fgets_unlocked = yes; then
36088
36089cat >>confdefs.h <<_ACEOF
36090#define HAVE_DECL_FGETS_UNLOCKED 1
36091_ACEOF
36092
36093
36094else
36095  cat >>confdefs.h <<_ACEOF
36096#define HAVE_DECL_FGETS_UNLOCKED 0
36097_ACEOF
36098
36099
36100fi
36101
36102
36103
36104
36105      { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
36106echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
36107if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
36108  echo $ECHO_N "(cached) $ECHO_C" >&6
36109else
36110  cat >conftest.$ac_ext <<_ACEOF
36111/* confdefs.h.  */
36112_ACEOF
36113cat confdefs.h >>conftest.$ac_ext
36114cat >>conftest.$ac_ext <<_ACEOF
36115/* end confdefs.h.  */
36116$ac_includes_default
36117int
36118main ()
36119{
36120#ifndef fputc_unlocked
36121  char *p = (char *) fputc_unlocked;
36122  return !p;
36123#endif
36124
36125  ;
36126  return 0;
36127}
36128_ACEOF
36129rm -f conftest.$ac_objext
36130if { (ac_try="$ac_compile"
36131case "(($ac_try" in
36132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36133  *) ac_try_echo=$ac_try;;
36134esac
36135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36136  (eval "$ac_compile") 2>conftest.er1
36137  ac_status=$?
36138  grep -v '^ *+' conftest.er1 >conftest.err
36139  rm -f conftest.er1
36140  cat conftest.err >&5
36141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142  (exit $ac_status); } &&
36143	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36144  { (case "(($ac_try" in
36145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36146  *) ac_try_echo=$ac_try;;
36147esac
36148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36149  (eval "$ac_try") 2>&5
36150  ac_status=$?
36151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152  (exit $ac_status); }; } &&
36153	 { ac_try='test -s conftest.$ac_objext'
36154  { (case "(($ac_try" in
36155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36156  *) ac_try_echo=$ac_try;;
36157esac
36158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36159  (eval "$ac_try") 2>&5
36160  ac_status=$?
36161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162  (exit $ac_status); }; }; then
36163  ac_cv_have_decl_fputc_unlocked=yes
36164else
36165  echo "$as_me: failed program was:" >&5
36166sed 's/^/| /' conftest.$ac_ext >&5
36167
36168	ac_cv_have_decl_fputc_unlocked=no
36169fi
36170
36171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36172fi
36173{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
36174echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
36175if test $ac_cv_have_decl_fputc_unlocked = yes; then
36176
36177cat >>confdefs.h <<_ACEOF
36178#define HAVE_DECL_FPUTC_UNLOCKED 1
36179_ACEOF
36180
36181
36182else
36183  cat >>confdefs.h <<_ACEOF
36184#define HAVE_DECL_FPUTC_UNLOCKED 0
36185_ACEOF
36186
36187
36188fi
36189
36190
36191
36192
36193      { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
36194echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
36195if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
36196  echo $ECHO_N "(cached) $ECHO_C" >&6
36197else
36198  cat >conftest.$ac_ext <<_ACEOF
36199/* confdefs.h.  */
36200_ACEOF
36201cat confdefs.h >>conftest.$ac_ext
36202cat >>conftest.$ac_ext <<_ACEOF
36203/* end confdefs.h.  */
36204$ac_includes_default
36205int
36206main ()
36207{
36208#ifndef fputs_unlocked
36209  char *p = (char *) fputs_unlocked;
36210  return !p;
36211#endif
36212
36213  ;
36214  return 0;
36215}
36216_ACEOF
36217rm -f conftest.$ac_objext
36218if { (ac_try="$ac_compile"
36219case "(($ac_try" in
36220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221  *) ac_try_echo=$ac_try;;
36222esac
36223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224  (eval "$ac_compile") 2>conftest.er1
36225  ac_status=$?
36226  grep -v '^ *+' conftest.er1 >conftest.err
36227  rm -f conftest.er1
36228  cat conftest.err >&5
36229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230  (exit $ac_status); } &&
36231	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36232  { (case "(($ac_try" in
36233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36234  *) ac_try_echo=$ac_try;;
36235esac
36236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36237  (eval "$ac_try") 2>&5
36238  ac_status=$?
36239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240  (exit $ac_status); }; } &&
36241	 { ac_try='test -s conftest.$ac_objext'
36242  { (case "(($ac_try" in
36243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244  *) ac_try_echo=$ac_try;;
36245esac
36246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36247  (eval "$ac_try") 2>&5
36248  ac_status=$?
36249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250  (exit $ac_status); }; }; then
36251  ac_cv_have_decl_fputs_unlocked=yes
36252else
36253  echo "$as_me: failed program was:" >&5
36254sed 's/^/| /' conftest.$ac_ext >&5
36255
36256	ac_cv_have_decl_fputs_unlocked=no
36257fi
36258
36259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36260fi
36261{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
36262echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
36263if test $ac_cv_have_decl_fputs_unlocked = yes; then
36264
36265cat >>confdefs.h <<_ACEOF
36266#define HAVE_DECL_FPUTS_UNLOCKED 1
36267_ACEOF
36268
36269
36270else
36271  cat >>confdefs.h <<_ACEOF
36272#define HAVE_DECL_FPUTS_UNLOCKED 0
36273_ACEOF
36274
36275
36276fi
36277
36278
36279
36280
36281      { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
36282echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
36283if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
36284  echo $ECHO_N "(cached) $ECHO_C" >&6
36285else
36286  cat >conftest.$ac_ext <<_ACEOF
36287/* confdefs.h.  */
36288_ACEOF
36289cat confdefs.h >>conftest.$ac_ext
36290cat >>conftest.$ac_ext <<_ACEOF
36291/* end confdefs.h.  */
36292$ac_includes_default
36293int
36294main ()
36295{
36296#ifndef fread_unlocked
36297  char *p = (char *) fread_unlocked;
36298  return !p;
36299#endif
36300
36301  ;
36302  return 0;
36303}
36304_ACEOF
36305rm -f conftest.$ac_objext
36306if { (ac_try="$ac_compile"
36307case "(($ac_try" in
36308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36309  *) ac_try_echo=$ac_try;;
36310esac
36311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36312  (eval "$ac_compile") 2>conftest.er1
36313  ac_status=$?
36314  grep -v '^ *+' conftest.er1 >conftest.err
36315  rm -f conftest.er1
36316  cat conftest.err >&5
36317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318  (exit $ac_status); } &&
36319	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36320  { (case "(($ac_try" in
36321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36322  *) ac_try_echo=$ac_try;;
36323esac
36324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36325  (eval "$ac_try") 2>&5
36326  ac_status=$?
36327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328  (exit $ac_status); }; } &&
36329	 { ac_try='test -s conftest.$ac_objext'
36330  { (case "(($ac_try" in
36331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36332  *) ac_try_echo=$ac_try;;
36333esac
36334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36335  (eval "$ac_try") 2>&5
36336  ac_status=$?
36337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36338  (exit $ac_status); }; }; then
36339  ac_cv_have_decl_fread_unlocked=yes
36340else
36341  echo "$as_me: failed program was:" >&5
36342sed 's/^/| /' conftest.$ac_ext >&5
36343
36344	ac_cv_have_decl_fread_unlocked=no
36345fi
36346
36347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36348fi
36349{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
36350echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
36351if test $ac_cv_have_decl_fread_unlocked = yes; then
36352
36353cat >>confdefs.h <<_ACEOF
36354#define HAVE_DECL_FREAD_UNLOCKED 1
36355_ACEOF
36356
36357
36358else
36359  cat >>confdefs.h <<_ACEOF
36360#define HAVE_DECL_FREAD_UNLOCKED 0
36361_ACEOF
36362
36363
36364fi
36365
36366
36367
36368
36369      { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
36370echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
36371if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
36372  echo $ECHO_N "(cached) $ECHO_C" >&6
36373else
36374  cat >conftest.$ac_ext <<_ACEOF
36375/* confdefs.h.  */
36376_ACEOF
36377cat confdefs.h >>conftest.$ac_ext
36378cat >>conftest.$ac_ext <<_ACEOF
36379/* end confdefs.h.  */
36380$ac_includes_default
36381int
36382main ()
36383{
36384#ifndef fwrite_unlocked
36385  char *p = (char *) fwrite_unlocked;
36386  return !p;
36387#endif
36388
36389  ;
36390  return 0;
36391}
36392_ACEOF
36393rm -f conftest.$ac_objext
36394if { (ac_try="$ac_compile"
36395case "(($ac_try" in
36396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36397  *) ac_try_echo=$ac_try;;
36398esac
36399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36400  (eval "$ac_compile") 2>conftest.er1
36401  ac_status=$?
36402  grep -v '^ *+' conftest.er1 >conftest.err
36403  rm -f conftest.er1
36404  cat conftest.err >&5
36405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406  (exit $ac_status); } &&
36407	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36408  { (case "(($ac_try" in
36409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36410  *) ac_try_echo=$ac_try;;
36411esac
36412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36413  (eval "$ac_try") 2>&5
36414  ac_status=$?
36415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416  (exit $ac_status); }; } &&
36417	 { ac_try='test -s conftest.$ac_objext'
36418  { (case "(($ac_try" in
36419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36420  *) ac_try_echo=$ac_try;;
36421esac
36422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36423  (eval "$ac_try") 2>&5
36424  ac_status=$?
36425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426  (exit $ac_status); }; }; then
36427  ac_cv_have_decl_fwrite_unlocked=yes
36428else
36429  echo "$as_me: failed program was:" >&5
36430sed 's/^/| /' conftest.$ac_ext >&5
36431
36432	ac_cv_have_decl_fwrite_unlocked=no
36433fi
36434
36435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36436fi
36437{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
36438echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
36439if test $ac_cv_have_decl_fwrite_unlocked = yes; then
36440
36441cat >>confdefs.h <<_ACEOF
36442#define HAVE_DECL_FWRITE_UNLOCKED 1
36443_ACEOF
36444
36445
36446else
36447  cat >>confdefs.h <<_ACEOF
36448#define HAVE_DECL_FWRITE_UNLOCKED 0
36449_ACEOF
36450
36451
36452fi
36453
36454
36455
36456
36457      { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36458echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
36459if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
36460  echo $ECHO_N "(cached) $ECHO_C" >&6
36461else
36462  cat >conftest.$ac_ext <<_ACEOF
36463/* confdefs.h.  */
36464_ACEOF
36465cat confdefs.h >>conftest.$ac_ext
36466cat >>conftest.$ac_ext <<_ACEOF
36467/* end confdefs.h.  */
36468$ac_includes_default
36469int
36470main ()
36471{
36472#ifndef getc_unlocked
36473  char *p = (char *) getc_unlocked;
36474  return !p;
36475#endif
36476
36477  ;
36478  return 0;
36479}
36480_ACEOF
36481rm -f conftest.$ac_objext
36482if { (ac_try="$ac_compile"
36483case "(($ac_try" in
36484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36485  *) ac_try_echo=$ac_try;;
36486esac
36487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36488  (eval "$ac_compile") 2>conftest.er1
36489  ac_status=$?
36490  grep -v '^ *+' conftest.er1 >conftest.err
36491  rm -f conftest.er1
36492  cat conftest.err >&5
36493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494  (exit $ac_status); } &&
36495	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36496  { (case "(($ac_try" in
36497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36498  *) ac_try_echo=$ac_try;;
36499esac
36500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36501  (eval "$ac_try") 2>&5
36502  ac_status=$?
36503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504  (exit $ac_status); }; } &&
36505	 { ac_try='test -s conftest.$ac_objext'
36506  { (case "(($ac_try" in
36507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36508  *) ac_try_echo=$ac_try;;
36509esac
36510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36511  (eval "$ac_try") 2>&5
36512  ac_status=$?
36513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514  (exit $ac_status); }; }; then
36515  ac_cv_have_decl_getc_unlocked=yes
36516else
36517  echo "$as_me: failed program was:" >&5
36518sed 's/^/| /' conftest.$ac_ext >&5
36519
36520	ac_cv_have_decl_getc_unlocked=no
36521fi
36522
36523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36524fi
36525{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36526echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
36527if test $ac_cv_have_decl_getc_unlocked = yes; then
36528
36529cat >>confdefs.h <<_ACEOF
36530#define HAVE_DECL_GETC_UNLOCKED 1
36531_ACEOF
36532
36533
36534else
36535  cat >>confdefs.h <<_ACEOF
36536#define HAVE_DECL_GETC_UNLOCKED 0
36537_ACEOF
36538
36539
36540fi
36541
36542
36543
36544
36545      { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
36546echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
36547if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
36548  echo $ECHO_N "(cached) $ECHO_C" >&6
36549else
36550  cat >conftest.$ac_ext <<_ACEOF
36551/* confdefs.h.  */
36552_ACEOF
36553cat confdefs.h >>conftest.$ac_ext
36554cat >>conftest.$ac_ext <<_ACEOF
36555/* end confdefs.h.  */
36556$ac_includes_default
36557int
36558main ()
36559{
36560#ifndef getchar_unlocked
36561  char *p = (char *) getchar_unlocked;
36562  return !p;
36563#endif
36564
36565  ;
36566  return 0;
36567}
36568_ACEOF
36569rm -f conftest.$ac_objext
36570if { (ac_try="$ac_compile"
36571case "(($ac_try" in
36572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36573  *) ac_try_echo=$ac_try;;
36574esac
36575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36576  (eval "$ac_compile") 2>conftest.er1
36577  ac_status=$?
36578  grep -v '^ *+' conftest.er1 >conftest.err
36579  rm -f conftest.er1
36580  cat conftest.err >&5
36581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582  (exit $ac_status); } &&
36583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36584  { (case "(($ac_try" in
36585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36586  *) ac_try_echo=$ac_try;;
36587esac
36588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36589  (eval "$ac_try") 2>&5
36590  ac_status=$?
36591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592  (exit $ac_status); }; } &&
36593	 { ac_try='test -s conftest.$ac_objext'
36594  { (case "(($ac_try" in
36595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36596  *) ac_try_echo=$ac_try;;
36597esac
36598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36599  (eval "$ac_try") 2>&5
36600  ac_status=$?
36601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602  (exit $ac_status); }; }; then
36603  ac_cv_have_decl_getchar_unlocked=yes
36604else
36605  echo "$as_me: failed program was:" >&5
36606sed 's/^/| /' conftest.$ac_ext >&5
36607
36608	ac_cv_have_decl_getchar_unlocked=no
36609fi
36610
36611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36612fi
36613{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
36614echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
36615if test $ac_cv_have_decl_getchar_unlocked = yes; then
36616
36617cat >>confdefs.h <<_ACEOF
36618#define HAVE_DECL_GETCHAR_UNLOCKED 1
36619_ACEOF
36620
36621
36622else
36623  cat >>confdefs.h <<_ACEOF
36624#define HAVE_DECL_GETCHAR_UNLOCKED 0
36625_ACEOF
36626
36627
36628fi
36629
36630
36631
36632
36633      { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
36634echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
36635if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
36636  echo $ECHO_N "(cached) $ECHO_C" >&6
36637else
36638  cat >conftest.$ac_ext <<_ACEOF
36639/* confdefs.h.  */
36640_ACEOF
36641cat confdefs.h >>conftest.$ac_ext
36642cat >>conftest.$ac_ext <<_ACEOF
36643/* end confdefs.h.  */
36644$ac_includes_default
36645int
36646main ()
36647{
36648#ifndef putc_unlocked
36649  char *p = (char *) putc_unlocked;
36650  return !p;
36651#endif
36652
36653  ;
36654  return 0;
36655}
36656_ACEOF
36657rm -f conftest.$ac_objext
36658if { (ac_try="$ac_compile"
36659case "(($ac_try" in
36660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36661  *) ac_try_echo=$ac_try;;
36662esac
36663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36664  (eval "$ac_compile") 2>conftest.er1
36665  ac_status=$?
36666  grep -v '^ *+' conftest.er1 >conftest.err
36667  rm -f conftest.er1
36668  cat conftest.err >&5
36669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670  (exit $ac_status); } &&
36671	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36672  { (case "(($ac_try" in
36673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36674  *) ac_try_echo=$ac_try;;
36675esac
36676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36677  (eval "$ac_try") 2>&5
36678  ac_status=$?
36679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680  (exit $ac_status); }; } &&
36681	 { ac_try='test -s conftest.$ac_objext'
36682  { (case "(($ac_try" in
36683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36684  *) ac_try_echo=$ac_try;;
36685esac
36686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36687  (eval "$ac_try") 2>&5
36688  ac_status=$?
36689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690  (exit $ac_status); }; }; then
36691  ac_cv_have_decl_putc_unlocked=yes
36692else
36693  echo "$as_me: failed program was:" >&5
36694sed 's/^/| /' conftest.$ac_ext >&5
36695
36696	ac_cv_have_decl_putc_unlocked=no
36697fi
36698
36699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36700fi
36701{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
36702echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
36703if test $ac_cv_have_decl_putc_unlocked = yes; then
36704
36705cat >>confdefs.h <<_ACEOF
36706#define HAVE_DECL_PUTC_UNLOCKED 1
36707_ACEOF
36708
36709
36710else
36711  cat >>confdefs.h <<_ACEOF
36712#define HAVE_DECL_PUTC_UNLOCKED 0
36713_ACEOF
36714
36715
36716fi
36717
36718
36719
36720
36721      { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
36722echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
36723if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
36724  echo $ECHO_N "(cached) $ECHO_C" >&6
36725else
36726  cat >conftest.$ac_ext <<_ACEOF
36727/* confdefs.h.  */
36728_ACEOF
36729cat confdefs.h >>conftest.$ac_ext
36730cat >>conftest.$ac_ext <<_ACEOF
36731/* end confdefs.h.  */
36732$ac_includes_default
36733int
36734main ()
36735{
36736#ifndef putchar_unlocked
36737  char *p = (char *) putchar_unlocked;
36738  return !p;
36739#endif
36740
36741  ;
36742  return 0;
36743}
36744_ACEOF
36745rm -f conftest.$ac_objext
36746if { (ac_try="$ac_compile"
36747case "(($ac_try" in
36748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36749  *) ac_try_echo=$ac_try;;
36750esac
36751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36752  (eval "$ac_compile") 2>conftest.er1
36753  ac_status=$?
36754  grep -v '^ *+' conftest.er1 >conftest.err
36755  rm -f conftest.er1
36756  cat conftest.err >&5
36757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758  (exit $ac_status); } &&
36759	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36760  { (case "(($ac_try" in
36761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36762  *) ac_try_echo=$ac_try;;
36763esac
36764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36765  (eval "$ac_try") 2>&5
36766  ac_status=$?
36767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768  (exit $ac_status); }; } &&
36769	 { ac_try='test -s conftest.$ac_objext'
36770  { (case "(($ac_try" in
36771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36772  *) ac_try_echo=$ac_try;;
36773esac
36774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36775  (eval "$ac_try") 2>&5
36776  ac_status=$?
36777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778  (exit $ac_status); }; }; then
36779  ac_cv_have_decl_putchar_unlocked=yes
36780else
36781  echo "$as_me: failed program was:" >&5
36782sed 's/^/| /' conftest.$ac_ext >&5
36783
36784	ac_cv_have_decl_putchar_unlocked=no
36785fi
36786
36787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36788fi
36789{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
36790echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
36791if test $ac_cv_have_decl_putchar_unlocked = yes; then
36792
36793cat >>confdefs.h <<_ACEOF
36794#define HAVE_DECL_PUTCHAR_UNLOCKED 1
36795_ACEOF
36796
36797
36798else
36799  cat >>confdefs.h <<_ACEOF
36800#define HAVE_DECL_PUTCHAR_UNLOCKED 0
36801_ACEOF
36802
36803
36804fi
36805
36806
36807
36808
36809
36810cat >>confdefs.h <<\_ACEOF
36811#define USE_UNLOCKED_IO 1
36812_ACEOF
36813
36814
36815
36816
36817
36818  :
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
36862echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
36863if test "${ac_cv_have_decl_strerror_r+set}" = set; then
36864  echo $ECHO_N "(cached) $ECHO_C" >&6
36865else
36866  cat >conftest.$ac_ext <<_ACEOF
36867/* confdefs.h.  */
36868_ACEOF
36869cat confdefs.h >>conftest.$ac_ext
36870cat >>conftest.$ac_ext <<_ACEOF
36871/* end confdefs.h.  */
36872$ac_includes_default
36873int
36874main ()
36875{
36876#ifndef strerror_r
36877  char *p = (char *) strerror_r;
36878  return !p;
36879#endif
36880
36881  ;
36882  return 0;
36883}
36884_ACEOF
36885rm -f conftest.$ac_objext
36886if { (ac_try="$ac_compile"
36887case "(($ac_try" in
36888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36889  *) ac_try_echo=$ac_try;;
36890esac
36891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36892  (eval "$ac_compile") 2>conftest.er1
36893  ac_status=$?
36894  grep -v '^ *+' conftest.er1 >conftest.err
36895  rm -f conftest.er1
36896  cat conftest.err >&5
36897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898  (exit $ac_status); } &&
36899	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36900  { (case "(($ac_try" in
36901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36902  *) ac_try_echo=$ac_try;;
36903esac
36904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36905  (eval "$ac_try") 2>&5
36906  ac_status=$?
36907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908  (exit $ac_status); }; } &&
36909	 { ac_try='test -s conftest.$ac_objext'
36910  { (case "(($ac_try" in
36911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36912  *) ac_try_echo=$ac_try;;
36913esac
36914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36915  (eval "$ac_try") 2>&5
36916  ac_status=$?
36917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918  (exit $ac_status); }; }; then
36919  ac_cv_have_decl_strerror_r=yes
36920else
36921  echo "$as_me: failed program was:" >&5
36922sed 's/^/| /' conftest.$ac_ext >&5
36923
36924	ac_cv_have_decl_strerror_r=no
36925fi
36926
36927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36928fi
36929{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
36930echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
36931if test $ac_cv_have_decl_strerror_r = yes; then
36932
36933cat >>confdefs.h <<_ACEOF
36934#define HAVE_DECL_STRERROR_R 1
36935_ACEOF
36936
36937
36938else
36939  cat >>confdefs.h <<_ACEOF
36940#define HAVE_DECL_STRERROR_R 0
36941_ACEOF
36942
36943
36944fi
36945
36946
36947
36948for ac_func in strerror_r
36949do
36950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36954  echo $ECHO_N "(cached) $ECHO_C" >&6
36955else
36956  cat >conftest.$ac_ext <<_ACEOF
36957/* confdefs.h.  */
36958_ACEOF
36959cat confdefs.h >>conftest.$ac_ext
36960cat >>conftest.$ac_ext <<_ACEOF
36961/* end confdefs.h.  */
36962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36964#define $ac_func innocuous_$ac_func
36965
36966/* System header to define __stub macros and hopefully few prototypes,
36967    which can conflict with char $ac_func (); below.
36968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36969    <limits.h> exists even on freestanding compilers.  */
36970
36971#ifdef __STDC__
36972# include <limits.h>
36973#else
36974# include <assert.h>
36975#endif
36976
36977#undef $ac_func
36978
36979/* Override any GCC internal prototype to avoid an error.
36980   Use char because int might match the return type of a GCC
36981   builtin and then its argument prototype would still apply.  */
36982#ifdef __cplusplus
36983extern "C"
36984#endif
36985char $ac_func ();
36986/* The GNU C library defines this for functions which it implements
36987    to always fail with ENOSYS.  Some functions are actually named
36988    something starting with __ and the normal name is an alias.  */
36989#if defined __stub_$ac_func || defined __stub___$ac_func
36990choke me
36991#endif
36992
36993int
36994main ()
36995{
36996return $ac_func ();
36997  ;
36998  return 0;
36999}
37000_ACEOF
37001rm -f conftest.$ac_objext conftest$ac_exeext
37002if { (ac_try="$ac_link"
37003case "(($ac_try" in
37004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37005  *) ac_try_echo=$ac_try;;
37006esac
37007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37008  (eval "$ac_link") 2>conftest.er1
37009  ac_status=$?
37010  grep -v '^ *+' conftest.er1 >conftest.err
37011  rm -f conftest.er1
37012  cat conftest.err >&5
37013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37014  (exit $ac_status); } &&
37015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37016  { (case "(($ac_try" in
37017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37018  *) ac_try_echo=$ac_try;;
37019esac
37020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37021  (eval "$ac_try") 2>&5
37022  ac_status=$?
37023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024  (exit $ac_status); }; } &&
37025	 { ac_try='test -s conftest$ac_exeext'
37026  { (case "(($ac_try" in
37027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37028  *) ac_try_echo=$ac_try;;
37029esac
37030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37031  (eval "$ac_try") 2>&5
37032  ac_status=$?
37033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034  (exit $ac_status); }; }; then
37035  eval "$as_ac_var=yes"
37036else
37037  echo "$as_me: failed program was:" >&5
37038sed 's/^/| /' conftest.$ac_ext >&5
37039
37040	eval "$as_ac_var=no"
37041fi
37042
37043rm -f core conftest.err conftest.$ac_objext \
37044      conftest$ac_exeext conftest.$ac_ext
37045fi
37046ac_res=`eval echo '${'$as_ac_var'}'`
37047	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37048echo "${ECHO_T}$ac_res" >&6; }
37049if test `eval echo '${'$as_ac_var'}'` = yes; then
37050  cat >>confdefs.h <<_ACEOF
37051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37052_ACEOF
37053
37054fi
37055done
37056
37057{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
37058echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
37059if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
37060  echo $ECHO_N "(cached) $ECHO_C" >&6
37061else
37062
37063    ac_cv_func_strerror_r_char_p=no
37064    if test $ac_cv_have_decl_strerror_r = yes; then
37065      cat >conftest.$ac_ext <<_ACEOF
37066/* confdefs.h.  */
37067_ACEOF
37068cat confdefs.h >>conftest.$ac_ext
37069cat >>conftest.$ac_ext <<_ACEOF
37070/* end confdefs.h.  */
37071$ac_includes_default
37072int
37073main ()
37074{
37075
37076	  char buf[100];
37077	  char x = *strerror_r (0, buf, sizeof buf);
37078	  char *p = strerror_r (0, buf, sizeof buf);
37079	  return !p || x;
37080
37081  ;
37082  return 0;
37083}
37084_ACEOF
37085rm -f conftest.$ac_objext
37086if { (ac_try="$ac_compile"
37087case "(($ac_try" in
37088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37089  *) ac_try_echo=$ac_try;;
37090esac
37091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37092  (eval "$ac_compile") 2>conftest.er1
37093  ac_status=$?
37094  grep -v '^ *+' conftest.er1 >conftest.err
37095  rm -f conftest.er1
37096  cat conftest.err >&5
37097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098  (exit $ac_status); } &&
37099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37100  { (case "(($ac_try" in
37101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37102  *) ac_try_echo=$ac_try;;
37103esac
37104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37105  (eval "$ac_try") 2>&5
37106  ac_status=$?
37107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37108  (exit $ac_status); }; } &&
37109	 { ac_try='test -s conftest.$ac_objext'
37110  { (case "(($ac_try" in
37111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37112  *) ac_try_echo=$ac_try;;
37113esac
37114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37115  (eval "$ac_try") 2>&5
37116  ac_status=$?
37117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37118  (exit $ac_status); }; }; then
37119  ac_cv_func_strerror_r_char_p=yes
37120else
37121  echo "$as_me: failed program was:" >&5
37122sed 's/^/| /' conftest.$ac_ext >&5
37123
37124
37125fi
37126
37127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37128    else
37129      # strerror_r is not declared.  Choose between
37130      # systems that have relatively inaccessible declarations for the
37131      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
37132      # former has a strerror_r that returns char*, while the latter
37133      # has a strerror_r that returns `int'.
37134      # This test should segfault on the DEC system.
37135      if test "$cross_compiling" = yes; then
37136  :
37137else
37138  cat >conftest.$ac_ext <<_ACEOF
37139/* confdefs.h.  */
37140_ACEOF
37141cat confdefs.h >>conftest.$ac_ext
37142cat >>conftest.$ac_ext <<_ACEOF
37143/* end confdefs.h.  */
37144$ac_includes_default
37145	extern char *strerror_r ();
37146int
37147main ()
37148{
37149char buf[100];
37150	  char x = *strerror_r (0, buf, sizeof buf);
37151	  return ! isalpha (x);
37152  ;
37153  return 0;
37154}
37155_ACEOF
37156rm -f conftest$ac_exeext
37157if { (ac_try="$ac_link"
37158case "(($ac_try" in
37159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37160  *) ac_try_echo=$ac_try;;
37161esac
37162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37163  (eval "$ac_link") 2>&5
37164  ac_status=$?
37165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37167  { (case "(($ac_try" in
37168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37169  *) ac_try_echo=$ac_try;;
37170esac
37171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37172  (eval "$ac_try") 2>&5
37173  ac_status=$?
37174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175  (exit $ac_status); }; }; then
37176  ac_cv_func_strerror_r_char_p=yes
37177else
37178  echo "$as_me: program exited with status $ac_status" >&5
37179echo "$as_me: failed program was:" >&5
37180sed 's/^/| /' conftest.$ac_ext >&5
37181
37182fi
37183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37184fi
37185
37186
37187    fi
37188
37189fi
37190{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
37191echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
37192if test $ac_cv_func_strerror_r_char_p = yes; then
37193
37194cat >>confdefs.h <<\_ACEOF
37195#define STRERROR_R_CHAR_P 1
37196_ACEOF
37197
37198fi
37199
37200
37201  { echo "$as_me:$LINENO: checking for error_at_line" >&5
37202echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
37203if test "${ac_cv_lib_error_at_line+set}" = set; then
37204  echo $ECHO_N "(cached) $ECHO_C" >&6
37205else
37206  cat >conftest.$ac_ext <<_ACEOF
37207/* confdefs.h.  */
37208_ACEOF
37209cat confdefs.h >>conftest.$ac_ext
37210cat >>conftest.$ac_ext <<_ACEOF
37211/* end confdefs.h.  */
37212$ac_includes_default
37213int
37214main ()
37215{
37216error_at_line (0, 0, "", 0, "");
37217  ;
37218  return 0;
37219}
37220_ACEOF
37221rm -f conftest.$ac_objext conftest$ac_exeext
37222if { (ac_try="$ac_link"
37223case "(($ac_try" in
37224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37225  *) ac_try_echo=$ac_try;;
37226esac
37227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37228  (eval "$ac_link") 2>conftest.er1
37229  ac_status=$?
37230  grep -v '^ *+' conftest.er1 >conftest.err
37231  rm -f conftest.er1
37232  cat conftest.err >&5
37233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234  (exit $ac_status); } &&
37235	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37236  { (case "(($ac_try" in
37237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37238  *) ac_try_echo=$ac_try;;
37239esac
37240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37241  (eval "$ac_try") 2>&5
37242  ac_status=$?
37243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244  (exit $ac_status); }; } &&
37245	 { ac_try='test -s conftest$ac_exeext'
37246  { (case "(($ac_try" in
37247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37248  *) ac_try_echo=$ac_try;;
37249esac
37250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37251  (eval "$ac_try") 2>&5
37252  ac_status=$?
37253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254  (exit $ac_status); }; }; then
37255  ac_cv_lib_error_at_line=yes
37256else
37257  echo "$as_me: failed program was:" >&5
37258sed 's/^/| /' conftest.$ac_ext >&5
37259
37260	ac_cv_lib_error_at_line=no
37261fi
37262
37263rm -f core conftest.err conftest.$ac_objext \
37264      conftest$ac_exeext conftest.$ac_ext
37265fi
37266{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
37267echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
37268if test $ac_cv_lib_error_at_line = no; then
37269  SRCLIBOBJS="$SRCLIBOBJS error.$ac_objext"
37270fi
37271
37272
37273
37274  :
37275
37276
37277
37278
37279  :
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291
37292for ac_func in setenv unsetenv
37293do
37294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37295{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37297if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37298  echo $ECHO_N "(cached) $ECHO_C" >&6
37299else
37300  cat >conftest.$ac_ext <<_ACEOF
37301/* confdefs.h.  */
37302_ACEOF
37303cat confdefs.h >>conftest.$ac_ext
37304cat >>conftest.$ac_ext <<_ACEOF
37305/* end confdefs.h.  */
37306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37307   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37308#define $ac_func innocuous_$ac_func
37309
37310/* System header to define __stub macros and hopefully few prototypes,
37311    which can conflict with char $ac_func (); below.
37312    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37313    <limits.h> exists even on freestanding compilers.  */
37314
37315#ifdef __STDC__
37316# include <limits.h>
37317#else
37318# include <assert.h>
37319#endif
37320
37321#undef $ac_func
37322
37323/* Override any GCC internal prototype to avoid an error.
37324   Use char because int might match the return type of a GCC
37325   builtin and then its argument prototype would still apply.  */
37326#ifdef __cplusplus
37327extern "C"
37328#endif
37329char $ac_func ();
37330/* The GNU C library defines this for functions which it implements
37331    to always fail with ENOSYS.  Some functions are actually named
37332    something starting with __ and the normal name is an alias.  */
37333#if defined __stub_$ac_func || defined __stub___$ac_func
37334choke me
37335#endif
37336
37337int
37338main ()
37339{
37340return $ac_func ();
37341  ;
37342  return 0;
37343}
37344_ACEOF
37345rm -f conftest.$ac_objext conftest$ac_exeext
37346if { (ac_try="$ac_link"
37347case "(($ac_try" in
37348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37349  *) ac_try_echo=$ac_try;;
37350esac
37351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37352  (eval "$ac_link") 2>conftest.er1
37353  ac_status=$?
37354  grep -v '^ *+' conftest.er1 >conftest.err
37355  rm -f conftest.er1
37356  cat conftest.err >&5
37357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358  (exit $ac_status); } &&
37359	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37360  { (case "(($ac_try" in
37361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37362  *) ac_try_echo=$ac_try;;
37363esac
37364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37365  (eval "$ac_try") 2>&5
37366  ac_status=$?
37367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368  (exit $ac_status); }; } &&
37369	 { ac_try='test -s conftest$ac_exeext'
37370  { (case "(($ac_try" in
37371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37372  *) ac_try_echo=$ac_try;;
37373esac
37374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37375  (eval "$ac_try") 2>&5
37376  ac_status=$?
37377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378  (exit $ac_status); }; }; then
37379  eval "$as_ac_var=yes"
37380else
37381  echo "$as_me: failed program was:" >&5
37382sed 's/^/| /' conftest.$ac_ext >&5
37383
37384	eval "$as_ac_var=no"
37385fi
37386
37387rm -f core conftest.err conftest.$ac_objext \
37388      conftest$ac_exeext conftest.$ac_ext
37389fi
37390ac_res=`eval echo '${'$as_ac_var'}'`
37391	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37392echo "${ECHO_T}$ac_res" >&6; }
37393if test `eval echo '${'$as_ac_var'}'` = yes; then
37394  cat >>confdefs.h <<_ACEOF
37395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37396_ACEOF
37397
37398else
37399  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
37400fi
37401done
37402
37403  if test $ac_cv_func_setenv = no; then
37404
37405
37406
37407  :
37408
37409
37410
37411
37412
37413
37414for ac_header in search.h
37415do
37416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37418  { echo "$as_me:$LINENO: checking for $ac_header" >&5
37419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37421  echo $ECHO_N "(cached) $ECHO_C" >&6
37422fi
37423ac_res=`eval echo '${'$as_ac_Header'}'`
37424	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37425echo "${ECHO_T}$ac_res" >&6; }
37426else
37427  # Is the header compilable?
37428{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
37429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37430cat >conftest.$ac_ext <<_ACEOF
37431/* confdefs.h.  */
37432_ACEOF
37433cat confdefs.h >>conftest.$ac_ext
37434cat >>conftest.$ac_ext <<_ACEOF
37435/* end confdefs.h.  */
37436$ac_includes_default
37437#include <$ac_header>
37438_ACEOF
37439rm -f conftest.$ac_objext
37440if { (ac_try="$ac_compile"
37441case "(($ac_try" in
37442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37443  *) ac_try_echo=$ac_try;;
37444esac
37445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37446  (eval "$ac_compile") 2>conftest.er1
37447  ac_status=$?
37448  grep -v '^ *+' conftest.er1 >conftest.err
37449  rm -f conftest.er1
37450  cat conftest.err >&5
37451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452  (exit $ac_status); } &&
37453	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37454  { (case "(($ac_try" in
37455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37456  *) ac_try_echo=$ac_try;;
37457esac
37458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37459  (eval "$ac_try") 2>&5
37460  ac_status=$?
37461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462  (exit $ac_status); }; } &&
37463	 { ac_try='test -s conftest.$ac_objext'
37464  { (case "(($ac_try" in
37465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37466  *) ac_try_echo=$ac_try;;
37467esac
37468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37469  (eval "$ac_try") 2>&5
37470  ac_status=$?
37471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472  (exit $ac_status); }; }; then
37473  ac_header_compiler=yes
37474else
37475  echo "$as_me: failed program was:" >&5
37476sed 's/^/| /' conftest.$ac_ext >&5
37477
37478	ac_header_compiler=no
37479fi
37480
37481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37482{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37483echo "${ECHO_T}$ac_header_compiler" >&6; }
37484
37485# Is the header present?
37486{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
37487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37488cat >conftest.$ac_ext <<_ACEOF
37489/* confdefs.h.  */
37490_ACEOF
37491cat confdefs.h >>conftest.$ac_ext
37492cat >>conftest.$ac_ext <<_ACEOF
37493/* end confdefs.h.  */
37494#include <$ac_header>
37495_ACEOF
37496if { (ac_try="$ac_cpp conftest.$ac_ext"
37497case "(($ac_try" in
37498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499  *) ac_try_echo=$ac_try;;
37500esac
37501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37502  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37503  ac_status=$?
37504  grep -v '^ *+' conftest.er1 >conftest.err
37505  rm -f conftest.er1
37506  cat conftest.err >&5
37507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508  (exit $ac_status); } >/dev/null; then
37509  if test -s conftest.err; then
37510    ac_cpp_err=$ac_c_preproc_warn_flag
37511    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37512  else
37513    ac_cpp_err=
37514  fi
37515else
37516  ac_cpp_err=yes
37517fi
37518if test -z "$ac_cpp_err"; then
37519  ac_header_preproc=yes
37520else
37521  echo "$as_me: failed program was:" >&5
37522sed 's/^/| /' conftest.$ac_ext >&5
37523
37524  ac_header_preproc=no
37525fi
37526
37527rm -f conftest.err conftest.$ac_ext
37528{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37529echo "${ECHO_T}$ac_header_preproc" >&6; }
37530
37531# So?  What about this header?
37532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37533  yes:no: )
37534    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37536    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37538    ac_header_preproc=yes
37539    ;;
37540  no:yes:* )
37541    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37543    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37544echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37545    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37547    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37548echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37549    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37551    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37553
37554    ;;
37555esac
37556{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37559  echo $ECHO_N "(cached) $ECHO_C" >&6
37560else
37561  eval "$as_ac_Header=\$ac_header_preproc"
37562fi
37563ac_res=`eval echo '${'$as_ac_Header'}'`
37564	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37565echo "${ECHO_T}$ac_res" >&6; }
37566
37567fi
37568if test `eval echo '${'$as_ac_Header'}'` = yes; then
37569  cat >>confdefs.h <<_ACEOF
37570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37571_ACEOF
37572
37573fi
37574
37575done
37576
37577
37578for ac_func in tsearch
37579do
37580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37584  echo $ECHO_N "(cached) $ECHO_C" >&6
37585else
37586  cat >conftest.$ac_ext <<_ACEOF
37587/* confdefs.h.  */
37588_ACEOF
37589cat confdefs.h >>conftest.$ac_ext
37590cat >>conftest.$ac_ext <<_ACEOF
37591/* end confdefs.h.  */
37592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37593   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37594#define $ac_func innocuous_$ac_func
37595
37596/* System header to define __stub macros and hopefully few prototypes,
37597    which can conflict with char $ac_func (); below.
37598    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37599    <limits.h> exists even on freestanding compilers.  */
37600
37601#ifdef __STDC__
37602# include <limits.h>
37603#else
37604# include <assert.h>
37605#endif
37606
37607#undef $ac_func
37608
37609/* Override any GCC internal prototype to avoid an error.
37610   Use char because int might match the return type of a GCC
37611   builtin and then its argument prototype would still apply.  */
37612#ifdef __cplusplus
37613extern "C"
37614#endif
37615char $ac_func ();
37616/* The GNU C library defines this for functions which it implements
37617    to always fail with ENOSYS.  Some functions are actually named
37618    something starting with __ and the normal name is an alias.  */
37619#if defined __stub_$ac_func || defined __stub___$ac_func
37620choke me
37621#endif
37622
37623int
37624main ()
37625{
37626return $ac_func ();
37627  ;
37628  return 0;
37629}
37630_ACEOF
37631rm -f conftest.$ac_objext conftest$ac_exeext
37632if { (ac_try="$ac_link"
37633case "(($ac_try" in
37634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37635  *) ac_try_echo=$ac_try;;
37636esac
37637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37638  (eval "$ac_link") 2>conftest.er1
37639  ac_status=$?
37640  grep -v '^ *+' conftest.er1 >conftest.err
37641  rm -f conftest.er1
37642  cat conftest.err >&5
37643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644  (exit $ac_status); } &&
37645	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37646  { (case "(($ac_try" in
37647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37648  *) ac_try_echo=$ac_try;;
37649esac
37650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37651  (eval "$ac_try") 2>&5
37652  ac_status=$?
37653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654  (exit $ac_status); }; } &&
37655	 { ac_try='test -s conftest$ac_exeext'
37656  { (case "(($ac_try" in
37657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37658  *) ac_try_echo=$ac_try;;
37659esac
37660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37661  (eval "$ac_try") 2>&5
37662  ac_status=$?
37663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664  (exit $ac_status); }; }; then
37665  eval "$as_ac_var=yes"
37666else
37667  echo "$as_me: failed program was:" >&5
37668sed 's/^/| /' conftest.$ac_ext >&5
37669
37670	eval "$as_ac_var=no"
37671fi
37672
37673rm -f core conftest.err conftest.$ac_objext \
37674      conftest$ac_exeext conftest.$ac_ext
37675fi
37676ac_res=`eval echo '${'$as_ac_var'}'`
37677	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37678echo "${ECHO_T}$ac_res" >&6; }
37679if test `eval echo '${'$as_ac_var'}'` = yes; then
37680  cat >>confdefs.h <<_ACEOF
37681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37682_ACEOF
37683
37684fi
37685done
37686
37687
37688
37689  { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
37690echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
37691  if test "${gt_cv_var_errno_declaration+set}" = set; then
37692  echo $ECHO_N "(cached) $ECHO_C" >&6
37693else
37694
37695    cat >conftest.$ac_ext <<_ACEOF
37696/* confdefs.h.  */
37697_ACEOF
37698cat confdefs.h >>conftest.$ac_ext
37699cat >>conftest.$ac_ext <<_ACEOF
37700/* end confdefs.h.  */
37701#include <errno.h>
37702      extern struct { int foo; } errno;
37703int
37704main ()
37705{
37706errno.foo = 1;
37707  ;
37708  return 0;
37709}
37710_ACEOF
37711rm -f conftest.$ac_objext
37712if { (ac_try="$ac_compile"
37713case "(($ac_try" in
37714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37715  *) ac_try_echo=$ac_try;;
37716esac
37717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37718  (eval "$ac_compile") 2>conftest.er1
37719  ac_status=$?
37720  grep -v '^ *+' conftest.er1 >conftest.err
37721  rm -f conftest.er1
37722  cat conftest.err >&5
37723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724  (exit $ac_status); } &&
37725	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37726  { (case "(($ac_try" in
37727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37728  *) ac_try_echo=$ac_try;;
37729esac
37730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37731  (eval "$ac_try") 2>&5
37732  ac_status=$?
37733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734  (exit $ac_status); }; } &&
37735	 { ac_try='test -s conftest.$ac_objext'
37736  { (case "(($ac_try" in
37737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37738  *) ac_try_echo=$ac_try;;
37739esac
37740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37741  (eval "$ac_try") 2>&5
37742  ac_status=$?
37743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744  (exit $ac_status); }; }; then
37745  gt_cv_var_errno_declaration=no
37746else
37747  echo "$as_me: failed program was:" >&5
37748sed 's/^/| /' conftest.$ac_ext >&5
37749
37750	gt_cv_var_errno_declaration=yes
37751fi
37752
37753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37754fi
37755
37756  { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
37757echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
37758  if test $gt_cv_var_errno_declaration = yes; then
37759
37760cat >>confdefs.h <<\_ACEOF
37761#define HAVE_ERRNO_DECL 1
37762_ACEOF
37763
37764  fi
37765
37766
37767
37768  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
37769echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
37770  if test "${gt_cv_var_environ_declaration+set}" = set; then
37771  echo $ECHO_N "(cached) $ECHO_C" >&6
37772else
37773
37774    cat >conftest.$ac_ext <<_ACEOF
37775/* confdefs.h.  */
37776_ACEOF
37777cat confdefs.h >>conftest.$ac_ext
37778cat >>conftest.$ac_ext <<_ACEOF
37779/* end confdefs.h.  */
37780#include <unistd.h>
37781      extern struct { int foo; } environ;
37782int
37783main ()
37784{
37785environ.foo = 1;
37786  ;
37787  return 0;
37788}
37789_ACEOF
37790rm -f conftest.$ac_objext
37791if { (ac_try="$ac_compile"
37792case "(($ac_try" in
37793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37794  *) ac_try_echo=$ac_try;;
37795esac
37796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37797  (eval "$ac_compile") 2>conftest.er1
37798  ac_status=$?
37799  grep -v '^ *+' conftest.er1 >conftest.err
37800  rm -f conftest.er1
37801  cat conftest.err >&5
37802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803  (exit $ac_status); } &&
37804	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37805  { (case "(($ac_try" in
37806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37807  *) ac_try_echo=$ac_try;;
37808esac
37809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37810  (eval "$ac_try") 2>&5
37811  ac_status=$?
37812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813  (exit $ac_status); }; } &&
37814	 { ac_try='test -s conftest.$ac_objext'
37815  { (case "(($ac_try" in
37816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37817  *) ac_try_echo=$ac_try;;
37818esac
37819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37820  (eval "$ac_try") 2>&5
37821  ac_status=$?
37822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823  (exit $ac_status); }; }; then
37824  gt_cv_var_environ_declaration=no
37825else
37826  echo "$as_me: failed program was:" >&5
37827sed 's/^/| /' conftest.$ac_ext >&5
37828
37829	gt_cv_var_environ_declaration=yes
37830fi
37831
37832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37833fi
37834
37835  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
37836echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
37837  if test $gt_cv_var_environ_declaration = yes; then
37838
37839cat >>confdefs.h <<\_ACEOF
37840#define HAVE_ENVIRON_DECL 1
37841_ACEOF
37842
37843  fi
37844
37845
37846  fi
37847  if test $ac_cv_func_unsetenv = no; then
37848
37849
37850  :
37851
37852
37853
37854
37855
37856
37857
37858  { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
37859echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
37860  if test "${gt_cv_var_errno_declaration+set}" = set; then
37861  echo $ECHO_N "(cached) $ECHO_C" >&6
37862else
37863
37864    cat >conftest.$ac_ext <<_ACEOF
37865/* confdefs.h.  */
37866_ACEOF
37867cat confdefs.h >>conftest.$ac_ext
37868cat >>conftest.$ac_ext <<_ACEOF
37869/* end confdefs.h.  */
37870#include <errno.h>
37871      extern struct { int foo; } errno;
37872int
37873main ()
37874{
37875errno.foo = 1;
37876  ;
37877  return 0;
37878}
37879_ACEOF
37880rm -f conftest.$ac_objext
37881if { (ac_try="$ac_compile"
37882case "(($ac_try" in
37883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37884  *) ac_try_echo=$ac_try;;
37885esac
37886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37887  (eval "$ac_compile") 2>conftest.er1
37888  ac_status=$?
37889  grep -v '^ *+' conftest.er1 >conftest.err
37890  rm -f conftest.er1
37891  cat conftest.err >&5
37892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893  (exit $ac_status); } &&
37894	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37895  { (case "(($ac_try" in
37896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37897  *) ac_try_echo=$ac_try;;
37898esac
37899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37900  (eval "$ac_try") 2>&5
37901  ac_status=$?
37902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903  (exit $ac_status); }; } &&
37904	 { ac_try='test -s conftest.$ac_objext'
37905  { (case "(($ac_try" in
37906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37907  *) ac_try_echo=$ac_try;;
37908esac
37909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37910  (eval "$ac_try") 2>&5
37911  ac_status=$?
37912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913  (exit $ac_status); }; }; then
37914  gt_cv_var_errno_declaration=no
37915else
37916  echo "$as_me: failed program was:" >&5
37917sed 's/^/| /' conftest.$ac_ext >&5
37918
37919	gt_cv_var_errno_declaration=yes
37920fi
37921
37922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37923fi
37924
37925  { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
37926echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
37927  if test $gt_cv_var_errno_declaration = yes; then
37928
37929cat >>confdefs.h <<\_ACEOF
37930#define HAVE_ERRNO_DECL 1
37931_ACEOF
37932
37933  fi
37934
37935
37936
37937  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
37938echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
37939  if test "${gt_cv_var_environ_declaration+set}" = set; then
37940  echo $ECHO_N "(cached) $ECHO_C" >&6
37941else
37942
37943    cat >conftest.$ac_ext <<_ACEOF
37944/* confdefs.h.  */
37945_ACEOF
37946cat confdefs.h >>conftest.$ac_ext
37947cat >>conftest.$ac_ext <<_ACEOF
37948/* end confdefs.h.  */
37949#include <unistd.h>
37950      extern struct { int foo; } environ;
37951int
37952main ()
37953{
37954environ.foo = 1;
37955  ;
37956  return 0;
37957}
37958_ACEOF
37959rm -f conftest.$ac_objext
37960if { (ac_try="$ac_compile"
37961case "(($ac_try" in
37962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37963  *) ac_try_echo=$ac_try;;
37964esac
37965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37966  (eval "$ac_compile") 2>conftest.er1
37967  ac_status=$?
37968  grep -v '^ *+' conftest.er1 >conftest.err
37969  rm -f conftest.er1
37970  cat conftest.err >&5
37971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37972  (exit $ac_status); } &&
37973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37974  { (case "(($ac_try" in
37975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37976  *) ac_try_echo=$ac_try;;
37977esac
37978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37979  (eval "$ac_try") 2>&5
37980  ac_status=$?
37981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982  (exit $ac_status); }; } &&
37983	 { ac_try='test -s conftest.$ac_objext'
37984  { (case "(($ac_try" in
37985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37986  *) ac_try_echo=$ac_try;;
37987esac
37988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37989  (eval "$ac_try") 2>&5
37990  ac_status=$?
37991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992  (exit $ac_status); }; }; then
37993  gt_cv_var_environ_declaration=no
37994else
37995  echo "$as_me: failed program was:" >&5
37996sed 's/^/| /' conftest.$ac_ext >&5
37997
37998	gt_cv_var_environ_declaration=yes
37999fi
38000
38001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38002fi
38003
38004  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
38005echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
38006  if test $gt_cv_var_environ_declaration = yes; then
38007
38008cat >>confdefs.h <<\_ACEOF
38009#define HAVE_ENVIRON_DECL 1
38010_ACEOF
38011
38012  fi
38013
38014
38015  else
38016    { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
38017echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
38018if test "${gt_cv_func_unsetenv_ret+set}" = set; then
38019  echo $ECHO_N "(cached) $ECHO_C" >&6
38020else
38021  cat >conftest.$ac_ext <<_ACEOF
38022/* confdefs.h.  */
38023_ACEOF
38024cat confdefs.h >>conftest.$ac_ext
38025cat >>conftest.$ac_ext <<_ACEOF
38026/* end confdefs.h.  */
38027#include <stdlib.h>
38028extern
38029#ifdef __cplusplus
38030"C"
38031#endif
38032#if defined(__STDC__) || defined(__cplusplus)
38033int unsetenv (const char *name);
38034#else
38035int unsetenv();
38036#endif
38037
38038int
38039main ()
38040{
38041
38042  ;
38043  return 0;
38044}
38045_ACEOF
38046rm -f conftest.$ac_objext
38047if { (ac_try="$ac_compile"
38048case "(($ac_try" in
38049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38050  *) ac_try_echo=$ac_try;;
38051esac
38052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38053  (eval "$ac_compile") 2>conftest.er1
38054  ac_status=$?
38055  grep -v '^ *+' conftest.er1 >conftest.err
38056  rm -f conftest.er1
38057  cat conftest.err >&5
38058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059  (exit $ac_status); } &&
38060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38061  { (case "(($ac_try" in
38062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38063  *) ac_try_echo=$ac_try;;
38064esac
38065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38066  (eval "$ac_try") 2>&5
38067  ac_status=$?
38068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069  (exit $ac_status); }; } &&
38070	 { ac_try='test -s conftest.$ac_objext'
38071  { (case "(($ac_try" in
38072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38073  *) ac_try_echo=$ac_try;;
38074esac
38075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38076  (eval "$ac_try") 2>&5
38077  ac_status=$?
38078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079  (exit $ac_status); }; }; then
38080  gt_cv_func_unsetenv_ret='int'
38081else
38082  echo "$as_me: failed program was:" >&5
38083sed 's/^/| /' conftest.$ac_ext >&5
38084
38085	gt_cv_func_unsetenv_ret='void'
38086fi
38087
38088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38089fi
38090{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
38091echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
38092    if test $gt_cv_func_unsetenv_ret = 'void'; then
38093
38094cat >>confdefs.h <<\_ACEOF
38095#define VOID_UNSETENV 1
38096_ACEOF
38097
38098    fi
38099  fi
38100
38101{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
38102echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
38103if test "${ac_cv_header_stdbool_h+set}" = set; then
38104  echo $ECHO_N "(cached) $ECHO_C" >&6
38105else
38106  cat >conftest.$ac_ext <<_ACEOF
38107/* confdefs.h.  */
38108_ACEOF
38109cat confdefs.h >>conftest.$ac_ext
38110cat >>conftest.$ac_ext <<_ACEOF
38111/* end confdefs.h.  */
38112
38113	  #include <stdbool.h>
38114	  #ifndef bool
38115	   "error: bool is not defined"
38116	  #endif
38117	  #ifndef false
38118	   "error: false is not defined"
38119	  #endif
38120	  #if false
38121	   "error: false is not 0"
38122	  #endif
38123	  #ifndef true
38124	   "error: true is not defined"
38125	  #endif
38126	  #if true != 1
38127	   "error: true is not 1"
38128	  #endif
38129	  #ifndef __bool_true_false_are_defined
38130	   "error: __bool_true_false_are_defined is not defined"
38131	  #endif
38132
38133	  struct s { _Bool s: 1; _Bool t; } s;
38134
38135	  char a[true == 1 ? 1 : -1];
38136	  char b[false == 0 ? 1 : -1];
38137	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
38138	  char d[(bool) -0.5 == true ? 1 : -1];
38139	  bool e = &s;
38140	  char f[(_Bool) -0.0 == false ? 1 : -1];
38141	  char g[true];
38142	  char h[sizeof (_Bool)];
38143	  char i[sizeof s.t];
38144	  enum { j = false, k = true, l = false * true, m = true * 256 };
38145	  _Bool n[m];
38146	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
38147
38148int
38149main ()
38150{
38151
38152	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
38153		  + !m + !n + !o);
38154
38155  ;
38156  return 0;
38157}
38158_ACEOF
38159rm -f conftest.$ac_objext
38160if { (ac_try="$ac_compile"
38161case "(($ac_try" in
38162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38163  *) ac_try_echo=$ac_try;;
38164esac
38165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38166  (eval "$ac_compile") 2>conftest.er1
38167  ac_status=$?
38168  grep -v '^ *+' conftest.er1 >conftest.err
38169  rm -f conftest.er1
38170  cat conftest.err >&5
38171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172  (exit $ac_status); } &&
38173	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38174  { (case "(($ac_try" in
38175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38176  *) ac_try_echo=$ac_try;;
38177esac
38178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38179  (eval "$ac_try") 2>&5
38180  ac_status=$?
38181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182  (exit $ac_status); }; } &&
38183	 { ac_try='test -s conftest.$ac_objext'
38184  { (case "(($ac_try" in
38185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38186  *) ac_try_echo=$ac_try;;
38187esac
38188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38189  (eval "$ac_try") 2>&5
38190  ac_status=$?
38191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192  (exit $ac_status); }; }; then
38193  ac_cv_header_stdbool_h=yes
38194else
38195  echo "$as_me: failed program was:" >&5
38196sed 's/^/| /' conftest.$ac_ext >&5
38197
38198	ac_cv_header_stdbool_h=no
38199fi
38200
38201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38202fi
38203{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
38204echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
38205   { echo "$as_me:$LINENO: checking for _Bool" >&5
38206echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
38207if test "${ac_cv_type__Bool+set}" = set; then
38208  echo $ECHO_N "(cached) $ECHO_C" >&6
38209else
38210  cat >conftest.$ac_ext <<_ACEOF
38211/* confdefs.h.  */
38212_ACEOF
38213cat confdefs.h >>conftest.$ac_ext
38214cat >>conftest.$ac_ext <<_ACEOF
38215/* end confdefs.h.  */
38216$ac_includes_default
38217typedef _Bool ac__type_new_;
38218int
38219main ()
38220{
38221if ((ac__type_new_ *) 0)
38222  return 0;
38223if (sizeof (ac__type_new_))
38224  return 0;
38225  ;
38226  return 0;
38227}
38228_ACEOF
38229rm -f conftest.$ac_objext
38230if { (ac_try="$ac_compile"
38231case "(($ac_try" in
38232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38233  *) ac_try_echo=$ac_try;;
38234esac
38235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38236  (eval "$ac_compile") 2>conftest.er1
38237  ac_status=$?
38238  grep -v '^ *+' conftest.er1 >conftest.err
38239  rm -f conftest.er1
38240  cat conftest.err >&5
38241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242  (exit $ac_status); } &&
38243	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38244  { (case "(($ac_try" in
38245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38246  *) ac_try_echo=$ac_try;;
38247esac
38248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38249  (eval "$ac_try") 2>&5
38250  ac_status=$?
38251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252  (exit $ac_status); }; } &&
38253	 { ac_try='test -s conftest.$ac_objext'
38254  { (case "(($ac_try" in
38255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38256  *) ac_try_echo=$ac_try;;
38257esac
38258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38259  (eval "$ac_try") 2>&5
38260  ac_status=$?
38261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262  (exit $ac_status); }; }; then
38263  ac_cv_type__Bool=yes
38264else
38265  echo "$as_me: failed program was:" >&5
38266sed 's/^/| /' conftest.$ac_ext >&5
38267
38268	ac_cv_type__Bool=no
38269fi
38270
38271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38272fi
38273{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
38274echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
38275if test $ac_cv_type__Bool = yes; then
38276
38277cat >>confdefs.h <<_ACEOF
38278#define HAVE__BOOL 1
38279_ACEOF
38280
38281
38282fi
38283
38284   if test $ac_cv_header_stdbool_h = yes; then
38285
38286cat >>confdefs.h <<\_ACEOF
38287#define HAVE_STDBOOL_H 1
38288_ACEOF
38289
38290   fi
38291
38292
38293
38294  # Define two additional variables used in the Makefile substitution.
38295
38296  if test "$ac_cv_header_stdbool_h" = yes; then
38297    STDBOOL_H=''
38298  else
38299    STDBOOL_H='stdbool.h'
38300  fi
38301
38302
38303  if test "$ac_cv_type__Bool" = yes; then
38304    HAVE__BOOL=1
38305  else
38306    HAVE__BOOL=0
38307  fi
38308
38309
38310
38311
38312for ac_func in strerror
38313do
38314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38315{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38318  echo $ECHO_N "(cached) $ECHO_C" >&6
38319else
38320  cat >conftest.$ac_ext <<_ACEOF
38321/* confdefs.h.  */
38322_ACEOF
38323cat confdefs.h >>conftest.$ac_ext
38324cat >>conftest.$ac_ext <<_ACEOF
38325/* end confdefs.h.  */
38326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38327   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38328#define $ac_func innocuous_$ac_func
38329
38330/* System header to define __stub macros and hopefully few prototypes,
38331    which can conflict with char $ac_func (); below.
38332    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38333    <limits.h> exists even on freestanding compilers.  */
38334
38335#ifdef __STDC__
38336# include <limits.h>
38337#else
38338# include <assert.h>
38339#endif
38340
38341#undef $ac_func
38342
38343/* Override any GCC internal prototype to avoid an error.
38344   Use char because int might match the return type of a GCC
38345   builtin and then its argument prototype would still apply.  */
38346#ifdef __cplusplus
38347extern "C"
38348#endif
38349char $ac_func ();
38350/* The GNU C library defines this for functions which it implements
38351    to always fail with ENOSYS.  Some functions are actually named
38352    something starting with __ and the normal name is an alias.  */
38353#if defined __stub_$ac_func || defined __stub___$ac_func
38354choke me
38355#endif
38356
38357int
38358main ()
38359{
38360return $ac_func ();
38361  ;
38362  return 0;
38363}
38364_ACEOF
38365rm -f conftest.$ac_objext conftest$ac_exeext
38366if { (ac_try="$ac_link"
38367case "(($ac_try" in
38368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38369  *) ac_try_echo=$ac_try;;
38370esac
38371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38372  (eval "$ac_link") 2>conftest.er1
38373  ac_status=$?
38374  grep -v '^ *+' conftest.er1 >conftest.err
38375  rm -f conftest.er1
38376  cat conftest.err >&5
38377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378  (exit $ac_status); } &&
38379	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38380  { (case "(($ac_try" in
38381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38382  *) ac_try_echo=$ac_try;;
38383esac
38384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38385  (eval "$ac_try") 2>&5
38386  ac_status=$?
38387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388  (exit $ac_status); }; } &&
38389	 { ac_try='test -s conftest$ac_exeext'
38390  { (case "(($ac_try" in
38391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38392  *) ac_try_echo=$ac_try;;
38393esac
38394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38395  (eval "$ac_try") 2>&5
38396  ac_status=$?
38397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398  (exit $ac_status); }; }; then
38399  eval "$as_ac_var=yes"
38400else
38401  echo "$as_me: failed program was:" >&5
38402sed 's/^/| /' conftest.$ac_ext >&5
38403
38404	eval "$as_ac_var=no"
38405fi
38406
38407rm -f core conftest.err conftest.$ac_objext \
38408      conftest$ac_exeext conftest.$ac_ext
38409fi
38410ac_res=`eval echo '${'$as_ac_var'}'`
38411	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38412echo "${ECHO_T}$ac_res" >&6; }
38413if test `eval echo '${'$as_ac_var'}'` = yes; then
38414  cat >>confdefs.h <<_ACEOF
38415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38416_ACEOF
38417
38418else
38419  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
38420fi
38421done
38422
38423  if test $ac_cv_func_strerror = no; then
38424
38425  :
38426
38427  fi
38428
38429
38430
38431for ac_func in readlink
38432do
38433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38434{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38436if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38437  echo $ECHO_N "(cached) $ECHO_C" >&6
38438else
38439  cat >conftest.$ac_ext <<_ACEOF
38440/* confdefs.h.  */
38441_ACEOF
38442cat confdefs.h >>conftest.$ac_ext
38443cat >>conftest.$ac_ext <<_ACEOF
38444/* end confdefs.h.  */
38445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38446   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38447#define $ac_func innocuous_$ac_func
38448
38449/* System header to define __stub macros and hopefully few prototypes,
38450    which can conflict with char $ac_func (); below.
38451    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38452    <limits.h> exists even on freestanding compilers.  */
38453
38454#ifdef __STDC__
38455# include <limits.h>
38456#else
38457# include <assert.h>
38458#endif
38459
38460#undef $ac_func
38461
38462/* Override any GCC internal prototype to avoid an error.
38463   Use char because int might match the return type of a GCC
38464   builtin and then its argument prototype would still apply.  */
38465#ifdef __cplusplus
38466extern "C"
38467#endif
38468char $ac_func ();
38469/* The GNU C library defines this for functions which it implements
38470    to always fail with ENOSYS.  Some functions are actually named
38471    something starting with __ and the normal name is an alias.  */
38472#if defined __stub_$ac_func || defined __stub___$ac_func
38473choke me
38474#endif
38475
38476int
38477main ()
38478{
38479return $ac_func ();
38480  ;
38481  return 0;
38482}
38483_ACEOF
38484rm -f conftest.$ac_objext conftest$ac_exeext
38485if { (ac_try="$ac_link"
38486case "(($ac_try" in
38487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38488  *) ac_try_echo=$ac_try;;
38489esac
38490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38491  (eval "$ac_link") 2>conftest.er1
38492  ac_status=$?
38493  grep -v '^ *+' conftest.er1 >conftest.err
38494  rm -f conftest.er1
38495  cat conftest.err >&5
38496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38497  (exit $ac_status); } &&
38498	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38499  { (case "(($ac_try" in
38500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38501  *) ac_try_echo=$ac_try;;
38502esac
38503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38504  (eval "$ac_try") 2>&5
38505  ac_status=$?
38506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507  (exit $ac_status); }; } &&
38508	 { ac_try='test -s conftest$ac_exeext'
38509  { (case "(($ac_try" in
38510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511  *) ac_try_echo=$ac_try;;
38512esac
38513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514  (eval "$ac_try") 2>&5
38515  ac_status=$?
38516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517  (exit $ac_status); }; }; then
38518  eval "$as_ac_var=yes"
38519else
38520  echo "$as_me: failed program was:" >&5
38521sed 's/^/| /' conftest.$ac_ext >&5
38522
38523	eval "$as_ac_var=no"
38524fi
38525
38526rm -f core conftest.err conftest.$ac_objext \
38527      conftest$ac_exeext conftest.$ac_ext
38528fi
38529ac_res=`eval echo '${'$as_ac_var'}'`
38530	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38531echo "${ECHO_T}$ac_res" >&6; }
38532if test `eval echo '${'$as_ac_var'}'` = yes; then
38533  cat >>confdefs.h <<_ACEOF
38534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38535_ACEOF
38536
38537fi
38538done
38539
38540  if test $ac_cv_func_readlink = no; then
38541    SRCLIBOBJS="$SRCLIBOBJS readlink.$ac_objext"
38542
38543  :
38544
38545  fi
38546
38547
38548  { echo "$as_me:$LINENO: checking for ssize_t" >&5
38549echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
38550if test "${gt_cv_ssize_t+set}" = set; then
38551  echo $ECHO_N "(cached) $ECHO_C" >&6
38552else
38553  cat >conftest.$ac_ext <<_ACEOF
38554/* confdefs.h.  */
38555_ACEOF
38556cat confdefs.h >>conftest.$ac_ext
38557cat >>conftest.$ac_ext <<_ACEOF
38558/* end confdefs.h.  */
38559#include <sys/types.h>
38560int
38561main ()
38562{
38563int x = sizeof (ssize_t *) + sizeof (ssize_t);
38564        return !x;
38565  ;
38566  return 0;
38567}
38568_ACEOF
38569rm -f conftest.$ac_objext
38570if { (ac_try="$ac_compile"
38571case "(($ac_try" in
38572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38573  *) ac_try_echo=$ac_try;;
38574esac
38575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38576  (eval "$ac_compile") 2>conftest.er1
38577  ac_status=$?
38578  grep -v '^ *+' conftest.er1 >conftest.err
38579  rm -f conftest.er1
38580  cat conftest.err >&5
38581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582  (exit $ac_status); } &&
38583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38584  { (case "(($ac_try" in
38585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38586  *) ac_try_echo=$ac_try;;
38587esac
38588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38589  (eval "$ac_try") 2>&5
38590  ac_status=$?
38591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592  (exit $ac_status); }; } &&
38593	 { ac_try='test -s conftest.$ac_objext'
38594  { (case "(($ac_try" in
38595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38596  *) ac_try_echo=$ac_try;;
38597esac
38598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38599  (eval "$ac_try") 2>&5
38600  ac_status=$?
38601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602  (exit $ac_status); }; }; then
38603  gt_cv_ssize_t=yes
38604else
38605  echo "$as_me: failed program was:" >&5
38606sed 's/^/| /' conftest.$ac_ext >&5
38607
38608	gt_cv_ssize_t=no
38609fi
38610
38611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38612fi
38613{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
38614echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
38615  if test $gt_cv_ssize_t = no; then
38616
38617cat >>confdefs.h <<\_ACEOF
38618#define ssize_t int
38619_ACEOF
38620
38621  fi
38622
38623
38624
38625
38626  :
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640OS=""
38641case "$host_os" in
38642  linux*)   OS="linux" ;;
38643  solaris*) OS="solaris" ;;
38644  osf*)     OS="osf" ;;
38645esac
38646if test -n "$OS"; then
38647
38648
38649  PLUGLIB="preloadable_libiconv.so"
38650else
38651  PLUGLIB=""
38652fi
38653
38654
38655if test "$enable_shared" = yes; then
38656  case "$host_os" in
38657    mingw* | cygwin*) is_woe32dll=yes ;;
38658    *) is_woe32dll=no ;;
38659  esac
38660else
38661  is_woe32dll=no
38662fi
38663WOE32DLL=$is_woe32dll
38664
38665if test $is_woe32dll = yes; then
38666  DLL_VARIABLE='__declspec (dllimport)'
38667else
38668  DLL_VARIABLE=
38669fi
38670
38671
38672
38673
38674
38675subdirs="$subdirs libcharset"
38676
38677ac_config_files="$ac_config_files Makefile"
38678
38679ac_config_files="$ac_config_files lib/Makefile"
38680
38681ac_config_files="$ac_config_files srclib/Makefile"
38682
38683ac_config_files="$ac_config_files src/Makefile"
38684
38685ac_config_files="$ac_config_files po/Makefile.in"
38686
38687ac_config_files="$ac_config_files man/Makefile"
38688
38689if test -d "${srcdir}/tests"; then
38690  ac_config_files="$ac_config_files tests/Makefile"
38691
38692fi
38693ac_config_files="$ac_config_files include/iconv.h:include/iconv.h.build.in"
38694
38695ac_config_files="$ac_config_files include/iconv.h.inst:include/iconv.h.in"
38696
38697cat >confcache <<\_ACEOF
38698# This file is a shell script that caches the results of configure
38699# tests run on this system so they can be shared between configure
38700# scripts and configure runs, see configure's option --config-cache.
38701# It is not useful on other systems.  If it contains results you don't
38702# want to keep, you may remove or edit it.
38703#
38704# config.status only pays attention to the cache file if you give it
38705# the --recheck option to rerun configure.
38706#
38707# `ac_cv_env_foo' variables (set or unset) will be overridden when
38708# loading this file, other *unset* `ac_cv_foo' will be assigned the
38709# following values.
38710
38711_ACEOF
38712
38713# The following way of writing the cache mishandles newlines in values,
38714# but we know of no workaround that is simple, portable, and efficient.
38715# So, we kill variables containing newlines.
38716# Ultrix sh set writes to stderr and can't be redirected directly,
38717# and sets the high bit in the cache file unless we assign to the vars.
38718(
38719  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38720    eval ac_val=\$$ac_var
38721    case $ac_val in #(
38722    *${as_nl}*)
38723      case $ac_var in #(
38724      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38726      esac
38727      case $ac_var in #(
38728      _ | IFS | as_nl) ;; #(
38729      *) $as_unset $ac_var ;;
38730      esac ;;
38731    esac
38732  done
38733
38734  (set) 2>&1 |
38735    case $as_nl`(ac_space=' '; set) 2>&1` in #(
38736    *${as_nl}ac_space=\ *)
38737      # `set' does not quote correctly, so add quotes (double-quote
38738      # substitution turns \\\\ into \\, and sed turns \\ into \).
38739      sed -n \
38740	"s/'/'\\\\''/g;
38741	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38742      ;; #(
38743    *)
38744      # `set' quotes correctly as required by POSIX, so do not add quotes.
38745      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38746      ;;
38747    esac |
38748    sort
38749) |
38750  sed '
38751     /^ac_cv_env_/b end
38752     t clear
38753     :clear
38754     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38755     t end
38756     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38757     :end' >>confcache
38758if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38759  if test -w "$cache_file"; then
38760    test "x$cache_file" != "x/dev/null" &&
38761      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38762echo "$as_me: updating cache $cache_file" >&6;}
38763    cat confcache >$cache_file
38764  else
38765    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38766echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38767  fi
38768fi
38769rm -f confcache
38770
38771test "x$prefix" = xNONE && prefix=$ac_default_prefix
38772# Let make expand exec_prefix.
38773test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38774
38775DEFS=-DHAVE_CONFIG_H
38776
38777ac_libobjs=
38778ac_ltlibobjs=
38779for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38780  # 1. Remove the extension, and $U if already installed.
38781  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38782  ac_i=`echo "$ac_i" | sed "$ac_script"`
38783  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38784  #    will be set to the directory where LIBOBJS objects are built.
38785  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38786  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38787done
38788LIBOBJS=$ac_libobjs
38789
38790LTLIBOBJS=$ac_ltlibobjs
38791
38792
38793if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38794  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38795Usually this means the macro was only invoked conditionally." >&5
38796echo "$as_me: error: conditional \"AMDEP\" was never defined.
38797Usually this means the macro was only invoked conditionally." >&2;}
38798   { (exit 1); exit 1; }; }
38799fi
38800if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38801  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38802Usually this means the macro was only invoked conditionally." >&5
38803echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38804Usually this means the macro was only invoked conditionally." >&2;}
38805   { (exit 1); exit 1; }; }
38806fi
38807if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
38808  { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
38809Usually this means the macro was only invoked conditionally." >&5
38810echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
38811Usually this means the macro was only invoked conditionally." >&2;}
38812   { (exit 1); exit 1; }; }
38813fi
38814if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38815  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38816Usually this means the macro was only invoked conditionally." >&5
38817echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38818Usually this means the macro was only invoked conditionally." >&2;}
38819   { (exit 1); exit 1; }; }
38820fi
38821
38822: ${CONFIG_STATUS=./config.status}
38823ac_clean_files_save=$ac_clean_files
38824ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38825{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38826echo "$as_me: creating $CONFIG_STATUS" >&6;}
38827cat >$CONFIG_STATUS <<_ACEOF
38828#! $SHELL
38829# Generated by $as_me.
38830# Run this file to recreate the current configuration.
38831# Compiler output produced by configure, useful for debugging
38832# configure, is in config.log if it exists.
38833
38834debug=false
38835ac_cs_recheck=false
38836ac_cs_silent=false
38837SHELL=\${CONFIG_SHELL-$SHELL}
38838_ACEOF
38839
38840cat >>$CONFIG_STATUS <<\_ACEOF
38841## --------------------- ##
38842## M4sh Initialization.  ##
38843## --------------------- ##
38844
38845# Be Bourne compatible
38846if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38847  emulate sh
38848  NULLCMD=:
38849  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38850  # is contrary to our usage.  Disable this feature.
38851  alias -g '${1+"$@"}'='"$@"'
38852  setopt NO_GLOB_SUBST
38853else
38854  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
38855fi
38856BIN_SH=xpg4; export BIN_SH # for Tru64
38857DUALCASE=1; export DUALCASE # for MKS sh
38858
38859
38860# PATH needs CR
38861# Avoid depending upon Character Ranges.
38862as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38863as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38864as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38865as_cr_digits='0123456789'
38866as_cr_alnum=$as_cr_Letters$as_cr_digits
38867
38868# The user is always right.
38869if test "${PATH_SEPARATOR+set}" != set; then
38870  echo "#! /bin/sh" >conf$$.sh
38871  echo  "exit 0"   >>conf$$.sh
38872  chmod +x conf$$.sh
38873  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38874    PATH_SEPARATOR=';'
38875  else
38876    PATH_SEPARATOR=:
38877  fi
38878  rm -f conf$$.sh
38879fi
38880
38881# Support unset when possible.
38882if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38883  as_unset=unset
38884else
38885  as_unset=false
38886fi
38887
38888
38889# IFS
38890# We need space, tab and new line, in precisely that order.  Quoting is
38891# there to prevent editors from complaining about space-tab.
38892# (If _AS_PATH_WALK were called with IFS unset, it would disable word
38893# splitting by setting IFS to empty value.)
38894as_nl='
38895'
38896IFS=" ""	$as_nl"
38897
38898# Find who we are.  Look in the path if we contain no directory separator.
38899case $0 in
38900  *[\\/]* ) as_myself=$0 ;;
38901  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38902for as_dir in $PATH
38903do
38904  IFS=$as_save_IFS
38905  test -z "$as_dir" && as_dir=.
38906  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38907done
38908IFS=$as_save_IFS
38909
38910     ;;
38911esac
38912# We did not find ourselves, most probably we were run as `sh COMMAND'
38913# in which case we are not to be found in the path.
38914if test "x$as_myself" = x; then
38915  as_myself=$0
38916fi
38917if test ! -f "$as_myself"; then
38918  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38919  { (exit 1); exit 1; }
38920fi
38921
38922# Work around bugs in pre-3.0 UWIN ksh.
38923for as_var in ENV MAIL MAILPATH
38924do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38925done
38926PS1='$ '
38927PS2='> '
38928PS4='+ '
38929
38930# NLS nuisances.
38931for as_var in \
38932  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38933  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38934  LC_TELEPHONE LC_TIME
38935do
38936  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38937    eval $as_var=C; export $as_var
38938  else
38939    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38940  fi
38941done
38942
38943# Required to use basename.
38944if expr a : '\(a\)' >/dev/null 2>&1 &&
38945   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38946  as_expr=expr
38947else
38948  as_expr=false
38949fi
38950
38951if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38952  as_basename=basename
38953else
38954  as_basename=false
38955fi
38956
38957
38958# Name of the executable.
38959as_me=`$as_basename -- "$0" ||
38960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38961	 X"$0" : 'X\(//\)$' \| \
38962	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38963echo X/"$0" |
38964    sed '/^.*\/\([^/][^/]*\)\/*$/{
38965	    s//\1/
38966	    q
38967	  }
38968	  /^X\/\(\/\/\)$/{
38969	    s//\1/
38970	    q
38971	  }
38972	  /^X\/\(\/\).*/{
38973	    s//\1/
38974	    q
38975	  }
38976	  s/.*/./; q'`
38977
38978# CDPATH.
38979$as_unset CDPATH
38980
38981
38982
38983  as_lineno_1=$LINENO
38984  as_lineno_2=$LINENO
38985  test "x$as_lineno_1" != "x$as_lineno_2" &&
38986  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38987
38988  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38989  # uniformly replaced by the line number.  The first 'sed' inserts a
38990  # line-number line after each line using $LINENO; the second 'sed'
38991  # does the real work.  The second script uses 'N' to pair each
38992  # line-number line with the line containing $LINENO, and appends
38993  # trailing '-' during substitution so that $LINENO is not a special
38994  # case at line end.
38995  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38996  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38997  # E. McMahon (1931-1989) for sed's syntax.  :-)
38998  sed -n '
38999    p
39000    /[$]LINENO/=
39001  ' <$as_myself |
39002    sed '
39003      s/[$]LINENO.*/&-/
39004      t lineno
39005      b
39006      :lineno
39007      N
39008      :loop
39009      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39010      t loop
39011      s/-\n.*//
39012    ' >$as_me.lineno &&
39013  chmod +x "$as_me.lineno" ||
39014    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39015   { (exit 1); exit 1; }; }
39016
39017  # Don't try to exec as it changes $[0], causing all sort of problems
39018  # (the dirname of $[0] is not the place where we might find the
39019  # original and so on.  Autoconf is especially sensitive to this).
39020  . "./$as_me.lineno"
39021  # Exit status is that of the last command.
39022  exit
39023}
39024
39025
39026if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39027  as_dirname=dirname
39028else
39029  as_dirname=false
39030fi
39031
39032ECHO_C= ECHO_N= ECHO_T=
39033case `echo -n x` in
39034-n*)
39035  case `echo 'x\c'` in
39036  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
39037  *)   ECHO_C='\c';;
39038  esac;;
39039*)
39040  ECHO_N='-n';;
39041esac
39042
39043if expr a : '\(a\)' >/dev/null 2>&1 &&
39044   test "X`expr 00001 : '.*\(...\)'`" = X001; then
39045  as_expr=expr
39046else
39047  as_expr=false
39048fi
39049
39050rm -f conf$$ conf$$.exe conf$$.file
39051if test -d conf$$.dir; then
39052  rm -f conf$$.dir/conf$$.file
39053else
39054  rm -f conf$$.dir
39055  mkdir conf$$.dir
39056fi
39057echo >conf$$.file
39058if ln -s conf$$.file conf$$ 2>/dev/null; then
39059  as_ln_s='ln -s'
39060  # ... but there are two gotchas:
39061  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39062  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39063  # In both cases, we have to default to `cp -p'.
39064  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39065    as_ln_s='cp -p'
39066elif ln conf$$.file conf$$ 2>/dev/null; then
39067  as_ln_s=ln
39068else
39069  as_ln_s='cp -p'
39070fi
39071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39072rmdir conf$$.dir 2>/dev/null
39073
39074if mkdir -p . 2>/dev/null; then
39075  as_mkdir_p=:
39076else
39077  test -d ./-p && rmdir ./-p
39078  as_mkdir_p=false
39079fi
39080
39081# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
39082# systems may use methods other than mode bits to determine executability.
39083cat >conf$$.file <<_ASEOF
39084#! /bin/sh
39085exit 0
39086_ASEOF
39087chmod +x conf$$.file
39088if test -x conf$$.file >/dev/null 2>&1; then
39089  as_executable_p="test -x"
39090else
39091  as_executable_p=:
39092fi
39093rm -f conf$$.file
39094
39095# Sed expression to map a string onto a valid CPP name.
39096as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39097
39098# Sed expression to map a string onto a valid variable name.
39099as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39100
39101
39102exec 6>&1
39103
39104# Save the log message, to keep $[0] and so on meaningful, and to
39105# report actual input values of CONFIG_FILES etc. instead of their
39106# values after options handling.
39107ac_log="
39108This file was extended by $as_me, which was
39109generated by GNU Autoconf 2.60.  Invocation command line was
39110
39111  CONFIG_FILES    = $CONFIG_FILES
39112  CONFIG_HEADERS  = $CONFIG_HEADERS
39113  CONFIG_LINKS    = $CONFIG_LINKS
39114  CONFIG_COMMANDS = $CONFIG_COMMANDS
39115  $ $0 $@
39116
39117on `(hostname || uname -n) 2>/dev/null | sed 1q`
39118"
39119
39120_ACEOF
39121
39122cat >>$CONFIG_STATUS <<_ACEOF
39123# Files that config.status was made for.
39124config_files="$ac_config_files"
39125config_headers="$ac_config_headers"
39126config_commands="$ac_config_commands"
39127
39128_ACEOF
39129
39130cat >>$CONFIG_STATUS <<\_ACEOF
39131ac_cs_usage="\
39132\`$as_me' instantiates files from templates according to the
39133current configuration.
39134
39135Usage: $0 [OPTIONS] [FILE]...
39136
39137  -h, --help       print this help, then exit
39138  -V, --version    print version number, then exit
39139  -q, --quiet      do not print progress messages
39140  -d, --debug      don't remove temporary files
39141      --recheck    update $as_me by reconfiguring in the same conditions
39142  --file=FILE[:TEMPLATE]
39143		   instantiate the configuration file FILE
39144  --header=FILE[:TEMPLATE]
39145		   instantiate the configuration header FILE
39146
39147Configuration files:
39148$config_files
39149
39150Configuration headers:
39151$config_headers
39152
39153Configuration commands:
39154$config_commands
39155
39156Report bugs to <bug-autoconf@gnu.org>."
39157
39158_ACEOF
39159cat >>$CONFIG_STATUS <<_ACEOF
39160ac_cs_version="\\
39161config.status
39162configured by $0, generated by GNU Autoconf 2.60,
39163  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39164
39165Copyright (C) 2006 Free Software Foundation, Inc.
39166This config.status script is free software; the Free Software Foundation
39167gives unlimited permission to copy, distribute and modify it."
39168
39169ac_pwd='$ac_pwd'
39170srcdir='$srcdir'
39171INSTALL='$INSTALL'
39172_ACEOF
39173
39174cat >>$CONFIG_STATUS <<\_ACEOF
39175# If no file are specified by the user, then we need to provide default
39176# value.  By we need to know if files were specified by the user.
39177ac_need_defaults=:
39178while test $# != 0
39179do
39180  case $1 in
39181  --*=*)
39182    ac_option=`expr "X$1" : 'X\([^=]*\)='`
39183    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39184    ac_shift=:
39185    ;;
39186  *)
39187    ac_option=$1
39188    ac_optarg=$2
39189    ac_shift=shift
39190    ;;
39191  esac
39192
39193  case $ac_option in
39194  # Handling of the options.
39195  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39196    ac_cs_recheck=: ;;
39197  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39198    echo "$ac_cs_version"; exit ;;
39199  --debug | --debu | --deb | --de | --d | -d )
39200    debug=: ;;
39201  --file | --fil | --fi | --f )
39202    $ac_shift
39203    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39204    ac_need_defaults=false;;
39205  --header | --heade | --head | --hea )
39206    $ac_shift
39207    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39208    ac_need_defaults=false;;
39209  --he | --h)
39210    # Conflict between --help and --header
39211    { echo "$as_me: error: ambiguous option: $1
39212Try \`$0 --help' for more information." >&2
39213   { (exit 1); exit 1; }; };;
39214  --help | --hel | -h )
39215    echo "$ac_cs_usage"; exit ;;
39216  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39217  | -silent | --silent | --silen | --sile | --sil | --si | --s)
39218    ac_cs_silent=: ;;
39219
39220  # This is an error.
39221  -*) { echo "$as_me: error: unrecognized option: $1
39222Try \`$0 --help' for more information." >&2
39223   { (exit 1); exit 1; }; } ;;
39224
39225  *) ac_config_targets="$ac_config_targets $1"
39226     ac_need_defaults=false ;;
39227
39228  esac
39229  shift
39230done
39231
39232ac_configure_extra_args=
39233
39234if $ac_cs_silent; then
39235  exec 6>/dev/null
39236  ac_configure_extra_args="$ac_configure_extra_args --silent"
39237fi
39238
39239_ACEOF
39240cat >>$CONFIG_STATUS <<_ACEOF
39241if \$ac_cs_recheck; then
39242  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39243  CONFIG_SHELL=$SHELL
39244  export CONFIG_SHELL
39245  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39246fi
39247
39248_ACEOF
39249cat >>$CONFIG_STATUS <<\_ACEOF
39250exec 5>>config.log
39251{
39252  echo
39253  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39254## Running $as_me. ##
39255_ASBOX
39256  echo "$ac_log"
39257} >&5
39258
39259_ACEOF
39260cat >>$CONFIG_STATUS <<_ACEOF
39261#
39262# INIT-COMMANDS
39263#
39264AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39265# Capture the value of obsolete ALL_LINGUAS because we need it to compute
39266    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
39267    # from automake < 1.5.
39268    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
39269    # Capture the value of LINGUAS because we need it to compute CATALOGS.
39270    LINGUAS="${LINGUAS-%UNSET%}"
39271
39272
39273_ACEOF
39274
39275cat >>$CONFIG_STATUS <<\_ACEOF
39276
39277# Handling of arguments.
39278for ac_config_target in $ac_config_targets
39279do
39280  case $ac_config_target in
39281    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39282    "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
39283    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39284    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
39285    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39286    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
39287    "srclib/Makefile") CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
39288    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39289    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
39290    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39291    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
39292    "include/iconv.h") CONFIG_FILES="$CONFIG_FILES include/iconv.h:include/iconv.h.build.in" ;;
39293    "include/iconv.h.inst") CONFIG_FILES="$CONFIG_FILES include/iconv.h.inst:include/iconv.h.in" ;;
39294
39295  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39296echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39297   { (exit 1); exit 1; }; };;
39298  esac
39299done
39300
39301
39302# If the user did not use the arguments to specify the items to instantiate,
39303# then the envvar interface is used.  Set only those that are not.
39304# We use the long form for the default assignment because of an extremely
39305# bizarre bug on SunOS 4.1.3.
39306if $ac_need_defaults; then
39307  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39308  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39309  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39310fi
39311
39312# Have a temporary directory for convenience.  Make it in the build tree
39313# simply because there is no reason against having it here, and in addition,
39314# creating and moving files from /tmp can sometimes cause problems.
39315# Hook for its removal unless debugging.
39316# Note that there is a small window in which the directory will not be cleaned:
39317# after its creation but before its name has been assigned to `$tmp'.
39318$debug ||
39319{
39320  tmp=
39321  trap 'exit_status=$?
39322  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39323' 0
39324  trap '{ (exit 1); exit 1; }' 1 2 13 15
39325}
39326# Create a (secure) tmp directory for tmp files.
39327
39328{
39329  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39330  test -n "$tmp" && test -d "$tmp"
39331}  ||
39332{
39333  tmp=./conf$$-$RANDOM
39334  (umask 077 && mkdir "$tmp")
39335} ||
39336{
39337   echo "$me: cannot create a temporary directory in ." >&2
39338   { (exit 1); exit 1; }
39339}
39340
39341#
39342# Set up the sed scripts for CONFIG_FILES section.
39343#
39344
39345# No need to generate the scripts if there are no CONFIG_FILES.
39346# This happens for instance when ./config.status config.h
39347if test -n "$CONFIG_FILES"; then
39348
39349_ACEOF
39350
39351
39352
39353ac_delim='%!_!# '
39354for ac_last_try in false false false false false :; do
39355  cat >conf$$subs.sed <<_ACEOF
39356SHELL!$SHELL$ac_delim
39357PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39358PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39359PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39360PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39361PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39362PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39363exec_prefix!$exec_prefix$ac_delim
39364prefix!$prefix$ac_delim
39365program_transform_name!$program_transform_name$ac_delim
39366bindir!$bindir$ac_delim
39367sbindir!$sbindir$ac_delim
39368libexecdir!$libexecdir$ac_delim
39369datarootdir!$datarootdir$ac_delim
39370datadir!$datadir$ac_delim
39371sysconfdir!$sysconfdir$ac_delim
39372sharedstatedir!$sharedstatedir$ac_delim
39373localstatedir!$localstatedir$ac_delim
39374includedir!$includedir$ac_delim
39375oldincludedir!$oldincludedir$ac_delim
39376docdir!$docdir$ac_delim
39377infodir!$infodir$ac_delim
39378htmldir!$htmldir$ac_delim
39379dvidir!$dvidir$ac_delim
39380pdfdir!$pdfdir$ac_delim
39381psdir!$psdir$ac_delim
39382libdir!$libdir$ac_delim
39383localedir!$localedir$ac_delim
39384mandir!$mandir$ac_delim
39385DEFS!$DEFS$ac_delim
39386ECHO_C!$ECHO_C$ac_delim
39387ECHO_N!$ECHO_N$ac_delim
39388ECHO_T!$ECHO_T$ac_delim
39389LIBS!$LIBS$ac_delim
39390build_alias!$build_alias$ac_delim
39391host_alias!$host_alias$ac_delim
39392target_alias!$target_alias$ac_delim
39393INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39394INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39395INSTALL_DATA!$INSTALL_DATA$ac_delim
39396CYGPATH_W!$CYGPATH_W$ac_delim
39397PACKAGE!$PACKAGE$ac_delim
39398VERSION!$VERSION$ac_delim
39399ACLOCAL!$ACLOCAL$ac_delim
39400AUTOCONF!$AUTOCONF$ac_delim
39401AUTOMAKE!$AUTOMAKE$ac_delim
39402AUTOHEADER!$AUTOHEADER$ac_delim
39403MAKEINFO!$MAKEINFO$ac_delim
39404install_sh!$install_sh$ac_delim
39405STRIP!$STRIP$ac_delim
39406INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39407mkdir_p!$mkdir_p$ac_delim
39408AWK!$AWK$ac_delim
39409SET_MAKE!$SET_MAKE$ac_delim
39410am__leading_dot!$am__leading_dot$ac_delim
39411AMTAR!$AMTAR$ac_delim
39412am__tar!$am__tar$ac_delim
39413am__untar!$am__untar$ac_delim
39414CC!$CC$ac_delim
39415CFLAGS!$CFLAGS$ac_delim
39416LDFLAGS!$LDFLAGS$ac_delim
39417CPPFLAGS!$CPPFLAGS$ac_delim
39418ac_ct_CC!$ac_ct_CC$ac_delim
39419EXEEXT!$EXEEXT$ac_delim
39420OBJEXT!$OBJEXT$ac_delim
39421DEPDIR!$DEPDIR$ac_delim
39422am__include!$am__include$ac_delim
39423am__quote!$am__quote$ac_delim
39424AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39425AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39426AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39427CCDEPMODE!$CCDEPMODE$ac_delim
39428am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39429am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39430CPP!$CPP$ac_delim
39431GREP!$GREP$ac_delim
39432EGREP!$EGREP$ac_delim
39433build!$build$ac_delim
39434build_cpu!$build_cpu$ac_delim
39435build_vendor!$build_vendor$ac_delim
39436build_os!$build_os$ac_delim
39437host!$host$ac_delim
39438host_cpu!$host_cpu$ac_delim
39439host_vendor!$host_vendor$ac_delim
39440host_os!$host_os$ac_delim
39441RELOCATABLE!$RELOCATABLE$ac_delim
39442SET_RELOCATABLE!$SET_RELOCATABLE$ac_delim
39443RELOCATABLE_VIA_LD_TRUE!$RELOCATABLE_VIA_LD_TRUE$ac_delim
39444RELOCATABLE_VIA_LD_FALSE!$RELOCATABLE_VIA_LD_FALSE$ac_delim
39445USE_EXTRA_ENCODINGS!$USE_EXTRA_ENCODINGS$ac_delim
39446RANLIB!$RANLIB$ac_delim
39447CP!$CP$ac_delim
39448LN!$LN$ac_delim
39449LN_S!$LN_S$ac_delim
39450ECHO!$ECHO$ac_delim
39451AR!$AR$ac_delim
39452DLLTOOL!$DLLTOOL$ac_delim
39453_ACEOF
39454
39455  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39456    break
39457  elif $ac_last_try; then
39458    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39459echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39460   { (exit 1); exit 1; }; }
39461  else
39462    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39463  fi
39464done
39465
39466ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39467if test -n "$ac_eof"; then
39468  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39469  ac_eof=`expr $ac_eof + 1`
39470fi
39471
39472cat >>$CONFIG_STATUS <<_ACEOF
39473cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39475_ACEOF
39476sed '
39477s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39478s/^/s,@/; s/!/@,|#_!!_#|/
39479:n
39480t n
39481s/'"$ac_delim"'$/,g/; t
39482s/$/\\/; p
39483N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39484' >>$CONFIG_STATUS <conf$$subs.sed
39485rm -f conf$$subs.sed
39486cat >>$CONFIG_STATUS <<_ACEOF
39487CEOF$ac_eof
39488_ACEOF
39489
39490
39491ac_delim='%!_!# '
39492for ac_last_try in false false false false false :; do
39493  cat >conf$$subs.sed <<_ACEOF
39494AS!$AS$ac_delim
39495OBJDUMP!$OBJDUMP$ac_delim
39496CXX!$CXX$ac_delim
39497CXXFLAGS!$CXXFLAGS$ac_delim
39498ac_ct_CXX!$ac_ct_CXX$ac_delim
39499CXXDEPMODE!$CXXDEPMODE$ac_delim
39500am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
39501am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
39502CXXCPP!$CXXCPP$ac_delim
39503F77!$F77$ac_delim
39504FFLAGS!$FFLAGS$ac_delim
39505ac_ct_F77!$ac_ct_F77$ac_delim
39506LIBTOOL!$LIBTOOL$ac_delim
39507CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
39508HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
39509LIBICONV!$LIBICONV$ac_delim
39510LTLIBICONV!$LTLIBICONV$ac_delim
39511USE_NLS!$USE_NLS$ac_delim
39512MSGFMT!$MSGFMT$ac_delim
39513GMSGFMT!$GMSGFMT$ac_delim
39514MSGFMT_015!$MSGFMT_015$ac_delim
39515GMSGFMT_015!$GMSGFMT_015$ac_delim
39516XGETTEXT!$XGETTEXT$ac_delim
39517XGETTEXT_015!$XGETTEXT_015$ac_delim
39518MSGMERGE!$MSGMERGE$ac_delim
39519INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
39520INTLLIBS!$INTLLIBS$ac_delim
39521LIBINTL!$LIBINTL$ac_delim
39522LTLIBINTL!$LTLIBINTL$ac_delim
39523POSUB!$POSUB$ac_delim
39524UNISTD_H!$UNISTD_H$ac_delim
39525HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
39526FULL_PATH_STDINT_H!$FULL_PATH_STDINT_H$ac_delim
39527HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
39528FULL_PATH_INTTYPES_H!$FULL_PATH_INTTYPES_H$ac_delim
39529HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
39530HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
39531HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
39532HAVE_LONG_64BIT!$HAVE_LONG_64BIT$ac_delim
39533HAVE_LONG_LONG_64BIT!$HAVE_LONG_LONG_64BIT$ac_delim
39534HAVE_INT8_T!$HAVE_INT8_T$ac_delim
39535HAVE_INT16_T!$HAVE_INT16_T$ac_delim
39536HAVE_INT32_T!$HAVE_INT32_T$ac_delim
39537HAVE_INT64_T!$HAVE_INT64_T$ac_delim
39538HAVE_UINT8_T!$HAVE_UINT8_T$ac_delim
39539HAVE_UINT16_T!$HAVE_UINT16_T$ac_delim
39540HAVE_UINT32_T!$HAVE_UINT32_T$ac_delim
39541HAVE_UINT64_T!$HAVE_UINT64_T$ac_delim
39542HAVE_INT_LEAST8_T!$HAVE_INT_LEAST8_T$ac_delim
39543HAVE_INT_LEAST16_T!$HAVE_INT_LEAST16_T$ac_delim
39544HAVE_INT_LEAST32_T!$HAVE_INT_LEAST32_T$ac_delim
39545HAVE_INT_LEAST64_T!$HAVE_INT_LEAST64_T$ac_delim
39546HAVE_UINT_LEAST8_T!$HAVE_UINT_LEAST8_T$ac_delim
39547HAVE_UINT_LEAST16_T!$HAVE_UINT_LEAST16_T$ac_delim
39548HAVE_UINT_LEAST32_T!$HAVE_UINT_LEAST32_T$ac_delim
39549HAVE_UINT_LEAST64_T!$HAVE_UINT_LEAST64_T$ac_delim
39550HAVE_INT_FAST8_T!$HAVE_INT_FAST8_T$ac_delim
39551HAVE_INT_FAST16_T!$HAVE_INT_FAST16_T$ac_delim
39552HAVE_INT_FAST32_T!$HAVE_INT_FAST32_T$ac_delim
39553HAVE_INT_FAST64_T!$HAVE_INT_FAST64_T$ac_delim
39554HAVE_UINT_FAST8_T!$HAVE_UINT_FAST8_T$ac_delim
39555HAVE_UINT_FAST16_T!$HAVE_UINT_FAST16_T$ac_delim
39556HAVE_UINT_FAST32_T!$HAVE_UINT_FAST32_T$ac_delim
39557HAVE_UINT_FAST64_T!$HAVE_UINT_FAST64_T$ac_delim
39558HAVE_INTPTR_T!$HAVE_INTPTR_T$ac_delim
39559HAVE_UINTPTR_T!$HAVE_UINTPTR_T$ac_delim
39560HAVE_INTMAX_T!$HAVE_INTMAX_T$ac_delim
39561HAVE_UINTMAX_T!$HAVE_UINTMAX_T$ac_delim
39562HAVE_INT64_T_IN_STDINT_H!$HAVE_INT64_T_IN_STDINT_H$ac_delim
39563HAVE_UINT64_T_IN_STDINT_H!$HAVE_UINT64_T_IN_STDINT_H$ac_delim
39564HAVE_INT_LEAST64_T_IN_STDINT_H!$HAVE_INT_LEAST64_T_IN_STDINT_H$ac_delim
39565HAVE_UINT_LEAST64_T_IN_STDINT_H!$HAVE_UINT_LEAST64_T_IN_STDINT_H$ac_delim
39566HAVE_INT_FAST64_T_IN_STDINT_H!$HAVE_INT_FAST64_T_IN_STDINT_H$ac_delim
39567HAVE_UINT_FAST64_T_IN_STDINT_H!$HAVE_UINT_FAST64_T_IN_STDINT_H$ac_delim
39568BITSIZEOF_INT8_T!$BITSIZEOF_INT8_T$ac_delim
39569BITSIZEOF_INT16_T!$BITSIZEOF_INT16_T$ac_delim
39570BITSIZEOF_INT32_T!$BITSIZEOF_INT32_T$ac_delim
39571BITSIZEOF_INT64_T!$BITSIZEOF_INT64_T$ac_delim
39572BITSIZEOF_UINT8_T!$BITSIZEOF_UINT8_T$ac_delim
39573BITSIZEOF_UINT16_T!$BITSIZEOF_UINT16_T$ac_delim
39574BITSIZEOF_UINT32_T!$BITSIZEOF_UINT32_T$ac_delim
39575BITSIZEOF_UINT64_T!$BITSIZEOF_UINT64_T$ac_delim
39576BITSIZEOF_INT_LEAST8_T!$BITSIZEOF_INT_LEAST8_T$ac_delim
39577BITSIZEOF_INT_LEAST16_T!$BITSIZEOF_INT_LEAST16_T$ac_delim
39578BITSIZEOF_INT_LEAST32_T!$BITSIZEOF_INT_LEAST32_T$ac_delim
39579BITSIZEOF_INT_LEAST64_T!$BITSIZEOF_INT_LEAST64_T$ac_delim
39580BITSIZEOF_UINT_LEAST8_T!$BITSIZEOF_UINT_LEAST8_T$ac_delim
39581BITSIZEOF_UINT_LEAST16_T!$BITSIZEOF_UINT_LEAST16_T$ac_delim
39582BITSIZEOF_UINT_LEAST32_T!$BITSIZEOF_UINT_LEAST32_T$ac_delim
39583BITSIZEOF_UINT_LEAST64_T!$BITSIZEOF_UINT_LEAST64_T$ac_delim
39584BITSIZEOF_INT_FAST8_T!$BITSIZEOF_INT_FAST8_T$ac_delim
39585BITSIZEOF_INT_FAST16_T!$BITSIZEOF_INT_FAST16_T$ac_delim
39586BITSIZEOF_INT_FAST32_T!$BITSIZEOF_INT_FAST32_T$ac_delim
39587BITSIZEOF_INT_FAST64_T!$BITSIZEOF_INT_FAST64_T$ac_delim
39588BITSIZEOF_UINT_FAST8_T!$BITSIZEOF_UINT_FAST8_T$ac_delim
39589BITSIZEOF_UINT_FAST16_T!$BITSIZEOF_UINT_FAST16_T$ac_delim
39590BITSIZEOF_UINT_FAST32_T!$BITSIZEOF_UINT_FAST32_T$ac_delim
39591_ACEOF
39592
39593  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39594    break
39595  elif $ac_last_try; then
39596    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39597echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39598   { (exit 1); exit 1; }; }
39599  else
39600    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39601  fi
39602done
39603
39604ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39605if test -n "$ac_eof"; then
39606  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39607  ac_eof=`expr $ac_eof + 1`
39608fi
39609
39610cat >>$CONFIG_STATUS <<_ACEOF
39611cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39613_ACEOF
39614sed '
39615s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39616s/^/s,@/; s/!/@,|#_!!_#|/
39617:n
39618t n
39619s/'"$ac_delim"'$/,g/; t
39620s/$/\\/; p
39621N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39622' >>$CONFIG_STATUS <conf$$subs.sed
39623rm -f conf$$subs.sed
39624cat >>$CONFIG_STATUS <<_ACEOF
39625CEOF$ac_eof
39626_ACEOF
39627
39628
39629ac_delim='%!_!# '
39630for ac_last_try in false false false false false :; do
39631  cat >conf$$subs.sed <<_ACEOF
39632BITSIZEOF_UINT_FAST64_T!$BITSIZEOF_UINT_FAST64_T$ac_delim
39633BITSIZEOF_INTPTR_T!$BITSIZEOF_INTPTR_T$ac_delim
39634BITSIZEOF_UINTPTR_T!$BITSIZEOF_UINTPTR_T$ac_delim
39635BITSIZEOF_INTMAX_T!$BITSIZEOF_INTMAX_T$ac_delim
39636BITSIZEOF_UINTMAX_T!$BITSIZEOF_UINTMAX_T$ac_delim
39637BITSIZEOF_UNSIGNED_INT!$BITSIZEOF_UNSIGNED_INT$ac_delim
39638BITSIZEOF_LONG!$BITSIZEOF_LONG$ac_delim
39639BITSIZEOF_UNSIGNED_LONG!$BITSIZEOF_UNSIGNED_LONG$ac_delim
39640BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
39641BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
39642SAME_TYPE_PTRDIFF_T_LONG!$SAME_TYPE_PTRDIFF_T_LONG$ac_delim
39643SAME_TYPE_SIZE_T_UNSIGNED_LONG!$SAME_TYPE_SIZE_T_UNSIGNED_LONG$ac_delim
39644BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
39645HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
39646SAME_TYPE_SIG_ATOMIC_T_LONG!$SAME_TYPE_SIG_ATOMIC_T_LONG$ac_delim
39647SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG!$SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG$ac_delim
39648BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
39649HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
39650SAME_TYPE_WCHAR_T_LONG!$SAME_TYPE_WCHAR_T_LONG$ac_delim
39651SAME_TYPE_WCHAR_T_UNSIGNED_LONG!$SAME_TYPE_WCHAR_T_UNSIGNED_LONG$ac_delim
39652BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
39653HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
39654SAME_TYPE_WINT_T_LONG!$SAME_TYPE_WINT_T_LONG$ac_delim
39655SAME_TYPE_WINT_T_UNSIGNED_LONG!$SAME_TYPE_WINT_T_UNSIGNED_LONG$ac_delim
39656STDINT_H!$STDINT_H$ac_delim
39657ICONV_CONST!$ICONV_CONST$ac_delim
39658HAVE_WCHAR_T!$HAVE_WCHAR_T$ac_delim
39659EILSEQ!$EILSEQ$ac_delim
39660ALLOCA!$ALLOCA$ac_delim
39661ALLOCA_H!$ALLOCA_H$ac_delim
39662STDBOOL_H!$STDBOOL_H$ac_delim
39663HAVE__BOOL!$HAVE__BOOL$ac_delim
39664SRCLIBOBJS!$SRCLIBOBJS$ac_delim
39665OS!$OS$ac_delim
39666GCC!$GCC$ac_delim
39667PLUGLIB!$PLUGLIB$ac_delim
39668WOE32DLL!$WOE32DLL$ac_delim
39669DLL_VARIABLE!$DLL_VARIABLE$ac_delim
39670subdirs!$subdirs$ac_delim
39671LIBOBJS!$LIBOBJS$ac_delim
39672LTLIBOBJS!$LTLIBOBJS$ac_delim
39673_ACEOF
39674
39675  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
39676    break
39677  elif $ac_last_try; then
39678    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39679echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39680   { (exit 1); exit 1; }; }
39681  else
39682    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39683  fi
39684done
39685
39686ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39687if test -n "$ac_eof"; then
39688  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39689  ac_eof=`expr $ac_eof + 1`
39690fi
39691
39692cat >>$CONFIG_STATUS <<_ACEOF
39693cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
39694/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39695_ACEOF
39696sed '
39697s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39698s/^/s,@/; s/!/@,|#_!!_#|/
39699:n
39700t n
39701s/'"$ac_delim"'$/,g/; t
39702s/$/\\/; p
39703N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39704' >>$CONFIG_STATUS <conf$$subs.sed
39705rm -f conf$$subs.sed
39706cat >>$CONFIG_STATUS <<_ACEOF
39707:end
39708s/|#_!!_#|//g
39709CEOF$ac_eof
39710_ACEOF
39711
39712
39713# VPATH may cause trouble with some makes, so we remove $(srcdir),
39714# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39715# trailing colons and then remove the whole line if VPATH becomes empty
39716# (actually we leave an empty line to preserve line numbers).
39717if test "x$srcdir" = x.; then
39718  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39719s/:*\$(srcdir):*/:/
39720s/:*\${srcdir}:*/:/
39721s/:*@srcdir@:*/:/
39722s/^\([^=]*=[	 ]*\):*/\1/
39723s/:*$//
39724s/^[^=]*=[	 ]*$//
39725}'
39726fi
39727
39728cat >>$CONFIG_STATUS <<\_ACEOF
39729fi # test -n "$CONFIG_FILES"
39730
39731
39732for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39733do
39734  case $ac_tag in
39735  :[FHLC]) ac_mode=$ac_tag; continue;;
39736  esac
39737  case $ac_mode$ac_tag in
39738  :[FHL]*:*);;
39739  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39740echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39741   { (exit 1); exit 1; }; };;
39742  :[FH]-) ac_tag=-:-;;
39743  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39744  esac
39745  ac_save_IFS=$IFS
39746  IFS=:
39747  set x $ac_tag
39748  IFS=$ac_save_IFS
39749  shift
39750  ac_file=$1
39751  shift
39752
39753  case $ac_mode in
39754  :L) ac_source=$1;;
39755  :[FH])
39756    ac_file_inputs=
39757    for ac_f
39758    do
39759      case $ac_f in
39760      -) ac_f="$tmp/stdin";;
39761      *) # Look for the file first in the build tree, then in the source tree
39762	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39763	 # because $ac_f cannot contain `:'.
39764	 test -f "$ac_f" ||
39765	   case $ac_f in
39766	   [\\/$]*) false;;
39767	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39768	   esac ||
39769	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39770echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39771   { (exit 1); exit 1; }; };;
39772      esac
39773      ac_file_inputs="$ac_file_inputs $ac_f"
39774    done
39775
39776    # Let's still pretend it is `configure' which instantiates (i.e., don't
39777    # use $as_me), people would be surprised to read:
39778    #    /* config.h.  Generated by config.status.  */
39779    configure_input="Generated from "`IFS=:
39780	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39781    if test x"$ac_file" != x-; then
39782      configure_input="$ac_file.  $configure_input"
39783      { echo "$as_me:$LINENO: creating $ac_file" >&5
39784echo "$as_me: creating $ac_file" >&6;}
39785    fi
39786
39787    case $ac_tag in
39788    *:-:* | *:-) cat >"$tmp/stdin";;
39789    esac
39790    ;;
39791  esac
39792
39793  ac_dir=`$as_dirname -- "$ac_file" ||
39794$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39795	 X"$ac_file" : 'X\(//\)[^/]' \| \
39796	 X"$ac_file" : 'X\(//\)$' \| \
39797	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39798echo X"$ac_file" |
39799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39800	    s//\1/
39801	    q
39802	  }
39803	  /^X\(\/\/\)[^/].*/{
39804	    s//\1/
39805	    q
39806	  }
39807	  /^X\(\/\/\)$/{
39808	    s//\1/
39809	    q
39810	  }
39811	  /^X\(\/\).*/{
39812	    s//\1/
39813	    q
39814	  }
39815	  s/.*/./; q'`
39816  { as_dir="$ac_dir"
39817  case $as_dir in #(
39818  -*) as_dir=./$as_dir;;
39819  esac
39820  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39821    as_dirs=
39822    while :; do
39823      case $as_dir in #(
39824      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39825      *) as_qdir=$as_dir;;
39826      esac
39827      as_dirs="'$as_qdir' $as_dirs"
39828      as_dir=`$as_dirname -- "$as_dir" ||
39829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39830	 X"$as_dir" : 'X\(//\)[^/]' \| \
39831	 X"$as_dir" : 'X\(//\)$' \| \
39832	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39833echo X"$as_dir" |
39834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39835	    s//\1/
39836	    q
39837	  }
39838	  /^X\(\/\/\)[^/].*/{
39839	    s//\1/
39840	    q
39841	  }
39842	  /^X\(\/\/\)$/{
39843	    s//\1/
39844	    q
39845	  }
39846	  /^X\(\/\).*/{
39847	    s//\1/
39848	    q
39849	  }
39850	  s/.*/./; q'`
39851      test -d "$as_dir" && break
39852    done
39853    test -z "$as_dirs" || eval "mkdir $as_dirs"
39854  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39855echo "$as_me: error: cannot create directory $as_dir" >&2;}
39856   { (exit 1); exit 1; }; }; }
39857  ac_builddir=.
39858
39859case "$ac_dir" in
39860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39861*)
39862  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39863  # A ".." for each directory in $ac_dir_suffix.
39864  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39865  case $ac_top_builddir_sub in
39866  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39867  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39868  esac ;;
39869esac
39870ac_abs_top_builddir=$ac_pwd
39871ac_abs_builddir=$ac_pwd$ac_dir_suffix
39872# for backward compatibility:
39873ac_top_builddir=$ac_top_build_prefix
39874
39875case $srcdir in
39876  .)  # We are building in place.
39877    ac_srcdir=.
39878    ac_top_srcdir=$ac_top_builddir_sub
39879    ac_abs_top_srcdir=$ac_pwd ;;
39880  [\\/]* | ?:[\\/]* )  # Absolute name.
39881    ac_srcdir=$srcdir$ac_dir_suffix;
39882    ac_top_srcdir=$srcdir
39883    ac_abs_top_srcdir=$srcdir ;;
39884  *) # Relative name.
39885    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39886    ac_top_srcdir=$ac_top_build_prefix$srcdir
39887    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39888esac
39889ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39890
39891
39892  case $ac_mode in
39893  :F)
39894  #
39895  # CONFIG_FILE
39896  #
39897
39898  case $INSTALL in
39899  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39900  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39901  esac
39902_ACEOF
39903
39904cat >>$CONFIG_STATUS <<\_ACEOF
39905# If the template does not know about datarootdir, expand it.
39906# FIXME: This hack should be removed a few years after 2.60.
39907ac_datarootdir_hack=; ac_datarootdir_seen=
39908
39909case `sed -n '/datarootdir/ {
39910  p
39911  q
39912}
39913/@datadir@/p
39914/@docdir@/p
39915/@infodir@/p
39916/@localedir@/p
39917/@mandir@/p
39918' $ac_file_inputs` in
39919*datarootdir*) ac_datarootdir_seen=yes;;
39920*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39921  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39922echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39923_ACEOF
39924cat >>$CONFIG_STATUS <<_ACEOF
39925  ac_datarootdir_hack='
39926  s&@datadir@&$datadir&g
39927  s&@docdir@&$docdir&g
39928  s&@infodir@&$infodir&g
39929  s&@localedir@&$localedir&g
39930  s&@mandir@&$mandir&g
39931    s&\\\${datarootdir}&$datarootdir&g' ;;
39932esac
39933_ACEOF
39934
39935# Neutralize VPATH when `$srcdir' = `.'.
39936# Shell code in configure.ac might set extrasub.
39937# FIXME: do we really want to maintain this feature?
39938cat >>$CONFIG_STATUS <<_ACEOF
39939  sed "$ac_vpsub
39940$extrasub
39941_ACEOF
39942cat >>$CONFIG_STATUS <<\_ACEOF
39943:t
39944/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39945s&@configure_input@&$configure_input&;t t
39946s&@top_builddir@&$ac_top_builddir_sub&;t t
39947s&@srcdir@&$ac_srcdir&;t t
39948s&@abs_srcdir@&$ac_abs_srcdir&;t t
39949s&@top_srcdir@&$ac_top_srcdir&;t t
39950s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39951s&@builddir@&$ac_builddir&;t t
39952s&@abs_builddir@&$ac_abs_builddir&;t t
39953s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39954s&@INSTALL@&$ac_INSTALL&;t t
39955$ac_datarootdir_hack
39956" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
39957
39958test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39959  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39960  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39961  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39962which seems to be undefined.  Please make sure it is defined." >&5
39963echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39964which seems to be undefined.  Please make sure it is defined." >&2;}
39965
39966  rm -f "$tmp/stdin"
39967  case $ac_file in
39968  -) cat "$tmp/out"; rm -f "$tmp/out";;
39969  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39970  esac
39971 ;;
39972  :H)
39973  #
39974  # CONFIG_HEADER
39975  #
39976_ACEOF
39977
39978# Transform confdefs.h into a sed script `conftest.defines', that
39979# substitutes the proper values into config.h.in to produce config.h.
39980rm -f conftest.defines conftest.tail
39981# First, append a space to every undef/define line, to ease matching.
39982echo 's/$/ /' >conftest.defines
39983# Then, protect against being on the right side of a sed subst, or in
39984# an unquoted here document, in config.status.  If some macros were
39985# called several times there might be several #defines for the same
39986# symbol, which is useless.  But do not sort them, since the last
39987# AC_DEFINE must be honored.
39988ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39989# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39990# NAME is the cpp macro being defined, VALUE is the value it is being given.
39991# PARAMS is the parameter list in the macro definition--in most cases, it's
39992# just an empty string.
39993ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
39994ac_dB='\\)[	 (].*,\\1define\\2'
39995ac_dC=' '
39996ac_dD=' ,'
39997
39998uniq confdefs.h |
39999  sed -n '
40000	t rset
40001	:rset
40002	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
40003	t ok
40004	d
40005	:ok
40006	s/[\\&,]/\\&/g
40007	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40008	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40009  ' >>conftest.defines
40010
40011# Remove the space that was appended to ease matching.
40012# Then replace #undef with comments.  This is necessary, for
40013# example, in the case of _POSIX_SOURCE, which is predefined and required
40014# on some systems where configure will not decide to define it.
40015# (The regexp can be short, since the line contains either #define or #undef.)
40016echo 's/ $//
40017s,^[	 #]*u.*,/* & */,' >>conftest.defines
40018
40019# Break up conftest.defines:
40020ac_max_sed_lines=50
40021
40022# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40023# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40024# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40025# et cetera.
40026ac_in='$ac_file_inputs'
40027ac_out='"$tmp/out1"'
40028ac_nxt='"$tmp/out2"'
40029
40030while :
40031do
40032  # Write a here document:
40033    cat >>$CONFIG_STATUS <<_ACEOF
40034    # First, check the format of the line:
40035    cat >"\$tmp/defines.sed" <<\\CEOF
40036/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
40037/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
40038b
40039:def
40040_ACEOF
40041  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40042  echo 'CEOF
40043    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40044  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40045  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40046  grep . conftest.tail >/dev/null || break
40047  rm -f conftest.defines
40048  mv conftest.tail conftest.defines
40049done
40050rm -f conftest.defines conftest.tail
40051
40052echo "ac_result=$ac_in" >>$CONFIG_STATUS
40053cat >>$CONFIG_STATUS <<\_ACEOF
40054  if test x"$ac_file" != x-; then
40055    echo "/* $configure_input  */" >"$tmp/config.h"
40056    cat "$ac_result" >>"$tmp/config.h"
40057    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40058      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40059echo "$as_me: $ac_file is unchanged" >&6;}
40060    else
40061      rm -f $ac_file
40062      mv "$tmp/config.h" $ac_file
40063    fi
40064  else
40065    echo "/* $configure_input  */"
40066    cat "$ac_result"
40067  fi
40068  rm -f "$tmp/out12"
40069# Compute $ac_file's index in $config_headers.
40070_am_stamp_count=1
40071for _am_header in $config_headers :; do
40072  case $_am_header in
40073    $ac_file | $ac_file:* )
40074      break ;;
40075    * )
40076      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40077  esac
40078done
40079echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40080$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40081	 X$ac_file : 'X\(//\)[^/]' \| \
40082	 X$ac_file : 'X\(//\)$' \| \
40083	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40084echo X$ac_file |
40085    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40086	    s//\1/
40087	    q
40088	  }
40089	  /^X\(\/\/\)[^/].*/{
40090	    s//\1/
40091	    q
40092	  }
40093	  /^X\(\/\/\)$/{
40094	    s//\1/
40095	    q
40096	  }
40097	  /^X\(\/\).*/{
40098	    s//\1/
40099	    q
40100	  }
40101	  s/.*/./; q'`/stamp-h$_am_stamp_count
40102 ;;
40103
40104  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40105echo "$as_me: executing $ac_file commands" >&6;}
40106 ;;
40107  esac
40108
40109
40110  case $ac_file$ac_mode in
40111    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40112  # Strip MF so we end up with the name of the file.
40113  mf=`echo "$mf" | sed -e 's/:.*$//'`
40114  # Check whether this is an Automake generated Makefile or not.
40115  # We used to match only the files named `Makefile.in', but
40116  # some people rename them; so instead we look at the file content.
40117  # Grep'ing the first line is not enough: some people post-process
40118  # each Makefile.in and add a new line on top of each file to say so.
40119  # So let's grep whole file.
40120  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40121    dirpart=`$as_dirname -- "$mf" ||
40122$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40123	 X"$mf" : 'X\(//\)[^/]' \| \
40124	 X"$mf" : 'X\(//\)$' \| \
40125	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40126echo X"$mf" |
40127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40128	    s//\1/
40129	    q
40130	  }
40131	  /^X\(\/\/\)[^/].*/{
40132	    s//\1/
40133	    q
40134	  }
40135	  /^X\(\/\/\)$/{
40136	    s//\1/
40137	    q
40138	  }
40139	  /^X\(\/\).*/{
40140	    s//\1/
40141	    q
40142	  }
40143	  s/.*/./; q'`
40144  else
40145    continue
40146  fi
40147  # Extract the definition of DEPDIR, am__include, and am__quote
40148  # from the Makefile without running `make'.
40149  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40150  test -z "$DEPDIR" && continue
40151  am__include=`sed -n 's/^am__include = //p' < "$mf"`
40152  test -z "am__include" && continue
40153  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40154  # When using ansi2knr, U may be empty or an underscore; expand it
40155  U=`sed -n 's/^U = //p' < "$mf"`
40156  # Find all dependency output files, they are included files with
40157  # $(DEPDIR) in their names.  We invoke sed twice because it is the
40158  # simplest approach to changing $(DEPDIR) to its actual value in the
40159  # expansion.
40160  for file in `sed -n "
40161    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40162       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40163    # Make sure the directory exists.
40164    test -f "$dirpart/$file" && continue
40165    fdir=`$as_dirname -- "$file" ||
40166$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40167	 X"$file" : 'X\(//\)[^/]' \| \
40168	 X"$file" : 'X\(//\)$' \| \
40169	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40170echo X"$file" |
40171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40172	    s//\1/
40173	    q
40174	  }
40175	  /^X\(\/\/\)[^/].*/{
40176	    s//\1/
40177	    q
40178	  }
40179	  /^X\(\/\/\)$/{
40180	    s//\1/
40181	    q
40182	  }
40183	  /^X\(\/\).*/{
40184	    s//\1/
40185	    q
40186	  }
40187	  s/.*/./; q'`
40188    { as_dir=$dirpart/$fdir
40189  case $as_dir in #(
40190  -*) as_dir=./$as_dir;;
40191  esac
40192  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40193    as_dirs=
40194    while :; do
40195      case $as_dir in #(
40196      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40197      *) as_qdir=$as_dir;;
40198      esac
40199      as_dirs="'$as_qdir' $as_dirs"
40200      as_dir=`$as_dirname -- "$as_dir" ||
40201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40202	 X"$as_dir" : 'X\(//\)[^/]' \| \
40203	 X"$as_dir" : 'X\(//\)$' \| \
40204	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40205echo X"$as_dir" |
40206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40207	    s//\1/
40208	    q
40209	  }
40210	  /^X\(\/\/\)[^/].*/{
40211	    s//\1/
40212	    q
40213	  }
40214	  /^X\(\/\/\)$/{
40215	    s//\1/
40216	    q
40217	  }
40218	  /^X\(\/\).*/{
40219	    s//\1/
40220	    q
40221	  }
40222	  s/.*/./; q'`
40223      test -d "$as_dir" && break
40224    done
40225    test -z "$as_dirs" || eval "mkdir $as_dirs"
40226  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40227echo "$as_me: error: cannot create directory $as_dir" >&2;}
40228   { (exit 1); exit 1; }; }; }
40229    # echo "creating $dirpart/$file"
40230    echo '# dummy' > "$dirpart/$file"
40231  done
40232done
40233 ;;
40234    "po-directories":C)
40235    for ac_file in $CONFIG_FILES; do
40236      # Support "outfile[:infile[:infile...]]"
40237      case "$ac_file" in
40238        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40239      esac
40240      # PO directories have a Makefile.in generated from Makefile.in.in.
40241      case "$ac_file" in */Makefile.in)
40242        # Adjust a relative srcdir.
40243        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
40244        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
40245        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40246        # In autoconf-2.13 it is called $ac_given_srcdir.
40247        # In autoconf-2.50 it is called $srcdir.
40248        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
40249        case "$ac_given_srcdir" in
40250          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
40251          /*) top_srcdir="$ac_given_srcdir" ;;
40252          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
40253        esac
40254        # Treat a directory as a PO directory if and only if it has a
40255        # POTFILES.in file. This allows packages to have multiple PO
40256        # directories under different names or in different locations.
40257        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40258          rm -f "$ac_dir/POTFILES"
40259          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
40260          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40261          POMAKEFILEDEPS="POTFILES.in"
40262          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
40263          # on $ac_dir but don't depend on user-specified configuration
40264          # parameters.
40265          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40266            # The LINGUAS file contains the set of available languages.
40267            if test -n "$OBSOLETE_ALL_LINGUAS"; then
40268              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
40269            fi
40270            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40271            # Hide the ALL_LINGUAS assigment from automake < 1.5.
40272            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40273            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
40274          else
40275            # The set of available languages was given in configure.in.
40276            # Hide the ALL_LINGUAS assigment from automake < 1.5.
40277            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
40278          fi
40279          # Compute POFILES
40280          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
40281          # Compute UPDATEPOFILES
40282          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
40283          # Compute DUMMYPOFILES
40284          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
40285          # Compute GMOFILES
40286          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
40287          case "$ac_given_srcdir" in
40288            .) srcdirpre= ;;
40289            *) srcdirpre='$(srcdir)/' ;;
40290          esac
40291          POFILES=
40292          UPDATEPOFILES=
40293          DUMMYPOFILES=
40294          GMOFILES=
40295          for lang in $ALL_LINGUAS; do
40296            POFILES="$POFILES $srcdirpre$lang.po"
40297            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
40298            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
40299            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
40300          done
40301          # CATALOGS depends on both $ac_dir and the user's LINGUAS
40302          # environment variable.
40303          INST_LINGUAS=
40304          if test -n "$ALL_LINGUAS"; then
40305            for presentlang in $ALL_LINGUAS; do
40306              useit=no
40307              if test "%UNSET%" != "$LINGUAS"; then
40308                desiredlanguages="$LINGUAS"
40309              else
40310                desiredlanguages="$ALL_LINGUAS"
40311              fi
40312              for desiredlang in $desiredlanguages; do
40313                # Use the presentlang catalog if desiredlang is
40314                #   a. equal to presentlang, or
40315                #   b. a variant of presentlang (because in this case,
40316                #      presentlang can be used as a fallback for messages
40317                #      which are not translated in the desiredlang catalog).
40318                case "$desiredlang" in
40319                  "$presentlang"*) useit=yes;;
40320                esac
40321              done
40322              if test $useit = yes; then
40323                INST_LINGUAS="$INST_LINGUAS $presentlang"
40324              fi
40325            done
40326          fi
40327          CATALOGS=
40328          if test -n "$INST_LINGUAS"; then
40329            for lang in $INST_LINGUAS; do
40330              CATALOGS="$CATALOGS $lang.gmo"
40331            done
40332          fi
40333          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
40334          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
40335          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
40336            if test -f "$f"; then
40337              case "$f" in
40338                *.orig | *.bak | *~) ;;
40339                *) cat "$f" >> "$ac_dir/Makefile" ;;
40340              esac
40341            fi
40342          done
40343        fi
40344        ;;
40345      esac
40346    done ;;
40347
40348  esac
40349done # for ac_tag
40350
40351
40352{ (exit 0); exit 0; }
40353_ACEOF
40354chmod +x $CONFIG_STATUS
40355ac_clean_files=$ac_clean_files_save
40356
40357
40358# configure is writing to config.log, and then calls config.status.
40359# config.status does its own redirection, appending to config.log.
40360# Unfortunately, on DOS this fails, as config.log is still kept open
40361# by configure, so config.status won't be able to write to it; its
40362# output is simply discarded.  So we exec the FD to /dev/null,
40363# effectively closing config.log, so it can be properly (re)opened and
40364# appended to by config.status.  When coming back to configure, we
40365# need to make the FD available again.
40366if test "$no_create" != yes; then
40367  ac_cs_success=:
40368  ac_config_status_args=
40369  test "$silent" = yes &&
40370    ac_config_status_args="$ac_config_status_args --quiet"
40371  exec 5>/dev/null
40372  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40373  exec 5>>config.log
40374  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40375  # would make configure fail if this is the last instruction.
40376  $ac_cs_success || { (exit 1); exit 1; }
40377fi
40378
40379#
40380# CONFIG_SUBDIRS section.
40381#
40382if test "$no_recursion" != yes; then
40383
40384  # Remove --cache-file and --srcdir arguments so they do not pile up.
40385  ac_sub_configure_args=
40386  ac_prev=
40387  eval "set x $ac_configure_args"
40388  shift
40389  for ac_arg
40390  do
40391    if test -n "$ac_prev"; then
40392      ac_prev=
40393      continue
40394    fi
40395    case $ac_arg in
40396    -cache-file | --cache-file | --cache-fil | --cache-fi \
40397    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40398      ac_prev=cache_file ;;
40399    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40400    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40401    | --c=*)
40402      ;;
40403    --config-cache | -C)
40404      ;;
40405    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40406      ac_prev=srcdir ;;
40407    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40408      ;;
40409    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40410      ac_prev=prefix ;;
40411    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40412      ;;
40413    *)
40414      case $ac_arg in
40415      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40416      esac
40417      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
40418    esac
40419  done
40420
40421  # Always prepend --prefix to ensure using the same prefix
40422  # in subdir configurations.
40423  ac_arg="--prefix=$prefix"
40424  case $ac_arg in
40425  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40426  esac
40427  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
40428
40429  ac_popdir=`pwd`
40430  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40431
40432    # Do not complain, so a configure script can configure whichever
40433    # parts of a large source tree are present.
40434    test -d "$srcdir/$ac_dir" || continue
40435
40436    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40437    echo "$as_me:$LINENO: $ac_msg" >&5
40438    echo "$ac_msg" >&6
40439    { as_dir="$ac_dir"
40440  case $as_dir in #(
40441  -*) as_dir=./$as_dir;;
40442  esac
40443  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40444    as_dirs=
40445    while :; do
40446      case $as_dir in #(
40447      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40448      *) as_qdir=$as_dir;;
40449      esac
40450      as_dirs="'$as_qdir' $as_dirs"
40451      as_dir=`$as_dirname -- "$as_dir" ||
40452$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40453	 X"$as_dir" : 'X\(//\)[^/]' \| \
40454	 X"$as_dir" : 'X\(//\)$' \| \
40455	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40456echo X"$as_dir" |
40457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40458	    s//\1/
40459	    q
40460	  }
40461	  /^X\(\/\/\)[^/].*/{
40462	    s//\1/
40463	    q
40464	  }
40465	  /^X\(\/\/\)$/{
40466	    s//\1/
40467	    q
40468	  }
40469	  /^X\(\/\).*/{
40470	    s//\1/
40471	    q
40472	  }
40473	  s/.*/./; q'`
40474      test -d "$as_dir" && break
40475    done
40476    test -z "$as_dirs" || eval "mkdir $as_dirs"
40477  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40478echo "$as_me: error: cannot create directory $as_dir" >&2;}
40479   { (exit 1); exit 1; }; }; }
40480    ac_builddir=.
40481
40482case "$ac_dir" in
40483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40484*)
40485  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40486  # A ".." for each directory in $ac_dir_suffix.
40487  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40488  case $ac_top_builddir_sub in
40489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40491  esac ;;
40492esac
40493ac_abs_top_builddir=$ac_pwd
40494ac_abs_builddir=$ac_pwd$ac_dir_suffix
40495# for backward compatibility:
40496ac_top_builddir=$ac_top_build_prefix
40497
40498case $srcdir in
40499  .)  # We are building in place.
40500    ac_srcdir=.
40501    ac_top_srcdir=$ac_top_builddir_sub
40502    ac_abs_top_srcdir=$ac_pwd ;;
40503  [\\/]* | ?:[\\/]* )  # Absolute name.
40504    ac_srcdir=$srcdir$ac_dir_suffix;
40505    ac_top_srcdir=$srcdir
40506    ac_abs_top_srcdir=$srcdir ;;
40507  *) # Relative name.
40508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40509    ac_top_srcdir=$ac_top_build_prefix$srcdir
40510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40511esac
40512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40513
40514
40515    cd "$ac_dir"
40516
40517    # Check for guested configure; otherwise get Cygnus style configure.
40518    if test -f "$ac_srcdir/configure.gnu"; then
40519      ac_sub_configure=$ac_srcdir/configure.gnu
40520    elif test -f "$ac_srcdir/configure"; then
40521      ac_sub_configure=$ac_srcdir/configure
40522    elif test -f "$ac_srcdir/configure.in"; then
40523      # This should be Cygnus configure.
40524      ac_sub_configure=$ac_aux_dir/configure
40525    else
40526      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40527echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40528      ac_sub_configure=
40529    fi
40530
40531    # The recursion is here.
40532    if test -n "$ac_sub_configure"; then
40533      # Make the cache file name correct relative to the subdirectory.
40534      case $cache_file in
40535      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40536      *) # Relative name.
40537	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40538      esac
40539
40540      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40541echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40542      # The eval makes quoting arguments work.
40543      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40544	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40545	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
40546echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40547   { (exit 1); exit 1; }; }
40548    fi
40549
40550    cd "$ac_popdir"
40551  done
40552fi
40553
40554