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	sectorder_flags='-sectorder __TEXT __text /usr/local/lib/OrderFiles/libiconv.order'
9956        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags $sectorder_flags -install_name $rpath/$soname $verstring $RC_CFLAGS'
9957      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9958      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9959      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}'
9960      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}'
9961    else
9962      case $cc_basename in
9963        xlc*)
9964         output_verbose_link_cmd='echo'
9965         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9966         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9967          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9968         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}'
9969          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}'
9970          ;;
9971       *)
9972         ld_shlibs=no
9973          ;;
9974      esac
9975    fi
9976      ;;
9977
9978    dgux*)
9979      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980      hardcode_libdir_flag_spec='-L$libdir'
9981      hardcode_shlibpath_var=no
9982      ;;
9983
9984    freebsd1*)
9985      ld_shlibs=no
9986      ;;
9987
9988    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9989    # support.  Future versions do this automatically, but an explicit c++rt0.o
9990    # does not break anything, and helps significantly (at the cost of a little
9991    # extra space).
9992    freebsd2.2*)
9993      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9994      hardcode_libdir_flag_spec='-R$libdir'
9995      hardcode_direct=yes
9996      hardcode_shlibpath_var=no
9997      ;;
9998
9999    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10000    freebsd2*)
10001      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10002      hardcode_direct=yes
10003      hardcode_minus_L=yes
10004      hardcode_shlibpath_var=no
10005      ;;
10006
10007    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10008    freebsd* | kfreebsd*-gnu | dragonfly*)
10009      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10010      hardcode_libdir_flag_spec='-R$libdir'
10011      hardcode_direct=yes
10012      hardcode_shlibpath_var=no
10013      ;;
10014
10015    hpux9*)
10016      if test "$GCC" = yes; then
10017	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'
10018      else
10019	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'
10020      fi
10021      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10022      hardcode_libdir_separator=:
10023      hardcode_direct=yes
10024
10025      # hardcode_minus_L: Not really in the search PATH,
10026      # but as the default location of the library.
10027      hardcode_minus_L=yes
10028      export_dynamic_flag_spec='${wl}-E'
10029      ;;
10030
10031    hpux10*)
10032      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10033	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034      else
10035	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10036      fi
10037      if test "$with_gnu_ld" = no; then
10038	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10039	hardcode_libdir_separator=:
10040
10041	hardcode_direct=yes
10042	export_dynamic_flag_spec='${wl}-E'
10043
10044	# hardcode_minus_L: Not really in the search PATH,
10045	# but as the default location of the library.
10046	hardcode_minus_L=yes
10047      fi
10048      ;;
10049
10050    hpux11*)
10051      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10052	case $host_cpu in
10053	hppa*64*)
10054	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10055	  ;;
10056	ia64*)
10057	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10058	  ;;
10059	*)
10060	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061	  ;;
10062	esac
10063      else
10064	case $host_cpu in
10065	hppa*64*)
10066	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067	  ;;
10068	ia64*)
10069	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10070	  ;;
10071	*)
10072	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10073	  ;;
10074	esac
10075      fi
10076      if test "$with_gnu_ld" = no; then
10077	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10078	hardcode_libdir_separator=:
10079
10080	case $host_cpu in
10081	hppa*64*|ia64*)
10082	  hardcode_libdir_flag_spec_ld='+b $libdir'
10083	  hardcode_direct=no
10084	  hardcode_shlibpath_var=no
10085	  ;;
10086	*)
10087	  hardcode_direct=yes
10088	  export_dynamic_flag_spec='${wl}-E'
10089
10090	  # hardcode_minus_L: Not really in the search PATH,
10091	  # but as the default location of the library.
10092	  hardcode_minus_L=yes
10093	  ;;
10094	esac
10095      fi
10096      ;;
10097
10098    irix5* | irix6* | nonstopux*)
10099      if test "$GCC" = yes; then
10100	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'
10101      else
10102	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'
10103	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10104      fi
10105      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106      hardcode_libdir_separator=:
10107      link_all_deplibs=yes
10108      ;;
10109
10110    netbsd*)
10111      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10112	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10113      else
10114	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10115      fi
10116      hardcode_libdir_flag_spec='-R$libdir'
10117      hardcode_direct=yes
10118      hardcode_shlibpath_var=no
10119      ;;
10120
10121    newsos6)
10122      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123      hardcode_direct=yes
10124      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125      hardcode_libdir_separator=:
10126      hardcode_shlibpath_var=no
10127      ;;
10128
10129    openbsd*)
10130      hardcode_direct=yes
10131      hardcode_shlibpath_var=no
10132      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10133	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10134	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10135	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10136	export_dynamic_flag_spec='${wl}-E'
10137      else
10138       case $host_os in
10139	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10140	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10141	   hardcode_libdir_flag_spec='-R$libdir'
10142	   ;;
10143	 *)
10144	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10145	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10146	   ;;
10147       esac
10148      fi
10149      ;;
10150
10151    os2*)
10152      hardcode_libdir_flag_spec='-L$libdir'
10153      hardcode_minus_L=yes
10154      allow_undefined_flag=unsupported
10155      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'
10156      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10157      ;;
10158
10159    osf3*)
10160      if test "$GCC" = yes; then
10161	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10162	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'
10163      else
10164	allow_undefined_flag=' -expect_unresolved \*'
10165	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'
10166      fi
10167      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168      hardcode_libdir_separator=:
10169      ;;
10170
10171    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10172      if test "$GCC" = yes; then
10173	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10174	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'
10175	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10176      else
10177	allow_undefined_flag=' -expect_unresolved \*'
10178	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'
10179	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10180	$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'
10181
10182	# Both c and cxx compiler support -rpath directly
10183	hardcode_libdir_flag_spec='-rpath $libdir'
10184      fi
10185      hardcode_libdir_separator=:
10186      ;;
10187
10188    solaris*)
10189      no_undefined_flag=' -z text'
10190      if test "$GCC" = yes; then
10191	wlarc='${wl}'
10192	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10194	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10195      else
10196	wlarc=''
10197	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10199  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10200      fi
10201      hardcode_libdir_flag_spec='-R$libdir'
10202      hardcode_shlibpath_var=no
10203      case $host_os in
10204      solaris2.[0-5] | solaris2.[0-5].*) ;;
10205      *)
10206 	# The compiler driver will combine linker options so we
10207 	# cannot just pass the convience library names through
10208 	# without $wl, iff we do not link with $LD.
10209 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10210 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10211 	case $wlarc in
10212 	'')
10213 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10214 	*)
10215 	  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' ;;
10216 	esac ;;
10217      esac
10218      link_all_deplibs=yes
10219      ;;
10220
10221    sunos4*)
10222      if test "x$host_vendor" = xsequent; then
10223	# Use $CC to link under sequent, because it throws in some extra .o
10224	# files that make .init and .fini sections work.
10225	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10226      else
10227	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10228      fi
10229      hardcode_libdir_flag_spec='-L$libdir'
10230      hardcode_direct=yes
10231      hardcode_minus_L=yes
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    sysv4)
10236      case $host_vendor in
10237	sni)
10238	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239	  hardcode_direct=yes # is this really true???
10240	;;
10241	siemens)
10242	  ## LD is ld it makes a PLAMLIB
10243	  ## CC just makes a GrossModule.
10244	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10245	  reload_cmds='$CC -r -o $output$reload_objs'
10246	  hardcode_direct=no
10247        ;;
10248	motorola)
10249	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10251	;;
10252      esac
10253      runpath_var='LD_RUN_PATH'
10254      hardcode_shlibpath_var=no
10255      ;;
10256
10257    sysv4.3*)
10258      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259      hardcode_shlibpath_var=no
10260      export_dynamic_flag_spec='-Bexport'
10261      ;;
10262
10263    sysv4*MP*)
10264      if test -d /usr/nec; then
10265	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266	hardcode_shlibpath_var=no
10267	runpath_var=LD_RUN_PATH
10268	hardcode_runpath_var=yes
10269	ld_shlibs=yes
10270      fi
10271      ;;
10272
10273    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10274      no_undefined_flag='${wl}-z,text'
10275      archive_cmds_need_lc=no
10276      hardcode_shlibpath_var=no
10277      runpath_var='LD_RUN_PATH'
10278
10279      if test "$GCC" = yes; then
10280	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282      else
10283	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285      fi
10286      ;;
10287
10288    sysv5* | sco3.2v5* | sco5v6*)
10289      # Note: We can NOT use -z defs as we might desire, because we do not
10290      # link with -lc, and that would cause any symbols used from libc to
10291      # always be unresolved, which means just about no library would
10292      # ever link correctly.  If we're not using GNU ld we use -z text
10293      # though, which does catch some bad symbols but isn't as heavy-handed
10294      # as -z defs.
10295      no_undefined_flag='${wl}-z,text'
10296      allow_undefined_flag='${wl}-z,nodefs'
10297      archive_cmds_need_lc=no
10298      hardcode_shlibpath_var=no
10299      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10300      hardcode_libdir_separator=':'
10301      link_all_deplibs=yes
10302      export_dynamic_flag_spec='${wl}-Bexport'
10303      runpath_var='LD_RUN_PATH'
10304
10305      if test "$GCC" = yes; then
10306	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10307	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10308      else
10309	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10310	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10311      fi
10312      ;;
10313
10314    uts4*)
10315      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316      hardcode_libdir_flag_spec='-L$libdir'
10317      hardcode_shlibpath_var=no
10318      ;;
10319
10320    *)
10321      ld_shlibs=no
10322      ;;
10323    esac
10324  fi
10325
10326{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10327echo "${ECHO_T}$ld_shlibs" >&6; }
10328test "$ld_shlibs" = no && can_build_shared=no
10329
10330#
10331# Do we need to explicitly link libc?
10332#
10333case "x$archive_cmds_need_lc" in
10334x|xyes)
10335  # Assume -lc should be added
10336  archive_cmds_need_lc=yes
10337
10338  if test "$enable_shared" = yes && test "$GCC" = yes; then
10339    case $archive_cmds in
10340    *'~'*)
10341      # FIXME: we may have to deal with multi-command sequences.
10342      ;;
10343    '$CC '*)
10344      # Test whether the compiler implicitly links with -lc since on some
10345      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10346      # to ld, don't add -lc before -lgcc.
10347      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10348echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10349      $rm conftest*
10350      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10351
10352      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353  (eval $ac_compile) 2>&5
10354  ac_status=$?
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); } 2>conftest.err; then
10357        soname=conftest
10358        lib=conftest
10359        libobjs=conftest.$ac_objext
10360        deplibs=
10361        wl=$lt_prog_compiler_wl
10362	pic_flag=$lt_prog_compiler_pic
10363        compiler_flags=-v
10364        linker_flags=-v
10365        verstring=
10366        output_objdir=.
10367        libname=conftest
10368        lt_save_allow_undefined_flag=$allow_undefined_flag
10369        allow_undefined_flag=
10370        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10371  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10372  ac_status=$?
10373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374  (exit $ac_status); }
10375        then
10376	  archive_cmds_need_lc=no
10377        else
10378	  archive_cmds_need_lc=yes
10379        fi
10380        allow_undefined_flag=$lt_save_allow_undefined_flag
10381      else
10382        cat conftest.err 1>&5
10383      fi
10384      $rm conftest*
10385      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10386echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10387      ;;
10388    esac
10389  fi
10390  ;;
10391esac
10392
10393{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10394echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10395library_names_spec=
10396libname_spec='lib$name'
10397soname_spec=
10398shrext_cmds=".so"
10399postinstall_cmds=
10400postuninstall_cmds=
10401finish_cmds=
10402finish_eval=
10403shlibpath_var=
10404shlibpath_overrides_runpath=unknown
10405version_type=none
10406dynamic_linker="$host_os ld.so"
10407sys_lib_dlsearch_path_spec="/lib /usr/lib"
10408if test "$GCC" = yes; then
10409  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10410  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10411    # if the path contains ";" then we assume it to be the separator
10412    # otherwise default to the standard path separator (i.e. ":") - it is
10413    # assumed that no part of a normal pathname contains ";" but that should
10414    # okay in the real world where ";" in dirpaths is itself problematic.
10415    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10416  else
10417    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10418  fi
10419else
10420  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10421fi
10422need_lib_prefix=unknown
10423hardcode_into_libs=no
10424
10425# when you set need_version to no, make sure it does not cause -set_version
10426# flags to be left without arguments
10427need_version=unknown
10428
10429case $host_os in
10430aix3*)
10431  version_type=linux
10432  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10433  shlibpath_var=LIBPATH
10434
10435  # AIX 3 has no versioning support, so we append a major version to the name.
10436  soname_spec='${libname}${release}${shared_ext}$major'
10437  ;;
10438
10439aix4* | aix5*)
10440  version_type=linux
10441  need_lib_prefix=no
10442  need_version=no
10443  hardcode_into_libs=yes
10444  if test "$host_cpu" = ia64; then
10445    # AIX 5 supports IA64
10446    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10447    shlibpath_var=LD_LIBRARY_PATH
10448  else
10449    # With GCC up to 2.95.x, collect2 would create an import file
10450    # for dependence libraries.  The import file would start with
10451    # the line `#! .'.  This would cause the generated library to
10452    # depend on `.', always an invalid library.  This was fixed in
10453    # development snapshots of GCC prior to 3.0.
10454    case $host_os in
10455      aix4 | aix4.[01] | aix4.[01].*)
10456      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10457	   echo ' yes '
10458	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10459	:
10460      else
10461	can_build_shared=no
10462      fi
10463      ;;
10464    esac
10465    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10466    # soname into executable. Probably we can add versioning support to
10467    # collect2, so additional links can be useful in future.
10468    if test "$aix_use_runtimelinking" = yes; then
10469      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10470      # instead of lib<name>.a to let people know that these are not
10471      # typical AIX shared libraries.
10472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473    else
10474      # We preserve .a as extension for shared libraries through AIX4.2
10475      # and later when we are not doing run time linking.
10476      library_names_spec='${libname}${release}.a $libname.a'
10477      soname_spec='${libname}${release}${shared_ext}$major'
10478    fi
10479    shlibpath_var=LIBPATH
10480  fi
10481  ;;
10482
10483amigaos*)
10484  library_names_spec='$libname.ixlibrary $libname.a'
10485  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10486  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'
10487  ;;
10488
10489beos*)
10490  library_names_spec='${libname}${shared_ext}'
10491  dynamic_linker="$host_os ld.so"
10492  shlibpath_var=LIBRARY_PATH
10493  ;;
10494
10495bsdi[45]*)
10496  version_type=linux
10497  need_version=no
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499  soname_spec='${libname}${release}${shared_ext}$major'
10500  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10503  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10504  # the default ld.so.conf also contains /usr/contrib/lib and
10505  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10506  # libtool to hard-code these into programs
10507  ;;
10508
10509cygwin* | mingw* | pw32*)
10510  version_type=windows
10511  shrext_cmds=".dll"
10512  need_version=no
10513  need_lib_prefix=no
10514
10515  case $GCC,$host_os in
10516  yes,cygwin* | yes,mingw* | yes,pw32*)
10517    library_names_spec='$libname.dll.a'
10518    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10519    postinstall_cmds='base_file=`basename \${file}`~
10520      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10521      dldir=$destdir/`dirname \$dlpath`~
10522      test -d \$dldir || mkdir -p \$dldir~
10523      $install_prog $dir/$dlname \$dldir/$dlname~
10524      chmod a+x \$dldir/$dlname'
10525    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10526      dlpath=$dir/\$dldll~
10527       $rm \$dlpath'
10528    shlibpath_overrides_runpath=yes
10529
10530    case $host_os in
10531    cygwin*)
10532      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10533      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10534      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10535      ;;
10536    mingw*)
10537      # MinGW DLLs use traditional 'lib' prefix
10538      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10540      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10541        # It is most probably a Windows format PATH printed by
10542        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10543        # path with ; separators, and with drive letters. We can handle the
10544        # drive letters (cygwin fileutils understands them), so leave them,
10545        # especially as we might pass files found there to a mingw objdump,
10546        # which wouldn't understand a cygwinified path. Ahh.
10547        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10548      else
10549        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10550      fi
10551      ;;
10552    pw32*)
10553      # pw32 DLLs use 'pw' prefix rather than 'lib'
10554      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10555      ;;
10556    esac
10557    ;;
10558
10559  *)
10560    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10561    ;;
10562  esac
10563  dynamic_linker='Win32 ld.exe'
10564  # FIXME: first we should search . and the directory the executable is in
10565  shlibpath_var=PATH
10566  ;;
10567
10568darwin* | rhapsody*)
10569  dynamic_linker="$host_os dyld"
10570  version_type=darwin
10571  need_lib_prefix=no
10572  need_version=no
10573  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10574  soname_spec='${libname}${release}${major}$shared_ext'
10575  shlibpath_overrides_runpath=yes
10576  shlibpath_var=DYLD_LIBRARY_PATH
10577  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10578  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10579  if test "$GCC" = yes; then
10580    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"`
10581  else
10582    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10583  fi
10584  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10585  ;;
10586
10587dgux*)
10588  version_type=linux
10589  need_lib_prefix=no
10590  need_version=no
10591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10592  soname_spec='${libname}${release}${shared_ext}$major'
10593  shlibpath_var=LD_LIBRARY_PATH
10594  ;;
10595
10596freebsd1*)
10597  dynamic_linker=no
10598  ;;
10599
10600kfreebsd*-gnu)
10601  version_type=linux
10602  need_lib_prefix=no
10603  need_version=no
10604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605  soname_spec='${libname}${release}${shared_ext}$major'
10606  shlibpath_var=LD_LIBRARY_PATH
10607  shlibpath_overrides_runpath=no
10608  hardcode_into_libs=yes
10609  dynamic_linker='GNU ld.so'
10610  ;;
10611
10612freebsd* | dragonfly*)
10613  # DragonFly does not have aout.  When/if they implement a new
10614  # versioning mechanism, adjust this.
10615  if test -x /usr/bin/objformat; then
10616    objformat=`/usr/bin/objformat`
10617  else
10618    case $host_os in
10619    freebsd[123]*) objformat=aout ;;
10620    *) objformat=elf ;;
10621    esac
10622  fi
10623  version_type=freebsd-$objformat
10624  case $version_type in
10625    freebsd-elf*)
10626      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10627      need_version=no
10628      need_lib_prefix=no
10629      ;;
10630    freebsd-*)
10631      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10632      need_version=yes
10633      ;;
10634  esac
10635  shlibpath_var=LD_LIBRARY_PATH
10636  case $host_os in
10637  freebsd2*)
10638    shlibpath_overrides_runpath=yes
10639    ;;
10640  freebsd3.[01]* | freebsdelf3.[01]*)
10641    shlibpath_overrides_runpath=yes
10642    hardcode_into_libs=yes
10643    ;;
10644  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10645  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10646    shlibpath_overrides_runpath=no
10647    hardcode_into_libs=yes
10648    ;;
10649  freebsd*) # from 4.6 on
10650    shlibpath_overrides_runpath=yes
10651    hardcode_into_libs=yes
10652    ;;
10653  esac
10654  ;;
10655
10656gnu*)
10657  version_type=linux
10658  need_lib_prefix=no
10659  need_version=no
10660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10661  soname_spec='${libname}${release}${shared_ext}$major'
10662  shlibpath_var=LD_LIBRARY_PATH
10663  hardcode_into_libs=yes
10664  ;;
10665
10666hpux9* | hpux10* | hpux11*)
10667  # Give a soname corresponding to the major version so that dld.sl refuses to
10668  # link against other versions.
10669  version_type=sunos
10670  need_lib_prefix=no
10671  need_version=no
10672  case $host_cpu in
10673  ia64*)
10674    shrext_cmds='.so'
10675    hardcode_into_libs=yes
10676    dynamic_linker="$host_os dld.so"
10677    shlibpath_var=LD_LIBRARY_PATH
10678    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10679    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680    soname_spec='${libname}${release}${shared_ext}$major'
10681    if test "X$HPUX_IA64_MODE" = X32; then
10682      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10683    else
10684      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10685    fi
10686    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10687    ;;
10688   hppa*64*)
10689     shrext_cmds='.sl'
10690     hardcode_into_libs=yes
10691     dynamic_linker="$host_os dld.sl"
10692     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10693     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695     soname_spec='${libname}${release}${shared_ext}$major'
10696     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10698     ;;
10699   *)
10700    shrext_cmds='.sl'
10701    dynamic_linker="$host_os dld.sl"
10702    shlibpath_var=SHLIB_PATH
10703    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10704    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705    soname_spec='${libname}${release}${shared_ext}$major'
10706    ;;
10707  esac
10708  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10709  postinstall_cmds='chmod 555 $lib'
10710  ;;
10711
10712interix3*)
10713  version_type=linux
10714  need_lib_prefix=no
10715  need_version=no
10716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10717  soname_spec='${libname}${release}${shared_ext}$major'
10718  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10719  shlibpath_var=LD_LIBRARY_PATH
10720  shlibpath_overrides_runpath=no
10721  hardcode_into_libs=yes
10722  ;;
10723
10724irix5* | irix6* | nonstopux*)
10725  case $host_os in
10726    nonstopux*) version_type=nonstopux ;;
10727    *)
10728	if test "$lt_cv_prog_gnu_ld" = yes; then
10729		version_type=linux
10730	else
10731		version_type=irix
10732	fi ;;
10733  esac
10734  need_lib_prefix=no
10735  need_version=no
10736  soname_spec='${libname}${release}${shared_ext}$major'
10737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10738  case $host_os in
10739  irix5* | nonstopux*)
10740    libsuff= shlibsuff=
10741    ;;
10742  *)
10743    case $LD in # libtool.m4 will add one of these switches to LD
10744    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10745      libsuff= shlibsuff= libmagic=32-bit;;
10746    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10747      libsuff=32 shlibsuff=N32 libmagic=N32;;
10748    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10749      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10750    *) libsuff= shlibsuff= libmagic=never-match;;
10751    esac
10752    ;;
10753  esac
10754  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10755  shlibpath_overrides_runpath=no
10756  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10757  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10758  hardcode_into_libs=yes
10759  ;;
10760
10761# No shared lib support for Linux oldld, aout, or coff.
10762linux*oldld* | linux*aout* | linux*coff*)
10763  dynamic_linker=no
10764  ;;
10765
10766# This must be Linux ELF.
10767linux*)
10768  version_type=linux
10769  need_lib_prefix=no
10770  need_version=no
10771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772  soname_spec='${libname}${release}${shared_ext}$major'
10773  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10774  shlibpath_var=LD_LIBRARY_PATH
10775  shlibpath_overrides_runpath=no
10776  # This implies no fast_install, which is unacceptable.
10777  # Some rework will be needed to allow for fast_install
10778  # before this can be enabled.
10779  hardcode_into_libs=yes
10780
10781  # Append ld.so.conf contents to the search path
10782  if test -f /etc/ld.so.conf; then
10783    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' ' '`
10784    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10785  fi
10786
10787  # We used to test for /lib/ld.so.1 and disable shared libraries on
10788  # powerpc, because MkLinux only supported shared libraries with the
10789  # GNU dynamic linker.  Since this was broken with cross compilers,
10790  # most powerpc-linux boxes support dynamic linking these days and
10791  # people can always --disable-shared, the test was removed, and we
10792  # assume the GNU/Linux dynamic linker is in use.
10793  dynamic_linker='GNU/Linux ld.so'
10794  ;;
10795
10796knetbsd*-gnu)
10797  version_type=linux
10798  need_lib_prefix=no
10799  need_version=no
10800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10801  soname_spec='${libname}${release}${shared_ext}$major'
10802  shlibpath_var=LD_LIBRARY_PATH
10803  shlibpath_overrides_runpath=no
10804  hardcode_into_libs=yes
10805  dynamic_linker='GNU ld.so'
10806  ;;
10807
10808netbsd*)
10809  version_type=sunos
10810  need_lib_prefix=no
10811  need_version=no
10812  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815    dynamic_linker='NetBSD (a.out) ld.so'
10816  else
10817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818    soname_spec='${libname}${release}${shared_ext}$major'
10819    dynamic_linker='NetBSD ld.elf_so'
10820  fi
10821  shlibpath_var=LD_LIBRARY_PATH
10822  shlibpath_overrides_runpath=yes
10823  hardcode_into_libs=yes
10824  ;;
10825
10826newsos6)
10827  version_type=linux
10828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829  shlibpath_var=LD_LIBRARY_PATH
10830  shlibpath_overrides_runpath=yes
10831  ;;
10832
10833nto-qnx*)
10834  version_type=linux
10835  need_lib_prefix=no
10836  need_version=no
10837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838  soname_spec='${libname}${release}${shared_ext}$major'
10839  shlibpath_var=LD_LIBRARY_PATH
10840  shlibpath_overrides_runpath=yes
10841  ;;
10842
10843openbsd*)
10844  version_type=sunos
10845  sys_lib_dlsearch_path_spec="/usr/lib"
10846  need_lib_prefix=no
10847  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10848  case $host_os in
10849    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10850    *)                         need_version=no  ;;
10851  esac
10852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10853  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10854  shlibpath_var=LD_LIBRARY_PATH
10855  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10856    case $host_os in
10857      openbsd2.[89] | openbsd2.[89].*)
10858	shlibpath_overrides_runpath=no
10859	;;
10860      *)
10861	shlibpath_overrides_runpath=yes
10862	;;
10863      esac
10864  else
10865    shlibpath_overrides_runpath=yes
10866  fi
10867  ;;
10868
10869os2*)
10870  libname_spec='$name'
10871  shrext_cmds=".dll"
10872  need_lib_prefix=no
10873  library_names_spec='$libname${shared_ext} $libname.a'
10874  dynamic_linker='OS/2 ld.exe'
10875  shlibpath_var=LIBPATH
10876  ;;
10877
10878osf3* | osf4* | osf5*)
10879  version_type=osf
10880  need_lib_prefix=no
10881  need_version=no
10882  soname_spec='${libname}${release}${shared_ext}$major'
10883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884  shlibpath_var=LD_LIBRARY_PATH
10885  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10886  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10887  ;;
10888
10889solaris*)
10890  version_type=linux
10891  need_lib_prefix=no
10892  need_version=no
10893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894  soname_spec='${libname}${release}${shared_ext}$major'
10895  shlibpath_var=LD_LIBRARY_PATH
10896  shlibpath_overrides_runpath=yes
10897  hardcode_into_libs=yes
10898  # ldd complains unless libraries are executable
10899  postinstall_cmds='chmod +x $lib'
10900  ;;
10901
10902sunos4*)
10903  version_type=sunos
10904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10906  shlibpath_var=LD_LIBRARY_PATH
10907  shlibpath_overrides_runpath=yes
10908  if test "$with_gnu_ld" = yes; then
10909    need_lib_prefix=no
10910  fi
10911  need_version=yes
10912  ;;
10913
10914sysv4 | sysv4.3*)
10915  version_type=linux
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917  soname_spec='${libname}${release}${shared_ext}$major'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  case $host_vendor in
10920    sni)
10921      shlibpath_overrides_runpath=no
10922      need_lib_prefix=no
10923      export_dynamic_flag_spec='${wl}-Blargedynsym'
10924      runpath_var=LD_RUN_PATH
10925      ;;
10926    siemens)
10927      need_lib_prefix=no
10928      ;;
10929    motorola)
10930      need_lib_prefix=no
10931      need_version=no
10932      shlibpath_overrides_runpath=no
10933      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10934      ;;
10935  esac
10936  ;;
10937
10938sysv4*MP*)
10939  if test -d /usr/nec ;then
10940    version_type=linux
10941    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10942    soname_spec='$libname${shared_ext}.$major'
10943    shlibpath_var=LD_LIBRARY_PATH
10944  fi
10945  ;;
10946
10947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10948  version_type=freebsd-elf
10949  need_lib_prefix=no
10950  need_version=no
10951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10952  soname_spec='${libname}${release}${shared_ext}$major'
10953  shlibpath_var=LD_LIBRARY_PATH
10954  hardcode_into_libs=yes
10955  if test "$with_gnu_ld" = yes; then
10956    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10957    shlibpath_overrides_runpath=no
10958  else
10959    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10960    shlibpath_overrides_runpath=yes
10961    case $host_os in
10962      sco3.2v5*)
10963        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10964	;;
10965    esac
10966  fi
10967  sys_lib_dlsearch_path_spec='/usr/lib'
10968  ;;
10969
10970uts4*)
10971  version_type=linux
10972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  shlibpath_var=LD_LIBRARY_PATH
10975  ;;
10976
10977*)
10978  dynamic_linker=no
10979  ;;
10980esac
10981{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10982echo "${ECHO_T}$dynamic_linker" >&6; }
10983test "$dynamic_linker" = no && can_build_shared=no
10984
10985variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10986if test "$GCC" = yes; then
10987  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10988fi
10989
10990{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10991echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10992hardcode_action=
10993if test -n "$hardcode_libdir_flag_spec" || \
10994   test -n "$runpath_var" || \
10995   test "X$hardcode_automatic" = "Xyes" ; then
10996
10997  # We can hardcode non-existant directories.
10998  if test "$hardcode_direct" != no &&
10999     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11000     # have to relink, otherwise we might link with an installed library
11001     # when we should be linking with a yet-to-be-installed one
11002     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11003     test "$hardcode_minus_L" != no; then
11004    # Linking always hardcodes the temporary library directory.
11005    hardcode_action=relink
11006  else
11007    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11008    hardcode_action=immediate
11009  fi
11010else
11011  # We cannot hardcode anything, or else we can only hardcode existing
11012  # directories.
11013  hardcode_action=unsupported
11014fi
11015{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11016echo "${ECHO_T}$hardcode_action" >&6; }
11017
11018if test "$hardcode_action" = relink; then
11019  # Fast installation is not supported
11020  enable_fast_install=no
11021elif test "$shlibpath_overrides_runpath" = yes ||
11022     test "$enable_shared" = no; then
11023  # Fast installation is not necessary
11024  enable_fast_install=needless
11025fi
11026
11027striplib=
11028old_striplib=
11029{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11030echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11031if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11032  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11033  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11034  { echo "$as_me:$LINENO: result: yes" >&5
11035echo "${ECHO_T}yes" >&6; }
11036else
11037# FIXME - insert some real tests, host_os isn't really good enough
11038  case $host_os in
11039   darwin*)
11040       if test -n "$STRIP" ; then
11041         striplib="$STRIP -x"
11042         { echo "$as_me:$LINENO: result: yes" >&5
11043echo "${ECHO_T}yes" >&6; }
11044       else
11045  { echo "$as_me:$LINENO: result: no" >&5
11046echo "${ECHO_T}no" >&6; }
11047fi
11048       ;;
11049   *)
11050  { echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6; }
11052    ;;
11053  esac
11054fi
11055
11056if test "x$enable_dlopen" != xyes; then
11057  enable_dlopen=unknown
11058  enable_dlopen_self=unknown
11059  enable_dlopen_self_static=unknown
11060else
11061  lt_cv_dlopen=no
11062  lt_cv_dlopen_libs=
11063
11064  case $host_os in
11065  beos*)
11066    lt_cv_dlopen="load_add_on"
11067    lt_cv_dlopen_libs=
11068    lt_cv_dlopen_self=yes
11069    ;;
11070
11071  mingw* | pw32*)
11072    lt_cv_dlopen="LoadLibrary"
11073    lt_cv_dlopen_libs=
11074   ;;
11075
11076  cygwin*)
11077    lt_cv_dlopen="dlopen"
11078    lt_cv_dlopen_libs=
11079   ;;
11080
11081  darwin*)
11082  # if libdl is installed we need to link against it
11083    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11084echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11085if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11086  echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088  ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldl  $LIBS"
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h.  */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h.  */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098   Use char because int might match the return type of a GCC
11099   builtin and then its argument prototype would still apply.  */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char dlopen ();
11104int
11105main ()
11106{
11107return dlopen ();
11108  ;
11109  return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116  *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119  (eval "$ac_link") 2>conftest.er1
11120  ac_status=$?
11121  grep -v '^ *+' conftest.er1 >conftest.err
11122  rm -f conftest.er1
11123  cat conftest.err >&5
11124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125  (exit $ac_status); } &&
11126	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11127  { (case "(($ac_try" in
11128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129  *) ac_try_echo=$ac_try;;
11130esac
11131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132  (eval "$ac_try") 2>&5
11133  ac_status=$?
11134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135  (exit $ac_status); }; } &&
11136	 { ac_try='test -s conftest$ac_exeext'
11137  { (case "(($ac_try" in
11138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139  *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142  (eval "$ac_try") 2>&5
11143  ac_status=$?
11144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145  (exit $ac_status); }; }; then
11146  ac_cv_lib_dl_dlopen=yes
11147else
11148  echo "$as_me: failed program was:" >&5
11149sed 's/^/| /' conftest.$ac_ext >&5
11150
11151	ac_cv_lib_dl_dlopen=no
11152fi
11153
11154rm -f core conftest.err conftest.$ac_objext \
11155      conftest$ac_exeext conftest.$ac_ext
11156LIBS=$ac_check_lib_save_LIBS
11157fi
11158{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11159echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11160if test $ac_cv_lib_dl_dlopen = yes; then
11161  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11162else
11163
11164    lt_cv_dlopen="dyld"
11165    lt_cv_dlopen_libs=
11166    lt_cv_dlopen_self=yes
11167
11168fi
11169
11170   ;;
11171
11172  *)
11173    { echo "$as_me:$LINENO: checking for shl_load" >&5
11174echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11175if test "${ac_cv_func_shl_load+set}" = set; then
11176  echo $ECHO_N "(cached) $ECHO_C" >&6
11177else
11178  cat >conftest.$ac_ext <<_ACEOF
11179/* confdefs.h.  */
11180_ACEOF
11181cat confdefs.h >>conftest.$ac_ext
11182cat >>conftest.$ac_ext <<_ACEOF
11183/* end confdefs.h.  */
11184/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11186#define shl_load innocuous_shl_load
11187
11188/* System header to define __stub macros and hopefully few prototypes,
11189    which can conflict with char shl_load (); below.
11190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191    <limits.h> exists even on freestanding compilers.  */
11192
11193#ifdef __STDC__
11194# include <limits.h>
11195#else
11196# include <assert.h>
11197#endif
11198
11199#undef shl_load
11200
11201/* Override any GCC internal prototype to avoid an error.
11202   Use char because int might match the return type of a GCC
11203   builtin and then its argument prototype would still apply.  */
11204#ifdef __cplusplus
11205extern "C"
11206#endif
11207char shl_load ();
11208/* The GNU C library defines this for functions which it implements
11209    to always fail with ENOSYS.  Some functions are actually named
11210    something starting with __ and the normal name is an alias.  */
11211#if defined __stub_shl_load || defined __stub___shl_load
11212choke me
11213#endif
11214
11215int
11216main ()
11217{
11218return shl_load ();
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223rm -f conftest.$ac_objext conftest$ac_exeext
11224if { (ac_try="$ac_link"
11225case "(($ac_try" in
11226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227  *) ac_try_echo=$ac_try;;
11228esac
11229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230  (eval "$ac_link") 2>conftest.er1
11231  ac_status=$?
11232  grep -v '^ *+' conftest.er1 >conftest.err
11233  rm -f conftest.er1
11234  cat conftest.err >&5
11235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236  (exit $ac_status); } &&
11237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11238  { (case "(($ac_try" in
11239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240  *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243  (eval "$ac_try") 2>&5
11244  ac_status=$?
11245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246  (exit $ac_status); }; } &&
11247	 { ac_try='test -s conftest$ac_exeext'
11248  { (case "(($ac_try" in
11249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250  *) ac_try_echo=$ac_try;;
11251esac
11252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253  (eval "$ac_try") 2>&5
11254  ac_status=$?
11255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256  (exit $ac_status); }; }; then
11257  ac_cv_func_shl_load=yes
11258else
11259  echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
11262	ac_cv_func_shl_load=no
11263fi
11264
11265rm -f core conftest.err conftest.$ac_objext \
11266      conftest$ac_exeext conftest.$ac_ext
11267fi
11268{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11269echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11270if test $ac_cv_func_shl_load = yes; then
11271  lt_cv_dlopen="shl_load"
11272else
11273  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11274echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11275if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11276  echo $ECHO_N "(cached) $ECHO_C" >&6
11277else
11278  ac_check_lib_save_LIBS=$LIBS
11279LIBS="-ldld  $LIBS"
11280cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h.  */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h.  */
11286
11287/* Override any GCC internal prototype to avoid an error.
11288   Use char because int might match the return type of a GCC
11289   builtin and then its argument prototype would still apply.  */
11290#ifdef __cplusplus
11291extern "C"
11292#endif
11293char shl_load ();
11294int
11295main ()
11296{
11297return shl_load ();
11298  ;
11299  return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext conftest$ac_exeext
11303if { (ac_try="$ac_link"
11304case "(($ac_try" in
11305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306  *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309  (eval "$ac_link") 2>conftest.er1
11310  ac_status=$?
11311  grep -v '^ *+' conftest.er1 >conftest.err
11312  rm -f conftest.er1
11313  cat conftest.err >&5
11314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315  (exit $ac_status); } &&
11316	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11317  { (case "(($ac_try" in
11318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319  *) ac_try_echo=$ac_try;;
11320esac
11321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322  (eval "$ac_try") 2>&5
11323  ac_status=$?
11324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325  (exit $ac_status); }; } &&
11326	 { ac_try='test -s conftest$ac_exeext'
11327  { (case "(($ac_try" in
11328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329  *) ac_try_echo=$ac_try;;
11330esac
11331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332  (eval "$ac_try") 2>&5
11333  ac_status=$?
11334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335  (exit $ac_status); }; }; then
11336  ac_cv_lib_dld_shl_load=yes
11337else
11338  echo "$as_me: failed program was:" >&5
11339sed 's/^/| /' conftest.$ac_ext >&5
11340
11341	ac_cv_lib_dld_shl_load=no
11342fi
11343
11344rm -f core conftest.err conftest.$ac_objext \
11345      conftest$ac_exeext conftest.$ac_ext
11346LIBS=$ac_check_lib_save_LIBS
11347fi
11348{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11349echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11350if test $ac_cv_lib_dld_shl_load = yes; then
11351  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11352else
11353  { echo "$as_me:$LINENO: checking for dlopen" >&5
11354echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11355if test "${ac_cv_func_dlopen+set}" = set; then
11356  echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358  cat >conftest.$ac_ext <<_ACEOF
11359/* confdefs.h.  */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h.  */
11364/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11365   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11366#define dlopen innocuous_dlopen
11367
11368/* System header to define __stub macros and hopefully few prototypes,
11369    which can conflict with char dlopen (); below.
11370    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11371    <limits.h> exists even on freestanding compilers.  */
11372
11373#ifdef __STDC__
11374# include <limits.h>
11375#else
11376# include <assert.h>
11377#endif
11378
11379#undef dlopen
11380
11381/* Override any GCC internal prototype to avoid an error.
11382   Use char because int might match the return type of a GCC
11383   builtin and then its argument prototype would still apply.  */
11384#ifdef __cplusplus
11385extern "C"
11386#endif
11387char dlopen ();
11388/* The GNU C library defines this for functions which it implements
11389    to always fail with ENOSYS.  Some functions are actually named
11390    something starting with __ and the normal name is an alias.  */
11391#if defined __stub_dlopen || defined __stub___dlopen
11392choke me
11393#endif
11394
11395int
11396main ()
11397{
11398return dlopen ();
11399  ;
11400  return 0;
11401}
11402_ACEOF
11403rm -f conftest.$ac_objext conftest$ac_exeext
11404if { (ac_try="$ac_link"
11405case "(($ac_try" in
11406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407  *) ac_try_echo=$ac_try;;
11408esac
11409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410  (eval "$ac_link") 2>conftest.er1
11411  ac_status=$?
11412  grep -v '^ *+' conftest.er1 >conftest.err
11413  rm -f conftest.er1
11414  cat conftest.err >&5
11415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416  (exit $ac_status); } &&
11417	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11418  { (case "(($ac_try" in
11419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420  *) ac_try_echo=$ac_try;;
11421esac
11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423  (eval "$ac_try") 2>&5
11424  ac_status=$?
11425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426  (exit $ac_status); }; } &&
11427	 { ac_try='test -s conftest$ac_exeext'
11428  { (case "(($ac_try" in
11429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430  *) ac_try_echo=$ac_try;;
11431esac
11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433  (eval "$ac_try") 2>&5
11434  ac_status=$?
11435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436  (exit $ac_status); }; }; then
11437  ac_cv_func_dlopen=yes
11438else
11439  echo "$as_me: failed program was:" >&5
11440sed 's/^/| /' conftest.$ac_ext >&5
11441
11442	ac_cv_func_dlopen=no
11443fi
11444
11445rm -f core conftest.err conftest.$ac_objext \
11446      conftest$ac_exeext conftest.$ac_ext
11447fi
11448{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11449echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11450if test $ac_cv_func_dlopen = yes; then
11451  lt_cv_dlopen="dlopen"
11452else
11453  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11454echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11455if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11456  echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458  ac_check_lib_save_LIBS=$LIBS
11459LIBS="-ldl  $LIBS"
11460cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h.  */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
11465/* end confdefs.h.  */
11466
11467/* Override any GCC internal prototype to avoid an error.
11468   Use char because int might match the return type of a GCC
11469   builtin and then its argument prototype would still apply.  */
11470#ifdef __cplusplus
11471extern "C"
11472#endif
11473char dlopen ();
11474int
11475main ()
11476{
11477return dlopen ();
11478  ;
11479  return 0;
11480}
11481_ACEOF
11482rm -f conftest.$ac_objext conftest$ac_exeext
11483if { (ac_try="$ac_link"
11484case "(($ac_try" in
11485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486  *) ac_try_echo=$ac_try;;
11487esac
11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489  (eval "$ac_link") 2>conftest.er1
11490  ac_status=$?
11491  grep -v '^ *+' conftest.er1 >conftest.err
11492  rm -f conftest.er1
11493  cat conftest.err >&5
11494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495  (exit $ac_status); } &&
11496	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497  { (case "(($ac_try" in
11498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499  *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502  (eval "$ac_try") 2>&5
11503  ac_status=$?
11504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); }; } &&
11506	 { ac_try='test -s conftest$ac_exeext'
11507  { (case "(($ac_try" in
11508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509  *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512  (eval "$ac_try") 2>&5
11513  ac_status=$?
11514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515  (exit $ac_status); }; }; then
11516  ac_cv_lib_dl_dlopen=yes
11517else
11518  echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
11521	ac_cv_lib_dl_dlopen=no
11522fi
11523
11524rm -f core conftest.err conftest.$ac_objext \
11525      conftest$ac_exeext conftest.$ac_ext
11526LIBS=$ac_check_lib_save_LIBS
11527fi
11528{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11529echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11530if test $ac_cv_lib_dl_dlopen = yes; then
11531  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11532else
11533  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11534echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11535if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11536  echo $ECHO_N "(cached) $ECHO_C" >&6
11537else
11538  ac_check_lib_save_LIBS=$LIBS
11539LIBS="-lsvld  $LIBS"
11540cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h.  */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h.  */
11546
11547/* Override any GCC internal prototype to avoid an error.
11548   Use char because int might match the return type of a GCC
11549   builtin and then its argument prototype would still apply.  */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553char dlopen ();
11554int
11555main ()
11556{
11557return dlopen ();
11558  ;
11559  return 0;
11560}
11561_ACEOF
11562rm -f conftest.$ac_objext conftest$ac_exeext
11563if { (ac_try="$ac_link"
11564case "(($ac_try" in
11565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566  *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569  (eval "$ac_link") 2>conftest.er1
11570  ac_status=$?
11571  grep -v '^ *+' conftest.er1 >conftest.err
11572  rm -f conftest.er1
11573  cat conftest.err >&5
11574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575  (exit $ac_status); } &&
11576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577  { (case "(($ac_try" in
11578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579  *) ac_try_echo=$ac_try;;
11580esac
11581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582  (eval "$ac_try") 2>&5
11583  ac_status=$?
11584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585  (exit $ac_status); }; } &&
11586	 { ac_try='test -s conftest$ac_exeext'
11587  { (case "(($ac_try" in
11588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589  *) ac_try_echo=$ac_try;;
11590esac
11591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592  (eval "$ac_try") 2>&5
11593  ac_status=$?
11594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595  (exit $ac_status); }; }; then
11596  ac_cv_lib_svld_dlopen=yes
11597else
11598  echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601	ac_cv_lib_svld_dlopen=no
11602fi
11603
11604rm -f core conftest.err conftest.$ac_objext \
11605      conftest$ac_exeext conftest.$ac_ext
11606LIBS=$ac_check_lib_save_LIBS
11607fi
11608{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11609echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11610if test $ac_cv_lib_svld_dlopen = yes; then
11611  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11612else
11613  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11614echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11615if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11616  echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618  ac_check_lib_save_LIBS=$LIBS
11619LIBS="-ldld  $LIBS"
11620cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h.  */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h.  */
11626
11627/* Override any GCC internal prototype to avoid an error.
11628   Use char because int might match the return type of a GCC
11629   builtin and then its argument prototype would still apply.  */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633char dld_link ();
11634int
11635main ()
11636{
11637return dld_link ();
11638  ;
11639  return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext conftest$ac_exeext
11643if { (ac_try="$ac_link"
11644case "(($ac_try" in
11645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646  *) ac_try_echo=$ac_try;;
11647esac
11648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649  (eval "$ac_link") 2>conftest.er1
11650  ac_status=$?
11651  grep -v '^ *+' conftest.er1 >conftest.err
11652  rm -f conftest.er1
11653  cat conftest.err >&5
11654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655  (exit $ac_status); } &&
11656	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657  { (case "(($ac_try" in
11658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659  *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662  (eval "$ac_try") 2>&5
11663  ac_status=$?
11664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665  (exit $ac_status); }; } &&
11666	 { ac_try='test -s conftest$ac_exeext'
11667  { (case "(($ac_try" in
11668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669  *) ac_try_echo=$ac_try;;
11670esac
11671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672  (eval "$ac_try") 2>&5
11673  ac_status=$?
11674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675  (exit $ac_status); }; }; then
11676  ac_cv_lib_dld_dld_link=yes
11677else
11678  echo "$as_me: failed program was:" >&5
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681	ac_cv_lib_dld_dld_link=no
11682fi
11683
11684rm -f core conftest.err conftest.$ac_objext \
11685      conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11689echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11690if test $ac_cv_lib_dld_dld_link = yes; then
11691  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11692fi
11693
11694
11695fi
11696
11697
11698fi
11699
11700
11701fi
11702
11703
11704fi
11705
11706
11707fi
11708
11709    ;;
11710  esac
11711
11712  if test "x$lt_cv_dlopen" != xno; then
11713    enable_dlopen=yes
11714  else
11715    enable_dlopen=no
11716  fi
11717
11718  case $lt_cv_dlopen in
11719  dlopen)
11720    save_CPPFLAGS="$CPPFLAGS"
11721    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11722
11723    save_LDFLAGS="$LDFLAGS"
11724    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11725
11726    save_LIBS="$LIBS"
11727    LIBS="$lt_cv_dlopen_libs $LIBS"
11728
11729    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11730echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11731if test "${lt_cv_dlopen_self+set}" = set; then
11732  echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734  	  if test "$cross_compiling" = yes; then :
11735  lt_cv_dlopen_self=cross
11736else
11737  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738  lt_status=$lt_dlunknown
11739  cat > conftest.$ac_ext <<EOF
11740#line 11739 "configure"
11741#include "confdefs.h"
11742
11743#if HAVE_DLFCN_H
11744#include <dlfcn.h>
11745#endif
11746
11747#include <stdio.h>
11748
11749#ifdef RTLD_GLOBAL
11750#  define LT_DLGLOBAL		RTLD_GLOBAL
11751#else
11752#  ifdef DL_GLOBAL
11753#    define LT_DLGLOBAL		DL_GLOBAL
11754#  else
11755#    define LT_DLGLOBAL		0
11756#  endif
11757#endif
11758
11759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760   find out it does not work in some platform. */
11761#ifndef LT_DLLAZY_OR_NOW
11762#  ifdef RTLD_LAZY
11763#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11764#  else
11765#    ifdef DL_LAZY
11766#      define LT_DLLAZY_OR_NOW		DL_LAZY
11767#    else
11768#      ifdef RTLD_NOW
11769#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11770#      else
11771#        ifdef DL_NOW
11772#          define LT_DLLAZY_OR_NOW	DL_NOW
11773#        else
11774#          define LT_DLLAZY_OR_NOW	0
11775#        endif
11776#      endif
11777#    endif
11778#  endif
11779#endif
11780
11781#ifdef __cplusplus
11782extern "C" void exit (int);
11783#endif
11784
11785void fnord() { int i=42;}
11786int main ()
11787{
11788  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11789  int status = $lt_dlunknown;
11790
11791  if (self)
11792    {
11793      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11794      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11795      /* dlclose (self); */
11796    }
11797  else
11798    puts (dlerror ());
11799
11800    exit (status);
11801}
11802EOF
11803  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804  (eval $ac_link) 2>&5
11805  ac_status=$?
11806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11808    (./conftest; exit; ) >&5 2>/dev/null
11809    lt_status=$?
11810    case x$lt_status in
11811      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11812      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11813      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11814    esac
11815  else :
11816    # compilation failed
11817    lt_cv_dlopen_self=no
11818  fi
11819fi
11820rm -fr conftest*
11821
11822
11823fi
11824{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11825echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11826
11827    if test "x$lt_cv_dlopen_self" = xyes; then
11828      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11829      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11830echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11831if test "${lt_cv_dlopen_self_static+set}" = set; then
11832  echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834  	  if test "$cross_compiling" = yes; then :
11835  lt_cv_dlopen_self_static=cross
11836else
11837  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11838  lt_status=$lt_dlunknown
11839  cat > conftest.$ac_ext <<EOF
11840#line 11839 "configure"
11841#include "confdefs.h"
11842
11843#if HAVE_DLFCN_H
11844#include <dlfcn.h>
11845#endif
11846
11847#include <stdio.h>
11848
11849#ifdef RTLD_GLOBAL
11850#  define LT_DLGLOBAL		RTLD_GLOBAL
11851#else
11852#  ifdef DL_GLOBAL
11853#    define LT_DLGLOBAL		DL_GLOBAL
11854#  else
11855#    define LT_DLGLOBAL		0
11856#  endif
11857#endif
11858
11859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11860   find out it does not work in some platform. */
11861#ifndef LT_DLLAZY_OR_NOW
11862#  ifdef RTLD_LAZY
11863#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11864#  else
11865#    ifdef DL_LAZY
11866#      define LT_DLLAZY_OR_NOW		DL_LAZY
11867#    else
11868#      ifdef RTLD_NOW
11869#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11870#      else
11871#        ifdef DL_NOW
11872#          define LT_DLLAZY_OR_NOW	DL_NOW
11873#        else
11874#          define LT_DLLAZY_OR_NOW	0
11875#        endif
11876#      endif
11877#    endif
11878#  endif
11879#endif
11880
11881#ifdef __cplusplus
11882extern "C" void exit (int);
11883#endif
11884
11885void fnord() { int i=42;}
11886int main ()
11887{
11888  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889  int status = $lt_dlunknown;
11890
11891  if (self)
11892    {
11893      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11894      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895      /* dlclose (self); */
11896    }
11897  else
11898    puts (dlerror ());
11899
11900    exit (status);
11901}
11902EOF
11903  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904  (eval $ac_link) 2>&5
11905  ac_status=$?
11906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11908    (./conftest; exit; ) >&5 2>/dev/null
11909    lt_status=$?
11910    case x$lt_status in
11911      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11914    esac
11915  else :
11916    # compilation failed
11917    lt_cv_dlopen_self_static=no
11918  fi
11919fi
11920rm -fr conftest*
11921
11922
11923fi
11924{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11925echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11926    fi
11927
11928    CPPFLAGS="$save_CPPFLAGS"
11929    LDFLAGS="$save_LDFLAGS"
11930    LIBS="$save_LIBS"
11931    ;;
11932  esac
11933
11934  case $lt_cv_dlopen_self in
11935  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936  *) enable_dlopen_self=unknown ;;
11937  esac
11938
11939  case $lt_cv_dlopen_self_static in
11940  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941  *) enable_dlopen_self_static=unknown ;;
11942  esac
11943fi
11944
11945
11946# Report which library types will actually be built
11947{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11948echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11949{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11950echo "${ECHO_T}$can_build_shared" >&6; }
11951
11952{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11953echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11954test "$can_build_shared" = "no" && enable_shared=no
11955
11956# On AIX, shared libraries and static libraries use the same namespace, and
11957# are all built from PIC.
11958case $host_os in
11959aix3*)
11960  test "$enable_shared" = yes && enable_static=no
11961  if test -n "$RANLIB"; then
11962    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11963    postinstall_cmds='$RANLIB $lib'
11964  fi
11965  ;;
11966
11967aix4* | aix5*)
11968  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11969    test "$enable_shared" = yes && enable_static=no
11970  fi
11971    ;;
11972esac
11973{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11974echo "${ECHO_T}$enable_shared" >&6; }
11975
11976{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11977echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11978# Make sure either enable_shared or enable_static is yes.
11979test "$enable_shared" = yes || enable_static=yes
11980{ echo "$as_me:$LINENO: result: $enable_static" >&5
11981echo "${ECHO_T}$enable_static" >&6; }
11982
11983# The else clause should only fire when bootstrapping the
11984# libtool distribution, otherwise you forgot to ship ltmain.sh
11985# with your package, and you will get complaints that there are
11986# no rules to generate ltmain.sh.
11987if test -f "$ltmain"; then
11988  # See if we are running on zsh, and set the options which allow our commands through
11989  # without removal of \ escapes.
11990  if test -n "${ZSH_VERSION+set}" ; then
11991    setopt NO_GLOB_SUBST
11992  fi
11993  # Now quote all the things that may contain metacharacters while being
11994  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11995  # variables and quote the copies for generation of the libtool script.
11996  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11997    SED SHELL STRIP \
11998    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11999    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12000    deplibs_check_method reload_flag reload_cmds need_locks \
12001    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12002    lt_cv_sys_global_symbol_to_c_name_address \
12003    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12004    old_postinstall_cmds old_postuninstall_cmds \
12005    compiler \
12006    CC \
12007    LD \
12008    lt_prog_compiler_wl \
12009    lt_prog_compiler_pic \
12010    lt_prog_compiler_static \
12011    lt_prog_compiler_no_builtin_flag \
12012    export_dynamic_flag_spec \
12013    thread_safe_flag_spec \
12014    whole_archive_flag_spec \
12015    enable_shared_with_static_runtimes \
12016    old_archive_cmds \
12017    old_archive_from_new_cmds \
12018    predep_objects \
12019    postdep_objects \
12020    predeps \
12021    postdeps \
12022    compiler_lib_search_path \
12023    archive_cmds \
12024    archive_expsym_cmds \
12025    postinstall_cmds \
12026    postuninstall_cmds \
12027    old_archive_from_expsyms_cmds \
12028    allow_undefined_flag \
12029    no_undefined_flag \
12030    export_symbols_cmds \
12031    hardcode_libdir_flag_spec \
12032    hardcode_libdir_flag_spec_ld \
12033    hardcode_libdir_separator \
12034    hardcode_automatic \
12035    module_cmds \
12036    module_expsym_cmds \
12037    lt_cv_prog_compiler_c_o \
12038    exclude_expsyms \
12039    include_expsyms; do
12040
12041    case $var in
12042    old_archive_cmds | \
12043    old_archive_from_new_cmds | \
12044    archive_cmds | \
12045    archive_expsym_cmds | \
12046    module_cmds | \
12047    module_expsym_cmds | \
12048    old_archive_from_expsyms_cmds | \
12049    export_symbols_cmds | \
12050    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12051    postinstall_cmds | postuninstall_cmds | \
12052    old_postinstall_cmds | old_postuninstall_cmds | \
12053    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12054      # Double-quote double-evaled strings.
12055      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12056      ;;
12057    *)
12058      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12059      ;;
12060    esac
12061  done
12062
12063  case $lt_echo in
12064  *'\$0 --fallback-echo"')
12065    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12066    ;;
12067  esac
12068
12069cfgfile="${ofile}T"
12070  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12071  $rm -f "$cfgfile"
12072  { echo "$as_me:$LINENO: creating $ofile" >&5
12073echo "$as_me: creating $ofile" >&6;}
12074
12075  cat <<__EOF__ >> "$cfgfile"
12076#! $SHELL
12077
12078# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12079# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12080# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12081#
12082# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12083# Free Software Foundation, Inc.
12084#
12085# This file is part of GNU Libtool:
12086# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12087#
12088# This program is free software; you can redistribute it and/or modify
12089# it under the terms of the GNU General Public License as published by
12090# the Free Software Foundation; either version 2 of the License, or
12091# (at your option) any later version.
12092#
12093# This program is distributed in the hope that it will be useful, but
12094# WITHOUT ANY WARRANTY; without even the implied warranty of
12095# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12096# General Public License for more details.
12097#
12098# You should have received a copy of the GNU General Public License
12099# along with this program; if not, write to the Free Software
12100# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12101#
12102# As a special exception to the GNU General Public License, if you
12103# distribute this file as part of a program that contains a
12104# configuration script generated by Autoconf, you may include it under
12105# the same distribution terms that you use for the rest of that program.
12106
12107# A sed program that does not truncate output.
12108SED=$lt_SED
12109
12110# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12111Xsed="$SED -e 1s/^X//"
12112
12113# The HP-UX ksh and POSIX shell print the target directory to stdout
12114# if CDPATH is set.
12115(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12116
12117# The names of the tagged configurations supported by this script.
12118available_tags=
12119
12120# ### BEGIN LIBTOOL CONFIG
12121
12122# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12123
12124# Shell to use when invoking shell scripts.
12125SHELL=$lt_SHELL
12126
12127# Whether or not to build shared libraries.
12128build_libtool_libs=$enable_shared
12129
12130# Whether or not to build static libraries.
12131build_old_libs=$enable_static
12132
12133# Whether or not to add -lc for building shared libraries.
12134build_libtool_need_lc=$archive_cmds_need_lc
12135
12136# Whether or not to disallow shared libs when runtime libs are static
12137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12138
12139# Whether or not to optimize for fast installation.
12140fast_install=$enable_fast_install
12141
12142# The host system.
12143host_alias=$host_alias
12144host=$host
12145host_os=$host_os
12146
12147# The build system.
12148build_alias=$build_alias
12149build=$build
12150build_os=$build_os
12151
12152# An echo program that does not interpret backslashes.
12153echo=$lt_echo
12154
12155# The archiver.
12156AR=$lt_AR
12157AR_FLAGS=$lt_AR_FLAGS
12158
12159# A C compiler.
12160LTCC=$lt_LTCC
12161
12162# LTCC compiler flags.
12163LTCFLAGS=$lt_LTCFLAGS
12164
12165# A language-specific compiler.
12166CC=$lt_compiler
12167
12168# Is the compiler the GNU C compiler?
12169with_gcc=$GCC
12170
12171# An ERE matcher.
12172EGREP=$lt_EGREP
12173
12174# The linker used to build libraries.
12175LD=$lt_LD
12176
12177# Whether we need hard or soft links.
12178LN_S=$lt_LN_S
12179
12180# A BSD-compatible nm program.
12181NM=$lt_NM
12182
12183# A symbol stripping program
12184STRIP=$lt_STRIP
12185
12186# Used to examine libraries when file_magic_cmd begins "file"
12187MAGIC_CMD=$MAGIC_CMD
12188
12189# Used on cygwin: DLL creation program.
12190DLLTOOL="$DLLTOOL"
12191
12192# Used on cygwin: object dumper.
12193OBJDUMP="$OBJDUMP"
12194
12195# Used on cygwin: assembler.
12196AS="$AS"
12197
12198# The name of the directory that contains temporary libtool files.
12199objdir=$objdir
12200
12201# How to create reloadable object files.
12202reload_flag=$lt_reload_flag
12203reload_cmds=$lt_reload_cmds
12204
12205# How to pass a linker flag through the compiler.
12206wl=$lt_lt_prog_compiler_wl
12207
12208# Object file suffix (normally "o").
12209objext="$ac_objext"
12210
12211# Old archive suffix (normally "a").
12212libext="$libext"
12213
12214# Shared library suffix (normally ".so").
12215shrext_cmds='$shrext_cmds'
12216
12217# Executable file suffix (normally "").
12218exeext="$exeext"
12219
12220# Additional compiler flags for building library objects.
12221pic_flag=$lt_lt_prog_compiler_pic
12222pic_mode=$pic_mode
12223
12224# What is the maximum length of a command?
12225max_cmd_len=$lt_cv_sys_max_cmd_len
12226
12227# Does compiler simultaneously support -c and -o options?
12228compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12229
12230# Must we lock files when doing compilation?
12231need_locks=$lt_need_locks
12232
12233# Do we need the lib prefix for modules?
12234need_lib_prefix=$need_lib_prefix
12235
12236# Do we need a version for libraries?
12237need_version=$need_version
12238
12239# Whether dlopen is supported.
12240dlopen_support=$enable_dlopen
12241
12242# Whether dlopen of programs is supported.
12243dlopen_self=$enable_dlopen_self
12244
12245# Whether dlopen of statically linked programs is supported.
12246dlopen_self_static=$enable_dlopen_self_static
12247
12248# Compiler flag to prevent dynamic linking.
12249link_static_flag=$lt_lt_prog_compiler_static
12250
12251# Compiler flag to turn off builtin functions.
12252no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12253
12254# Compiler flag to allow reflexive dlopens.
12255export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12256
12257# Compiler flag to generate shared objects directly from archives.
12258whole_archive_flag_spec=$lt_whole_archive_flag_spec
12259
12260# Compiler flag to generate thread-safe objects.
12261thread_safe_flag_spec=$lt_thread_safe_flag_spec
12262
12263# Library versioning type.
12264version_type=$version_type
12265
12266# Format of library name prefix.
12267libname_spec=$lt_libname_spec
12268
12269# List of archive names.  First name is the real one, the rest are links.
12270# The last name is the one that the linker finds with -lNAME.
12271library_names_spec=$lt_library_names_spec
12272
12273# The coded name of the library, if different from the real name.
12274soname_spec=$lt_soname_spec
12275
12276# Commands used to build and install an old-style archive.
12277RANLIB=$lt_RANLIB
12278old_archive_cmds=$lt_old_archive_cmds
12279old_postinstall_cmds=$lt_old_postinstall_cmds
12280old_postuninstall_cmds=$lt_old_postuninstall_cmds
12281
12282# Create an old-style archive from a shared archive.
12283old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12284
12285# Create a temporary old-style archive to link instead of a shared archive.
12286old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12287
12288# Commands used to build and install a shared archive.
12289archive_cmds=$lt_archive_cmds
12290archive_expsym_cmds=$lt_archive_expsym_cmds
12291postinstall_cmds=$lt_postinstall_cmds
12292postuninstall_cmds=$lt_postuninstall_cmds
12293
12294# Commands used to build a loadable module (assumed same as above if empty)
12295module_cmds=$lt_module_cmds
12296module_expsym_cmds=$lt_module_expsym_cmds
12297
12298# Commands to strip libraries.
12299old_striplib=$lt_old_striplib
12300striplib=$lt_striplib
12301
12302# Dependencies to place before the objects being linked to create a
12303# shared library.
12304predep_objects=$lt_predep_objects
12305
12306# Dependencies to place after the objects being linked to create a
12307# shared library.
12308postdep_objects=$lt_postdep_objects
12309
12310# Dependencies to place before the objects being linked to create a
12311# shared library.
12312predeps=$lt_predeps
12313
12314# Dependencies to place after the objects being linked to create a
12315# shared library.
12316postdeps=$lt_postdeps
12317
12318# The library search path used internally by the compiler when linking
12319# a shared library.
12320compiler_lib_search_path=$lt_compiler_lib_search_path
12321
12322# Method to check whether dependent libraries are shared objects.
12323deplibs_check_method=$lt_deplibs_check_method
12324
12325# Command to use when deplibs_check_method == file_magic.
12326file_magic_cmd=$lt_file_magic_cmd
12327
12328# Flag that allows shared libraries with undefined symbols to be built.
12329allow_undefined_flag=$lt_allow_undefined_flag
12330
12331# Flag that forces no undefined symbols.
12332no_undefined_flag=$lt_no_undefined_flag
12333
12334# Commands used to finish a libtool library installation in a directory.
12335finish_cmds=$lt_finish_cmds
12336
12337# Same as above, but a single script fragment to be evaled but not shown.
12338finish_eval=$lt_finish_eval
12339
12340# Take the output of nm and produce a listing of raw symbols and C names.
12341global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12342
12343# Transform the output of nm in a proper C declaration
12344global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12345
12346# Transform the output of nm in a C name address pair
12347global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12348
12349# This is the shared library runtime path variable.
12350runpath_var=$runpath_var
12351
12352# This is the shared library path variable.
12353shlibpath_var=$shlibpath_var
12354
12355# Is shlibpath searched before the hard-coded library search path?
12356shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12357
12358# How to hardcode a shared library path into an executable.
12359hardcode_action=$hardcode_action
12360
12361# Whether we should hardcode library paths into libraries.
12362hardcode_into_libs=$hardcode_into_libs
12363
12364# Flag to hardcode \$libdir into a binary during linking.
12365# This must work even if \$libdir does not exist.
12366hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12367
12368# If ld is used when linking, flag to hardcode \$libdir into
12369# a binary during linking. This must work even if \$libdir does
12370# not exist.
12371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12372
12373# Whether we need a single -rpath flag with a separated argument.
12374hardcode_libdir_separator=$lt_hardcode_libdir_separator
12375
12376# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12377# resulting binary.
12378hardcode_direct=$hardcode_direct
12379
12380# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12381# resulting binary.
12382hardcode_minus_L=$hardcode_minus_L
12383
12384# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12385# the resulting binary.
12386hardcode_shlibpath_var=$hardcode_shlibpath_var
12387
12388# Set to yes if building a shared library automatically hardcodes DIR into the library
12389# and all subsequent libraries and executables linked against it.
12390hardcode_automatic=$hardcode_automatic
12391
12392# Variables whose values should be saved in libtool wrapper scripts and
12393# restored at relink time.
12394variables_saved_for_relink="$variables_saved_for_relink"
12395
12396# Whether libtool must link a program against all its dependency libraries.
12397link_all_deplibs=$link_all_deplibs
12398
12399# Compile-time system search path for libraries
12400sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12401
12402# Run-time system search path for libraries
12403sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12404
12405# Fix the shell variable \$srcfile for the compiler.
12406fix_srcfile_path="$fix_srcfile_path"
12407
12408# Set to yes if exported symbols are required.
12409always_export_symbols=$always_export_symbols
12410
12411# The commands to list exported symbols.
12412export_symbols_cmds=$lt_export_symbols_cmds
12413
12414# The commands to extract the exported symbol list from a shared archive.
12415extract_expsyms_cmds=$lt_extract_expsyms_cmds
12416
12417# Symbols that should not be listed in the preloaded symbols.
12418exclude_expsyms=$lt_exclude_expsyms
12419
12420# Symbols that must always be exported.
12421include_expsyms=$lt_include_expsyms
12422
12423# ### END LIBTOOL CONFIG
12424
12425__EOF__
12426
12427
12428  case $host_os in
12429  aix3*)
12430    cat <<\EOF >> "$cfgfile"
12431
12432# AIX sometimes has problems with the GCC collect2 program.  For some
12433# reason, if we set the COLLECT_NAMES environment variable, the problems
12434# vanish in a puff of smoke.
12435if test "X${COLLECT_NAMES+set}" != Xset; then
12436  COLLECT_NAMES=
12437  export COLLECT_NAMES
12438fi
12439EOF
12440    ;;
12441  esac
12442
12443  # We use sed instead of cat because bash on DJGPP gets confused if
12444  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12445  # text mode, it properly converts lines to CR/LF.  This bash problem
12446  # is reportedly fixed, but why not run on old versions too?
12447  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12448
12449  mv -f "$cfgfile" "$ofile" || \
12450    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12451  chmod +x "$ofile"
12452
12453else
12454  # If there is no Makefile yet, we rely on a make rule to execute
12455  # `config.status --recheck' to rerun these tests and create the
12456  # libtool script then.
12457  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12458  if test -f "$ltmain_in"; then
12459    test -f Makefile && make "$ltmain"
12460  fi
12461fi
12462
12463
12464ac_ext=c
12465ac_cpp='$CPP $CPPFLAGS'
12466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468ac_compiler_gnu=$ac_cv_c_compiler_gnu
12469
12470CC="$lt_save_CC"
12471
12472
12473# Check whether --with-tags was given.
12474if test "${with_tags+set}" = set; then
12475  withval=$with_tags; tagnames="$withval"
12476fi
12477
12478
12479if test -f "$ltmain" && test -n "$tagnames"; then
12480  if test ! -f "${ofile}"; then
12481    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12482echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12483  fi
12484
12485  if test -z "$LTCC"; then
12486    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12487    if test -z "$LTCC"; then
12488      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12489echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12490    else
12491      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12492echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12493    fi
12494  fi
12495  if test -z "$LTCFLAGS"; then
12496    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12497  fi
12498
12499  # Extract list of available tagged configurations in $ofile.
12500  # Note that this assumes the entire list is on one line.
12501  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12502
12503  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12504  for tagname in $tagnames; do
12505    IFS="$lt_save_ifs"
12506    # Check whether tagname contains only valid characters
12507    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12508    "") ;;
12509    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12510echo "$as_me: error: invalid tag name: $tagname" >&2;}
12511   { (exit 1); exit 1; }; }
12512	;;
12513    esac
12514
12515    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12516    then
12517      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12518echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12519   { (exit 1); exit 1; }; }
12520    fi
12521
12522    # Update the list of available tags.
12523    if test -n "$tagname"; then
12524      echo appending configuration tag \"$tagname\" to $ofile
12525
12526      case $tagname in
12527      CXX)
12528	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12529	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12530	    (test "X$CXX" != "Xg++"))) ; then
12531	  ac_ext=cpp
12532ac_cpp='$CXXCPP $CPPFLAGS'
12533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12536
12537
12538
12539
12540archive_cmds_need_lc_CXX=no
12541allow_undefined_flag_CXX=
12542always_export_symbols_CXX=no
12543archive_expsym_cmds_CXX=
12544export_dynamic_flag_spec_CXX=
12545hardcode_direct_CXX=no
12546hardcode_libdir_flag_spec_CXX=
12547hardcode_libdir_flag_spec_ld_CXX=
12548hardcode_libdir_separator_CXX=
12549hardcode_minus_L_CXX=no
12550hardcode_shlibpath_var_CXX=unsupported
12551hardcode_automatic_CXX=no
12552module_cmds_CXX=
12553module_expsym_cmds_CXX=
12554link_all_deplibs_CXX=unknown
12555old_archive_cmds_CXX=$old_archive_cmds
12556no_undefined_flag_CXX=
12557whole_archive_flag_spec_CXX=
12558enable_shared_with_static_runtimes_CXX=no
12559
12560# Dependencies to place before and after the object being linked:
12561predep_objects_CXX=
12562postdep_objects_CXX=
12563predeps_CXX=
12564postdeps_CXX=
12565compiler_lib_search_path_CXX=
12566
12567# Source file extension for C++ test sources.
12568ac_ext=cpp
12569
12570# Object file extension for compiled C++ test sources.
12571objext=o
12572objext_CXX=$objext
12573
12574# Code to be used in simple compile tests
12575lt_simple_compile_test_code="int some_variable = 0;\n"
12576
12577# Code to be used in simple link tests
12578lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12579
12580# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12581
12582# If no C compiler was specified, use CC.
12583LTCC=${LTCC-"$CC"}
12584
12585# If no C compiler flags were specified, use CFLAGS.
12586LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12587
12588# Allow CC to be a program name with arguments.
12589compiler=$CC
12590
12591
12592# save warnings/boilerplate of simple test code
12593ac_outfile=conftest.$ac_objext
12594printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12595eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12596_lt_compiler_boilerplate=`cat conftest.err`
12597$rm conftest*
12598
12599ac_outfile=conftest.$ac_objext
12600printf "$lt_simple_link_test_code" >conftest.$ac_ext
12601eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12602_lt_linker_boilerplate=`cat conftest.err`
12603$rm conftest*
12604
12605
12606# Allow CC to be a program name with arguments.
12607lt_save_CC=$CC
12608lt_save_LD=$LD
12609lt_save_GCC=$GCC
12610GCC=$GXX
12611lt_save_with_gnu_ld=$with_gnu_ld
12612lt_save_path_LD=$lt_cv_path_LD
12613if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12614  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12615else
12616  $as_unset lt_cv_prog_gnu_ld
12617fi
12618if test -n "${lt_cv_path_LDCXX+set}"; then
12619  lt_cv_path_LD=$lt_cv_path_LDCXX
12620else
12621  $as_unset lt_cv_path_LD
12622fi
12623test -z "${LDCXX+set}" || LD=$LDCXX
12624CC=${CXX-"c++"}
12625compiler=$CC
12626compiler_CXX=$CC
12627for cc_temp in $compiler""; do
12628  case $cc_temp in
12629    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12630    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12631    \-*) ;;
12632    *) break;;
12633  esac
12634done
12635cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12636
12637
12638# We don't want -fno-exception wen compiling C++ code, so set the
12639# no_builtin_flag separately
12640if test "$GXX" = yes; then
12641  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12642else
12643  lt_prog_compiler_no_builtin_flag_CXX=
12644fi
12645
12646if test "$GXX" = yes; then
12647  # Set up default GNU C++ configuration
12648
12649
12650# Check whether --with-gnu-ld was given.
12651if test "${with_gnu_ld+set}" = set; then
12652  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12653else
12654  with_gnu_ld=no
12655fi
12656
12657ac_prog=ld
12658if test "$GCC" = yes; then
12659  # Check if gcc -print-prog-name=ld gives a path.
12660  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12661echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12662  case $host in
12663  *-*-mingw*)
12664    # gcc leaves a trailing carriage return which upsets mingw
12665    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12666  *)
12667    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12668  esac
12669  case $ac_prog in
12670    # Accept absolute paths.
12671    [\\/]* | ?:[\\/]*)
12672      re_direlt='/[^/][^/]*/\.\./'
12673      # Canonicalize the pathname of ld
12674      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12675      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12676	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12677      done
12678      test -z "$LD" && LD="$ac_prog"
12679      ;;
12680  "")
12681    # If it fails, then pretend we aren't using GCC.
12682    ac_prog=ld
12683    ;;
12684  *)
12685    # If it is relative, then search for the first ld in PATH.
12686    with_gnu_ld=unknown
12687    ;;
12688  esac
12689elif test "$with_gnu_ld" = yes; then
12690  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12691echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12692else
12693  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12694echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12695fi
12696if test "${lt_cv_path_LD+set}" = set; then
12697  echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699  if test -z "$LD"; then
12700  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12701  for ac_dir in $PATH; do
12702    IFS="$lt_save_ifs"
12703    test -z "$ac_dir" && ac_dir=.
12704    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12705      lt_cv_path_LD="$ac_dir/$ac_prog"
12706      # Check to see if the program is GNU ld.  I'd rather use --version,
12707      # but apparently some variants of GNU ld only accept -v.
12708      # Break only if it was the GNU/non-GNU ld that we prefer.
12709      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12710      *GNU* | *'with BFD'*)
12711	test "$with_gnu_ld" != no && break
12712	;;
12713      *)
12714	test "$with_gnu_ld" != yes && break
12715	;;
12716      esac
12717    fi
12718  done
12719  IFS="$lt_save_ifs"
12720else
12721  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12722fi
12723fi
12724
12725LD="$lt_cv_path_LD"
12726if test -n "$LD"; then
12727  { echo "$as_me:$LINENO: result: $LD" >&5
12728echo "${ECHO_T}$LD" >&6; }
12729else
12730  { echo "$as_me:$LINENO: result: no" >&5
12731echo "${ECHO_T}no" >&6; }
12732fi
12733test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12734echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12735   { (exit 1); exit 1; }; }
12736{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12737echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12738if test "${lt_cv_prog_gnu_ld+set}" = set; then
12739  echo $ECHO_N "(cached) $ECHO_C" >&6
12740else
12741  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12742case `$LD -v 2>&1 </dev/null` in
12743*GNU* | *'with BFD'*)
12744  lt_cv_prog_gnu_ld=yes
12745  ;;
12746*)
12747  lt_cv_prog_gnu_ld=no
12748  ;;
12749esac
12750fi
12751{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12752echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12753with_gnu_ld=$lt_cv_prog_gnu_ld
12754
12755
12756
12757  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12758  # archiving commands below assume that GNU ld is being used.
12759  if test "$with_gnu_ld" = yes; then
12760    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761    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'
12762
12763    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12764    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12765
12766    # If archive_cmds runs LD, not CC, wlarc should be empty
12767    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12768    #     investigate it a little bit more. (MM)
12769    wlarc='${wl}'
12770
12771    # ancient GNU ld didn't support --whole-archive et. al.
12772    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12773	grep 'no-whole-archive' > /dev/null; then
12774      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12775    else
12776      whole_archive_flag_spec_CXX=
12777    fi
12778  else
12779    with_gnu_ld=no
12780    wlarc=
12781
12782    # A generic and very simple default shared library creation
12783    # command for GNU C++ for the case where it uses the native
12784    # linker, instead of GNU ld.  If possible, this setting should
12785    # overridden to take advantage of the native linker features on
12786    # the platform it is being used on.
12787    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12788  fi
12789
12790  # Commands to make compiler produce verbose output that lists
12791  # what "hidden" libraries, object files and flags are used when
12792  # linking a shared library.
12793  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12794
12795else
12796  GXX=no
12797  with_gnu_ld=no
12798  wlarc=
12799fi
12800
12801# PORTME: fill in a description of your system's C++ link characteristics
12802{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12803echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12804ld_shlibs_CXX=yes
12805case $host_os in
12806  aix3*)
12807    # FIXME: insert proper C++ library support
12808    ld_shlibs_CXX=no
12809    ;;
12810  aix4* | aix5*)
12811    if test "$host_cpu" = ia64; then
12812      # On IA64, the linker does run time linking by default, so we don't
12813      # have to do anything special.
12814      aix_use_runtimelinking=no
12815      exp_sym_flag='-Bexport'
12816      no_entry_flag=""
12817    else
12818      aix_use_runtimelinking=no
12819
12820      # Test if we are trying to use run time linking or normal
12821      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12822      # need to do runtime linking.
12823      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12824	for ld_flag in $LDFLAGS; do
12825	  case $ld_flag in
12826	  *-brtl*)
12827	    aix_use_runtimelinking=yes
12828	    break
12829	    ;;
12830	  esac
12831	done
12832	;;
12833      esac
12834
12835      exp_sym_flag='-bexport'
12836      no_entry_flag='-bnoentry'
12837    fi
12838
12839    # When large executables or shared objects are built, AIX ld can
12840    # have problems creating the table of contents.  If linking a library
12841    # or program results in "error TOC overflow" add -mminimal-toc to
12842    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12843    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12844
12845    archive_cmds_CXX=''
12846    hardcode_direct_CXX=yes
12847    hardcode_libdir_separator_CXX=':'
12848    link_all_deplibs_CXX=yes
12849
12850    if test "$GXX" = yes; then
12851      case $host_os in aix4.[012]|aix4.[012].*)
12852      # We only want to do this on AIX 4.2 and lower, the check
12853      # below for broken collect2 doesn't work under 4.3+
12854	collect2name=`${CC} -print-prog-name=collect2`
12855	if test -f "$collect2name" && \
12856	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12857	then
12858	  # We have reworked collect2
12859	  hardcode_direct_CXX=yes
12860	else
12861	  # We have old collect2
12862	  hardcode_direct_CXX=unsupported
12863	  # It fails to find uninstalled libraries when the uninstalled
12864	  # path is not listed in the libpath.  Setting hardcode_minus_L
12865	  # to unsupported forces relinking
12866	  hardcode_minus_L_CXX=yes
12867	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12868	  hardcode_libdir_separator_CXX=
12869	fi
12870	;;
12871      esac
12872      shared_flag='-shared'
12873      if test "$aix_use_runtimelinking" = yes; then
12874	shared_flag="$shared_flag "'${wl}-G'
12875      fi
12876    else
12877      # not using gcc
12878      if test "$host_cpu" = ia64; then
12879	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12880	# chokes on -Wl,-G. The following line is correct:
12881	shared_flag='-G'
12882      else
12883	if test "$aix_use_runtimelinking" = yes; then
12884	  shared_flag='${wl}-G'
12885	else
12886	  shared_flag='${wl}-bM:SRE'
12887	fi
12888      fi
12889    fi
12890
12891    # It seems that -bexpall does not export symbols beginning with
12892    # underscore (_), so it is better to generate a list of symbols to export.
12893    always_export_symbols_CXX=yes
12894    if test "$aix_use_runtimelinking" = yes; then
12895      # Warning - without using the other runtime loading flags (-brtl),
12896      # -berok will link without error, but may produce a broken library.
12897      allow_undefined_flag_CXX='-berok'
12898      # Determine the default libpath from the value encoded in an empty executable.
12899      cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h.  */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h.  */
12905
12906int
12907main ()
12908{
12909
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914rm -f conftest.$ac_objext conftest$ac_exeext
12915if { (ac_try="$ac_link"
12916case "(($ac_try" in
12917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918  *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921  (eval "$ac_link") 2>conftest.er1
12922  ac_status=$?
12923  grep -v '^ *+' conftest.er1 >conftest.err
12924  rm -f conftest.er1
12925  cat conftest.err >&5
12926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927  (exit $ac_status); } &&
12928	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12929  { (case "(($ac_try" in
12930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931  *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934  (eval "$ac_try") 2>&5
12935  ac_status=$?
12936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937  (exit $ac_status); }; } &&
12938	 { ac_try='test -s conftest$ac_exeext'
12939  { (case "(($ac_try" in
12940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941  *) ac_try_echo=$ac_try;;
12942esac
12943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944  (eval "$ac_try") 2>&5
12945  ac_status=$?
12946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947  (exit $ac_status); }; }; then
12948
12949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12950}'`
12951# Check for a 64-bit object if we didn't find anything.
12952if 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; }
12953}'`; fi
12954else
12955  echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
12958
12959fi
12960
12961rm -f core conftest.err conftest.$ac_objext \
12962      conftest$ac_exeext conftest.$ac_ext
12963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12964
12965      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12966
12967      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"
12968     else
12969      if test "$host_cpu" = ia64; then
12970	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12971	allow_undefined_flag_CXX="-z nodefs"
12972	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"
12973      else
12974	# Determine the default libpath from the value encoded in an empty executable.
12975	cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h.  */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h.  */
12981
12982int
12983main ()
12984{
12985
12986  ;
12987  return 0;
12988}
12989_ACEOF
12990rm -f conftest.$ac_objext conftest$ac_exeext
12991if { (ac_try="$ac_link"
12992case "(($ac_try" in
12993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994  *) ac_try_echo=$ac_try;;
12995esac
12996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997  (eval "$ac_link") 2>conftest.er1
12998  ac_status=$?
12999  grep -v '^ *+' conftest.er1 >conftest.err
13000  rm -f conftest.er1
13001  cat conftest.err >&5
13002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003  (exit $ac_status); } &&
13004	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13005  { (case "(($ac_try" in
13006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007  *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010  (eval "$ac_try") 2>&5
13011  ac_status=$?
13012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013  (exit $ac_status); }; } &&
13014	 { ac_try='test -s conftest$ac_exeext'
13015  { (case "(($ac_try" in
13016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017  *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020  (eval "$ac_try") 2>&5
13021  ac_status=$?
13022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023  (exit $ac_status); }; }; then
13024
13025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13026}'`
13027# Check for a 64-bit object if we didn't find anything.
13028if 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; }
13029}'`; fi
13030else
13031  echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034
13035fi
13036
13037rm -f core conftest.err conftest.$ac_objext \
13038      conftest$ac_exeext conftest.$ac_ext
13039if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13040
13041	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13042	# Warning - without using the other run time loading flags,
13043	# -berok will link without error, but may produce a broken library.
13044	no_undefined_flag_CXX=' ${wl}-bernotok'
13045	allow_undefined_flag_CXX=' ${wl}-berok'
13046	# Exported symbols can be pulled into shared objects from archives
13047	whole_archive_flag_spec_CXX='$convenience'
13048	archive_cmds_need_lc_CXX=yes
13049	# This is similar to how AIX traditionally builds its shared libraries.
13050	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'
13051      fi
13052    fi
13053    ;;
13054
13055  beos*)
13056    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13057      allow_undefined_flag_CXX=unsupported
13058      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13059      # support --undefined.  This deserves some investigation.  FIXME
13060      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061    else
13062      ld_shlibs_CXX=no
13063    fi
13064    ;;
13065
13066  chorus*)
13067    case $cc_basename in
13068      *)
13069	# FIXME: insert proper C++ library support
13070	ld_shlibs_CXX=no
13071	;;
13072    esac
13073    ;;
13074
13075  cygwin* | mingw* | pw32*)
13076    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13077    # as there is no search path for DLLs.
13078    hardcode_libdir_flag_spec_CXX='-L$libdir'
13079    allow_undefined_flag_CXX=unsupported
13080    always_export_symbols_CXX=no
13081    enable_shared_with_static_runtimes_CXX=yes
13082
13083    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13084      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'
13085      # If the export-symbols file already is a .def file (1st line
13086      # is EXPORTS), use it as is; otherwise, prepend...
13087      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13088	cp $export_symbols $output_objdir/$soname.def;
13089      else
13090	echo EXPORTS > $output_objdir/$soname.def;
13091	cat $export_symbols >> $output_objdir/$soname.def;
13092      fi~
13093      $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'
13094    else
13095      ld_shlibs_CXX=no
13096    fi
13097  ;;
13098      darwin* | rhapsody*)
13099        case $host_os in
13100        rhapsody* | darwin1.[012])
13101         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13102         ;;
13103       *) # Darwin 1.3 on
13104         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13105           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13106         else
13107           case ${MACOSX_DEPLOYMENT_TARGET} in
13108             10.[012])
13109               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13110               ;;
13111             10.*)
13112               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13113               ;;
13114           esac
13115         fi
13116         ;;
13117        esac
13118      archive_cmds_need_lc_CXX=no
13119      hardcode_direct_CXX=no
13120      hardcode_automatic_CXX=yes
13121      hardcode_shlibpath_var_CXX=unsupported
13122      whole_archive_flag_spec_CXX=''
13123      link_all_deplibs_CXX=yes
13124
13125    if test "$GXX" = yes ; then
13126      lt_int_apple_cc_single_mod=no
13127      output_verbose_link_cmd='echo'
13128      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13129       lt_int_apple_cc_single_mod=yes
13130      fi
13131      sectorder_flags='-sectorder __TEXT __text /usr/local/lib/OrderFiles/libiconv.order'
13132      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13133       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags $sectorder_flags -install_name $rpath/$soname $verstring $RC_CFLAGS'
13134      else
13135          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 $sectorder_flags -install_name $rpath/$soname $verstring $RC_CFLAGS'
13136        fi
13137        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13138        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13139          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13140            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}'
13141          else
13142            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}'
13143          fi
13144            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}'
13145      else
13146      case $cc_basename in
13147        xlc*)
13148         output_verbose_link_cmd='echo'
13149          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'
13150          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13151          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13152          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}'
13153          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}'
13154          ;;
13155       *)
13156         ld_shlibs_CXX=no
13157          ;;
13158      esac
13159      fi
13160        ;;
13161
13162  dgux*)
13163    case $cc_basename in
13164      ec++*)
13165	# FIXME: insert proper C++ library support
13166	ld_shlibs_CXX=no
13167	;;
13168      ghcx*)
13169	# Green Hills C++ Compiler
13170	# FIXME: insert proper C++ library support
13171	ld_shlibs_CXX=no
13172	;;
13173      *)
13174	# FIXME: insert proper C++ library support
13175	ld_shlibs_CXX=no
13176	;;
13177    esac
13178    ;;
13179  freebsd[12]*)
13180    # C++ shared libraries reported to be fairly broken before switch to ELF
13181    ld_shlibs_CXX=no
13182    ;;
13183  freebsd-elf*)
13184    archive_cmds_need_lc_CXX=no
13185    ;;
13186  freebsd* | kfreebsd*-gnu | dragonfly*)
13187    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13188    # conventions
13189    ld_shlibs_CXX=yes
13190    ;;
13191  gnu*)
13192    ;;
13193  hpux9*)
13194    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13195    hardcode_libdir_separator_CXX=:
13196    export_dynamic_flag_spec_CXX='${wl}-E'
13197    hardcode_direct_CXX=yes
13198    hardcode_minus_L_CXX=yes # Not in the search PATH,
13199				# but as the default
13200				# location of the library.
13201
13202    case $cc_basename in
13203    CC*)
13204      # FIXME: insert proper C++ library support
13205      ld_shlibs_CXX=no
13206      ;;
13207    aCC*)
13208      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'
13209      # Commands to make compiler produce verbose output that lists
13210      # what "hidden" libraries, object files and flags are used when
13211      # linking a shared library.
13212      #
13213      # There doesn't appear to be a way to prevent this compiler from
13214      # explicitly linking system object files so we need to strip them
13215      # from the output so that they don't get included in the library
13216      # dependencies.
13217      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'
13218      ;;
13219    *)
13220      if test "$GXX" = yes; then
13221        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'
13222      else
13223        # FIXME: insert proper C++ library support
13224        ld_shlibs_CXX=no
13225      fi
13226      ;;
13227    esac
13228    ;;
13229  hpux10*|hpux11*)
13230    if test $with_gnu_ld = no; then
13231      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13232      hardcode_libdir_separator_CXX=:
13233
13234      case $host_cpu in
13235      hppa*64*|ia64*)
13236	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13237        ;;
13238      *)
13239	export_dynamic_flag_spec_CXX='${wl}-E'
13240        ;;
13241      esac
13242    fi
13243    case $host_cpu in
13244    hppa*64*|ia64*)
13245      hardcode_direct_CXX=no
13246      hardcode_shlibpath_var_CXX=no
13247      ;;
13248    *)
13249      hardcode_direct_CXX=yes
13250      hardcode_minus_L_CXX=yes # Not in the search PATH,
13251					      # but as the default
13252					      # location of the library.
13253      ;;
13254    esac
13255
13256    case $cc_basename in
13257      CC*)
13258	# FIXME: insert proper C++ library support
13259	ld_shlibs_CXX=no
13260	;;
13261      aCC*)
13262	case $host_cpu in
13263	hppa*64*)
13264	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13265	  ;;
13266	ia64*)
13267	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268	  ;;
13269	*)
13270	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271	  ;;
13272	esac
13273	# Commands to make compiler produce verbose output that lists
13274	# what "hidden" libraries, object files and flags are used when
13275	# linking a shared library.
13276	#
13277	# There doesn't appear to be a way to prevent this compiler from
13278	# explicitly linking system object files so we need to strip them
13279	# from the output so that they don't get included in the library
13280	# dependencies.
13281	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'
13282	;;
13283      *)
13284	if test "$GXX" = yes; then
13285	  if test $with_gnu_ld = no; then
13286	    case $host_cpu in
13287	    hppa*64*)
13288	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13289	      ;;
13290	    ia64*)
13291	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292	      ;;
13293	    *)
13294	      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'
13295	      ;;
13296	    esac
13297	  fi
13298	else
13299	  # FIXME: insert proper C++ library support
13300	  ld_shlibs_CXX=no
13301	fi
13302	;;
13303    esac
13304    ;;
13305  interix3*)
13306    hardcode_direct_CXX=no
13307    hardcode_shlibpath_var_CXX=no
13308    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13309    export_dynamic_flag_spec_CXX='${wl}-E'
13310    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13311    # Instead, shared libraries are loaded at an image base (0x10000000 by
13312    # default) and relocated if they conflict, which is a slow very memory
13313    # consuming and fragmenting process.  To avoid this, we pick a random,
13314    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13315    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13316    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'
13317    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'
13318    ;;
13319  irix5* | irix6*)
13320    case $cc_basename in
13321      CC*)
13322	# SGI C++
13323	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'
13324
13325	# Archives containing C++ object files must be created using
13326	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13327	# necessary to make sure instantiated templates are included
13328	# in the archive.
13329	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13330	;;
13331      *)
13332	if test "$GXX" = yes; then
13333	  if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13335	  else
13336	    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'
13337	  fi
13338	fi
13339	link_all_deplibs_CXX=yes
13340	;;
13341    esac
13342    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13343    hardcode_libdir_separator_CXX=:
13344    ;;
13345  linux*)
13346    case $cc_basename in
13347      KCC*)
13348	# Kuck and Associates, Inc. (KAI) C++ Compiler
13349
13350	# KCC will only create a shared library if the output file
13351	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13352	# to its proper name (with version) after linking.
13353	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'
13354	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'
13355	# Commands to make compiler produce verbose output that lists
13356	# what "hidden" libraries, object files and flags are used when
13357	# linking a shared library.
13358	#
13359	# There doesn't appear to be a way to prevent this compiler from
13360	# explicitly linking system object files so we need to strip them
13361	# from the output so that they don't get included in the library
13362	# dependencies.
13363	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'
13364
13365	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13366	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13367
13368	# Archives containing C++ object files must be created using
13369	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13370	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13371	;;
13372      icpc*)
13373	# Intel C++
13374	with_gnu_ld=yes
13375	# version 8.0 and above of icpc choke on multiply defined symbols
13376	# if we add $predep_objects and $postdep_objects, however 7.1 and
13377	# earlier do not add the objects themselves.
13378	case `$CC -V 2>&1` in
13379	*"Version 7."*)
13380  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13381  	  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'
13382	  ;;
13383	*)  # Version 8.0 or newer
13384	  tmp_idyn=
13385	  case $host_cpu in
13386	    ia64*) tmp_idyn=' -i_dynamic';;
13387	  esac
13388  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389	  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'
13390	  ;;
13391	esac
13392	archive_cmds_need_lc_CXX=no
13393	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13394	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13395	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13396	;;
13397      pgCC*)
13398        # Portland Group C++ compiler
13399	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13400  	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'
13401
13402	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13403	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13404	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'
13405        ;;
13406      cxx*)
13407	# Compaq C++
13408	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409	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'
13410
13411	runpath_var=LD_RUN_PATH
13412	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13413	hardcode_libdir_separator_CXX=:
13414
13415	# Commands to make compiler produce verbose output that lists
13416	# what "hidden" libraries, object files and flags are used when
13417	# linking a shared library.
13418	#
13419	# There doesn't appear to be a way to prevent this compiler from
13420	# explicitly linking system object files so we need to strip them
13421	# from the output so that they don't get included in the library
13422	# dependencies.
13423	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'
13424	;;
13425      *)
13426	case `$CC -V 2>&1 | sed 5q` in
13427	*Sun\ C*)
13428	  # Sun C++ 5.9
13429	  no_undefined_flag_CXX=' -zdefs'
13430	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13431	  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'
13432	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13433	  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'
13434
13435	  # Not sure whether something based on
13436	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13437	  # would be better.
13438	  output_verbose_link_cmd='echo'
13439
13440	  # Archives containing C++ object files must be created using
13441	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13442	  # necessary to make sure instantiated templates are included
13443	  # in the archive.
13444	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13445	  ;;
13446	esac
13447	;;
13448    esac
13449    ;;
13450  lynxos*)
13451    # FIXME: insert proper C++ library support
13452    ld_shlibs_CXX=no
13453    ;;
13454  m88k*)
13455    # FIXME: insert proper C++ library support
13456    ld_shlibs_CXX=no
13457    ;;
13458  mvs*)
13459    case $cc_basename in
13460      cxx*)
13461	# FIXME: insert proper C++ library support
13462	ld_shlibs_CXX=no
13463	;;
13464      *)
13465	# FIXME: insert proper C++ library support
13466	ld_shlibs_CXX=no
13467	;;
13468    esac
13469    ;;
13470  netbsd*)
13471    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13472      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13473      wlarc=
13474      hardcode_libdir_flag_spec_CXX='-R$libdir'
13475      hardcode_direct_CXX=yes
13476      hardcode_shlibpath_var_CXX=no
13477    fi
13478    # Workaround some broken pre-1.5 toolchains
13479    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13480    ;;
13481  openbsd2*)
13482    # C++ shared libraries are fairly broken
13483    ld_shlibs_CXX=no
13484    ;;
13485  openbsd*)
13486    hardcode_direct_CXX=yes
13487    hardcode_shlibpath_var_CXX=no
13488    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13489    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13490    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13491      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13492      export_dynamic_flag_spec_CXX='${wl}-E'
13493      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13494    fi
13495    output_verbose_link_cmd='echo'
13496    ;;
13497  osf3*)
13498    case $cc_basename in
13499      KCC*)
13500	# Kuck and Associates, Inc. (KAI) C++ Compiler
13501
13502	# KCC will only create a shared library if the output file
13503	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13504	# to its proper name (with version) after linking.
13505	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'
13506
13507	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13508	hardcode_libdir_separator_CXX=:
13509
13510	# Archives containing C++ object files must be created using
13511	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13512	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13513
13514	;;
13515      RCC*)
13516	# Rational C++ 2.4.1
13517	# FIXME: insert proper C++ library support
13518	ld_shlibs_CXX=no
13519	;;
13520      cxx*)
13521	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13522	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'
13523
13524	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13525	hardcode_libdir_separator_CXX=:
13526
13527	# Commands to make compiler produce verbose output that lists
13528	# what "hidden" libraries, object files and flags are used when
13529	# linking a shared library.
13530	#
13531	# There doesn't appear to be a way to prevent this compiler from
13532	# explicitly linking system object files so we need to strip them
13533	# from the output so that they don't get included in the library
13534	# dependencies.
13535	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'
13536	;;
13537      *)
13538	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13539	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13540	  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'
13541
13542	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13543	  hardcode_libdir_separator_CXX=:
13544
13545	  # Commands to make compiler produce verbose output that lists
13546	  # what "hidden" libraries, object files and flags are used when
13547	  # linking a shared library.
13548	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13549
13550	else
13551	  # FIXME: insert proper C++ library support
13552	  ld_shlibs_CXX=no
13553	fi
13554	;;
13555    esac
13556    ;;
13557  osf4* | osf5*)
13558    case $cc_basename in
13559      KCC*)
13560	# Kuck and Associates, Inc. (KAI) C++ Compiler
13561
13562	# KCC will only create a shared library if the output file
13563	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13564	# to its proper name (with version) after linking.
13565	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'
13566
13567	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13568	hardcode_libdir_separator_CXX=:
13569
13570	# Archives containing C++ object files must be created using
13571	# the KAI C++ compiler.
13572	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13573	;;
13574      RCC*)
13575	# Rational C++ 2.4.1
13576	# FIXME: insert proper C++ library support
13577	ld_shlibs_CXX=no
13578	;;
13579      cxx*)
13580	allow_undefined_flag_CXX=' -expect_unresolved \*'
13581	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'
13582	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13583	  echo "-hidden">> $lib.exp~
13584	  $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~
13585	  $rm $lib.exp'
13586
13587	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13588	hardcode_libdir_separator_CXX=:
13589
13590	# Commands to make compiler produce verbose output that lists
13591	# what "hidden" libraries, object files and flags are used when
13592	# linking a shared library.
13593	#
13594	# There doesn't appear to be a way to prevent this compiler from
13595	# explicitly linking system object files so we need to strip them
13596	# from the output so that they don't get included in the library
13597	# dependencies.
13598	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'
13599	;;
13600      *)
13601	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13602	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13603	 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'
13604
13605	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13606	  hardcode_libdir_separator_CXX=:
13607
13608	  # Commands to make compiler produce verbose output that lists
13609	  # what "hidden" libraries, object files and flags are used when
13610	  # linking a shared library.
13611	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13612
13613	else
13614	  # FIXME: insert proper C++ library support
13615	  ld_shlibs_CXX=no
13616	fi
13617	;;
13618    esac
13619    ;;
13620  psos*)
13621    # FIXME: insert proper C++ library support
13622    ld_shlibs_CXX=no
13623    ;;
13624  sunos4*)
13625    case $cc_basename in
13626      CC*)
13627	# Sun C++ 4.x
13628	# FIXME: insert proper C++ library support
13629	ld_shlibs_CXX=no
13630	;;
13631      lcc*)
13632	# Lucid
13633	# FIXME: insert proper C++ library support
13634	ld_shlibs_CXX=no
13635	;;
13636      *)
13637	# FIXME: insert proper C++ library support
13638	ld_shlibs_CXX=no
13639	;;
13640    esac
13641    ;;
13642  solaris*)
13643    case $cc_basename in
13644      CC*)
13645	# Sun C++ 4.2, 5.x and Centerline C++
13646        archive_cmds_need_lc_CXX=yes
13647	no_undefined_flag_CXX=' -zdefs'
13648	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13649	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13650	$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'
13651
13652	hardcode_libdir_flag_spec_CXX='-R$libdir'
13653	hardcode_shlibpath_var_CXX=no
13654	case $host_os in
13655	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13656	  *)
13657	    # The C++ compiler is used as linker so we must use $wl
13658	    # flag to pass the commands to the underlying system
13659	    # linker. We must also pass each convience library through
13660	    # to the system linker between allextract/defaultextract.
13661	    # The C++ compiler will combine linker options so we
13662	    # cannot just pass the convience library names through
13663	    # without $wl.
13664	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13665	    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'
13666	    ;;
13667	esac
13668	link_all_deplibs_CXX=yes
13669
13670	output_verbose_link_cmd='echo'
13671
13672	# Archives containing C++ object files must be created using
13673	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13674	# necessary to make sure instantiated templates are included
13675	# in the archive.
13676	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13677	;;
13678      gcx*)
13679	# Green Hills C++ Compiler
13680	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13681
13682	# The C++ compiler must be used to create the archive.
13683	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13684	;;
13685      *)
13686	# GNU C++ compiler with Solaris linker
13687	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13688	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13689	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13690	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13691	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13692		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13693
13694	    # Commands to make compiler produce verbose output that lists
13695	    # what "hidden" libraries, object files and flags are used when
13696	    # linking a shared library.
13697	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13698	  else
13699	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13700	    # platform.
13701	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13703		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13704
13705	    # Commands to make compiler produce verbose output that lists
13706	    # what "hidden" libraries, object files and flags are used when
13707	    # linking a shared library.
13708	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13709	  fi
13710
13711	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13712	fi
13713	;;
13714    esac
13715    ;;
13716  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13717    no_undefined_flag_CXX='${wl}-z,text'
13718    archive_cmds_need_lc_CXX=no
13719    hardcode_shlibpath_var_CXX=no
13720    runpath_var='LD_RUN_PATH'
13721
13722    case $cc_basename in
13723      CC*)
13724	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13725	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13726	;;
13727      *)
13728	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13729	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730	;;
13731    esac
13732    ;;
13733  sysv5* | sco3.2v5* | sco5v6*)
13734    # Note: We can NOT use -z defs as we might desire, because we do not
13735    # link with -lc, and that would cause any symbols used from libc to
13736    # always be unresolved, which means just about no library would
13737    # ever link correctly.  If we're not using GNU ld we use -z text
13738    # though, which does catch some bad symbols but isn't as heavy-handed
13739    # as -z defs.
13740    # For security reasons, it is highly recommended that you always
13741    # use absolute paths for naming shared libraries, and exclude the
13742    # DT_RUNPATH tag from executables and libraries.  But doing so
13743    # requires that you compile everything twice, which is a pain.
13744    # So that behaviour is only enabled if SCOABSPATH is set to a
13745    # non-empty value in the environment.  Most likely only useful for
13746    # creating official distributions of packages.
13747    # This is a hack until libtool officially supports absolute path
13748    # names for shared libraries.
13749    no_undefined_flag_CXX='${wl}-z,text'
13750    allow_undefined_flag_CXX='${wl}-z,nodefs'
13751    archive_cmds_need_lc_CXX=no
13752    hardcode_shlibpath_var_CXX=no
13753    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13754    hardcode_libdir_separator_CXX=':'
13755    link_all_deplibs_CXX=yes
13756    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13757    runpath_var='LD_RUN_PATH'
13758
13759    case $cc_basename in
13760      CC*)
13761	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13762	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13763	;;
13764      *)
13765	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13766	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13767	;;
13768    esac
13769    ;;
13770  tandem*)
13771    case $cc_basename in
13772      NCC*)
13773	# NonStop-UX NCC 3.20
13774	# FIXME: insert proper C++ library support
13775	ld_shlibs_CXX=no
13776	;;
13777      *)
13778	# FIXME: insert proper C++ library support
13779	ld_shlibs_CXX=no
13780	;;
13781    esac
13782    ;;
13783  vxworks*)
13784    # FIXME: insert proper C++ library support
13785    ld_shlibs_CXX=no
13786    ;;
13787  *)
13788    # FIXME: insert proper C++ library support
13789    ld_shlibs_CXX=no
13790    ;;
13791esac
13792{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13793echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13794test "$ld_shlibs_CXX" = no && can_build_shared=no
13795
13796GCC_CXX="$GXX"
13797LD_CXX="$LD"
13798
13799## CAVEAT EMPTOR:
13800## There is no encapsulation within the following macros, do not change
13801## the running order or otherwise move them around unless you know exactly
13802## what you are doing...
13803
13804cat > conftest.$ac_ext <<EOF
13805class Foo
13806{
13807public:
13808  Foo (void) { a = 0; }
13809private:
13810  int a;
13811};
13812EOF
13813
13814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815  (eval $ac_compile) 2>&5
13816  ac_status=$?
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); }; then
13819  # Parse the compiler output and extract the necessary
13820  # objects, libraries and library flags.
13821
13822  # Sentinel used to keep track of whether or not we are before
13823  # the conftest object file.
13824  pre_test_object_deps_done=no
13825
13826  # The `*' in the case matches for architectures that use `case' in
13827  # $output_verbose_cmd can trigger glob expansion during the loop
13828  # eval without this substitution.
13829  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13830
13831  for p in `eval $output_verbose_link_cmd`; do
13832    case $p in
13833
13834    -L* | -R* | -l*)
13835       # Some compilers place space between "-{L,R}" and the path.
13836       # Remove the space.
13837       if test $p = "-L" \
13838	  || test $p = "-R"; then
13839	 prev=$p
13840	 continue
13841       else
13842	 prev=
13843       fi
13844
13845       if test "$pre_test_object_deps_done" = no; then
13846	 case $p in
13847	 -L* | -R*)
13848	   # Internal compiler library paths should come after those
13849	   # provided the user.  The postdeps already come after the
13850	   # user supplied libs so there is no need to process them.
13851	   if test -z "$compiler_lib_search_path_CXX"; then
13852	     compiler_lib_search_path_CXX="${prev}${p}"
13853	   else
13854	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13855	   fi
13856	   ;;
13857	 # The "-l" case would never come before the object being
13858	 # linked, so don't bother handling this case.
13859	 esac
13860       else
13861	 if test -z "$postdeps_CXX"; then
13862	   postdeps_CXX="${prev}${p}"
13863	 else
13864	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13865	 fi
13866       fi
13867       ;;
13868
13869    *.$objext)
13870       # This assumes that the test object file only shows up
13871       # once in the compiler output.
13872       if test "$p" = "conftest.$objext"; then
13873	 pre_test_object_deps_done=yes
13874	 continue
13875       fi
13876
13877       if test "$pre_test_object_deps_done" = no; then
13878	 if test -z "$predep_objects_CXX"; then
13879	   predep_objects_CXX="$p"
13880	 else
13881	   predep_objects_CXX="$predep_objects_CXX $p"
13882	 fi
13883       else
13884	 if test -z "$postdep_objects_CXX"; then
13885	   postdep_objects_CXX="$p"
13886	 else
13887	   postdep_objects_CXX="$postdep_objects_CXX $p"
13888	 fi
13889       fi
13890       ;;
13891
13892    *) ;; # Ignore the rest.
13893
13894    esac
13895  done
13896
13897  # Clean up.
13898  rm -f a.out a.exe
13899else
13900  echo "libtool.m4: error: problem compiling CXX test program"
13901fi
13902
13903$rm -f confest.$objext
13904
13905# PORTME: override above test on systems where it is broken
13906case $host_os in
13907interix3*)
13908  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13909  # hack all around it, let's just trust "g++" to DTRT.
13910  predep_objects_CXX=
13911  postdep_objects_CXX=
13912  postdeps_CXX=
13913  ;;
13914
13915linux*)
13916  case `$CC -V 2>&1 | sed 5q` in
13917  *Sun\ C*)
13918    # Sun C++ 5.9
13919    postdeps_CXX='-lCstd -lCrun'
13920    ;;
13921  esac
13922  ;;
13923
13924solaris*)
13925  case $cc_basename in
13926  CC*)
13927    # Adding this requires a known-good setup of shared libraries for
13928    # Sun compiler versions before 5.6, else PIC objects from an old
13929    # archive will be linked into the output, leading to subtle bugs.
13930    postdeps_CXX='-lCstd -lCrun'
13931    ;;
13932  esac
13933  ;;
13934esac
13935
13936
13937case " $postdeps_CXX " in
13938*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13939esac
13940
13941lt_prog_compiler_wl_CXX=
13942lt_prog_compiler_pic_CXX=
13943lt_prog_compiler_static_CXX=
13944
13945{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13946echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13947
13948  # C++ specific cases for pic, static, wl, etc.
13949  if test "$GXX" = yes; then
13950    lt_prog_compiler_wl_CXX='-Wl,'
13951    lt_prog_compiler_static_CXX='-static'
13952
13953    case $host_os in
13954    aix*)
13955      # All AIX code is PIC.
13956      if test "$host_cpu" = ia64; then
13957	# AIX 5 now supports IA64 processor
13958	lt_prog_compiler_static_CXX='-Bstatic'
13959      fi
13960      ;;
13961    amigaos*)
13962      # FIXME: we need at least 68020 code to build shared libraries, but
13963      # adding the `-m68020' flag to GCC prevents building anything better,
13964      # like `-m68040'.
13965      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13966      ;;
13967    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13968      # PIC is the default for these OSes.
13969      ;;
13970    mingw* | cygwin* | os2* | pw32*)
13971      # This hack is so that the source file can tell whether it is being
13972      # built for inclusion in a dll (and should export symbols for example).
13973      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13974      # (--disable-auto-import) libraries
13975      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13976      ;;
13977    darwin* | rhapsody*)
13978      # PIC is the default on this platform
13979      # Common symbols not allowed in MH_DYLIB files
13980      lt_prog_compiler_pic_CXX='-fno-common'
13981      ;;
13982    *djgpp*)
13983      # DJGPP does not support shared libraries at all
13984      lt_prog_compiler_pic_CXX=
13985      ;;
13986    interix3*)
13987      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13988      # Instead, we relocate shared libraries at runtime.
13989      ;;
13990    sysv4*MP*)
13991      if test -d /usr/nec; then
13992	lt_prog_compiler_pic_CXX=-Kconform_pic
13993      fi
13994      ;;
13995    hpux*)
13996      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13997      # not for PA HP-UX.
13998      case $host_cpu in
13999      hppa*64*|ia64*)
14000	;;
14001      *)
14002	lt_prog_compiler_pic_CXX='-fPIC'
14003	;;
14004      esac
14005      ;;
14006    *)
14007      lt_prog_compiler_pic_CXX='-fPIC'
14008      ;;
14009    esac
14010  else
14011    case $host_os in
14012      aix4* | aix5*)
14013	# All AIX code is PIC.
14014	if test "$host_cpu" = ia64; then
14015	  # AIX 5 now supports IA64 processor
14016	  lt_prog_compiler_static_CXX='-Bstatic'
14017	else
14018	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14019	fi
14020	;;
14021      chorus*)
14022	case $cc_basename in
14023	cxch68*)
14024	  # Green Hills C++ Compiler
14025	  # _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"
14026	  ;;
14027	esac
14028	;;
14029       darwin*)
14030         # PIC is the default on this platform
14031         # Common symbols not allowed in MH_DYLIB files
14032         case $cc_basename in
14033           xlc*)
14034           lt_prog_compiler_pic_CXX='-qnocommon'
14035           lt_prog_compiler_wl_CXX='-Wl,'
14036           ;;
14037         esac
14038       ;;
14039      dgux*)
14040	case $cc_basename in
14041	  ec++*)
14042	    lt_prog_compiler_pic_CXX='-KPIC'
14043	    ;;
14044	  ghcx*)
14045	    # Green Hills C++ Compiler
14046	    lt_prog_compiler_pic_CXX='-pic'
14047	    ;;
14048	  *)
14049	    ;;
14050	esac
14051	;;
14052      freebsd* | kfreebsd*-gnu | dragonfly*)
14053	# FreeBSD uses GNU C++
14054	;;
14055      hpux9* | hpux10* | hpux11*)
14056	case $cc_basename in
14057	  CC*)
14058	    lt_prog_compiler_wl_CXX='-Wl,'
14059	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14060	    if test "$host_cpu" != ia64; then
14061	      lt_prog_compiler_pic_CXX='+Z'
14062	    fi
14063	    ;;
14064	  aCC*)
14065	    lt_prog_compiler_wl_CXX='-Wl,'
14066	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14067	    case $host_cpu in
14068	    hppa*64*|ia64*)
14069	      # +Z the default
14070	      ;;
14071	    *)
14072	      lt_prog_compiler_pic_CXX='+Z'
14073	      ;;
14074	    esac
14075	    ;;
14076	  *)
14077	    ;;
14078	esac
14079	;;
14080      interix*)
14081	# This is c89, which is MS Visual C++ (no shared libs)
14082	# Anyone wants to do a port?
14083	;;
14084      irix5* | irix6* | nonstopux*)
14085	case $cc_basename in
14086	  CC*)
14087	    lt_prog_compiler_wl_CXX='-Wl,'
14088	    lt_prog_compiler_static_CXX='-non_shared'
14089	    # CC pic flag -KPIC is the default.
14090	    ;;
14091	  *)
14092	    ;;
14093	esac
14094	;;
14095      linux*)
14096	case $cc_basename in
14097	  KCC*)
14098	    # KAI C++ Compiler
14099	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14100	    lt_prog_compiler_pic_CXX='-fPIC'
14101	    ;;
14102	  icpc* | ecpc*)
14103	    # Intel C++
14104	    lt_prog_compiler_wl_CXX='-Wl,'
14105	    lt_prog_compiler_pic_CXX='-KPIC'
14106	    lt_prog_compiler_static_CXX='-static'
14107	    ;;
14108	  pgCC*)
14109	    # Portland Group C++ compiler.
14110	    lt_prog_compiler_wl_CXX='-Wl,'
14111	    lt_prog_compiler_pic_CXX='-fpic'
14112	    lt_prog_compiler_static_CXX='-Bstatic'
14113	    ;;
14114	  cxx*)
14115	    # Compaq C++
14116	    # Make sure the PIC flag is empty.  It appears that all Alpha
14117	    # Linux and Compaq Tru64 Unix objects are PIC.
14118	    lt_prog_compiler_pic_CXX=
14119	    lt_prog_compiler_static_CXX='-non_shared'
14120	    ;;
14121	  *)
14122	    case `$CC -V 2>&1 | sed 5q` in
14123	    *Sun\ C*)
14124	      # Sun C++ 5.9
14125	      lt_prog_compiler_pic_CXX='-KPIC'
14126	      lt_prog_compiler_static_CXX='-Bstatic'
14127	      lt_prog_compiler_wl_CXX='-Qoption ld '
14128	      ;;
14129	    esac
14130	    ;;
14131	esac
14132	;;
14133      lynxos*)
14134	;;
14135      m88k*)
14136	;;
14137      mvs*)
14138	case $cc_basename in
14139	  cxx*)
14140	    lt_prog_compiler_pic_CXX='-W c,exportall'
14141	    ;;
14142	  *)
14143	    ;;
14144	esac
14145	;;
14146      netbsd*)
14147	;;
14148      osf3* | osf4* | osf5*)
14149	case $cc_basename in
14150	  KCC*)
14151	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14152	    ;;
14153	  RCC*)
14154	    # Rational C++ 2.4.1
14155	    lt_prog_compiler_pic_CXX='-pic'
14156	    ;;
14157	  cxx*)
14158	    # Digital/Compaq C++
14159	    lt_prog_compiler_wl_CXX='-Wl,'
14160	    # Make sure the PIC flag is empty.  It appears that all Alpha
14161	    # Linux and Compaq Tru64 Unix objects are PIC.
14162	    lt_prog_compiler_pic_CXX=
14163	    lt_prog_compiler_static_CXX='-non_shared'
14164	    ;;
14165	  *)
14166	    ;;
14167	esac
14168	;;
14169      psos*)
14170	;;
14171      solaris*)
14172	case $cc_basename in
14173	  CC*)
14174	    # Sun C++ 4.2, 5.x and Centerline C++
14175	    lt_prog_compiler_pic_CXX='-KPIC'
14176	    lt_prog_compiler_static_CXX='-Bstatic'
14177	    lt_prog_compiler_wl_CXX='-Qoption ld '
14178	    ;;
14179	  gcx*)
14180	    # Green Hills C++ Compiler
14181	    lt_prog_compiler_pic_CXX='-PIC'
14182	    ;;
14183	  *)
14184	    ;;
14185	esac
14186	;;
14187      sunos4*)
14188	case $cc_basename in
14189	  CC*)
14190	    # Sun C++ 4.x
14191	    lt_prog_compiler_pic_CXX='-pic'
14192	    lt_prog_compiler_static_CXX='-Bstatic'
14193	    ;;
14194	  lcc*)
14195	    # Lucid
14196	    lt_prog_compiler_pic_CXX='-pic'
14197	    ;;
14198	  *)
14199	    ;;
14200	esac
14201	;;
14202      tandem*)
14203	case $cc_basename in
14204	  NCC*)
14205	    # NonStop-UX NCC 3.20
14206	    lt_prog_compiler_pic_CXX='-KPIC'
14207	    ;;
14208	  *)
14209	    ;;
14210	esac
14211	;;
14212      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14213	case $cc_basename in
14214	  CC*)
14215	    lt_prog_compiler_wl_CXX='-Wl,'
14216	    lt_prog_compiler_pic_CXX='-KPIC'
14217	    lt_prog_compiler_static_CXX='-Bstatic'
14218	    ;;
14219	esac
14220	;;
14221      vxworks*)
14222	;;
14223      *)
14224	lt_prog_compiler_can_build_shared_CXX=no
14225	;;
14226    esac
14227  fi
14228
14229{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14230echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14231
14232#
14233# Check to make sure the PIC flag actually works.
14234#
14235if test -n "$lt_prog_compiler_pic_CXX"; then
14236
14237{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14238echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14239if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14240  echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242  lt_prog_compiler_pic_works_CXX=no
14243  ac_outfile=conftest.$ac_objext
14244   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14245   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14246   # Insert the option either (1) after the last *FLAGS variable, or
14247   # (2) before a word containing "conftest.", or (3) at the end.
14248   # Note that $ac_compile itself does not contain backslashes and begins
14249   # with a dollar sign (not a hyphen), so the echo should work correctly.
14250   # The option is referenced via a variable to avoid confusing sed.
14251   lt_compile=`echo "$ac_compile" | $SED \
14252   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14253   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14254   -e 's:$: $lt_compiler_flag:'`
14255   (eval echo "\"\$as_me:14253: $lt_compile\"" >&5)
14256   (eval "$lt_compile" 2>conftest.err)
14257   ac_status=$?
14258   cat conftest.err >&5
14259   echo "$as_me:14257: \$? = $ac_status" >&5
14260   if (exit $ac_status) && test -s "$ac_outfile"; then
14261     # The compiler can only warn and ignore the option if not recognized
14262     # So say no if there are warnings other than the usual output.
14263     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14264     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14266       lt_prog_compiler_pic_works_CXX=yes
14267     fi
14268   fi
14269   $rm conftest*
14270
14271fi
14272{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14273echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14274
14275if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14276    case $lt_prog_compiler_pic_CXX in
14277     "" | " "*) ;;
14278     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14279     esac
14280else
14281    lt_prog_compiler_pic_CXX=
14282     lt_prog_compiler_can_build_shared_CXX=no
14283fi
14284
14285fi
14286case $host_os in
14287  # For platforms which do not support PIC, -DPIC is meaningless:
14288  *djgpp*)
14289    lt_prog_compiler_pic_CXX=
14290    ;;
14291  *)
14292    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14293    ;;
14294esac
14295
14296#
14297# Check to make sure the static flag actually works.
14298#
14299wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14300{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14301echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14302if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14303  echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305  lt_prog_compiler_static_works_CXX=no
14306   save_LDFLAGS="$LDFLAGS"
14307   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14308   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14309   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14310     # The linker can only warn and ignore the option if not recognized
14311     # So say no if there are warnings
14312     if test -s conftest.err; then
14313       # Append any errors to the config.log.
14314       cat conftest.err 1>&5
14315       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14316       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14317       if diff conftest.exp conftest.er2 >/dev/null; then
14318         lt_prog_compiler_static_works_CXX=yes
14319       fi
14320     else
14321       lt_prog_compiler_static_works_CXX=yes
14322     fi
14323   fi
14324   $rm conftest*
14325   LDFLAGS="$save_LDFLAGS"
14326
14327fi
14328{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14329echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14330
14331if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14332    :
14333else
14334    lt_prog_compiler_static_CXX=
14335fi
14336
14337
14338{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14339echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14340if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14341  echo $ECHO_N "(cached) $ECHO_C" >&6
14342else
14343  lt_cv_prog_compiler_c_o_CXX=no
14344   $rm -r conftest 2>/dev/null
14345   mkdir conftest
14346   cd conftest
14347   mkdir out
14348   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14349
14350   lt_compiler_flag="-o out/conftest2.$ac_objext"
14351   # Insert the option either (1) after the last *FLAGS variable, or
14352   # (2) before a word containing "conftest.", or (3) at the end.
14353   # Note that $ac_compile itself does not contain backslashes and begins
14354   # with a dollar sign (not a hyphen), so the echo should work correctly.
14355   lt_compile=`echo "$ac_compile" | $SED \
14356   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14358   -e 's:$: $lt_compiler_flag:'`
14359   (eval echo "\"\$as_me:14357: $lt_compile\"" >&5)
14360   (eval "$lt_compile" 2>out/conftest.err)
14361   ac_status=$?
14362   cat out/conftest.err >&5
14363   echo "$as_me:14361: \$? = $ac_status" >&5
14364   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14365   then
14366     # The compiler can only warn and ignore the option if not recognized
14367     # So say no if there are warnings
14368     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14369     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14370     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14371       lt_cv_prog_compiler_c_o_CXX=yes
14372     fi
14373   fi
14374   chmod u+w . 2>&5
14375   $rm conftest*
14376   # SGI C++ compiler will create directory out/ii_files/ for
14377   # template instantiation
14378   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14379   $rm out/* && rmdir out
14380   cd ..
14381   rmdir conftest
14382   $rm conftest*
14383
14384fi
14385{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14386echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14387
14388
14389hard_links="nottested"
14390if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14391  # do not overwrite the value of need_locks provided by the user
14392  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14393echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14394  hard_links=yes
14395  $rm conftest*
14396  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14397  touch conftest.a
14398  ln conftest.a conftest.b 2>&5 || hard_links=no
14399  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14400  { echo "$as_me:$LINENO: result: $hard_links" >&5
14401echo "${ECHO_T}$hard_links" >&6; }
14402  if test "$hard_links" = no; then
14403    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14404echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14405    need_locks=warn
14406  fi
14407else
14408  need_locks=no
14409fi
14410
14411{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14412echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14413
14414  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14415  case $host_os in
14416  aix4* | aix5*)
14417    # If we're using GNU nm, then we don't want the "-C" option.
14418    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14419    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14420      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'
14421    else
14422      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'
14423    fi
14424    ;;
14425  pw32*)
14426    export_symbols_cmds_CXX="$ltdll_cmds"
14427  ;;
14428  cygwin* | mingw*)
14429    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'
14430  ;;
14431  *)
14432    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14433  ;;
14434  esac
14435
14436{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14437echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14438test "$ld_shlibs_CXX" = no && can_build_shared=no
14439
14440#
14441# Do we need to explicitly link libc?
14442#
14443case "x$archive_cmds_need_lc_CXX" in
14444x|xyes)
14445  # Assume -lc should be added
14446  archive_cmds_need_lc_CXX=yes
14447
14448  if test "$enable_shared" = yes && test "$GCC" = yes; then
14449    case $archive_cmds_CXX in
14450    *'~'*)
14451      # FIXME: we may have to deal with multi-command sequences.
14452      ;;
14453    '$CC '*)
14454      # Test whether the compiler implicitly links with -lc since on some
14455      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14456      # to ld, don't add -lc before -lgcc.
14457      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14458echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14459      $rm conftest*
14460      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14461
14462      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463  (eval $ac_compile) 2>&5
14464  ac_status=$?
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); } 2>conftest.err; then
14467        soname=conftest
14468        lib=conftest
14469        libobjs=conftest.$ac_objext
14470        deplibs=
14471        wl=$lt_prog_compiler_wl_CXX
14472	pic_flag=$lt_prog_compiler_pic_CXX
14473        compiler_flags=-v
14474        linker_flags=-v
14475        verstring=
14476        output_objdir=.
14477        libname=conftest
14478        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14479        allow_undefined_flag_CXX=
14480        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14481  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14482  ac_status=$?
14483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484  (exit $ac_status); }
14485        then
14486	  archive_cmds_need_lc_CXX=no
14487        else
14488	  archive_cmds_need_lc_CXX=yes
14489        fi
14490        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14491      else
14492        cat conftest.err 1>&5
14493      fi
14494      $rm conftest*
14495      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14496echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14497      ;;
14498    esac
14499  fi
14500  ;;
14501esac
14502
14503{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14504echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14505library_names_spec=
14506libname_spec='lib$name'
14507soname_spec=
14508shrext_cmds=".so"
14509postinstall_cmds=
14510postuninstall_cmds=
14511finish_cmds=
14512finish_eval=
14513shlibpath_var=
14514shlibpath_overrides_runpath=unknown
14515version_type=none
14516dynamic_linker="$host_os ld.so"
14517sys_lib_dlsearch_path_spec="/lib /usr/lib"
14518if test "$GCC" = yes; then
14519  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14520  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14521    # if the path contains ";" then we assume it to be the separator
14522    # otherwise default to the standard path separator (i.e. ":") - it is
14523    # assumed that no part of a normal pathname contains ";" but that should
14524    # okay in the real world where ";" in dirpaths is itself problematic.
14525    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14526  else
14527    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14528  fi
14529else
14530  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14531fi
14532need_lib_prefix=unknown
14533hardcode_into_libs=no
14534
14535# when you set need_version to no, make sure it does not cause -set_version
14536# flags to be left without arguments
14537need_version=unknown
14538
14539case $host_os in
14540aix3*)
14541  version_type=linux
14542  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14543  shlibpath_var=LIBPATH
14544
14545  # AIX 3 has no versioning support, so we append a major version to the name.
14546  soname_spec='${libname}${release}${shared_ext}$major'
14547  ;;
14548
14549aix4* | aix5*)
14550  version_type=linux
14551  need_lib_prefix=no
14552  need_version=no
14553  hardcode_into_libs=yes
14554  if test "$host_cpu" = ia64; then
14555    # AIX 5 supports IA64
14556    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14557    shlibpath_var=LD_LIBRARY_PATH
14558  else
14559    # With GCC up to 2.95.x, collect2 would create an import file
14560    # for dependence libraries.  The import file would start with
14561    # the line `#! .'.  This would cause the generated library to
14562    # depend on `.', always an invalid library.  This was fixed in
14563    # development snapshots of GCC prior to 3.0.
14564    case $host_os in
14565      aix4 | aix4.[01] | aix4.[01].*)
14566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14567	   echo ' yes '
14568	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14569	:
14570      else
14571	can_build_shared=no
14572      fi
14573      ;;
14574    esac
14575    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14576    # soname into executable. Probably we can add versioning support to
14577    # collect2, so additional links can be useful in future.
14578    if test "$aix_use_runtimelinking" = yes; then
14579      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14580      # instead of lib<name>.a to let people know that these are not
14581      # typical AIX shared libraries.
14582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583    else
14584      # We preserve .a as extension for shared libraries through AIX4.2
14585      # and later when we are not doing run time linking.
14586      library_names_spec='${libname}${release}.a $libname.a'
14587      soname_spec='${libname}${release}${shared_ext}$major'
14588    fi
14589    shlibpath_var=LIBPATH
14590  fi
14591  ;;
14592
14593amigaos*)
14594  library_names_spec='$libname.ixlibrary $libname.a'
14595  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14596  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'
14597  ;;
14598
14599beos*)
14600  library_names_spec='${libname}${shared_ext}'
14601  dynamic_linker="$host_os ld.so"
14602  shlibpath_var=LIBRARY_PATH
14603  ;;
14604
14605bsdi[45]*)
14606  version_type=linux
14607  need_version=no
14608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609  soname_spec='${libname}${release}${shared_ext}$major'
14610  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14611  shlibpath_var=LD_LIBRARY_PATH
14612  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14613  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14614  # the default ld.so.conf also contains /usr/contrib/lib and
14615  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14616  # libtool to hard-code these into programs
14617  ;;
14618
14619cygwin* | mingw* | pw32*)
14620  version_type=windows
14621  shrext_cmds=".dll"
14622  need_version=no
14623  need_lib_prefix=no
14624
14625  case $GCC,$host_os in
14626  yes,cygwin* | yes,mingw* | yes,pw32*)
14627    library_names_spec='$libname.dll.a'
14628    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14629    postinstall_cmds='base_file=`basename \${file}`~
14630      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14631      dldir=$destdir/`dirname \$dlpath`~
14632      test -d \$dldir || mkdir -p \$dldir~
14633      $install_prog $dir/$dlname \$dldir/$dlname~
14634      chmod a+x \$dldir/$dlname'
14635    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14636      dlpath=$dir/\$dldll~
14637       $rm \$dlpath'
14638    shlibpath_overrides_runpath=yes
14639
14640    case $host_os in
14641    cygwin*)
14642      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14643      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14644      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14645      ;;
14646    mingw*)
14647      # MinGW DLLs use traditional 'lib' prefix
14648      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14649      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14650      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14651        # It is most probably a Windows format PATH printed by
14652        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14653        # path with ; separators, and with drive letters. We can handle the
14654        # drive letters (cygwin fileutils understands them), so leave them,
14655        # especially as we might pass files found there to a mingw objdump,
14656        # which wouldn't understand a cygwinified path. Ahh.
14657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14658      else
14659        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14660      fi
14661      ;;
14662    pw32*)
14663      # pw32 DLLs use 'pw' prefix rather than 'lib'
14664      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14665      ;;
14666    esac
14667    ;;
14668
14669  *)
14670    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14671    ;;
14672  esac
14673  dynamic_linker='Win32 ld.exe'
14674  # FIXME: first we should search . and the directory the executable is in
14675  shlibpath_var=PATH
14676  ;;
14677
14678darwin* | rhapsody*)
14679  dynamic_linker="$host_os dyld"
14680  version_type=darwin
14681  need_lib_prefix=no
14682  need_version=no
14683  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14684  soname_spec='${libname}${release}${major}$shared_ext'
14685  shlibpath_overrides_runpath=yes
14686  shlibpath_var=DYLD_LIBRARY_PATH
14687  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14688  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14689  if test "$GCC" = yes; then
14690    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"`
14691  else
14692    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14693  fi
14694  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14695  ;;
14696
14697dgux*)
14698  version_type=linux
14699  need_lib_prefix=no
14700  need_version=no
14701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14702  soname_spec='${libname}${release}${shared_ext}$major'
14703  shlibpath_var=LD_LIBRARY_PATH
14704  ;;
14705
14706freebsd1*)
14707  dynamic_linker=no
14708  ;;
14709
14710kfreebsd*-gnu)
14711  version_type=linux
14712  need_lib_prefix=no
14713  need_version=no
14714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14715  soname_spec='${libname}${release}${shared_ext}$major'
14716  shlibpath_var=LD_LIBRARY_PATH
14717  shlibpath_overrides_runpath=no
14718  hardcode_into_libs=yes
14719  dynamic_linker='GNU ld.so'
14720  ;;
14721
14722freebsd* | dragonfly*)
14723  # DragonFly does not have aout.  When/if they implement a new
14724  # versioning mechanism, adjust this.
14725  if test -x /usr/bin/objformat; then
14726    objformat=`/usr/bin/objformat`
14727  else
14728    case $host_os in
14729    freebsd[123]*) objformat=aout ;;
14730    *) objformat=elf ;;
14731    esac
14732  fi
14733  version_type=freebsd-$objformat
14734  case $version_type in
14735    freebsd-elf*)
14736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14737      need_version=no
14738      need_lib_prefix=no
14739      ;;
14740    freebsd-*)
14741      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14742      need_version=yes
14743      ;;
14744  esac
14745  shlibpath_var=LD_LIBRARY_PATH
14746  case $host_os in
14747  freebsd2*)
14748    shlibpath_overrides_runpath=yes
14749    ;;
14750  freebsd3.[01]* | freebsdelf3.[01]*)
14751    shlibpath_overrides_runpath=yes
14752    hardcode_into_libs=yes
14753    ;;
14754  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14755  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14756    shlibpath_overrides_runpath=no
14757    hardcode_into_libs=yes
14758    ;;
14759  freebsd*) # from 4.6 on
14760    shlibpath_overrides_runpath=yes
14761    hardcode_into_libs=yes
14762    ;;
14763  esac
14764  ;;
14765
14766gnu*)
14767  version_type=linux
14768  need_lib_prefix=no
14769  need_version=no
14770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14771  soname_spec='${libname}${release}${shared_ext}$major'
14772  shlibpath_var=LD_LIBRARY_PATH
14773  hardcode_into_libs=yes
14774  ;;
14775
14776hpux9* | hpux10* | hpux11*)
14777  # Give a soname corresponding to the major version so that dld.sl refuses to
14778  # link against other versions.
14779  version_type=sunos
14780  need_lib_prefix=no
14781  need_version=no
14782  case $host_cpu in
14783  ia64*)
14784    shrext_cmds='.so'
14785    hardcode_into_libs=yes
14786    dynamic_linker="$host_os dld.so"
14787    shlibpath_var=LD_LIBRARY_PATH
14788    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14789    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790    soname_spec='${libname}${release}${shared_ext}$major'
14791    if test "X$HPUX_IA64_MODE" = X32; then
14792      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14793    else
14794      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14795    fi
14796    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14797    ;;
14798   hppa*64*)
14799     shrext_cmds='.sl'
14800     hardcode_into_libs=yes
14801     dynamic_linker="$host_os dld.sl"
14802     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14803     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805     soname_spec='${libname}${release}${shared_ext}$major'
14806     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14807     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14808     ;;
14809   *)
14810    shrext_cmds='.sl'
14811    dynamic_linker="$host_os dld.sl"
14812    shlibpath_var=SHLIB_PATH
14813    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14814    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815    soname_spec='${libname}${release}${shared_ext}$major'
14816    ;;
14817  esac
14818  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14819  postinstall_cmds='chmod 555 $lib'
14820  ;;
14821
14822interix3*)
14823  version_type=linux
14824  need_lib_prefix=no
14825  need_version=no
14826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14827  soname_spec='${libname}${release}${shared_ext}$major'
14828  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14829  shlibpath_var=LD_LIBRARY_PATH
14830  shlibpath_overrides_runpath=no
14831  hardcode_into_libs=yes
14832  ;;
14833
14834irix5* | irix6* | nonstopux*)
14835  case $host_os in
14836    nonstopux*) version_type=nonstopux ;;
14837    *)
14838	if test "$lt_cv_prog_gnu_ld" = yes; then
14839		version_type=linux
14840	else
14841		version_type=irix
14842	fi ;;
14843  esac
14844  need_lib_prefix=no
14845  need_version=no
14846  soname_spec='${libname}${release}${shared_ext}$major'
14847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14848  case $host_os in
14849  irix5* | nonstopux*)
14850    libsuff= shlibsuff=
14851    ;;
14852  *)
14853    case $LD in # libtool.m4 will add one of these switches to LD
14854    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14855      libsuff= shlibsuff= libmagic=32-bit;;
14856    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14857      libsuff=32 shlibsuff=N32 libmagic=N32;;
14858    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14859      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14860    *) libsuff= shlibsuff= libmagic=never-match;;
14861    esac
14862    ;;
14863  esac
14864  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14865  shlibpath_overrides_runpath=no
14866  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14867  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14868  hardcode_into_libs=yes
14869  ;;
14870
14871# No shared lib support for Linux oldld, aout, or coff.
14872linux*oldld* | linux*aout* | linux*coff*)
14873  dynamic_linker=no
14874  ;;
14875
14876# This must be Linux ELF.
14877linux*)
14878  version_type=linux
14879  need_lib_prefix=no
14880  need_version=no
14881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882  soname_spec='${libname}${release}${shared_ext}$major'
14883  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  shlibpath_overrides_runpath=no
14886  # This implies no fast_install, which is unacceptable.
14887  # Some rework will be needed to allow for fast_install
14888  # before this can be enabled.
14889  hardcode_into_libs=yes
14890
14891  # Append ld.so.conf contents to the search path
14892  if test -f /etc/ld.so.conf; then
14893    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' ' '`
14894    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14895  fi
14896
14897  # We used to test for /lib/ld.so.1 and disable shared libraries on
14898  # powerpc, because MkLinux only supported shared libraries with the
14899  # GNU dynamic linker.  Since this was broken with cross compilers,
14900  # most powerpc-linux boxes support dynamic linking these days and
14901  # people can always --disable-shared, the test was removed, and we
14902  # assume the GNU/Linux dynamic linker is in use.
14903  dynamic_linker='GNU/Linux ld.so'
14904  ;;
14905
14906knetbsd*-gnu)
14907  version_type=linux
14908  need_lib_prefix=no
14909  need_version=no
14910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14911  soname_spec='${libname}${release}${shared_ext}$major'
14912  shlibpath_var=LD_LIBRARY_PATH
14913  shlibpath_overrides_runpath=no
14914  hardcode_into_libs=yes
14915  dynamic_linker='GNU ld.so'
14916  ;;
14917
14918netbsd*)
14919  version_type=sunos
14920  need_lib_prefix=no
14921  need_version=no
14922  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14923    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14925    dynamic_linker='NetBSD (a.out) ld.so'
14926  else
14927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14928    soname_spec='${libname}${release}${shared_ext}$major'
14929    dynamic_linker='NetBSD ld.elf_so'
14930  fi
14931  shlibpath_var=LD_LIBRARY_PATH
14932  shlibpath_overrides_runpath=yes
14933  hardcode_into_libs=yes
14934  ;;
14935
14936newsos6)
14937  version_type=linux
14938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939  shlibpath_var=LD_LIBRARY_PATH
14940  shlibpath_overrides_runpath=yes
14941  ;;
14942
14943nto-qnx*)
14944  version_type=linux
14945  need_lib_prefix=no
14946  need_version=no
14947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948  soname_spec='${libname}${release}${shared_ext}$major'
14949  shlibpath_var=LD_LIBRARY_PATH
14950  shlibpath_overrides_runpath=yes
14951  ;;
14952
14953openbsd*)
14954  version_type=sunos
14955  sys_lib_dlsearch_path_spec="/usr/lib"
14956  need_lib_prefix=no
14957  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14958  case $host_os in
14959    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14960    *)                         need_version=no  ;;
14961  esac
14962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14963  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14964  shlibpath_var=LD_LIBRARY_PATH
14965  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14966    case $host_os in
14967      openbsd2.[89] | openbsd2.[89].*)
14968	shlibpath_overrides_runpath=no
14969	;;
14970      *)
14971	shlibpath_overrides_runpath=yes
14972	;;
14973      esac
14974  else
14975    shlibpath_overrides_runpath=yes
14976  fi
14977  ;;
14978
14979os2*)
14980  libname_spec='$name'
14981  shrext_cmds=".dll"
14982  need_lib_prefix=no
14983  library_names_spec='$libname${shared_ext} $libname.a'
14984  dynamic_linker='OS/2 ld.exe'
14985  shlibpath_var=LIBPATH
14986  ;;
14987
14988osf3* | osf4* | osf5*)
14989  version_type=osf
14990  need_lib_prefix=no
14991  need_version=no
14992  soname_spec='${libname}${release}${shared_ext}$major'
14993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994  shlibpath_var=LD_LIBRARY_PATH
14995  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14996  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14997  ;;
14998
14999solaris*)
15000  version_type=linux
15001  need_lib_prefix=no
15002  need_version=no
15003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004  soname_spec='${libname}${release}${shared_ext}$major'
15005  shlibpath_var=LD_LIBRARY_PATH
15006  shlibpath_overrides_runpath=yes
15007  hardcode_into_libs=yes
15008  # ldd complains unless libraries are executable
15009  postinstall_cmds='chmod +x $lib'
15010  ;;
15011
15012sunos4*)
15013  version_type=sunos
15014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15015  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15016  shlibpath_var=LD_LIBRARY_PATH
15017  shlibpath_overrides_runpath=yes
15018  if test "$with_gnu_ld" = yes; then
15019    need_lib_prefix=no
15020  fi
15021  need_version=yes
15022  ;;
15023
15024sysv4 | sysv4.3*)
15025  version_type=linux
15026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027  soname_spec='${libname}${release}${shared_ext}$major'
15028  shlibpath_var=LD_LIBRARY_PATH
15029  case $host_vendor in
15030    sni)
15031      shlibpath_overrides_runpath=no
15032      need_lib_prefix=no
15033      export_dynamic_flag_spec='${wl}-Blargedynsym'
15034      runpath_var=LD_RUN_PATH
15035      ;;
15036    siemens)
15037      need_lib_prefix=no
15038      ;;
15039    motorola)
15040      need_lib_prefix=no
15041      need_version=no
15042      shlibpath_overrides_runpath=no
15043      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15044      ;;
15045  esac
15046  ;;
15047
15048sysv4*MP*)
15049  if test -d /usr/nec ;then
15050    version_type=linux
15051    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15052    soname_spec='$libname${shared_ext}.$major'
15053    shlibpath_var=LD_LIBRARY_PATH
15054  fi
15055  ;;
15056
15057sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15058  version_type=freebsd-elf
15059  need_lib_prefix=no
15060  need_version=no
15061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15062  soname_spec='${libname}${release}${shared_ext}$major'
15063  shlibpath_var=LD_LIBRARY_PATH
15064  hardcode_into_libs=yes
15065  if test "$with_gnu_ld" = yes; then
15066    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15067    shlibpath_overrides_runpath=no
15068  else
15069    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15070    shlibpath_overrides_runpath=yes
15071    case $host_os in
15072      sco3.2v5*)
15073        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15074	;;
15075    esac
15076  fi
15077  sys_lib_dlsearch_path_spec='/usr/lib'
15078  ;;
15079
15080uts4*)
15081  version_type=linux
15082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083  soname_spec='${libname}${release}${shared_ext}$major'
15084  shlibpath_var=LD_LIBRARY_PATH
15085  ;;
15086
15087*)
15088  dynamic_linker=no
15089  ;;
15090esac
15091{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15092echo "${ECHO_T}$dynamic_linker" >&6; }
15093test "$dynamic_linker" = no && can_build_shared=no
15094
15095variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15096if test "$GCC" = yes; then
15097  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15098fi
15099
15100{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15101echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15102hardcode_action_CXX=
15103if test -n "$hardcode_libdir_flag_spec_CXX" || \
15104   test -n "$runpath_var_CXX" || \
15105   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15106
15107  # We can hardcode non-existant directories.
15108  if test "$hardcode_direct_CXX" != no &&
15109     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15110     # have to relink, otherwise we might link with an installed library
15111     # when we should be linking with a yet-to-be-installed one
15112     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15113     test "$hardcode_minus_L_CXX" != no; then
15114    # Linking always hardcodes the temporary library directory.
15115    hardcode_action_CXX=relink
15116  else
15117    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15118    hardcode_action_CXX=immediate
15119  fi
15120else
15121  # We cannot hardcode anything, or else we can only hardcode existing
15122  # directories.
15123  hardcode_action_CXX=unsupported
15124fi
15125{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15126echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15127
15128if test "$hardcode_action_CXX" = relink; then
15129  # Fast installation is not supported
15130  enable_fast_install=no
15131elif test "$shlibpath_overrides_runpath" = yes ||
15132     test "$enable_shared" = no; then
15133  # Fast installation is not necessary
15134  enable_fast_install=needless
15135fi
15136
15137
15138# The else clause should only fire when bootstrapping the
15139# libtool distribution, otherwise you forgot to ship ltmain.sh
15140# with your package, and you will get complaints that there are
15141# no rules to generate ltmain.sh.
15142if test -f "$ltmain"; then
15143  # See if we are running on zsh, and set the options which allow our commands through
15144  # without removal of \ escapes.
15145  if test -n "${ZSH_VERSION+set}" ; then
15146    setopt NO_GLOB_SUBST
15147  fi
15148  # Now quote all the things that may contain metacharacters while being
15149  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15150  # variables and quote the copies for generation of the libtool script.
15151  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15152    SED SHELL STRIP \
15153    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15154    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15155    deplibs_check_method reload_flag reload_cmds need_locks \
15156    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15157    lt_cv_sys_global_symbol_to_c_name_address \
15158    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15159    old_postinstall_cmds old_postuninstall_cmds \
15160    compiler_CXX \
15161    CC_CXX \
15162    LD_CXX \
15163    lt_prog_compiler_wl_CXX \
15164    lt_prog_compiler_pic_CXX \
15165    lt_prog_compiler_static_CXX \
15166    lt_prog_compiler_no_builtin_flag_CXX \
15167    export_dynamic_flag_spec_CXX \
15168    thread_safe_flag_spec_CXX \
15169    whole_archive_flag_spec_CXX \
15170    enable_shared_with_static_runtimes_CXX \
15171    old_archive_cmds_CXX \
15172    old_archive_from_new_cmds_CXX \
15173    predep_objects_CXX \
15174    postdep_objects_CXX \
15175    predeps_CXX \
15176    postdeps_CXX \
15177    compiler_lib_search_path_CXX \
15178    archive_cmds_CXX \
15179    archive_expsym_cmds_CXX \
15180    postinstall_cmds_CXX \
15181    postuninstall_cmds_CXX \
15182    old_archive_from_expsyms_cmds_CXX \
15183    allow_undefined_flag_CXX \
15184    no_undefined_flag_CXX \
15185    export_symbols_cmds_CXX \
15186    hardcode_libdir_flag_spec_CXX \
15187    hardcode_libdir_flag_spec_ld_CXX \
15188    hardcode_libdir_separator_CXX \
15189    hardcode_automatic_CXX \
15190    module_cmds_CXX \
15191    module_expsym_cmds_CXX \
15192    lt_cv_prog_compiler_c_o_CXX \
15193    exclude_expsyms_CXX \
15194    include_expsyms_CXX; do
15195
15196    case $var in
15197    old_archive_cmds_CXX | \
15198    old_archive_from_new_cmds_CXX | \
15199    archive_cmds_CXX | \
15200    archive_expsym_cmds_CXX | \
15201    module_cmds_CXX | \
15202    module_expsym_cmds_CXX | \
15203    old_archive_from_expsyms_cmds_CXX | \
15204    export_symbols_cmds_CXX | \
15205    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15206    postinstall_cmds | postuninstall_cmds | \
15207    old_postinstall_cmds | old_postuninstall_cmds | \
15208    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15209      # Double-quote double-evaled strings.
15210      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15211      ;;
15212    *)
15213      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15214      ;;
15215    esac
15216  done
15217
15218  case $lt_echo in
15219  *'\$0 --fallback-echo"')
15220    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15221    ;;
15222  esac
15223
15224cfgfile="$ofile"
15225
15226  cat <<__EOF__ >> "$cfgfile"
15227# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15228
15229# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15230
15231# Shell to use when invoking shell scripts.
15232SHELL=$lt_SHELL
15233
15234# Whether or not to build shared libraries.
15235build_libtool_libs=$enable_shared
15236
15237# Whether or not to build static libraries.
15238build_old_libs=$enable_static
15239
15240# Whether or not to add -lc for building shared libraries.
15241build_libtool_need_lc=$archive_cmds_need_lc_CXX
15242
15243# Whether or not to disallow shared libs when runtime libs are static
15244allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15245
15246# Whether or not to optimize for fast installation.
15247fast_install=$enable_fast_install
15248
15249# The host system.
15250host_alias=$host_alias
15251host=$host
15252host_os=$host_os
15253
15254# The build system.
15255build_alias=$build_alias
15256build=$build
15257build_os=$build_os
15258
15259# An echo program that does not interpret backslashes.
15260echo=$lt_echo
15261
15262# The archiver.
15263AR=$lt_AR
15264AR_FLAGS=$lt_AR_FLAGS
15265
15266# A C compiler.
15267LTCC=$lt_LTCC
15268
15269# LTCC compiler flags.
15270LTCFLAGS=$lt_LTCFLAGS
15271
15272# A language-specific compiler.
15273CC=$lt_compiler_CXX
15274
15275# Is the compiler the GNU C compiler?
15276with_gcc=$GCC_CXX
15277
15278# An ERE matcher.
15279EGREP=$lt_EGREP
15280
15281# The linker used to build libraries.
15282LD=$lt_LD_CXX
15283
15284# Whether we need hard or soft links.
15285LN_S=$lt_LN_S
15286
15287# A BSD-compatible nm program.
15288NM=$lt_NM
15289
15290# A symbol stripping program
15291STRIP=$lt_STRIP
15292
15293# Used to examine libraries when file_magic_cmd begins "file"
15294MAGIC_CMD=$MAGIC_CMD
15295
15296# Used on cygwin: DLL creation program.
15297DLLTOOL="$DLLTOOL"
15298
15299# Used on cygwin: object dumper.
15300OBJDUMP="$OBJDUMP"
15301
15302# Used on cygwin: assembler.
15303AS="$AS"
15304
15305# The name of the directory that contains temporary libtool files.
15306objdir=$objdir
15307
15308# How to create reloadable object files.
15309reload_flag=$lt_reload_flag
15310reload_cmds=$lt_reload_cmds
15311
15312# How to pass a linker flag through the compiler.
15313wl=$lt_lt_prog_compiler_wl_CXX
15314
15315# Object file suffix (normally "o").
15316objext="$ac_objext"
15317
15318# Old archive suffix (normally "a").
15319libext="$libext"
15320
15321# Shared library suffix (normally ".so").
15322shrext_cmds='$shrext_cmds'
15323
15324# Executable file suffix (normally "").
15325exeext="$exeext"
15326
15327# Additional compiler flags for building library objects.
15328pic_flag=$lt_lt_prog_compiler_pic_CXX
15329pic_mode=$pic_mode
15330
15331# What is the maximum length of a command?
15332max_cmd_len=$lt_cv_sys_max_cmd_len
15333
15334# Does compiler simultaneously support -c and -o options?
15335compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15336
15337# Must we lock files when doing compilation?
15338need_locks=$lt_need_locks
15339
15340# Do we need the lib prefix for modules?
15341need_lib_prefix=$need_lib_prefix
15342
15343# Do we need a version for libraries?
15344need_version=$need_version
15345
15346# Whether dlopen is supported.
15347dlopen_support=$enable_dlopen
15348
15349# Whether dlopen of programs is supported.
15350dlopen_self=$enable_dlopen_self
15351
15352# Whether dlopen of statically linked programs is supported.
15353dlopen_self_static=$enable_dlopen_self_static
15354
15355# Compiler flag to prevent dynamic linking.
15356link_static_flag=$lt_lt_prog_compiler_static_CXX
15357
15358# Compiler flag to turn off builtin functions.
15359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15360
15361# Compiler flag to allow reflexive dlopens.
15362export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15363
15364# Compiler flag to generate shared objects directly from archives.
15365whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15366
15367# Compiler flag to generate thread-safe objects.
15368thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15369
15370# Library versioning type.
15371version_type=$version_type
15372
15373# Format of library name prefix.
15374libname_spec=$lt_libname_spec
15375
15376# List of archive names.  First name is the real one, the rest are links.
15377# The last name is the one that the linker finds with -lNAME.
15378library_names_spec=$lt_library_names_spec
15379
15380# The coded name of the library, if different from the real name.
15381soname_spec=$lt_soname_spec
15382
15383# Commands used to build and install an old-style archive.
15384RANLIB=$lt_RANLIB
15385old_archive_cmds=$lt_old_archive_cmds_CXX
15386old_postinstall_cmds=$lt_old_postinstall_cmds
15387old_postuninstall_cmds=$lt_old_postuninstall_cmds
15388
15389# Create an old-style archive from a shared archive.
15390old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15391
15392# Create a temporary old-style archive to link instead of a shared archive.
15393old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15394
15395# Commands used to build and install a shared archive.
15396archive_cmds=$lt_archive_cmds_CXX
15397archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15398postinstall_cmds=$lt_postinstall_cmds
15399postuninstall_cmds=$lt_postuninstall_cmds
15400
15401# Commands used to build a loadable module (assumed same as above if empty)
15402module_cmds=$lt_module_cmds_CXX
15403module_expsym_cmds=$lt_module_expsym_cmds_CXX
15404
15405# Commands to strip libraries.
15406old_striplib=$lt_old_striplib
15407striplib=$lt_striplib
15408
15409# Dependencies to place before the objects being linked to create a
15410# shared library.
15411predep_objects=$lt_predep_objects_CXX
15412
15413# Dependencies to place after the objects being linked to create a
15414# shared library.
15415postdep_objects=$lt_postdep_objects_CXX
15416
15417# Dependencies to place before the objects being linked to create a
15418# shared library.
15419predeps=$lt_predeps_CXX
15420
15421# Dependencies to place after the objects being linked to create a
15422# shared library.
15423postdeps=$lt_postdeps_CXX
15424
15425# The library search path used internally by the compiler when linking
15426# a shared library.
15427compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15428
15429# Method to check whether dependent libraries are shared objects.
15430deplibs_check_method=$lt_deplibs_check_method
15431
15432# Command to use when deplibs_check_method == file_magic.
15433file_magic_cmd=$lt_file_magic_cmd
15434
15435# Flag that allows shared libraries with undefined symbols to be built.
15436allow_undefined_flag=$lt_allow_undefined_flag_CXX
15437
15438# Flag that forces no undefined symbols.
15439no_undefined_flag=$lt_no_undefined_flag_CXX
15440
15441# Commands used to finish a libtool library installation in a directory.
15442finish_cmds=$lt_finish_cmds
15443
15444# Same as above, but a single script fragment to be evaled but not shown.
15445finish_eval=$lt_finish_eval
15446
15447# Take the output of nm and produce a listing of raw symbols and C names.
15448global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15449
15450# Transform the output of nm in a proper C declaration
15451global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15452
15453# Transform the output of nm in a C name address pair
15454global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15455
15456# This is the shared library runtime path variable.
15457runpath_var=$runpath_var
15458
15459# This is the shared library path variable.
15460shlibpath_var=$shlibpath_var
15461
15462# Is shlibpath searched before the hard-coded library search path?
15463shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15464
15465# How to hardcode a shared library path into an executable.
15466hardcode_action=$hardcode_action_CXX
15467
15468# Whether we should hardcode library paths into libraries.
15469hardcode_into_libs=$hardcode_into_libs
15470
15471# Flag to hardcode \$libdir into a binary during linking.
15472# This must work even if \$libdir does not exist.
15473hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15474
15475# If ld is used when linking, flag to hardcode \$libdir into
15476# a binary during linking. This must work even if \$libdir does
15477# not exist.
15478hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15479
15480# Whether we need a single -rpath flag with a separated argument.
15481hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15482
15483# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15484# resulting binary.
15485hardcode_direct=$hardcode_direct_CXX
15486
15487# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15488# resulting binary.
15489hardcode_minus_L=$hardcode_minus_L_CXX
15490
15491# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15492# the resulting binary.
15493hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15494
15495# Set to yes if building a shared library automatically hardcodes DIR into the library
15496# and all subsequent libraries and executables linked against it.
15497hardcode_automatic=$hardcode_automatic_CXX
15498
15499# Variables whose values should be saved in libtool wrapper scripts and
15500# restored at relink time.
15501variables_saved_for_relink="$variables_saved_for_relink"
15502
15503# Whether libtool must link a program against all its dependency libraries.
15504link_all_deplibs=$link_all_deplibs_CXX
15505
15506# Compile-time system search path for libraries
15507sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15508
15509# Run-time system search path for libraries
15510sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15511
15512# Fix the shell variable \$srcfile for the compiler.
15513fix_srcfile_path="$fix_srcfile_path_CXX"
15514
15515# Set to yes if exported symbols are required.
15516always_export_symbols=$always_export_symbols_CXX
15517
15518# The commands to list exported symbols.
15519export_symbols_cmds=$lt_export_symbols_cmds_CXX
15520
15521# The commands to extract the exported symbol list from a shared archive.
15522extract_expsyms_cmds=$lt_extract_expsyms_cmds
15523
15524# Symbols that should not be listed in the preloaded symbols.
15525exclude_expsyms=$lt_exclude_expsyms_CXX
15526
15527# Symbols that must always be exported.
15528include_expsyms=$lt_include_expsyms_CXX
15529
15530# ### END LIBTOOL TAG CONFIG: $tagname
15531
15532__EOF__
15533
15534
15535else
15536  # If there is no Makefile yet, we rely on a make rule to execute
15537  # `config.status --recheck' to rerun these tests and create the
15538  # libtool script then.
15539  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15540  if test -f "$ltmain_in"; then
15541    test -f Makefile && make "$ltmain"
15542  fi
15543fi
15544
15545
15546ac_ext=c
15547ac_cpp='$CPP $CPPFLAGS'
15548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15550ac_compiler_gnu=$ac_cv_c_compiler_gnu
15551
15552CC=$lt_save_CC
15553LDCXX=$LD
15554LD=$lt_save_LD
15555GCC=$lt_save_GCC
15556with_gnu_ldcxx=$with_gnu_ld
15557with_gnu_ld=$lt_save_with_gnu_ld
15558lt_cv_path_LDCXX=$lt_cv_path_LD
15559lt_cv_path_LD=$lt_save_path_LD
15560lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15561lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15562
15563	else
15564	  tagname=""
15565	fi
15566	;;
15567
15568      F77)
15569	if test -n "$F77" && test "X$F77" != "Xno"; then
15570
15571ac_ext=f
15572ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15573ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15574ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15575
15576
15577archive_cmds_need_lc_F77=no
15578allow_undefined_flag_F77=
15579always_export_symbols_F77=no
15580archive_expsym_cmds_F77=
15581export_dynamic_flag_spec_F77=
15582hardcode_direct_F77=no
15583hardcode_libdir_flag_spec_F77=
15584hardcode_libdir_flag_spec_ld_F77=
15585hardcode_libdir_separator_F77=
15586hardcode_minus_L_F77=no
15587hardcode_automatic_F77=no
15588module_cmds_F77=
15589module_expsym_cmds_F77=
15590link_all_deplibs_F77=unknown
15591old_archive_cmds_F77=$old_archive_cmds
15592no_undefined_flag_F77=
15593whole_archive_flag_spec_F77=
15594enable_shared_with_static_runtimes_F77=no
15595
15596# Source file extension for f77 test sources.
15597ac_ext=f
15598
15599# Object file extension for compiled f77 test sources.
15600objext=o
15601objext_F77=$objext
15602
15603# Code to be used in simple compile tests
15604lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15605
15606# Code to be used in simple link tests
15607lt_simple_link_test_code="      program t\n      end\n"
15608
15609# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15610
15611# If no C compiler was specified, use CC.
15612LTCC=${LTCC-"$CC"}
15613
15614# If no C compiler flags were specified, use CFLAGS.
15615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15616
15617# Allow CC to be a program name with arguments.
15618compiler=$CC
15619
15620
15621# save warnings/boilerplate of simple test code
15622ac_outfile=conftest.$ac_objext
15623printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15625_lt_compiler_boilerplate=`cat conftest.err`
15626$rm conftest*
15627
15628ac_outfile=conftest.$ac_objext
15629printf "$lt_simple_link_test_code" >conftest.$ac_ext
15630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15631_lt_linker_boilerplate=`cat conftest.err`
15632$rm conftest*
15633
15634
15635# Allow CC to be a program name with arguments.
15636lt_save_CC="$CC"
15637CC=${F77-"f77"}
15638compiler=$CC
15639compiler_F77=$CC
15640for cc_temp in $compiler""; do
15641  case $cc_temp in
15642    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15643    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15644    \-*) ;;
15645    *) break;;
15646  esac
15647done
15648cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15649
15650
15651{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15652echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15653{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15654echo "${ECHO_T}$can_build_shared" >&6; }
15655
15656{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15657echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15658test "$can_build_shared" = "no" && enable_shared=no
15659
15660# On AIX, shared libraries and static libraries use the same namespace, and
15661# are all built from PIC.
15662case $host_os in
15663aix3*)
15664  test "$enable_shared" = yes && enable_static=no
15665  if test -n "$RANLIB"; then
15666    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15667    postinstall_cmds='$RANLIB $lib'
15668  fi
15669  ;;
15670aix4* | aix5*)
15671  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15672    test "$enable_shared" = yes && enable_static=no
15673  fi
15674  ;;
15675esac
15676{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15677echo "${ECHO_T}$enable_shared" >&6; }
15678
15679{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15680echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15681# Make sure either enable_shared or enable_static is yes.
15682test "$enable_shared" = yes || enable_static=yes
15683{ echo "$as_me:$LINENO: result: $enable_static" >&5
15684echo "${ECHO_T}$enable_static" >&6; }
15685
15686GCC_F77="$G77"
15687LD_F77="$LD"
15688
15689lt_prog_compiler_wl_F77=
15690lt_prog_compiler_pic_F77=
15691lt_prog_compiler_static_F77=
15692
15693{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15694echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15695
15696  if test "$GCC" = yes; then
15697    lt_prog_compiler_wl_F77='-Wl,'
15698    lt_prog_compiler_static_F77='-static'
15699
15700    case $host_os in
15701      aix*)
15702      # All AIX code is PIC.
15703      if test "$host_cpu" = ia64; then
15704	# AIX 5 now supports IA64 processor
15705	lt_prog_compiler_static_F77='-Bstatic'
15706      fi
15707      ;;
15708
15709    amigaos*)
15710      # FIXME: we need at least 68020 code to build shared libraries, but
15711      # adding the `-m68020' flag to GCC prevents building anything better,
15712      # like `-m68040'.
15713      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15714      ;;
15715
15716    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15717      # PIC is the default for these OSes.
15718      ;;
15719
15720    mingw* | cygwin* | pw32* | os2*)
15721      # This hack is so that the source file can tell whether it is being
15722      # built for inclusion in a dll (and should export symbols for example).
15723      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15724      # (--disable-auto-import) libraries
15725      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15726      ;;
15727
15728    darwin* | rhapsody*)
15729      # PIC is the default on this platform
15730      # Common symbols not allowed in MH_DYLIB files
15731      lt_prog_compiler_pic_F77='-fno-common'
15732      ;;
15733
15734    interix3*)
15735      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15736      # Instead, we relocate shared libraries at runtime.
15737      ;;
15738
15739    msdosdjgpp*)
15740      # Just because we use GCC doesn't mean we suddenly get shared libraries
15741      # on systems that don't support them.
15742      lt_prog_compiler_can_build_shared_F77=no
15743      enable_shared=no
15744      ;;
15745
15746    sysv4*MP*)
15747      if test -d /usr/nec; then
15748	lt_prog_compiler_pic_F77=-Kconform_pic
15749      fi
15750      ;;
15751
15752    hpux*)
15753      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15754      # not for PA HP-UX.
15755      case $host_cpu in
15756      hppa*64*|ia64*)
15757	# +Z the default
15758	;;
15759      *)
15760	lt_prog_compiler_pic_F77='-fPIC'
15761	;;
15762      esac
15763      ;;
15764
15765    *)
15766      lt_prog_compiler_pic_F77='-fPIC'
15767      ;;
15768    esac
15769  else
15770    # PORTME Check for flag to pass linker flags through the system compiler.
15771    case $host_os in
15772    aix*)
15773      lt_prog_compiler_wl_F77='-Wl,'
15774      if test "$host_cpu" = ia64; then
15775	# AIX 5 now supports IA64 processor
15776	lt_prog_compiler_static_F77='-Bstatic'
15777      else
15778	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15779      fi
15780      ;;
15781      darwin*)
15782        # PIC is the default on this platform
15783        # Common symbols not allowed in MH_DYLIB files
15784       case $cc_basename in
15785         xlc*)
15786         lt_prog_compiler_pic_F77='-qnocommon'
15787         lt_prog_compiler_wl_F77='-Wl,'
15788         ;;
15789       esac
15790       ;;
15791
15792    mingw* | cygwin* | pw32* | os2*)
15793      # This hack is so that the source file can tell whether it is being
15794      # built for inclusion in a dll (and should export symbols for example).
15795      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15796      # (--disable-auto-import) libraries
15797      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15798      ;;
15799
15800    hpux9* | hpux10* | hpux11*)
15801      lt_prog_compiler_wl_F77='-Wl,'
15802      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15803      # not for PA HP-UX.
15804      case $host_cpu in
15805      hppa*64*|ia64*)
15806	# +Z the default
15807	;;
15808      *)
15809	lt_prog_compiler_pic_F77='+Z'
15810	;;
15811      esac
15812      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15813      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15814      ;;
15815
15816    irix5* | irix6* | nonstopux*)
15817      lt_prog_compiler_wl_F77='-Wl,'
15818      # PIC (with -KPIC) is the default.
15819      lt_prog_compiler_static_F77='-non_shared'
15820      ;;
15821
15822    newsos6)
15823      lt_prog_compiler_pic_F77='-KPIC'
15824      lt_prog_compiler_static_F77='-Bstatic'
15825      ;;
15826
15827    linux*)
15828      case $cc_basename in
15829      icc* | ecc*)
15830	lt_prog_compiler_wl_F77='-Wl,'
15831	lt_prog_compiler_pic_F77='-KPIC'
15832	lt_prog_compiler_static_F77='-static'
15833        ;;
15834      pgcc* | pgf77* | pgf90* | pgf95*)
15835        # Portland Group compilers (*not* the Pentium gcc compiler,
15836	# which looks to be a dead project)
15837	lt_prog_compiler_wl_F77='-Wl,'
15838	lt_prog_compiler_pic_F77='-fpic'
15839	lt_prog_compiler_static_F77='-Bstatic'
15840        ;;
15841      ccc*)
15842        lt_prog_compiler_wl_F77='-Wl,'
15843        # All Alpha code is PIC.
15844        lt_prog_compiler_static_F77='-non_shared'
15845        ;;
15846      como)
15847        lt_prog_compiler_wl_F77='-lopt='
15848        ;;
15849      *)
15850        case `$CC -V 2>&1 | sed 5q` in
15851	*Sun\ C*)
15852	  # Sun C 5.9
15853	  lt_prog_compiler_pic_F77='-KPIC'
15854	  lt_prog_compiler_static_F77='-Bstatic'
15855	  lt_prog_compiler_wl_F77='-Wl,'
15856	  ;;
15857	*Sun\ F*)
15858	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15859	  lt_prog_compiler_pic_F77='-KPIC'
15860	  lt_prog_compiler_static_F77='-Bstatic'
15861	  lt_prog_compiler_wl_F77=''
15862	  ;;
15863	esac
15864	;;
15865      esac
15866      ;;
15867
15868    osf3* | osf4* | osf5*)
15869      lt_prog_compiler_wl_F77='-Wl,'
15870      # All OSF/1 code is PIC.
15871      lt_prog_compiler_static_F77='-non_shared'
15872      ;;
15873
15874    solaris*)
15875      lt_prog_compiler_pic_F77='-KPIC'
15876      lt_prog_compiler_static_F77='-Bstatic'
15877      case $cc_basename in
15878      f77* | f90* | f95*)
15879	lt_prog_compiler_wl_F77='-Qoption ld ';;
15880      *)
15881	lt_prog_compiler_wl_F77='-Wl,';;
15882      esac
15883      ;;
15884
15885    sunos4*)
15886      lt_prog_compiler_wl_F77='-Qoption ld '
15887      lt_prog_compiler_pic_F77='-PIC'
15888      lt_prog_compiler_static_F77='-Bstatic'
15889      ;;
15890
15891    sysv4 | sysv4.2uw2* | sysv4.3*)
15892      lt_prog_compiler_wl_F77='-Wl,'
15893      lt_prog_compiler_pic_F77='-KPIC'
15894      lt_prog_compiler_static_F77='-Bstatic'
15895      ;;
15896
15897    sysv4*MP*)
15898      if test -d /usr/nec ;then
15899	lt_prog_compiler_pic_F77='-Kconform_pic'
15900	lt_prog_compiler_static_F77='-Bstatic'
15901      fi
15902      ;;
15903
15904    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15905      lt_prog_compiler_wl_F77='-Wl,'
15906      lt_prog_compiler_pic_F77='-KPIC'
15907      lt_prog_compiler_static_F77='-Bstatic'
15908      ;;
15909
15910    unicos*)
15911      lt_prog_compiler_wl_F77='-Wl,'
15912      lt_prog_compiler_can_build_shared_F77=no
15913      ;;
15914
15915    uts4*)
15916      lt_prog_compiler_pic_F77='-pic'
15917      lt_prog_compiler_static_F77='-Bstatic'
15918      ;;
15919
15920    *)
15921      lt_prog_compiler_can_build_shared_F77=no
15922      ;;
15923    esac
15924  fi
15925
15926{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15927echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15928
15929#
15930# Check to make sure the PIC flag actually works.
15931#
15932if test -n "$lt_prog_compiler_pic_F77"; then
15933
15934{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15935echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15936if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15937  echo $ECHO_N "(cached) $ECHO_C" >&6
15938else
15939  lt_prog_compiler_pic_works_F77=no
15940  ac_outfile=conftest.$ac_objext
15941   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15942   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15943   # Insert the option either (1) after the last *FLAGS variable, or
15944   # (2) before a word containing "conftest.", or (3) at the end.
15945   # Note that $ac_compile itself does not contain backslashes and begins
15946   # with a dollar sign (not a hyphen), so the echo should work correctly.
15947   # The option is referenced via a variable to avoid confusing sed.
15948   lt_compile=`echo "$ac_compile" | $SED \
15949   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15950   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15951   -e 's:$: $lt_compiler_flag:'`
15952   (eval echo "\"\$as_me:15950: $lt_compile\"" >&5)
15953   (eval "$lt_compile" 2>conftest.err)
15954   ac_status=$?
15955   cat conftest.err >&5
15956   echo "$as_me:15954: \$? = $ac_status" >&5
15957   if (exit $ac_status) && test -s "$ac_outfile"; then
15958     # The compiler can only warn and ignore the option if not recognized
15959     # So say no if there are warnings other than the usual output.
15960     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15961     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15962     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15963       lt_prog_compiler_pic_works_F77=yes
15964     fi
15965   fi
15966   $rm conftest*
15967
15968fi
15969{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15970echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15971
15972if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15973    case $lt_prog_compiler_pic_F77 in
15974     "" | " "*) ;;
15975     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15976     esac
15977else
15978    lt_prog_compiler_pic_F77=
15979     lt_prog_compiler_can_build_shared_F77=no
15980fi
15981
15982fi
15983case $host_os in
15984  # For platforms which do not support PIC, -DPIC is meaningless:
15985  *djgpp*)
15986    lt_prog_compiler_pic_F77=
15987    ;;
15988  *)
15989    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15990    ;;
15991esac
15992
15993#
15994# Check to make sure the static flag actually works.
15995#
15996wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15997{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15998echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15999if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16000  echo $ECHO_N "(cached) $ECHO_C" >&6
16001else
16002  lt_prog_compiler_static_works_F77=no
16003   save_LDFLAGS="$LDFLAGS"
16004   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16005   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16006   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16007     # The linker can only warn and ignore the option if not recognized
16008     # So say no if there are warnings
16009     if test -s conftest.err; then
16010       # Append any errors to the config.log.
16011       cat conftest.err 1>&5
16012       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16013       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16014       if diff conftest.exp conftest.er2 >/dev/null; then
16015         lt_prog_compiler_static_works_F77=yes
16016       fi
16017     else
16018       lt_prog_compiler_static_works_F77=yes
16019     fi
16020   fi
16021   $rm conftest*
16022   LDFLAGS="$save_LDFLAGS"
16023
16024fi
16025{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16026echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
16027
16028if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16029    :
16030else
16031    lt_prog_compiler_static_F77=
16032fi
16033
16034
16035{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16036echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16037if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16038  echo $ECHO_N "(cached) $ECHO_C" >&6
16039else
16040  lt_cv_prog_compiler_c_o_F77=no
16041   $rm -r conftest 2>/dev/null
16042   mkdir conftest
16043   cd conftest
16044   mkdir out
16045   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16046
16047   lt_compiler_flag="-o out/conftest2.$ac_objext"
16048   # Insert the option either (1) after the last *FLAGS variable, or
16049   # (2) before a word containing "conftest.", or (3) at the end.
16050   # Note that $ac_compile itself does not contain backslashes and begins
16051   # with a dollar sign (not a hyphen), so the echo should work correctly.
16052   lt_compile=`echo "$ac_compile" | $SED \
16053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16055   -e 's:$: $lt_compiler_flag:'`
16056   (eval echo "\"\$as_me:16054: $lt_compile\"" >&5)
16057   (eval "$lt_compile" 2>out/conftest.err)
16058   ac_status=$?
16059   cat out/conftest.err >&5
16060   echo "$as_me:16058: \$? = $ac_status" >&5
16061   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16062   then
16063     # The compiler can only warn and ignore the option if not recognized
16064     # So say no if there are warnings
16065     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16066     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16067     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16068       lt_cv_prog_compiler_c_o_F77=yes
16069     fi
16070   fi
16071   chmod u+w . 2>&5
16072   $rm conftest*
16073   # SGI C++ compiler will create directory out/ii_files/ for
16074   # template instantiation
16075   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16076   $rm out/* && rmdir out
16077   cd ..
16078   rmdir conftest
16079   $rm conftest*
16080
16081fi
16082{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16083echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16084
16085
16086hard_links="nottested"
16087if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16088  # do not overwrite the value of need_locks provided by the user
16089  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16090echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16091  hard_links=yes
16092  $rm conftest*
16093  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16094  touch conftest.a
16095  ln conftest.a conftest.b 2>&5 || hard_links=no
16096  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16097  { echo "$as_me:$LINENO: result: $hard_links" >&5
16098echo "${ECHO_T}$hard_links" >&6; }
16099  if test "$hard_links" = no; then
16100    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16101echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16102    need_locks=warn
16103  fi
16104else
16105  need_locks=no
16106fi
16107
16108{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16109echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16110
16111  runpath_var=
16112  allow_undefined_flag_F77=
16113  enable_shared_with_static_runtimes_F77=no
16114  archive_cmds_F77=
16115  archive_expsym_cmds_F77=
16116  old_archive_From_new_cmds_F77=
16117  old_archive_from_expsyms_cmds_F77=
16118  export_dynamic_flag_spec_F77=
16119  whole_archive_flag_spec_F77=
16120  thread_safe_flag_spec_F77=
16121  hardcode_libdir_flag_spec_F77=
16122  hardcode_libdir_flag_spec_ld_F77=
16123  hardcode_libdir_separator_F77=
16124  hardcode_direct_F77=no
16125  hardcode_minus_L_F77=no
16126  hardcode_shlibpath_var_F77=unsupported
16127  link_all_deplibs_F77=unknown
16128  hardcode_automatic_F77=no
16129  module_cmds_F77=
16130  module_expsym_cmds_F77=
16131  always_export_symbols_F77=no
16132  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16133  # include_expsyms should be a list of space-separated symbols to be *always*
16134  # included in the symbol list
16135  include_expsyms_F77=
16136  # exclude_expsyms can be an extended regexp of symbols to exclude
16137  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16138  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16139  # as well as any symbol that contains `d'.
16140  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16141  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16142  # platforms (ab)use it in PIC code, but their linkers get confused if
16143  # the symbol is explicitly referenced.  Since portable code cannot
16144  # rely on this symbol name, it's probably fine to never include it in
16145  # preloaded symbol tables.
16146  extract_expsyms_cmds=
16147  # Just being paranoid about ensuring that cc_basename is set.
16148  for cc_temp in $compiler""; do
16149  case $cc_temp in
16150    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16151    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16152    \-*) ;;
16153    *) break;;
16154  esac
16155done
16156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16157
16158  case $host_os in
16159  cygwin* | mingw* | pw32*)
16160    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16161    # When not using gcc, we currently assume that we are using
16162    # Microsoft Visual C++.
16163    if test "$GCC" != yes; then
16164      with_gnu_ld=no
16165    fi
16166    ;;
16167  interix*)
16168    # we just hope/assume this is gcc and not c89 (= MSVC++)
16169    with_gnu_ld=yes
16170    ;;
16171  openbsd*)
16172    with_gnu_ld=no
16173    ;;
16174  esac
16175
16176  ld_shlibs_F77=yes
16177  if test "$with_gnu_ld" = yes; then
16178    # If archive_cmds runs LD, not CC, wlarc should be empty
16179    wlarc='${wl}'
16180
16181    # Set some defaults for GNU ld with shared library support. These
16182    # are reset later if shared libraries are not supported. Putting them
16183    # here allows them to be overridden if necessary.
16184    runpath_var=LD_RUN_PATH
16185    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16186    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16187    # ancient GNU ld didn't support --whole-archive et. al.
16188    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16189	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16190      else
16191  	whole_archive_flag_spec_F77=
16192    fi
16193    supports_anon_versioning=no
16194    case `$LD -v 2>/dev/null` in
16195      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16196      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16197      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16198      *\ 2.11.*) ;; # other 2.11 versions
16199      *) supports_anon_versioning=yes ;;
16200    esac
16201
16202    # See if GNU ld supports shared libraries.
16203    case $host_os in
16204    aix3* | aix4* | aix5*)
16205      # On AIX/PPC, the GNU linker is very broken
16206      if test "$host_cpu" != ia64; then
16207	ld_shlibs_F77=no
16208	cat <<EOF 1>&2
16209
16210*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16211*** to be unable to reliably create shared libraries on AIX.
16212*** Therefore, libtool is disabling shared libraries support.  If you
16213*** really care for shared libraries, you may want to modify your PATH
16214*** so that a non-GNU linker is found, and then restart.
16215
16216EOF
16217      fi
16218      ;;
16219
16220    amigaos*)
16221      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)'
16222      hardcode_libdir_flag_spec_F77='-L$libdir'
16223      hardcode_minus_L_F77=yes
16224
16225      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16226      # that the semantics of dynamic libraries on AmigaOS, at least up
16227      # to version 4, is to share data among multiple programs linked
16228      # with the same dynamic library.  Since this doesn't match the
16229      # behavior of shared libraries on other platforms, we can't use
16230      # them.
16231      ld_shlibs_F77=no
16232      ;;
16233
16234    beos*)
16235      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16236	allow_undefined_flag_F77=unsupported
16237	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16238	# support --undefined.  This deserves some investigation.  FIXME
16239	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240      else
16241	ld_shlibs_F77=no
16242      fi
16243      ;;
16244
16245    cygwin* | mingw* | pw32*)
16246      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16247      # as there is no search path for DLLs.
16248      hardcode_libdir_flag_spec_F77='-L$libdir'
16249      allow_undefined_flag_F77=unsupported
16250      always_export_symbols_F77=no
16251      enable_shared_with_static_runtimes_F77=yes
16252      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16253
16254      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16255        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16256	# If the export-symbols file already is a .def file (1st line
16257	# is EXPORTS), use it as is; otherwise, prepend...
16258	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16259	  cp $export_symbols $output_objdir/$soname.def;
16260	else
16261	  echo EXPORTS > $output_objdir/$soname.def;
16262	  cat $export_symbols >> $output_objdir/$soname.def;
16263	fi~
16264	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16265      else
16266	ld_shlibs_F77=no
16267      fi
16268      ;;
16269
16270    interix3*)
16271      hardcode_direct_F77=no
16272      hardcode_shlibpath_var_F77=no
16273      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16274      export_dynamic_flag_spec_F77='${wl}-E'
16275      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16276      # Instead, shared libraries are loaded at an image base (0x10000000 by
16277      # default) and relocated if they conflict, which is a slow very memory
16278      # consuming and fragmenting process.  To avoid this, we pick a random,
16279      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16280      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16281      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'
16282      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'
16283      ;;
16284
16285    linux*)
16286      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16287	tmp_addflag=
16288	case $cc_basename,$host_cpu in
16289	pgcc*)				# Portland Group C compiler
16290	  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'
16291	  tmp_addflag=' $pic_flag'
16292	  ;;
16293	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16294	  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'
16295	  tmp_addflag=' $pic_flag -Mnomain' ;;
16296	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16297	  tmp_addflag=' -i_dynamic' ;;
16298	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16299	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16300	ifc* | ifort*)			# Intel Fortran compiler
16301	  tmp_addflag=' -nofor_main' ;;
16302	esac
16303	case `$CC -V 2>&1 | sed 5q` in
16304	*Sun\ C*)			# Sun C 5.9
16305	  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'
16306	  tmp_sharedflag='-G' ;;
16307	*Sun\ F*)			# Sun Fortran 8.3
16308	  tmp_sharedflag='-G' ;;
16309	*)
16310	  tmp_sharedflag='-shared' ;;
16311	esac
16312	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16313
16314	if test $supports_anon_versioning = yes; then
16315	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16316  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16317  $echo "local: *; };" >> $output_objdir/$libname.ver~
16318	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16319	fi
16320      else
16321	ld_shlibs_F77=no
16322      fi
16323      ;;
16324
16325    netbsd*)
16326      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16327	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16328	wlarc=
16329      else
16330	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16332      fi
16333      ;;
16334
16335    solaris*)
16336      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16337	ld_shlibs_F77=no
16338	cat <<EOF 1>&2
16339
16340*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16341*** create shared libraries on Solaris systems.  Therefore, libtool
16342*** is disabling shared libraries support.  We urge you to upgrade GNU
16343*** binutils to release 2.9.1 or newer.  Another option is to modify
16344*** your PATH or compiler configuration so that the native linker is
16345*** used, and then restart.
16346
16347EOF
16348      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16349	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16350	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16351      else
16352	ld_shlibs_F77=no
16353      fi
16354      ;;
16355
16356    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16357      case `$LD -v 2>&1` in
16358        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16359	ld_shlibs_F77=no
16360	cat <<_LT_EOF 1>&2
16361
16362*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16363*** reliably create shared libraries on SCO systems.  Therefore, libtool
16364*** is disabling shared libraries support.  We urge you to upgrade GNU
16365*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16366*** your PATH or compiler configuration so that the native linker is
16367*** used, and then restart.
16368
16369_LT_EOF
16370	;;
16371	*)
16372	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16373	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16374	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16375	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16376	  else
16377	    ld_shlibs_F77=no
16378	  fi
16379	;;
16380      esac
16381      ;;
16382
16383    sunos4*)
16384      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16385      wlarc=
16386      hardcode_direct_F77=yes
16387      hardcode_shlibpath_var_F77=no
16388      ;;
16389
16390    *)
16391      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16392	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16394      else
16395	ld_shlibs_F77=no
16396      fi
16397      ;;
16398    esac
16399
16400    if test "$ld_shlibs_F77" = no; then
16401      runpath_var=
16402      hardcode_libdir_flag_spec_F77=
16403      export_dynamic_flag_spec_F77=
16404      whole_archive_flag_spec_F77=
16405    fi
16406  else
16407    # PORTME fill in a description of your system's linker (not GNU ld)
16408    case $host_os in
16409    aix3*)
16410      allow_undefined_flag_F77=unsupported
16411      always_export_symbols_F77=yes
16412      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'
16413      # Note: this linker hardcodes the directories in LIBPATH if there
16414      # are no directories specified by -L.
16415      hardcode_minus_L_F77=yes
16416      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16417	# Neither direct hardcoding nor static linking is supported with a
16418	# broken collect2.
16419	hardcode_direct_F77=unsupported
16420      fi
16421      ;;
16422
16423    aix4* | aix5*)
16424      if test "$host_cpu" = ia64; then
16425	# On IA64, the linker does run time linking by default, so we don't
16426	# have to do anything special.
16427	aix_use_runtimelinking=no
16428	exp_sym_flag='-Bexport'
16429	no_entry_flag=""
16430      else
16431	# If we're using GNU nm, then we don't want the "-C" option.
16432	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16433	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16434	  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'
16435	else
16436	  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'
16437	fi
16438	aix_use_runtimelinking=no
16439
16440	# Test if we are trying to use run time linking or normal
16441	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16442	# need to do runtime linking.
16443	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16444	  for ld_flag in $LDFLAGS; do
16445  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16446  	    aix_use_runtimelinking=yes
16447  	    break
16448  	  fi
16449	  done
16450	  ;;
16451	esac
16452
16453	exp_sym_flag='-bexport'
16454	no_entry_flag='-bnoentry'
16455      fi
16456
16457      # When large executables or shared objects are built, AIX ld can
16458      # have problems creating the table of contents.  If linking a library
16459      # or program results in "error TOC overflow" add -mminimal-toc to
16460      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16461      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16462
16463      archive_cmds_F77=''
16464      hardcode_direct_F77=yes
16465      hardcode_libdir_separator_F77=':'
16466      link_all_deplibs_F77=yes
16467
16468      if test "$GCC" = yes; then
16469	case $host_os in aix4.[012]|aix4.[012].*)
16470	# We only want to do this on AIX 4.2 and lower, the check
16471	# below for broken collect2 doesn't work under 4.3+
16472	  collect2name=`${CC} -print-prog-name=collect2`
16473	  if test -f "$collect2name" && \
16474  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16475	  then
16476  	  # We have reworked collect2
16477  	  hardcode_direct_F77=yes
16478	  else
16479  	  # We have old collect2
16480  	  hardcode_direct_F77=unsupported
16481  	  # It fails to find uninstalled libraries when the uninstalled
16482  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16483  	  # to unsupported forces relinking
16484  	  hardcode_minus_L_F77=yes
16485  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16486  	  hardcode_libdir_separator_F77=
16487	  fi
16488	  ;;
16489	esac
16490	shared_flag='-shared'
16491	if test "$aix_use_runtimelinking" = yes; then
16492	  shared_flag="$shared_flag "'${wl}-G'
16493	fi
16494      else
16495	# not using gcc
16496	if test "$host_cpu" = ia64; then
16497  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16498  	# chokes on -Wl,-G. The following line is correct:
16499	  shared_flag='-G'
16500	else
16501	  if test "$aix_use_runtimelinking" = yes; then
16502	    shared_flag='${wl}-G'
16503	  else
16504	    shared_flag='${wl}-bM:SRE'
16505	  fi
16506	fi
16507      fi
16508
16509      # It seems that -bexpall does not export symbols beginning with
16510      # underscore (_), so it is better to generate a list of symbols to export.
16511      always_export_symbols_F77=yes
16512      if test "$aix_use_runtimelinking" = yes; then
16513	# Warning - without using the other runtime loading flags (-brtl),
16514	# -berok will link without error, but may produce a broken library.
16515	allow_undefined_flag_F77='-berok'
16516       # Determine the default libpath from the value encoded in an empty executable.
16517       cat >conftest.$ac_ext <<_ACEOF
16518      program main
16519
16520      end
16521_ACEOF
16522rm -f conftest.$ac_objext conftest$ac_exeext
16523if { (ac_try="$ac_link"
16524case "(($ac_try" in
16525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526  *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529  (eval "$ac_link") 2>conftest.er1
16530  ac_status=$?
16531  grep -v '^ *+' conftest.er1 >conftest.err
16532  rm -f conftest.er1
16533  cat conftest.err >&5
16534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535  (exit $ac_status); } &&
16536	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16537  { (case "(($ac_try" in
16538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539  *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542  (eval "$ac_try") 2>&5
16543  ac_status=$?
16544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545  (exit $ac_status); }; } &&
16546	 { ac_try='test -s conftest$ac_exeext'
16547  { (case "(($ac_try" in
16548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549  *) ac_try_echo=$ac_try;;
16550esac
16551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552  (eval "$ac_try") 2>&5
16553  ac_status=$?
16554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555  (exit $ac_status); }; }; then
16556
16557aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16558}'`
16559# Check for a 64-bit object if we didn't find anything.
16560if 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; }
16561}'`; fi
16562else
16563  echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566
16567fi
16568
16569rm -f core conftest.err conftest.$ac_objext \
16570      conftest$ac_exeext conftest.$ac_ext
16571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16572
16573       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16574	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"
16575       else
16576	if test "$host_cpu" = ia64; then
16577	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16578	  allow_undefined_flag_F77="-z nodefs"
16579	  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"
16580	else
16581	 # Determine the default libpath from the value encoded in an empty executable.
16582	 cat >conftest.$ac_ext <<_ACEOF
16583      program main
16584
16585      end
16586_ACEOF
16587rm -f conftest.$ac_objext conftest$ac_exeext
16588if { (ac_try="$ac_link"
16589case "(($ac_try" in
16590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591  *) ac_try_echo=$ac_try;;
16592esac
16593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594  (eval "$ac_link") 2>conftest.er1
16595  ac_status=$?
16596  grep -v '^ *+' conftest.er1 >conftest.err
16597  rm -f conftest.er1
16598  cat conftest.err >&5
16599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600  (exit $ac_status); } &&
16601	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16602  { (case "(($ac_try" in
16603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604  *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607  (eval "$ac_try") 2>&5
16608  ac_status=$?
16609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610  (exit $ac_status); }; } &&
16611	 { ac_try='test -s conftest$ac_exeext'
16612  { (case "(($ac_try" in
16613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614  *) ac_try_echo=$ac_try;;
16615esac
16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617  (eval "$ac_try") 2>&5
16618  ac_status=$?
16619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620  (exit $ac_status); }; }; then
16621
16622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16623}'`
16624# Check for a 64-bit object if we didn't find anything.
16625if 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; }
16626}'`; fi
16627else
16628  echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631
16632fi
16633
16634rm -f core conftest.err conftest.$ac_objext \
16635      conftest$ac_exeext conftest.$ac_ext
16636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16637
16638	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16639	  # Warning - without using the other run time loading flags,
16640	  # -berok will link without error, but may produce a broken library.
16641	  no_undefined_flag_F77=' ${wl}-bernotok'
16642	  allow_undefined_flag_F77=' ${wl}-berok'
16643	  # Exported symbols can be pulled into shared objects from archives
16644	  whole_archive_flag_spec_F77='$convenience'
16645	  archive_cmds_need_lc_F77=yes
16646	  # This is similar to how AIX traditionally builds its shared libraries.
16647	  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'
16648	fi
16649      fi
16650      ;;
16651
16652    amigaos*)
16653      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)'
16654      hardcode_libdir_flag_spec_F77='-L$libdir'
16655      hardcode_minus_L_F77=yes
16656      # see comment about different semantics on the GNU ld section
16657      ld_shlibs_F77=no
16658      ;;
16659
16660    bsdi[45]*)
16661      export_dynamic_flag_spec_F77=-rdynamic
16662      ;;
16663
16664    cygwin* | mingw* | pw32*)
16665      # When not using gcc, we currently assume that we are using
16666      # Microsoft Visual C++.
16667      # hardcode_libdir_flag_spec is actually meaningless, as there is
16668      # no search path for DLLs.
16669      hardcode_libdir_flag_spec_F77=' '
16670      allow_undefined_flag_F77=unsupported
16671      # Tell ltmain to make .lib files, not .a files.
16672      libext=lib
16673      # Tell ltmain to make .dll files, not .so files.
16674      shrext_cmds=".dll"
16675      # FIXME: Setting linknames here is a bad hack.
16676      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16677      # The linker will automatically build a .lib file if we build a DLL.
16678      old_archive_From_new_cmds_F77='true'
16679      # FIXME: Should let the user specify the lib program.
16680      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16681      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16682      enable_shared_with_static_runtimes_F77=yes
16683      ;;
16684
16685    darwin* | rhapsody*)
16686      case $host_os in
16687        rhapsody* | darwin1.[012])
16688         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16689         ;;
16690       *) # Darwin 1.3 on
16691         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16692           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16693         else
16694           case ${MACOSX_DEPLOYMENT_TARGET} in
16695             10.[012])
16696               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16697               ;;
16698             10.*)
16699               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16700               ;;
16701           esac
16702         fi
16703         ;;
16704      esac
16705      archive_cmds_need_lc_F77=no
16706      hardcode_direct_F77=no
16707      hardcode_automatic_F77=yes
16708      hardcode_shlibpath_var_F77=unsupported
16709      whole_archive_flag_spec_F77=''
16710      link_all_deplibs_F77=yes
16711    if test "$GCC" = yes ; then
16712    	output_verbose_link_cmd='echo'
16713        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16714      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16715      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16716      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}'
16717      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}'
16718    else
16719      case $cc_basename in
16720        xlc*)
16721         output_verbose_link_cmd='echo'
16722         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16723         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16724          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16725         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}'
16726          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}'
16727          ;;
16728       *)
16729         ld_shlibs_F77=no
16730          ;;
16731      esac
16732    fi
16733      ;;
16734
16735    dgux*)
16736      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737      hardcode_libdir_flag_spec_F77='-L$libdir'
16738      hardcode_shlibpath_var_F77=no
16739      ;;
16740
16741    freebsd1*)
16742      ld_shlibs_F77=no
16743      ;;
16744
16745    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16746    # support.  Future versions do this automatically, but an explicit c++rt0.o
16747    # does not break anything, and helps significantly (at the cost of a little
16748    # extra space).
16749    freebsd2.2*)
16750      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16751      hardcode_libdir_flag_spec_F77='-R$libdir'
16752      hardcode_direct_F77=yes
16753      hardcode_shlibpath_var_F77=no
16754      ;;
16755
16756    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16757    freebsd2*)
16758      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16759      hardcode_direct_F77=yes
16760      hardcode_minus_L_F77=yes
16761      hardcode_shlibpath_var_F77=no
16762      ;;
16763
16764    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16765    freebsd* | kfreebsd*-gnu | dragonfly*)
16766      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16767      hardcode_libdir_flag_spec_F77='-R$libdir'
16768      hardcode_direct_F77=yes
16769      hardcode_shlibpath_var_F77=no
16770      ;;
16771
16772    hpux9*)
16773      if test "$GCC" = yes; then
16774	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'
16775      else
16776	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'
16777      fi
16778      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16779      hardcode_libdir_separator_F77=:
16780      hardcode_direct_F77=yes
16781
16782      # hardcode_minus_L: Not really in the search PATH,
16783      # but as the default location of the library.
16784      hardcode_minus_L_F77=yes
16785      export_dynamic_flag_spec_F77='${wl}-E'
16786      ;;
16787
16788    hpux10*)
16789      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16790	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16791      else
16792	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16793      fi
16794      if test "$with_gnu_ld" = no; then
16795	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16796	hardcode_libdir_separator_F77=:
16797
16798	hardcode_direct_F77=yes
16799	export_dynamic_flag_spec_F77='${wl}-E'
16800
16801	# hardcode_minus_L: Not really in the search PATH,
16802	# but as the default location of the library.
16803	hardcode_minus_L_F77=yes
16804      fi
16805      ;;
16806
16807    hpux11*)
16808      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16809	case $host_cpu in
16810	hppa*64*)
16811	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16812	  ;;
16813	ia64*)
16814	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16815	  ;;
16816	*)
16817	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16818	  ;;
16819	esac
16820      else
16821	case $host_cpu in
16822	hppa*64*)
16823	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16824	  ;;
16825	ia64*)
16826	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16827	  ;;
16828	*)
16829	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16830	  ;;
16831	esac
16832      fi
16833      if test "$with_gnu_ld" = no; then
16834	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16835	hardcode_libdir_separator_F77=:
16836
16837	case $host_cpu in
16838	hppa*64*|ia64*)
16839	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16840	  hardcode_direct_F77=no
16841	  hardcode_shlibpath_var_F77=no
16842	  ;;
16843	*)
16844	  hardcode_direct_F77=yes
16845	  export_dynamic_flag_spec_F77='${wl}-E'
16846
16847	  # hardcode_minus_L: Not really in the search PATH,
16848	  # but as the default location of the library.
16849	  hardcode_minus_L_F77=yes
16850	  ;;
16851	esac
16852      fi
16853      ;;
16854
16855    irix5* | irix6* | nonstopux*)
16856      if test "$GCC" = yes; then
16857	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'
16858      else
16859	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'
16860	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16861      fi
16862      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16863      hardcode_libdir_separator_F77=:
16864      link_all_deplibs_F77=yes
16865      ;;
16866
16867    netbsd*)
16868      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16869	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16870      else
16871	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16872      fi
16873      hardcode_libdir_flag_spec_F77='-R$libdir'
16874      hardcode_direct_F77=yes
16875      hardcode_shlibpath_var_F77=no
16876      ;;
16877
16878    newsos6)
16879      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16880      hardcode_direct_F77=yes
16881      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16882      hardcode_libdir_separator_F77=:
16883      hardcode_shlibpath_var_F77=no
16884      ;;
16885
16886    openbsd*)
16887      hardcode_direct_F77=yes
16888      hardcode_shlibpath_var_F77=no
16889      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16890	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16891	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16892	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16893	export_dynamic_flag_spec_F77='${wl}-E'
16894      else
16895       case $host_os in
16896	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16897	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16898	   hardcode_libdir_flag_spec_F77='-R$libdir'
16899	   ;;
16900	 *)
16901	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16902	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16903	   ;;
16904       esac
16905      fi
16906      ;;
16907
16908    os2*)
16909      hardcode_libdir_flag_spec_F77='-L$libdir'
16910      hardcode_minus_L_F77=yes
16911      allow_undefined_flag_F77=unsupported
16912      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'
16913      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16914      ;;
16915
16916    osf3*)
16917      if test "$GCC" = yes; then
16918	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16919	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'
16920      else
16921	allow_undefined_flag_F77=' -expect_unresolved \*'
16922	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'
16923      fi
16924      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16925      hardcode_libdir_separator_F77=:
16926      ;;
16927
16928    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16929      if test "$GCC" = yes; then
16930	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16931	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'
16932	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16933      else
16934	allow_undefined_flag_F77=' -expect_unresolved \*'
16935	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'
16936	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~
16937	$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'
16938
16939	# Both c and cxx compiler support -rpath directly
16940	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16941      fi
16942      hardcode_libdir_separator_F77=:
16943      ;;
16944
16945    solaris*)
16946      no_undefined_flag_F77=' -z text'
16947      if test "$GCC" = yes; then
16948	wlarc='${wl}'
16949	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16950	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16951	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16952      else
16953	wlarc=''
16954	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16955	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16956  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16957      fi
16958      hardcode_libdir_flag_spec_F77='-R$libdir'
16959      hardcode_shlibpath_var_F77=no
16960      case $host_os in
16961      solaris2.[0-5] | solaris2.[0-5].*) ;;
16962      *)
16963 	# The compiler driver will combine linker options so we
16964 	# cannot just pass the convience library names through
16965 	# without $wl, iff we do not link with $LD.
16966 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16967 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16968 	case $wlarc in
16969 	'')
16970 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16971 	*)
16972 	  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' ;;
16973 	esac ;;
16974      esac
16975      link_all_deplibs_F77=yes
16976      ;;
16977
16978    sunos4*)
16979      if test "x$host_vendor" = xsequent; then
16980	# Use $CC to link under sequent, because it throws in some extra .o
16981	# files that make .init and .fini sections work.
16982	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16983      else
16984	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16985      fi
16986      hardcode_libdir_flag_spec_F77='-L$libdir'
16987      hardcode_direct_F77=yes
16988      hardcode_minus_L_F77=yes
16989      hardcode_shlibpath_var_F77=no
16990      ;;
16991
16992    sysv4)
16993      case $host_vendor in
16994	sni)
16995	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16996	  hardcode_direct_F77=yes # is this really true???
16997	;;
16998	siemens)
16999	  ## LD is ld it makes a PLAMLIB
17000	  ## CC just makes a GrossModule.
17001	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17002	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17003	  hardcode_direct_F77=no
17004        ;;
17005	motorola)
17006	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17007	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17008	;;
17009      esac
17010      runpath_var='LD_RUN_PATH'
17011      hardcode_shlibpath_var_F77=no
17012      ;;
17013
17014    sysv4.3*)
17015      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016      hardcode_shlibpath_var_F77=no
17017      export_dynamic_flag_spec_F77='-Bexport'
17018      ;;
17019
17020    sysv4*MP*)
17021      if test -d /usr/nec; then
17022	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17023	hardcode_shlibpath_var_F77=no
17024	runpath_var=LD_RUN_PATH
17025	hardcode_runpath_var=yes
17026	ld_shlibs_F77=yes
17027      fi
17028      ;;
17029
17030    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17031      no_undefined_flag_F77='${wl}-z,text'
17032      archive_cmds_need_lc_F77=no
17033      hardcode_shlibpath_var_F77=no
17034      runpath_var='LD_RUN_PATH'
17035
17036      if test "$GCC" = yes; then
17037	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17039      else
17040	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042      fi
17043      ;;
17044
17045    sysv5* | sco3.2v5* | sco5v6*)
17046      # Note: We can NOT use -z defs as we might desire, because we do not
17047      # link with -lc, and that would cause any symbols used from libc to
17048      # always be unresolved, which means just about no library would
17049      # ever link correctly.  If we're not using GNU ld we use -z text
17050      # though, which does catch some bad symbols but isn't as heavy-handed
17051      # as -z defs.
17052      no_undefined_flag_F77='${wl}-z,text'
17053      allow_undefined_flag_F77='${wl}-z,nodefs'
17054      archive_cmds_need_lc_F77=no
17055      hardcode_shlibpath_var_F77=no
17056      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17057      hardcode_libdir_separator_F77=':'
17058      link_all_deplibs_F77=yes
17059      export_dynamic_flag_spec_F77='${wl}-Bexport'
17060      runpath_var='LD_RUN_PATH'
17061
17062      if test "$GCC" = yes; then
17063	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17064	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17065      else
17066	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17067	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17068      fi
17069      ;;
17070
17071    uts4*)
17072      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073      hardcode_libdir_flag_spec_F77='-L$libdir'
17074      hardcode_shlibpath_var_F77=no
17075      ;;
17076
17077    *)
17078      ld_shlibs_F77=no
17079      ;;
17080    esac
17081  fi
17082
17083{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17084echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17085test "$ld_shlibs_F77" = no && can_build_shared=no
17086
17087#
17088# Do we need to explicitly link libc?
17089#
17090case "x$archive_cmds_need_lc_F77" in
17091x|xyes)
17092  # Assume -lc should be added
17093  archive_cmds_need_lc_F77=yes
17094
17095  if test "$enable_shared" = yes && test "$GCC" = yes; then
17096    case $archive_cmds_F77 in
17097    *'~'*)
17098      # FIXME: we may have to deal with multi-command sequences.
17099      ;;
17100    '$CC '*)
17101      # Test whether the compiler implicitly links with -lc since on some
17102      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17103      # to ld, don't add -lc before -lgcc.
17104      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17105echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17106      $rm conftest*
17107      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17108
17109      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110  (eval $ac_compile) 2>&5
17111  ac_status=$?
17112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113  (exit $ac_status); } 2>conftest.err; then
17114        soname=conftest
17115        lib=conftest
17116        libobjs=conftest.$ac_objext
17117        deplibs=
17118        wl=$lt_prog_compiler_wl_F77
17119	pic_flag=$lt_prog_compiler_pic_F77
17120        compiler_flags=-v
17121        linker_flags=-v
17122        verstring=
17123        output_objdir=.
17124        libname=conftest
17125        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17126        allow_undefined_flag_F77=
17127        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17128  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17129  ac_status=$?
17130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131  (exit $ac_status); }
17132        then
17133	  archive_cmds_need_lc_F77=no
17134        else
17135	  archive_cmds_need_lc_F77=yes
17136        fi
17137        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17138      else
17139        cat conftest.err 1>&5
17140      fi
17141      $rm conftest*
17142      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17143echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17144      ;;
17145    esac
17146  fi
17147  ;;
17148esac
17149
17150{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17151echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17152library_names_spec=
17153libname_spec='lib$name'
17154soname_spec=
17155shrext_cmds=".so"
17156postinstall_cmds=
17157postuninstall_cmds=
17158finish_cmds=
17159finish_eval=
17160shlibpath_var=
17161shlibpath_overrides_runpath=unknown
17162version_type=none
17163dynamic_linker="$host_os ld.so"
17164sys_lib_dlsearch_path_spec="/lib /usr/lib"
17165if test "$GCC" = yes; then
17166  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17167  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17168    # if the path contains ";" then we assume it to be the separator
17169    # otherwise default to the standard path separator (i.e. ":") - it is
17170    # assumed that no part of a normal pathname contains ";" but that should
17171    # okay in the real world where ";" in dirpaths is itself problematic.
17172    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173  else
17174    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17175  fi
17176else
17177  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17178fi
17179need_lib_prefix=unknown
17180hardcode_into_libs=no
17181
17182# when you set need_version to no, make sure it does not cause -set_version
17183# flags to be left without arguments
17184need_version=unknown
17185
17186case $host_os in
17187aix3*)
17188  version_type=linux
17189  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17190  shlibpath_var=LIBPATH
17191
17192  # AIX 3 has no versioning support, so we append a major version to the name.
17193  soname_spec='${libname}${release}${shared_ext}$major'
17194  ;;
17195
17196aix4* | aix5*)
17197  version_type=linux
17198  need_lib_prefix=no
17199  need_version=no
17200  hardcode_into_libs=yes
17201  if test "$host_cpu" = ia64; then
17202    # AIX 5 supports IA64
17203    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17204    shlibpath_var=LD_LIBRARY_PATH
17205  else
17206    # With GCC up to 2.95.x, collect2 would create an import file
17207    # for dependence libraries.  The import file would start with
17208    # the line `#! .'.  This would cause the generated library to
17209    # depend on `.', always an invalid library.  This was fixed in
17210    # development snapshots of GCC prior to 3.0.
17211    case $host_os in
17212      aix4 | aix4.[01] | aix4.[01].*)
17213      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17214	   echo ' yes '
17215	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17216	:
17217      else
17218	can_build_shared=no
17219      fi
17220      ;;
17221    esac
17222    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17223    # soname into executable. Probably we can add versioning support to
17224    # collect2, so additional links can be useful in future.
17225    if test "$aix_use_runtimelinking" = yes; then
17226      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17227      # instead of lib<name>.a to let people know that these are not
17228      # typical AIX shared libraries.
17229      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230    else
17231      # We preserve .a as extension for shared libraries through AIX4.2
17232      # and later when we are not doing run time linking.
17233      library_names_spec='${libname}${release}.a $libname.a'
17234      soname_spec='${libname}${release}${shared_ext}$major'
17235    fi
17236    shlibpath_var=LIBPATH
17237  fi
17238  ;;
17239
17240amigaos*)
17241  library_names_spec='$libname.ixlibrary $libname.a'
17242  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17243  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'
17244  ;;
17245
17246beos*)
17247  library_names_spec='${libname}${shared_ext}'
17248  dynamic_linker="$host_os ld.so"
17249  shlibpath_var=LIBRARY_PATH
17250  ;;
17251
17252bsdi[45]*)
17253  version_type=linux
17254  need_version=no
17255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256  soname_spec='${libname}${release}${shared_ext}$major'
17257  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17258  shlibpath_var=LD_LIBRARY_PATH
17259  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17260  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17261  # the default ld.so.conf also contains /usr/contrib/lib and
17262  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17263  # libtool to hard-code these into programs
17264  ;;
17265
17266cygwin* | mingw* | pw32*)
17267  version_type=windows
17268  shrext_cmds=".dll"
17269  need_version=no
17270  need_lib_prefix=no
17271
17272  case $GCC,$host_os in
17273  yes,cygwin* | yes,mingw* | yes,pw32*)
17274    library_names_spec='$libname.dll.a'
17275    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17276    postinstall_cmds='base_file=`basename \${file}`~
17277      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17278      dldir=$destdir/`dirname \$dlpath`~
17279      test -d \$dldir || mkdir -p \$dldir~
17280      $install_prog $dir/$dlname \$dldir/$dlname~
17281      chmod a+x \$dldir/$dlname'
17282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17283      dlpath=$dir/\$dldll~
17284       $rm \$dlpath'
17285    shlibpath_overrides_runpath=yes
17286
17287    case $host_os in
17288    cygwin*)
17289      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17290      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17291      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17292      ;;
17293    mingw*)
17294      # MinGW DLLs use traditional 'lib' prefix
17295      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17296      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17297      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17298        # It is most probably a Windows format PATH printed by
17299        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17300        # path with ; separators, and with drive letters. We can handle the
17301        # drive letters (cygwin fileutils understands them), so leave them,
17302        # especially as we might pass files found there to a mingw objdump,
17303        # which wouldn't understand a cygwinified path. Ahh.
17304        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17305      else
17306        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17307      fi
17308      ;;
17309    pw32*)
17310      # pw32 DLLs use 'pw' prefix rather than 'lib'
17311      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17312      ;;
17313    esac
17314    ;;
17315
17316  *)
17317    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17318    ;;
17319  esac
17320  dynamic_linker='Win32 ld.exe'
17321  # FIXME: first we should search . and the directory the executable is in
17322  shlibpath_var=PATH
17323  ;;
17324
17325darwin* | rhapsody*)
17326  dynamic_linker="$host_os dyld"
17327  version_type=darwin
17328  need_lib_prefix=no
17329  need_version=no
17330  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17331  soname_spec='${libname}${release}${major}$shared_ext'
17332  shlibpath_overrides_runpath=yes
17333  shlibpath_var=DYLD_LIBRARY_PATH
17334  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17335  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17336  if test "$GCC" = yes; then
17337    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"`
17338  else
17339    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17340  fi
17341  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17342  ;;
17343
17344dgux*)
17345  version_type=linux
17346  need_lib_prefix=no
17347  need_version=no
17348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17349  soname_spec='${libname}${release}${shared_ext}$major'
17350  shlibpath_var=LD_LIBRARY_PATH
17351  ;;
17352
17353freebsd1*)
17354  dynamic_linker=no
17355  ;;
17356
17357kfreebsd*-gnu)
17358  version_type=linux
17359  need_lib_prefix=no
17360  need_version=no
17361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17362  soname_spec='${libname}${release}${shared_ext}$major'
17363  shlibpath_var=LD_LIBRARY_PATH
17364  shlibpath_overrides_runpath=no
17365  hardcode_into_libs=yes
17366  dynamic_linker='GNU ld.so'
17367  ;;
17368
17369freebsd* | dragonfly*)
17370  # DragonFly does not have aout.  When/if they implement a new
17371  # versioning mechanism, adjust this.
17372  if test -x /usr/bin/objformat; then
17373    objformat=`/usr/bin/objformat`
17374  else
17375    case $host_os in
17376    freebsd[123]*) objformat=aout ;;
17377    *) objformat=elf ;;
17378    esac
17379  fi
17380  version_type=freebsd-$objformat
17381  case $version_type in
17382    freebsd-elf*)
17383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17384      need_version=no
17385      need_lib_prefix=no
17386      ;;
17387    freebsd-*)
17388      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17389      need_version=yes
17390      ;;
17391  esac
17392  shlibpath_var=LD_LIBRARY_PATH
17393  case $host_os in
17394  freebsd2*)
17395    shlibpath_overrides_runpath=yes
17396    ;;
17397  freebsd3.[01]* | freebsdelf3.[01]*)
17398    shlibpath_overrides_runpath=yes
17399    hardcode_into_libs=yes
17400    ;;
17401  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17402  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17403    shlibpath_overrides_runpath=no
17404    hardcode_into_libs=yes
17405    ;;
17406  freebsd*) # from 4.6 on
17407    shlibpath_overrides_runpath=yes
17408    hardcode_into_libs=yes
17409    ;;
17410  esac
17411  ;;
17412
17413gnu*)
17414  version_type=linux
17415  need_lib_prefix=no
17416  need_version=no
17417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17418  soname_spec='${libname}${release}${shared_ext}$major'
17419  shlibpath_var=LD_LIBRARY_PATH
17420  hardcode_into_libs=yes
17421  ;;
17422
17423hpux9* | hpux10* | hpux11*)
17424  # Give a soname corresponding to the major version so that dld.sl refuses to
17425  # link against other versions.
17426  version_type=sunos
17427  need_lib_prefix=no
17428  need_version=no
17429  case $host_cpu in
17430  ia64*)
17431    shrext_cmds='.so'
17432    hardcode_into_libs=yes
17433    dynamic_linker="$host_os dld.so"
17434    shlibpath_var=LD_LIBRARY_PATH
17435    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437    soname_spec='${libname}${release}${shared_ext}$major'
17438    if test "X$HPUX_IA64_MODE" = X32; then
17439      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17440    else
17441      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17442    fi
17443    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17444    ;;
17445   hppa*64*)
17446     shrext_cmds='.sl'
17447     hardcode_into_libs=yes
17448     dynamic_linker="$host_os dld.sl"
17449     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17450     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452     soname_spec='${libname}${release}${shared_ext}$major'
17453     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17455     ;;
17456   *)
17457    shrext_cmds='.sl'
17458    dynamic_linker="$host_os dld.sl"
17459    shlibpath_var=SHLIB_PATH
17460    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17461    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462    soname_spec='${libname}${release}${shared_ext}$major'
17463    ;;
17464  esac
17465  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17466  postinstall_cmds='chmod 555 $lib'
17467  ;;
17468
17469interix3*)
17470  version_type=linux
17471  need_lib_prefix=no
17472  need_version=no
17473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474  soname_spec='${libname}${release}${shared_ext}$major'
17475  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17476  shlibpath_var=LD_LIBRARY_PATH
17477  shlibpath_overrides_runpath=no
17478  hardcode_into_libs=yes
17479  ;;
17480
17481irix5* | irix6* | nonstopux*)
17482  case $host_os in
17483    nonstopux*) version_type=nonstopux ;;
17484    *)
17485	if test "$lt_cv_prog_gnu_ld" = yes; then
17486		version_type=linux
17487	else
17488		version_type=irix
17489	fi ;;
17490  esac
17491  need_lib_prefix=no
17492  need_version=no
17493  soname_spec='${libname}${release}${shared_ext}$major'
17494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17495  case $host_os in
17496  irix5* | nonstopux*)
17497    libsuff= shlibsuff=
17498    ;;
17499  *)
17500    case $LD in # libtool.m4 will add one of these switches to LD
17501    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17502      libsuff= shlibsuff= libmagic=32-bit;;
17503    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17504      libsuff=32 shlibsuff=N32 libmagic=N32;;
17505    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17506      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17507    *) libsuff= shlibsuff= libmagic=never-match;;
17508    esac
17509    ;;
17510  esac
17511  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17512  shlibpath_overrides_runpath=no
17513  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17514  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17515  hardcode_into_libs=yes
17516  ;;
17517
17518# No shared lib support for Linux oldld, aout, or coff.
17519linux*oldld* | linux*aout* | linux*coff*)
17520  dynamic_linker=no
17521  ;;
17522
17523# This must be Linux ELF.
17524linux*)
17525  version_type=linux
17526  need_lib_prefix=no
17527  need_version=no
17528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529  soname_spec='${libname}${release}${shared_ext}$major'
17530  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17531  shlibpath_var=LD_LIBRARY_PATH
17532  shlibpath_overrides_runpath=no
17533  # This implies no fast_install, which is unacceptable.
17534  # Some rework will be needed to allow for fast_install
17535  # before this can be enabled.
17536  hardcode_into_libs=yes
17537
17538  # Append ld.so.conf contents to the search path
17539  if test -f /etc/ld.so.conf; then
17540    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' ' '`
17541    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17542  fi
17543
17544  # We used to test for /lib/ld.so.1 and disable shared libraries on
17545  # powerpc, because MkLinux only supported shared libraries with the
17546  # GNU dynamic linker.  Since this was broken with cross compilers,
17547  # most powerpc-linux boxes support dynamic linking these days and
17548  # people can always --disable-shared, the test was removed, and we
17549  # assume the GNU/Linux dynamic linker is in use.
17550  dynamic_linker='GNU/Linux ld.so'
17551  ;;
17552
17553knetbsd*-gnu)
17554  version_type=linux
17555  need_lib_prefix=no
17556  need_version=no
17557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17558  soname_spec='${libname}${release}${shared_ext}$major'
17559  shlibpath_var=LD_LIBRARY_PATH
17560  shlibpath_overrides_runpath=no
17561  hardcode_into_libs=yes
17562  dynamic_linker='GNU ld.so'
17563  ;;
17564
17565netbsd*)
17566  version_type=sunos
17567  need_lib_prefix=no
17568  need_version=no
17569  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17572    dynamic_linker='NetBSD (a.out) ld.so'
17573  else
17574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17575    soname_spec='${libname}${release}${shared_ext}$major'
17576    dynamic_linker='NetBSD ld.elf_so'
17577  fi
17578  shlibpath_var=LD_LIBRARY_PATH
17579  shlibpath_overrides_runpath=yes
17580  hardcode_into_libs=yes
17581  ;;
17582
17583newsos6)
17584  version_type=linux
17585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586  shlibpath_var=LD_LIBRARY_PATH
17587  shlibpath_overrides_runpath=yes
17588  ;;
17589
17590nto-qnx*)
17591  version_type=linux
17592  need_lib_prefix=no
17593  need_version=no
17594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17595  soname_spec='${libname}${release}${shared_ext}$major'
17596  shlibpath_var=LD_LIBRARY_PATH
17597  shlibpath_overrides_runpath=yes
17598  ;;
17599
17600openbsd*)
17601  version_type=sunos
17602  sys_lib_dlsearch_path_spec="/usr/lib"
17603  need_lib_prefix=no
17604  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17605  case $host_os in
17606    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17607    *)                         need_version=no  ;;
17608  esac
17609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17610  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17611  shlibpath_var=LD_LIBRARY_PATH
17612  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17613    case $host_os in
17614      openbsd2.[89] | openbsd2.[89].*)
17615	shlibpath_overrides_runpath=no
17616	;;
17617      *)
17618	shlibpath_overrides_runpath=yes
17619	;;
17620      esac
17621  else
17622    shlibpath_overrides_runpath=yes
17623  fi
17624  ;;
17625
17626os2*)
17627  libname_spec='$name'
17628  shrext_cmds=".dll"
17629  need_lib_prefix=no
17630  library_names_spec='$libname${shared_ext} $libname.a'
17631  dynamic_linker='OS/2 ld.exe'
17632  shlibpath_var=LIBPATH
17633  ;;
17634
17635osf3* | osf4* | osf5*)
17636  version_type=osf
17637  need_lib_prefix=no
17638  need_version=no
17639  soname_spec='${libname}${release}${shared_ext}$major'
17640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17641  shlibpath_var=LD_LIBRARY_PATH
17642  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17643  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17644  ;;
17645
17646solaris*)
17647  version_type=linux
17648  need_lib_prefix=no
17649  need_version=no
17650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651  soname_spec='${libname}${release}${shared_ext}$major'
17652  shlibpath_var=LD_LIBRARY_PATH
17653  shlibpath_overrides_runpath=yes
17654  hardcode_into_libs=yes
17655  # ldd complains unless libraries are executable
17656  postinstall_cmds='chmod +x $lib'
17657  ;;
17658
17659sunos4*)
17660  version_type=sunos
17661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17662  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17663  shlibpath_var=LD_LIBRARY_PATH
17664  shlibpath_overrides_runpath=yes
17665  if test "$with_gnu_ld" = yes; then
17666    need_lib_prefix=no
17667  fi
17668  need_version=yes
17669  ;;
17670
17671sysv4 | sysv4.3*)
17672  version_type=linux
17673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674  soname_spec='${libname}${release}${shared_ext}$major'
17675  shlibpath_var=LD_LIBRARY_PATH
17676  case $host_vendor in
17677    sni)
17678      shlibpath_overrides_runpath=no
17679      need_lib_prefix=no
17680      export_dynamic_flag_spec='${wl}-Blargedynsym'
17681      runpath_var=LD_RUN_PATH
17682      ;;
17683    siemens)
17684      need_lib_prefix=no
17685      ;;
17686    motorola)
17687      need_lib_prefix=no
17688      need_version=no
17689      shlibpath_overrides_runpath=no
17690      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17691      ;;
17692  esac
17693  ;;
17694
17695sysv4*MP*)
17696  if test -d /usr/nec ;then
17697    version_type=linux
17698    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17699    soname_spec='$libname${shared_ext}.$major'
17700    shlibpath_var=LD_LIBRARY_PATH
17701  fi
17702  ;;
17703
17704sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17705  version_type=freebsd-elf
17706  need_lib_prefix=no
17707  need_version=no
17708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17709  soname_spec='${libname}${release}${shared_ext}$major'
17710  shlibpath_var=LD_LIBRARY_PATH
17711  hardcode_into_libs=yes
17712  if test "$with_gnu_ld" = yes; then
17713    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17714    shlibpath_overrides_runpath=no
17715  else
17716    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17717    shlibpath_overrides_runpath=yes
17718    case $host_os in
17719      sco3.2v5*)
17720        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17721	;;
17722    esac
17723  fi
17724  sys_lib_dlsearch_path_spec='/usr/lib'
17725  ;;
17726
17727uts4*)
17728  version_type=linux
17729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730  soname_spec='${libname}${release}${shared_ext}$major'
17731  shlibpath_var=LD_LIBRARY_PATH
17732  ;;
17733
17734*)
17735  dynamic_linker=no
17736  ;;
17737esac
17738{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17739echo "${ECHO_T}$dynamic_linker" >&6; }
17740test "$dynamic_linker" = no && can_build_shared=no
17741
17742variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17743if test "$GCC" = yes; then
17744  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17745fi
17746
17747{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17748echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17749hardcode_action_F77=
17750if test -n "$hardcode_libdir_flag_spec_F77" || \
17751   test -n "$runpath_var_F77" || \
17752   test "X$hardcode_automatic_F77" = "Xyes" ; then
17753
17754  # We can hardcode non-existant directories.
17755  if test "$hardcode_direct_F77" != no &&
17756     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17757     # have to relink, otherwise we might link with an installed library
17758     # when we should be linking with a yet-to-be-installed one
17759     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17760     test "$hardcode_minus_L_F77" != no; then
17761    # Linking always hardcodes the temporary library directory.
17762    hardcode_action_F77=relink
17763  else
17764    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17765    hardcode_action_F77=immediate
17766  fi
17767else
17768  # We cannot hardcode anything, or else we can only hardcode existing
17769  # directories.
17770  hardcode_action_F77=unsupported
17771fi
17772{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17773echo "${ECHO_T}$hardcode_action_F77" >&6; }
17774
17775if test "$hardcode_action_F77" = relink; then
17776  # Fast installation is not supported
17777  enable_fast_install=no
17778elif test "$shlibpath_overrides_runpath" = yes ||
17779     test "$enable_shared" = no; then
17780  # Fast installation is not necessary
17781  enable_fast_install=needless
17782fi
17783
17784
17785# The else clause should only fire when bootstrapping the
17786# libtool distribution, otherwise you forgot to ship ltmain.sh
17787# with your package, and you will get complaints that there are
17788# no rules to generate ltmain.sh.
17789if test -f "$ltmain"; then
17790  # See if we are running on zsh, and set the options which allow our commands through
17791  # without removal of \ escapes.
17792  if test -n "${ZSH_VERSION+set}" ; then
17793    setopt NO_GLOB_SUBST
17794  fi
17795  # Now quote all the things that may contain metacharacters while being
17796  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17797  # variables and quote the copies for generation of the libtool script.
17798  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17799    SED SHELL STRIP \
17800    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17801    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17802    deplibs_check_method reload_flag reload_cmds need_locks \
17803    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17804    lt_cv_sys_global_symbol_to_c_name_address \
17805    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17806    old_postinstall_cmds old_postuninstall_cmds \
17807    compiler_F77 \
17808    CC_F77 \
17809    LD_F77 \
17810    lt_prog_compiler_wl_F77 \
17811    lt_prog_compiler_pic_F77 \
17812    lt_prog_compiler_static_F77 \
17813    lt_prog_compiler_no_builtin_flag_F77 \
17814    export_dynamic_flag_spec_F77 \
17815    thread_safe_flag_spec_F77 \
17816    whole_archive_flag_spec_F77 \
17817    enable_shared_with_static_runtimes_F77 \
17818    old_archive_cmds_F77 \
17819    old_archive_from_new_cmds_F77 \
17820    predep_objects_F77 \
17821    postdep_objects_F77 \
17822    predeps_F77 \
17823    postdeps_F77 \
17824    compiler_lib_search_path_F77 \
17825    archive_cmds_F77 \
17826    archive_expsym_cmds_F77 \
17827    postinstall_cmds_F77 \
17828    postuninstall_cmds_F77 \
17829    old_archive_from_expsyms_cmds_F77 \
17830    allow_undefined_flag_F77 \
17831    no_undefined_flag_F77 \
17832    export_symbols_cmds_F77 \
17833    hardcode_libdir_flag_spec_F77 \
17834    hardcode_libdir_flag_spec_ld_F77 \
17835    hardcode_libdir_separator_F77 \
17836    hardcode_automatic_F77 \
17837    module_cmds_F77 \
17838    module_expsym_cmds_F77 \
17839    lt_cv_prog_compiler_c_o_F77 \
17840    exclude_expsyms_F77 \
17841    include_expsyms_F77; do
17842
17843    case $var in
17844    old_archive_cmds_F77 | \
17845    old_archive_from_new_cmds_F77 | \
17846    archive_cmds_F77 | \
17847    archive_expsym_cmds_F77 | \
17848    module_cmds_F77 | \
17849    module_expsym_cmds_F77 | \
17850    old_archive_from_expsyms_cmds_F77 | \
17851    export_symbols_cmds_F77 | \
17852    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17853    postinstall_cmds | postuninstall_cmds | \
17854    old_postinstall_cmds | old_postuninstall_cmds | \
17855    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17856      # Double-quote double-evaled strings.
17857      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17858      ;;
17859    *)
17860      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17861      ;;
17862    esac
17863  done
17864
17865  case $lt_echo in
17866  *'\$0 --fallback-echo"')
17867    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17868    ;;
17869  esac
17870
17871cfgfile="$ofile"
17872
17873  cat <<__EOF__ >> "$cfgfile"
17874# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17875
17876# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17877
17878# Shell to use when invoking shell scripts.
17879SHELL=$lt_SHELL
17880
17881# Whether or not to build shared libraries.
17882build_libtool_libs=$enable_shared
17883
17884# Whether or not to build static libraries.
17885build_old_libs=$enable_static
17886
17887# Whether or not to add -lc for building shared libraries.
17888build_libtool_need_lc=$archive_cmds_need_lc_F77
17889
17890# Whether or not to disallow shared libs when runtime libs are static
17891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17892
17893# Whether or not to optimize for fast installation.
17894fast_install=$enable_fast_install
17895
17896# The host system.
17897host_alias=$host_alias
17898host=$host
17899host_os=$host_os
17900
17901# The build system.
17902build_alias=$build_alias
17903build=$build
17904build_os=$build_os
17905
17906# An echo program that does not interpret backslashes.
17907echo=$lt_echo
17908
17909# The archiver.
17910AR=$lt_AR
17911AR_FLAGS=$lt_AR_FLAGS
17912
17913# A C compiler.
17914LTCC=$lt_LTCC
17915
17916# LTCC compiler flags.
17917LTCFLAGS=$lt_LTCFLAGS
17918
17919# A language-specific compiler.
17920CC=$lt_compiler_F77
17921
17922# Is the compiler the GNU C compiler?
17923with_gcc=$GCC_F77
17924
17925# An ERE matcher.
17926EGREP=$lt_EGREP
17927
17928# The linker used to build libraries.
17929LD=$lt_LD_F77
17930
17931# Whether we need hard or soft links.
17932LN_S=$lt_LN_S
17933
17934# A BSD-compatible nm program.
17935NM=$lt_NM
17936
17937# A symbol stripping program
17938STRIP=$lt_STRIP
17939
17940# Used to examine libraries when file_magic_cmd begins "file"
17941MAGIC_CMD=$MAGIC_CMD
17942
17943# Used on cygwin: DLL creation program.
17944DLLTOOL="$DLLTOOL"
17945
17946# Used on cygwin: object dumper.
17947OBJDUMP="$OBJDUMP"
17948
17949# Used on cygwin: assembler.
17950AS="$AS"
17951
17952# The name of the directory that contains temporary libtool files.
17953objdir=$objdir
17954
17955# How to create reloadable object files.
17956reload_flag=$lt_reload_flag
17957reload_cmds=$lt_reload_cmds
17958
17959# How to pass a linker flag through the compiler.
17960wl=$lt_lt_prog_compiler_wl_F77
17961
17962# Object file suffix (normally "o").
17963objext="$ac_objext"
17964
17965# Old archive suffix (normally "a").
17966libext="$libext"
17967
17968# Shared library suffix (normally ".so").
17969shrext_cmds='$shrext_cmds'
17970
17971# Executable file suffix (normally "").
17972exeext="$exeext"
17973
17974# Additional compiler flags for building library objects.
17975pic_flag=$lt_lt_prog_compiler_pic_F77
17976pic_mode=$pic_mode
17977
17978# What is the maximum length of a command?
17979max_cmd_len=$lt_cv_sys_max_cmd_len
17980
17981# Does compiler simultaneously support -c and -o options?
17982compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17983
17984# Must we lock files when doing compilation?
17985need_locks=$lt_need_locks
17986
17987# Do we need the lib prefix for modules?
17988need_lib_prefix=$need_lib_prefix
17989
17990# Do we need a version for libraries?
17991need_version=$need_version
17992
17993# Whether dlopen is supported.
17994dlopen_support=$enable_dlopen
17995
17996# Whether dlopen of programs is supported.
17997dlopen_self=$enable_dlopen_self
17998
17999# Whether dlopen of statically linked programs is supported.
18000dlopen_self_static=$enable_dlopen_self_static
18001
18002# Compiler flag to prevent dynamic linking.
18003link_static_flag=$lt_lt_prog_compiler_static_F77
18004
18005# Compiler flag to turn off builtin functions.
18006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18007
18008# Compiler flag to allow reflexive dlopens.
18009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18010
18011# Compiler flag to generate shared objects directly from archives.
18012whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18013
18014# Compiler flag to generate thread-safe objects.
18015thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18016
18017# Library versioning type.
18018version_type=$version_type
18019
18020# Format of library name prefix.
18021libname_spec=$lt_libname_spec
18022
18023# List of archive names.  First name is the real one, the rest are links.
18024# The last name is the one that the linker finds with -lNAME.
18025library_names_spec=$lt_library_names_spec
18026
18027# The coded name of the library, if different from the real name.
18028soname_spec=$lt_soname_spec
18029
18030# Commands used to build and install an old-style archive.
18031RANLIB=$lt_RANLIB
18032old_archive_cmds=$lt_old_archive_cmds_F77
18033old_postinstall_cmds=$lt_old_postinstall_cmds
18034old_postuninstall_cmds=$lt_old_postuninstall_cmds
18035
18036# Create an old-style archive from a shared archive.
18037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18038
18039# Create a temporary old-style archive to link instead of a shared archive.
18040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18041
18042# Commands used to build and install a shared archive.
18043archive_cmds=$lt_archive_cmds_F77
18044archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18045postinstall_cmds=$lt_postinstall_cmds
18046postuninstall_cmds=$lt_postuninstall_cmds
18047
18048# Commands used to build a loadable module (assumed same as above if empty)
18049module_cmds=$lt_module_cmds_F77
18050module_expsym_cmds=$lt_module_expsym_cmds_F77
18051
18052# Commands to strip libraries.
18053old_striplib=$lt_old_striplib
18054striplib=$lt_striplib
18055
18056# Dependencies to place before the objects being linked to create a
18057# shared library.
18058predep_objects=$lt_predep_objects_F77
18059
18060# Dependencies to place after the objects being linked to create a
18061# shared library.
18062postdep_objects=$lt_postdep_objects_F77
18063
18064# Dependencies to place before the objects being linked to create a
18065# shared library.
18066predeps=$lt_predeps_F77
18067
18068# Dependencies to place after the objects being linked to create a
18069# shared library.
18070postdeps=$lt_postdeps_F77
18071
18072# The library search path used internally by the compiler when linking
18073# a shared library.
18074compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18075
18076# Method to check whether dependent libraries are shared objects.
18077deplibs_check_method=$lt_deplibs_check_method
18078
18079# Command to use when deplibs_check_method == file_magic.
18080file_magic_cmd=$lt_file_magic_cmd
18081
18082# Flag that allows shared libraries with undefined symbols to be built.
18083allow_undefined_flag=$lt_allow_undefined_flag_F77
18084
18085# Flag that forces no undefined symbols.
18086no_undefined_flag=$lt_no_undefined_flag_F77
18087
18088# Commands used to finish a libtool library installation in a directory.
18089finish_cmds=$lt_finish_cmds
18090
18091# Same as above, but a single script fragment to be evaled but not shown.
18092finish_eval=$lt_finish_eval
18093
18094# Take the output of nm and produce a listing of raw symbols and C names.
18095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18096
18097# Transform the output of nm in a proper C declaration
18098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18099
18100# Transform the output of nm in a C name address pair
18101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18102
18103# This is the shared library runtime path variable.
18104runpath_var=$runpath_var
18105
18106# This is the shared library path variable.
18107shlibpath_var=$shlibpath_var
18108
18109# Is shlibpath searched before the hard-coded library search path?
18110shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18111
18112# How to hardcode a shared library path into an executable.
18113hardcode_action=$hardcode_action_F77
18114
18115# Whether we should hardcode library paths into libraries.
18116hardcode_into_libs=$hardcode_into_libs
18117
18118# Flag to hardcode \$libdir into a binary during linking.
18119# This must work even if \$libdir does not exist.
18120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18121
18122# If ld is used when linking, flag to hardcode \$libdir into
18123# a binary during linking. This must work even if \$libdir does
18124# not exist.
18125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18126
18127# Whether we need a single -rpath flag with a separated argument.
18128hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18129
18130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18131# resulting binary.
18132hardcode_direct=$hardcode_direct_F77
18133
18134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18135# resulting binary.
18136hardcode_minus_L=$hardcode_minus_L_F77
18137
18138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18139# the resulting binary.
18140hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18141
18142# Set to yes if building a shared library automatically hardcodes DIR into the library
18143# and all subsequent libraries and executables linked against it.
18144hardcode_automatic=$hardcode_automatic_F77
18145
18146# Variables whose values should be saved in libtool wrapper scripts and
18147# restored at relink time.
18148variables_saved_for_relink="$variables_saved_for_relink"
18149
18150# Whether libtool must link a program against all its dependency libraries.
18151link_all_deplibs=$link_all_deplibs_F77
18152
18153# Compile-time system search path for libraries
18154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18155
18156# Run-time system search path for libraries
18157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18158
18159# Fix the shell variable \$srcfile for the compiler.
18160fix_srcfile_path="$fix_srcfile_path_F77"
18161
18162# Set to yes if exported symbols are required.
18163always_export_symbols=$always_export_symbols_F77
18164
18165# The commands to list exported symbols.
18166export_symbols_cmds=$lt_export_symbols_cmds_F77
18167
18168# The commands to extract the exported symbol list from a shared archive.
18169extract_expsyms_cmds=$lt_extract_expsyms_cmds
18170
18171# Symbols that should not be listed in the preloaded symbols.
18172exclude_expsyms=$lt_exclude_expsyms_F77
18173
18174# Symbols that must always be exported.
18175include_expsyms=$lt_include_expsyms_F77
18176
18177# ### END LIBTOOL TAG CONFIG: $tagname
18178
18179__EOF__
18180
18181
18182else
18183  # If there is no Makefile yet, we rely on a make rule to execute
18184  # `config.status --recheck' to rerun these tests and create the
18185  # libtool script then.
18186  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18187  if test -f "$ltmain_in"; then
18188    test -f Makefile && make "$ltmain"
18189  fi
18190fi
18191
18192
18193ac_ext=c
18194ac_cpp='$CPP $CPPFLAGS'
18195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18197ac_compiler_gnu=$ac_cv_c_compiler_gnu
18198
18199CC="$lt_save_CC"
18200
18201	else
18202	  tagname=""
18203	fi
18204	;;
18205
18206      GCJ)
18207	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18208
18209
18210# Source file extension for Java test sources.
18211ac_ext=java
18212
18213# Object file extension for compiled Java test sources.
18214objext=o
18215objext_GCJ=$objext
18216
18217# Code to be used in simple compile tests
18218lt_simple_compile_test_code="class foo {}\n"
18219
18220# Code to be used in simple link tests
18221lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18222
18223# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18224
18225# If no C compiler was specified, use CC.
18226LTCC=${LTCC-"$CC"}
18227
18228# If no C compiler flags were specified, use CFLAGS.
18229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18230
18231# Allow CC to be a program name with arguments.
18232compiler=$CC
18233
18234
18235# save warnings/boilerplate of simple test code
18236ac_outfile=conftest.$ac_objext
18237printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18239_lt_compiler_boilerplate=`cat conftest.err`
18240$rm conftest*
18241
18242ac_outfile=conftest.$ac_objext
18243printf "$lt_simple_link_test_code" >conftest.$ac_ext
18244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18245_lt_linker_boilerplate=`cat conftest.err`
18246$rm conftest*
18247
18248
18249# Allow CC to be a program name with arguments.
18250lt_save_CC="$CC"
18251CC=${GCJ-"gcj"}
18252compiler=$CC
18253compiler_GCJ=$CC
18254for cc_temp in $compiler""; do
18255  case $cc_temp in
18256    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18257    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18258    \-*) ;;
18259    *) break;;
18260  esac
18261done
18262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18263
18264
18265# GCJ did not exist at the time GCC didn't implicitly link libc in.
18266archive_cmds_need_lc_GCJ=no
18267
18268old_archive_cmds_GCJ=$old_archive_cmds
18269
18270## CAVEAT EMPTOR:
18271## There is no encapsulation within the following macros, do not change
18272## the running order or otherwise move them around unless you know exactly
18273## what you are doing...
18274
18275lt_prog_compiler_no_builtin_flag_GCJ=
18276
18277if test "$GCC" = yes; then
18278  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18279
18280
18281{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18282echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18283if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18284  echo $ECHO_N "(cached) $ECHO_C" >&6
18285else
18286  lt_cv_prog_compiler_rtti_exceptions=no
18287  ac_outfile=conftest.$ac_objext
18288   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18289   lt_compiler_flag="-fno-rtti -fno-exceptions"
18290   # Insert the option either (1) after the last *FLAGS variable, or
18291   # (2) before a word containing "conftest.", or (3) at the end.
18292   # Note that $ac_compile itself does not contain backslashes and begins
18293   # with a dollar sign (not a hyphen), so the echo should work correctly.
18294   # The option is referenced via a variable to avoid confusing sed.
18295   lt_compile=`echo "$ac_compile" | $SED \
18296   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18298   -e 's:$: $lt_compiler_flag:'`
18299   (eval echo "\"\$as_me:18297: $lt_compile\"" >&5)
18300   (eval "$lt_compile" 2>conftest.err)
18301   ac_status=$?
18302   cat conftest.err >&5
18303   echo "$as_me:18301: \$? = $ac_status" >&5
18304   if (exit $ac_status) && test -s "$ac_outfile"; then
18305     # The compiler can only warn and ignore the option if not recognized
18306     # So say no if there are warnings other than the usual output.
18307     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18308     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18309     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18310       lt_cv_prog_compiler_rtti_exceptions=yes
18311     fi
18312   fi
18313   $rm conftest*
18314
18315fi
18316{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18317echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18318
18319if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18320    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18321else
18322    :
18323fi
18324
18325fi
18326
18327lt_prog_compiler_wl_GCJ=
18328lt_prog_compiler_pic_GCJ=
18329lt_prog_compiler_static_GCJ=
18330
18331{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18332echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18333
18334  if test "$GCC" = yes; then
18335    lt_prog_compiler_wl_GCJ='-Wl,'
18336    lt_prog_compiler_static_GCJ='-static'
18337
18338    case $host_os in
18339      aix*)
18340      # All AIX code is PIC.
18341      if test "$host_cpu" = ia64; then
18342	# AIX 5 now supports IA64 processor
18343	lt_prog_compiler_static_GCJ='-Bstatic'
18344      fi
18345      ;;
18346
18347    amigaos*)
18348      # FIXME: we need at least 68020 code to build shared libraries, but
18349      # adding the `-m68020' flag to GCC prevents building anything better,
18350      # like `-m68040'.
18351      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18352      ;;
18353
18354    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18355      # PIC is the default for these OSes.
18356      ;;
18357
18358    mingw* | cygwin* | pw32* | os2*)
18359      # This hack is so that the source file can tell whether it is being
18360      # built for inclusion in a dll (and should export symbols for example).
18361      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18362      # (--disable-auto-import) libraries
18363      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18364      ;;
18365
18366    darwin* | rhapsody*)
18367      # PIC is the default on this platform
18368      # Common symbols not allowed in MH_DYLIB files
18369      lt_prog_compiler_pic_GCJ='-fno-common'
18370      ;;
18371
18372    interix3*)
18373      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18374      # Instead, we relocate shared libraries at runtime.
18375      ;;
18376
18377    msdosdjgpp*)
18378      # Just because we use GCC doesn't mean we suddenly get shared libraries
18379      # on systems that don't support them.
18380      lt_prog_compiler_can_build_shared_GCJ=no
18381      enable_shared=no
18382      ;;
18383
18384    sysv4*MP*)
18385      if test -d /usr/nec; then
18386	lt_prog_compiler_pic_GCJ=-Kconform_pic
18387      fi
18388      ;;
18389
18390    hpux*)
18391      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18392      # not for PA HP-UX.
18393      case $host_cpu in
18394      hppa*64*|ia64*)
18395	# +Z the default
18396	;;
18397      *)
18398	lt_prog_compiler_pic_GCJ='-fPIC'
18399	;;
18400      esac
18401      ;;
18402
18403    *)
18404      lt_prog_compiler_pic_GCJ='-fPIC'
18405      ;;
18406    esac
18407  else
18408    # PORTME Check for flag to pass linker flags through the system compiler.
18409    case $host_os in
18410    aix*)
18411      lt_prog_compiler_wl_GCJ='-Wl,'
18412      if test "$host_cpu" = ia64; then
18413	# AIX 5 now supports IA64 processor
18414	lt_prog_compiler_static_GCJ='-Bstatic'
18415      else
18416	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18417      fi
18418      ;;
18419      darwin*)
18420        # PIC is the default on this platform
18421        # Common symbols not allowed in MH_DYLIB files
18422       case $cc_basename in
18423         xlc*)
18424         lt_prog_compiler_pic_GCJ='-qnocommon'
18425         lt_prog_compiler_wl_GCJ='-Wl,'
18426         ;;
18427       esac
18428       ;;
18429
18430    mingw* | cygwin* | pw32* | os2*)
18431      # This hack is so that the source file can tell whether it is being
18432      # built for inclusion in a dll (and should export symbols for example).
18433      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18434      # (--disable-auto-import) libraries
18435      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18436      ;;
18437
18438    hpux9* | hpux10* | hpux11*)
18439      lt_prog_compiler_wl_GCJ='-Wl,'
18440      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18441      # not for PA HP-UX.
18442      case $host_cpu in
18443      hppa*64*|ia64*)
18444	# +Z the default
18445	;;
18446      *)
18447	lt_prog_compiler_pic_GCJ='+Z'
18448	;;
18449      esac
18450      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18451      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18452      ;;
18453
18454    irix5* | irix6* | nonstopux*)
18455      lt_prog_compiler_wl_GCJ='-Wl,'
18456      # PIC (with -KPIC) is the default.
18457      lt_prog_compiler_static_GCJ='-non_shared'
18458      ;;
18459
18460    newsos6)
18461      lt_prog_compiler_pic_GCJ='-KPIC'
18462      lt_prog_compiler_static_GCJ='-Bstatic'
18463      ;;
18464
18465    linux*)
18466      case $cc_basename in
18467      icc* | ecc*)
18468	lt_prog_compiler_wl_GCJ='-Wl,'
18469	lt_prog_compiler_pic_GCJ='-KPIC'
18470	lt_prog_compiler_static_GCJ='-static'
18471        ;;
18472      pgcc* | pgf77* | pgf90* | pgf95*)
18473        # Portland Group compilers (*not* the Pentium gcc compiler,
18474	# which looks to be a dead project)
18475	lt_prog_compiler_wl_GCJ='-Wl,'
18476	lt_prog_compiler_pic_GCJ='-fpic'
18477	lt_prog_compiler_static_GCJ='-Bstatic'
18478        ;;
18479      ccc*)
18480        lt_prog_compiler_wl_GCJ='-Wl,'
18481        # All Alpha code is PIC.
18482        lt_prog_compiler_static_GCJ='-non_shared'
18483        ;;
18484      como)
18485        lt_prog_compiler_wl_GCJ='-lopt='
18486        ;;
18487      *)
18488        case `$CC -V 2>&1 | sed 5q` in
18489	*Sun\ C*)
18490	  # Sun C 5.9
18491	  lt_prog_compiler_pic_GCJ='-KPIC'
18492	  lt_prog_compiler_static_GCJ='-Bstatic'
18493	  lt_prog_compiler_wl_GCJ='-Wl,'
18494	  ;;
18495	*Sun\ F*)
18496	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18497	  lt_prog_compiler_pic_GCJ='-KPIC'
18498	  lt_prog_compiler_static_GCJ='-Bstatic'
18499	  lt_prog_compiler_wl_GCJ=''
18500	  ;;
18501	esac
18502	;;
18503      esac
18504      ;;
18505
18506    osf3* | osf4* | osf5*)
18507      lt_prog_compiler_wl_GCJ='-Wl,'
18508      # All OSF/1 code is PIC.
18509      lt_prog_compiler_static_GCJ='-non_shared'
18510      ;;
18511
18512    solaris*)
18513      lt_prog_compiler_pic_GCJ='-KPIC'
18514      lt_prog_compiler_static_GCJ='-Bstatic'
18515      case $cc_basename in
18516      f77* | f90* | f95*)
18517	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18518      *)
18519	lt_prog_compiler_wl_GCJ='-Wl,';;
18520      esac
18521      ;;
18522
18523    sunos4*)
18524      lt_prog_compiler_wl_GCJ='-Qoption ld '
18525      lt_prog_compiler_pic_GCJ='-PIC'
18526      lt_prog_compiler_static_GCJ='-Bstatic'
18527      ;;
18528
18529    sysv4 | sysv4.2uw2* | sysv4.3*)
18530      lt_prog_compiler_wl_GCJ='-Wl,'
18531      lt_prog_compiler_pic_GCJ='-KPIC'
18532      lt_prog_compiler_static_GCJ='-Bstatic'
18533      ;;
18534
18535    sysv4*MP*)
18536      if test -d /usr/nec ;then
18537	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18538	lt_prog_compiler_static_GCJ='-Bstatic'
18539      fi
18540      ;;
18541
18542    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18543      lt_prog_compiler_wl_GCJ='-Wl,'
18544      lt_prog_compiler_pic_GCJ='-KPIC'
18545      lt_prog_compiler_static_GCJ='-Bstatic'
18546      ;;
18547
18548    unicos*)
18549      lt_prog_compiler_wl_GCJ='-Wl,'
18550      lt_prog_compiler_can_build_shared_GCJ=no
18551      ;;
18552
18553    uts4*)
18554      lt_prog_compiler_pic_GCJ='-pic'
18555      lt_prog_compiler_static_GCJ='-Bstatic'
18556      ;;
18557
18558    *)
18559      lt_prog_compiler_can_build_shared_GCJ=no
18560      ;;
18561    esac
18562  fi
18563
18564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18565echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18566
18567#
18568# Check to make sure the PIC flag actually works.
18569#
18570if test -n "$lt_prog_compiler_pic_GCJ"; then
18571
18572{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18573echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18574if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18575  echo $ECHO_N "(cached) $ECHO_C" >&6
18576else
18577  lt_prog_compiler_pic_works_GCJ=no
18578  ac_outfile=conftest.$ac_objext
18579   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18580   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18581   # Insert the option either (1) after the last *FLAGS variable, or
18582   # (2) before a word containing "conftest.", or (3) at the end.
18583   # Note that $ac_compile itself does not contain backslashes and begins
18584   # with a dollar sign (not a hyphen), so the echo should work correctly.
18585   # The option is referenced via a variable to avoid confusing sed.
18586   lt_compile=`echo "$ac_compile" | $SED \
18587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18589   -e 's:$: $lt_compiler_flag:'`
18590   (eval echo "\"\$as_me:18588: $lt_compile\"" >&5)
18591   (eval "$lt_compile" 2>conftest.err)
18592   ac_status=$?
18593   cat conftest.err >&5
18594   echo "$as_me:18592: \$? = $ac_status" >&5
18595   if (exit $ac_status) && test -s "$ac_outfile"; then
18596     # The compiler can only warn and ignore the option if not recognized
18597     # So say no if there are warnings other than the usual output.
18598     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18599     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18600     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18601       lt_prog_compiler_pic_works_GCJ=yes
18602     fi
18603   fi
18604   $rm conftest*
18605
18606fi
18607{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18608echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18609
18610if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18611    case $lt_prog_compiler_pic_GCJ in
18612     "" | " "*) ;;
18613     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18614     esac
18615else
18616    lt_prog_compiler_pic_GCJ=
18617     lt_prog_compiler_can_build_shared_GCJ=no
18618fi
18619
18620fi
18621case $host_os in
18622  # For platforms which do not support PIC, -DPIC is meaningless:
18623  *djgpp*)
18624    lt_prog_compiler_pic_GCJ=
18625    ;;
18626  *)
18627    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18628    ;;
18629esac
18630
18631#
18632# Check to make sure the static flag actually works.
18633#
18634wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18635{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18636echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18637if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18638  echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640  lt_prog_compiler_static_works_GCJ=no
18641   save_LDFLAGS="$LDFLAGS"
18642   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18643   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18644   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18645     # The linker can only warn and ignore the option if not recognized
18646     # So say no if there are warnings
18647     if test -s conftest.err; then
18648       # Append any errors to the config.log.
18649       cat conftest.err 1>&5
18650       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18651       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18652       if diff conftest.exp conftest.er2 >/dev/null; then
18653         lt_prog_compiler_static_works_GCJ=yes
18654       fi
18655     else
18656       lt_prog_compiler_static_works_GCJ=yes
18657     fi
18658   fi
18659   $rm conftest*
18660   LDFLAGS="$save_LDFLAGS"
18661
18662fi
18663{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18664echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18665
18666if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18667    :
18668else
18669    lt_prog_compiler_static_GCJ=
18670fi
18671
18672
18673{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18674echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18675if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18676  echo $ECHO_N "(cached) $ECHO_C" >&6
18677else
18678  lt_cv_prog_compiler_c_o_GCJ=no
18679   $rm -r conftest 2>/dev/null
18680   mkdir conftest
18681   cd conftest
18682   mkdir out
18683   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18684
18685   lt_compiler_flag="-o out/conftest2.$ac_objext"
18686   # Insert the option either (1) after the last *FLAGS variable, or
18687   # (2) before a word containing "conftest.", or (3) at the end.
18688   # Note that $ac_compile itself does not contain backslashes and begins
18689   # with a dollar sign (not a hyphen), so the echo should work correctly.
18690   lt_compile=`echo "$ac_compile" | $SED \
18691   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18693   -e 's:$: $lt_compiler_flag:'`
18694   (eval echo "\"\$as_me:18692: $lt_compile\"" >&5)
18695   (eval "$lt_compile" 2>out/conftest.err)
18696   ac_status=$?
18697   cat out/conftest.err >&5
18698   echo "$as_me:18696: \$? = $ac_status" >&5
18699   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18700   then
18701     # The compiler can only warn and ignore the option if not recognized
18702     # So say no if there are warnings
18703     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18704     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18705     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18706       lt_cv_prog_compiler_c_o_GCJ=yes
18707     fi
18708   fi
18709   chmod u+w . 2>&5
18710   $rm conftest*
18711   # SGI C++ compiler will create directory out/ii_files/ for
18712   # template instantiation
18713   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18714   $rm out/* && rmdir out
18715   cd ..
18716   rmdir conftest
18717   $rm conftest*
18718
18719fi
18720{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18721echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18722
18723
18724hard_links="nottested"
18725if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18726  # do not overwrite the value of need_locks provided by the user
18727  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18728echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18729  hard_links=yes
18730  $rm conftest*
18731  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18732  touch conftest.a
18733  ln conftest.a conftest.b 2>&5 || hard_links=no
18734  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18735  { echo "$as_me:$LINENO: result: $hard_links" >&5
18736echo "${ECHO_T}$hard_links" >&6; }
18737  if test "$hard_links" = no; then
18738    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18739echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18740    need_locks=warn
18741  fi
18742else
18743  need_locks=no
18744fi
18745
18746{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18747echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18748
18749  runpath_var=
18750  allow_undefined_flag_GCJ=
18751  enable_shared_with_static_runtimes_GCJ=no
18752  archive_cmds_GCJ=
18753  archive_expsym_cmds_GCJ=
18754  old_archive_From_new_cmds_GCJ=
18755  old_archive_from_expsyms_cmds_GCJ=
18756  export_dynamic_flag_spec_GCJ=
18757  whole_archive_flag_spec_GCJ=
18758  thread_safe_flag_spec_GCJ=
18759  hardcode_libdir_flag_spec_GCJ=
18760  hardcode_libdir_flag_spec_ld_GCJ=
18761  hardcode_libdir_separator_GCJ=
18762  hardcode_direct_GCJ=no
18763  hardcode_minus_L_GCJ=no
18764  hardcode_shlibpath_var_GCJ=unsupported
18765  link_all_deplibs_GCJ=unknown
18766  hardcode_automatic_GCJ=no
18767  module_cmds_GCJ=
18768  module_expsym_cmds_GCJ=
18769  always_export_symbols_GCJ=no
18770  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18771  # include_expsyms should be a list of space-separated symbols to be *always*
18772  # included in the symbol list
18773  include_expsyms_GCJ=
18774  # exclude_expsyms can be an extended regexp of symbols to exclude
18775  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18776  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18777  # as well as any symbol that contains `d'.
18778  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18779  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18780  # platforms (ab)use it in PIC code, but their linkers get confused if
18781  # the symbol is explicitly referenced.  Since portable code cannot
18782  # rely on this symbol name, it's probably fine to never include it in
18783  # preloaded symbol tables.
18784  extract_expsyms_cmds=
18785  # Just being paranoid about ensuring that cc_basename is set.
18786  for cc_temp in $compiler""; do
18787  case $cc_temp in
18788    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18789    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18790    \-*) ;;
18791    *) break;;
18792  esac
18793done
18794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18795
18796  case $host_os in
18797  cygwin* | mingw* | pw32*)
18798    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18799    # When not using gcc, we currently assume that we are using
18800    # Microsoft Visual C++.
18801    if test "$GCC" != yes; then
18802      with_gnu_ld=no
18803    fi
18804    ;;
18805  interix*)
18806    # we just hope/assume this is gcc and not c89 (= MSVC++)
18807    with_gnu_ld=yes
18808    ;;
18809  openbsd*)
18810    with_gnu_ld=no
18811    ;;
18812  esac
18813
18814  ld_shlibs_GCJ=yes
18815  if test "$with_gnu_ld" = yes; then
18816    # If archive_cmds runs LD, not CC, wlarc should be empty
18817    wlarc='${wl}'
18818
18819    # Set some defaults for GNU ld with shared library support. These
18820    # are reset later if shared libraries are not supported. Putting them
18821    # here allows them to be overridden if necessary.
18822    runpath_var=LD_RUN_PATH
18823    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18824    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18825    # ancient GNU ld didn't support --whole-archive et. al.
18826    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18827	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18828      else
18829  	whole_archive_flag_spec_GCJ=
18830    fi
18831    supports_anon_versioning=no
18832    case `$LD -v 2>/dev/null` in
18833      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18834      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18835      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18836      *\ 2.11.*) ;; # other 2.11 versions
18837      *) supports_anon_versioning=yes ;;
18838    esac
18839
18840    # See if GNU ld supports shared libraries.
18841    case $host_os in
18842    aix3* | aix4* | aix5*)
18843      # On AIX/PPC, the GNU linker is very broken
18844      if test "$host_cpu" != ia64; then
18845	ld_shlibs_GCJ=no
18846	cat <<EOF 1>&2
18847
18848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18849*** to be unable to reliably create shared libraries on AIX.
18850*** Therefore, libtool is disabling shared libraries support.  If you
18851*** really care for shared libraries, you may want to modify your PATH
18852*** so that a non-GNU linker is found, and then restart.
18853
18854EOF
18855      fi
18856      ;;
18857
18858    amigaos*)
18859      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)'
18860      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18861      hardcode_minus_L_GCJ=yes
18862
18863      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18864      # that the semantics of dynamic libraries on AmigaOS, at least up
18865      # to version 4, is to share data among multiple programs linked
18866      # with the same dynamic library.  Since this doesn't match the
18867      # behavior of shared libraries on other platforms, we can't use
18868      # them.
18869      ld_shlibs_GCJ=no
18870      ;;
18871
18872    beos*)
18873      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18874	allow_undefined_flag_GCJ=unsupported
18875	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18876	# support --undefined.  This deserves some investigation.  FIXME
18877	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18878      else
18879	ld_shlibs_GCJ=no
18880      fi
18881      ;;
18882
18883    cygwin* | mingw* | pw32*)
18884      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18885      # as there is no search path for DLLs.
18886      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18887      allow_undefined_flag_GCJ=unsupported
18888      always_export_symbols_GCJ=no
18889      enable_shared_with_static_runtimes_GCJ=yes
18890      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18891
18892      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18893        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18894	# If the export-symbols file already is a .def file (1st line
18895	# is EXPORTS), use it as is; otherwise, prepend...
18896	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18897	  cp $export_symbols $output_objdir/$soname.def;
18898	else
18899	  echo EXPORTS > $output_objdir/$soname.def;
18900	  cat $export_symbols >> $output_objdir/$soname.def;
18901	fi~
18902	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18903      else
18904	ld_shlibs_GCJ=no
18905      fi
18906      ;;
18907
18908    interix3*)
18909      hardcode_direct_GCJ=no
18910      hardcode_shlibpath_var_GCJ=no
18911      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18912      export_dynamic_flag_spec_GCJ='${wl}-E'
18913      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18914      # Instead, shared libraries are loaded at an image base (0x10000000 by
18915      # default) and relocated if they conflict, which is a slow very memory
18916      # consuming and fragmenting process.  To avoid this, we pick a random,
18917      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18918      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18919      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'
18920      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'
18921      ;;
18922
18923    linux*)
18924      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18925	tmp_addflag=
18926	case $cc_basename,$host_cpu in
18927	pgcc*)				# Portland Group C compiler
18928	  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'
18929	  tmp_addflag=' $pic_flag'
18930	  ;;
18931	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18932	  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'
18933	  tmp_addflag=' $pic_flag -Mnomain' ;;
18934	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18935	  tmp_addflag=' -i_dynamic' ;;
18936	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18937	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18938	ifc* | ifort*)			# Intel Fortran compiler
18939	  tmp_addflag=' -nofor_main' ;;
18940	esac
18941	case `$CC -V 2>&1 | sed 5q` in
18942	*Sun\ C*)			# Sun C 5.9
18943	  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'
18944	  tmp_sharedflag='-G' ;;
18945	*Sun\ F*)			# Sun Fortran 8.3
18946	  tmp_sharedflag='-G' ;;
18947	*)
18948	  tmp_sharedflag='-shared' ;;
18949	esac
18950	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18951
18952	if test $supports_anon_versioning = yes; then
18953	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18954  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18955  $echo "local: *; };" >> $output_objdir/$libname.ver~
18956	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18957	fi
18958      else
18959	ld_shlibs_GCJ=no
18960      fi
18961      ;;
18962
18963    netbsd*)
18964      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18965	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18966	wlarc=
18967      else
18968	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18969	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18970      fi
18971      ;;
18972
18973    solaris*)
18974      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18975	ld_shlibs_GCJ=no
18976	cat <<EOF 1>&2
18977
18978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18979*** create shared libraries on Solaris systems.  Therefore, libtool
18980*** is disabling shared libraries support.  We urge you to upgrade GNU
18981*** binutils to release 2.9.1 or newer.  Another option is to modify
18982*** your PATH or compiler configuration so that the native linker is
18983*** used, and then restart.
18984
18985EOF
18986      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18987	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18989      else
18990	ld_shlibs_GCJ=no
18991      fi
18992      ;;
18993
18994    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18995      case `$LD -v 2>&1` in
18996        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18997	ld_shlibs_GCJ=no
18998	cat <<_LT_EOF 1>&2
18999
19000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19001*** reliably create shared libraries on SCO systems.  Therefore, libtool
19002*** is disabling shared libraries support.  We urge you to upgrade GNU
19003*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19004*** your PATH or compiler configuration so that the native linker is
19005*** used, and then restart.
19006
19007_LT_EOF
19008	;;
19009	*)
19010	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19011	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19012	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19013	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19014	  else
19015	    ld_shlibs_GCJ=no
19016	  fi
19017	;;
19018      esac
19019      ;;
19020
19021    sunos4*)
19022      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19023      wlarc=
19024      hardcode_direct_GCJ=yes
19025      hardcode_shlibpath_var_GCJ=no
19026      ;;
19027
19028    *)
19029      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19030	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19031	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19032      else
19033	ld_shlibs_GCJ=no
19034      fi
19035      ;;
19036    esac
19037
19038    if test "$ld_shlibs_GCJ" = no; then
19039      runpath_var=
19040      hardcode_libdir_flag_spec_GCJ=
19041      export_dynamic_flag_spec_GCJ=
19042      whole_archive_flag_spec_GCJ=
19043    fi
19044  else
19045    # PORTME fill in a description of your system's linker (not GNU ld)
19046    case $host_os in
19047    aix3*)
19048      allow_undefined_flag_GCJ=unsupported
19049      always_export_symbols_GCJ=yes
19050      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'
19051      # Note: this linker hardcodes the directories in LIBPATH if there
19052      # are no directories specified by -L.
19053      hardcode_minus_L_GCJ=yes
19054      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19055	# Neither direct hardcoding nor static linking is supported with a
19056	# broken collect2.
19057	hardcode_direct_GCJ=unsupported
19058      fi
19059      ;;
19060
19061    aix4* | aix5*)
19062      if test "$host_cpu" = ia64; then
19063	# On IA64, the linker does run time linking by default, so we don't
19064	# have to do anything special.
19065	aix_use_runtimelinking=no
19066	exp_sym_flag='-Bexport'
19067	no_entry_flag=""
19068      else
19069	# If we're using GNU nm, then we don't want the "-C" option.
19070	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19071	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19072	  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'
19073	else
19074	  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'
19075	fi
19076	aix_use_runtimelinking=no
19077
19078	# Test if we are trying to use run time linking or normal
19079	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19080	# need to do runtime linking.
19081	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19082	  for ld_flag in $LDFLAGS; do
19083  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19084  	    aix_use_runtimelinking=yes
19085  	    break
19086  	  fi
19087	  done
19088	  ;;
19089	esac
19090
19091	exp_sym_flag='-bexport'
19092	no_entry_flag='-bnoentry'
19093      fi
19094
19095      # When large executables or shared objects are built, AIX ld can
19096      # have problems creating the table of contents.  If linking a library
19097      # or program results in "error TOC overflow" add -mminimal-toc to
19098      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19099      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19100
19101      archive_cmds_GCJ=''
19102      hardcode_direct_GCJ=yes
19103      hardcode_libdir_separator_GCJ=':'
19104      link_all_deplibs_GCJ=yes
19105
19106      if test "$GCC" = yes; then
19107	case $host_os in aix4.[012]|aix4.[012].*)
19108	# We only want to do this on AIX 4.2 and lower, the check
19109	# below for broken collect2 doesn't work under 4.3+
19110	  collect2name=`${CC} -print-prog-name=collect2`
19111	  if test -f "$collect2name" && \
19112  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19113	  then
19114  	  # We have reworked collect2
19115  	  hardcode_direct_GCJ=yes
19116	  else
19117  	  # We have old collect2
19118  	  hardcode_direct_GCJ=unsupported
19119  	  # It fails to find uninstalled libraries when the uninstalled
19120  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19121  	  # to unsupported forces relinking
19122  	  hardcode_minus_L_GCJ=yes
19123  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19124  	  hardcode_libdir_separator_GCJ=
19125	  fi
19126	  ;;
19127	esac
19128	shared_flag='-shared'
19129	if test "$aix_use_runtimelinking" = yes; then
19130	  shared_flag="$shared_flag "'${wl}-G'
19131	fi
19132      else
19133	# not using gcc
19134	if test "$host_cpu" = ia64; then
19135  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19136  	# chokes on -Wl,-G. The following line is correct:
19137	  shared_flag='-G'
19138	else
19139	  if test "$aix_use_runtimelinking" = yes; then
19140	    shared_flag='${wl}-G'
19141	  else
19142	    shared_flag='${wl}-bM:SRE'
19143	  fi
19144	fi
19145      fi
19146
19147      # It seems that -bexpall does not export symbols beginning with
19148      # underscore (_), so it is better to generate a list of symbols to export.
19149      always_export_symbols_GCJ=yes
19150      if test "$aix_use_runtimelinking" = yes; then
19151	# Warning - without using the other runtime loading flags (-brtl),
19152	# -berok will link without error, but may produce a broken library.
19153	allow_undefined_flag_GCJ='-berok'
19154       # Determine the default libpath from the value encoded in an empty executable.
19155       cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h.  */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h.  */
19161
19162int
19163main ()
19164{
19165
19166  ;
19167  return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext conftest$ac_exeext
19171if { (ac_try="$ac_link"
19172case "(($ac_try" in
19173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174  *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177  (eval "$ac_link") 2>conftest.er1
19178  ac_status=$?
19179  grep -v '^ *+' conftest.er1 >conftest.err
19180  rm -f conftest.er1
19181  cat conftest.err >&5
19182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183  (exit $ac_status); } &&
19184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185  { (case "(($ac_try" in
19186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187  *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190  (eval "$ac_try") 2>&5
19191  ac_status=$?
19192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193  (exit $ac_status); }; } &&
19194	 { ac_try='test -s conftest$ac_exeext'
19195  { (case "(($ac_try" in
19196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197  *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200  (eval "$ac_try") 2>&5
19201  ac_status=$?
19202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); }; }; then
19204
19205aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19206}'`
19207# Check for a 64-bit object if we didn't find anything.
19208if 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; }
19209}'`; fi
19210else
19211  echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
19214
19215fi
19216
19217rm -f core conftest.err conftest.$ac_objext \
19218      conftest$ac_exeext conftest.$ac_ext
19219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19220
19221       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19222	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"
19223       else
19224	if test "$host_cpu" = ia64; then
19225	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19226	  allow_undefined_flag_GCJ="-z nodefs"
19227	  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"
19228	else
19229	 # Determine the default libpath from the value encoded in an empty executable.
19230	 cat >conftest.$ac_ext <<_ACEOF
19231/* confdefs.h.  */
19232_ACEOF
19233cat confdefs.h >>conftest.$ac_ext
19234cat >>conftest.$ac_ext <<_ACEOF
19235/* end confdefs.h.  */
19236
19237int
19238main ()
19239{
19240
19241  ;
19242  return 0;
19243}
19244_ACEOF
19245rm -f conftest.$ac_objext conftest$ac_exeext
19246if { (ac_try="$ac_link"
19247case "(($ac_try" in
19248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249  *) ac_try_echo=$ac_try;;
19250esac
19251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252  (eval "$ac_link") 2>conftest.er1
19253  ac_status=$?
19254  grep -v '^ *+' conftest.er1 >conftest.err
19255  rm -f conftest.er1
19256  cat conftest.err >&5
19257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258  (exit $ac_status); } &&
19259	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19260  { (case "(($ac_try" in
19261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262  *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265  (eval "$ac_try") 2>&5
19266  ac_status=$?
19267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268  (exit $ac_status); }; } &&
19269	 { ac_try='test -s conftest$ac_exeext'
19270  { (case "(($ac_try" in
19271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272  *) ac_try_echo=$ac_try;;
19273esac
19274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275  (eval "$ac_try") 2>&5
19276  ac_status=$?
19277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278  (exit $ac_status); }; }; then
19279
19280aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19281}'`
19282# Check for a 64-bit object if we didn't find anything.
19283if 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; }
19284}'`; fi
19285else
19286  echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289
19290fi
19291
19292rm -f core conftest.err conftest.$ac_objext \
19293      conftest$ac_exeext conftest.$ac_ext
19294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19295
19296	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19297	  # Warning - without using the other run time loading flags,
19298	  # -berok will link without error, but may produce a broken library.
19299	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19300	  allow_undefined_flag_GCJ=' ${wl}-berok'
19301	  # Exported symbols can be pulled into shared objects from archives
19302	  whole_archive_flag_spec_GCJ='$convenience'
19303	  archive_cmds_need_lc_GCJ=yes
19304	  # This is similar to how AIX traditionally builds its shared libraries.
19305	  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'
19306	fi
19307      fi
19308      ;;
19309
19310    amigaos*)
19311      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)'
19312      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19313      hardcode_minus_L_GCJ=yes
19314      # see comment about different semantics on the GNU ld section
19315      ld_shlibs_GCJ=no
19316      ;;
19317
19318    bsdi[45]*)
19319      export_dynamic_flag_spec_GCJ=-rdynamic
19320      ;;
19321
19322    cygwin* | mingw* | pw32*)
19323      # When not using gcc, we currently assume that we are using
19324      # Microsoft Visual C++.
19325      # hardcode_libdir_flag_spec is actually meaningless, as there is
19326      # no search path for DLLs.
19327      hardcode_libdir_flag_spec_GCJ=' '
19328      allow_undefined_flag_GCJ=unsupported
19329      # Tell ltmain to make .lib files, not .a files.
19330      libext=lib
19331      # Tell ltmain to make .dll files, not .so files.
19332      shrext_cmds=".dll"
19333      # FIXME: Setting linknames here is a bad hack.
19334      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19335      # The linker will automatically build a .lib file if we build a DLL.
19336      old_archive_From_new_cmds_GCJ='true'
19337      # FIXME: Should let the user specify the lib program.
19338      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19339      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19340      enable_shared_with_static_runtimes_GCJ=yes
19341      ;;
19342
19343    darwin* | rhapsody*)
19344      case $host_os in
19345        rhapsody* | darwin1.[012])
19346         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19347         ;;
19348       *) # Darwin 1.3 on
19349         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19350           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19351         else
19352           case ${MACOSX_DEPLOYMENT_TARGET} in
19353             10.[012])
19354               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19355               ;;
19356             10.*)
19357               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19358               ;;
19359           esac
19360         fi
19361         ;;
19362      esac
19363      archive_cmds_need_lc_GCJ=no
19364      hardcode_direct_GCJ=no
19365      hardcode_automatic_GCJ=yes
19366      hardcode_shlibpath_var_GCJ=unsupported
19367      whole_archive_flag_spec_GCJ=''
19368      link_all_deplibs_GCJ=yes
19369    if test "$GCC" = yes ; then
19370    	output_verbose_link_cmd='echo'
19371        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19372      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19373      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19374      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}'
19375      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}'
19376    else
19377      case $cc_basename in
19378        xlc*)
19379         output_verbose_link_cmd='echo'
19380         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19381         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19382          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19383         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}'
19384          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}'
19385          ;;
19386       *)
19387         ld_shlibs_GCJ=no
19388          ;;
19389      esac
19390    fi
19391      ;;
19392
19393    dgux*)
19394      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19395      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19396      hardcode_shlibpath_var_GCJ=no
19397      ;;
19398
19399    freebsd1*)
19400      ld_shlibs_GCJ=no
19401      ;;
19402
19403    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19404    # support.  Future versions do this automatically, but an explicit c++rt0.o
19405    # does not break anything, and helps significantly (at the cost of a little
19406    # extra space).
19407    freebsd2.2*)
19408      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19409      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19410      hardcode_direct_GCJ=yes
19411      hardcode_shlibpath_var_GCJ=no
19412      ;;
19413
19414    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19415    freebsd2*)
19416      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19417      hardcode_direct_GCJ=yes
19418      hardcode_minus_L_GCJ=yes
19419      hardcode_shlibpath_var_GCJ=no
19420      ;;
19421
19422    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19423    freebsd* | kfreebsd*-gnu | dragonfly*)
19424      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19425      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19426      hardcode_direct_GCJ=yes
19427      hardcode_shlibpath_var_GCJ=no
19428      ;;
19429
19430    hpux9*)
19431      if test "$GCC" = yes; then
19432	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'
19433      else
19434	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'
19435      fi
19436      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19437      hardcode_libdir_separator_GCJ=:
19438      hardcode_direct_GCJ=yes
19439
19440      # hardcode_minus_L: Not really in the search PATH,
19441      # but as the default location of the library.
19442      hardcode_minus_L_GCJ=yes
19443      export_dynamic_flag_spec_GCJ='${wl}-E'
19444      ;;
19445
19446    hpux10*)
19447      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19448	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19449      else
19450	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19451      fi
19452      if test "$with_gnu_ld" = no; then
19453	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19454	hardcode_libdir_separator_GCJ=:
19455
19456	hardcode_direct_GCJ=yes
19457	export_dynamic_flag_spec_GCJ='${wl}-E'
19458
19459	# hardcode_minus_L: Not really in the search PATH,
19460	# but as the default location of the library.
19461	hardcode_minus_L_GCJ=yes
19462      fi
19463      ;;
19464
19465    hpux11*)
19466      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19467	case $host_cpu in
19468	hppa*64*)
19469	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19470	  ;;
19471	ia64*)
19472	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19473	  ;;
19474	*)
19475	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19476	  ;;
19477	esac
19478      else
19479	case $host_cpu in
19480	hppa*64*)
19481	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19482	  ;;
19483	ia64*)
19484	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19485	  ;;
19486	*)
19487	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19488	  ;;
19489	esac
19490      fi
19491      if test "$with_gnu_ld" = no; then
19492	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19493	hardcode_libdir_separator_GCJ=:
19494
19495	case $host_cpu in
19496	hppa*64*|ia64*)
19497	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19498	  hardcode_direct_GCJ=no
19499	  hardcode_shlibpath_var_GCJ=no
19500	  ;;
19501	*)
19502	  hardcode_direct_GCJ=yes
19503	  export_dynamic_flag_spec_GCJ='${wl}-E'
19504
19505	  # hardcode_minus_L: Not really in the search PATH,
19506	  # but as the default location of the library.
19507	  hardcode_minus_L_GCJ=yes
19508	  ;;
19509	esac
19510      fi
19511      ;;
19512
19513    irix5* | irix6* | nonstopux*)
19514      if test "$GCC" = yes; then
19515	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'
19516      else
19517	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'
19518	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19519      fi
19520      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19521      hardcode_libdir_separator_GCJ=:
19522      link_all_deplibs_GCJ=yes
19523      ;;
19524
19525    netbsd*)
19526      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19527	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19528      else
19529	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19530      fi
19531      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19532      hardcode_direct_GCJ=yes
19533      hardcode_shlibpath_var_GCJ=no
19534      ;;
19535
19536    newsos6)
19537      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19538      hardcode_direct_GCJ=yes
19539      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19540      hardcode_libdir_separator_GCJ=:
19541      hardcode_shlibpath_var_GCJ=no
19542      ;;
19543
19544    openbsd*)
19545      hardcode_direct_GCJ=yes
19546      hardcode_shlibpath_var_GCJ=no
19547      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19548	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19549	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19550	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19551	export_dynamic_flag_spec_GCJ='${wl}-E'
19552      else
19553       case $host_os in
19554	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19555	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19556	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19557	   ;;
19558	 *)
19559	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19560	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19561	   ;;
19562       esac
19563      fi
19564      ;;
19565
19566    os2*)
19567      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19568      hardcode_minus_L_GCJ=yes
19569      allow_undefined_flag_GCJ=unsupported
19570      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'
19571      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19572      ;;
19573
19574    osf3*)
19575      if test "$GCC" = yes; then
19576	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19577	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'
19578      else
19579	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19580	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'
19581      fi
19582      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19583      hardcode_libdir_separator_GCJ=:
19584      ;;
19585
19586    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19587      if test "$GCC" = yes; then
19588	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19589	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'
19590	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19591      else
19592	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19593	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'
19594	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~
19595	$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'
19596
19597	# Both c and cxx compiler support -rpath directly
19598	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19599      fi
19600      hardcode_libdir_separator_GCJ=:
19601      ;;
19602
19603    solaris*)
19604      no_undefined_flag_GCJ=' -z text'
19605      if test "$GCC" = yes; then
19606	wlarc='${wl}'
19607	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19608	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19609	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19610      else
19611	wlarc=''
19612	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19613	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19614  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19615      fi
19616      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19617      hardcode_shlibpath_var_GCJ=no
19618      case $host_os in
19619      solaris2.[0-5] | solaris2.[0-5].*) ;;
19620      *)
19621 	# The compiler driver will combine linker options so we
19622 	# cannot just pass the convience library names through
19623 	# without $wl, iff we do not link with $LD.
19624 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19625 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19626 	case $wlarc in
19627 	'')
19628 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19629 	*)
19630 	  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' ;;
19631 	esac ;;
19632      esac
19633      link_all_deplibs_GCJ=yes
19634      ;;
19635
19636    sunos4*)
19637      if test "x$host_vendor" = xsequent; then
19638	# Use $CC to link under sequent, because it throws in some extra .o
19639	# files that make .init and .fini sections work.
19640	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19641      else
19642	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19643      fi
19644      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19645      hardcode_direct_GCJ=yes
19646      hardcode_minus_L_GCJ=yes
19647      hardcode_shlibpath_var_GCJ=no
19648      ;;
19649
19650    sysv4)
19651      case $host_vendor in
19652	sni)
19653	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19654	  hardcode_direct_GCJ=yes # is this really true???
19655	;;
19656	siemens)
19657	  ## LD is ld it makes a PLAMLIB
19658	  ## CC just makes a GrossModule.
19659	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19660	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19661	  hardcode_direct_GCJ=no
19662        ;;
19663	motorola)
19664	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19665	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19666	;;
19667      esac
19668      runpath_var='LD_RUN_PATH'
19669      hardcode_shlibpath_var_GCJ=no
19670      ;;
19671
19672    sysv4.3*)
19673      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19674      hardcode_shlibpath_var_GCJ=no
19675      export_dynamic_flag_spec_GCJ='-Bexport'
19676      ;;
19677
19678    sysv4*MP*)
19679      if test -d /usr/nec; then
19680	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19681	hardcode_shlibpath_var_GCJ=no
19682	runpath_var=LD_RUN_PATH
19683	hardcode_runpath_var=yes
19684	ld_shlibs_GCJ=yes
19685      fi
19686      ;;
19687
19688    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19689      no_undefined_flag_GCJ='${wl}-z,text'
19690      archive_cmds_need_lc_GCJ=no
19691      hardcode_shlibpath_var_GCJ=no
19692      runpath_var='LD_RUN_PATH'
19693
19694      if test "$GCC" = yes; then
19695	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19696	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19697      else
19698	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19700      fi
19701      ;;
19702
19703    sysv5* | sco3.2v5* | sco5v6*)
19704      # Note: We can NOT use -z defs as we might desire, because we do not
19705      # link with -lc, and that would cause any symbols used from libc to
19706      # always be unresolved, which means just about no library would
19707      # ever link correctly.  If we're not using GNU ld we use -z text
19708      # though, which does catch some bad symbols but isn't as heavy-handed
19709      # as -z defs.
19710      no_undefined_flag_GCJ='${wl}-z,text'
19711      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19712      archive_cmds_need_lc_GCJ=no
19713      hardcode_shlibpath_var_GCJ=no
19714      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19715      hardcode_libdir_separator_GCJ=':'
19716      link_all_deplibs_GCJ=yes
19717      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19718      runpath_var='LD_RUN_PATH'
19719
19720      if test "$GCC" = yes; then
19721	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19722	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723      else
19724	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19725	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19726      fi
19727      ;;
19728
19729    uts4*)
19730      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19731      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19732      hardcode_shlibpath_var_GCJ=no
19733      ;;
19734
19735    *)
19736      ld_shlibs_GCJ=no
19737      ;;
19738    esac
19739  fi
19740
19741{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19742echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19743test "$ld_shlibs_GCJ" = no && can_build_shared=no
19744
19745#
19746# Do we need to explicitly link libc?
19747#
19748case "x$archive_cmds_need_lc_GCJ" in
19749x|xyes)
19750  # Assume -lc should be added
19751  archive_cmds_need_lc_GCJ=yes
19752
19753  if test "$enable_shared" = yes && test "$GCC" = yes; then
19754    case $archive_cmds_GCJ in
19755    *'~'*)
19756      # FIXME: we may have to deal with multi-command sequences.
19757      ;;
19758    '$CC '*)
19759      # Test whether the compiler implicitly links with -lc since on some
19760      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19761      # to ld, don't add -lc before -lgcc.
19762      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19763echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19764      $rm conftest*
19765      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19766
19767      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768  (eval $ac_compile) 2>&5
19769  ac_status=$?
19770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771  (exit $ac_status); } 2>conftest.err; then
19772        soname=conftest
19773        lib=conftest
19774        libobjs=conftest.$ac_objext
19775        deplibs=
19776        wl=$lt_prog_compiler_wl_GCJ
19777	pic_flag=$lt_prog_compiler_pic_GCJ
19778        compiler_flags=-v
19779        linker_flags=-v
19780        verstring=
19781        output_objdir=.
19782        libname=conftest
19783        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19784        allow_undefined_flag_GCJ=
19785        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19786  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19787  ac_status=$?
19788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789  (exit $ac_status); }
19790        then
19791	  archive_cmds_need_lc_GCJ=no
19792        else
19793	  archive_cmds_need_lc_GCJ=yes
19794        fi
19795        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19796      else
19797        cat conftest.err 1>&5
19798      fi
19799      $rm conftest*
19800      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19801echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19802      ;;
19803    esac
19804  fi
19805  ;;
19806esac
19807
19808{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19809echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19810library_names_spec=
19811libname_spec='lib$name'
19812soname_spec=
19813shrext_cmds=".so"
19814postinstall_cmds=
19815postuninstall_cmds=
19816finish_cmds=
19817finish_eval=
19818shlibpath_var=
19819shlibpath_overrides_runpath=unknown
19820version_type=none
19821dynamic_linker="$host_os ld.so"
19822sys_lib_dlsearch_path_spec="/lib /usr/lib"
19823if test "$GCC" = yes; then
19824  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19825  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19826    # if the path contains ";" then we assume it to be the separator
19827    # otherwise default to the standard path separator (i.e. ":") - it is
19828    # assumed that no part of a normal pathname contains ";" but that should
19829    # okay in the real world where ";" in dirpaths is itself problematic.
19830    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19831  else
19832    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19833  fi
19834else
19835  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19836fi
19837need_lib_prefix=unknown
19838hardcode_into_libs=no
19839
19840# when you set need_version to no, make sure it does not cause -set_version
19841# flags to be left without arguments
19842need_version=unknown
19843
19844case $host_os in
19845aix3*)
19846  version_type=linux
19847  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19848  shlibpath_var=LIBPATH
19849
19850  # AIX 3 has no versioning support, so we append a major version to the name.
19851  soname_spec='${libname}${release}${shared_ext}$major'
19852  ;;
19853
19854aix4* | aix5*)
19855  version_type=linux
19856  need_lib_prefix=no
19857  need_version=no
19858  hardcode_into_libs=yes
19859  if test "$host_cpu" = ia64; then
19860    # AIX 5 supports IA64
19861    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19862    shlibpath_var=LD_LIBRARY_PATH
19863  else
19864    # With GCC up to 2.95.x, collect2 would create an import file
19865    # for dependence libraries.  The import file would start with
19866    # the line `#! .'.  This would cause the generated library to
19867    # depend on `.', always an invalid library.  This was fixed in
19868    # development snapshots of GCC prior to 3.0.
19869    case $host_os in
19870      aix4 | aix4.[01] | aix4.[01].*)
19871      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19872	   echo ' yes '
19873	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19874	:
19875      else
19876	can_build_shared=no
19877      fi
19878      ;;
19879    esac
19880    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19881    # soname into executable. Probably we can add versioning support to
19882    # collect2, so additional links can be useful in future.
19883    if test "$aix_use_runtimelinking" = yes; then
19884      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19885      # instead of lib<name>.a to let people know that these are not
19886      # typical AIX shared libraries.
19887      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19888    else
19889      # We preserve .a as extension for shared libraries through AIX4.2
19890      # and later when we are not doing run time linking.
19891      library_names_spec='${libname}${release}.a $libname.a'
19892      soname_spec='${libname}${release}${shared_ext}$major'
19893    fi
19894    shlibpath_var=LIBPATH
19895  fi
19896  ;;
19897
19898amigaos*)
19899  library_names_spec='$libname.ixlibrary $libname.a'
19900  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19901  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'
19902  ;;
19903
19904beos*)
19905  library_names_spec='${libname}${shared_ext}'
19906  dynamic_linker="$host_os ld.so"
19907  shlibpath_var=LIBRARY_PATH
19908  ;;
19909
19910bsdi[45]*)
19911  version_type=linux
19912  need_version=no
19913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19914  soname_spec='${libname}${release}${shared_ext}$major'
19915  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19916  shlibpath_var=LD_LIBRARY_PATH
19917  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19918  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19919  # the default ld.so.conf also contains /usr/contrib/lib and
19920  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19921  # libtool to hard-code these into programs
19922  ;;
19923
19924cygwin* | mingw* | pw32*)
19925  version_type=windows
19926  shrext_cmds=".dll"
19927  need_version=no
19928  need_lib_prefix=no
19929
19930  case $GCC,$host_os in
19931  yes,cygwin* | yes,mingw* | yes,pw32*)
19932    library_names_spec='$libname.dll.a'
19933    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19934    postinstall_cmds='base_file=`basename \${file}`~
19935      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19936      dldir=$destdir/`dirname \$dlpath`~
19937      test -d \$dldir || mkdir -p \$dldir~
19938      $install_prog $dir/$dlname \$dldir/$dlname~
19939      chmod a+x \$dldir/$dlname'
19940    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19941      dlpath=$dir/\$dldll~
19942       $rm \$dlpath'
19943    shlibpath_overrides_runpath=yes
19944
19945    case $host_os in
19946    cygwin*)
19947      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19948      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19949      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19950      ;;
19951    mingw*)
19952      # MinGW DLLs use traditional 'lib' prefix
19953      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19954      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19955      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19956        # It is most probably a Windows format PATH printed by
19957        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19958        # path with ; separators, and with drive letters. We can handle the
19959        # drive letters (cygwin fileutils understands them), so leave them,
19960        # especially as we might pass files found there to a mingw objdump,
19961        # which wouldn't understand a cygwinified path. Ahh.
19962        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19963      else
19964        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19965      fi
19966      ;;
19967    pw32*)
19968      # pw32 DLLs use 'pw' prefix rather than 'lib'
19969      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19970      ;;
19971    esac
19972    ;;
19973
19974  *)
19975    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19976    ;;
19977  esac
19978  dynamic_linker='Win32 ld.exe'
19979  # FIXME: first we should search . and the directory the executable is in
19980  shlibpath_var=PATH
19981  ;;
19982
19983darwin* | rhapsody*)
19984  dynamic_linker="$host_os dyld"
19985  version_type=darwin
19986  need_lib_prefix=no
19987  need_version=no
19988  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19989  soname_spec='${libname}${release}${major}$shared_ext'
19990  shlibpath_overrides_runpath=yes
19991  shlibpath_var=DYLD_LIBRARY_PATH
19992  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19993  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19994  if test "$GCC" = yes; then
19995    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"`
19996  else
19997    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19998  fi
19999  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20000  ;;
20001
20002dgux*)
20003  version_type=linux
20004  need_lib_prefix=no
20005  need_version=no
20006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20007  soname_spec='${libname}${release}${shared_ext}$major'
20008  shlibpath_var=LD_LIBRARY_PATH
20009  ;;
20010
20011freebsd1*)
20012  dynamic_linker=no
20013  ;;
20014
20015kfreebsd*-gnu)
20016  version_type=linux
20017  need_lib_prefix=no
20018  need_version=no
20019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20020  soname_spec='${libname}${release}${shared_ext}$major'
20021  shlibpath_var=LD_LIBRARY_PATH
20022  shlibpath_overrides_runpath=no
20023  hardcode_into_libs=yes
20024  dynamic_linker='GNU ld.so'
20025  ;;
20026
20027freebsd* | dragonfly*)
20028  # DragonFly does not have aout.  When/if they implement a new
20029  # versioning mechanism, adjust this.
20030  if test -x /usr/bin/objformat; then
20031    objformat=`/usr/bin/objformat`
20032  else
20033    case $host_os in
20034    freebsd[123]*) objformat=aout ;;
20035    *) objformat=elf ;;
20036    esac
20037  fi
20038  version_type=freebsd-$objformat
20039  case $version_type in
20040    freebsd-elf*)
20041      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20042      need_version=no
20043      need_lib_prefix=no
20044      ;;
20045    freebsd-*)
20046      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20047      need_version=yes
20048      ;;
20049  esac
20050  shlibpath_var=LD_LIBRARY_PATH
20051  case $host_os in
20052  freebsd2*)
20053    shlibpath_overrides_runpath=yes
20054    ;;
20055  freebsd3.[01]* | freebsdelf3.[01]*)
20056    shlibpath_overrides_runpath=yes
20057    hardcode_into_libs=yes
20058    ;;
20059  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20060  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20061    shlibpath_overrides_runpath=no
20062    hardcode_into_libs=yes
20063    ;;
20064  freebsd*) # from 4.6 on
20065    shlibpath_overrides_runpath=yes
20066    hardcode_into_libs=yes
20067    ;;
20068  esac
20069  ;;
20070
20071gnu*)
20072  version_type=linux
20073  need_lib_prefix=no
20074  need_version=no
20075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20076  soname_spec='${libname}${release}${shared_ext}$major'
20077  shlibpath_var=LD_LIBRARY_PATH
20078  hardcode_into_libs=yes
20079  ;;
20080
20081hpux9* | hpux10* | hpux11*)
20082  # Give a soname corresponding to the major version so that dld.sl refuses to
20083  # link against other versions.
20084  version_type=sunos
20085  need_lib_prefix=no
20086  need_version=no
20087  case $host_cpu in
20088  ia64*)
20089    shrext_cmds='.so'
20090    hardcode_into_libs=yes
20091    dynamic_linker="$host_os dld.so"
20092    shlibpath_var=LD_LIBRARY_PATH
20093    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20095    soname_spec='${libname}${release}${shared_ext}$major'
20096    if test "X$HPUX_IA64_MODE" = X32; then
20097      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20098    else
20099      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20100    fi
20101    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20102    ;;
20103   hppa*64*)
20104     shrext_cmds='.sl'
20105     hardcode_into_libs=yes
20106     dynamic_linker="$host_os dld.sl"
20107     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110     soname_spec='${libname}${release}${shared_ext}$major'
20111     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20112     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20113     ;;
20114   *)
20115    shrext_cmds='.sl'
20116    dynamic_linker="$host_os dld.sl"
20117    shlibpath_var=SHLIB_PATH
20118    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20119    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120    soname_spec='${libname}${release}${shared_ext}$major'
20121    ;;
20122  esac
20123  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20124  postinstall_cmds='chmod 555 $lib'
20125  ;;
20126
20127interix3*)
20128  version_type=linux
20129  need_lib_prefix=no
20130  need_version=no
20131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20132  soname_spec='${libname}${release}${shared_ext}$major'
20133  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20134  shlibpath_var=LD_LIBRARY_PATH
20135  shlibpath_overrides_runpath=no
20136  hardcode_into_libs=yes
20137  ;;
20138
20139irix5* | irix6* | nonstopux*)
20140  case $host_os in
20141    nonstopux*) version_type=nonstopux ;;
20142    *)
20143	if test "$lt_cv_prog_gnu_ld" = yes; then
20144		version_type=linux
20145	else
20146		version_type=irix
20147	fi ;;
20148  esac
20149  need_lib_prefix=no
20150  need_version=no
20151  soname_spec='${libname}${release}${shared_ext}$major'
20152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20153  case $host_os in
20154  irix5* | nonstopux*)
20155    libsuff= shlibsuff=
20156    ;;
20157  *)
20158    case $LD in # libtool.m4 will add one of these switches to LD
20159    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20160      libsuff= shlibsuff= libmagic=32-bit;;
20161    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20162      libsuff=32 shlibsuff=N32 libmagic=N32;;
20163    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20164      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20165    *) libsuff= shlibsuff= libmagic=never-match;;
20166    esac
20167    ;;
20168  esac
20169  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20170  shlibpath_overrides_runpath=no
20171  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20172  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20173  hardcode_into_libs=yes
20174  ;;
20175
20176# No shared lib support for Linux oldld, aout, or coff.
20177linux*oldld* | linux*aout* | linux*coff*)
20178  dynamic_linker=no
20179  ;;
20180
20181# This must be Linux ELF.
20182linux*)
20183  version_type=linux
20184  need_lib_prefix=no
20185  need_version=no
20186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20187  soname_spec='${libname}${release}${shared_ext}$major'
20188  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20189  shlibpath_var=LD_LIBRARY_PATH
20190  shlibpath_overrides_runpath=no
20191  # This implies no fast_install, which is unacceptable.
20192  # Some rework will be needed to allow for fast_install
20193  # before this can be enabled.
20194  hardcode_into_libs=yes
20195
20196  # Append ld.so.conf contents to the search path
20197  if test -f /etc/ld.so.conf; then
20198    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' ' '`
20199    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20200  fi
20201
20202  # We used to test for /lib/ld.so.1 and disable shared libraries on
20203  # powerpc, because MkLinux only supported shared libraries with the
20204  # GNU dynamic linker.  Since this was broken with cross compilers,
20205  # most powerpc-linux boxes support dynamic linking these days and
20206  # people can always --disable-shared, the test was removed, and we
20207  # assume the GNU/Linux dynamic linker is in use.
20208  dynamic_linker='GNU/Linux ld.so'
20209  ;;
20210
20211knetbsd*-gnu)
20212  version_type=linux
20213  need_lib_prefix=no
20214  need_version=no
20215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20216  soname_spec='${libname}${release}${shared_ext}$major'
20217  shlibpath_var=LD_LIBRARY_PATH
20218  shlibpath_overrides_runpath=no
20219  hardcode_into_libs=yes
20220  dynamic_linker='GNU ld.so'
20221  ;;
20222
20223netbsd*)
20224  version_type=sunos
20225  need_lib_prefix=no
20226  need_version=no
20227  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20229    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20230    dynamic_linker='NetBSD (a.out) ld.so'
20231  else
20232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20233    soname_spec='${libname}${release}${shared_ext}$major'
20234    dynamic_linker='NetBSD ld.elf_so'
20235  fi
20236  shlibpath_var=LD_LIBRARY_PATH
20237  shlibpath_overrides_runpath=yes
20238  hardcode_into_libs=yes
20239  ;;
20240
20241newsos6)
20242  version_type=linux
20243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244  shlibpath_var=LD_LIBRARY_PATH
20245  shlibpath_overrides_runpath=yes
20246  ;;
20247
20248nto-qnx*)
20249  version_type=linux
20250  need_lib_prefix=no
20251  need_version=no
20252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253  soname_spec='${libname}${release}${shared_ext}$major'
20254  shlibpath_var=LD_LIBRARY_PATH
20255  shlibpath_overrides_runpath=yes
20256  ;;
20257
20258openbsd*)
20259  version_type=sunos
20260  sys_lib_dlsearch_path_spec="/usr/lib"
20261  need_lib_prefix=no
20262  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20263  case $host_os in
20264    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20265    *)                         need_version=no  ;;
20266  esac
20267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20268  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20269  shlibpath_var=LD_LIBRARY_PATH
20270  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20271    case $host_os in
20272      openbsd2.[89] | openbsd2.[89].*)
20273	shlibpath_overrides_runpath=no
20274	;;
20275      *)
20276	shlibpath_overrides_runpath=yes
20277	;;
20278      esac
20279  else
20280    shlibpath_overrides_runpath=yes
20281  fi
20282  ;;
20283
20284os2*)
20285  libname_spec='$name'
20286  shrext_cmds=".dll"
20287  need_lib_prefix=no
20288  library_names_spec='$libname${shared_ext} $libname.a'
20289  dynamic_linker='OS/2 ld.exe'
20290  shlibpath_var=LIBPATH
20291  ;;
20292
20293osf3* | osf4* | osf5*)
20294  version_type=osf
20295  need_lib_prefix=no
20296  need_version=no
20297  soname_spec='${libname}${release}${shared_ext}$major'
20298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299  shlibpath_var=LD_LIBRARY_PATH
20300  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20301  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20302  ;;
20303
20304solaris*)
20305  version_type=linux
20306  need_lib_prefix=no
20307  need_version=no
20308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309  soname_spec='${libname}${release}${shared_ext}$major'
20310  shlibpath_var=LD_LIBRARY_PATH
20311  shlibpath_overrides_runpath=yes
20312  hardcode_into_libs=yes
20313  # ldd complains unless libraries are executable
20314  postinstall_cmds='chmod +x $lib'
20315  ;;
20316
20317sunos4*)
20318  version_type=sunos
20319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20320  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20321  shlibpath_var=LD_LIBRARY_PATH
20322  shlibpath_overrides_runpath=yes
20323  if test "$with_gnu_ld" = yes; then
20324    need_lib_prefix=no
20325  fi
20326  need_version=yes
20327  ;;
20328
20329sysv4 | sysv4.3*)
20330  version_type=linux
20331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332  soname_spec='${libname}${release}${shared_ext}$major'
20333  shlibpath_var=LD_LIBRARY_PATH
20334  case $host_vendor in
20335    sni)
20336      shlibpath_overrides_runpath=no
20337      need_lib_prefix=no
20338      export_dynamic_flag_spec='${wl}-Blargedynsym'
20339      runpath_var=LD_RUN_PATH
20340      ;;
20341    siemens)
20342      need_lib_prefix=no
20343      ;;
20344    motorola)
20345      need_lib_prefix=no
20346      need_version=no
20347      shlibpath_overrides_runpath=no
20348      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20349      ;;
20350  esac
20351  ;;
20352
20353sysv4*MP*)
20354  if test -d /usr/nec ;then
20355    version_type=linux
20356    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20357    soname_spec='$libname${shared_ext}.$major'
20358    shlibpath_var=LD_LIBRARY_PATH
20359  fi
20360  ;;
20361
20362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20363  version_type=freebsd-elf
20364  need_lib_prefix=no
20365  need_version=no
20366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20367  soname_spec='${libname}${release}${shared_ext}$major'
20368  shlibpath_var=LD_LIBRARY_PATH
20369  hardcode_into_libs=yes
20370  if test "$with_gnu_ld" = yes; then
20371    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20372    shlibpath_overrides_runpath=no
20373  else
20374    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20375    shlibpath_overrides_runpath=yes
20376    case $host_os in
20377      sco3.2v5*)
20378        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20379	;;
20380    esac
20381  fi
20382  sys_lib_dlsearch_path_spec='/usr/lib'
20383  ;;
20384
20385uts4*)
20386  version_type=linux
20387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20388  soname_spec='${libname}${release}${shared_ext}$major'
20389  shlibpath_var=LD_LIBRARY_PATH
20390  ;;
20391
20392*)
20393  dynamic_linker=no
20394  ;;
20395esac
20396{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20397echo "${ECHO_T}$dynamic_linker" >&6; }
20398test "$dynamic_linker" = no && can_build_shared=no
20399
20400variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20401if test "$GCC" = yes; then
20402  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20403fi
20404
20405{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20406echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20407hardcode_action_GCJ=
20408if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20409   test -n "$runpath_var_GCJ" || \
20410   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20411
20412  # We can hardcode non-existant directories.
20413  if test "$hardcode_direct_GCJ" != no &&
20414     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20415     # have to relink, otherwise we might link with an installed library
20416     # when we should be linking with a yet-to-be-installed one
20417     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20418     test "$hardcode_minus_L_GCJ" != no; then
20419    # Linking always hardcodes the temporary library directory.
20420    hardcode_action_GCJ=relink
20421  else
20422    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20423    hardcode_action_GCJ=immediate
20424  fi
20425else
20426  # We cannot hardcode anything, or else we can only hardcode existing
20427  # directories.
20428  hardcode_action_GCJ=unsupported
20429fi
20430{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20431echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20432
20433if test "$hardcode_action_GCJ" = relink; then
20434  # Fast installation is not supported
20435  enable_fast_install=no
20436elif test "$shlibpath_overrides_runpath" = yes ||
20437     test "$enable_shared" = no; then
20438  # Fast installation is not necessary
20439  enable_fast_install=needless
20440fi
20441
20442
20443# The else clause should only fire when bootstrapping the
20444# libtool distribution, otherwise you forgot to ship ltmain.sh
20445# with your package, and you will get complaints that there are
20446# no rules to generate ltmain.sh.
20447if test -f "$ltmain"; then
20448  # See if we are running on zsh, and set the options which allow our commands through
20449  # without removal of \ escapes.
20450  if test -n "${ZSH_VERSION+set}" ; then
20451    setopt NO_GLOB_SUBST
20452  fi
20453  # Now quote all the things that may contain metacharacters while being
20454  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20455  # variables and quote the copies for generation of the libtool script.
20456  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20457    SED SHELL STRIP \
20458    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20459    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20460    deplibs_check_method reload_flag reload_cmds need_locks \
20461    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20462    lt_cv_sys_global_symbol_to_c_name_address \
20463    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20464    old_postinstall_cmds old_postuninstall_cmds \
20465    compiler_GCJ \
20466    CC_GCJ \
20467    LD_GCJ \
20468    lt_prog_compiler_wl_GCJ \
20469    lt_prog_compiler_pic_GCJ \
20470    lt_prog_compiler_static_GCJ \
20471    lt_prog_compiler_no_builtin_flag_GCJ \
20472    export_dynamic_flag_spec_GCJ \
20473    thread_safe_flag_spec_GCJ \
20474    whole_archive_flag_spec_GCJ \
20475    enable_shared_with_static_runtimes_GCJ \
20476    old_archive_cmds_GCJ \
20477    old_archive_from_new_cmds_GCJ \
20478    predep_objects_GCJ \
20479    postdep_objects_GCJ \
20480    predeps_GCJ \
20481    postdeps_GCJ \
20482    compiler_lib_search_path_GCJ \
20483    archive_cmds_GCJ \
20484    archive_expsym_cmds_GCJ \
20485    postinstall_cmds_GCJ \
20486    postuninstall_cmds_GCJ \
20487    old_archive_from_expsyms_cmds_GCJ \
20488    allow_undefined_flag_GCJ \
20489    no_undefined_flag_GCJ \
20490    export_symbols_cmds_GCJ \
20491    hardcode_libdir_flag_spec_GCJ \
20492    hardcode_libdir_flag_spec_ld_GCJ \
20493    hardcode_libdir_separator_GCJ \
20494    hardcode_automatic_GCJ \
20495    module_cmds_GCJ \
20496    module_expsym_cmds_GCJ \
20497    lt_cv_prog_compiler_c_o_GCJ \
20498    exclude_expsyms_GCJ \
20499    include_expsyms_GCJ; do
20500
20501    case $var in
20502    old_archive_cmds_GCJ | \
20503    old_archive_from_new_cmds_GCJ | \
20504    archive_cmds_GCJ | \
20505    archive_expsym_cmds_GCJ | \
20506    module_cmds_GCJ | \
20507    module_expsym_cmds_GCJ | \
20508    old_archive_from_expsyms_cmds_GCJ | \
20509    export_symbols_cmds_GCJ | \
20510    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20511    postinstall_cmds | postuninstall_cmds | \
20512    old_postinstall_cmds | old_postuninstall_cmds | \
20513    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20514      # Double-quote double-evaled strings.
20515      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20516      ;;
20517    *)
20518      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20519      ;;
20520    esac
20521  done
20522
20523  case $lt_echo in
20524  *'\$0 --fallback-echo"')
20525    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20526    ;;
20527  esac
20528
20529cfgfile="$ofile"
20530
20531  cat <<__EOF__ >> "$cfgfile"
20532# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20533
20534# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20535
20536# Shell to use when invoking shell scripts.
20537SHELL=$lt_SHELL
20538
20539# Whether or not to build shared libraries.
20540build_libtool_libs=$enable_shared
20541
20542# Whether or not to build static libraries.
20543build_old_libs=$enable_static
20544
20545# Whether or not to add -lc for building shared libraries.
20546build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20547
20548# Whether or not to disallow shared libs when runtime libs are static
20549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20550
20551# Whether or not to optimize for fast installation.
20552fast_install=$enable_fast_install
20553
20554# The host system.
20555host_alias=$host_alias
20556host=$host
20557host_os=$host_os
20558
20559# The build system.
20560build_alias=$build_alias
20561build=$build
20562build_os=$build_os
20563
20564# An echo program that does not interpret backslashes.
20565echo=$lt_echo
20566
20567# The archiver.
20568AR=$lt_AR
20569AR_FLAGS=$lt_AR_FLAGS
20570
20571# A C compiler.
20572LTCC=$lt_LTCC
20573
20574# LTCC compiler flags.
20575LTCFLAGS=$lt_LTCFLAGS
20576
20577# A language-specific compiler.
20578CC=$lt_compiler_GCJ
20579
20580# Is the compiler the GNU C compiler?
20581with_gcc=$GCC_GCJ
20582
20583# An ERE matcher.
20584EGREP=$lt_EGREP
20585
20586# The linker used to build libraries.
20587LD=$lt_LD_GCJ
20588
20589# Whether we need hard or soft links.
20590LN_S=$lt_LN_S
20591
20592# A BSD-compatible nm program.
20593NM=$lt_NM
20594
20595# A symbol stripping program
20596STRIP=$lt_STRIP
20597
20598# Used to examine libraries when file_magic_cmd begins "file"
20599MAGIC_CMD=$MAGIC_CMD
20600
20601# Used on cygwin: DLL creation program.
20602DLLTOOL="$DLLTOOL"
20603
20604# Used on cygwin: object dumper.
20605OBJDUMP="$OBJDUMP"
20606
20607# Used on cygwin: assembler.
20608AS="$AS"
20609
20610# The name of the directory that contains temporary libtool files.
20611objdir=$objdir
20612
20613# How to create reloadable object files.
20614reload_flag=$lt_reload_flag
20615reload_cmds=$lt_reload_cmds
20616
20617# How to pass a linker flag through the compiler.
20618wl=$lt_lt_prog_compiler_wl_GCJ
20619
20620# Object file suffix (normally "o").
20621objext="$ac_objext"
20622
20623# Old archive suffix (normally "a").
20624libext="$libext"
20625
20626# Shared library suffix (normally ".so").
20627shrext_cmds='$shrext_cmds'
20628
20629# Executable file suffix (normally "").
20630exeext="$exeext"
20631
20632# Additional compiler flags for building library objects.
20633pic_flag=$lt_lt_prog_compiler_pic_GCJ
20634pic_mode=$pic_mode
20635
20636# What is the maximum length of a command?
20637max_cmd_len=$lt_cv_sys_max_cmd_len
20638
20639# Does compiler simultaneously support -c and -o options?
20640compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20641
20642# Must we lock files when doing compilation?
20643need_locks=$lt_need_locks
20644
20645# Do we need the lib prefix for modules?
20646need_lib_prefix=$need_lib_prefix
20647
20648# Do we need a version for libraries?
20649need_version=$need_version
20650
20651# Whether dlopen is supported.
20652dlopen_support=$enable_dlopen
20653
20654# Whether dlopen of programs is supported.
20655dlopen_self=$enable_dlopen_self
20656
20657# Whether dlopen of statically linked programs is supported.
20658dlopen_self_static=$enable_dlopen_self_static
20659
20660# Compiler flag to prevent dynamic linking.
20661link_static_flag=$lt_lt_prog_compiler_static_GCJ
20662
20663# Compiler flag to turn off builtin functions.
20664no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20665
20666# Compiler flag to allow reflexive dlopens.
20667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20668
20669# Compiler flag to generate shared objects directly from archives.
20670whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20671
20672# Compiler flag to generate thread-safe objects.
20673thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20674
20675# Library versioning type.
20676version_type=$version_type
20677
20678# Format of library name prefix.
20679libname_spec=$lt_libname_spec
20680
20681# List of archive names.  First name is the real one, the rest are links.
20682# The last name is the one that the linker finds with -lNAME.
20683library_names_spec=$lt_library_names_spec
20684
20685# The coded name of the library, if different from the real name.
20686soname_spec=$lt_soname_spec
20687
20688# Commands used to build and install an old-style archive.
20689RANLIB=$lt_RANLIB
20690old_archive_cmds=$lt_old_archive_cmds_GCJ
20691old_postinstall_cmds=$lt_old_postinstall_cmds
20692old_postuninstall_cmds=$lt_old_postuninstall_cmds
20693
20694# Create an old-style archive from a shared archive.
20695old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20696
20697# Create a temporary old-style archive to link instead of a shared archive.
20698old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20699
20700# Commands used to build and install a shared archive.
20701archive_cmds=$lt_archive_cmds_GCJ
20702archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20703postinstall_cmds=$lt_postinstall_cmds
20704postuninstall_cmds=$lt_postuninstall_cmds
20705
20706# Commands used to build a loadable module (assumed same as above if empty)
20707module_cmds=$lt_module_cmds_GCJ
20708module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20709
20710# Commands to strip libraries.
20711old_striplib=$lt_old_striplib
20712striplib=$lt_striplib
20713
20714# Dependencies to place before the objects being linked to create a
20715# shared library.
20716predep_objects=$lt_predep_objects_GCJ
20717
20718# Dependencies to place after the objects being linked to create a
20719# shared library.
20720postdep_objects=$lt_postdep_objects_GCJ
20721
20722# Dependencies to place before the objects being linked to create a
20723# shared library.
20724predeps=$lt_predeps_GCJ
20725
20726# Dependencies to place after the objects being linked to create a
20727# shared library.
20728postdeps=$lt_postdeps_GCJ
20729
20730# The library search path used internally by the compiler when linking
20731# a shared library.
20732compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20733
20734# Method to check whether dependent libraries are shared objects.
20735deplibs_check_method=$lt_deplibs_check_method
20736
20737# Command to use when deplibs_check_method == file_magic.
20738file_magic_cmd=$lt_file_magic_cmd
20739
20740# Flag that allows shared libraries with undefined symbols to be built.
20741allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20742
20743# Flag that forces no undefined symbols.
20744no_undefined_flag=$lt_no_undefined_flag_GCJ
20745
20746# Commands used to finish a libtool library installation in a directory.
20747finish_cmds=$lt_finish_cmds
20748
20749# Same as above, but a single script fragment to be evaled but not shown.
20750finish_eval=$lt_finish_eval
20751
20752# Take the output of nm and produce a listing of raw symbols and C names.
20753global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20754
20755# Transform the output of nm in a proper C declaration
20756global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20757
20758# Transform the output of nm in a C name address pair
20759global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20760
20761# This is the shared library runtime path variable.
20762runpath_var=$runpath_var
20763
20764# This is the shared library path variable.
20765shlibpath_var=$shlibpath_var
20766
20767# Is shlibpath searched before the hard-coded library search path?
20768shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20769
20770# How to hardcode a shared library path into an executable.
20771hardcode_action=$hardcode_action_GCJ
20772
20773# Whether we should hardcode library paths into libraries.
20774hardcode_into_libs=$hardcode_into_libs
20775
20776# Flag to hardcode \$libdir into a binary during linking.
20777# This must work even if \$libdir does not exist.
20778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20779
20780# If ld is used when linking, flag to hardcode \$libdir into
20781# a binary during linking. This must work even if \$libdir does
20782# not exist.
20783hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20784
20785# Whether we need a single -rpath flag with a separated argument.
20786hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20787
20788# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20789# resulting binary.
20790hardcode_direct=$hardcode_direct_GCJ
20791
20792# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20793# resulting binary.
20794hardcode_minus_L=$hardcode_minus_L_GCJ
20795
20796# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20797# the resulting binary.
20798hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20799
20800# Set to yes if building a shared library automatically hardcodes DIR into the library
20801# and all subsequent libraries and executables linked against it.
20802hardcode_automatic=$hardcode_automatic_GCJ
20803
20804# Variables whose values should be saved in libtool wrapper scripts and
20805# restored at relink time.
20806variables_saved_for_relink="$variables_saved_for_relink"
20807
20808# Whether libtool must link a program against all its dependency libraries.
20809link_all_deplibs=$link_all_deplibs_GCJ
20810
20811# Compile-time system search path for libraries
20812sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20813
20814# Run-time system search path for libraries
20815sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20816
20817# Fix the shell variable \$srcfile for the compiler.
20818fix_srcfile_path="$fix_srcfile_path_GCJ"
20819
20820# Set to yes if exported symbols are required.
20821always_export_symbols=$always_export_symbols_GCJ
20822
20823# The commands to list exported symbols.
20824export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20825
20826# The commands to extract the exported symbol list from a shared archive.
20827extract_expsyms_cmds=$lt_extract_expsyms_cmds
20828
20829# Symbols that should not be listed in the preloaded symbols.
20830exclude_expsyms=$lt_exclude_expsyms_GCJ
20831
20832# Symbols that must always be exported.
20833include_expsyms=$lt_include_expsyms_GCJ
20834
20835# ### END LIBTOOL TAG CONFIG: $tagname
20836
20837__EOF__
20838
20839
20840else
20841  # If there is no Makefile yet, we rely on a make rule to execute
20842  # `config.status --recheck' to rerun these tests and create the
20843  # libtool script then.
20844  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20845  if test -f "$ltmain_in"; then
20846    test -f Makefile && make "$ltmain"
20847  fi
20848fi
20849
20850
20851ac_ext=c
20852ac_cpp='$CPP $CPPFLAGS'
20853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855ac_compiler_gnu=$ac_cv_c_compiler_gnu
20856
20857CC="$lt_save_CC"
20858
20859	else
20860	  tagname=""
20861	fi
20862	;;
20863
20864      RC)
20865
20866
20867# Source file extension for RC test sources.
20868ac_ext=rc
20869
20870# Object file extension for compiled RC test sources.
20871objext=o
20872objext_RC=$objext
20873
20874# Code to be used in simple compile tests
20875lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20876
20877# Code to be used in simple link tests
20878lt_simple_link_test_code="$lt_simple_compile_test_code"
20879
20880# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20881
20882# If no C compiler was specified, use CC.
20883LTCC=${LTCC-"$CC"}
20884
20885# If no C compiler flags were specified, use CFLAGS.
20886LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20887
20888# Allow CC to be a program name with arguments.
20889compiler=$CC
20890
20891
20892# save warnings/boilerplate of simple test code
20893ac_outfile=conftest.$ac_objext
20894printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20896_lt_compiler_boilerplate=`cat conftest.err`
20897$rm conftest*
20898
20899ac_outfile=conftest.$ac_objext
20900printf "$lt_simple_link_test_code" >conftest.$ac_ext
20901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20902_lt_linker_boilerplate=`cat conftest.err`
20903$rm conftest*
20904
20905
20906# Allow CC to be a program name with arguments.
20907lt_save_CC="$CC"
20908CC=${RC-"windres"}
20909compiler=$CC
20910compiler_RC=$CC
20911for cc_temp in $compiler""; do
20912  case $cc_temp in
20913    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20914    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20915    \-*) ;;
20916    *) break;;
20917  esac
20918done
20919cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20920
20921lt_cv_prog_compiler_c_o_RC=yes
20922
20923# The else clause should only fire when bootstrapping the
20924# libtool distribution, otherwise you forgot to ship ltmain.sh
20925# with your package, and you will get complaints that there are
20926# no rules to generate ltmain.sh.
20927if test -f "$ltmain"; then
20928  # See if we are running on zsh, and set the options which allow our commands through
20929  # without removal of \ escapes.
20930  if test -n "${ZSH_VERSION+set}" ; then
20931    setopt NO_GLOB_SUBST
20932  fi
20933  # Now quote all the things that may contain metacharacters while being
20934  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20935  # variables and quote the copies for generation of the libtool script.
20936  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20937    SED SHELL STRIP \
20938    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20939    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20940    deplibs_check_method reload_flag reload_cmds need_locks \
20941    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20942    lt_cv_sys_global_symbol_to_c_name_address \
20943    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20944    old_postinstall_cmds old_postuninstall_cmds \
20945    compiler_RC \
20946    CC_RC \
20947    LD_RC \
20948    lt_prog_compiler_wl_RC \
20949    lt_prog_compiler_pic_RC \
20950    lt_prog_compiler_static_RC \
20951    lt_prog_compiler_no_builtin_flag_RC \
20952    export_dynamic_flag_spec_RC \
20953    thread_safe_flag_spec_RC \
20954    whole_archive_flag_spec_RC \
20955    enable_shared_with_static_runtimes_RC \
20956    old_archive_cmds_RC \
20957    old_archive_from_new_cmds_RC \
20958    predep_objects_RC \
20959    postdep_objects_RC \
20960    predeps_RC \
20961    postdeps_RC \
20962    compiler_lib_search_path_RC \
20963    archive_cmds_RC \
20964    archive_expsym_cmds_RC \
20965    postinstall_cmds_RC \
20966    postuninstall_cmds_RC \
20967    old_archive_from_expsyms_cmds_RC \
20968    allow_undefined_flag_RC \
20969    no_undefined_flag_RC \
20970    export_symbols_cmds_RC \
20971    hardcode_libdir_flag_spec_RC \
20972    hardcode_libdir_flag_spec_ld_RC \
20973    hardcode_libdir_separator_RC \
20974    hardcode_automatic_RC \
20975    module_cmds_RC \
20976    module_expsym_cmds_RC \
20977    lt_cv_prog_compiler_c_o_RC \
20978    exclude_expsyms_RC \
20979    include_expsyms_RC; do
20980
20981    case $var in
20982    old_archive_cmds_RC | \
20983    old_archive_from_new_cmds_RC | \
20984    archive_cmds_RC | \
20985    archive_expsym_cmds_RC | \
20986    module_cmds_RC | \
20987    module_expsym_cmds_RC | \
20988    old_archive_from_expsyms_cmds_RC | \
20989    export_symbols_cmds_RC | \
20990    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20991    postinstall_cmds | postuninstall_cmds | \
20992    old_postinstall_cmds | old_postuninstall_cmds | \
20993    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20994      # Double-quote double-evaled strings.
20995      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20996      ;;
20997    *)
20998      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20999      ;;
21000    esac
21001  done
21002
21003  case $lt_echo in
21004  *'\$0 --fallback-echo"')
21005    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21006    ;;
21007  esac
21008
21009cfgfile="$ofile"
21010
21011  cat <<__EOF__ >> "$cfgfile"
21012# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21013
21014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21015
21016# Shell to use when invoking shell scripts.
21017SHELL=$lt_SHELL
21018
21019# Whether or not to build shared libraries.
21020build_libtool_libs=$enable_shared
21021
21022# Whether or not to build static libraries.
21023build_old_libs=$enable_static
21024
21025# Whether or not to add -lc for building shared libraries.
21026build_libtool_need_lc=$archive_cmds_need_lc_RC
21027
21028# Whether or not to disallow shared libs when runtime libs are static
21029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21030
21031# Whether or not to optimize for fast installation.
21032fast_install=$enable_fast_install
21033
21034# The host system.
21035host_alias=$host_alias
21036host=$host
21037host_os=$host_os
21038
21039# The build system.
21040build_alias=$build_alias
21041build=$build
21042build_os=$build_os
21043
21044# An echo program that does not interpret backslashes.
21045echo=$lt_echo
21046
21047# The archiver.
21048AR=$lt_AR
21049AR_FLAGS=$lt_AR_FLAGS
21050
21051# A C compiler.
21052LTCC=$lt_LTCC
21053
21054# LTCC compiler flags.
21055LTCFLAGS=$lt_LTCFLAGS
21056
21057# A language-specific compiler.
21058CC=$lt_compiler_RC
21059
21060# Is the compiler the GNU C compiler?
21061with_gcc=$GCC_RC
21062
21063# An ERE matcher.
21064EGREP=$lt_EGREP
21065
21066# The linker used to build libraries.
21067LD=$lt_LD_RC
21068
21069# Whether we need hard or soft links.
21070LN_S=$lt_LN_S
21071
21072# A BSD-compatible nm program.
21073NM=$lt_NM
21074
21075# A symbol stripping program
21076STRIP=$lt_STRIP
21077
21078# Used to examine libraries when file_magic_cmd begins "file"
21079MAGIC_CMD=$MAGIC_CMD
21080
21081# Used on cygwin: DLL creation program.
21082DLLTOOL="$DLLTOOL"
21083
21084# Used on cygwin: object dumper.
21085OBJDUMP="$OBJDUMP"
21086
21087# Used on cygwin: assembler.
21088AS="$AS"
21089
21090# The name of the directory that contains temporary libtool files.
21091objdir=$objdir
21092
21093# How to create reloadable object files.
21094reload_flag=$lt_reload_flag
21095reload_cmds=$lt_reload_cmds
21096
21097# How to pass a linker flag through the compiler.
21098wl=$lt_lt_prog_compiler_wl_RC
21099
21100# Object file suffix (normally "o").
21101objext="$ac_objext"
21102
21103# Old archive suffix (normally "a").
21104libext="$libext"
21105
21106# Shared library suffix (normally ".so").
21107shrext_cmds='$shrext_cmds'
21108
21109# Executable file suffix (normally "").
21110exeext="$exeext"
21111
21112# Additional compiler flags for building library objects.
21113pic_flag=$lt_lt_prog_compiler_pic_RC
21114pic_mode=$pic_mode
21115
21116# What is the maximum length of a command?
21117max_cmd_len=$lt_cv_sys_max_cmd_len
21118
21119# Does compiler simultaneously support -c and -o options?
21120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21121
21122# Must we lock files when doing compilation?
21123need_locks=$lt_need_locks
21124
21125# Do we need the lib prefix for modules?
21126need_lib_prefix=$need_lib_prefix
21127
21128# Do we need a version for libraries?
21129need_version=$need_version
21130
21131# Whether dlopen is supported.
21132dlopen_support=$enable_dlopen
21133
21134# Whether dlopen of programs is supported.
21135dlopen_self=$enable_dlopen_self
21136
21137# Whether dlopen of statically linked programs is supported.
21138dlopen_self_static=$enable_dlopen_self_static
21139
21140# Compiler flag to prevent dynamic linking.
21141link_static_flag=$lt_lt_prog_compiler_static_RC
21142
21143# Compiler flag to turn off builtin functions.
21144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21145
21146# Compiler flag to allow reflexive dlopens.
21147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21148
21149# Compiler flag to generate shared objects directly from archives.
21150whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21151
21152# Compiler flag to generate thread-safe objects.
21153thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21154
21155# Library versioning type.
21156version_type=$version_type
21157
21158# Format of library name prefix.
21159libname_spec=$lt_libname_spec
21160
21161# List of archive names.  First name is the real one, the rest are links.
21162# The last name is the one that the linker finds with -lNAME.
21163library_names_spec=$lt_library_names_spec
21164
21165# The coded name of the library, if different from the real name.
21166soname_spec=$lt_soname_spec
21167
21168# Commands used to build and install an old-style archive.
21169RANLIB=$lt_RANLIB
21170old_archive_cmds=$lt_old_archive_cmds_RC
21171old_postinstall_cmds=$lt_old_postinstall_cmds
21172old_postuninstall_cmds=$lt_old_postuninstall_cmds
21173
21174# Create an old-style archive from a shared archive.
21175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21176
21177# Create a temporary old-style archive to link instead of a shared archive.
21178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21179
21180# Commands used to build and install a shared archive.
21181archive_cmds=$lt_archive_cmds_RC
21182archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21183postinstall_cmds=$lt_postinstall_cmds
21184postuninstall_cmds=$lt_postuninstall_cmds
21185
21186# Commands used to build a loadable module (assumed same as above if empty)
21187module_cmds=$lt_module_cmds_RC
21188module_expsym_cmds=$lt_module_expsym_cmds_RC
21189
21190# Commands to strip libraries.
21191old_striplib=$lt_old_striplib
21192striplib=$lt_striplib
21193
21194# Dependencies to place before the objects being linked to create a
21195# shared library.
21196predep_objects=$lt_predep_objects_RC
21197
21198# Dependencies to place after the objects being linked to create a
21199# shared library.
21200postdep_objects=$lt_postdep_objects_RC
21201
21202# Dependencies to place before the objects being linked to create a
21203# shared library.
21204predeps=$lt_predeps_RC
21205
21206# Dependencies to place after the objects being linked to create a
21207# shared library.
21208postdeps=$lt_postdeps_RC
21209
21210# The library search path used internally by the compiler when linking
21211# a shared library.
21212compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21213
21214# Method to check whether dependent libraries are shared objects.
21215deplibs_check_method=$lt_deplibs_check_method
21216
21217# Command to use when deplibs_check_method == file_magic.
21218file_magic_cmd=$lt_file_magic_cmd
21219
21220# Flag that allows shared libraries with undefined symbols to be built.
21221allow_undefined_flag=$lt_allow_undefined_flag_RC
21222
21223# Flag that forces no undefined symbols.
21224no_undefined_flag=$lt_no_undefined_flag_RC
21225
21226# Commands used to finish a libtool library installation in a directory.
21227finish_cmds=$lt_finish_cmds
21228
21229# Same as above, but a single script fragment to be evaled but not shown.
21230finish_eval=$lt_finish_eval
21231
21232# Take the output of nm and produce a listing of raw symbols and C names.
21233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21234
21235# Transform the output of nm in a proper C declaration
21236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21237
21238# Transform the output of nm in a C name address pair
21239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21240
21241# This is the shared library runtime path variable.
21242runpath_var=$runpath_var
21243
21244# This is the shared library path variable.
21245shlibpath_var=$shlibpath_var
21246
21247# Is shlibpath searched before the hard-coded library search path?
21248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21249
21250# How to hardcode a shared library path into an executable.
21251hardcode_action=$hardcode_action_RC
21252
21253# Whether we should hardcode library paths into libraries.
21254hardcode_into_libs=$hardcode_into_libs
21255
21256# Flag to hardcode \$libdir into a binary during linking.
21257# This must work even if \$libdir does not exist.
21258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21259
21260# If ld is used when linking, flag to hardcode \$libdir into
21261# a binary during linking. This must work even if \$libdir does
21262# not exist.
21263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21264
21265# Whether we need a single -rpath flag with a separated argument.
21266hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21267
21268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21269# resulting binary.
21270hardcode_direct=$hardcode_direct_RC
21271
21272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21273# resulting binary.
21274hardcode_minus_L=$hardcode_minus_L_RC
21275
21276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21277# the resulting binary.
21278hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21279
21280# Set to yes if building a shared library automatically hardcodes DIR into the library
21281# and all subsequent libraries and executables linked against it.
21282hardcode_automatic=$hardcode_automatic_RC
21283
21284# Variables whose values should be saved in libtool wrapper scripts and
21285# restored at relink time.
21286variables_saved_for_relink="$variables_saved_for_relink"
21287
21288# Whether libtool must link a program against all its dependency libraries.
21289link_all_deplibs=$link_all_deplibs_RC
21290
21291# Compile-time system search path for libraries
21292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21293
21294# Run-time system search path for libraries
21295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21296
21297# Fix the shell variable \$srcfile for the compiler.
21298fix_srcfile_path="$fix_srcfile_path_RC"
21299
21300# Set to yes if exported symbols are required.
21301always_export_symbols=$always_export_symbols_RC
21302
21303# The commands to list exported symbols.
21304export_symbols_cmds=$lt_export_symbols_cmds_RC
21305
21306# The commands to extract the exported symbol list from a shared archive.
21307extract_expsyms_cmds=$lt_extract_expsyms_cmds
21308
21309# Symbols that should not be listed in the preloaded symbols.
21310exclude_expsyms=$lt_exclude_expsyms_RC
21311
21312# Symbols that must always be exported.
21313include_expsyms=$lt_include_expsyms_RC
21314
21315# ### END LIBTOOL TAG CONFIG: $tagname
21316
21317__EOF__
21318
21319
21320else
21321  # If there is no Makefile yet, we rely on a make rule to execute
21322  # `config.status --recheck' to rerun these tests and create the
21323  # libtool script then.
21324  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21325  if test -f "$ltmain_in"; then
21326    test -f Makefile && make "$ltmain"
21327  fi
21328fi
21329
21330
21331ac_ext=c
21332ac_cpp='$CPP $CPPFLAGS'
21333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21335ac_compiler_gnu=$ac_cv_c_compiler_gnu
21336
21337CC="$lt_save_CC"
21338
21339	;;
21340
21341      *)
21342	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21343echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21344   { (exit 1); exit 1; }; }
21345	;;
21346      esac
21347
21348      # Append the new tag name to the list of available tags.
21349      if test -n "$tagname" ; then
21350      available_tags="$available_tags $tagname"
21351    fi
21352    fi
21353  done
21354  IFS="$lt_save_ifs"
21355
21356  # Now substitute the updated list of available tags.
21357  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21358    mv "${ofile}T" "$ofile"
21359    chmod +x "$ofile"
21360  else
21361    rm -f "${ofile}T"
21362    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21363echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21364   { (exit 1); exit 1; }; }
21365  fi
21366fi
21367
21368
21369
21370# This can be used to rebuild libtool when needed
21371LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21372
21373# Always use our own libtool.
21374LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21375
21376# Prevent multiple expansion
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399  CFLAG_VISIBILITY=
21400  HAVE_VISIBILITY=0
21401  if test -n "$GCC"; then
21402    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
21403echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
21404    if test "${gl_cv_cc_visibility+set}" = set; then
21405  echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407
21408      gl_save_CFLAGS="$CFLAGS"
21409      CFLAGS="$CFLAGS -fvisibility=hidden"
21410      cat >conftest.$ac_ext <<_ACEOF
21411/* confdefs.h.  */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h.  */
21416extern __attribute__((__visibility__("hidden"))) int hiddenvar;
21417         extern __attribute__((__visibility__("default"))) int exportedvar;
21418         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
21419         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
21420int
21421main ()
21422{
21423
21424  ;
21425  return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext
21429if { (ac_try="$ac_compile"
21430case "(($ac_try" in
21431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432  *) ac_try_echo=$ac_try;;
21433esac
21434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435  (eval "$ac_compile") 2>conftest.er1
21436  ac_status=$?
21437  grep -v '^ *+' conftest.er1 >conftest.err
21438  rm -f conftest.er1
21439  cat conftest.err >&5
21440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441  (exit $ac_status); } &&
21442	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21443  { (case "(($ac_try" in
21444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445  *) ac_try_echo=$ac_try;;
21446esac
21447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448  (eval "$ac_try") 2>&5
21449  ac_status=$?
21450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451  (exit $ac_status); }; } &&
21452	 { ac_try='test -s conftest.$ac_objext'
21453  { (case "(($ac_try" in
21454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455  *) ac_try_echo=$ac_try;;
21456esac
21457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458  (eval "$ac_try") 2>&5
21459  ac_status=$?
21460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461  (exit $ac_status); }; }; then
21462  gl_cv_cc_visibility=yes
21463else
21464  echo "$as_me: failed program was:" >&5
21465sed 's/^/| /' conftest.$ac_ext >&5
21466
21467	gl_cv_cc_visibility=no
21468fi
21469
21470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471      CFLAGS="$gl_save_CFLAGS"
21472fi
21473
21474    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
21475echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
21476    if test $gl_cv_cc_visibility = yes; then
21477      CFLAG_VISIBILITY="-fvisibility=hidden"
21478      HAVE_VISIBILITY=1
21479    fi
21480  fi
21481
21482
21483
21484cat >>confdefs.h <<_ACEOF
21485#define HAVE_VISIBILITY $HAVE_VISIBILITY
21486_ACEOF
21487
21488
21489
21490      if test "X$prefix" = "XNONE"; then
21491    acl_final_prefix="$ac_default_prefix"
21492  else
21493    acl_final_prefix="$prefix"
21494  fi
21495  if test "X$exec_prefix" = "XNONE"; then
21496    acl_final_exec_prefix='${prefix}'
21497  else
21498    acl_final_exec_prefix="$exec_prefix"
21499  fi
21500  acl_save_prefix="$prefix"
21501  prefix="$acl_final_prefix"
21502  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21503  prefix="$acl_save_prefix"
21504
21505
21506
21507                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21508echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21509if test "${acl_cv_rpath+set}" = set; then
21510  echo $ECHO_N "(cached) $ECHO_C" >&6
21511else
21512
21513    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21514    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21515    . ./conftest.sh
21516    rm -f ./conftest.sh
21517    acl_cv_rpath=done
21518
21519fi
21520{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21521echo "${ECHO_T}$acl_cv_rpath" >&6; }
21522  wl="$acl_cv_wl"
21523  libext="$acl_cv_libext"
21524  shlibext="$acl_cv_shlibext"
21525  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21526  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21527  hardcode_direct="$acl_cv_hardcode_direct"
21528  hardcode_minus_L="$acl_cv_hardcode_minus_L"
21529    # Check whether --enable-rpath was given.
21530if test "${enable_rpath+set}" = set; then
21531  enableval=$enable_rpath; :
21532else
21533  enable_rpath=yes
21534fi
21535
21536
21537
21538                  acl_libdirstem=lib
21539  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21540  if test -n "$searchpath"; then
21541    acl_save_IFS="${IFS= 	}"; IFS=":"
21542    for searchdir in $searchpath; do
21543      if test -d "$searchdir"; then
21544        case "$searchdir" in
21545          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21546          *) searchdir=`cd "$searchdir" && pwd`
21547             case "$searchdir" in
21548               */lib64 ) acl_libdirstem=lib64 ;;
21549             esac ;;
21550        esac
21551      fi
21552    done
21553    IFS="$acl_save_IFS"
21554  fi
21555
21556
21557
21558
21559
21560
21561
21562
21563    use_additional=yes
21564
21565  acl_save_prefix="$prefix"
21566  prefix="$acl_final_prefix"
21567  acl_save_exec_prefix="$exec_prefix"
21568  exec_prefix="$acl_final_exec_prefix"
21569
21570    eval additional_includedir=\"$includedir\"
21571    eval additional_libdir=\"$libdir\"
21572
21573  exec_prefix="$acl_save_exec_prefix"
21574  prefix="$acl_save_prefix"
21575
21576
21577# Check whether --with-libiconv-prefix was given.
21578if test "${with_libiconv_prefix+set}" = set; then
21579  withval=$with_libiconv_prefix;
21580    if test "X$withval" = "Xno"; then
21581      use_additional=no
21582    else
21583      if test "X$withval" = "X"; then
21584
21585  acl_save_prefix="$prefix"
21586  prefix="$acl_final_prefix"
21587  acl_save_exec_prefix="$exec_prefix"
21588  exec_prefix="$acl_final_exec_prefix"
21589
21590          eval additional_includedir=\"$includedir\"
21591          eval additional_libdir=\"$libdir\"
21592
21593  exec_prefix="$acl_save_exec_prefix"
21594  prefix="$acl_save_prefix"
21595
21596      else
21597        additional_includedir="$withval/include"
21598        additional_libdir="$withval/$acl_libdirstem"
21599      fi
21600    fi
21601
21602fi
21603
21604      LIBICONV=
21605  LTLIBICONV=
21606  INCICONV=
21607  rpathdirs=
21608  ltrpathdirs=
21609  names_already_handled=
21610  names_next_round='iconv '
21611  while test -n "$names_next_round"; do
21612    names_this_round="$names_next_round"
21613    names_next_round=
21614    for name in $names_this_round; do
21615      already_handled=
21616      for n in $names_already_handled; do
21617        if test "$n" = "$name"; then
21618          already_handled=yes
21619          break
21620        fi
21621      done
21622      if test -z "$already_handled"; then
21623        names_already_handled="$names_already_handled $name"
21624                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21625        eval value=\"\$HAVE_LIB$uppername\"
21626        if test -n "$value"; then
21627          if test "$value" = yes; then
21628            eval value=\"\$LIB$uppername\"
21629            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21630            eval value=\"\$LTLIB$uppername\"
21631            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21632          else
21633                                    :
21634          fi
21635        else
21636                              found_dir=
21637          found_la=
21638          found_so=
21639          found_a=
21640          if test $use_additional = yes; then
21641            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21642              found_dir="$additional_libdir"
21643              found_so="$additional_libdir/lib$name.$shlibext"
21644              if test -f "$additional_libdir/lib$name.la"; then
21645                found_la="$additional_libdir/lib$name.la"
21646              fi
21647            else
21648              if test -f "$additional_libdir/lib$name.$libext"; then
21649                found_dir="$additional_libdir"
21650                found_a="$additional_libdir/lib$name.$libext"
21651                if test -f "$additional_libdir/lib$name.la"; then
21652                  found_la="$additional_libdir/lib$name.la"
21653                fi
21654              fi
21655            fi
21656          fi
21657          if test "X$found_dir" = "X"; then
21658            for x in $LDFLAGS $LTLIBICONV; do
21659
21660  acl_save_prefix="$prefix"
21661  prefix="$acl_final_prefix"
21662  acl_save_exec_prefix="$exec_prefix"
21663  exec_prefix="$acl_final_exec_prefix"
21664  eval x=\"$x\"
21665  exec_prefix="$acl_save_exec_prefix"
21666  prefix="$acl_save_prefix"
21667
21668              case "$x" in
21669                -L*)
21670                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21671                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21672                    found_dir="$dir"
21673                    found_so="$dir/lib$name.$shlibext"
21674                    if test -f "$dir/lib$name.la"; then
21675                      found_la="$dir/lib$name.la"
21676                    fi
21677                  else
21678                    if test -f "$dir/lib$name.$libext"; then
21679                      found_dir="$dir"
21680                      found_a="$dir/lib$name.$libext"
21681                      if test -f "$dir/lib$name.la"; then
21682                        found_la="$dir/lib$name.la"
21683                      fi
21684                    fi
21685                  fi
21686                  ;;
21687              esac
21688              if test "X$found_dir" != "X"; then
21689                break
21690              fi
21691            done
21692          fi
21693          if test "X$found_dir" != "X"; then
21694                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21695            if test "X$found_so" != "X"; then
21696                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21697                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21698              else
21699                                                                                haveit=
21700                for x in $ltrpathdirs; do
21701                  if test "X$x" = "X$found_dir"; then
21702                    haveit=yes
21703                    break
21704                  fi
21705                done
21706                if test -z "$haveit"; then
21707                  ltrpathdirs="$ltrpathdirs $found_dir"
21708                fi
21709                                if test "$hardcode_direct" = yes; then
21710                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21711                else
21712                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21713                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21714                                                            haveit=
21715                    for x in $rpathdirs; do
21716                      if test "X$x" = "X$found_dir"; then
21717                        haveit=yes
21718                        break
21719                      fi
21720                    done
21721                    if test -z "$haveit"; then
21722                      rpathdirs="$rpathdirs $found_dir"
21723                    fi
21724                  else
21725                                                                                haveit=
21726                    for x in $LDFLAGS $LIBICONV; do
21727
21728  acl_save_prefix="$prefix"
21729  prefix="$acl_final_prefix"
21730  acl_save_exec_prefix="$exec_prefix"
21731  exec_prefix="$acl_final_exec_prefix"
21732  eval x=\"$x\"
21733  exec_prefix="$acl_save_exec_prefix"
21734  prefix="$acl_save_prefix"
21735
21736                      if test "X$x" = "X-L$found_dir"; then
21737                        haveit=yes
21738                        break
21739                      fi
21740                    done
21741                    if test -z "$haveit"; then
21742                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21743                    fi
21744                    if test "$hardcode_minus_L" != no; then
21745                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21746                    else
21747                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21748                    fi
21749                  fi
21750                fi
21751              fi
21752            else
21753              if test "X$found_a" != "X"; then
21754                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21755              else
21756                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21757              fi
21758            fi
21759                        additional_includedir=
21760            case "$found_dir" in
21761              */$acl_libdirstem | */$acl_libdirstem/)
21762                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21763                additional_includedir="$basedir/include"
21764                ;;
21765            esac
21766            if test "X$additional_includedir" != "X"; then
21767                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21768                haveit=
21769                if test "X$additional_includedir" = "X/usr/local/include"; then
21770                  if test -n "$GCC"; then
21771                    case $host_os in
21772                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21773                    esac
21774                  fi
21775                fi
21776                if test -z "$haveit"; then
21777                  for x in $CPPFLAGS $INCICONV; do
21778
21779  acl_save_prefix="$prefix"
21780  prefix="$acl_final_prefix"
21781  acl_save_exec_prefix="$exec_prefix"
21782  exec_prefix="$acl_final_exec_prefix"
21783  eval x=\"$x\"
21784  exec_prefix="$acl_save_exec_prefix"
21785  prefix="$acl_save_prefix"
21786
21787                    if test "X$x" = "X-I$additional_includedir"; then
21788                      haveit=yes
21789                      break
21790                    fi
21791                  done
21792                  if test -z "$haveit"; then
21793                    if test -d "$additional_includedir"; then
21794                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21795                    fi
21796                  fi
21797                fi
21798              fi
21799            fi
21800                        if test -n "$found_la"; then
21801                                                        save_libdir="$libdir"
21802              case "$found_la" in
21803                */* | *\\*) . "$found_la" ;;
21804                *) . "./$found_la" ;;
21805              esac
21806              libdir="$save_libdir"
21807                            for dep in $dependency_libs; do
21808                case "$dep" in
21809                  -L*)
21810                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21811                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21812                      haveit=
21813                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21814                        if test -n "$GCC"; then
21815                          case $host_os in
21816                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21817                          esac
21818                        fi
21819                      fi
21820                      if test -z "$haveit"; then
21821                        haveit=
21822                        for x in $LDFLAGS $LIBICONV; do
21823
21824  acl_save_prefix="$prefix"
21825  prefix="$acl_final_prefix"
21826  acl_save_exec_prefix="$exec_prefix"
21827  exec_prefix="$acl_final_exec_prefix"
21828  eval x=\"$x\"
21829  exec_prefix="$acl_save_exec_prefix"
21830  prefix="$acl_save_prefix"
21831
21832                          if test "X$x" = "X-L$additional_libdir"; then
21833                            haveit=yes
21834                            break
21835                          fi
21836                        done
21837                        if test -z "$haveit"; then
21838                          if test -d "$additional_libdir"; then
21839                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21840                          fi
21841                        fi
21842                        haveit=
21843                        for x in $LDFLAGS $LTLIBICONV; do
21844
21845  acl_save_prefix="$prefix"
21846  prefix="$acl_final_prefix"
21847  acl_save_exec_prefix="$exec_prefix"
21848  exec_prefix="$acl_final_exec_prefix"
21849  eval x=\"$x\"
21850  exec_prefix="$acl_save_exec_prefix"
21851  prefix="$acl_save_prefix"
21852
21853                          if test "X$x" = "X-L$additional_libdir"; then
21854                            haveit=yes
21855                            break
21856                          fi
21857                        done
21858                        if test -z "$haveit"; then
21859                          if test -d "$additional_libdir"; then
21860                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21861                          fi
21862                        fi
21863                      fi
21864                    fi
21865                    ;;
21866                  -R*)
21867                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21868                    if test "$enable_rpath" != no; then
21869                                                                  haveit=
21870                      for x in $rpathdirs; do
21871                        if test "X$x" = "X$dir"; then
21872                          haveit=yes
21873                          break
21874                        fi
21875                      done
21876                      if test -z "$haveit"; then
21877                        rpathdirs="$rpathdirs $dir"
21878                      fi
21879                                                                  haveit=
21880                      for x in $ltrpathdirs; do
21881                        if test "X$x" = "X$dir"; then
21882                          haveit=yes
21883                          break
21884                        fi
21885                      done
21886                      if test -z "$haveit"; then
21887                        ltrpathdirs="$ltrpathdirs $dir"
21888                      fi
21889                    fi
21890                    ;;
21891                  -l*)
21892                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21893                    ;;
21894                  *.la)
21895                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21896                    ;;
21897                  *)
21898                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21899                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21900                    ;;
21901                esac
21902              done
21903            fi
21904          else
21905                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21906            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21907          fi
21908        fi
21909      fi
21910    done
21911  done
21912  if test "X$rpathdirs" != "X"; then
21913    if test -n "$hardcode_libdir_separator"; then
21914                        alldirs=
21915      for found_dir in $rpathdirs; do
21916        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21917      done
21918            acl_save_libdir="$libdir"
21919      libdir="$alldirs"
21920      eval flag=\"$hardcode_libdir_flag_spec\"
21921      libdir="$acl_save_libdir"
21922      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21923    else
21924            for found_dir in $rpathdirs; do
21925        acl_save_libdir="$libdir"
21926        libdir="$found_dir"
21927        eval flag=\"$hardcode_libdir_flag_spec\"
21928        libdir="$acl_save_libdir"
21929        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21930      done
21931    fi
21932  fi
21933  if test "X$ltrpathdirs" != "X"; then
21934            for found_dir in $ltrpathdirs; do
21935      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21936    done
21937  fi
21938
21939
21940
21941
21942
21943
21944
21945          am_save_CPPFLAGS="$CPPFLAGS"
21946
21947  for element in $INCICONV; do
21948    haveit=
21949    for x in $CPPFLAGS; do
21950
21951  acl_save_prefix="$prefix"
21952  prefix="$acl_final_prefix"
21953  acl_save_exec_prefix="$exec_prefix"
21954  exec_prefix="$acl_final_exec_prefix"
21955  eval x=\"$x\"
21956  exec_prefix="$acl_save_exec_prefix"
21957  prefix="$acl_save_prefix"
21958
21959      if test "X$x" = "X$element"; then
21960        haveit=yes
21961        break
21962      fi
21963    done
21964    if test -z "$haveit"; then
21965      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21966    fi
21967  done
21968
21969
21970  { echo "$as_me:$LINENO: checking for iconv" >&5
21971echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21972if test "${am_cv_func_iconv+set}" = set; then
21973  echo $ECHO_N "(cached) $ECHO_C" >&6
21974else
21975
21976    am_cv_func_iconv="no, consider installing GNU libiconv"
21977    am_cv_lib_iconv=no
21978    cat >conftest.$ac_ext <<_ACEOF
21979/* confdefs.h.  */
21980_ACEOF
21981cat confdefs.h >>conftest.$ac_ext
21982cat >>conftest.$ac_ext <<_ACEOF
21983/* end confdefs.h.  */
21984#include <stdlib.h>
21985#include <iconv.h>
21986int
21987main ()
21988{
21989iconv_t cd = iconv_open("","");
21990       iconv(cd,NULL,NULL,NULL,NULL);
21991       iconv_close(cd);
21992  ;
21993  return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext conftest$ac_exeext
21997if { (ac_try="$ac_link"
21998case "(($ac_try" in
21999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000  *) ac_try_echo=$ac_try;;
22001esac
22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003  (eval "$ac_link") 2>conftest.er1
22004  ac_status=$?
22005  grep -v '^ *+' conftest.er1 >conftest.err
22006  rm -f conftest.er1
22007  cat conftest.err >&5
22008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009  (exit $ac_status); } &&
22010	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22011  { (case "(($ac_try" in
22012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013  *) ac_try_echo=$ac_try;;
22014esac
22015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016  (eval "$ac_try") 2>&5
22017  ac_status=$?
22018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019  (exit $ac_status); }; } &&
22020	 { ac_try='test -s conftest$ac_exeext'
22021  { (case "(($ac_try" in
22022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023  *) ac_try_echo=$ac_try;;
22024esac
22025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026  (eval "$ac_try") 2>&5
22027  ac_status=$?
22028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029  (exit $ac_status); }; }; then
22030  am_cv_func_iconv=yes
22031else
22032  echo "$as_me: failed program was:" >&5
22033sed 's/^/| /' conftest.$ac_ext >&5
22034
22035
22036fi
22037
22038rm -f core conftest.err conftest.$ac_objext \
22039      conftest$ac_exeext conftest.$ac_ext
22040    if test "$am_cv_func_iconv" != yes; then
22041      am_save_LIBS="$LIBS"
22042      LIBS="$LIBS $LIBICONV"
22043      cat >conftest.$ac_ext <<_ACEOF
22044/* confdefs.h.  */
22045_ACEOF
22046cat confdefs.h >>conftest.$ac_ext
22047cat >>conftest.$ac_ext <<_ACEOF
22048/* end confdefs.h.  */
22049#include <stdlib.h>
22050#include <iconv.h>
22051int
22052main ()
22053{
22054iconv_t cd = iconv_open("","");
22055         iconv(cd,NULL,NULL,NULL,NULL);
22056         iconv_close(cd);
22057  ;
22058  return 0;
22059}
22060_ACEOF
22061rm -f conftest.$ac_objext conftest$ac_exeext
22062if { (ac_try="$ac_link"
22063case "(($ac_try" in
22064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065  *) ac_try_echo=$ac_try;;
22066esac
22067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068  (eval "$ac_link") 2>conftest.er1
22069  ac_status=$?
22070  grep -v '^ *+' conftest.er1 >conftest.err
22071  rm -f conftest.er1
22072  cat conftest.err >&5
22073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074  (exit $ac_status); } &&
22075	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22076  { (case "(($ac_try" in
22077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078  *) ac_try_echo=$ac_try;;
22079esac
22080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081  (eval "$ac_try") 2>&5
22082  ac_status=$?
22083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084  (exit $ac_status); }; } &&
22085	 { ac_try='test -s conftest$ac_exeext'
22086  { (case "(($ac_try" in
22087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088  *) ac_try_echo=$ac_try;;
22089esac
22090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091  (eval "$ac_try") 2>&5
22092  ac_status=$?
22093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094  (exit $ac_status); }; }; then
22095  am_cv_lib_iconv=yes
22096        am_cv_func_iconv=yes
22097else
22098  echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100
22101
22102fi
22103
22104rm -f core conftest.err conftest.$ac_objext \
22105      conftest$ac_exeext conftest.$ac_ext
22106      LIBS="$am_save_LIBS"
22107    fi
22108
22109fi
22110{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22111echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22112  if test "$am_cv_func_iconv" = yes; then
22113
22114cat >>confdefs.h <<\_ACEOF
22115#define HAVE_ICONV 1
22116_ACEOF
22117
22118  fi
22119  if test "$am_cv_lib_iconv" = yes; then
22120    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22121echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22122    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22123echo "${ECHO_T}$LIBICONV" >&6; }
22124  else
22125            CPPFLAGS="$am_save_CPPFLAGS"
22126    LIBICONV=
22127    LTLIBICONV=
22128  fi
22129
22130
22131
22132  if test "$am_cv_func_iconv" = yes; then
22133    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22134echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22135    if test "${am_cv_proto_iconv+set}" = set; then
22136  echo $ECHO_N "(cached) $ECHO_C" >&6
22137else
22138
22139      cat >conftest.$ac_ext <<_ACEOF
22140/* confdefs.h.  */
22141_ACEOF
22142cat confdefs.h >>conftest.$ac_ext
22143cat >>conftest.$ac_ext <<_ACEOF
22144/* end confdefs.h.  */
22145
22146#include <stdlib.h>
22147#include <iconv.h>
22148extern
22149#ifdef __cplusplus
22150"C"
22151#endif
22152#if defined(__STDC__) || defined(__cplusplus)
22153size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22154#else
22155size_t iconv();
22156#endif
22157
22158int
22159main ()
22160{
22161
22162  ;
22163  return 0;
22164}
22165_ACEOF
22166rm -f conftest.$ac_objext
22167if { (ac_try="$ac_compile"
22168case "(($ac_try" in
22169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170  *) ac_try_echo=$ac_try;;
22171esac
22172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173  (eval "$ac_compile") 2>conftest.er1
22174  ac_status=$?
22175  grep -v '^ *+' conftest.er1 >conftest.err
22176  rm -f conftest.er1
22177  cat conftest.err >&5
22178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179  (exit $ac_status); } &&
22180	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22181  { (case "(($ac_try" in
22182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183  *) ac_try_echo=$ac_try;;
22184esac
22185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186  (eval "$ac_try") 2>&5
22187  ac_status=$?
22188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189  (exit $ac_status); }; } &&
22190	 { ac_try='test -s conftest.$ac_objext'
22191  { (case "(($ac_try" in
22192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193  *) ac_try_echo=$ac_try;;
22194esac
22195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196  (eval "$ac_try") 2>&5
22197  ac_status=$?
22198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199  (exit $ac_status); }; }; then
22200  am_cv_proto_iconv_arg1=""
22201else
22202  echo "$as_me: failed program was:" >&5
22203sed 's/^/| /' conftest.$ac_ext >&5
22204
22205	am_cv_proto_iconv_arg1="const"
22206fi
22207
22208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209      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);"
22210fi
22211
22212    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22213    { echo "$as_me:$LINENO: result: ${ac_t:-
22214         }$am_cv_proto_iconv" >&5
22215echo "${ECHO_T}${ac_t:-
22216         }$am_cv_proto_iconv" >&6; }
22217
22218cat >>confdefs.h <<_ACEOF
22219#define ICONV_CONST $am_cv_proto_iconv_arg1
22220_ACEOF
22221
22222  fi
22223
22224
22225  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22226echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
22227    # Check whether --enable-nls was given.
22228if test "${enable_nls+set}" = set; then
22229  enableval=$enable_nls; USE_NLS=$enableval
22230else
22231  USE_NLS=yes
22232fi
22233
22234  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
22235echo "${ECHO_T}$USE_NLS" >&6; }
22236
22237
22238
22239
22240
22241
22242# Prepare PATH_SEPARATOR.
22243# The user is always right.
22244if test "${PATH_SEPARATOR+set}" != set; then
22245  echo "#! /bin/sh" >conf$$.sh
22246  echo  "exit 0"   >>conf$$.sh
22247  chmod +x conf$$.sh
22248  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22249    PATH_SEPARATOR=';'
22250  else
22251    PATH_SEPARATOR=:
22252  fi
22253  rm -f conf$$.sh
22254fi
22255
22256# Find out how to test for executable files. Don't use a zero-byte file,
22257# as systems may use methods other than mode bits to determine executability.
22258cat >conf$$.file <<_ASEOF
22259#! /bin/sh
22260exit 0
22261_ASEOF
22262chmod +x conf$$.file
22263if test -x conf$$.file >/dev/null 2>&1; then
22264  ac_executable_p="test -x"
22265else
22266  ac_executable_p="test -f"
22267fi
22268rm -f conf$$.file
22269
22270# Extract the first word of "msgfmt", so it can be a program name with args.
22271set dummy msgfmt; ac_word=$2
22272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22274if test "${ac_cv_path_MSGFMT+set}" = set; then
22275  echo $ECHO_N "(cached) $ECHO_C" >&6
22276else
22277  case "$MSGFMT" in
22278  [\\/]* | ?:[\\/]*)
22279    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22280    ;;
22281  *)
22282    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22283    for ac_dir in $PATH; do
22284      IFS="$ac_save_IFS"
22285      test -z "$ac_dir" && ac_dir=.
22286      for ac_exec_ext in '' $ac_executable_extensions; do
22287        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22288          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22289          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
22290     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22291            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22292            break 2
22293          fi
22294        fi
22295      done
22296    done
22297    IFS="$ac_save_IFS"
22298  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22299    ;;
22300esac
22301fi
22302MSGFMT="$ac_cv_path_MSGFMT"
22303if test "$MSGFMT" != ":"; then
22304  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22305echo "${ECHO_T}$MSGFMT" >&6; }
22306else
22307  { echo "$as_me:$LINENO: result: no" >&5
22308echo "${ECHO_T}no" >&6; }
22309fi
22310
22311  # Extract the first word of "gmsgfmt", so it can be a program name with args.
22312set dummy gmsgfmt; ac_word=$2
22313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22315if test "${ac_cv_path_GMSGFMT+set}" = set; then
22316  echo $ECHO_N "(cached) $ECHO_C" >&6
22317else
22318  case $GMSGFMT in
22319  [\\/]* | ?:[\\/]*)
22320  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22321  ;;
22322  *)
22323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22324for as_dir in $PATH
22325do
22326  IFS=$as_save_IFS
22327  test -z "$as_dir" && as_dir=.
22328  for ac_exec_ext in '' $ac_executable_extensions; do
22329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22330    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22332    break 2
22333  fi
22334done
22335done
22336IFS=$as_save_IFS
22337
22338  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22339  ;;
22340esac
22341fi
22342GMSGFMT=$ac_cv_path_GMSGFMT
22343if test -n "$GMSGFMT"; then
22344  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22345echo "${ECHO_T}$GMSGFMT" >&6; }
22346else
22347  { echo "$as_me:$LINENO: result: no" >&5
22348echo "${ECHO_T}no" >&6; }
22349fi
22350
22351
22352
22353    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22354    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
22355    *) MSGFMT_015=$MSGFMT ;;
22356  esac
22357
22358  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22359    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
22360    *) GMSGFMT_015=$GMSGFMT ;;
22361  esac
22362
22363
22364
22365# Prepare PATH_SEPARATOR.
22366# The user is always right.
22367if test "${PATH_SEPARATOR+set}" != set; then
22368  echo "#! /bin/sh" >conf$$.sh
22369  echo  "exit 0"   >>conf$$.sh
22370  chmod +x conf$$.sh
22371  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22372    PATH_SEPARATOR=';'
22373  else
22374    PATH_SEPARATOR=:
22375  fi
22376  rm -f conf$$.sh
22377fi
22378
22379# Find out how to test for executable files. Don't use a zero-byte file,
22380# as systems may use methods other than mode bits to determine executability.
22381cat >conf$$.file <<_ASEOF
22382#! /bin/sh
22383exit 0
22384_ASEOF
22385chmod +x conf$$.file
22386if test -x conf$$.file >/dev/null 2>&1; then
22387  ac_executable_p="test -x"
22388else
22389  ac_executable_p="test -f"
22390fi
22391rm -f conf$$.file
22392
22393# Extract the first word of "xgettext", so it can be a program name with args.
22394set dummy xgettext; ac_word=$2
22395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22397if test "${ac_cv_path_XGETTEXT+set}" = set; then
22398  echo $ECHO_N "(cached) $ECHO_C" >&6
22399else
22400  case "$XGETTEXT" in
22401  [\\/]* | ?:[\\/]*)
22402    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22403    ;;
22404  *)
22405    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22406    for ac_dir in $PATH; do
22407      IFS="$ac_save_IFS"
22408      test -z "$ac_dir" && ac_dir=.
22409      for ac_exec_ext in '' $ac_executable_extensions; do
22410        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22411          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22412          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
22413     (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
22414            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22415            break 2
22416          fi
22417        fi
22418      done
22419    done
22420    IFS="$ac_save_IFS"
22421  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22422    ;;
22423esac
22424fi
22425XGETTEXT="$ac_cv_path_XGETTEXT"
22426if test "$XGETTEXT" != ":"; then
22427  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22428echo "${ECHO_T}$XGETTEXT" >&6; }
22429else
22430  { echo "$as_me:$LINENO: result: no" >&5
22431echo "${ECHO_T}no" >&6; }
22432fi
22433
22434    rm -f messages.po
22435
22436    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22437    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
22438    *) XGETTEXT_015=$XGETTEXT ;;
22439  esac
22440
22441
22442
22443# Prepare PATH_SEPARATOR.
22444# The user is always right.
22445if test "${PATH_SEPARATOR+set}" != set; then
22446  echo "#! /bin/sh" >conf$$.sh
22447  echo  "exit 0"   >>conf$$.sh
22448  chmod +x conf$$.sh
22449  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22450    PATH_SEPARATOR=';'
22451  else
22452    PATH_SEPARATOR=:
22453  fi
22454  rm -f conf$$.sh
22455fi
22456
22457# Find out how to test for executable files. Don't use a zero-byte file,
22458# as systems may use methods other than mode bits to determine executability.
22459cat >conf$$.file <<_ASEOF
22460#! /bin/sh
22461exit 0
22462_ASEOF
22463chmod +x conf$$.file
22464if test -x conf$$.file >/dev/null 2>&1; then
22465  ac_executable_p="test -x"
22466else
22467  ac_executable_p="test -f"
22468fi
22469rm -f conf$$.file
22470
22471# Extract the first word of "msgmerge", so it can be a program name with args.
22472set dummy msgmerge; ac_word=$2
22473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22475if test "${ac_cv_path_MSGMERGE+set}" = set; then
22476  echo $ECHO_N "(cached) $ECHO_C" >&6
22477else
22478  case "$MSGMERGE" in
22479  [\\/]* | ?:[\\/]*)
22480    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22481    ;;
22482  *)
22483    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22484    for ac_dir in $PATH; do
22485      IFS="$ac_save_IFS"
22486      test -z "$ac_dir" && ac_dir=.
22487      for ac_exec_ext in '' $ac_executable_extensions; do
22488        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22489          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22490          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
22491            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22492            break 2
22493          fi
22494        fi
22495      done
22496    done
22497    IFS="$ac_save_IFS"
22498  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22499    ;;
22500esac
22501fi
22502MSGMERGE="$ac_cv_path_MSGMERGE"
22503if test "$MSGMERGE" != ":"; then
22504  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22505echo "${ECHO_T}$MSGMERGE" >&6; }
22506else
22507  { echo "$as_me:$LINENO: result: no" >&5
22508echo "${ECHO_T}no" >&6; }
22509fi
22510
22511
22512        test -n "$localedir" || localedir='${datadir}/locale'
22513
22514
22515  ac_config_commands="$ac_config_commands po-directories"
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22535echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
22536if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22537  echo $ECHO_N "(cached) $ECHO_C" >&6
22538else
22539  gt_save_LIBS="$LIBS"
22540     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22541     cat >conftest.$ac_ext <<_ACEOF
22542/* confdefs.h.  */
22543_ACEOF
22544cat confdefs.h >>conftest.$ac_ext
22545cat >>conftest.$ac_ext <<_ACEOF
22546/* end confdefs.h.  */
22547#include <CoreFoundation/CFPreferences.h>
22548int
22549main ()
22550{
22551CFPreferencesCopyAppValue(NULL, NULL)
22552  ;
22553  return 0;
22554}
22555_ACEOF
22556rm -f conftest.$ac_objext conftest$ac_exeext
22557if { (ac_try="$ac_link"
22558case "(($ac_try" in
22559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560  *) ac_try_echo=$ac_try;;
22561esac
22562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563  (eval "$ac_link") 2>conftest.er1
22564  ac_status=$?
22565  grep -v '^ *+' conftest.er1 >conftest.err
22566  rm -f conftest.er1
22567  cat conftest.err >&5
22568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569  (exit $ac_status); } &&
22570	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22571  { (case "(($ac_try" in
22572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573  *) ac_try_echo=$ac_try;;
22574esac
22575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576  (eval "$ac_try") 2>&5
22577  ac_status=$?
22578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579  (exit $ac_status); }; } &&
22580	 { ac_try='test -s conftest$ac_exeext'
22581  { (case "(($ac_try" in
22582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583  *) ac_try_echo=$ac_try;;
22584esac
22585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586  (eval "$ac_try") 2>&5
22587  ac_status=$?
22588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589  (exit $ac_status); }; }; then
22590  gt_cv_func_CFPreferencesCopyAppValue=yes
22591else
22592  echo "$as_me: failed program was:" >&5
22593sed 's/^/| /' conftest.$ac_ext >&5
22594
22595	gt_cv_func_CFPreferencesCopyAppValue=no
22596fi
22597
22598rm -f core conftest.err conftest.$ac_objext \
22599      conftest$ac_exeext conftest.$ac_ext
22600     LIBS="$gt_save_LIBS"
22601fi
22602{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22603echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22604  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22605
22606cat >>confdefs.h <<\_ACEOF
22607#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22608_ACEOF
22609
22610  fi
22611    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22612echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
22613if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22614  echo $ECHO_N "(cached) $ECHO_C" >&6
22615else
22616  gt_save_LIBS="$LIBS"
22617     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22618     cat >conftest.$ac_ext <<_ACEOF
22619/* confdefs.h.  */
22620_ACEOF
22621cat confdefs.h >>conftest.$ac_ext
22622cat >>conftest.$ac_ext <<_ACEOF
22623/* end confdefs.h.  */
22624#include <CoreFoundation/CFLocale.h>
22625int
22626main ()
22627{
22628CFLocaleCopyCurrent();
22629  ;
22630  return 0;
22631}
22632_ACEOF
22633rm -f conftest.$ac_objext conftest$ac_exeext
22634if { (ac_try="$ac_link"
22635case "(($ac_try" in
22636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637  *) ac_try_echo=$ac_try;;
22638esac
22639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640  (eval "$ac_link") 2>conftest.er1
22641  ac_status=$?
22642  grep -v '^ *+' conftest.er1 >conftest.err
22643  rm -f conftest.er1
22644  cat conftest.err >&5
22645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646  (exit $ac_status); } &&
22647	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22648  { (case "(($ac_try" in
22649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650  *) ac_try_echo=$ac_try;;
22651esac
22652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653  (eval "$ac_try") 2>&5
22654  ac_status=$?
22655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656  (exit $ac_status); }; } &&
22657	 { ac_try='test -s conftest$ac_exeext'
22658  { (case "(($ac_try" in
22659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660  *) ac_try_echo=$ac_try;;
22661esac
22662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663  (eval "$ac_try") 2>&5
22664  ac_status=$?
22665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666  (exit $ac_status); }; }; then
22667  gt_cv_func_CFLocaleCopyCurrent=yes
22668else
22669  echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672	gt_cv_func_CFLocaleCopyCurrent=no
22673fi
22674
22675rm -f core conftest.err conftest.$ac_objext \
22676      conftest$ac_exeext conftest.$ac_ext
22677     LIBS="$gt_save_LIBS"
22678fi
22679{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22680echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22681  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22682
22683cat >>confdefs.h <<\_ACEOF
22684#define HAVE_CFLOCALECOPYCURRENT 1
22685_ACEOF
22686
22687  fi
22688  INTL_MACOSX_LIBS=
22689  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22690    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22691  fi
22692
22693
22694
22695
22696
22697
22698  LIBINTL=
22699  LTLIBINTL=
22700  POSUB=
22701
22702    if test "$USE_NLS" = "yes"; then
22703    gt_use_preinstalled_gnugettext=no
22704
22705
22706
22707
22708
22709
22710        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22711echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
22712if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22713  echo $ECHO_N "(cached) $ECHO_C" >&6
22714else
22715  cat >conftest.$ac_ext <<_ACEOF
22716/* confdefs.h.  */
22717_ACEOF
22718cat confdefs.h >>conftest.$ac_ext
22719cat >>conftest.$ac_ext <<_ACEOF
22720/* end confdefs.h.  */
22721#include <libintl.h>
22722extern int _nl_msg_cat_cntr;
22723extern int *_nl_domain_bindings;
22724int
22725main ()
22726{
22727bindtextdomain ("", "");
22728return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22729  ;
22730  return 0;
22731}
22732_ACEOF
22733rm -f conftest.$ac_objext conftest$ac_exeext
22734if { (ac_try="$ac_link"
22735case "(($ac_try" in
22736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737  *) ac_try_echo=$ac_try;;
22738esac
22739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740  (eval "$ac_link") 2>conftest.er1
22741  ac_status=$?
22742  grep -v '^ *+' conftest.er1 >conftest.err
22743  rm -f conftest.er1
22744  cat conftest.err >&5
22745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746  (exit $ac_status); } &&
22747	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22748  { (case "(($ac_try" in
22749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750  *) ac_try_echo=$ac_try;;
22751esac
22752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753  (eval "$ac_try") 2>&5
22754  ac_status=$?
22755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756  (exit $ac_status); }; } &&
22757	 { ac_try='test -s conftest$ac_exeext'
22758  { (case "(($ac_try" in
22759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760  *) ac_try_echo=$ac_try;;
22761esac
22762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763  (eval "$ac_try") 2>&5
22764  ac_status=$?
22765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766  (exit $ac_status); }; }; then
22767  gt_cv_func_gnugettext2_libc=yes
22768else
22769  echo "$as_me: failed program was:" >&5
22770sed 's/^/| /' conftest.$ac_ext >&5
22771
22772	gt_cv_func_gnugettext2_libc=no
22773fi
22774
22775rm -f core conftest.err conftest.$ac_objext \
22776      conftest$ac_exeext conftest.$ac_ext
22777fi
22778{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22779echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
22780
22781        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22782
22783
22784
22785
22786
22787          am_save_CPPFLAGS="$CPPFLAGS"
22788
22789  for element in $INCICONV; do
22790    haveit=
22791    for x in $CPPFLAGS; do
22792
22793  acl_save_prefix="$prefix"
22794  prefix="$acl_final_prefix"
22795  acl_save_exec_prefix="$exec_prefix"
22796  exec_prefix="$acl_final_exec_prefix"
22797  eval x=\"$x\"
22798  exec_prefix="$acl_save_exec_prefix"
22799  prefix="$acl_save_prefix"
22800
22801      if test "X$x" = "X$element"; then
22802        haveit=yes
22803        break
22804      fi
22805    done
22806    if test -z "$haveit"; then
22807      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22808    fi
22809  done
22810
22811
22812  { echo "$as_me:$LINENO: checking for iconv" >&5
22813echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22814if test "${am_cv_func_iconv+set}" = set; then
22815  echo $ECHO_N "(cached) $ECHO_C" >&6
22816else
22817
22818    am_cv_func_iconv="no, consider installing GNU libiconv"
22819    am_cv_lib_iconv=no
22820    cat >conftest.$ac_ext <<_ACEOF
22821/* confdefs.h.  */
22822_ACEOF
22823cat confdefs.h >>conftest.$ac_ext
22824cat >>conftest.$ac_ext <<_ACEOF
22825/* end confdefs.h.  */
22826#include <stdlib.h>
22827#include <iconv.h>
22828int
22829main ()
22830{
22831iconv_t cd = iconv_open("","");
22832       iconv(cd,NULL,NULL,NULL,NULL);
22833       iconv_close(cd);
22834  ;
22835  return 0;
22836}
22837_ACEOF
22838rm -f conftest.$ac_objext conftest$ac_exeext
22839if { (ac_try="$ac_link"
22840case "(($ac_try" in
22841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842  *) ac_try_echo=$ac_try;;
22843esac
22844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845  (eval "$ac_link") 2>conftest.er1
22846  ac_status=$?
22847  grep -v '^ *+' conftest.er1 >conftest.err
22848  rm -f conftest.er1
22849  cat conftest.err >&5
22850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851  (exit $ac_status); } &&
22852	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853  { (case "(($ac_try" in
22854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855  *) ac_try_echo=$ac_try;;
22856esac
22857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858  (eval "$ac_try") 2>&5
22859  ac_status=$?
22860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861  (exit $ac_status); }; } &&
22862	 { ac_try='test -s conftest$ac_exeext'
22863  { (case "(($ac_try" in
22864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865  *) ac_try_echo=$ac_try;;
22866esac
22867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868  (eval "$ac_try") 2>&5
22869  ac_status=$?
22870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871  (exit $ac_status); }; }; then
22872  am_cv_func_iconv=yes
22873else
22874  echo "$as_me: failed program was:" >&5
22875sed 's/^/| /' conftest.$ac_ext >&5
22876
22877
22878fi
22879
22880rm -f core conftest.err conftest.$ac_objext \
22881      conftest$ac_exeext conftest.$ac_ext
22882    if test "$am_cv_func_iconv" != yes; then
22883      am_save_LIBS="$LIBS"
22884      LIBS="$LIBS $LIBICONV"
22885      cat >conftest.$ac_ext <<_ACEOF
22886/* confdefs.h.  */
22887_ACEOF
22888cat confdefs.h >>conftest.$ac_ext
22889cat >>conftest.$ac_ext <<_ACEOF
22890/* end confdefs.h.  */
22891#include <stdlib.h>
22892#include <iconv.h>
22893int
22894main ()
22895{
22896iconv_t cd = iconv_open("","");
22897         iconv(cd,NULL,NULL,NULL,NULL);
22898         iconv_close(cd);
22899  ;
22900  return 0;
22901}
22902_ACEOF
22903rm -f conftest.$ac_objext conftest$ac_exeext
22904if { (ac_try="$ac_link"
22905case "(($ac_try" in
22906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907  *) ac_try_echo=$ac_try;;
22908esac
22909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910  (eval "$ac_link") 2>conftest.er1
22911  ac_status=$?
22912  grep -v '^ *+' conftest.er1 >conftest.err
22913  rm -f conftest.er1
22914  cat conftest.err >&5
22915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916  (exit $ac_status); } &&
22917	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22918  { (case "(($ac_try" in
22919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920  *) ac_try_echo=$ac_try;;
22921esac
22922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923  (eval "$ac_try") 2>&5
22924  ac_status=$?
22925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926  (exit $ac_status); }; } &&
22927	 { ac_try='test -s conftest$ac_exeext'
22928  { (case "(($ac_try" in
22929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930  *) ac_try_echo=$ac_try;;
22931esac
22932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933  (eval "$ac_try") 2>&5
22934  ac_status=$?
22935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936  (exit $ac_status); }; }; then
22937  am_cv_lib_iconv=yes
22938        am_cv_func_iconv=yes
22939else
22940  echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
22943
22944fi
22945
22946rm -f core conftest.err conftest.$ac_objext \
22947      conftest$ac_exeext conftest.$ac_ext
22948      LIBS="$am_save_LIBS"
22949    fi
22950
22951fi
22952{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22953echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22954  if test "$am_cv_func_iconv" = yes; then
22955
22956cat >>confdefs.h <<\_ACEOF
22957#define HAVE_ICONV 1
22958_ACEOF
22959
22960  fi
22961  if test "$am_cv_lib_iconv" = yes; then
22962    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22963echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22964    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22965echo "${ECHO_T}$LIBICONV" >&6; }
22966  else
22967            CPPFLAGS="$am_save_CPPFLAGS"
22968    LIBICONV=
22969    LTLIBICONV=
22970  fi
22971
22972
22973
22974
22975
22976
22977
22978    use_additional=yes
22979
22980  acl_save_prefix="$prefix"
22981  prefix="$acl_final_prefix"
22982  acl_save_exec_prefix="$exec_prefix"
22983  exec_prefix="$acl_final_exec_prefix"
22984
22985    eval additional_includedir=\"$includedir\"
22986    eval additional_libdir=\"$libdir\"
22987
22988  exec_prefix="$acl_save_exec_prefix"
22989  prefix="$acl_save_prefix"
22990
22991
22992# Check whether --with-libintl-prefix was given.
22993if test "${with_libintl_prefix+set}" = set; then
22994  withval=$with_libintl_prefix;
22995    if test "X$withval" = "Xno"; then
22996      use_additional=no
22997    else
22998      if test "X$withval" = "X"; then
22999
23000  acl_save_prefix="$prefix"
23001  prefix="$acl_final_prefix"
23002  acl_save_exec_prefix="$exec_prefix"
23003  exec_prefix="$acl_final_exec_prefix"
23004
23005          eval additional_includedir=\"$includedir\"
23006          eval additional_libdir=\"$libdir\"
23007
23008  exec_prefix="$acl_save_exec_prefix"
23009  prefix="$acl_save_prefix"
23010
23011      else
23012        additional_includedir="$withval/include"
23013        additional_libdir="$withval/$acl_libdirstem"
23014      fi
23015    fi
23016
23017fi
23018
23019      LIBINTL=
23020  LTLIBINTL=
23021  INCINTL=
23022  rpathdirs=
23023  ltrpathdirs=
23024  names_already_handled=
23025  names_next_round='intl '
23026  while test -n "$names_next_round"; do
23027    names_this_round="$names_next_round"
23028    names_next_round=
23029    for name in $names_this_round; do
23030      already_handled=
23031      for n in $names_already_handled; do
23032        if test "$n" = "$name"; then
23033          already_handled=yes
23034          break
23035        fi
23036      done
23037      if test -z "$already_handled"; then
23038        names_already_handled="$names_already_handled $name"
23039                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23040        eval value=\"\$HAVE_LIB$uppername\"
23041        if test -n "$value"; then
23042          if test "$value" = yes; then
23043            eval value=\"\$LIB$uppername\"
23044            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23045            eval value=\"\$LTLIB$uppername\"
23046            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23047          else
23048                                    :
23049          fi
23050        else
23051                              found_dir=
23052          found_la=
23053          found_so=
23054          found_a=
23055          if test $use_additional = yes; then
23056            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23057              found_dir="$additional_libdir"
23058              found_so="$additional_libdir/lib$name.$shlibext"
23059              if test -f "$additional_libdir/lib$name.la"; then
23060                found_la="$additional_libdir/lib$name.la"
23061              fi
23062            else
23063              if test -f "$additional_libdir/lib$name.$libext"; then
23064                found_dir="$additional_libdir"
23065                found_a="$additional_libdir/lib$name.$libext"
23066                if test -f "$additional_libdir/lib$name.la"; then
23067                  found_la="$additional_libdir/lib$name.la"
23068                fi
23069              fi
23070            fi
23071          fi
23072          if test "X$found_dir" = "X"; then
23073            for x in $LDFLAGS $LTLIBINTL; do
23074
23075  acl_save_prefix="$prefix"
23076  prefix="$acl_final_prefix"
23077  acl_save_exec_prefix="$exec_prefix"
23078  exec_prefix="$acl_final_exec_prefix"
23079  eval x=\"$x\"
23080  exec_prefix="$acl_save_exec_prefix"
23081  prefix="$acl_save_prefix"
23082
23083              case "$x" in
23084                -L*)
23085                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23086                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23087                    found_dir="$dir"
23088                    found_so="$dir/lib$name.$shlibext"
23089                    if test -f "$dir/lib$name.la"; then
23090                      found_la="$dir/lib$name.la"
23091                    fi
23092                  else
23093                    if test -f "$dir/lib$name.$libext"; then
23094                      found_dir="$dir"
23095                      found_a="$dir/lib$name.$libext"
23096                      if test -f "$dir/lib$name.la"; then
23097                        found_la="$dir/lib$name.la"
23098                      fi
23099                    fi
23100                  fi
23101                  ;;
23102              esac
23103              if test "X$found_dir" != "X"; then
23104                break
23105              fi
23106            done
23107          fi
23108          if test "X$found_dir" != "X"; then
23109                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23110            if test "X$found_so" != "X"; then
23111                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23112                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23113              else
23114                                                                                haveit=
23115                for x in $ltrpathdirs; do
23116                  if test "X$x" = "X$found_dir"; then
23117                    haveit=yes
23118                    break
23119                  fi
23120                done
23121                if test -z "$haveit"; then
23122                  ltrpathdirs="$ltrpathdirs $found_dir"
23123                fi
23124                                if test "$hardcode_direct" = yes; then
23125                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23126                else
23127                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23128                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23129                                                            haveit=
23130                    for x in $rpathdirs; do
23131                      if test "X$x" = "X$found_dir"; then
23132                        haveit=yes
23133                        break
23134                      fi
23135                    done
23136                    if test -z "$haveit"; then
23137                      rpathdirs="$rpathdirs $found_dir"
23138                    fi
23139                  else
23140                                                                                haveit=
23141                    for x in $LDFLAGS $LIBINTL; do
23142
23143  acl_save_prefix="$prefix"
23144  prefix="$acl_final_prefix"
23145  acl_save_exec_prefix="$exec_prefix"
23146  exec_prefix="$acl_final_exec_prefix"
23147  eval x=\"$x\"
23148  exec_prefix="$acl_save_exec_prefix"
23149  prefix="$acl_save_prefix"
23150
23151                      if test "X$x" = "X-L$found_dir"; then
23152                        haveit=yes
23153                        break
23154                      fi
23155                    done
23156                    if test -z "$haveit"; then
23157                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23158                    fi
23159                    if test "$hardcode_minus_L" != no; then
23160                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23161                    else
23162                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23163                    fi
23164                  fi
23165                fi
23166              fi
23167            else
23168              if test "X$found_a" != "X"; then
23169                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23170              else
23171                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23172              fi
23173            fi
23174                        additional_includedir=
23175            case "$found_dir" in
23176              */$acl_libdirstem | */$acl_libdirstem/)
23177                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23178                additional_includedir="$basedir/include"
23179                ;;
23180            esac
23181            if test "X$additional_includedir" != "X"; then
23182                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23183                haveit=
23184                if test "X$additional_includedir" = "X/usr/local/include"; then
23185                  if test -n "$GCC"; then
23186                    case $host_os in
23187                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23188                    esac
23189                  fi
23190                fi
23191                if test -z "$haveit"; then
23192                  for x in $CPPFLAGS $INCINTL; do
23193
23194  acl_save_prefix="$prefix"
23195  prefix="$acl_final_prefix"
23196  acl_save_exec_prefix="$exec_prefix"
23197  exec_prefix="$acl_final_exec_prefix"
23198  eval x=\"$x\"
23199  exec_prefix="$acl_save_exec_prefix"
23200  prefix="$acl_save_prefix"
23201
23202                    if test "X$x" = "X-I$additional_includedir"; then
23203                      haveit=yes
23204                      break
23205                    fi
23206                  done
23207                  if test -z "$haveit"; then
23208                    if test -d "$additional_includedir"; then
23209                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23210                    fi
23211                  fi
23212                fi
23213              fi
23214            fi
23215                        if test -n "$found_la"; then
23216                                                        save_libdir="$libdir"
23217              case "$found_la" in
23218                */* | *\\*) . "$found_la" ;;
23219                *) . "./$found_la" ;;
23220              esac
23221              libdir="$save_libdir"
23222                            for dep in $dependency_libs; do
23223                case "$dep" in
23224                  -L*)
23225                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23226                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23227                      haveit=
23228                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23229                        if test -n "$GCC"; then
23230                          case $host_os in
23231                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23232                          esac
23233                        fi
23234                      fi
23235                      if test -z "$haveit"; then
23236                        haveit=
23237                        for x in $LDFLAGS $LIBINTL; do
23238
23239  acl_save_prefix="$prefix"
23240  prefix="$acl_final_prefix"
23241  acl_save_exec_prefix="$exec_prefix"
23242  exec_prefix="$acl_final_exec_prefix"
23243  eval x=\"$x\"
23244  exec_prefix="$acl_save_exec_prefix"
23245  prefix="$acl_save_prefix"
23246
23247                          if test "X$x" = "X-L$additional_libdir"; then
23248                            haveit=yes
23249                            break
23250                          fi
23251                        done
23252                        if test -z "$haveit"; then
23253                          if test -d "$additional_libdir"; then
23254                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23255                          fi
23256                        fi
23257                        haveit=
23258                        for x in $LDFLAGS $LTLIBINTL; do
23259
23260  acl_save_prefix="$prefix"
23261  prefix="$acl_final_prefix"
23262  acl_save_exec_prefix="$exec_prefix"
23263  exec_prefix="$acl_final_exec_prefix"
23264  eval x=\"$x\"
23265  exec_prefix="$acl_save_exec_prefix"
23266  prefix="$acl_save_prefix"
23267
23268                          if test "X$x" = "X-L$additional_libdir"; then
23269                            haveit=yes
23270                            break
23271                          fi
23272                        done
23273                        if test -z "$haveit"; then
23274                          if test -d "$additional_libdir"; then
23275                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23276                          fi
23277                        fi
23278                      fi
23279                    fi
23280                    ;;
23281                  -R*)
23282                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
23283                    if test "$enable_rpath" != no; then
23284                                                                  haveit=
23285                      for x in $rpathdirs; do
23286                        if test "X$x" = "X$dir"; then
23287                          haveit=yes
23288                          break
23289                        fi
23290                      done
23291                      if test -z "$haveit"; then
23292                        rpathdirs="$rpathdirs $dir"
23293                      fi
23294                                                                  haveit=
23295                      for x in $ltrpathdirs; do
23296                        if test "X$x" = "X$dir"; then
23297                          haveit=yes
23298                          break
23299                        fi
23300                      done
23301                      if test -z "$haveit"; then
23302                        ltrpathdirs="$ltrpathdirs $dir"
23303                      fi
23304                    fi
23305                    ;;
23306                  -l*)
23307                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23308                    ;;
23309                  *.la)
23310                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23311                    ;;
23312                  *)
23313                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23314                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23315                    ;;
23316                esac
23317              done
23318            fi
23319          else
23320                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23321            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23322          fi
23323        fi
23324      fi
23325    done
23326  done
23327  if test "X$rpathdirs" != "X"; then
23328    if test -n "$hardcode_libdir_separator"; then
23329                        alldirs=
23330      for found_dir in $rpathdirs; do
23331        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23332      done
23333            acl_save_libdir="$libdir"
23334      libdir="$alldirs"
23335      eval flag=\"$hardcode_libdir_flag_spec\"
23336      libdir="$acl_save_libdir"
23337      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23338    else
23339            for found_dir in $rpathdirs; do
23340        acl_save_libdir="$libdir"
23341        libdir="$found_dir"
23342        eval flag=\"$hardcode_libdir_flag_spec\"
23343        libdir="$acl_save_libdir"
23344        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23345      done
23346    fi
23347  fi
23348  if test "X$ltrpathdirs" != "X"; then
23349            for found_dir in $ltrpathdirs; do
23350      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23351    done
23352  fi
23353
23354          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23355echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23356if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23357  echo $ECHO_N "(cached) $ECHO_C" >&6
23358else
23359  gt_save_CPPFLAGS="$CPPFLAGS"
23360            CPPFLAGS="$CPPFLAGS $INCINTL"
23361            gt_save_LIBS="$LIBS"
23362            LIBS="$LIBS $LIBINTL"
23363                        cat >conftest.$ac_ext <<_ACEOF
23364/* confdefs.h.  */
23365_ACEOF
23366cat confdefs.h >>conftest.$ac_ext
23367cat >>conftest.$ac_ext <<_ACEOF
23368/* end confdefs.h.  */
23369#include <libintl.h>
23370extern int _nl_msg_cat_cntr;
23371extern
23372#ifdef __cplusplus
23373"C"
23374#endif
23375const char *_nl_expand_alias (const char *);
23376int
23377main ()
23378{
23379bindtextdomain ("", "");
23380return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23381  ;
23382  return 0;
23383}
23384_ACEOF
23385rm -f conftest.$ac_objext conftest$ac_exeext
23386if { (ac_try="$ac_link"
23387case "(($ac_try" in
23388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389  *) ac_try_echo=$ac_try;;
23390esac
23391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392  (eval "$ac_link") 2>conftest.er1
23393  ac_status=$?
23394  grep -v '^ *+' conftest.er1 >conftest.err
23395  rm -f conftest.er1
23396  cat conftest.err >&5
23397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398  (exit $ac_status); } &&
23399	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23400  { (case "(($ac_try" in
23401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402  *) ac_try_echo=$ac_try;;
23403esac
23404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405  (eval "$ac_try") 2>&5
23406  ac_status=$?
23407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408  (exit $ac_status); }; } &&
23409	 { ac_try='test -s conftest$ac_exeext'
23410  { (case "(($ac_try" in
23411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412  *) ac_try_echo=$ac_try;;
23413esac
23414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415  (eval "$ac_try") 2>&5
23416  ac_status=$?
23417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418  (exit $ac_status); }; }; then
23419  gt_cv_func_gnugettext2_libintl=yes
23420else
23421  echo "$as_me: failed program was:" >&5
23422sed 's/^/| /' conftest.$ac_ext >&5
23423
23424	gt_cv_func_gnugettext2_libintl=no
23425fi
23426
23427rm -f core conftest.err conftest.$ac_objext \
23428      conftest$ac_exeext conftest.$ac_ext
23429                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23430              LIBS="$LIBS $LIBICONV"
23431              cat >conftest.$ac_ext <<_ACEOF
23432/* confdefs.h.  */
23433_ACEOF
23434cat confdefs.h >>conftest.$ac_ext
23435cat >>conftest.$ac_ext <<_ACEOF
23436/* end confdefs.h.  */
23437#include <libintl.h>
23438extern int _nl_msg_cat_cntr;
23439extern
23440#ifdef __cplusplus
23441"C"
23442#endif
23443const char *_nl_expand_alias (const char *);
23444int
23445main ()
23446{
23447bindtextdomain ("", "");
23448return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23449  ;
23450  return 0;
23451}
23452_ACEOF
23453rm -f conftest.$ac_objext conftest$ac_exeext
23454if { (ac_try="$ac_link"
23455case "(($ac_try" in
23456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457  *) ac_try_echo=$ac_try;;
23458esac
23459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460  (eval "$ac_link") 2>conftest.er1
23461  ac_status=$?
23462  grep -v '^ *+' conftest.er1 >conftest.err
23463  rm -f conftest.er1
23464  cat conftest.err >&5
23465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466  (exit $ac_status); } &&
23467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23468  { (case "(($ac_try" in
23469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470  *) ac_try_echo=$ac_try;;
23471esac
23472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473  (eval "$ac_try") 2>&5
23474  ac_status=$?
23475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476  (exit $ac_status); }; } &&
23477	 { ac_try='test -s conftest$ac_exeext'
23478  { (case "(($ac_try" in
23479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480  *) ac_try_echo=$ac_try;;
23481esac
23482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483  (eval "$ac_try") 2>&5
23484  ac_status=$?
23485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486  (exit $ac_status); }; }; then
23487  LIBINTL="$LIBINTL $LIBICONV"
23488                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23489                gt_cv_func_gnugettext2_libintl=yes
23490
23491else
23492  echo "$as_me: failed program was:" >&5
23493sed 's/^/| /' conftest.$ac_ext >&5
23494
23495
23496fi
23497
23498rm -f core conftest.err conftest.$ac_objext \
23499      conftest$ac_exeext conftest.$ac_ext
23500            fi
23501            CPPFLAGS="$gt_save_CPPFLAGS"
23502            LIBS="$gt_save_LIBS"
23503fi
23504{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23505echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
23506        fi
23507
23508                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23509           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23510                && test "$PACKAGE" != gettext-runtime \
23511                && test "$PACKAGE" != gettext-tools; }; then
23512          gt_use_preinstalled_gnugettext=yes
23513        else
23514                    LIBINTL=
23515          LTLIBINTL=
23516          INCINTL=
23517        fi
23518
23519
23520
23521    if test -n "$INTL_MACOSX_LIBS"; then
23522      if test "$gt_use_preinstalled_gnugettext" = "yes" \
23523         || test "$nls_cv_use_gnu_gettext" = "yes"; then
23524                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23525        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23526      fi
23527    fi
23528
23529    if test "$gt_use_preinstalled_gnugettext" = "yes" \
23530       || test "$nls_cv_use_gnu_gettext" = "yes"; then
23531
23532cat >>confdefs.h <<\_ACEOF
23533#define ENABLE_NLS 1
23534_ACEOF
23535
23536    else
23537      USE_NLS=no
23538    fi
23539  fi
23540
23541  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23542echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23543  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23544echo "${ECHO_T}$USE_NLS" >&6; }
23545  if test "$USE_NLS" = "yes"; then
23546    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23547echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23548    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23549      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23550        gt_source="external libintl"
23551      else
23552        gt_source="libc"
23553      fi
23554    else
23555      gt_source="included intl directory"
23556    fi
23557    { echo "$as_me:$LINENO: result: $gt_source" >&5
23558echo "${ECHO_T}$gt_source" >&6; }
23559  fi
23560
23561  if test "$USE_NLS" = "yes"; then
23562
23563    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23564      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23565        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23566echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23567        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23568echo "${ECHO_T}$LIBINTL" >&6; }
23569
23570  for element in $INCINTL; do
23571    haveit=
23572    for x in $CPPFLAGS; do
23573
23574  acl_save_prefix="$prefix"
23575  prefix="$acl_final_prefix"
23576  acl_save_exec_prefix="$exec_prefix"
23577  exec_prefix="$acl_final_exec_prefix"
23578  eval x=\"$x\"
23579  exec_prefix="$acl_save_exec_prefix"
23580  prefix="$acl_save_prefix"
23581
23582      if test "X$x" = "X$element"; then
23583        haveit=yes
23584        break
23585      fi
23586    done
23587    if test -z "$haveit"; then
23588      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23589    fi
23590  done
23591
23592      fi
23593
23594
23595cat >>confdefs.h <<\_ACEOF
23596#define HAVE_GETTEXT 1
23597_ACEOF
23598
23599
23600cat >>confdefs.h <<\_ACEOF
23601#define HAVE_DCGETTEXT 1
23602_ACEOF
23603
23604    fi
23605
23606        POSUB=po
23607  fi
23608
23609
23610
23611    INTLLIBS="$LIBINTL"
23612
23613
23614
23615
23616
23617
23618
23619
23620{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23621echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23622if test "${ac_cv_header_stdc+set}" = set; then
23623  echo $ECHO_N "(cached) $ECHO_C" >&6
23624else
23625  cat >conftest.$ac_ext <<_ACEOF
23626/* confdefs.h.  */
23627_ACEOF
23628cat confdefs.h >>conftest.$ac_ext
23629cat >>conftest.$ac_ext <<_ACEOF
23630/* end confdefs.h.  */
23631#include <stdlib.h>
23632#include <stdarg.h>
23633#include <string.h>
23634#include <float.h>
23635
23636int
23637main ()
23638{
23639
23640  ;
23641  return 0;
23642}
23643_ACEOF
23644rm -f conftest.$ac_objext
23645if { (ac_try="$ac_compile"
23646case "(($ac_try" in
23647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648  *) ac_try_echo=$ac_try;;
23649esac
23650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651  (eval "$ac_compile") 2>conftest.er1
23652  ac_status=$?
23653  grep -v '^ *+' conftest.er1 >conftest.err
23654  rm -f conftest.er1
23655  cat conftest.err >&5
23656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657  (exit $ac_status); } &&
23658	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23659  { (case "(($ac_try" in
23660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661  *) ac_try_echo=$ac_try;;
23662esac
23663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664  (eval "$ac_try") 2>&5
23665  ac_status=$?
23666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667  (exit $ac_status); }; } &&
23668	 { ac_try='test -s conftest.$ac_objext'
23669  { (case "(($ac_try" in
23670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671  *) ac_try_echo=$ac_try;;
23672esac
23673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674  (eval "$ac_try") 2>&5
23675  ac_status=$?
23676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677  (exit $ac_status); }; }; then
23678  ac_cv_header_stdc=yes
23679else
23680  echo "$as_me: failed program was:" >&5
23681sed 's/^/| /' conftest.$ac_ext >&5
23682
23683	ac_cv_header_stdc=no
23684fi
23685
23686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687
23688if test $ac_cv_header_stdc = yes; then
23689  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23690  cat >conftest.$ac_ext <<_ACEOF
23691/* confdefs.h.  */
23692_ACEOF
23693cat confdefs.h >>conftest.$ac_ext
23694cat >>conftest.$ac_ext <<_ACEOF
23695/* end confdefs.h.  */
23696#include <string.h>
23697
23698_ACEOF
23699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23700  $EGREP "memchr" >/dev/null 2>&1; then
23701  :
23702else
23703  ac_cv_header_stdc=no
23704fi
23705rm -f conftest*
23706
23707fi
23708
23709if test $ac_cv_header_stdc = yes; then
23710  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23711  cat >conftest.$ac_ext <<_ACEOF
23712/* confdefs.h.  */
23713_ACEOF
23714cat confdefs.h >>conftest.$ac_ext
23715cat >>conftest.$ac_ext <<_ACEOF
23716/* end confdefs.h.  */
23717#include <stdlib.h>
23718
23719_ACEOF
23720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23721  $EGREP "free" >/dev/null 2>&1; then
23722  :
23723else
23724  ac_cv_header_stdc=no
23725fi
23726rm -f conftest*
23727
23728fi
23729
23730if test $ac_cv_header_stdc = yes; then
23731  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23732  if test "$cross_compiling" = yes; then
23733  :
23734else
23735  cat >conftest.$ac_ext <<_ACEOF
23736/* confdefs.h.  */
23737_ACEOF
23738cat confdefs.h >>conftest.$ac_ext
23739cat >>conftest.$ac_ext <<_ACEOF
23740/* end confdefs.h.  */
23741#include <ctype.h>
23742#include <stdlib.h>
23743#if ((' ' & 0x0FF) == 0x020)
23744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23746#else
23747# define ISLOWER(c) \
23748		   (('a' <= (c) && (c) <= 'i') \
23749		     || ('j' <= (c) && (c) <= 'r') \
23750		     || ('s' <= (c) && (c) <= 'z'))
23751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23752#endif
23753
23754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23755int
23756main ()
23757{
23758  int i;
23759  for (i = 0; i < 256; i++)
23760    if (XOR (islower (i), ISLOWER (i))
23761	|| toupper (i) != TOUPPER (i))
23762      return 2;
23763  return 0;
23764}
23765_ACEOF
23766rm -f conftest$ac_exeext
23767if { (ac_try="$ac_link"
23768case "(($ac_try" in
23769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770  *) ac_try_echo=$ac_try;;
23771esac
23772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773  (eval "$ac_link") 2>&5
23774  ac_status=$?
23775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23777  { (case "(($ac_try" in
23778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779  *) ac_try_echo=$ac_try;;
23780esac
23781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782  (eval "$ac_try") 2>&5
23783  ac_status=$?
23784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785  (exit $ac_status); }; }; then
23786  :
23787else
23788  echo "$as_me: program exited with status $ac_status" >&5
23789echo "$as_me: failed program was:" >&5
23790sed 's/^/| /' conftest.$ac_ext >&5
23791
23792( exit $ac_status )
23793ac_cv_header_stdc=no
23794fi
23795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23796fi
23797
23798
23799fi
23800fi
23801{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23802echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23803if test $ac_cv_header_stdc = yes; then
23804
23805cat >>confdefs.h <<\_ACEOF
23806#define STDC_HEADERS 1
23807_ACEOF
23808
23809fi
23810
23811
23812
23813
23814
23815for ac_header in locale.h stddef.h stdlib.h string.h
23816do
23817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23819  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23822  echo $ECHO_N "(cached) $ECHO_C" >&6
23823fi
23824ac_res=`eval echo '${'$as_ac_Header'}'`
23825	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23826echo "${ECHO_T}$ac_res" >&6; }
23827else
23828  # Is the header compilable?
23829{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23831cat >conftest.$ac_ext <<_ACEOF
23832/* confdefs.h.  */
23833_ACEOF
23834cat confdefs.h >>conftest.$ac_ext
23835cat >>conftest.$ac_ext <<_ACEOF
23836/* end confdefs.h.  */
23837$ac_includes_default
23838#include <$ac_header>
23839_ACEOF
23840rm -f conftest.$ac_objext
23841if { (ac_try="$ac_compile"
23842case "(($ac_try" in
23843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23844  *) ac_try_echo=$ac_try;;
23845esac
23846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23847  (eval "$ac_compile") 2>conftest.er1
23848  ac_status=$?
23849  grep -v '^ *+' conftest.er1 >conftest.err
23850  rm -f conftest.er1
23851  cat conftest.err >&5
23852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853  (exit $ac_status); } &&
23854	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23855  { (case "(($ac_try" in
23856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857  *) ac_try_echo=$ac_try;;
23858esac
23859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860  (eval "$ac_try") 2>&5
23861  ac_status=$?
23862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863  (exit $ac_status); }; } &&
23864	 { ac_try='test -s conftest.$ac_objext'
23865  { (case "(($ac_try" in
23866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867  *) ac_try_echo=$ac_try;;
23868esac
23869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23870  (eval "$ac_try") 2>&5
23871  ac_status=$?
23872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873  (exit $ac_status); }; }; then
23874  ac_header_compiler=yes
23875else
23876  echo "$as_me: failed program was:" >&5
23877sed 's/^/| /' conftest.$ac_ext >&5
23878
23879	ac_header_compiler=no
23880fi
23881
23882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23884echo "${ECHO_T}$ac_header_compiler" >&6; }
23885
23886# Is the header present?
23887{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23888echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23889cat >conftest.$ac_ext <<_ACEOF
23890/* confdefs.h.  */
23891_ACEOF
23892cat confdefs.h >>conftest.$ac_ext
23893cat >>conftest.$ac_ext <<_ACEOF
23894/* end confdefs.h.  */
23895#include <$ac_header>
23896_ACEOF
23897if { (ac_try="$ac_cpp conftest.$ac_ext"
23898case "(($ac_try" in
23899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900  *) ac_try_echo=$ac_try;;
23901esac
23902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23904  ac_status=$?
23905  grep -v '^ *+' conftest.er1 >conftest.err
23906  rm -f conftest.er1
23907  cat conftest.err >&5
23908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909  (exit $ac_status); } >/dev/null; then
23910  if test -s conftest.err; then
23911    ac_cpp_err=$ac_c_preproc_warn_flag
23912    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23913  else
23914    ac_cpp_err=
23915  fi
23916else
23917  ac_cpp_err=yes
23918fi
23919if test -z "$ac_cpp_err"; then
23920  ac_header_preproc=yes
23921else
23922  echo "$as_me: failed program was:" >&5
23923sed 's/^/| /' conftest.$ac_ext >&5
23924
23925  ac_header_preproc=no
23926fi
23927
23928rm -f conftest.err conftest.$ac_ext
23929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23930echo "${ECHO_T}$ac_header_preproc" >&6; }
23931
23932# So?  What about this header?
23933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23934  yes:no: )
23935    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23937    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23939    ac_header_preproc=yes
23940    ;;
23941  no:yes:* )
23942    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23944    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23945echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23946    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23948    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23949echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23952    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23954
23955    ;;
23956esac
23957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23960  echo $ECHO_N "(cached) $ECHO_C" >&6
23961else
23962  eval "$as_ac_Header=\$ac_header_preproc"
23963fi
23964ac_res=`eval echo '${'$as_ac_Header'}'`
23965	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23966echo "${ECHO_T}$ac_res" >&6; }
23967
23968fi
23969if test `eval echo '${'$as_ac_Header'}'` = yes; then
23970  cat >>confdefs.h <<_ACEOF
23971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23972_ACEOF
23973
23974fi
23975
23976done
23977
23978
23979
23980for ac_header in unistd.h
23981do
23982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23984  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23987  echo $ECHO_N "(cached) $ECHO_C" >&6
23988fi
23989ac_res=`eval echo '${'$as_ac_Header'}'`
23990	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23991echo "${ECHO_T}$ac_res" >&6; }
23992else
23993  # Is the header compilable?
23994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23996cat >conftest.$ac_ext <<_ACEOF
23997/* confdefs.h.  */
23998_ACEOF
23999cat confdefs.h >>conftest.$ac_ext
24000cat >>conftest.$ac_ext <<_ACEOF
24001/* end confdefs.h.  */
24002$ac_includes_default
24003#include <$ac_header>
24004_ACEOF
24005rm -f conftest.$ac_objext
24006if { (ac_try="$ac_compile"
24007case "(($ac_try" in
24008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009  *) ac_try_echo=$ac_try;;
24010esac
24011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012  (eval "$ac_compile") 2>conftest.er1
24013  ac_status=$?
24014  grep -v '^ *+' conftest.er1 >conftest.err
24015  rm -f conftest.er1
24016  cat conftest.err >&5
24017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018  (exit $ac_status); } &&
24019	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24020  { (case "(($ac_try" in
24021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24022  *) ac_try_echo=$ac_try;;
24023esac
24024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24025  (eval "$ac_try") 2>&5
24026  ac_status=$?
24027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028  (exit $ac_status); }; } &&
24029	 { ac_try='test -s conftest.$ac_objext'
24030  { (case "(($ac_try" in
24031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032  *) ac_try_echo=$ac_try;;
24033esac
24034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035  (eval "$ac_try") 2>&5
24036  ac_status=$?
24037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038  (exit $ac_status); }; }; then
24039  ac_header_compiler=yes
24040else
24041  echo "$as_me: failed program was:" >&5
24042sed 's/^/| /' conftest.$ac_ext >&5
24043
24044	ac_header_compiler=no
24045fi
24046
24047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24049echo "${ECHO_T}$ac_header_compiler" >&6; }
24050
24051# Is the header present?
24052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24054cat >conftest.$ac_ext <<_ACEOF
24055/* confdefs.h.  */
24056_ACEOF
24057cat confdefs.h >>conftest.$ac_ext
24058cat >>conftest.$ac_ext <<_ACEOF
24059/* end confdefs.h.  */
24060#include <$ac_header>
24061_ACEOF
24062if { (ac_try="$ac_cpp conftest.$ac_ext"
24063case "(($ac_try" in
24064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065  *) ac_try_echo=$ac_try;;
24066esac
24067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24069  ac_status=$?
24070  grep -v '^ *+' conftest.er1 >conftest.err
24071  rm -f conftest.er1
24072  cat conftest.err >&5
24073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074  (exit $ac_status); } >/dev/null; then
24075  if test -s conftest.err; then
24076    ac_cpp_err=$ac_c_preproc_warn_flag
24077    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24078  else
24079    ac_cpp_err=
24080  fi
24081else
24082  ac_cpp_err=yes
24083fi
24084if test -z "$ac_cpp_err"; then
24085  ac_header_preproc=yes
24086else
24087  echo "$as_me: failed program was:" >&5
24088sed 's/^/| /' conftest.$ac_ext >&5
24089
24090  ac_header_preproc=no
24091fi
24092
24093rm -f conftest.err conftest.$ac_ext
24094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24095echo "${ECHO_T}$ac_header_preproc" >&6; }
24096
24097# So?  What about this header?
24098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24099  yes:no: )
24100    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24102    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24104    ac_header_preproc=yes
24105    ;;
24106  no:yes:* )
24107    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24109    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24110echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24111    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24113    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24114echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24115    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24117    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24119
24120    ;;
24121esac
24122{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24125  echo $ECHO_N "(cached) $ECHO_C" >&6
24126else
24127  eval "$as_ac_Header=\$ac_header_preproc"
24128fi
24129ac_res=`eval echo '${'$as_ac_Header'}'`
24130	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24131echo "${ECHO_T}$ac_res" >&6; }
24132
24133fi
24134if test `eval echo '${'$as_ac_Header'}'` = yes; then
24135  cat >>confdefs.h <<_ACEOF
24136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24137_ACEOF
24138
24139    UNISTD_H=''
24140
24141else
24142
24143    UNISTD_H='unistd.h'
24144
24145fi
24146
24147done
24148
24149
24150
24151
24152
24153{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
24154echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24155if test "${ac_cv_type_mbstate_t+set}" = set; then
24156  echo $ECHO_N "(cached) $ECHO_C" >&6
24157else
24158  cat >conftest.$ac_ext <<_ACEOF
24159/* confdefs.h.  */
24160_ACEOF
24161cat confdefs.h >>conftest.$ac_ext
24162cat >>conftest.$ac_ext <<_ACEOF
24163/* end confdefs.h.  */
24164$ac_includes_default
24165#	    include <wchar.h>
24166int
24167main ()
24168{
24169mbstate_t x; return sizeof x;
24170  ;
24171  return 0;
24172}
24173_ACEOF
24174rm -f conftest.$ac_objext
24175if { (ac_try="$ac_compile"
24176case "(($ac_try" in
24177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178  *) ac_try_echo=$ac_try;;
24179esac
24180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181  (eval "$ac_compile") 2>conftest.er1
24182  ac_status=$?
24183  grep -v '^ *+' conftest.er1 >conftest.err
24184  rm -f conftest.er1
24185  cat conftest.err >&5
24186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187  (exit $ac_status); } &&
24188	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24189  { (case "(($ac_try" in
24190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191  *) ac_try_echo=$ac_try;;
24192esac
24193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194  (eval "$ac_try") 2>&5
24195  ac_status=$?
24196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197  (exit $ac_status); }; } &&
24198	 { ac_try='test -s conftest.$ac_objext'
24199  { (case "(($ac_try" in
24200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201  *) ac_try_echo=$ac_try;;
24202esac
24203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204  (eval "$ac_try") 2>&5
24205  ac_status=$?
24206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207  (exit $ac_status); }; }; then
24208  ac_cv_type_mbstate_t=yes
24209else
24210  echo "$as_me: failed program was:" >&5
24211sed 's/^/| /' conftest.$ac_ext >&5
24212
24213	ac_cv_type_mbstate_t=no
24214fi
24215
24216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217fi
24218{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24219echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24220   if test $ac_cv_type_mbstate_t = yes; then
24221
24222cat >>confdefs.h <<\_ACEOF
24223#define HAVE_MBSTATE_T 1
24224_ACEOF
24225
24226   else
24227
24228cat >>confdefs.h <<\_ACEOF
24229#define mbstate_t int
24230_ACEOF
24231
24232   fi
24233
24234
24235for ac_header in wchar.h
24236do
24237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24239  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24242  echo $ECHO_N "(cached) $ECHO_C" >&6
24243fi
24244ac_res=`eval echo '${'$as_ac_Header'}'`
24245	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24246echo "${ECHO_T}$ac_res" >&6; }
24247else
24248  # Is the header compilable?
24249{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24251cat >conftest.$ac_ext <<_ACEOF
24252/* confdefs.h.  */
24253_ACEOF
24254cat confdefs.h >>conftest.$ac_ext
24255cat >>conftest.$ac_ext <<_ACEOF
24256/* end confdefs.h.  */
24257$ac_includes_default
24258#include <$ac_header>
24259_ACEOF
24260rm -f conftest.$ac_objext
24261if { (ac_try="$ac_compile"
24262case "(($ac_try" in
24263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264  *) ac_try_echo=$ac_try;;
24265esac
24266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267  (eval "$ac_compile") 2>conftest.er1
24268  ac_status=$?
24269  grep -v '^ *+' conftest.er1 >conftest.err
24270  rm -f conftest.er1
24271  cat conftest.err >&5
24272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273  (exit $ac_status); } &&
24274	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24275  { (case "(($ac_try" in
24276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277  *) ac_try_echo=$ac_try;;
24278esac
24279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280  (eval "$ac_try") 2>&5
24281  ac_status=$?
24282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283  (exit $ac_status); }; } &&
24284	 { ac_try='test -s conftest.$ac_objext'
24285  { (case "(($ac_try" in
24286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287  *) ac_try_echo=$ac_try;;
24288esac
24289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24290  (eval "$ac_try") 2>&5
24291  ac_status=$?
24292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293  (exit $ac_status); }; }; then
24294  ac_header_compiler=yes
24295else
24296  echo "$as_me: failed program was:" >&5
24297sed 's/^/| /' conftest.$ac_ext >&5
24298
24299	ac_header_compiler=no
24300fi
24301
24302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24304echo "${ECHO_T}$ac_header_compiler" >&6; }
24305
24306# Is the header present?
24307{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24309cat >conftest.$ac_ext <<_ACEOF
24310/* confdefs.h.  */
24311_ACEOF
24312cat confdefs.h >>conftest.$ac_ext
24313cat >>conftest.$ac_ext <<_ACEOF
24314/* end confdefs.h.  */
24315#include <$ac_header>
24316_ACEOF
24317if { (ac_try="$ac_cpp conftest.$ac_ext"
24318case "(($ac_try" in
24319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320  *) ac_try_echo=$ac_try;;
24321esac
24322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24324  ac_status=$?
24325  grep -v '^ *+' conftest.er1 >conftest.err
24326  rm -f conftest.er1
24327  cat conftest.err >&5
24328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329  (exit $ac_status); } >/dev/null; then
24330  if test -s conftest.err; then
24331    ac_cpp_err=$ac_c_preproc_warn_flag
24332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24333  else
24334    ac_cpp_err=
24335  fi
24336else
24337  ac_cpp_err=yes
24338fi
24339if test -z "$ac_cpp_err"; then
24340  ac_header_preproc=yes
24341else
24342  echo "$as_me: failed program was:" >&5
24343sed 's/^/| /' conftest.$ac_ext >&5
24344
24345  ac_header_preproc=no
24346fi
24347
24348rm -f conftest.err conftest.$ac_ext
24349{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24350echo "${ECHO_T}$ac_header_preproc" >&6; }
24351
24352# So?  What about this header?
24353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24354  yes:no: )
24355    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24359    ac_header_preproc=yes
24360    ;;
24361  no:yes:* )
24362    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24364    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24365echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24366    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24368    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24369echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24370    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24372    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24374
24375    ;;
24376esac
24377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24380  echo $ECHO_N "(cached) $ECHO_C" >&6
24381else
24382  eval "$as_ac_Header=\$ac_header_preproc"
24383fi
24384ac_res=`eval echo '${'$as_ac_Header'}'`
24385	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24386echo "${ECHO_T}$ac_res" >&6; }
24387
24388fi
24389if test `eval echo '${'$as_ac_Header'}'` = yes; then
24390  cat >>confdefs.h <<_ACEOF
24391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24392_ACEOF
24393
24394fi
24395
24396done
24397
24398
24399
24400
24401for ac_header in stdint.h
24402do
24403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24405  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24408  echo $ECHO_N "(cached) $ECHO_C" >&6
24409fi
24410ac_res=`eval echo '${'$as_ac_Header'}'`
24411	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24412echo "${ECHO_T}$ac_res" >&6; }
24413else
24414  # Is the header compilable?
24415{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24416echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24417cat >conftest.$ac_ext <<_ACEOF
24418/* confdefs.h.  */
24419_ACEOF
24420cat confdefs.h >>conftest.$ac_ext
24421cat >>conftest.$ac_ext <<_ACEOF
24422/* end confdefs.h.  */
24423$ac_includes_default
24424#include <$ac_header>
24425_ACEOF
24426rm -f conftest.$ac_objext
24427if { (ac_try="$ac_compile"
24428case "(($ac_try" in
24429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430  *) ac_try_echo=$ac_try;;
24431esac
24432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24433  (eval "$ac_compile") 2>conftest.er1
24434  ac_status=$?
24435  grep -v '^ *+' conftest.er1 >conftest.err
24436  rm -f conftest.er1
24437  cat conftest.err >&5
24438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439  (exit $ac_status); } &&
24440	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24441  { (case "(($ac_try" in
24442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443  *) ac_try_echo=$ac_try;;
24444esac
24445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446  (eval "$ac_try") 2>&5
24447  ac_status=$?
24448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449  (exit $ac_status); }; } &&
24450	 { ac_try='test -s conftest.$ac_objext'
24451  { (case "(($ac_try" in
24452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453  *) ac_try_echo=$ac_try;;
24454esac
24455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456  (eval "$ac_try") 2>&5
24457  ac_status=$?
24458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459  (exit $ac_status); }; }; then
24460  ac_header_compiler=yes
24461else
24462  echo "$as_me: failed program was:" >&5
24463sed 's/^/| /' conftest.$ac_ext >&5
24464
24465	ac_header_compiler=no
24466fi
24467
24468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24469{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24470echo "${ECHO_T}$ac_header_compiler" >&6; }
24471
24472# Is the header present?
24473{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24475cat >conftest.$ac_ext <<_ACEOF
24476/* confdefs.h.  */
24477_ACEOF
24478cat confdefs.h >>conftest.$ac_ext
24479cat >>conftest.$ac_ext <<_ACEOF
24480/* end confdefs.h.  */
24481#include <$ac_header>
24482_ACEOF
24483if { (ac_try="$ac_cpp conftest.$ac_ext"
24484case "(($ac_try" in
24485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486  *) ac_try_echo=$ac_try;;
24487esac
24488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24490  ac_status=$?
24491  grep -v '^ *+' conftest.er1 >conftest.err
24492  rm -f conftest.er1
24493  cat conftest.err >&5
24494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495  (exit $ac_status); } >/dev/null; then
24496  if test -s conftest.err; then
24497    ac_cpp_err=$ac_c_preproc_warn_flag
24498    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24499  else
24500    ac_cpp_err=
24501  fi
24502else
24503  ac_cpp_err=yes
24504fi
24505if test -z "$ac_cpp_err"; then
24506  ac_header_preproc=yes
24507else
24508  echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
24511  ac_header_preproc=no
24512fi
24513
24514rm -f conftest.err conftest.$ac_ext
24515{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24516echo "${ECHO_T}$ac_header_preproc" >&6; }
24517
24518# So?  What about this header?
24519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24520  yes:no: )
24521    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24525    ac_header_preproc=yes
24526    ;;
24527  no:yes:* )
24528    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24530    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24531echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24532    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24534    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24535echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24536    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24538    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24540
24541    ;;
24542esac
24543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24546  echo $ECHO_N "(cached) $ECHO_C" >&6
24547else
24548  eval "$as_ac_Header=\$ac_header_preproc"
24549fi
24550ac_res=`eval echo '${'$as_ac_Header'}'`
24551	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24552echo "${ECHO_T}$ac_res" >&6; }
24553
24554fi
24555if test `eval echo '${'$as_ac_Header'}'` = yes; then
24556  cat >>confdefs.h <<_ACEOF
24557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24558_ACEOF
24559
24560fi
24561
24562done
24563
24564
24565
24566
24567for ac_header in inttypes.h
24568do
24569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24571  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24574  echo $ECHO_N "(cached) $ECHO_C" >&6
24575fi
24576ac_res=`eval echo '${'$as_ac_Header'}'`
24577	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24578echo "${ECHO_T}$ac_res" >&6; }
24579else
24580  # Is the header compilable?
24581{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24583cat >conftest.$ac_ext <<_ACEOF
24584/* confdefs.h.  */
24585_ACEOF
24586cat confdefs.h >>conftest.$ac_ext
24587cat >>conftest.$ac_ext <<_ACEOF
24588/* end confdefs.h.  */
24589$ac_includes_default
24590#include <$ac_header>
24591_ACEOF
24592rm -f conftest.$ac_objext
24593if { (ac_try="$ac_compile"
24594case "(($ac_try" in
24595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596  *) ac_try_echo=$ac_try;;
24597esac
24598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599  (eval "$ac_compile") 2>conftest.er1
24600  ac_status=$?
24601  grep -v '^ *+' conftest.er1 >conftest.err
24602  rm -f conftest.er1
24603  cat conftest.err >&5
24604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605  (exit $ac_status); } &&
24606	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24607  { (case "(($ac_try" in
24608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609  *) ac_try_echo=$ac_try;;
24610esac
24611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612  (eval "$ac_try") 2>&5
24613  ac_status=$?
24614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615  (exit $ac_status); }; } &&
24616	 { ac_try='test -s conftest.$ac_objext'
24617  { (case "(($ac_try" in
24618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619  *) ac_try_echo=$ac_try;;
24620esac
24621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622  (eval "$ac_try") 2>&5
24623  ac_status=$?
24624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625  (exit $ac_status); }; }; then
24626  ac_header_compiler=yes
24627else
24628  echo "$as_me: failed program was:" >&5
24629sed 's/^/| /' conftest.$ac_ext >&5
24630
24631	ac_header_compiler=no
24632fi
24633
24634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24636echo "${ECHO_T}$ac_header_compiler" >&6; }
24637
24638# Is the header present?
24639{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24641cat >conftest.$ac_ext <<_ACEOF
24642/* confdefs.h.  */
24643_ACEOF
24644cat confdefs.h >>conftest.$ac_ext
24645cat >>conftest.$ac_ext <<_ACEOF
24646/* end confdefs.h.  */
24647#include <$ac_header>
24648_ACEOF
24649if { (ac_try="$ac_cpp conftest.$ac_ext"
24650case "(($ac_try" in
24651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652  *) ac_try_echo=$ac_try;;
24653esac
24654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24656  ac_status=$?
24657  grep -v '^ *+' conftest.er1 >conftest.err
24658  rm -f conftest.er1
24659  cat conftest.err >&5
24660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661  (exit $ac_status); } >/dev/null; then
24662  if test -s conftest.err; then
24663    ac_cpp_err=$ac_c_preproc_warn_flag
24664    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24665  else
24666    ac_cpp_err=
24667  fi
24668else
24669  ac_cpp_err=yes
24670fi
24671if test -z "$ac_cpp_err"; then
24672  ac_header_preproc=yes
24673else
24674  echo "$as_me: failed program was:" >&5
24675sed 's/^/| /' conftest.$ac_ext >&5
24676
24677  ac_header_preproc=no
24678fi
24679
24680rm -f conftest.err conftest.$ac_ext
24681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24682echo "${ECHO_T}$ac_header_preproc" >&6; }
24683
24684# So?  What about this header?
24685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24686  yes:no: )
24687    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24689    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24691    ac_header_preproc=yes
24692    ;;
24693  no:yes:* )
24694    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24696    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24697echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24698    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24700    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24701echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24702    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24704    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24706
24707    ;;
24708esac
24709{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24712  echo $ECHO_N "(cached) $ECHO_C" >&6
24713else
24714  eval "$as_ac_Header=\$ac_header_preproc"
24715fi
24716ac_res=`eval echo '${'$as_ac_Header'}'`
24717	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24718echo "${ECHO_T}$ac_res" >&6; }
24719
24720fi
24721if test `eval echo '${'$as_ac_Header'}'` = yes; then
24722  cat >>confdefs.h <<_ACEOF
24723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24724_ACEOF
24725
24726fi
24727
24728done
24729
24730
24731{ echo "$as_me:$LINENO: checking for size_t" >&5
24732echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24733if test "${ac_cv_type_size_t+set}" = set; then
24734  echo $ECHO_N "(cached) $ECHO_C" >&6
24735else
24736  cat >conftest.$ac_ext <<_ACEOF
24737/* confdefs.h.  */
24738_ACEOF
24739cat confdefs.h >>conftest.$ac_ext
24740cat >>conftest.$ac_ext <<_ACEOF
24741/* end confdefs.h.  */
24742$ac_includes_default
24743typedef size_t ac__type_new_;
24744int
24745main ()
24746{
24747if ((ac__type_new_ *) 0)
24748  return 0;
24749if (sizeof (ac__type_new_))
24750  return 0;
24751  ;
24752  return 0;
24753}
24754_ACEOF
24755rm -f conftest.$ac_objext
24756if { (ac_try="$ac_compile"
24757case "(($ac_try" in
24758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759  *) ac_try_echo=$ac_try;;
24760esac
24761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762  (eval "$ac_compile") 2>conftest.er1
24763  ac_status=$?
24764  grep -v '^ *+' conftest.er1 >conftest.err
24765  rm -f conftest.er1
24766  cat conftest.err >&5
24767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768  (exit $ac_status); } &&
24769	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24770  { (case "(($ac_try" in
24771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772  *) ac_try_echo=$ac_try;;
24773esac
24774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775  (eval "$ac_try") 2>&5
24776  ac_status=$?
24777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778  (exit $ac_status); }; } &&
24779	 { ac_try='test -s conftest.$ac_objext'
24780  { (case "(($ac_try" in
24781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782  *) ac_try_echo=$ac_try;;
24783esac
24784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785  (eval "$ac_try") 2>&5
24786  ac_status=$?
24787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788  (exit $ac_status); }; }; then
24789  ac_cv_type_size_t=yes
24790else
24791  echo "$as_me: failed program was:" >&5
24792sed 's/^/| /' conftest.$ac_ext >&5
24793
24794	ac_cv_type_size_t=no
24795fi
24796
24797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24798fi
24799{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24800echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24801if test $ac_cv_type_size_t = yes; then
24802  :
24803else
24804
24805cat >>confdefs.h <<_ACEOF
24806#define size_t unsigned int
24807_ACEOF
24808
24809fi
24810
24811
24812  { echo "$as_me:$LINENO: checking for wchar_t" >&5
24813echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24814if test "${gt_cv_c_wchar_t+set}" = set; then
24815  echo $ECHO_N "(cached) $ECHO_C" >&6
24816else
24817  cat >conftest.$ac_ext <<_ACEOF
24818/* confdefs.h.  */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h.  */
24823#include <stddef.h>
24824       wchar_t foo = (wchar_t)'\0';
24825int
24826main ()
24827{
24828
24829  ;
24830  return 0;
24831}
24832_ACEOF
24833rm -f conftest.$ac_objext
24834if { (ac_try="$ac_compile"
24835case "(($ac_try" in
24836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837  *) ac_try_echo=$ac_try;;
24838esac
24839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840  (eval "$ac_compile") 2>conftest.er1
24841  ac_status=$?
24842  grep -v '^ *+' conftest.er1 >conftest.err
24843  rm -f conftest.er1
24844  cat conftest.err >&5
24845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846  (exit $ac_status); } &&
24847	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24848  { (case "(($ac_try" in
24849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850  *) ac_try_echo=$ac_try;;
24851esac
24852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853  (eval "$ac_try") 2>&5
24854  ac_status=$?
24855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856  (exit $ac_status); }; } &&
24857	 { ac_try='test -s conftest.$ac_objext'
24858  { (case "(($ac_try" in
24859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860  *) ac_try_echo=$ac_try;;
24861esac
24862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863  (eval "$ac_try") 2>&5
24864  ac_status=$?
24865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866  (exit $ac_status); }; }; then
24867  gt_cv_c_wchar_t=yes
24868else
24869  echo "$as_me: failed program was:" >&5
24870sed 's/^/| /' conftest.$ac_ext >&5
24871
24872	gt_cv_c_wchar_t=no
24873fi
24874
24875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876fi
24877{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
24878echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
24879  if test $gt_cv_c_wchar_t = yes; then
24880
24881cat >>confdefs.h <<\_ACEOF
24882#define HAVE_WCHAR_T 1
24883_ACEOF
24884
24885  fi
24886
24887
24888
24889  :
24890
24891
24892
24893
24894
24895  if test $ac_cv_header_wchar_h = yes; then
24896    HAVE_WCHAR_H=1
24897  else
24898    HAVE_WCHAR_H=0
24899  fi
24900
24901
24902
24903    { echo "$as_me:$LINENO: checking for stdint.h" >&5
24904echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
24905if test "${gl_cv_header_stdint_h+set}" = set; then
24906  echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908
24909    cat >conftest.$ac_ext <<_ACEOF
24910/* confdefs.h.  */
24911_ACEOF
24912cat confdefs.h >>conftest.$ac_ext
24913cat >>conftest.$ac_ext <<_ACEOF
24914/* end confdefs.h.  */
24915
24916#include <sys/types.h>
24917#include <stdint.h>
24918int
24919main ()
24920{
24921
24922  ;
24923  return 0;
24924}
24925_ACEOF
24926rm -f conftest.$ac_objext
24927if { (ac_try="$ac_compile"
24928case "(($ac_try" in
24929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930  *) ac_try_echo=$ac_try;;
24931esac
24932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933  (eval "$ac_compile") 2>conftest.er1
24934  ac_status=$?
24935  grep -v '^ *+' conftest.er1 >conftest.err
24936  rm -f conftest.er1
24937  cat conftest.err >&5
24938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939  (exit $ac_status); } &&
24940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24941  { (case "(($ac_try" in
24942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943  *) ac_try_echo=$ac_try;;
24944esac
24945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946  (eval "$ac_try") 2>&5
24947  ac_status=$?
24948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949  (exit $ac_status); }; } &&
24950	 { ac_try='test -s conftest.$ac_objext'
24951  { (case "(($ac_try" in
24952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953  *) ac_try_echo=$ac_try;;
24954esac
24955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956  (eval "$ac_try") 2>&5
24957  ac_status=$?
24958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959  (exit $ac_status); }; }; then
24960  gl_cv_header_stdint_h=yes
24961else
24962  echo "$as_me: failed program was:" >&5
24963sed 's/^/| /' conftest.$ac_ext >&5
24964
24965	gl_cv_header_stdint_h=no
24966fi
24967
24968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24969
24970fi
24971{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
24972echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
24973  if test $gl_cv_header_stdint_h = yes; then
24974
24975cat >>confdefs.h <<_ACEOF
24976#define HAVE_STDINT_H 1
24977_ACEOF
24978
24979  fi
24980
24981  if test $gl_cv_header_stdint_h = yes; then
24982    ac_cv_header_stdint_h=yes;       { echo "$as_me:$LINENO: checking full path to <stdint.h>" >&5
24983echo $ECHO_N "checking full path to <stdint.h>... $ECHO_C" >&6; }
24984if test "${gl_cv_full_path_stdint_h+set}" = set; then
24985  echo $ECHO_N "(cached) $ECHO_C" >&6
24986else
24987
24988  :
24989
24990
24991
24992
24993    if test $ac_cv_header_stdint_h = yes; then
24994      cat >conftest.$ac_ext <<_ACEOF
24995/* confdefs.h.  */
24996_ACEOF
24997cat confdefs.h >>conftest.$ac_ext
24998cat >>conftest.$ac_ext <<_ACEOF
24999/* end confdefs.h.  */
25000#include <stdint.h>
25001_ACEOF
25002      gl_cv_full_path_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25003sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;p;q;}'`
25004    fi
25005
25006fi
25007{ echo "$as_me:$LINENO: result: $gl_cv_full_path_stdint_h" >&5
25008echo "${ECHO_T}$gl_cv_full_path_stdint_h" >&6; }
25009cat >>confdefs.h <<_ACEOF
25010#define FULL_PATH_STDINT_H <$gl_cv_full_path_stdint_h>
25011_ACEOF
25012
25013
25014    FULL_PATH_STDINT_H='<'$gl_cv_full_path_stdint_h'>'
25015
25016    HAVE_STDINT_H=1
25017  else
25018    HAVE_STDINT_H=0
25019  fi
25020
25021
25022
25023      { echo "$as_me:$LINENO: checking for inttypes.h" >&5
25024echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
25025if test "${gl_cv_header_inttypes_h+set}" = set; then
25026  echo $ECHO_N "(cached) $ECHO_C" >&6
25027else
25028
25029    cat >conftest.$ac_ext <<_ACEOF
25030/* confdefs.h.  */
25031_ACEOF
25032cat confdefs.h >>conftest.$ac_ext
25033cat >>conftest.$ac_ext <<_ACEOF
25034/* end confdefs.h.  */
25035
25036#include <sys/types.h>
25037#include <inttypes.h>
25038int
25039main ()
25040{
25041
25042  ;
25043  return 0;
25044}
25045_ACEOF
25046rm -f conftest.$ac_objext
25047if { (ac_try="$ac_compile"
25048case "(($ac_try" in
25049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050  *) ac_try_echo=$ac_try;;
25051esac
25052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25053  (eval "$ac_compile") 2>conftest.er1
25054  ac_status=$?
25055  grep -v '^ *+' conftest.er1 >conftest.err
25056  rm -f conftest.er1
25057  cat conftest.err >&5
25058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059  (exit $ac_status); } &&
25060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25061  { (case "(($ac_try" in
25062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063  *) ac_try_echo=$ac_try;;
25064esac
25065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066  (eval "$ac_try") 2>&5
25067  ac_status=$?
25068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069  (exit $ac_status); }; } &&
25070	 { ac_try='test -s conftest.$ac_objext'
25071  { (case "(($ac_try" in
25072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25073  *) ac_try_echo=$ac_try;;
25074esac
25075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25076  (eval "$ac_try") 2>&5
25077  ac_status=$?
25078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079  (exit $ac_status); }; }; then
25080  gl_cv_header_inttypes_h=yes
25081else
25082  echo "$as_me: failed program was:" >&5
25083sed 's/^/| /' conftest.$ac_ext >&5
25084
25085	gl_cv_header_inttypes_h=no
25086fi
25087
25088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25089
25090fi
25091{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
25092echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
25093  if test $gl_cv_header_inttypes_h = yes; then
25094
25095cat >>confdefs.h <<_ACEOF
25096#define HAVE_INTTYPES_H 1
25097_ACEOF
25098
25099  fi
25100
25101  if test $gl_cv_header_inttypes_h = yes; then
25102    ac_cv_header_inttypes_h=yes;       { echo "$as_me:$LINENO: checking full path to <inttypes.h>" >&5
25103echo $ECHO_N "checking full path to <inttypes.h>... $ECHO_C" >&6; }
25104if test "${gl_cv_full_path_inttypes_h+set}" = set; then
25105  echo $ECHO_N "(cached) $ECHO_C" >&6
25106else
25107
25108  :
25109
25110
25111
25112
25113    if test $ac_cv_header_inttypes_h = yes; then
25114      cat >conftest.$ac_ext <<_ACEOF
25115/* confdefs.h.  */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h.  */
25120#include <inttypes.h>
25121_ACEOF
25122      gl_cv_full_path_inttypes_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25123sed -n '\#/inttypes.h#{s#.*"\(.*/inttypes.h\)".*#\1#;p;q;}'`
25124    fi
25125
25126fi
25127{ echo "$as_me:$LINENO: result: $gl_cv_full_path_inttypes_h" >&5
25128echo "${ECHO_T}$gl_cv_full_path_inttypes_h" >&6; }
25129cat >>confdefs.h <<_ACEOF
25130#define FULL_PATH_INTTYPES_H <$gl_cv_full_path_inttypes_h>
25131_ACEOF
25132
25133
25134    FULL_PATH_INTTYPES_H='<'$gl_cv_full_path_inttypes_h'>'
25135
25136    HAVE_INTTYPES_H=1
25137  else
25138    HAVE_INTTYPES_H=0
25139  fi
25140
25141
25142
25143for ac_header in sys/inttypes.h
25144do
25145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25147  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25150  echo $ECHO_N "(cached) $ECHO_C" >&6
25151fi
25152ac_res=`eval echo '${'$as_ac_Header'}'`
25153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25154echo "${ECHO_T}$ac_res" >&6; }
25155else
25156  # Is the header compilable?
25157{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25159cat >conftest.$ac_ext <<_ACEOF
25160/* confdefs.h.  */
25161_ACEOF
25162cat confdefs.h >>conftest.$ac_ext
25163cat >>conftest.$ac_ext <<_ACEOF
25164/* end confdefs.h.  */
25165$ac_includes_default
25166#include <$ac_header>
25167_ACEOF
25168rm -f conftest.$ac_objext
25169if { (ac_try="$ac_compile"
25170case "(($ac_try" in
25171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172  *) ac_try_echo=$ac_try;;
25173esac
25174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175  (eval "$ac_compile") 2>conftest.er1
25176  ac_status=$?
25177  grep -v '^ *+' conftest.er1 >conftest.err
25178  rm -f conftest.er1
25179  cat conftest.err >&5
25180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181  (exit $ac_status); } &&
25182	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25183  { (case "(($ac_try" in
25184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185  *) ac_try_echo=$ac_try;;
25186esac
25187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188  (eval "$ac_try") 2>&5
25189  ac_status=$?
25190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191  (exit $ac_status); }; } &&
25192	 { ac_try='test -s conftest.$ac_objext'
25193  { (case "(($ac_try" in
25194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195  *) ac_try_echo=$ac_try;;
25196esac
25197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198  (eval "$ac_try") 2>&5
25199  ac_status=$?
25200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201  (exit $ac_status); }; }; then
25202  ac_header_compiler=yes
25203else
25204  echo "$as_me: failed program was:" >&5
25205sed 's/^/| /' conftest.$ac_ext >&5
25206
25207	ac_header_compiler=no
25208fi
25209
25210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25211{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25212echo "${ECHO_T}$ac_header_compiler" >&6; }
25213
25214# Is the header present?
25215{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25217cat >conftest.$ac_ext <<_ACEOF
25218/* confdefs.h.  */
25219_ACEOF
25220cat confdefs.h >>conftest.$ac_ext
25221cat >>conftest.$ac_ext <<_ACEOF
25222/* end confdefs.h.  */
25223#include <$ac_header>
25224_ACEOF
25225if { (ac_try="$ac_cpp conftest.$ac_ext"
25226case "(($ac_try" in
25227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228  *) ac_try_echo=$ac_try;;
25229esac
25230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25231  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25232  ac_status=$?
25233  grep -v '^ *+' conftest.er1 >conftest.err
25234  rm -f conftest.er1
25235  cat conftest.err >&5
25236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237  (exit $ac_status); } >/dev/null; then
25238  if test -s conftest.err; then
25239    ac_cpp_err=$ac_c_preproc_warn_flag
25240    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25241  else
25242    ac_cpp_err=
25243  fi
25244else
25245  ac_cpp_err=yes
25246fi
25247if test -z "$ac_cpp_err"; then
25248  ac_header_preproc=yes
25249else
25250  echo "$as_me: failed program was:" >&5
25251sed 's/^/| /' conftest.$ac_ext >&5
25252
25253  ac_header_preproc=no
25254fi
25255
25256rm -f conftest.err conftest.$ac_ext
25257{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25258echo "${ECHO_T}$ac_header_preproc" >&6; }
25259
25260# So?  What about this header?
25261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25262  yes:no: )
25263    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25265    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25267    ac_header_preproc=yes
25268    ;;
25269  no:yes:* )
25270    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25272    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25273echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25274    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25276    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25277echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25278    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25280    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25282
25283    ;;
25284esac
25285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25288  echo $ECHO_N "(cached) $ECHO_C" >&6
25289else
25290  eval "$as_ac_Header=\$ac_header_preproc"
25291fi
25292ac_res=`eval echo '${'$as_ac_Header'}'`
25293	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25294echo "${ECHO_T}$ac_res" >&6; }
25295
25296fi
25297if test `eval echo '${'$as_ac_Header'}'` = yes; then
25298  cat >>confdefs.h <<_ACEOF
25299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25300_ACEOF
25301
25302fi
25303
25304done
25305
25306  if test $ac_cv_header_sys_inttypes_h = yes; then
25307    HAVE_SYS_INTTYPES_H=1
25308  else
25309    HAVE_SYS_INTTYPES_H=0
25310  fi
25311
25312
25313
25314for ac_header in sys/bitypes.h
25315do
25316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25318  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25321  echo $ECHO_N "(cached) $ECHO_C" >&6
25322fi
25323ac_res=`eval echo '${'$as_ac_Header'}'`
25324	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25325echo "${ECHO_T}$ac_res" >&6; }
25326else
25327  # Is the header compilable?
25328{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25330cat >conftest.$ac_ext <<_ACEOF
25331/* confdefs.h.  */
25332_ACEOF
25333cat confdefs.h >>conftest.$ac_ext
25334cat >>conftest.$ac_ext <<_ACEOF
25335/* end confdefs.h.  */
25336$ac_includes_default
25337#include <$ac_header>
25338_ACEOF
25339rm -f conftest.$ac_objext
25340if { (ac_try="$ac_compile"
25341case "(($ac_try" in
25342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343  *) ac_try_echo=$ac_try;;
25344esac
25345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25346  (eval "$ac_compile") 2>conftest.er1
25347  ac_status=$?
25348  grep -v '^ *+' conftest.er1 >conftest.err
25349  rm -f conftest.er1
25350  cat conftest.err >&5
25351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352  (exit $ac_status); } &&
25353	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25354  { (case "(($ac_try" in
25355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356  *) ac_try_echo=$ac_try;;
25357esac
25358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359  (eval "$ac_try") 2>&5
25360  ac_status=$?
25361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362  (exit $ac_status); }; } &&
25363	 { ac_try='test -s conftest.$ac_objext'
25364  { (case "(($ac_try" in
25365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366  *) ac_try_echo=$ac_try;;
25367esac
25368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25369  (eval "$ac_try") 2>&5
25370  ac_status=$?
25371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372  (exit $ac_status); }; }; then
25373  ac_header_compiler=yes
25374else
25375  echo "$as_me: failed program was:" >&5
25376sed 's/^/| /' conftest.$ac_ext >&5
25377
25378	ac_header_compiler=no
25379fi
25380
25381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25383echo "${ECHO_T}$ac_header_compiler" >&6; }
25384
25385# Is the header present?
25386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25388cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h.  */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h.  */
25394#include <$ac_header>
25395_ACEOF
25396if { (ac_try="$ac_cpp conftest.$ac_ext"
25397case "(($ac_try" in
25398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399  *) ac_try_echo=$ac_try;;
25400esac
25401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25403  ac_status=$?
25404  grep -v '^ *+' conftest.er1 >conftest.err
25405  rm -f conftest.er1
25406  cat conftest.err >&5
25407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408  (exit $ac_status); } >/dev/null; then
25409  if test -s conftest.err; then
25410    ac_cpp_err=$ac_c_preproc_warn_flag
25411    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25412  else
25413    ac_cpp_err=
25414  fi
25415else
25416  ac_cpp_err=yes
25417fi
25418if test -z "$ac_cpp_err"; then
25419  ac_header_preproc=yes
25420else
25421  echo "$as_me: failed program was:" >&5
25422sed 's/^/| /' conftest.$ac_ext >&5
25423
25424  ac_header_preproc=no
25425fi
25426
25427rm -f conftest.err conftest.$ac_ext
25428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25429echo "${ECHO_T}$ac_header_preproc" >&6; }
25430
25431# So?  What about this header?
25432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25433  yes:no: )
25434    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25436    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25438    ac_header_preproc=yes
25439    ;;
25440  no:yes:* )
25441    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25443    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25444echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25445    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25447    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25448echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25451    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25453
25454    ;;
25455esac
25456{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25459  echo $ECHO_N "(cached) $ECHO_C" >&6
25460else
25461  eval "$as_ac_Header=\$ac_header_preproc"
25462fi
25463ac_res=`eval echo '${'$as_ac_Header'}'`
25464	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25465echo "${ECHO_T}$ac_res" >&6; }
25466
25467fi
25468if test `eval echo '${'$as_ac_Header'}'` = yes; then
25469  cat >>confdefs.h <<_ACEOF
25470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25471_ACEOF
25472
25473fi
25474
25475done
25476
25477  if test $ac_cv_header_sys_bitypes_h = yes; then
25478    HAVE_SYS_BITYPES_H=1
25479  else
25480    HAVE_SYS_BITYPES_H=0
25481  fi
25482
25483
25484    { echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
25485echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6; }
25486if test "${gl_cv_long_bitsize_64+set}" = set; then
25487  echo $ECHO_N "(cached) $ECHO_C" >&6
25488else
25489
25490    cat >conftest.$ac_ext <<_ACEOF
25491/* confdefs.h.  */
25492_ACEOF
25493cat confdefs.h >>conftest.$ac_ext
25494cat >>conftest.$ac_ext <<_ACEOF
25495/* end confdefs.h.  */
25496
25497#define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
25498#define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
25499typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
25500
25501int
25502main ()
25503{
25504
25505  ;
25506  return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext
25510if { (ac_try="$ac_compile"
25511case "(($ac_try" in
25512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513  *) ac_try_echo=$ac_try;;
25514esac
25515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25516  (eval "$ac_compile") 2>conftest.er1
25517  ac_status=$?
25518  grep -v '^ *+' conftest.er1 >conftest.err
25519  rm -f conftest.er1
25520  cat conftest.err >&5
25521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522  (exit $ac_status); } &&
25523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25524  { (case "(($ac_try" in
25525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526  *) ac_try_echo=$ac_try;;
25527esac
25528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529  (eval "$ac_try") 2>&5
25530  ac_status=$?
25531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532  (exit $ac_status); }; } &&
25533	 { ac_try='test -s conftest.$ac_objext'
25534  { (case "(($ac_try" in
25535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536  *) ac_try_echo=$ac_try;;
25537esac
25538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539  (eval "$ac_try") 2>&5
25540  ac_status=$?
25541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542  (exit $ac_status); }; }; then
25543  gl_cv_long_bitsize_64=yes
25544else
25545  echo "$as_me: failed program was:" >&5
25546sed 's/^/| /' conftest.$ac_ext >&5
25547
25548	gl_cv_long_bitsize_64=no
25549fi
25550
25551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25552fi
25553{ echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
25554echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6; }
25555  if test $gl_cv_long_bitsize_64 = yes; then
25556    HAVE_LONG_64BIT=1
25557  else
25558    HAVE_LONG_64BIT=0
25559  fi
25560
25561
25562    { echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
25563echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6; }
25564if test "${gl_cv_longlong_bitsize_64+set}" = set; then
25565  echo $ECHO_N "(cached) $ECHO_C" >&6
25566else
25567
25568    cat >conftest.$ac_ext <<_ACEOF
25569/* confdefs.h.  */
25570_ACEOF
25571cat confdefs.h >>conftest.$ac_ext
25572cat >>conftest.$ac_ext <<_ACEOF
25573/* end confdefs.h.  */
25574
25575#define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
25576#define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
25577typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
25578
25579int
25580main ()
25581{
25582
25583  ;
25584  return 0;
25585}
25586_ACEOF
25587rm -f conftest.$ac_objext
25588if { (ac_try="$ac_compile"
25589case "(($ac_try" in
25590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591  *) ac_try_echo=$ac_try;;
25592esac
25593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594  (eval "$ac_compile") 2>conftest.er1
25595  ac_status=$?
25596  grep -v '^ *+' conftest.er1 >conftest.err
25597  rm -f conftest.er1
25598  cat conftest.err >&5
25599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600  (exit $ac_status); } &&
25601	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25602  { (case "(($ac_try" in
25603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604  *) ac_try_echo=$ac_try;;
25605esac
25606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607  (eval "$ac_try") 2>&5
25608  ac_status=$?
25609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610  (exit $ac_status); }; } &&
25611	 { ac_try='test -s conftest.$ac_objext'
25612  { (case "(($ac_try" in
25613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614  *) ac_try_echo=$ac_try;;
25615esac
25616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617  (eval "$ac_try") 2>&5
25618  ac_status=$?
25619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620  (exit $ac_status); }; }; then
25621  gl_cv_longlong_bitsize_64=yes
25622else
25623  echo "$as_me: failed program was:" >&5
25624sed 's/^/| /' conftest.$ac_ext >&5
25625
25626	gl_cv_longlong_bitsize_64=no
25627fi
25628
25629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630fi
25631{ echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
25632echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6; }
25633  if test $gl_cv_longlong_bitsize_64 = yes; then
25634    HAVE_LONG_LONG_64BIT=1
25635  else
25636    HAVE_LONG_LONG_64BIT=0
25637  fi
25638
25639
25640          other_includes='
25641/* Get those types that are already defined in other system include files.  */
25642#if defined(__FreeBSD__) && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)
25643# include <sys/inttypes.h>
25644#endif
25645#if defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)
25646# include <sys/types.h>
25647# if HAVE_INTTYPES_H
25648#  include FULL_PATH_INTTYPES_H
25649# endif
25650#endif
25651#if defined(__linux__) && HAVE_SYS_BITYPES_H
25652# include <sys/bitypes.h>
25653#endif
25654#if defined(__sun) && HAVE_SYS_INTTYPES_H
25655# include <sys/inttypes.h>
25656#endif
25657#if (defined(__hpux) || defined(_AIX)) && HAVE_INTTYPES_H
25658# include FULL_PATH_INTTYPES_H
25659#endif
25660#if HAVE_STDINT_H && !(defined(__sgi) && HAVE_INTTYPES_H && !defined(__c99))
25661# include FULL_PATH_STDINT_H
25662#endif
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
25693
25694  for gltype in int8_t int16_t int32_t int64_t \
25695     uint8_t uint16_t uint32_t uint64_t \
25696     int_least8_t int_least16_t int_least32_t int_least64_t \
25697     uint_least8_t uint_least16_t uint_least32_t uint_least64_t \
25698     int_fast8_t int_fast16_t int_fast32_t int_fast64_t \
25699     uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t \
25700     intptr_t uintptr_t \
25701     intmax_t uintmax_t ; do
25702    { echo "$as_me:$LINENO: checking for $gltype" >&5
25703echo $ECHO_N "checking for $gltype... $ECHO_C" >&6; }
25704    cat >conftest.$ac_ext <<_ACEOF
25705
25706      /* confdefs.h.  */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h.  */
25711$other_includes
25712/* Test if the type exists.  */
25713$gltype x = 17;
25714
25715int
25716main ()
25717{
25718
25719  ;
25720  return 0;
25721}
25722_ACEOF
25723rm -f conftest.$ac_objext
25724if { (ac_try="$ac_compile"
25725case "(($ac_try" in
25726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727  *) ac_try_echo=$ac_try;;
25728esac
25729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730  (eval "$ac_compile") 2>conftest.er1
25731  ac_status=$?
25732  grep -v '^ *+' conftest.er1 >conftest.err
25733  rm -f conftest.er1
25734  cat conftest.err >&5
25735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736  (exit $ac_status); } &&
25737	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25738  { (case "(($ac_try" in
25739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25740  *) ac_try_echo=$ac_try;;
25741esac
25742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25743  (eval "$ac_try") 2>&5
25744  ac_status=$?
25745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746  (exit $ac_status); }; } &&
25747	 { ac_try='test -s conftest.$ac_objext'
25748  { (case "(($ac_try" in
25749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750  *) ac_try_echo=$ac_try;;
25751esac
25752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753  (eval "$ac_try") 2>&5
25754  ac_status=$?
25755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756  (exit $ac_status); }; }; then
25757  result=yes
25758else
25759  echo "$as_me: failed program was:" >&5
25760sed 's/^/| /' conftest.$ac_ext >&5
25761
25762	result=no
25763fi
25764
25765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25766    eval gl_cv_type_${gltype}=\$result
25767    { echo "$as_me:$LINENO: result: $result" >&5
25768echo "${ECHO_T}$result" >&6; }
25769    GLTYPE=`echo "$gltype" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
25770    if test $result = yes; then
25771      cat >>confdefs.h <<_ACEOF
25772#define HAVE_${GLTYPE} 1
25773_ACEOF
25774
25775      eval HAVE_${GLTYPE}=1
25776    else
25777      eval HAVE_${GLTYPE}=0
25778    fi
25779  done
25780
25781
25782
25783    gl_cv_header_working_stdint_h=no
25784  if test $gl_cv_header_stdint_h = yes; then
25785
25786
25787
25788
25789
25790
25791
25792
25793  for gltype in int64_t uint64_t \
25794       int_least64_t uint_least64_t \
25795       int_fast64_t uint_fast64_t ; do
25796    { echo "$as_me:$LINENO: checking for $gltype" >&5
25797echo $ECHO_N "checking for $gltype... $ECHO_C" >&6; }
25798    cat >conftest.$ac_ext <<_ACEOF
25799
25800      /* confdefs.h.  */
25801_ACEOF
25802cat confdefs.h >>conftest.$ac_ext
25803cat >>conftest.$ac_ext <<_ACEOF
25804/* end confdefs.h.  */
25805#include <stdint.h>
25806/* Test if the type exists.  */
25807$gltype x = 17;
25808
25809int
25810main ()
25811{
25812
25813  ;
25814  return 0;
25815}
25816_ACEOF
25817rm -f conftest.$ac_objext
25818if { (ac_try="$ac_compile"
25819case "(($ac_try" in
25820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821  *) ac_try_echo=$ac_try;;
25822esac
25823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824  (eval "$ac_compile") 2>conftest.er1
25825  ac_status=$?
25826  grep -v '^ *+' conftest.er1 >conftest.err
25827  rm -f conftest.er1
25828  cat conftest.err >&5
25829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830  (exit $ac_status); } &&
25831	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25832  { (case "(($ac_try" in
25833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834  *) ac_try_echo=$ac_try;;
25835esac
25836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837  (eval "$ac_try") 2>&5
25838  ac_status=$?
25839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840  (exit $ac_status); }; } &&
25841	 { ac_try='test -s conftest.$ac_objext'
25842  { (case "(($ac_try" in
25843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844  *) ac_try_echo=$ac_try;;
25845esac
25846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847  (eval "$ac_try") 2>&5
25848  ac_status=$?
25849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850  (exit $ac_status); }; }; then
25851  result=yes
25852else
25853  echo "$as_me: failed program was:" >&5
25854sed 's/^/| /' conftest.$ac_ext >&5
25855
25856	result=no
25857fi
25858
25859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25860    eval gl_cv_stdint_${gltype}=\$result
25861    { echo "$as_me:$LINENO: result: $result" >&5
25862echo "${ECHO_T}$result" >&6; }
25863    GLTYPE=`echo "$gltype" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
25864    if test $result = yes; then
25865      cat >>confdefs.h <<_ACEOF
25866#define HAVE_${GLTYPE}_IN_STDINT_H 1
25867_ACEOF
25868
25869      eval HAVE_${GLTYPE}_IN_STDINT_H=1
25870    else
25871      eval HAVE_${GLTYPE}_IN_STDINT_H=0
25872    fi
25873  done
25874
25875
25876    cat >conftest.$ac_ext <<_ACEOF
25877
25878      /* confdefs.h.  */
25879_ACEOF
25880cat confdefs.h >>conftest.$ac_ext
25881cat >>conftest.$ac_ext <<_ACEOF
25882/* end confdefs.h.  */
25883
25884#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
25885#include <stdint.h>
25886int8_t a1 = INT8_C (17);
25887int16_t a2 = INT16_C (17);
25888int32_t a3 = INT32_C (17);
25889#if HAVE_INT64_T_IN_STDINT_H
25890int64_t a4 = INT64_C (17);
25891#endif
25892uint8_t b1 = UINT8_C (17);
25893uint16_t b2 = UINT16_C (17);
25894uint32_t b3 = UINT32_C (17);
25895#if HAVE_UINT64_T_IN_STDINT_H
25896uint64_t b4 = UINT64_C (17);
25897#endif
25898int_least8_t c1 = 17;
25899int_least16_t c2 = 17;
25900int_least32_t c3 = 17;
25901#if HAVE_INT_LEAST64_T_IN_STDINT_H
25902int_least64_t c4 = 17;
25903#endif
25904uint_least8_t d1 = 17;
25905uint_least16_t d2 = 17;
25906uint_least32_t d3 = 17;
25907#if HAVE_UINT_LEAST64_T_IN_STDINT_H
25908uint_least64_t d4 = 17;
25909#endif
25910int_fast8_t e1 = 17;
25911int_fast16_t e2 = 17;
25912int_fast32_t e3 = 17;
25913#if HAVE_INT_FAST64_T_IN_STDINT_H
25914int_fast64_t e4 = 17;
25915#endif
25916uint_fast8_t f1 = 17;
25917uint_fast16_t f2 = 17;
25918uint_fast32_t f3 = 17;
25919#if HAVE_UINT_FAST64_T_IN_STDINT_H
25920uint_fast64_t f4 = 17;
25921#endif
25922intptr_t g = 17;
25923uintptr_t h = 17;
25924intmax_t i = INTMAX_C (17);
25925uintmax_t j = UINTMAX_C (17);
25926
25927int
25928main ()
25929{
25930
25931  ;
25932  return 0;
25933}
25934_ACEOF
25935rm -f conftest.$ac_objext
25936if { (ac_try="$ac_compile"
25937case "(($ac_try" in
25938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939  *) ac_try_echo=$ac_try;;
25940esac
25941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942  (eval "$ac_compile") 2>conftest.er1
25943  ac_status=$?
25944  grep -v '^ *+' conftest.er1 >conftest.err
25945  rm -f conftest.er1
25946  cat conftest.err >&5
25947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948  (exit $ac_status); } &&
25949	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25950  { (case "(($ac_try" in
25951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25952  *) ac_try_echo=$ac_try;;
25953esac
25954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25955  (eval "$ac_try") 2>&5
25956  ac_status=$?
25957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958  (exit $ac_status); }; } &&
25959	 { ac_try='test -s conftest.$ac_objext'
25960  { (case "(($ac_try" in
25961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962  *) ac_try_echo=$ac_try;;
25963esac
25964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965  (eval "$ac_try") 2>&5
25966  ac_status=$?
25967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968  (exit $ac_status); }; }; then
25969  gl_cv_header_working_stdint_h=yes
25970else
25971  echo "$as_me: failed program was:" >&5
25972sed 's/^/| /' conftest.$ac_ext >&5
25973
25974
25975fi
25976
25977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25978  fi
25979  if test $gl_cv_header_working_stdint_h = yes; then
25980        suff64=
25981    suffu64=
25982    if test $HAVE_LONG_64BIT = 1; then
25983      suff64=L
25984      suffu64=UL
25985    else
25986      if test $HAVE_LONG_LONG_64BIT = 1; then
25987        suff64=LL
25988        suffu64=ULL
25989      else
25990        cat >conftest.$ac_ext <<_ACEOF
25991/* confdefs.h.  */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h.  */
25996
25997#ifdef _MSC_VER
25998msvc compiler
25999#endif
26000
26001_ACEOF
26002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26003  $EGREP "msvc compiler" >/dev/null 2>&1; then
26004
26005          suff64=i64
26006          suffu64=ui64
26007
26008fi
26009rm -f conftest*
26010
26011      fi
26012    fi
26013
26014  { echo "$as_me:$LINENO: checking for INT8_MIN" >&5
26015echo $ECHO_N "checking for INT8_MIN... $ECHO_C" >&6; }
26016if test "${gl_cv_stdint_INT8_MIN+set}" = set; then
26017  echo $ECHO_N "(cached) $ECHO_C" >&6
26018else
26019  cat >conftest.$ac_ext <<_ACEOF
26020/* confdefs.h.  */
26021_ACEOF
26022cat confdefs.h >>conftest.$ac_ext
26023cat >>conftest.$ac_ext <<_ACEOF
26024/* end confdefs.h.  */
26025#include <stdint.h>
26026#ifdef INT8_MIN
26027found it
26028#endif
26029
26030_ACEOF
26031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26032  $EGREP "found it" >/dev/null 2>&1; then
26033  gl_cv_stdint_INT8_MIN=yes
26034else
26035  gl_cv_stdint_INT8_MIN="-128"
26036fi
26037rm -f conftest*
26038
26039fi
26040{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT8_MIN" >&5
26041echo "${ECHO_T}$gl_cv_stdint_INT8_MIN" >&6; }
26042  if test "$gl_cv_stdint_INT8_MIN" != yes; then
26043
26044cat >>confdefs.h <<_ACEOF
26045#define INT8_MIN -128
26046_ACEOF
26047
26048  fi
26049
26050
26051  { echo "$as_me:$LINENO: checking for INT8_MAX" >&5
26052echo $ECHO_N "checking for INT8_MAX... $ECHO_C" >&6; }
26053if test "${gl_cv_stdint_INT8_MAX+set}" = set; then
26054  echo $ECHO_N "(cached) $ECHO_C" >&6
26055else
26056  cat >conftest.$ac_ext <<_ACEOF
26057/* confdefs.h.  */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h.  */
26062#include <stdint.h>
26063#ifdef INT8_MAX
26064found it
26065#endif
26066
26067_ACEOF
26068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26069  $EGREP "found it" >/dev/null 2>&1; then
26070  gl_cv_stdint_INT8_MAX=yes
26071else
26072  gl_cv_stdint_INT8_MAX="127"
26073fi
26074rm -f conftest*
26075
26076fi
26077{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT8_MAX" >&5
26078echo "${ECHO_T}$gl_cv_stdint_INT8_MAX" >&6; }
26079  if test "$gl_cv_stdint_INT8_MAX" != yes; then
26080
26081cat >>confdefs.h <<_ACEOF
26082#define INT8_MAX 127
26083_ACEOF
26084
26085  fi
26086
26087
26088  { echo "$as_me:$LINENO: checking for UINT8_MAX" >&5
26089echo $ECHO_N "checking for UINT8_MAX... $ECHO_C" >&6; }
26090if test "${gl_cv_stdint_UINT8_MAX+set}" = set; then
26091  echo $ECHO_N "(cached) $ECHO_C" >&6
26092else
26093  cat >conftest.$ac_ext <<_ACEOF
26094/* confdefs.h.  */
26095_ACEOF
26096cat confdefs.h >>conftest.$ac_ext
26097cat >>conftest.$ac_ext <<_ACEOF
26098/* end confdefs.h.  */
26099#include <stdint.h>
26100#ifdef UINT8_MAX
26101found it
26102#endif
26103
26104_ACEOF
26105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26106  $EGREP "found it" >/dev/null 2>&1; then
26107  gl_cv_stdint_UINT8_MAX=yes
26108else
26109  gl_cv_stdint_UINT8_MAX="255"
26110fi
26111rm -f conftest*
26112
26113fi
26114{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT8_MAX" >&5
26115echo "${ECHO_T}$gl_cv_stdint_UINT8_MAX" >&6; }
26116  if test "$gl_cv_stdint_UINT8_MAX" != yes; then
26117
26118cat >>confdefs.h <<_ACEOF
26119#define UINT8_MAX 255
26120_ACEOF
26121
26122  fi
26123
26124
26125  { echo "$as_me:$LINENO: checking for INT16_MIN" >&5
26126echo $ECHO_N "checking for INT16_MIN... $ECHO_C" >&6; }
26127if test "${gl_cv_stdint_INT16_MIN+set}" = set; then
26128  echo $ECHO_N "(cached) $ECHO_C" >&6
26129else
26130  cat >conftest.$ac_ext <<_ACEOF
26131/* confdefs.h.  */
26132_ACEOF
26133cat confdefs.h >>conftest.$ac_ext
26134cat >>conftest.$ac_ext <<_ACEOF
26135/* end confdefs.h.  */
26136#include <stdint.h>
26137#ifdef INT16_MIN
26138found it
26139#endif
26140
26141_ACEOF
26142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26143  $EGREP "found it" >/dev/null 2>&1; then
26144  gl_cv_stdint_INT16_MIN=yes
26145else
26146  gl_cv_stdint_INT16_MIN="-32768"
26147fi
26148rm -f conftest*
26149
26150fi
26151{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT16_MIN" >&5
26152echo "${ECHO_T}$gl_cv_stdint_INT16_MIN" >&6; }
26153  if test "$gl_cv_stdint_INT16_MIN" != yes; then
26154
26155cat >>confdefs.h <<_ACEOF
26156#define INT16_MIN -32768
26157_ACEOF
26158
26159  fi
26160
26161
26162  { echo "$as_me:$LINENO: checking for INT16_MAX" >&5
26163echo $ECHO_N "checking for INT16_MAX... $ECHO_C" >&6; }
26164if test "${gl_cv_stdint_INT16_MAX+set}" = set; then
26165  echo $ECHO_N "(cached) $ECHO_C" >&6
26166else
26167  cat >conftest.$ac_ext <<_ACEOF
26168/* confdefs.h.  */
26169_ACEOF
26170cat confdefs.h >>conftest.$ac_ext
26171cat >>conftest.$ac_ext <<_ACEOF
26172/* end confdefs.h.  */
26173#include <stdint.h>
26174#ifdef INT16_MAX
26175found it
26176#endif
26177
26178_ACEOF
26179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26180  $EGREP "found it" >/dev/null 2>&1; then
26181  gl_cv_stdint_INT16_MAX=yes
26182else
26183  gl_cv_stdint_INT16_MAX="32767"
26184fi
26185rm -f conftest*
26186
26187fi
26188{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT16_MAX" >&5
26189echo "${ECHO_T}$gl_cv_stdint_INT16_MAX" >&6; }
26190  if test "$gl_cv_stdint_INT16_MAX" != yes; then
26191
26192cat >>confdefs.h <<_ACEOF
26193#define INT16_MAX 32767
26194_ACEOF
26195
26196  fi
26197
26198
26199  { echo "$as_me:$LINENO: checking for UINT16_MAX" >&5
26200echo $ECHO_N "checking for UINT16_MAX... $ECHO_C" >&6; }
26201if test "${gl_cv_stdint_UINT16_MAX+set}" = set; then
26202  echo $ECHO_N "(cached) $ECHO_C" >&6
26203else
26204  cat >conftest.$ac_ext <<_ACEOF
26205/* confdefs.h.  */
26206_ACEOF
26207cat confdefs.h >>conftest.$ac_ext
26208cat >>conftest.$ac_ext <<_ACEOF
26209/* end confdefs.h.  */
26210#include <stdint.h>
26211#ifdef UINT16_MAX
26212found it
26213#endif
26214
26215_ACEOF
26216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26217  $EGREP "found it" >/dev/null 2>&1; then
26218  gl_cv_stdint_UINT16_MAX=yes
26219else
26220  gl_cv_stdint_UINT16_MAX="65535"
26221fi
26222rm -f conftest*
26223
26224fi
26225{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT16_MAX" >&5
26226echo "${ECHO_T}$gl_cv_stdint_UINT16_MAX" >&6; }
26227  if test "$gl_cv_stdint_UINT16_MAX" != yes; then
26228
26229cat >>confdefs.h <<_ACEOF
26230#define UINT16_MAX 65535
26231_ACEOF
26232
26233  fi
26234
26235
26236  { echo "$as_me:$LINENO: checking for INT32_MIN" >&5
26237echo $ECHO_N "checking for INT32_MIN... $ECHO_C" >&6; }
26238if test "${gl_cv_stdint_INT32_MIN+set}" = set; then
26239  echo $ECHO_N "(cached) $ECHO_C" >&6
26240else
26241  cat >conftest.$ac_ext <<_ACEOF
26242/* confdefs.h.  */
26243_ACEOF
26244cat confdefs.h >>conftest.$ac_ext
26245cat >>conftest.$ac_ext <<_ACEOF
26246/* end confdefs.h.  */
26247#include <stdint.h>
26248#ifdef INT32_MIN
26249found it
26250#endif
26251
26252_ACEOF
26253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26254  $EGREP "found it" >/dev/null 2>&1; then
26255  gl_cv_stdint_INT32_MIN=yes
26256else
26257  gl_cv_stdint_INT32_MIN="(~INT32_MAX)"
26258fi
26259rm -f conftest*
26260
26261fi
26262{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT32_MIN" >&5
26263echo "${ECHO_T}$gl_cv_stdint_INT32_MIN" >&6; }
26264  if test "$gl_cv_stdint_INT32_MIN" != yes; then
26265
26266cat >>confdefs.h <<_ACEOF
26267#define INT32_MIN (~INT32_MAX)
26268_ACEOF
26269
26270  fi
26271
26272
26273  { echo "$as_me:$LINENO: checking for INT32_MAX" >&5
26274echo $ECHO_N "checking for INT32_MAX... $ECHO_C" >&6; }
26275if test "${gl_cv_stdint_INT32_MAX+set}" = set; then
26276  echo $ECHO_N "(cached) $ECHO_C" >&6
26277else
26278  cat >conftest.$ac_ext <<_ACEOF
26279/* confdefs.h.  */
26280_ACEOF
26281cat confdefs.h >>conftest.$ac_ext
26282cat >>conftest.$ac_ext <<_ACEOF
26283/* end confdefs.h.  */
26284#include <stdint.h>
26285#ifdef INT32_MAX
26286found it
26287#endif
26288
26289_ACEOF
26290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26291  $EGREP "found it" >/dev/null 2>&1; then
26292  gl_cv_stdint_INT32_MAX=yes
26293else
26294  gl_cv_stdint_INT32_MAX="2147483647"
26295fi
26296rm -f conftest*
26297
26298fi
26299{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT32_MAX" >&5
26300echo "${ECHO_T}$gl_cv_stdint_INT32_MAX" >&6; }
26301  if test "$gl_cv_stdint_INT32_MAX" != yes; then
26302
26303cat >>confdefs.h <<_ACEOF
26304#define INT32_MAX 2147483647
26305_ACEOF
26306
26307  fi
26308
26309
26310  { echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
26311echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6; }
26312if test "${gl_cv_stdint_UINT32_MAX+set}" = set; then
26313  echo $ECHO_N "(cached) $ECHO_C" >&6
26314else
26315  cat >conftest.$ac_ext <<_ACEOF
26316/* confdefs.h.  */
26317_ACEOF
26318cat confdefs.h >>conftest.$ac_ext
26319cat >>conftest.$ac_ext <<_ACEOF
26320/* end confdefs.h.  */
26321#include <stdint.h>
26322#ifdef UINT32_MAX
26323found it
26324#endif
26325
26326_ACEOF
26327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26328  $EGREP "found it" >/dev/null 2>&1; then
26329  gl_cv_stdint_UINT32_MAX=yes
26330else
26331  gl_cv_stdint_UINT32_MAX="4294967295U"
26332fi
26333rm -f conftest*
26334
26335fi
26336{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT32_MAX" >&5
26337echo "${ECHO_T}$gl_cv_stdint_UINT32_MAX" >&6; }
26338  if test "$gl_cv_stdint_UINT32_MAX" != yes; then
26339
26340cat >>confdefs.h <<_ACEOF
26341#define UINT32_MAX 4294967295U
26342_ACEOF
26343
26344  fi
26345
26346    if test $gl_cv_stdint_int64_t = yes; then
26347
26348  { echo "$as_me:$LINENO: checking for INT64_MIN" >&5
26349echo $ECHO_N "checking for INT64_MIN... $ECHO_C" >&6; }
26350if test "${gl_cv_stdint_INT64_MIN+set}" = set; then
26351  echo $ECHO_N "(cached) $ECHO_C" >&6
26352else
26353  cat >conftest.$ac_ext <<_ACEOF
26354/* confdefs.h.  */
26355_ACEOF
26356cat confdefs.h >>conftest.$ac_ext
26357cat >>conftest.$ac_ext <<_ACEOF
26358/* end confdefs.h.  */
26359#include <stdint.h>
26360#ifdef INT64_MIN
26361found it
26362#endif
26363
26364_ACEOF
26365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26366  $EGREP "found it" >/dev/null 2>&1; then
26367  gl_cv_stdint_INT64_MIN=yes
26368else
26369  gl_cv_stdint_INT64_MIN="(~INT64_MAX)"
26370fi
26371rm -f conftest*
26372
26373fi
26374{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT64_MIN" >&5
26375echo "${ECHO_T}$gl_cv_stdint_INT64_MIN" >&6; }
26376  if test "$gl_cv_stdint_INT64_MIN" != yes; then
26377
26378cat >>confdefs.h <<_ACEOF
26379#define INT64_MIN (~INT64_MAX)
26380_ACEOF
26381
26382  fi
26383
26384
26385  { echo "$as_me:$LINENO: checking for INT64_MAX" >&5
26386echo $ECHO_N "checking for INT64_MAX... $ECHO_C" >&6; }
26387if test "${gl_cv_stdint_INT64_MAX+set}" = set; then
26388  echo $ECHO_N "(cached) $ECHO_C" >&6
26389else
26390  cat >conftest.$ac_ext <<_ACEOF
26391/* confdefs.h.  */
26392_ACEOF
26393cat confdefs.h >>conftest.$ac_ext
26394cat >>conftest.$ac_ext <<_ACEOF
26395/* end confdefs.h.  */
26396#include <stdint.h>
26397#ifdef INT64_MAX
26398found it
26399#endif
26400
26401_ACEOF
26402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26403  $EGREP "found it" >/dev/null 2>&1; then
26404  gl_cv_stdint_INT64_MAX=yes
26405else
26406  gl_cv_stdint_INT64_MAX="9223372036854775807${suff64}"
26407fi
26408rm -f conftest*
26409
26410fi
26411{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT64_MAX" >&5
26412echo "${ECHO_T}$gl_cv_stdint_INT64_MAX" >&6; }
26413  if test "$gl_cv_stdint_INT64_MAX" != yes; then
26414
26415cat >>confdefs.h <<_ACEOF
26416#define INT64_MAX 9223372036854775807${suff64}
26417_ACEOF
26418
26419  fi
26420
26421    fi
26422    if test $gl_cv_stdint_uint64_t = yes; then
26423
26424  { echo "$as_me:$LINENO: checking for UINT64_MAX" >&5
26425echo $ECHO_N "checking for UINT64_MAX... $ECHO_C" >&6; }
26426if test "${gl_cv_stdint_UINT64_MAX+set}" = set; then
26427  echo $ECHO_N "(cached) $ECHO_C" >&6
26428else
26429  cat >conftest.$ac_ext <<_ACEOF
26430/* confdefs.h.  */
26431_ACEOF
26432cat confdefs.h >>conftest.$ac_ext
26433cat >>conftest.$ac_ext <<_ACEOF
26434/* end confdefs.h.  */
26435#include <stdint.h>
26436#ifdef UINT64_MAX
26437found it
26438#endif
26439
26440_ACEOF
26441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26442  $EGREP "found it" >/dev/null 2>&1; then
26443  gl_cv_stdint_UINT64_MAX=yes
26444else
26445  gl_cv_stdint_UINT64_MAX="18446744073709551615${suffu64}"
26446fi
26447rm -f conftest*
26448
26449fi
26450{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT64_MAX" >&5
26451echo "${ECHO_T}$gl_cv_stdint_UINT64_MAX" >&6; }
26452  if test "$gl_cv_stdint_UINT64_MAX" != yes; then
26453
26454cat >>confdefs.h <<_ACEOF
26455#define UINT64_MAX 18446744073709551615${suffu64}
26456_ACEOF
26457
26458  fi
26459
26460    fi
26461
26462  { echo "$as_me:$LINENO: checking for INT_LEAST8_MIN" >&5
26463echo $ECHO_N "checking for INT_LEAST8_MIN... $ECHO_C" >&6; }
26464if test "${gl_cv_stdint_INT_LEAST8_MIN+set}" = set; then
26465  echo $ECHO_N "(cached) $ECHO_C" >&6
26466else
26467  cat >conftest.$ac_ext <<_ACEOF
26468/* confdefs.h.  */
26469_ACEOF
26470cat confdefs.h >>conftest.$ac_ext
26471cat >>conftest.$ac_ext <<_ACEOF
26472/* end confdefs.h.  */
26473#include <stdint.h>
26474#ifdef INT_LEAST8_MIN
26475found it
26476#endif
26477
26478_ACEOF
26479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26480  $EGREP "found it" >/dev/null 2>&1; then
26481  gl_cv_stdint_INT_LEAST8_MIN=yes
26482else
26483  gl_cv_stdint_INT_LEAST8_MIN="INT8_MIN"
26484fi
26485rm -f conftest*
26486
26487fi
26488{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST8_MIN" >&5
26489echo "${ECHO_T}$gl_cv_stdint_INT_LEAST8_MIN" >&6; }
26490  if test "$gl_cv_stdint_INT_LEAST8_MIN" != yes; then
26491
26492cat >>confdefs.h <<_ACEOF
26493#define INT_LEAST8_MIN INT8_MIN
26494_ACEOF
26495
26496  fi
26497
26498
26499  { echo "$as_me:$LINENO: checking for INT_LEAST8_MAX" >&5
26500echo $ECHO_N "checking for INT_LEAST8_MAX... $ECHO_C" >&6; }
26501if test "${gl_cv_stdint_INT_LEAST8_MAX+set}" = set; then
26502  echo $ECHO_N "(cached) $ECHO_C" >&6
26503else
26504  cat >conftest.$ac_ext <<_ACEOF
26505/* confdefs.h.  */
26506_ACEOF
26507cat confdefs.h >>conftest.$ac_ext
26508cat >>conftest.$ac_ext <<_ACEOF
26509/* end confdefs.h.  */
26510#include <stdint.h>
26511#ifdef INT_LEAST8_MAX
26512found it
26513#endif
26514
26515_ACEOF
26516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26517  $EGREP "found it" >/dev/null 2>&1; then
26518  gl_cv_stdint_INT_LEAST8_MAX=yes
26519else
26520  gl_cv_stdint_INT_LEAST8_MAX="INT8_MAX"
26521fi
26522rm -f conftest*
26523
26524fi
26525{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST8_MAX" >&5
26526echo "${ECHO_T}$gl_cv_stdint_INT_LEAST8_MAX" >&6; }
26527  if test "$gl_cv_stdint_INT_LEAST8_MAX" != yes; then
26528
26529cat >>confdefs.h <<_ACEOF
26530#define INT_LEAST8_MAX INT8_MAX
26531_ACEOF
26532
26533  fi
26534
26535
26536  { echo "$as_me:$LINENO: checking for UINT_LEAST8_MAX" >&5
26537echo $ECHO_N "checking for UINT_LEAST8_MAX... $ECHO_C" >&6; }
26538if test "${gl_cv_stdint_UINT_LEAST8_MAX+set}" = set; then
26539  echo $ECHO_N "(cached) $ECHO_C" >&6
26540else
26541  cat >conftest.$ac_ext <<_ACEOF
26542/* confdefs.h.  */
26543_ACEOF
26544cat confdefs.h >>conftest.$ac_ext
26545cat >>conftest.$ac_ext <<_ACEOF
26546/* end confdefs.h.  */
26547#include <stdint.h>
26548#ifdef UINT_LEAST8_MAX
26549found it
26550#endif
26551
26552_ACEOF
26553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26554  $EGREP "found it" >/dev/null 2>&1; then
26555  gl_cv_stdint_UINT_LEAST8_MAX=yes
26556else
26557  gl_cv_stdint_UINT_LEAST8_MAX="UINT8_MAX"
26558fi
26559rm -f conftest*
26560
26561fi
26562{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST8_MAX" >&5
26563echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST8_MAX" >&6; }
26564  if test "$gl_cv_stdint_UINT_LEAST8_MAX" != yes; then
26565
26566cat >>confdefs.h <<_ACEOF
26567#define UINT_LEAST8_MAX UINT8_MAX
26568_ACEOF
26569
26570  fi
26571
26572
26573  { echo "$as_me:$LINENO: checking for INT_LEAST16_MIN" >&5
26574echo $ECHO_N "checking for INT_LEAST16_MIN... $ECHO_C" >&6; }
26575if test "${gl_cv_stdint_INT_LEAST16_MIN+set}" = set; then
26576  echo $ECHO_N "(cached) $ECHO_C" >&6
26577else
26578  cat >conftest.$ac_ext <<_ACEOF
26579/* confdefs.h.  */
26580_ACEOF
26581cat confdefs.h >>conftest.$ac_ext
26582cat >>conftest.$ac_ext <<_ACEOF
26583/* end confdefs.h.  */
26584#include <stdint.h>
26585#ifdef INT_LEAST16_MIN
26586found it
26587#endif
26588
26589_ACEOF
26590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26591  $EGREP "found it" >/dev/null 2>&1; then
26592  gl_cv_stdint_INT_LEAST16_MIN=yes
26593else
26594  gl_cv_stdint_INT_LEAST16_MIN="INT16_MIN"
26595fi
26596rm -f conftest*
26597
26598fi
26599{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST16_MIN" >&5
26600echo "${ECHO_T}$gl_cv_stdint_INT_LEAST16_MIN" >&6; }
26601  if test "$gl_cv_stdint_INT_LEAST16_MIN" != yes; then
26602
26603cat >>confdefs.h <<_ACEOF
26604#define INT_LEAST16_MIN INT16_MIN
26605_ACEOF
26606
26607  fi
26608
26609
26610  { echo "$as_me:$LINENO: checking for INT_LEAST16_MAX" >&5
26611echo $ECHO_N "checking for INT_LEAST16_MAX... $ECHO_C" >&6; }
26612if test "${gl_cv_stdint_INT_LEAST16_MAX+set}" = set; then
26613  echo $ECHO_N "(cached) $ECHO_C" >&6
26614else
26615  cat >conftest.$ac_ext <<_ACEOF
26616/* confdefs.h.  */
26617_ACEOF
26618cat confdefs.h >>conftest.$ac_ext
26619cat >>conftest.$ac_ext <<_ACEOF
26620/* end confdefs.h.  */
26621#include <stdint.h>
26622#ifdef INT_LEAST16_MAX
26623found it
26624#endif
26625
26626_ACEOF
26627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26628  $EGREP "found it" >/dev/null 2>&1; then
26629  gl_cv_stdint_INT_LEAST16_MAX=yes
26630else
26631  gl_cv_stdint_INT_LEAST16_MAX="INT16_MAX"
26632fi
26633rm -f conftest*
26634
26635fi
26636{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST16_MAX" >&5
26637echo "${ECHO_T}$gl_cv_stdint_INT_LEAST16_MAX" >&6; }
26638  if test "$gl_cv_stdint_INT_LEAST16_MAX" != yes; then
26639
26640cat >>confdefs.h <<_ACEOF
26641#define INT_LEAST16_MAX INT16_MAX
26642_ACEOF
26643
26644  fi
26645
26646
26647  { echo "$as_me:$LINENO: checking for UINT_LEAST16_MAX" >&5
26648echo $ECHO_N "checking for UINT_LEAST16_MAX... $ECHO_C" >&6; }
26649if test "${gl_cv_stdint_UINT_LEAST16_MAX+set}" = set; then
26650  echo $ECHO_N "(cached) $ECHO_C" >&6
26651else
26652  cat >conftest.$ac_ext <<_ACEOF
26653/* confdefs.h.  */
26654_ACEOF
26655cat confdefs.h >>conftest.$ac_ext
26656cat >>conftest.$ac_ext <<_ACEOF
26657/* end confdefs.h.  */
26658#include <stdint.h>
26659#ifdef UINT_LEAST16_MAX
26660found it
26661#endif
26662
26663_ACEOF
26664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26665  $EGREP "found it" >/dev/null 2>&1; then
26666  gl_cv_stdint_UINT_LEAST16_MAX=yes
26667else
26668  gl_cv_stdint_UINT_LEAST16_MAX="UINT16_MAX"
26669fi
26670rm -f conftest*
26671
26672fi
26673{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST16_MAX" >&5
26674echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST16_MAX" >&6; }
26675  if test "$gl_cv_stdint_UINT_LEAST16_MAX" != yes; then
26676
26677cat >>confdefs.h <<_ACEOF
26678#define UINT_LEAST16_MAX UINT16_MAX
26679_ACEOF
26680
26681  fi
26682
26683
26684  { echo "$as_me:$LINENO: checking for INT_LEAST32_MIN" >&5
26685echo $ECHO_N "checking for INT_LEAST32_MIN... $ECHO_C" >&6; }
26686if test "${gl_cv_stdint_INT_LEAST32_MIN+set}" = set; then
26687  echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689  cat >conftest.$ac_ext <<_ACEOF
26690/* confdefs.h.  */
26691_ACEOF
26692cat confdefs.h >>conftest.$ac_ext
26693cat >>conftest.$ac_ext <<_ACEOF
26694/* end confdefs.h.  */
26695#include <stdint.h>
26696#ifdef INT_LEAST32_MIN
26697found it
26698#endif
26699
26700_ACEOF
26701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26702  $EGREP "found it" >/dev/null 2>&1; then
26703  gl_cv_stdint_INT_LEAST32_MIN=yes
26704else
26705  gl_cv_stdint_INT_LEAST32_MIN="INT32_MIN"
26706fi
26707rm -f conftest*
26708
26709fi
26710{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST32_MIN" >&5
26711echo "${ECHO_T}$gl_cv_stdint_INT_LEAST32_MIN" >&6; }
26712  if test "$gl_cv_stdint_INT_LEAST32_MIN" != yes; then
26713
26714cat >>confdefs.h <<_ACEOF
26715#define INT_LEAST32_MIN INT32_MIN
26716_ACEOF
26717
26718  fi
26719
26720
26721  { echo "$as_me:$LINENO: checking for INT_LEAST32_MAX" >&5
26722echo $ECHO_N "checking for INT_LEAST32_MAX... $ECHO_C" >&6; }
26723if test "${gl_cv_stdint_INT_LEAST32_MAX+set}" = set; then
26724  echo $ECHO_N "(cached) $ECHO_C" >&6
26725else
26726  cat >conftest.$ac_ext <<_ACEOF
26727/* confdefs.h.  */
26728_ACEOF
26729cat confdefs.h >>conftest.$ac_ext
26730cat >>conftest.$ac_ext <<_ACEOF
26731/* end confdefs.h.  */
26732#include <stdint.h>
26733#ifdef INT_LEAST32_MAX
26734found it
26735#endif
26736
26737_ACEOF
26738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26739  $EGREP "found it" >/dev/null 2>&1; then
26740  gl_cv_stdint_INT_LEAST32_MAX=yes
26741else
26742  gl_cv_stdint_INT_LEAST32_MAX="INT32_MAX"
26743fi
26744rm -f conftest*
26745
26746fi
26747{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST32_MAX" >&5
26748echo "${ECHO_T}$gl_cv_stdint_INT_LEAST32_MAX" >&6; }
26749  if test "$gl_cv_stdint_INT_LEAST32_MAX" != yes; then
26750
26751cat >>confdefs.h <<_ACEOF
26752#define INT_LEAST32_MAX INT32_MAX
26753_ACEOF
26754
26755  fi
26756
26757
26758  { echo "$as_me:$LINENO: checking for UINT_LEAST32_MAX" >&5
26759echo $ECHO_N "checking for UINT_LEAST32_MAX... $ECHO_C" >&6; }
26760if test "${gl_cv_stdint_UINT_LEAST32_MAX+set}" = set; then
26761  echo $ECHO_N "(cached) $ECHO_C" >&6
26762else
26763  cat >conftest.$ac_ext <<_ACEOF
26764/* confdefs.h.  */
26765_ACEOF
26766cat confdefs.h >>conftest.$ac_ext
26767cat >>conftest.$ac_ext <<_ACEOF
26768/* end confdefs.h.  */
26769#include <stdint.h>
26770#ifdef UINT_LEAST32_MAX
26771found it
26772#endif
26773
26774_ACEOF
26775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26776  $EGREP "found it" >/dev/null 2>&1; then
26777  gl_cv_stdint_UINT_LEAST32_MAX=yes
26778else
26779  gl_cv_stdint_UINT_LEAST32_MAX="UINT32_MAX"
26780fi
26781rm -f conftest*
26782
26783fi
26784{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST32_MAX" >&5
26785echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST32_MAX" >&6; }
26786  if test "$gl_cv_stdint_UINT_LEAST32_MAX" != yes; then
26787
26788cat >>confdefs.h <<_ACEOF
26789#define UINT_LEAST32_MAX UINT32_MAX
26790_ACEOF
26791
26792  fi
26793
26794    if test $gl_cv_stdint_int_least64_t = yes; then
26795
26796  { echo "$as_me:$LINENO: checking for INT_LEAST64_MIN" >&5
26797echo $ECHO_N "checking for INT_LEAST64_MIN... $ECHO_C" >&6; }
26798if test "${gl_cv_stdint_INT_LEAST64_MIN+set}" = set; then
26799  echo $ECHO_N "(cached) $ECHO_C" >&6
26800else
26801  cat >conftest.$ac_ext <<_ACEOF
26802/* confdefs.h.  */
26803_ACEOF
26804cat confdefs.h >>conftest.$ac_ext
26805cat >>conftest.$ac_ext <<_ACEOF
26806/* end confdefs.h.  */
26807#include <stdint.h>
26808#ifdef INT_LEAST64_MIN
26809found it
26810#endif
26811
26812_ACEOF
26813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26814  $EGREP "found it" >/dev/null 2>&1; then
26815  gl_cv_stdint_INT_LEAST64_MIN=yes
26816else
26817  gl_cv_stdint_INT_LEAST64_MIN="INT64_MIN"
26818fi
26819rm -f conftest*
26820
26821fi
26822{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST64_MIN" >&5
26823echo "${ECHO_T}$gl_cv_stdint_INT_LEAST64_MIN" >&6; }
26824  if test "$gl_cv_stdint_INT_LEAST64_MIN" != yes; then
26825
26826cat >>confdefs.h <<_ACEOF
26827#define INT_LEAST64_MIN INT64_MIN
26828_ACEOF
26829
26830  fi
26831
26832
26833  { echo "$as_me:$LINENO: checking for INT_LEAST64_MAX" >&5
26834echo $ECHO_N "checking for INT_LEAST64_MAX... $ECHO_C" >&6; }
26835if test "${gl_cv_stdint_INT_LEAST64_MAX+set}" = set; then
26836  echo $ECHO_N "(cached) $ECHO_C" >&6
26837else
26838  cat >conftest.$ac_ext <<_ACEOF
26839/* confdefs.h.  */
26840_ACEOF
26841cat confdefs.h >>conftest.$ac_ext
26842cat >>conftest.$ac_ext <<_ACEOF
26843/* end confdefs.h.  */
26844#include <stdint.h>
26845#ifdef INT_LEAST64_MAX
26846found it
26847#endif
26848
26849_ACEOF
26850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26851  $EGREP "found it" >/dev/null 2>&1; then
26852  gl_cv_stdint_INT_LEAST64_MAX=yes
26853else
26854  gl_cv_stdint_INT_LEAST64_MAX="INT64_MAX"
26855fi
26856rm -f conftest*
26857
26858fi
26859{ echo "$as_me:$LINENO: result: $gl_cv_stdint_INT_LEAST64_MAX" >&5
26860echo "${ECHO_T}$gl_cv_stdint_INT_LEAST64_MAX" >&6; }
26861  if test "$gl_cv_stdint_INT_LEAST64_MAX" != yes; then
26862
26863cat >>confdefs.h <<_ACEOF
26864#define INT_LEAST64_MAX INT64_MAX
26865_ACEOF
26866
26867  fi
26868
26869    fi
26870    if test $gl_cv_stdint_uint_least64_t = yes; then
26871
26872  { echo "$as_me:$LINENO: checking for UINT_LEAST64_MAX" >&5
26873echo $ECHO_N "checking for UINT_LEAST64_MAX... $ECHO_C" >&6; }
26874if test "${gl_cv_stdint_UINT_LEAST64_MAX+set}" = set; then
26875  echo $ECHO_N "(cached) $ECHO_C" >&6
26876else
26877  cat >conftest.$ac_ext <<_ACEOF
26878/* confdefs.h.  */
26879_ACEOF
26880cat confdefs.h >>conftest.$ac_ext
26881cat >>conftest.$ac_ext <<_ACEOF
26882/* end confdefs.h.  */
26883#include <stdint.h>
26884#ifdef UINT_LEAST64_MAX
26885found it
26886#endif
26887
26888_ACEOF
26889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26890  $EGREP "found it" >/dev/null 2>&1; then
26891  gl_cv_stdint_UINT_LEAST64_MAX=yes
26892else
26893  gl_cv_stdint_UINT_LEAST64_MAX="UINT64_MAX"
26894fi
26895rm -f conftest*
26896
26897fi
26898{ echo "$as_me:$LINENO: result: $gl_cv_stdint_UINT_LEAST64_MAX" >&5
26899echo "${ECHO_T}$gl_cv_stdint_UINT_LEAST64_MAX" >&6; }
26900  if test "$gl_cv_stdint_UINT_LEAST64_MAX" != yes; then
26901
26902cat >>confdefs.h <<_ACEOF
26903#define UINT_LEAST64_MAX UINT64_MAX
26904_ACEOF
26905
26906  fi
26907
26908    fi
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920  sed_unsigned='s,^\(U*\).*,\1,'
26921  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
26922  for bound in INT_FAST8_MIN INT_FAST8_MAX UINT_FAST8_MAX \
26923                              INT_FAST16_MIN INT_FAST16_MAX UINT_FAST16_MAX \
26924                              INT_FAST32_MIN INT_FAST32_MAX UINT_FAST32_MAX; do
26925    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
26926    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
26927    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
26928    limitkind=`echo $bound | sed -e "$sed_limitkind"`
26929    { echo "$as_me:$LINENO: checking for $bound" >&5
26930echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
26931if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
26932  echo $ECHO_N "(cached) $ECHO_C" >&6
26933else
26934  cat >conftest.$ac_ext <<_ACEOF
26935/* confdefs.h.  */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h.  */
26940#include <stdint.h>
26941#ifdef $bound
26942found it
26943#endif
26944
26945_ACEOF
26946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26947  $EGREP "found it" >/dev/null 2>&1; then
26948  eval gl_cv_stdint_$bound=yes
26949else
26950  result=
26951          case $width in
26952            *8) widthlist="8 16 32 64" ;;
26953            *16) widthlist="16 32 64" ;;
26954            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
26955            *64) widthlist="64" ;;
26956          esac
26957          for w in $widthlist; do
26958            if test -z "$result"; then
26959              cat >conftest.$ac_ext <<_ACEOF
26960
26961#include <stdint.h>
26962int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
26963
26964_ACEOF
26965rm -f conftest.$ac_objext
26966if { (ac_try="$ac_compile"
26967case "(($ac_try" in
26968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969  *) ac_try_echo=$ac_try;;
26970esac
26971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972  (eval "$ac_compile") 2>conftest.er1
26973  ac_status=$?
26974  grep -v '^ *+' conftest.er1 >conftest.err
26975  rm -f conftest.er1
26976  cat conftest.err >&5
26977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978  (exit $ac_status); } &&
26979	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980  { (case "(($ac_try" in
26981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982  *) ac_try_echo=$ac_try;;
26983esac
26984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985  (eval "$ac_try") 2>&5
26986  ac_status=$?
26987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988  (exit $ac_status); }; } &&
26989	 { ac_try='test -s conftest.$ac_objext'
26990  { (case "(($ac_try" in
26991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992  *) ac_try_echo=$ac_try;;
26993esac
26994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995  (eval "$ac_try") 2>&5
26996  ac_status=$?
26997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998  (exit $ac_status); }; }; then
26999  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27000else
27001  echo "$as_me: failed program was:" >&5
27002sed 's/^/| /' conftest.$ac_ext >&5
27003
27004
27005fi
27006
27007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27008            else
27009              break
27010            fi
27011          done
27012          if test -z "$result"; then
27013            result=no
27014          fi
27015          eval gl_cv_stdint_$bound=\$result
27016
27017fi
27018rm -f conftest*
27019
27020fi
27021ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27022	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27023echo "${ECHO_T}$ac_res" >&6; }
27024    eval result=\$gl_cv_stdint_$bound
27025    if test "$result" != yes && test "$result" != no; then
27026
27027cat >>confdefs.h <<_ACEOF
27028#define $bound $result
27029_ACEOF
27030
27031    fi
27032  done
27033
27034    if test $gl_cv_stdint_uint_fast64_t = yes; then
27035
27036
27037
27038
27039  sed_unsigned='s,^\(U*\).*,\1,'
27040  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27041  for bound in INT_FAST64_MIN INT_FAST64_MAX; do
27042    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27043    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27044    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27045    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27046    { echo "$as_me:$LINENO: checking for $bound" >&5
27047echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27048if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27049  echo $ECHO_N "(cached) $ECHO_C" >&6
27050else
27051  cat >conftest.$ac_ext <<_ACEOF
27052/* confdefs.h.  */
27053_ACEOF
27054cat confdefs.h >>conftest.$ac_ext
27055cat >>conftest.$ac_ext <<_ACEOF
27056/* end confdefs.h.  */
27057#include <stdint.h>
27058#ifdef $bound
27059found it
27060#endif
27061
27062_ACEOF
27063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27064  $EGREP "found it" >/dev/null 2>&1; then
27065  eval gl_cv_stdint_$bound=yes
27066else
27067  result=
27068          case $width in
27069            *8) widthlist="8 16 32 64" ;;
27070            *16) widthlist="16 32 64" ;;
27071            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27072            *64) widthlist="64" ;;
27073          esac
27074          for w in $widthlist; do
27075            if test -z "$result"; then
27076              cat >conftest.$ac_ext <<_ACEOF
27077
27078#include <stdint.h>
27079int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27080
27081_ACEOF
27082rm -f conftest.$ac_objext
27083if { (ac_try="$ac_compile"
27084case "(($ac_try" in
27085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086  *) ac_try_echo=$ac_try;;
27087esac
27088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089  (eval "$ac_compile") 2>conftest.er1
27090  ac_status=$?
27091  grep -v '^ *+' conftest.er1 >conftest.err
27092  rm -f conftest.er1
27093  cat conftest.err >&5
27094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095  (exit $ac_status); } &&
27096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27097  { (case "(($ac_try" in
27098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099  *) ac_try_echo=$ac_try;;
27100esac
27101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102  (eval "$ac_try") 2>&5
27103  ac_status=$?
27104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105  (exit $ac_status); }; } &&
27106	 { ac_try='test -s conftest.$ac_objext'
27107  { (case "(($ac_try" in
27108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109  *) ac_try_echo=$ac_try;;
27110esac
27111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112  (eval "$ac_try") 2>&5
27113  ac_status=$?
27114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115  (exit $ac_status); }; }; then
27116  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27117else
27118  echo "$as_me: failed program was:" >&5
27119sed 's/^/| /' conftest.$ac_ext >&5
27120
27121
27122fi
27123
27124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27125            else
27126              break
27127            fi
27128          done
27129          if test -z "$result"; then
27130            result=no
27131          fi
27132          eval gl_cv_stdint_$bound=\$result
27133
27134fi
27135rm -f conftest*
27136
27137fi
27138ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27139	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27140echo "${ECHO_T}$ac_res" >&6; }
27141    eval result=\$gl_cv_stdint_$bound
27142    if test "$result" != yes && test "$result" != no; then
27143
27144cat >>confdefs.h <<_ACEOF
27145#define $bound $result
27146_ACEOF
27147
27148    fi
27149  done
27150
27151    fi
27152    if test $gl_cv_stdint_uint_fast64_t = yes; then
27153
27154
27155
27156  sed_unsigned='s,^\(U*\).*,\1,'
27157  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27158  for bound in UINT_FAST64_MAX; do
27159    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27160    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27161    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27162    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27163    { echo "$as_me:$LINENO: checking for $bound" >&5
27164echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27165if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27166  echo $ECHO_N "(cached) $ECHO_C" >&6
27167else
27168  cat >conftest.$ac_ext <<_ACEOF
27169/* confdefs.h.  */
27170_ACEOF
27171cat confdefs.h >>conftest.$ac_ext
27172cat >>conftest.$ac_ext <<_ACEOF
27173/* end confdefs.h.  */
27174#include <stdint.h>
27175#ifdef $bound
27176found it
27177#endif
27178
27179_ACEOF
27180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181  $EGREP "found it" >/dev/null 2>&1; then
27182  eval gl_cv_stdint_$bound=yes
27183else
27184  result=
27185          case $width in
27186            *8) widthlist="8 16 32 64" ;;
27187            *16) widthlist="16 32 64" ;;
27188            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27189            *64) widthlist="64" ;;
27190          esac
27191          for w in $widthlist; do
27192            if test -z "$result"; then
27193              cat >conftest.$ac_ext <<_ACEOF
27194
27195#include <stdint.h>
27196int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27197
27198_ACEOF
27199rm -f conftest.$ac_objext
27200if { (ac_try="$ac_compile"
27201case "(($ac_try" in
27202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203  *) ac_try_echo=$ac_try;;
27204esac
27205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206  (eval "$ac_compile") 2>conftest.er1
27207  ac_status=$?
27208  grep -v '^ *+' conftest.er1 >conftest.err
27209  rm -f conftest.er1
27210  cat conftest.err >&5
27211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212  (exit $ac_status); } &&
27213	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27214  { (case "(($ac_try" in
27215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216  *) ac_try_echo=$ac_try;;
27217esac
27218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219  (eval "$ac_try") 2>&5
27220  ac_status=$?
27221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222  (exit $ac_status); }; } &&
27223	 { ac_try='test -s conftest.$ac_objext'
27224  { (case "(($ac_try" in
27225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226  *) ac_try_echo=$ac_try;;
27227esac
27228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229  (eval "$ac_try") 2>&5
27230  ac_status=$?
27231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232  (exit $ac_status); }; }; then
27233  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27234else
27235  echo "$as_me: failed program was:" >&5
27236sed 's/^/| /' conftest.$ac_ext >&5
27237
27238
27239fi
27240
27241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242            else
27243              break
27244            fi
27245          done
27246          if test -z "$result"; then
27247            result=no
27248          fi
27249          eval gl_cv_stdint_$bound=\$result
27250
27251fi
27252rm -f conftest*
27253
27254fi
27255ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27256	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27257echo "${ECHO_T}$ac_res" >&6; }
27258    eval result=\$gl_cv_stdint_$bound
27259    if test "$result" != yes && test "$result" != no; then
27260
27261cat >>confdefs.h <<_ACEOF
27262#define $bound $result
27263_ACEOF
27264
27265    fi
27266  done
27267
27268    fi
27269
27270
27271
27272
27273
27274
27275
27276
27277  sed_unsigned='s,^\(U*\).*,\1,'
27278  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27279  for bound in INTPTR_MIN INTPTR_MAX UINTPTR_MAX \
27280                              INTMAX_MIN INTMAX_MAX UINTMAX_MAX; do
27281    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27282    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27283    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27284    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27285    { echo "$as_me:$LINENO: checking for $bound" >&5
27286echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27287if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27288  echo $ECHO_N "(cached) $ECHO_C" >&6
27289else
27290  cat >conftest.$ac_ext <<_ACEOF
27291/* confdefs.h.  */
27292_ACEOF
27293cat confdefs.h >>conftest.$ac_ext
27294cat >>conftest.$ac_ext <<_ACEOF
27295/* end confdefs.h.  */
27296#include <stdint.h>
27297#ifdef $bound
27298found it
27299#endif
27300
27301_ACEOF
27302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27303  $EGREP "found it" >/dev/null 2>&1; then
27304  eval gl_cv_stdint_$bound=yes
27305else
27306  result=
27307          case $width in
27308            *8) widthlist="8 16 32 64" ;;
27309            *16) widthlist="16 32 64" ;;
27310            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27311            *64) widthlist="64" ;;
27312          esac
27313          for w in $widthlist; do
27314            if test -z "$result"; then
27315              cat >conftest.$ac_ext <<_ACEOF
27316
27317#include <stdint.h>
27318int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27319
27320_ACEOF
27321rm -f conftest.$ac_objext
27322if { (ac_try="$ac_compile"
27323case "(($ac_try" in
27324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27325  *) ac_try_echo=$ac_try;;
27326esac
27327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27328  (eval "$ac_compile") 2>conftest.er1
27329  ac_status=$?
27330  grep -v '^ *+' conftest.er1 >conftest.err
27331  rm -f conftest.er1
27332  cat conftest.err >&5
27333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334  (exit $ac_status); } &&
27335	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27336  { (case "(($ac_try" in
27337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338  *) ac_try_echo=$ac_try;;
27339esac
27340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341  (eval "$ac_try") 2>&5
27342  ac_status=$?
27343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344  (exit $ac_status); }; } &&
27345	 { ac_try='test -s conftest.$ac_objext'
27346  { (case "(($ac_try" in
27347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348  *) ac_try_echo=$ac_try;;
27349esac
27350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351  (eval "$ac_try") 2>&5
27352  ac_status=$?
27353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354  (exit $ac_status); }; }; then
27355  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27356else
27357  echo "$as_me: failed program was:" >&5
27358sed 's/^/| /' conftest.$ac_ext >&5
27359
27360
27361fi
27362
27363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27364            else
27365              break
27366            fi
27367          done
27368          if test -z "$result"; then
27369            result=no
27370          fi
27371          eval gl_cv_stdint_$bound=\$result
27372
27373fi
27374rm -f conftest*
27375
27376fi
27377ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27378	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27379echo "${ECHO_T}$ac_res" >&6; }
27380    eval result=\$gl_cv_stdint_$bound
27381    if test "$result" != yes && test "$result" != no; then
27382
27383cat >>confdefs.h <<_ACEOF
27384#define $bound $result
27385_ACEOF
27386
27387    fi
27388  done
27389
27390
27391
27392
27393
27394  sed_unsigned='s,^\(U*\).*,\1,'
27395  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
27396  for bound in PTRDIFF_MIN PTRDIFF_MAX; do
27397    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
27398    unsigned=`echo $bound | sed -e "$sed_unsigned" | tr U u`
27399    width=`echo $bound | sed -e 's,^U*INT,,' -e 's,_MIN,,' -e 's,_MAX,,'`
27400    limitkind=`echo $bound | sed -e "$sed_limitkind"`
27401    { echo "$as_me:$LINENO: checking for $bound" >&5
27402echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
27403if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
27404  echo $ECHO_N "(cached) $ECHO_C" >&6
27405else
27406  cat >conftest.$ac_ext <<_ACEOF
27407/* confdefs.h.  */
27408_ACEOF
27409cat confdefs.h >>conftest.$ac_ext
27410cat >>conftest.$ac_ext <<_ACEOF
27411/* end confdefs.h.  */
27412#include <stdint.h>
27413#ifdef $bound
27414found it
27415#endif
27416
27417_ACEOF
27418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27419  $EGREP "found it" >/dev/null 2>&1; then
27420  eval gl_cv_stdint_$bound=yes
27421else
27422  result=
27423          case $width in
27424            *8) widthlist="8 16 32 64" ;;
27425            *16) widthlist="16 32 64" ;;
27426            *32 | PTR | MAX | PTRDIFF) widthlist="32 64" ;;
27427            *64) widthlist="64" ;;
27428          esac
27429          for w in $widthlist; do
27430            if test -z "$result"; then
27431              cat >conftest.$ac_ext <<_ACEOF
27432#include <stddef.h>
27433#include <stdint.h>
27434int verify[2 * (sizeof ($type) == sizeof (${unsigned}int${w}_t)) - 1];
27435
27436_ACEOF
27437rm -f conftest.$ac_objext
27438if { (ac_try="$ac_compile"
27439case "(($ac_try" in
27440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441  *) ac_try_echo=$ac_try;;
27442esac
27443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444  (eval "$ac_compile") 2>conftest.er1
27445  ac_status=$?
27446  grep -v '^ *+' conftest.er1 >conftest.err
27447  rm -f conftest.er1
27448  cat conftest.err >&5
27449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450  (exit $ac_status); } &&
27451	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27452  { (case "(($ac_try" in
27453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454  *) ac_try_echo=$ac_try;;
27455esac
27456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457  (eval "$ac_try") 2>&5
27458  ac_status=$?
27459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460  (exit $ac_status); }; } &&
27461	 { ac_try='test -s conftest.$ac_objext'
27462  { (case "(($ac_try" in
27463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464  *) ac_try_echo=$ac_try;;
27465esac
27466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467  (eval "$ac_try") 2>&5
27468  ac_status=$?
27469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470  (exit $ac_status); }; }; then
27471  result=`echo "$unsigned" | tr u U`INT${w}${limitkind}
27472else
27473  echo "$as_me: failed program was:" >&5
27474sed 's/^/| /' conftest.$ac_ext >&5
27475
27476
27477fi
27478
27479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480            else
27481              break
27482            fi
27483          done
27484          if test -z "$result"; then
27485            result=no
27486          fi
27487          eval gl_cv_stdint_$bound=\$result
27488
27489fi
27490rm -f conftest*
27491
27492fi
27493ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
27494	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27495echo "${ECHO_T}$ac_res" >&6; }
27496    eval result=\$gl_cv_stdint_$bound
27497    if test "$result" != yes && test "$result" != no; then
27498
27499cat >>confdefs.h <<_ACEOF
27500#define $bound $result
27501_ACEOF
27502
27503    fi
27504  done
27505
27506
27507
27508for ac_header in stdint.h
27509do
27510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27512  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27515  echo $ECHO_N "(cached) $ECHO_C" >&6
27516fi
27517ac_res=`eval echo '${'$as_ac_Header'}'`
27518	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27519echo "${ECHO_T}$ac_res" >&6; }
27520else
27521  # Is the header compilable?
27522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27524cat >conftest.$ac_ext <<_ACEOF
27525/* confdefs.h.  */
27526_ACEOF
27527cat confdefs.h >>conftest.$ac_ext
27528cat >>conftest.$ac_ext <<_ACEOF
27529/* end confdefs.h.  */
27530$ac_includes_default
27531#include <$ac_header>
27532_ACEOF
27533rm -f conftest.$ac_objext
27534if { (ac_try="$ac_compile"
27535case "(($ac_try" in
27536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537  *) ac_try_echo=$ac_try;;
27538esac
27539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540  (eval "$ac_compile") 2>conftest.er1
27541  ac_status=$?
27542  grep -v '^ *+' conftest.er1 >conftest.err
27543  rm -f conftest.er1
27544  cat conftest.err >&5
27545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546  (exit $ac_status); } &&
27547	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27548  { (case "(($ac_try" in
27549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550  *) ac_try_echo=$ac_try;;
27551esac
27552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553  (eval "$ac_try") 2>&5
27554  ac_status=$?
27555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556  (exit $ac_status); }; } &&
27557	 { ac_try='test -s conftest.$ac_objext'
27558  { (case "(($ac_try" in
27559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560  *) ac_try_echo=$ac_try;;
27561esac
27562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563  (eval "$ac_try") 2>&5
27564  ac_status=$?
27565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566  (exit $ac_status); }; }; then
27567  ac_header_compiler=yes
27568else
27569  echo "$as_me: failed program was:" >&5
27570sed 's/^/| /' conftest.$ac_ext >&5
27571
27572	ac_header_compiler=no
27573fi
27574
27575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27576{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27577echo "${ECHO_T}$ac_header_compiler" >&6; }
27578
27579# Is the header present?
27580{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27582cat >conftest.$ac_ext <<_ACEOF
27583/* confdefs.h.  */
27584_ACEOF
27585cat confdefs.h >>conftest.$ac_ext
27586cat >>conftest.$ac_ext <<_ACEOF
27587/* end confdefs.h.  */
27588#include <$ac_header>
27589_ACEOF
27590if { (ac_try="$ac_cpp conftest.$ac_ext"
27591case "(($ac_try" in
27592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593  *) ac_try_echo=$ac_try;;
27594esac
27595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27596  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27597  ac_status=$?
27598  grep -v '^ *+' conftest.er1 >conftest.err
27599  rm -f conftest.er1
27600  cat conftest.err >&5
27601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602  (exit $ac_status); } >/dev/null; then
27603  if test -s conftest.err; then
27604    ac_cpp_err=$ac_c_preproc_warn_flag
27605    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27606  else
27607    ac_cpp_err=
27608  fi
27609else
27610  ac_cpp_err=yes
27611fi
27612if test -z "$ac_cpp_err"; then
27613  ac_header_preproc=yes
27614else
27615  echo "$as_me: failed program was:" >&5
27616sed 's/^/| /' conftest.$ac_ext >&5
27617
27618  ac_header_preproc=no
27619fi
27620
27621rm -f conftest.err conftest.$ac_ext
27622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27623echo "${ECHO_T}$ac_header_preproc" >&6; }
27624
27625# So?  What about this header?
27626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27627  yes:no: )
27628    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27632    ac_header_preproc=yes
27633    ;;
27634  no:yes:* )
27635    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27637    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27638echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27639    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27641    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27642echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27645    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27647
27648    ;;
27649esac
27650{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27653  echo $ECHO_N "(cached) $ECHO_C" >&6
27654else
27655  eval "$as_ac_Header=\$ac_header_preproc"
27656fi
27657ac_res=`eval echo '${'$as_ac_Header'}'`
27658	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27659echo "${ECHO_T}$ac_res" >&6; }
27660
27661fi
27662if test `eval echo '${'$as_ac_Header'}'` = yes; then
27663  cat >>confdefs.h <<_ACEOF
27664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27665_ACEOF
27666
27667fi
27668
27669done
27670
27671    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
27672echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
27673  result=
27674  cat >conftest.$ac_ext <<_ACEOF
27675/* confdefs.h.  */
27676_ACEOF
27677cat confdefs.h >>conftest.$ac_ext
27678cat >>conftest.$ac_ext <<_ACEOF
27679/* end confdefs.h.  */
27680
27681#include <limits.h>
27682#if HAVE_STDINT_H
27683#include <stdint.h>
27684#endif
27685#ifdef SIZE_MAX
27686Found it
27687#endif
27688
27689_ACEOF
27690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27691  $EGREP "Found it" >/dev/null 2>&1; then
27692  result=yes
27693fi
27694rm -f conftest*
27695
27696  if test -z "$result"; then
27697                if test "$cross_compiling" = yes; then
27698  # Depending upon the size, compute the lo and hi bounds.
27699cat >conftest.$ac_ext <<_ACEOF
27700/* confdefs.h.  */
27701_ACEOF
27702cat confdefs.h >>conftest.$ac_ext
27703cat >>conftest.$ac_ext <<_ACEOF
27704/* end confdefs.h.  */
27705#include <stddef.h>
27706#include <limits.h>
27707int
27708main ()
27709{
27710static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
27711test_array [0] = 0
27712
27713  ;
27714  return 0;
27715}
27716_ACEOF
27717rm -f conftest.$ac_objext
27718if { (ac_try="$ac_compile"
27719case "(($ac_try" in
27720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721  *) ac_try_echo=$ac_try;;
27722esac
27723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724  (eval "$ac_compile") 2>conftest.er1
27725  ac_status=$?
27726  grep -v '^ *+' conftest.er1 >conftest.err
27727  rm -f conftest.er1
27728  cat conftest.err >&5
27729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730  (exit $ac_status); } &&
27731	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27732  { (case "(($ac_try" in
27733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734  *) ac_try_echo=$ac_try;;
27735esac
27736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737  (eval "$ac_try") 2>&5
27738  ac_status=$?
27739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740  (exit $ac_status); }; } &&
27741	 { ac_try='test -s conftest.$ac_objext'
27742  { (case "(($ac_try" in
27743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744  *) ac_try_echo=$ac_try;;
27745esac
27746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747  (eval "$ac_try") 2>&5
27748  ac_status=$?
27749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750  (exit $ac_status); }; }; then
27751  ac_lo=0 ac_mid=0
27752  while :; do
27753    cat >conftest.$ac_ext <<_ACEOF
27754/* confdefs.h.  */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
27758/* end confdefs.h.  */
27759#include <stddef.h>
27760#include <limits.h>
27761int
27762main ()
27763{
27764static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27765test_array [0] = 0
27766
27767  ;
27768  return 0;
27769}
27770_ACEOF
27771rm -f conftest.$ac_objext
27772if { (ac_try="$ac_compile"
27773case "(($ac_try" in
27774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775  *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778  (eval "$ac_compile") 2>conftest.er1
27779  ac_status=$?
27780  grep -v '^ *+' conftest.er1 >conftest.err
27781  rm -f conftest.er1
27782  cat conftest.err >&5
27783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784  (exit $ac_status); } &&
27785	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27786  { (case "(($ac_try" in
27787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788  *) ac_try_echo=$ac_try;;
27789esac
27790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791  (eval "$ac_try") 2>&5
27792  ac_status=$?
27793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794  (exit $ac_status); }; } &&
27795	 { ac_try='test -s conftest.$ac_objext'
27796  { (case "(($ac_try" in
27797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27798  *) ac_try_echo=$ac_try;;
27799esac
27800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27801  (eval "$ac_try") 2>&5
27802  ac_status=$?
27803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804  (exit $ac_status); }; }; then
27805  ac_hi=$ac_mid; break
27806else
27807  echo "$as_me: failed program was:" >&5
27808sed 's/^/| /' conftest.$ac_ext >&5
27809
27810	ac_lo=`expr $ac_mid + 1`
27811			if test $ac_lo -le $ac_mid; then
27812			  ac_lo= ac_hi=
27813			  break
27814			fi
27815			ac_mid=`expr 2 '*' $ac_mid + 1`
27816fi
27817
27818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819  done
27820else
27821  echo "$as_me: failed program was:" >&5
27822sed 's/^/| /' conftest.$ac_ext >&5
27823
27824	cat >conftest.$ac_ext <<_ACEOF
27825/* confdefs.h.  */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h.  */
27830#include <stddef.h>
27831#include <limits.h>
27832int
27833main ()
27834{
27835static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
27836test_array [0] = 0
27837
27838  ;
27839  return 0;
27840}
27841_ACEOF
27842rm -f conftest.$ac_objext
27843if { (ac_try="$ac_compile"
27844case "(($ac_try" in
27845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846  *) ac_try_echo=$ac_try;;
27847esac
27848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27849  (eval "$ac_compile") 2>conftest.er1
27850  ac_status=$?
27851  grep -v '^ *+' conftest.er1 >conftest.err
27852  rm -f conftest.er1
27853  cat conftest.err >&5
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); } &&
27856	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27857  { (case "(($ac_try" in
27858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859  *) ac_try_echo=$ac_try;;
27860esac
27861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862  (eval "$ac_try") 2>&5
27863  ac_status=$?
27864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865  (exit $ac_status); }; } &&
27866	 { ac_try='test -s conftest.$ac_objext'
27867  { (case "(($ac_try" in
27868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869  *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872  (eval "$ac_try") 2>&5
27873  ac_status=$?
27874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875  (exit $ac_status); }; }; then
27876  ac_hi=-1 ac_mid=-1
27877  while :; do
27878    cat >conftest.$ac_ext <<_ACEOF
27879/* confdefs.h.  */
27880_ACEOF
27881cat confdefs.h >>conftest.$ac_ext
27882cat >>conftest.$ac_ext <<_ACEOF
27883/* end confdefs.h.  */
27884#include <stddef.h>
27885#include <limits.h>
27886int
27887main ()
27888{
27889static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27890test_array [0] = 0
27891
27892  ;
27893  return 0;
27894}
27895_ACEOF
27896rm -f conftest.$ac_objext
27897if { (ac_try="$ac_compile"
27898case "(($ac_try" in
27899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900  *) ac_try_echo=$ac_try;;
27901esac
27902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27903  (eval "$ac_compile") 2>conftest.er1
27904  ac_status=$?
27905  grep -v '^ *+' conftest.er1 >conftest.err
27906  rm -f conftest.er1
27907  cat conftest.err >&5
27908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909  (exit $ac_status); } &&
27910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27911  { (case "(($ac_try" in
27912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27913  *) ac_try_echo=$ac_try;;
27914esac
27915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27916  (eval "$ac_try") 2>&5
27917  ac_status=$?
27918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919  (exit $ac_status); }; } &&
27920	 { ac_try='test -s conftest.$ac_objext'
27921  { (case "(($ac_try" in
27922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923  *) ac_try_echo=$ac_try;;
27924esac
27925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27926  (eval "$ac_try") 2>&5
27927  ac_status=$?
27928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929  (exit $ac_status); }; }; then
27930  ac_lo=$ac_mid; break
27931else
27932  echo "$as_me: failed program was:" >&5
27933sed 's/^/| /' conftest.$ac_ext >&5
27934
27935	ac_hi=`expr '(' $ac_mid ')' - 1`
27936			if test $ac_mid -le $ac_hi; then
27937			  ac_lo= ac_hi=
27938			  break
27939			fi
27940			ac_mid=`expr 2 '*' $ac_mid`
27941fi
27942
27943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27944  done
27945else
27946  echo "$as_me: failed program was:" >&5
27947sed 's/^/| /' conftest.$ac_ext >&5
27948
27949	ac_lo= ac_hi=
27950fi
27951
27952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953fi
27954
27955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956# Binary search between lo and hi bounds.
27957while test "x$ac_lo" != "x$ac_hi"; do
27958  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27959  cat >conftest.$ac_ext <<_ACEOF
27960/* confdefs.h.  */
27961_ACEOF
27962cat confdefs.h >>conftest.$ac_ext
27963cat >>conftest.$ac_ext <<_ACEOF
27964/* end confdefs.h.  */
27965#include <stddef.h>
27966#include <limits.h>
27967int
27968main ()
27969{
27970static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27971test_array [0] = 0
27972
27973  ;
27974  return 0;
27975}
27976_ACEOF
27977rm -f conftest.$ac_objext
27978if { (ac_try="$ac_compile"
27979case "(($ac_try" in
27980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27981  *) ac_try_echo=$ac_try;;
27982esac
27983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27984  (eval "$ac_compile") 2>conftest.er1
27985  ac_status=$?
27986  grep -v '^ *+' conftest.er1 >conftest.err
27987  rm -f conftest.er1
27988  cat conftest.err >&5
27989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990  (exit $ac_status); } &&
27991	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27992  { (case "(($ac_try" in
27993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994  *) ac_try_echo=$ac_try;;
27995esac
27996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997  (eval "$ac_try") 2>&5
27998  ac_status=$?
27999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000  (exit $ac_status); }; } &&
28001	 { ac_try='test -s conftest.$ac_objext'
28002  { (case "(($ac_try" in
28003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004  *) ac_try_echo=$ac_try;;
28005esac
28006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007  (eval "$ac_try") 2>&5
28008  ac_status=$?
28009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010  (exit $ac_status); }; }; then
28011  ac_hi=$ac_mid
28012else
28013  echo "$as_me: failed program was:" >&5
28014sed 's/^/| /' conftest.$ac_ext >&5
28015
28016	ac_lo=`expr '(' $ac_mid ')' + 1`
28017fi
28018
28019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020done
28021case $ac_lo in
28022?*) size_t_bits_minus_1=$ac_lo;;
28023'') size_t_bits_minus_1= ;;
28024esac
28025else
28026  cat >conftest.$ac_ext <<_ACEOF
28027/* confdefs.h.  */
28028_ACEOF
28029cat confdefs.h >>conftest.$ac_ext
28030cat >>conftest.$ac_ext <<_ACEOF
28031/* end confdefs.h.  */
28032#include <stddef.h>
28033#include <limits.h>
28034static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
28035static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
28036#include <stdio.h>
28037#include <stdlib.h>
28038int
28039main ()
28040{
28041
28042  FILE *f = fopen ("conftest.val", "w");
28043  if (! f)
28044    return 1;
28045  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
28046    {
28047      long int i = longval ();
28048      if (i != (sizeof (size_t) * CHAR_BIT - 1))
28049	return 1;
28050      fprintf (f, "%ld\n", i);
28051    }
28052  else
28053    {
28054      unsigned long int i = ulongval ();
28055      if (i != (sizeof (size_t) * CHAR_BIT - 1))
28056	return 1;
28057      fprintf (f, "%lu\n", i);
28058    }
28059  return ferror (f) || fclose (f) != 0;
28060
28061  ;
28062  return 0;
28063}
28064_ACEOF
28065rm -f conftest$ac_exeext
28066if { (ac_try="$ac_link"
28067case "(($ac_try" in
28068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069  *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072  (eval "$ac_link") 2>&5
28073  ac_status=$?
28074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28076  { (case "(($ac_try" in
28077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078  *) ac_try_echo=$ac_try;;
28079esac
28080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081  (eval "$ac_try") 2>&5
28082  ac_status=$?
28083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084  (exit $ac_status); }; }; then
28085  size_t_bits_minus_1=`cat conftest.val`
28086else
28087  echo "$as_me: program exited with status $ac_status" >&5
28088echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
28091( exit $ac_status )
28092size_t_bits_minus_1=
28093fi
28094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28095fi
28096rm -f conftest.val
28097    if test "$cross_compiling" = yes; then
28098  # Depending upon the size, compute the lo and hi bounds.
28099cat >conftest.$ac_ext <<_ACEOF
28100/* confdefs.h.  */
28101_ACEOF
28102cat confdefs.h >>conftest.$ac_ext
28103cat >>conftest.$ac_ext <<_ACEOF
28104/* end confdefs.h.  */
28105#include <stddef.h>
28106int
28107main ()
28108{
28109static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
28110test_array [0] = 0
28111
28112  ;
28113  return 0;
28114}
28115_ACEOF
28116rm -f conftest.$ac_objext
28117if { (ac_try="$ac_compile"
28118case "(($ac_try" in
28119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120  *) ac_try_echo=$ac_try;;
28121esac
28122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123  (eval "$ac_compile") 2>conftest.er1
28124  ac_status=$?
28125  grep -v '^ *+' conftest.er1 >conftest.err
28126  rm -f conftest.er1
28127  cat conftest.err >&5
28128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129  (exit $ac_status); } &&
28130	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28131  { (case "(($ac_try" in
28132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133  *) ac_try_echo=$ac_try;;
28134esac
28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136  (eval "$ac_try") 2>&5
28137  ac_status=$?
28138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139  (exit $ac_status); }; } &&
28140	 { ac_try='test -s conftest.$ac_objext'
28141  { (case "(($ac_try" in
28142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143  *) ac_try_echo=$ac_try;;
28144esac
28145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146  (eval "$ac_try") 2>&5
28147  ac_status=$?
28148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149  (exit $ac_status); }; }; then
28150  ac_lo=0 ac_mid=0
28151  while :; do
28152    cat >conftest.$ac_ext <<_ACEOF
28153/* confdefs.h.  */
28154_ACEOF
28155cat confdefs.h >>conftest.$ac_ext
28156cat >>conftest.$ac_ext <<_ACEOF
28157/* end confdefs.h.  */
28158#include <stddef.h>
28159int
28160main ()
28161{
28162static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
28163test_array [0] = 0
28164
28165  ;
28166  return 0;
28167}
28168_ACEOF
28169rm -f conftest.$ac_objext
28170if { (ac_try="$ac_compile"
28171case "(($ac_try" in
28172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173  *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176  (eval "$ac_compile") 2>conftest.er1
28177  ac_status=$?
28178  grep -v '^ *+' conftest.er1 >conftest.err
28179  rm -f conftest.er1
28180  cat conftest.err >&5
28181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182  (exit $ac_status); } &&
28183	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184  { (case "(($ac_try" in
28185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186  *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189  (eval "$ac_try") 2>&5
28190  ac_status=$?
28191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192  (exit $ac_status); }; } &&
28193	 { ac_try='test -s conftest.$ac_objext'
28194  { (case "(($ac_try" in
28195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196  *) ac_try_echo=$ac_try;;
28197esac
28198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199  (eval "$ac_try") 2>&5
28200  ac_status=$?
28201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202  (exit $ac_status); }; }; then
28203  ac_hi=$ac_mid; break
28204else
28205  echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208	ac_lo=`expr $ac_mid + 1`
28209			if test $ac_lo -le $ac_mid; then
28210			  ac_lo= ac_hi=
28211			  break
28212			fi
28213			ac_mid=`expr 2 '*' $ac_mid + 1`
28214fi
28215
28216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28217  done
28218else
28219  echo "$as_me: failed program was:" >&5
28220sed 's/^/| /' conftest.$ac_ext >&5
28221
28222	cat >conftest.$ac_ext <<_ACEOF
28223/* confdefs.h.  */
28224_ACEOF
28225cat confdefs.h >>conftest.$ac_ext
28226cat >>conftest.$ac_ext <<_ACEOF
28227/* end confdefs.h.  */
28228#include <stddef.h>
28229int
28230main ()
28231{
28232static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
28233test_array [0] = 0
28234
28235  ;
28236  return 0;
28237}
28238_ACEOF
28239rm -f conftest.$ac_objext
28240if { (ac_try="$ac_compile"
28241case "(($ac_try" in
28242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243  *) ac_try_echo=$ac_try;;
28244esac
28245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246  (eval "$ac_compile") 2>conftest.er1
28247  ac_status=$?
28248  grep -v '^ *+' conftest.er1 >conftest.err
28249  rm -f conftest.er1
28250  cat conftest.err >&5
28251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252  (exit $ac_status); } &&
28253	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254  { (case "(($ac_try" in
28255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256  *) ac_try_echo=$ac_try;;
28257esac
28258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259  (eval "$ac_try") 2>&5
28260  ac_status=$?
28261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262  (exit $ac_status); }; } &&
28263	 { ac_try='test -s conftest.$ac_objext'
28264  { (case "(($ac_try" in
28265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266  *) ac_try_echo=$ac_try;;
28267esac
28268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269  (eval "$ac_try") 2>&5
28270  ac_status=$?
28271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272  (exit $ac_status); }; }; then
28273  ac_hi=-1 ac_mid=-1
28274  while :; do
28275    cat >conftest.$ac_ext <<_ACEOF
28276/* confdefs.h.  */
28277_ACEOF
28278cat confdefs.h >>conftest.$ac_ext
28279cat >>conftest.$ac_ext <<_ACEOF
28280/* end confdefs.h.  */
28281#include <stddef.h>
28282int
28283main ()
28284{
28285static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
28286test_array [0] = 0
28287
28288  ;
28289  return 0;
28290}
28291_ACEOF
28292rm -f conftest.$ac_objext
28293if { (ac_try="$ac_compile"
28294case "(($ac_try" in
28295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296  *) ac_try_echo=$ac_try;;
28297esac
28298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299  (eval "$ac_compile") 2>conftest.er1
28300  ac_status=$?
28301  grep -v '^ *+' conftest.er1 >conftest.err
28302  rm -f conftest.er1
28303  cat conftest.err >&5
28304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305  (exit $ac_status); } &&
28306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28307  { (case "(($ac_try" in
28308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309  *) ac_try_echo=$ac_try;;
28310esac
28311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312  (eval "$ac_try") 2>&5
28313  ac_status=$?
28314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315  (exit $ac_status); }; } &&
28316	 { ac_try='test -s conftest.$ac_objext'
28317  { (case "(($ac_try" in
28318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319  *) ac_try_echo=$ac_try;;
28320esac
28321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322  (eval "$ac_try") 2>&5
28323  ac_status=$?
28324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325  (exit $ac_status); }; }; then
28326  ac_lo=$ac_mid; break
28327else
28328  echo "$as_me: failed program was:" >&5
28329sed 's/^/| /' conftest.$ac_ext >&5
28330
28331	ac_hi=`expr '(' $ac_mid ')' - 1`
28332			if test $ac_mid -le $ac_hi; then
28333			  ac_lo= ac_hi=
28334			  break
28335			fi
28336			ac_mid=`expr 2 '*' $ac_mid`
28337fi
28338
28339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28340  done
28341else
28342  echo "$as_me: failed program was:" >&5
28343sed 's/^/| /' conftest.$ac_ext >&5
28344
28345	ac_lo= ac_hi=
28346fi
28347
28348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28349fi
28350
28351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28352# Binary search between lo and hi bounds.
28353while test "x$ac_lo" != "x$ac_hi"; do
28354  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28355  cat >conftest.$ac_ext <<_ACEOF
28356/* confdefs.h.  */
28357_ACEOF
28358cat confdefs.h >>conftest.$ac_ext
28359cat >>conftest.$ac_ext <<_ACEOF
28360/* end confdefs.h.  */
28361#include <stddef.h>
28362int
28363main ()
28364{
28365static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
28366test_array [0] = 0
28367
28368  ;
28369  return 0;
28370}
28371_ACEOF
28372rm -f conftest.$ac_objext
28373if { (ac_try="$ac_compile"
28374case "(($ac_try" in
28375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376  *) ac_try_echo=$ac_try;;
28377esac
28378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28379  (eval "$ac_compile") 2>conftest.er1
28380  ac_status=$?
28381  grep -v '^ *+' conftest.er1 >conftest.err
28382  rm -f conftest.er1
28383  cat conftest.err >&5
28384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385  (exit $ac_status); } &&
28386	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28387  { (case "(($ac_try" in
28388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389  *) ac_try_echo=$ac_try;;
28390esac
28391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392  (eval "$ac_try") 2>&5
28393  ac_status=$?
28394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395  (exit $ac_status); }; } &&
28396	 { ac_try='test -s conftest.$ac_objext'
28397  { (case "(($ac_try" in
28398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399  *) ac_try_echo=$ac_try;;
28400esac
28401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402  (eval "$ac_try") 2>&5
28403  ac_status=$?
28404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405  (exit $ac_status); }; }; then
28406  ac_hi=$ac_mid
28407else
28408  echo "$as_me: failed program was:" >&5
28409sed 's/^/| /' conftest.$ac_ext >&5
28410
28411	ac_lo=`expr '(' $ac_mid ')' + 1`
28412fi
28413
28414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415done
28416case $ac_lo in
28417?*) fits_in_uint=$ac_lo;;
28418'') fits_in_uint= ;;
28419esac
28420else
28421  cat >conftest.$ac_ext <<_ACEOF
28422/* confdefs.h.  */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h.  */
28427#include <stddef.h>
28428static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
28429static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
28430#include <stdio.h>
28431#include <stdlib.h>
28432int
28433main ()
28434{
28435
28436  FILE *f = fopen ("conftest.val", "w");
28437  if (! f)
28438    return 1;
28439  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
28440    {
28441      long int i = longval ();
28442      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28443	return 1;
28444      fprintf (f, "%ld\n", i);
28445    }
28446  else
28447    {
28448      unsigned long int i = ulongval ();
28449      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28450	return 1;
28451      fprintf (f, "%lu\n", i);
28452    }
28453  return ferror (f) || fclose (f) != 0;
28454
28455  ;
28456  return 0;
28457}
28458_ACEOF
28459rm -f conftest$ac_exeext
28460if { (ac_try="$ac_link"
28461case "(($ac_try" in
28462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463  *) ac_try_echo=$ac_try;;
28464esac
28465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466  (eval "$ac_link") 2>&5
28467  ac_status=$?
28468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28470  { (case "(($ac_try" in
28471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472  *) ac_try_echo=$ac_try;;
28473esac
28474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475  (eval "$ac_try") 2>&5
28476  ac_status=$?
28477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478  (exit $ac_status); }; }; then
28479  fits_in_uint=`cat conftest.val`
28480else
28481  echo "$as_me: program exited with status $ac_status" >&5
28482echo "$as_me: failed program was:" >&5
28483sed 's/^/| /' conftest.$ac_ext >&5
28484
28485( exit $ac_status )
28486fits_in_uint=
28487fi
28488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28489fi
28490rm -f conftest.val
28491    if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
28492      if test $fits_in_uint = 1; then
28493                        cat >conftest.$ac_ext <<_ACEOF
28494/* confdefs.h.  */
28495_ACEOF
28496cat confdefs.h >>conftest.$ac_ext
28497cat >>conftest.$ac_ext <<_ACEOF
28498/* end confdefs.h.  */
28499#include <stddef.h>
28500          extern size_t foo;
28501          extern unsigned long foo;
28502
28503int
28504main ()
28505{
28506
28507  ;
28508  return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext
28512if { (ac_try="$ac_compile"
28513case "(($ac_try" in
28514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515  *) ac_try_echo=$ac_try;;
28516esac
28517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518  (eval "$ac_compile") 2>conftest.er1
28519  ac_status=$?
28520  grep -v '^ *+' conftest.er1 >conftest.err
28521  rm -f conftest.er1
28522  cat conftest.err >&5
28523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524  (exit $ac_status); } &&
28525	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28526  { (case "(($ac_try" in
28527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528  *) ac_try_echo=$ac_try;;
28529esac
28530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531  (eval "$ac_try") 2>&5
28532  ac_status=$?
28533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534  (exit $ac_status); }; } &&
28535	 { ac_try='test -s conftest.$ac_objext'
28536  { (case "(($ac_try" in
28537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538  *) ac_try_echo=$ac_try;;
28539esac
28540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541  (eval "$ac_try") 2>&5
28542  ac_status=$?
28543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544  (exit $ac_status); }; }; then
28545  fits_in_uint=0
28546else
28547  echo "$as_me: failed program was:" >&5
28548sed 's/^/| /' conftest.$ac_ext >&5
28549
28550
28551fi
28552
28553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28554      fi
28555                        if test $fits_in_uint = 1; then
28556        result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
28557      else
28558        result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
28559      fi
28560    else
28561            result='((size_t)~(size_t)0)'
28562    fi
28563  fi
28564  { echo "$as_me:$LINENO: result: $result" >&5
28565echo "${ECHO_T}$result" >&6; }
28566  if test "$result" != yes; then
28567
28568cat >>confdefs.h <<_ACEOF
28569#define SIZE_MAX $result
28570_ACEOF
28571
28572  fi
28573
28574
28575
28576
28577
28578  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
28579  for bound in SIG_ATOMIC_MIN SIG_ATOMIC_MAX; do
28580    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
28581    limitkind=`echo $bound | sed -e "$sed_limitkind"`
28582    { echo "$as_me:$LINENO: checking for $bound" >&5
28583echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
28584if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
28585  echo $ECHO_N "(cached) $ECHO_C" >&6
28586else
28587  cat >conftest.$ac_ext <<_ACEOF
28588/* confdefs.h.  */
28589_ACEOF
28590cat confdefs.h >>conftest.$ac_ext
28591cat >>conftest.$ac_ext <<_ACEOF
28592/* end confdefs.h.  */
28593#include <stdint.h>
28594#ifdef $bound
28595found it
28596#endif
28597
28598_ACEOF
28599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28600  $EGREP "found it" >/dev/null 2>&1; then
28601  eval gl_cv_stdint_$bound=yes
28602else
28603  result=
28604          cat >conftest.$ac_ext <<_ACEOF
28605#include <signal.h>
28606            int verify[2 * (($type) -1 >= ($type) 0) - 1];
28607
28608_ACEOF
28609rm -f conftest.$ac_objext
28610if { (ac_try="$ac_compile"
28611case "(($ac_try" in
28612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613  *) ac_try_echo=$ac_try;;
28614esac
28615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616  (eval "$ac_compile") 2>conftest.er1
28617  ac_status=$?
28618  grep -v '^ *+' conftest.er1 >conftest.err
28619  rm -f conftest.er1
28620  cat conftest.err >&5
28621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622  (exit $ac_status); } &&
28623	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28624  { (case "(($ac_try" in
28625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626  *) ac_try_echo=$ac_try;;
28627esac
28628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629  (eval "$ac_try") 2>&5
28630  ac_status=$?
28631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632  (exit $ac_status); }; } &&
28633	 { ac_try='test -s conftest.$ac_objext'
28634  { (case "(($ac_try" in
28635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636  *) ac_try_echo=$ac_try;;
28637esac
28638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639  (eval "$ac_try") 2>&5
28640  ac_status=$?
28641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642  (exit $ac_status); }; }; then
28643  eval gl_cv_${type}_signed=no
28644else
28645  echo "$as_me: failed program was:" >&5
28646sed 's/^/| /' conftest.$ac_ext >&5
28647
28648	eval gl_cv_${type}_signed=yes
28649fi
28650
28651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28652          if eval test \$gl_cv_${type}_signed = yes; then
28653            for w in 8 16 32 64; do
28654              if test -z "$result"; then
28655                cat >conftest.$ac_ext <<_ACEOF
28656#include <signal.h>
28657#include <stdint.h>
28658int verify[2 * (sizeof ($type) == sizeof (int${w}_t)) - 1];
28659
28660_ACEOF
28661rm -f conftest.$ac_objext
28662if { (ac_try="$ac_compile"
28663case "(($ac_try" in
28664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665  *) ac_try_echo=$ac_try;;
28666esac
28667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668  (eval "$ac_compile") 2>conftest.er1
28669  ac_status=$?
28670  grep -v '^ *+' conftest.er1 >conftest.err
28671  rm -f conftest.er1
28672  cat conftest.err >&5
28673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674  (exit $ac_status); } &&
28675	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28676  { (case "(($ac_try" in
28677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678  *) ac_try_echo=$ac_try;;
28679esac
28680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681  (eval "$ac_try") 2>&5
28682  ac_status=$?
28683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684  (exit $ac_status); }; } &&
28685	 { ac_try='test -s conftest.$ac_objext'
28686  { (case "(($ac_try" in
28687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688  *) ac_try_echo=$ac_try;;
28689esac
28690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691  (eval "$ac_try") 2>&5
28692  ac_status=$?
28693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694  (exit $ac_status); }; }; then
28695  result=INT${w}${limitkind}
28696else
28697  echo "$as_me: failed program was:" >&5
28698sed 's/^/| /' conftest.$ac_ext >&5
28699
28700
28701fi
28702
28703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28704              else
28705                break
28706              fi
28707            done
28708          else
28709            if test ${limitkind} = _MIN; then
28710              result=0
28711            else
28712              for w in 8 16 32 64; do
28713                if test -z "$result"; then
28714                  cat >conftest.$ac_ext <<_ACEOF
28715#include <signal.h>
28716#include <stdint.h>
28717int verify[2 * (sizeof ($type) == sizeof (uint${w}_t)) - 1];
28718
28719_ACEOF
28720rm -f conftest.$ac_objext
28721if { (ac_try="$ac_compile"
28722case "(($ac_try" in
28723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724  *) ac_try_echo=$ac_try;;
28725esac
28726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727  (eval "$ac_compile") 2>conftest.er1
28728  ac_status=$?
28729  grep -v '^ *+' conftest.er1 >conftest.err
28730  rm -f conftest.er1
28731  cat conftest.err >&5
28732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733  (exit $ac_status); } &&
28734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28735  { (case "(($ac_try" in
28736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737  *) ac_try_echo=$ac_try;;
28738esac
28739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740  (eval "$ac_try") 2>&5
28741  ac_status=$?
28742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743  (exit $ac_status); }; } &&
28744	 { ac_try='test -s conftest.$ac_objext'
28745  { (case "(($ac_try" in
28746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747  *) ac_try_echo=$ac_try;;
28748esac
28749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750  (eval "$ac_try") 2>&5
28751  ac_status=$?
28752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753  (exit $ac_status); }; }; then
28754  result=UINT${w}${limitkind}
28755else
28756  echo "$as_me: failed program was:" >&5
28757sed 's/^/| /' conftest.$ac_ext >&5
28758
28759
28760fi
28761
28762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28763                else
28764                  break
28765                fi
28766              done
28767            fi
28768          fi
28769          if test -z "$result"; then
28770            result=no
28771          fi
28772          eval gl_cv_stdint_$bound=\$result
28773
28774fi
28775rm -f conftest*
28776
28777fi
28778ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
28779	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28780echo "${ECHO_T}$ac_res" >&6; }
28781    eval result=\$gl_cv_stdint_$bound
28782    if test "$result" != yes && test "$result" != no; then
28783
28784cat >>confdefs.h <<_ACEOF
28785#define $bound $result
28786_ACEOF
28787
28788    fi
28789  done
28790
28791
28792
28793
28794
28795  sed_limitkind='s,^.*\(_[^_]*\)$,\1,'
28796  for bound in WINT_MIN WINT_MAX; do
28797    type=`echo $bound | sed -e 's,_MAX,_t,' -e 's,_MIN,_t,' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
28798    limitkind=`echo $bound | sed -e "$sed_limitkind"`
28799    { echo "$as_me:$LINENO: checking for $bound" >&5
28800echo $ECHO_N "checking for $bound... $ECHO_C" >&6; }
28801if { as_var=gl_cv_stdint_$bound; eval "test \"\${$as_var+set}\" = set"; }; then
28802  echo $ECHO_N "(cached) $ECHO_C" >&6
28803else
28804  cat >conftest.$ac_ext <<_ACEOF
28805/* confdefs.h.  */
28806_ACEOF
28807cat confdefs.h >>conftest.$ac_ext
28808cat >>conftest.$ac_ext <<_ACEOF
28809/* end confdefs.h.  */
28810#include <stdint.h>
28811#ifdef $bound
28812found it
28813#endif
28814
28815_ACEOF
28816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28817  $EGREP "found it" >/dev/null 2>&1; then
28818  eval gl_cv_stdint_$bound=yes
28819else
28820  result=
28821          cat >conftest.$ac_ext <<_ACEOF
28822
28823#include <stdio.h>
28824#include <time.h>
28825#include <wchar.h>
28826
28827            int verify[2 * (($type) -1 >= ($type) 0) - 1];
28828
28829_ACEOF
28830rm -f conftest.$ac_objext
28831if { (ac_try="$ac_compile"
28832case "(($ac_try" in
28833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834  *) ac_try_echo=$ac_try;;
28835esac
28836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837  (eval "$ac_compile") 2>conftest.er1
28838  ac_status=$?
28839  grep -v '^ *+' conftest.er1 >conftest.err
28840  rm -f conftest.er1
28841  cat conftest.err >&5
28842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843  (exit $ac_status); } &&
28844	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28845  { (case "(($ac_try" in
28846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847  *) ac_try_echo=$ac_try;;
28848esac
28849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850  (eval "$ac_try") 2>&5
28851  ac_status=$?
28852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853  (exit $ac_status); }; } &&
28854	 { ac_try='test -s conftest.$ac_objext'
28855  { (case "(($ac_try" in
28856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857  *) ac_try_echo=$ac_try;;
28858esac
28859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860  (eval "$ac_try") 2>&5
28861  ac_status=$?
28862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863  (exit $ac_status); }; }; then
28864  eval gl_cv_${type}_signed=no
28865else
28866  echo "$as_me: failed program was:" >&5
28867sed 's/^/| /' conftest.$ac_ext >&5
28868
28869	eval gl_cv_${type}_signed=yes
28870fi
28871
28872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873          if eval test \$gl_cv_${type}_signed = yes; then
28874            for w in 8 16 32 64; do
28875              if test -z "$result"; then
28876                cat >conftest.$ac_ext <<_ACEOF
28877
28878#include <stdio.h>
28879#include <time.h>
28880#include <wchar.h>
28881
28882#include <stdint.h>
28883int verify[2 * (sizeof ($type) == sizeof (int${w}_t)) - 1];
28884
28885_ACEOF
28886rm -f conftest.$ac_objext
28887if { (ac_try="$ac_compile"
28888case "(($ac_try" in
28889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890  *) ac_try_echo=$ac_try;;
28891esac
28892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893  (eval "$ac_compile") 2>conftest.er1
28894  ac_status=$?
28895  grep -v '^ *+' conftest.er1 >conftest.err
28896  rm -f conftest.er1
28897  cat conftest.err >&5
28898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899  (exit $ac_status); } &&
28900	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28901  { (case "(($ac_try" in
28902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903  *) ac_try_echo=$ac_try;;
28904esac
28905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28906  (eval "$ac_try") 2>&5
28907  ac_status=$?
28908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909  (exit $ac_status); }; } &&
28910	 { ac_try='test -s conftest.$ac_objext'
28911  { (case "(($ac_try" in
28912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913  *) ac_try_echo=$ac_try;;
28914esac
28915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916  (eval "$ac_try") 2>&5
28917  ac_status=$?
28918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919  (exit $ac_status); }; }; then
28920  result=INT${w}${limitkind}
28921else
28922  echo "$as_me: failed program was:" >&5
28923sed 's/^/| /' conftest.$ac_ext >&5
28924
28925
28926fi
28927
28928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28929              else
28930                break
28931              fi
28932            done
28933          else
28934            if test ${limitkind} = _MIN; then
28935              result=0
28936            else
28937              for w in 8 16 32 64; do
28938                if test -z "$result"; then
28939                  cat >conftest.$ac_ext <<_ACEOF
28940
28941#include <stdio.h>
28942#include <time.h>
28943#include <wchar.h>
28944
28945#include <stdint.h>
28946int verify[2 * (sizeof ($type) == sizeof (uint${w}_t)) - 1];
28947
28948_ACEOF
28949rm -f conftest.$ac_objext
28950if { (ac_try="$ac_compile"
28951case "(($ac_try" in
28952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953  *) ac_try_echo=$ac_try;;
28954esac
28955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956  (eval "$ac_compile") 2>conftest.er1
28957  ac_status=$?
28958  grep -v '^ *+' conftest.er1 >conftest.err
28959  rm -f conftest.er1
28960  cat conftest.err >&5
28961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962  (exit $ac_status); } &&
28963	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28964  { (case "(($ac_try" in
28965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966  *) ac_try_echo=$ac_try;;
28967esac
28968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969  (eval "$ac_try") 2>&5
28970  ac_status=$?
28971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972  (exit $ac_status); }; } &&
28973	 { ac_try='test -s conftest.$ac_objext'
28974  { (case "(($ac_try" in
28975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28976  *) ac_try_echo=$ac_try;;
28977esac
28978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28979  (eval "$ac_try") 2>&5
28980  ac_status=$?
28981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982  (exit $ac_status); }; }; then
28983  result=UINT${w}${limitkind}
28984else
28985  echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988
28989fi
28990
28991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28992                else
28993                  break
28994                fi
28995              done
28996            fi
28997          fi
28998          if test -z "$result"; then
28999            result=no
29000          fi
29001          eval gl_cv_stdint_$bound=\$result
29002
29003fi
29004rm -f conftest*
29005
29006fi
29007ac_res=`eval echo '${'gl_cv_stdint_$bound'}'`
29008	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29009echo "${ECHO_T}$ac_res" >&6; }
29010    eval result=\$gl_cv_stdint_$bound
29011    if test "$result" != yes && test "$result" != no; then
29012
29013cat >>confdefs.h <<_ACEOF
29014#define $bound $result
29015_ACEOF
29016
29017    fi
29018  done
29019
29020    STDINT_H=''
29021  else
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
29052
29053  for gltype in int8_t int16_t int32_t int64_t \
29054       uint8_t uint16_t uint32_t uint64_t \
29055       int_least8_t int_least16_t int_least32_t int_least64_t \
29056       uint_least8_t uint_least16_t uint_least32_t uint_least64_t \
29057       int_fast8_t int_fast16_t int_fast32_t int_fast64_t \
29058       uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t \
29059       intptr_t uintptr_t \
29060       intmax_t uintmax_t ; do
29061    if eval test \$gl_cv_type_${gltype} = yes; then
29062      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29063echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
29064if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29065  echo $ECHO_N "(cached) $ECHO_C" >&6
29066else
29067  if test "$cross_compiling" = yes; then
29068  # Depending upon the size, compute the lo and hi bounds.
29069cat >conftest.$ac_ext <<_ACEOF
29070/* confdefs.h.  */
29071_ACEOF
29072cat confdefs.h >>conftest.$ac_ext
29073cat >>conftest.$ac_ext <<_ACEOF
29074/* end confdefs.h.  */
29075$other_includes
29076#include <limits.h>
29077int
29078main ()
29079{
29080static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29081test_array [0] = 0
29082
29083  ;
29084  return 0;
29085}
29086_ACEOF
29087rm -f conftest.$ac_objext
29088if { (ac_try="$ac_compile"
29089case "(($ac_try" in
29090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091  *) ac_try_echo=$ac_try;;
29092esac
29093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094  (eval "$ac_compile") 2>conftest.er1
29095  ac_status=$?
29096  grep -v '^ *+' conftest.er1 >conftest.err
29097  rm -f conftest.er1
29098  cat conftest.err >&5
29099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100  (exit $ac_status); } &&
29101	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102  { (case "(($ac_try" in
29103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104  *) ac_try_echo=$ac_try;;
29105esac
29106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107  (eval "$ac_try") 2>&5
29108  ac_status=$?
29109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110  (exit $ac_status); }; } &&
29111	 { ac_try='test -s conftest.$ac_objext'
29112  { (case "(($ac_try" in
29113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114  *) ac_try_echo=$ac_try;;
29115esac
29116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117  (eval "$ac_try") 2>&5
29118  ac_status=$?
29119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120  (exit $ac_status); }; }; then
29121  ac_lo=0 ac_mid=0
29122  while :; do
29123    cat >conftest.$ac_ext <<_ACEOF
29124/* confdefs.h.  */
29125_ACEOF
29126cat confdefs.h >>conftest.$ac_ext
29127cat >>conftest.$ac_ext <<_ACEOF
29128/* end confdefs.h.  */
29129$other_includes
29130#include <limits.h>
29131int
29132main ()
29133{
29134static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29135test_array [0] = 0
29136
29137  ;
29138  return 0;
29139}
29140_ACEOF
29141rm -f conftest.$ac_objext
29142if { (ac_try="$ac_compile"
29143case "(($ac_try" in
29144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145  *) ac_try_echo=$ac_try;;
29146esac
29147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148  (eval "$ac_compile") 2>conftest.er1
29149  ac_status=$?
29150  grep -v '^ *+' conftest.er1 >conftest.err
29151  rm -f conftest.er1
29152  cat conftest.err >&5
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); } &&
29155	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29156  { (case "(($ac_try" in
29157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158  *) ac_try_echo=$ac_try;;
29159esac
29160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161  (eval "$ac_try") 2>&5
29162  ac_status=$?
29163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164  (exit $ac_status); }; } &&
29165	 { ac_try='test -s conftest.$ac_objext'
29166  { (case "(($ac_try" in
29167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168  *) ac_try_echo=$ac_try;;
29169esac
29170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171  (eval "$ac_try") 2>&5
29172  ac_status=$?
29173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174  (exit $ac_status); }; }; then
29175  ac_hi=$ac_mid; break
29176else
29177  echo "$as_me: failed program was:" >&5
29178sed 's/^/| /' conftest.$ac_ext >&5
29179
29180	ac_lo=`expr $ac_mid + 1`
29181			if test $ac_lo -le $ac_mid; then
29182			  ac_lo= ac_hi=
29183			  break
29184			fi
29185			ac_mid=`expr 2 '*' $ac_mid + 1`
29186fi
29187
29188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189  done
29190else
29191  echo "$as_me: failed program was:" >&5
29192sed 's/^/| /' conftest.$ac_ext >&5
29193
29194	cat >conftest.$ac_ext <<_ACEOF
29195/* confdefs.h.  */
29196_ACEOF
29197cat confdefs.h >>conftest.$ac_ext
29198cat >>conftest.$ac_ext <<_ACEOF
29199/* end confdefs.h.  */
29200$other_includes
29201#include <limits.h>
29202int
29203main ()
29204{
29205static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29206test_array [0] = 0
29207
29208  ;
29209  return 0;
29210}
29211_ACEOF
29212rm -f conftest.$ac_objext
29213if { (ac_try="$ac_compile"
29214case "(($ac_try" in
29215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216  *) ac_try_echo=$ac_try;;
29217esac
29218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219  (eval "$ac_compile") 2>conftest.er1
29220  ac_status=$?
29221  grep -v '^ *+' conftest.er1 >conftest.err
29222  rm -f conftest.er1
29223  cat conftest.err >&5
29224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225  (exit $ac_status); } &&
29226	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29227  { (case "(($ac_try" in
29228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29229  *) ac_try_echo=$ac_try;;
29230esac
29231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29232  (eval "$ac_try") 2>&5
29233  ac_status=$?
29234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235  (exit $ac_status); }; } &&
29236	 { ac_try='test -s conftest.$ac_objext'
29237  { (case "(($ac_try" in
29238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239  *) ac_try_echo=$ac_try;;
29240esac
29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242  (eval "$ac_try") 2>&5
29243  ac_status=$?
29244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245  (exit $ac_status); }; }; then
29246  ac_hi=-1 ac_mid=-1
29247  while :; do
29248    cat >conftest.$ac_ext <<_ACEOF
29249/* confdefs.h.  */
29250_ACEOF
29251cat confdefs.h >>conftest.$ac_ext
29252cat >>conftest.$ac_ext <<_ACEOF
29253/* end confdefs.h.  */
29254$other_includes
29255#include <limits.h>
29256int
29257main ()
29258{
29259static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29260test_array [0] = 0
29261
29262  ;
29263  return 0;
29264}
29265_ACEOF
29266rm -f conftest.$ac_objext
29267if { (ac_try="$ac_compile"
29268case "(($ac_try" in
29269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270  *) ac_try_echo=$ac_try;;
29271esac
29272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273  (eval "$ac_compile") 2>conftest.er1
29274  ac_status=$?
29275  grep -v '^ *+' conftest.er1 >conftest.err
29276  rm -f conftest.er1
29277  cat conftest.err >&5
29278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279  (exit $ac_status); } &&
29280	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29281  { (case "(($ac_try" in
29282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283  *) ac_try_echo=$ac_try;;
29284esac
29285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286  (eval "$ac_try") 2>&5
29287  ac_status=$?
29288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289  (exit $ac_status); }; } &&
29290	 { ac_try='test -s conftest.$ac_objext'
29291  { (case "(($ac_try" in
29292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293  *) ac_try_echo=$ac_try;;
29294esac
29295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296  (eval "$ac_try") 2>&5
29297  ac_status=$?
29298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299  (exit $ac_status); }; }; then
29300  ac_lo=$ac_mid; break
29301else
29302  echo "$as_me: failed program was:" >&5
29303sed 's/^/| /' conftest.$ac_ext >&5
29304
29305	ac_hi=`expr '(' $ac_mid ')' - 1`
29306			if test $ac_mid -le $ac_hi; then
29307			  ac_lo= ac_hi=
29308			  break
29309			fi
29310			ac_mid=`expr 2 '*' $ac_mid`
29311fi
29312
29313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314  done
29315else
29316  echo "$as_me: failed program was:" >&5
29317sed 's/^/| /' conftest.$ac_ext >&5
29318
29319	ac_lo= ac_hi=
29320fi
29321
29322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29323fi
29324
29325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29326# Binary search between lo and hi bounds.
29327while test "x$ac_lo" != "x$ac_hi"; do
29328  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29329  cat >conftest.$ac_ext <<_ACEOF
29330/* confdefs.h.  */
29331_ACEOF
29332cat confdefs.h >>conftest.$ac_ext
29333cat >>conftest.$ac_ext <<_ACEOF
29334/* end confdefs.h.  */
29335$other_includes
29336#include <limits.h>
29337int
29338main ()
29339{
29340static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29341test_array [0] = 0
29342
29343  ;
29344  return 0;
29345}
29346_ACEOF
29347rm -f conftest.$ac_objext
29348if { (ac_try="$ac_compile"
29349case "(($ac_try" in
29350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351  *) ac_try_echo=$ac_try;;
29352esac
29353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354  (eval "$ac_compile") 2>conftest.er1
29355  ac_status=$?
29356  grep -v '^ *+' conftest.er1 >conftest.err
29357  rm -f conftest.er1
29358  cat conftest.err >&5
29359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360  (exit $ac_status); } &&
29361	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29362  { (case "(($ac_try" in
29363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29364  *) ac_try_echo=$ac_try;;
29365esac
29366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29367  (eval "$ac_try") 2>&5
29368  ac_status=$?
29369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370  (exit $ac_status); }; } &&
29371	 { ac_try='test -s conftest.$ac_objext'
29372  { (case "(($ac_try" in
29373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29374  *) ac_try_echo=$ac_try;;
29375esac
29376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29377  (eval "$ac_try") 2>&5
29378  ac_status=$?
29379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380  (exit $ac_status); }; }; then
29381  ac_hi=$ac_mid
29382else
29383  echo "$as_me: failed program was:" >&5
29384sed 's/^/| /' conftest.$ac_ext >&5
29385
29386	ac_lo=`expr '(' $ac_mid ')' + 1`
29387fi
29388
29389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29390done
29391case $ac_lo in
29392?*) result=$ac_lo;;
29393'') result=unknown ;;
29394esac
29395else
29396  cat >conftest.$ac_ext <<_ACEOF
29397/* confdefs.h.  */
29398_ACEOF
29399cat confdefs.h >>conftest.$ac_ext
29400cat >>conftest.$ac_ext <<_ACEOF
29401/* end confdefs.h.  */
29402$other_includes
29403#include <limits.h>
29404static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29405static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29406#include <stdio.h>
29407#include <stdlib.h>
29408int
29409main ()
29410{
29411
29412  FILE *f = fopen ("conftest.val", "w");
29413  if (! f)
29414    return 1;
29415  if ((sizeof ($gltype) * CHAR_BIT) < 0)
29416    {
29417      long int i = longval ();
29418      if (i != (sizeof ($gltype) * CHAR_BIT))
29419	return 1;
29420      fprintf (f, "%ld\n", i);
29421    }
29422  else
29423    {
29424      unsigned long int i = ulongval ();
29425      if (i != (sizeof ($gltype) * CHAR_BIT))
29426	return 1;
29427      fprintf (f, "%lu\n", i);
29428    }
29429  return ferror (f) || fclose (f) != 0;
29430
29431  ;
29432  return 0;
29433}
29434_ACEOF
29435rm -f conftest$ac_exeext
29436if { (ac_try="$ac_link"
29437case "(($ac_try" in
29438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439  *) ac_try_echo=$ac_try;;
29440esac
29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442  (eval "$ac_link") 2>&5
29443  ac_status=$?
29444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29446  { (case "(($ac_try" in
29447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448  *) ac_try_echo=$ac_try;;
29449esac
29450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451  (eval "$ac_try") 2>&5
29452  ac_status=$?
29453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454  (exit $ac_status); }; }; then
29455  result=`cat conftest.val`
29456else
29457  echo "$as_me: program exited with status $ac_status" >&5
29458echo "$as_me: failed program was:" >&5
29459sed 's/^/| /' conftest.$ac_ext >&5
29460
29461( exit $ac_status )
29462result=unknown
29463fi
29464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29465fi
29466rm -f conftest.val
29467         eval gl_cv_bitsizeof_${gltype}=\$result
29468
29469fi
29470ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
29471	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29472echo "${ECHO_T}$ac_res" >&6; }
29473      eval result=\$gl_cv_bitsizeof_${gltype}
29474    else
29475                                                result=0
29476    fi
29477    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29478    cat >>confdefs.h <<_ACEOF
29479#define BITSIZEOF_${GLTYPE} $result
29480_ACEOF
29481
29482    eval BITSIZEOF_${GLTYPE}=\$result
29483  done
29484
29485
29486
29487    gl_cv_type_unsigned_int=yes
29488    gl_cv_type_long=yes
29489    gl_cv_type_unsigned_long=yes
29490
29491
29492
29493
29494
29495  for gltype in unsigned_int long unsigned_long ; do
29496    if eval test \$gl_cv_type_${gltype} = yes; then
29497      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29498echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
29499if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29500  echo $ECHO_N "(cached) $ECHO_C" >&6
29501else
29502  if test "$cross_compiling" = yes; then
29503  # Depending upon the size, compute the lo and hi bounds.
29504cat >conftest.$ac_ext <<_ACEOF
29505/* confdefs.h.  */
29506_ACEOF
29507cat confdefs.h >>conftest.$ac_ext
29508cat >>conftest.$ac_ext <<_ACEOF
29509/* end confdefs.h.  */
29510typedef unsigned int unsigned_int;
29511       typedef unsigned long unsigned_long;
29512#include <limits.h>
29513int
29514main ()
29515{
29516static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29517test_array [0] = 0
29518
29519  ;
29520  return 0;
29521}
29522_ACEOF
29523rm -f conftest.$ac_objext
29524if { (ac_try="$ac_compile"
29525case "(($ac_try" in
29526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527  *) ac_try_echo=$ac_try;;
29528esac
29529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530  (eval "$ac_compile") 2>conftest.er1
29531  ac_status=$?
29532  grep -v '^ *+' conftest.er1 >conftest.err
29533  rm -f conftest.er1
29534  cat conftest.err >&5
29535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536  (exit $ac_status); } &&
29537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29538  { (case "(($ac_try" in
29539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540  *) ac_try_echo=$ac_try;;
29541esac
29542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543  (eval "$ac_try") 2>&5
29544  ac_status=$?
29545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546  (exit $ac_status); }; } &&
29547	 { ac_try='test -s conftest.$ac_objext'
29548  { (case "(($ac_try" in
29549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550  *) ac_try_echo=$ac_try;;
29551esac
29552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553  (eval "$ac_try") 2>&5
29554  ac_status=$?
29555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556  (exit $ac_status); }; }; then
29557  ac_lo=0 ac_mid=0
29558  while :; do
29559    cat >conftest.$ac_ext <<_ACEOF
29560/* confdefs.h.  */
29561_ACEOF
29562cat confdefs.h >>conftest.$ac_ext
29563cat >>conftest.$ac_ext <<_ACEOF
29564/* end confdefs.h.  */
29565typedef unsigned int unsigned_int;
29566       typedef unsigned long unsigned_long;
29567#include <limits.h>
29568int
29569main ()
29570{
29571static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29572test_array [0] = 0
29573
29574  ;
29575  return 0;
29576}
29577_ACEOF
29578rm -f conftest.$ac_objext
29579if { (ac_try="$ac_compile"
29580case "(($ac_try" in
29581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582  *) ac_try_echo=$ac_try;;
29583esac
29584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29585  (eval "$ac_compile") 2>conftest.er1
29586  ac_status=$?
29587  grep -v '^ *+' conftest.er1 >conftest.err
29588  rm -f conftest.er1
29589  cat conftest.err >&5
29590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591  (exit $ac_status); } &&
29592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29593  { (case "(($ac_try" in
29594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595  *) ac_try_echo=$ac_try;;
29596esac
29597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598  (eval "$ac_try") 2>&5
29599  ac_status=$?
29600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601  (exit $ac_status); }; } &&
29602	 { ac_try='test -s conftest.$ac_objext'
29603  { (case "(($ac_try" in
29604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605  *) ac_try_echo=$ac_try;;
29606esac
29607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608  (eval "$ac_try") 2>&5
29609  ac_status=$?
29610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611  (exit $ac_status); }; }; then
29612  ac_hi=$ac_mid; break
29613else
29614  echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616
29617	ac_lo=`expr $ac_mid + 1`
29618			if test $ac_lo -le $ac_mid; then
29619			  ac_lo= ac_hi=
29620			  break
29621			fi
29622			ac_mid=`expr 2 '*' $ac_mid + 1`
29623fi
29624
29625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29626  done
29627else
29628  echo "$as_me: failed program was:" >&5
29629sed 's/^/| /' conftest.$ac_ext >&5
29630
29631	cat >conftest.$ac_ext <<_ACEOF
29632/* confdefs.h.  */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h.  */
29637typedef unsigned int unsigned_int;
29638       typedef unsigned long unsigned_long;
29639#include <limits.h>
29640int
29641main ()
29642{
29643static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29644test_array [0] = 0
29645
29646  ;
29647  return 0;
29648}
29649_ACEOF
29650rm -f conftest.$ac_objext
29651if { (ac_try="$ac_compile"
29652case "(($ac_try" in
29653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654  *) ac_try_echo=$ac_try;;
29655esac
29656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657  (eval "$ac_compile") 2>conftest.er1
29658  ac_status=$?
29659  grep -v '^ *+' conftest.er1 >conftest.err
29660  rm -f conftest.er1
29661  cat conftest.err >&5
29662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663  (exit $ac_status); } &&
29664	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29665  { (case "(($ac_try" in
29666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667  *) ac_try_echo=$ac_try;;
29668esac
29669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670  (eval "$ac_try") 2>&5
29671  ac_status=$?
29672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673  (exit $ac_status); }; } &&
29674	 { ac_try='test -s conftest.$ac_objext'
29675  { (case "(($ac_try" in
29676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677  *) ac_try_echo=$ac_try;;
29678esac
29679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680  (eval "$ac_try") 2>&5
29681  ac_status=$?
29682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683  (exit $ac_status); }; }; then
29684  ac_hi=-1 ac_mid=-1
29685  while :; do
29686    cat >conftest.$ac_ext <<_ACEOF
29687/* confdefs.h.  */
29688_ACEOF
29689cat confdefs.h >>conftest.$ac_ext
29690cat >>conftest.$ac_ext <<_ACEOF
29691/* end confdefs.h.  */
29692typedef unsigned int unsigned_int;
29693       typedef unsigned long unsigned_long;
29694#include <limits.h>
29695int
29696main ()
29697{
29698static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29699test_array [0] = 0
29700
29701  ;
29702  return 0;
29703}
29704_ACEOF
29705rm -f conftest.$ac_objext
29706if { (ac_try="$ac_compile"
29707case "(($ac_try" in
29708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709  *) ac_try_echo=$ac_try;;
29710esac
29711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712  (eval "$ac_compile") 2>conftest.er1
29713  ac_status=$?
29714  grep -v '^ *+' conftest.er1 >conftest.err
29715  rm -f conftest.er1
29716  cat conftest.err >&5
29717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718  (exit $ac_status); } &&
29719	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29720  { (case "(($ac_try" in
29721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722  *) ac_try_echo=$ac_try;;
29723esac
29724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725  (eval "$ac_try") 2>&5
29726  ac_status=$?
29727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728  (exit $ac_status); }; } &&
29729	 { ac_try='test -s conftest.$ac_objext'
29730  { (case "(($ac_try" in
29731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732  *) ac_try_echo=$ac_try;;
29733esac
29734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735  (eval "$ac_try") 2>&5
29736  ac_status=$?
29737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738  (exit $ac_status); }; }; then
29739  ac_lo=$ac_mid; break
29740else
29741  echo "$as_me: failed program was:" >&5
29742sed 's/^/| /' conftest.$ac_ext >&5
29743
29744	ac_hi=`expr '(' $ac_mid ')' - 1`
29745			if test $ac_mid -le $ac_hi; then
29746			  ac_lo= ac_hi=
29747			  break
29748			fi
29749			ac_mid=`expr 2 '*' $ac_mid`
29750fi
29751
29752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753  done
29754else
29755  echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
29758	ac_lo= ac_hi=
29759fi
29760
29761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29762fi
29763
29764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29765# Binary search between lo and hi bounds.
29766while test "x$ac_lo" != "x$ac_hi"; do
29767  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29768  cat >conftest.$ac_ext <<_ACEOF
29769/* confdefs.h.  */
29770_ACEOF
29771cat confdefs.h >>conftest.$ac_ext
29772cat >>conftest.$ac_ext <<_ACEOF
29773/* end confdefs.h.  */
29774typedef unsigned int unsigned_int;
29775       typedef unsigned long unsigned_long;
29776#include <limits.h>
29777int
29778main ()
29779{
29780static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29781test_array [0] = 0
29782
29783  ;
29784  return 0;
29785}
29786_ACEOF
29787rm -f conftest.$ac_objext
29788if { (ac_try="$ac_compile"
29789case "(($ac_try" in
29790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791  *) ac_try_echo=$ac_try;;
29792esac
29793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794  (eval "$ac_compile") 2>conftest.er1
29795  ac_status=$?
29796  grep -v '^ *+' conftest.er1 >conftest.err
29797  rm -f conftest.er1
29798  cat conftest.err >&5
29799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800  (exit $ac_status); } &&
29801	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29802  { (case "(($ac_try" in
29803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804  *) ac_try_echo=$ac_try;;
29805esac
29806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807  (eval "$ac_try") 2>&5
29808  ac_status=$?
29809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810  (exit $ac_status); }; } &&
29811	 { ac_try='test -s conftest.$ac_objext'
29812  { (case "(($ac_try" in
29813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29814  *) ac_try_echo=$ac_try;;
29815esac
29816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29817  (eval "$ac_try") 2>&5
29818  ac_status=$?
29819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820  (exit $ac_status); }; }; then
29821  ac_hi=$ac_mid
29822else
29823  echo "$as_me: failed program was:" >&5
29824sed 's/^/| /' conftest.$ac_ext >&5
29825
29826	ac_lo=`expr '(' $ac_mid ')' + 1`
29827fi
29828
29829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830done
29831case $ac_lo in
29832?*) result=$ac_lo;;
29833'') result=unknown ;;
29834esac
29835else
29836  cat >conftest.$ac_ext <<_ACEOF
29837/* confdefs.h.  */
29838_ACEOF
29839cat confdefs.h >>conftest.$ac_ext
29840cat >>conftest.$ac_ext <<_ACEOF
29841/* end confdefs.h.  */
29842typedef unsigned int unsigned_int;
29843       typedef unsigned long unsigned_long;
29844#include <limits.h>
29845static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29846static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29847#include <stdio.h>
29848#include <stdlib.h>
29849int
29850main ()
29851{
29852
29853  FILE *f = fopen ("conftest.val", "w");
29854  if (! f)
29855    return 1;
29856  if ((sizeof ($gltype) * CHAR_BIT) < 0)
29857    {
29858      long int i = longval ();
29859      if (i != (sizeof ($gltype) * CHAR_BIT))
29860	return 1;
29861      fprintf (f, "%ld\n", i);
29862    }
29863  else
29864    {
29865      unsigned long int i = ulongval ();
29866      if (i != (sizeof ($gltype) * CHAR_BIT))
29867	return 1;
29868      fprintf (f, "%lu\n", i);
29869    }
29870  return ferror (f) || fclose (f) != 0;
29871
29872  ;
29873  return 0;
29874}
29875_ACEOF
29876rm -f conftest$ac_exeext
29877if { (ac_try="$ac_link"
29878case "(($ac_try" in
29879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29880  *) ac_try_echo=$ac_try;;
29881esac
29882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29883  (eval "$ac_link") 2>&5
29884  ac_status=$?
29885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29887  { (case "(($ac_try" in
29888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889  *) ac_try_echo=$ac_try;;
29890esac
29891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892  (eval "$ac_try") 2>&5
29893  ac_status=$?
29894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895  (exit $ac_status); }; }; then
29896  result=`cat conftest.val`
29897else
29898  echo "$as_me: program exited with status $ac_status" >&5
29899echo "$as_me: failed program was:" >&5
29900sed 's/^/| /' conftest.$ac_ext >&5
29901
29902( exit $ac_status )
29903result=unknown
29904fi
29905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29906fi
29907rm -f conftest.val
29908         eval gl_cv_bitsizeof_${gltype}=\$result
29909
29910fi
29911ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
29912	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29913echo "${ECHO_T}$ac_res" >&6; }
29914      eval result=\$gl_cv_bitsizeof_${gltype}
29915    else
29916                                                result=0
29917    fi
29918    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29919    cat >>confdefs.h <<_ACEOF
29920#define BITSIZEOF_${GLTYPE} $result
29921_ACEOF
29922
29923    eval BITSIZEOF_${GLTYPE}=\$result
29924  done
29925
29926
29927
29928    { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
29929echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
29930if test "${ac_cv_type_ptrdiff_t+set}" = set; then
29931  echo $ECHO_N "(cached) $ECHO_C" >&6
29932else
29933  cat >conftest.$ac_ext <<_ACEOF
29934/* confdefs.h.  */
29935_ACEOF
29936cat confdefs.h >>conftest.$ac_ext
29937cat >>conftest.$ac_ext <<_ACEOF
29938/* end confdefs.h.  */
29939$ac_includes_default
29940typedef ptrdiff_t ac__type_new_;
29941int
29942main ()
29943{
29944if ((ac__type_new_ *) 0)
29945  return 0;
29946if (sizeof (ac__type_new_))
29947  return 0;
29948  ;
29949  return 0;
29950}
29951_ACEOF
29952rm -f conftest.$ac_objext
29953if { (ac_try="$ac_compile"
29954case "(($ac_try" in
29955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956  *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959  (eval "$ac_compile") 2>conftest.er1
29960  ac_status=$?
29961  grep -v '^ *+' conftest.er1 >conftest.err
29962  rm -f conftest.er1
29963  cat conftest.err >&5
29964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965  (exit $ac_status); } &&
29966	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29967  { (case "(($ac_try" in
29968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969  *) ac_try_echo=$ac_try;;
29970esac
29971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972  (eval "$ac_try") 2>&5
29973  ac_status=$?
29974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975  (exit $ac_status); }; } &&
29976	 { ac_try='test -s conftest.$ac_objext'
29977  { (case "(($ac_try" in
29978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979  *) ac_try_echo=$ac_try;;
29980esac
29981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982  (eval "$ac_try") 2>&5
29983  ac_status=$?
29984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985  (exit $ac_status); }; }; then
29986  ac_cv_type_ptrdiff_t=yes
29987else
29988  echo "$as_me: failed program was:" >&5
29989sed 's/^/| /' conftest.$ac_ext >&5
29990
29991	ac_cv_type_ptrdiff_t=no
29992fi
29993
29994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995fi
29996{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
29997echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
29998if test $ac_cv_type_ptrdiff_t = yes; then
29999
30000cat >>confdefs.h <<_ACEOF
30001#define HAVE_PTRDIFF_T 1
30002_ACEOF
30003
30004
30005fi
30006
30007    gl_cv_type_ptrdiff_t=$ac_cv_type_ptrdiff_t
30008
30009    gl_cv_type_size_t=yes
30010
30011
30012
30013
30014  for gltype in ptrdiff_t size_t ; do
30015    if eval test \$gl_cv_type_${gltype} = yes; then
30016      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30017echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
30018if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30019  echo $ECHO_N "(cached) $ECHO_C" >&6
30020else
30021  if test "$cross_compiling" = yes; then
30022  # Depending upon the size, compute the lo and hi bounds.
30023cat >conftest.$ac_ext <<_ACEOF
30024/* confdefs.h.  */
30025_ACEOF
30026cat confdefs.h >>conftest.$ac_ext
30027cat >>conftest.$ac_ext <<_ACEOF
30028/* end confdefs.h.  */
30029#include <stddef.h>
30030#include <limits.h>
30031int
30032main ()
30033{
30034static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30035test_array [0] = 0
30036
30037  ;
30038  return 0;
30039}
30040_ACEOF
30041rm -f conftest.$ac_objext
30042if { (ac_try="$ac_compile"
30043case "(($ac_try" in
30044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30045  *) ac_try_echo=$ac_try;;
30046esac
30047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30048  (eval "$ac_compile") 2>conftest.er1
30049  ac_status=$?
30050  grep -v '^ *+' conftest.er1 >conftest.err
30051  rm -f conftest.er1
30052  cat conftest.err >&5
30053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054  (exit $ac_status); } &&
30055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30056  { (case "(($ac_try" in
30057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30058  *) ac_try_echo=$ac_try;;
30059esac
30060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061  (eval "$ac_try") 2>&5
30062  ac_status=$?
30063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064  (exit $ac_status); }; } &&
30065	 { ac_try='test -s conftest.$ac_objext'
30066  { (case "(($ac_try" in
30067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068  *) ac_try_echo=$ac_try;;
30069esac
30070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071  (eval "$ac_try") 2>&5
30072  ac_status=$?
30073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074  (exit $ac_status); }; }; then
30075  ac_lo=0 ac_mid=0
30076  while :; do
30077    cat >conftest.$ac_ext <<_ACEOF
30078/* confdefs.h.  */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h.  */
30083#include <stddef.h>
30084#include <limits.h>
30085int
30086main ()
30087{
30088static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30089test_array [0] = 0
30090
30091  ;
30092  return 0;
30093}
30094_ACEOF
30095rm -f conftest.$ac_objext
30096if { (ac_try="$ac_compile"
30097case "(($ac_try" in
30098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099  *) ac_try_echo=$ac_try;;
30100esac
30101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102  (eval "$ac_compile") 2>conftest.er1
30103  ac_status=$?
30104  grep -v '^ *+' conftest.er1 >conftest.err
30105  rm -f conftest.er1
30106  cat conftest.err >&5
30107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108  (exit $ac_status); } &&
30109	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30110  { (case "(($ac_try" in
30111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112  *) ac_try_echo=$ac_try;;
30113esac
30114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30115  (eval "$ac_try") 2>&5
30116  ac_status=$?
30117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118  (exit $ac_status); }; } &&
30119	 { ac_try='test -s conftest.$ac_objext'
30120  { (case "(($ac_try" in
30121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122  *) ac_try_echo=$ac_try;;
30123esac
30124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125  (eval "$ac_try") 2>&5
30126  ac_status=$?
30127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128  (exit $ac_status); }; }; then
30129  ac_hi=$ac_mid; break
30130else
30131  echo "$as_me: failed program was:" >&5
30132sed 's/^/| /' conftest.$ac_ext >&5
30133
30134	ac_lo=`expr $ac_mid + 1`
30135			if test $ac_lo -le $ac_mid; then
30136			  ac_lo= ac_hi=
30137			  break
30138			fi
30139			ac_mid=`expr 2 '*' $ac_mid + 1`
30140fi
30141
30142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143  done
30144else
30145  echo "$as_me: failed program was:" >&5
30146sed 's/^/| /' conftest.$ac_ext >&5
30147
30148	cat >conftest.$ac_ext <<_ACEOF
30149/* confdefs.h.  */
30150_ACEOF
30151cat confdefs.h >>conftest.$ac_ext
30152cat >>conftest.$ac_ext <<_ACEOF
30153/* end confdefs.h.  */
30154#include <stddef.h>
30155#include <limits.h>
30156int
30157main ()
30158{
30159static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30160test_array [0] = 0
30161
30162  ;
30163  return 0;
30164}
30165_ACEOF
30166rm -f conftest.$ac_objext
30167if { (ac_try="$ac_compile"
30168case "(($ac_try" in
30169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170  *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173  (eval "$ac_compile") 2>conftest.er1
30174  ac_status=$?
30175  grep -v '^ *+' conftest.er1 >conftest.err
30176  rm -f conftest.er1
30177  cat conftest.err >&5
30178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179  (exit $ac_status); } &&
30180	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181  { (case "(($ac_try" in
30182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183  *) ac_try_echo=$ac_try;;
30184esac
30185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186  (eval "$ac_try") 2>&5
30187  ac_status=$?
30188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189  (exit $ac_status); }; } &&
30190	 { ac_try='test -s conftest.$ac_objext'
30191  { (case "(($ac_try" in
30192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193  *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196  (eval "$ac_try") 2>&5
30197  ac_status=$?
30198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199  (exit $ac_status); }; }; then
30200  ac_hi=-1 ac_mid=-1
30201  while :; do
30202    cat >conftest.$ac_ext <<_ACEOF
30203/* confdefs.h.  */
30204_ACEOF
30205cat confdefs.h >>conftest.$ac_ext
30206cat >>conftest.$ac_ext <<_ACEOF
30207/* end confdefs.h.  */
30208#include <stddef.h>
30209#include <limits.h>
30210int
30211main ()
30212{
30213static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30214test_array [0] = 0
30215
30216  ;
30217  return 0;
30218}
30219_ACEOF
30220rm -f conftest.$ac_objext
30221if { (ac_try="$ac_compile"
30222case "(($ac_try" in
30223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224  *) ac_try_echo=$ac_try;;
30225esac
30226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227  (eval "$ac_compile") 2>conftest.er1
30228  ac_status=$?
30229  grep -v '^ *+' conftest.er1 >conftest.err
30230  rm -f conftest.er1
30231  cat conftest.err >&5
30232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233  (exit $ac_status); } &&
30234	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30235  { (case "(($ac_try" in
30236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237  *) ac_try_echo=$ac_try;;
30238esac
30239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240  (eval "$ac_try") 2>&5
30241  ac_status=$?
30242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243  (exit $ac_status); }; } &&
30244	 { ac_try='test -s conftest.$ac_objext'
30245  { (case "(($ac_try" in
30246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247  *) ac_try_echo=$ac_try;;
30248esac
30249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250  (eval "$ac_try") 2>&5
30251  ac_status=$?
30252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253  (exit $ac_status); }; }; then
30254  ac_lo=$ac_mid; break
30255else
30256  echo "$as_me: failed program was:" >&5
30257sed 's/^/| /' conftest.$ac_ext >&5
30258
30259	ac_hi=`expr '(' $ac_mid ')' - 1`
30260			if test $ac_mid -le $ac_hi; then
30261			  ac_lo= ac_hi=
30262			  break
30263			fi
30264			ac_mid=`expr 2 '*' $ac_mid`
30265fi
30266
30267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30268  done
30269else
30270  echo "$as_me: failed program was:" >&5
30271sed 's/^/| /' conftest.$ac_ext >&5
30272
30273	ac_lo= ac_hi=
30274fi
30275
30276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277fi
30278
30279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30280# Binary search between lo and hi bounds.
30281while test "x$ac_lo" != "x$ac_hi"; do
30282  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30283  cat >conftest.$ac_ext <<_ACEOF
30284/* confdefs.h.  */
30285_ACEOF
30286cat confdefs.h >>conftest.$ac_ext
30287cat >>conftest.$ac_ext <<_ACEOF
30288/* end confdefs.h.  */
30289#include <stddef.h>
30290#include <limits.h>
30291int
30292main ()
30293{
30294static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30295test_array [0] = 0
30296
30297  ;
30298  return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext
30302if { (ac_try="$ac_compile"
30303case "(($ac_try" in
30304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305  *) ac_try_echo=$ac_try;;
30306esac
30307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308  (eval "$ac_compile") 2>conftest.er1
30309  ac_status=$?
30310  grep -v '^ *+' conftest.er1 >conftest.err
30311  rm -f conftest.er1
30312  cat conftest.err >&5
30313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314  (exit $ac_status); } &&
30315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316  { (case "(($ac_try" in
30317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318  *) ac_try_echo=$ac_try;;
30319esac
30320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321  (eval "$ac_try") 2>&5
30322  ac_status=$?
30323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324  (exit $ac_status); }; } &&
30325	 { ac_try='test -s conftest.$ac_objext'
30326  { (case "(($ac_try" in
30327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328  *) ac_try_echo=$ac_try;;
30329esac
30330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331  (eval "$ac_try") 2>&5
30332  ac_status=$?
30333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334  (exit $ac_status); }; }; then
30335  ac_hi=$ac_mid
30336else
30337  echo "$as_me: failed program was:" >&5
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
30340	ac_lo=`expr '(' $ac_mid ')' + 1`
30341fi
30342
30343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30344done
30345case $ac_lo in
30346?*) result=$ac_lo;;
30347'') result=unknown ;;
30348esac
30349else
30350  cat >conftest.$ac_ext <<_ACEOF
30351/* confdefs.h.  */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h.  */
30356#include <stddef.h>
30357#include <limits.h>
30358static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30359static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30360#include <stdio.h>
30361#include <stdlib.h>
30362int
30363main ()
30364{
30365
30366  FILE *f = fopen ("conftest.val", "w");
30367  if (! f)
30368    return 1;
30369  if ((sizeof ($gltype) * CHAR_BIT) < 0)
30370    {
30371      long int i = longval ();
30372      if (i != (sizeof ($gltype) * CHAR_BIT))
30373	return 1;
30374      fprintf (f, "%ld\n", i);
30375    }
30376  else
30377    {
30378      unsigned long int i = ulongval ();
30379      if (i != (sizeof ($gltype) * CHAR_BIT))
30380	return 1;
30381      fprintf (f, "%lu\n", i);
30382    }
30383  return ferror (f) || fclose (f) != 0;
30384
30385  ;
30386  return 0;
30387}
30388_ACEOF
30389rm -f conftest$ac_exeext
30390if { (ac_try="$ac_link"
30391case "(($ac_try" in
30392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393  *) ac_try_echo=$ac_try;;
30394esac
30395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30396  (eval "$ac_link") 2>&5
30397  ac_status=$?
30398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30400  { (case "(($ac_try" in
30401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402  *) ac_try_echo=$ac_try;;
30403esac
30404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405  (eval "$ac_try") 2>&5
30406  ac_status=$?
30407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408  (exit $ac_status); }; }; then
30409  result=`cat conftest.val`
30410else
30411  echo "$as_me: program exited with status $ac_status" >&5
30412echo "$as_me: failed program was:" >&5
30413sed 's/^/| /' conftest.$ac_ext >&5
30414
30415( exit $ac_status )
30416result=unknown
30417fi
30418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30419fi
30420rm -f conftest.val
30421         eval gl_cv_bitsizeof_${gltype}=\$result
30422
30423fi
30424ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
30425	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30426echo "${ECHO_T}$ac_res" >&6; }
30427      eval result=\$gl_cv_bitsizeof_${gltype}
30428    else
30429                                                result=0
30430    fi
30431    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30432    cat >>confdefs.h <<_ACEOF
30433#define BITSIZEOF_${GLTYPE} $result
30434_ACEOF
30435
30436    eval BITSIZEOF_${GLTYPE}=\$result
30437  done
30438
30439
30440
30441  cat >conftest.$ac_ext <<_ACEOF
30442/* confdefs.h.  */
30443_ACEOF
30444cat confdefs.h >>conftest.$ac_ext
30445cat >>conftest.$ac_ext <<_ACEOF
30446/* end confdefs.h.  */
30447#include <stddef.h>
30448    extern ptrdiff_t foo;
30449    extern long foo;
30450int
30451main ()
30452{
30453
30454  ;
30455  return 0;
30456}
30457_ACEOF
30458rm -f conftest.$ac_objext
30459if { (ac_try="$ac_compile"
30460case "(($ac_try" in
30461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462  *) ac_try_echo=$ac_try;;
30463esac
30464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465  (eval "$ac_compile") 2>conftest.er1
30466  ac_status=$?
30467  grep -v '^ *+' conftest.er1 >conftest.err
30468  rm -f conftest.er1
30469  cat conftest.err >&5
30470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471  (exit $ac_status); } &&
30472	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30473  { (case "(($ac_try" in
30474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475  *) ac_try_echo=$ac_try;;
30476esac
30477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478  (eval "$ac_try") 2>&5
30479  ac_status=$?
30480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481  (exit $ac_status); }; } &&
30482	 { ac_try='test -s conftest.$ac_objext'
30483  { (case "(($ac_try" in
30484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30485  *) ac_try_echo=$ac_try;;
30486esac
30487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30488  (eval "$ac_try") 2>&5
30489  ac_status=$?
30490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491  (exit $ac_status); }; }; then
30492  SAME_TYPE_PTRDIFF_T_LONG=1
30493else
30494  echo "$as_me: failed program was:" >&5
30495sed 's/^/| /' conftest.$ac_ext >&5
30496
30497	SAME_TYPE_PTRDIFF_T_LONG=0
30498fi
30499
30500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30501
30502
30503
30504  cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h.  */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h.  */
30510#include <stddef.h>
30511    extern size_t foo;
30512    extern unsigned long foo;
30513int
30514main ()
30515{
30516
30517  ;
30518  return 0;
30519}
30520_ACEOF
30521rm -f conftest.$ac_objext
30522if { (ac_try="$ac_compile"
30523case "(($ac_try" in
30524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525  *) ac_try_echo=$ac_try;;
30526esac
30527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528  (eval "$ac_compile") 2>conftest.er1
30529  ac_status=$?
30530  grep -v '^ *+' conftest.er1 >conftest.err
30531  rm -f conftest.er1
30532  cat conftest.err >&5
30533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534  (exit $ac_status); } &&
30535	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30536  { (case "(($ac_try" in
30537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538  *) ac_try_echo=$ac_try;;
30539esac
30540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541  (eval "$ac_try") 2>&5
30542  ac_status=$?
30543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544  (exit $ac_status); }; } &&
30545	 { ac_try='test -s conftest.$ac_objext'
30546  { (case "(($ac_try" in
30547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548  *) ac_try_echo=$ac_try;;
30549esac
30550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30551  (eval "$ac_try") 2>&5
30552  ac_status=$?
30553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554  (exit $ac_status); }; }; then
30555  SAME_TYPE_SIZE_T_UNSIGNED_LONG=1
30556else
30557  echo "$as_me: failed program was:" >&5
30558sed 's/^/| /' conftest.$ac_ext >&5
30559
30560	SAME_TYPE_SIZE_T_UNSIGNED_LONG=0
30561fi
30562
30563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30564
30565
30566
30567    { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
30568echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
30569if test "${ac_cv_type_sig_atomic_t+set}" = set; then
30570  echo $ECHO_N "(cached) $ECHO_C" >&6
30571else
30572  cat >conftest.$ac_ext <<_ACEOF
30573/* confdefs.h.  */
30574_ACEOF
30575cat confdefs.h >>conftest.$ac_ext
30576cat >>conftest.$ac_ext <<_ACEOF
30577/* end confdefs.h.  */
30578#include <signal.h>
30579
30580typedef sig_atomic_t ac__type_new_;
30581int
30582main ()
30583{
30584if ((ac__type_new_ *) 0)
30585  return 0;
30586if (sizeof (ac__type_new_))
30587  return 0;
30588  ;
30589  return 0;
30590}
30591_ACEOF
30592rm -f conftest.$ac_objext
30593if { (ac_try="$ac_compile"
30594case "(($ac_try" in
30595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596  *) ac_try_echo=$ac_try;;
30597esac
30598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599  (eval "$ac_compile") 2>conftest.er1
30600  ac_status=$?
30601  grep -v '^ *+' conftest.er1 >conftest.err
30602  rm -f conftest.er1
30603  cat conftest.err >&5
30604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605  (exit $ac_status); } &&
30606	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30607  { (case "(($ac_try" in
30608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609  *) ac_try_echo=$ac_try;;
30610esac
30611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612  (eval "$ac_try") 2>&5
30613  ac_status=$?
30614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615  (exit $ac_status); }; } &&
30616	 { ac_try='test -s conftest.$ac_objext'
30617  { (case "(($ac_try" in
30618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619  *) ac_try_echo=$ac_try;;
30620esac
30621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622  (eval "$ac_try") 2>&5
30623  ac_status=$?
30624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625  (exit $ac_status); }; }; then
30626  ac_cv_type_sig_atomic_t=yes
30627else
30628  echo "$as_me: failed program was:" >&5
30629sed 's/^/| /' conftest.$ac_ext >&5
30630
30631	ac_cv_type_sig_atomic_t=no
30632fi
30633
30634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30635fi
30636{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
30637echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
30638if test $ac_cv_type_sig_atomic_t = yes; then
30639
30640cat >>confdefs.h <<_ACEOF
30641#define HAVE_SIG_ATOMIC_T 1
30642_ACEOF
30643
30644
30645fi
30646
30647    gl_cv_type_sig_atomic_t=$ac_cv_type_sig_atomic_t
30648
30649
30650
30651  for gltype in sig_atomic_t ; do
30652    if eval test \$gl_cv_type_${gltype} = yes; then
30653      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
30654echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
30655if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
30656  echo $ECHO_N "(cached) $ECHO_C" >&6
30657else
30658  if test "$cross_compiling" = yes; then
30659  # Depending upon the size, compute the lo and hi bounds.
30660cat >conftest.$ac_ext <<_ACEOF
30661/* confdefs.h.  */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h.  */
30666#include <signal.h>
30667#include <limits.h>
30668int
30669main ()
30670{
30671static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
30672test_array [0] = 0
30673
30674  ;
30675  return 0;
30676}
30677_ACEOF
30678rm -f conftest.$ac_objext
30679if { (ac_try="$ac_compile"
30680case "(($ac_try" in
30681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682  *) ac_try_echo=$ac_try;;
30683esac
30684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685  (eval "$ac_compile") 2>conftest.er1
30686  ac_status=$?
30687  grep -v '^ *+' conftest.er1 >conftest.err
30688  rm -f conftest.er1
30689  cat conftest.err >&5
30690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691  (exit $ac_status); } &&
30692	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30693  { (case "(($ac_try" in
30694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30695  *) ac_try_echo=$ac_try;;
30696esac
30697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30698  (eval "$ac_try") 2>&5
30699  ac_status=$?
30700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701  (exit $ac_status); }; } &&
30702	 { ac_try='test -s conftest.$ac_objext'
30703  { (case "(($ac_try" in
30704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705  *) ac_try_echo=$ac_try;;
30706esac
30707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708  (eval "$ac_try") 2>&5
30709  ac_status=$?
30710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711  (exit $ac_status); }; }; then
30712  ac_lo=0 ac_mid=0
30713  while :; do
30714    cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h.  */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h.  */
30720#include <signal.h>
30721#include <limits.h>
30722int
30723main ()
30724{
30725static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30726test_array [0] = 0
30727
30728  ;
30729  return 0;
30730}
30731_ACEOF
30732rm -f conftest.$ac_objext
30733if { (ac_try="$ac_compile"
30734case "(($ac_try" in
30735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736  *) ac_try_echo=$ac_try;;
30737esac
30738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739  (eval "$ac_compile") 2>conftest.er1
30740  ac_status=$?
30741  grep -v '^ *+' conftest.er1 >conftest.err
30742  rm -f conftest.er1
30743  cat conftest.err >&5
30744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745  (exit $ac_status); } &&
30746	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30747  { (case "(($ac_try" in
30748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749  *) ac_try_echo=$ac_try;;
30750esac
30751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752  (eval "$ac_try") 2>&5
30753  ac_status=$?
30754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755  (exit $ac_status); }; } &&
30756	 { ac_try='test -s conftest.$ac_objext'
30757  { (case "(($ac_try" in
30758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759  *) ac_try_echo=$ac_try;;
30760esac
30761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762  (eval "$ac_try") 2>&5
30763  ac_status=$?
30764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765  (exit $ac_status); }; }; then
30766  ac_hi=$ac_mid; break
30767else
30768  echo "$as_me: failed program was:" >&5
30769sed 's/^/| /' conftest.$ac_ext >&5
30770
30771	ac_lo=`expr $ac_mid + 1`
30772			if test $ac_lo -le $ac_mid; then
30773			  ac_lo= ac_hi=
30774			  break
30775			fi
30776			ac_mid=`expr 2 '*' $ac_mid + 1`
30777fi
30778
30779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30780  done
30781else
30782  echo "$as_me: failed program was:" >&5
30783sed 's/^/| /' conftest.$ac_ext >&5
30784
30785	cat >conftest.$ac_ext <<_ACEOF
30786/* confdefs.h.  */
30787_ACEOF
30788cat confdefs.h >>conftest.$ac_ext
30789cat >>conftest.$ac_ext <<_ACEOF
30790/* end confdefs.h.  */
30791#include <signal.h>
30792#include <limits.h>
30793int
30794main ()
30795{
30796static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
30797test_array [0] = 0
30798
30799  ;
30800  return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext
30804if { (ac_try="$ac_compile"
30805case "(($ac_try" in
30806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807  *) ac_try_echo=$ac_try;;
30808esac
30809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810  (eval "$ac_compile") 2>conftest.er1
30811  ac_status=$?
30812  grep -v '^ *+' conftest.er1 >conftest.err
30813  rm -f conftest.er1
30814  cat conftest.err >&5
30815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816  (exit $ac_status); } &&
30817	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818  { (case "(($ac_try" in
30819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820  *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823  (eval "$ac_try") 2>&5
30824  ac_status=$?
30825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826  (exit $ac_status); }; } &&
30827	 { ac_try='test -s conftest.$ac_objext'
30828  { (case "(($ac_try" in
30829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830  *) ac_try_echo=$ac_try;;
30831esac
30832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833  (eval "$ac_try") 2>&5
30834  ac_status=$?
30835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836  (exit $ac_status); }; }; then
30837  ac_hi=-1 ac_mid=-1
30838  while :; do
30839    cat >conftest.$ac_ext <<_ACEOF
30840/* confdefs.h.  */
30841_ACEOF
30842cat confdefs.h >>conftest.$ac_ext
30843cat >>conftest.$ac_ext <<_ACEOF
30844/* end confdefs.h.  */
30845#include <signal.h>
30846#include <limits.h>
30847int
30848main ()
30849{
30850static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
30851test_array [0] = 0
30852
30853  ;
30854  return 0;
30855}
30856_ACEOF
30857rm -f conftest.$ac_objext
30858if { (ac_try="$ac_compile"
30859case "(($ac_try" in
30860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861  *) ac_try_echo=$ac_try;;
30862esac
30863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864  (eval "$ac_compile") 2>conftest.er1
30865  ac_status=$?
30866  grep -v '^ *+' conftest.er1 >conftest.err
30867  rm -f conftest.er1
30868  cat conftest.err >&5
30869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870  (exit $ac_status); } &&
30871	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30872  { (case "(($ac_try" in
30873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30874  *) ac_try_echo=$ac_try;;
30875esac
30876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30877  (eval "$ac_try") 2>&5
30878  ac_status=$?
30879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880  (exit $ac_status); }; } &&
30881	 { ac_try='test -s conftest.$ac_objext'
30882  { (case "(($ac_try" in
30883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884  *) ac_try_echo=$ac_try;;
30885esac
30886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887  (eval "$ac_try") 2>&5
30888  ac_status=$?
30889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890  (exit $ac_status); }; }; then
30891  ac_lo=$ac_mid; break
30892else
30893  echo "$as_me: failed program was:" >&5
30894sed 's/^/| /' conftest.$ac_ext >&5
30895
30896	ac_hi=`expr '(' $ac_mid ')' - 1`
30897			if test $ac_mid -le $ac_hi; then
30898			  ac_lo= ac_hi=
30899			  break
30900			fi
30901			ac_mid=`expr 2 '*' $ac_mid`
30902fi
30903
30904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30905  done
30906else
30907  echo "$as_me: failed program was:" >&5
30908sed 's/^/| /' conftest.$ac_ext >&5
30909
30910	ac_lo= ac_hi=
30911fi
30912
30913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30914fi
30915
30916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30917# Binary search between lo and hi bounds.
30918while test "x$ac_lo" != "x$ac_hi"; do
30919  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30920  cat >conftest.$ac_ext <<_ACEOF
30921/* confdefs.h.  */
30922_ACEOF
30923cat confdefs.h >>conftest.$ac_ext
30924cat >>conftest.$ac_ext <<_ACEOF
30925/* end confdefs.h.  */
30926#include <signal.h>
30927#include <limits.h>
30928int
30929main ()
30930{
30931static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
30932test_array [0] = 0
30933
30934  ;
30935  return 0;
30936}
30937_ACEOF
30938rm -f conftest.$ac_objext
30939if { (ac_try="$ac_compile"
30940case "(($ac_try" in
30941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30942  *) ac_try_echo=$ac_try;;
30943esac
30944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30945  (eval "$ac_compile") 2>conftest.er1
30946  ac_status=$?
30947  grep -v '^ *+' conftest.er1 >conftest.err
30948  rm -f conftest.er1
30949  cat conftest.err >&5
30950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951  (exit $ac_status); } &&
30952	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30953  { (case "(($ac_try" in
30954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955  *) ac_try_echo=$ac_try;;
30956esac
30957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958  (eval "$ac_try") 2>&5
30959  ac_status=$?
30960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961  (exit $ac_status); }; } &&
30962	 { ac_try='test -s conftest.$ac_objext'
30963  { (case "(($ac_try" in
30964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965  *) ac_try_echo=$ac_try;;
30966esac
30967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968  (eval "$ac_try") 2>&5
30969  ac_status=$?
30970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971  (exit $ac_status); }; }; then
30972  ac_hi=$ac_mid
30973else
30974  echo "$as_me: failed program was:" >&5
30975sed 's/^/| /' conftest.$ac_ext >&5
30976
30977	ac_lo=`expr '(' $ac_mid ')' + 1`
30978fi
30979
30980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30981done
30982case $ac_lo in
30983?*) result=$ac_lo;;
30984'') result=unknown ;;
30985esac
30986else
30987  cat >conftest.$ac_ext <<_ACEOF
30988/* confdefs.h.  */
30989_ACEOF
30990cat confdefs.h >>conftest.$ac_ext
30991cat >>conftest.$ac_ext <<_ACEOF
30992/* end confdefs.h.  */
30993#include <signal.h>
30994#include <limits.h>
30995static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
30996static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
30997#include <stdio.h>
30998#include <stdlib.h>
30999int
31000main ()
31001{
31002
31003  FILE *f = fopen ("conftest.val", "w");
31004  if (! f)
31005    return 1;
31006  if ((sizeof ($gltype) * CHAR_BIT) < 0)
31007    {
31008      long int i = longval ();
31009      if (i != (sizeof ($gltype) * CHAR_BIT))
31010	return 1;
31011      fprintf (f, "%ld\n", i);
31012    }
31013  else
31014    {
31015      unsigned long int i = ulongval ();
31016      if (i != (sizeof ($gltype) * CHAR_BIT))
31017	return 1;
31018      fprintf (f, "%lu\n", i);
31019    }
31020  return ferror (f) || fclose (f) != 0;
31021
31022  ;
31023  return 0;
31024}
31025_ACEOF
31026rm -f conftest$ac_exeext
31027if { (ac_try="$ac_link"
31028case "(($ac_try" in
31029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31030  *) ac_try_echo=$ac_try;;
31031esac
31032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31033  (eval "$ac_link") 2>&5
31034  ac_status=$?
31035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31037  { (case "(($ac_try" in
31038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039  *) ac_try_echo=$ac_try;;
31040esac
31041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042  (eval "$ac_try") 2>&5
31043  ac_status=$?
31044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045  (exit $ac_status); }; }; then
31046  result=`cat conftest.val`
31047else
31048  echo "$as_me: program exited with status $ac_status" >&5
31049echo "$as_me: failed program was:" >&5
31050sed 's/^/| /' conftest.$ac_ext >&5
31051
31052( exit $ac_status )
31053result=unknown
31054fi
31055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31056fi
31057rm -f conftest.val
31058         eval gl_cv_bitsizeof_${gltype}=\$result
31059
31060fi
31061ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
31062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31063echo "${ECHO_T}$ac_res" >&6; }
31064      eval result=\$gl_cv_bitsizeof_${gltype}
31065    else
31066                                                result=0
31067    fi
31068    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31069    cat >>confdefs.h <<_ACEOF
31070#define BITSIZEOF_${GLTYPE} $result
31071_ACEOF
31072
31073    eval BITSIZEOF_${GLTYPE}=\$result
31074  done
31075
31076
31077
31078
31079
31080  for gltype in sig_atomic_t ; do
31081    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
31082echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
31083if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
31084  echo $ECHO_N "(cached) $ECHO_C" >&6
31085else
31086  cat >conftest.$ac_ext <<_ACEOF
31087/* confdefs.h.  */
31088_ACEOF
31089cat confdefs.h >>conftest.$ac_ext
31090cat >>conftest.$ac_ext <<_ACEOF
31091/* end confdefs.h.  */
31092#include <signal.h>
31093            int verify[2 * ((sig_atomic_t) -1 < (sig_atomic_t) 0) - 1];
31094
31095int
31096main ()
31097{
31098
31099  ;
31100  return 0;
31101}
31102_ACEOF
31103rm -f conftest.$ac_objext
31104if { (ac_try="$ac_compile"
31105case "(($ac_try" in
31106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107  *) ac_try_echo=$ac_try;;
31108esac
31109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110  (eval "$ac_compile") 2>conftest.er1
31111  ac_status=$?
31112  grep -v '^ *+' conftest.er1 >conftest.err
31113  rm -f conftest.er1
31114  cat conftest.err >&5
31115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116  (exit $ac_status); } &&
31117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31118  { (case "(($ac_try" in
31119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120  *) ac_try_echo=$ac_try;;
31121esac
31122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123  (eval "$ac_try") 2>&5
31124  ac_status=$?
31125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126  (exit $ac_status); }; } &&
31127	 { ac_try='test -s conftest.$ac_objext'
31128  { (case "(($ac_try" in
31129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130  *) ac_try_echo=$ac_try;;
31131esac
31132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133  (eval "$ac_try") 2>&5
31134  ac_status=$?
31135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136  (exit $ac_status); }; }; then
31137  result=yes
31138else
31139  echo "$as_me: failed program was:" >&5
31140sed 's/^/| /' conftest.$ac_ext >&5
31141
31142	result=no
31143fi
31144
31145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31146       eval gl_cv_type_${gltype}_signed=\$result
31147
31148fi
31149ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
31150	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31151echo "${ECHO_T}$ac_res" >&6; }
31152    eval result=\$gl_cv_type_${gltype}_signed
31153    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31154    if test "$result" = yes; then
31155      cat >>confdefs.h <<_ACEOF
31156#define HAVE_SIGNED_${GLTYPE} 1
31157_ACEOF
31158
31159      eval HAVE_SIGNED_${GLTYPE}=1
31160    else
31161      eval HAVE_SIGNED_${GLTYPE}=0
31162    fi
31163  done
31164
31165
31166    if test $HAVE_SIGNED_SIG_ATOMIC_T = 1; then
31167
31168  cat >conftest.$ac_ext <<_ACEOF
31169/* confdefs.h.  */
31170_ACEOF
31171cat confdefs.h >>conftest.$ac_ext
31172cat >>conftest.$ac_ext <<_ACEOF
31173/* end confdefs.h.  */
31174#include <signal.h>
31175    extern sig_atomic_t foo;
31176    extern long foo;
31177int
31178main ()
31179{
31180
31181  ;
31182  return 0;
31183}
31184_ACEOF
31185rm -f conftest.$ac_objext
31186if { (ac_try="$ac_compile"
31187case "(($ac_try" in
31188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189  *) ac_try_echo=$ac_try;;
31190esac
31191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192  (eval "$ac_compile") 2>conftest.er1
31193  ac_status=$?
31194  grep -v '^ *+' conftest.er1 >conftest.err
31195  rm -f conftest.er1
31196  cat conftest.err >&5
31197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198  (exit $ac_status); } &&
31199	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31200  { (case "(($ac_try" in
31201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202  *) ac_try_echo=$ac_try;;
31203esac
31204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205  (eval "$ac_try") 2>&5
31206  ac_status=$?
31207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208  (exit $ac_status); }; } &&
31209	 { ac_try='test -s conftest.$ac_objext'
31210  { (case "(($ac_try" in
31211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212  *) ac_try_echo=$ac_try;;
31213esac
31214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215  (eval "$ac_try") 2>&5
31216  ac_status=$?
31217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218  (exit $ac_status); }; }; then
31219  SAME_TYPE_SIG_ATOMIC_T_LONG=1
31220else
31221  echo "$as_me: failed program was:" >&5
31222sed 's/^/| /' conftest.$ac_ext >&5
31223
31224	SAME_TYPE_SIG_ATOMIC_T_LONG=0
31225fi
31226
31227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31228
31229
31230    else
31231
31232  cat >conftest.$ac_ext <<_ACEOF
31233/* confdefs.h.  */
31234_ACEOF
31235cat confdefs.h >>conftest.$ac_ext
31236cat >>conftest.$ac_ext <<_ACEOF
31237/* end confdefs.h.  */
31238#include <signal.h>
31239    extern sig_atomic_t foo;
31240    extern unsigned long foo;
31241int
31242main ()
31243{
31244
31245  ;
31246  return 0;
31247}
31248_ACEOF
31249rm -f conftest.$ac_objext
31250if { (ac_try="$ac_compile"
31251case "(($ac_try" in
31252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253  *) ac_try_echo=$ac_try;;
31254esac
31255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256  (eval "$ac_compile") 2>conftest.er1
31257  ac_status=$?
31258  grep -v '^ *+' conftest.er1 >conftest.err
31259  rm -f conftest.er1
31260  cat conftest.err >&5
31261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262  (exit $ac_status); } &&
31263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31264  { (case "(($ac_try" in
31265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266  *) ac_try_echo=$ac_try;;
31267esac
31268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269  (eval "$ac_try") 2>&5
31270  ac_status=$?
31271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272  (exit $ac_status); }; } &&
31273	 { ac_try='test -s conftest.$ac_objext'
31274  { (case "(($ac_try" in
31275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276  *) ac_try_echo=$ac_try;;
31277esac
31278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279  (eval "$ac_try") 2>&5
31280  ac_status=$?
31281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282  (exit $ac_status); }; }; then
31283  SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG=1
31284else
31285  echo "$as_me: failed program was:" >&5
31286sed 's/^/| /' conftest.$ac_ext >&5
31287
31288	SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG=0
31289fi
31290
31291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31292
31293
31294    fi
31295
31296
31297    gl_cv_type_wchar_t=$gt_cv_c_wchar_t
31298
31299
31300
31301  for gltype in wchar_t ; do
31302    if eval test \$gl_cv_type_${gltype} = yes; then
31303      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
31304echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
31305if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
31306  echo $ECHO_N "(cached) $ECHO_C" >&6
31307else
31308  if test "$cross_compiling" = yes; then
31309  # Depending upon the size, compute the lo and hi bounds.
31310cat >conftest.$ac_ext <<_ACEOF
31311/* confdefs.h.  */
31312_ACEOF
31313cat confdefs.h >>conftest.$ac_ext
31314cat >>conftest.$ac_ext <<_ACEOF
31315/* end confdefs.h.  */
31316#include <stddef.h>
31317#include <limits.h>
31318int
31319main ()
31320{
31321static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
31322test_array [0] = 0
31323
31324  ;
31325  return 0;
31326}
31327_ACEOF
31328rm -f conftest.$ac_objext
31329if { (ac_try="$ac_compile"
31330case "(($ac_try" in
31331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332  *) ac_try_echo=$ac_try;;
31333esac
31334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335  (eval "$ac_compile") 2>conftest.er1
31336  ac_status=$?
31337  grep -v '^ *+' conftest.er1 >conftest.err
31338  rm -f conftest.er1
31339  cat conftest.err >&5
31340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341  (exit $ac_status); } &&
31342	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31343  { (case "(($ac_try" in
31344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345  *) ac_try_echo=$ac_try;;
31346esac
31347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348  (eval "$ac_try") 2>&5
31349  ac_status=$?
31350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351  (exit $ac_status); }; } &&
31352	 { ac_try='test -s conftest.$ac_objext'
31353  { (case "(($ac_try" in
31354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355  *) ac_try_echo=$ac_try;;
31356esac
31357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358  (eval "$ac_try") 2>&5
31359  ac_status=$?
31360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361  (exit $ac_status); }; }; then
31362  ac_lo=0 ac_mid=0
31363  while :; do
31364    cat >conftest.$ac_ext <<_ACEOF
31365/* confdefs.h.  */
31366_ACEOF
31367cat confdefs.h >>conftest.$ac_ext
31368cat >>conftest.$ac_ext <<_ACEOF
31369/* end confdefs.h.  */
31370#include <stddef.h>
31371#include <limits.h>
31372int
31373main ()
31374{
31375static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
31376test_array [0] = 0
31377
31378  ;
31379  return 0;
31380}
31381_ACEOF
31382rm -f conftest.$ac_objext
31383if { (ac_try="$ac_compile"
31384case "(($ac_try" in
31385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386  *) ac_try_echo=$ac_try;;
31387esac
31388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389  (eval "$ac_compile") 2>conftest.er1
31390  ac_status=$?
31391  grep -v '^ *+' conftest.er1 >conftest.err
31392  rm -f conftest.er1
31393  cat conftest.err >&5
31394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395  (exit $ac_status); } &&
31396	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31397  { (case "(($ac_try" in
31398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31399  *) ac_try_echo=$ac_try;;
31400esac
31401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31402  (eval "$ac_try") 2>&5
31403  ac_status=$?
31404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405  (exit $ac_status); }; } &&
31406	 { ac_try='test -s conftest.$ac_objext'
31407  { (case "(($ac_try" in
31408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31409  *) ac_try_echo=$ac_try;;
31410esac
31411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31412  (eval "$ac_try") 2>&5
31413  ac_status=$?
31414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415  (exit $ac_status); }; }; then
31416  ac_hi=$ac_mid; break
31417else
31418  echo "$as_me: failed program was:" >&5
31419sed 's/^/| /' conftest.$ac_ext >&5
31420
31421	ac_lo=`expr $ac_mid + 1`
31422			if test $ac_lo -le $ac_mid; then
31423			  ac_lo= ac_hi=
31424			  break
31425			fi
31426			ac_mid=`expr 2 '*' $ac_mid + 1`
31427fi
31428
31429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31430  done
31431else
31432  echo "$as_me: failed program was:" >&5
31433sed 's/^/| /' conftest.$ac_ext >&5
31434
31435	cat >conftest.$ac_ext <<_ACEOF
31436/* confdefs.h.  */
31437_ACEOF
31438cat confdefs.h >>conftest.$ac_ext
31439cat >>conftest.$ac_ext <<_ACEOF
31440/* end confdefs.h.  */
31441#include <stddef.h>
31442#include <limits.h>
31443int
31444main ()
31445{
31446static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
31447test_array [0] = 0
31448
31449  ;
31450  return 0;
31451}
31452_ACEOF
31453rm -f conftest.$ac_objext
31454if { (ac_try="$ac_compile"
31455case "(($ac_try" in
31456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457  *) ac_try_echo=$ac_try;;
31458esac
31459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460  (eval "$ac_compile") 2>conftest.er1
31461  ac_status=$?
31462  grep -v '^ *+' conftest.er1 >conftest.err
31463  rm -f conftest.er1
31464  cat conftest.err >&5
31465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466  (exit $ac_status); } &&
31467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31468  { (case "(($ac_try" in
31469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470  *) ac_try_echo=$ac_try;;
31471esac
31472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473  (eval "$ac_try") 2>&5
31474  ac_status=$?
31475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476  (exit $ac_status); }; } &&
31477	 { ac_try='test -s conftest.$ac_objext'
31478  { (case "(($ac_try" in
31479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480  *) ac_try_echo=$ac_try;;
31481esac
31482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483  (eval "$ac_try") 2>&5
31484  ac_status=$?
31485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486  (exit $ac_status); }; }; then
31487  ac_hi=-1 ac_mid=-1
31488  while :; do
31489    cat >conftest.$ac_ext <<_ACEOF
31490/* confdefs.h.  */
31491_ACEOF
31492cat confdefs.h >>conftest.$ac_ext
31493cat >>conftest.$ac_ext <<_ACEOF
31494/* end confdefs.h.  */
31495#include <stddef.h>
31496#include <limits.h>
31497int
31498main ()
31499{
31500static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
31501test_array [0] = 0
31502
31503  ;
31504  return 0;
31505}
31506_ACEOF
31507rm -f conftest.$ac_objext
31508if { (ac_try="$ac_compile"
31509case "(($ac_try" in
31510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511  *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514  (eval "$ac_compile") 2>conftest.er1
31515  ac_status=$?
31516  grep -v '^ *+' conftest.er1 >conftest.err
31517  rm -f conftest.er1
31518  cat conftest.err >&5
31519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520  (exit $ac_status); } &&
31521	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31522  { (case "(($ac_try" in
31523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524  *) ac_try_echo=$ac_try;;
31525esac
31526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527  (eval "$ac_try") 2>&5
31528  ac_status=$?
31529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530  (exit $ac_status); }; } &&
31531	 { ac_try='test -s conftest.$ac_objext'
31532  { (case "(($ac_try" in
31533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534  *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537  (eval "$ac_try") 2>&5
31538  ac_status=$?
31539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540  (exit $ac_status); }; }; then
31541  ac_lo=$ac_mid; break
31542else
31543  echo "$as_me: failed program was:" >&5
31544sed 's/^/| /' conftest.$ac_ext >&5
31545
31546	ac_hi=`expr '(' $ac_mid ')' - 1`
31547			if test $ac_mid -le $ac_hi; then
31548			  ac_lo= ac_hi=
31549			  break
31550			fi
31551			ac_mid=`expr 2 '*' $ac_mid`
31552fi
31553
31554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555  done
31556else
31557  echo "$as_me: failed program was:" >&5
31558sed 's/^/| /' conftest.$ac_ext >&5
31559
31560	ac_lo= ac_hi=
31561fi
31562
31563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31564fi
31565
31566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31567# Binary search between lo and hi bounds.
31568while test "x$ac_lo" != "x$ac_hi"; do
31569  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31570  cat >conftest.$ac_ext <<_ACEOF
31571/* confdefs.h.  */
31572_ACEOF
31573cat confdefs.h >>conftest.$ac_ext
31574cat >>conftest.$ac_ext <<_ACEOF
31575/* end confdefs.h.  */
31576#include <stddef.h>
31577#include <limits.h>
31578int
31579main ()
31580{
31581static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
31582test_array [0] = 0
31583
31584  ;
31585  return 0;
31586}
31587_ACEOF
31588rm -f conftest.$ac_objext
31589if { (ac_try="$ac_compile"
31590case "(($ac_try" in
31591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592  *) ac_try_echo=$ac_try;;
31593esac
31594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595  (eval "$ac_compile") 2>conftest.er1
31596  ac_status=$?
31597  grep -v '^ *+' conftest.er1 >conftest.err
31598  rm -f conftest.er1
31599  cat conftest.err >&5
31600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601  (exit $ac_status); } &&
31602	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31603  { (case "(($ac_try" in
31604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605  *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608  (eval "$ac_try") 2>&5
31609  ac_status=$?
31610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611  (exit $ac_status); }; } &&
31612	 { ac_try='test -s conftest.$ac_objext'
31613  { (case "(($ac_try" in
31614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615  *) ac_try_echo=$ac_try;;
31616esac
31617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618  (eval "$ac_try") 2>&5
31619  ac_status=$?
31620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621  (exit $ac_status); }; }; then
31622  ac_hi=$ac_mid
31623else
31624  echo "$as_me: failed program was:" >&5
31625sed 's/^/| /' conftest.$ac_ext >&5
31626
31627	ac_lo=`expr '(' $ac_mid ')' + 1`
31628fi
31629
31630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631done
31632case $ac_lo in
31633?*) result=$ac_lo;;
31634'') result=unknown ;;
31635esac
31636else
31637  cat >conftest.$ac_ext <<_ACEOF
31638/* confdefs.h.  */
31639_ACEOF
31640cat confdefs.h >>conftest.$ac_ext
31641cat >>conftest.$ac_ext <<_ACEOF
31642/* end confdefs.h.  */
31643#include <stddef.h>
31644#include <limits.h>
31645static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
31646static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
31647#include <stdio.h>
31648#include <stdlib.h>
31649int
31650main ()
31651{
31652
31653  FILE *f = fopen ("conftest.val", "w");
31654  if (! f)
31655    return 1;
31656  if ((sizeof ($gltype) * CHAR_BIT) < 0)
31657    {
31658      long int i = longval ();
31659      if (i != (sizeof ($gltype) * CHAR_BIT))
31660	return 1;
31661      fprintf (f, "%ld\n", i);
31662    }
31663  else
31664    {
31665      unsigned long int i = ulongval ();
31666      if (i != (sizeof ($gltype) * CHAR_BIT))
31667	return 1;
31668      fprintf (f, "%lu\n", i);
31669    }
31670  return ferror (f) || fclose (f) != 0;
31671
31672  ;
31673  return 0;
31674}
31675_ACEOF
31676rm -f conftest$ac_exeext
31677if { (ac_try="$ac_link"
31678case "(($ac_try" in
31679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31680  *) ac_try_echo=$ac_try;;
31681esac
31682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31683  (eval "$ac_link") 2>&5
31684  ac_status=$?
31685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31687  { (case "(($ac_try" in
31688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689  *) ac_try_echo=$ac_try;;
31690esac
31691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692  (eval "$ac_try") 2>&5
31693  ac_status=$?
31694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695  (exit $ac_status); }; }; then
31696  result=`cat conftest.val`
31697else
31698  echo "$as_me: program exited with status $ac_status" >&5
31699echo "$as_me: failed program was:" >&5
31700sed 's/^/| /' conftest.$ac_ext >&5
31701
31702( exit $ac_status )
31703result=unknown
31704fi
31705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31706fi
31707rm -f conftest.val
31708         eval gl_cv_bitsizeof_${gltype}=\$result
31709
31710fi
31711ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
31712	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31713echo "${ECHO_T}$ac_res" >&6; }
31714      eval result=\$gl_cv_bitsizeof_${gltype}
31715    else
31716                                                result=0
31717    fi
31718    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31719    cat >>confdefs.h <<_ACEOF
31720#define BITSIZEOF_${GLTYPE} $result
31721_ACEOF
31722
31723    eval BITSIZEOF_${GLTYPE}=\$result
31724  done
31725
31726
31727
31728
31729
31730  for gltype in wchar_t ; do
31731    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
31732echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
31733if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
31734  echo $ECHO_N "(cached) $ECHO_C" >&6
31735else
31736  cat >conftest.$ac_ext <<_ACEOF
31737/* confdefs.h.  */
31738_ACEOF
31739cat confdefs.h >>conftest.$ac_ext
31740cat >>conftest.$ac_ext <<_ACEOF
31741/* end confdefs.h.  */
31742#include <stddef.h>
31743            int verify[2 * ((wchar_t) -1 < (wchar_t) 0) - 1];
31744
31745int
31746main ()
31747{
31748
31749  ;
31750  return 0;
31751}
31752_ACEOF
31753rm -f conftest.$ac_objext
31754if { (ac_try="$ac_compile"
31755case "(($ac_try" in
31756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31757  *) ac_try_echo=$ac_try;;
31758esac
31759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31760  (eval "$ac_compile") 2>conftest.er1
31761  ac_status=$?
31762  grep -v '^ *+' conftest.er1 >conftest.err
31763  rm -f conftest.er1
31764  cat conftest.err >&5
31765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766  (exit $ac_status); } &&
31767	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31768  { (case "(($ac_try" in
31769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31770  *) ac_try_echo=$ac_try;;
31771esac
31772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31773  (eval "$ac_try") 2>&5
31774  ac_status=$?
31775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776  (exit $ac_status); }; } &&
31777	 { ac_try='test -s conftest.$ac_objext'
31778  { (case "(($ac_try" in
31779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31780  *) ac_try_echo=$ac_try;;
31781esac
31782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31783  (eval "$ac_try") 2>&5
31784  ac_status=$?
31785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786  (exit $ac_status); }; }; then
31787  result=yes
31788else
31789  echo "$as_me: failed program was:" >&5
31790sed 's/^/| /' conftest.$ac_ext >&5
31791
31792	result=no
31793fi
31794
31795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31796       eval gl_cv_type_${gltype}_signed=\$result
31797
31798fi
31799ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
31800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31801echo "${ECHO_T}$ac_res" >&6; }
31802    eval result=\$gl_cv_type_${gltype}_signed
31803    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
31804    if test "$result" = yes; then
31805      cat >>confdefs.h <<_ACEOF
31806#define HAVE_SIGNED_${GLTYPE} 1
31807_ACEOF
31808
31809      eval HAVE_SIGNED_${GLTYPE}=1
31810    else
31811      eval HAVE_SIGNED_${GLTYPE}=0
31812    fi
31813  done
31814
31815
31816    if test $HAVE_SIGNED_WCHAR_T = 1; then
31817
31818  cat >conftest.$ac_ext <<_ACEOF
31819/* confdefs.h.  */
31820_ACEOF
31821cat confdefs.h >>conftest.$ac_ext
31822cat >>conftest.$ac_ext <<_ACEOF
31823/* end confdefs.h.  */
31824#include <stddef.h>
31825    extern wchar_t foo;
31826    extern long foo;
31827int
31828main ()
31829{
31830
31831  ;
31832  return 0;
31833}
31834_ACEOF
31835rm -f conftest.$ac_objext
31836if { (ac_try="$ac_compile"
31837case "(($ac_try" in
31838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839  *) ac_try_echo=$ac_try;;
31840esac
31841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842  (eval "$ac_compile") 2>conftest.er1
31843  ac_status=$?
31844  grep -v '^ *+' conftest.er1 >conftest.err
31845  rm -f conftest.er1
31846  cat conftest.err >&5
31847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848  (exit $ac_status); } &&
31849	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31850  { (case "(($ac_try" in
31851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852  *) ac_try_echo=$ac_try;;
31853esac
31854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855  (eval "$ac_try") 2>&5
31856  ac_status=$?
31857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858  (exit $ac_status); }; } &&
31859	 { ac_try='test -s conftest.$ac_objext'
31860  { (case "(($ac_try" in
31861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31862  *) ac_try_echo=$ac_try;;
31863esac
31864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31865  (eval "$ac_try") 2>&5
31866  ac_status=$?
31867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868  (exit $ac_status); }; }; then
31869  SAME_TYPE_WCHAR_T_LONG=1
31870else
31871  echo "$as_me: failed program was:" >&5
31872sed 's/^/| /' conftest.$ac_ext >&5
31873
31874	SAME_TYPE_WCHAR_T_LONG=0
31875fi
31876
31877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31878
31879
31880    else
31881
31882  cat >conftest.$ac_ext <<_ACEOF
31883/* confdefs.h.  */
31884_ACEOF
31885cat confdefs.h >>conftest.$ac_ext
31886cat >>conftest.$ac_ext <<_ACEOF
31887/* end confdefs.h.  */
31888#include <stddef.h>
31889    extern wchar_t foo;
31890    extern unsigned long foo;
31891int
31892main ()
31893{
31894
31895  ;
31896  return 0;
31897}
31898_ACEOF
31899rm -f conftest.$ac_objext
31900if { (ac_try="$ac_compile"
31901case "(($ac_try" in
31902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903  *) ac_try_echo=$ac_try;;
31904esac
31905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906  (eval "$ac_compile") 2>conftest.er1
31907  ac_status=$?
31908  grep -v '^ *+' conftest.er1 >conftest.err
31909  rm -f conftest.er1
31910  cat conftest.err >&5
31911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912  (exit $ac_status); } &&
31913	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31914  { (case "(($ac_try" in
31915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916  *) ac_try_echo=$ac_try;;
31917esac
31918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919  (eval "$ac_try") 2>&5
31920  ac_status=$?
31921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922  (exit $ac_status); }; } &&
31923	 { ac_try='test -s conftest.$ac_objext'
31924  { (case "(($ac_try" in
31925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926  *) ac_try_echo=$ac_try;;
31927esac
31928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929  (eval "$ac_try") 2>&5
31930  ac_status=$?
31931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932  (exit $ac_status); }; }; then
31933  SAME_TYPE_WCHAR_T_UNSIGNED_LONG=1
31934else
31935  echo "$as_me: failed program was:" >&5
31936sed 's/^/| /' conftest.$ac_ext >&5
31937
31938	SAME_TYPE_WCHAR_T_UNSIGNED_LONG=0
31939fi
31940
31941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31942
31943
31944    fi
31945
31946                        { echo "$as_me:$LINENO: checking for wint_t" >&5
31947echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
31948if test "${ac_cv_type_wint_t+set}" = set; then
31949  echo $ECHO_N "(cached) $ECHO_C" >&6
31950else
31951  cat >conftest.$ac_ext <<_ACEOF
31952/* confdefs.h.  */
31953_ACEOF
31954cat confdefs.h >>conftest.$ac_ext
31955cat >>conftest.$ac_ext <<_ACEOF
31956/* end confdefs.h.  */
31957#include <stdio.h>
31958#include <time.h>
31959#include <wchar.h>
31960
31961
31962typedef wint_t ac__type_new_;
31963int
31964main ()
31965{
31966if ((ac__type_new_ *) 0)
31967  return 0;
31968if (sizeof (ac__type_new_))
31969  return 0;
31970  ;
31971  return 0;
31972}
31973_ACEOF
31974rm -f conftest.$ac_objext
31975if { (ac_try="$ac_compile"
31976case "(($ac_try" in
31977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978  *) ac_try_echo=$ac_try;;
31979esac
31980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981  (eval "$ac_compile") 2>conftest.er1
31982  ac_status=$?
31983  grep -v '^ *+' conftest.er1 >conftest.err
31984  rm -f conftest.er1
31985  cat conftest.err >&5
31986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987  (exit $ac_status); } &&
31988	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31989  { (case "(($ac_try" in
31990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991  *) ac_try_echo=$ac_try;;
31992esac
31993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994  (eval "$ac_try") 2>&5
31995  ac_status=$?
31996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997  (exit $ac_status); }; } &&
31998	 { ac_try='test -s conftest.$ac_objext'
31999  { (case "(($ac_try" in
32000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001  *) ac_try_echo=$ac_try;;
32002esac
32003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004  (eval "$ac_try") 2>&5
32005  ac_status=$?
32006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007  (exit $ac_status); }; }; then
32008  ac_cv_type_wint_t=yes
32009else
32010  echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
32013	ac_cv_type_wint_t=no
32014fi
32015
32016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32017fi
32018{ echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
32019echo "${ECHO_T}$ac_cv_type_wint_t" >&6; }
32020if test $ac_cv_type_wint_t = yes; then
32021
32022cat >>confdefs.h <<_ACEOF
32023#define HAVE_WINT_T 1
32024_ACEOF
32025
32026
32027fi
32028
32029    gl_cv_type_wint_t=$ac_cv_type_wint_t
32030
32031
32032
32033  for gltype in wint_t ; do
32034    if eval test \$gl_cv_type_${gltype} = yes; then
32035      { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
32036echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
32037if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
32038  echo $ECHO_N "(cached) $ECHO_C" >&6
32039else
32040  if test "$cross_compiling" = yes; then
32041  # Depending upon the size, compute the lo and hi bounds.
32042cat >conftest.$ac_ext <<_ACEOF
32043/* confdefs.h.  */
32044_ACEOF
32045cat confdefs.h >>conftest.$ac_ext
32046cat >>conftest.$ac_ext <<_ACEOF
32047/* end confdefs.h.  */
32048#include <stdio.h>
32049#include <time.h>
32050#include <wchar.h>
32051
32052#include <limits.h>
32053int
32054main ()
32055{
32056static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
32057test_array [0] = 0
32058
32059  ;
32060  return 0;
32061}
32062_ACEOF
32063rm -f conftest.$ac_objext
32064if { (ac_try="$ac_compile"
32065case "(($ac_try" in
32066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067  *) ac_try_echo=$ac_try;;
32068esac
32069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070  (eval "$ac_compile") 2>conftest.er1
32071  ac_status=$?
32072  grep -v '^ *+' conftest.er1 >conftest.err
32073  rm -f conftest.er1
32074  cat conftest.err >&5
32075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076  (exit $ac_status); } &&
32077	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32078  { (case "(($ac_try" in
32079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080  *) ac_try_echo=$ac_try;;
32081esac
32082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083  (eval "$ac_try") 2>&5
32084  ac_status=$?
32085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086  (exit $ac_status); }; } &&
32087	 { ac_try='test -s conftest.$ac_objext'
32088  { (case "(($ac_try" in
32089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32090  *) ac_try_echo=$ac_try;;
32091esac
32092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32093  (eval "$ac_try") 2>&5
32094  ac_status=$?
32095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096  (exit $ac_status); }; }; then
32097  ac_lo=0 ac_mid=0
32098  while :; do
32099    cat >conftest.$ac_ext <<_ACEOF
32100/* confdefs.h.  */
32101_ACEOF
32102cat confdefs.h >>conftest.$ac_ext
32103cat >>conftest.$ac_ext <<_ACEOF
32104/* end confdefs.h.  */
32105#include <stdio.h>
32106#include <time.h>
32107#include <wchar.h>
32108
32109#include <limits.h>
32110int
32111main ()
32112{
32113static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32114test_array [0] = 0
32115
32116  ;
32117  return 0;
32118}
32119_ACEOF
32120rm -f conftest.$ac_objext
32121if { (ac_try="$ac_compile"
32122case "(($ac_try" in
32123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124  *) ac_try_echo=$ac_try;;
32125esac
32126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127  (eval "$ac_compile") 2>conftest.er1
32128  ac_status=$?
32129  grep -v '^ *+' conftest.er1 >conftest.err
32130  rm -f conftest.er1
32131  cat conftest.err >&5
32132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133  (exit $ac_status); } &&
32134	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32135  { (case "(($ac_try" in
32136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137  *) ac_try_echo=$ac_try;;
32138esac
32139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140  (eval "$ac_try") 2>&5
32141  ac_status=$?
32142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143  (exit $ac_status); }; } &&
32144	 { ac_try='test -s conftest.$ac_objext'
32145  { (case "(($ac_try" in
32146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147  *) ac_try_echo=$ac_try;;
32148esac
32149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150  (eval "$ac_try") 2>&5
32151  ac_status=$?
32152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153  (exit $ac_status); }; }; then
32154  ac_hi=$ac_mid; break
32155else
32156  echo "$as_me: failed program was:" >&5
32157sed 's/^/| /' conftest.$ac_ext >&5
32158
32159	ac_lo=`expr $ac_mid + 1`
32160			if test $ac_lo -le $ac_mid; then
32161			  ac_lo= ac_hi=
32162			  break
32163			fi
32164			ac_mid=`expr 2 '*' $ac_mid + 1`
32165fi
32166
32167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32168  done
32169else
32170  echo "$as_me: failed program was:" >&5
32171sed 's/^/| /' conftest.$ac_ext >&5
32172
32173	cat >conftest.$ac_ext <<_ACEOF
32174/* confdefs.h.  */
32175_ACEOF
32176cat confdefs.h >>conftest.$ac_ext
32177cat >>conftest.$ac_ext <<_ACEOF
32178/* end confdefs.h.  */
32179#include <stdio.h>
32180#include <time.h>
32181#include <wchar.h>
32182
32183#include <limits.h>
32184int
32185main ()
32186{
32187static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
32188test_array [0] = 0
32189
32190  ;
32191  return 0;
32192}
32193_ACEOF
32194rm -f conftest.$ac_objext
32195if { (ac_try="$ac_compile"
32196case "(($ac_try" in
32197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198  *) ac_try_echo=$ac_try;;
32199esac
32200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201  (eval "$ac_compile") 2>conftest.er1
32202  ac_status=$?
32203  grep -v '^ *+' conftest.er1 >conftest.err
32204  rm -f conftest.er1
32205  cat conftest.err >&5
32206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207  (exit $ac_status); } &&
32208	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32209  { (case "(($ac_try" in
32210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211  *) ac_try_echo=$ac_try;;
32212esac
32213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214  (eval "$ac_try") 2>&5
32215  ac_status=$?
32216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217  (exit $ac_status); }; } &&
32218	 { ac_try='test -s conftest.$ac_objext'
32219  { (case "(($ac_try" in
32220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221  *) ac_try_echo=$ac_try;;
32222esac
32223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224  (eval "$ac_try") 2>&5
32225  ac_status=$?
32226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227  (exit $ac_status); }; }; then
32228  ac_hi=-1 ac_mid=-1
32229  while :; do
32230    cat >conftest.$ac_ext <<_ACEOF
32231/* confdefs.h.  */
32232_ACEOF
32233cat confdefs.h >>conftest.$ac_ext
32234cat >>conftest.$ac_ext <<_ACEOF
32235/* end confdefs.h.  */
32236#include <stdio.h>
32237#include <time.h>
32238#include <wchar.h>
32239
32240#include <limits.h>
32241int
32242main ()
32243{
32244static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
32245test_array [0] = 0
32246
32247  ;
32248  return 0;
32249}
32250_ACEOF
32251rm -f conftest.$ac_objext
32252if { (ac_try="$ac_compile"
32253case "(($ac_try" in
32254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255  *) ac_try_echo=$ac_try;;
32256esac
32257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258  (eval "$ac_compile") 2>conftest.er1
32259  ac_status=$?
32260  grep -v '^ *+' conftest.er1 >conftest.err
32261  rm -f conftest.er1
32262  cat conftest.err >&5
32263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264  (exit $ac_status); } &&
32265	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32266  { (case "(($ac_try" in
32267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268  *) ac_try_echo=$ac_try;;
32269esac
32270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271  (eval "$ac_try") 2>&5
32272  ac_status=$?
32273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274  (exit $ac_status); }; } &&
32275	 { ac_try='test -s conftest.$ac_objext'
32276  { (case "(($ac_try" in
32277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32278  *) ac_try_echo=$ac_try;;
32279esac
32280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281  (eval "$ac_try") 2>&5
32282  ac_status=$?
32283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284  (exit $ac_status); }; }; then
32285  ac_lo=$ac_mid; break
32286else
32287  echo "$as_me: failed program was:" >&5
32288sed 's/^/| /' conftest.$ac_ext >&5
32289
32290	ac_hi=`expr '(' $ac_mid ')' - 1`
32291			if test $ac_mid -le $ac_hi; then
32292			  ac_lo= ac_hi=
32293			  break
32294			fi
32295			ac_mid=`expr 2 '*' $ac_mid`
32296fi
32297
32298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32299  done
32300else
32301  echo "$as_me: failed program was:" >&5
32302sed 's/^/| /' conftest.$ac_ext >&5
32303
32304	ac_lo= ac_hi=
32305fi
32306
32307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32308fi
32309
32310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311# Binary search between lo and hi bounds.
32312while test "x$ac_lo" != "x$ac_hi"; do
32313  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32314  cat >conftest.$ac_ext <<_ACEOF
32315/* confdefs.h.  */
32316_ACEOF
32317cat confdefs.h >>conftest.$ac_ext
32318cat >>conftest.$ac_ext <<_ACEOF
32319/* end confdefs.h.  */
32320#include <stdio.h>
32321#include <time.h>
32322#include <wchar.h>
32323
32324#include <limits.h>
32325int
32326main ()
32327{
32328static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
32329test_array [0] = 0
32330
32331  ;
32332  return 0;
32333}
32334_ACEOF
32335rm -f conftest.$ac_objext
32336if { (ac_try="$ac_compile"
32337case "(($ac_try" in
32338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339  *) ac_try_echo=$ac_try;;
32340esac
32341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342  (eval "$ac_compile") 2>conftest.er1
32343  ac_status=$?
32344  grep -v '^ *+' conftest.er1 >conftest.err
32345  rm -f conftest.er1
32346  cat conftest.err >&5
32347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348  (exit $ac_status); } &&
32349	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32350  { (case "(($ac_try" in
32351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352  *) ac_try_echo=$ac_try;;
32353esac
32354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355  (eval "$ac_try") 2>&5
32356  ac_status=$?
32357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358  (exit $ac_status); }; } &&
32359	 { ac_try='test -s conftest.$ac_objext'
32360  { (case "(($ac_try" in
32361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362  *) ac_try_echo=$ac_try;;
32363esac
32364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365  (eval "$ac_try") 2>&5
32366  ac_status=$?
32367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368  (exit $ac_status); }; }; then
32369  ac_hi=$ac_mid
32370else
32371  echo "$as_me: failed program was:" >&5
32372sed 's/^/| /' conftest.$ac_ext >&5
32373
32374	ac_lo=`expr '(' $ac_mid ')' + 1`
32375fi
32376
32377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378done
32379case $ac_lo in
32380?*) result=$ac_lo;;
32381'') result=unknown ;;
32382esac
32383else
32384  cat >conftest.$ac_ext <<_ACEOF
32385/* confdefs.h.  */
32386_ACEOF
32387cat confdefs.h >>conftest.$ac_ext
32388cat >>conftest.$ac_ext <<_ACEOF
32389/* end confdefs.h.  */
32390#include <stdio.h>
32391#include <time.h>
32392#include <wchar.h>
32393
32394#include <limits.h>
32395static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
32396static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
32397#include <stdio.h>
32398#include <stdlib.h>
32399int
32400main ()
32401{
32402
32403  FILE *f = fopen ("conftest.val", "w");
32404  if (! f)
32405    return 1;
32406  if ((sizeof ($gltype) * CHAR_BIT) < 0)
32407    {
32408      long int i = longval ();
32409      if (i != (sizeof ($gltype) * CHAR_BIT))
32410	return 1;
32411      fprintf (f, "%ld\n", i);
32412    }
32413  else
32414    {
32415      unsigned long int i = ulongval ();
32416      if (i != (sizeof ($gltype) * CHAR_BIT))
32417	return 1;
32418      fprintf (f, "%lu\n", i);
32419    }
32420  return ferror (f) || fclose (f) != 0;
32421
32422  ;
32423  return 0;
32424}
32425_ACEOF
32426rm -f conftest$ac_exeext
32427if { (ac_try="$ac_link"
32428case "(($ac_try" in
32429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430  *) ac_try_echo=$ac_try;;
32431esac
32432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433  (eval "$ac_link") 2>&5
32434  ac_status=$?
32435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32437  { (case "(($ac_try" in
32438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439  *) ac_try_echo=$ac_try;;
32440esac
32441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442  (eval "$ac_try") 2>&5
32443  ac_status=$?
32444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445  (exit $ac_status); }; }; then
32446  result=`cat conftest.val`
32447else
32448  echo "$as_me: program exited with status $ac_status" >&5
32449echo "$as_me: failed program was:" >&5
32450sed 's/^/| /' conftest.$ac_ext >&5
32451
32452( exit $ac_status )
32453result=unknown
32454fi
32455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32456fi
32457rm -f conftest.val
32458         eval gl_cv_bitsizeof_${gltype}=\$result
32459
32460fi
32461ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
32462	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32463echo "${ECHO_T}$ac_res" >&6; }
32464      eval result=\$gl_cv_bitsizeof_${gltype}
32465    else
32466                                                result=0
32467    fi
32468    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32469    cat >>confdefs.h <<_ACEOF
32470#define BITSIZEOF_${GLTYPE} $result
32471_ACEOF
32472
32473    eval BITSIZEOF_${GLTYPE}=\$result
32474  done
32475
32476
32477
32478
32479
32480  for gltype in wint_t ; do
32481    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
32482echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
32483if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
32484  echo $ECHO_N "(cached) $ECHO_C" >&6
32485else
32486  cat >conftest.$ac_ext <<_ACEOF
32487/* confdefs.h.  */
32488_ACEOF
32489cat confdefs.h >>conftest.$ac_ext
32490cat >>conftest.$ac_ext <<_ACEOF
32491/* end confdefs.h.  */
32492#include <stdio.h>
32493#include <time.h>
32494#include <wchar.h>
32495
32496            int verify[2 * ((wint_t) -1 < (wint_t) 0) - 1];
32497
32498int
32499main ()
32500{
32501
32502  ;
32503  return 0;
32504}
32505_ACEOF
32506rm -f conftest.$ac_objext
32507if { (ac_try="$ac_compile"
32508case "(($ac_try" in
32509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510  *) ac_try_echo=$ac_try;;
32511esac
32512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513  (eval "$ac_compile") 2>conftest.er1
32514  ac_status=$?
32515  grep -v '^ *+' conftest.er1 >conftest.err
32516  rm -f conftest.er1
32517  cat conftest.err >&5
32518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519  (exit $ac_status); } &&
32520	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32521  { (case "(($ac_try" in
32522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32523  *) ac_try_echo=$ac_try;;
32524esac
32525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32526  (eval "$ac_try") 2>&5
32527  ac_status=$?
32528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529  (exit $ac_status); }; } &&
32530	 { ac_try='test -s conftest.$ac_objext'
32531  { (case "(($ac_try" in
32532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32533  *) ac_try_echo=$ac_try;;
32534esac
32535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32536  (eval "$ac_try") 2>&5
32537  ac_status=$?
32538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539  (exit $ac_status); }; }; then
32540  result=yes
32541else
32542  echo "$as_me: failed program was:" >&5
32543sed 's/^/| /' conftest.$ac_ext >&5
32544
32545	result=no
32546fi
32547
32548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32549       eval gl_cv_type_${gltype}_signed=\$result
32550
32551fi
32552ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
32553	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32554echo "${ECHO_T}$ac_res" >&6; }
32555    eval result=\$gl_cv_type_${gltype}_signed
32556    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
32557    if test "$result" = yes; then
32558      cat >>confdefs.h <<_ACEOF
32559#define HAVE_SIGNED_${GLTYPE} 1
32560_ACEOF
32561
32562      eval HAVE_SIGNED_${GLTYPE}=1
32563    else
32564      eval HAVE_SIGNED_${GLTYPE}=0
32565    fi
32566  done
32567
32568
32569    if test $HAVE_SIGNED_WINT_T = 1; then
32570
32571  cat >conftest.$ac_ext <<_ACEOF
32572/* confdefs.h.  */
32573_ACEOF
32574cat confdefs.h >>conftest.$ac_ext
32575cat >>conftest.$ac_ext <<_ACEOF
32576/* end confdefs.h.  */
32577#include <stdio.h>
32578#include <time.h>
32579#include <wchar.h>
32580
32581    extern wint_t foo;
32582    extern long foo;
32583int
32584main ()
32585{
32586
32587  ;
32588  return 0;
32589}
32590_ACEOF
32591rm -f conftest.$ac_objext
32592if { (ac_try="$ac_compile"
32593case "(($ac_try" in
32594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595  *) ac_try_echo=$ac_try;;
32596esac
32597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598  (eval "$ac_compile") 2>conftest.er1
32599  ac_status=$?
32600  grep -v '^ *+' conftest.er1 >conftest.err
32601  rm -f conftest.er1
32602  cat conftest.err >&5
32603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604  (exit $ac_status); } &&
32605	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32606  { (case "(($ac_try" in
32607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608  *) ac_try_echo=$ac_try;;
32609esac
32610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611  (eval "$ac_try") 2>&5
32612  ac_status=$?
32613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614  (exit $ac_status); }; } &&
32615	 { ac_try='test -s conftest.$ac_objext'
32616  { (case "(($ac_try" in
32617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618  *) ac_try_echo=$ac_try;;
32619esac
32620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621  (eval "$ac_try") 2>&5
32622  ac_status=$?
32623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624  (exit $ac_status); }; }; then
32625  SAME_TYPE_WINT_T_LONG=1
32626else
32627  echo "$as_me: failed program was:" >&5
32628sed 's/^/| /' conftest.$ac_ext >&5
32629
32630	SAME_TYPE_WINT_T_LONG=0
32631fi
32632
32633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32634
32635
32636    else
32637
32638  cat >conftest.$ac_ext <<_ACEOF
32639/* confdefs.h.  */
32640_ACEOF
32641cat confdefs.h >>conftest.$ac_ext
32642cat >>conftest.$ac_ext <<_ACEOF
32643/* end confdefs.h.  */
32644#include <stdio.h>
32645#include <time.h>
32646#include <wchar.h>
32647
32648    extern wint_t foo;
32649    extern unsigned long foo;
32650int
32651main ()
32652{
32653
32654  ;
32655  return 0;
32656}
32657_ACEOF
32658rm -f conftest.$ac_objext
32659if { (ac_try="$ac_compile"
32660case "(($ac_try" in
32661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32662  *) ac_try_echo=$ac_try;;
32663esac
32664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32665  (eval "$ac_compile") 2>conftest.er1
32666  ac_status=$?
32667  grep -v '^ *+' conftest.er1 >conftest.err
32668  rm -f conftest.er1
32669  cat conftest.err >&5
32670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671  (exit $ac_status); } &&
32672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32673  { (case "(($ac_try" in
32674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675  *) ac_try_echo=$ac_try;;
32676esac
32677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678  (eval "$ac_try") 2>&5
32679  ac_status=$?
32680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681  (exit $ac_status); }; } &&
32682	 { ac_try='test -s conftest.$ac_objext'
32683  { (case "(($ac_try" in
32684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685  *) ac_try_echo=$ac_try;;
32686esac
32687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688  (eval "$ac_try") 2>&5
32689  ac_status=$?
32690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691  (exit $ac_status); }; }; then
32692  SAME_TYPE_WINT_T_UNSIGNED_LONG=1
32693else
32694  echo "$as_me: failed program was:" >&5
32695sed 's/^/| /' conftest.$ac_ext >&5
32696
32697	SAME_TYPE_WINT_T_UNSIGNED_LONG=0
32698fi
32699
32700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32701
32702
32703    fi
32704
32705    STDINT_H='stdint.h'
32706  fi
32707
32708
32709
32710  { echo "$as_me:$LINENO: checking for wchar_t" >&5
32711echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
32712if test "${gt_cv_c_wchar_t+set}" = set; then
32713  echo $ECHO_N "(cached) $ECHO_C" >&6
32714else
32715  cat >conftest.$ac_ext <<_ACEOF
32716/* confdefs.h.  */
32717_ACEOF
32718cat confdefs.h >>conftest.$ac_ext
32719cat >>conftest.$ac_ext <<_ACEOF
32720/* end confdefs.h.  */
32721#include <stddef.h>
32722       wchar_t foo = (wchar_t)'\0';
32723int
32724main ()
32725{
32726
32727  ;
32728  return 0;
32729}
32730_ACEOF
32731rm -f conftest.$ac_objext
32732if { (ac_try="$ac_compile"
32733case "(($ac_try" in
32734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735  *) ac_try_echo=$ac_try;;
32736esac
32737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738  (eval "$ac_compile") 2>conftest.er1
32739  ac_status=$?
32740  grep -v '^ *+' conftest.er1 >conftest.err
32741  rm -f conftest.er1
32742  cat conftest.err >&5
32743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744  (exit $ac_status); } &&
32745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32746  { (case "(($ac_try" in
32747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748  *) ac_try_echo=$ac_try;;
32749esac
32750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751  (eval "$ac_try") 2>&5
32752  ac_status=$?
32753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754  (exit $ac_status); }; } &&
32755	 { ac_try='test -s conftest.$ac_objext'
32756  { (case "(($ac_try" in
32757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758  *) ac_try_echo=$ac_try;;
32759esac
32760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761  (eval "$ac_try") 2>&5
32762  ac_status=$?
32763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764  (exit $ac_status); }; }; then
32765  gt_cv_c_wchar_t=yes
32766else
32767  echo "$as_me: failed program was:" >&5
32768sed 's/^/| /' conftest.$ac_ext >&5
32769
32770	gt_cv_c_wchar_t=no
32771fi
32772
32773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32774fi
32775{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
32776echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
32777  if test $gt_cv_c_wchar_t = yes; then
32778
32779cat >>confdefs.h <<\_ACEOF
32780#define HAVE_WCHAR_T 1
32781_ACEOF
32782
32783  fi
32784
32785
32786
32787if test "$am_cv_func_iconv" = yes -a -z "$am_cv_proto_iconv_arg1"; then
32788  ICONV_CONST=""
32789else
32790  ICONV_CONST="const"
32791fi
32792
32793
32794if test $gt_cv_c_wchar_t = yes; then
32795  HAVE_WCHAR_T=1
32796else
32797  HAVE_WCHAR_T=0
32798fi
32799
32800
32801
32802
32803
32804
32805
32806for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
32807do
32808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32812  echo $ECHO_N "(cached) $ECHO_C" >&6
32813else
32814  cat >conftest.$ac_ext <<_ACEOF
32815/* confdefs.h.  */
32816_ACEOF
32817cat confdefs.h >>conftest.$ac_ext
32818cat >>conftest.$ac_ext <<_ACEOF
32819/* end confdefs.h.  */
32820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32822#define $ac_func innocuous_$ac_func
32823
32824/* System header to define __stub macros and hopefully few prototypes,
32825    which can conflict with char $ac_func (); below.
32826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32827    <limits.h> exists even on freestanding compilers.  */
32828
32829#ifdef __STDC__
32830# include <limits.h>
32831#else
32832# include <assert.h>
32833#endif
32834
32835#undef $ac_func
32836
32837/* Override any GCC internal prototype to avoid an error.
32838   Use char because int might match the return type of a GCC
32839   builtin and then its argument prototype would still apply.  */
32840#ifdef __cplusplus
32841extern "C"
32842#endif
32843char $ac_func ();
32844/* The GNU C library defines this for functions which it implements
32845    to always fail with ENOSYS.  Some functions are actually named
32846    something starting with __ and the normal name is an alias.  */
32847#if defined __stub_$ac_func || defined __stub___$ac_func
32848choke me
32849#endif
32850
32851int
32852main ()
32853{
32854return $ac_func ();
32855  ;
32856  return 0;
32857}
32858_ACEOF
32859rm -f conftest.$ac_objext conftest$ac_exeext
32860if { (ac_try="$ac_link"
32861case "(($ac_try" in
32862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863  *) ac_try_echo=$ac_try;;
32864esac
32865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866  (eval "$ac_link") 2>conftest.er1
32867  ac_status=$?
32868  grep -v '^ *+' conftest.er1 >conftest.err
32869  rm -f conftest.er1
32870  cat conftest.err >&5
32871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872  (exit $ac_status); } &&
32873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32874  { (case "(($ac_try" in
32875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32876  *) ac_try_echo=$ac_try;;
32877esac
32878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32879  (eval "$ac_try") 2>&5
32880  ac_status=$?
32881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882  (exit $ac_status); }; } &&
32883	 { ac_try='test -s conftest$ac_exeext'
32884  { (case "(($ac_try" in
32885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886  *) ac_try_echo=$ac_try;;
32887esac
32888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889  (eval "$ac_try") 2>&5
32890  ac_status=$?
32891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892  (exit $ac_status); }; }; then
32893  eval "$as_ac_var=yes"
32894else
32895  echo "$as_me: failed program was:" >&5
32896sed 's/^/| /' conftest.$ac_ext >&5
32897
32898	eval "$as_ac_var=no"
32899fi
32900
32901rm -f core conftest.err conftest.$ac_objext \
32902      conftest$ac_exeext conftest.$ac_ext
32903fi
32904ac_res=`eval echo '${'$as_ac_var'}'`
32905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32906echo "${ECHO_T}$ac_res" >&6; }
32907if test `eval echo '${'$as_ac_var'}'` = yes; then
32908  cat >>confdefs.h <<_ACEOF
32909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32910_ACEOF
32911
32912fi
32913done
32914
32915
32916for ac_func in memmove
32917do
32918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32919{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32921if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32922  echo $ECHO_N "(cached) $ECHO_C" >&6
32923else
32924  cat >conftest.$ac_ext <<_ACEOF
32925/* confdefs.h.  */
32926_ACEOF
32927cat confdefs.h >>conftest.$ac_ext
32928cat >>conftest.$ac_ext <<_ACEOF
32929/* end confdefs.h.  */
32930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32931   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32932#define $ac_func innocuous_$ac_func
32933
32934/* System header to define __stub macros and hopefully few prototypes,
32935    which can conflict with char $ac_func (); below.
32936    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32937    <limits.h> exists even on freestanding compilers.  */
32938
32939#ifdef __STDC__
32940# include <limits.h>
32941#else
32942# include <assert.h>
32943#endif
32944
32945#undef $ac_func
32946
32947/* Override any GCC internal prototype to avoid an error.
32948   Use char because int might match the return type of a GCC
32949   builtin and then its argument prototype would still apply.  */
32950#ifdef __cplusplus
32951extern "C"
32952#endif
32953char $ac_func ();
32954/* The GNU C library defines this for functions which it implements
32955    to always fail with ENOSYS.  Some functions are actually named
32956    something starting with __ and the normal name is an alias.  */
32957#if defined __stub_$ac_func || defined __stub___$ac_func
32958choke me
32959#endif
32960
32961int
32962main ()
32963{
32964return $ac_func ();
32965  ;
32966  return 0;
32967}
32968_ACEOF
32969rm -f conftest.$ac_objext conftest$ac_exeext
32970if { (ac_try="$ac_link"
32971case "(($ac_try" in
32972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973  *) ac_try_echo=$ac_try;;
32974esac
32975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32976  (eval "$ac_link") 2>conftest.er1
32977  ac_status=$?
32978  grep -v '^ *+' conftest.er1 >conftest.err
32979  rm -f conftest.er1
32980  cat conftest.err >&5
32981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982  (exit $ac_status); } &&
32983	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32984  { (case "(($ac_try" in
32985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986  *) ac_try_echo=$ac_try;;
32987esac
32988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989  (eval "$ac_try") 2>&5
32990  ac_status=$?
32991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992  (exit $ac_status); }; } &&
32993	 { ac_try='test -s conftest$ac_exeext'
32994  { (case "(($ac_try" in
32995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996  *) ac_try_echo=$ac_try;;
32997esac
32998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999  (eval "$ac_try") 2>&5
33000  ac_status=$?
33001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002  (exit $ac_status); }; }; then
33003  eval "$as_ac_var=yes"
33004else
33005  echo "$as_me: failed program was:" >&5
33006sed 's/^/| /' conftest.$ac_ext >&5
33007
33008	eval "$as_ac_var=no"
33009fi
33010
33011rm -f core conftest.err conftest.$ac_objext \
33012      conftest$ac_exeext conftest.$ac_ext
33013fi
33014ac_res=`eval echo '${'$as_ac_var'}'`
33015	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33016echo "${ECHO_T}$ac_res" >&6; }
33017if test `eval echo '${'$as_ac_var'}'` = yes; then
33018  cat >>confdefs.h <<_ACEOF
33019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33020_ACEOF
33021
33022else
33023  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
33024fi
33025done
33026
33027
33028
33029  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
33030echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
33031if test "${am_cv_langinfo_codeset+set}" = set; then
33032  echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
33034  cat >conftest.$ac_ext <<_ACEOF
33035/* confdefs.h.  */
33036_ACEOF
33037cat confdefs.h >>conftest.$ac_ext
33038cat >>conftest.$ac_ext <<_ACEOF
33039/* end confdefs.h.  */
33040#include <langinfo.h>
33041int
33042main ()
33043{
33044char* cs = nl_langinfo(CODESET);
33045  ;
33046  return 0;
33047}
33048_ACEOF
33049rm -f conftest.$ac_objext conftest$ac_exeext
33050if { (ac_try="$ac_link"
33051case "(($ac_try" in
33052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33053  *) ac_try_echo=$ac_try;;
33054esac
33055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33056  (eval "$ac_link") 2>conftest.er1
33057  ac_status=$?
33058  grep -v '^ *+' conftest.er1 >conftest.err
33059  rm -f conftest.er1
33060  cat conftest.err >&5
33061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062  (exit $ac_status); } &&
33063	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33064  { (case "(($ac_try" in
33065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066  *) ac_try_echo=$ac_try;;
33067esac
33068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069  (eval "$ac_try") 2>&5
33070  ac_status=$?
33071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072  (exit $ac_status); }; } &&
33073	 { ac_try='test -s conftest$ac_exeext'
33074  { (case "(($ac_try" in
33075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33076  *) ac_try_echo=$ac_try;;
33077esac
33078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33079  (eval "$ac_try") 2>&5
33080  ac_status=$?
33081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082  (exit $ac_status); }; }; then
33083  am_cv_langinfo_codeset=yes
33084else
33085  echo "$as_me: failed program was:" >&5
33086sed 's/^/| /' conftest.$ac_ext >&5
33087
33088	am_cv_langinfo_codeset=no
33089fi
33090
33091rm -f core conftest.err conftest.$ac_objext \
33092      conftest$ac_exeext conftest.$ac_ext
33093
33094fi
33095{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
33096echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
33097  if test $am_cv_langinfo_codeset = yes; then
33098
33099cat >>confdefs.h <<\_ACEOF
33100#define HAVE_LANGINFO_CODESET 1
33101_ACEOF
33102
33103  fi
33104
33105
33106
33107
33108
33109for ac_header in wchar.h
33110do
33111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33113  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33116  echo $ECHO_N "(cached) $ECHO_C" >&6
33117fi
33118ac_res=`eval echo '${'$as_ac_Header'}'`
33119	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33120echo "${ECHO_T}$ac_res" >&6; }
33121else
33122  # Is the header compilable?
33123{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33125cat >conftest.$ac_ext <<_ACEOF
33126/* confdefs.h.  */
33127_ACEOF
33128cat confdefs.h >>conftest.$ac_ext
33129cat >>conftest.$ac_ext <<_ACEOF
33130/* end confdefs.h.  */
33131$ac_includes_default
33132#include <$ac_header>
33133_ACEOF
33134rm -f conftest.$ac_objext
33135if { (ac_try="$ac_compile"
33136case "(($ac_try" in
33137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138  *) ac_try_echo=$ac_try;;
33139esac
33140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33141  (eval "$ac_compile") 2>conftest.er1
33142  ac_status=$?
33143  grep -v '^ *+' conftest.er1 >conftest.err
33144  rm -f conftest.er1
33145  cat conftest.err >&5
33146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147  (exit $ac_status); } &&
33148	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33149  { (case "(($ac_try" in
33150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33151  *) ac_try_echo=$ac_try;;
33152esac
33153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33154  (eval "$ac_try") 2>&5
33155  ac_status=$?
33156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157  (exit $ac_status); }; } &&
33158	 { ac_try='test -s conftest.$ac_objext'
33159  { (case "(($ac_try" in
33160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161  *) ac_try_echo=$ac_try;;
33162esac
33163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164  (eval "$ac_try") 2>&5
33165  ac_status=$?
33166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167  (exit $ac_status); }; }; then
33168  ac_header_compiler=yes
33169else
33170  echo "$as_me: failed program was:" >&5
33171sed 's/^/| /' conftest.$ac_ext >&5
33172
33173	ac_header_compiler=no
33174fi
33175
33176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33178echo "${ECHO_T}$ac_header_compiler" >&6; }
33179
33180# Is the header present?
33181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33183cat >conftest.$ac_ext <<_ACEOF
33184/* confdefs.h.  */
33185_ACEOF
33186cat confdefs.h >>conftest.$ac_ext
33187cat >>conftest.$ac_ext <<_ACEOF
33188/* end confdefs.h.  */
33189#include <$ac_header>
33190_ACEOF
33191if { (ac_try="$ac_cpp conftest.$ac_ext"
33192case "(($ac_try" in
33193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194  *) ac_try_echo=$ac_try;;
33195esac
33196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33198  ac_status=$?
33199  grep -v '^ *+' conftest.er1 >conftest.err
33200  rm -f conftest.er1
33201  cat conftest.err >&5
33202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203  (exit $ac_status); } >/dev/null; then
33204  if test -s conftest.err; then
33205    ac_cpp_err=$ac_c_preproc_warn_flag
33206    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33207  else
33208    ac_cpp_err=
33209  fi
33210else
33211  ac_cpp_err=yes
33212fi
33213if test -z "$ac_cpp_err"; then
33214  ac_header_preproc=yes
33215else
33216  echo "$as_me: failed program was:" >&5
33217sed 's/^/| /' conftest.$ac_ext >&5
33218
33219  ac_header_preproc=no
33220fi
33221
33222rm -f conftest.err conftest.$ac_ext
33223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33224echo "${ECHO_T}$ac_header_preproc" >&6; }
33225
33226# So?  What about this header?
33227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33228  yes:no: )
33229    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33233    ac_header_preproc=yes
33234    ;;
33235  no:yes:* )
33236    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33238    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33239echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33240    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33242    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33243echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33246    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33248
33249    ;;
33250esac
33251{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33254  echo $ECHO_N "(cached) $ECHO_C" >&6
33255else
33256  eval "$as_ac_Header=\$ac_header_preproc"
33257fi
33258ac_res=`eval echo '${'$as_ac_Header'}'`
33259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33260echo "${ECHO_T}$ac_res" >&6; }
33261
33262fi
33263if test `eval echo '${'$as_ac_Header'}'` = yes; then
33264  cat >>confdefs.h <<_ACEOF
33265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33266_ACEOF
33267
33268fi
33269
33270done
33271
33272
33273  { echo "$as_me:$LINENO: checking for EILSEQ" >&5
33274echo $ECHO_N "checking for EILSEQ... $ECHO_C" >&6; }
33275if test "${ac_cv_decl_EILSEQ+set}" = set; then
33276  echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
33278
33279    cat >conftest.$ac_ext <<_ACEOF
33280/* confdefs.h.  */
33281_ACEOF
33282cat confdefs.h >>conftest.$ac_ext
33283cat >>conftest.$ac_ext <<_ACEOF
33284/* end confdefs.h.  */
33285
33286#include <errno.h>
33287#ifdef EILSEQ
33288yes
33289#endif
33290
33291_ACEOF
33292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33293  $EGREP "yes" >/dev/null 2>&1; then
33294  have_eilseq=1
33295fi
33296rm -f conftest*
33297
33298    if test -n "$have_eilseq"; then
33299            ac_cv_decl_EILSEQ=yes
33300    else
33301      cat >conftest.$ac_ext <<_ACEOF
33302/* confdefs.h.  */
33303_ACEOF
33304cat confdefs.h >>conftest.$ac_ext
33305cat >>conftest.$ac_ext <<_ACEOF
33306/* end confdefs.h.  */
33307
33308#include <errno.h>
33309#if HAVE_WCHAR_H
33310#include <wchar.h>
33311#endif
33312#ifdef EILSEQ
33313yes
33314#endif
33315
33316_ACEOF
33317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33318  $EGREP "yes" >/dev/null 2>&1; then
33319  have_eilseq=1
33320fi
33321rm -f conftest*
33322
33323      if test -n "$have_eilseq"; then
33324                        if test "$cross_compiling" = yes; then
33325  # Depending upon the size, compute the lo and hi bounds.
33326cat >conftest.$ac_ext <<_ACEOF
33327/* confdefs.h.  */
33328_ACEOF
33329cat confdefs.h >>conftest.$ac_ext
33330cat >>conftest.$ac_ext <<_ACEOF
33331/* end confdefs.h.  */
33332
33333#include <errno.h>
33334#if HAVE_WCHAR_H
33335#include <wchar.h>
33336#endif
33337/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33338#include <stdio.h>
33339#include <stdlib.h>
33340
33341int
33342main ()
33343{
33344static int test_array [1 - 2 * !((EILSEQ) >= 0)];
33345test_array [0] = 0
33346
33347  ;
33348  return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext
33352if { (ac_try="$ac_compile"
33353case "(($ac_try" in
33354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355  *) ac_try_echo=$ac_try;;
33356esac
33357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358  (eval "$ac_compile") 2>conftest.er1
33359  ac_status=$?
33360  grep -v '^ *+' conftest.er1 >conftest.err
33361  rm -f conftest.er1
33362  cat conftest.err >&5
33363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364  (exit $ac_status); } &&
33365	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33366  { (case "(($ac_try" in
33367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33368  *) ac_try_echo=$ac_try;;
33369esac
33370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33371  (eval "$ac_try") 2>&5
33372  ac_status=$?
33373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374  (exit $ac_status); }; } &&
33375	 { ac_try='test -s conftest.$ac_objext'
33376  { (case "(($ac_try" in
33377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33378  *) ac_try_echo=$ac_try;;
33379esac
33380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33381  (eval "$ac_try") 2>&5
33382  ac_status=$?
33383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384  (exit $ac_status); }; }; then
33385  ac_lo=0 ac_mid=0
33386  while :; do
33387    cat >conftest.$ac_ext <<_ACEOF
33388/* confdefs.h.  */
33389_ACEOF
33390cat confdefs.h >>conftest.$ac_ext
33391cat >>conftest.$ac_ext <<_ACEOF
33392/* end confdefs.h.  */
33393
33394#include <errno.h>
33395#if HAVE_WCHAR_H
33396#include <wchar.h>
33397#endif
33398/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33399#include <stdio.h>
33400#include <stdlib.h>
33401
33402int
33403main ()
33404{
33405static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
33406test_array [0] = 0
33407
33408  ;
33409  return 0;
33410}
33411_ACEOF
33412rm -f conftest.$ac_objext
33413if { (ac_try="$ac_compile"
33414case "(($ac_try" in
33415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33416  *) ac_try_echo=$ac_try;;
33417esac
33418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33419  (eval "$ac_compile") 2>conftest.er1
33420  ac_status=$?
33421  grep -v '^ *+' conftest.er1 >conftest.err
33422  rm -f conftest.er1
33423  cat conftest.err >&5
33424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425  (exit $ac_status); } &&
33426	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33427  { (case "(($ac_try" in
33428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429  *) ac_try_echo=$ac_try;;
33430esac
33431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432  (eval "$ac_try") 2>&5
33433  ac_status=$?
33434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435  (exit $ac_status); }; } &&
33436	 { ac_try='test -s conftest.$ac_objext'
33437  { (case "(($ac_try" in
33438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33439  *) ac_try_echo=$ac_try;;
33440esac
33441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33442  (eval "$ac_try") 2>&5
33443  ac_status=$?
33444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445  (exit $ac_status); }; }; then
33446  ac_hi=$ac_mid; break
33447else
33448  echo "$as_me: failed program was:" >&5
33449sed 's/^/| /' conftest.$ac_ext >&5
33450
33451	ac_lo=`expr $ac_mid + 1`
33452			if test $ac_lo -le $ac_mid; then
33453			  ac_lo= ac_hi=
33454			  break
33455			fi
33456			ac_mid=`expr 2 '*' $ac_mid + 1`
33457fi
33458
33459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33460  done
33461else
33462  echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
33464
33465	cat >conftest.$ac_ext <<_ACEOF
33466/* confdefs.h.  */
33467_ACEOF
33468cat confdefs.h >>conftest.$ac_ext
33469cat >>conftest.$ac_ext <<_ACEOF
33470/* end confdefs.h.  */
33471
33472#include <errno.h>
33473#if HAVE_WCHAR_H
33474#include <wchar.h>
33475#endif
33476/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33477#include <stdio.h>
33478#include <stdlib.h>
33479
33480int
33481main ()
33482{
33483static int test_array [1 - 2 * !((EILSEQ) < 0)];
33484test_array [0] = 0
33485
33486  ;
33487  return 0;
33488}
33489_ACEOF
33490rm -f conftest.$ac_objext
33491if { (ac_try="$ac_compile"
33492case "(($ac_try" in
33493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494  *) ac_try_echo=$ac_try;;
33495esac
33496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497  (eval "$ac_compile") 2>conftest.er1
33498  ac_status=$?
33499  grep -v '^ *+' conftest.er1 >conftest.err
33500  rm -f conftest.er1
33501  cat conftest.err >&5
33502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503  (exit $ac_status); } &&
33504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33505  { (case "(($ac_try" in
33506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33507  *) ac_try_echo=$ac_try;;
33508esac
33509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33510  (eval "$ac_try") 2>&5
33511  ac_status=$?
33512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513  (exit $ac_status); }; } &&
33514	 { ac_try='test -s conftest.$ac_objext'
33515  { (case "(($ac_try" in
33516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33517  *) ac_try_echo=$ac_try;;
33518esac
33519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33520  (eval "$ac_try") 2>&5
33521  ac_status=$?
33522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523  (exit $ac_status); }; }; then
33524  ac_hi=-1 ac_mid=-1
33525  while :; do
33526    cat >conftest.$ac_ext <<_ACEOF
33527/* confdefs.h.  */
33528_ACEOF
33529cat confdefs.h >>conftest.$ac_ext
33530cat >>conftest.$ac_ext <<_ACEOF
33531/* end confdefs.h.  */
33532
33533#include <errno.h>
33534#if HAVE_WCHAR_H
33535#include <wchar.h>
33536#endif
33537/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33538#include <stdio.h>
33539#include <stdlib.h>
33540
33541int
33542main ()
33543{
33544static int test_array [1 - 2 * !((EILSEQ) >= $ac_mid)];
33545test_array [0] = 0
33546
33547  ;
33548  return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
33552if { (ac_try="$ac_compile"
33553case "(($ac_try" in
33554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555  *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558  (eval "$ac_compile") 2>conftest.er1
33559  ac_status=$?
33560  grep -v '^ *+' conftest.er1 >conftest.err
33561  rm -f conftest.er1
33562  cat conftest.err >&5
33563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564  (exit $ac_status); } &&
33565	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33566  { (case "(($ac_try" in
33567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568  *) ac_try_echo=$ac_try;;
33569esac
33570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571  (eval "$ac_try") 2>&5
33572  ac_status=$?
33573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574  (exit $ac_status); }; } &&
33575	 { ac_try='test -s conftest.$ac_objext'
33576  { (case "(($ac_try" in
33577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578  *) ac_try_echo=$ac_try;;
33579esac
33580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581  (eval "$ac_try") 2>&5
33582  ac_status=$?
33583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584  (exit $ac_status); }; }; then
33585  ac_lo=$ac_mid; break
33586else
33587  echo "$as_me: failed program was:" >&5
33588sed 's/^/| /' conftest.$ac_ext >&5
33589
33590	ac_hi=`expr '(' $ac_mid ')' - 1`
33591			if test $ac_mid -le $ac_hi; then
33592			  ac_lo= ac_hi=
33593			  break
33594			fi
33595			ac_mid=`expr 2 '*' $ac_mid`
33596fi
33597
33598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33599  done
33600else
33601  echo "$as_me: failed program was:" >&5
33602sed 's/^/| /' conftest.$ac_ext >&5
33603
33604	ac_lo= ac_hi=
33605fi
33606
33607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33608fi
33609
33610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33611# Binary search between lo and hi bounds.
33612while test "x$ac_lo" != "x$ac_hi"; do
33613  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33614  cat >conftest.$ac_ext <<_ACEOF
33615/* confdefs.h.  */
33616_ACEOF
33617cat confdefs.h >>conftest.$ac_ext
33618cat >>conftest.$ac_ext <<_ACEOF
33619/* end confdefs.h.  */
33620
33621#include <errno.h>
33622#if HAVE_WCHAR_H
33623#include <wchar.h>
33624#endif
33625/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33626#include <stdio.h>
33627#include <stdlib.h>
33628
33629int
33630main ()
33631{
33632static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
33633test_array [0] = 0
33634
33635  ;
33636  return 0;
33637}
33638_ACEOF
33639rm -f conftest.$ac_objext
33640if { (ac_try="$ac_compile"
33641case "(($ac_try" in
33642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643  *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646  (eval "$ac_compile") 2>conftest.er1
33647  ac_status=$?
33648  grep -v '^ *+' conftest.er1 >conftest.err
33649  rm -f conftest.er1
33650  cat conftest.err >&5
33651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652  (exit $ac_status); } &&
33653	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33654  { (case "(($ac_try" in
33655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656  *) ac_try_echo=$ac_try;;
33657esac
33658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659  (eval "$ac_try") 2>&5
33660  ac_status=$?
33661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662  (exit $ac_status); }; } &&
33663	 { ac_try='test -s conftest.$ac_objext'
33664  { (case "(($ac_try" in
33665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666  *) ac_try_echo=$ac_try;;
33667esac
33668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669  (eval "$ac_try") 2>&5
33670  ac_status=$?
33671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672  (exit $ac_status); }; }; then
33673  ac_hi=$ac_mid
33674else
33675  echo "$as_me: failed program was:" >&5
33676sed 's/^/| /' conftest.$ac_ext >&5
33677
33678	ac_lo=`expr '(' $ac_mid ')' + 1`
33679fi
33680
33681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682done
33683case $ac_lo in
33684?*) ac_cv_decl_EILSEQ=$ac_lo;;
33685'')  ;;
33686esac
33687else
33688  cat >conftest.$ac_ext <<_ACEOF
33689/* confdefs.h.  */
33690_ACEOF
33691cat confdefs.h >>conftest.$ac_ext
33692cat >>conftest.$ac_ext <<_ACEOF
33693/* end confdefs.h.  */
33694
33695#include <errno.h>
33696#if HAVE_WCHAR_H
33697#include <wchar.h>
33698#endif
33699/* The following two lines are a workaround against an autoconf-2.52 bug.  */
33700#include <stdio.h>
33701#include <stdlib.h>
33702
33703static long int longval () { return EILSEQ; }
33704static unsigned long int ulongval () { return EILSEQ; }
33705#include <stdio.h>
33706#include <stdlib.h>
33707int
33708main ()
33709{
33710
33711  FILE *f = fopen ("conftest.val", "w");
33712  if (! f)
33713    return 1;
33714  if ((EILSEQ) < 0)
33715    {
33716      long int i = longval ();
33717      if (i != (EILSEQ))
33718	return 1;
33719      fprintf (f, "%ld\n", i);
33720    }
33721  else
33722    {
33723      unsigned long int i = ulongval ();
33724      if (i != (EILSEQ))
33725	return 1;
33726      fprintf (f, "%lu\n", i);
33727    }
33728  return ferror (f) || fclose (f) != 0;
33729
33730  ;
33731  return 0;
33732}
33733_ACEOF
33734rm -f conftest$ac_exeext
33735if { (ac_try="$ac_link"
33736case "(($ac_try" in
33737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738  *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741  (eval "$ac_link") 2>&5
33742  ac_status=$?
33743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33745  { (case "(($ac_try" in
33746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33747  *) ac_try_echo=$ac_try;;
33748esac
33749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33750  (eval "$ac_try") 2>&5
33751  ac_status=$?
33752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753  (exit $ac_status); }; }; then
33754  ac_cv_decl_EILSEQ=`cat conftest.val`
33755else
33756  echo "$as_me: program exited with status $ac_status" >&5
33757echo "$as_me: failed program was:" >&5
33758sed 's/^/| /' conftest.$ac_ext >&5
33759
33760fi
33761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33762fi
33763rm -f conftest.val
33764      else
33765                                ac_cv_decl_EILSEQ=ENOENT
33766      fi
33767    fi
33768
33769fi
33770{ echo "$as_me:$LINENO: result: $ac_cv_decl_EILSEQ" >&5
33771echo "${ECHO_T}$ac_cv_decl_EILSEQ" >&6; }
33772  if test "$ac_cv_decl_EILSEQ" != yes; then
33773
33774cat >>confdefs.h <<_ACEOF
33775#define EILSEQ $ac_cv_decl_EILSEQ
33776_ACEOF
33777
33778    EILSEQ="$ac_cv_decl_EILSEQ"
33779
33780  fi
33781
33782
33783{ echo "$as_me:$LINENO: checking byte ordering" >&5
33784echo $ECHO_N "checking byte ordering... $ECHO_C" >&6; }
33785if test "${cl_cv_sys_endian+set}" = set; then
33786  echo $ECHO_N "(cached) $ECHO_C" >&6
33787else
33788
33789if test "$cross_compiling" = yes; then
33790  : # must guess the endianness
33791
33792else
33793  cat >conftest.$ac_ext <<_ACEOF
33794/* confdefs.h.  */
33795_ACEOF
33796cat confdefs.h >>conftest.$ac_ext
33797cat >>conftest.$ac_ext <<_ACEOF
33798/* end confdefs.h.  */
33799int main () {
33800  /* Are we little or big endian?  From Harbison&Steele.  */
33801  union
33802  {
33803    long l;
33804    char c[sizeof (long)];
33805  } u;
33806  u.l = 1;
33807  exit (u.c[0] == 1);
33808}
33809_ACEOF
33810rm -f conftest$ac_exeext
33811if { (ac_try="$ac_link"
33812case "(($ac_try" in
33813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814  *) ac_try_echo=$ac_try;;
33815esac
33816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817  (eval "$ac_link") 2>&5
33818  ac_status=$?
33819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33821  { (case "(($ac_try" in
33822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33823  *) ac_try_echo=$ac_try;;
33824esac
33825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33826  (eval "$ac_try") 2>&5
33827  ac_status=$?
33828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33829  (exit $ac_status); }; }; then
33830  cl_cv_sys_endian="big endian"
33831else
33832  echo "$as_me: program exited with status $ac_status" >&5
33833echo "$as_me: failed program was:" >&5
33834sed 's/^/| /' conftest.$ac_ext >&5
33835
33836( exit $ac_status )
33837cl_cv_sys_endian="little endian"
33838fi
33839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33840fi
33841
33842
33843if test -z "$cl_cv_sys_endian"; then
33844cat >conftest.$ac_ext <<_ACEOF
33845/* confdefs.h.  */
33846_ACEOF
33847cat confdefs.h >>conftest.$ac_ext
33848cat >>conftest.$ac_ext <<_ACEOF
33849/* end confdefs.h.  */
33850#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__)
33851  yes
33852#endif
33853
33854_ACEOF
33855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33856  $EGREP "yes" >/dev/null 2>&1; then
33857  cl_cv_sys_endian="big endian"
33858fi
33859rm -f conftest*
33860
33861fi
33862if test -z "$cl_cv_sys_endian"; then
33863cat >conftest.$ac_ext <<_ACEOF
33864/* confdefs.h.  */
33865_ACEOF
33866cat confdefs.h >>conftest.$ac_ext
33867cat >>conftest.$ac_ext <<_ACEOF
33868/* end confdefs.h.  */
33869#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
33870  yes
33871#endif
33872
33873_ACEOF
33874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33875  $EGREP "yes" >/dev/null 2>&1; then
33876  cl_cv_sys_endian="little endian"
33877fi
33878rm -f conftest*
33879
33880fi
33881if test -z "$cl_cv_sys_endian"; then
33882cl_cv_sys_endian="guessing little endian"
33883fi
33884
33885fi
33886{ echo "$as_me:$LINENO: result: $cl_cv_sys_endian" >&5
33887echo "${ECHO_T}$cl_cv_sys_endian" >&6; }
33888case "$cl_cv_sys_endian" in
33889  *little*)
33890
33891cat >>confdefs.h <<\_ACEOF
33892#define WORDS_LITTLEENDIAN 1
33893_ACEOF
33894 ;;
33895  *big*) ;;
33896esac
33897
33898
33899# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
33900# for constant arguments.  Useless!
33901{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
33902echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
33903if test "${ac_cv_working_alloca_h+set}" = set; then
33904  echo $ECHO_N "(cached) $ECHO_C" >&6
33905else
33906  cat >conftest.$ac_ext <<_ACEOF
33907/* confdefs.h.  */
33908_ACEOF
33909cat confdefs.h >>conftest.$ac_ext
33910cat >>conftest.$ac_ext <<_ACEOF
33911/* end confdefs.h.  */
33912#include <alloca.h>
33913int
33914main ()
33915{
33916char *p = (char *) alloca (2 * sizeof (int));
33917			  if (p) return 0;
33918  ;
33919  return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext conftest$ac_exeext
33923if { (ac_try="$ac_link"
33924case "(($ac_try" in
33925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926  *) ac_try_echo=$ac_try;;
33927esac
33928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929  (eval "$ac_link") 2>conftest.er1
33930  ac_status=$?
33931  grep -v '^ *+' conftest.er1 >conftest.err
33932  rm -f conftest.er1
33933  cat conftest.err >&5
33934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935  (exit $ac_status); } &&
33936	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33937  { (case "(($ac_try" in
33938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939  *) ac_try_echo=$ac_try;;
33940esac
33941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942  (eval "$ac_try") 2>&5
33943  ac_status=$?
33944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945  (exit $ac_status); }; } &&
33946	 { ac_try='test -s conftest$ac_exeext'
33947  { (case "(($ac_try" in
33948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33949  *) ac_try_echo=$ac_try;;
33950esac
33951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33952  (eval "$ac_try") 2>&5
33953  ac_status=$?
33954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955  (exit $ac_status); }; }; then
33956  ac_cv_working_alloca_h=yes
33957else
33958  echo "$as_me: failed program was:" >&5
33959sed 's/^/| /' conftest.$ac_ext >&5
33960
33961	ac_cv_working_alloca_h=no
33962fi
33963
33964rm -f core conftest.err conftest.$ac_objext \
33965      conftest$ac_exeext conftest.$ac_ext
33966fi
33967{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
33968echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
33969if test $ac_cv_working_alloca_h = yes; then
33970
33971cat >>confdefs.h <<\_ACEOF
33972#define HAVE_ALLOCA_H 1
33973_ACEOF
33974
33975fi
33976
33977{ echo "$as_me:$LINENO: checking for alloca" >&5
33978echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
33979if test "${ac_cv_func_alloca_works+set}" = set; then
33980  echo $ECHO_N "(cached) $ECHO_C" >&6
33981else
33982  cat >conftest.$ac_ext <<_ACEOF
33983/* confdefs.h.  */
33984_ACEOF
33985cat confdefs.h >>conftest.$ac_ext
33986cat >>conftest.$ac_ext <<_ACEOF
33987/* end confdefs.h.  */
33988#ifdef __GNUC__
33989# define alloca __builtin_alloca
33990#else
33991# ifdef _MSC_VER
33992#  include <malloc.h>
33993#  define alloca _alloca
33994# else
33995#  if HAVE_ALLOCA_H
33996#   include <alloca.h>
33997#  else
33998#   ifdef _AIX
33999 #pragma alloca
34000#   else
34001#    ifndef alloca /* predefined by HP cc +Olibcalls */
34002char *alloca ();
34003#    endif
34004#   endif
34005#  endif
34006# endif
34007#endif
34008
34009int
34010main ()
34011{
34012char *p = (char *) alloca (1);
34013				    if (p) return 0;
34014  ;
34015  return 0;
34016}
34017_ACEOF
34018rm -f conftest.$ac_objext conftest$ac_exeext
34019if { (ac_try="$ac_link"
34020case "(($ac_try" in
34021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022  *) ac_try_echo=$ac_try;;
34023esac
34024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34025  (eval "$ac_link") 2>conftest.er1
34026  ac_status=$?
34027  grep -v '^ *+' conftest.er1 >conftest.err
34028  rm -f conftest.er1
34029  cat conftest.err >&5
34030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031  (exit $ac_status); } &&
34032	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34033  { (case "(($ac_try" in
34034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34035  *) ac_try_echo=$ac_try;;
34036esac
34037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34038  (eval "$ac_try") 2>&5
34039  ac_status=$?
34040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041  (exit $ac_status); }; } &&
34042	 { ac_try='test -s conftest$ac_exeext'
34043  { (case "(($ac_try" in
34044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045  *) ac_try_echo=$ac_try;;
34046esac
34047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048  (eval "$ac_try") 2>&5
34049  ac_status=$?
34050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051  (exit $ac_status); }; }; then
34052  ac_cv_func_alloca_works=yes
34053else
34054  echo "$as_me: failed program was:" >&5
34055sed 's/^/| /' conftest.$ac_ext >&5
34056
34057	ac_cv_func_alloca_works=no
34058fi
34059
34060rm -f core conftest.err conftest.$ac_objext \
34061      conftest$ac_exeext conftest.$ac_ext
34062fi
34063{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
34064echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
34065
34066if test $ac_cv_func_alloca_works = yes; then
34067
34068cat >>confdefs.h <<\_ACEOF
34069#define HAVE_ALLOCA 1
34070_ACEOF
34071
34072else
34073  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
34074# that cause trouble.  Some versions do not even contain alloca or
34075# contain a buggy version.  If you still want to use their alloca,
34076# use ar to extract alloca.o from them instead of compiling alloca.c.
34077
34078ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
34079
34080cat >>confdefs.h <<\_ACEOF
34081#define C_ALLOCA 1
34082_ACEOF
34083
34084
34085{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
34086echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
34087if test "${ac_cv_os_cray+set}" = set; then
34088  echo $ECHO_N "(cached) $ECHO_C" >&6
34089else
34090  cat >conftest.$ac_ext <<_ACEOF
34091/* confdefs.h.  */
34092_ACEOF
34093cat confdefs.h >>conftest.$ac_ext
34094cat >>conftest.$ac_ext <<_ACEOF
34095/* end confdefs.h.  */
34096#if defined CRAY && ! defined CRAY2
34097webecray
34098#else
34099wenotbecray
34100#endif
34101
34102_ACEOF
34103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34104  $EGREP "webecray" >/dev/null 2>&1; then
34105  ac_cv_os_cray=yes
34106else
34107  ac_cv_os_cray=no
34108fi
34109rm -f conftest*
34110
34111fi
34112{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
34113echo "${ECHO_T}$ac_cv_os_cray" >&6; }
34114if test $ac_cv_os_cray = yes; then
34115  for ac_func in _getb67 GETB67 getb67; do
34116    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34117{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34119if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34120  echo $ECHO_N "(cached) $ECHO_C" >&6
34121else
34122  cat >conftest.$ac_ext <<_ACEOF
34123/* confdefs.h.  */
34124_ACEOF
34125cat confdefs.h >>conftest.$ac_ext
34126cat >>conftest.$ac_ext <<_ACEOF
34127/* end confdefs.h.  */
34128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34129   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34130#define $ac_func innocuous_$ac_func
34131
34132/* System header to define __stub macros and hopefully few prototypes,
34133    which can conflict with char $ac_func (); below.
34134    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34135    <limits.h> exists even on freestanding compilers.  */
34136
34137#ifdef __STDC__
34138# include <limits.h>
34139#else
34140# include <assert.h>
34141#endif
34142
34143#undef $ac_func
34144
34145/* Override any GCC internal prototype to avoid an error.
34146   Use char because int might match the return type of a GCC
34147   builtin and then its argument prototype would still apply.  */
34148#ifdef __cplusplus
34149extern "C"
34150#endif
34151char $ac_func ();
34152/* The GNU C library defines this for functions which it implements
34153    to always fail with ENOSYS.  Some functions are actually named
34154    something starting with __ and the normal name is an alias.  */
34155#if defined __stub_$ac_func || defined __stub___$ac_func
34156choke me
34157#endif
34158
34159int
34160main ()
34161{
34162return $ac_func ();
34163  ;
34164  return 0;
34165}
34166_ACEOF
34167rm -f conftest.$ac_objext conftest$ac_exeext
34168if { (ac_try="$ac_link"
34169case "(($ac_try" in
34170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34171  *) ac_try_echo=$ac_try;;
34172esac
34173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34174  (eval "$ac_link") 2>conftest.er1
34175  ac_status=$?
34176  grep -v '^ *+' conftest.er1 >conftest.err
34177  rm -f conftest.er1
34178  cat conftest.err >&5
34179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180  (exit $ac_status); } &&
34181	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34182  { (case "(($ac_try" in
34183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34184  *) ac_try_echo=$ac_try;;
34185esac
34186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34187  (eval "$ac_try") 2>&5
34188  ac_status=$?
34189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190  (exit $ac_status); }; } &&
34191	 { ac_try='test -s conftest$ac_exeext'
34192  { (case "(($ac_try" in
34193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34194  *) ac_try_echo=$ac_try;;
34195esac
34196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34197  (eval "$ac_try") 2>&5
34198  ac_status=$?
34199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200  (exit $ac_status); }; }; then
34201  eval "$as_ac_var=yes"
34202else
34203  echo "$as_me: failed program was:" >&5
34204sed 's/^/| /' conftest.$ac_ext >&5
34205
34206	eval "$as_ac_var=no"
34207fi
34208
34209rm -f core conftest.err conftest.$ac_objext \
34210      conftest$ac_exeext conftest.$ac_ext
34211fi
34212ac_res=`eval echo '${'$as_ac_var'}'`
34213	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34214echo "${ECHO_T}$ac_res" >&6; }
34215if test `eval echo '${'$as_ac_var'}'` = yes; then
34216
34217cat >>confdefs.h <<_ACEOF
34218#define CRAY_STACKSEG_END $ac_func
34219_ACEOF
34220
34221    break
34222fi
34223
34224  done
34225fi
34226
34227{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
34228echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
34229if test "${ac_cv_c_stack_direction+set}" = set; then
34230  echo $ECHO_N "(cached) $ECHO_C" >&6
34231else
34232  if test "$cross_compiling" = yes; then
34233  ac_cv_c_stack_direction=0
34234else
34235  cat >conftest.$ac_ext <<_ACEOF
34236/* confdefs.h.  */
34237_ACEOF
34238cat confdefs.h >>conftest.$ac_ext
34239cat >>conftest.$ac_ext <<_ACEOF
34240/* end confdefs.h.  */
34241$ac_includes_default
34242int
34243find_stack_direction ()
34244{
34245  static char *addr = 0;
34246  auto char dummy;
34247  if (addr == 0)
34248    {
34249      addr = &dummy;
34250      return find_stack_direction ();
34251    }
34252  else
34253    return (&dummy > addr) ? 1 : -1;
34254}
34255
34256int
34257main ()
34258{
34259  return find_stack_direction () < 0;
34260}
34261_ACEOF
34262rm -f conftest$ac_exeext
34263if { (ac_try="$ac_link"
34264case "(($ac_try" in
34265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34266  *) ac_try_echo=$ac_try;;
34267esac
34268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34269  (eval "$ac_link") 2>&5
34270  ac_status=$?
34271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34273  { (case "(($ac_try" in
34274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34275  *) ac_try_echo=$ac_try;;
34276esac
34277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34278  (eval "$ac_try") 2>&5
34279  ac_status=$?
34280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34281  (exit $ac_status); }; }; then
34282  ac_cv_c_stack_direction=1
34283else
34284  echo "$as_me: program exited with status $ac_status" >&5
34285echo "$as_me: failed program was:" >&5
34286sed 's/^/| /' conftest.$ac_ext >&5
34287
34288( exit $ac_status )
34289ac_cv_c_stack_direction=-1
34290fi
34291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34292fi
34293
34294
34295fi
34296{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
34297echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
34298
34299cat >>confdefs.h <<_ACEOF
34300#define STACK_DIRECTION $ac_cv_c_stack_direction
34301_ACEOF
34302
34303
34304fi
34305
34306
34307
34308for ac_header in stdlib.h
34309do
34310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34312  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34315  echo $ECHO_N "(cached) $ECHO_C" >&6
34316fi
34317ac_res=`eval echo '${'$as_ac_Header'}'`
34318	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34319echo "${ECHO_T}$ac_res" >&6; }
34320else
34321  # Is the header compilable?
34322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34324cat >conftest.$ac_ext <<_ACEOF
34325/* confdefs.h.  */
34326_ACEOF
34327cat confdefs.h >>conftest.$ac_ext
34328cat >>conftest.$ac_ext <<_ACEOF
34329/* end confdefs.h.  */
34330$ac_includes_default
34331#include <$ac_header>
34332_ACEOF
34333rm -f conftest.$ac_objext
34334if { (ac_try="$ac_compile"
34335case "(($ac_try" in
34336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34337  *) ac_try_echo=$ac_try;;
34338esac
34339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34340  (eval "$ac_compile") 2>conftest.er1
34341  ac_status=$?
34342  grep -v '^ *+' conftest.er1 >conftest.err
34343  rm -f conftest.er1
34344  cat conftest.err >&5
34345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346  (exit $ac_status); } &&
34347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34348  { (case "(($ac_try" in
34349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350  *) ac_try_echo=$ac_try;;
34351esac
34352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353  (eval "$ac_try") 2>&5
34354  ac_status=$?
34355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356  (exit $ac_status); }; } &&
34357	 { ac_try='test -s conftest.$ac_objext'
34358  { (case "(($ac_try" in
34359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34360  *) ac_try_echo=$ac_try;;
34361esac
34362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34363  (eval "$ac_try") 2>&5
34364  ac_status=$?
34365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366  (exit $ac_status); }; }; then
34367  ac_header_compiler=yes
34368else
34369  echo "$as_me: failed program was:" >&5
34370sed 's/^/| /' conftest.$ac_ext >&5
34371
34372	ac_header_compiler=no
34373fi
34374
34375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34377echo "${ECHO_T}$ac_header_compiler" >&6; }
34378
34379# Is the header present?
34380{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34382cat >conftest.$ac_ext <<_ACEOF
34383/* confdefs.h.  */
34384_ACEOF
34385cat confdefs.h >>conftest.$ac_ext
34386cat >>conftest.$ac_ext <<_ACEOF
34387/* end confdefs.h.  */
34388#include <$ac_header>
34389_ACEOF
34390if { (ac_try="$ac_cpp conftest.$ac_ext"
34391case "(($ac_try" in
34392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34393  *) ac_try_echo=$ac_try;;
34394esac
34395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34396  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34397  ac_status=$?
34398  grep -v '^ *+' conftest.er1 >conftest.err
34399  rm -f conftest.er1
34400  cat conftest.err >&5
34401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402  (exit $ac_status); } >/dev/null; then
34403  if test -s conftest.err; then
34404    ac_cpp_err=$ac_c_preproc_warn_flag
34405    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34406  else
34407    ac_cpp_err=
34408  fi
34409else
34410  ac_cpp_err=yes
34411fi
34412if test -z "$ac_cpp_err"; then
34413  ac_header_preproc=yes
34414else
34415  echo "$as_me: failed program was:" >&5
34416sed 's/^/| /' conftest.$ac_ext >&5
34417
34418  ac_header_preproc=no
34419fi
34420
34421rm -f conftest.err conftest.$ac_ext
34422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34423echo "${ECHO_T}$ac_header_preproc" >&6; }
34424
34425# So?  What about this header?
34426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34427  yes:no: )
34428    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34430    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34432    ac_header_preproc=yes
34433    ;;
34434  no:yes:* )
34435    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34437    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34438echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34439    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34441    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34442echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34443    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34445    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34447
34448    ;;
34449esac
34450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34453  echo $ECHO_N "(cached) $ECHO_C" >&6
34454else
34455  eval "$as_ac_Header=\$ac_header_preproc"
34456fi
34457ac_res=`eval echo '${'$as_ac_Header'}'`
34458	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34459echo "${ECHO_T}$ac_res" >&6; }
34460
34461fi
34462if test `eval echo '${'$as_ac_Header'}'` = yes; then
34463  cat >>confdefs.h <<_ACEOF
34464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34465_ACEOF
34466
34467fi
34468
34469done
34470
34471
34472
34473
34474for ac_header in string.h
34475do
34476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34478  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34481  echo $ECHO_N "(cached) $ECHO_C" >&6
34482fi
34483ac_res=`eval echo '${'$as_ac_Header'}'`
34484	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34485echo "${ECHO_T}$ac_res" >&6; }
34486else
34487  # Is the header compilable?
34488{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34490cat >conftest.$ac_ext <<_ACEOF
34491/* confdefs.h.  */
34492_ACEOF
34493cat confdefs.h >>conftest.$ac_ext
34494cat >>conftest.$ac_ext <<_ACEOF
34495/* end confdefs.h.  */
34496$ac_includes_default
34497#include <$ac_header>
34498_ACEOF
34499rm -f conftest.$ac_objext
34500if { (ac_try="$ac_compile"
34501case "(($ac_try" in
34502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34503  *) ac_try_echo=$ac_try;;
34504esac
34505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34506  (eval "$ac_compile") 2>conftest.er1
34507  ac_status=$?
34508  grep -v '^ *+' conftest.er1 >conftest.err
34509  rm -f conftest.er1
34510  cat conftest.err >&5
34511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512  (exit $ac_status); } &&
34513	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34514  { (case "(($ac_try" in
34515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34516  *) ac_try_echo=$ac_try;;
34517esac
34518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34519  (eval "$ac_try") 2>&5
34520  ac_status=$?
34521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522  (exit $ac_status); }; } &&
34523	 { ac_try='test -s conftest.$ac_objext'
34524  { (case "(($ac_try" in
34525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526  *) ac_try_echo=$ac_try;;
34527esac
34528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529  (eval "$ac_try") 2>&5
34530  ac_status=$?
34531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532  (exit $ac_status); }; }; then
34533  ac_header_compiler=yes
34534else
34535  echo "$as_me: failed program was:" >&5
34536sed 's/^/| /' conftest.$ac_ext >&5
34537
34538	ac_header_compiler=no
34539fi
34540
34541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34542{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34543echo "${ECHO_T}$ac_header_compiler" >&6; }
34544
34545# Is the header present?
34546{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34548cat >conftest.$ac_ext <<_ACEOF
34549/* confdefs.h.  */
34550_ACEOF
34551cat confdefs.h >>conftest.$ac_ext
34552cat >>conftest.$ac_ext <<_ACEOF
34553/* end confdefs.h.  */
34554#include <$ac_header>
34555_ACEOF
34556if { (ac_try="$ac_cpp conftest.$ac_ext"
34557case "(($ac_try" in
34558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34559  *) ac_try_echo=$ac_try;;
34560esac
34561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34562  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34563  ac_status=$?
34564  grep -v '^ *+' conftest.er1 >conftest.err
34565  rm -f conftest.er1
34566  cat conftest.err >&5
34567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568  (exit $ac_status); } >/dev/null; then
34569  if test -s conftest.err; then
34570    ac_cpp_err=$ac_c_preproc_warn_flag
34571    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34572  else
34573    ac_cpp_err=
34574  fi
34575else
34576  ac_cpp_err=yes
34577fi
34578if test -z "$ac_cpp_err"; then
34579  ac_header_preproc=yes
34580else
34581  echo "$as_me: failed program was:" >&5
34582sed 's/^/| /' conftest.$ac_ext >&5
34583
34584  ac_header_preproc=no
34585fi
34586
34587rm -f conftest.err conftest.$ac_ext
34588{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34589echo "${ECHO_T}$ac_header_preproc" >&6; }
34590
34591# So?  What about this header?
34592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34593  yes:no: )
34594    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34595echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34596    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34597echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34598    ac_header_preproc=yes
34599    ;;
34600  no:yes:* )
34601    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34603    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34604echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34605    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34606echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34607    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34608echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34609    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34610echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34611    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34612echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34613
34614    ;;
34615esac
34616{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34619  echo $ECHO_N "(cached) $ECHO_C" >&6
34620else
34621  eval "$as_ac_Header=\$ac_header_preproc"
34622fi
34623ac_res=`eval echo '${'$as_ac_Header'}'`
34624	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34625echo "${ECHO_T}$ac_res" >&6; }
34626
34627fi
34628if test `eval echo '${'$as_ac_Header'}'` = yes; then
34629  cat >>confdefs.h <<_ACEOF
34630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34631_ACEOF
34632
34633fi
34634
34635done
34636
34637
34638
34639
34640
34641
34642
34643  if test $ac_cv_func_alloca_works = no; then
34644
34645
34646  :
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656  fi
34657
34658  # Define an additional variable used in the Makefile substitution.
34659
34660  cat >conftest.$ac_ext <<_ACEOF
34661/* confdefs.h.  */
34662_ACEOF
34663cat confdefs.h >>conftest.$ac_ext
34664cat >>conftest.$ac_ext <<_ACEOF
34665/* end confdefs.h.  */
34666
34667#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
34668  Need own alloca
34669#endif
34670
34671_ACEOF
34672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34673  $EGREP "Need own alloca" >/dev/null 2>&1; then
34674  ALLOCA_H=alloca.h
34675else
34676  ALLOCA_H=
34677fi
34678rm -f conftest*
34679
34680
34681
34682
34683
34684for ac_header in stdlib.h
34685do
34686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34688  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34691  echo $ECHO_N "(cached) $ECHO_C" >&6
34692fi
34693ac_res=`eval echo '${'$as_ac_Header'}'`
34694	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34695echo "${ECHO_T}$ac_res" >&6; }
34696else
34697  # Is the header compilable?
34698{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34700cat >conftest.$ac_ext <<_ACEOF
34701/* confdefs.h.  */
34702_ACEOF
34703cat confdefs.h >>conftest.$ac_ext
34704cat >>conftest.$ac_ext <<_ACEOF
34705/* end confdefs.h.  */
34706$ac_includes_default
34707#include <$ac_header>
34708_ACEOF
34709rm -f conftest.$ac_objext
34710if { (ac_try="$ac_compile"
34711case "(($ac_try" in
34712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713  *) ac_try_echo=$ac_try;;
34714esac
34715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716  (eval "$ac_compile") 2>conftest.er1
34717  ac_status=$?
34718  grep -v '^ *+' conftest.er1 >conftest.err
34719  rm -f conftest.er1
34720  cat conftest.err >&5
34721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722  (exit $ac_status); } &&
34723	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34724  { (case "(($ac_try" in
34725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34726  *) ac_try_echo=$ac_try;;
34727esac
34728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34729  (eval "$ac_try") 2>&5
34730  ac_status=$?
34731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732  (exit $ac_status); }; } &&
34733	 { ac_try='test -s conftest.$ac_objext'
34734  { (case "(($ac_try" in
34735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34736  *) ac_try_echo=$ac_try;;
34737esac
34738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739  (eval "$ac_try") 2>&5
34740  ac_status=$?
34741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742  (exit $ac_status); }; }; then
34743  ac_header_compiler=yes
34744else
34745  echo "$as_me: failed program was:" >&5
34746sed 's/^/| /' conftest.$ac_ext >&5
34747
34748	ac_header_compiler=no
34749fi
34750
34751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34753echo "${ECHO_T}$ac_header_compiler" >&6; }
34754
34755# Is the header present?
34756{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34758cat >conftest.$ac_ext <<_ACEOF
34759/* confdefs.h.  */
34760_ACEOF
34761cat confdefs.h >>conftest.$ac_ext
34762cat >>conftest.$ac_ext <<_ACEOF
34763/* end confdefs.h.  */
34764#include <$ac_header>
34765_ACEOF
34766if { (ac_try="$ac_cpp conftest.$ac_ext"
34767case "(($ac_try" in
34768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34769  *) ac_try_echo=$ac_try;;
34770esac
34771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34772  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34773  ac_status=$?
34774  grep -v '^ *+' conftest.er1 >conftest.err
34775  rm -f conftest.er1
34776  cat conftest.err >&5
34777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778  (exit $ac_status); } >/dev/null; then
34779  if test -s conftest.err; then
34780    ac_cpp_err=$ac_c_preproc_warn_flag
34781    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34782  else
34783    ac_cpp_err=
34784  fi
34785else
34786  ac_cpp_err=yes
34787fi
34788if test -z "$ac_cpp_err"; then
34789  ac_header_preproc=yes
34790else
34791  echo "$as_me: failed program was:" >&5
34792sed 's/^/| /' conftest.$ac_ext >&5
34793
34794  ac_header_preproc=no
34795fi
34796
34797rm -f conftest.err conftest.$ac_ext
34798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34799echo "${ECHO_T}$ac_header_preproc" >&6; }
34800
34801# So?  What about this header?
34802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34803  yes:no: )
34804    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34808    ac_header_preproc=yes
34809    ;;
34810  no:yes:* )
34811    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34813    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34814echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34815    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34817    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34818echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34821    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34823
34824    ;;
34825esac
34826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34829  echo $ECHO_N "(cached) $ECHO_C" >&6
34830else
34831  eval "$as_ac_Header=\$ac_header_preproc"
34832fi
34833ac_res=`eval echo '${'$as_ac_Header'}'`
34834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34835echo "${ECHO_T}$ac_res" >&6; }
34836
34837fi
34838if test `eval echo '${'$as_ac_Header'}'` = yes; then
34839  cat >>confdefs.h <<_ACEOF
34840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34841_ACEOF
34842
34843fi
34844
34845done
34846
34847{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
34848echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
34849if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
34850  echo $ECHO_N "(cached) $ECHO_C" >&6
34851else
34852  if test "$cross_compiling" = yes; then
34853  ac_cv_func_malloc_0_nonnull=no
34854else
34855  cat >conftest.$ac_ext <<_ACEOF
34856/* confdefs.h.  */
34857_ACEOF
34858cat confdefs.h >>conftest.$ac_ext
34859cat >>conftest.$ac_ext <<_ACEOF
34860/* end confdefs.h.  */
34861#if STDC_HEADERS || HAVE_STDLIB_H
34862# include <stdlib.h>
34863#else
34864char *malloc ();
34865#endif
34866
34867int
34868main ()
34869{
34870return ! malloc (0);
34871  ;
34872  return 0;
34873}
34874_ACEOF
34875rm -f conftest$ac_exeext
34876if { (ac_try="$ac_link"
34877case "(($ac_try" in
34878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34879  *) ac_try_echo=$ac_try;;
34880esac
34881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34882  (eval "$ac_link") 2>&5
34883  ac_status=$?
34884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34886  { (case "(($ac_try" in
34887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888  *) ac_try_echo=$ac_try;;
34889esac
34890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891  (eval "$ac_try") 2>&5
34892  ac_status=$?
34893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894  (exit $ac_status); }; }; then
34895  ac_cv_func_malloc_0_nonnull=yes
34896else
34897  echo "$as_me: program exited with status $ac_status" >&5
34898echo "$as_me: failed program was:" >&5
34899sed 's/^/| /' conftest.$ac_ext >&5
34900
34901( exit $ac_status )
34902ac_cv_func_malloc_0_nonnull=no
34903fi
34904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34905fi
34906
34907
34908fi
34909{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
34910echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
34911if test $ac_cv_func_malloc_0_nonnull = yes; then
34912  gl_cv_func_malloc_0_nonnull=1
34913else
34914  gl_cv_func_malloc_0_nonnull=0
34915fi
34916
34917
34918
34919cat >>confdefs.h <<_ACEOF
34920#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
34921_ACEOF
34922
34923
34924
34925  { echo "$as_me:$LINENO: checking for long long" >&5
34926echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34927if test "${ac_cv_type_long_long+set}" = set; then
34928  echo $ECHO_N "(cached) $ECHO_C" >&6
34929else
34930  cat >conftest.$ac_ext <<_ACEOF
34931/* confdefs.h.  */
34932_ACEOF
34933cat confdefs.h >>conftest.$ac_ext
34934cat >>conftest.$ac_ext <<_ACEOF
34935/* end confdefs.h.  */
34936long long ll = 1LL; int i = 63;
34937int
34938main ()
34939{
34940long long llmax = (long long) -1;
34941     return ll << i | ll >> i | llmax / ll | llmax % ll;
34942  ;
34943  return 0;
34944}
34945_ACEOF
34946rm -f conftest.$ac_objext conftest$ac_exeext
34947if { (ac_try="$ac_link"
34948case "(($ac_try" in
34949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34950  *) ac_try_echo=$ac_try;;
34951esac
34952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34953  (eval "$ac_link") 2>conftest.er1
34954  ac_status=$?
34955  grep -v '^ *+' conftest.er1 >conftest.err
34956  rm -f conftest.er1
34957  cat conftest.err >&5
34958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959  (exit $ac_status); } &&
34960	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34961  { (case "(($ac_try" in
34962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963  *) ac_try_echo=$ac_try;;
34964esac
34965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966  (eval "$ac_try") 2>&5
34967  ac_status=$?
34968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969  (exit $ac_status); }; } &&
34970	 { ac_try='test -s conftest$ac_exeext'
34971  { (case "(($ac_try" in
34972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34973  *) ac_try_echo=$ac_try;;
34974esac
34975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34976  (eval "$ac_try") 2>&5
34977  ac_status=$?
34978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979  (exit $ac_status); }; }; then
34980  ac_cv_type_long_long=yes
34981else
34982  echo "$as_me: failed program was:" >&5
34983sed 's/^/| /' conftest.$ac_ext >&5
34984
34985	ac_cv_type_long_long=no
34986fi
34987
34988rm -f core conftest.err conftest.$ac_objext \
34989      conftest$ac_exeext conftest.$ac_ext
34990fi
34991{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34992echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34993  if test $ac_cv_type_long_long = yes; then
34994
34995cat >>confdefs.h <<\_ACEOF
34996#define HAVE_LONG_LONG 1
34997_ACEOF
34998
34999  fi
35000
35001
35002  { echo "$as_me:$LINENO: checking for long double" >&5
35003echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
35004if test "${gt_cv_c_long_double+set}" = set; then
35005  echo $ECHO_N "(cached) $ECHO_C" >&6
35006else
35007  if test "$GCC" = yes; then
35008       gt_cv_c_long_double=yes
35009     else
35010       cat >conftest.$ac_ext <<_ACEOF
35011/* confdefs.h.  */
35012_ACEOF
35013cat confdefs.h >>conftest.$ac_ext
35014cat >>conftest.$ac_ext <<_ACEOF
35015/* end confdefs.h.  */
35016
35017         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
35018         long double foo = 0.0;
35019         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
35020         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
35021
35022int
35023main ()
35024{
35025
35026  ;
35027  return 0;
35028}
35029_ACEOF
35030rm -f conftest.$ac_objext
35031if { (ac_try="$ac_compile"
35032case "(($ac_try" in
35033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35034  *) ac_try_echo=$ac_try;;
35035esac
35036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35037  (eval "$ac_compile") 2>conftest.er1
35038  ac_status=$?
35039  grep -v '^ *+' conftest.er1 >conftest.err
35040  rm -f conftest.er1
35041  cat conftest.err >&5
35042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043  (exit $ac_status); } &&
35044	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35045  { (case "(($ac_try" in
35046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047  *) ac_try_echo=$ac_try;;
35048esac
35049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050  (eval "$ac_try") 2>&5
35051  ac_status=$?
35052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053  (exit $ac_status); }; } &&
35054	 { ac_try='test -s conftest.$ac_objext'
35055  { (case "(($ac_try" in
35056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35057  *) ac_try_echo=$ac_try;;
35058esac
35059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35060  (eval "$ac_try") 2>&5
35061  ac_status=$?
35062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063  (exit $ac_status); }; }; then
35064  gt_cv_c_long_double=yes
35065else
35066  echo "$as_me: failed program was:" >&5
35067sed 's/^/| /' conftest.$ac_ext >&5
35068
35069	gt_cv_c_long_double=no
35070fi
35071
35072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35073     fi
35074fi
35075{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
35076echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
35077  if test $gt_cv_c_long_double = yes; then
35078
35079cat >>confdefs.h <<\_ACEOF
35080#define HAVE_LONG_DOUBLE 1
35081_ACEOF
35082
35083  fi
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093for ac_header in sys/param.h
35094do
35095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35097  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35100  echo $ECHO_N "(cached) $ECHO_C" >&6
35101fi
35102ac_res=`eval echo '${'$as_ac_Header'}'`
35103	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35104echo "${ECHO_T}$ac_res" >&6; }
35105else
35106  # Is the header compilable?
35107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35109cat >conftest.$ac_ext <<_ACEOF
35110/* confdefs.h.  */
35111_ACEOF
35112cat confdefs.h >>conftest.$ac_ext
35113cat >>conftest.$ac_ext <<_ACEOF
35114/* end confdefs.h.  */
35115$ac_includes_default
35116#include <$ac_header>
35117_ACEOF
35118rm -f conftest.$ac_objext
35119if { (ac_try="$ac_compile"
35120case "(($ac_try" in
35121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35122  *) ac_try_echo=$ac_try;;
35123esac
35124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35125  (eval "$ac_compile") 2>conftest.er1
35126  ac_status=$?
35127  grep -v '^ *+' conftest.er1 >conftest.err
35128  rm -f conftest.er1
35129  cat conftest.err >&5
35130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35131  (exit $ac_status); } &&
35132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35133  { (case "(($ac_try" in
35134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35135  *) ac_try_echo=$ac_try;;
35136esac
35137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35138  (eval "$ac_try") 2>&5
35139  ac_status=$?
35140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141  (exit $ac_status); }; } &&
35142	 { ac_try='test -s conftest.$ac_objext'
35143  { (case "(($ac_try" in
35144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35145  *) ac_try_echo=$ac_try;;
35146esac
35147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35148  (eval "$ac_try") 2>&5
35149  ac_status=$?
35150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151  (exit $ac_status); }; }; then
35152  ac_header_compiler=yes
35153else
35154  echo "$as_me: failed program was:" >&5
35155sed 's/^/| /' conftest.$ac_ext >&5
35156
35157	ac_header_compiler=no
35158fi
35159
35160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35162echo "${ECHO_T}$ac_header_compiler" >&6; }
35163
35164# Is the header present?
35165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35167cat >conftest.$ac_ext <<_ACEOF
35168/* confdefs.h.  */
35169_ACEOF
35170cat confdefs.h >>conftest.$ac_ext
35171cat >>conftest.$ac_ext <<_ACEOF
35172/* end confdefs.h.  */
35173#include <$ac_header>
35174_ACEOF
35175if { (ac_try="$ac_cpp conftest.$ac_ext"
35176case "(($ac_try" in
35177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35178  *) ac_try_echo=$ac_try;;
35179esac
35180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35181  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35182  ac_status=$?
35183  grep -v '^ *+' conftest.er1 >conftest.err
35184  rm -f conftest.er1
35185  cat conftest.err >&5
35186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187  (exit $ac_status); } >/dev/null; then
35188  if test -s conftest.err; then
35189    ac_cpp_err=$ac_c_preproc_warn_flag
35190    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35191  else
35192    ac_cpp_err=
35193  fi
35194else
35195  ac_cpp_err=yes
35196fi
35197if test -z "$ac_cpp_err"; then
35198  ac_header_preproc=yes
35199else
35200  echo "$as_me: failed program was:" >&5
35201sed 's/^/| /' conftest.$ac_ext >&5
35202
35203  ac_header_preproc=no
35204fi
35205
35206rm -f conftest.err conftest.$ac_ext
35207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35208echo "${ECHO_T}$ac_header_preproc" >&6; }
35209
35210# So?  What about this header?
35211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35212  yes:no: )
35213    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35215    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35217    ac_header_preproc=yes
35218    ;;
35219  no:yes:* )
35220    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35222    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35223echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35224    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35226    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35227echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35228    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35230    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35232
35233    ;;
35234esac
35235{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35238  echo $ECHO_N "(cached) $ECHO_C" >&6
35239else
35240  eval "$as_ac_Header=\$ac_header_preproc"
35241fi
35242ac_res=`eval echo '${'$as_ac_Header'}'`
35243	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35244echo "${ECHO_T}$ac_res" >&6; }
35245
35246fi
35247if test `eval echo '${'$as_ac_Header'}'` = yes; then
35248  cat >>confdefs.h <<_ACEOF
35249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35250_ACEOF
35251
35252fi
35253
35254done
35255
35256
35257
35258
35259for ac_header in unistd.h
35260do
35261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35263  { echo "$as_me:$LINENO: checking for $ac_header" >&5
35264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35266  echo $ECHO_N "(cached) $ECHO_C" >&6
35267fi
35268ac_res=`eval echo '${'$as_ac_Header'}'`
35269	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35270echo "${ECHO_T}$ac_res" >&6; }
35271else
35272  # Is the header compilable?
35273{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35274echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35275cat >conftest.$ac_ext <<_ACEOF
35276/* confdefs.h.  */
35277_ACEOF
35278cat confdefs.h >>conftest.$ac_ext
35279cat >>conftest.$ac_ext <<_ACEOF
35280/* end confdefs.h.  */
35281$ac_includes_default
35282#include <$ac_header>
35283_ACEOF
35284rm -f conftest.$ac_objext
35285if { (ac_try="$ac_compile"
35286case "(($ac_try" in
35287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35288  *) ac_try_echo=$ac_try;;
35289esac
35290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35291  (eval "$ac_compile") 2>conftest.er1
35292  ac_status=$?
35293  grep -v '^ *+' conftest.er1 >conftest.err
35294  rm -f conftest.er1
35295  cat conftest.err >&5
35296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297  (exit $ac_status); } &&
35298	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35299  { (case "(($ac_try" in
35300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35301  *) ac_try_echo=$ac_try;;
35302esac
35303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35304  (eval "$ac_try") 2>&5
35305  ac_status=$?
35306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307  (exit $ac_status); }; } &&
35308	 { ac_try='test -s conftest.$ac_objext'
35309  { (case "(($ac_try" in
35310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35311  *) ac_try_echo=$ac_try;;
35312esac
35313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35314  (eval "$ac_try") 2>&5
35315  ac_status=$?
35316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317  (exit $ac_status); }; }; then
35318  ac_header_compiler=yes
35319else
35320  echo "$as_me: failed program was:" >&5
35321sed 's/^/| /' conftest.$ac_ext >&5
35322
35323	ac_header_compiler=no
35324fi
35325
35326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35327{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35328echo "${ECHO_T}$ac_header_compiler" >&6; }
35329
35330# Is the header present?
35331{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35333cat >conftest.$ac_ext <<_ACEOF
35334/* confdefs.h.  */
35335_ACEOF
35336cat confdefs.h >>conftest.$ac_ext
35337cat >>conftest.$ac_ext <<_ACEOF
35338/* end confdefs.h.  */
35339#include <$ac_header>
35340_ACEOF
35341if { (ac_try="$ac_cpp conftest.$ac_ext"
35342case "(($ac_try" in
35343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344  *) ac_try_echo=$ac_try;;
35345esac
35346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35348  ac_status=$?
35349  grep -v '^ *+' conftest.er1 >conftest.err
35350  rm -f conftest.er1
35351  cat conftest.err >&5
35352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353  (exit $ac_status); } >/dev/null; then
35354  if test -s conftest.err; then
35355    ac_cpp_err=$ac_c_preproc_warn_flag
35356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35357  else
35358    ac_cpp_err=
35359  fi
35360else
35361  ac_cpp_err=yes
35362fi
35363if test -z "$ac_cpp_err"; then
35364  ac_header_preproc=yes
35365else
35366  echo "$as_me: failed program was:" >&5
35367sed 's/^/| /' conftest.$ac_ext >&5
35368
35369  ac_header_preproc=no
35370fi
35371
35372rm -f conftest.err conftest.$ac_ext
35373{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35374echo "${ECHO_T}$ac_header_preproc" >&6; }
35375
35376# So?  What about this header?
35377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35378  yes:no: )
35379    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35383    ac_header_preproc=yes
35384    ;;
35385  no:yes:* )
35386    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35388    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35389echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35390    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35392    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35393echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35394    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35396    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35398
35399    ;;
35400esac
35401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35404  echo $ECHO_N "(cached) $ECHO_C" >&6
35405else
35406  eval "$as_ac_Header=\$ac_header_preproc"
35407fi
35408ac_res=`eval echo '${'$as_ac_Header'}'`
35409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35410echo "${ECHO_T}$ac_res" >&6; }
35411
35412fi
35413if test `eval echo '${'$as_ac_Header'}'` = yes; then
35414  cat >>confdefs.h <<_ACEOF
35415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35416_ACEOF
35417
35418fi
35419
35420done
35421
35422
35423
35424
35425for ac_func in canonicalize_file_name
35426do
35427as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35428{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35429echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35430if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35431  echo $ECHO_N "(cached) $ECHO_C" >&6
35432else
35433  cat >conftest.$ac_ext <<_ACEOF
35434/* confdefs.h.  */
35435_ACEOF
35436cat confdefs.h >>conftest.$ac_ext
35437cat >>conftest.$ac_ext <<_ACEOF
35438/* end confdefs.h.  */
35439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35440   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35441#define $ac_func innocuous_$ac_func
35442
35443/* System header to define __stub macros and hopefully few prototypes,
35444    which can conflict with char $ac_func (); below.
35445    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35446    <limits.h> exists even on freestanding compilers.  */
35447
35448#ifdef __STDC__
35449# include <limits.h>
35450#else
35451# include <assert.h>
35452#endif
35453
35454#undef $ac_func
35455
35456/* Override any GCC internal prototype to avoid an error.
35457   Use char because int might match the return type of a GCC
35458   builtin and then its argument prototype would still apply.  */
35459#ifdef __cplusplus
35460extern "C"
35461#endif
35462char $ac_func ();
35463/* The GNU C library defines this for functions which it implements
35464    to always fail with ENOSYS.  Some functions are actually named
35465    something starting with __ and the normal name is an alias.  */
35466#if defined __stub_$ac_func || defined __stub___$ac_func
35467choke me
35468#endif
35469
35470int
35471main ()
35472{
35473return $ac_func ();
35474  ;
35475  return 0;
35476}
35477_ACEOF
35478rm -f conftest.$ac_objext conftest$ac_exeext
35479if { (ac_try="$ac_link"
35480case "(($ac_try" in
35481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482  *) ac_try_echo=$ac_try;;
35483esac
35484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35485  (eval "$ac_link") 2>conftest.er1
35486  ac_status=$?
35487  grep -v '^ *+' conftest.er1 >conftest.err
35488  rm -f conftest.er1
35489  cat conftest.err >&5
35490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491  (exit $ac_status); } &&
35492	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35493  { (case "(($ac_try" in
35494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495  *) ac_try_echo=$ac_try;;
35496esac
35497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498  (eval "$ac_try") 2>&5
35499  ac_status=$?
35500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501  (exit $ac_status); }; } &&
35502	 { ac_try='test -s conftest$ac_exeext'
35503  { (case "(($ac_try" in
35504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505  *) ac_try_echo=$ac_try;;
35506esac
35507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35508  (eval "$ac_try") 2>&5
35509  ac_status=$?
35510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511  (exit $ac_status); }; }; then
35512  eval "$as_ac_var=yes"
35513else
35514  echo "$as_me: failed program was:" >&5
35515sed 's/^/| /' conftest.$ac_ext >&5
35516
35517	eval "$as_ac_var=no"
35518fi
35519
35520rm -f core conftest.err conftest.$ac_objext \
35521      conftest$ac_exeext conftest.$ac_ext
35522fi
35523ac_res=`eval echo '${'$as_ac_var'}'`
35524	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35525echo "${ECHO_T}$ac_res" >&6; }
35526if test `eval echo '${'$as_ac_var'}'` = yes; then
35527  cat >>confdefs.h <<_ACEOF
35528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35529_ACEOF
35530
35531fi
35532done
35533
35534  if test $ac_cv_func_canonicalize_file_name = no; then
35535    SRCLIBOBJS="$SRCLIBOBJS canonicalize.$ac_objext"
35536
35537cat >>confdefs.h <<\_ACEOF
35538#define realpath rpl_realpath
35539_ACEOF
35540
35541
35542
35543  :
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554for ac_func in getcwd readlink
35555do
35556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35557{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35559if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35560  echo $ECHO_N "(cached) $ECHO_C" >&6
35561else
35562  cat >conftest.$ac_ext <<_ACEOF
35563/* confdefs.h.  */
35564_ACEOF
35565cat confdefs.h >>conftest.$ac_ext
35566cat >>conftest.$ac_ext <<_ACEOF
35567/* end confdefs.h.  */
35568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35569   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35570#define $ac_func innocuous_$ac_func
35571
35572/* System header to define __stub macros and hopefully few prototypes,
35573    which can conflict with char $ac_func (); below.
35574    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35575    <limits.h> exists even on freestanding compilers.  */
35576
35577#ifdef __STDC__
35578# include <limits.h>
35579#else
35580# include <assert.h>
35581#endif
35582
35583#undef $ac_func
35584
35585/* Override any GCC internal prototype to avoid an error.
35586   Use char because int might match the return type of a GCC
35587   builtin and then its argument prototype would still apply.  */
35588#ifdef __cplusplus
35589extern "C"
35590#endif
35591char $ac_func ();
35592/* The GNU C library defines this for functions which it implements
35593    to always fail with ENOSYS.  Some functions are actually named
35594    something starting with __ and the normal name is an alias.  */
35595#if defined __stub_$ac_func || defined __stub___$ac_func
35596choke me
35597#endif
35598
35599int
35600main ()
35601{
35602return $ac_func ();
35603  ;
35604  return 0;
35605}
35606_ACEOF
35607rm -f conftest.$ac_objext conftest$ac_exeext
35608if { (ac_try="$ac_link"
35609case "(($ac_try" in
35610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35611  *) ac_try_echo=$ac_try;;
35612esac
35613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35614  (eval "$ac_link") 2>conftest.er1
35615  ac_status=$?
35616  grep -v '^ *+' conftest.er1 >conftest.err
35617  rm -f conftest.er1
35618  cat conftest.err >&5
35619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620  (exit $ac_status); } &&
35621	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35622  { (case "(($ac_try" in
35623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35624  *) ac_try_echo=$ac_try;;
35625esac
35626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35627  (eval "$ac_try") 2>&5
35628  ac_status=$?
35629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630  (exit $ac_status); }; } &&
35631	 { ac_try='test -s conftest$ac_exeext'
35632  { (case "(($ac_try" in
35633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35634  *) ac_try_echo=$ac_try;;
35635esac
35636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35637  (eval "$ac_try") 2>&5
35638  ac_status=$?
35639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640  (exit $ac_status); }; }; then
35641  eval "$as_ac_var=yes"
35642else
35643  echo "$as_me: failed program was:" >&5
35644sed 's/^/| /' conftest.$ac_ext >&5
35645
35646	eval "$as_ac_var=no"
35647fi
35648
35649rm -f core conftest.err conftest.$ac_objext \
35650      conftest$ac_exeext conftest.$ac_ext
35651fi
35652ac_res=`eval echo '${'$as_ac_var'}'`
35653	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35654echo "${ECHO_T}$ac_res" >&6; }
35655if test `eval echo '${'$as_ac_var'}'` = yes; then
35656  cat >>confdefs.h <<_ACEOF
35657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35658_ACEOF
35659
35660fi
35661done
35662
35663
35664  fi
35665
35666
35667      { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
35668echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
35669if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
35670  echo $ECHO_N "(cached) $ECHO_C" >&6
35671else
35672  cat >conftest.$ac_ext <<_ACEOF
35673/* confdefs.h.  */
35674_ACEOF
35675cat confdefs.h >>conftest.$ac_ext
35676cat >>conftest.$ac_ext <<_ACEOF
35677/* end confdefs.h.  */
35678$ac_includes_default
35679int
35680main ()
35681{
35682#ifndef clearerr_unlocked
35683  char *p = (char *) clearerr_unlocked;
35684  return !p;
35685#endif
35686
35687  ;
35688  return 0;
35689}
35690_ACEOF
35691rm -f conftest.$ac_objext
35692if { (ac_try="$ac_compile"
35693case "(($ac_try" in
35694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35695  *) ac_try_echo=$ac_try;;
35696esac
35697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35698  (eval "$ac_compile") 2>conftest.er1
35699  ac_status=$?
35700  grep -v '^ *+' conftest.er1 >conftest.err
35701  rm -f conftest.er1
35702  cat conftest.err >&5
35703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704  (exit $ac_status); } &&
35705	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35706  { (case "(($ac_try" in
35707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35708  *) ac_try_echo=$ac_try;;
35709esac
35710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35711  (eval "$ac_try") 2>&5
35712  ac_status=$?
35713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714  (exit $ac_status); }; } &&
35715	 { ac_try='test -s conftest.$ac_objext'
35716  { (case "(($ac_try" in
35717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35718  *) ac_try_echo=$ac_try;;
35719esac
35720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35721  (eval "$ac_try") 2>&5
35722  ac_status=$?
35723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724  (exit $ac_status); }; }; then
35725  ac_cv_have_decl_clearerr_unlocked=yes
35726else
35727  echo "$as_me: failed program was:" >&5
35728sed 's/^/| /' conftest.$ac_ext >&5
35729
35730	ac_cv_have_decl_clearerr_unlocked=no
35731fi
35732
35733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35734fi
35735{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
35736echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
35737if test $ac_cv_have_decl_clearerr_unlocked = yes; then
35738
35739cat >>confdefs.h <<_ACEOF
35740#define HAVE_DECL_CLEARERR_UNLOCKED 1
35741_ACEOF
35742
35743
35744else
35745  cat >>confdefs.h <<_ACEOF
35746#define HAVE_DECL_CLEARERR_UNLOCKED 0
35747_ACEOF
35748
35749
35750fi
35751
35752
35753
35754
35755      { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
35756echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
35757if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
35758  echo $ECHO_N "(cached) $ECHO_C" >&6
35759else
35760  cat >conftest.$ac_ext <<_ACEOF
35761/* confdefs.h.  */
35762_ACEOF
35763cat confdefs.h >>conftest.$ac_ext
35764cat >>conftest.$ac_ext <<_ACEOF
35765/* end confdefs.h.  */
35766$ac_includes_default
35767int
35768main ()
35769{
35770#ifndef feof_unlocked
35771  char *p = (char *) feof_unlocked;
35772  return !p;
35773#endif
35774
35775  ;
35776  return 0;
35777}
35778_ACEOF
35779rm -f conftest.$ac_objext
35780if { (ac_try="$ac_compile"
35781case "(($ac_try" in
35782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35783  *) ac_try_echo=$ac_try;;
35784esac
35785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35786  (eval "$ac_compile") 2>conftest.er1
35787  ac_status=$?
35788  grep -v '^ *+' conftest.er1 >conftest.err
35789  rm -f conftest.er1
35790  cat conftest.err >&5
35791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792  (exit $ac_status); } &&
35793	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35794  { (case "(($ac_try" in
35795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35796  *) ac_try_echo=$ac_try;;
35797esac
35798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35799  (eval "$ac_try") 2>&5
35800  ac_status=$?
35801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802  (exit $ac_status); }; } &&
35803	 { ac_try='test -s conftest.$ac_objext'
35804  { (case "(($ac_try" in
35805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35806  *) ac_try_echo=$ac_try;;
35807esac
35808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35809  (eval "$ac_try") 2>&5
35810  ac_status=$?
35811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812  (exit $ac_status); }; }; then
35813  ac_cv_have_decl_feof_unlocked=yes
35814else
35815  echo "$as_me: failed program was:" >&5
35816sed 's/^/| /' conftest.$ac_ext >&5
35817
35818	ac_cv_have_decl_feof_unlocked=no
35819fi
35820
35821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35822fi
35823{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
35824echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
35825if test $ac_cv_have_decl_feof_unlocked = yes; then
35826
35827cat >>confdefs.h <<_ACEOF
35828#define HAVE_DECL_FEOF_UNLOCKED 1
35829_ACEOF
35830
35831
35832else
35833  cat >>confdefs.h <<_ACEOF
35834#define HAVE_DECL_FEOF_UNLOCKED 0
35835_ACEOF
35836
35837
35838fi
35839
35840
35841
35842
35843      { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
35844echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
35845if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
35846  echo $ECHO_N "(cached) $ECHO_C" >&6
35847else
35848  cat >conftest.$ac_ext <<_ACEOF
35849/* confdefs.h.  */
35850_ACEOF
35851cat confdefs.h >>conftest.$ac_ext
35852cat >>conftest.$ac_ext <<_ACEOF
35853/* end confdefs.h.  */
35854$ac_includes_default
35855int
35856main ()
35857{
35858#ifndef ferror_unlocked
35859  char *p = (char *) ferror_unlocked;
35860  return !p;
35861#endif
35862
35863  ;
35864  return 0;
35865}
35866_ACEOF
35867rm -f conftest.$ac_objext
35868if { (ac_try="$ac_compile"
35869case "(($ac_try" in
35870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871  *) ac_try_echo=$ac_try;;
35872esac
35873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874  (eval "$ac_compile") 2>conftest.er1
35875  ac_status=$?
35876  grep -v '^ *+' conftest.er1 >conftest.err
35877  rm -f conftest.er1
35878  cat conftest.err >&5
35879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880  (exit $ac_status); } &&
35881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35882  { (case "(($ac_try" in
35883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884  *) ac_try_echo=$ac_try;;
35885esac
35886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887  (eval "$ac_try") 2>&5
35888  ac_status=$?
35889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890  (exit $ac_status); }; } &&
35891	 { ac_try='test -s conftest.$ac_objext'
35892  { (case "(($ac_try" in
35893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894  *) ac_try_echo=$ac_try;;
35895esac
35896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35897  (eval "$ac_try") 2>&5
35898  ac_status=$?
35899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900  (exit $ac_status); }; }; then
35901  ac_cv_have_decl_ferror_unlocked=yes
35902else
35903  echo "$as_me: failed program was:" >&5
35904sed 's/^/| /' conftest.$ac_ext >&5
35905
35906	ac_cv_have_decl_ferror_unlocked=no
35907fi
35908
35909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35910fi
35911{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
35912echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
35913if test $ac_cv_have_decl_ferror_unlocked = yes; then
35914
35915cat >>confdefs.h <<_ACEOF
35916#define HAVE_DECL_FERROR_UNLOCKED 1
35917_ACEOF
35918
35919
35920else
35921  cat >>confdefs.h <<_ACEOF
35922#define HAVE_DECL_FERROR_UNLOCKED 0
35923_ACEOF
35924
35925
35926fi
35927
35928
35929
35930
35931      { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
35932echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
35933if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
35934  echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936  cat >conftest.$ac_ext <<_ACEOF
35937/* confdefs.h.  */
35938_ACEOF
35939cat confdefs.h >>conftest.$ac_ext
35940cat >>conftest.$ac_ext <<_ACEOF
35941/* end confdefs.h.  */
35942$ac_includes_default
35943int
35944main ()
35945{
35946#ifndef fflush_unlocked
35947  char *p = (char *) fflush_unlocked;
35948  return !p;
35949#endif
35950
35951  ;
35952  return 0;
35953}
35954_ACEOF
35955rm -f conftest.$ac_objext
35956if { (ac_try="$ac_compile"
35957case "(($ac_try" in
35958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35959  *) ac_try_echo=$ac_try;;
35960esac
35961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35962  (eval "$ac_compile") 2>conftest.er1
35963  ac_status=$?
35964  grep -v '^ *+' conftest.er1 >conftest.err
35965  rm -f conftest.er1
35966  cat conftest.err >&5
35967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968  (exit $ac_status); } &&
35969	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35970  { (case "(($ac_try" in
35971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35972  *) ac_try_echo=$ac_try;;
35973esac
35974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35975  (eval "$ac_try") 2>&5
35976  ac_status=$?
35977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978  (exit $ac_status); }; } &&
35979	 { ac_try='test -s conftest.$ac_objext'
35980  { (case "(($ac_try" in
35981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35982  *) ac_try_echo=$ac_try;;
35983esac
35984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35985  (eval "$ac_try") 2>&5
35986  ac_status=$?
35987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988  (exit $ac_status); }; }; then
35989  ac_cv_have_decl_fflush_unlocked=yes
35990else
35991  echo "$as_me: failed program was:" >&5
35992sed 's/^/| /' conftest.$ac_ext >&5
35993
35994	ac_cv_have_decl_fflush_unlocked=no
35995fi
35996
35997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35998fi
35999{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
36000echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
36001if test $ac_cv_have_decl_fflush_unlocked = yes; then
36002
36003cat >>confdefs.h <<_ACEOF
36004#define HAVE_DECL_FFLUSH_UNLOCKED 1
36005_ACEOF
36006
36007
36008else
36009  cat >>confdefs.h <<_ACEOF
36010#define HAVE_DECL_FFLUSH_UNLOCKED 0
36011_ACEOF
36012
36013
36014fi
36015
36016
36017
36018
36019      { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
36020echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
36021if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
36022  echo $ECHO_N "(cached) $ECHO_C" >&6
36023else
36024  cat >conftest.$ac_ext <<_ACEOF
36025/* confdefs.h.  */
36026_ACEOF
36027cat confdefs.h >>conftest.$ac_ext
36028cat >>conftest.$ac_ext <<_ACEOF
36029/* end confdefs.h.  */
36030$ac_includes_default
36031int
36032main ()
36033{
36034#ifndef fgets_unlocked
36035  char *p = (char *) fgets_unlocked;
36036  return !p;
36037#endif
36038
36039  ;
36040  return 0;
36041}
36042_ACEOF
36043rm -f conftest.$ac_objext
36044if { (ac_try="$ac_compile"
36045case "(($ac_try" in
36046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36047  *) ac_try_echo=$ac_try;;
36048esac
36049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36050  (eval "$ac_compile") 2>conftest.er1
36051  ac_status=$?
36052  grep -v '^ *+' conftest.er1 >conftest.err
36053  rm -f conftest.er1
36054  cat conftest.err >&5
36055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056  (exit $ac_status); } &&
36057	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36058  { (case "(($ac_try" in
36059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36060  *) ac_try_echo=$ac_try;;
36061esac
36062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36063  (eval "$ac_try") 2>&5
36064  ac_status=$?
36065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066  (exit $ac_status); }; } &&
36067	 { ac_try='test -s conftest.$ac_objext'
36068  { (case "(($ac_try" in
36069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36070  *) ac_try_echo=$ac_try;;
36071esac
36072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36073  (eval "$ac_try") 2>&5
36074  ac_status=$?
36075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076  (exit $ac_status); }; }; then
36077  ac_cv_have_decl_fgets_unlocked=yes
36078else
36079  echo "$as_me: failed program was:" >&5
36080sed 's/^/| /' conftest.$ac_ext >&5
36081
36082	ac_cv_have_decl_fgets_unlocked=no
36083fi
36084
36085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36086fi
36087{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
36088echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
36089if test $ac_cv_have_decl_fgets_unlocked = yes; then
36090
36091cat >>confdefs.h <<_ACEOF
36092#define HAVE_DECL_FGETS_UNLOCKED 1
36093_ACEOF
36094
36095
36096else
36097  cat >>confdefs.h <<_ACEOF
36098#define HAVE_DECL_FGETS_UNLOCKED 0
36099_ACEOF
36100
36101
36102fi
36103
36104
36105
36106
36107      { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
36108echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
36109if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
36110  echo $ECHO_N "(cached) $ECHO_C" >&6
36111else
36112  cat >conftest.$ac_ext <<_ACEOF
36113/* confdefs.h.  */
36114_ACEOF
36115cat confdefs.h >>conftest.$ac_ext
36116cat >>conftest.$ac_ext <<_ACEOF
36117/* end confdefs.h.  */
36118$ac_includes_default
36119int
36120main ()
36121{
36122#ifndef fputc_unlocked
36123  char *p = (char *) fputc_unlocked;
36124  return !p;
36125#endif
36126
36127  ;
36128  return 0;
36129}
36130_ACEOF
36131rm -f conftest.$ac_objext
36132if { (ac_try="$ac_compile"
36133case "(($ac_try" in
36134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36135  *) ac_try_echo=$ac_try;;
36136esac
36137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36138  (eval "$ac_compile") 2>conftest.er1
36139  ac_status=$?
36140  grep -v '^ *+' conftest.er1 >conftest.err
36141  rm -f conftest.er1
36142  cat conftest.err >&5
36143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144  (exit $ac_status); } &&
36145	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36146  { (case "(($ac_try" in
36147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148  *) ac_try_echo=$ac_try;;
36149esac
36150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151  (eval "$ac_try") 2>&5
36152  ac_status=$?
36153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154  (exit $ac_status); }; } &&
36155	 { ac_try='test -s conftest.$ac_objext'
36156  { (case "(($ac_try" in
36157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36158  *) ac_try_echo=$ac_try;;
36159esac
36160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36161  (eval "$ac_try") 2>&5
36162  ac_status=$?
36163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164  (exit $ac_status); }; }; then
36165  ac_cv_have_decl_fputc_unlocked=yes
36166else
36167  echo "$as_me: failed program was:" >&5
36168sed 's/^/| /' conftest.$ac_ext >&5
36169
36170	ac_cv_have_decl_fputc_unlocked=no
36171fi
36172
36173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36174fi
36175{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
36176echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
36177if test $ac_cv_have_decl_fputc_unlocked = yes; then
36178
36179cat >>confdefs.h <<_ACEOF
36180#define HAVE_DECL_FPUTC_UNLOCKED 1
36181_ACEOF
36182
36183
36184else
36185  cat >>confdefs.h <<_ACEOF
36186#define HAVE_DECL_FPUTC_UNLOCKED 0
36187_ACEOF
36188
36189
36190fi
36191
36192
36193
36194
36195      { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
36196echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
36197if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
36198  echo $ECHO_N "(cached) $ECHO_C" >&6
36199else
36200  cat >conftest.$ac_ext <<_ACEOF
36201/* confdefs.h.  */
36202_ACEOF
36203cat confdefs.h >>conftest.$ac_ext
36204cat >>conftest.$ac_ext <<_ACEOF
36205/* end confdefs.h.  */
36206$ac_includes_default
36207int
36208main ()
36209{
36210#ifndef fputs_unlocked
36211  char *p = (char *) fputs_unlocked;
36212  return !p;
36213#endif
36214
36215  ;
36216  return 0;
36217}
36218_ACEOF
36219rm -f conftest.$ac_objext
36220if { (ac_try="$ac_compile"
36221case "(($ac_try" in
36222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36223  *) ac_try_echo=$ac_try;;
36224esac
36225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36226  (eval "$ac_compile") 2>conftest.er1
36227  ac_status=$?
36228  grep -v '^ *+' conftest.er1 >conftest.err
36229  rm -f conftest.er1
36230  cat conftest.err >&5
36231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232  (exit $ac_status); } &&
36233	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36234  { (case "(($ac_try" in
36235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36236  *) ac_try_echo=$ac_try;;
36237esac
36238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36239  (eval "$ac_try") 2>&5
36240  ac_status=$?
36241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242  (exit $ac_status); }; } &&
36243	 { ac_try='test -s conftest.$ac_objext'
36244  { (case "(($ac_try" in
36245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36246  *) ac_try_echo=$ac_try;;
36247esac
36248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36249  (eval "$ac_try") 2>&5
36250  ac_status=$?
36251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252  (exit $ac_status); }; }; then
36253  ac_cv_have_decl_fputs_unlocked=yes
36254else
36255  echo "$as_me: failed program was:" >&5
36256sed 's/^/| /' conftest.$ac_ext >&5
36257
36258	ac_cv_have_decl_fputs_unlocked=no
36259fi
36260
36261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36262fi
36263{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
36264echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
36265if test $ac_cv_have_decl_fputs_unlocked = yes; then
36266
36267cat >>confdefs.h <<_ACEOF
36268#define HAVE_DECL_FPUTS_UNLOCKED 1
36269_ACEOF
36270
36271
36272else
36273  cat >>confdefs.h <<_ACEOF
36274#define HAVE_DECL_FPUTS_UNLOCKED 0
36275_ACEOF
36276
36277
36278fi
36279
36280
36281
36282
36283      { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
36284echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
36285if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
36286  echo $ECHO_N "(cached) $ECHO_C" >&6
36287else
36288  cat >conftest.$ac_ext <<_ACEOF
36289/* confdefs.h.  */
36290_ACEOF
36291cat confdefs.h >>conftest.$ac_ext
36292cat >>conftest.$ac_ext <<_ACEOF
36293/* end confdefs.h.  */
36294$ac_includes_default
36295int
36296main ()
36297{
36298#ifndef fread_unlocked
36299  char *p = (char *) fread_unlocked;
36300  return !p;
36301#endif
36302
36303  ;
36304  return 0;
36305}
36306_ACEOF
36307rm -f conftest.$ac_objext
36308if { (ac_try="$ac_compile"
36309case "(($ac_try" in
36310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311  *) ac_try_echo=$ac_try;;
36312esac
36313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36314  (eval "$ac_compile") 2>conftest.er1
36315  ac_status=$?
36316  grep -v '^ *+' conftest.er1 >conftest.err
36317  rm -f conftest.er1
36318  cat conftest.err >&5
36319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320  (exit $ac_status); } &&
36321	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36322  { (case "(($ac_try" in
36323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324  *) ac_try_echo=$ac_try;;
36325esac
36326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327  (eval "$ac_try") 2>&5
36328  ac_status=$?
36329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330  (exit $ac_status); }; } &&
36331	 { ac_try='test -s conftest.$ac_objext'
36332  { (case "(($ac_try" in
36333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36334  *) ac_try_echo=$ac_try;;
36335esac
36336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36337  (eval "$ac_try") 2>&5
36338  ac_status=$?
36339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340  (exit $ac_status); }; }; then
36341  ac_cv_have_decl_fread_unlocked=yes
36342else
36343  echo "$as_me: failed program was:" >&5
36344sed 's/^/| /' conftest.$ac_ext >&5
36345
36346	ac_cv_have_decl_fread_unlocked=no
36347fi
36348
36349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36350fi
36351{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
36352echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
36353if test $ac_cv_have_decl_fread_unlocked = yes; then
36354
36355cat >>confdefs.h <<_ACEOF
36356#define HAVE_DECL_FREAD_UNLOCKED 1
36357_ACEOF
36358
36359
36360else
36361  cat >>confdefs.h <<_ACEOF
36362#define HAVE_DECL_FREAD_UNLOCKED 0
36363_ACEOF
36364
36365
36366fi
36367
36368
36369
36370
36371      { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
36372echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
36373if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
36374  echo $ECHO_N "(cached) $ECHO_C" >&6
36375else
36376  cat >conftest.$ac_ext <<_ACEOF
36377/* confdefs.h.  */
36378_ACEOF
36379cat confdefs.h >>conftest.$ac_ext
36380cat >>conftest.$ac_ext <<_ACEOF
36381/* end confdefs.h.  */
36382$ac_includes_default
36383int
36384main ()
36385{
36386#ifndef fwrite_unlocked
36387  char *p = (char *) fwrite_unlocked;
36388  return !p;
36389#endif
36390
36391  ;
36392  return 0;
36393}
36394_ACEOF
36395rm -f conftest.$ac_objext
36396if { (ac_try="$ac_compile"
36397case "(($ac_try" in
36398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36399  *) ac_try_echo=$ac_try;;
36400esac
36401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36402  (eval "$ac_compile") 2>conftest.er1
36403  ac_status=$?
36404  grep -v '^ *+' conftest.er1 >conftest.err
36405  rm -f conftest.er1
36406  cat conftest.err >&5
36407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408  (exit $ac_status); } &&
36409	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36410  { (case "(($ac_try" in
36411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36412  *) ac_try_echo=$ac_try;;
36413esac
36414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36415  (eval "$ac_try") 2>&5
36416  ac_status=$?
36417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418  (exit $ac_status); }; } &&
36419	 { ac_try='test -s conftest.$ac_objext'
36420  { (case "(($ac_try" in
36421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36422  *) ac_try_echo=$ac_try;;
36423esac
36424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36425  (eval "$ac_try") 2>&5
36426  ac_status=$?
36427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428  (exit $ac_status); }; }; then
36429  ac_cv_have_decl_fwrite_unlocked=yes
36430else
36431  echo "$as_me: failed program was:" >&5
36432sed 's/^/| /' conftest.$ac_ext >&5
36433
36434	ac_cv_have_decl_fwrite_unlocked=no
36435fi
36436
36437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36438fi
36439{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
36440echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
36441if test $ac_cv_have_decl_fwrite_unlocked = yes; then
36442
36443cat >>confdefs.h <<_ACEOF
36444#define HAVE_DECL_FWRITE_UNLOCKED 1
36445_ACEOF
36446
36447
36448else
36449  cat >>confdefs.h <<_ACEOF
36450#define HAVE_DECL_FWRITE_UNLOCKED 0
36451_ACEOF
36452
36453
36454fi
36455
36456
36457
36458
36459      { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36460echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
36461if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
36462  echo $ECHO_N "(cached) $ECHO_C" >&6
36463else
36464  cat >conftest.$ac_ext <<_ACEOF
36465/* confdefs.h.  */
36466_ACEOF
36467cat confdefs.h >>conftest.$ac_ext
36468cat >>conftest.$ac_ext <<_ACEOF
36469/* end confdefs.h.  */
36470$ac_includes_default
36471int
36472main ()
36473{
36474#ifndef getc_unlocked
36475  char *p = (char *) getc_unlocked;
36476  return !p;
36477#endif
36478
36479  ;
36480  return 0;
36481}
36482_ACEOF
36483rm -f conftest.$ac_objext
36484if { (ac_try="$ac_compile"
36485case "(($ac_try" in
36486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36487  *) ac_try_echo=$ac_try;;
36488esac
36489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36490  (eval "$ac_compile") 2>conftest.er1
36491  ac_status=$?
36492  grep -v '^ *+' conftest.er1 >conftest.err
36493  rm -f conftest.er1
36494  cat conftest.err >&5
36495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496  (exit $ac_status); } &&
36497	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36498  { (case "(($ac_try" in
36499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36500  *) ac_try_echo=$ac_try;;
36501esac
36502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36503  (eval "$ac_try") 2>&5
36504  ac_status=$?
36505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506  (exit $ac_status); }; } &&
36507	 { ac_try='test -s conftest.$ac_objext'
36508  { (case "(($ac_try" in
36509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36510  *) ac_try_echo=$ac_try;;
36511esac
36512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36513  (eval "$ac_try") 2>&5
36514  ac_status=$?
36515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516  (exit $ac_status); }; }; then
36517  ac_cv_have_decl_getc_unlocked=yes
36518else
36519  echo "$as_me: failed program was:" >&5
36520sed 's/^/| /' conftest.$ac_ext >&5
36521
36522	ac_cv_have_decl_getc_unlocked=no
36523fi
36524
36525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36526fi
36527{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36528echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
36529if test $ac_cv_have_decl_getc_unlocked = yes; then
36530
36531cat >>confdefs.h <<_ACEOF
36532#define HAVE_DECL_GETC_UNLOCKED 1
36533_ACEOF
36534
36535
36536else
36537  cat >>confdefs.h <<_ACEOF
36538#define HAVE_DECL_GETC_UNLOCKED 0
36539_ACEOF
36540
36541
36542fi
36543
36544
36545
36546
36547      { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
36548echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
36549if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
36550  echo $ECHO_N "(cached) $ECHO_C" >&6
36551else
36552  cat >conftest.$ac_ext <<_ACEOF
36553/* confdefs.h.  */
36554_ACEOF
36555cat confdefs.h >>conftest.$ac_ext
36556cat >>conftest.$ac_ext <<_ACEOF
36557/* end confdefs.h.  */
36558$ac_includes_default
36559int
36560main ()
36561{
36562#ifndef getchar_unlocked
36563  char *p = (char *) getchar_unlocked;
36564  return !p;
36565#endif
36566
36567  ;
36568  return 0;
36569}
36570_ACEOF
36571rm -f conftest.$ac_objext
36572if { (ac_try="$ac_compile"
36573case "(($ac_try" in
36574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36575  *) ac_try_echo=$ac_try;;
36576esac
36577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36578  (eval "$ac_compile") 2>conftest.er1
36579  ac_status=$?
36580  grep -v '^ *+' conftest.er1 >conftest.err
36581  rm -f conftest.er1
36582  cat conftest.err >&5
36583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584  (exit $ac_status); } &&
36585	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36586  { (case "(($ac_try" in
36587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36588  *) ac_try_echo=$ac_try;;
36589esac
36590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36591  (eval "$ac_try") 2>&5
36592  ac_status=$?
36593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594  (exit $ac_status); }; } &&
36595	 { ac_try='test -s conftest.$ac_objext'
36596  { (case "(($ac_try" in
36597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36598  *) ac_try_echo=$ac_try;;
36599esac
36600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36601  (eval "$ac_try") 2>&5
36602  ac_status=$?
36603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604  (exit $ac_status); }; }; then
36605  ac_cv_have_decl_getchar_unlocked=yes
36606else
36607  echo "$as_me: failed program was:" >&5
36608sed 's/^/| /' conftest.$ac_ext >&5
36609
36610	ac_cv_have_decl_getchar_unlocked=no
36611fi
36612
36613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36614fi
36615{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
36616echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
36617if test $ac_cv_have_decl_getchar_unlocked = yes; then
36618
36619cat >>confdefs.h <<_ACEOF
36620#define HAVE_DECL_GETCHAR_UNLOCKED 1
36621_ACEOF
36622
36623
36624else
36625  cat >>confdefs.h <<_ACEOF
36626#define HAVE_DECL_GETCHAR_UNLOCKED 0
36627_ACEOF
36628
36629
36630fi
36631
36632
36633
36634
36635      { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
36636echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
36637if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
36638  echo $ECHO_N "(cached) $ECHO_C" >&6
36639else
36640  cat >conftest.$ac_ext <<_ACEOF
36641/* confdefs.h.  */
36642_ACEOF
36643cat confdefs.h >>conftest.$ac_ext
36644cat >>conftest.$ac_ext <<_ACEOF
36645/* end confdefs.h.  */
36646$ac_includes_default
36647int
36648main ()
36649{
36650#ifndef putc_unlocked
36651  char *p = (char *) putc_unlocked;
36652  return !p;
36653#endif
36654
36655  ;
36656  return 0;
36657}
36658_ACEOF
36659rm -f conftest.$ac_objext
36660if { (ac_try="$ac_compile"
36661case "(($ac_try" in
36662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36663  *) ac_try_echo=$ac_try;;
36664esac
36665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36666  (eval "$ac_compile") 2>conftest.er1
36667  ac_status=$?
36668  grep -v '^ *+' conftest.er1 >conftest.err
36669  rm -f conftest.er1
36670  cat conftest.err >&5
36671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672  (exit $ac_status); } &&
36673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36674  { (case "(($ac_try" in
36675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36676  *) ac_try_echo=$ac_try;;
36677esac
36678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36679  (eval "$ac_try") 2>&5
36680  ac_status=$?
36681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682  (exit $ac_status); }; } &&
36683	 { ac_try='test -s conftest.$ac_objext'
36684  { (case "(($ac_try" in
36685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36686  *) ac_try_echo=$ac_try;;
36687esac
36688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36689  (eval "$ac_try") 2>&5
36690  ac_status=$?
36691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692  (exit $ac_status); }; }; then
36693  ac_cv_have_decl_putc_unlocked=yes
36694else
36695  echo "$as_me: failed program was:" >&5
36696sed 's/^/| /' conftest.$ac_ext >&5
36697
36698	ac_cv_have_decl_putc_unlocked=no
36699fi
36700
36701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36702fi
36703{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
36704echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
36705if test $ac_cv_have_decl_putc_unlocked = yes; then
36706
36707cat >>confdefs.h <<_ACEOF
36708#define HAVE_DECL_PUTC_UNLOCKED 1
36709_ACEOF
36710
36711
36712else
36713  cat >>confdefs.h <<_ACEOF
36714#define HAVE_DECL_PUTC_UNLOCKED 0
36715_ACEOF
36716
36717
36718fi
36719
36720
36721
36722
36723      { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
36724echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
36725if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
36726  echo $ECHO_N "(cached) $ECHO_C" >&6
36727else
36728  cat >conftest.$ac_ext <<_ACEOF
36729/* confdefs.h.  */
36730_ACEOF
36731cat confdefs.h >>conftest.$ac_ext
36732cat >>conftest.$ac_ext <<_ACEOF
36733/* end confdefs.h.  */
36734$ac_includes_default
36735int
36736main ()
36737{
36738#ifndef putchar_unlocked
36739  char *p = (char *) putchar_unlocked;
36740  return !p;
36741#endif
36742
36743  ;
36744  return 0;
36745}
36746_ACEOF
36747rm -f conftest.$ac_objext
36748if { (ac_try="$ac_compile"
36749case "(($ac_try" in
36750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36751  *) ac_try_echo=$ac_try;;
36752esac
36753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36754  (eval "$ac_compile") 2>conftest.er1
36755  ac_status=$?
36756  grep -v '^ *+' conftest.er1 >conftest.err
36757  rm -f conftest.er1
36758  cat conftest.err >&5
36759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760  (exit $ac_status); } &&
36761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36762  { (case "(($ac_try" in
36763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36764  *) ac_try_echo=$ac_try;;
36765esac
36766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36767  (eval "$ac_try") 2>&5
36768  ac_status=$?
36769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770  (exit $ac_status); }; } &&
36771	 { ac_try='test -s conftest.$ac_objext'
36772  { (case "(($ac_try" in
36773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36774  *) ac_try_echo=$ac_try;;
36775esac
36776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36777  (eval "$ac_try") 2>&5
36778  ac_status=$?
36779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780  (exit $ac_status); }; }; then
36781  ac_cv_have_decl_putchar_unlocked=yes
36782else
36783  echo "$as_me: failed program was:" >&5
36784sed 's/^/| /' conftest.$ac_ext >&5
36785
36786	ac_cv_have_decl_putchar_unlocked=no
36787fi
36788
36789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36790fi
36791{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
36792echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
36793if test $ac_cv_have_decl_putchar_unlocked = yes; then
36794
36795cat >>confdefs.h <<_ACEOF
36796#define HAVE_DECL_PUTCHAR_UNLOCKED 1
36797_ACEOF
36798
36799
36800else
36801  cat >>confdefs.h <<_ACEOF
36802#define HAVE_DECL_PUTCHAR_UNLOCKED 0
36803_ACEOF
36804
36805
36806fi
36807
36808
36809
36810
36811
36812cat >>confdefs.h <<\_ACEOF
36813#define USE_UNLOCKED_IO 1
36814_ACEOF
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
36862
36863{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
36864echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
36865if test "${ac_cv_have_decl_strerror_r+set}" = set; then
36866  echo $ECHO_N "(cached) $ECHO_C" >&6
36867else
36868  cat >conftest.$ac_ext <<_ACEOF
36869/* confdefs.h.  */
36870_ACEOF
36871cat confdefs.h >>conftest.$ac_ext
36872cat >>conftest.$ac_ext <<_ACEOF
36873/* end confdefs.h.  */
36874$ac_includes_default
36875int
36876main ()
36877{
36878#ifndef strerror_r
36879  char *p = (char *) strerror_r;
36880  return !p;
36881#endif
36882
36883  ;
36884  return 0;
36885}
36886_ACEOF
36887rm -f conftest.$ac_objext
36888if { (ac_try="$ac_compile"
36889case "(($ac_try" in
36890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36891  *) ac_try_echo=$ac_try;;
36892esac
36893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36894  (eval "$ac_compile") 2>conftest.er1
36895  ac_status=$?
36896  grep -v '^ *+' conftest.er1 >conftest.err
36897  rm -f conftest.er1
36898  cat conftest.err >&5
36899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900  (exit $ac_status); } &&
36901	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36902  { (case "(($ac_try" in
36903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36904  *) ac_try_echo=$ac_try;;
36905esac
36906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36907  (eval "$ac_try") 2>&5
36908  ac_status=$?
36909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910  (exit $ac_status); }; } &&
36911	 { ac_try='test -s conftest.$ac_objext'
36912  { (case "(($ac_try" in
36913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914  *) ac_try_echo=$ac_try;;
36915esac
36916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917  (eval "$ac_try") 2>&5
36918  ac_status=$?
36919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920  (exit $ac_status); }; }; then
36921  ac_cv_have_decl_strerror_r=yes
36922else
36923  echo "$as_me: failed program was:" >&5
36924sed 's/^/| /' conftest.$ac_ext >&5
36925
36926	ac_cv_have_decl_strerror_r=no
36927fi
36928
36929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36930fi
36931{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
36932echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
36933if test $ac_cv_have_decl_strerror_r = yes; then
36934
36935cat >>confdefs.h <<_ACEOF
36936#define HAVE_DECL_STRERROR_R 1
36937_ACEOF
36938
36939
36940else
36941  cat >>confdefs.h <<_ACEOF
36942#define HAVE_DECL_STRERROR_R 0
36943_ACEOF
36944
36945
36946fi
36947
36948
36949
36950for ac_func in strerror_r
36951do
36952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36953{ echo "$as_me:$LINENO: checking for $ac_func" >&5
36954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36956  echo $ECHO_N "(cached) $ECHO_C" >&6
36957else
36958  cat >conftest.$ac_ext <<_ACEOF
36959/* confdefs.h.  */
36960_ACEOF
36961cat confdefs.h >>conftest.$ac_ext
36962cat >>conftest.$ac_ext <<_ACEOF
36963/* end confdefs.h.  */
36964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36966#define $ac_func innocuous_$ac_func
36967
36968/* System header to define __stub macros and hopefully few prototypes,
36969    which can conflict with char $ac_func (); below.
36970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36971    <limits.h> exists even on freestanding compilers.  */
36972
36973#ifdef __STDC__
36974# include <limits.h>
36975#else
36976# include <assert.h>
36977#endif
36978
36979#undef $ac_func
36980
36981/* Override any GCC internal prototype to avoid an error.
36982   Use char because int might match the return type of a GCC
36983   builtin and then its argument prototype would still apply.  */
36984#ifdef __cplusplus
36985extern "C"
36986#endif
36987char $ac_func ();
36988/* The GNU C library defines this for functions which it implements
36989    to always fail with ENOSYS.  Some functions are actually named
36990    something starting with __ and the normal name is an alias.  */
36991#if defined __stub_$ac_func || defined __stub___$ac_func
36992choke me
36993#endif
36994
36995int
36996main ()
36997{
36998return $ac_func ();
36999  ;
37000  return 0;
37001}
37002_ACEOF
37003rm -f conftest.$ac_objext conftest$ac_exeext
37004if { (ac_try="$ac_link"
37005case "(($ac_try" in
37006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37007  *) ac_try_echo=$ac_try;;
37008esac
37009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37010  (eval "$ac_link") 2>conftest.er1
37011  ac_status=$?
37012  grep -v '^ *+' conftest.er1 >conftest.err
37013  rm -f conftest.er1
37014  cat conftest.err >&5
37015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016  (exit $ac_status); } &&
37017	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37018  { (case "(($ac_try" in
37019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37020  *) ac_try_echo=$ac_try;;
37021esac
37022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37023  (eval "$ac_try") 2>&5
37024  ac_status=$?
37025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026  (exit $ac_status); }; } &&
37027	 { ac_try='test -s conftest$ac_exeext'
37028  { (case "(($ac_try" in
37029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37030  *) ac_try_echo=$ac_try;;
37031esac
37032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37033  (eval "$ac_try") 2>&5
37034  ac_status=$?
37035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036  (exit $ac_status); }; }; then
37037  eval "$as_ac_var=yes"
37038else
37039  echo "$as_me: failed program was:" >&5
37040sed 's/^/| /' conftest.$ac_ext >&5
37041
37042	eval "$as_ac_var=no"
37043fi
37044
37045rm -f core conftest.err conftest.$ac_objext \
37046      conftest$ac_exeext conftest.$ac_ext
37047fi
37048ac_res=`eval echo '${'$as_ac_var'}'`
37049	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37050echo "${ECHO_T}$ac_res" >&6; }
37051if test `eval echo '${'$as_ac_var'}'` = yes; then
37052  cat >>confdefs.h <<_ACEOF
37053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37054_ACEOF
37055
37056fi
37057done
37058
37059{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
37060echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
37061if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
37062  echo $ECHO_N "(cached) $ECHO_C" >&6
37063else
37064
37065    ac_cv_func_strerror_r_char_p=no
37066    if test $ac_cv_have_decl_strerror_r = yes; then
37067      cat >conftest.$ac_ext <<_ACEOF
37068/* confdefs.h.  */
37069_ACEOF
37070cat confdefs.h >>conftest.$ac_ext
37071cat >>conftest.$ac_ext <<_ACEOF
37072/* end confdefs.h.  */
37073$ac_includes_default
37074int
37075main ()
37076{
37077
37078	  char buf[100];
37079	  char x = *strerror_r (0, buf, sizeof buf);
37080	  char *p = strerror_r (0, buf, sizeof buf);
37081	  return !p || x;
37082
37083  ;
37084  return 0;
37085}
37086_ACEOF
37087rm -f conftest.$ac_objext
37088if { (ac_try="$ac_compile"
37089case "(($ac_try" in
37090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37091  *) ac_try_echo=$ac_try;;
37092esac
37093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37094  (eval "$ac_compile") 2>conftest.er1
37095  ac_status=$?
37096  grep -v '^ *+' conftest.er1 >conftest.err
37097  rm -f conftest.er1
37098  cat conftest.err >&5
37099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100  (exit $ac_status); } &&
37101	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37102  { (case "(($ac_try" in
37103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37104  *) ac_try_echo=$ac_try;;
37105esac
37106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37107  (eval "$ac_try") 2>&5
37108  ac_status=$?
37109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110  (exit $ac_status); }; } &&
37111	 { ac_try='test -s conftest.$ac_objext'
37112  { (case "(($ac_try" in
37113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114  *) ac_try_echo=$ac_try;;
37115esac
37116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37117  (eval "$ac_try") 2>&5
37118  ac_status=$?
37119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120  (exit $ac_status); }; }; then
37121  ac_cv_func_strerror_r_char_p=yes
37122else
37123  echo "$as_me: failed program was:" >&5
37124sed 's/^/| /' conftest.$ac_ext >&5
37125
37126
37127fi
37128
37129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37130    else
37131      # strerror_r is not declared.  Choose between
37132      # systems that have relatively inaccessible declarations for the
37133      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
37134      # former has a strerror_r that returns char*, while the latter
37135      # has a strerror_r that returns `int'.
37136      # This test should segfault on the DEC system.
37137      if test "$cross_compiling" = yes; then
37138  :
37139else
37140  cat >conftest.$ac_ext <<_ACEOF
37141/* confdefs.h.  */
37142_ACEOF
37143cat confdefs.h >>conftest.$ac_ext
37144cat >>conftest.$ac_ext <<_ACEOF
37145/* end confdefs.h.  */
37146$ac_includes_default
37147	extern char *strerror_r ();
37148int
37149main ()
37150{
37151char buf[100];
37152	  char x = *strerror_r (0, buf, sizeof buf);
37153	  return ! isalpha (x);
37154  ;
37155  return 0;
37156}
37157_ACEOF
37158rm -f conftest$ac_exeext
37159if { (ac_try="$ac_link"
37160case "(($ac_try" in
37161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37162  *) ac_try_echo=$ac_try;;
37163esac
37164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37165  (eval "$ac_link") 2>&5
37166  ac_status=$?
37167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37169  { (case "(($ac_try" in
37170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37171  *) ac_try_echo=$ac_try;;
37172esac
37173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37174  (eval "$ac_try") 2>&5
37175  ac_status=$?
37176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177  (exit $ac_status); }; }; then
37178  ac_cv_func_strerror_r_char_p=yes
37179else
37180  echo "$as_me: program exited with status $ac_status" >&5
37181echo "$as_me: failed program was:" >&5
37182sed 's/^/| /' conftest.$ac_ext >&5
37183
37184fi
37185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37186fi
37187
37188
37189    fi
37190
37191fi
37192{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
37193echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
37194if test $ac_cv_func_strerror_r_char_p = yes; then
37195
37196cat >>confdefs.h <<\_ACEOF
37197#define STRERROR_R_CHAR_P 1
37198_ACEOF
37199
37200fi
37201
37202
37203  { echo "$as_me:$LINENO: checking for error_at_line" >&5
37204echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
37205if test "${ac_cv_lib_error_at_line+set}" = set; then
37206  echo $ECHO_N "(cached) $ECHO_C" >&6
37207else
37208  cat >conftest.$ac_ext <<_ACEOF
37209/* confdefs.h.  */
37210_ACEOF
37211cat confdefs.h >>conftest.$ac_ext
37212cat >>conftest.$ac_ext <<_ACEOF
37213/* end confdefs.h.  */
37214$ac_includes_default
37215int
37216main ()
37217{
37218error_at_line (0, 0, "", 0, "");
37219  ;
37220  return 0;
37221}
37222_ACEOF
37223rm -f conftest.$ac_objext conftest$ac_exeext
37224if { (ac_try="$ac_link"
37225case "(($ac_try" in
37226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37227  *) ac_try_echo=$ac_try;;
37228esac
37229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37230  (eval "$ac_link") 2>conftest.er1
37231  ac_status=$?
37232  grep -v '^ *+' conftest.er1 >conftest.err
37233  rm -f conftest.er1
37234  cat conftest.err >&5
37235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236  (exit $ac_status); } &&
37237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37238  { (case "(($ac_try" in
37239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37240  *) ac_try_echo=$ac_try;;
37241esac
37242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37243  (eval "$ac_try") 2>&5
37244  ac_status=$?
37245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246  (exit $ac_status); }; } &&
37247	 { ac_try='test -s conftest$ac_exeext'
37248  { (case "(($ac_try" in
37249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37250  *) ac_try_echo=$ac_try;;
37251esac
37252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37253  (eval "$ac_try") 2>&5
37254  ac_status=$?
37255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256  (exit $ac_status); }; }; then
37257  ac_cv_lib_error_at_line=yes
37258else
37259  echo "$as_me: failed program was:" >&5
37260sed 's/^/| /' conftest.$ac_ext >&5
37261
37262	ac_cv_lib_error_at_line=no
37263fi
37264
37265rm -f core conftest.err conftest.$ac_objext \
37266      conftest$ac_exeext conftest.$ac_ext
37267fi
37268{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
37269echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
37270if test $ac_cv_lib_error_at_line = no; then
37271  SRCLIBOBJS="$SRCLIBOBJS error.$ac_objext"
37272fi
37273
37274
37275
37276  :
37277
37278
37279
37280
37281  :
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291
37292
37293
37294for ac_func in setenv unsetenv
37295do
37296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37300  echo $ECHO_N "(cached) $ECHO_C" >&6
37301else
37302  cat >conftest.$ac_ext <<_ACEOF
37303/* confdefs.h.  */
37304_ACEOF
37305cat confdefs.h >>conftest.$ac_ext
37306cat >>conftest.$ac_ext <<_ACEOF
37307/* end confdefs.h.  */
37308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37309   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37310#define $ac_func innocuous_$ac_func
37311
37312/* System header to define __stub macros and hopefully few prototypes,
37313    which can conflict with char $ac_func (); below.
37314    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37315    <limits.h> exists even on freestanding compilers.  */
37316
37317#ifdef __STDC__
37318# include <limits.h>
37319#else
37320# include <assert.h>
37321#endif
37322
37323#undef $ac_func
37324
37325/* Override any GCC internal prototype to avoid an error.
37326   Use char because int might match the return type of a GCC
37327   builtin and then its argument prototype would still apply.  */
37328#ifdef __cplusplus
37329extern "C"
37330#endif
37331char $ac_func ();
37332/* The GNU C library defines this for functions which it implements
37333    to always fail with ENOSYS.  Some functions are actually named
37334    something starting with __ and the normal name is an alias.  */
37335#if defined __stub_$ac_func || defined __stub___$ac_func
37336choke me
37337#endif
37338
37339int
37340main ()
37341{
37342return $ac_func ();
37343  ;
37344  return 0;
37345}
37346_ACEOF
37347rm -f conftest.$ac_objext conftest$ac_exeext
37348if { (ac_try="$ac_link"
37349case "(($ac_try" in
37350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37351  *) ac_try_echo=$ac_try;;
37352esac
37353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37354  (eval "$ac_link") 2>conftest.er1
37355  ac_status=$?
37356  grep -v '^ *+' conftest.er1 >conftest.err
37357  rm -f conftest.er1
37358  cat conftest.err >&5
37359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360  (exit $ac_status); } &&
37361	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37362  { (case "(($ac_try" in
37363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37364  *) ac_try_echo=$ac_try;;
37365esac
37366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37367  (eval "$ac_try") 2>&5
37368  ac_status=$?
37369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370  (exit $ac_status); }; } &&
37371	 { ac_try='test -s conftest$ac_exeext'
37372  { (case "(($ac_try" in
37373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37374  *) ac_try_echo=$ac_try;;
37375esac
37376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37377  (eval "$ac_try") 2>&5
37378  ac_status=$?
37379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380  (exit $ac_status); }; }; then
37381  eval "$as_ac_var=yes"
37382else
37383  echo "$as_me: failed program was:" >&5
37384sed 's/^/| /' conftest.$ac_ext >&5
37385
37386	eval "$as_ac_var=no"
37387fi
37388
37389rm -f core conftest.err conftest.$ac_objext \
37390      conftest$ac_exeext conftest.$ac_ext
37391fi
37392ac_res=`eval echo '${'$as_ac_var'}'`
37393	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37394echo "${ECHO_T}$ac_res" >&6; }
37395if test `eval echo '${'$as_ac_var'}'` = yes; then
37396  cat >>confdefs.h <<_ACEOF
37397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37398_ACEOF
37399
37400else
37401  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
37402fi
37403done
37404
37405  if test $ac_cv_func_setenv = no; then
37406
37407
37408
37409  :
37410
37411
37412
37413
37414
37415
37416for ac_header in search.h
37417do
37418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37420  { echo "$as_me:$LINENO: checking for $ac_header" >&5
37421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37423  echo $ECHO_N "(cached) $ECHO_C" >&6
37424fi
37425ac_res=`eval echo '${'$as_ac_Header'}'`
37426	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37427echo "${ECHO_T}$ac_res" >&6; }
37428else
37429  # Is the header compilable?
37430{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
37431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37432cat >conftest.$ac_ext <<_ACEOF
37433/* confdefs.h.  */
37434_ACEOF
37435cat confdefs.h >>conftest.$ac_ext
37436cat >>conftest.$ac_ext <<_ACEOF
37437/* end confdefs.h.  */
37438$ac_includes_default
37439#include <$ac_header>
37440_ACEOF
37441rm -f conftest.$ac_objext
37442if { (ac_try="$ac_compile"
37443case "(($ac_try" in
37444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37445  *) ac_try_echo=$ac_try;;
37446esac
37447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37448  (eval "$ac_compile") 2>conftest.er1
37449  ac_status=$?
37450  grep -v '^ *+' conftest.er1 >conftest.err
37451  rm -f conftest.er1
37452  cat conftest.err >&5
37453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454  (exit $ac_status); } &&
37455	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37456  { (case "(($ac_try" in
37457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37458  *) ac_try_echo=$ac_try;;
37459esac
37460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37461  (eval "$ac_try") 2>&5
37462  ac_status=$?
37463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464  (exit $ac_status); }; } &&
37465	 { ac_try='test -s conftest.$ac_objext'
37466  { (case "(($ac_try" in
37467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37468  *) ac_try_echo=$ac_try;;
37469esac
37470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37471  (eval "$ac_try") 2>&5
37472  ac_status=$?
37473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474  (exit $ac_status); }; }; then
37475  ac_header_compiler=yes
37476else
37477  echo "$as_me: failed program was:" >&5
37478sed 's/^/| /' conftest.$ac_ext >&5
37479
37480	ac_header_compiler=no
37481fi
37482
37483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37485echo "${ECHO_T}$ac_header_compiler" >&6; }
37486
37487# Is the header present?
37488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
37489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37490cat >conftest.$ac_ext <<_ACEOF
37491/* confdefs.h.  */
37492_ACEOF
37493cat confdefs.h >>conftest.$ac_ext
37494cat >>conftest.$ac_ext <<_ACEOF
37495/* end confdefs.h.  */
37496#include <$ac_header>
37497_ACEOF
37498if { (ac_try="$ac_cpp conftest.$ac_ext"
37499case "(($ac_try" in
37500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37501  *) ac_try_echo=$ac_try;;
37502esac
37503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37504  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37505  ac_status=$?
37506  grep -v '^ *+' conftest.er1 >conftest.err
37507  rm -f conftest.er1
37508  cat conftest.err >&5
37509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37510  (exit $ac_status); } >/dev/null; then
37511  if test -s conftest.err; then
37512    ac_cpp_err=$ac_c_preproc_warn_flag
37513    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37514  else
37515    ac_cpp_err=
37516  fi
37517else
37518  ac_cpp_err=yes
37519fi
37520if test -z "$ac_cpp_err"; then
37521  ac_header_preproc=yes
37522else
37523  echo "$as_me: failed program was:" >&5
37524sed 's/^/| /' conftest.$ac_ext >&5
37525
37526  ac_header_preproc=no
37527fi
37528
37529rm -f conftest.err conftest.$ac_ext
37530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37531echo "${ECHO_T}$ac_header_preproc" >&6; }
37532
37533# So?  What about this header?
37534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37535  yes:no: )
37536    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37538    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37540    ac_header_preproc=yes
37541    ;;
37542  no:yes:* )
37543    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37545    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37546echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37547    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37549    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37550echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37553    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37555
37556    ;;
37557esac
37558{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37561  echo $ECHO_N "(cached) $ECHO_C" >&6
37562else
37563  eval "$as_ac_Header=\$ac_header_preproc"
37564fi
37565ac_res=`eval echo '${'$as_ac_Header'}'`
37566	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37567echo "${ECHO_T}$ac_res" >&6; }
37568
37569fi
37570if test `eval echo '${'$as_ac_Header'}'` = yes; then
37571  cat >>confdefs.h <<_ACEOF
37572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37573_ACEOF
37574
37575fi
37576
37577done
37578
37579
37580for ac_func in tsearch
37581do
37582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37583{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37585if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37586  echo $ECHO_N "(cached) $ECHO_C" >&6
37587else
37588  cat >conftest.$ac_ext <<_ACEOF
37589/* confdefs.h.  */
37590_ACEOF
37591cat confdefs.h >>conftest.$ac_ext
37592cat >>conftest.$ac_ext <<_ACEOF
37593/* end confdefs.h.  */
37594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37595   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37596#define $ac_func innocuous_$ac_func
37597
37598/* System header to define __stub macros and hopefully few prototypes,
37599    which can conflict with char $ac_func (); below.
37600    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37601    <limits.h> exists even on freestanding compilers.  */
37602
37603#ifdef __STDC__
37604# include <limits.h>
37605#else
37606# include <assert.h>
37607#endif
37608
37609#undef $ac_func
37610
37611/* Override any GCC internal prototype to avoid an error.
37612   Use char because int might match the return type of a GCC
37613   builtin and then its argument prototype would still apply.  */
37614#ifdef __cplusplus
37615extern "C"
37616#endif
37617char $ac_func ();
37618/* The GNU C library defines this for functions which it implements
37619    to always fail with ENOSYS.  Some functions are actually named
37620    something starting with __ and the normal name is an alias.  */
37621#if defined __stub_$ac_func || defined __stub___$ac_func
37622choke me
37623#endif
37624
37625int
37626main ()
37627{
37628return $ac_func ();
37629  ;
37630  return 0;
37631}
37632_ACEOF
37633rm -f conftest.$ac_objext conftest$ac_exeext
37634if { (ac_try="$ac_link"
37635case "(($ac_try" in
37636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37637  *) ac_try_echo=$ac_try;;
37638esac
37639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37640  (eval "$ac_link") 2>conftest.er1
37641  ac_status=$?
37642  grep -v '^ *+' conftest.er1 >conftest.err
37643  rm -f conftest.er1
37644  cat conftest.err >&5
37645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646  (exit $ac_status); } &&
37647	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37648  { (case "(($ac_try" in
37649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37650  *) ac_try_echo=$ac_try;;
37651esac
37652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37653  (eval "$ac_try") 2>&5
37654  ac_status=$?
37655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656  (exit $ac_status); }; } &&
37657	 { ac_try='test -s conftest$ac_exeext'
37658  { (case "(($ac_try" in
37659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37660  *) ac_try_echo=$ac_try;;
37661esac
37662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37663  (eval "$ac_try") 2>&5
37664  ac_status=$?
37665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666  (exit $ac_status); }; }; then
37667  eval "$as_ac_var=yes"
37668else
37669  echo "$as_me: failed program was:" >&5
37670sed 's/^/| /' conftest.$ac_ext >&5
37671
37672	eval "$as_ac_var=no"
37673fi
37674
37675rm -f core conftest.err conftest.$ac_objext \
37676      conftest$ac_exeext conftest.$ac_ext
37677fi
37678ac_res=`eval echo '${'$as_ac_var'}'`
37679	       { echo "$as_me:$LINENO: result: $ac_res" >&5
37680echo "${ECHO_T}$ac_res" >&6; }
37681if test `eval echo '${'$as_ac_var'}'` = yes; then
37682  cat >>confdefs.h <<_ACEOF
37683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37684_ACEOF
37685
37686fi
37687done
37688
37689
37690
37691  { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
37692echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
37693  if test "${gt_cv_var_errno_declaration+set}" = set; then
37694  echo $ECHO_N "(cached) $ECHO_C" >&6
37695else
37696
37697    cat >conftest.$ac_ext <<_ACEOF
37698/* confdefs.h.  */
37699_ACEOF
37700cat confdefs.h >>conftest.$ac_ext
37701cat >>conftest.$ac_ext <<_ACEOF
37702/* end confdefs.h.  */
37703#include <errno.h>
37704      extern struct { int foo; } errno;
37705int
37706main ()
37707{
37708errno.foo = 1;
37709  ;
37710  return 0;
37711}
37712_ACEOF
37713rm -f conftest.$ac_objext
37714if { (ac_try="$ac_compile"
37715case "(($ac_try" in
37716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37717  *) ac_try_echo=$ac_try;;
37718esac
37719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37720  (eval "$ac_compile") 2>conftest.er1
37721  ac_status=$?
37722  grep -v '^ *+' conftest.er1 >conftest.err
37723  rm -f conftest.er1
37724  cat conftest.err >&5
37725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726  (exit $ac_status); } &&
37727	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37728  { (case "(($ac_try" in
37729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37730  *) ac_try_echo=$ac_try;;
37731esac
37732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37733  (eval "$ac_try") 2>&5
37734  ac_status=$?
37735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736  (exit $ac_status); }; } &&
37737	 { ac_try='test -s conftest.$ac_objext'
37738  { (case "(($ac_try" in
37739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37740  *) ac_try_echo=$ac_try;;
37741esac
37742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37743  (eval "$ac_try") 2>&5
37744  ac_status=$?
37745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746  (exit $ac_status); }; }; then
37747  gt_cv_var_errno_declaration=no
37748else
37749  echo "$as_me: failed program was:" >&5
37750sed 's/^/| /' conftest.$ac_ext >&5
37751
37752	gt_cv_var_errno_declaration=yes
37753fi
37754
37755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37756fi
37757
37758  { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
37759echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
37760  if test $gt_cv_var_errno_declaration = yes; then
37761
37762cat >>confdefs.h <<\_ACEOF
37763#define HAVE_ERRNO_DECL 1
37764_ACEOF
37765
37766  fi
37767
37768
37769
37770  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
37771echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
37772  if test "${gt_cv_var_environ_declaration+set}" = set; then
37773  echo $ECHO_N "(cached) $ECHO_C" >&6
37774else
37775
37776    cat >conftest.$ac_ext <<_ACEOF
37777/* confdefs.h.  */
37778_ACEOF
37779cat confdefs.h >>conftest.$ac_ext
37780cat >>conftest.$ac_ext <<_ACEOF
37781/* end confdefs.h.  */
37782#include <unistd.h>
37783      extern struct { int foo; } environ;
37784int
37785main ()
37786{
37787environ.foo = 1;
37788  ;
37789  return 0;
37790}
37791_ACEOF
37792rm -f conftest.$ac_objext
37793if { (ac_try="$ac_compile"
37794case "(($ac_try" in
37795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37796  *) ac_try_echo=$ac_try;;
37797esac
37798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37799  (eval "$ac_compile") 2>conftest.er1
37800  ac_status=$?
37801  grep -v '^ *+' conftest.er1 >conftest.err
37802  rm -f conftest.er1
37803  cat conftest.err >&5
37804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805  (exit $ac_status); } &&
37806	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37807  { (case "(($ac_try" in
37808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37809  *) ac_try_echo=$ac_try;;
37810esac
37811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37812  (eval "$ac_try") 2>&5
37813  ac_status=$?
37814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815  (exit $ac_status); }; } &&
37816	 { ac_try='test -s conftest.$ac_objext'
37817  { (case "(($ac_try" in
37818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37819  *) ac_try_echo=$ac_try;;
37820esac
37821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37822  (eval "$ac_try") 2>&5
37823  ac_status=$?
37824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825  (exit $ac_status); }; }; then
37826  gt_cv_var_environ_declaration=no
37827else
37828  echo "$as_me: failed program was:" >&5
37829sed 's/^/| /' conftest.$ac_ext >&5
37830
37831	gt_cv_var_environ_declaration=yes
37832fi
37833
37834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37835fi
37836
37837  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
37838echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
37839  if test $gt_cv_var_environ_declaration = yes; then
37840
37841cat >>confdefs.h <<\_ACEOF
37842#define HAVE_ENVIRON_DECL 1
37843_ACEOF
37844
37845  fi
37846
37847
37848  fi
37849  if test $ac_cv_func_unsetenv = no; then
37850
37851
37852  :
37853
37854
37855
37856
37857
37858
37859
37860  { echo "$as_me:$LINENO: checking if errno is properly declared" >&5
37861echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6; }
37862  if test "${gt_cv_var_errno_declaration+set}" = set; then
37863  echo $ECHO_N "(cached) $ECHO_C" >&6
37864else
37865
37866    cat >conftest.$ac_ext <<_ACEOF
37867/* confdefs.h.  */
37868_ACEOF
37869cat confdefs.h >>conftest.$ac_ext
37870cat >>conftest.$ac_ext <<_ACEOF
37871/* end confdefs.h.  */
37872#include <errno.h>
37873      extern struct { int foo; } errno;
37874int
37875main ()
37876{
37877errno.foo = 1;
37878  ;
37879  return 0;
37880}
37881_ACEOF
37882rm -f conftest.$ac_objext
37883if { (ac_try="$ac_compile"
37884case "(($ac_try" in
37885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37886  *) ac_try_echo=$ac_try;;
37887esac
37888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37889  (eval "$ac_compile") 2>conftest.er1
37890  ac_status=$?
37891  grep -v '^ *+' conftest.er1 >conftest.err
37892  rm -f conftest.er1
37893  cat conftest.err >&5
37894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895  (exit $ac_status); } &&
37896	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37897  { (case "(($ac_try" in
37898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37899  *) ac_try_echo=$ac_try;;
37900esac
37901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37902  (eval "$ac_try") 2>&5
37903  ac_status=$?
37904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905  (exit $ac_status); }; } &&
37906	 { ac_try='test -s conftest.$ac_objext'
37907  { (case "(($ac_try" in
37908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37909  *) ac_try_echo=$ac_try;;
37910esac
37911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37912  (eval "$ac_try") 2>&5
37913  ac_status=$?
37914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915  (exit $ac_status); }; }; then
37916  gt_cv_var_errno_declaration=no
37917else
37918  echo "$as_me: failed program was:" >&5
37919sed 's/^/| /' conftest.$ac_ext >&5
37920
37921	gt_cv_var_errno_declaration=yes
37922fi
37923
37924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37925fi
37926
37927  { echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
37928echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6; }
37929  if test $gt_cv_var_errno_declaration = yes; then
37930
37931cat >>confdefs.h <<\_ACEOF
37932#define HAVE_ERRNO_DECL 1
37933_ACEOF
37934
37935  fi
37936
37937
37938
37939  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
37940echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
37941  if test "${gt_cv_var_environ_declaration+set}" = set; then
37942  echo $ECHO_N "(cached) $ECHO_C" >&6
37943else
37944
37945    cat >conftest.$ac_ext <<_ACEOF
37946/* confdefs.h.  */
37947_ACEOF
37948cat confdefs.h >>conftest.$ac_ext
37949cat >>conftest.$ac_ext <<_ACEOF
37950/* end confdefs.h.  */
37951#include <unistd.h>
37952      extern struct { int foo; } environ;
37953int
37954main ()
37955{
37956environ.foo = 1;
37957  ;
37958  return 0;
37959}
37960_ACEOF
37961rm -f conftest.$ac_objext
37962if { (ac_try="$ac_compile"
37963case "(($ac_try" in
37964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37965  *) ac_try_echo=$ac_try;;
37966esac
37967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37968  (eval "$ac_compile") 2>conftest.er1
37969  ac_status=$?
37970  grep -v '^ *+' conftest.er1 >conftest.err
37971  rm -f conftest.er1
37972  cat conftest.err >&5
37973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974  (exit $ac_status); } &&
37975	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37976  { (case "(($ac_try" in
37977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37978  *) ac_try_echo=$ac_try;;
37979esac
37980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37981  (eval "$ac_try") 2>&5
37982  ac_status=$?
37983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984  (exit $ac_status); }; } &&
37985	 { ac_try='test -s conftest.$ac_objext'
37986  { (case "(($ac_try" in
37987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37988  *) ac_try_echo=$ac_try;;
37989esac
37990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37991  (eval "$ac_try") 2>&5
37992  ac_status=$?
37993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994  (exit $ac_status); }; }; then
37995  gt_cv_var_environ_declaration=no
37996else
37997  echo "$as_me: failed program was:" >&5
37998sed 's/^/| /' conftest.$ac_ext >&5
37999
38000	gt_cv_var_environ_declaration=yes
38001fi
38002
38003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38004fi
38005
38006  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
38007echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
38008  if test $gt_cv_var_environ_declaration = yes; then
38009
38010cat >>confdefs.h <<\_ACEOF
38011#define HAVE_ENVIRON_DECL 1
38012_ACEOF
38013
38014  fi
38015
38016
38017  else
38018    { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
38019echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
38020if test "${gt_cv_func_unsetenv_ret+set}" = set; then
38021  echo $ECHO_N "(cached) $ECHO_C" >&6
38022else
38023  cat >conftest.$ac_ext <<_ACEOF
38024/* confdefs.h.  */
38025_ACEOF
38026cat confdefs.h >>conftest.$ac_ext
38027cat >>conftest.$ac_ext <<_ACEOF
38028/* end confdefs.h.  */
38029#include <stdlib.h>
38030extern
38031#ifdef __cplusplus
38032"C"
38033#endif
38034#if defined(__STDC__) || defined(__cplusplus)
38035int unsetenv (const char *name);
38036#else
38037int unsetenv();
38038#endif
38039
38040int
38041main ()
38042{
38043
38044  ;
38045  return 0;
38046}
38047_ACEOF
38048rm -f conftest.$ac_objext
38049if { (ac_try="$ac_compile"
38050case "(($ac_try" in
38051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38052  *) ac_try_echo=$ac_try;;
38053esac
38054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38055  (eval "$ac_compile") 2>conftest.er1
38056  ac_status=$?
38057  grep -v '^ *+' conftest.er1 >conftest.err
38058  rm -f conftest.er1
38059  cat conftest.err >&5
38060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061  (exit $ac_status); } &&
38062	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38063  { (case "(($ac_try" in
38064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38065  *) ac_try_echo=$ac_try;;
38066esac
38067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38068  (eval "$ac_try") 2>&5
38069  ac_status=$?
38070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071  (exit $ac_status); }; } &&
38072	 { ac_try='test -s conftest.$ac_objext'
38073  { (case "(($ac_try" in
38074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38075  *) ac_try_echo=$ac_try;;
38076esac
38077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38078  (eval "$ac_try") 2>&5
38079  ac_status=$?
38080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081  (exit $ac_status); }; }; then
38082  gt_cv_func_unsetenv_ret='int'
38083else
38084  echo "$as_me: failed program was:" >&5
38085sed 's/^/| /' conftest.$ac_ext >&5
38086
38087	gt_cv_func_unsetenv_ret='void'
38088fi
38089
38090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38091fi
38092{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
38093echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
38094    if test $gt_cv_func_unsetenv_ret = 'void'; then
38095
38096cat >>confdefs.h <<\_ACEOF
38097#define VOID_UNSETENV 1
38098_ACEOF
38099
38100    fi
38101  fi
38102
38103{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
38104echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
38105if test "${ac_cv_header_stdbool_h+set}" = set; then
38106  echo $ECHO_N "(cached) $ECHO_C" >&6
38107else
38108  cat >conftest.$ac_ext <<_ACEOF
38109/* confdefs.h.  */
38110_ACEOF
38111cat confdefs.h >>conftest.$ac_ext
38112cat >>conftest.$ac_ext <<_ACEOF
38113/* end confdefs.h.  */
38114
38115	  #include <stdbool.h>
38116	  #ifndef bool
38117	   "error: bool is not defined"
38118	  #endif
38119	  #ifndef false
38120	   "error: false is not defined"
38121	  #endif
38122	  #if false
38123	   "error: false is not 0"
38124	  #endif
38125	  #ifndef true
38126	   "error: true is not defined"
38127	  #endif
38128	  #if true != 1
38129	   "error: true is not 1"
38130	  #endif
38131	  #ifndef __bool_true_false_are_defined
38132	   "error: __bool_true_false_are_defined is not defined"
38133	  #endif
38134
38135	  struct s { _Bool s: 1; _Bool t; } s;
38136
38137	  char a[true == 1 ? 1 : -1];
38138	  char b[false == 0 ? 1 : -1];
38139	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
38140	  char d[(bool) -0.5 == true ? 1 : -1];
38141	  bool e = &s;
38142	  char f[(_Bool) -0.0 == false ? 1 : -1];
38143	  char g[true];
38144	  char h[sizeof (_Bool)];
38145	  char i[sizeof s.t];
38146	  enum { j = false, k = true, l = false * true, m = true * 256 };
38147	  _Bool n[m];
38148	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
38149
38150int
38151main ()
38152{
38153
38154	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
38155		  + !m + !n + !o);
38156
38157  ;
38158  return 0;
38159}
38160_ACEOF
38161rm -f conftest.$ac_objext
38162if { (ac_try="$ac_compile"
38163case "(($ac_try" in
38164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38165  *) ac_try_echo=$ac_try;;
38166esac
38167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38168  (eval "$ac_compile") 2>conftest.er1
38169  ac_status=$?
38170  grep -v '^ *+' conftest.er1 >conftest.err
38171  rm -f conftest.er1
38172  cat conftest.err >&5
38173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174  (exit $ac_status); } &&
38175	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38176  { (case "(($ac_try" in
38177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38178  *) ac_try_echo=$ac_try;;
38179esac
38180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38181  (eval "$ac_try") 2>&5
38182  ac_status=$?
38183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38184  (exit $ac_status); }; } &&
38185	 { ac_try='test -s conftest.$ac_objext'
38186  { (case "(($ac_try" in
38187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38188  *) ac_try_echo=$ac_try;;
38189esac
38190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38191  (eval "$ac_try") 2>&5
38192  ac_status=$?
38193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194  (exit $ac_status); }; }; then
38195  ac_cv_header_stdbool_h=yes
38196else
38197  echo "$as_me: failed program was:" >&5
38198sed 's/^/| /' conftest.$ac_ext >&5
38199
38200	ac_cv_header_stdbool_h=no
38201fi
38202
38203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38204fi
38205{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
38206echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
38207   { echo "$as_me:$LINENO: checking for _Bool" >&5
38208echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
38209if test "${ac_cv_type__Bool+set}" = set; then
38210  echo $ECHO_N "(cached) $ECHO_C" >&6
38211else
38212  cat >conftest.$ac_ext <<_ACEOF
38213/* confdefs.h.  */
38214_ACEOF
38215cat confdefs.h >>conftest.$ac_ext
38216cat >>conftest.$ac_ext <<_ACEOF
38217/* end confdefs.h.  */
38218$ac_includes_default
38219typedef _Bool ac__type_new_;
38220int
38221main ()
38222{
38223if ((ac__type_new_ *) 0)
38224  return 0;
38225if (sizeof (ac__type_new_))
38226  return 0;
38227  ;
38228  return 0;
38229}
38230_ACEOF
38231rm -f conftest.$ac_objext
38232if { (ac_try="$ac_compile"
38233case "(($ac_try" in
38234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235  *) ac_try_echo=$ac_try;;
38236esac
38237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38238  (eval "$ac_compile") 2>conftest.er1
38239  ac_status=$?
38240  grep -v '^ *+' conftest.er1 >conftest.err
38241  rm -f conftest.er1
38242  cat conftest.err >&5
38243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244  (exit $ac_status); } &&
38245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38246  { (case "(($ac_try" in
38247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38248  *) ac_try_echo=$ac_try;;
38249esac
38250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38251  (eval "$ac_try") 2>&5
38252  ac_status=$?
38253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254  (exit $ac_status); }; } &&
38255	 { ac_try='test -s conftest.$ac_objext'
38256  { (case "(($ac_try" in
38257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38258  *) ac_try_echo=$ac_try;;
38259esac
38260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38261  (eval "$ac_try") 2>&5
38262  ac_status=$?
38263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264  (exit $ac_status); }; }; then
38265  ac_cv_type__Bool=yes
38266else
38267  echo "$as_me: failed program was:" >&5
38268sed 's/^/| /' conftest.$ac_ext >&5
38269
38270	ac_cv_type__Bool=no
38271fi
38272
38273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38274fi
38275{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
38276echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
38277if test $ac_cv_type__Bool = yes; then
38278
38279cat >>confdefs.h <<_ACEOF
38280#define HAVE__BOOL 1
38281_ACEOF
38282
38283
38284fi
38285
38286   if test $ac_cv_header_stdbool_h = yes; then
38287
38288cat >>confdefs.h <<\_ACEOF
38289#define HAVE_STDBOOL_H 1
38290_ACEOF
38291
38292   fi
38293
38294
38295
38296  # Define two additional variables used in the Makefile substitution.
38297
38298  if test "$ac_cv_header_stdbool_h" = yes; then
38299    STDBOOL_H=''
38300  else
38301    STDBOOL_H='stdbool.h'
38302  fi
38303
38304
38305  if test "$ac_cv_type__Bool" = yes; then
38306    HAVE__BOOL=1
38307  else
38308    HAVE__BOOL=0
38309  fi
38310
38311
38312
38313
38314for ac_func in strerror
38315do
38316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38317{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38320  echo $ECHO_N "(cached) $ECHO_C" >&6
38321else
38322  cat >conftest.$ac_ext <<_ACEOF
38323/* confdefs.h.  */
38324_ACEOF
38325cat confdefs.h >>conftest.$ac_ext
38326cat >>conftest.$ac_ext <<_ACEOF
38327/* end confdefs.h.  */
38328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38329   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38330#define $ac_func innocuous_$ac_func
38331
38332/* System header to define __stub macros and hopefully few prototypes,
38333    which can conflict with char $ac_func (); below.
38334    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38335    <limits.h> exists even on freestanding compilers.  */
38336
38337#ifdef __STDC__
38338# include <limits.h>
38339#else
38340# include <assert.h>
38341#endif
38342
38343#undef $ac_func
38344
38345/* Override any GCC internal prototype to avoid an error.
38346   Use char because int might match the return type of a GCC
38347   builtin and then its argument prototype would still apply.  */
38348#ifdef __cplusplus
38349extern "C"
38350#endif
38351char $ac_func ();
38352/* The GNU C library defines this for functions which it implements
38353    to always fail with ENOSYS.  Some functions are actually named
38354    something starting with __ and the normal name is an alias.  */
38355#if defined __stub_$ac_func || defined __stub___$ac_func
38356choke me
38357#endif
38358
38359int
38360main ()
38361{
38362return $ac_func ();
38363  ;
38364  return 0;
38365}
38366_ACEOF
38367rm -f conftest.$ac_objext conftest$ac_exeext
38368if { (ac_try="$ac_link"
38369case "(($ac_try" in
38370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38371  *) ac_try_echo=$ac_try;;
38372esac
38373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38374  (eval "$ac_link") 2>conftest.er1
38375  ac_status=$?
38376  grep -v '^ *+' conftest.er1 >conftest.err
38377  rm -f conftest.er1
38378  cat conftest.err >&5
38379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380  (exit $ac_status); } &&
38381	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38382  { (case "(($ac_try" in
38383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38384  *) ac_try_echo=$ac_try;;
38385esac
38386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38387  (eval "$ac_try") 2>&5
38388  ac_status=$?
38389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390  (exit $ac_status); }; } &&
38391	 { ac_try='test -s conftest$ac_exeext'
38392  { (case "(($ac_try" in
38393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38394  *) ac_try_echo=$ac_try;;
38395esac
38396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38397  (eval "$ac_try") 2>&5
38398  ac_status=$?
38399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400  (exit $ac_status); }; }; then
38401  eval "$as_ac_var=yes"
38402else
38403  echo "$as_me: failed program was:" >&5
38404sed 's/^/| /' conftest.$ac_ext >&5
38405
38406	eval "$as_ac_var=no"
38407fi
38408
38409rm -f core conftest.err conftest.$ac_objext \
38410      conftest$ac_exeext conftest.$ac_ext
38411fi
38412ac_res=`eval echo '${'$as_ac_var'}'`
38413	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38414echo "${ECHO_T}$ac_res" >&6; }
38415if test `eval echo '${'$as_ac_var'}'` = yes; then
38416  cat >>confdefs.h <<_ACEOF
38417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38418_ACEOF
38419
38420else
38421  SRCLIBOBJS="$SRCLIBOBJS $ac_func.$ac_objext"
38422fi
38423done
38424
38425  if test $ac_cv_func_strerror = no; then
38426
38427  :
38428
38429  fi
38430
38431
38432
38433for ac_func in readlink
38434do
38435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38436{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38439  echo $ECHO_N "(cached) $ECHO_C" >&6
38440else
38441  cat >conftest.$ac_ext <<_ACEOF
38442/* confdefs.h.  */
38443_ACEOF
38444cat confdefs.h >>conftest.$ac_ext
38445cat >>conftest.$ac_ext <<_ACEOF
38446/* end confdefs.h.  */
38447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38448   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38449#define $ac_func innocuous_$ac_func
38450
38451/* System header to define __stub macros and hopefully few prototypes,
38452    which can conflict with char $ac_func (); below.
38453    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38454    <limits.h> exists even on freestanding compilers.  */
38455
38456#ifdef __STDC__
38457# include <limits.h>
38458#else
38459# include <assert.h>
38460#endif
38461
38462#undef $ac_func
38463
38464/* Override any GCC internal prototype to avoid an error.
38465   Use char because int might match the return type of a GCC
38466   builtin and then its argument prototype would still apply.  */
38467#ifdef __cplusplus
38468extern "C"
38469#endif
38470char $ac_func ();
38471/* The GNU C library defines this for functions which it implements
38472    to always fail with ENOSYS.  Some functions are actually named
38473    something starting with __ and the normal name is an alias.  */
38474#if defined __stub_$ac_func || defined __stub___$ac_func
38475choke me
38476#endif
38477
38478int
38479main ()
38480{
38481return $ac_func ();
38482  ;
38483  return 0;
38484}
38485_ACEOF
38486rm -f conftest.$ac_objext conftest$ac_exeext
38487if { (ac_try="$ac_link"
38488case "(($ac_try" in
38489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38490  *) ac_try_echo=$ac_try;;
38491esac
38492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38493  (eval "$ac_link") 2>conftest.er1
38494  ac_status=$?
38495  grep -v '^ *+' conftest.er1 >conftest.err
38496  rm -f conftest.er1
38497  cat conftest.err >&5
38498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499  (exit $ac_status); } &&
38500	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38501  { (case "(($ac_try" in
38502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38503  *) ac_try_echo=$ac_try;;
38504esac
38505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38506  (eval "$ac_try") 2>&5
38507  ac_status=$?
38508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509  (exit $ac_status); }; } &&
38510	 { ac_try='test -s conftest$ac_exeext'
38511  { (case "(($ac_try" in
38512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38513  *) ac_try_echo=$ac_try;;
38514esac
38515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38516  (eval "$ac_try") 2>&5
38517  ac_status=$?
38518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519  (exit $ac_status); }; }; then
38520  eval "$as_ac_var=yes"
38521else
38522  echo "$as_me: failed program was:" >&5
38523sed 's/^/| /' conftest.$ac_ext >&5
38524
38525	eval "$as_ac_var=no"
38526fi
38527
38528rm -f core conftest.err conftest.$ac_objext \
38529      conftest$ac_exeext conftest.$ac_ext
38530fi
38531ac_res=`eval echo '${'$as_ac_var'}'`
38532	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38533echo "${ECHO_T}$ac_res" >&6; }
38534if test `eval echo '${'$as_ac_var'}'` = yes; then
38535  cat >>confdefs.h <<_ACEOF
38536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38537_ACEOF
38538
38539fi
38540done
38541
38542  if test $ac_cv_func_readlink = no; then
38543    SRCLIBOBJS="$SRCLIBOBJS readlink.$ac_objext"
38544
38545  :
38546
38547  fi
38548
38549
38550  { echo "$as_me:$LINENO: checking for ssize_t" >&5
38551echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
38552if test "${gt_cv_ssize_t+set}" = set; then
38553  echo $ECHO_N "(cached) $ECHO_C" >&6
38554else
38555  cat >conftest.$ac_ext <<_ACEOF
38556/* confdefs.h.  */
38557_ACEOF
38558cat confdefs.h >>conftest.$ac_ext
38559cat >>conftest.$ac_ext <<_ACEOF
38560/* end confdefs.h.  */
38561#include <sys/types.h>
38562int
38563main ()
38564{
38565int x = sizeof (ssize_t *) + sizeof (ssize_t);
38566        return !x;
38567  ;
38568  return 0;
38569}
38570_ACEOF
38571rm -f conftest.$ac_objext
38572if { (ac_try="$ac_compile"
38573case "(($ac_try" in
38574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38575  *) ac_try_echo=$ac_try;;
38576esac
38577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38578  (eval "$ac_compile") 2>conftest.er1
38579  ac_status=$?
38580  grep -v '^ *+' conftest.er1 >conftest.err
38581  rm -f conftest.er1
38582  cat conftest.err >&5
38583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584  (exit $ac_status); } &&
38585	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38586  { (case "(($ac_try" in
38587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588  *) ac_try_echo=$ac_try;;
38589esac
38590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591  (eval "$ac_try") 2>&5
38592  ac_status=$?
38593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594  (exit $ac_status); }; } &&
38595	 { ac_try='test -s conftest.$ac_objext'
38596  { (case "(($ac_try" in
38597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38598  *) ac_try_echo=$ac_try;;
38599esac
38600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38601  (eval "$ac_try") 2>&5
38602  ac_status=$?
38603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604  (exit $ac_status); }; }; then
38605  gt_cv_ssize_t=yes
38606else
38607  echo "$as_me: failed program was:" >&5
38608sed 's/^/| /' conftest.$ac_ext >&5
38609
38610	gt_cv_ssize_t=no
38611fi
38612
38613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38614fi
38615{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
38616echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
38617  if test $gt_cv_ssize_t = no; then
38618
38619cat >>confdefs.h <<\_ACEOF
38620#define ssize_t int
38621_ACEOF
38622
38623  fi
38624
38625
38626
38627
38628  :
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642OS=""
38643case "$host_os" in
38644  linux*)   OS="linux" ;;
38645  solaris*) OS="solaris" ;;
38646  osf*)     OS="osf" ;;
38647esac
38648if test -n "$OS"; then
38649
38650
38651  PLUGLIB="preloadable_libiconv.so"
38652else
38653  PLUGLIB=""
38654fi
38655
38656
38657if test "$enable_shared" = yes; then
38658  case "$host_os" in
38659    mingw* | cygwin*) is_woe32dll=yes ;;
38660    *) is_woe32dll=no ;;
38661  esac
38662else
38663  is_woe32dll=no
38664fi
38665WOE32DLL=$is_woe32dll
38666
38667if test $is_woe32dll = yes; then
38668  DLL_VARIABLE='__declspec (dllimport)'
38669else
38670  DLL_VARIABLE=
38671fi
38672
38673
38674
38675
38676
38677subdirs="$subdirs libcharset"
38678
38679ac_config_files="$ac_config_files Makefile"
38680
38681ac_config_files="$ac_config_files lib/Makefile"
38682
38683ac_config_files="$ac_config_files srclib/Makefile"
38684
38685ac_config_files="$ac_config_files src/Makefile"
38686
38687ac_config_files="$ac_config_files po/Makefile.in"
38688
38689ac_config_files="$ac_config_files man/Makefile"
38690
38691if test -d "${srcdir}/tests"; then
38692  ac_config_files="$ac_config_files tests/Makefile"
38693
38694fi
38695ac_config_files="$ac_config_files include/iconv.h:include/iconv.h.build.in"
38696
38697ac_config_files="$ac_config_files include/iconv.h.inst:include/iconv.h.in"
38698
38699cat >confcache <<\_ACEOF
38700# This file is a shell script that caches the results of configure
38701# tests run on this system so they can be shared between configure
38702# scripts and configure runs, see configure's option --config-cache.
38703# It is not useful on other systems.  If it contains results you don't
38704# want to keep, you may remove or edit it.
38705#
38706# config.status only pays attention to the cache file if you give it
38707# the --recheck option to rerun configure.
38708#
38709# `ac_cv_env_foo' variables (set or unset) will be overridden when
38710# loading this file, other *unset* `ac_cv_foo' will be assigned the
38711# following values.
38712
38713_ACEOF
38714
38715# The following way of writing the cache mishandles newlines in values,
38716# but we know of no workaround that is simple, portable, and efficient.
38717# So, we kill variables containing newlines.
38718# Ultrix sh set writes to stderr and can't be redirected directly,
38719# and sets the high bit in the cache file unless we assign to the vars.
38720(
38721  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38722    eval ac_val=\$$ac_var
38723    case $ac_val in #(
38724    *${as_nl}*)
38725      case $ac_var in #(
38726      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38727echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38728      esac
38729      case $ac_var in #(
38730      _ | IFS | as_nl) ;; #(
38731      *) $as_unset $ac_var ;;
38732      esac ;;
38733    esac
38734  done
38735
38736  (set) 2>&1 |
38737    case $as_nl`(ac_space=' '; set) 2>&1` in #(
38738    *${as_nl}ac_space=\ *)
38739      # `set' does not quote correctly, so add quotes (double-quote
38740      # substitution turns \\\\ into \\, and sed turns \\ into \).
38741      sed -n \
38742	"s/'/'\\\\''/g;
38743	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38744      ;; #(
38745    *)
38746      # `set' quotes correctly as required by POSIX, so do not add quotes.
38747      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38748      ;;
38749    esac |
38750    sort
38751) |
38752  sed '
38753     /^ac_cv_env_/b end
38754     t clear
38755     :clear
38756     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38757     t end
38758     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38759     :end' >>confcache
38760if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38761  if test -w "$cache_file"; then
38762    test "x$cache_file" != "x/dev/null" &&
38763      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38764echo "$as_me: updating cache $cache_file" >&6;}
38765    cat confcache >$cache_file
38766  else
38767    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38768echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38769  fi
38770fi
38771rm -f confcache
38772
38773test "x$prefix" = xNONE && prefix=$ac_default_prefix
38774# Let make expand exec_prefix.
38775test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38776
38777DEFS=-DHAVE_CONFIG_H
38778
38779ac_libobjs=
38780ac_ltlibobjs=
38781for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38782  # 1. Remove the extension, and $U if already installed.
38783  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38784  ac_i=`echo "$ac_i" | sed "$ac_script"`
38785  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38786  #    will be set to the directory where LIBOBJS objects are built.
38787  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38788  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38789done
38790LIBOBJS=$ac_libobjs
38791
38792LTLIBOBJS=$ac_ltlibobjs
38793
38794
38795if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38796  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38797Usually this means the macro was only invoked conditionally." >&5
38798echo "$as_me: error: conditional \"AMDEP\" was never defined.
38799Usually this means the macro was only invoked conditionally." >&2;}
38800   { (exit 1); exit 1; }; }
38801fi
38802if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38803  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38804Usually this means the macro was only invoked conditionally." >&5
38805echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38806Usually this means the macro was only invoked conditionally." >&2;}
38807   { (exit 1); exit 1; }; }
38808fi
38809if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
38810  { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
38811Usually this means the macro was only invoked conditionally." >&5
38812echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
38813Usually this means the macro was only invoked conditionally." >&2;}
38814   { (exit 1); exit 1; }; }
38815fi
38816if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38817  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38818Usually this means the macro was only invoked conditionally." >&5
38819echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38820Usually this means the macro was only invoked conditionally." >&2;}
38821   { (exit 1); exit 1; }; }
38822fi
38823
38824: ${CONFIG_STATUS=./config.status}
38825ac_clean_files_save=$ac_clean_files
38826ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38827{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38828echo "$as_me: creating $CONFIG_STATUS" >&6;}
38829cat >$CONFIG_STATUS <<_ACEOF
38830#! $SHELL
38831# Generated by $as_me.
38832# Run this file to recreate the current configuration.
38833# Compiler output produced by configure, useful for debugging
38834# configure, is in config.log if it exists.
38835
38836debug=false
38837ac_cs_recheck=false
38838ac_cs_silent=false
38839SHELL=\${CONFIG_SHELL-$SHELL}
38840_ACEOF
38841
38842cat >>$CONFIG_STATUS <<\_ACEOF
38843## --------------------- ##
38844## M4sh Initialization.  ##
38845## --------------------- ##
38846
38847# Be Bourne compatible
38848if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38849  emulate sh
38850  NULLCMD=:
38851  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38852  # is contrary to our usage.  Disable this feature.
38853  alias -g '${1+"$@"}'='"$@"'
38854  setopt NO_GLOB_SUBST
38855else
38856  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
38857fi
38858BIN_SH=xpg4; export BIN_SH # for Tru64
38859DUALCASE=1; export DUALCASE # for MKS sh
38860
38861
38862# PATH needs CR
38863# Avoid depending upon Character Ranges.
38864as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38865as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38866as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38867as_cr_digits='0123456789'
38868as_cr_alnum=$as_cr_Letters$as_cr_digits
38869
38870# The user is always right.
38871if test "${PATH_SEPARATOR+set}" != set; then
38872  echo "#! /bin/sh" >conf$$.sh
38873  echo  "exit 0"   >>conf$$.sh
38874  chmod +x conf$$.sh
38875  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38876    PATH_SEPARATOR=';'
38877  else
38878    PATH_SEPARATOR=:
38879  fi
38880  rm -f conf$$.sh
38881fi
38882
38883# Support unset when possible.
38884if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38885  as_unset=unset
38886else
38887  as_unset=false
38888fi
38889
38890
38891# IFS
38892# We need space, tab and new line, in precisely that order.  Quoting is
38893# there to prevent editors from complaining about space-tab.
38894# (If _AS_PATH_WALK were called with IFS unset, it would disable word
38895# splitting by setting IFS to empty value.)
38896as_nl='
38897'
38898IFS=" ""	$as_nl"
38899
38900# Find who we are.  Look in the path if we contain no directory separator.
38901case $0 in
38902  *[\\/]* ) as_myself=$0 ;;
38903  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38904for as_dir in $PATH
38905do
38906  IFS=$as_save_IFS
38907  test -z "$as_dir" && as_dir=.
38908  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38909done
38910IFS=$as_save_IFS
38911
38912     ;;
38913esac
38914# We did not find ourselves, most probably we were run as `sh COMMAND'
38915# in which case we are not to be found in the path.
38916if test "x$as_myself" = x; then
38917  as_myself=$0
38918fi
38919if test ! -f "$as_myself"; then
38920  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38921  { (exit 1); exit 1; }
38922fi
38923
38924# Work around bugs in pre-3.0 UWIN ksh.
38925for as_var in ENV MAIL MAILPATH
38926do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38927done
38928PS1='$ '
38929PS2='> '
38930PS4='+ '
38931
38932# NLS nuisances.
38933for as_var in \
38934  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38935  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38936  LC_TELEPHONE LC_TIME
38937do
38938  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38939    eval $as_var=C; export $as_var
38940  else
38941    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38942  fi
38943done
38944
38945# Required to use basename.
38946if expr a : '\(a\)' >/dev/null 2>&1 &&
38947   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38948  as_expr=expr
38949else
38950  as_expr=false
38951fi
38952
38953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38954  as_basename=basename
38955else
38956  as_basename=false
38957fi
38958
38959
38960# Name of the executable.
38961as_me=`$as_basename -- "$0" ||
38962$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38963	 X"$0" : 'X\(//\)$' \| \
38964	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38965echo X/"$0" |
38966    sed '/^.*\/\([^/][^/]*\)\/*$/{
38967	    s//\1/
38968	    q
38969	  }
38970	  /^X\/\(\/\/\)$/{
38971	    s//\1/
38972	    q
38973	  }
38974	  /^X\/\(\/\).*/{
38975	    s//\1/
38976	    q
38977	  }
38978	  s/.*/./; q'`
38979
38980# CDPATH.
38981$as_unset CDPATH
38982
38983
38984
38985  as_lineno_1=$LINENO
38986  as_lineno_2=$LINENO
38987  test "x$as_lineno_1" != "x$as_lineno_2" &&
38988  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38989
38990  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38991  # uniformly replaced by the line number.  The first 'sed' inserts a
38992  # line-number line after each line using $LINENO; the second 'sed'
38993  # does the real work.  The second script uses 'N' to pair each
38994  # line-number line with the line containing $LINENO, and appends
38995  # trailing '-' during substitution so that $LINENO is not a special
38996  # case at line end.
38997  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38998  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38999  # E. McMahon (1931-1989) for sed's syntax.  :-)
39000  sed -n '
39001    p
39002    /[$]LINENO/=
39003  ' <$as_myself |
39004    sed '
39005      s/[$]LINENO.*/&-/
39006      t lineno
39007      b
39008      :lineno
39009      N
39010      :loop
39011      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39012      t loop
39013      s/-\n.*//
39014    ' >$as_me.lineno &&
39015  chmod +x "$as_me.lineno" ||
39016    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39017   { (exit 1); exit 1; }; }
39018
39019  # Don't try to exec as it changes $[0], causing all sort of problems
39020  # (the dirname of $[0] is not the place where we might find the
39021  # original and so on.  Autoconf is especially sensitive to this).
39022  . "./$as_me.lineno"
39023  # Exit status is that of the last command.
39024  exit
39025}
39026
39027
39028if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39029  as_dirname=dirname
39030else
39031  as_dirname=false
39032fi
39033
39034ECHO_C= ECHO_N= ECHO_T=
39035case `echo -n x` in
39036-n*)
39037  case `echo 'x\c'` in
39038  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
39039  *)   ECHO_C='\c';;
39040  esac;;
39041*)
39042  ECHO_N='-n';;
39043esac
39044
39045if expr a : '\(a\)' >/dev/null 2>&1 &&
39046   test "X`expr 00001 : '.*\(...\)'`" = X001; then
39047  as_expr=expr
39048else
39049  as_expr=false
39050fi
39051
39052rm -f conf$$ conf$$.exe conf$$.file
39053if test -d conf$$.dir; then
39054  rm -f conf$$.dir/conf$$.file
39055else
39056  rm -f conf$$.dir
39057  mkdir conf$$.dir
39058fi
39059echo >conf$$.file
39060if ln -s conf$$.file conf$$ 2>/dev/null; then
39061  as_ln_s='ln -s'
39062  # ... but there are two gotchas:
39063  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39064  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39065  # In both cases, we have to default to `cp -p'.
39066  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39067    as_ln_s='cp -p'
39068elif ln conf$$.file conf$$ 2>/dev/null; then
39069  as_ln_s=ln
39070else
39071  as_ln_s='cp -p'
39072fi
39073rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39074rmdir conf$$.dir 2>/dev/null
39075
39076if mkdir -p . 2>/dev/null; then
39077  as_mkdir_p=:
39078else
39079  test -d ./-p && rmdir ./-p
39080  as_mkdir_p=false
39081fi
39082
39083# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
39084# systems may use methods other than mode bits to determine executability.
39085cat >conf$$.file <<_ASEOF
39086#! /bin/sh
39087exit 0
39088_ASEOF
39089chmod +x conf$$.file
39090if test -x conf$$.file >/dev/null 2>&1; then
39091  as_executable_p="test -x"
39092else
39093  as_executable_p=:
39094fi
39095rm -f conf$$.file
39096
39097# Sed expression to map a string onto a valid CPP name.
39098as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39099
39100# Sed expression to map a string onto a valid variable name.
39101as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39102
39103
39104exec 6>&1
39105
39106# Save the log message, to keep $[0] and so on meaningful, and to
39107# report actual input values of CONFIG_FILES etc. instead of their
39108# values after options handling.
39109ac_log="
39110This file was extended by $as_me, which was
39111generated by GNU Autoconf 2.60.  Invocation command line was
39112
39113  CONFIG_FILES    = $CONFIG_FILES
39114  CONFIG_HEADERS  = $CONFIG_HEADERS
39115  CONFIG_LINKS    = $CONFIG_LINKS
39116  CONFIG_COMMANDS = $CONFIG_COMMANDS
39117  $ $0 $@
39118
39119on `(hostname || uname -n) 2>/dev/null | sed 1q`
39120"
39121
39122_ACEOF
39123
39124cat >>$CONFIG_STATUS <<_ACEOF
39125# Files that config.status was made for.
39126config_files="$ac_config_files"
39127config_headers="$ac_config_headers"
39128config_commands="$ac_config_commands"
39129
39130_ACEOF
39131
39132cat >>$CONFIG_STATUS <<\_ACEOF
39133ac_cs_usage="\
39134\`$as_me' instantiates files from templates according to the
39135current configuration.
39136
39137Usage: $0 [OPTIONS] [FILE]...
39138
39139  -h, --help       print this help, then exit
39140  -V, --version    print version number, then exit
39141  -q, --quiet      do not print progress messages
39142  -d, --debug      don't remove temporary files
39143      --recheck    update $as_me by reconfiguring in the same conditions
39144  --file=FILE[:TEMPLATE]
39145		   instantiate the configuration file FILE
39146  --header=FILE[:TEMPLATE]
39147		   instantiate the configuration header FILE
39148
39149Configuration files:
39150$config_files
39151
39152Configuration headers:
39153$config_headers
39154
39155Configuration commands:
39156$config_commands
39157
39158Report bugs to <bug-autoconf@gnu.org>."
39159
39160_ACEOF
39161cat >>$CONFIG_STATUS <<_ACEOF
39162ac_cs_version="\\
39163config.status
39164configured by $0, generated by GNU Autoconf 2.60,
39165  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39166
39167Copyright (C) 2006 Free Software Foundation, Inc.
39168This config.status script is free software; the Free Software Foundation
39169gives unlimited permission to copy, distribute and modify it."
39170
39171ac_pwd='$ac_pwd'
39172srcdir='$srcdir'
39173INSTALL='$INSTALL'
39174_ACEOF
39175
39176cat >>$CONFIG_STATUS <<\_ACEOF
39177# If no file are specified by the user, then we need to provide default
39178# value.  By we need to know if files were specified by the user.
39179ac_need_defaults=:
39180while test $# != 0
39181do
39182  case $1 in
39183  --*=*)
39184    ac_option=`expr "X$1" : 'X\([^=]*\)='`
39185    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39186    ac_shift=:
39187    ;;
39188  *)
39189    ac_option=$1
39190    ac_optarg=$2
39191    ac_shift=shift
39192    ;;
39193  esac
39194
39195  case $ac_option in
39196  # Handling of the options.
39197  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39198    ac_cs_recheck=: ;;
39199  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39200    echo "$ac_cs_version"; exit ;;
39201  --debug | --debu | --deb | --de | --d | -d )
39202    debug=: ;;
39203  --file | --fil | --fi | --f )
39204    $ac_shift
39205    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39206    ac_need_defaults=false;;
39207  --header | --heade | --head | --hea )
39208    $ac_shift
39209    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39210    ac_need_defaults=false;;
39211  --he | --h)
39212    # Conflict between --help and --header
39213    { echo "$as_me: error: ambiguous option: $1
39214Try \`$0 --help' for more information." >&2
39215   { (exit 1); exit 1; }; };;
39216  --help | --hel | -h )
39217    echo "$ac_cs_usage"; exit ;;
39218  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39219  | -silent | --silent | --silen | --sile | --sil | --si | --s)
39220    ac_cs_silent=: ;;
39221
39222  # This is an error.
39223  -*) { echo "$as_me: error: unrecognized option: $1
39224Try \`$0 --help' for more information." >&2
39225   { (exit 1); exit 1; }; } ;;
39226
39227  *) ac_config_targets="$ac_config_targets $1"
39228     ac_need_defaults=false ;;
39229
39230  esac
39231  shift
39232done
39233
39234ac_configure_extra_args=
39235
39236if $ac_cs_silent; then
39237  exec 6>/dev/null
39238  ac_configure_extra_args="$ac_configure_extra_args --silent"
39239fi
39240
39241_ACEOF
39242cat >>$CONFIG_STATUS <<_ACEOF
39243if \$ac_cs_recheck; then
39244  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39245  CONFIG_SHELL=$SHELL
39246  export CONFIG_SHELL
39247  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39248fi
39249
39250_ACEOF
39251cat >>$CONFIG_STATUS <<\_ACEOF
39252exec 5>>config.log
39253{
39254  echo
39255  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39256## Running $as_me. ##
39257_ASBOX
39258  echo "$ac_log"
39259} >&5
39260
39261_ACEOF
39262cat >>$CONFIG_STATUS <<_ACEOF
39263#
39264# INIT-COMMANDS
39265#
39266AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39267# Capture the value of obsolete ALL_LINGUAS because we need it to compute
39268    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
39269    # from automake < 1.5.
39270    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
39271    # Capture the value of LINGUAS because we need it to compute CATALOGS.
39272    LINGUAS="${LINGUAS-%UNSET%}"
39273
39274
39275_ACEOF
39276
39277cat >>$CONFIG_STATUS <<\_ACEOF
39278
39279# Handling of arguments.
39280for ac_config_target in $ac_config_targets
39281do
39282  case $ac_config_target in
39283    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39284    "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
39285    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39286    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
39287    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39288    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
39289    "srclib/Makefile") CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
39290    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39291    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
39292    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39293    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
39294    "include/iconv.h") CONFIG_FILES="$CONFIG_FILES include/iconv.h:include/iconv.h.build.in" ;;
39295    "include/iconv.h.inst") CONFIG_FILES="$CONFIG_FILES include/iconv.h.inst:include/iconv.h.in" ;;
39296
39297  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39298echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39299   { (exit 1); exit 1; }; };;
39300  esac
39301done
39302
39303
39304# If the user did not use the arguments to specify the items to instantiate,
39305# then the envvar interface is used.  Set only those that are not.
39306# We use the long form for the default assignment because of an extremely
39307# bizarre bug on SunOS 4.1.3.
39308if $ac_need_defaults; then
39309  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39310  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39311  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39312fi
39313
39314# Have a temporary directory for convenience.  Make it in the build tree
39315# simply because there is no reason against having it here, and in addition,
39316# creating and moving files from /tmp can sometimes cause problems.
39317# Hook for its removal unless debugging.
39318# Note that there is a small window in which the directory will not be cleaned:
39319# after its creation but before its name has been assigned to `$tmp'.
39320$debug ||
39321{
39322  tmp=
39323  trap 'exit_status=$?
39324  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39325' 0
39326  trap '{ (exit 1); exit 1; }' 1 2 13 15
39327}
39328# Create a (secure) tmp directory for tmp files.
39329
39330{
39331  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39332  test -n "$tmp" && test -d "$tmp"
39333}  ||
39334{
39335  tmp=./conf$$-$RANDOM
39336  (umask 077 && mkdir "$tmp")
39337} ||
39338{
39339   echo "$me: cannot create a temporary directory in ." >&2
39340   { (exit 1); exit 1; }
39341}
39342
39343#
39344# Set up the sed scripts for CONFIG_FILES section.
39345#
39346
39347# No need to generate the scripts if there are no CONFIG_FILES.
39348# This happens for instance when ./config.status config.h
39349if test -n "$CONFIG_FILES"; then
39350
39351_ACEOF
39352
39353
39354
39355ac_delim='%!_!# '
39356for ac_last_try in false false false false false :; do
39357  cat >conf$$subs.sed <<_ACEOF
39358SHELL!$SHELL$ac_delim
39359PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39360PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39361PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39362PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39363PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39364PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39365exec_prefix!$exec_prefix$ac_delim
39366prefix!$prefix$ac_delim
39367program_transform_name!$program_transform_name$ac_delim
39368bindir!$bindir$ac_delim
39369sbindir!$sbindir$ac_delim
39370libexecdir!$libexecdir$ac_delim
39371datarootdir!$datarootdir$ac_delim
39372datadir!$datadir$ac_delim
39373sysconfdir!$sysconfdir$ac_delim
39374sharedstatedir!$sharedstatedir$ac_delim
39375localstatedir!$localstatedir$ac_delim
39376includedir!$includedir$ac_delim
39377oldincludedir!$oldincludedir$ac_delim
39378docdir!$docdir$ac_delim
39379infodir!$infodir$ac_delim
39380htmldir!$htmldir$ac_delim
39381dvidir!$dvidir$ac_delim
39382pdfdir!$pdfdir$ac_delim
39383psdir!$psdir$ac_delim
39384libdir!$libdir$ac_delim
39385localedir!$localedir$ac_delim
39386mandir!$mandir$ac_delim
39387DEFS!$DEFS$ac_delim
39388ECHO_C!$ECHO_C$ac_delim
39389ECHO_N!$ECHO_N$ac_delim
39390ECHO_T!$ECHO_T$ac_delim
39391LIBS!$LIBS$ac_delim
39392build_alias!$build_alias$ac_delim
39393host_alias!$host_alias$ac_delim
39394target_alias!$target_alias$ac_delim
39395INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39396INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39397INSTALL_DATA!$INSTALL_DATA$ac_delim
39398CYGPATH_W!$CYGPATH_W$ac_delim
39399PACKAGE!$PACKAGE$ac_delim
39400VERSION!$VERSION$ac_delim
39401ACLOCAL!$ACLOCAL$ac_delim
39402AUTOCONF!$AUTOCONF$ac_delim
39403AUTOMAKE!$AUTOMAKE$ac_delim
39404AUTOHEADER!$AUTOHEADER$ac_delim
39405MAKEINFO!$MAKEINFO$ac_delim
39406install_sh!$install_sh$ac_delim
39407STRIP!$STRIP$ac_delim
39408INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39409mkdir_p!$mkdir_p$ac_delim
39410AWK!$AWK$ac_delim
39411SET_MAKE!$SET_MAKE$ac_delim
39412am__leading_dot!$am__leading_dot$ac_delim
39413AMTAR!$AMTAR$ac_delim
39414am__tar!$am__tar$ac_delim
39415am__untar!$am__untar$ac_delim
39416CC!$CC$ac_delim
39417CFLAGS!$CFLAGS$ac_delim
39418LDFLAGS!$LDFLAGS$ac_delim
39419CPPFLAGS!$CPPFLAGS$ac_delim
39420ac_ct_CC!$ac_ct_CC$ac_delim
39421EXEEXT!$EXEEXT$ac_delim
39422OBJEXT!$OBJEXT$ac_delim
39423DEPDIR!$DEPDIR$ac_delim
39424am__include!$am__include$ac_delim
39425am__quote!$am__quote$ac_delim
39426AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39427AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39428AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39429CCDEPMODE!$CCDEPMODE$ac_delim
39430am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39431am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39432CPP!$CPP$ac_delim
39433GREP!$GREP$ac_delim
39434EGREP!$EGREP$ac_delim
39435build!$build$ac_delim
39436build_cpu!$build_cpu$ac_delim
39437build_vendor!$build_vendor$ac_delim
39438build_os!$build_os$ac_delim
39439host!$host$ac_delim
39440host_cpu!$host_cpu$ac_delim
39441host_vendor!$host_vendor$ac_delim
39442host_os!$host_os$ac_delim
39443RELOCATABLE!$RELOCATABLE$ac_delim
39444SET_RELOCATABLE!$SET_RELOCATABLE$ac_delim
39445RELOCATABLE_VIA_LD_TRUE!$RELOCATABLE_VIA_LD_TRUE$ac_delim
39446RELOCATABLE_VIA_LD_FALSE!$RELOCATABLE_VIA_LD_FALSE$ac_delim
39447USE_EXTRA_ENCODINGS!$USE_EXTRA_ENCODINGS$ac_delim
39448RANLIB!$RANLIB$ac_delim
39449CP!$CP$ac_delim
39450LN!$LN$ac_delim
39451LN_S!$LN_S$ac_delim
39452ECHO!$ECHO$ac_delim
39453AR!$AR$ac_delim
39454DLLTOOL!$DLLTOOL$ac_delim
39455_ACEOF
39456
39457  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39458    break
39459  elif $ac_last_try; then
39460    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39461echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39462   { (exit 1); exit 1; }; }
39463  else
39464    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39465  fi
39466done
39467
39468ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39469if test -n "$ac_eof"; then
39470  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39471  ac_eof=`expr $ac_eof + 1`
39472fi
39473
39474cat >>$CONFIG_STATUS <<_ACEOF
39475cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39476/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39477_ACEOF
39478sed '
39479s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39480s/^/s,@/; s/!/@,|#_!!_#|/
39481:n
39482t n
39483s/'"$ac_delim"'$/,g/; t
39484s/$/\\/; p
39485N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39486' >>$CONFIG_STATUS <conf$$subs.sed
39487rm -f conf$$subs.sed
39488cat >>$CONFIG_STATUS <<_ACEOF
39489CEOF$ac_eof
39490_ACEOF
39491
39492
39493ac_delim='%!_!# '
39494for ac_last_try in false false false false false :; do
39495  cat >conf$$subs.sed <<_ACEOF
39496AS!$AS$ac_delim
39497OBJDUMP!$OBJDUMP$ac_delim
39498CXX!$CXX$ac_delim
39499CXXFLAGS!$CXXFLAGS$ac_delim
39500ac_ct_CXX!$ac_ct_CXX$ac_delim
39501CXXDEPMODE!$CXXDEPMODE$ac_delim
39502am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
39503am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
39504CXXCPP!$CXXCPP$ac_delim
39505F77!$F77$ac_delim
39506FFLAGS!$FFLAGS$ac_delim
39507ac_ct_F77!$ac_ct_F77$ac_delim
39508LIBTOOL!$LIBTOOL$ac_delim
39509CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
39510HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
39511LIBICONV!$LIBICONV$ac_delim
39512LTLIBICONV!$LTLIBICONV$ac_delim
39513USE_NLS!$USE_NLS$ac_delim
39514MSGFMT!$MSGFMT$ac_delim
39515GMSGFMT!$GMSGFMT$ac_delim
39516MSGFMT_015!$MSGFMT_015$ac_delim
39517GMSGFMT_015!$GMSGFMT_015$ac_delim
39518XGETTEXT!$XGETTEXT$ac_delim
39519XGETTEXT_015!$XGETTEXT_015$ac_delim
39520MSGMERGE!$MSGMERGE$ac_delim
39521INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
39522INTLLIBS!$INTLLIBS$ac_delim
39523LIBINTL!$LIBINTL$ac_delim
39524LTLIBINTL!$LTLIBINTL$ac_delim
39525POSUB!$POSUB$ac_delim
39526UNISTD_H!$UNISTD_H$ac_delim
39527HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
39528FULL_PATH_STDINT_H!$FULL_PATH_STDINT_H$ac_delim
39529HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
39530FULL_PATH_INTTYPES_H!$FULL_PATH_INTTYPES_H$ac_delim
39531HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
39532HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
39533HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
39534HAVE_LONG_64BIT!$HAVE_LONG_64BIT$ac_delim
39535HAVE_LONG_LONG_64BIT!$HAVE_LONG_LONG_64BIT$ac_delim
39536HAVE_INT8_T!$HAVE_INT8_T$ac_delim
39537HAVE_INT16_T!$HAVE_INT16_T$ac_delim
39538HAVE_INT32_T!$HAVE_INT32_T$ac_delim
39539HAVE_INT64_T!$HAVE_INT64_T$ac_delim
39540HAVE_UINT8_T!$HAVE_UINT8_T$ac_delim
39541HAVE_UINT16_T!$HAVE_UINT16_T$ac_delim
39542HAVE_UINT32_T!$HAVE_UINT32_T$ac_delim
39543HAVE_UINT64_T!$HAVE_UINT64_T$ac_delim
39544HAVE_INT_LEAST8_T!$HAVE_INT_LEAST8_T$ac_delim
39545HAVE_INT_LEAST16_T!$HAVE_INT_LEAST16_T$ac_delim
39546HAVE_INT_LEAST32_T!$HAVE_INT_LEAST32_T$ac_delim
39547HAVE_INT_LEAST64_T!$HAVE_INT_LEAST64_T$ac_delim
39548HAVE_UINT_LEAST8_T!$HAVE_UINT_LEAST8_T$ac_delim
39549HAVE_UINT_LEAST16_T!$HAVE_UINT_LEAST16_T$ac_delim
39550HAVE_UINT_LEAST32_T!$HAVE_UINT_LEAST32_T$ac_delim
39551HAVE_UINT_LEAST64_T!$HAVE_UINT_LEAST64_T$ac_delim
39552HAVE_INT_FAST8_T!$HAVE_INT_FAST8_T$ac_delim
39553HAVE_INT_FAST16_T!$HAVE_INT_FAST16_T$ac_delim
39554HAVE_INT_FAST32_T!$HAVE_INT_FAST32_T$ac_delim
39555HAVE_INT_FAST64_T!$HAVE_INT_FAST64_T$ac_delim
39556HAVE_UINT_FAST8_T!$HAVE_UINT_FAST8_T$ac_delim
39557HAVE_UINT_FAST16_T!$HAVE_UINT_FAST16_T$ac_delim
39558HAVE_UINT_FAST32_T!$HAVE_UINT_FAST32_T$ac_delim
39559HAVE_UINT_FAST64_T!$HAVE_UINT_FAST64_T$ac_delim
39560HAVE_INTPTR_T!$HAVE_INTPTR_T$ac_delim
39561HAVE_UINTPTR_T!$HAVE_UINTPTR_T$ac_delim
39562HAVE_INTMAX_T!$HAVE_INTMAX_T$ac_delim
39563HAVE_UINTMAX_T!$HAVE_UINTMAX_T$ac_delim
39564HAVE_INT64_T_IN_STDINT_H!$HAVE_INT64_T_IN_STDINT_H$ac_delim
39565HAVE_UINT64_T_IN_STDINT_H!$HAVE_UINT64_T_IN_STDINT_H$ac_delim
39566HAVE_INT_LEAST64_T_IN_STDINT_H!$HAVE_INT_LEAST64_T_IN_STDINT_H$ac_delim
39567HAVE_UINT_LEAST64_T_IN_STDINT_H!$HAVE_UINT_LEAST64_T_IN_STDINT_H$ac_delim
39568HAVE_INT_FAST64_T_IN_STDINT_H!$HAVE_INT_FAST64_T_IN_STDINT_H$ac_delim
39569HAVE_UINT_FAST64_T_IN_STDINT_H!$HAVE_UINT_FAST64_T_IN_STDINT_H$ac_delim
39570BITSIZEOF_INT8_T!$BITSIZEOF_INT8_T$ac_delim
39571BITSIZEOF_INT16_T!$BITSIZEOF_INT16_T$ac_delim
39572BITSIZEOF_INT32_T!$BITSIZEOF_INT32_T$ac_delim
39573BITSIZEOF_INT64_T!$BITSIZEOF_INT64_T$ac_delim
39574BITSIZEOF_UINT8_T!$BITSIZEOF_UINT8_T$ac_delim
39575BITSIZEOF_UINT16_T!$BITSIZEOF_UINT16_T$ac_delim
39576BITSIZEOF_UINT32_T!$BITSIZEOF_UINT32_T$ac_delim
39577BITSIZEOF_UINT64_T!$BITSIZEOF_UINT64_T$ac_delim
39578BITSIZEOF_INT_LEAST8_T!$BITSIZEOF_INT_LEAST8_T$ac_delim
39579BITSIZEOF_INT_LEAST16_T!$BITSIZEOF_INT_LEAST16_T$ac_delim
39580BITSIZEOF_INT_LEAST32_T!$BITSIZEOF_INT_LEAST32_T$ac_delim
39581BITSIZEOF_INT_LEAST64_T!$BITSIZEOF_INT_LEAST64_T$ac_delim
39582BITSIZEOF_UINT_LEAST8_T!$BITSIZEOF_UINT_LEAST8_T$ac_delim
39583BITSIZEOF_UINT_LEAST16_T!$BITSIZEOF_UINT_LEAST16_T$ac_delim
39584BITSIZEOF_UINT_LEAST32_T!$BITSIZEOF_UINT_LEAST32_T$ac_delim
39585BITSIZEOF_UINT_LEAST64_T!$BITSIZEOF_UINT_LEAST64_T$ac_delim
39586BITSIZEOF_INT_FAST8_T!$BITSIZEOF_INT_FAST8_T$ac_delim
39587BITSIZEOF_INT_FAST16_T!$BITSIZEOF_INT_FAST16_T$ac_delim
39588BITSIZEOF_INT_FAST32_T!$BITSIZEOF_INT_FAST32_T$ac_delim
39589BITSIZEOF_INT_FAST64_T!$BITSIZEOF_INT_FAST64_T$ac_delim
39590BITSIZEOF_UINT_FAST8_T!$BITSIZEOF_UINT_FAST8_T$ac_delim
39591BITSIZEOF_UINT_FAST16_T!$BITSIZEOF_UINT_FAST16_T$ac_delim
39592BITSIZEOF_UINT_FAST32_T!$BITSIZEOF_UINT_FAST32_T$ac_delim
39593_ACEOF
39594
39595  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39596    break
39597  elif $ac_last_try; then
39598    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39599echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39600   { (exit 1); exit 1; }; }
39601  else
39602    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39603  fi
39604done
39605
39606ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39607if test -n "$ac_eof"; then
39608  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39609  ac_eof=`expr $ac_eof + 1`
39610fi
39611
39612cat >>$CONFIG_STATUS <<_ACEOF
39613cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39614/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39615_ACEOF
39616sed '
39617s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39618s/^/s,@/; s/!/@,|#_!!_#|/
39619:n
39620t n
39621s/'"$ac_delim"'$/,g/; t
39622s/$/\\/; p
39623N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39624' >>$CONFIG_STATUS <conf$$subs.sed
39625rm -f conf$$subs.sed
39626cat >>$CONFIG_STATUS <<_ACEOF
39627CEOF$ac_eof
39628_ACEOF
39629
39630
39631ac_delim='%!_!# '
39632for ac_last_try in false false false false false :; do
39633  cat >conf$$subs.sed <<_ACEOF
39634BITSIZEOF_UINT_FAST64_T!$BITSIZEOF_UINT_FAST64_T$ac_delim
39635BITSIZEOF_INTPTR_T!$BITSIZEOF_INTPTR_T$ac_delim
39636BITSIZEOF_UINTPTR_T!$BITSIZEOF_UINTPTR_T$ac_delim
39637BITSIZEOF_INTMAX_T!$BITSIZEOF_INTMAX_T$ac_delim
39638BITSIZEOF_UINTMAX_T!$BITSIZEOF_UINTMAX_T$ac_delim
39639BITSIZEOF_UNSIGNED_INT!$BITSIZEOF_UNSIGNED_INT$ac_delim
39640BITSIZEOF_LONG!$BITSIZEOF_LONG$ac_delim
39641BITSIZEOF_UNSIGNED_LONG!$BITSIZEOF_UNSIGNED_LONG$ac_delim
39642BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
39643BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
39644SAME_TYPE_PTRDIFF_T_LONG!$SAME_TYPE_PTRDIFF_T_LONG$ac_delim
39645SAME_TYPE_SIZE_T_UNSIGNED_LONG!$SAME_TYPE_SIZE_T_UNSIGNED_LONG$ac_delim
39646BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
39647HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
39648SAME_TYPE_SIG_ATOMIC_T_LONG!$SAME_TYPE_SIG_ATOMIC_T_LONG$ac_delim
39649SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG!$SAME_TYPE_SIG_ATOMIC_T_UNSIGNED_LONG$ac_delim
39650BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
39651HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
39652SAME_TYPE_WCHAR_T_LONG!$SAME_TYPE_WCHAR_T_LONG$ac_delim
39653SAME_TYPE_WCHAR_T_UNSIGNED_LONG!$SAME_TYPE_WCHAR_T_UNSIGNED_LONG$ac_delim
39654BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
39655HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
39656SAME_TYPE_WINT_T_LONG!$SAME_TYPE_WINT_T_LONG$ac_delim
39657SAME_TYPE_WINT_T_UNSIGNED_LONG!$SAME_TYPE_WINT_T_UNSIGNED_LONG$ac_delim
39658STDINT_H!$STDINT_H$ac_delim
39659ICONV_CONST!$ICONV_CONST$ac_delim
39660HAVE_WCHAR_T!$HAVE_WCHAR_T$ac_delim
39661EILSEQ!$EILSEQ$ac_delim
39662ALLOCA!$ALLOCA$ac_delim
39663ALLOCA_H!$ALLOCA_H$ac_delim
39664STDBOOL_H!$STDBOOL_H$ac_delim
39665HAVE__BOOL!$HAVE__BOOL$ac_delim
39666SRCLIBOBJS!$SRCLIBOBJS$ac_delim
39667OS!$OS$ac_delim
39668GCC!$GCC$ac_delim
39669PLUGLIB!$PLUGLIB$ac_delim
39670WOE32DLL!$WOE32DLL$ac_delim
39671DLL_VARIABLE!$DLL_VARIABLE$ac_delim
39672subdirs!$subdirs$ac_delim
39673LIBOBJS!$LIBOBJS$ac_delim
39674LTLIBOBJS!$LTLIBOBJS$ac_delim
39675_ACEOF
39676
39677  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
39678    break
39679  elif $ac_last_try; then
39680    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39681echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39682   { (exit 1); exit 1; }; }
39683  else
39684    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39685  fi
39686done
39687
39688ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39689if test -n "$ac_eof"; then
39690  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39691  ac_eof=`expr $ac_eof + 1`
39692fi
39693
39694cat >>$CONFIG_STATUS <<_ACEOF
39695cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
39696/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39697_ACEOF
39698sed '
39699s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39700s/^/s,@/; s/!/@,|#_!!_#|/
39701:n
39702t n
39703s/'"$ac_delim"'$/,g/; t
39704s/$/\\/; p
39705N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39706' >>$CONFIG_STATUS <conf$$subs.sed
39707rm -f conf$$subs.sed
39708cat >>$CONFIG_STATUS <<_ACEOF
39709:end
39710s/|#_!!_#|//g
39711CEOF$ac_eof
39712_ACEOF
39713
39714
39715# VPATH may cause trouble with some makes, so we remove $(srcdir),
39716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39717# trailing colons and then remove the whole line if VPATH becomes empty
39718# (actually we leave an empty line to preserve line numbers).
39719if test "x$srcdir" = x.; then
39720  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39721s/:*\$(srcdir):*/:/
39722s/:*\${srcdir}:*/:/
39723s/:*@srcdir@:*/:/
39724s/^\([^=]*=[	 ]*\):*/\1/
39725s/:*$//
39726s/^[^=]*=[	 ]*$//
39727}'
39728fi
39729
39730cat >>$CONFIG_STATUS <<\_ACEOF
39731fi # test -n "$CONFIG_FILES"
39732
39733
39734for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39735do
39736  case $ac_tag in
39737  :[FHLC]) ac_mode=$ac_tag; continue;;
39738  esac
39739  case $ac_mode$ac_tag in
39740  :[FHL]*:*);;
39741  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39742echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39743   { (exit 1); exit 1; }; };;
39744  :[FH]-) ac_tag=-:-;;
39745  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39746  esac
39747  ac_save_IFS=$IFS
39748  IFS=:
39749  set x $ac_tag
39750  IFS=$ac_save_IFS
39751  shift
39752  ac_file=$1
39753  shift
39754
39755  case $ac_mode in
39756  :L) ac_source=$1;;
39757  :[FH])
39758    ac_file_inputs=
39759    for ac_f
39760    do
39761      case $ac_f in
39762      -) ac_f="$tmp/stdin";;
39763      *) # Look for the file first in the build tree, then in the source tree
39764	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39765	 # because $ac_f cannot contain `:'.
39766	 test -f "$ac_f" ||
39767	   case $ac_f in
39768	   [\\/$]*) false;;
39769	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39770	   esac ||
39771	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39772echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39773   { (exit 1); exit 1; }; };;
39774      esac
39775      ac_file_inputs="$ac_file_inputs $ac_f"
39776    done
39777
39778    # Let's still pretend it is `configure' which instantiates (i.e., don't
39779    # use $as_me), people would be surprised to read:
39780    #    /* config.h.  Generated by config.status.  */
39781    configure_input="Generated from "`IFS=:
39782	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39783    if test x"$ac_file" != x-; then
39784      configure_input="$ac_file.  $configure_input"
39785      { echo "$as_me:$LINENO: creating $ac_file" >&5
39786echo "$as_me: creating $ac_file" >&6;}
39787    fi
39788
39789    case $ac_tag in
39790    *:-:* | *:-) cat >"$tmp/stdin";;
39791    esac
39792    ;;
39793  esac
39794
39795  ac_dir=`$as_dirname -- "$ac_file" ||
39796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39797	 X"$ac_file" : 'X\(//\)[^/]' \| \
39798	 X"$ac_file" : 'X\(//\)$' \| \
39799	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39800echo X"$ac_file" |
39801    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39802	    s//\1/
39803	    q
39804	  }
39805	  /^X\(\/\/\)[^/].*/{
39806	    s//\1/
39807	    q
39808	  }
39809	  /^X\(\/\/\)$/{
39810	    s//\1/
39811	    q
39812	  }
39813	  /^X\(\/\).*/{
39814	    s//\1/
39815	    q
39816	  }
39817	  s/.*/./; q'`
39818  { as_dir="$ac_dir"
39819  case $as_dir in #(
39820  -*) as_dir=./$as_dir;;
39821  esac
39822  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39823    as_dirs=
39824    while :; do
39825      case $as_dir in #(
39826      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39827      *) as_qdir=$as_dir;;
39828      esac
39829      as_dirs="'$as_qdir' $as_dirs"
39830      as_dir=`$as_dirname -- "$as_dir" ||
39831$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39832	 X"$as_dir" : 'X\(//\)[^/]' \| \
39833	 X"$as_dir" : 'X\(//\)$' \| \
39834	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39835echo X"$as_dir" |
39836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39837	    s//\1/
39838	    q
39839	  }
39840	  /^X\(\/\/\)[^/].*/{
39841	    s//\1/
39842	    q
39843	  }
39844	  /^X\(\/\/\)$/{
39845	    s//\1/
39846	    q
39847	  }
39848	  /^X\(\/\).*/{
39849	    s//\1/
39850	    q
39851	  }
39852	  s/.*/./; q'`
39853      test -d "$as_dir" && break
39854    done
39855    test -z "$as_dirs" || eval "mkdir $as_dirs"
39856  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39857echo "$as_me: error: cannot create directory $as_dir" >&2;}
39858   { (exit 1); exit 1; }; }; }
39859  ac_builddir=.
39860
39861case "$ac_dir" in
39862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39863*)
39864  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39865  # A ".." for each directory in $ac_dir_suffix.
39866  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39867  case $ac_top_builddir_sub in
39868  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39869  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39870  esac ;;
39871esac
39872ac_abs_top_builddir=$ac_pwd
39873ac_abs_builddir=$ac_pwd$ac_dir_suffix
39874# for backward compatibility:
39875ac_top_builddir=$ac_top_build_prefix
39876
39877case $srcdir in
39878  .)  # We are building in place.
39879    ac_srcdir=.
39880    ac_top_srcdir=$ac_top_builddir_sub
39881    ac_abs_top_srcdir=$ac_pwd ;;
39882  [\\/]* | ?:[\\/]* )  # Absolute name.
39883    ac_srcdir=$srcdir$ac_dir_suffix;
39884    ac_top_srcdir=$srcdir
39885    ac_abs_top_srcdir=$srcdir ;;
39886  *) # Relative name.
39887    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39888    ac_top_srcdir=$ac_top_build_prefix$srcdir
39889    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39890esac
39891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39892
39893
39894  case $ac_mode in
39895  :F)
39896  #
39897  # CONFIG_FILE
39898  #
39899
39900  case $INSTALL in
39901  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39902  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39903  esac
39904_ACEOF
39905
39906cat >>$CONFIG_STATUS <<\_ACEOF
39907# If the template does not know about datarootdir, expand it.
39908# FIXME: This hack should be removed a few years after 2.60.
39909ac_datarootdir_hack=; ac_datarootdir_seen=
39910
39911case `sed -n '/datarootdir/ {
39912  p
39913  q
39914}
39915/@datadir@/p
39916/@docdir@/p
39917/@infodir@/p
39918/@localedir@/p
39919/@mandir@/p
39920' $ac_file_inputs` in
39921*datarootdir*) ac_datarootdir_seen=yes;;
39922*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39923  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39924echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39925_ACEOF
39926cat >>$CONFIG_STATUS <<_ACEOF
39927  ac_datarootdir_hack='
39928  s&@datadir@&$datadir&g
39929  s&@docdir@&$docdir&g
39930  s&@infodir@&$infodir&g
39931  s&@localedir@&$localedir&g
39932  s&@mandir@&$mandir&g
39933    s&\\\${datarootdir}&$datarootdir&g' ;;
39934esac
39935_ACEOF
39936
39937# Neutralize VPATH when `$srcdir' = `.'.
39938# Shell code in configure.ac might set extrasub.
39939# FIXME: do we really want to maintain this feature?
39940cat >>$CONFIG_STATUS <<_ACEOF
39941  sed "$ac_vpsub
39942$extrasub
39943_ACEOF
39944cat >>$CONFIG_STATUS <<\_ACEOF
39945:t
39946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39947s&@configure_input@&$configure_input&;t t
39948s&@top_builddir@&$ac_top_builddir_sub&;t t
39949s&@srcdir@&$ac_srcdir&;t t
39950s&@abs_srcdir@&$ac_abs_srcdir&;t t
39951s&@top_srcdir@&$ac_top_srcdir&;t t
39952s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39953s&@builddir@&$ac_builddir&;t t
39954s&@abs_builddir@&$ac_abs_builddir&;t t
39955s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39956s&@INSTALL@&$ac_INSTALL&;t t
39957$ac_datarootdir_hack
39958" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
39959
39960test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39961  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39962  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39963  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39964which seems to be undefined.  Please make sure it is defined." >&5
39965echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39966which seems to be undefined.  Please make sure it is defined." >&2;}
39967
39968  rm -f "$tmp/stdin"
39969  case $ac_file in
39970  -) cat "$tmp/out"; rm -f "$tmp/out";;
39971  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39972  esac
39973 ;;
39974  :H)
39975  #
39976  # CONFIG_HEADER
39977  #
39978_ACEOF
39979
39980# Transform confdefs.h into a sed script `conftest.defines', that
39981# substitutes the proper values into config.h.in to produce config.h.
39982rm -f conftest.defines conftest.tail
39983# First, append a space to every undef/define line, to ease matching.
39984echo 's/$/ /' >conftest.defines
39985# Then, protect against being on the right side of a sed subst, or in
39986# an unquoted here document, in config.status.  If some macros were
39987# called several times there might be several #defines for the same
39988# symbol, which is useless.  But do not sort them, since the last
39989# AC_DEFINE must be honored.
39990ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39991# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39992# NAME is the cpp macro being defined, VALUE is the value it is being given.
39993# PARAMS is the parameter list in the macro definition--in most cases, it's
39994# just an empty string.
39995ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
39996ac_dB='\\)[	 (].*,\\1define\\2'
39997ac_dC=' '
39998ac_dD=' ,'
39999
40000uniq confdefs.h |
40001  sed -n '
40002	t rset
40003	:rset
40004	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
40005	t ok
40006	d
40007	:ok
40008	s/[\\&,]/\\&/g
40009	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40010	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40011  ' >>conftest.defines
40012
40013# Remove the space that was appended to ease matching.
40014# Then replace #undef with comments.  This is necessary, for
40015# example, in the case of _POSIX_SOURCE, which is predefined and required
40016# on some systems where configure will not decide to define it.
40017# (The regexp can be short, since the line contains either #define or #undef.)
40018echo 's/ $//
40019s,^[	 #]*u.*,/* & */,' >>conftest.defines
40020
40021# Break up conftest.defines:
40022ac_max_sed_lines=50
40023
40024# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40025# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40026# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40027# et cetera.
40028ac_in='$ac_file_inputs'
40029ac_out='"$tmp/out1"'
40030ac_nxt='"$tmp/out2"'
40031
40032while :
40033do
40034  # Write a here document:
40035    cat >>$CONFIG_STATUS <<_ACEOF
40036    # First, check the format of the line:
40037    cat >"\$tmp/defines.sed" <<\\CEOF
40038/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
40039/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
40040b
40041:def
40042_ACEOF
40043  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40044  echo 'CEOF
40045    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40046  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40047  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40048  grep . conftest.tail >/dev/null || break
40049  rm -f conftest.defines
40050  mv conftest.tail conftest.defines
40051done
40052rm -f conftest.defines conftest.tail
40053
40054echo "ac_result=$ac_in" >>$CONFIG_STATUS
40055cat >>$CONFIG_STATUS <<\_ACEOF
40056  if test x"$ac_file" != x-; then
40057    echo "/* $configure_input  */" >"$tmp/config.h"
40058    cat "$ac_result" >>"$tmp/config.h"
40059    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40060      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40061echo "$as_me: $ac_file is unchanged" >&6;}
40062    else
40063      rm -f $ac_file
40064      mv "$tmp/config.h" $ac_file
40065    fi
40066  else
40067    echo "/* $configure_input  */"
40068    cat "$ac_result"
40069  fi
40070  rm -f "$tmp/out12"
40071# Compute $ac_file's index in $config_headers.
40072_am_stamp_count=1
40073for _am_header in $config_headers :; do
40074  case $_am_header in
40075    $ac_file | $ac_file:* )
40076      break ;;
40077    * )
40078      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40079  esac
40080done
40081echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40082$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40083	 X$ac_file : 'X\(//\)[^/]' \| \
40084	 X$ac_file : 'X\(//\)$' \| \
40085	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40086echo X$ac_file |
40087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40088	    s//\1/
40089	    q
40090	  }
40091	  /^X\(\/\/\)[^/].*/{
40092	    s//\1/
40093	    q
40094	  }
40095	  /^X\(\/\/\)$/{
40096	    s//\1/
40097	    q
40098	  }
40099	  /^X\(\/\).*/{
40100	    s//\1/
40101	    q
40102	  }
40103	  s/.*/./; q'`/stamp-h$_am_stamp_count
40104 ;;
40105
40106  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40107echo "$as_me: executing $ac_file commands" >&6;}
40108 ;;
40109  esac
40110
40111
40112  case $ac_file$ac_mode in
40113    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40114  # Strip MF so we end up with the name of the file.
40115  mf=`echo "$mf" | sed -e 's/:.*$//'`
40116  # Check whether this is an Automake generated Makefile or not.
40117  # We used to match only the files named `Makefile.in', but
40118  # some people rename them; so instead we look at the file content.
40119  # Grep'ing the first line is not enough: some people post-process
40120  # each Makefile.in and add a new line on top of each file to say so.
40121  # So let's grep whole file.
40122  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40123    dirpart=`$as_dirname -- "$mf" ||
40124$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40125	 X"$mf" : 'X\(//\)[^/]' \| \
40126	 X"$mf" : 'X\(//\)$' \| \
40127	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40128echo X"$mf" |
40129    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40130	    s//\1/
40131	    q
40132	  }
40133	  /^X\(\/\/\)[^/].*/{
40134	    s//\1/
40135	    q
40136	  }
40137	  /^X\(\/\/\)$/{
40138	    s//\1/
40139	    q
40140	  }
40141	  /^X\(\/\).*/{
40142	    s//\1/
40143	    q
40144	  }
40145	  s/.*/./; q'`
40146  else
40147    continue
40148  fi
40149  # Extract the definition of DEPDIR, am__include, and am__quote
40150  # from the Makefile without running `make'.
40151  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40152  test -z "$DEPDIR" && continue
40153  am__include=`sed -n 's/^am__include = //p' < "$mf"`
40154  test -z "am__include" && continue
40155  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40156  # When using ansi2knr, U may be empty or an underscore; expand it
40157  U=`sed -n 's/^U = //p' < "$mf"`
40158  # Find all dependency output files, they are included files with
40159  # $(DEPDIR) in their names.  We invoke sed twice because it is the
40160  # simplest approach to changing $(DEPDIR) to its actual value in the
40161  # expansion.
40162  for file in `sed -n "
40163    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40164       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40165    # Make sure the directory exists.
40166    test -f "$dirpart/$file" && continue
40167    fdir=`$as_dirname -- "$file" ||
40168$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40169	 X"$file" : 'X\(//\)[^/]' \| \
40170	 X"$file" : 'X\(//\)$' \| \
40171	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40172echo X"$file" |
40173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40174	    s//\1/
40175	    q
40176	  }
40177	  /^X\(\/\/\)[^/].*/{
40178	    s//\1/
40179	    q
40180	  }
40181	  /^X\(\/\/\)$/{
40182	    s//\1/
40183	    q
40184	  }
40185	  /^X\(\/\).*/{
40186	    s//\1/
40187	    q
40188	  }
40189	  s/.*/./; q'`
40190    { as_dir=$dirpart/$fdir
40191  case $as_dir in #(
40192  -*) as_dir=./$as_dir;;
40193  esac
40194  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40195    as_dirs=
40196    while :; do
40197      case $as_dir in #(
40198      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40199      *) as_qdir=$as_dir;;
40200      esac
40201      as_dirs="'$as_qdir' $as_dirs"
40202      as_dir=`$as_dirname -- "$as_dir" ||
40203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40204	 X"$as_dir" : 'X\(//\)[^/]' \| \
40205	 X"$as_dir" : 'X\(//\)$' \| \
40206	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40207echo X"$as_dir" |
40208    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40209	    s//\1/
40210	    q
40211	  }
40212	  /^X\(\/\/\)[^/].*/{
40213	    s//\1/
40214	    q
40215	  }
40216	  /^X\(\/\/\)$/{
40217	    s//\1/
40218	    q
40219	  }
40220	  /^X\(\/\).*/{
40221	    s//\1/
40222	    q
40223	  }
40224	  s/.*/./; q'`
40225      test -d "$as_dir" && break
40226    done
40227    test -z "$as_dirs" || eval "mkdir $as_dirs"
40228  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40229echo "$as_me: error: cannot create directory $as_dir" >&2;}
40230   { (exit 1); exit 1; }; }; }
40231    # echo "creating $dirpart/$file"
40232    echo '# dummy' > "$dirpart/$file"
40233  done
40234done
40235 ;;
40236    "po-directories":C)
40237    for ac_file in $CONFIG_FILES; do
40238      # Support "outfile[:infile[:infile...]]"
40239      case "$ac_file" in
40240        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40241      esac
40242      # PO directories have a Makefile.in generated from Makefile.in.in.
40243      case "$ac_file" in */Makefile.in)
40244        # Adjust a relative srcdir.
40245        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
40246        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
40247        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40248        # In autoconf-2.13 it is called $ac_given_srcdir.
40249        # In autoconf-2.50 it is called $srcdir.
40250        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
40251        case "$ac_given_srcdir" in
40252          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
40253          /*) top_srcdir="$ac_given_srcdir" ;;
40254          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
40255        esac
40256        # Treat a directory as a PO directory if and only if it has a
40257        # POTFILES.in file. This allows packages to have multiple PO
40258        # directories under different names or in different locations.
40259        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40260          rm -f "$ac_dir/POTFILES"
40261          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
40262          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40263          POMAKEFILEDEPS="POTFILES.in"
40264          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
40265          # on $ac_dir but don't depend on user-specified configuration
40266          # parameters.
40267          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40268            # The LINGUAS file contains the set of available languages.
40269            if test -n "$OBSOLETE_ALL_LINGUAS"; then
40270              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
40271            fi
40272            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40273            # Hide the ALL_LINGUAS assigment from automake < 1.5.
40274            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40275            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
40276          else
40277            # The set of available languages was given in configure.in.
40278            # Hide the ALL_LINGUAS assigment from automake < 1.5.
40279            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
40280          fi
40281          # Compute POFILES
40282          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
40283          # Compute UPDATEPOFILES
40284          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
40285          # Compute DUMMYPOFILES
40286          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
40287          # Compute GMOFILES
40288          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
40289          case "$ac_given_srcdir" in
40290            .) srcdirpre= ;;
40291            *) srcdirpre='$(srcdir)/' ;;
40292          esac
40293          POFILES=
40294          UPDATEPOFILES=
40295          DUMMYPOFILES=
40296          GMOFILES=
40297          for lang in $ALL_LINGUAS; do
40298            POFILES="$POFILES $srcdirpre$lang.po"
40299            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
40300            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
40301            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
40302          done
40303          # CATALOGS depends on both $ac_dir and the user's LINGUAS
40304          # environment variable.
40305          INST_LINGUAS=
40306          if test -n "$ALL_LINGUAS"; then
40307            for presentlang in $ALL_LINGUAS; do
40308              useit=no
40309              if test "%UNSET%" != "$LINGUAS"; then
40310                desiredlanguages="$LINGUAS"
40311              else
40312                desiredlanguages="$ALL_LINGUAS"
40313              fi
40314              for desiredlang in $desiredlanguages; do
40315                # Use the presentlang catalog if desiredlang is
40316                #   a. equal to presentlang, or
40317                #   b. a variant of presentlang (because in this case,
40318                #      presentlang can be used as a fallback for messages
40319                #      which are not translated in the desiredlang catalog).
40320                case "$desiredlang" in
40321                  "$presentlang"*) useit=yes;;
40322                esac
40323              done
40324              if test $useit = yes; then
40325                INST_LINGUAS="$INST_LINGUAS $presentlang"
40326              fi
40327            done
40328          fi
40329          CATALOGS=
40330          if test -n "$INST_LINGUAS"; then
40331            for lang in $INST_LINGUAS; do
40332              CATALOGS="$CATALOGS $lang.gmo"
40333            done
40334          fi
40335          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
40336          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"
40337          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
40338            if test -f "$f"; then
40339              case "$f" in
40340                *.orig | *.bak | *~) ;;
40341                *) cat "$f" >> "$ac_dir/Makefile" ;;
40342              esac
40343            fi
40344          done
40345        fi
40346        ;;
40347      esac
40348    done ;;
40349
40350  esac
40351done # for ac_tag
40352
40353
40354{ (exit 0); exit 0; }
40355_ACEOF
40356chmod +x $CONFIG_STATUS
40357ac_clean_files=$ac_clean_files_save
40358
40359
40360# configure is writing to config.log, and then calls config.status.
40361# config.status does its own redirection, appending to config.log.
40362# Unfortunately, on DOS this fails, as config.log is still kept open
40363# by configure, so config.status won't be able to write to it; its
40364# output is simply discarded.  So we exec the FD to /dev/null,
40365# effectively closing config.log, so it can be properly (re)opened and
40366# appended to by config.status.  When coming back to configure, we
40367# need to make the FD available again.
40368if test "$no_create" != yes; then
40369  ac_cs_success=:
40370  ac_config_status_args=
40371  test "$silent" = yes &&
40372    ac_config_status_args="$ac_config_status_args --quiet"
40373  exec 5>/dev/null
40374  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40375  exec 5>>config.log
40376  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40377  # would make configure fail if this is the last instruction.
40378  $ac_cs_success || { (exit 1); exit 1; }
40379fi
40380
40381#
40382# CONFIG_SUBDIRS section.
40383#
40384if test "$no_recursion" != yes; then
40385
40386  # Remove --cache-file and --srcdir arguments so they do not pile up.
40387  ac_sub_configure_args=
40388  ac_prev=
40389  eval "set x $ac_configure_args"
40390  shift
40391  for ac_arg
40392  do
40393    if test -n "$ac_prev"; then
40394      ac_prev=
40395      continue
40396    fi
40397    case $ac_arg in
40398    -cache-file | --cache-file | --cache-fil | --cache-fi \
40399    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40400      ac_prev=cache_file ;;
40401    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40402    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40403    | --c=*)
40404      ;;
40405    --config-cache | -C)
40406      ;;
40407    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40408      ac_prev=srcdir ;;
40409    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40410      ;;
40411    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40412      ac_prev=prefix ;;
40413    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40414      ;;
40415    *)
40416      case $ac_arg in
40417      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40418      esac
40419      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
40420    esac
40421  done
40422
40423  # Always prepend --prefix to ensure using the same prefix
40424  # in subdir configurations.
40425  ac_arg="--prefix=$prefix"
40426  case $ac_arg in
40427  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40428  esac
40429  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
40430
40431  ac_popdir=`pwd`
40432  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40433
40434    # Do not complain, so a configure script can configure whichever
40435    # parts of a large source tree are present.
40436    test -d "$srcdir/$ac_dir" || continue
40437
40438    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40439    echo "$as_me:$LINENO: $ac_msg" >&5
40440    echo "$ac_msg" >&6
40441    { as_dir="$ac_dir"
40442  case $as_dir in #(
40443  -*) as_dir=./$as_dir;;
40444  esac
40445  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40446    as_dirs=
40447    while :; do
40448      case $as_dir in #(
40449      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40450      *) as_qdir=$as_dir;;
40451      esac
40452      as_dirs="'$as_qdir' $as_dirs"
40453      as_dir=`$as_dirname -- "$as_dir" ||
40454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40455	 X"$as_dir" : 'X\(//\)[^/]' \| \
40456	 X"$as_dir" : 'X\(//\)$' \| \
40457	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40458echo X"$as_dir" |
40459    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40460	    s//\1/
40461	    q
40462	  }
40463	  /^X\(\/\/\)[^/].*/{
40464	    s//\1/
40465	    q
40466	  }
40467	  /^X\(\/\/\)$/{
40468	    s//\1/
40469	    q
40470	  }
40471	  /^X\(\/\).*/{
40472	    s//\1/
40473	    q
40474	  }
40475	  s/.*/./; q'`
40476      test -d "$as_dir" && break
40477    done
40478    test -z "$as_dirs" || eval "mkdir $as_dirs"
40479  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40480echo "$as_me: error: cannot create directory $as_dir" >&2;}
40481   { (exit 1); exit 1; }; }; }
40482    ac_builddir=.
40483
40484case "$ac_dir" in
40485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40486*)
40487  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40488  # A ".." for each directory in $ac_dir_suffix.
40489  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40490  case $ac_top_builddir_sub in
40491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40493  esac ;;
40494esac
40495ac_abs_top_builddir=$ac_pwd
40496ac_abs_builddir=$ac_pwd$ac_dir_suffix
40497# for backward compatibility:
40498ac_top_builddir=$ac_top_build_prefix
40499
40500case $srcdir in
40501  .)  # We are building in place.
40502    ac_srcdir=.
40503    ac_top_srcdir=$ac_top_builddir_sub
40504    ac_abs_top_srcdir=$ac_pwd ;;
40505  [\\/]* | ?:[\\/]* )  # Absolute name.
40506    ac_srcdir=$srcdir$ac_dir_suffix;
40507    ac_top_srcdir=$srcdir
40508    ac_abs_top_srcdir=$srcdir ;;
40509  *) # Relative name.
40510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40511    ac_top_srcdir=$ac_top_build_prefix$srcdir
40512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40513esac
40514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40515
40516
40517    cd "$ac_dir"
40518
40519    # Check for guested configure; otherwise get Cygnus style configure.
40520    if test -f "$ac_srcdir/configure.gnu"; then
40521      ac_sub_configure=$ac_srcdir/configure.gnu
40522    elif test -f "$ac_srcdir/configure"; then
40523      ac_sub_configure=$ac_srcdir/configure
40524    elif test -f "$ac_srcdir/configure.in"; then
40525      # This should be Cygnus configure.
40526      ac_sub_configure=$ac_aux_dir/configure
40527    else
40528      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40529echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40530      ac_sub_configure=
40531    fi
40532
40533    # The recursion is here.
40534    if test -n "$ac_sub_configure"; then
40535      # Make the cache file name correct relative to the subdirectory.
40536      case $cache_file in
40537      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40538      *) # Relative name.
40539	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40540      esac
40541
40542      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40543echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40544      # The eval makes quoting arguments work.
40545      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40546	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40547	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
40548echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40549   { (exit 1); exit 1; }; }
40550    fi
40551
40552    cd "$ac_popdir"
40553  done
40554fi
40555
40556