1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for scim-anthy 1.2.7.
4#
5# Report bugs to <ashie@homa.ne.jp>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='scim-anthy'
730PACKAGE_TARNAME='scim-anthy'
731PACKAGE_VERSION='1.2.7'
732PACKAGE_STRING='scim-anthy 1.2.7'
733PACKAGE_BUGREPORT='ashie@homa.ne.jp'
734
735ac_unique_file="configure.ac"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809SCIM_ANTHY_MAJOR_VERSION
810SCIM_ANTHY_MINOR_VERSION
811SCIM_ANTHY_MICRO_VERSION
812SCIM_ANTHY_VERSION
813INSTALL_PROGRAM
814INSTALL_SCRIPT
815INSTALL_DATA
816am__isrc
817CYGPATH_W
818PACKAGE
819VERSION
820ACLOCAL
821AUTOCONF
822AUTOMAKE
823AUTOHEADER
824MAKEINFO
825install_sh
826STRIP
827INSTALL_STRIP_PROGRAM
828mkdir_p
829AWK
830SET_MAKE
831am__leading_dot
832AMTAR
833am__tar
834am__untar
835MKINSTALLDIRS
836USE_NLS
837MSGFMT
838GMSGFMT
839XGETTEXT
840MSGMERGE
841CC
842CFLAGS
843LDFLAGS
844CPPFLAGS
845ac_ct_CC
846EXEEXT
847OBJEXT
848DEPDIR
849am__include
850am__quote
851AMDEP_TRUE
852AMDEP_FALSE
853AMDEPBACKSLASH
854CCDEPMODE
855am__fastdepCC_TRUE
856am__fastdepCC_FALSE
857build
858build_cpu
859build_vendor
860build_os
861host
862host_cpu
863host_vendor
864host_os
865RANLIB
866CPP
867GREP
868EGREP
869ALLOCA
870GLIBC21
871HAVE_POSIX_PRINTF
872HAVE_ASPRINTF
873HAVE_SNPRINTF
874HAVE_WPRINTF
875LIBICONV
876LTLIBICONV
877INTLBISON
878BUILD_INCLUDED_LIBINTL
879USE_INCLUDED_LIBINTL
880CATOBJEXT
881DATADIRNAME
882INSTOBJEXT
883GENCAT
884INTLOBJS
885INTL_LIBTOOL_SUFFIX_PREFIX
886INTLLIBS
887LIBINTL
888LTLIBINTL
889POSUB
890GETTEXT_PACKAGE
891SED
892LN_S
893ECHO
894AR
895DSYMUTIL
896NMEDIT
897CXX
898CXXFLAGS
899ac_ct_CXX
900CXXDEPMODE
901am__fastdepCXX_TRUE
902am__fastdepCXX_FALSE
903CXXCPP
904F77
905FFLAGS
906ac_ct_F77
907LIBTOOL
908INSTALL_LTDL_TRUE
909INSTALL_LTDL_FALSE
910CONVENIENCE_LTDL_TRUE
911CONVENIENCE_LTDL_FALSE
912LIBADD_DL
913LIBTOOL_DEPS
914PKG_CONFIG
915SCIM_CFLAGS
916SCIM_LIBS
917SCIM_GTKUTILS_CFLAGS
918SCIM_GTKUTILS_LIBS
919SCIM_VERSION
920SCIM_BUILD_SETUP_TRUE
921SCIM_BUILD_SETUP_FALSE
922SCIM_BUILD_SETUP
923ac_aux_dir
924ANTHY_LIBS
925ANTHY_CFLAGS
926GTK2_CFLAGS
927GTK2_LIBS
928SCIM_BUILD_HELPER_TRUE
929SCIM_BUILD_HELPER_FALSE
930SCIM_BUILD_HELPER
931LIBTOOL_EXPORT_OPTIONS
932SCIM_DEBUG_FLAGS
933SCIM_DATADIR
934SCIM_ICONDIR
935SCIM_MODULEDIR
936SCIM_ANTHY_DATADIR
937LIBOBJS
938LTLIBOBJS'
939ac_subst_files=''
940      ac_precious_vars='build_alias
941host_alias
942target_alias
943CC
944CFLAGS
945LDFLAGS
946LIBS
947CPPFLAGS
948CPP
949CXX
950CXXFLAGS
951CCC
952CXXCPP
953F77
954FFLAGS
955PKG_CONFIG
956SCIM_CFLAGS
957SCIM_LIBS
958SCIM_GTKUTILS_CFLAGS
959SCIM_GTKUTILS_LIBS
960GTK2_CFLAGS
961GTK2_LIBS'
962
963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967# The variables have the same names as the options, with
968# dashes changed to underlines.
969cache_file=/dev/null
970exec_prefix=NONE
971no_create=
972no_recursion=
973prefix=NONE
974program_prefix=NONE
975program_suffix=NONE
976program_transform_name=s,x,x,
977silent=
978site=
979srcdir=
980verbose=
981x_includes=NONE
982x_libraries=NONE
983
984# Installation directory options.
985# These are left unexpanded so users can "make install exec_prefix=/foo"
986# and all the variables that are supposed to be based on exec_prefix
987# by default will actually change.
988# Use braces instead of parens because sh, perl, etc. also accept them.
989# (The list follows the same order as the GNU Coding Standards.)
990bindir='${exec_prefix}/bin'
991sbindir='${exec_prefix}/sbin'
992libexecdir='${exec_prefix}/libexec'
993datarootdir='${prefix}/share'
994datadir='${datarootdir}'
995sysconfdir='${prefix}/etc'
996sharedstatedir='${prefix}/com'
997localstatedir='${prefix}/var'
998includedir='${prefix}/include'
999oldincludedir='/usr/include'
1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001infodir='${datarootdir}/info'
1002htmldir='${docdir}'
1003dvidir='${docdir}'
1004pdfdir='${docdir}'
1005psdir='${docdir}'
1006libdir='${exec_prefix}/lib'
1007localedir='${datarootdir}/locale'
1008mandir='${datarootdir}/man'
1009
1010ac_prev=
1011ac_dashdash=
1012for ac_option
1013do
1014  # If the previous option needs an argument, assign it.
1015  if test -n "$ac_prev"; then
1016    eval $ac_prev=\$ac_option
1017    ac_prev=
1018    continue
1019  fi
1020
1021  case $ac_option in
1022  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023  *)	ac_optarg=yes ;;
1024  esac
1025
1026  # Accept the important Cygnus configure options, so we can diagnose typos.
1027
1028  case $ac_dashdash$ac_option in
1029  --)
1030    ac_dashdash=yes ;;
1031
1032  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033    ac_prev=bindir ;;
1034  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035    bindir=$ac_optarg ;;
1036
1037  -build | --build | --buil | --bui | --bu)
1038    ac_prev=build_alias ;;
1039  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040    build_alias=$ac_optarg ;;
1041
1042  -cache-file | --cache-file | --cache-fil | --cache-fi \
1043  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044    ac_prev=cache_file ;;
1045  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047    cache_file=$ac_optarg ;;
1048
1049  --config-cache | -C)
1050    cache_file=config.cache ;;
1051
1052  -datadir | --datadir | --datadi | --datad)
1053    ac_prev=datadir ;;
1054  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055    datadir=$ac_optarg ;;
1056
1057  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058  | --dataroo | --dataro | --datar)
1059    ac_prev=datarootdir ;;
1060  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062    datarootdir=$ac_optarg ;;
1063
1064  -disable-* | --disable-*)
1065    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066    # Reject names that are not valid shell variable names.
1067    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069   { (exit 1); exit 1; }; }
1070    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071    eval enable_$ac_feature=no ;;
1072
1073  -docdir | --docdir | --docdi | --doc | --do)
1074    ac_prev=docdir ;;
1075  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076    docdir=$ac_optarg ;;
1077
1078  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079    ac_prev=dvidir ;;
1080  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081    dvidir=$ac_optarg ;;
1082
1083  -enable-* | --enable-*)
1084    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085    # Reject names that are not valid shell variable names.
1086    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1088   { (exit 1); exit 1; }; }
1089    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1090    eval enable_$ac_feature=\$ac_optarg ;;
1091
1092  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094  | --exec | --exe | --ex)
1095    ac_prev=exec_prefix ;;
1096  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098  | --exec=* | --exe=* | --ex=*)
1099    exec_prefix=$ac_optarg ;;
1100
1101  -gas | --gas | --ga | --g)
1102    # Obsolete; use --with-gas.
1103    with_gas=yes ;;
1104
1105  -help | --help | --hel | --he | -h)
1106    ac_init_help=long ;;
1107  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108    ac_init_help=recursive ;;
1109  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110    ac_init_help=short ;;
1111
1112  -host | --host | --hos | --ho)
1113    ac_prev=host_alias ;;
1114  -host=* | --host=* | --hos=* | --ho=*)
1115    host_alias=$ac_optarg ;;
1116
1117  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118    ac_prev=htmldir ;;
1119  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120  | --ht=*)
1121    htmldir=$ac_optarg ;;
1122
1123  -includedir | --includedir | --includedi | --included | --include \
1124  | --includ | --inclu | --incl | --inc)
1125    ac_prev=includedir ;;
1126  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127  | --includ=* | --inclu=* | --incl=* | --inc=*)
1128    includedir=$ac_optarg ;;
1129
1130  -infodir | --infodir | --infodi | --infod | --info | --inf)
1131    ac_prev=infodir ;;
1132  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133    infodir=$ac_optarg ;;
1134
1135  -libdir | --libdir | --libdi | --libd)
1136    ac_prev=libdir ;;
1137  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138    libdir=$ac_optarg ;;
1139
1140  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141  | --libexe | --libex | --libe)
1142    ac_prev=libexecdir ;;
1143  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144  | --libexe=* | --libex=* | --libe=*)
1145    libexecdir=$ac_optarg ;;
1146
1147  -localedir | --localedir | --localedi | --localed | --locale)
1148    ac_prev=localedir ;;
1149  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150    localedir=$ac_optarg ;;
1151
1152  -localstatedir | --localstatedir | --localstatedi | --localstated \
1153  | --localstate | --localstat | --localsta | --localst | --locals)
1154    ac_prev=localstatedir ;;
1155  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157    localstatedir=$ac_optarg ;;
1158
1159  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160    ac_prev=mandir ;;
1161  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162    mandir=$ac_optarg ;;
1163
1164  -nfp | --nfp | --nf)
1165    # Obsolete; use --without-fp.
1166    with_fp=no ;;
1167
1168  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169  | --no-cr | --no-c | -n)
1170    no_create=yes ;;
1171
1172  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174    no_recursion=yes ;;
1175
1176  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178  | --oldin | --oldi | --old | --ol | --o)
1179    ac_prev=oldincludedir ;;
1180  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183    oldincludedir=$ac_optarg ;;
1184
1185  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186    ac_prev=prefix ;;
1187  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188    prefix=$ac_optarg ;;
1189
1190  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191  | --program-pre | --program-pr | --program-p)
1192    ac_prev=program_prefix ;;
1193  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195    program_prefix=$ac_optarg ;;
1196
1197  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198  | --program-suf | --program-su | --program-s)
1199    ac_prev=program_suffix ;;
1200  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202    program_suffix=$ac_optarg ;;
1203
1204  -program-transform-name | --program-transform-name \
1205  | --program-transform-nam | --program-transform-na \
1206  | --program-transform-n | --program-transform- \
1207  | --program-transform | --program-transfor \
1208  | --program-transfo | --program-transf \
1209  | --program-trans | --program-tran \
1210  | --progr-tra | --program-tr | --program-t)
1211    ac_prev=program_transform_name ;;
1212  -program-transform-name=* | --program-transform-name=* \
1213  | --program-transform-nam=* | --program-transform-na=* \
1214  | --program-transform-n=* | --program-transform-=* \
1215  | --program-transform=* | --program-transfor=* \
1216  | --program-transfo=* | --program-transf=* \
1217  | --program-trans=* | --program-tran=* \
1218  | --progr-tra=* | --program-tr=* | --program-t=*)
1219    program_transform_name=$ac_optarg ;;
1220
1221  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222    ac_prev=pdfdir ;;
1223  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224    pdfdir=$ac_optarg ;;
1225
1226  -psdir | --psdir | --psdi | --psd | --ps)
1227    ac_prev=psdir ;;
1228  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229    psdir=$ac_optarg ;;
1230
1231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232  | -silent | --silent | --silen | --sile | --sil)
1233    silent=yes ;;
1234
1235  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236    ac_prev=sbindir ;;
1237  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238  | --sbi=* | --sb=*)
1239    sbindir=$ac_optarg ;;
1240
1241  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243  | --sharedst | --shareds | --shared | --share | --shar \
1244  | --sha | --sh)
1245    ac_prev=sharedstatedir ;;
1246  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249  | --sha=* | --sh=*)
1250    sharedstatedir=$ac_optarg ;;
1251
1252  -site | --site | --sit)
1253    ac_prev=site ;;
1254  -site=* | --site=* | --sit=*)
1255    site=$ac_optarg ;;
1256
1257  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258    ac_prev=srcdir ;;
1259  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260    srcdir=$ac_optarg ;;
1261
1262  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263  | --syscon | --sysco | --sysc | --sys | --sy)
1264    ac_prev=sysconfdir ;;
1265  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267    sysconfdir=$ac_optarg ;;
1268
1269  -target | --target | --targe | --targ | --tar | --ta | --t)
1270    ac_prev=target_alias ;;
1271  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272    target_alias=$ac_optarg ;;
1273
1274  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275    verbose=yes ;;
1276
1277  -version | --version | --versio | --versi | --vers | -V)
1278    ac_init_version=: ;;
1279
1280  -with-* | --with-*)
1281    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282    # Reject names that are not valid shell variable names.
1283    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284      { echo "$as_me: error: invalid package name: $ac_package" >&2
1285   { (exit 1); exit 1; }; }
1286    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1287    eval with_$ac_package=\$ac_optarg ;;
1288
1289  -without-* | --without-*)
1290    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291    # Reject names that are not valid shell variable names.
1292    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293      { echo "$as_me: error: invalid package name: $ac_package" >&2
1294   { (exit 1); exit 1; }; }
1295    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296    eval with_$ac_package=no ;;
1297
1298  --x)
1299    # Obsolete; use --with-x.
1300    with_x=yes ;;
1301
1302  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303  | --x-incl | --x-inc | --x-in | --x-i)
1304    ac_prev=x_includes ;;
1305  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307    x_includes=$ac_optarg ;;
1308
1309  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311    ac_prev=x_libraries ;;
1312  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314    x_libraries=$ac_optarg ;;
1315
1316  -*) { echo "$as_me: error: unrecognized option: $ac_option
1317Try \`$0 --help' for more information." >&2
1318   { (exit 1); exit 1; }; }
1319    ;;
1320
1321  *=*)
1322    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323    # Reject names that are not valid shell variable names.
1324    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1325      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1326   { (exit 1); exit 1; }; }
1327    eval $ac_envvar=\$ac_optarg
1328    export $ac_envvar ;;
1329
1330  *)
1331    # FIXME: should be removed in autoconf 3.0.
1332    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336    ;;
1337
1338  esac
1339done
1340
1341if test -n "$ac_prev"; then
1342  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343  { echo "$as_me: error: missing argument to $ac_option" >&2
1344   { (exit 1); exit 1; }; }
1345fi
1346
1347# Be sure to have absolute directory names.
1348for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349		datadir sysconfdir sharedstatedir localstatedir includedir \
1350		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351		libdir localedir mandir
1352do
1353  eval ac_val=\$$ac_var
1354  case $ac_val in
1355    [\\/$]* | ?:[\\/]* )  continue;;
1356    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357  esac
1358  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359   { (exit 1); exit 1; }; }
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371  if test "x$build_alias" = x; then
1372    cross_compiling=maybe
1373    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374    If a cross compiler is detected then cross compile mode will be used." >&2
1375  elif test "x$build_alias" != "x$host_alias"; then
1376    cross_compiling=yes
1377  fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389  { echo "$as_me: error: Working directory cannot be determined" >&2
1390   { (exit 1); exit 1; }; }
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  { echo "$as_me: error: pwd does not report name of working directory" >&2
1393   { (exit 1); exit 1; }; }
1394
1395
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398  ac_srcdir_defaulted=yes
1399  # Try the directory containing this script, then the parent directory.
1400  ac_confdir=`$as_dirname -- "$0" ||
1401$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402	 X"$0" : 'X\(//\)[^/]' \| \
1403	 X"$0" : 'X\(//\)$' \| \
1404	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1405echo X"$0" |
1406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)[^/].*/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\/\)$/{
1415	    s//\1/
1416	    q
1417	  }
1418	  /^X\(\/\).*/{
1419	    s//\1/
1420	    q
1421	  }
1422	  s/.*/./; q'`
1423  srcdir=$ac_confdir
1424  if test ! -r "$srcdir/$ac_unique_file"; then
1425    srcdir=..
1426  fi
1427else
1428  ac_srcdir_defaulted=no
1429fi
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433   { (exit 1); exit 1; }; }
1434fi
1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1438   { (exit 1); exit 1; }; }
1439	pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442  srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452  eval ac_env_${ac_var}_value=\$${ac_var}
1453  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461  # Omit some internal or obsolete options to make the list less imposing.
1462  # This message is too long to be a string in the A/UX 3.1 sh.
1463  cat <<_ACEOF
1464\`configure' configures scim-anthy 1.2.7 to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE.  See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474  -h, --help              display this help and exit
1475      --help=short        display options specific to this package
1476      --help=recursive    display the short help of all the included packages
1477  -V, --version           display version information and exit
1478  -q, --quiet, --silent   do not print \`checking...' messages
1479      --cache-file=FILE   cache test results in FILE [disabled]
1480  -C, --config-cache      alias for \`--cache-file=config.cache'
1481  -n, --no-create         do not create output files
1482      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1483
1484Installation directories:
1485  --prefix=PREFIX         install architecture-independent files in PREFIX
1486			  [$ac_default_prefix]
1487  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1488			  [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498  --bindir=DIR           user executables [EPREFIX/bin]
1499  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1500  --libexecdir=DIR       program executables [EPREFIX/libexec]
1501  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1502  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1503  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1504  --libdir=DIR           object code libraries [EPREFIX/lib]
1505  --includedir=DIR       C header files [PREFIX/include]
1506  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1507  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1508  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1509  --infodir=DIR          info documentation [DATAROOTDIR/info]
1510  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1511  --mandir=DIR           man documentation [DATAROOTDIR/man]
1512  --docdir=DIR           documentation root [DATAROOTDIR/doc/scim-anthy]
1513  --htmldir=DIR          html documentation [DOCDIR]
1514  --dvidir=DIR           dvi documentation [DOCDIR]
1515  --pdfdir=DIR           pdf documentation [DOCDIR]
1516  --psdir=DIR            ps documentation [DOCDIR]
1517_ACEOF
1518
1519  cat <<\_ACEOF
1520
1521Program names:
1522  --program-prefix=PREFIX            prepend PREFIX to installed program names
1523  --program-suffix=SUFFIX            append SUFFIX to installed program names
1524  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1525
1526System types:
1527  --build=BUILD     configure for building on BUILD [guessed]
1528  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533  case $ac_init_help in
1534     short | recursive ) echo "Configuration of scim-anthy 1.2.7:";;
1535   esac
1536  cat <<\_ACEOF
1537
1538Optional Features:
1539  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541  --disable-nls           do not use Native Language Support
1542  --disable-dependency-tracking  speeds up one-time build
1543  --enable-dependency-tracking   do not reject slow dependency extractors
1544  --disable-rpath         do not hardcode runtime library paths
1545  --enable-shared[=PKGS]  build shared libraries [default=yes]
1546  --enable-static[=PKGS]  build static libraries [default=yes]
1547  --enable-fast-install[=PKGS]
1548                          optimize for fast installation [default=yes]
1549  --disable-libtool-lock  avoid locking (might break parallel builds)
1550  --enable-ltdl-install   install libltdl
1551  --enable-debug     Turn on debugging
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1557  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1558  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1559  --with-included-gettext use the GNU gettext library included here
1560  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1561  --without-libintl-prefix     don't search for libintl in includedir and libdir
1562  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563  --with-pic              try to use only PIC/non-PIC objects [default=use
1564                          both]
1565  --with-tags[=TAGS]      include additional configurations [automatic]
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576  CXX         C++ compiler command
1577  CXXFLAGS    C++ compiler flags
1578  CXXCPP      C++ preprocessor
1579  F77         Fortran 77 compiler command
1580  FFLAGS      Fortran 77 compiler flags
1581  PKG_CONFIG  path to pkg-config utility
1582  SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1583  SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1584  SCIM_GTKUTILS_CFLAGS
1585              C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1586  SCIM_GTKUTILS_LIBS
1587              linker flags for SCIM_GTKUTILS, overriding pkg-config
1588  GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1589  GTK2_LIBS   linker flags for GTK2, overriding pkg-config
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594Report bugs to <ashie@homa.ne.jp>.
1595_ACEOF
1596ac_status=$?
1597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600  # If there are subdirs, report their specific --help.
1601  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602    test -d "$ac_dir" || continue
1603    ac_builddir=.
1604
1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
1608  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609  # A ".." for each directory in $ac_dir_suffix.
1610  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611  case $ac_top_builddir_sub in
1612  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614  esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
1620
1621case $srcdir in
1622  .)  # We are building in place.
1623    ac_srcdir=.
1624    ac_top_srcdir=$ac_top_builddir_sub
1625    ac_abs_top_srcdir=$ac_pwd ;;
1626  [\\/]* | ?:[\\/]* )  # Absolute name.
1627    ac_srcdir=$srcdir$ac_dir_suffix;
1628    ac_top_srcdir=$srcdir
1629    ac_abs_top_srcdir=$srcdir ;;
1630  *) # Relative name.
1631    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632    ac_top_srcdir=$ac_top_build_prefix$srcdir
1633    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634esac
1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637    cd "$ac_dir" || { ac_status=$?; continue; }
1638    # Check for guested configure.
1639    if test -f "$ac_srcdir/configure.gnu"; then
1640      echo &&
1641      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642    elif test -f "$ac_srcdir/configure"; then
1643      echo &&
1644      $SHELL "$ac_srcdir/configure" --help=recursive
1645    else
1646      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647    fi || ac_status=$?
1648    cd "$ac_pwd" || { ac_status=$?; break; }
1649  done
1650fi
1651
1652test -n "$ac_init_help" && exit $ac_status
1653if $ac_init_version; then
1654  cat <<\_ACEOF
1655scim-anthy configure 1.2.7
1656generated by GNU Autoconf 2.61
1657
1658Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
1662_ACEOF
1663  exit
1664fi
1665cat >config.log <<_ACEOF
1666This file contains any messages produced by compilers while
1667running configure, to aid debugging if configure makes a mistake.
1668
1669It was created by scim-anthy $as_me 1.2.7, which was
1670generated by GNU Autoconf 2.61.  Invocation command line was
1671
1672  $ $0 $@
1673
1674_ACEOF
1675exec 5>>config.log
1676{
1677cat <<_ASUNAME
1678## --------- ##
1679## Platform. ##
1680## --------- ##
1681
1682hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1690
1691/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1692/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1693/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1695/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1696/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1697/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1698
1699_ASUNAME
1700
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704  IFS=$as_save_IFS
1705  test -z "$as_dir" && as_dir=.
1706  echo "PATH: $as_dir"
1707done
1708IFS=$as_save_IFS
1709
1710} >&5
1711
1712cat >&5 <<_ACEOF
1713
1714
1715## ----------- ##
1716## Core tests. ##
1717## ----------- ##
1718
1719_ACEOF
1720
1721
1722# Keep a trace of the command line.
1723# Strip out --no-create and --no-recursion so they do not pile up.
1724# Strip out --silent because we don't want to record it for future runs.
1725# Also quote any args containing shell meta-characters.
1726# Make two passes to allow for proper duplicate-argument suppression.
1727ac_configure_args=
1728ac_configure_args0=
1729ac_configure_args1=
1730ac_must_keep_next=false
1731for ac_pass in 1 2
1732do
1733  for ac_arg
1734  do
1735    case $ac_arg in
1736    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738    | -silent | --silent | --silen | --sile | --sil)
1739      continue ;;
1740    *\'*)
1741      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742    esac
1743    case $ac_pass in
1744    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745    2)
1746      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747      if test $ac_must_keep_next = true; then
1748	ac_must_keep_next=false # Got value, back to normal.
1749      else
1750	case $ac_arg in
1751	  *=* | --config-cache | -C | -disable-* | --disable-* \
1752	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754	  | -with-* | --with-* | -without-* | --without-* | --x)
1755	    case "$ac_configure_args0 " in
1756	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757	    esac
1758	    ;;
1759	  -* ) ac_must_keep_next=true ;;
1760	esac
1761      fi
1762      ac_configure_args="$ac_configure_args '$ac_arg'"
1763      ;;
1764    esac
1765  done
1766done
1767$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770# When interrupted or exit'd, cleanup temporary files, and complete
1771# config.log.  We remove comments because anyway the quotes in there
1772# would cause problems or look ugly.
1773# WARNING: Use '\'' to represent an apostrophe within the trap.
1774# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775trap 'exit_status=$?
1776  # Save into config.log some information that might help in debugging.
1777  {
1778    echo
1779
1780    cat <<\_ASBOX
1781## ---------------- ##
1782## Cache variables. ##
1783## ---------------- ##
1784_ASBOX
1785    echo
1786    # The following way of writing the cache mishandles newlines in values,
1787(
1788  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789    eval ac_val=\$$ac_var
1790    case $ac_val in #(
1791    *${as_nl}*)
1792      case $ac_var in #(
1793      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795      esac
1796      case $ac_var in #(
1797      _ | IFS | as_nl) ;; #(
1798      *) $as_unset $ac_var ;;
1799      esac ;;
1800    esac
1801  done
1802  (set) 2>&1 |
1803    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804    *${as_nl}ac_space=\ *)
1805      sed -n \
1806	"s/'\''/'\''\\\\'\'''\''/g;
1807	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808      ;; #(
1809    *)
1810      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1811      ;;
1812    esac |
1813    sort
1814)
1815    echo
1816
1817    cat <<\_ASBOX
1818## ----------------- ##
1819## Output variables. ##
1820## ----------------- ##
1821_ASBOX
1822    echo
1823    for ac_var in $ac_subst_vars
1824    do
1825      eval ac_val=\$$ac_var
1826      case $ac_val in
1827      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828      esac
1829      echo "$ac_var='\''$ac_val'\''"
1830    done | sort
1831    echo
1832
1833    if test -n "$ac_subst_files"; then
1834      cat <<\_ASBOX
1835## ------------------- ##
1836## File substitutions. ##
1837## ------------------- ##
1838_ASBOX
1839      echo
1840      for ac_var in $ac_subst_files
1841      do
1842	eval ac_val=\$$ac_var
1843	case $ac_val in
1844	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845	esac
1846	echo "$ac_var='\''$ac_val'\''"
1847      done | sort
1848      echo
1849    fi
1850
1851    if test -s confdefs.h; then
1852      cat <<\_ASBOX
1853## ----------- ##
1854## confdefs.h. ##
1855## ----------- ##
1856_ASBOX
1857      echo
1858      cat confdefs.h
1859      echo
1860    fi
1861    test "$ac_signal" != 0 &&
1862      echo "$as_me: caught signal $ac_signal"
1863    echo "$as_me: exit $exit_status"
1864  } >&5
1865  rm -f core *.core core.conftest.* &&
1866    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867    exit $exit_status
1868' 0
1869for ac_signal in 1 2 13 15; do
1870  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871done
1872ac_signal=0
1873
1874# confdefs.h avoids OS command line length limits that DEFS can exceed.
1875rm -f -r conftest* confdefs.h
1876
1877# Predefined preprocessor variables.
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_NAME "$PACKAGE_NAME"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_VERSION "$PACKAGE_VERSION"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_STRING "$PACKAGE_STRING"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901_ACEOF
1902
1903
1904# Let the site file select an alternate cache file if it wants to.
1905# Prefer explicitly selected file to automatically selected ones.
1906if test -n "$CONFIG_SITE"; then
1907  set x "$CONFIG_SITE"
1908elif test "x$prefix" != xNONE; then
1909  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910else
1911  set x "$ac_default_prefix/share/config.site" \
1912	"$ac_default_prefix/etc/config.site"
1913fi
1914shift
1915for ac_site_file
1916do
1917  if test -r "$ac_site_file"; then
1918    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919echo "$as_me: loading site script $ac_site_file" >&6;}
1920    sed 's/^/| /' "$ac_site_file" >&5
1921    . "$ac_site_file"
1922  fi
1923done
1924
1925if test -r "$cache_file"; then
1926  # Some versions of bash will fail to source /dev/null (special
1927  # files actually), so we avoid doing that.
1928  if test -f "$cache_file"; then
1929    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930echo "$as_me: loading cache $cache_file" >&6;}
1931    case $cache_file in
1932      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933      *)                      . "./$cache_file";;
1934    esac
1935  fi
1936else
1937  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938echo "$as_me: creating cache $cache_file" >&6;}
1939  >$cache_file
1940fi
1941
1942# Check that the precious variables saved in the cache have kept the same
1943# value.
1944ac_cache_corrupted=false
1945for ac_var in $ac_precious_vars; do
1946  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947  eval ac_new_set=\$ac_env_${ac_var}_set
1948  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949  eval ac_new_val=\$ac_env_${ac_var}_value
1950  case $ac_old_set,$ac_new_set in
1951    set,)
1952      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1954      ac_cache_corrupted=: ;;
1955    ,set)
1956      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1958      ac_cache_corrupted=: ;;
1959    ,);;
1960    *)
1961      if test "x$ac_old_val" != "x$ac_new_val"; then
1962	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1965echo "$as_me:   former value:  $ac_old_val" >&2;}
1966	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1967echo "$as_me:   current value: $ac_new_val" >&2;}
1968	ac_cache_corrupted=:
1969      fi;;
1970  esac
1971  # Pass precious variables to config.status.
1972  if test "$ac_new_set" = set; then
1973    case $ac_new_val in
1974    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975    *) ac_arg=$ac_var=$ac_new_val ;;
1976    esac
1977    case " $ac_configure_args " in
1978      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1979      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980    esac
1981  fi
1982done
1983if $ac_cache_corrupted; then
1984  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988   { (exit 1); exit 1; }; }
1989fi
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015ac_ext=c
2016ac_cpp='$CPP $CPPFLAGS'
2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020
2021
2022
2023
2024# Save this value here, since automake will set cflags and cxxflags later
2025cflags_set=${CFLAGS+set}
2026cppflags_set=${CPPFLAGS+set}
2027
2028SCIM_ANTHY_MAJOR_VERSION=1
2029SCIM_ANTHY_MINOR_VERSION=2
2030SCIM_ANTHY_MICRO_VERSION=7
2031
2032SCIM_ANTHY_VERSION=$SCIM_ANTHY_MAJOR_VERSION.$SCIM_ANTHY_MINOR_VERSION.$SCIM_ANTHY_MICRO_VERSION
2033
2034
2035
2036
2037
2038
2039# Init automake stuff
2040am__api_version='1.10'
2041
2042ac_aux_dir=
2043for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2044  if test -f "$ac_dir/install-sh"; then
2045    ac_aux_dir=$ac_dir
2046    ac_install_sh="$ac_aux_dir/install-sh -c"
2047    break
2048  elif test -f "$ac_dir/install.sh"; then
2049    ac_aux_dir=$ac_dir
2050    ac_install_sh="$ac_aux_dir/install.sh -c"
2051    break
2052  elif test -f "$ac_dir/shtool"; then
2053    ac_aux_dir=$ac_dir
2054    ac_install_sh="$ac_aux_dir/shtool install -c"
2055    break
2056  fi
2057done
2058if test -z "$ac_aux_dir"; then
2059  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2060echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2061   { (exit 1); exit 1; }; }
2062fi
2063
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2071
2072
2073# Find a good install program.  We prefer a C program (faster),
2074# so one script is as good as another.  But avoid the broken or
2075# incompatible versions:
2076# SysV /etc/install, /usr/sbin/install
2077# SunOS /usr/etc/install
2078# IRIX /sbin/install
2079# AIX /bin/install
2080# AmigaOS /C/install, which installs bootblocks on floppy discs
2081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2082# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2084# OS/2's system install, which has a completely different semantic
2085# ./install, which can be erroneously created by make from ./install.sh.
2086{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2087echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2088if test -z "$INSTALL"; then
2089if test "${ac_cv_path_install+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095  IFS=$as_save_IFS
2096  test -z "$as_dir" && as_dir=.
2097  # Account for people who put trailing slashes in PATH elements.
2098case $as_dir/ in
2099  ./ | .// | /cC/* | \
2100  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2101  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2102  /usr/ucb/* ) ;;
2103  *)
2104    # OSF1 and SCO ODT 3.0 have their own names for install.
2105    # Don't use installbsd from OSF since it installs stuff as root
2106    # by default.
2107    for ac_prog in ginstall scoinst install; do
2108      for ac_exec_ext in '' $ac_executable_extensions; do
2109	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2110	  if test $ac_prog = install &&
2111	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2112	    # AIX install.  It has an incompatible calling convention.
2113	    :
2114	  elif test $ac_prog = install &&
2115	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2116	    # program-specific install script used by HP pwplus--don't use.
2117	    :
2118	  else
2119	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2120	    break 3
2121	  fi
2122	fi
2123      done
2124    done
2125    ;;
2126esac
2127done
2128IFS=$as_save_IFS
2129
2130
2131fi
2132  if test "${ac_cv_path_install+set}" = set; then
2133    INSTALL=$ac_cv_path_install
2134  else
2135    # As a last resort, use the slow shell script.  Don't cache a
2136    # value for INSTALL within a source directory, because that will
2137    # break other packages using the cache if that directory is
2138    # removed, or if the value is a relative name.
2139    INSTALL=$ac_install_sh
2140  fi
2141fi
2142{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2143echo "${ECHO_T}$INSTALL" >&6; }
2144
2145# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2146# It thinks the first close brace ends the variable substitution.
2147test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2148
2149test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2150
2151test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2152
2153{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2154echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2155# Just in case
2156sleep 1
2157echo timestamp > conftest.file
2158# Do `set' in a subshell so we don't clobber the current shell's
2159# arguments.  Must try -L first in case configure is actually a
2160# symlink; some systems play weird games with the mod time of symlinks
2161# (eg FreeBSD returns the mod time of the symlink's containing
2162# directory).
2163if (
2164   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2165   if test "$*" = "X"; then
2166      # -L didn't work.
2167      set X `ls -t $srcdir/configure conftest.file`
2168   fi
2169   rm -f conftest.file
2170   if test "$*" != "X $srcdir/configure conftest.file" \
2171      && test "$*" != "X conftest.file $srcdir/configure"; then
2172
2173      # If neither matched, then we have a broken ls.  This can happen
2174      # if, for instance, CONFIG_SHELL is bash and it inherits a
2175      # broken ls alias from the environment.  This has actually
2176      # happened.  Such a system could not be considered "sane".
2177      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2178alias in your environment" >&5
2179echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2180alias in your environment" >&2;}
2181   { (exit 1); exit 1; }; }
2182   fi
2183
2184   test "$2" = conftest.file
2185   )
2186then
2187   # Ok.
2188   :
2189else
2190   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2191Check your system clock" >&5
2192echo "$as_me: error: newly created file is older than distributed files!
2193Check your system clock" >&2;}
2194   { (exit 1); exit 1; }; }
2195fi
2196{ echo "$as_me:$LINENO: result: yes" >&5
2197echo "${ECHO_T}yes" >&6; }
2198test "$program_prefix" != NONE &&
2199  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2200# Use a double $ so make ignores it.
2201test "$program_suffix" != NONE &&
2202  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2203# Double any \ or $.  echo might interpret backslashes.
2204# By default was `s,x,x', remove it if useless.
2205cat <<\_ACEOF >conftest.sed
2206s/[\\$]/&&/g;s/;s,x,x,$//
2207_ACEOF
2208program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2209rm -f conftest.sed
2210
2211# expand $ac_aux_dir to an absolute path
2212am_aux_dir=`cd $ac_aux_dir && pwd`
2213
2214test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2215# Use eval to expand $SHELL
2216if eval "$MISSING --run true"; then
2217  am_missing_run="$MISSING --run "
2218else
2219  am_missing_run=
2220  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2221echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2222fi
2223
2224{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2225echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2226if test -z "$MKDIR_P"; then
2227  if test "${ac_cv_path_mkdir+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2232do
2233  IFS=$as_save_IFS
2234  test -z "$as_dir" && as_dir=.
2235  for ac_prog in mkdir gmkdir; do
2236	 for ac_exec_ext in '' $ac_executable_extensions; do
2237	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2238	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2239	     'mkdir (GNU coreutils) '* | \
2240	     'mkdir (coreutils) '* | \
2241	     'mkdir (fileutils) '4.1*)
2242	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2243	       break 3;;
2244	   esac
2245	 done
2246       done
2247done
2248IFS=$as_save_IFS
2249
2250fi
2251
2252  if test "${ac_cv_path_mkdir+set}" = set; then
2253    MKDIR_P="$ac_cv_path_mkdir -p"
2254  else
2255    # As a last resort, use the slow shell script.  Don't cache a
2256    # value for MKDIR_P within a source directory, because that will
2257    # break other packages using the cache if that directory is
2258    # removed, or if the value is a relative name.
2259    test -d ./--version && rmdir ./--version
2260    MKDIR_P="$ac_install_sh -d"
2261  fi
2262fi
2263{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2264echo "${ECHO_T}$MKDIR_P" >&6; }
2265
2266mkdir_p="$MKDIR_P"
2267case $mkdir_p in
2268  [\\/$]* | ?:[\\/]*) ;;
2269  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2270esac
2271
2272for ac_prog in gawk mawk nawk awk
2273do
2274  # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278if test "${ac_cv_prog_AWK+set}" = set; then
2279  echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281  if test -n "$AWK"; then
2282  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287  IFS=$as_save_IFS
2288  test -z "$as_dir" && as_dir=.
2289  for ac_exec_ext in '' $ac_executable_extensions; do
2290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291    ac_cv_prog_AWK="$ac_prog"
2292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293    break 2
2294  fi
2295done
2296done
2297IFS=$as_save_IFS
2298
2299fi
2300fi
2301AWK=$ac_cv_prog_AWK
2302if test -n "$AWK"; then
2303  { echo "$as_me:$LINENO: result: $AWK" >&5
2304echo "${ECHO_T}$AWK" >&6; }
2305else
2306  { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
2308fi
2309
2310
2311  test -n "$AWK" && break
2312done
2313
2314{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2315echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2316set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2317if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  cat >conftest.make <<\_ACEOF
2321SHELL = /bin/sh
2322all:
2323	@echo '@@@%%%=$(MAKE)=@@@%%%'
2324_ACEOF
2325# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2326case `${MAKE-make} -f conftest.make 2>/dev/null` in
2327  *@@@%%%=?*=@@@%%%*)
2328    eval ac_cv_prog_make_${ac_make}_set=yes;;
2329  *)
2330    eval ac_cv_prog_make_${ac_make}_set=no;;
2331esac
2332rm -f conftest.make
2333fi
2334if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2335  { echo "$as_me:$LINENO: result: yes" >&5
2336echo "${ECHO_T}yes" >&6; }
2337  SET_MAKE=
2338else
2339  { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
2341  SET_MAKE="MAKE=${MAKE-make}"
2342fi
2343
2344rm -rf .tst 2>/dev/null
2345mkdir .tst 2>/dev/null
2346if test -d .tst; then
2347  am__leading_dot=.
2348else
2349  am__leading_dot=_
2350fi
2351rmdir .tst 2>/dev/null
2352
2353if test "`cd $srcdir && pwd`" != "`pwd`"; then
2354  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2355  # is not polluted with repeated "-I."
2356  am__isrc=' -I$(srcdir)'
2357  # test to see if srcdir already configured
2358  if test -f $srcdir/config.status; then
2359    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2360echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2361   { (exit 1); exit 1; }; }
2362  fi
2363fi
2364
2365# test whether we have cygpath
2366if test -z "$CYGPATH_W"; then
2367  if (cygpath --version) >/dev/null 2>/dev/null; then
2368    CYGPATH_W='cygpath -w'
2369  else
2370    CYGPATH_W=echo
2371  fi
2372fi
2373
2374
2375# Define the identity of the package.
2376 PACKAGE='scim-anthy'
2377 VERSION='1.2.7'
2378
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE "$PACKAGE"
2382_ACEOF
2383
2384
2385cat >>confdefs.h <<_ACEOF
2386#define VERSION "$VERSION"
2387_ACEOF
2388
2389# Some tools Automake needs.
2390
2391ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2392
2393
2394AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2395
2396
2397AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2398
2399
2400AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2401
2402
2403MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2404
2405install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2406
2407# Installed binaries are usually stripped using `strip' when the user
2408# run `make install-strip'.  However `strip' might not be the right
2409# tool to use in cross-compilation environments, therefore Automake
2410# will honor the `STRIP' environment variable to overrule this program.
2411if test "$cross_compiling" != no; then
2412  if test -n "$ac_tool_prefix"; then
2413  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2414set dummy ${ac_tool_prefix}strip; ac_word=$2
2415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417if test "${ac_cv_prog_STRIP+set}" = set; then
2418  echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420  if test -n "$STRIP"; then
2421  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426  IFS=$as_save_IFS
2427  test -z "$as_dir" && as_dir=.
2428  for ac_exec_ext in '' $ac_executable_extensions; do
2429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432    break 2
2433  fi
2434done
2435done
2436IFS=$as_save_IFS
2437
2438fi
2439fi
2440STRIP=$ac_cv_prog_STRIP
2441if test -n "$STRIP"; then
2442  { echo "$as_me:$LINENO: result: $STRIP" >&5
2443echo "${ECHO_T}$STRIP" >&6; }
2444else
2445  { echo "$as_me:$LINENO: result: no" >&5
2446echo "${ECHO_T}no" >&6; }
2447fi
2448
2449
2450fi
2451if test -z "$ac_cv_prog_STRIP"; then
2452  ac_ct_STRIP=$STRIP
2453  # Extract the first word of "strip", so it can be a program name with args.
2454set dummy strip; ac_word=$2
2455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  if test -n "$ac_ct_STRIP"; then
2461  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468  for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_ac_ct_STRIP="strip"
2471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2481if test -n "$ac_ct_STRIP"; then
2482  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2483echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2484else
2485  { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
2487fi
2488
2489  if test "x$ac_ct_STRIP" = x; then
2490    STRIP=":"
2491  else
2492    case $cross_compiling:$ac_tool_warned in
2493yes:)
2494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495whose name does not start with the host triplet.  If you think this
2496configuration is useful to you, please write to autoconf@gnu.org." >&5
2497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498whose name does not start with the host triplet.  If you think this
2499configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500ac_tool_warned=yes ;;
2501esac
2502    STRIP=$ac_ct_STRIP
2503  fi
2504else
2505  STRIP="$ac_cv_prog_STRIP"
2506fi
2507
2508fi
2509INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2510
2511# We need awk for the "check" target.  The system "awk" is bad on
2512# some platforms.
2513# Always define AMTAR for backward compatibility.
2514
2515AMTAR=${AMTAR-"${am_missing_run}tar"}
2516
2517am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2518
2519
2520
2521
2522
2523ac_config_headers="$ac_config_headers config.h"
2524
2525
2526# Init gettext
2527ALL_LINGUAS="de ja"
2528
2529        MKINSTALLDIRS=
2530  if test -n "$ac_aux_dir"; then
2531    case "$ac_aux_dir" in
2532      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2533      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2534    esac
2535  fi
2536  if test -z "$MKINSTALLDIRS"; then
2537    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2538  fi
2539
2540
2541
2542  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2543echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2544    # Check whether --enable-nls was given.
2545if test "${enable_nls+set}" = set; then
2546  enableval=$enable_nls; USE_NLS=$enableval
2547else
2548  USE_NLS=yes
2549fi
2550
2551  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2552echo "${ECHO_T}$USE_NLS" >&6; }
2553
2554
2555
2556
2557
2558
2559# Prepare PATH_SEPARATOR.
2560# The user is always right.
2561if test "${PATH_SEPARATOR+set}" != set; then
2562  echo "#! /bin/sh" >conf$$.sh
2563  echo  "exit 0"   >>conf$$.sh
2564  chmod +x conf$$.sh
2565  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2566    PATH_SEPARATOR=';'
2567  else
2568    PATH_SEPARATOR=:
2569  fi
2570  rm -f conf$$.sh
2571fi
2572
2573# Find out how to test for executable files. Don't use a zero-byte file,
2574# as systems may use methods other than mode bits to determine executability.
2575cat >conf$$.file <<_ASEOF
2576#! /bin/sh
2577exit 0
2578_ASEOF
2579chmod +x conf$$.file
2580if test -x conf$$.file >/dev/null 2>&1; then
2581  ac_executable_p="test -x"
2582else
2583  ac_executable_p="test -f"
2584fi
2585rm -f conf$$.file
2586
2587# Extract the first word of "msgfmt", so it can be a program name with args.
2588set dummy msgfmt; ac_word=$2
2589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591if test "${ac_cv_path_MSGFMT+set}" = set; then
2592  echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594  case "$MSGFMT" in
2595  [\\/]* | ?:[\\/]*)
2596    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2597    ;;
2598  *)
2599    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2600    for ac_dir in $PATH; do
2601      IFS="$ac_save_IFS"
2602      test -z "$ac_dir" && ac_dir=.
2603      for ac_exec_ext in '' $ac_executable_extensions; do
2604        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2605          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2606     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2607            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2608            break 2
2609          fi
2610        fi
2611      done
2612    done
2613    IFS="$ac_save_IFS"
2614  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2615    ;;
2616esac
2617fi
2618MSGFMT="$ac_cv_path_MSGFMT"
2619if test "$MSGFMT" != ":"; then
2620  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2621echo "${ECHO_T}$MSGFMT" >&6; }
2622else
2623  { echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6; }
2625fi
2626
2627  # Extract the first word of "gmsgfmt", so it can be a program name with args.
2628set dummy gmsgfmt; ac_word=$2
2629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631if test "${ac_cv_path_GMSGFMT+set}" = set; then
2632  echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634  case $GMSGFMT in
2635  [\\/]* | ?:[\\/]*)
2636  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2637  ;;
2638  *)
2639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644  for ac_exec_ext in '' $ac_executable_extensions; do
2645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651done
2652IFS=$as_save_IFS
2653
2654  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2655  ;;
2656esac
2657fi
2658GMSGFMT=$ac_cv_path_GMSGFMT
2659if test -n "$GMSGFMT"; then
2660  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2661echo "${ECHO_T}$GMSGFMT" >&6; }
2662else
2663  { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
2665fi
2666
2667
2668
2669
2670# Prepare PATH_SEPARATOR.
2671# The user is always right.
2672if test "${PATH_SEPARATOR+set}" != set; then
2673  echo "#! /bin/sh" >conf$$.sh
2674  echo  "exit 0"   >>conf$$.sh
2675  chmod +x conf$$.sh
2676  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2677    PATH_SEPARATOR=';'
2678  else
2679    PATH_SEPARATOR=:
2680  fi
2681  rm -f conf$$.sh
2682fi
2683
2684# Find out how to test for executable files. Don't use a zero-byte file,
2685# as systems may use methods other than mode bits to determine executability.
2686cat >conf$$.file <<_ASEOF
2687#! /bin/sh
2688exit 0
2689_ASEOF
2690chmod +x conf$$.file
2691if test -x conf$$.file >/dev/null 2>&1; then
2692  ac_executable_p="test -x"
2693else
2694  ac_executable_p="test -f"
2695fi
2696rm -f conf$$.file
2697
2698# Extract the first word of "xgettext", so it can be a program name with args.
2699set dummy xgettext; ac_word=$2
2700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702if test "${ac_cv_path_XGETTEXT+set}" = set; then
2703  echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705  case "$XGETTEXT" in
2706  [\\/]* | ?:[\\/]*)
2707    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2708    ;;
2709  *)
2710    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2711    for ac_dir in $PATH; do
2712      IFS="$ac_save_IFS"
2713      test -z "$ac_dir" && ac_dir=.
2714      for ac_exec_ext in '' $ac_executable_extensions; do
2715        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2716          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2717     (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
2718            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2719            break 2
2720          fi
2721        fi
2722      done
2723    done
2724    IFS="$ac_save_IFS"
2725  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2726    ;;
2727esac
2728fi
2729XGETTEXT="$ac_cv_path_XGETTEXT"
2730if test "$XGETTEXT" != ":"; then
2731  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2732echo "${ECHO_T}$XGETTEXT" >&6; }
2733else
2734  { echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6; }
2736fi
2737
2738    rm -f messages.po
2739
2740
2741# Prepare PATH_SEPARATOR.
2742# The user is always right.
2743if test "${PATH_SEPARATOR+set}" != set; then
2744  echo "#! /bin/sh" >conf$$.sh
2745  echo  "exit 0"   >>conf$$.sh
2746  chmod +x conf$$.sh
2747  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2748    PATH_SEPARATOR=';'
2749  else
2750    PATH_SEPARATOR=:
2751  fi
2752  rm -f conf$$.sh
2753fi
2754
2755# Find out how to test for executable files. Don't use a zero-byte file,
2756# as systems may use methods other than mode bits to determine executability.
2757cat >conf$$.file <<_ASEOF
2758#! /bin/sh
2759exit 0
2760_ASEOF
2761chmod +x conf$$.file
2762if test -x conf$$.file >/dev/null 2>&1; then
2763  ac_executable_p="test -x"
2764else
2765  ac_executable_p="test -f"
2766fi
2767rm -f conf$$.file
2768
2769# Extract the first word of "msgmerge", so it can be a program name with args.
2770set dummy msgmerge; ac_word=$2
2771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773if test "${ac_cv_path_MSGMERGE+set}" = set; then
2774  echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776  case "$MSGMERGE" in
2777  [\\/]* | ?:[\\/]*)
2778    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2779    ;;
2780  *)
2781    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2782    for ac_dir in $PATH; do
2783      IFS="$ac_save_IFS"
2784      test -z "$ac_dir" && ac_dir=.
2785      for ac_exec_ext in '' $ac_executable_extensions; do
2786        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2787          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2788            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2789            break 2
2790          fi
2791        fi
2792      done
2793    done
2794    IFS="$ac_save_IFS"
2795  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2796    ;;
2797esac
2798fi
2799MSGMERGE="$ac_cv_path_MSGMERGE"
2800if test "$MSGMERGE" != ":"; then
2801  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2802echo "${ECHO_T}$MSGMERGE" >&6; }
2803else
2804  { echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6; }
2806fi
2807
2808
2809      if test "$GMSGFMT" != ":"; then
2810            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2811       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2812      : ;
2813    else
2814      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2815      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2816echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2817      GMSGFMT=":"
2818    fi
2819  fi
2820
2821      if test "$XGETTEXT" != ":"; then
2822            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2823       (if $XGETTEXT --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
2824      : ;
2825    else
2826      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2827echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2828      XGETTEXT=":"
2829    fi
2830        rm -f messages.po
2831  fi
2832
2833  ac_config_commands="$ac_config_commands default-1"
2834
2835
2836DEPDIR="${am__leading_dot}deps"
2837
2838ac_config_commands="$ac_config_commands depfiles"
2839
2840
2841am_make=${MAKE-make}
2842cat > confinc << 'END'
2843am__doit:
2844	@echo done
2845.PHONY: am__doit
2846END
2847# If we don't find an include directive, just comment out the code.
2848{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2849echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2850am__include="#"
2851am__quote=
2852_am_result=none
2853# First try GNU make style include.
2854echo "include confinc" > confmf
2855# We grep out `Entering directory' and `Leaving directory'
2856# messages which can occur if `w' ends up in MAKEFLAGS.
2857# In particular we don't look at `^make:' because GNU make might
2858# be invoked under some other name (usually "gmake"), in which
2859# case it prints its new name instead of `make'.
2860if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2861   am__include=include
2862   am__quote=
2863   _am_result=GNU
2864fi
2865# Now try BSD make style include.
2866if test "$am__include" = "#"; then
2867   echo '.include "confinc"' > confmf
2868   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2869      am__include=.include
2870      am__quote="\""
2871      _am_result=BSD
2872   fi
2873fi
2874
2875
2876{ echo "$as_me:$LINENO: result: $_am_result" >&5
2877echo "${ECHO_T}$_am_result" >&6; }
2878rm -f confinc confmf
2879
2880# Check whether --enable-dependency-tracking was given.
2881if test "${enable_dependency_tracking+set}" = set; then
2882  enableval=$enable_dependency_tracking;
2883fi
2884
2885if test "x$enable_dependency_tracking" != xno; then
2886  am_depcomp="$ac_aux_dir/depcomp"
2887  AMDEPBACKSLASH='\'
2888fi
2889 if test "x$enable_dependency_tracking" != xno; then
2890  AMDEP_TRUE=
2891  AMDEP_FALSE='#'
2892else
2893  AMDEP_TRUE='#'
2894  AMDEP_FALSE=
2895fi
2896
2897
2898ac_ext=c
2899ac_cpp='$CPP $CPPFLAGS'
2900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903if test -n "$ac_tool_prefix"; then
2904  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905set dummy ${ac_tool_prefix}gcc; ac_word=$2
2906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908if test "${ac_cv_prog_CC+set}" = set; then
2909  echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911  if test -n "$CC"; then
2912  ac_cv_prog_CC="$CC" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917  IFS=$as_save_IFS
2918  test -z "$as_dir" && as_dir=.
2919  for ac_exec_ext in '' $ac_executable_extensions; do
2920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923    break 2
2924  fi
2925done
2926done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931CC=$ac_cv_prog_CC
2932if test -n "$CC"; then
2933  { echo "$as_me:$LINENO: result: $CC" >&5
2934echo "${ECHO_T}$CC" >&6; }
2935else
2936  { echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$ac_cv_prog_CC"; then
2943  ac_ct_CC=$CC
2944  # Extract the first word of "gcc", so it can be a program name with args.
2945set dummy gcc; ac_word=$2
2946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  if test -n "$ac_ct_CC"; then
2952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    ac_cv_prog_ac_ct_CC="gcc"
2962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972if test -n "$ac_ct_CC"; then
2973  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2974echo "${ECHO_T}$ac_ct_CC" >&6; }
2975else
2976  { echo "$as_me:$LINENO: result: no" >&5
2977echo "${ECHO_T}no" >&6; }
2978fi
2979
2980  if test "x$ac_ct_CC" = x; then
2981    CC=""
2982  else
2983    case $cross_compiling:$ac_tool_warned in
2984yes:)
2985{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2986whose name does not start with the host triplet.  If you think this
2987configuration is useful to you, please write to autoconf@gnu.org." >&5
2988echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2989whose name does not start with the host triplet.  If you think this
2990configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2991ac_tool_warned=yes ;;
2992esac
2993    CC=$ac_ct_CC
2994  fi
2995else
2996  CC="$ac_cv_prog_CC"
2997fi
2998
2999if test -z "$CC"; then
3000          if test -n "$ac_tool_prefix"; then
3001    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002set dummy ${ac_tool_prefix}cc; ac_word=$2
3003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3005if test "${ac_cv_prog_CC+set}" = set; then
3006  echo $ECHO_N "(cached) $ECHO_C" >&6
3007else
3008  if test -n "$CC"; then
3009  ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016  for ac_exec_ext in '' $ac_executable_extensions; do
3017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018    ac_cv_prog_CC="${ac_tool_prefix}cc"
3019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028CC=$ac_cv_prog_CC
3029if test -n "$CC"; then
3030  { echo "$as_me:$LINENO: result: $CC" >&5
3031echo "${ECHO_T}$CC" >&6; }
3032else
3033  { echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6; }
3035fi
3036
3037
3038  fi
3039fi
3040if test -z "$CC"; then
3041  # Extract the first word of "cc", so it can be a program name with args.
3042set dummy cc; ac_word=$2
3043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3045if test "${ac_cv_prog_CC+set}" = set; then
3046  echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048  if test -n "$CC"; then
3049  ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051  ac_prog_rejected=no
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057  for ac_exec_ext in '' $ac_executable_extensions; do
3058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3060       ac_prog_rejected=yes
3061       continue
3062     fi
3063    ac_cv_prog_CC="cc"
3064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065    break 2
3066  fi
3067done
3068done
3069IFS=$as_save_IFS
3070
3071if test $ac_prog_rejected = yes; then
3072  # We found a bogon in the path, so make sure we never use it.
3073  set dummy $ac_cv_prog_CC
3074  shift
3075  if test $# != 0; then
3076    # We chose a different compiler from the bogus one.
3077    # However, it has the same basename, so the bogon will be chosen
3078    # first if we set CC to just the basename; use the full file name.
3079    shift
3080    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081  fi
3082fi
3083fi
3084fi
3085CC=$ac_cv_prog_CC
3086if test -n "$CC"; then
3087  { echo "$as_me:$LINENO: result: $CC" >&5
3088echo "${ECHO_T}$CC" >&6; }
3089else
3090  { echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6; }
3092fi
3093
3094
3095fi
3096if test -z "$CC"; then
3097  if test -n "$ac_tool_prefix"; then
3098  for ac_prog in cl.exe
3099  do
3100    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3104if test "${ac_cv_prog_CC+set}" = set; then
3105  echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107  if test -n "$CC"; then
3108  ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115  for ac_exec_ext in '' $ac_executable_extensions; do
3116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121done
3122done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
3129  { echo "$as_me:$LINENO: result: $CC" >&5
3130echo "${ECHO_T}$CC" >&6; }
3131else
3132  { echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6; }
3134fi
3135
3136
3137    test -n "$CC" && break
3138  done
3139fi
3140if test -z "$CC"; then
3141  ac_ct_CC=$CC
3142  for ac_prog in cl.exe
3143do
3144  # Extract the first word of "$ac_prog", so it can be a program name with args.
3145set dummy $ac_prog; ac_word=$2
3146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3148if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  if test -n "$ac_ct_CC"; then
3152  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159  for ac_exec_ext in '' $ac_executable_extensions; do
3160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161    ac_cv_prog_ac_ct_CC="$ac_prog"
3162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172if test -n "$ac_ct_CC"; then
3173  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3174echo "${ECHO_T}$ac_ct_CC" >&6; }
3175else
3176  { echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6; }
3178fi
3179
3180
3181  test -n "$ac_ct_CC" && break
3182done
3183
3184  if test "x$ac_ct_CC" = x; then
3185    CC=""
3186  else
3187    case $cross_compiling:$ac_tool_warned in
3188yes:)
3189{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3190whose name does not start with the host triplet.  If you think this
3191configuration is useful to you, please write to autoconf@gnu.org." >&5
3192echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3193whose name does not start with the host triplet.  If you think this
3194configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3195ac_tool_warned=yes ;;
3196esac
3197    CC=$ac_ct_CC
3198  fi
3199fi
3200
3201fi
3202
3203
3204test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3205See \`config.log' for more details." >&5
3206echo "$as_me: error: no acceptable C compiler found in \$PATH
3207See \`config.log' for more details." >&2;}
3208   { (exit 1); exit 1; }; }
3209
3210# Provide some information about the compiler.
3211echo "$as_me:$LINENO: checking for C compiler version" >&5
3212ac_compiler=`set X $ac_compile; echo $2`
3213{ (ac_try="$ac_compiler --version >&5"
3214case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219  (eval "$ac_compiler --version >&5") 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }
3223{ (ac_try="$ac_compiler -v >&5"
3224case "(($ac_try" in
3225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226  *) ac_try_echo=$ac_try;;
3227esac
3228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229  (eval "$ac_compiler -v >&5") 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }
3233{ (ac_try="$ac_compiler -V >&5"
3234case "(($ac_try" in
3235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236  *) ac_try_echo=$ac_try;;
3237esac
3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239  (eval "$ac_compiler -V >&5") 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }
3243
3244cat >conftest.$ac_ext <<_ACEOF
3245/* confdefs.h.  */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259ac_clean_files_save=$ac_clean_files
3260ac_clean_files="$ac_clean_files a.out a.exe b.out"
3261# Try to create an executable without -o first, disregard a.out.
3262# It will help us diagnose broken compilers, and finding out an intuition
3263# of exeext.
3264{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3265echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3266ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267#
3268# List of possible output files, starting from the most likely.
3269# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3270# only as a last resort.  b.out is created by i960 compilers.
3271ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3272#
3273# The IRIX 6 linker writes into existing files which may not be
3274# executable, retaining their permissions.  Remove them first so a
3275# subsequent execution test works.
3276ac_rmfiles=
3277for ac_file in $ac_files
3278do
3279  case $ac_file in
3280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3281    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282  esac
3283done
3284rm -f $ac_rmfiles
3285
3286if { (ac_try="$ac_link_default"
3287case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292  (eval "$ac_link_default") 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }; then
3296  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3297# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3298# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3299# so that the user can short-circuit this test for compilers unknown to
3300# Autoconf.
3301for ac_file in $ac_files ''
3302do
3303  test -f "$ac_file" || continue
3304  case $ac_file in
3305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3306	;;
3307    [ab].out )
3308	# We found the default executable, but exeext='' is most
3309	# certainly right.
3310	break;;
3311    *.* )
3312        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3313	then :; else
3314	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315	fi
3316	# We set ac_cv_exeext here because the later test for it is not
3317	# safe: cross compilers may not add the suffix if given an `-o'
3318	# argument, so we may need to know it at that point already.
3319	# Even if this section looks crufty: it has the advantage of
3320	# actually working.
3321	break;;
3322    * )
3323	break;;
3324  esac
3325done
3326test "$ac_cv_exeext" = no && ac_cv_exeext=
3327
3328else
3329  ac_file=''
3330fi
3331
3332{ echo "$as_me:$LINENO: result: $ac_file" >&5
3333echo "${ECHO_T}$ac_file" >&6; }
3334if test -z "$ac_file"; then
3335  echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3339See \`config.log' for more details." >&5
3340echo "$as_me: error: C compiler cannot create executables
3341See \`config.log' for more details." >&2;}
3342   { (exit 77); exit 77; }; }
3343fi
3344
3345ac_exeext=$ac_cv_exeext
3346
3347# Check that the compiler produces executables we can run.  If not, either
3348# the compiler is broken, or we cross compile.
3349{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3350echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3351# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3352# If not cross compiling, check that we can run a simple program.
3353if test "$cross_compiling" != yes; then
3354  if { ac_try='./$ac_file'
3355  { (case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360  (eval "$ac_try") 2>&5
3361  ac_status=$?
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); }; }; then
3364    cross_compiling=no
3365  else
3366    if test "$cross_compiling" = maybe; then
3367	cross_compiling=yes
3368    else
3369	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3370If you meant to cross compile, use \`--host'.
3371See \`config.log' for more details." >&5
3372echo "$as_me: error: cannot run C compiled programs.
3373If you meant to cross compile, use \`--host'.
3374See \`config.log' for more details." >&2;}
3375   { (exit 1); exit 1; }; }
3376    fi
3377  fi
3378fi
3379{ echo "$as_me:$LINENO: result: yes" >&5
3380echo "${ECHO_T}yes" >&6; }
3381
3382rm -f a.out a.exe conftest$ac_cv_exeext b.out
3383ac_clean_files=$ac_clean_files_save
3384# Check that the compiler produces executables we can run.  If not, either
3385# the compiler is broken, or we cross compile.
3386{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3387echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3388{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3389echo "${ECHO_T}$cross_compiling" >&6; }
3390
3391{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3392echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3393if { (ac_try="$ac_link"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399  (eval "$ac_link") 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; then
3403  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3404# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3405# work properly (i.e., refer to `conftest.exe'), while it won't with
3406# `rm'.
3407for ac_file in conftest.exe conftest conftest.*; do
3408  test -f "$ac_file" || continue
3409  case $ac_file in
3410    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3411    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412	  break;;
3413    * ) break;;
3414  esac
3415done
3416else
3417  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3418See \`config.log' for more details." >&5
3419echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3420See \`config.log' for more details." >&2;}
3421   { (exit 1); exit 1; }; }
3422fi
3423
3424rm -f conftest$ac_cv_exeext
3425{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3426echo "${ECHO_T}$ac_cv_exeext" >&6; }
3427
3428rm -f conftest.$ac_ext
3429EXEEXT=$ac_cv_exeext
3430ac_exeext=$EXEEXT
3431{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3432echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3433if test "${ac_cv_objext+set}" = set; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442
3443int
3444main ()
3445{
3446
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451rm -f conftest.o conftest.obj
3452if { (ac_try="$ac_compile"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458  (eval "$ac_compile") 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; then
3462  for ac_file in conftest.o conftest.obj conftest.*; do
3463  test -f "$ac_file" || continue;
3464  case $ac_file in
3465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3466    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467       break;;
3468  esac
3469done
3470else
3471  echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3475See \`config.log' for more details." >&5
3476echo "$as_me: error: cannot compute suffix of object files: cannot compile
3477See \`config.log' for more details." >&2;}
3478   { (exit 1); exit 1; }; }
3479fi
3480
3481rm -f conftest.$ac_cv_objext conftest.$ac_ext
3482fi
3483{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3484echo "${ECHO_T}$ac_cv_objext" >&6; }
3485OBJEXT=$ac_cv_objext
3486ac_objext=$OBJEXT
3487{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3488echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3489if test "${ac_cv_c_compiler_gnu+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  cat >conftest.$ac_ext <<_ACEOF
3493/* confdefs.h.  */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h.  */
3498
3499int
3500main ()
3501{
3502#ifndef __GNUC__
3503       choke me
3504#endif
3505
3506  ;
3507  return 0;
3508}
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (ac_try="$ac_compile"
3512case "(($ac_try" in
3513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514  *) ac_try_echo=$ac_try;;
3515esac
3516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517  (eval "$ac_compile") 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } && {
3524	 test -z "$ac_c_werror_flag" ||
3525	 test ! -s conftest.err
3526       } && test -s conftest.$ac_objext; then
3527  ac_compiler_gnu=yes
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532	ac_compiler_gnu=no
3533fi
3534
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3540echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3541GCC=`test $ac_compiler_gnu = yes && echo yes`
3542ac_test_CFLAGS=${CFLAGS+set}
3543ac_save_CFLAGS=$CFLAGS
3544{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3546if test "${ac_cv_prog_cc_g+set}" = set; then
3547  echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549  ac_save_c_werror_flag=$ac_c_werror_flag
3550   ac_c_werror_flag=yes
3551   ac_cv_prog_cc_g=no
3552   CFLAGS="-g"
3553   cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h.  */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568rm -f conftest.$ac_objext
3569if { (ac_try="$ac_compile"
3570case "(($ac_try" in
3571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572  *) ac_try_echo=$ac_try;;
3573esac
3574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575  (eval "$ac_compile") 2>conftest.er1
3576  ac_status=$?
3577  grep -v '^ *+' conftest.er1 >conftest.err
3578  rm -f conftest.er1
3579  cat conftest.err >&5
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); } && {
3582	 test -z "$ac_c_werror_flag" ||
3583	 test ! -s conftest.err
3584       } && test -s conftest.$ac_objext; then
3585  ac_cv_prog_cc_g=yes
3586else
3587  echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590	CFLAGS=""
3591      cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext
3607if { (ac_try="$ac_compile"
3608case "(($ac_try" in
3609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610  *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613  (eval "$ac_compile") 2>conftest.er1
3614  ac_status=$?
3615  grep -v '^ *+' conftest.er1 >conftest.err
3616  rm -f conftest.er1
3617  cat conftest.err >&5
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); } && {
3620	 test -z "$ac_c_werror_flag" ||
3621	 test ! -s conftest.err
3622       } && test -s conftest.$ac_objext; then
3623  :
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628	ac_c_werror_flag=$ac_save_c_werror_flag
3629	 CFLAGS="-g"
3630	 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636
3637int
3638main ()
3639{
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext
3646if { (ac_try="$ac_compile"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652  (eval "$ac_compile") 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } && {
3659	 test -z "$ac_c_werror_flag" ||
3660	 test ! -s conftest.err
3661       } && test -s conftest.$ac_objext; then
3662  ac_cv_prog_cc_g=yes
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667
3668fi
3669
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671fi
3672
3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674fi
3675
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677   ac_c_werror_flag=$ac_save_c_werror_flag
3678fi
3679{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3680echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3681if test "$ac_test_CFLAGS" = set; then
3682  CFLAGS=$ac_save_CFLAGS
3683elif test $ac_cv_prog_cc_g = yes; then
3684  if test "$GCC" = yes; then
3685    CFLAGS="-g -O2"
3686  else
3687    CFLAGS="-g"
3688  fi
3689else
3690  if test "$GCC" = yes; then
3691    CFLAGS="-O2"
3692  else
3693    CFLAGS=
3694  fi
3695fi
3696{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3697echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3698if test "${ac_cv_prog_cc_c89+set}" = set; then
3699  echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701  ac_cv_prog_cc_c89=no
3702ac_save_CC=$CC
3703cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h.  */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h.  */
3709#include <stdarg.h>
3710#include <stdio.h>
3711#include <sys/types.h>
3712#include <sys/stat.h>
3713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3714struct buf { int x; };
3715FILE * (*rcsopen) (struct buf *, struct stat *, int);
3716static char *e (p, i)
3717     char **p;
3718     int i;
3719{
3720  return p[i];
3721}
3722static char *f (char * (*g) (char **, int), char **p, ...)
3723{
3724  char *s;
3725  va_list v;
3726  va_start (v,p);
3727  s = g (p, va_arg (v,int));
3728  va_end (v);
3729  return s;
3730}
3731
3732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3733   function prototypes and stuff, but not '\xHH' hex character constants.
3734   These don't provoke an error unfortunately, instead are silently treated
3735   as 'x'.  The following induces an error, until -std is added to get
3736   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3737   array size at least.  It's necessary to write '\x00'==0 to get something
3738   that's true only with -std.  */
3739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740
3741/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3742   inside strings and character constants.  */
3743#define FOO(x) 'x'
3744int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3745
3746int test (int i, double x);
3747struct s1 {int (*f) (int a);};
3748struct s2 {int (*f) (double a);};
3749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3750int argc;
3751char **argv;
3752int
3753main ()
3754{
3755return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3761	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3762do
3763  CC="$ac_save_CC $ac_arg"
3764  rm -f conftest.$ac_objext
3765if { (ac_try="$ac_compile"
3766case "(($ac_try" in
3767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768  *) ac_try_echo=$ac_try;;
3769esac
3770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771  (eval "$ac_compile") 2>conftest.er1
3772  ac_status=$?
3773  grep -v '^ *+' conftest.er1 >conftest.err
3774  rm -f conftest.er1
3775  cat conftest.err >&5
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); } && {
3778	 test -z "$ac_c_werror_flag" ||
3779	 test ! -s conftest.err
3780       } && test -s conftest.$ac_objext; then
3781  ac_cv_prog_cc_c89=$ac_arg
3782else
3783  echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786
3787fi
3788
3789rm -f core conftest.err conftest.$ac_objext
3790  test "x$ac_cv_prog_cc_c89" != "xno" && break
3791done
3792rm -f conftest.$ac_ext
3793CC=$ac_save_CC
3794
3795fi
3796# AC_CACHE_VAL
3797case "x$ac_cv_prog_cc_c89" in
3798  x)
3799    { echo "$as_me:$LINENO: result: none needed" >&5
3800echo "${ECHO_T}none needed" >&6; } ;;
3801  xno)
3802    { echo "$as_me:$LINENO: result: unsupported" >&5
3803echo "${ECHO_T}unsupported" >&6; } ;;
3804  *)
3805    CC="$CC $ac_cv_prog_cc_c89"
3806    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3807echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3808esac
3809
3810
3811ac_ext=c
3812ac_cpp='$CPP $CPPFLAGS'
3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816
3817depcc="$CC"   am_compiler_list=
3818
3819{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3820echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3821if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3822  echo $ECHO_N "(cached) $ECHO_C" >&6
3823else
3824  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825  # We make a subdir and do the tests there.  Otherwise we can end up
3826  # making bogus files that we don't know about and never remove.  For
3827  # instance it was reported that on HP-UX the gcc test will end up
3828  # making a dummy file named `D' -- because `-MD' means `put the output
3829  # in D'.
3830  mkdir conftest.dir
3831  # Copy depcomp to subdir because otherwise we won't find it if we're
3832  # using a relative directory.
3833  cp "$am_depcomp" conftest.dir
3834  cd conftest.dir
3835  # We will build objects and dependencies in a subdirectory because
3836  # it helps to detect inapplicable dependency modes.  For instance
3837  # both Tru64's cc and ICC support -MD to output dependencies as a
3838  # side effect of compilation, but ICC will put the dependencies in
3839  # the current directory while Tru64 will put them in the object
3840  # directory.
3841  mkdir sub
3842
3843  am_cv_CC_dependencies_compiler_type=none
3844  if test "$am_compiler_list" = ""; then
3845     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3846  fi
3847  for depmode in $am_compiler_list; do
3848    # Setup a source with many dependencies, because some compilers
3849    # like to wrap large dependency lists on column 80 (with \), and
3850    # we should not choose a depcomp mode which is confused by this.
3851    #
3852    # We need to recreate these files for each test, as the compiler may
3853    # overwrite some of them when testing with obscure command lines.
3854    # This happens at least with the AIX C compiler.
3855    : > sub/conftest.c
3856    for i in 1 2 3 4 5 6; do
3857      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859      # Solaris 8's {/usr,}/bin/sh.
3860      touch sub/conftst$i.h
3861    done
3862    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3863
3864    case $depmode in
3865    nosideeffect)
3866      # after this tag, mechanisms are not by side-effect, so they'll
3867      # only be used when explicitly requested
3868      if test "x$enable_dependency_tracking" = xyes; then
3869	continue
3870      else
3871	break
3872      fi
3873      ;;
3874    none) break ;;
3875    esac
3876    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3877    # mode.  It turns out that the SunPro C++ compiler does not properly
3878    # handle `-M -o', and we need to detect this.
3879    if depmode=$depmode \
3880       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3881       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3883         >/dev/null 2>conftest.err &&
3884       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3885       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3886       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3887       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3888      # icc doesn't choke on unknown options, it will just issue warnings
3889      # or remarks (even with -Werror).  So we grep stderr for any message
3890      # that says an option was ignored or not supported.
3891      # When given -MP, icc 7.0 and 7.1 complain thusly:
3892      #   icc: Command line warning: ignoring option '-M'; no argument required
3893      # The diagnosis changed in icc 8.0:
3894      #   icc: Command line remark: option '-MP' not supported
3895      if (grep 'ignoring option' conftest.err ||
3896          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3897        am_cv_CC_dependencies_compiler_type=$depmode
3898        break
3899      fi
3900    fi
3901  done
3902
3903  cd ..
3904  rm -rf conftest.dir
3905else
3906  am_cv_CC_dependencies_compiler_type=none
3907fi
3908
3909fi
3910{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3911echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3913
3914 if
3915  test "x$enable_dependency_tracking" != xno \
3916  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917  am__fastdepCC_TRUE=
3918  am__fastdepCC_FALSE='#'
3919else
3920  am__fastdepCC_TRUE='#'
3921  am__fastdepCC_FALSE=
3922fi
3923
3924
3925# Make sure we can run config.sub.
3926$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3927  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3928echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3929   { (exit 1); exit 1; }; }
3930
3931{ echo "$as_me:$LINENO: checking build system type" >&5
3932echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3933if test "${ac_cv_build+set}" = set; then
3934  echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936  ac_build_alias=$build_alias
3937test "x$ac_build_alias" = x &&
3938  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3939test "x$ac_build_alias" = x &&
3940  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3941echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3942   { (exit 1); exit 1; }; }
3943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3944  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3945echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3946   { (exit 1); exit 1; }; }
3947
3948fi
3949{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3950echo "${ECHO_T}$ac_cv_build" >&6; }
3951case $ac_cv_build in
3952*-*-*) ;;
3953*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3954echo "$as_me: error: invalid value of canonical build" >&2;}
3955   { (exit 1); exit 1; }; };;
3956esac
3957build=$ac_cv_build
3958ac_save_IFS=$IFS; IFS='-'
3959set x $ac_cv_build
3960shift
3961build_cpu=$1
3962build_vendor=$2
3963shift; shift
3964# Remember, the first character of IFS is used to create $*,
3965# except with old shells:
3966build_os=$*
3967IFS=$ac_save_IFS
3968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3969
3970
3971{ echo "$as_me:$LINENO: checking host system type" >&5
3972echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3973if test "${ac_cv_host+set}" = set; then
3974  echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976  if test "x$host_alias" = x; then
3977  ac_cv_host=$ac_cv_build
3978else
3979  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3980    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3981echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3982   { (exit 1); exit 1; }; }
3983fi
3984
3985fi
3986{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3987echo "${ECHO_T}$ac_cv_host" >&6; }
3988case $ac_cv_host in
3989*-*-*) ;;
3990*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3991echo "$as_me: error: invalid value of canonical host" >&2;}
3992   { (exit 1); exit 1; }; };;
3993esac
3994host=$ac_cv_host
3995ac_save_IFS=$IFS; IFS='-'
3996set x $ac_cv_host
3997shift
3998host_cpu=$1
3999host_vendor=$2
4000shift; shift
4001# Remember, the first character of IFS is used to create $*,
4002# except with old shells:
4003host_os=$*
4004IFS=$ac_save_IFS
4005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006
4007
4008if test -n "$ac_tool_prefix"; then
4009  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4010set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013if test "${ac_cv_prog_RANLIB+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  if test -n "$RANLIB"; then
4017  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024  for ac_exec_ext in '' $ac_executable_extensions; do
4025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028    break 2
4029  fi
4030done
4031done
4032IFS=$as_save_IFS
4033
4034fi
4035fi
4036RANLIB=$ac_cv_prog_RANLIB
4037if test -n "$RANLIB"; then
4038  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4039echo "${ECHO_T}$RANLIB" >&6; }
4040else
4041  { echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6; }
4043fi
4044
4045
4046fi
4047if test -z "$ac_cv_prog_RANLIB"; then
4048  ac_ct_RANLIB=$RANLIB
4049  # Extract the first word of "ranlib", so it can be a program name with args.
4050set dummy ranlib; ac_word=$2
4051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4053if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4054  echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056  if test -n "$ac_ct_RANLIB"; then
4057  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4058else
4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062  IFS=$as_save_IFS
4063  test -z "$as_dir" && as_dir=.
4064  for ac_exec_ext in '' $ac_executable_extensions; do
4065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066    ac_cv_prog_ac_ct_RANLIB="ranlib"
4067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068    break 2
4069  fi
4070done
4071done
4072IFS=$as_save_IFS
4073
4074fi
4075fi
4076ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4077if test -n "$ac_ct_RANLIB"; then
4078  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4079echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4080else
4081  { echo "$as_me:$LINENO: result: no" >&5
4082echo "${ECHO_T}no" >&6; }
4083fi
4084
4085  if test "x$ac_ct_RANLIB" = x; then
4086    RANLIB=":"
4087  else
4088    case $cross_compiling:$ac_tool_warned in
4089yes:)
4090{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4091whose name does not start with the host triplet.  If you think this
4092configuration is useful to you, please write to autoconf@gnu.org." >&5
4093echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4094whose name does not start with the host triplet.  If you think this
4095configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4096ac_tool_warned=yes ;;
4097esac
4098    RANLIB=$ac_ct_RANLIB
4099  fi
4100else
4101  RANLIB="$ac_cv_prog_RANLIB"
4102fi
4103
4104
4105
4106        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4107echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4108if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4109  echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111  ac_check_lib_save_LIBS=$LIBS
4112LIBS="-lcposix  $LIBS"
4113cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h.  */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h.  */
4119
4120/* Override any GCC internal prototype to avoid an error.
4121   Use char because int might match the return type of a GCC
4122   builtin and then its argument prototype would still apply.  */
4123#ifdef __cplusplus
4124extern "C"
4125#endif
4126char strerror ();
4127int
4128main ()
4129{
4130return strerror ();
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135rm -f conftest.$ac_objext conftest$ac_exeext
4136if { (ac_try="$ac_link"
4137case "(($ac_try" in
4138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139  *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142  (eval "$ac_link") 2>conftest.er1
4143  ac_status=$?
4144  grep -v '^ *+' conftest.er1 >conftest.err
4145  rm -f conftest.er1
4146  cat conftest.err >&5
4147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148  (exit $ac_status); } && {
4149	 test -z "$ac_c_werror_flag" ||
4150	 test ! -s conftest.err
4151       } && test -s conftest$ac_exeext &&
4152       $as_test_x conftest$ac_exeext; then
4153  ac_cv_lib_cposix_strerror=yes
4154else
4155  echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
4158	ac_cv_lib_cposix_strerror=no
4159fi
4160
4161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4162      conftest$ac_exeext conftest.$ac_ext
4163LIBS=$ac_check_lib_save_LIBS
4164fi
4165{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4166echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4167if test $ac_cv_lib_cposix_strerror = yes; then
4168  LIBS="$LIBS -lcposix"
4169fi
4170
4171
4172
4173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4180# On Suns, sometimes $CPP names a directory.
4181if test -n "$CPP" && test -d "$CPP"; then
4182  CPP=
4183fi
4184if test -z "$CPP"; then
4185  if test "${ac_cv_prog_CPP+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188      # Double quotes because CPP needs to be expanded
4189    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190    do
4191      ac_preproc_ok=false
4192for ac_c_preproc_warn_flag in '' yes
4193do
4194  # Use a header file that comes with gcc, so configuring glibc
4195  # with a fresh cross-compiler works.
4196  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197  # <limits.h> exists even on freestanding compilers.
4198  # On the NeXT, cc -E runs the code through the compiler's parser,
4199  # not just through cpp. "Syntax error" is here to catch this case.
4200  cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206#ifdef __STDC__
4207# include <limits.h>
4208#else
4209# include <assert.h>
4210#endif
4211		     Syntax error
4212_ACEOF
4213if { (ac_try="$ac_cpp conftest.$ac_ext"
4214case "(($ac_try" in
4215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216  *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220  ac_status=$?
4221  grep -v '^ *+' conftest.er1 >conftest.err
4222  rm -f conftest.er1
4223  cat conftest.err >&5
4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225  (exit $ac_status); } >/dev/null && {
4226	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227	 test ! -s conftest.err
4228       }; then
4229  :
4230else
4231  echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234  # Broken: fails on valid input.
4235continue
4236fi
4237
4238rm -f conftest.err conftest.$ac_ext
4239
4240  # OK, works on sane cases.  Now check whether nonexistent headers
4241  # can be detected and how.
4242  cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h.  */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h.  */
4248#include <ac_nonexistent.h>
4249_ACEOF
4250if { (ac_try="$ac_cpp conftest.$ac_ext"
4251case "(($ac_try" in
4252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253  *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4257  ac_status=$?
4258  grep -v '^ *+' conftest.er1 >conftest.err
4259  rm -f conftest.er1
4260  cat conftest.err >&5
4261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262  (exit $ac_status); } >/dev/null && {
4263	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264	 test ! -s conftest.err
4265       }; then
4266  # Broken: success on invalid input.
4267continue
4268else
4269  echo "$as_me: failed program was:" >&5
4270sed 's/^/| /' conftest.$ac_ext >&5
4271
4272  # Passes both tests.
4273ac_preproc_ok=:
4274break
4275fi
4276
4277rm -f conftest.err conftest.$ac_ext
4278
4279done
4280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281rm -f conftest.err conftest.$ac_ext
4282if $ac_preproc_ok; then
4283  break
4284fi
4285
4286    done
4287    ac_cv_prog_CPP=$CPP
4288
4289fi
4290  CPP=$ac_cv_prog_CPP
4291else
4292  ac_cv_prog_CPP=$CPP
4293fi
4294{ echo "$as_me:$LINENO: result: $CPP" >&5
4295echo "${ECHO_T}$CPP" >&6; }
4296ac_preproc_ok=false
4297for ac_c_preproc_warn_flag in '' yes
4298do
4299  # Use a header file that comes with gcc, so configuring glibc
4300  # with a fresh cross-compiler works.
4301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302  # <limits.h> exists even on freestanding compilers.
4303  # On the NeXT, cc -E runs the code through the compiler's parser,
4304  # not just through cpp. "Syntax error" is here to catch this case.
4305  cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311#ifdef __STDC__
4312# include <limits.h>
4313#else
4314# include <assert.h>
4315#endif
4316		     Syntax error
4317_ACEOF
4318if { (ac_try="$ac_cpp conftest.$ac_ext"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4325  ac_status=$?
4326  grep -v '^ *+' conftest.er1 >conftest.err
4327  rm -f conftest.er1
4328  cat conftest.err >&5
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } >/dev/null && {
4331	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4332	 test ! -s conftest.err
4333       }; then
4334  :
4335else
4336  echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339  # Broken: fails on valid input.
4340continue
4341fi
4342
4343rm -f conftest.err conftest.$ac_ext
4344
4345  # OK, works on sane cases.  Now check whether nonexistent headers
4346  # can be detected and how.
4347  cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h.  */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h.  */
4353#include <ac_nonexistent.h>
4354_ACEOF
4355if { (ac_try="$ac_cpp conftest.$ac_ext"
4356case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362  ac_status=$?
4363  grep -v '^ *+' conftest.er1 >conftest.err
4364  rm -f conftest.er1
4365  cat conftest.err >&5
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); } >/dev/null && {
4368	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4369	 test ! -s conftest.err
4370       }; then
4371  # Broken: success on invalid input.
4372continue
4373else
4374  echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377  # Passes both tests.
4378ac_preproc_ok=:
4379break
4380fi
4381
4382rm -f conftest.err conftest.$ac_ext
4383
4384done
4385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386rm -f conftest.err conftest.$ac_ext
4387if $ac_preproc_ok; then
4388  :
4389else
4390  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4391See \`config.log' for more details." >&5
4392echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4393See \`config.log' for more details." >&2;}
4394   { (exit 1); exit 1; }; }
4395fi
4396
4397ac_ext=c
4398ac_cpp='$CPP $CPPFLAGS'
4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402
4403
4404{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4405echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4406if test "${ac_cv_path_GREP+set}" = set; then
4407  echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409  # Extract the first word of "grep ggrep" to use in msg output
4410if test -z "$GREP"; then
4411set dummy grep ggrep; ac_prog_name=$2
4412if test "${ac_cv_path_GREP+set}" = set; then
4413  echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415  ac_path_GREP_found=false
4416# Loop through the user's path and test for each of PROGNAME-LIST
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419do
4420  IFS=$as_save_IFS
4421  test -z "$as_dir" && as_dir=.
4422  for ac_prog in grep ggrep; do
4423  for ac_exec_ext in '' $ac_executable_extensions; do
4424    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4425    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4426    # Check for GNU ac_path_GREP and select it if it is found.
4427  # Check for GNU $ac_path_GREP
4428case `"$ac_path_GREP" --version 2>&1` in
4429*GNU*)
4430  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4431*)
4432  ac_count=0
4433  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4434  while :
4435  do
4436    cat "conftest.in" "conftest.in" >"conftest.tmp"
4437    mv "conftest.tmp" "conftest.in"
4438    cp "conftest.in" "conftest.nl"
4439    echo 'GREP' >> "conftest.nl"
4440    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442    ac_count=`expr $ac_count + 1`
4443    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444      # Best one so far, save it but keep looking for a better one
4445      ac_cv_path_GREP="$ac_path_GREP"
4446      ac_path_GREP_max=$ac_count
4447    fi
4448    # 10*(2^10) chars as input seems more than enough
4449    test $ac_count -gt 10 && break
4450  done
4451  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452esac
4453
4454
4455    $ac_path_GREP_found && break 3
4456  done
4457done
4458
4459done
4460IFS=$as_save_IFS
4461
4462
4463fi
4464
4465GREP="$ac_cv_path_GREP"
4466if test -z "$GREP"; then
4467  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4468echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4469   { (exit 1); exit 1; }; }
4470fi
4471
4472else
4473  ac_cv_path_GREP=$GREP
4474fi
4475
4476
4477fi
4478{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4479echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4480 GREP="$ac_cv_path_GREP"
4481
4482
4483{ echo "$as_me:$LINENO: checking for egrep" >&5
4484echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4485if test "${ac_cv_path_EGREP+set}" = set; then
4486  echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
4488  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4489   then ac_cv_path_EGREP="$GREP -E"
4490   else
4491     # Extract the first word of "egrep" to use in msg output
4492if test -z "$EGREP"; then
4493set dummy egrep; ac_prog_name=$2
4494if test "${ac_cv_path_EGREP+set}" = set; then
4495  echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497  ac_path_EGREP_found=false
4498# Loop through the user's path and test for each of PROGNAME-LIST
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4501do
4502  IFS=$as_save_IFS
4503  test -z "$as_dir" && as_dir=.
4504  for ac_prog in egrep; do
4505  for ac_exec_ext in '' $ac_executable_extensions; do
4506    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4507    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4508    # Check for GNU ac_path_EGREP and select it if it is found.
4509  # Check for GNU $ac_path_EGREP
4510case `"$ac_path_EGREP" --version 2>&1` in
4511*GNU*)
4512  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4513*)
4514  ac_count=0
4515  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4516  while :
4517  do
4518    cat "conftest.in" "conftest.in" >"conftest.tmp"
4519    mv "conftest.tmp" "conftest.in"
4520    cp "conftest.in" "conftest.nl"
4521    echo 'EGREP' >> "conftest.nl"
4522    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524    ac_count=`expr $ac_count + 1`
4525    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4526      # Best one so far, save it but keep looking for a better one
4527      ac_cv_path_EGREP="$ac_path_EGREP"
4528      ac_path_EGREP_max=$ac_count
4529    fi
4530    # 10*(2^10) chars as input seems more than enough
4531    test $ac_count -gt 10 && break
4532  done
4533  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534esac
4535
4536
4537    $ac_path_EGREP_found && break 3
4538  done
4539done
4540
4541done
4542IFS=$as_save_IFS
4543
4544
4545fi
4546
4547EGREP="$ac_cv_path_EGREP"
4548if test -z "$EGREP"; then
4549  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4550echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4551   { (exit 1); exit 1; }; }
4552fi
4553
4554else
4555  ac_cv_path_EGREP=$EGREP
4556fi
4557
4558
4559   fi
4560fi
4561{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4562echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4563 EGREP="$ac_cv_path_EGREP"
4564
4565
4566{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4567echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4568if test "${ac_cv_header_stdc+set}" = set; then
4569  echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571  cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h.  */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h.  */
4577#include <stdlib.h>
4578#include <stdarg.h>
4579#include <string.h>
4580#include <float.h>
4581
4582int
4583main ()
4584{
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (ac_try="$ac_compile"
4592case "(($ac_try" in
4593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594  *) ac_try_echo=$ac_try;;
4595esac
4596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597  (eval "$ac_compile") 2>conftest.er1
4598  ac_status=$?
4599  grep -v '^ *+' conftest.er1 >conftest.err
4600  rm -f conftest.er1
4601  cat conftest.err >&5
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); } && {
4604	 test -z "$ac_c_werror_flag" ||
4605	 test ! -s conftest.err
4606       } && test -s conftest.$ac_objext; then
4607  ac_cv_header_stdc=yes
4608else
4609  echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612	ac_cv_header_stdc=no
4613fi
4614
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616
4617if test $ac_cv_header_stdc = yes; then
4618  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4619  cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h.  */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h.  */
4625#include <string.h>
4626
4627_ACEOF
4628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629  $EGREP "memchr" >/dev/null 2>&1; then
4630  :
4631else
4632  ac_cv_header_stdc=no
4633fi
4634rm -f conftest*
4635
4636fi
4637
4638if test $ac_cv_header_stdc = yes; then
4639  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4640  cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h.  */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h.  */
4646#include <stdlib.h>
4647
4648_ACEOF
4649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4650  $EGREP "free" >/dev/null 2>&1; then
4651  :
4652else
4653  ac_cv_header_stdc=no
4654fi
4655rm -f conftest*
4656
4657fi
4658
4659if test $ac_cv_header_stdc = yes; then
4660  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4661  if test "$cross_compiling" = yes; then
4662  :
4663else
4664  cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h.  */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h.  */
4670#include <ctype.h>
4671#include <stdlib.h>
4672#if ((' ' & 0x0FF) == 0x020)
4673# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4674# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4675#else
4676# define ISLOWER(c) \
4677		   (('a' <= (c) && (c) <= 'i') \
4678		     || ('j' <= (c) && (c) <= 'r') \
4679		     || ('s' <= (c) && (c) <= 'z'))
4680# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4681#endif
4682
4683#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4684int
4685main ()
4686{
4687  int i;
4688  for (i = 0; i < 256; i++)
4689    if (XOR (islower (i), ISLOWER (i))
4690	|| toupper (i) != TOUPPER (i))
4691      return 2;
4692  return 0;
4693}
4694_ACEOF
4695rm -f conftest$ac_exeext
4696if { (ac_try="$ac_link"
4697case "(($ac_try" in
4698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699  *) ac_try_echo=$ac_try;;
4700esac
4701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702  (eval "$ac_link") 2>&5
4703  ac_status=$?
4704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4706  { (case "(($ac_try" in
4707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708  *) ac_try_echo=$ac_try;;
4709esac
4710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711  (eval "$ac_try") 2>&5
4712  ac_status=$?
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); }; }; then
4715  :
4716else
4717  echo "$as_me: program exited with status $ac_status" >&5
4718echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721( exit $ac_status )
4722ac_cv_header_stdc=no
4723fi
4724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4725fi
4726
4727
4728fi
4729fi
4730{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4731echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4732if test $ac_cv_header_stdc = yes; then
4733
4734cat >>confdefs.h <<\_ACEOF
4735#define STDC_HEADERS 1
4736_ACEOF
4737
4738fi
4739
4740{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4741echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4742if test "${ac_cv_c_const+set}" = set; then
4743  echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745  cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751
4752int
4753main ()
4754{
4755/* FIXME: Include the comments suggested by Paul. */
4756#ifndef __cplusplus
4757  /* Ultrix mips cc rejects this.  */
4758  typedef int charset[2];
4759  const charset cs;
4760  /* SunOS 4.1.1 cc rejects this.  */
4761  char const *const *pcpcc;
4762  char **ppc;
4763  /* NEC SVR4.0.2 mips cc rejects this.  */
4764  struct point {int x, y;};
4765  static struct point const zero = {0,0};
4766  /* AIX XL C 1.02.0.0 rejects this.
4767     It does not let you subtract one const X* pointer from another in
4768     an arm of an if-expression whose if-part is not a constant
4769     expression */
4770  const char *g = "string";
4771  pcpcc = &g + (g ? g-g : 0);
4772  /* HPUX 7.0 cc rejects these. */
4773  ++pcpcc;
4774  ppc = (char**) pcpcc;
4775  pcpcc = (char const *const *) ppc;
4776  { /* SCO 3.2v4 cc rejects this.  */
4777    char *t;
4778    char const *s = 0 ? (char *) 0 : (char const *) 0;
4779
4780    *t++ = 0;
4781    if (s) return 0;
4782  }
4783  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4784    int x[] = {25, 17};
4785    const int *foo = &x[0];
4786    ++foo;
4787  }
4788  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4789    typedef const int *iptr;
4790    iptr p = 0;
4791    ++p;
4792  }
4793  { /* AIX XL C 1.02.0.0 rejects this saying
4794       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4795    struct s { int j; const int *ap[3]; };
4796    struct s *b; b->j = 5;
4797  }
4798  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4799    const int foo = 10;
4800    if (!foo) return 0;
4801  }
4802  return !cs[0] && !zero.x;
4803#endif
4804
4805  ;
4806  return 0;
4807}
4808_ACEOF
4809rm -f conftest.$ac_objext
4810if { (ac_try="$ac_compile"
4811case "(($ac_try" in
4812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813  *) ac_try_echo=$ac_try;;
4814esac
4815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816  (eval "$ac_compile") 2>conftest.er1
4817  ac_status=$?
4818  grep -v '^ *+' conftest.er1 >conftest.err
4819  rm -f conftest.er1
4820  cat conftest.err >&5
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } && {
4823	 test -z "$ac_c_werror_flag" ||
4824	 test ! -s conftest.err
4825       } && test -s conftest.$ac_objext; then
4826  ac_cv_c_const=yes
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831	ac_cv_c_const=no
4832fi
4833
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835fi
4836{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4837echo "${ECHO_T}$ac_cv_c_const" >&6; }
4838if test $ac_cv_c_const = no; then
4839
4840cat >>confdefs.h <<\_ACEOF
4841#define const
4842_ACEOF
4843
4844fi
4845
4846
4847  { echo "$as_me:$LINENO: checking for signed" >&5
4848echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4849if test "${bh_cv_c_signed+set}" = set; then
4850  echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852  cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858
4859int
4860main ()
4861{
4862signed char x;
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (ac_try="$ac_compile"
4869case "(($ac_try" in
4870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871  *) ac_try_echo=$ac_try;;
4872esac
4873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874  (eval "$ac_compile") 2>conftest.er1
4875  ac_status=$?
4876  grep -v '^ *+' conftest.er1 >conftest.err
4877  rm -f conftest.er1
4878  cat conftest.err >&5
4879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880  (exit $ac_status); } && {
4881	 test -z "$ac_c_werror_flag" ||
4882	 test ! -s conftest.err
4883       } && test -s conftest.$ac_objext; then
4884  bh_cv_c_signed=yes
4885else
4886  echo "$as_me: failed program was:" >&5
4887sed 's/^/| /' conftest.$ac_ext >&5
4888
4889	bh_cv_c_signed=no
4890fi
4891
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4895echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4896  if test $bh_cv_c_signed = no; then
4897
4898cat >>confdefs.h <<\_ACEOF
4899#define signed
4900_ACEOF
4901
4902  fi
4903
4904{ echo "$as_me:$LINENO: checking for inline" >&5
4905echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4906if test "${ac_cv_c_inline+set}" = set; then
4907  echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909  ac_cv_c_inline=no
4910for ac_kw in inline __inline__ __inline; do
4911  cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h.  */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h.  */
4917#ifndef __cplusplus
4918typedef int foo_t;
4919static $ac_kw foo_t static_foo () {return 0; }
4920$ac_kw foo_t foo () {return 0; }
4921#endif
4922
4923_ACEOF
4924rm -f conftest.$ac_objext
4925if { (ac_try="$ac_compile"
4926case "(($ac_try" in
4927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928  *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931  (eval "$ac_compile") 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } && {
4938	 test -z "$ac_c_werror_flag" ||
4939	 test ! -s conftest.err
4940       } && test -s conftest.$ac_objext; then
4941  ac_cv_c_inline=$ac_kw
4942else
4943  echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946
4947fi
4948
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950  test "$ac_cv_c_inline" != no && break
4951done
4952
4953fi
4954{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4955echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4956
4957
4958case $ac_cv_c_inline in
4959  inline | yes) ;;
4960  *)
4961    case $ac_cv_c_inline in
4962      no) ac_val=;;
4963      *) ac_val=$ac_cv_c_inline;;
4964    esac
4965    cat >>confdefs.h <<_ACEOF
4966#ifndef __cplusplus
4967#define inline $ac_val
4968#endif
4969_ACEOF
4970    ;;
4971esac
4972
4973# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4984		  inttypes.h stdint.h unistd.h
4985do
4986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4990  echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992  cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h.  */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h.  */
4998$ac_includes_default
4999
5000#include <$ac_header>
5001_ACEOF
5002rm -f conftest.$ac_objext
5003if { (ac_try="$ac_compile"
5004case "(($ac_try" in
5005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006  *) ac_try_echo=$ac_try;;
5007esac
5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009  (eval "$ac_compile") 2>conftest.er1
5010  ac_status=$?
5011  grep -v '^ *+' conftest.er1 >conftest.err
5012  rm -f conftest.er1
5013  cat conftest.err >&5
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); } && {
5016	 test -z "$ac_c_werror_flag" ||
5017	 test ! -s conftest.err
5018       } && test -s conftest.$ac_objext; then
5019  eval "$as_ac_Header=yes"
5020else
5021  echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024	eval "$as_ac_Header=no"
5025fi
5026
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029ac_res=`eval echo '${'$as_ac_Header'}'`
5030	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5031echo "${ECHO_T}$ac_res" >&6; }
5032if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033  cat >>confdefs.h <<_ACEOF
5034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035_ACEOF
5036
5037fi
5038
5039done
5040
5041
5042{ echo "$as_me:$LINENO: checking for off_t" >&5
5043echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5044if test "${ac_cv_type_off_t+set}" = set; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h.  */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h.  */
5053$ac_includes_default
5054typedef off_t ac__type_new_;
5055int
5056main ()
5057{
5058if ((ac__type_new_ *) 0)
5059  return 0;
5060if (sizeof (ac__type_new_))
5061  return 0;
5062  ;
5063  return 0;
5064}
5065_ACEOF
5066rm -f conftest.$ac_objext
5067if { (ac_try="$ac_compile"
5068case "(($ac_try" in
5069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070  *) ac_try_echo=$ac_try;;
5071esac
5072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073  (eval "$ac_compile") 2>conftest.er1
5074  ac_status=$?
5075  grep -v '^ *+' conftest.er1 >conftest.err
5076  rm -f conftest.er1
5077  cat conftest.err >&5
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); } && {
5080	 test -z "$ac_c_werror_flag" ||
5081	 test ! -s conftest.err
5082       } && test -s conftest.$ac_objext; then
5083  ac_cv_type_off_t=yes
5084else
5085  echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088	ac_cv_type_off_t=no
5089fi
5090
5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092fi
5093{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5094echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5095if test $ac_cv_type_off_t = yes; then
5096  :
5097else
5098
5099cat >>confdefs.h <<_ACEOF
5100#define off_t long int
5101_ACEOF
5102
5103fi
5104
5105{ echo "$as_me:$LINENO: checking for size_t" >&5
5106echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5107if test "${ac_cv_type_size_t+set}" = set; then
5108  echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110  cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h.  */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h.  */
5116$ac_includes_default
5117typedef size_t ac__type_new_;
5118int
5119main ()
5120{
5121if ((ac__type_new_ *) 0)
5122  return 0;
5123if (sizeof (ac__type_new_))
5124  return 0;
5125  ;
5126  return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (ac_try="$ac_compile"
5131case "(($ac_try" in
5132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133  *) ac_try_echo=$ac_try;;
5134esac
5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136  (eval "$ac_compile") 2>conftest.er1
5137  ac_status=$?
5138  grep -v '^ *+' conftest.er1 >conftest.err
5139  rm -f conftest.er1
5140  cat conftest.err >&5
5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142  (exit $ac_status); } && {
5143	 test -z "$ac_c_werror_flag" ||
5144	 test ! -s conftest.err
5145       } && test -s conftest.$ac_objext; then
5146  ac_cv_type_size_t=yes
5147else
5148  echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151	ac_cv_type_size_t=no
5152fi
5153
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155fi
5156{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5157echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5158if test $ac_cv_type_size_t = yes; then
5159  :
5160else
5161
5162cat >>confdefs.h <<_ACEOF
5163#define size_t unsigned int
5164_ACEOF
5165
5166fi
5167
5168
5169  { echo "$as_me:$LINENO: checking for long long" >&5
5170echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5171if test "${ac_cv_type_long_long+set}" = set; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174  cat >conftest.$ac_ext <<_ACEOF
5175/* confdefs.h.  */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h.  */
5180long long ll = 1LL; int i = 63;
5181int
5182main ()
5183{
5184long long llmax = (long long) -1;
5185     return ll << i | ll >> i | llmax / ll | llmax % ll;
5186  ;
5187  return 0;
5188}
5189_ACEOF
5190rm -f conftest.$ac_objext conftest$ac_exeext
5191if { (ac_try="$ac_link"
5192case "(($ac_try" in
5193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194  *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197  (eval "$ac_link") 2>conftest.er1
5198  ac_status=$?
5199  grep -v '^ *+' conftest.er1 >conftest.err
5200  rm -f conftest.er1
5201  cat conftest.err >&5
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); } && {
5204	 test -z "$ac_c_werror_flag" ||
5205	 test ! -s conftest.err
5206       } && test -s conftest$ac_exeext &&
5207       $as_test_x conftest$ac_exeext; then
5208  ac_cv_type_long_long=yes
5209else
5210  echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5
5212
5213	ac_cv_type_long_long=no
5214fi
5215
5216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5217      conftest$ac_exeext conftest.$ac_ext
5218fi
5219{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5220echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5221  if test $ac_cv_type_long_long = yes; then
5222
5223cat >>confdefs.h <<\_ACEOF
5224#define HAVE_LONG_LONG 1
5225_ACEOF
5226
5227  fi
5228
5229
5230  { echo "$as_me:$LINENO: checking for long double" >&5
5231echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5232if test "${gt_cv_c_long_double+set}" = set; then
5233  echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235  if test "$GCC" = yes; then
5236       gt_cv_c_long_double=yes
5237     else
5238       cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h.  */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h.  */
5244
5245         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5246         long double foo = 0.0;
5247         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5248         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5249
5250int
5251main ()
5252{
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262  *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265  (eval "$ac_compile") 2>conftest.er1
5266  ac_status=$?
5267  grep -v '^ *+' conftest.er1 >conftest.err
5268  rm -f conftest.er1
5269  cat conftest.err >&5
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); } && {
5272	 test -z "$ac_c_werror_flag" ||
5273	 test ! -s conftest.err
5274       } && test -s conftest.$ac_objext; then
5275  gt_cv_c_long_double=yes
5276else
5277  echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280	gt_cv_c_long_double=no
5281fi
5282
5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284     fi
5285fi
5286{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5287echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5288  if test $gt_cv_c_long_double = yes; then
5289
5290cat >>confdefs.h <<\_ACEOF
5291#define HAVE_LONG_DOUBLE 1
5292_ACEOF
5293
5294  fi
5295
5296
5297  { echo "$as_me:$LINENO: checking for wchar_t" >&5
5298echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5299if test "${gt_cv_c_wchar_t+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h.  */
5304_ACEOF
5305cat confdefs.h >>conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h.  */
5308#include <stddef.h>
5309       wchar_t foo = (wchar_t)'\0';
5310int
5311main ()
5312{
5313
5314  ;
5315  return 0;
5316}
5317_ACEOF
5318rm -f conftest.$ac_objext
5319if { (ac_try="$ac_compile"
5320case "(($ac_try" in
5321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322  *) ac_try_echo=$ac_try;;
5323esac
5324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325  (eval "$ac_compile") 2>conftest.er1
5326  ac_status=$?
5327  grep -v '^ *+' conftest.er1 >conftest.err
5328  rm -f conftest.er1
5329  cat conftest.err >&5
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); } && {
5332	 test -z "$ac_c_werror_flag" ||
5333	 test ! -s conftest.err
5334       } && test -s conftest.$ac_objext; then
5335  gt_cv_c_wchar_t=yes
5336else
5337  echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340	gt_cv_c_wchar_t=no
5341fi
5342
5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344fi
5345{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5346echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5347  if test $gt_cv_c_wchar_t = yes; then
5348
5349cat >>confdefs.h <<\_ACEOF
5350#define HAVE_WCHAR_T 1
5351_ACEOF
5352
5353  fi
5354
5355
5356  { echo "$as_me:$LINENO: checking for wint_t" >&5
5357echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5358if test "${gt_cv_c_wint_t+set}" = set; then
5359  echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361  cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h.  */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h.  */
5367#include <wchar.h>
5368       wint_t foo = (wchar_t)'\0';
5369int
5370main ()
5371{
5372
5373  ;
5374  return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext
5378if { (ac_try="$ac_compile"
5379case "(($ac_try" in
5380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381  *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384  (eval "$ac_compile") 2>conftest.er1
5385  ac_status=$?
5386  grep -v '^ *+' conftest.er1 >conftest.err
5387  rm -f conftest.er1
5388  cat conftest.err >&5
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); } && {
5391	 test -z "$ac_c_werror_flag" ||
5392	 test ! -s conftest.err
5393       } && test -s conftest.$ac_objext; then
5394  gt_cv_c_wint_t=yes
5395else
5396  echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399	gt_cv_c_wint_t=no
5400fi
5401
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5405echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5406  if test $gt_cv_c_wint_t = yes; then
5407
5408cat >>confdefs.h <<\_ACEOF
5409#define HAVE_WINT_T 1
5410_ACEOF
5411
5412  fi
5413
5414
5415  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5416echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5417if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  cat >conftest.$ac_ext <<_ACEOF
5421/* confdefs.h.  */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h.  */
5426#include <sys/types.h>
5427#include <inttypes.h>
5428int
5429main ()
5430{
5431uintmax_t i = (uintmax_t) -1;
5432  ;
5433  return 0;
5434}
5435_ACEOF
5436rm -f conftest.$ac_objext
5437if { (ac_try="$ac_compile"
5438case "(($ac_try" in
5439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440  *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443  (eval "$ac_compile") 2>conftest.er1
5444  ac_status=$?
5445  grep -v '^ *+' conftest.er1 >conftest.err
5446  rm -f conftest.er1
5447  cat conftest.err >&5
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); } && {
5450	 test -z "$ac_c_werror_flag" ||
5451	 test ! -s conftest.err
5452       } && test -s conftest.$ac_objext; then
5453  jm_ac_cv_header_inttypes_h=yes
5454else
5455  echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458	jm_ac_cv_header_inttypes_h=no
5459fi
5460
5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462fi
5463{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5464echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5465  if test $jm_ac_cv_header_inttypes_h = yes; then
5466
5467cat >>confdefs.h <<_ACEOF
5468#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5469_ACEOF
5470
5471  fi
5472
5473
5474  { echo "$as_me:$LINENO: checking for stdint.h" >&5
5475echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5476if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5477  echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479  cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h.  */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h.  */
5485#include <sys/types.h>
5486#include <stdint.h>
5487int
5488main ()
5489{
5490uintmax_t i = (uintmax_t) -1;
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495rm -f conftest.$ac_objext
5496if { (ac_try="$ac_compile"
5497case "(($ac_try" in
5498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499  *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502  (eval "$ac_compile") 2>conftest.er1
5503  ac_status=$?
5504  grep -v '^ *+' conftest.er1 >conftest.err
5505  rm -f conftest.er1
5506  cat conftest.err >&5
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } && {
5509	 test -z "$ac_c_werror_flag" ||
5510	 test ! -s conftest.err
5511       } && test -s conftest.$ac_objext; then
5512  jm_ac_cv_header_stdint_h=yes
5513else
5514  echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517	jm_ac_cv_header_stdint_h=no
5518fi
5519
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521fi
5522{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5523echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5524  if test $jm_ac_cv_header_stdint_h = yes; then
5525
5526cat >>confdefs.h <<_ACEOF
5527#define HAVE_STDINT_H_WITH_UINTMAX 1
5528_ACEOF
5529
5530  fi
5531
5532
5533
5534
5535  { echo "$as_me:$LINENO: checking for intmax_t" >&5
5536echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5537if test "${gt_cv_c_intmax_t+set}" = set; then
5538  echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540  cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h.  */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h.  */
5546
5547#include <stddef.h>
5548#include <stdlib.h>
5549#if HAVE_STDINT_H_WITH_UINTMAX
5550#include <stdint.h>
5551#endif
5552#if HAVE_INTTYPES_H_WITH_UINTMAX
5553#include <inttypes.h>
5554#endif
5555
5556int
5557main ()
5558{
5559intmax_t x = -1;
5560  ;
5561  return 0;
5562}
5563_ACEOF
5564rm -f conftest.$ac_objext
5565if { (ac_try="$ac_compile"
5566case "(($ac_try" in
5567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568  *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571  (eval "$ac_compile") 2>conftest.er1
5572  ac_status=$?
5573  grep -v '^ *+' conftest.er1 >conftest.err
5574  rm -f conftest.er1
5575  cat conftest.err >&5
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); } && {
5578	 test -z "$ac_c_werror_flag" ||
5579	 test ! -s conftest.err
5580       } && test -s conftest.$ac_objext; then
5581  gt_cv_c_intmax_t=yes
5582else
5583  echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586	gt_cv_c_intmax_t=no
5587fi
5588
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590fi
5591{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5592echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5593  if test $gt_cv_c_intmax_t = yes; then
5594
5595cat >>confdefs.h <<\_ACEOF
5596#define HAVE_INTMAX_T 1
5597_ACEOF
5598
5599  fi
5600
5601
5602
5603  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5604echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5605if test "${gt_cv_func_printf_posix+set}" = set; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608
5609      if test "$cross_compiling" = yes; then
5610
5611        cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h.  */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h.  */
5617
5618#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5619  notposix
5620#endif
5621
5622_ACEOF
5623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624  $EGREP "notposix" >/dev/null 2>&1; then
5625  gt_cv_func_printf_posix="guessing no"
5626else
5627  gt_cv_func_printf_posix="guessing yes"
5628fi
5629rm -f conftest*
5630
5631
5632else
5633  cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639
5640#include <stdio.h>
5641#include <string.h>
5642/* The string "%2$d %1$d", with dollar characters protected from the shell's
5643   dollar expansion (possibly an autoconf bug).  */
5644static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5645static char buf[100];
5646int main ()
5647{
5648  sprintf (buf, format, 33, 55);
5649  return (strcmp (buf, "55 33") != 0);
5650}
5651_ACEOF
5652rm -f conftest$ac_exeext
5653if { (ac_try="$ac_link"
5654case "(($ac_try" in
5655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656  *) ac_try_echo=$ac_try;;
5657esac
5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659  (eval "$ac_link") 2>&5
5660  ac_status=$?
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5663  { (case "(($ac_try" in
5664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665  *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668  (eval "$ac_try") 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; }; then
5672  gt_cv_func_printf_posix=yes
5673else
5674  echo "$as_me: program exited with status $ac_status" >&5
5675echo "$as_me: failed program was:" >&5
5676sed 's/^/| /' conftest.$ac_ext >&5
5677
5678( exit $ac_status )
5679gt_cv_func_printf_posix=no
5680fi
5681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5682fi
5683
5684
5685
5686fi
5687{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5688echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5689  case $gt_cv_func_printf_posix in
5690    *yes)
5691
5692cat >>confdefs.h <<\_ACEOF
5693#define HAVE_POSIX_PRINTF 1
5694_ACEOF
5695
5696      ;;
5697  esac
5698
5699# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5700# for constant arguments.  Useless!
5701{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5702echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5703if test "${ac_cv_working_alloca_h+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h.  */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h.  */
5712#include <alloca.h>
5713int
5714main ()
5715{
5716char *p = (char *) alloca (2 * sizeof (int));
5717			  if (p) return 0;
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext conftest$ac_exeext
5723if { (ac_try="$ac_link"
5724case "(($ac_try" in
5725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726  *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729  (eval "$ac_link") 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } && {
5736	 test -z "$ac_c_werror_flag" ||
5737	 test ! -s conftest.err
5738       } && test -s conftest$ac_exeext &&
5739       $as_test_x conftest$ac_exeext; then
5740  ac_cv_working_alloca_h=yes
5741else
5742  echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745	ac_cv_working_alloca_h=no
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5749      conftest$ac_exeext conftest.$ac_ext
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5752echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5753if test $ac_cv_working_alloca_h = yes; then
5754
5755cat >>confdefs.h <<\_ACEOF
5756#define HAVE_ALLOCA_H 1
5757_ACEOF
5758
5759fi
5760
5761{ echo "$as_me:$LINENO: checking for alloca" >&5
5762echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5763if test "${ac_cv_func_alloca_works+set}" = set; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766  cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772#ifdef __GNUC__
5773# define alloca __builtin_alloca
5774#else
5775# ifdef _MSC_VER
5776#  include <malloc.h>
5777#  define alloca _alloca
5778# else
5779#  ifdef HAVE_ALLOCA_H
5780#   include <alloca.h>
5781#  else
5782#   ifdef _AIX
5783 #pragma alloca
5784#   else
5785#    ifndef alloca /* predefined by HP cc +Olibcalls */
5786char *alloca ();
5787#    endif
5788#   endif
5789#  endif
5790# endif
5791#endif
5792
5793int
5794main ()
5795{
5796char *p = (char *) alloca (1);
5797				    if (p) return 0;
5798  ;
5799  return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext conftest$ac_exeext
5803if { (ac_try="$ac_link"
5804case "(($ac_try" in
5805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806  *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809  (eval "$ac_link") 2>conftest.er1
5810  ac_status=$?
5811  grep -v '^ *+' conftest.er1 >conftest.err
5812  rm -f conftest.er1
5813  cat conftest.err >&5
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); } && {
5816	 test -z "$ac_c_werror_flag" ||
5817	 test ! -s conftest.err
5818       } && test -s conftest$ac_exeext &&
5819       $as_test_x conftest$ac_exeext; then
5820  ac_cv_func_alloca_works=yes
5821else
5822  echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825	ac_cv_func_alloca_works=no
5826fi
5827
5828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5829      conftest$ac_exeext conftest.$ac_ext
5830fi
5831{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5832echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5833
5834if test $ac_cv_func_alloca_works = yes; then
5835
5836cat >>confdefs.h <<\_ACEOF
5837#define HAVE_ALLOCA 1
5838_ACEOF
5839
5840else
5841  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5842# that cause trouble.  Some versions do not even contain alloca or
5843# contain a buggy version.  If you still want to use their alloca,
5844# use ar to extract alloca.o from them instead of compiling alloca.c.
5845
5846ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5847
5848cat >>confdefs.h <<\_ACEOF
5849#define C_ALLOCA 1
5850_ACEOF
5851
5852
5853{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5854echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5855if test "${ac_cv_os_cray+set}" = set; then
5856  echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858  cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h.  */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h.  */
5864#if defined CRAY && ! defined CRAY2
5865webecray
5866#else
5867wenotbecray
5868#endif
5869
5870_ACEOF
5871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872  $EGREP "webecray" >/dev/null 2>&1; then
5873  ac_cv_os_cray=yes
5874else
5875  ac_cv_os_cray=no
5876fi
5877rm -f conftest*
5878
5879fi
5880{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5881echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5882if test $ac_cv_os_cray = yes; then
5883  for ac_func in _getb67 GETB67 getb67; do
5884    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5885{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5888  echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890  cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h.  */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h.  */
5896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5897   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5898#define $ac_func innocuous_$ac_func
5899
5900/* System header to define __stub macros and hopefully few prototypes,
5901    which can conflict with char $ac_func (); below.
5902    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5903    <limits.h> exists even on freestanding compilers.  */
5904
5905#ifdef __STDC__
5906# include <limits.h>
5907#else
5908# include <assert.h>
5909#endif
5910
5911#undef $ac_func
5912
5913/* Override any GCC internal prototype to avoid an error.
5914   Use char because int might match the return type of a GCC
5915   builtin and then its argument prototype would still apply.  */
5916#ifdef __cplusplus
5917extern "C"
5918#endif
5919char $ac_func ();
5920/* The GNU C library defines this for functions which it implements
5921    to always fail with ENOSYS.  Some functions are actually named
5922    something starting with __ and the normal name is an alias.  */
5923#if defined __stub_$ac_func || defined __stub___$ac_func
5924choke me
5925#endif
5926
5927int
5928main ()
5929{
5930return $ac_func ();
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext conftest$ac_exeext
5936if { (ac_try="$ac_link"
5937case "(($ac_try" in
5938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939  *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942  (eval "$ac_link") 2>conftest.er1
5943  ac_status=$?
5944  grep -v '^ *+' conftest.er1 >conftest.err
5945  rm -f conftest.er1
5946  cat conftest.err >&5
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); } && {
5949	 test -z "$ac_c_werror_flag" ||
5950	 test ! -s conftest.err
5951       } && test -s conftest$ac_exeext &&
5952       $as_test_x conftest$ac_exeext; then
5953  eval "$as_ac_var=yes"
5954else
5955  echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958	eval "$as_ac_var=no"
5959fi
5960
5961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5962      conftest$ac_exeext conftest.$ac_ext
5963fi
5964ac_res=`eval echo '${'$as_ac_var'}'`
5965	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5966echo "${ECHO_T}$ac_res" >&6; }
5967if test `eval echo '${'$as_ac_var'}'` = yes; then
5968
5969cat >>confdefs.h <<_ACEOF
5970#define CRAY_STACKSEG_END $ac_func
5971_ACEOF
5972
5973    break
5974fi
5975
5976  done
5977fi
5978
5979{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5980echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5981if test "${ac_cv_c_stack_direction+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  if test "$cross_compiling" = yes; then
5985  ac_cv_c_stack_direction=0
5986else
5987  cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h.  */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h.  */
5993$ac_includes_default
5994int
5995find_stack_direction ()
5996{
5997  static char *addr = 0;
5998  auto char dummy;
5999  if (addr == 0)
6000    {
6001      addr = &dummy;
6002      return find_stack_direction ();
6003    }
6004  else
6005    return (&dummy > addr) ? 1 : -1;
6006}
6007
6008int
6009main ()
6010{
6011  return find_stack_direction () < 0;
6012}
6013_ACEOF
6014rm -f conftest$ac_exeext
6015if { (ac_try="$ac_link"
6016case "(($ac_try" in
6017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018  *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021  (eval "$ac_link") 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6025  { (case "(($ac_try" in
6026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027  *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030  (eval "$ac_try") 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }; }; then
6034  ac_cv_c_stack_direction=1
6035else
6036  echo "$as_me: program exited with status $ac_status" >&5
6037echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040( exit $ac_status )
6041ac_cv_c_stack_direction=-1
6042fi
6043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6044fi
6045
6046
6047fi
6048{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6049echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6050
6051cat >>confdefs.h <<_ACEOF
6052#define STACK_DIRECTION $ac_cv_c_stack_direction
6053_ACEOF
6054
6055
6056fi
6057
6058
6059
6060for ac_header in stdlib.h unistd.h
6061do
6062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6064  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068fi
6069ac_res=`eval echo '${'$as_ac_Header'}'`
6070	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6071echo "${ECHO_T}$ac_res" >&6; }
6072else
6073  # Is the header compilable?
6074{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6076cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082$ac_includes_default
6083#include <$ac_header>
6084_ACEOF
6085rm -f conftest.$ac_objext
6086if { (ac_try="$ac_compile"
6087case "(($ac_try" in
6088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089  *) ac_try_echo=$ac_try;;
6090esac
6091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092  (eval "$ac_compile") 2>conftest.er1
6093  ac_status=$?
6094  grep -v '^ *+' conftest.er1 >conftest.err
6095  rm -f conftest.er1
6096  cat conftest.err >&5
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); } && {
6099	 test -z "$ac_c_werror_flag" ||
6100	 test ! -s conftest.err
6101       } && test -s conftest.$ac_objext; then
6102  ac_header_compiler=yes
6103else
6104  echo "$as_me: failed program was:" >&5
6105sed 's/^/| /' conftest.$ac_ext >&5
6106
6107	ac_header_compiler=no
6108fi
6109
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6112echo "${ECHO_T}$ac_header_compiler" >&6; }
6113
6114# Is the header present?
6115{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6117cat >conftest.$ac_ext <<_ACEOF
6118/* confdefs.h.  */
6119_ACEOF
6120cat confdefs.h >>conftest.$ac_ext
6121cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h.  */
6123#include <$ac_header>
6124_ACEOF
6125if { (ac_try="$ac_cpp conftest.$ac_ext"
6126case "(($ac_try" in
6127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128  *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6132  ac_status=$?
6133  grep -v '^ *+' conftest.er1 >conftest.err
6134  rm -f conftest.er1
6135  cat conftest.err >&5
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); } >/dev/null && {
6138	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6139	 test ! -s conftest.err
6140       }; then
6141  ac_header_preproc=yes
6142else
6143  echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146  ac_header_preproc=no
6147fi
6148
6149rm -f conftest.err conftest.$ac_ext
6150{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6151echo "${ECHO_T}$ac_header_preproc" >&6; }
6152
6153# So?  What about this header?
6154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6155  yes:no: )
6156    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6158    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6160    ac_header_preproc=yes
6161    ;;
6162  no:yes:* )
6163    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6165    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6166echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6167    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6169    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6170echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6171    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6173    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6175    ( cat <<\_ASBOX
6176## ------------------------------- ##
6177## Report this to ashie@homa.ne.jp ##
6178## ------------------------------- ##
6179_ASBOX
6180     ) | sed "s/^/$as_me: WARNING:     /" >&2
6181    ;;
6182esac
6183{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188  eval "$as_ac_Header=\$ac_header_preproc"
6189fi
6190ac_res=`eval echo '${'$as_ac_Header'}'`
6191	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6192echo "${ECHO_T}$ac_res" >&6; }
6193
6194fi
6195if test `eval echo '${'$as_ac_Header'}'` = yes; then
6196  cat >>confdefs.h <<_ACEOF
6197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198_ACEOF
6199
6200fi
6201
6202done
6203
6204
6205for ac_func in getpagesize
6206do
6207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6208{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213  cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h.  */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h.  */
6219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6221#define $ac_func innocuous_$ac_func
6222
6223/* System header to define __stub macros and hopefully few prototypes,
6224    which can conflict with char $ac_func (); below.
6225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226    <limits.h> exists even on freestanding compilers.  */
6227
6228#ifdef __STDC__
6229# include <limits.h>
6230#else
6231# include <assert.h>
6232#endif
6233
6234#undef $ac_func
6235
6236/* Override any GCC internal prototype to avoid an error.
6237   Use char because int might match the return type of a GCC
6238   builtin and then its argument prototype would still apply.  */
6239#ifdef __cplusplus
6240extern "C"
6241#endif
6242char $ac_func ();
6243/* The GNU C library defines this for functions which it implements
6244    to always fail with ENOSYS.  Some functions are actually named
6245    something starting with __ and the normal name is an alias.  */
6246#if defined __stub_$ac_func || defined __stub___$ac_func
6247choke me
6248#endif
6249
6250int
6251main ()
6252{
6253return $ac_func ();
6254  ;
6255  return 0;
6256}
6257_ACEOF
6258rm -f conftest.$ac_objext conftest$ac_exeext
6259if { (ac_try="$ac_link"
6260case "(($ac_try" in
6261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262  *) ac_try_echo=$ac_try;;
6263esac
6264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265  (eval "$ac_link") 2>conftest.er1
6266  ac_status=$?
6267  grep -v '^ *+' conftest.er1 >conftest.err
6268  rm -f conftest.er1
6269  cat conftest.err >&5
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); } && {
6272	 test -z "$ac_c_werror_flag" ||
6273	 test ! -s conftest.err
6274       } && test -s conftest$ac_exeext &&
6275       $as_test_x conftest$ac_exeext; then
6276  eval "$as_ac_var=yes"
6277else
6278  echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281	eval "$as_ac_var=no"
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6285      conftest$ac_exeext conftest.$ac_ext
6286fi
6287ac_res=`eval echo '${'$as_ac_var'}'`
6288	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6289echo "${ECHO_T}$ac_res" >&6; }
6290if test `eval echo '${'$as_ac_var'}'` = yes; then
6291  cat >>confdefs.h <<_ACEOF
6292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6293_ACEOF
6294
6295fi
6296done
6297
6298{ echo "$as_me:$LINENO: checking for working mmap" >&5
6299echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6300if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  if test "$cross_compiling" = yes; then
6304  ac_cv_func_mmap_fixed_mapped=no
6305else
6306  cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h.  */
6308_ACEOF
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h.  */
6312$ac_includes_default
6313/* malloc might have been renamed as rpl_malloc. */
6314#undef malloc
6315
6316/* Thanks to Mike Haertel and Jim Avera for this test.
6317   Here is a matrix of mmap possibilities:
6318	mmap private not fixed
6319	mmap private fixed at somewhere currently unmapped
6320	mmap private fixed at somewhere already mapped
6321	mmap shared not fixed
6322	mmap shared fixed at somewhere currently unmapped
6323	mmap shared fixed at somewhere already mapped
6324   For private mappings, we should verify that changes cannot be read()
6325   back from the file, nor mmap's back from the file at a different
6326   address.  (There have been systems where private was not correctly
6327   implemented like the infamous i386 svr4.0, and systems where the
6328   VM page cache was not coherent with the file system buffer cache
6329   like early versions of FreeBSD and possibly contemporary NetBSD.)
6330   For shared mappings, we should conversely verify that changes get
6331   propagated back to all the places they're supposed to be.
6332
6333   Grep wants private fixed already mapped.
6334   The main things grep needs to know about mmap are:
6335   * does it exist and is it safe to write into the mmap'd area
6336   * how to use it (BSD variants)  */
6337
6338#include <fcntl.h>
6339#include <sys/mman.h>
6340
6341#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6342char *malloc ();
6343#endif
6344
6345/* This mess was copied from the GNU getpagesize.h.  */
6346#ifndef HAVE_GETPAGESIZE
6347/* Assume that all systems that can run configure have sys/param.h.  */
6348# ifndef HAVE_SYS_PARAM_H
6349#  define HAVE_SYS_PARAM_H 1
6350# endif
6351
6352# ifdef _SC_PAGESIZE
6353#  define getpagesize() sysconf(_SC_PAGESIZE)
6354# else /* no _SC_PAGESIZE */
6355#  ifdef HAVE_SYS_PARAM_H
6356#   include <sys/param.h>
6357#   ifdef EXEC_PAGESIZE
6358#    define getpagesize() EXEC_PAGESIZE
6359#   else /* no EXEC_PAGESIZE */
6360#    ifdef NBPG
6361#     define getpagesize() NBPG * CLSIZE
6362#     ifndef CLSIZE
6363#      define CLSIZE 1
6364#     endif /* no CLSIZE */
6365#    else /* no NBPG */
6366#     ifdef NBPC
6367#      define getpagesize() NBPC
6368#     else /* no NBPC */
6369#      ifdef PAGESIZE
6370#       define getpagesize() PAGESIZE
6371#      endif /* PAGESIZE */
6372#     endif /* no NBPC */
6373#    endif /* no NBPG */
6374#   endif /* no EXEC_PAGESIZE */
6375#  else /* no HAVE_SYS_PARAM_H */
6376#   define getpagesize() 8192	/* punt totally */
6377#  endif /* no HAVE_SYS_PARAM_H */
6378# endif /* no _SC_PAGESIZE */
6379
6380#endif /* no HAVE_GETPAGESIZE */
6381
6382int
6383main ()
6384{
6385  char *data, *data2, *data3;
6386  int i, pagesize;
6387  int fd;
6388
6389  pagesize = getpagesize ();
6390
6391  /* First, make a file with some known garbage in it. */
6392  data = (char *) malloc (pagesize);
6393  if (!data)
6394    return 1;
6395  for (i = 0; i < pagesize; ++i)
6396    *(data + i) = rand ();
6397  umask (0);
6398  fd = creat ("conftest.mmap", 0600);
6399  if (fd < 0)
6400    return 1;
6401  if (write (fd, data, pagesize) != pagesize)
6402    return 1;
6403  close (fd);
6404
6405  /* Next, try to mmap the file at a fixed address which already has
6406     something else allocated at it.  If we can, also make sure that
6407     we see the same garbage.  */
6408  fd = open ("conftest.mmap", O_RDWR);
6409  if (fd < 0)
6410    return 1;
6411  data2 = (char *) malloc (2 * pagesize);
6412  if (!data2)
6413    return 1;
6414  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6415  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6416		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6417    return 1;
6418  for (i = 0; i < pagesize; ++i)
6419    if (*(data + i) != *(data2 + i))
6420      return 1;
6421
6422  /* Finally, make sure that changes to the mapped area do not
6423     percolate back to the file as seen by read().  (This is a bug on
6424     some variants of i386 svr4.0.)  */
6425  for (i = 0; i < pagesize; ++i)
6426    *(data2 + i) = *(data2 + i) + 1;
6427  data3 = (char *) malloc (pagesize);
6428  if (!data3)
6429    return 1;
6430  if (read (fd, data3, pagesize) != pagesize)
6431    return 1;
6432  for (i = 0; i < pagesize; ++i)
6433    if (*(data + i) != *(data3 + i))
6434      return 1;
6435  close (fd);
6436  return 0;
6437}
6438_ACEOF
6439rm -f conftest$ac_exeext
6440if { (ac_try="$ac_link"
6441case "(($ac_try" in
6442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443  *) ac_try_echo=$ac_try;;
6444esac
6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446  (eval "$ac_link") 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6450  { (case "(($ac_try" in
6451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452  *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455  (eval "$ac_try") 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; }; then
6459  ac_cv_func_mmap_fixed_mapped=yes
6460else
6461  echo "$as_me: program exited with status $ac_status" >&5
6462echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465( exit $ac_status )
6466ac_cv_func_mmap_fixed_mapped=no
6467fi
6468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6469fi
6470
6471
6472fi
6473{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6474echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6475if test $ac_cv_func_mmap_fixed_mapped = yes; then
6476
6477cat >>confdefs.h <<\_ACEOF
6478#define HAVE_MMAP 1
6479_ACEOF
6480
6481fi
6482rm -f conftest.mmap
6483
6484
6485    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6486echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6487if test "${ac_cv_gnu_library_2_1+set}" = set; then
6488  echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490  cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h.  */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h.  */
6496
6497#include <features.h>
6498#ifdef __GNU_LIBRARY__
6499 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6500  Lucky GNU user
6501 #endif
6502#endif
6503
6504_ACEOF
6505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6507  ac_cv_gnu_library_2_1=yes
6508else
6509  ac_cv_gnu_library_2_1=no
6510fi
6511rm -f conftest*
6512
6513
6514
6515fi
6516{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6517echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6518
6519    GLIBC21="$ac_cv_gnu_library_2_1"
6520
6521
6522
6523
6524  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6525echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6526if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6527  echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529
6530      if test "$cross_compiling" = yes; then
6531
6532          # Guess based on the CPU.
6533          case "$host_cpu" in
6534            alpha* | i3456786 | m68k | s390*)
6535              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6536            *)
6537              gt_cv_int_divbyzero_sigfpe="guessing no";;
6538          esac
6539
6540else
6541  cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h.  */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h.  */
6547
6548#include <stdlib.h>
6549#include <signal.h>
6550
6551static void
6552#ifdef __cplusplus
6553sigfpe_handler (int sig)
6554#else
6555sigfpe_handler (sig) int sig;
6556#endif
6557{
6558  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6559  exit (sig != SIGFPE);
6560}
6561
6562int x = 1;
6563int y = 0;
6564int z;
6565int nan;
6566
6567int main ()
6568{
6569  signal (SIGFPE, sigfpe_handler);
6570/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6571#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6572  signal (SIGTRAP, sigfpe_handler);
6573#endif
6574/* Linux/SPARC yields signal SIGILL.  */
6575#if defined (__sparc__) && defined (__linux__)
6576  signal (SIGILL, sigfpe_handler);
6577#endif
6578
6579  z = x / y;
6580  nan = y / y;
6581  exit (1);
6582}
6583
6584_ACEOF
6585rm -f conftest$ac_exeext
6586if { (ac_try="$ac_link"
6587case "(($ac_try" in
6588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589  *) ac_try_echo=$ac_try;;
6590esac
6591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592  (eval "$ac_link") 2>&5
6593  ac_status=$?
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6596  { (case "(($ac_try" in
6597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598  *) ac_try_echo=$ac_try;;
6599esac
6600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601  (eval "$ac_try") 2>&5
6602  ac_status=$?
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); }; }; then
6605  gt_cv_int_divbyzero_sigfpe=yes
6606else
6607  echo "$as_me: program exited with status $ac_status" >&5
6608echo "$as_me: failed program was:" >&5
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
6611( exit $ac_status )
6612gt_cv_int_divbyzero_sigfpe=no
6613fi
6614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6615fi
6616
6617
6618
6619fi
6620{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6621echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6622  case "$gt_cv_int_divbyzero_sigfpe" in
6623    *yes) value=1;;
6624    *) value=0;;
6625  esac
6626
6627cat >>confdefs.h <<_ACEOF
6628#define INTDIV0_RAISES_SIGFPE $value
6629_ACEOF
6630
6631
6632
6633  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6634echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6635if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  cat >conftest.$ac_ext <<_ACEOF
6639/* confdefs.h.  */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h.  */
6644unsigned long long ull = 1ULL; int i = 63;
6645int
6646main ()
6647{
6648unsigned long long ullmax = (unsigned long long) -1;
6649     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6650  ;
6651  return 0;
6652}
6653_ACEOF
6654rm -f conftest.$ac_objext conftest$ac_exeext
6655if { (ac_try="$ac_link"
6656case "(($ac_try" in
6657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658  *) ac_try_echo=$ac_try;;
6659esac
6660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661  (eval "$ac_link") 2>conftest.er1
6662  ac_status=$?
6663  grep -v '^ *+' conftest.er1 >conftest.err
6664  rm -f conftest.er1
6665  cat conftest.err >&5
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); } && {
6668	 test -z "$ac_c_werror_flag" ||
6669	 test ! -s conftest.err
6670       } && test -s conftest$ac_exeext &&
6671       $as_test_x conftest$ac_exeext; then
6672  ac_cv_type_unsigned_long_long=yes
6673else
6674  echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677	ac_cv_type_unsigned_long_long=no
6678fi
6679
6680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6681      conftest$ac_exeext conftest.$ac_ext
6682fi
6683{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6684echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6685  if test $ac_cv_type_unsigned_long_long = yes; then
6686
6687cat >>confdefs.h <<\_ACEOF
6688#define HAVE_UNSIGNED_LONG_LONG 1
6689_ACEOF
6690
6691  fi
6692
6693
6694
6695
6696  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6697
6698    test $ac_cv_type_unsigned_long_long = yes \
6699      && ac_type='unsigned long long' \
6700      || ac_type='unsigned long'
6701
6702cat >>confdefs.h <<_ACEOF
6703#define uintmax_t $ac_type
6704_ACEOF
6705
6706  else
6707
6708cat >>confdefs.h <<\_ACEOF
6709#define HAVE_UINTMAX_T 1
6710_ACEOF
6711
6712  fi
6713
6714
6715  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6716echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6717if test "${gt_cv_header_inttypes_h+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720
6721    cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h.  */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h.  */
6727#include <sys/types.h>
6728#include <inttypes.h>
6729int
6730main ()
6731{
6732
6733  ;
6734  return 0;
6735}
6736_ACEOF
6737rm -f conftest.$ac_objext
6738if { (ac_try="$ac_compile"
6739case "(($ac_try" in
6740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741  *) ac_try_echo=$ac_try;;
6742esac
6743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744  (eval "$ac_compile") 2>conftest.er1
6745  ac_status=$?
6746  grep -v '^ *+' conftest.er1 >conftest.err
6747  rm -f conftest.er1
6748  cat conftest.err >&5
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); } && {
6751	 test -z "$ac_c_werror_flag" ||
6752	 test ! -s conftest.err
6753       } && test -s conftest.$ac_objext; then
6754  gt_cv_header_inttypes_h=yes
6755else
6756  echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759	gt_cv_header_inttypes_h=no
6760fi
6761
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763
6764fi
6765{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6766echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6767  if test $gt_cv_header_inttypes_h = yes; then
6768
6769cat >>confdefs.h <<_ACEOF
6770#define HAVE_INTTYPES_H 1
6771_ACEOF
6772
6773  fi
6774
6775
6776
6777  if test $gt_cv_header_inttypes_h = yes; then
6778    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6779echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6780if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6781  echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783
6784        cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h.  */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h.  */
6790#include <inttypes.h>
6791#ifdef PRId32
6792char *p = PRId32;
6793#endif
6794
6795int
6796main ()
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext
6804if { (ac_try="$ac_compile"
6805case "(($ac_try" in
6806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807  *) ac_try_echo=$ac_try;;
6808esac
6809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810  (eval "$ac_compile") 2>conftest.er1
6811  ac_status=$?
6812  grep -v '^ *+' conftest.er1 >conftest.err
6813  rm -f conftest.er1
6814  cat conftest.err >&5
6815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816  (exit $ac_status); } && {
6817	 test -z "$ac_c_werror_flag" ||
6818	 test ! -s conftest.err
6819       } && test -s conftest.$ac_objext; then
6820  gt_cv_inttypes_pri_broken=no
6821else
6822  echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825	gt_cv_inttypes_pri_broken=yes
6826fi
6827
6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829
6830fi
6831{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6832echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6833  fi
6834  if test "$gt_cv_inttypes_pri_broken" = yes; then
6835
6836cat >>confdefs.h <<_ACEOF
6837#define PRI_MACROS_BROKEN 1
6838_ACEOF
6839
6840  fi
6841
6842
6843
6844for ac_header in stdint.h
6845do
6846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852fi
6853ac_res=`eval echo '${'$as_ac_Header'}'`
6854	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6855echo "${ECHO_T}$ac_res" >&6; }
6856else
6857  # Is the header compilable?
6858{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866$ac_includes_default
6867#include <$ac_header>
6868_ACEOF
6869rm -f conftest.$ac_objext
6870if { (ac_try="$ac_compile"
6871case "(($ac_try" in
6872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873  *) ac_try_echo=$ac_try;;
6874esac
6875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876  (eval "$ac_compile") 2>conftest.er1
6877  ac_status=$?
6878  grep -v '^ *+' conftest.er1 >conftest.err
6879  rm -f conftest.er1
6880  cat conftest.err >&5
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); } && {
6883	 test -z "$ac_c_werror_flag" ||
6884	 test ! -s conftest.err
6885       } && test -s conftest.$ac_objext; then
6886  ac_header_compiler=yes
6887else
6888  echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891	ac_header_compiler=no
6892fi
6893
6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6896echo "${ECHO_T}$ac_header_compiler" >&6; }
6897
6898# Is the header present?
6899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6901cat >conftest.$ac_ext <<_ACEOF
6902/* confdefs.h.  */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h.  */
6907#include <$ac_header>
6908_ACEOF
6909if { (ac_try="$ac_cpp conftest.$ac_ext"
6910case "(($ac_try" in
6911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912  *) ac_try_echo=$ac_try;;
6913esac
6914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916  ac_status=$?
6917  grep -v '^ *+' conftest.er1 >conftest.err
6918  rm -f conftest.er1
6919  cat conftest.err >&5
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); } >/dev/null && {
6922	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923	 test ! -s conftest.err
6924       }; then
6925  ac_header_preproc=yes
6926else
6927  echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
6929
6930  ac_header_preproc=no
6931fi
6932
6933rm -f conftest.err conftest.$ac_ext
6934{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6935echo "${ECHO_T}$ac_header_preproc" >&6; }
6936
6937# So?  What about this header?
6938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6939  yes:no: )
6940    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6942    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6944    ac_header_preproc=yes
6945    ;;
6946  no:yes:* )
6947    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6949    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6950echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6951    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6953    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6954echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6959    ( cat <<\_ASBOX
6960## ------------------------------- ##
6961## Report this to ashie@homa.ne.jp ##
6962## ------------------------------- ##
6963_ASBOX
6964     ) | sed "s/^/$as_me: WARNING:     /" >&2
6965    ;;
6966esac
6967{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6970  echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972  eval "$as_ac_Header=\$ac_header_preproc"
6973fi
6974ac_res=`eval echo '${'$as_ac_Header'}'`
6975	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6976echo "${ECHO_T}$ac_res" >&6; }
6977
6978fi
6979if test `eval echo '${'$as_ac_Header'}'` = yes; then
6980  cat >>confdefs.h <<_ACEOF
6981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6982_ACEOF
6983
6984fi
6985
6986done
6987
6988    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6989echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
6990  result=
6991  cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h.  */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h.  */
6997
6998#include <limits.h>
6999#if HAVE_STDINT_H
7000#include <stdint.h>
7001#endif
7002#ifdef SIZE_MAX
7003Found it
7004#endif
7005
7006_ACEOF
7007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7008  $EGREP "Found it" >/dev/null 2>&1; then
7009  result=yes
7010fi
7011rm -f conftest*
7012
7013  if test -z "$result"; then
7014                    if test "$cross_compiling" = yes; then
7015  # Depending upon the size, compute the lo and hi bounds.
7016cat >conftest.$ac_ext <<_ACEOF
7017/* confdefs.h.  */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h.  */
7022#include <stddef.h>
7023int
7024main ()
7025{
7026static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7027test_array [0] = 0
7028
7029  ;
7030  return 0;
7031}
7032_ACEOF
7033rm -f conftest.$ac_objext
7034if { (ac_try="$ac_compile"
7035case "(($ac_try" in
7036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037  *) ac_try_echo=$ac_try;;
7038esac
7039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040  (eval "$ac_compile") 2>conftest.er1
7041  ac_status=$?
7042  grep -v '^ *+' conftest.er1 >conftest.err
7043  rm -f conftest.er1
7044  cat conftest.err >&5
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); } && {
7047	 test -z "$ac_c_werror_flag" ||
7048	 test ! -s conftest.err
7049       } && test -s conftest.$ac_objext; then
7050  ac_lo=0 ac_mid=0
7051  while :; do
7052    cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058#include <stddef.h>
7059int
7060main ()
7061{
7062static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7063test_array [0] = 0
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069rm -f conftest.$ac_objext
7070if { (ac_try="$ac_compile"
7071case "(($ac_try" in
7072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073  *) ac_try_echo=$ac_try;;
7074esac
7075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076  (eval "$ac_compile") 2>conftest.er1
7077  ac_status=$?
7078  grep -v '^ *+' conftest.er1 >conftest.err
7079  rm -f conftest.er1
7080  cat conftest.err >&5
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); } && {
7083	 test -z "$ac_c_werror_flag" ||
7084	 test ! -s conftest.err
7085       } && test -s conftest.$ac_objext; then
7086  ac_hi=$ac_mid; break
7087else
7088  echo "$as_me: failed program was:" >&5
7089sed 's/^/| /' conftest.$ac_ext >&5
7090
7091	ac_lo=`expr $ac_mid + 1`
7092			if test $ac_lo -le $ac_mid; then
7093			  ac_lo= ac_hi=
7094			  break
7095			fi
7096			ac_mid=`expr 2 '*' $ac_mid + 1`
7097fi
7098
7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7100  done
7101else
7102  echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105	cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h.  */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h.  */
7111#include <stddef.h>
7112int
7113main ()
7114{
7115static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7116test_array [0] = 0
7117
7118  ;
7119  return 0;
7120}
7121_ACEOF
7122rm -f conftest.$ac_objext
7123if { (ac_try="$ac_compile"
7124case "(($ac_try" in
7125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126  *) ac_try_echo=$ac_try;;
7127esac
7128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129  (eval "$ac_compile") 2>conftest.er1
7130  ac_status=$?
7131  grep -v '^ *+' conftest.er1 >conftest.err
7132  rm -f conftest.er1
7133  cat conftest.err >&5
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); } && {
7136	 test -z "$ac_c_werror_flag" ||
7137	 test ! -s conftest.err
7138       } && test -s conftest.$ac_objext; then
7139  ac_hi=-1 ac_mid=-1
7140  while :; do
7141    cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h.  */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h.  */
7147#include <stddef.h>
7148int
7149main ()
7150{
7151static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7152test_array [0] = 0
7153
7154  ;
7155  return 0;
7156}
7157_ACEOF
7158rm -f conftest.$ac_objext
7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162  *) ac_try_echo=$ac_try;;
7163esac
7164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165  (eval "$ac_compile") 2>conftest.er1
7166  ac_status=$?
7167  grep -v '^ *+' conftest.er1 >conftest.err
7168  rm -f conftest.er1
7169  cat conftest.err >&5
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); } && {
7172	 test -z "$ac_c_werror_flag" ||
7173	 test ! -s conftest.err
7174       } && test -s conftest.$ac_objext; then
7175  ac_lo=$ac_mid; break
7176else
7177  echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
7180	ac_hi=`expr '(' $ac_mid ')' - 1`
7181			if test $ac_mid -le $ac_hi; then
7182			  ac_lo= ac_hi=
7183			  break
7184			fi
7185			ac_mid=`expr 2 '*' $ac_mid`
7186fi
7187
7188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189  done
7190else
7191  echo "$as_me: failed program was:" >&5
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7194	ac_lo= ac_hi=
7195fi
7196
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198fi
7199
7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201# Binary search between lo and hi bounds.
7202while test "x$ac_lo" != "x$ac_hi"; do
7203  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7204  cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h.  */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h.  */
7210#include <stddef.h>
7211int
7212main ()
7213{
7214static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7215test_array [0] = 0
7216
7217  ;
7218  return 0;
7219}
7220_ACEOF
7221rm -f conftest.$ac_objext
7222if { (ac_try="$ac_compile"
7223case "(($ac_try" in
7224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225  *) ac_try_echo=$ac_try;;
7226esac
7227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228  (eval "$ac_compile") 2>conftest.er1
7229  ac_status=$?
7230  grep -v '^ *+' conftest.er1 >conftest.err
7231  rm -f conftest.er1
7232  cat conftest.err >&5
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); } && {
7235	 test -z "$ac_c_werror_flag" ||
7236	 test ! -s conftest.err
7237       } && test -s conftest.$ac_objext; then
7238  ac_hi=$ac_mid
7239else
7240  echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243	ac_lo=`expr '(' $ac_mid ')' + 1`
7244fi
7245
7246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247done
7248case $ac_lo in
7249?*) res_hi=$ac_lo;;
7250'') result=? ;;
7251esac
7252else
7253  cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h.  */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h.  */
7259#include <stddef.h>
7260static long int longval () { return ~(size_t)0 / 10; }
7261static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7262#include <stdio.h>
7263#include <stdlib.h>
7264int
7265main ()
7266{
7267
7268  FILE *f = fopen ("conftest.val", "w");
7269  if (! f)
7270    return 1;
7271  if ((~(size_t)0 / 10) < 0)
7272    {
7273      long int i = longval ();
7274      if (i != (~(size_t)0 / 10))
7275	return 1;
7276      fprintf (f, "%ld\n", i);
7277    }
7278  else
7279    {
7280      unsigned long int i = ulongval ();
7281      if (i != (~(size_t)0 / 10))
7282	return 1;
7283      fprintf (f, "%lu\n", i);
7284    }
7285  return ferror (f) || fclose (f) != 0;
7286
7287  ;
7288  return 0;
7289}
7290_ACEOF
7291rm -f conftest$ac_exeext
7292if { (ac_try="$ac_link"
7293case "(($ac_try" in
7294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295  *) ac_try_echo=$ac_try;;
7296esac
7297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298  (eval "$ac_link") 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7302  { (case "(($ac_try" in
7303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304  *) ac_try_echo=$ac_try;;
7305esac
7306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307  (eval "$ac_try") 2>&5
7308  ac_status=$?
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); }; }; then
7311  res_hi=`cat conftest.val`
7312else
7313  echo "$as_me: program exited with status $ac_status" >&5
7314echo "$as_me: failed program was:" >&5
7315sed 's/^/| /' conftest.$ac_ext >&5
7316
7317( exit $ac_status )
7318result=?
7319fi
7320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7321fi
7322rm -f conftest.val
7323
7324    if test "$cross_compiling" = yes; then
7325  # Depending upon the size, compute the lo and hi bounds.
7326cat >conftest.$ac_ext <<_ACEOF
7327/* confdefs.h.  */
7328_ACEOF
7329cat confdefs.h >>conftest.$ac_ext
7330cat >>conftest.$ac_ext <<_ACEOF
7331/* end confdefs.h.  */
7332#include <stddef.h>
7333int
7334main ()
7335{
7336static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7337test_array [0] = 0
7338
7339  ;
7340  return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext
7344if { (ac_try="$ac_compile"
7345case "(($ac_try" in
7346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347  *) ac_try_echo=$ac_try;;
7348esac
7349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350  (eval "$ac_compile") 2>conftest.er1
7351  ac_status=$?
7352  grep -v '^ *+' conftest.er1 >conftest.err
7353  rm -f conftest.er1
7354  cat conftest.err >&5
7355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356  (exit $ac_status); } && {
7357	 test -z "$ac_c_werror_flag" ||
7358	 test ! -s conftest.err
7359       } && test -s conftest.$ac_objext; then
7360  ac_lo=0 ac_mid=0
7361  while :; do
7362    cat >conftest.$ac_ext <<_ACEOF
7363/* confdefs.h.  */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h.  */
7368#include <stddef.h>
7369int
7370main ()
7371{
7372static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7373test_array [0] = 0
7374
7375  ;
7376  return 0;
7377}
7378_ACEOF
7379rm -f conftest.$ac_objext
7380if { (ac_try="$ac_compile"
7381case "(($ac_try" in
7382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383  *) ac_try_echo=$ac_try;;
7384esac
7385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386  (eval "$ac_compile") 2>conftest.er1
7387  ac_status=$?
7388  grep -v '^ *+' conftest.er1 >conftest.err
7389  rm -f conftest.er1
7390  cat conftest.err >&5
7391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392  (exit $ac_status); } && {
7393	 test -z "$ac_c_werror_flag" ||
7394	 test ! -s conftest.err
7395       } && test -s conftest.$ac_objext; then
7396  ac_hi=$ac_mid; break
7397else
7398  echo "$as_me: failed program was:" >&5
7399sed 's/^/| /' conftest.$ac_ext >&5
7400
7401	ac_lo=`expr $ac_mid + 1`
7402			if test $ac_lo -le $ac_mid; then
7403			  ac_lo= ac_hi=
7404			  break
7405			fi
7406			ac_mid=`expr 2 '*' $ac_mid + 1`
7407fi
7408
7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410  done
7411else
7412  echo "$as_me: failed program was:" >&5
7413sed 's/^/| /' conftest.$ac_ext >&5
7414
7415	cat >conftest.$ac_ext <<_ACEOF
7416/* confdefs.h.  */
7417_ACEOF
7418cat confdefs.h >>conftest.$ac_ext
7419cat >>conftest.$ac_ext <<_ACEOF
7420/* end confdefs.h.  */
7421#include <stddef.h>
7422int
7423main ()
7424{
7425static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7426test_array [0] = 0
7427
7428  ;
7429  return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext
7433if { (ac_try="$ac_compile"
7434case "(($ac_try" in
7435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436  *) ac_try_echo=$ac_try;;
7437esac
7438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439  (eval "$ac_compile") 2>conftest.er1
7440  ac_status=$?
7441  grep -v '^ *+' conftest.er1 >conftest.err
7442  rm -f conftest.er1
7443  cat conftest.err >&5
7444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445  (exit $ac_status); } && {
7446	 test -z "$ac_c_werror_flag" ||
7447	 test ! -s conftest.err
7448       } && test -s conftest.$ac_objext; then
7449  ac_hi=-1 ac_mid=-1
7450  while :; do
7451    cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h.  */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h.  */
7457#include <stddef.h>
7458int
7459main ()
7460{
7461static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7462test_array [0] = 0
7463
7464  ;
7465  return 0;
7466}
7467_ACEOF
7468rm -f conftest.$ac_objext
7469if { (ac_try="$ac_compile"
7470case "(($ac_try" in
7471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472  *) ac_try_echo=$ac_try;;
7473esac
7474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475  (eval "$ac_compile") 2>conftest.er1
7476  ac_status=$?
7477  grep -v '^ *+' conftest.er1 >conftest.err
7478  rm -f conftest.er1
7479  cat conftest.err >&5
7480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481  (exit $ac_status); } && {
7482	 test -z "$ac_c_werror_flag" ||
7483	 test ! -s conftest.err
7484       } && test -s conftest.$ac_objext; then
7485  ac_lo=$ac_mid; break
7486else
7487  echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
7490	ac_hi=`expr '(' $ac_mid ')' - 1`
7491			if test $ac_mid -le $ac_hi; then
7492			  ac_lo= ac_hi=
7493			  break
7494			fi
7495			ac_mid=`expr 2 '*' $ac_mid`
7496fi
7497
7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499  done
7500else
7501  echo "$as_me: failed program was:" >&5
7502sed 's/^/| /' conftest.$ac_ext >&5
7503
7504	ac_lo= ac_hi=
7505fi
7506
7507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508fi
7509
7510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511# Binary search between lo and hi bounds.
7512while test "x$ac_lo" != "x$ac_hi"; do
7513  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7514  cat >conftest.$ac_ext <<_ACEOF
7515/* confdefs.h.  */
7516_ACEOF
7517cat confdefs.h >>conftest.$ac_ext
7518cat >>conftest.$ac_ext <<_ACEOF
7519/* end confdefs.h.  */
7520#include <stddef.h>
7521int
7522main ()
7523{
7524static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7525test_array [0] = 0
7526
7527  ;
7528  return 0;
7529}
7530_ACEOF
7531rm -f conftest.$ac_objext
7532if { (ac_try="$ac_compile"
7533case "(($ac_try" in
7534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535  *) ac_try_echo=$ac_try;;
7536esac
7537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538  (eval "$ac_compile") 2>conftest.er1
7539  ac_status=$?
7540  grep -v '^ *+' conftest.er1 >conftest.err
7541  rm -f conftest.er1
7542  cat conftest.err >&5
7543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544  (exit $ac_status); } && {
7545	 test -z "$ac_c_werror_flag" ||
7546	 test ! -s conftest.err
7547       } && test -s conftest.$ac_objext; then
7548  ac_hi=$ac_mid
7549else
7550  echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
7553	ac_lo=`expr '(' $ac_mid ')' + 1`
7554fi
7555
7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557done
7558case $ac_lo in
7559?*) res_lo=$ac_lo;;
7560'') result=? ;;
7561esac
7562else
7563  cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h.  */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h.  */
7569#include <stddef.h>
7570static long int longval () { return ~(size_t)0 % 10; }
7571static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7572#include <stdio.h>
7573#include <stdlib.h>
7574int
7575main ()
7576{
7577
7578  FILE *f = fopen ("conftest.val", "w");
7579  if (! f)
7580    return 1;
7581  if ((~(size_t)0 % 10) < 0)
7582    {
7583      long int i = longval ();
7584      if (i != (~(size_t)0 % 10))
7585	return 1;
7586      fprintf (f, "%ld\n", i);
7587    }
7588  else
7589    {
7590      unsigned long int i = ulongval ();
7591      if (i != (~(size_t)0 % 10))
7592	return 1;
7593      fprintf (f, "%lu\n", i);
7594    }
7595  return ferror (f) || fclose (f) != 0;
7596
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601rm -f conftest$ac_exeext
7602if { (ac_try="$ac_link"
7603case "(($ac_try" in
7604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605  *) ac_try_echo=$ac_try;;
7606esac
7607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608  (eval "$ac_link") 2>&5
7609  ac_status=$?
7610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7612  { (case "(($ac_try" in
7613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614  *) ac_try_echo=$ac_try;;
7615esac
7616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617  (eval "$ac_try") 2>&5
7618  ac_status=$?
7619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620  (exit $ac_status); }; }; then
7621  res_lo=`cat conftest.val`
7622else
7623  echo "$as_me: program exited with status $ac_status" >&5
7624echo "$as_me: failed program was:" >&5
7625sed 's/^/| /' conftest.$ac_ext >&5
7626
7627( exit $ac_status )
7628result=?
7629fi
7630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7631fi
7632rm -f conftest.val
7633
7634    if test "$cross_compiling" = yes; then
7635  # Depending upon the size, compute the lo and hi bounds.
7636cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h.  */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h.  */
7642#include <stddef.h>
7643int
7644main ()
7645{
7646static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7647test_array [0] = 0
7648
7649  ;
7650  return 0;
7651}
7652_ACEOF
7653rm -f conftest.$ac_objext
7654if { (ac_try="$ac_compile"
7655case "(($ac_try" in
7656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657  *) ac_try_echo=$ac_try;;
7658esac
7659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660  (eval "$ac_compile") 2>conftest.er1
7661  ac_status=$?
7662  grep -v '^ *+' conftest.er1 >conftest.err
7663  rm -f conftest.er1
7664  cat conftest.err >&5
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); } && {
7667	 test -z "$ac_c_werror_flag" ||
7668	 test ! -s conftest.err
7669       } && test -s conftest.$ac_objext; then
7670  ac_lo=0 ac_mid=0
7671  while :; do
7672    cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h.  */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h.  */
7678#include <stddef.h>
7679int
7680main ()
7681{
7682static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7683test_array [0] = 0
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext
7690if { (ac_try="$ac_compile"
7691case "(($ac_try" in
7692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693  *) ac_try_echo=$ac_try;;
7694esac
7695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696  (eval "$ac_compile") 2>conftest.er1
7697  ac_status=$?
7698  grep -v '^ *+' conftest.er1 >conftest.err
7699  rm -f conftest.er1
7700  cat conftest.err >&5
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); } && {
7703	 test -z "$ac_c_werror_flag" ||
7704	 test ! -s conftest.err
7705       } && test -s conftest.$ac_objext; then
7706  ac_hi=$ac_mid; break
7707else
7708  echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711	ac_lo=`expr $ac_mid + 1`
7712			if test $ac_lo -le $ac_mid; then
7713			  ac_lo= ac_hi=
7714			  break
7715			fi
7716			ac_mid=`expr 2 '*' $ac_mid + 1`
7717fi
7718
7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720  done
7721else
7722  echo "$as_me: failed program was:" >&5
7723sed 's/^/| /' conftest.$ac_ext >&5
7724
7725	cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h.  */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h.  */
7731#include <stddef.h>
7732int
7733main ()
7734{
7735static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7736test_array [0] = 0
7737
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742rm -f conftest.$ac_objext
7743if { (ac_try="$ac_compile"
7744case "(($ac_try" in
7745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746  *) ac_try_echo=$ac_try;;
7747esac
7748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749  (eval "$ac_compile") 2>conftest.er1
7750  ac_status=$?
7751  grep -v '^ *+' conftest.er1 >conftest.err
7752  rm -f conftest.er1
7753  cat conftest.err >&5
7754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755  (exit $ac_status); } && {
7756	 test -z "$ac_c_werror_flag" ||
7757	 test ! -s conftest.err
7758       } && test -s conftest.$ac_objext; then
7759  ac_hi=-1 ac_mid=-1
7760  while :; do
7761    cat >conftest.$ac_ext <<_ACEOF
7762/* confdefs.h.  */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h.  */
7767#include <stddef.h>
7768int
7769main ()
7770{
7771static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7772test_array [0] = 0
7773
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext
7779if { (ac_try="$ac_compile"
7780case "(($ac_try" in
7781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782  *) ac_try_echo=$ac_try;;
7783esac
7784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785  (eval "$ac_compile") 2>conftest.er1
7786  ac_status=$?
7787  grep -v '^ *+' conftest.er1 >conftest.err
7788  rm -f conftest.er1
7789  cat conftest.err >&5
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); } && {
7792	 test -z "$ac_c_werror_flag" ||
7793	 test ! -s conftest.err
7794       } && test -s conftest.$ac_objext; then
7795  ac_lo=$ac_mid; break
7796else
7797  echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800	ac_hi=`expr '(' $ac_mid ')' - 1`
7801			if test $ac_mid -le $ac_hi; then
7802			  ac_lo= ac_hi=
7803			  break
7804			fi
7805			ac_mid=`expr 2 '*' $ac_mid`
7806fi
7807
7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809  done
7810else
7811  echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814	ac_lo= ac_hi=
7815fi
7816
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818fi
7819
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821# Binary search between lo and hi bounds.
7822while test "x$ac_lo" != "x$ac_hi"; do
7823  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7824  cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h.  */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h.  */
7830#include <stddef.h>
7831int
7832main ()
7833{
7834static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7835test_array [0] = 0
7836
7837  ;
7838  return 0;
7839}
7840_ACEOF
7841rm -f conftest.$ac_objext
7842if { (ac_try="$ac_compile"
7843case "(($ac_try" in
7844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845  *) ac_try_echo=$ac_try;;
7846esac
7847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848  (eval "$ac_compile") 2>conftest.er1
7849  ac_status=$?
7850  grep -v '^ *+' conftest.er1 >conftest.err
7851  rm -f conftest.er1
7852  cat conftest.err >&5
7853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854  (exit $ac_status); } && {
7855	 test -z "$ac_c_werror_flag" ||
7856	 test ! -s conftest.err
7857       } && test -s conftest.$ac_objext; then
7858  ac_hi=$ac_mid
7859else
7860  echo "$as_me: failed program was:" >&5
7861sed 's/^/| /' conftest.$ac_ext >&5
7862
7863	ac_lo=`expr '(' $ac_mid ')' + 1`
7864fi
7865
7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867done
7868case $ac_lo in
7869?*) fits_in_uint=$ac_lo;;
7870'') result=? ;;
7871esac
7872else
7873  cat >conftest.$ac_ext <<_ACEOF
7874/* confdefs.h.  */
7875_ACEOF
7876cat confdefs.h >>conftest.$ac_ext
7877cat >>conftest.$ac_ext <<_ACEOF
7878/* end confdefs.h.  */
7879#include <stddef.h>
7880static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7881static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7882#include <stdio.h>
7883#include <stdlib.h>
7884int
7885main ()
7886{
7887
7888  FILE *f = fopen ("conftest.val", "w");
7889  if (! f)
7890    return 1;
7891  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7892    {
7893      long int i = longval ();
7894      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7895	return 1;
7896      fprintf (f, "%ld\n", i);
7897    }
7898  else
7899    {
7900      unsigned long int i = ulongval ();
7901      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7902	return 1;
7903      fprintf (f, "%lu\n", i);
7904    }
7905  return ferror (f) || fclose (f) != 0;
7906
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911rm -f conftest$ac_exeext
7912if { (ac_try="$ac_link"
7913case "(($ac_try" in
7914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915  *) ac_try_echo=$ac_try;;
7916esac
7917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918  (eval "$ac_link") 2>&5
7919  ac_status=$?
7920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922  { (case "(($ac_try" in
7923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924  *) ac_try_echo=$ac_try;;
7925esac
7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927  (eval "$ac_try") 2>&5
7928  ac_status=$?
7929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930  (exit $ac_status); }; }; then
7931  fits_in_uint=`cat conftest.val`
7932else
7933  echo "$as_me: program exited with status $ac_status" >&5
7934echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
7937( exit $ac_status )
7938result=?
7939fi
7940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7941fi
7942rm -f conftest.val
7943
7944    if test "$fits_in_uint" = 1; then
7945                  cat >conftest.$ac_ext <<_ACEOF
7946/* confdefs.h.  */
7947_ACEOF
7948cat confdefs.h >>conftest.$ac_ext
7949cat >>conftest.$ac_ext <<_ACEOF
7950/* end confdefs.h.  */
7951#include <stddef.h>
7952        extern size_t foo;
7953        extern unsigned long foo;
7954
7955int
7956main ()
7957{
7958
7959  ;
7960  return 0;
7961}
7962_ACEOF
7963rm -f conftest.$ac_objext
7964if { (ac_try="$ac_compile"
7965case "(($ac_try" in
7966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967  *) ac_try_echo=$ac_try;;
7968esac
7969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970  (eval "$ac_compile") 2>conftest.er1
7971  ac_status=$?
7972  grep -v '^ *+' conftest.er1 >conftest.err
7973  rm -f conftest.er1
7974  cat conftest.err >&5
7975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976  (exit $ac_status); } && {
7977	 test -z "$ac_c_werror_flag" ||
7978	 test ! -s conftest.err
7979       } && test -s conftest.$ac_objext; then
7980  fits_in_uint=0
7981else
7982  echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985
7986fi
7987
7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989    fi
7990    if test -z "$result"; then
7991      if test "$fits_in_uint" = 1; then
7992        result="$res_hi$res_lo"U
7993      else
7994        result="$res_hi$res_lo"UL
7995      fi
7996    else
7997            result='~(size_t)0'
7998    fi
7999  fi
8000  { echo "$as_me:$LINENO: result: $result" >&5
8001echo "${ECHO_T}$result" >&6; }
8002  if test "$result" != yes; then
8003
8004cat >>confdefs.h <<_ACEOF
8005#define SIZE_MAX $result
8006_ACEOF
8007
8008  fi
8009
8010
8011
8012
8013for ac_header in stdint.h
8014do
8015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8017  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8020  echo $ECHO_N "(cached) $ECHO_C" >&6
8021fi
8022ac_res=`eval echo '${'$as_ac_Header'}'`
8023	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8024echo "${ECHO_T}$ac_res" >&6; }
8025else
8026  # Is the header compilable?
8027{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8029cat >conftest.$ac_ext <<_ACEOF
8030/* confdefs.h.  */
8031_ACEOF
8032cat confdefs.h >>conftest.$ac_ext
8033cat >>conftest.$ac_ext <<_ACEOF
8034/* end confdefs.h.  */
8035$ac_includes_default
8036#include <$ac_header>
8037_ACEOF
8038rm -f conftest.$ac_objext
8039if { (ac_try="$ac_compile"
8040case "(($ac_try" in
8041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042  *) ac_try_echo=$ac_try;;
8043esac
8044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045  (eval "$ac_compile") 2>conftest.er1
8046  ac_status=$?
8047  grep -v '^ *+' conftest.er1 >conftest.err
8048  rm -f conftest.er1
8049  cat conftest.err >&5
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); } && {
8052	 test -z "$ac_c_werror_flag" ||
8053	 test ! -s conftest.err
8054       } && test -s conftest.$ac_objext; then
8055  ac_header_compiler=yes
8056else
8057  echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060	ac_header_compiler=no
8061fi
8062
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8065echo "${ECHO_T}$ac_header_compiler" >&6; }
8066
8067# Is the header present?
8068{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8070cat >conftest.$ac_ext <<_ACEOF
8071/* confdefs.h.  */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h.  */
8076#include <$ac_header>
8077_ACEOF
8078if { (ac_try="$ac_cpp conftest.$ac_ext"
8079case "(($ac_try" in
8080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081  *) ac_try_echo=$ac_try;;
8082esac
8083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8085  ac_status=$?
8086  grep -v '^ *+' conftest.er1 >conftest.err
8087  rm -f conftest.er1
8088  cat conftest.err >&5
8089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090  (exit $ac_status); } >/dev/null && {
8091	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8092	 test ! -s conftest.err
8093       }; then
8094  ac_header_preproc=yes
8095else
8096  echo "$as_me: failed program was:" >&5
8097sed 's/^/| /' conftest.$ac_ext >&5
8098
8099  ac_header_preproc=no
8100fi
8101
8102rm -f conftest.err conftest.$ac_ext
8103{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8104echo "${ECHO_T}$ac_header_preproc" >&6; }
8105
8106# So?  What about this header?
8107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8108  yes:no: )
8109    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8113    ac_header_preproc=yes
8114    ;;
8115  no:yes:* )
8116    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8118    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8119echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8120    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8122    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8123echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8124    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8126    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8128    ( cat <<\_ASBOX
8129## ------------------------------- ##
8130## Report this to ashie@homa.ne.jp ##
8131## ------------------------------- ##
8132_ASBOX
8133     ) | sed "s/^/$as_me: WARNING:     /" >&2
8134    ;;
8135esac
8136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8139  echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141  eval "$as_ac_Header=\$ac_header_preproc"
8142fi
8143ac_res=`eval echo '${'$as_ac_Header'}'`
8144	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8145echo "${ECHO_T}$ac_res" >&6; }
8146
8147fi
8148if test `eval echo '${'$as_ac_Header'}'` = yes; then
8149  cat >>confdefs.h <<_ACEOF
8150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8151_ACEOF
8152
8153fi
8154
8155done
8156
8157
8158
8159      if test "X$prefix" = "XNONE"; then
8160    acl_final_prefix="$ac_default_prefix"
8161  else
8162    acl_final_prefix="$prefix"
8163  fi
8164  if test "X$exec_prefix" = "XNONE"; then
8165    acl_final_exec_prefix='${prefix}'
8166  else
8167    acl_final_exec_prefix="$exec_prefix"
8168  fi
8169  acl_save_prefix="$prefix"
8170  prefix="$acl_final_prefix"
8171  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8172  prefix="$acl_save_prefix"
8173
8174
8175# Check whether --with-gnu-ld was given.
8176if test "${with_gnu_ld+set}" = set; then
8177  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8178else
8179  with_gnu_ld=no
8180fi
8181
8182# Prepare PATH_SEPARATOR.
8183# The user is always right.
8184if test "${PATH_SEPARATOR+set}" != set; then
8185  echo "#! /bin/sh" >conf$$.sh
8186  echo  "exit 0"   >>conf$$.sh
8187  chmod +x conf$$.sh
8188  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8189    PATH_SEPARATOR=';'
8190  else
8191    PATH_SEPARATOR=:
8192  fi
8193  rm -f conf$$.sh
8194fi
8195ac_prog=ld
8196if test "$GCC" = yes; then
8197  # Check if gcc -print-prog-name=ld gives a path.
8198  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8199echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8200  case $host in
8201  *-*-mingw*)
8202    # gcc leaves a trailing carriage return which upsets mingw
8203    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8204  *)
8205    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8206  esac
8207  case $ac_prog in
8208    # Accept absolute paths.
8209    [\\/]* | [A-Za-z]:[\\/]*)
8210      re_direlt='/[^/][^/]*/\.\./'
8211      # Canonicalize the path of ld
8212      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8213      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8214	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8215      done
8216      test -z "$LD" && LD="$ac_prog"
8217      ;;
8218  "")
8219    # If it fails, then pretend we aren't using GCC.
8220    ac_prog=ld
8221    ;;
8222  *)
8223    # If it is relative, then search for the first ld in PATH.
8224    with_gnu_ld=unknown
8225    ;;
8226  esac
8227elif test "$with_gnu_ld" = yes; then
8228  { echo "$as_me:$LINENO: checking for GNU ld" >&5
8229echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8230else
8231  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8232echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8233fi
8234if test "${acl_cv_path_LD+set}" = set; then
8235  echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237  if test -z "$LD"; then
8238  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8239  for ac_dir in $PATH; do
8240    test -z "$ac_dir" && ac_dir=.
8241    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8242      acl_cv_path_LD="$ac_dir/$ac_prog"
8243      # Check to see if the program is GNU ld.  I'd rather use --version,
8244      # but apparently some GNU ld's only accept -v.
8245      # Break only if it was the GNU/non-GNU ld that we prefer.
8246      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8247      *GNU* | *'with BFD'*)
8248	test "$with_gnu_ld" != no && break ;;
8249      *)
8250	test "$with_gnu_ld" != yes && break ;;
8251      esac
8252    fi
8253  done
8254  IFS="$ac_save_ifs"
8255else
8256  acl_cv_path_LD="$LD" # Let the user override the test with a path.
8257fi
8258fi
8259
8260LD="$acl_cv_path_LD"
8261if test -n "$LD"; then
8262  { echo "$as_me:$LINENO: result: $LD" >&5
8263echo "${ECHO_T}$LD" >&6; }
8264else
8265  { echo "$as_me:$LINENO: result: no" >&5
8266echo "${ECHO_T}no" >&6; }
8267fi
8268test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8269echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8270   { (exit 1); exit 1; }; }
8271{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8272echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8273if test "${acl_cv_prog_gnu_ld+set}" = set; then
8274  echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8277case `$LD -v 2>&1 </dev/null` in
8278*GNU* | *'with BFD'*)
8279  acl_cv_prog_gnu_ld=yes ;;
8280*)
8281  acl_cv_prog_gnu_ld=no ;;
8282esac
8283fi
8284{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8285echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8286with_gnu_ld=$acl_cv_prog_gnu_ld
8287
8288
8289
8290                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8291echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8292if test "${acl_cv_rpath+set}" = set; then
8293  echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295
8296    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8297    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8298    . ./conftest.sh
8299    rm -f ./conftest.sh
8300    acl_cv_rpath=done
8301
8302fi
8303{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8304echo "${ECHO_T}$acl_cv_rpath" >&6; }
8305  wl="$acl_cv_wl"
8306  libext="$acl_cv_libext"
8307  shlibext="$acl_cv_shlibext"
8308  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8309  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8310  hardcode_direct="$acl_cv_hardcode_direct"
8311  hardcode_minus_L="$acl_cv_hardcode_minus_L"
8312    # Check whether --enable-rpath was given.
8313if test "${enable_rpath+set}" = set; then
8314  enableval=$enable_rpath; :
8315else
8316  enable_rpath=yes
8317fi
8318
8319
8320
8321
8322
8323
8324
8325
8326    use_additional=yes
8327
8328  acl_save_prefix="$prefix"
8329  prefix="$acl_final_prefix"
8330  acl_save_exec_prefix="$exec_prefix"
8331  exec_prefix="$acl_final_exec_prefix"
8332
8333    eval additional_includedir=\"$includedir\"
8334    eval additional_libdir=\"$libdir\"
8335
8336  exec_prefix="$acl_save_exec_prefix"
8337  prefix="$acl_save_prefix"
8338
8339
8340# Check whether --with-libiconv-prefix was given.
8341if test "${with_libiconv_prefix+set}" = set; then
8342  withval=$with_libiconv_prefix;
8343    if test "X$withval" = "Xno"; then
8344      use_additional=no
8345    else
8346      if test "X$withval" = "X"; then
8347
8348  acl_save_prefix="$prefix"
8349  prefix="$acl_final_prefix"
8350  acl_save_exec_prefix="$exec_prefix"
8351  exec_prefix="$acl_final_exec_prefix"
8352
8353          eval additional_includedir=\"$includedir\"
8354          eval additional_libdir=\"$libdir\"
8355
8356  exec_prefix="$acl_save_exec_prefix"
8357  prefix="$acl_save_prefix"
8358
8359      else
8360        additional_includedir="$withval/include"
8361        additional_libdir="$withval/lib"
8362      fi
8363    fi
8364
8365fi
8366
8367      LIBICONV=
8368  LTLIBICONV=
8369  INCICONV=
8370  rpathdirs=
8371  ltrpathdirs=
8372  names_already_handled=
8373  names_next_round='iconv '
8374  while test -n "$names_next_round"; do
8375    names_this_round="$names_next_round"
8376    names_next_round=
8377    for name in $names_this_round; do
8378      already_handled=
8379      for n in $names_already_handled; do
8380        if test "$n" = "$name"; then
8381          already_handled=yes
8382          break
8383        fi
8384      done
8385      if test -z "$already_handled"; then
8386        names_already_handled="$names_already_handled $name"
8387                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8388        eval value=\"\$HAVE_LIB$uppername\"
8389        if test -n "$value"; then
8390          if test "$value" = yes; then
8391            eval value=\"\$LIB$uppername\"
8392            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8393            eval value=\"\$LTLIB$uppername\"
8394            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8395          else
8396                                    :
8397          fi
8398        else
8399                              found_dir=
8400          found_la=
8401          found_so=
8402          found_a=
8403          if test $use_additional = yes; then
8404            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8405              found_dir="$additional_libdir"
8406              found_so="$additional_libdir/lib$name.$shlibext"
8407              if test -f "$additional_libdir/lib$name.la"; then
8408                found_la="$additional_libdir/lib$name.la"
8409              fi
8410            else
8411              if test -f "$additional_libdir/lib$name.$libext"; then
8412                found_dir="$additional_libdir"
8413                found_a="$additional_libdir/lib$name.$libext"
8414                if test -f "$additional_libdir/lib$name.la"; then
8415                  found_la="$additional_libdir/lib$name.la"
8416                fi
8417              fi
8418            fi
8419          fi
8420          if test "X$found_dir" = "X"; then
8421            for x in $LDFLAGS $LTLIBICONV; do
8422
8423  acl_save_prefix="$prefix"
8424  prefix="$acl_final_prefix"
8425  acl_save_exec_prefix="$exec_prefix"
8426  exec_prefix="$acl_final_exec_prefix"
8427  eval x=\"$x\"
8428  exec_prefix="$acl_save_exec_prefix"
8429  prefix="$acl_save_prefix"
8430
8431              case "$x" in
8432                -L*)
8433                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8434                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8435                    found_dir="$dir"
8436                    found_so="$dir/lib$name.$shlibext"
8437                    if test -f "$dir/lib$name.la"; then
8438                      found_la="$dir/lib$name.la"
8439                    fi
8440                  else
8441                    if test -f "$dir/lib$name.$libext"; then
8442                      found_dir="$dir"
8443                      found_a="$dir/lib$name.$libext"
8444                      if test -f "$dir/lib$name.la"; then
8445                        found_la="$dir/lib$name.la"
8446                      fi
8447                    fi
8448                  fi
8449                  ;;
8450              esac
8451              if test "X$found_dir" != "X"; then
8452                break
8453              fi
8454            done
8455          fi
8456          if test "X$found_dir" != "X"; then
8457                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8458            if test "X$found_so" != "X"; then
8459                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8460                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8461              else
8462                                                                                haveit=
8463                for x in $ltrpathdirs; do
8464                  if test "X$x" = "X$found_dir"; then
8465                    haveit=yes
8466                    break
8467                  fi
8468                done
8469                if test -z "$haveit"; then
8470                  ltrpathdirs="$ltrpathdirs $found_dir"
8471                fi
8472                                if test "$hardcode_direct" = yes; then
8473                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8474                else
8475                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8476                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8477                                                            haveit=
8478                    for x in $rpathdirs; do
8479                      if test "X$x" = "X$found_dir"; then
8480                        haveit=yes
8481                        break
8482                      fi
8483                    done
8484                    if test -z "$haveit"; then
8485                      rpathdirs="$rpathdirs $found_dir"
8486                    fi
8487                  else
8488                                                                                haveit=
8489                    for x in $LDFLAGS $LIBICONV; do
8490
8491  acl_save_prefix="$prefix"
8492  prefix="$acl_final_prefix"
8493  acl_save_exec_prefix="$exec_prefix"
8494  exec_prefix="$acl_final_exec_prefix"
8495  eval x=\"$x\"
8496  exec_prefix="$acl_save_exec_prefix"
8497  prefix="$acl_save_prefix"
8498
8499                      if test "X$x" = "X-L$found_dir"; then
8500                        haveit=yes
8501                        break
8502                      fi
8503                    done
8504                    if test -z "$haveit"; then
8505                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8506                    fi
8507                    if test "$hardcode_minus_L" != no; then
8508                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8509                    else
8510                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8511                    fi
8512                  fi
8513                fi
8514              fi
8515            else
8516              if test "X$found_a" != "X"; then
8517                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8518              else
8519                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8520              fi
8521            fi
8522                        additional_includedir=
8523            case "$found_dir" in
8524              */lib | */lib/)
8525                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8526                additional_includedir="$basedir/include"
8527                ;;
8528            esac
8529            if test "X$additional_includedir" != "X"; then
8530                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8531                haveit=
8532                if test "X$additional_includedir" = "X/usr/local/include"; then
8533                  if test -n "$GCC"; then
8534                    case $host_os in
8535                      linux*) haveit=yes;;
8536                    esac
8537                  fi
8538                fi
8539                if test -z "$haveit"; then
8540                  for x in $CPPFLAGS $INCICONV; do
8541
8542  acl_save_prefix="$prefix"
8543  prefix="$acl_final_prefix"
8544  acl_save_exec_prefix="$exec_prefix"
8545  exec_prefix="$acl_final_exec_prefix"
8546  eval x=\"$x\"
8547  exec_prefix="$acl_save_exec_prefix"
8548  prefix="$acl_save_prefix"
8549
8550                    if test "X$x" = "X-I$additional_includedir"; then
8551                      haveit=yes
8552                      break
8553                    fi
8554                  done
8555                  if test -z "$haveit"; then
8556                    if test -d "$additional_includedir"; then
8557                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8558                    fi
8559                  fi
8560                fi
8561              fi
8562            fi
8563                        if test -n "$found_la"; then
8564                                                        save_libdir="$libdir"
8565              case "$found_la" in
8566                */* | *\\*) . "$found_la" ;;
8567                *) . "./$found_la" ;;
8568              esac
8569              libdir="$save_libdir"
8570                            for dep in $dependency_libs; do
8571                case "$dep" in
8572                  -L*)
8573                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8574                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
8575                      haveit=
8576                      if test "X$additional_libdir" = "X/usr/local/lib"; then
8577                        if test -n "$GCC"; then
8578                          case $host_os in
8579                            linux*) haveit=yes;;
8580                          esac
8581                        fi
8582                      fi
8583                      if test -z "$haveit"; then
8584                        haveit=
8585                        for x in $LDFLAGS $LIBICONV; do
8586
8587  acl_save_prefix="$prefix"
8588  prefix="$acl_final_prefix"
8589  acl_save_exec_prefix="$exec_prefix"
8590  exec_prefix="$acl_final_exec_prefix"
8591  eval x=\"$x\"
8592  exec_prefix="$acl_save_exec_prefix"
8593  prefix="$acl_save_prefix"
8594
8595                          if test "X$x" = "X-L$additional_libdir"; then
8596                            haveit=yes
8597                            break
8598                          fi
8599                        done
8600                        if test -z "$haveit"; then
8601                          if test -d "$additional_libdir"; then
8602                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8603                          fi
8604                        fi
8605                        haveit=
8606                        for x in $LDFLAGS $LTLIBICONV; do
8607
8608  acl_save_prefix="$prefix"
8609  prefix="$acl_final_prefix"
8610  acl_save_exec_prefix="$exec_prefix"
8611  exec_prefix="$acl_final_exec_prefix"
8612  eval x=\"$x\"
8613  exec_prefix="$acl_save_exec_prefix"
8614  prefix="$acl_save_prefix"
8615
8616                          if test "X$x" = "X-L$additional_libdir"; then
8617                            haveit=yes
8618                            break
8619                          fi
8620                        done
8621                        if test -z "$haveit"; then
8622                          if test -d "$additional_libdir"; then
8623                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8624                          fi
8625                        fi
8626                      fi
8627                    fi
8628                    ;;
8629                  -R*)
8630                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8631                    if test "$enable_rpath" != no; then
8632                                                                  haveit=
8633                      for x in $rpathdirs; do
8634                        if test "X$x" = "X$dir"; then
8635                          haveit=yes
8636                          break
8637                        fi
8638                      done
8639                      if test -z "$haveit"; then
8640                        rpathdirs="$rpathdirs $dir"
8641                      fi
8642                                                                  haveit=
8643                      for x in $ltrpathdirs; do
8644                        if test "X$x" = "X$dir"; then
8645                          haveit=yes
8646                          break
8647                        fi
8648                      done
8649                      if test -z "$haveit"; then
8650                        ltrpathdirs="$ltrpathdirs $dir"
8651                      fi
8652                    fi
8653                    ;;
8654                  -l*)
8655                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8656                    ;;
8657                  *.la)
8658                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8659                    ;;
8660                  *)
8661                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8662                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8663                    ;;
8664                esac
8665              done
8666            fi
8667          else
8668                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8669            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8670          fi
8671        fi
8672      fi
8673    done
8674  done
8675  if test "X$rpathdirs" != "X"; then
8676    if test -n "$hardcode_libdir_separator"; then
8677                        alldirs=
8678      for found_dir in $rpathdirs; do
8679        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8680      done
8681            acl_save_libdir="$libdir"
8682      libdir="$alldirs"
8683      eval flag=\"$hardcode_libdir_flag_spec\"
8684      libdir="$acl_save_libdir"
8685      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8686    else
8687            for found_dir in $rpathdirs; do
8688        acl_save_libdir="$libdir"
8689        libdir="$found_dir"
8690        eval flag=\"$hardcode_libdir_flag_spec\"
8691        libdir="$acl_save_libdir"
8692        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8693      done
8694    fi
8695  fi
8696  if test "X$ltrpathdirs" != "X"; then
8697            for found_dir in $ltrpathdirs; do
8698      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8699    done
8700  fi
8701
8702
8703
8704
8705
8706
8707
8708
8709  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8710echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8711if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8712  echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714  cat >conftest.$ac_ext <<_ACEOF
8715/* confdefs.h.  */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h.  */
8720$ac_includes_default
8721typedef ptrdiff_t ac__type_new_;
8722int
8723main ()
8724{
8725if ((ac__type_new_ *) 0)
8726  return 0;
8727if (sizeof (ac__type_new_))
8728  return 0;
8729  ;
8730  return 0;
8731}
8732_ACEOF
8733rm -f conftest.$ac_objext
8734if { (ac_try="$ac_compile"
8735case "(($ac_try" in
8736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737  *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740  (eval "$ac_compile") 2>conftest.er1
8741  ac_status=$?
8742  grep -v '^ *+' conftest.er1 >conftest.err
8743  rm -f conftest.er1
8744  cat conftest.err >&5
8745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746  (exit $ac_status); } && {
8747	 test -z "$ac_c_werror_flag" ||
8748	 test ! -s conftest.err
8749       } && test -s conftest.$ac_objext; then
8750  ac_cv_type_ptrdiff_t=yes
8751else
8752  echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755	ac_cv_type_ptrdiff_t=no
8756fi
8757
8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759fi
8760{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8761echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8762if test $ac_cv_type_ptrdiff_t = yes; then
8763  :
8764else
8765
8766cat >>confdefs.h <<\_ACEOF
8767#define ptrdiff_t long
8768_ACEOF
8769
8770
8771fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8784stdlib.h string.h unistd.h sys/param.h
8785do
8786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8788  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792fi
8793ac_res=`eval echo '${'$as_ac_Header'}'`
8794	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8795echo "${ECHO_T}$ac_res" >&6; }
8796else
8797  # Is the header compilable?
8798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8800cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h.  */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h.  */
8806$ac_includes_default
8807#include <$ac_header>
8808_ACEOF
8809rm -f conftest.$ac_objext
8810if { (ac_try="$ac_compile"
8811case "(($ac_try" in
8812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813  *) ac_try_echo=$ac_try;;
8814esac
8815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816  (eval "$ac_compile") 2>conftest.er1
8817  ac_status=$?
8818  grep -v '^ *+' conftest.er1 >conftest.err
8819  rm -f conftest.er1
8820  cat conftest.err >&5
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); } && {
8823	 test -z "$ac_c_werror_flag" ||
8824	 test ! -s conftest.err
8825       } && test -s conftest.$ac_objext; then
8826  ac_header_compiler=yes
8827else
8828  echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831	ac_header_compiler=no
8832fi
8833
8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8836echo "${ECHO_T}$ac_header_compiler" >&6; }
8837
8838# Is the header present?
8839{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8841cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h.  */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h.  */
8847#include <$ac_header>
8848_ACEOF
8849if { (ac_try="$ac_cpp conftest.$ac_ext"
8850case "(($ac_try" in
8851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852  *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8856  ac_status=$?
8857  grep -v '^ *+' conftest.er1 >conftest.err
8858  rm -f conftest.er1
8859  cat conftest.err >&5
8860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861  (exit $ac_status); } >/dev/null && {
8862	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8863	 test ! -s conftest.err
8864       }; then
8865  ac_header_preproc=yes
8866else
8867  echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870  ac_header_preproc=no
8871fi
8872
8873rm -f conftest.err conftest.$ac_ext
8874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8875echo "${ECHO_T}$ac_header_preproc" >&6; }
8876
8877# So?  What about this header?
8878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8879  yes:no: )
8880    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8882    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8884    ac_header_preproc=yes
8885    ;;
8886  no:yes:* )
8887    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8889    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8890echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8891    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8893    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8894echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8895    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8897    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8899    ( cat <<\_ASBOX
8900## ------------------------------- ##
8901## Report this to ashie@homa.ne.jp ##
8902## ------------------------------- ##
8903_ASBOX
8904     ) | sed "s/^/$as_me: WARNING:     /" >&2
8905    ;;
8906esac
8907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8910  echo $ECHO_N "(cached) $ECHO_C" >&6
8911else
8912  eval "$as_ac_Header=\$ac_header_preproc"
8913fi
8914ac_res=`eval echo '${'$as_ac_Header'}'`
8915	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8916echo "${ECHO_T}$ac_res" >&6; }
8917
8918fi
8919if test `eval echo '${'$as_ac_Header'}'` = yes; then
8920  cat >>confdefs.h <<_ACEOF
8921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8922_ACEOF
8923
8924fi
8925
8926done
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8952mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8953strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8954__fsetlocking
8955do
8956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8960  echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962  cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h.  */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h.  */
8968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8970#define $ac_func innocuous_$ac_func
8971
8972/* System header to define __stub macros and hopefully few prototypes,
8973    which can conflict with char $ac_func (); below.
8974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8975    <limits.h> exists even on freestanding compilers.  */
8976
8977#ifdef __STDC__
8978# include <limits.h>
8979#else
8980# include <assert.h>
8981#endif
8982
8983#undef $ac_func
8984
8985/* Override any GCC internal prototype to avoid an error.
8986   Use char because int might match the return type of a GCC
8987   builtin and then its argument prototype would still apply.  */
8988#ifdef __cplusplus
8989extern "C"
8990#endif
8991char $ac_func ();
8992/* The GNU C library defines this for functions which it implements
8993    to always fail with ENOSYS.  Some functions are actually named
8994    something starting with __ and the normal name is an alias.  */
8995#if defined __stub_$ac_func || defined __stub___$ac_func
8996choke me
8997#endif
8998
8999int
9000main ()
9001{
9002return $ac_func ();
9003  ;
9004  return 0;
9005}
9006_ACEOF
9007rm -f conftest.$ac_objext conftest$ac_exeext
9008if { (ac_try="$ac_link"
9009case "(($ac_try" in
9010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011  *) ac_try_echo=$ac_try;;
9012esac
9013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014  (eval "$ac_link") 2>conftest.er1
9015  ac_status=$?
9016  grep -v '^ *+' conftest.er1 >conftest.err
9017  rm -f conftest.er1
9018  cat conftest.err >&5
9019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020  (exit $ac_status); } && {
9021	 test -z "$ac_c_werror_flag" ||
9022	 test ! -s conftest.err
9023       } && test -s conftest$ac_exeext &&
9024       $as_test_x conftest$ac_exeext; then
9025  eval "$as_ac_var=yes"
9026else
9027  echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
9029
9030	eval "$as_ac_var=no"
9031fi
9032
9033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9034      conftest$ac_exeext conftest.$ac_ext
9035fi
9036ac_res=`eval echo '${'$as_ac_var'}'`
9037	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9038echo "${ECHO_T}$ac_res" >&6; }
9039if test `eval echo '${'$as_ac_var'}'` = yes; then
9040  cat >>confdefs.h <<_ACEOF
9041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9042_ACEOF
9043
9044fi
9045done
9046
9047
9048
9049  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9050echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9051if test "${ac_cv_have_decl__snprintf+set}" = set; then
9052  echo $ECHO_N "(cached) $ECHO_C" >&6
9053else
9054  cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h.  */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h.  */
9060#include <stdio.h>
9061int
9062main ()
9063{
9064
9065#ifndef _snprintf
9066  char *p = (char *) _snprintf;
9067#endif
9068
9069  ;
9070  return 0;
9071}
9072_ACEOF
9073rm -f conftest.$ac_objext
9074if { (ac_try="$ac_compile"
9075case "(($ac_try" in
9076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077  *) ac_try_echo=$ac_try;;
9078esac
9079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080  (eval "$ac_compile") 2>conftest.er1
9081  ac_status=$?
9082  grep -v '^ *+' conftest.er1 >conftest.err
9083  rm -f conftest.er1
9084  cat conftest.err >&5
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); } && {
9087	 test -z "$ac_c_werror_flag" ||
9088	 test ! -s conftest.err
9089       } && test -s conftest.$ac_objext; then
9090  ac_cv_have_decl__snprintf=yes
9091else
9092  echo "$as_me: failed program was:" >&5
9093sed 's/^/| /' conftest.$ac_ext >&5
9094
9095	ac_cv_have_decl__snprintf=no
9096fi
9097
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099fi
9100{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9101echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9102  if test $ac_cv_have_decl__snprintf = yes; then
9103    gt_value=1
9104  else
9105    gt_value=0
9106  fi
9107
9108cat >>confdefs.h <<_ACEOF
9109#define HAVE_DECL__SNPRINTF $gt_value
9110_ACEOF
9111
9112
9113
9114  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9115echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9116if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9117  echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119  cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h.  */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h.  */
9125#include <stdio.h>
9126int
9127main ()
9128{
9129
9130#ifndef _snwprintf
9131  char *p = (char *) _snwprintf;
9132#endif
9133
9134  ;
9135  return 0;
9136}
9137_ACEOF
9138rm -f conftest.$ac_objext
9139if { (ac_try="$ac_compile"
9140case "(($ac_try" in
9141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142  *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145  (eval "$ac_compile") 2>conftest.er1
9146  ac_status=$?
9147  grep -v '^ *+' conftest.er1 >conftest.err
9148  rm -f conftest.er1
9149  cat conftest.err >&5
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); } && {
9152	 test -z "$ac_c_werror_flag" ||
9153	 test ! -s conftest.err
9154       } && test -s conftest.$ac_objext; then
9155  ac_cv_have_decl__snwprintf=yes
9156else
9157  echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
9160	ac_cv_have_decl__snwprintf=no
9161fi
9162
9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164fi
9165{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9166echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9167  if test $ac_cv_have_decl__snwprintf = yes; then
9168    gt_value=1
9169  else
9170    gt_value=0
9171  fi
9172
9173cat >>confdefs.h <<_ACEOF
9174#define HAVE_DECL__SNWPRINTF $gt_value
9175_ACEOF
9176
9177
9178
9179
9180  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9181echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9182if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9183  echo $ECHO_N "(cached) $ECHO_C" >&6
9184else
9185  cat >conftest.$ac_ext <<_ACEOF
9186/* confdefs.h.  */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h.  */
9191#include <stdio.h>
9192int
9193main ()
9194{
9195
9196#ifndef feof_unlocked
9197  char *p = (char *) feof_unlocked;
9198#endif
9199
9200  ;
9201  return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (ac_try="$ac_compile"
9206case "(($ac_try" in
9207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208  *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211  (eval "$ac_compile") 2>conftest.er1
9212  ac_status=$?
9213  grep -v '^ *+' conftest.er1 >conftest.err
9214  rm -f conftest.er1
9215  cat conftest.err >&5
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); } && {
9218	 test -z "$ac_c_werror_flag" ||
9219	 test ! -s conftest.err
9220       } && test -s conftest.$ac_objext; then
9221  ac_cv_have_decl_feof_unlocked=yes
9222else
9223  echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226	ac_cv_have_decl_feof_unlocked=no
9227fi
9228
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9232echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9233  if test $ac_cv_have_decl_feof_unlocked = yes; then
9234    gt_value=1
9235  else
9236    gt_value=0
9237  fi
9238
9239cat >>confdefs.h <<_ACEOF
9240#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9241_ACEOF
9242
9243
9244
9245  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9246echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9247if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9248  echo $ECHO_N "(cached) $ECHO_C" >&6
9249else
9250  cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h.  */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h.  */
9256#include <stdio.h>
9257int
9258main ()
9259{
9260
9261#ifndef fgets_unlocked
9262  char *p = (char *) fgets_unlocked;
9263#endif
9264
9265  ;
9266  return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext
9270if { (ac_try="$ac_compile"
9271case "(($ac_try" in
9272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273  *) ac_try_echo=$ac_try;;
9274esac
9275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276  (eval "$ac_compile") 2>conftest.er1
9277  ac_status=$?
9278  grep -v '^ *+' conftest.er1 >conftest.err
9279  rm -f conftest.er1
9280  cat conftest.err >&5
9281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282  (exit $ac_status); } && {
9283	 test -z "$ac_c_werror_flag" ||
9284	 test ! -s conftest.err
9285       } && test -s conftest.$ac_objext; then
9286  ac_cv_have_decl_fgets_unlocked=yes
9287else
9288  echo "$as_me: failed program was:" >&5
9289sed 's/^/| /' conftest.$ac_ext >&5
9290
9291	ac_cv_have_decl_fgets_unlocked=no
9292fi
9293
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295fi
9296{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9297echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9298  if test $ac_cv_have_decl_fgets_unlocked = yes; then
9299    gt_value=1
9300  else
9301    gt_value=0
9302  fi
9303
9304cat >>confdefs.h <<_ACEOF
9305#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9306_ACEOF
9307
9308
9309
9310  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9311echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9312if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9313  echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315  cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h.  */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h.  */
9321#include <stdio.h>
9322int
9323main ()
9324{
9325
9326#ifndef getc_unlocked
9327  char *p = (char *) getc_unlocked;
9328#endif
9329
9330  ;
9331  return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
9335if { (ac_try="$ac_compile"
9336case "(($ac_try" in
9337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338  *) ac_try_echo=$ac_try;;
9339esac
9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341  (eval "$ac_compile") 2>conftest.er1
9342  ac_status=$?
9343  grep -v '^ *+' conftest.er1 >conftest.err
9344  rm -f conftest.er1
9345  cat conftest.err >&5
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); } && {
9348	 test -z "$ac_c_werror_flag" ||
9349	 test ! -s conftest.err
9350       } && test -s conftest.$ac_objext; then
9351  ac_cv_have_decl_getc_unlocked=yes
9352else
9353  echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
9356	ac_cv_have_decl_getc_unlocked=no
9357fi
9358
9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360fi
9361{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9362echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9363  if test $ac_cv_have_decl_getc_unlocked = yes; then
9364    gt_value=1
9365  else
9366    gt_value=0
9367  fi
9368
9369cat >>confdefs.h <<_ACEOF
9370#define HAVE_DECL_GETC_UNLOCKED $gt_value
9371_ACEOF
9372
9373
9374
9375  case $gt_cv_func_printf_posix in
9376    *yes) HAVE_POSIX_PRINTF=1 ;;
9377    *) HAVE_POSIX_PRINTF=0 ;;
9378  esac
9379
9380  if test "$ac_cv_func_asprintf" = yes; then
9381    HAVE_ASPRINTF=1
9382  else
9383    HAVE_ASPRINTF=0
9384  fi
9385
9386  if test "$ac_cv_func_snprintf" = yes; then
9387    HAVE_SNPRINTF=1
9388  else
9389    HAVE_SNPRINTF=0
9390  fi
9391
9392  if test "$ac_cv_func_wprintf" = yes; then
9393    HAVE_WPRINTF=1
9394  else
9395    HAVE_WPRINTF=0
9396  fi
9397
9398
9399
9400
9401
9402
9403
9404          am_save_CPPFLAGS="$CPPFLAGS"
9405
9406  for element in $INCICONV; do
9407    haveit=
9408    for x in $CPPFLAGS; do
9409
9410  acl_save_prefix="$prefix"
9411  prefix="$acl_final_prefix"
9412  acl_save_exec_prefix="$exec_prefix"
9413  exec_prefix="$acl_final_exec_prefix"
9414  eval x=\"$x\"
9415  exec_prefix="$acl_save_exec_prefix"
9416  prefix="$acl_save_prefix"
9417
9418      if test "X$x" = "X$element"; then
9419        haveit=yes
9420        break
9421      fi
9422    done
9423    if test -z "$haveit"; then
9424      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9425    fi
9426  done
9427
9428
9429  { echo "$as_me:$LINENO: checking for iconv" >&5
9430echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9431if test "${am_cv_func_iconv+set}" = set; then
9432  echo $ECHO_N "(cached) $ECHO_C" >&6
9433else
9434
9435    am_cv_func_iconv="no, consider installing GNU libiconv"
9436    am_cv_lib_iconv=no
9437    cat >conftest.$ac_ext <<_ACEOF
9438/* confdefs.h.  */
9439_ACEOF
9440cat confdefs.h >>conftest.$ac_ext
9441cat >>conftest.$ac_ext <<_ACEOF
9442/* end confdefs.h.  */
9443#include <stdlib.h>
9444#include <iconv.h>
9445int
9446main ()
9447{
9448iconv_t cd = iconv_open("","");
9449       iconv(cd,NULL,NULL,NULL,NULL);
9450       iconv_close(cd);
9451  ;
9452  return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (ac_try="$ac_link"
9457case "(($ac_try" in
9458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459  *) ac_try_echo=$ac_try;;
9460esac
9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462  (eval "$ac_link") 2>conftest.er1
9463  ac_status=$?
9464  grep -v '^ *+' conftest.er1 >conftest.err
9465  rm -f conftest.er1
9466  cat conftest.err >&5
9467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468  (exit $ac_status); } && {
9469	 test -z "$ac_c_werror_flag" ||
9470	 test ! -s conftest.err
9471       } && test -s conftest$ac_exeext &&
9472       $as_test_x conftest$ac_exeext; then
9473  am_cv_func_iconv=yes
9474else
9475  echo "$as_me: failed program was:" >&5
9476sed 's/^/| /' conftest.$ac_ext >&5
9477
9478
9479fi
9480
9481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482      conftest$ac_exeext conftest.$ac_ext
9483    if test "$am_cv_func_iconv" != yes; then
9484      am_save_LIBS="$LIBS"
9485      LIBS="$LIBS $LIBICONV"
9486      cat >conftest.$ac_ext <<_ACEOF
9487/* confdefs.h.  */
9488_ACEOF
9489cat confdefs.h >>conftest.$ac_ext
9490cat >>conftest.$ac_ext <<_ACEOF
9491/* end confdefs.h.  */
9492#include <stdlib.h>
9493#include <iconv.h>
9494int
9495main ()
9496{
9497iconv_t cd = iconv_open("","");
9498         iconv(cd,NULL,NULL,NULL,NULL);
9499         iconv_close(cd);
9500  ;
9501  return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
9505if { (ac_try="$ac_link"
9506case "(($ac_try" in
9507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508  *) ac_try_echo=$ac_try;;
9509esac
9510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511  (eval "$ac_link") 2>conftest.er1
9512  ac_status=$?
9513  grep -v '^ *+' conftest.er1 >conftest.err
9514  rm -f conftest.er1
9515  cat conftest.err >&5
9516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); } && {
9518	 test -z "$ac_c_werror_flag" ||
9519	 test ! -s conftest.err
9520       } && test -s conftest$ac_exeext &&
9521       $as_test_x conftest$ac_exeext; then
9522  am_cv_lib_iconv=yes
9523        am_cv_func_iconv=yes
9524else
9525  echo "$as_me: failed program was:" >&5
9526sed 's/^/| /' conftest.$ac_ext >&5
9527
9528
9529fi
9530
9531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9532      conftest$ac_exeext conftest.$ac_ext
9533      LIBS="$am_save_LIBS"
9534    fi
9535
9536fi
9537{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9538echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9539  if test "$am_cv_func_iconv" = yes; then
9540
9541cat >>confdefs.h <<\_ACEOF
9542#define HAVE_ICONV 1
9543_ACEOF
9544
9545  fi
9546  if test "$am_cv_lib_iconv" = yes; then
9547    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9548echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9549    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9550echo "${ECHO_T}$LIBICONV" >&6; }
9551  else
9552            CPPFLAGS="$am_save_CPPFLAGS"
9553    LIBICONV=
9554    LTLIBICONV=
9555  fi
9556
9557
9558
9559  if test "$am_cv_func_iconv" = yes; then
9560    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9561echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9562    if test "${am_cv_proto_iconv+set}" = set; then
9563  echo $ECHO_N "(cached) $ECHO_C" >&6
9564else
9565
9566      cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h.  */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h.  */
9572
9573#include <stdlib.h>
9574#include <iconv.h>
9575extern
9576#ifdef __cplusplus
9577"C"
9578#endif
9579#if defined(__STDC__) || defined(__cplusplus)
9580size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9581#else
9582size_t iconv();
9583#endif
9584
9585int
9586main ()
9587{
9588
9589  ;
9590  return 0;
9591}
9592_ACEOF
9593rm -f conftest.$ac_objext
9594if { (ac_try="$ac_compile"
9595case "(($ac_try" in
9596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597  *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600  (eval "$ac_compile") 2>conftest.er1
9601  ac_status=$?
9602  grep -v '^ *+' conftest.er1 >conftest.err
9603  rm -f conftest.er1
9604  cat conftest.err >&5
9605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606  (exit $ac_status); } && {
9607	 test -z "$ac_c_werror_flag" ||
9608	 test ! -s conftest.err
9609       } && test -s conftest.$ac_objext; then
9610  am_cv_proto_iconv_arg1=""
9611else
9612  echo "$as_me: failed program was:" >&5
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
9615	am_cv_proto_iconv_arg1="const"
9616fi
9617
9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619      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);"
9620fi
9621
9622    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9623    { echo "$as_me:$LINENO: result: ${ac_t:-
9624         }$am_cv_proto_iconv" >&5
9625echo "${ECHO_T}${ac_t:-
9626         }$am_cv_proto_iconv" >&6; }
9627
9628cat >>confdefs.h <<_ACEOF
9629#define ICONV_CONST $am_cv_proto_iconv_arg1
9630_ACEOF
9631
9632  fi
9633
9634
9635  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9636echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9637if test "${am_cv_langinfo_codeset+set}" = set; then
9638  echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640  cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h.  */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h.  */
9646#include <langinfo.h>
9647int
9648main ()
9649{
9650char* cs = nl_langinfo(CODESET);
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext conftest$ac_exeext
9656if { (ac_try="$ac_link"
9657case "(($ac_try" in
9658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659  *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662  (eval "$ac_link") 2>conftest.er1
9663  ac_status=$?
9664  grep -v '^ *+' conftest.er1 >conftest.err
9665  rm -f conftest.er1
9666  cat conftest.err >&5
9667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668  (exit $ac_status); } && {
9669	 test -z "$ac_c_werror_flag" ||
9670	 test ! -s conftest.err
9671       } && test -s conftest$ac_exeext &&
9672       $as_test_x conftest$ac_exeext; then
9673  am_cv_langinfo_codeset=yes
9674else
9675  echo "$as_me: failed program was:" >&5
9676sed 's/^/| /' conftest.$ac_ext >&5
9677
9678	am_cv_langinfo_codeset=no
9679fi
9680
9681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682      conftest$ac_exeext conftest.$ac_ext
9683
9684fi
9685{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9686echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9687  if test $am_cv_langinfo_codeset = yes; then
9688
9689cat >>confdefs.h <<\_ACEOF
9690#define HAVE_LANGINFO_CODESET 1
9691_ACEOF
9692
9693  fi
9694
9695  if test $ac_cv_header_locale_h = yes; then
9696
9697  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9698echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9699if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9700  echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702  cat >conftest.$ac_ext <<_ACEOF
9703/* confdefs.h.  */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h.  */
9708#include <locale.h>
9709int
9710main ()
9711{
9712return LC_MESSAGES
9713  ;
9714  return 0;
9715}
9716_ACEOF
9717rm -f conftest.$ac_objext conftest$ac_exeext
9718if { (ac_try="$ac_link"
9719case "(($ac_try" in
9720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721  *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724  (eval "$ac_link") 2>conftest.er1
9725  ac_status=$?
9726  grep -v '^ *+' conftest.er1 >conftest.err
9727  rm -f conftest.er1
9728  cat conftest.err >&5
9729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); } && {
9731	 test -z "$ac_c_werror_flag" ||
9732	 test ! -s conftest.err
9733       } && test -s conftest$ac_exeext &&
9734       $as_test_x conftest$ac_exeext; then
9735  am_cv_val_LC_MESSAGES=yes
9736else
9737  echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
9740	am_cv_val_LC_MESSAGES=no
9741fi
9742
9743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9744      conftest$ac_exeext conftest.$ac_ext
9745fi
9746{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9747echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9748  if test $am_cv_val_LC_MESSAGES = yes; then
9749
9750cat >>confdefs.h <<\_ACEOF
9751#define HAVE_LC_MESSAGES 1
9752_ACEOF
9753
9754  fi
9755
9756  fi
9757
9758                      for ac_prog in bison
9759do
9760  # Extract the first word of "$ac_prog", so it can be a program name with args.
9761set dummy $ac_prog; ac_word=$2
9762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9764if test "${ac_cv_prog_INTLBISON+set}" = set; then
9765  echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767  if test -n "$INTLBISON"; then
9768  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9769else
9770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in $PATH
9772do
9773  IFS=$as_save_IFS
9774  test -z "$as_dir" && as_dir=.
9775  for ac_exec_ext in '' $ac_executable_extensions; do
9776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9777    ac_cv_prog_INTLBISON="$ac_prog"
9778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9779    break 2
9780  fi
9781done
9782done
9783IFS=$as_save_IFS
9784
9785fi
9786fi
9787INTLBISON=$ac_cv_prog_INTLBISON
9788if test -n "$INTLBISON"; then
9789  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9790echo "${ECHO_T}$INTLBISON" >&6; }
9791else
9792  { echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6; }
9794fi
9795
9796
9797  test -n "$INTLBISON" && break
9798done
9799
9800  if test -z "$INTLBISON"; then
9801    ac_verc_fail=yes
9802  else
9803        { echo "$as_me:$LINENO: checking version of bison" >&5
9804echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9805    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9806    case $ac_prog_version in
9807      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9808      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9809         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9810      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9811    esac
9812    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9813echo "${ECHO_T}$ac_prog_version" >&6; }
9814  fi
9815  if test $ac_verc_fail = yes; then
9816    INTLBISON=:
9817  fi
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9835echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9836    # Check whether --enable-nls was given.
9837if test "${enable_nls+set}" = set; then
9838  enableval=$enable_nls; USE_NLS=$enableval
9839else
9840  USE_NLS=yes
9841fi
9842
9843  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9844echo "${ECHO_T}$USE_NLS" >&6; }
9845
9846
9847
9848
9849    BUILD_INCLUDED_LIBINTL=no
9850    USE_INCLUDED_LIBINTL=no
9851
9852  LIBINTL=
9853  LTLIBINTL=
9854  POSUB=
9855
9856    if test "$USE_NLS" = "yes"; then
9857    gt_use_preinstalled_gnugettext=no
9858
9859      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9860echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9861
9862# Check whether --with-included-gettext was given.
9863if test "${with_included_gettext+set}" = set; then
9864  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9865else
9866  nls_cv_force_use_gnu_gettext=no
9867fi
9868
9869      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9870echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9871
9872      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9873      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9874
9875
9876
9877
9878
9879
9880        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9881echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9882if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9883  echo $ECHO_N "(cached) $ECHO_C" >&6
9884else
9885  cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h.  */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h.  */
9891#include <libintl.h>
9892extern int _nl_msg_cat_cntr;
9893extern int *_nl_domain_bindings;
9894int
9895main ()
9896{
9897bindtextdomain ("", "");
9898return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9899  ;
9900  return 0;
9901}
9902_ACEOF
9903rm -f conftest.$ac_objext conftest$ac_exeext
9904if { (ac_try="$ac_link"
9905case "(($ac_try" in
9906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907  *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910  (eval "$ac_link") 2>conftest.er1
9911  ac_status=$?
9912  grep -v '^ *+' conftest.er1 >conftest.err
9913  rm -f conftest.er1
9914  cat conftest.err >&5
9915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); } && {
9917	 test -z "$ac_c_werror_flag" ||
9918	 test ! -s conftest.err
9919       } && test -s conftest$ac_exeext &&
9920       $as_test_x conftest$ac_exeext; then
9921  gt_cv_func_gnugettext1_libc=yes
9922else
9923  echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926	gt_cv_func_gnugettext1_libc=no
9927fi
9928
9929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9930      conftest$ac_exeext conftest.$ac_ext
9931fi
9932{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9933echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9934
9935        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9936
9937
9938
9939    use_additional=yes
9940
9941  acl_save_prefix="$prefix"
9942  prefix="$acl_final_prefix"
9943  acl_save_exec_prefix="$exec_prefix"
9944  exec_prefix="$acl_final_exec_prefix"
9945
9946    eval additional_includedir=\"$includedir\"
9947    eval additional_libdir=\"$libdir\"
9948
9949  exec_prefix="$acl_save_exec_prefix"
9950  prefix="$acl_save_prefix"
9951
9952
9953# Check whether --with-libintl-prefix was given.
9954if test "${with_libintl_prefix+set}" = set; then
9955  withval=$with_libintl_prefix;
9956    if test "X$withval" = "Xno"; then
9957      use_additional=no
9958    else
9959      if test "X$withval" = "X"; then
9960
9961  acl_save_prefix="$prefix"
9962  prefix="$acl_final_prefix"
9963  acl_save_exec_prefix="$exec_prefix"
9964  exec_prefix="$acl_final_exec_prefix"
9965
9966          eval additional_includedir=\"$includedir\"
9967          eval additional_libdir=\"$libdir\"
9968
9969  exec_prefix="$acl_save_exec_prefix"
9970  prefix="$acl_save_prefix"
9971
9972      else
9973        additional_includedir="$withval/include"
9974        additional_libdir="$withval/lib"
9975      fi
9976    fi
9977
9978fi
9979
9980      LIBINTL=
9981  LTLIBINTL=
9982  INCINTL=
9983  rpathdirs=
9984  ltrpathdirs=
9985  names_already_handled=
9986  names_next_round='intl '
9987  while test -n "$names_next_round"; do
9988    names_this_round="$names_next_round"
9989    names_next_round=
9990    for name in $names_this_round; do
9991      already_handled=
9992      for n in $names_already_handled; do
9993        if test "$n" = "$name"; then
9994          already_handled=yes
9995          break
9996        fi
9997      done
9998      if test -z "$already_handled"; then
9999        names_already_handled="$names_already_handled $name"
10000                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10001        eval value=\"\$HAVE_LIB$uppername\"
10002        if test -n "$value"; then
10003          if test "$value" = yes; then
10004            eval value=\"\$LIB$uppername\"
10005            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10006            eval value=\"\$LTLIB$uppername\"
10007            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10008          else
10009                                    :
10010          fi
10011        else
10012                              found_dir=
10013          found_la=
10014          found_so=
10015          found_a=
10016          if test $use_additional = yes; then
10017            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10018              found_dir="$additional_libdir"
10019              found_so="$additional_libdir/lib$name.$shlibext"
10020              if test -f "$additional_libdir/lib$name.la"; then
10021                found_la="$additional_libdir/lib$name.la"
10022              fi
10023            else
10024              if test -f "$additional_libdir/lib$name.$libext"; then
10025                found_dir="$additional_libdir"
10026                found_a="$additional_libdir/lib$name.$libext"
10027                if test -f "$additional_libdir/lib$name.la"; then
10028                  found_la="$additional_libdir/lib$name.la"
10029                fi
10030              fi
10031            fi
10032          fi
10033          if test "X$found_dir" = "X"; then
10034            for x in $LDFLAGS $LTLIBINTL; do
10035
10036  acl_save_prefix="$prefix"
10037  prefix="$acl_final_prefix"
10038  acl_save_exec_prefix="$exec_prefix"
10039  exec_prefix="$acl_final_exec_prefix"
10040  eval x=\"$x\"
10041  exec_prefix="$acl_save_exec_prefix"
10042  prefix="$acl_save_prefix"
10043
10044              case "$x" in
10045                -L*)
10046                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10047                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10048                    found_dir="$dir"
10049                    found_so="$dir/lib$name.$shlibext"
10050                    if test -f "$dir/lib$name.la"; then
10051                      found_la="$dir/lib$name.la"
10052                    fi
10053                  else
10054                    if test -f "$dir/lib$name.$libext"; then
10055                      found_dir="$dir"
10056                      found_a="$dir/lib$name.$libext"
10057                      if test -f "$dir/lib$name.la"; then
10058                        found_la="$dir/lib$name.la"
10059                      fi
10060                    fi
10061                  fi
10062                  ;;
10063              esac
10064              if test "X$found_dir" != "X"; then
10065                break
10066              fi
10067            done
10068          fi
10069          if test "X$found_dir" != "X"; then
10070                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10071            if test "X$found_so" != "X"; then
10072                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10073                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10074              else
10075                                                                                haveit=
10076                for x in $ltrpathdirs; do
10077                  if test "X$x" = "X$found_dir"; then
10078                    haveit=yes
10079                    break
10080                  fi
10081                done
10082                if test -z "$haveit"; then
10083                  ltrpathdirs="$ltrpathdirs $found_dir"
10084                fi
10085                                if test "$hardcode_direct" = yes; then
10086                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10087                else
10088                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10089                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10090                                                            haveit=
10091                    for x in $rpathdirs; do
10092                      if test "X$x" = "X$found_dir"; then
10093                        haveit=yes
10094                        break
10095                      fi
10096                    done
10097                    if test -z "$haveit"; then
10098                      rpathdirs="$rpathdirs $found_dir"
10099                    fi
10100                  else
10101                                                                                haveit=
10102                    for x in $LDFLAGS $LIBINTL; do
10103
10104  acl_save_prefix="$prefix"
10105  prefix="$acl_final_prefix"
10106  acl_save_exec_prefix="$exec_prefix"
10107  exec_prefix="$acl_final_exec_prefix"
10108  eval x=\"$x\"
10109  exec_prefix="$acl_save_exec_prefix"
10110  prefix="$acl_save_prefix"
10111
10112                      if test "X$x" = "X-L$found_dir"; then
10113                        haveit=yes
10114                        break
10115                      fi
10116                    done
10117                    if test -z "$haveit"; then
10118                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10119                    fi
10120                    if test "$hardcode_minus_L" != no; then
10121                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10122                    else
10123                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10124                    fi
10125                  fi
10126                fi
10127              fi
10128            else
10129              if test "X$found_a" != "X"; then
10130                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10131              else
10132                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10133              fi
10134            fi
10135                        additional_includedir=
10136            case "$found_dir" in
10137              */lib | */lib/)
10138                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10139                additional_includedir="$basedir/include"
10140                ;;
10141            esac
10142            if test "X$additional_includedir" != "X"; then
10143                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10144                haveit=
10145                if test "X$additional_includedir" = "X/usr/local/include"; then
10146                  if test -n "$GCC"; then
10147                    case $host_os in
10148                      linux*) haveit=yes;;
10149                    esac
10150                  fi
10151                fi
10152                if test -z "$haveit"; then
10153                  for x in $CPPFLAGS $INCINTL; do
10154
10155  acl_save_prefix="$prefix"
10156  prefix="$acl_final_prefix"
10157  acl_save_exec_prefix="$exec_prefix"
10158  exec_prefix="$acl_final_exec_prefix"
10159  eval x=\"$x\"
10160  exec_prefix="$acl_save_exec_prefix"
10161  prefix="$acl_save_prefix"
10162
10163                    if test "X$x" = "X-I$additional_includedir"; then
10164                      haveit=yes
10165                      break
10166                    fi
10167                  done
10168                  if test -z "$haveit"; then
10169                    if test -d "$additional_includedir"; then
10170                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10171                    fi
10172                  fi
10173                fi
10174              fi
10175            fi
10176                        if test -n "$found_la"; then
10177                                                        save_libdir="$libdir"
10178              case "$found_la" in
10179                */* | *\\*) . "$found_la" ;;
10180                *) . "./$found_la" ;;
10181              esac
10182              libdir="$save_libdir"
10183                            for dep in $dependency_libs; do
10184                case "$dep" in
10185                  -L*)
10186                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10187                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10188                      haveit=
10189                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10190                        if test -n "$GCC"; then
10191                          case $host_os in
10192                            linux*) haveit=yes;;
10193                          esac
10194                        fi
10195                      fi
10196                      if test -z "$haveit"; then
10197                        haveit=
10198                        for x in $LDFLAGS $LIBINTL; do
10199
10200  acl_save_prefix="$prefix"
10201  prefix="$acl_final_prefix"
10202  acl_save_exec_prefix="$exec_prefix"
10203  exec_prefix="$acl_final_exec_prefix"
10204  eval x=\"$x\"
10205  exec_prefix="$acl_save_exec_prefix"
10206  prefix="$acl_save_prefix"
10207
10208                          if test "X$x" = "X-L$additional_libdir"; then
10209                            haveit=yes
10210                            break
10211                          fi
10212                        done
10213                        if test -z "$haveit"; then
10214                          if test -d "$additional_libdir"; then
10215                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10216                          fi
10217                        fi
10218                        haveit=
10219                        for x in $LDFLAGS $LTLIBINTL; do
10220
10221  acl_save_prefix="$prefix"
10222  prefix="$acl_final_prefix"
10223  acl_save_exec_prefix="$exec_prefix"
10224  exec_prefix="$acl_final_exec_prefix"
10225  eval x=\"$x\"
10226  exec_prefix="$acl_save_exec_prefix"
10227  prefix="$acl_save_prefix"
10228
10229                          if test "X$x" = "X-L$additional_libdir"; then
10230                            haveit=yes
10231                            break
10232                          fi
10233                        done
10234                        if test -z "$haveit"; then
10235                          if test -d "$additional_libdir"; then
10236                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10237                          fi
10238                        fi
10239                      fi
10240                    fi
10241                    ;;
10242                  -R*)
10243                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10244                    if test "$enable_rpath" != no; then
10245                                                                  haveit=
10246                      for x in $rpathdirs; do
10247                        if test "X$x" = "X$dir"; then
10248                          haveit=yes
10249                          break
10250                        fi
10251                      done
10252                      if test -z "$haveit"; then
10253                        rpathdirs="$rpathdirs $dir"
10254                      fi
10255                                                                  haveit=
10256                      for x in $ltrpathdirs; do
10257                        if test "X$x" = "X$dir"; then
10258                          haveit=yes
10259                          break
10260                        fi
10261                      done
10262                      if test -z "$haveit"; then
10263                        ltrpathdirs="$ltrpathdirs $dir"
10264                      fi
10265                    fi
10266                    ;;
10267                  -l*)
10268                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10269                    ;;
10270                  *.la)
10271                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10272                    ;;
10273                  *)
10274                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10275                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10276                    ;;
10277                esac
10278              done
10279            fi
10280          else
10281                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10282            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10283          fi
10284        fi
10285      fi
10286    done
10287  done
10288  if test "X$rpathdirs" != "X"; then
10289    if test -n "$hardcode_libdir_separator"; then
10290                        alldirs=
10291      for found_dir in $rpathdirs; do
10292        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10293      done
10294            acl_save_libdir="$libdir"
10295      libdir="$alldirs"
10296      eval flag=\"$hardcode_libdir_flag_spec\"
10297      libdir="$acl_save_libdir"
10298      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10299    else
10300            for found_dir in $rpathdirs; do
10301        acl_save_libdir="$libdir"
10302        libdir="$found_dir"
10303        eval flag=\"$hardcode_libdir_flag_spec\"
10304        libdir="$acl_save_libdir"
10305        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10306      done
10307    fi
10308  fi
10309  if test "X$ltrpathdirs" != "X"; then
10310            for found_dir in $ltrpathdirs; do
10311      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10312    done
10313  fi
10314
10315          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10316echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10317if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10318  echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320  gt_save_CPPFLAGS="$CPPFLAGS"
10321            CPPFLAGS="$CPPFLAGS $INCINTL"
10322            gt_save_LIBS="$LIBS"
10323            LIBS="$LIBS $LIBINTL"
10324                        cat >conftest.$ac_ext <<_ACEOF
10325/* confdefs.h.  */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h.  */
10330#include <libintl.h>
10331extern int _nl_msg_cat_cntr;
10332extern
10333#ifdef __cplusplus
10334"C"
10335#endif
10336const char *_nl_expand_alias ();
10337int
10338main ()
10339{
10340bindtextdomain ("", "");
10341return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (ac_try="$ac_link"
10348case "(($ac_try" in
10349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350  *) ac_try_echo=$ac_try;;
10351esac
10352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353  (eval "$ac_link") 2>conftest.er1
10354  ac_status=$?
10355  grep -v '^ *+' conftest.er1 >conftest.err
10356  rm -f conftest.er1
10357  cat conftest.err >&5
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); } && {
10360	 test -z "$ac_c_werror_flag" ||
10361	 test ! -s conftest.err
10362       } && test -s conftest$ac_exeext &&
10363       $as_test_x conftest$ac_exeext; then
10364  gt_cv_func_gnugettext1_libintl=yes
10365else
10366  echo "$as_me: failed program was:" >&5
10367sed 's/^/| /' conftest.$ac_ext >&5
10368
10369	gt_cv_func_gnugettext1_libintl=no
10370fi
10371
10372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10373      conftest$ac_exeext conftest.$ac_ext
10374                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10375              LIBS="$LIBS $LIBICONV"
10376              cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h.  */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h.  */
10382#include <libintl.h>
10383extern int _nl_msg_cat_cntr;
10384extern
10385#ifdef __cplusplus
10386"C"
10387#endif
10388const char *_nl_expand_alias ();
10389int
10390main ()
10391{
10392bindtextdomain ("", "");
10393return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10394  ;
10395  return 0;
10396}
10397_ACEOF
10398rm -f conftest.$ac_objext conftest$ac_exeext
10399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402  *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405  (eval "$ac_link") 2>conftest.er1
10406  ac_status=$?
10407  grep -v '^ *+' conftest.er1 >conftest.err
10408  rm -f conftest.er1
10409  cat conftest.err >&5
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); } && {
10412	 test -z "$ac_c_werror_flag" ||
10413	 test ! -s conftest.err
10414       } && test -s conftest$ac_exeext &&
10415       $as_test_x conftest$ac_exeext; then
10416  LIBINTL="$LIBINTL $LIBICONV"
10417                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10418                gt_cv_func_gnugettext1_libintl=yes
10419
10420else
10421  echo "$as_me: failed program was:" >&5
10422sed 's/^/| /' conftest.$ac_ext >&5
10423
10424
10425fi
10426
10427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428      conftest$ac_exeext conftest.$ac_ext
10429            fi
10430            CPPFLAGS="$gt_save_CPPFLAGS"
10431            LIBS="$gt_save_LIBS"
10432fi
10433{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10434echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10435        fi
10436
10437                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10438           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10439                && test "$PACKAGE" != gettext-runtime \
10440                && test "$PACKAGE" != gettext-tools; }; then
10441          gt_use_preinstalled_gnugettext=yes
10442        else
10443                    LIBINTL=
10444          LTLIBINTL=
10445          INCINTL=
10446        fi
10447
10448
10449        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10450                              nls_cv_use_gnu_gettext=yes
10451        fi
10452      fi
10453
10454      if test "$nls_cv_use_gnu_gettext" = "yes"; then
10455                BUILD_INCLUDED_LIBINTL=yes
10456        USE_INCLUDED_LIBINTL=yes
10457        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10458        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10459        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10460      fi
10461
10462      if test "$gt_use_preinstalled_gnugettext" = "yes" \
10463         || test "$nls_cv_use_gnu_gettext" = "yes"; then
10464                CATOBJEXT=.gmo
10465      fi
10466
10467
10468    if test "$gt_use_preinstalled_gnugettext" = "yes" \
10469       || test "$nls_cv_use_gnu_gettext" = "yes"; then
10470
10471cat >>confdefs.h <<\_ACEOF
10472#define ENABLE_NLS 1
10473_ACEOF
10474
10475    else
10476      USE_NLS=no
10477    fi
10478  fi
10479
10480  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10481echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10482  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10483echo "${ECHO_T}$USE_NLS" >&6; }
10484  if test "$USE_NLS" = "yes"; then
10485    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10486echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10487    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10488      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10489        gt_source="external libintl"
10490      else
10491        gt_source="libc"
10492      fi
10493    else
10494      gt_source="included intl directory"
10495    fi
10496    { echo "$as_me:$LINENO: result: $gt_source" >&5
10497echo "${ECHO_T}$gt_source" >&6; }
10498  fi
10499
10500  if test "$USE_NLS" = "yes"; then
10501
10502    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10503      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10504        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10505echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10506        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10507echo "${ECHO_T}$LIBINTL" >&6; }
10508
10509  for element in $INCINTL; do
10510    haveit=
10511    for x in $CPPFLAGS; do
10512
10513  acl_save_prefix="$prefix"
10514  prefix="$acl_final_prefix"
10515  acl_save_exec_prefix="$exec_prefix"
10516  exec_prefix="$acl_final_exec_prefix"
10517  eval x=\"$x\"
10518  exec_prefix="$acl_save_exec_prefix"
10519  prefix="$acl_save_prefix"
10520
10521      if test "X$x" = "X$element"; then
10522        haveit=yes
10523        break
10524      fi
10525    done
10526    if test -z "$haveit"; then
10527      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10528    fi
10529  done
10530
10531      fi
10532
10533
10534cat >>confdefs.h <<\_ACEOF
10535#define HAVE_GETTEXT 1
10536_ACEOF
10537
10538
10539cat >>confdefs.h <<\_ACEOF
10540#define HAVE_DCGETTEXT 1
10541_ACEOF
10542
10543    fi
10544
10545        POSUB=po
10546  fi
10547
10548
10549            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10550      BUILD_INCLUDED_LIBINTL=yes
10551    fi
10552
10553
10554
10555
10556
10557        nls_cv_header_intl=
10558    nls_cv_header_libgt=
10559
10560        DATADIRNAME=share
10561
10562
10563        INSTOBJEXT=.mo
10564
10565
10566        GENCAT=gencat
10567
10568
10569        if test "$USE_INCLUDED_LIBINTL" = yes; then
10570      INTLOBJS="\$(GETTOBJS)"
10571    fi
10572
10573
10574        INTL_LIBTOOL_SUFFIX_PREFIX=
10575
10576
10577
10578    INTLLIBS="$LIBINTL"
10579
10580
10581
10582
10583
10584
10585
10586GETTEXT_PACKAGE=scim-anthy
10587
10588
10589cat >>confdefs.h <<_ACEOF
10590#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
10591_ACEOF
10592
10593
10594# Init libtool
10595
10596
10597# Check whether --enable-shared was given.
10598if test "${enable_shared+set}" = set; then
10599  enableval=$enable_shared; p=${PACKAGE-default}
10600    case $enableval in
10601    yes) enable_shared=yes ;;
10602    no) enable_shared=no ;;
10603    *)
10604      enable_shared=no
10605      # Look at the argument we got.  We use all the common list separators.
10606      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10607      for pkg in $enableval; do
10608	IFS="$lt_save_ifs"
10609	if test "X$pkg" = "X$p"; then
10610	  enable_shared=yes
10611	fi
10612      done
10613      IFS="$lt_save_ifs"
10614      ;;
10615    esac
10616else
10617  enable_shared=yes
10618fi
10619
10620
10621# Check whether --enable-static was given.
10622if test "${enable_static+set}" = set; then
10623  enableval=$enable_static; p=${PACKAGE-default}
10624    case $enableval in
10625    yes) enable_static=yes ;;
10626    no) enable_static=no ;;
10627    *)
10628     enable_static=no
10629      # Look at the argument we got.  We use all the common list separators.
10630      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10631      for pkg in $enableval; do
10632	IFS="$lt_save_ifs"
10633	if test "X$pkg" = "X$p"; then
10634	  enable_static=yes
10635	fi
10636      done
10637      IFS="$lt_save_ifs"
10638      ;;
10639    esac
10640else
10641  enable_static=yes
10642fi
10643
10644
10645# Check whether --enable-fast-install was given.
10646if test "${enable_fast_install+set}" = set; then
10647  enableval=$enable_fast_install; p=${PACKAGE-default}
10648    case $enableval in
10649    yes) enable_fast_install=yes ;;
10650    no) enable_fast_install=no ;;
10651    *)
10652      enable_fast_install=no
10653      # Look at the argument we got.  We use all the common list separators.
10654      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10655      for pkg in $enableval; do
10656	IFS="$lt_save_ifs"
10657	if test "X$pkg" = "X$p"; then
10658	  enable_fast_install=yes
10659	fi
10660      done
10661      IFS="$lt_save_ifs"
10662      ;;
10663    esac
10664else
10665  enable_fast_install=yes
10666fi
10667
10668
10669{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10670echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
10671if test "${lt_cv_path_SED+set}" = set; then
10672  echo $ECHO_N "(cached) $ECHO_C" >&6
10673else
10674  # Loop through the user's path and test for sed and gsed.
10675# Then use that list of sed's as ones to test for truncation.
10676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677for as_dir in $PATH
10678do
10679  IFS=$as_save_IFS
10680  test -z "$as_dir" && as_dir=.
10681  for lt_ac_prog in sed gsed; do
10682    for ac_exec_ext in '' $ac_executable_extensions; do
10683      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
10684        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10685      fi
10686    done
10687  done
10688done
10689IFS=$as_save_IFS
10690lt_ac_max=0
10691lt_ac_count=0
10692# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10693# along with /bin/sed that truncates output.
10694for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10695  test ! -f $lt_ac_sed && continue
10696  cat /dev/null > conftest.in
10697  lt_ac_count=0
10698  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10699  # Check for GNU sed and select it if it is found.
10700  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10701    lt_cv_path_SED=$lt_ac_sed
10702    break
10703  fi
10704  while true; do
10705    cat conftest.in conftest.in >conftest.tmp
10706    mv conftest.tmp conftest.in
10707    cp conftest.in conftest.nl
10708    echo >>conftest.nl
10709    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10710    cmp -s conftest.out conftest.nl || break
10711    # 10000 chars as input seems more than enough
10712    test $lt_ac_count -gt 10 && break
10713    lt_ac_count=`expr $lt_ac_count + 1`
10714    if test $lt_ac_count -gt $lt_ac_max; then
10715      lt_ac_max=$lt_ac_count
10716      lt_cv_path_SED=$lt_ac_sed
10717    fi
10718  done
10719done
10720
10721fi
10722
10723SED=$lt_cv_path_SED
10724
10725{ echo "$as_me:$LINENO: result: $SED" >&5
10726echo "${ECHO_T}$SED" >&6; }
10727
10728
10729# Check whether --with-gnu-ld was given.
10730if test "${with_gnu_ld+set}" = set; then
10731  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10732else
10733  with_gnu_ld=no
10734fi
10735
10736ac_prog=ld
10737if test "$GCC" = yes; then
10738  # Check if gcc -print-prog-name=ld gives a path.
10739  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10740echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10741  case $host in
10742  *-*-mingw*)
10743    # gcc leaves a trailing carriage return which upsets mingw
10744    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10745  *)
10746    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10747  esac
10748  case $ac_prog in
10749    # Accept absolute paths.
10750    [\\/]* | ?:[\\/]*)
10751      re_direlt='/[^/][^/]*/\.\./'
10752      # Canonicalize the pathname of ld
10753      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10754      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10755	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10756      done
10757      test -z "$LD" && LD="$ac_prog"
10758      ;;
10759  "")
10760    # If it fails, then pretend we aren't using GCC.
10761    ac_prog=ld
10762    ;;
10763  *)
10764    # If it is relative, then search for the first ld in PATH.
10765    with_gnu_ld=unknown
10766    ;;
10767  esac
10768elif test "$with_gnu_ld" = yes; then
10769  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10770echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10771else
10772  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10773echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10774fi
10775if test "${lt_cv_path_LD+set}" = set; then
10776  echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778  if test -z "$LD"; then
10779  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10780  for ac_dir in $PATH; do
10781    IFS="$lt_save_ifs"
10782    test -z "$ac_dir" && ac_dir=.
10783    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10784      lt_cv_path_LD="$ac_dir/$ac_prog"
10785      # Check to see if the program is GNU ld.  I'd rather use --version,
10786      # but apparently some variants of GNU ld only accept -v.
10787      # Break only if it was the GNU/non-GNU ld that we prefer.
10788      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10789      *GNU* | *'with BFD'*)
10790	test "$with_gnu_ld" != no && break
10791	;;
10792      *)
10793	test "$with_gnu_ld" != yes && break
10794	;;
10795      esac
10796    fi
10797  done
10798  IFS="$lt_save_ifs"
10799else
10800  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10801fi
10802fi
10803
10804LD="$lt_cv_path_LD"
10805if test -n "$LD"; then
10806  { echo "$as_me:$LINENO: result: $LD" >&5
10807echo "${ECHO_T}$LD" >&6; }
10808else
10809  { echo "$as_me:$LINENO: result: no" >&5
10810echo "${ECHO_T}no" >&6; }
10811fi
10812test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10813echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10814   { (exit 1); exit 1; }; }
10815{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10816echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10817if test "${lt_cv_prog_gnu_ld+set}" = set; then
10818  echo $ECHO_N "(cached) $ECHO_C" >&6
10819else
10820  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10821case `$LD -v 2>&1 </dev/null` in
10822*GNU* | *'with BFD'*)
10823  lt_cv_prog_gnu_ld=yes
10824  ;;
10825*)
10826  lt_cv_prog_gnu_ld=no
10827  ;;
10828esac
10829fi
10830{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10831echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10832with_gnu_ld=$lt_cv_prog_gnu_ld
10833
10834
10835{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10836echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
10837if test "${lt_cv_ld_reload_flag+set}" = set; then
10838  echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840  lt_cv_ld_reload_flag='-r'
10841fi
10842{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10843echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
10844reload_flag=$lt_cv_ld_reload_flag
10845case $reload_flag in
10846"" | " "*) ;;
10847*) reload_flag=" $reload_flag" ;;
10848esac
10849reload_cmds='$LD$reload_flag -o $output$reload_objs'
10850case $host_os in
10851  darwin*)
10852    if test "$GCC" = yes; then
10853      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10854    else
10855      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10856    fi
10857    ;;
10858esac
10859
10860{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10861echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
10862if test "${lt_cv_path_NM+set}" = set; then
10863  echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865  if test -n "$NM"; then
10866  # Let the user override the test.
10867  lt_cv_path_NM="$NM"
10868else
10869  lt_nm_to_check="${ac_tool_prefix}nm"
10870  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10871    lt_nm_to_check="$lt_nm_to_check nm"
10872  fi
10873  for lt_tmp_nm in $lt_nm_to_check; do
10874    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10875    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10876      IFS="$lt_save_ifs"
10877      test -z "$ac_dir" && ac_dir=.
10878      tmp_nm="$ac_dir/$lt_tmp_nm"
10879      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10880	# Check to see if the nm accepts a BSD-compat flag.
10881	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10882	#   nm: unknown option "B" ignored
10883	# Tru64's nm complains that /dev/null is an invalid object file
10884	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10885	*/dev/null* | *'Invalid file or object type'*)
10886	  lt_cv_path_NM="$tmp_nm -B"
10887	  break
10888	  ;;
10889	*)
10890	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10891	  */dev/null*)
10892	    lt_cv_path_NM="$tmp_nm -p"
10893	    break
10894	    ;;
10895	  *)
10896	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10897	    continue # so that we can try to find one that supports BSD flags
10898	    ;;
10899	  esac
10900	  ;;
10901	esac
10902      fi
10903    done
10904    IFS="$lt_save_ifs"
10905  done
10906  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10907fi
10908fi
10909{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10910echo "${ECHO_T}$lt_cv_path_NM" >&6; }
10911NM="$lt_cv_path_NM"
10912
10913{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10914echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10915LN_S=$as_ln_s
10916if test "$LN_S" = "ln -s"; then
10917  { echo "$as_me:$LINENO: result: yes" >&5
10918echo "${ECHO_T}yes" >&6; }
10919else
10920  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10921echo "${ECHO_T}no, using $LN_S" >&6; }
10922fi
10923
10924{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
10925echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
10926if test "${lt_cv_deplibs_check_method+set}" = set; then
10927  echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929  lt_cv_file_magic_cmd='$MAGIC_CMD'
10930lt_cv_file_magic_test_file=
10931lt_cv_deplibs_check_method='unknown'
10932# Need to set the preceding variable on all platforms that support
10933# interlibrary dependencies.
10934# 'none' -- dependencies not supported.
10935# `unknown' -- same as none, but documents that we really don't know.
10936# 'pass_all' -- all dependencies passed with no checks.
10937# 'test_compile' -- check by making test program.
10938# 'file_magic [[regex]]' -- check by looking for files in library path
10939# which responds to the $file_magic_cmd with a given extended regex.
10940# If you have `file' or equivalent on your system and you're not sure
10941# whether `pass_all' will *always* work, you probably want this one.
10942
10943case $host_os in
10944aix[4-9]*)
10945  lt_cv_deplibs_check_method=pass_all
10946  ;;
10947
10948beos*)
10949  lt_cv_deplibs_check_method=pass_all
10950  ;;
10951
10952bsdi[45]*)
10953  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10954  lt_cv_file_magic_cmd='/usr/bin/file -L'
10955  lt_cv_file_magic_test_file=/shlib/libc.so
10956  ;;
10957
10958cygwin*)
10959  # func_win32_libid is a shell function defined in ltmain.sh
10960  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10961  lt_cv_file_magic_cmd='func_win32_libid'
10962  ;;
10963
10964mingw* | pw32*)
10965  # Base MSYS/MinGW do not provide the 'file' command needed by
10966  # func_win32_libid shell function, so use a weaker test based on 'objdump',
10967  # unless we find 'file', for example because we are cross-compiling.
10968  if ( file / ) >/dev/null 2>&1; then
10969    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10970    lt_cv_file_magic_cmd='func_win32_libid'
10971  else
10972    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10973    lt_cv_file_magic_cmd='$OBJDUMP -f'
10974  fi
10975  ;;
10976
10977darwin* | rhapsody*)
10978  lt_cv_deplibs_check_method=pass_all
10979  ;;
10980
10981freebsd* | dragonfly*)
10982  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10983    case $host_cpu in
10984    i*86 )
10985      # Not sure whether the presence of OpenBSD here was a mistake.
10986      # Let's accept both of them until this is cleared up.
10987      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10988      lt_cv_file_magic_cmd=/usr/bin/file
10989      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10990      ;;
10991    esac
10992  else
10993    lt_cv_deplibs_check_method=pass_all
10994  fi
10995  ;;
10996
10997gnu*)
10998  lt_cv_deplibs_check_method=pass_all
10999  ;;
11000
11001hpux10.20* | hpux11*)
11002  lt_cv_file_magic_cmd=/usr/bin/file
11003  case $host_cpu in
11004  ia64*)
11005    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11006    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11007    ;;
11008  hppa*64*)
11009    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]'
11010    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11011    ;;
11012  *)
11013    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11014    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11015    ;;
11016  esac
11017  ;;
11018
11019interix[3-9]*)
11020  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11021  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11022  ;;
11023
11024irix5* | irix6* | nonstopux*)
11025  case $LD in
11026  *-32|*"-32 ") libmagic=32-bit;;
11027  *-n32|*"-n32 ") libmagic=N32;;
11028  *-64|*"-64 ") libmagic=64-bit;;
11029  *) libmagic=never-match;;
11030  esac
11031  lt_cv_deplibs_check_method=pass_all
11032  ;;
11033
11034# This must be Linux ELF.
11035linux* | k*bsd*-gnu)
11036  lt_cv_deplibs_check_method=pass_all
11037  ;;
11038
11039netbsd* | netbsdelf*-gnu)
11040  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11042  else
11043    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11044  fi
11045  ;;
11046
11047newos6*)
11048  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11049  lt_cv_file_magic_cmd=/usr/bin/file
11050  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11051  ;;
11052
11053nto-qnx*)
11054  lt_cv_deplibs_check_method=unknown
11055  ;;
11056
11057openbsd*)
11058  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11059    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11060  else
11061    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11062  fi
11063  ;;
11064
11065osf3* | osf4* | osf5*)
11066  lt_cv_deplibs_check_method=pass_all
11067  ;;
11068
11069rdos*)
11070  lt_cv_deplibs_check_method=pass_all
11071  ;;
11072
11073solaris*)
11074  lt_cv_deplibs_check_method=pass_all
11075  ;;
11076
11077sysv4 | sysv4.3*)
11078  case $host_vendor in
11079  motorola)
11080    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]'
11081    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11082    ;;
11083  ncr)
11084    lt_cv_deplibs_check_method=pass_all
11085    ;;
11086  sequent)
11087    lt_cv_file_magic_cmd='/bin/file'
11088    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11089    ;;
11090  sni)
11091    lt_cv_file_magic_cmd='/bin/file'
11092    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11093    lt_cv_file_magic_test_file=/lib/libc.so
11094    ;;
11095  siemens)
11096    lt_cv_deplibs_check_method=pass_all
11097    ;;
11098  pc)
11099    lt_cv_deplibs_check_method=pass_all
11100    ;;
11101  esac
11102  ;;
11103
11104sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11105  lt_cv_deplibs_check_method=pass_all
11106  ;;
11107esac
11108
11109fi
11110{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11111echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11112file_magic_cmd=$lt_cv_file_magic_cmd
11113deplibs_check_method=$lt_cv_deplibs_check_method
11114test -z "$deplibs_check_method" && deplibs_check_method=unknown
11115
11116
11117
11118
11119# If no C compiler was specified, use CC.
11120LTCC=${LTCC-"$CC"}
11121
11122# If no C compiler flags were specified, use CFLAGS.
11123LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11124
11125# Allow CC to be a program name with arguments.
11126compiler=$CC
11127
11128# Check whether --enable-libtool-lock was given.
11129if test "${enable_libtool_lock+set}" = set; then
11130  enableval=$enable_libtool_lock;
11131fi
11132
11133test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11134
11135# Some flags need to be propagated to the compiler or linker for good
11136# libtool support.
11137case $host in
11138ia64-*-hpux*)
11139  # Find out which ABI we are using.
11140  echo 'int i;' > conftest.$ac_ext
11141  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142  (eval $ac_compile) 2>&5
11143  ac_status=$?
11144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145  (exit $ac_status); }; then
11146    case `/usr/bin/file conftest.$ac_objext` in
11147    *ELF-32*)
11148      HPUX_IA64_MODE="32"
11149      ;;
11150    *ELF-64*)
11151      HPUX_IA64_MODE="64"
11152      ;;
11153    esac
11154  fi
11155  rm -rf conftest*
11156  ;;
11157*-*-irix6*)
11158  # Find out which ABI we are using.
11159  echo '#line 11159 "configure"' > conftest.$ac_ext
11160  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11161  (eval $ac_compile) 2>&5
11162  ac_status=$?
11163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164  (exit $ac_status); }; then
11165   if test "$lt_cv_prog_gnu_ld" = yes; then
11166    case `/usr/bin/file conftest.$ac_objext` in
11167    *32-bit*)
11168      LD="${LD-ld} -melf32bsmip"
11169      ;;
11170    *N32*)
11171      LD="${LD-ld} -melf32bmipn32"
11172      ;;
11173    *64-bit*)
11174      LD="${LD-ld} -melf64bmip"
11175      ;;
11176    esac
11177   else
11178    case `/usr/bin/file conftest.$ac_objext` in
11179    *32-bit*)
11180      LD="${LD-ld} -32"
11181      ;;
11182    *N32*)
11183      LD="${LD-ld} -n32"
11184      ;;
11185    *64-bit*)
11186      LD="${LD-ld} -64"
11187      ;;
11188    esac
11189   fi
11190  fi
11191  rm -rf conftest*
11192  ;;
11193
11194x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11195s390*-*linux*|sparc*-*linux*)
11196  # Find out which ABI we are using.
11197  echo 'int i;' > conftest.$ac_ext
11198  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11199  (eval $ac_compile) 2>&5
11200  ac_status=$?
11201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202  (exit $ac_status); }; then
11203    case `/usr/bin/file conftest.o` in
11204    *32-bit*)
11205      case $host in
11206        x86_64-*kfreebsd*-gnu)
11207          LD="${LD-ld} -m elf_i386_fbsd"
11208          ;;
11209        x86_64-*linux*)
11210          LD="${LD-ld} -m elf_i386"
11211          ;;
11212        ppc64-*linux*|powerpc64-*linux*)
11213          LD="${LD-ld} -m elf32ppclinux"
11214          ;;
11215        s390x-*linux*)
11216          LD="${LD-ld} -m elf_s390"
11217          ;;
11218        sparc64-*linux*)
11219          LD="${LD-ld} -m elf32_sparc"
11220          ;;
11221      esac
11222      ;;
11223    *64-bit*)
11224      case $host in
11225        x86_64-*kfreebsd*-gnu)
11226          LD="${LD-ld} -m elf_x86_64_fbsd"
11227          ;;
11228        x86_64-*linux*)
11229          LD="${LD-ld} -m elf_x86_64"
11230          ;;
11231        ppc*-*linux*|powerpc*-*linux*)
11232          LD="${LD-ld} -m elf64ppc"
11233          ;;
11234        s390*-*linux*)
11235          LD="${LD-ld} -m elf64_s390"
11236          ;;
11237        sparc*-*linux*)
11238          LD="${LD-ld} -m elf64_sparc"
11239          ;;
11240      esac
11241      ;;
11242    esac
11243  fi
11244  rm -rf conftest*
11245  ;;
11246
11247*-*-sco3.2v5*)
11248  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11249  SAVE_CFLAGS="$CFLAGS"
11250  CFLAGS="$CFLAGS -belf"
11251  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11252echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11253if test "${lt_cv_cc_needs_belf+set}" = set; then
11254  echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256  ac_ext=c
11257ac_cpp='$CPP $CPPFLAGS'
11258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11260ac_compiler_gnu=$ac_cv_c_compiler_gnu
11261
11262     cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h.  */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h.  */
11268
11269int
11270main ()
11271{
11272
11273  ;
11274  return 0;
11275}
11276_ACEOF
11277rm -f conftest.$ac_objext conftest$ac_exeext
11278if { (ac_try="$ac_link"
11279case "(($ac_try" in
11280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281  *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284  (eval "$ac_link") 2>conftest.er1
11285  ac_status=$?
11286  grep -v '^ *+' conftest.er1 >conftest.err
11287  rm -f conftest.er1
11288  cat conftest.err >&5
11289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290  (exit $ac_status); } && {
11291	 test -z "$ac_c_werror_flag" ||
11292	 test ! -s conftest.err
11293       } && test -s conftest$ac_exeext &&
11294       $as_test_x conftest$ac_exeext; then
11295  lt_cv_cc_needs_belf=yes
11296else
11297  echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300	lt_cv_cc_needs_belf=no
11301fi
11302
11303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11304      conftest$ac_exeext conftest.$ac_ext
11305     ac_ext=c
11306ac_cpp='$CPP $CPPFLAGS'
11307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309ac_compiler_gnu=$ac_cv_c_compiler_gnu
11310
11311fi
11312{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11313echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11314  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11315    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11316    CFLAGS="$SAVE_CFLAGS"
11317  fi
11318  ;;
11319sparc*-*solaris*)
11320  # Find out which ABI we are using.
11321  echo 'int i;' > conftest.$ac_ext
11322  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323  (eval $ac_compile) 2>&5
11324  ac_status=$?
11325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); }; then
11327    case `/usr/bin/file conftest.o` in
11328    *64-bit*)
11329      case $lt_cv_prog_gnu_ld in
11330      yes*) LD="${LD-ld} -m elf64_sparc" ;;
11331      *)
11332        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11333	  LD="${LD-ld} -64"
11334	fi
11335	;;
11336      esac
11337      ;;
11338    esac
11339  fi
11340  rm -rf conftest*
11341  ;;
11342
11343
11344esac
11345
11346need_locks="$enable_libtool_lock"
11347
11348
11349
11350for ac_header in dlfcn.h
11351do
11352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357  echo $ECHO_N "(cached) $ECHO_C" >&6
11358fi
11359ac_res=`eval echo '${'$as_ac_Header'}'`
11360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11361echo "${ECHO_T}$ac_res" >&6; }
11362else
11363  # Is the header compilable?
11364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h.  */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h.  */
11372$ac_includes_default
11373#include <$ac_header>
11374_ACEOF
11375rm -f conftest.$ac_objext
11376if { (ac_try="$ac_compile"
11377case "(($ac_try" in
11378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379  *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382  (eval "$ac_compile") 2>conftest.er1
11383  ac_status=$?
11384  grep -v '^ *+' conftest.er1 >conftest.err
11385  rm -f conftest.er1
11386  cat conftest.err >&5
11387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388  (exit $ac_status); } && {
11389	 test -z "$ac_c_werror_flag" ||
11390	 test ! -s conftest.err
11391       } && test -s conftest.$ac_objext; then
11392  ac_header_compiler=yes
11393else
11394  echo "$as_me: failed program was:" >&5
11395sed 's/^/| /' conftest.$ac_ext >&5
11396
11397	ac_header_compiler=no
11398fi
11399
11400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11402echo "${ECHO_T}$ac_header_compiler" >&6; }
11403
11404# Is the header present?
11405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11407cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h.  */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h.  */
11413#include <$ac_header>
11414_ACEOF
11415if { (ac_try="$ac_cpp conftest.$ac_ext"
11416case "(($ac_try" in
11417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418  *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11422  ac_status=$?
11423  grep -v '^ *+' conftest.er1 >conftest.err
11424  rm -f conftest.er1
11425  cat conftest.err >&5
11426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427  (exit $ac_status); } >/dev/null && {
11428	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11429	 test ! -s conftest.err
11430       }; then
11431  ac_header_preproc=yes
11432else
11433  echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436  ac_header_preproc=no
11437fi
11438
11439rm -f conftest.err conftest.$ac_ext
11440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441echo "${ECHO_T}$ac_header_preproc" >&6; }
11442
11443# So?  What about this header?
11444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11445  yes:no: )
11446    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450    ac_header_preproc=yes
11451    ;;
11452  no:yes:* )
11453    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11456echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11457    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11460echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11465    ( cat <<\_ASBOX
11466## ------------------------------- ##
11467## Report this to ashie@homa.ne.jp ##
11468## ------------------------------- ##
11469_ASBOX
11470     ) | sed "s/^/$as_me: WARNING:     /" >&2
11471    ;;
11472esac
11473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476  echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478  eval "$as_ac_Header=\$ac_header_preproc"
11479fi
11480ac_res=`eval echo '${'$as_ac_Header'}'`
11481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11482echo "${ECHO_T}$ac_res" >&6; }
11483
11484fi
11485if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486  cat >>confdefs.h <<_ACEOF
11487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488_ACEOF
11489
11490fi
11491
11492done
11493
11494ac_ext=cpp
11495ac_cpp='$CXXCPP $CPPFLAGS'
11496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11499if test -z "$CXX"; then
11500  if test -n "$CCC"; then
11501    CXX=$CCC
11502  else
11503    if test -n "$ac_tool_prefix"; then
11504  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11505  do
11506    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11507set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11510if test "${ac_cv_prog_CXX+set}" = set; then
11511  echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513  if test -n "$CXX"; then
11514  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11515else
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519  IFS=$as_save_IFS
11520  test -z "$as_dir" && as_dir=.
11521  for ac_exec_ext in '' $ac_executable_extensions; do
11522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525    break 2
11526  fi
11527done
11528done
11529IFS=$as_save_IFS
11530
11531fi
11532fi
11533CXX=$ac_cv_prog_CXX
11534if test -n "$CXX"; then
11535  { echo "$as_me:$LINENO: result: $CXX" >&5
11536echo "${ECHO_T}$CXX" >&6; }
11537else
11538  { echo "$as_me:$LINENO: result: no" >&5
11539echo "${ECHO_T}no" >&6; }
11540fi
11541
11542
11543    test -n "$CXX" && break
11544  done
11545fi
11546if test -z "$CXX"; then
11547  ac_ct_CXX=$CXX
11548  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11549do
11550  # Extract the first word of "$ac_prog", so it can be a program name with args.
11551set dummy $ac_prog; ac_word=$2
11552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11554if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11555  echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557  if test -n "$ac_ct_CXX"; then
11558  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11559else
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563  IFS=$as_save_IFS
11564  test -z "$as_dir" && as_dir=.
11565  for ac_exec_ext in '' $ac_executable_extensions; do
11566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567    ac_cv_prog_ac_ct_CXX="$ac_prog"
11568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11569    break 2
11570  fi
11571done
11572done
11573IFS=$as_save_IFS
11574
11575fi
11576fi
11577ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11578if test -n "$ac_ct_CXX"; then
11579  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11580echo "${ECHO_T}$ac_ct_CXX" >&6; }
11581else
11582  { echo "$as_me:$LINENO: result: no" >&5
11583echo "${ECHO_T}no" >&6; }
11584fi
11585
11586
11587  test -n "$ac_ct_CXX" && break
11588done
11589
11590  if test "x$ac_ct_CXX" = x; then
11591    CXX="g++"
11592  else
11593    case $cross_compiling:$ac_tool_warned in
11594yes:)
11595{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11596whose name does not start with the host triplet.  If you think this
11597configuration is useful to you, please write to autoconf@gnu.org." >&5
11598echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11599whose name does not start with the host triplet.  If you think this
11600configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11601ac_tool_warned=yes ;;
11602esac
11603    CXX=$ac_ct_CXX
11604  fi
11605fi
11606
11607  fi
11608fi
11609# Provide some information about the compiler.
11610echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11611ac_compiler=`set X $ac_compile; echo $2`
11612{ (ac_try="$ac_compiler --version >&5"
11613case "(($ac_try" in
11614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615  *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618  (eval "$ac_compiler --version >&5") 2>&5
11619  ac_status=$?
11620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621  (exit $ac_status); }
11622{ (ac_try="$ac_compiler -v >&5"
11623case "(($ac_try" in
11624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625  *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628  (eval "$ac_compiler -v >&5") 2>&5
11629  ac_status=$?
11630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631  (exit $ac_status); }
11632{ (ac_try="$ac_compiler -V >&5"
11633case "(($ac_try" in
11634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635  *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638  (eval "$ac_compiler -V >&5") 2>&5
11639  ac_status=$?
11640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641  (exit $ac_status); }
11642
11643{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11644echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11645if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11646  echo $ECHO_N "(cached) $ECHO_C" >&6
11647else
11648  cat >conftest.$ac_ext <<_ACEOF
11649/* confdefs.h.  */
11650_ACEOF
11651cat confdefs.h >>conftest.$ac_ext
11652cat >>conftest.$ac_ext <<_ACEOF
11653/* end confdefs.h.  */
11654
11655int
11656main ()
11657{
11658#ifndef __GNUC__
11659       choke me
11660#endif
11661
11662  ;
11663  return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext
11667if { (ac_try="$ac_compile"
11668case "(($ac_try" in
11669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670  *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673  (eval "$ac_compile") 2>conftest.er1
11674  ac_status=$?
11675  grep -v '^ *+' conftest.er1 >conftest.err
11676  rm -f conftest.er1
11677  cat conftest.err >&5
11678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679  (exit $ac_status); } && {
11680	 test -z "$ac_cxx_werror_flag" ||
11681	 test ! -s conftest.err
11682       } && test -s conftest.$ac_objext; then
11683  ac_compiler_gnu=yes
11684else
11685  echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688	ac_compiler_gnu=no
11689fi
11690
11691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11693
11694fi
11695{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11696echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11697GXX=`test $ac_compiler_gnu = yes && echo yes`
11698ac_test_CXXFLAGS=${CXXFLAGS+set}
11699ac_save_CXXFLAGS=$CXXFLAGS
11700{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11701echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11702if test "${ac_cv_prog_cxx_g+set}" = set; then
11703  echo $ECHO_N "(cached) $ECHO_C" >&6
11704else
11705  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11706   ac_cxx_werror_flag=yes
11707   ac_cv_prog_cxx_g=no
11708   CXXFLAGS="-g"
11709   cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h.  */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h.  */
11715
11716int
11717main ()
11718{
11719
11720  ;
11721  return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (ac_try="$ac_compile"
11726case "(($ac_try" in
11727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728  *) ac_try_echo=$ac_try;;
11729esac
11730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731  (eval "$ac_compile") 2>conftest.er1
11732  ac_status=$?
11733  grep -v '^ *+' conftest.er1 >conftest.err
11734  rm -f conftest.er1
11735  cat conftest.err >&5
11736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737  (exit $ac_status); } && {
11738	 test -z "$ac_cxx_werror_flag" ||
11739	 test ! -s conftest.err
11740       } && test -s conftest.$ac_objext; then
11741  ac_cv_prog_cxx_g=yes
11742else
11743  echo "$as_me: failed program was:" >&5
11744sed 's/^/| /' conftest.$ac_ext >&5
11745
11746	CXXFLAGS=""
11747      cat >conftest.$ac_ext <<_ACEOF
11748/* confdefs.h.  */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h.  */
11753
11754int
11755main ()
11756{
11757
11758  ;
11759  return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext
11763if { (ac_try="$ac_compile"
11764case "(($ac_try" in
11765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766  *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769  (eval "$ac_compile") 2>conftest.er1
11770  ac_status=$?
11771  grep -v '^ *+' conftest.er1 >conftest.err
11772  rm -f conftest.er1
11773  cat conftest.err >&5
11774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775  (exit $ac_status); } && {
11776	 test -z "$ac_cxx_werror_flag" ||
11777	 test ! -s conftest.err
11778       } && test -s conftest.$ac_objext; then
11779  :
11780else
11781  echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11785	 CXXFLAGS="-g"
11786	 cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h.  */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h.  */
11792
11793int
11794main ()
11795{
11796
11797  ;
11798  return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext
11802if { (ac_try="$ac_compile"
11803case "(($ac_try" in
11804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805  *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808  (eval "$ac_compile") 2>conftest.er1
11809  ac_status=$?
11810  grep -v '^ *+' conftest.er1 >conftest.err
11811  rm -f conftest.er1
11812  cat conftest.err >&5
11813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814  (exit $ac_status); } && {
11815	 test -z "$ac_cxx_werror_flag" ||
11816	 test ! -s conftest.err
11817       } && test -s conftest.$ac_objext; then
11818  ac_cv_prog_cxx_g=yes
11819else
11820  echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823
11824fi
11825
11826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827fi
11828
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830fi
11831
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11834fi
11835{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11836echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
11837if test "$ac_test_CXXFLAGS" = set; then
11838  CXXFLAGS=$ac_save_CXXFLAGS
11839elif test $ac_cv_prog_cxx_g = yes; then
11840  if test "$GXX" = yes; then
11841    CXXFLAGS="-g -O2"
11842  else
11843    CXXFLAGS="-g"
11844  fi
11845else
11846  if test "$GXX" = yes; then
11847    CXXFLAGS="-O2"
11848  else
11849    CXXFLAGS=
11850  fi
11851fi
11852ac_ext=cpp
11853ac_cpp='$CXXCPP $CPPFLAGS'
11854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11857
11858depcc="$CXX"  am_compiler_list=
11859
11860{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11861echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11862if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11863  echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11866  # We make a subdir and do the tests there.  Otherwise we can end up
11867  # making bogus files that we don't know about and never remove.  For
11868  # instance it was reported that on HP-UX the gcc test will end up
11869  # making a dummy file named `D' -- because `-MD' means `put the output
11870  # in D'.
11871  mkdir conftest.dir
11872  # Copy depcomp to subdir because otherwise we won't find it if we're
11873  # using a relative directory.
11874  cp "$am_depcomp" conftest.dir
11875  cd conftest.dir
11876  # We will build objects and dependencies in a subdirectory because
11877  # it helps to detect inapplicable dependency modes.  For instance
11878  # both Tru64's cc and ICC support -MD to output dependencies as a
11879  # side effect of compilation, but ICC will put the dependencies in
11880  # the current directory while Tru64 will put them in the object
11881  # directory.
11882  mkdir sub
11883
11884  am_cv_CXX_dependencies_compiler_type=none
11885  if test "$am_compiler_list" = ""; then
11886     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11887  fi
11888  for depmode in $am_compiler_list; do
11889    # Setup a source with many dependencies, because some compilers
11890    # like to wrap large dependency lists on column 80 (with \), and
11891    # we should not choose a depcomp mode which is confused by this.
11892    #
11893    # We need to recreate these files for each test, as the compiler may
11894    # overwrite some of them when testing with obscure command lines.
11895    # This happens at least with the AIX C compiler.
11896    : > sub/conftest.c
11897    for i in 1 2 3 4 5 6; do
11898      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11899      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11900      # Solaris 8's {/usr,}/bin/sh.
11901      touch sub/conftst$i.h
11902    done
11903    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11904
11905    case $depmode in
11906    nosideeffect)
11907      # after this tag, mechanisms are not by side-effect, so they'll
11908      # only be used when explicitly requested
11909      if test "x$enable_dependency_tracking" = xyes; then
11910	continue
11911      else
11912	break
11913      fi
11914      ;;
11915    none) break ;;
11916    esac
11917    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11918    # mode.  It turns out that the SunPro C++ compiler does not properly
11919    # handle `-M -o', and we need to detect this.
11920    if depmode=$depmode \
11921       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11922       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11923       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11924         >/dev/null 2>conftest.err &&
11925       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11926       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11927       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11928       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11929      # icc doesn't choke on unknown options, it will just issue warnings
11930      # or remarks (even with -Werror).  So we grep stderr for any message
11931      # that says an option was ignored or not supported.
11932      # When given -MP, icc 7.0 and 7.1 complain thusly:
11933      #   icc: Command line warning: ignoring option '-M'; no argument required
11934      # The diagnosis changed in icc 8.0:
11935      #   icc: Command line remark: option '-MP' not supported
11936      if (grep 'ignoring option' conftest.err ||
11937          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11938        am_cv_CXX_dependencies_compiler_type=$depmode
11939        break
11940      fi
11941    fi
11942  done
11943
11944  cd ..
11945  rm -rf conftest.dir
11946else
11947  am_cv_CXX_dependencies_compiler_type=none
11948fi
11949
11950fi
11951{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11952echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
11953CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11954
11955 if
11956  test "x$enable_dependency_tracking" != xno \
11957  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11958  am__fastdepCXX_TRUE=
11959  am__fastdepCXX_FALSE='#'
11960else
11961  am__fastdepCXX_TRUE='#'
11962  am__fastdepCXX_FALSE=
11963fi
11964
11965
11966
11967
11968if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11969    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11970    (test "X$CXX" != "Xg++"))) ; then
11971  ac_ext=cpp
11972ac_cpp='$CXXCPP $CPPFLAGS'
11973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11976{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11977echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11978if test -z "$CXXCPP"; then
11979  if test "${ac_cv_prog_CXXCPP+set}" = set; then
11980  echo $ECHO_N "(cached) $ECHO_C" >&6
11981else
11982      # Double quotes because CXXCPP needs to be expanded
11983    for CXXCPP in "$CXX -E" "/lib/cpp"
11984    do
11985      ac_preproc_ok=false
11986for ac_cxx_preproc_warn_flag in '' yes
11987do
11988  # Use a header file that comes with gcc, so configuring glibc
11989  # with a fresh cross-compiler works.
11990  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991  # <limits.h> exists even on freestanding compilers.
11992  # On the NeXT, cc -E runs the code through the compiler's parser,
11993  # not just through cpp. "Syntax error" is here to catch this case.
11994  cat >conftest.$ac_ext <<_ACEOF
11995/* confdefs.h.  */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h.  */
12000#ifdef __STDC__
12001# include <limits.h>
12002#else
12003# include <assert.h>
12004#endif
12005		     Syntax error
12006_ACEOF
12007if { (ac_try="$ac_cpp conftest.$ac_ext"
12008case "(($ac_try" in
12009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010  *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12014  ac_status=$?
12015  grep -v '^ *+' conftest.er1 >conftest.err
12016  rm -f conftest.er1
12017  cat conftest.err >&5
12018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019  (exit $ac_status); } >/dev/null && {
12020	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12021	 test ! -s conftest.err
12022       }; then
12023  :
12024else
12025  echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028  # Broken: fails on valid input.
12029continue
12030fi
12031
12032rm -f conftest.err conftest.$ac_ext
12033
12034  # OK, works on sane cases.  Now check whether nonexistent headers
12035  # can be detected and how.
12036  cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h.  */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h.  */
12042#include <ac_nonexistent.h>
12043_ACEOF
12044if { (ac_try="$ac_cpp conftest.$ac_ext"
12045case "(($ac_try" in
12046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047  *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12051  ac_status=$?
12052  grep -v '^ *+' conftest.er1 >conftest.err
12053  rm -f conftest.er1
12054  cat conftest.err >&5
12055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056  (exit $ac_status); } >/dev/null && {
12057	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12058	 test ! -s conftest.err
12059       }; then
12060  # Broken: success on invalid input.
12061continue
12062else
12063  echo "$as_me: failed program was:" >&5
12064sed 's/^/| /' conftest.$ac_ext >&5
12065
12066  # Passes both tests.
12067ac_preproc_ok=:
12068break
12069fi
12070
12071rm -f conftest.err conftest.$ac_ext
12072
12073done
12074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12075rm -f conftest.err conftest.$ac_ext
12076if $ac_preproc_ok; then
12077  break
12078fi
12079
12080    done
12081    ac_cv_prog_CXXCPP=$CXXCPP
12082
12083fi
12084  CXXCPP=$ac_cv_prog_CXXCPP
12085else
12086  ac_cv_prog_CXXCPP=$CXXCPP
12087fi
12088{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12089echo "${ECHO_T}$CXXCPP" >&6; }
12090ac_preproc_ok=false
12091for ac_cxx_preproc_warn_flag in '' yes
12092do
12093  # Use a header file that comes with gcc, so configuring glibc
12094  # with a fresh cross-compiler works.
12095  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096  # <limits.h> exists even on freestanding compilers.
12097  # On the NeXT, cc -E runs the code through the compiler's parser,
12098  # not just through cpp. "Syntax error" is here to catch this case.
12099  cat >conftest.$ac_ext <<_ACEOF
12100/* confdefs.h.  */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h.  */
12105#ifdef __STDC__
12106# include <limits.h>
12107#else
12108# include <assert.h>
12109#endif
12110		     Syntax error
12111_ACEOF
12112if { (ac_try="$ac_cpp conftest.$ac_ext"
12113case "(($ac_try" in
12114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115  *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12119  ac_status=$?
12120  grep -v '^ *+' conftest.er1 >conftest.err
12121  rm -f conftest.er1
12122  cat conftest.err >&5
12123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124  (exit $ac_status); } >/dev/null && {
12125	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12126	 test ! -s conftest.err
12127       }; then
12128  :
12129else
12130  echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133  # Broken: fails on valid input.
12134continue
12135fi
12136
12137rm -f conftest.err conftest.$ac_ext
12138
12139  # OK, works on sane cases.  Now check whether nonexistent headers
12140  # can be detected and how.
12141  cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h.  */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h.  */
12147#include <ac_nonexistent.h>
12148_ACEOF
12149if { (ac_try="$ac_cpp conftest.$ac_ext"
12150case "(($ac_try" in
12151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152  *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12156  ac_status=$?
12157  grep -v '^ *+' conftest.er1 >conftest.err
12158  rm -f conftest.er1
12159  cat conftest.err >&5
12160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161  (exit $ac_status); } >/dev/null && {
12162	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12163	 test ! -s conftest.err
12164       }; then
12165  # Broken: success on invalid input.
12166continue
12167else
12168  echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171  # Passes both tests.
12172ac_preproc_ok=:
12173break
12174fi
12175
12176rm -f conftest.err conftest.$ac_ext
12177
12178done
12179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12180rm -f conftest.err conftest.$ac_ext
12181if $ac_preproc_ok; then
12182  :
12183else
12184  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12185See \`config.log' for more details." >&5
12186echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12187See \`config.log' for more details." >&2;}
12188   { (exit 1); exit 1; }; }
12189fi
12190
12191ac_ext=cpp
12192ac_cpp='$CXXCPP $CPPFLAGS'
12193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12196
12197fi
12198
12199
12200ac_ext=f
12201ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12202ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12204if test -n "$ac_tool_prefix"; then
12205  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12206  do
12207    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12211if test "${ac_cv_prog_F77+set}" = set; then
12212  echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214  if test -n "$F77"; then
12215  ac_cv_prog_F77="$F77" # Let the user override the test.
12216else
12217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220  IFS=$as_save_IFS
12221  test -z "$as_dir" && as_dir=.
12222  for ac_exec_ext in '' $ac_executable_extensions; do
12223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12226    break 2
12227  fi
12228done
12229done
12230IFS=$as_save_IFS
12231
12232fi
12233fi
12234F77=$ac_cv_prog_F77
12235if test -n "$F77"; then
12236  { echo "$as_me:$LINENO: result: $F77" >&5
12237echo "${ECHO_T}$F77" >&6; }
12238else
12239  { echo "$as_me:$LINENO: result: no" >&5
12240echo "${ECHO_T}no" >&6; }
12241fi
12242
12243
12244    test -n "$F77" && break
12245  done
12246fi
12247if test -z "$F77"; then
12248  ac_ct_F77=$F77
12249  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12250do
12251  # Extract the first word of "$ac_prog", so it can be a program name with args.
12252set dummy $ac_prog; ac_word=$2
12253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12255if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12256  echo $ECHO_N "(cached) $ECHO_C" >&6
12257else
12258  if test -n "$ac_ct_F77"; then
12259  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12260else
12261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $PATH
12263do
12264  IFS=$as_save_IFS
12265  test -z "$as_dir" && as_dir=.
12266  for ac_exec_ext in '' $ac_executable_extensions; do
12267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268    ac_cv_prog_ac_ct_F77="$ac_prog"
12269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12270    break 2
12271  fi
12272done
12273done
12274IFS=$as_save_IFS
12275
12276fi
12277fi
12278ac_ct_F77=$ac_cv_prog_ac_ct_F77
12279if test -n "$ac_ct_F77"; then
12280  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12281echo "${ECHO_T}$ac_ct_F77" >&6; }
12282else
12283  { echo "$as_me:$LINENO: result: no" >&5
12284echo "${ECHO_T}no" >&6; }
12285fi
12286
12287
12288  test -n "$ac_ct_F77" && break
12289done
12290
12291  if test "x$ac_ct_F77" = x; then
12292    F77=""
12293  else
12294    case $cross_compiling:$ac_tool_warned in
12295yes:)
12296{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12297whose name does not start with the host triplet.  If you think this
12298configuration is useful to you, please write to autoconf@gnu.org." >&5
12299echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12300whose name does not start with the host triplet.  If you think this
12301configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12302ac_tool_warned=yes ;;
12303esac
12304    F77=$ac_ct_F77
12305  fi
12306fi
12307
12308
12309# Provide some information about the compiler.
12310echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12311ac_compiler=`set X $ac_compile; echo $2`
12312{ (ac_try="$ac_compiler --version >&5"
12313case "(($ac_try" in
12314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315  *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318  (eval "$ac_compiler --version >&5") 2>&5
12319  ac_status=$?
12320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321  (exit $ac_status); }
12322{ (ac_try="$ac_compiler -v >&5"
12323case "(($ac_try" in
12324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325  *) ac_try_echo=$ac_try;;
12326esac
12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328  (eval "$ac_compiler -v >&5") 2>&5
12329  ac_status=$?
12330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331  (exit $ac_status); }
12332{ (ac_try="$ac_compiler -V >&5"
12333case "(($ac_try" in
12334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335  *) ac_try_echo=$ac_try;;
12336esac
12337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338  (eval "$ac_compiler -V >&5") 2>&5
12339  ac_status=$?
12340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341  (exit $ac_status); }
12342rm -f a.out
12343
12344# If we don't use `.F' as extension, the preprocessor is not run on the
12345# input file.  (Note that this only needs to work for GNU compilers.)
12346ac_save_ext=$ac_ext
12347ac_ext=F
12348{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12349echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12350if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12351  echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353  cat >conftest.$ac_ext <<_ACEOF
12354      program main
12355#ifndef __GNUC__
12356       choke me
12357#endif
12358
12359      end
12360_ACEOF
12361rm -f conftest.$ac_objext
12362if { (ac_try="$ac_compile"
12363case "(($ac_try" in
12364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365  *) ac_try_echo=$ac_try;;
12366esac
12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368  (eval "$ac_compile") 2>conftest.er1
12369  ac_status=$?
12370  grep -v '^ *+' conftest.er1 >conftest.err
12371  rm -f conftest.er1
12372  cat conftest.err >&5
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); } && {
12375	 test -z "$ac_f77_werror_flag" ||
12376	 test ! -s conftest.err
12377       } && test -s conftest.$ac_objext; then
12378  ac_compiler_gnu=yes
12379else
12380  echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383	ac_compiler_gnu=no
12384fi
12385
12386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12388
12389fi
12390{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12391echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12392ac_ext=$ac_save_ext
12393ac_test_FFLAGS=${FFLAGS+set}
12394ac_save_FFLAGS=$FFLAGS
12395FFLAGS=
12396{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12397echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12398if test "${ac_cv_prog_f77_g+set}" = set; then
12399  echo $ECHO_N "(cached) $ECHO_C" >&6
12400else
12401  FFLAGS=-g
12402cat >conftest.$ac_ext <<_ACEOF
12403      program main
12404
12405      end
12406_ACEOF
12407rm -f conftest.$ac_objext
12408if { (ac_try="$ac_compile"
12409case "(($ac_try" in
12410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411  *) ac_try_echo=$ac_try;;
12412esac
12413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414  (eval "$ac_compile") 2>conftest.er1
12415  ac_status=$?
12416  grep -v '^ *+' conftest.er1 >conftest.err
12417  rm -f conftest.er1
12418  cat conftest.err >&5
12419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420  (exit $ac_status); } && {
12421	 test -z "$ac_f77_werror_flag" ||
12422	 test ! -s conftest.err
12423       } && test -s conftest.$ac_objext; then
12424  ac_cv_prog_f77_g=yes
12425else
12426  echo "$as_me: failed program was:" >&5
12427sed 's/^/| /' conftest.$ac_ext >&5
12428
12429	ac_cv_prog_f77_g=no
12430fi
12431
12432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433
12434fi
12435{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12436echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12437if test "$ac_test_FFLAGS" = set; then
12438  FFLAGS=$ac_save_FFLAGS
12439elif test $ac_cv_prog_f77_g = yes; then
12440  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12441    FFLAGS="-g -O2"
12442  else
12443    FFLAGS="-g"
12444  fi
12445else
12446  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12447    FFLAGS="-O2"
12448  else
12449    FFLAGS=
12450  fi
12451fi
12452
12453G77=`test $ac_compiler_gnu = yes && echo yes`
12454ac_ext=c
12455ac_cpp='$CPP $CPPFLAGS'
12456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460
12461
12462# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12463# find the maximum length of command line arguments
12464{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12465echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12466if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12467  echo $ECHO_N "(cached) $ECHO_C" >&6
12468else
12469    i=0
12470  teststring="ABCD"
12471
12472  case $build_os in
12473  msdosdjgpp*)
12474    # On DJGPP, this test can blow up pretty badly due to problems in libc
12475    # (any single argument exceeding 2000 bytes causes a buffer overrun
12476    # during glob expansion).  Even if it were fixed, the result of this
12477    # check would be larger than it should be.
12478    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12479    ;;
12480
12481  gnu*)
12482    # Under GNU Hurd, this test is not required because there is
12483    # no limit to the length of command line arguments.
12484    # Libtool will interpret -1 as no limit whatsoever
12485    lt_cv_sys_max_cmd_len=-1;
12486    ;;
12487
12488  cygwin* | mingw*)
12489    # On Win9x/ME, this test blows up -- it succeeds, but takes
12490    # about 5 minutes as the teststring grows exponentially.
12491    # Worse, since 9x/ME are not pre-emptively multitasking,
12492    # you end up with a "frozen" computer, even though with patience
12493    # the test eventually succeeds (with a max line length of 256k).
12494    # Instead, let's just punt: use the minimum linelength reported by
12495    # all of the supported platforms: 8192 (on NT/2K/XP).
12496    lt_cv_sys_max_cmd_len=8192;
12497    ;;
12498
12499  amigaos*)
12500    # On AmigaOS with pdksh, this test takes hours, literally.
12501    # So we just punt and use a minimum line length of 8192.
12502    lt_cv_sys_max_cmd_len=8192;
12503    ;;
12504
12505  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12506    # This has been around since 386BSD, at least.  Likely further.
12507    if test -x /sbin/sysctl; then
12508      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12509    elif test -x /usr/sbin/sysctl; then
12510      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12511    else
12512      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12513    fi
12514    # And add a safety zone
12515    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12516    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12517    ;;
12518
12519  interix*)
12520    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12521    lt_cv_sys_max_cmd_len=196608
12522    ;;
12523
12524  osf*)
12525    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12526    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12527    # nice to cause kernel panics so lets avoid the loop below.
12528    # First set a reasonable default.
12529    lt_cv_sys_max_cmd_len=16384
12530    #
12531    if test -x /sbin/sysconfig; then
12532      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12533        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12534      esac
12535    fi
12536    ;;
12537  sco3.2v5*)
12538    lt_cv_sys_max_cmd_len=102400
12539    ;;
12540  sysv5* | sco5v6* | sysv4.2uw2*)
12541    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12542    if test -n "$kargmax"; then
12543      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
12544    else
12545      lt_cv_sys_max_cmd_len=32768
12546    fi
12547    ;;
12548  *)
12549    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12550    if test -n "$lt_cv_sys_max_cmd_len"; then
12551      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12552      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12553    else
12554      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12555      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12556	       = "XX$teststring") >/dev/null 2>&1 &&
12557	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
12558	      lt_cv_sys_max_cmd_len=$new_result &&
12559	      test $i != 17 # 1/2 MB should be enough
12560      do
12561        i=`expr $i + 1`
12562        teststring=$teststring$teststring
12563      done
12564      teststring=
12565      # Add a significant safety factor because C++ compilers can tack on massive
12566      # amounts of additional arguments before passing them to the linker.
12567      # It appears as though 1/2 is a usable value.
12568      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12569    fi
12570    ;;
12571  esac
12572
12573fi
12574
12575if test -n $lt_cv_sys_max_cmd_len ; then
12576  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12577echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12578else
12579  { echo "$as_me:$LINENO: result: none" >&5
12580echo "${ECHO_T}none" >&6; }
12581fi
12582
12583
12584
12585
12586
12587# Check for command to grab the raw symbol name followed by C symbol from nm.
12588{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12589echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12590if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12591  echo $ECHO_N "(cached) $ECHO_C" >&6
12592else
12593
12594# These are sane defaults that work on at least a few old systems.
12595# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12596
12597# Character class describing NM global symbol codes.
12598symcode='[BCDEGRST]'
12599
12600# Regexp to match symbols that can be accessed directly from C.
12601sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12602
12603# Transform an extracted symbol line into a proper C declaration
12604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12605
12606# Transform an extracted symbol line into symbol name and symbol address
12607lt_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'"
12608
12609# Define system-specific variables.
12610case $host_os in
12611aix*)
12612  symcode='[BCDT]'
12613  ;;
12614cygwin* | mingw* | pw32*)
12615  symcode='[ABCDGISTW]'
12616  ;;
12617hpux*) # Its linker distinguishes data from code symbols
12618  if test "$host_cpu" = ia64; then
12619    symcode='[ABCDEGRST]'
12620  fi
12621  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12622  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'"
12623  ;;
12624linux* | k*bsd*-gnu)
12625  if test "$host_cpu" = ia64; then
12626    symcode='[ABCDGIRSTW]'
12627    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12628    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'"
12629  fi
12630  ;;
12631irix* | nonstopux*)
12632  symcode='[BCDEGRST]'
12633  ;;
12634osf*)
12635  symcode='[BCDEGQRST]'
12636  ;;
12637solaris*)
12638  symcode='[BDRT]'
12639  ;;
12640sco3.2v5*)
12641  symcode='[DT]'
12642  ;;
12643sysv4.2uw2*)
12644  symcode='[DT]'
12645  ;;
12646sysv5* | sco5v6* | unixware* | OpenUNIX*)
12647  symcode='[ABDT]'
12648  ;;
12649sysv4)
12650  symcode='[DFNSTU]'
12651  ;;
12652esac
12653
12654# Handle CRLF in mingw tool chain
12655opt_cr=
12656case $build_os in
12657mingw*)
12658  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12659  ;;
12660esac
12661
12662# If we're using GNU nm, then use its standard symbol codes.
12663case `$NM -V 2>&1` in
12664*GNU* | *'with BFD'*)
12665  symcode='[ABCDGIRSTW]' ;;
12666esac
12667
12668# Try without a prefix undercore, then with it.
12669for ac_symprfx in "" "_"; do
12670
12671  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12672  symxfrm="\\1 $ac_symprfx\\2 \\2"
12673
12674  # Write the raw and C identifiers.
12675  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12676
12677  # Check to see that the pipe works correctly.
12678  pipe_works=no
12679
12680  rm -f conftest*
12681  cat > conftest.$ac_ext <<EOF
12682#ifdef __cplusplus
12683extern "C" {
12684#endif
12685char nm_test_var;
12686void nm_test_func(){}
12687#ifdef __cplusplus
12688}
12689#endif
12690int main(){nm_test_var='a';nm_test_func();return(0);}
12691EOF
12692
12693  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694  (eval $ac_compile) 2>&5
12695  ac_status=$?
12696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697  (exit $ac_status); }; then
12698    # Now try to grab the symbols.
12699    nlist=conftest.nm
12700    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12701  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12702  ac_status=$?
12703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704  (exit $ac_status); } && test -s "$nlist"; then
12705      # Try sorting and uniquifying the output.
12706      if sort "$nlist" | uniq > "$nlist"T; then
12707	mv -f "$nlist"T "$nlist"
12708      else
12709	rm -f "$nlist"T
12710      fi
12711
12712      # Make sure that we snagged all the symbols we need.
12713      if grep ' nm_test_var$' "$nlist" >/dev/null; then
12714	if grep ' nm_test_func$' "$nlist" >/dev/null; then
12715	  cat <<EOF > conftest.$ac_ext
12716#ifdef __cplusplus
12717extern "C" {
12718#endif
12719
12720EOF
12721	  # Now generate the symbol file.
12722	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12723
12724	  cat <<EOF >> conftest.$ac_ext
12725#if defined (__STDC__) && __STDC__
12726# define lt_ptr_t void *
12727#else
12728# define lt_ptr_t char *
12729# define const
12730#endif
12731
12732/* The mapping between symbol names and symbols. */
12733const struct {
12734  const char *name;
12735  lt_ptr_t address;
12736}
12737lt_preloaded_symbols[] =
12738{
12739EOF
12740	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12741	  cat <<\EOF >> conftest.$ac_ext
12742  {0, (lt_ptr_t) 0}
12743};
12744
12745#ifdef __cplusplus
12746}
12747#endif
12748EOF
12749	  # Now try linking the two files.
12750	  mv conftest.$ac_objext conftstm.$ac_objext
12751	  lt_save_LIBS="$LIBS"
12752	  lt_save_CFLAGS="$CFLAGS"
12753	  LIBS="conftstm.$ac_objext"
12754	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12755	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756  (eval $ac_link) 2>&5
12757  ac_status=$?
12758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759  (exit $ac_status); } && test -s conftest${ac_exeext}; then
12760	    pipe_works=yes
12761	  fi
12762	  LIBS="$lt_save_LIBS"
12763	  CFLAGS="$lt_save_CFLAGS"
12764	else
12765	  echo "cannot find nm_test_func in $nlist" >&5
12766	fi
12767      else
12768	echo "cannot find nm_test_var in $nlist" >&5
12769      fi
12770    else
12771      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12772    fi
12773  else
12774    echo "$progname: failed program was:" >&5
12775    cat conftest.$ac_ext >&5
12776  fi
12777  rm -rf conftest* conftst*
12778
12779  # Do not use the global_symbol_pipe unless it works.
12780  if test "$pipe_works" = yes; then
12781    break
12782  else
12783    lt_cv_sys_global_symbol_pipe=
12784  fi
12785done
12786
12787fi
12788
12789if test -z "$lt_cv_sys_global_symbol_pipe"; then
12790  lt_cv_sys_global_symbol_to_cdecl=
12791fi
12792if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12793  { echo "$as_me:$LINENO: result: failed" >&5
12794echo "${ECHO_T}failed" >&6; }
12795else
12796  { echo "$as_me:$LINENO: result: ok" >&5
12797echo "${ECHO_T}ok" >&6; }
12798fi
12799
12800{ echo "$as_me:$LINENO: checking for objdir" >&5
12801echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12802if test "${lt_cv_objdir+set}" = set; then
12803  echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805  rm -f .libs 2>/dev/null
12806mkdir .libs 2>/dev/null
12807if test -d .libs; then
12808  lt_cv_objdir=.libs
12809else
12810  # MS-DOS does not allow filenames that begin with a dot.
12811  lt_cv_objdir=_libs
12812fi
12813rmdir .libs 2>/dev/null
12814fi
12815{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12816echo "${ECHO_T}$lt_cv_objdir" >&6; }
12817objdir=$lt_cv_objdir
12818
12819
12820
12821
12822
12823case $host_os in
12824aix3*)
12825  # AIX sometimes has problems with the GCC collect2 program.  For some
12826  # reason, if we set the COLLECT_NAMES environment variable, the problems
12827  # vanish in a puff of smoke.
12828  if test "X${COLLECT_NAMES+set}" != Xset; then
12829    COLLECT_NAMES=
12830    export COLLECT_NAMES
12831  fi
12832  ;;
12833esac
12834
12835# Sed substitution that helps us do robust quoting.  It backslashifies
12836# metacharacters that are still active within double-quoted strings.
12837Xsed='sed -e 1s/^X//'
12838sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12839
12840# Same as above, but do not quote variable references.
12841double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12842
12843# Sed substitution to delay expansion of an escaped shell variable in a
12844# double_quote_subst'ed string.
12845delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12846
12847# Sed substitution to avoid accidental globbing in evaled expressions
12848no_glob_subst='s/\*/\\\*/g'
12849
12850# Constants:
12851rm="rm -f"
12852
12853# Global variables:
12854default_ofile=libtool
12855can_build_shared=yes
12856
12857# All known linkers require a `.a' archive for static linking (except MSVC,
12858# which needs '.lib').
12859libext=a
12860ltmain="$ac_aux_dir/ltmain.sh"
12861ofile="$default_ofile"
12862with_gnu_ld="$lt_cv_prog_gnu_ld"
12863
12864if test -n "$ac_tool_prefix"; then
12865  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12866set dummy ${ac_tool_prefix}ar; ac_word=$2
12867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12869if test "${ac_cv_prog_AR+set}" = set; then
12870  echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
12872  if test -n "$AR"; then
12873  ac_cv_prog_AR="$AR" # Let the user override the test.
12874else
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878  IFS=$as_save_IFS
12879  test -z "$as_dir" && as_dir=.
12880  for ac_exec_ext in '' $ac_executable_extensions; do
12881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882    ac_cv_prog_AR="${ac_tool_prefix}ar"
12883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884    break 2
12885  fi
12886done
12887done
12888IFS=$as_save_IFS
12889
12890fi
12891fi
12892AR=$ac_cv_prog_AR
12893if test -n "$AR"; then
12894  { echo "$as_me:$LINENO: result: $AR" >&5
12895echo "${ECHO_T}$AR" >&6; }
12896else
12897  { echo "$as_me:$LINENO: result: no" >&5
12898echo "${ECHO_T}no" >&6; }
12899fi
12900
12901
12902fi
12903if test -z "$ac_cv_prog_AR"; then
12904  ac_ct_AR=$AR
12905  # Extract the first word of "ar", so it can be a program name with args.
12906set dummy ar; ac_word=$2
12907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12909if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12910  echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912  if test -n "$ac_ct_AR"; then
12913  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12914else
12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918  IFS=$as_save_IFS
12919  test -z "$as_dir" && as_dir=.
12920  for ac_exec_ext in '' $ac_executable_extensions; do
12921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922    ac_cv_prog_ac_ct_AR="ar"
12923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12924    break 2
12925  fi
12926done
12927done
12928IFS=$as_save_IFS
12929
12930fi
12931fi
12932ac_ct_AR=$ac_cv_prog_ac_ct_AR
12933if test -n "$ac_ct_AR"; then
12934  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12935echo "${ECHO_T}$ac_ct_AR" >&6; }
12936else
12937  { echo "$as_me:$LINENO: result: no" >&5
12938echo "${ECHO_T}no" >&6; }
12939fi
12940
12941  if test "x$ac_ct_AR" = x; then
12942    AR="false"
12943  else
12944    case $cross_compiling:$ac_tool_warned in
12945yes:)
12946{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12947whose name does not start with the host triplet.  If you think this
12948configuration is useful to you, please write to autoconf@gnu.org." >&5
12949echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12950whose name does not start with the host triplet.  If you think this
12951configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12952ac_tool_warned=yes ;;
12953esac
12954    AR=$ac_ct_AR
12955  fi
12956else
12957  AR="$ac_cv_prog_AR"
12958fi
12959
12960if test -n "$ac_tool_prefix"; then
12961  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12962set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12965if test "${ac_cv_prog_RANLIB+set}" = set; then
12966  echo $ECHO_N "(cached) $ECHO_C" >&6
12967else
12968  if test -n "$RANLIB"; then
12969  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12970else
12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972for as_dir in $PATH
12973do
12974  IFS=$as_save_IFS
12975  test -z "$as_dir" && as_dir=.
12976  for ac_exec_ext in '' $ac_executable_extensions; do
12977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980    break 2
12981  fi
12982done
12983done
12984IFS=$as_save_IFS
12985
12986fi
12987fi
12988RANLIB=$ac_cv_prog_RANLIB
12989if test -n "$RANLIB"; then
12990  { echo "$as_me:$LINENO: result: $RANLIB" >&5
12991echo "${ECHO_T}$RANLIB" >&6; }
12992else
12993  { echo "$as_me:$LINENO: result: no" >&5
12994echo "${ECHO_T}no" >&6; }
12995fi
12996
12997
12998fi
12999if test -z "$ac_cv_prog_RANLIB"; then
13000  ac_ct_RANLIB=$RANLIB
13001  # Extract the first word of "ranlib", so it can be a program name with args.
13002set dummy ranlib; ac_word=$2
13003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13005if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13006  echo $ECHO_N "(cached) $ECHO_C" >&6
13007else
13008  if test -n "$ac_ct_RANLIB"; then
13009  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014  IFS=$as_save_IFS
13015  test -z "$as_dir" && as_dir=.
13016  for ac_exec_ext in '' $ac_executable_extensions; do
13017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13018    ac_cv_prog_ac_ct_RANLIB="ranlib"
13019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13020    break 2
13021  fi
13022done
13023done
13024IFS=$as_save_IFS
13025
13026fi
13027fi
13028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13029if test -n "$ac_ct_RANLIB"; then
13030  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13031echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13032else
13033  { echo "$as_me:$LINENO: result: no" >&5
13034echo "${ECHO_T}no" >&6; }
13035fi
13036
13037  if test "x$ac_ct_RANLIB" = x; then
13038    RANLIB=":"
13039  else
13040    case $cross_compiling:$ac_tool_warned in
13041yes:)
13042{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13043whose name does not start with the host triplet.  If you think this
13044configuration is useful to you, please write to autoconf@gnu.org." >&5
13045echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13046whose name does not start with the host triplet.  If you think this
13047configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13048ac_tool_warned=yes ;;
13049esac
13050    RANLIB=$ac_ct_RANLIB
13051  fi
13052else
13053  RANLIB="$ac_cv_prog_RANLIB"
13054fi
13055
13056if test -n "$ac_tool_prefix"; then
13057  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13058set dummy ${ac_tool_prefix}strip; ac_word=$2
13059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061if test "${ac_cv_prog_STRIP+set}" = set; then
13062  echo $ECHO_N "(cached) $ECHO_C" >&6
13063else
13064  if test -n "$STRIP"; then
13065  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070  IFS=$as_save_IFS
13071  test -z "$as_dir" && as_dir=.
13072  for ac_exec_ext in '' $ac_executable_extensions; do
13073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13076    break 2
13077  fi
13078done
13079done
13080IFS=$as_save_IFS
13081
13082fi
13083fi
13084STRIP=$ac_cv_prog_STRIP
13085if test -n "$STRIP"; then
13086  { echo "$as_me:$LINENO: result: $STRIP" >&5
13087echo "${ECHO_T}$STRIP" >&6; }
13088else
13089  { echo "$as_me:$LINENO: result: no" >&5
13090echo "${ECHO_T}no" >&6; }
13091fi
13092
13093
13094fi
13095if test -z "$ac_cv_prog_STRIP"; then
13096  ac_ct_STRIP=$STRIP
13097  # Extract the first word of "strip", so it can be a program name with args.
13098set dummy strip; ac_word=$2
13099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13101if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13102  echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104  if test -n "$ac_ct_STRIP"; then
13105  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13106else
13107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108for as_dir in $PATH
13109do
13110  IFS=$as_save_IFS
13111  test -z "$as_dir" && as_dir=.
13112  for ac_exec_ext in '' $ac_executable_extensions; do
13113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13114    ac_cv_prog_ac_ct_STRIP="strip"
13115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13116    break 2
13117  fi
13118done
13119done
13120IFS=$as_save_IFS
13121
13122fi
13123fi
13124ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13125if test -n "$ac_ct_STRIP"; then
13126  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13127echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13128else
13129  { echo "$as_me:$LINENO: result: no" >&5
13130echo "${ECHO_T}no" >&6; }
13131fi
13132
13133  if test "x$ac_ct_STRIP" = x; then
13134    STRIP=":"
13135  else
13136    case $cross_compiling:$ac_tool_warned in
13137yes:)
13138{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13139whose name does not start with the host triplet.  If you think this
13140configuration is useful to you, please write to autoconf@gnu.org." >&5
13141echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13142whose name does not start with the host triplet.  If you think this
13143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13144ac_tool_warned=yes ;;
13145esac
13146    STRIP=$ac_ct_STRIP
13147  fi
13148else
13149  STRIP="$ac_cv_prog_STRIP"
13150fi
13151
13152
13153old_CC="$CC"
13154old_CFLAGS="$CFLAGS"
13155
13156# Set sane defaults for various variables
13157test -z "$AR" && AR=ar
13158test -z "$AR_FLAGS" && AR_FLAGS=cru
13159test -z "$AS" && AS=as
13160test -z "$CC" && CC=cc
13161test -z "$LTCC" && LTCC=$CC
13162test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13163test -z "$DLLTOOL" && DLLTOOL=dlltool
13164test -z "$LD" && LD=ld
13165test -z "$LN_S" && LN_S="ln -s"
13166test -z "$MAGIC_CMD" && MAGIC_CMD=file
13167test -z "$NM" && NM=nm
13168test -z "$SED" && SED=sed
13169test -z "$OBJDUMP" && OBJDUMP=objdump
13170test -z "$RANLIB" && RANLIB=:
13171test -z "$STRIP" && STRIP=:
13172test -z "$ac_objext" && ac_objext=o
13173
13174# Determine commands to create old-style static archives.
13175old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13176old_postinstall_cmds='chmod 644 $oldlib'
13177old_postuninstall_cmds=
13178
13179if test -n "$RANLIB"; then
13180  case $host_os in
13181  openbsd*)
13182    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13183    ;;
13184  *)
13185    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13186    ;;
13187  esac
13188  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13189fi
13190
13191for cc_temp in $compiler""; do
13192  case $cc_temp in
13193    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13194    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13195    \-*) ;;
13196    *) break;;
13197  esac
13198done
13199cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13200
13201
13202# Only perform the check for file, if the check method requires it
13203case $deplibs_check_method in
13204file_magic*)
13205  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13206    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13207echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13208if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13209  echo $ECHO_N "(cached) $ECHO_C" >&6
13210else
13211  case $MAGIC_CMD in
13212[\\/*] |  ?:[\\/]*)
13213  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13214  ;;
13215*)
13216  lt_save_MAGIC_CMD="$MAGIC_CMD"
13217  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13218  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13219  for ac_dir in $ac_dummy; do
13220    IFS="$lt_save_ifs"
13221    test -z "$ac_dir" && ac_dir=.
13222    if test -f $ac_dir/${ac_tool_prefix}file; then
13223      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13224      if test -n "$file_magic_test_file"; then
13225	case $deplibs_check_method in
13226	"file_magic "*)
13227	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13228	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13229	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13230	    $EGREP "$file_magic_regex" > /dev/null; then
13231	    :
13232	  else
13233	    cat <<EOF 1>&2
13234
13235*** Warning: the command libtool uses to detect shared libraries,
13236*** $file_magic_cmd, produces output that libtool cannot recognize.
13237*** The result is that libtool may fail to recognize shared libraries
13238*** as such.  This will affect the creation of libtool libraries that
13239*** depend on shared libraries, but programs linked with such libtool
13240*** libraries will work regardless of this problem.  Nevertheless, you
13241*** may want to report the problem to your system manager and/or to
13242*** bug-libtool@gnu.org
13243
13244EOF
13245	  fi ;;
13246	esac
13247      fi
13248      break
13249    fi
13250  done
13251  IFS="$lt_save_ifs"
13252  MAGIC_CMD="$lt_save_MAGIC_CMD"
13253  ;;
13254esac
13255fi
13256
13257MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13258if test -n "$MAGIC_CMD"; then
13259  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13260echo "${ECHO_T}$MAGIC_CMD" >&6; }
13261else
13262  { echo "$as_me:$LINENO: result: no" >&5
13263echo "${ECHO_T}no" >&6; }
13264fi
13265
13266if test -z "$lt_cv_path_MAGIC_CMD"; then
13267  if test -n "$ac_tool_prefix"; then
13268    { echo "$as_me:$LINENO: checking for file" >&5
13269echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13270if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13271  echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273  case $MAGIC_CMD in
13274[\\/*] |  ?:[\\/]*)
13275  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13276  ;;
13277*)
13278  lt_save_MAGIC_CMD="$MAGIC_CMD"
13279  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13280  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13281  for ac_dir in $ac_dummy; do
13282    IFS="$lt_save_ifs"
13283    test -z "$ac_dir" && ac_dir=.
13284    if test -f $ac_dir/file; then
13285      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13286      if test -n "$file_magic_test_file"; then
13287	case $deplibs_check_method in
13288	"file_magic "*)
13289	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13290	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13291	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13292	    $EGREP "$file_magic_regex" > /dev/null; then
13293	    :
13294	  else
13295	    cat <<EOF 1>&2
13296
13297*** Warning: the command libtool uses to detect shared libraries,
13298*** $file_magic_cmd, produces output that libtool cannot recognize.
13299*** The result is that libtool may fail to recognize shared libraries
13300*** as such.  This will affect the creation of libtool libraries that
13301*** depend on shared libraries, but programs linked with such libtool
13302*** libraries will work regardless of this problem.  Nevertheless, you
13303*** may want to report the problem to your system manager and/or to
13304*** bug-libtool@gnu.org
13305
13306EOF
13307	  fi ;;
13308	esac
13309      fi
13310      break
13311    fi
13312  done
13313  IFS="$lt_save_ifs"
13314  MAGIC_CMD="$lt_save_MAGIC_CMD"
13315  ;;
13316esac
13317fi
13318
13319MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13320if test -n "$MAGIC_CMD"; then
13321  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13322echo "${ECHO_T}$MAGIC_CMD" >&6; }
13323else
13324  { echo "$as_me:$LINENO: result: no" >&5
13325echo "${ECHO_T}no" >&6; }
13326fi
13327
13328  else
13329    MAGIC_CMD=:
13330  fi
13331fi
13332
13333  fi
13334  ;;
13335esac
13336
13337
13338  case $host_os in
13339    rhapsody* | darwin*)
13340    if test -n "$ac_tool_prefix"; then
13341  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13342set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13345if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
13346  echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348  if test -n "$DSYMUTIL"; then
13349  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13350else
13351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352for as_dir in $PATH
13353do
13354  IFS=$as_save_IFS
13355  test -z "$as_dir" && as_dir=.
13356  for ac_exec_ext in '' $ac_executable_extensions; do
13357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13360    break 2
13361  fi
13362done
13363done
13364IFS=$as_save_IFS
13365
13366fi
13367fi
13368DSYMUTIL=$ac_cv_prog_DSYMUTIL
13369if test -n "$DSYMUTIL"; then
13370  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
13371echo "${ECHO_T}$DSYMUTIL" >&6; }
13372else
13373  { echo "$as_me:$LINENO: result: no" >&5
13374echo "${ECHO_T}no" >&6; }
13375fi
13376
13377
13378fi
13379if test -z "$ac_cv_prog_DSYMUTIL"; then
13380  ac_ct_DSYMUTIL=$DSYMUTIL
13381  # Extract the first word of "dsymutil", so it can be a program name with args.
13382set dummy dsymutil; ac_word=$2
13383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13385if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
13386  echo $ECHO_N "(cached) $ECHO_C" >&6
13387else
13388  if test -n "$ac_ct_DSYMUTIL"; then
13389  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13390else
13391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392for as_dir in $PATH
13393do
13394  IFS=$as_save_IFS
13395  test -z "$as_dir" && as_dir=.
13396  for ac_exec_ext in '' $ac_executable_extensions; do
13397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13398    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13400    break 2
13401  fi
13402done
13403done
13404IFS=$as_save_IFS
13405
13406fi
13407fi
13408ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13409if test -n "$ac_ct_DSYMUTIL"; then
13410  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
13411echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
13412else
13413  { echo "$as_me:$LINENO: result: no" >&5
13414echo "${ECHO_T}no" >&6; }
13415fi
13416
13417  if test "x$ac_ct_DSYMUTIL" = x; then
13418    DSYMUTIL=":"
13419  else
13420    case $cross_compiling:$ac_tool_warned in
13421yes:)
13422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13423whose name does not start with the host triplet.  If you think this
13424configuration is useful to you, please write to autoconf@gnu.org." >&5
13425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13426whose name does not start with the host triplet.  If you think this
13427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13428ac_tool_warned=yes ;;
13429esac
13430    DSYMUTIL=$ac_ct_DSYMUTIL
13431  fi
13432else
13433  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13434fi
13435
13436    if test -n "$ac_tool_prefix"; then
13437  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13438set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13441if test "${ac_cv_prog_NMEDIT+set}" = set; then
13442  echo $ECHO_N "(cached) $ECHO_C" >&6
13443else
13444  if test -n "$NMEDIT"; then
13445  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13446else
13447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448for as_dir in $PATH
13449do
13450  IFS=$as_save_IFS
13451  test -z "$as_dir" && as_dir=.
13452  for ac_exec_ext in '' $ac_executable_extensions; do
13453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13454    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13456    break 2
13457  fi
13458done
13459done
13460IFS=$as_save_IFS
13461
13462fi
13463fi
13464NMEDIT=$ac_cv_prog_NMEDIT
13465if test -n "$NMEDIT"; then
13466  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
13467echo "${ECHO_T}$NMEDIT" >&6; }
13468else
13469  { echo "$as_me:$LINENO: result: no" >&5
13470echo "${ECHO_T}no" >&6; }
13471fi
13472
13473
13474fi
13475if test -z "$ac_cv_prog_NMEDIT"; then
13476  ac_ct_NMEDIT=$NMEDIT
13477  # Extract the first word of "nmedit", so it can be a program name with args.
13478set dummy nmedit; ac_word=$2
13479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13481if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
13482  echo $ECHO_N "(cached) $ECHO_C" >&6
13483else
13484  if test -n "$ac_ct_NMEDIT"; then
13485  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13486else
13487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488for as_dir in $PATH
13489do
13490  IFS=$as_save_IFS
13491  test -z "$as_dir" && as_dir=.
13492  for ac_exec_ext in '' $ac_executable_extensions; do
13493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13494    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13496    break 2
13497  fi
13498done
13499done
13500IFS=$as_save_IFS
13501
13502fi
13503fi
13504ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13505if test -n "$ac_ct_NMEDIT"; then
13506  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
13507echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
13508else
13509  { echo "$as_me:$LINENO: result: no" >&5
13510echo "${ECHO_T}no" >&6; }
13511fi
13512
13513  if test "x$ac_ct_NMEDIT" = x; then
13514    NMEDIT=":"
13515  else
13516    case $cross_compiling:$ac_tool_warned in
13517yes:)
13518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13519whose name does not start with the host triplet.  If you think this
13520configuration is useful to you, please write to autoconf@gnu.org." >&5
13521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13522whose name does not start with the host triplet.  If you think this
13523configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13524ac_tool_warned=yes ;;
13525esac
13526    NMEDIT=$ac_ct_NMEDIT
13527  fi
13528else
13529  NMEDIT="$ac_cv_prog_NMEDIT"
13530fi
13531
13532
13533    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
13534echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
13535if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13536  echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538  lt_cv_apple_cc_single_mod=no
13539      if test -z "${LT_MULTI_MODULE}"; then
13540   # By default we will add the -single_module flag. You can override
13541   # by either setting the environment variable LT_MULTI_MODULE
13542   # non-empty at configure time, or by adding -multi_module to the
13543   # link flags.
13544   echo "int foo(void){return 1;}" > conftest.c
13545   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13546     -dynamiclib ${wl}-single_module conftest.c
13547   if test -f libconftest.dylib; then
13548     lt_cv_apple_cc_single_mod=yes
13549     rm -rf libconftest.dylib*
13550   fi
13551   rm conftest.c
13552      fi
13553fi
13554{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
13555echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
13556    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
13557echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
13558if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
13559  echo $ECHO_N "(cached) $ECHO_C" >&6
13560else
13561  lt_cv_ld_exported_symbols_list=no
13562      save_LDFLAGS=$LDFLAGS
13563      echo "_main" > conftest.sym
13564      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13565      cat >conftest.$ac_ext <<_ACEOF
13566/* confdefs.h.  */
13567_ACEOF
13568cat confdefs.h >>conftest.$ac_ext
13569cat >>conftest.$ac_ext <<_ACEOF
13570/* end confdefs.h.  */
13571
13572int
13573main ()
13574{
13575
13576  ;
13577  return 0;
13578}
13579_ACEOF
13580rm -f conftest.$ac_objext conftest$ac_exeext
13581if { (ac_try="$ac_link"
13582case "(($ac_try" in
13583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584  *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587  (eval "$ac_link") 2>conftest.er1
13588  ac_status=$?
13589  grep -v '^ *+' conftest.er1 >conftest.err
13590  rm -f conftest.er1
13591  cat conftest.err >&5
13592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593  (exit $ac_status); } && {
13594	 test -z "$ac_c_werror_flag" ||
13595	 test ! -s conftest.err
13596       } && test -s conftest$ac_exeext &&
13597       $as_test_x conftest$ac_exeext; then
13598  lt_cv_ld_exported_symbols_list=yes
13599else
13600  echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
13603	lt_cv_ld_exported_symbols_list=no
13604fi
13605
13606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13607      conftest$ac_exeext conftest.$ac_ext
13608   LDFLAGS="$save_LDFLAGS"
13609
13610fi
13611{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
13612echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
13613    case $host_os in
13614    rhapsody* | darwin1.[0123])
13615      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13616    darwin1.*)
13617     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13618    darwin*)
13619      # if running on 10.5 or later, the deployment target defaults
13620      # to the OS version, if on x86, and 10.4, the deployment
13621      # target defaults to 10.4. Don't you love it?
13622      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13623   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13624     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13625   10.[012]*)
13626     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13627   10.*)
13628     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13629      esac
13630    ;;
13631  esac
13632    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13633      _lt_dar_single_mod='$single_module'
13634    fi
13635    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13636      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13637    else
13638      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
13639    fi
13640    if test "$DSYMUTIL" != ":"; then
13641      _lt_dsymutil="~$DSYMUTIL \$lib || :"
13642    else
13643      _lt_dsymutil=
13644    fi
13645    ;;
13646  esac
13647
13648
13649enable_dlopen=yes
13650enable_win32_dll=no
13651
13652# Check whether --enable-libtool-lock was given.
13653if test "${enable_libtool_lock+set}" = set; then
13654  enableval=$enable_libtool_lock;
13655fi
13656
13657test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13658
13659
13660# Check whether --with-pic was given.
13661if test "${with_pic+set}" = set; then
13662  withval=$with_pic; pic_mode="$withval"
13663else
13664  pic_mode=default
13665fi
13666
13667test -z "$pic_mode" && pic_mode=default
13668
13669# Use C for the default configuration in the libtool script
13670tagname=
13671lt_save_CC="$CC"
13672ac_ext=c
13673ac_cpp='$CPP $CPPFLAGS'
13674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13676ac_compiler_gnu=$ac_cv_c_compiler_gnu
13677
13678
13679# Source file extension for C test sources.
13680ac_ext=c
13681
13682# Object file extension for compiled C test sources.
13683objext=o
13684objext=$objext
13685
13686# Code to be used in simple compile tests
13687lt_simple_compile_test_code="int some_variable = 0;"
13688
13689# Code to be used in simple link tests
13690lt_simple_link_test_code='int main(){return(0);}'
13691
13692
13693# If no C compiler was specified, use CC.
13694LTCC=${LTCC-"$CC"}
13695
13696# If no C compiler flags were specified, use CFLAGS.
13697LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13698
13699# Allow CC to be a program name with arguments.
13700compiler=$CC
13701
13702
13703# save warnings/boilerplate of simple test code
13704ac_outfile=conftest.$ac_objext
13705echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13706eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13707_lt_compiler_boilerplate=`cat conftest.err`
13708$rm conftest*
13709
13710ac_outfile=conftest.$ac_objext
13711echo "$lt_simple_link_test_code" >conftest.$ac_ext
13712eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13713_lt_linker_boilerplate=`cat conftest.err`
13714$rm -r conftest*
13715
13716
13717
13718lt_prog_compiler_no_builtin_flag=
13719
13720if test "$GCC" = yes; then
13721  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13722
13723
13724{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13725echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13726if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13727  echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729  lt_cv_prog_compiler_rtti_exceptions=no
13730  ac_outfile=conftest.$ac_objext
13731   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13732   lt_compiler_flag="-fno-rtti -fno-exceptions"
13733   # Insert the option either (1) after the last *FLAGS variable, or
13734   # (2) before a word containing "conftest.", or (3) at the end.
13735   # Note that $ac_compile itself does not contain backslashes and begins
13736   # with a dollar sign (not a hyphen), so the echo should work correctly.
13737   # The option is referenced via a variable to avoid confusing sed.
13738   lt_compile=`echo "$ac_compile" | $SED \
13739   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13740   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13741   -e 's:$: $lt_compiler_flag:'`
13742   (eval echo "\"\$as_me:13742: $lt_compile\"" >&5)
13743   (eval "$lt_compile" 2>conftest.err)
13744   ac_status=$?
13745   cat conftest.err >&5
13746   echo "$as_me:13746: \$? = $ac_status" >&5
13747   if (exit $ac_status) && test -s "$ac_outfile"; then
13748     # The compiler can only warn and ignore the option if not recognized
13749     # So say no if there are warnings other than the usual output.
13750     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13751     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13752     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13753       lt_cv_prog_compiler_rtti_exceptions=yes
13754     fi
13755   fi
13756   $rm conftest*
13757
13758fi
13759{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13760echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13761
13762if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13763    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13764else
13765    :
13766fi
13767
13768fi
13769
13770lt_prog_compiler_wl=
13771lt_prog_compiler_pic=
13772lt_prog_compiler_static=
13773
13774{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13775echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13776
13777  if test "$GCC" = yes; then
13778    lt_prog_compiler_wl='-Wl,'
13779    lt_prog_compiler_static='-static'
13780
13781    case $host_os in
13782      aix*)
13783      # All AIX code is PIC.
13784      if test "$host_cpu" = ia64; then
13785	# AIX 5 now supports IA64 processor
13786	lt_prog_compiler_static='-Bstatic'
13787      fi
13788      ;;
13789
13790    amigaos*)
13791      # FIXME: we need at least 68020 code to build shared libraries, but
13792      # adding the `-m68020' flag to GCC prevents building anything better,
13793      # like `-m68040'.
13794      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13795      ;;
13796
13797    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13798      # PIC is the default for these OSes.
13799      ;;
13800
13801    mingw* | cygwin* | pw32* | os2*)
13802      # This hack is so that the source file can tell whether it is being
13803      # built for inclusion in a dll (and should export symbols for example).
13804      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13805      # (--disable-auto-import) libraries
13806      lt_prog_compiler_pic='-DDLL_EXPORT'
13807      ;;
13808
13809    darwin* | rhapsody*)
13810      # PIC is the default on this platform
13811      # Common symbols not allowed in MH_DYLIB files
13812      lt_prog_compiler_pic='-fno-common'
13813      ;;
13814
13815    interix[3-9]*)
13816      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13817      # Instead, we relocate shared libraries at runtime.
13818      ;;
13819
13820    msdosdjgpp*)
13821      # Just because we use GCC doesn't mean we suddenly get shared libraries
13822      # on systems that don't support them.
13823      lt_prog_compiler_can_build_shared=no
13824      enable_shared=no
13825      ;;
13826
13827    sysv4*MP*)
13828      if test -d /usr/nec; then
13829	lt_prog_compiler_pic=-Kconform_pic
13830      fi
13831      ;;
13832
13833    hpux*)
13834      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835      # not for PA HP-UX.
13836      case $host_cpu in
13837      hppa*64*|ia64*)
13838	# +Z the default
13839	;;
13840      *)
13841	lt_prog_compiler_pic='-fPIC'
13842	;;
13843      esac
13844      ;;
13845
13846    *)
13847      lt_prog_compiler_pic='-fPIC'
13848      ;;
13849    esac
13850  else
13851    # PORTME Check for flag to pass linker flags through the system compiler.
13852    case $host_os in
13853    aix*)
13854      lt_prog_compiler_wl='-Wl,'
13855      if test "$host_cpu" = ia64; then
13856	# AIX 5 now supports IA64 processor
13857	lt_prog_compiler_static='-Bstatic'
13858      else
13859	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13860      fi
13861      ;;
13862      darwin*)
13863        # PIC is the default on this platform
13864        # Common symbols not allowed in MH_DYLIB files
13865       case $cc_basename in
13866         xlc*)
13867         lt_prog_compiler_pic='-qnocommon'
13868         lt_prog_compiler_wl='-Wl,'
13869         ;;
13870       esac
13871       ;;
13872
13873    mingw* | cygwin* | pw32* | os2*)
13874      # This hack is so that the source file can tell whether it is being
13875      # built for inclusion in a dll (and should export symbols for example).
13876      lt_prog_compiler_pic='-DDLL_EXPORT'
13877      ;;
13878
13879    hpux9* | hpux10* | hpux11*)
13880      lt_prog_compiler_wl='-Wl,'
13881      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13882      # not for PA HP-UX.
13883      case $host_cpu in
13884      hppa*64*|ia64*)
13885	# +Z the default
13886	;;
13887      *)
13888	lt_prog_compiler_pic='+Z'
13889	;;
13890      esac
13891      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13892      lt_prog_compiler_static='${wl}-a ${wl}archive'
13893      ;;
13894
13895    irix5* | irix6* | nonstopux*)
13896      lt_prog_compiler_wl='-Wl,'
13897      # PIC (with -KPIC) is the default.
13898      lt_prog_compiler_static='-non_shared'
13899      ;;
13900
13901    newsos6)
13902      lt_prog_compiler_pic='-KPIC'
13903      lt_prog_compiler_static='-Bstatic'
13904      ;;
13905
13906    linux* | k*bsd*-gnu)
13907      case $cc_basename in
13908      icc* | ecc*)
13909	lt_prog_compiler_wl='-Wl,'
13910	lt_prog_compiler_pic='-KPIC'
13911	lt_prog_compiler_static='-static'
13912        ;;
13913      pgcc* | pgf77* | pgf90* | pgf95*)
13914        # Portland Group compilers (*not* the Pentium gcc compiler,
13915	# which looks to be a dead project)
13916	lt_prog_compiler_wl='-Wl,'
13917	lt_prog_compiler_pic='-fpic'
13918	lt_prog_compiler_static='-Bstatic'
13919        ;;
13920      ccc*)
13921        lt_prog_compiler_wl='-Wl,'
13922        # All Alpha code is PIC.
13923        lt_prog_compiler_static='-non_shared'
13924        ;;
13925      *)
13926        case `$CC -V 2>&1 | sed 5q` in
13927	*Sun\ C*)
13928	  # Sun C 5.9
13929	  lt_prog_compiler_pic='-KPIC'
13930	  lt_prog_compiler_static='-Bstatic'
13931	  lt_prog_compiler_wl='-Wl,'
13932	  ;;
13933	*Sun\ F*)
13934	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13935	  lt_prog_compiler_pic='-KPIC'
13936	  lt_prog_compiler_static='-Bstatic'
13937	  lt_prog_compiler_wl=''
13938	  ;;
13939	esac
13940	;;
13941      esac
13942      ;;
13943
13944    osf3* | osf4* | osf5*)
13945      lt_prog_compiler_wl='-Wl,'
13946      # All OSF/1 code is PIC.
13947      lt_prog_compiler_static='-non_shared'
13948      ;;
13949
13950    rdos*)
13951      lt_prog_compiler_static='-non_shared'
13952      ;;
13953
13954    solaris*)
13955      lt_prog_compiler_pic='-KPIC'
13956      lt_prog_compiler_static='-Bstatic'
13957      case $cc_basename in
13958      f77* | f90* | f95*)
13959	lt_prog_compiler_wl='-Qoption ld ';;
13960      *)
13961	lt_prog_compiler_wl='-Wl,';;
13962      esac
13963      ;;
13964
13965    sunos4*)
13966      lt_prog_compiler_wl='-Qoption ld '
13967      lt_prog_compiler_pic='-PIC'
13968      lt_prog_compiler_static='-Bstatic'
13969      ;;
13970
13971    sysv4 | sysv4.2uw2* | sysv4.3*)
13972      lt_prog_compiler_wl='-Wl,'
13973      lt_prog_compiler_pic='-KPIC'
13974      lt_prog_compiler_static='-Bstatic'
13975      ;;
13976
13977    sysv4*MP*)
13978      if test -d /usr/nec ;then
13979	lt_prog_compiler_pic='-Kconform_pic'
13980	lt_prog_compiler_static='-Bstatic'
13981      fi
13982      ;;
13983
13984    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13985      lt_prog_compiler_wl='-Wl,'
13986      lt_prog_compiler_pic='-KPIC'
13987      lt_prog_compiler_static='-Bstatic'
13988      ;;
13989
13990    unicos*)
13991      lt_prog_compiler_wl='-Wl,'
13992      lt_prog_compiler_can_build_shared=no
13993      ;;
13994
13995    uts4*)
13996      lt_prog_compiler_pic='-pic'
13997      lt_prog_compiler_static='-Bstatic'
13998      ;;
13999
14000    *)
14001      lt_prog_compiler_can_build_shared=no
14002      ;;
14003    esac
14004  fi
14005
14006{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14007echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14008
14009#
14010# Check to make sure the PIC flag actually works.
14011#
14012if test -n "$lt_prog_compiler_pic"; then
14013
14014{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14015echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14016if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
14017  echo $ECHO_N "(cached) $ECHO_C" >&6
14018else
14019  lt_cv_prog_compiler_pic_works=no
14020  ac_outfile=conftest.$ac_objext
14021   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14022   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14023   # Insert the option either (1) after the last *FLAGS variable, or
14024   # (2) before a word containing "conftest.", or (3) at the end.
14025   # Note that $ac_compile itself does not contain backslashes and begins
14026   # with a dollar sign (not a hyphen), so the echo should work correctly.
14027   # The option is referenced via a variable to avoid confusing sed.
14028   lt_compile=`echo "$ac_compile" | $SED \
14029   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14031   -e 's:$: $lt_compiler_flag:'`
14032   (eval echo "\"\$as_me:14032: $lt_compile\"" >&5)
14033   (eval "$lt_compile" 2>conftest.err)
14034   ac_status=$?
14035   cat conftest.err >&5
14036   echo "$as_me:14036: \$? = $ac_status" >&5
14037   if (exit $ac_status) && test -s "$ac_outfile"; then
14038     # The compiler can only warn and ignore the option if not recognized
14039     # So say no if there are warnings other than the usual output.
14040     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14041     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14043       lt_cv_prog_compiler_pic_works=yes
14044     fi
14045   fi
14046   $rm conftest*
14047
14048fi
14049{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
14050echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
14051
14052if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14053    case $lt_prog_compiler_pic in
14054     "" | " "*) ;;
14055     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14056     esac
14057else
14058    lt_prog_compiler_pic=
14059     lt_prog_compiler_can_build_shared=no
14060fi
14061
14062fi
14063case $host_os in
14064  # For platforms which do not support PIC, -DPIC is meaningless:
14065  *djgpp*)
14066    lt_prog_compiler_pic=
14067    ;;
14068  *)
14069    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14070    ;;
14071esac
14072
14073#
14074# Check to make sure the static flag actually works.
14075#
14076wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14077{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14078echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14079if test "${lt_cv_prog_compiler_static_works+set}" = set; then
14080  echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082  lt_cv_prog_compiler_static_works=no
14083   save_LDFLAGS="$LDFLAGS"
14084   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14085   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14086   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14087     # The linker can only warn and ignore the option if not recognized
14088     # So say no if there are warnings
14089     if test -s conftest.err; then
14090       # Append any errors to the config.log.
14091       cat conftest.err 1>&5
14092       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14093       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094       if diff conftest.exp conftest.er2 >/dev/null; then
14095         lt_cv_prog_compiler_static_works=yes
14096       fi
14097     else
14098       lt_cv_prog_compiler_static_works=yes
14099     fi
14100   fi
14101   $rm -r conftest*
14102   LDFLAGS="$save_LDFLAGS"
14103
14104fi
14105{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
14106echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
14107
14108if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14109    :
14110else
14111    lt_prog_compiler_static=
14112fi
14113
14114
14115{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14116echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14117if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14118  echo $ECHO_N "(cached) $ECHO_C" >&6
14119else
14120  lt_cv_prog_compiler_c_o=no
14121   $rm -r conftest 2>/dev/null
14122   mkdir conftest
14123   cd conftest
14124   mkdir out
14125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14126
14127   lt_compiler_flag="-o out/conftest2.$ac_objext"
14128   # Insert the option either (1) after the last *FLAGS variable, or
14129   # (2) before a word containing "conftest.", or (3) at the end.
14130   # Note that $ac_compile itself does not contain backslashes and begins
14131   # with a dollar sign (not a hyphen), so the echo should work correctly.
14132   lt_compile=`echo "$ac_compile" | $SED \
14133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135   -e 's:$: $lt_compiler_flag:'`
14136   (eval echo "\"\$as_me:14136: $lt_compile\"" >&5)
14137   (eval "$lt_compile" 2>out/conftest.err)
14138   ac_status=$?
14139   cat out/conftest.err >&5
14140   echo "$as_me:14140: \$? = $ac_status" >&5
14141   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14142   then
14143     # The compiler can only warn and ignore the option if not recognized
14144     # So say no if there are warnings
14145     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14146     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14147     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14148       lt_cv_prog_compiler_c_o=yes
14149     fi
14150   fi
14151   chmod u+w . 2>&5
14152   $rm conftest*
14153   # SGI C++ compiler will create directory out/ii_files/ for
14154   # template instantiation
14155   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14156   $rm out/* && rmdir out
14157   cd ..
14158   rmdir conftest
14159   $rm conftest*
14160
14161fi
14162{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14163echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14164
14165
14166hard_links="nottested"
14167if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14168  # do not overwrite the value of need_locks provided by the user
14169  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14170echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14171  hard_links=yes
14172  $rm conftest*
14173  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14174  touch conftest.a
14175  ln conftest.a conftest.b 2>&5 || hard_links=no
14176  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14177  { echo "$as_me:$LINENO: result: $hard_links" >&5
14178echo "${ECHO_T}$hard_links" >&6; }
14179  if test "$hard_links" = no; then
14180    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14181echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14182    need_locks=warn
14183  fi
14184else
14185  need_locks=no
14186fi
14187
14188{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14189echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14190
14191  runpath_var=
14192  allow_undefined_flag=
14193  enable_shared_with_static_runtimes=no
14194  archive_cmds=
14195  archive_expsym_cmds=
14196  old_archive_From_new_cmds=
14197  old_archive_from_expsyms_cmds=
14198  export_dynamic_flag_spec=
14199  whole_archive_flag_spec=
14200  thread_safe_flag_spec=
14201  hardcode_libdir_flag_spec=
14202  hardcode_libdir_flag_spec_ld=
14203  hardcode_libdir_separator=
14204  hardcode_direct=no
14205  hardcode_minus_L=no
14206  hardcode_shlibpath_var=unsupported
14207  link_all_deplibs=unknown
14208  hardcode_automatic=no
14209  module_cmds=
14210  module_expsym_cmds=
14211  always_export_symbols=no
14212  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14213  # include_expsyms should be a list of space-separated symbols to be *always*
14214  # included in the symbol list
14215  include_expsyms=
14216  # exclude_expsyms can be an extended regexp of symbols to exclude
14217  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14218  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14219  # as well as any symbol that contains `d'.
14220  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14221  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14222  # platforms (ab)use it in PIC code, but their linkers get confused if
14223  # the symbol is explicitly referenced.  Since portable code cannot
14224  # rely on this symbol name, it's probably fine to never include it in
14225  # preloaded symbol tables.
14226  # Exclude shared library initialization/finalization symbols.
14227  extract_expsyms_cmds=
14228  # Just being paranoid about ensuring that cc_basename is set.
14229  for cc_temp in $compiler""; do
14230  case $cc_temp in
14231    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14232    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14233    \-*) ;;
14234    *) break;;
14235  esac
14236done
14237cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14238
14239  case $host_os in
14240  cygwin* | mingw* | pw32*)
14241    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14242    # When not using gcc, we currently assume that we are using
14243    # Microsoft Visual C++.
14244    if test "$GCC" != yes; then
14245      with_gnu_ld=no
14246    fi
14247    ;;
14248  interix*)
14249    # we just hope/assume this is gcc and not c89 (= MSVC++)
14250    with_gnu_ld=yes
14251    ;;
14252  openbsd*)
14253    with_gnu_ld=no
14254    ;;
14255  esac
14256
14257  ld_shlibs=yes
14258  if test "$with_gnu_ld" = yes; then
14259    # If archive_cmds runs LD, not CC, wlarc should be empty
14260    wlarc='${wl}'
14261
14262    # Set some defaults for GNU ld with shared library support. These
14263    # are reset later if shared libraries are not supported. Putting them
14264    # here allows them to be overridden if necessary.
14265    runpath_var=LD_RUN_PATH
14266    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14267    export_dynamic_flag_spec='${wl}--export-dynamic'
14268    # ancient GNU ld didn't support --whole-archive et. al.
14269    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14270	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14271      else
14272  	whole_archive_flag_spec=
14273    fi
14274    supports_anon_versioning=no
14275    case `$LD -v 2>/dev/null` in
14276      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14277      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14278      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14279      *\ 2.11.*) ;; # other 2.11 versions
14280      *) supports_anon_versioning=yes ;;
14281    esac
14282
14283    # See if GNU ld supports shared libraries.
14284    case $host_os in
14285    aix[3-9]*)
14286      # On AIX/PPC, the GNU linker is very broken
14287      if test "$host_cpu" != ia64; then
14288	ld_shlibs=no
14289	cat <<EOF 1>&2
14290
14291*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14292*** to be unable to reliably create shared libraries on AIX.
14293*** Therefore, libtool is disabling shared libraries support.  If you
14294*** really care for shared libraries, you may want to modify your PATH
14295*** so that a non-GNU linker is found, and then restart.
14296
14297EOF
14298      fi
14299      ;;
14300
14301    amigaos*)
14302      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)'
14303      hardcode_libdir_flag_spec='-L$libdir'
14304      hardcode_minus_L=yes
14305
14306      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14307      # that the semantics of dynamic libraries on AmigaOS, at least up
14308      # to version 4, is to share data among multiple programs linked
14309      # with the same dynamic library.  Since this doesn't match the
14310      # behavior of shared libraries on other platforms, we can't use
14311      # them.
14312      ld_shlibs=no
14313      ;;
14314
14315    beos*)
14316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14317	allow_undefined_flag=unsupported
14318	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14319	# support --undefined.  This deserves some investigation.  FIXME
14320	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14321      else
14322	ld_shlibs=no
14323      fi
14324      ;;
14325
14326    cygwin* | mingw* | pw32*)
14327      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14328      # as there is no search path for DLLs.
14329      hardcode_libdir_flag_spec='-L$libdir'
14330      allow_undefined_flag=unsupported
14331      always_export_symbols=no
14332      enable_shared_with_static_runtimes=yes
14333      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14334
14335      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14336        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14337	# If the export-symbols file already is a .def file (1st line
14338	# is EXPORTS), use it as is; otherwise, prepend...
14339	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14340	  cp $export_symbols $output_objdir/$soname.def;
14341	else
14342	  echo EXPORTS > $output_objdir/$soname.def;
14343	  cat $export_symbols >> $output_objdir/$soname.def;
14344	fi~
14345	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14346      else
14347	ld_shlibs=no
14348      fi
14349      ;;
14350
14351    interix[3-9]*)
14352      hardcode_direct=no
14353      hardcode_shlibpath_var=no
14354      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14355      export_dynamic_flag_spec='${wl}-E'
14356      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14357      # Instead, shared libraries are loaded at an image base (0x10000000 by
14358      # default) and relocated if they conflict, which is a slow very memory
14359      # consuming and fragmenting process.  To avoid this, we pick a random,
14360      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14361      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14362      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14363      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'
14364      ;;
14365
14366    gnu* | linux* | k*bsd*-gnu)
14367      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14368	tmp_addflag=
14369	case $cc_basename,$host_cpu in
14370	pgcc*)				# Portland Group C compiler
14371	  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'
14372	  tmp_addflag=' $pic_flag'
14373	  ;;
14374	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14375	  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'
14376	  tmp_addflag=' $pic_flag -Mnomain' ;;
14377	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14378	  tmp_addflag=' -i_dynamic' ;;
14379	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14380	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14381	ifc* | ifort*)			# Intel Fortran compiler
14382	  tmp_addflag=' -nofor_main' ;;
14383	esac
14384	case `$CC -V 2>&1 | sed 5q` in
14385	*Sun\ C*)			# Sun C 5.9
14386	  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'
14387	  tmp_sharedflag='-G' ;;
14388	*Sun\ F*)			# Sun Fortran 8.3
14389	  tmp_sharedflag='-G' ;;
14390	*)
14391	  tmp_sharedflag='-shared' ;;
14392	esac
14393	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14394
14395	if test $supports_anon_versioning = yes; then
14396	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14397  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14398  $echo "local: *; };" >> $output_objdir/$libname.ver~
14399	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14400	fi
14401	link_all_deplibs=no
14402      else
14403	ld_shlibs=no
14404      fi
14405      ;;
14406
14407    netbsd* | netbsdelf*-gnu)
14408      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14409	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14410	wlarc=
14411      else
14412	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14413	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14414      fi
14415      ;;
14416
14417    solaris*)
14418      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14419	ld_shlibs=no
14420	cat <<EOF 1>&2
14421
14422*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14423*** create shared libraries on Solaris systems.  Therefore, libtool
14424*** is disabling shared libraries support.  We urge you to upgrade GNU
14425*** binutils to release 2.9.1 or newer.  Another option is to modify
14426*** your PATH or compiler configuration so that the native linker is
14427*** used, and then restart.
14428
14429EOF
14430      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14431	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14432	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14433      else
14434	ld_shlibs=no
14435      fi
14436      ;;
14437
14438    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14439      case `$LD -v 2>&1` in
14440        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14441	ld_shlibs=no
14442	cat <<_LT_EOF 1>&2
14443
14444*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14445*** reliably create shared libraries on SCO systems.  Therefore, libtool
14446*** is disabling shared libraries support.  We urge you to upgrade GNU
14447*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14448*** your PATH or compiler configuration so that the native linker is
14449*** used, and then restart.
14450
14451_LT_EOF
14452	;;
14453	*)
14454	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14455	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14456	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14457	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14458	  else
14459	    ld_shlibs=no
14460	  fi
14461	;;
14462      esac
14463      ;;
14464
14465    sunos4*)
14466      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14467      wlarc=
14468      hardcode_direct=yes
14469      hardcode_shlibpath_var=no
14470      ;;
14471
14472    *)
14473      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14474	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14476      else
14477	ld_shlibs=no
14478      fi
14479      ;;
14480    esac
14481
14482    if test "$ld_shlibs" = no; then
14483      runpath_var=
14484      hardcode_libdir_flag_spec=
14485      export_dynamic_flag_spec=
14486      whole_archive_flag_spec=
14487    fi
14488  else
14489    # PORTME fill in a description of your system's linker (not GNU ld)
14490    case $host_os in
14491    aix3*)
14492      allow_undefined_flag=unsupported
14493      always_export_symbols=yes
14494      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'
14495      # Note: this linker hardcodes the directories in LIBPATH if there
14496      # are no directories specified by -L.
14497      hardcode_minus_L=yes
14498      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14499	# Neither direct hardcoding nor static linking is supported with a
14500	# broken collect2.
14501	hardcode_direct=unsupported
14502      fi
14503      ;;
14504
14505    aix[4-9]*)
14506      if test "$host_cpu" = ia64; then
14507	# On IA64, the linker does run time linking by default, so we don't
14508	# have to do anything special.
14509	aix_use_runtimelinking=no
14510	exp_sym_flag='-Bexport'
14511	no_entry_flag=""
14512      else
14513	# If we're using GNU nm, then we don't want the "-C" option.
14514	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14515	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14516	  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'
14517	else
14518	  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'
14519	fi
14520	aix_use_runtimelinking=no
14521
14522	# Test if we are trying to use run time linking or normal
14523	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14524	# need to do runtime linking.
14525	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14526	  for ld_flag in $LDFLAGS; do
14527  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14528  	    aix_use_runtimelinking=yes
14529  	    break
14530  	  fi
14531	  done
14532	  ;;
14533	esac
14534
14535	exp_sym_flag='-bexport'
14536	no_entry_flag='-bnoentry'
14537      fi
14538
14539      # When large executables or shared objects are built, AIX ld can
14540      # have problems creating the table of contents.  If linking a library
14541      # or program results in "error TOC overflow" add -mminimal-toc to
14542      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14543      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14544
14545      archive_cmds=''
14546      hardcode_direct=yes
14547      hardcode_libdir_separator=':'
14548      link_all_deplibs=yes
14549
14550      if test "$GCC" = yes; then
14551	case $host_os in aix4.[012]|aix4.[012].*)
14552	# We only want to do this on AIX 4.2 and lower, the check
14553	# below for broken collect2 doesn't work under 4.3+
14554	  collect2name=`${CC} -print-prog-name=collect2`
14555	  if test -f "$collect2name" && \
14556  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14557	  then
14558  	  # We have reworked collect2
14559  	  :
14560	  else
14561  	  # We have old collect2
14562  	  hardcode_direct=unsupported
14563  	  # It fails to find uninstalled libraries when the uninstalled
14564  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14565  	  # to unsupported forces relinking
14566  	  hardcode_minus_L=yes
14567  	  hardcode_libdir_flag_spec='-L$libdir'
14568  	  hardcode_libdir_separator=
14569	  fi
14570	  ;;
14571	esac
14572	shared_flag='-shared'
14573	if test "$aix_use_runtimelinking" = yes; then
14574	  shared_flag="$shared_flag "'${wl}-G'
14575	fi
14576      else
14577	# not using gcc
14578	if test "$host_cpu" = ia64; then
14579  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14580  	# chokes on -Wl,-G. The following line is correct:
14581	  shared_flag='-G'
14582	else
14583	  if test "$aix_use_runtimelinking" = yes; then
14584	    shared_flag='${wl}-G'
14585	  else
14586	    shared_flag='${wl}-bM:SRE'
14587	  fi
14588	fi
14589      fi
14590
14591      # It seems that -bexpall does not export symbols beginning with
14592      # underscore (_), so it is better to generate a list of symbols to export.
14593      always_export_symbols=yes
14594      if test "$aix_use_runtimelinking" = yes; then
14595	# Warning - without using the other runtime loading flags (-brtl),
14596	# -berok will link without error, but may produce a broken library.
14597	allow_undefined_flag='-berok'
14598       # Determine the default libpath from the value encoded in an empty executable.
14599       cat >conftest.$ac_ext <<_ACEOF
14600/* confdefs.h.  */
14601_ACEOF
14602cat confdefs.h >>conftest.$ac_ext
14603cat >>conftest.$ac_ext <<_ACEOF
14604/* end confdefs.h.  */
14605
14606int
14607main ()
14608{
14609
14610  ;
14611  return 0;
14612}
14613_ACEOF
14614rm -f conftest.$ac_objext conftest$ac_exeext
14615if { (ac_try="$ac_link"
14616case "(($ac_try" in
14617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618  *) ac_try_echo=$ac_try;;
14619esac
14620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621  (eval "$ac_link") 2>conftest.er1
14622  ac_status=$?
14623  grep -v '^ *+' conftest.er1 >conftest.err
14624  rm -f conftest.er1
14625  cat conftest.err >&5
14626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627  (exit $ac_status); } && {
14628	 test -z "$ac_c_werror_flag" ||
14629	 test ! -s conftest.err
14630       } && test -s conftest$ac_exeext &&
14631       $as_test_x conftest$ac_exeext; then
14632
14633lt_aix_libpath_sed='
14634    /Import File Strings/,/^$/ {
14635	/^0/ {
14636	    s/^0  *\(.*\)$/\1/
14637	    p
14638	}
14639    }'
14640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641# Check for a 64-bit object if we didn't find anything.
14642if test -z "$aix_libpath"; then
14643  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14644fi
14645else
14646  echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649
14650fi
14651
14652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14653      conftest$ac_exeext conftest.$ac_ext
14654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14655
14656       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14657	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"
14658       else
14659	if test "$host_cpu" = ia64; then
14660	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14661	  allow_undefined_flag="-z nodefs"
14662	  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"
14663	else
14664	 # Determine the default libpath from the value encoded in an empty executable.
14665	 cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h.  */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h.  */
14671
14672int
14673main ()
14674{
14675
14676  ;
14677  return 0;
14678}
14679_ACEOF
14680rm -f conftest.$ac_objext conftest$ac_exeext
14681if { (ac_try="$ac_link"
14682case "(($ac_try" in
14683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684  *) ac_try_echo=$ac_try;;
14685esac
14686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687  (eval "$ac_link") 2>conftest.er1
14688  ac_status=$?
14689  grep -v '^ *+' conftest.er1 >conftest.err
14690  rm -f conftest.er1
14691  cat conftest.err >&5
14692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693  (exit $ac_status); } && {
14694	 test -z "$ac_c_werror_flag" ||
14695	 test ! -s conftest.err
14696       } && test -s conftest$ac_exeext &&
14697       $as_test_x conftest$ac_exeext; then
14698
14699lt_aix_libpath_sed='
14700    /Import File Strings/,/^$/ {
14701	/^0/ {
14702	    s/^0  *\(.*\)$/\1/
14703	    p
14704	}
14705    }'
14706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14707# Check for a 64-bit object if we didn't find anything.
14708if test -z "$aix_libpath"; then
14709  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14710fi
14711else
14712  echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715
14716fi
14717
14718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14719      conftest$ac_exeext conftest.$ac_ext
14720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14721
14722	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14723	  # Warning - without using the other run time loading flags,
14724	  # -berok will link without error, but may produce a broken library.
14725	  no_undefined_flag=' ${wl}-bernotok'
14726	  allow_undefined_flag=' ${wl}-berok'
14727	  # Exported symbols can be pulled into shared objects from archives
14728	  whole_archive_flag_spec='$convenience'
14729	  archive_cmds_need_lc=yes
14730	  # This is similar to how AIX traditionally builds its shared libraries.
14731	  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'
14732	fi
14733      fi
14734      ;;
14735
14736    amigaos*)
14737      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)'
14738      hardcode_libdir_flag_spec='-L$libdir'
14739      hardcode_minus_L=yes
14740      # see comment about different semantics on the GNU ld section
14741      ld_shlibs=no
14742      ;;
14743
14744    bsdi[45]*)
14745      export_dynamic_flag_spec=-rdynamic
14746      ;;
14747
14748    cygwin* | mingw* | pw32*)
14749      # When not using gcc, we currently assume that we are using
14750      # Microsoft Visual C++.
14751      # hardcode_libdir_flag_spec is actually meaningless, as there is
14752      # no search path for DLLs.
14753      hardcode_libdir_flag_spec=' '
14754      allow_undefined_flag=unsupported
14755      # Tell ltmain to make .lib files, not .a files.
14756      libext=lib
14757      # Tell ltmain to make .dll files, not .so files.
14758      shrext_cmds=".dll"
14759      # FIXME: Setting linknames here is a bad hack.
14760      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14761      # The linker will automatically build a .lib file if we build a DLL.
14762      old_archive_From_new_cmds='true'
14763      # FIXME: Should let the user specify the lib program.
14764      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14765      fix_srcfile_path='`cygpath -w "$srcfile"`'
14766      enable_shared_with_static_runtimes=yes
14767      ;;
14768
14769    darwin* | rhapsody*)
14770      case $host_os in
14771        rhapsody* | darwin1.[012])
14772         allow_undefined_flag='${wl}-undefined ${wl}suppress'
14773         ;;
14774       *) # Darwin 1.3 on
14775         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14776           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14777         else
14778           case ${MACOSX_DEPLOYMENT_TARGET} in
14779             10.[012])
14780               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14781               ;;
14782             10.*)
14783               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14784               ;;
14785           esac
14786         fi
14787         ;;
14788      esac
14789      archive_cmds_need_lc=no
14790      hardcode_direct=no
14791      hardcode_automatic=yes
14792      hardcode_shlibpath_var=unsupported
14793      whole_archive_flag_spec=''
14794      link_all_deplibs=yes
14795    if test "$GCC" = yes ; then
14796    	output_verbose_link_cmd='echo'
14797        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14798        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14799        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14800        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14801    else
14802      case $cc_basename in
14803        xlc*)
14804         output_verbose_link_cmd='echo'
14805         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14806         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14807          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14808         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14809          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}'
14810          ;;
14811       *)
14812         ld_shlibs=no
14813          ;;
14814      esac
14815    fi
14816      ;;
14817
14818    dgux*)
14819      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14820      hardcode_libdir_flag_spec='-L$libdir'
14821      hardcode_shlibpath_var=no
14822      ;;
14823
14824    freebsd1*)
14825      ld_shlibs=no
14826      ;;
14827
14828    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14829    # support.  Future versions do this automatically, but an explicit c++rt0.o
14830    # does not break anything, and helps significantly (at the cost of a little
14831    # extra space).
14832    freebsd2.2*)
14833      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14834      hardcode_libdir_flag_spec='-R$libdir'
14835      hardcode_direct=yes
14836      hardcode_shlibpath_var=no
14837      ;;
14838
14839    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14840    freebsd2*)
14841      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14842      hardcode_direct=yes
14843      hardcode_minus_L=yes
14844      hardcode_shlibpath_var=no
14845      ;;
14846
14847    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14848    freebsd* | dragonfly*)
14849      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14850      hardcode_libdir_flag_spec='-R$libdir'
14851      hardcode_direct=yes
14852      hardcode_shlibpath_var=no
14853      ;;
14854
14855    hpux9*)
14856      if test "$GCC" = yes; then
14857	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'
14858      else
14859	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'
14860      fi
14861      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14862      hardcode_libdir_separator=:
14863      hardcode_direct=yes
14864
14865      # hardcode_minus_L: Not really in the search PATH,
14866      # but as the default location of the library.
14867      hardcode_minus_L=yes
14868      export_dynamic_flag_spec='${wl}-E'
14869      ;;
14870
14871    hpux10*)
14872      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14873	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14874      else
14875	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14876      fi
14877      if test "$with_gnu_ld" = no; then
14878	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14879	hardcode_libdir_separator=:
14880
14881	hardcode_direct=yes
14882	export_dynamic_flag_spec='${wl}-E'
14883
14884	# hardcode_minus_L: Not really in the search PATH,
14885	# but as the default location of the library.
14886	hardcode_minus_L=yes
14887      fi
14888      ;;
14889
14890    hpux11*)
14891      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14892	case $host_cpu in
14893	hppa*64*)
14894	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14895	  ;;
14896	ia64*)
14897	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14898	  ;;
14899	*)
14900	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14901	  ;;
14902	esac
14903      else
14904	case $host_cpu in
14905	hppa*64*)
14906	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14907	  ;;
14908	ia64*)
14909	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14910	  ;;
14911	*)
14912	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14913	  ;;
14914	esac
14915      fi
14916      if test "$with_gnu_ld" = no; then
14917	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14918	hardcode_libdir_separator=:
14919
14920	case $host_cpu in
14921	hppa*64*|ia64*)
14922	  hardcode_libdir_flag_spec_ld='+b $libdir'
14923	  hardcode_direct=no
14924	  hardcode_shlibpath_var=no
14925	  ;;
14926	*)
14927	  hardcode_direct=yes
14928	  export_dynamic_flag_spec='${wl}-E'
14929
14930	  # hardcode_minus_L: Not really in the search PATH,
14931	  # but as the default location of the library.
14932	  hardcode_minus_L=yes
14933	  ;;
14934	esac
14935      fi
14936      ;;
14937
14938    irix5* | irix6* | nonstopux*)
14939      if test "$GCC" = yes; then
14940	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'
14941      else
14942	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'
14943	hardcode_libdir_flag_spec_ld='-rpath $libdir'
14944      fi
14945      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14946      hardcode_libdir_separator=:
14947      link_all_deplibs=yes
14948      ;;
14949
14950    netbsd* | netbsdelf*-gnu)
14951      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14952	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14953      else
14954	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14955      fi
14956      hardcode_libdir_flag_spec='-R$libdir'
14957      hardcode_direct=yes
14958      hardcode_shlibpath_var=no
14959      ;;
14960
14961    newsos6)
14962      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963      hardcode_direct=yes
14964      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14965      hardcode_libdir_separator=:
14966      hardcode_shlibpath_var=no
14967      ;;
14968
14969    openbsd*)
14970      if test -f /usr/libexec/ld.so; then
14971	hardcode_direct=yes
14972	hardcode_shlibpath_var=no
14973	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14974	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14975	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14976	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14977	  export_dynamic_flag_spec='${wl}-E'
14978	else
14979	  case $host_os in
14980	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14981	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14982	     hardcode_libdir_flag_spec='-R$libdir'
14983	     ;;
14984	   *)
14985	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14986	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14987	     ;;
14988	  esac
14989        fi
14990      else
14991	ld_shlibs=no
14992      fi
14993      ;;
14994
14995    os2*)
14996      hardcode_libdir_flag_spec='-L$libdir'
14997      hardcode_minus_L=yes
14998      allow_undefined_flag=unsupported
14999      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'
15000      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15001      ;;
15002
15003    osf3*)
15004      if test "$GCC" = yes; then
15005	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15006	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'
15007      else
15008	allow_undefined_flag=' -expect_unresolved \*'
15009	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'
15010      fi
15011      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15012      hardcode_libdir_separator=:
15013      ;;
15014
15015    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15016      if test "$GCC" = yes; then
15017	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15018	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'
15019	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15020      else
15021	allow_undefined_flag=' -expect_unresolved \*'
15022	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'
15023	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15024	$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'
15025
15026	# Both c and cxx compiler support -rpath directly
15027	hardcode_libdir_flag_spec='-rpath $libdir'
15028      fi
15029      hardcode_libdir_separator=:
15030      ;;
15031
15032    solaris*)
15033      no_undefined_flag=' -z text'
15034      if test "$GCC" = yes; then
15035	wlarc='${wl}'
15036	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15037	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15038	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15039      else
15040	wlarc=''
15041	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15042	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15043  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15044      fi
15045      hardcode_libdir_flag_spec='-R$libdir'
15046      hardcode_shlibpath_var=no
15047      case $host_os in
15048      solaris2.[0-5] | solaris2.[0-5].*) ;;
15049      *)
15050	# The compiler driver will combine and reorder linker options,
15051	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15052	# but is careful enough not to reorder.
15053 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15054	if test "$GCC" = yes; then
15055	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15056	else
15057	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15058	fi
15059	;;
15060      esac
15061      link_all_deplibs=yes
15062      ;;
15063
15064    sunos4*)
15065      if test "x$host_vendor" = xsequent; then
15066	# Use $CC to link under sequent, because it throws in some extra .o
15067	# files that make .init and .fini sections work.
15068	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15069      else
15070	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15071      fi
15072      hardcode_libdir_flag_spec='-L$libdir'
15073      hardcode_direct=yes
15074      hardcode_minus_L=yes
15075      hardcode_shlibpath_var=no
15076      ;;
15077
15078    sysv4)
15079      case $host_vendor in
15080	sni)
15081	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15082	  hardcode_direct=yes # is this really true???
15083	;;
15084	siemens)
15085	  ## LD is ld it makes a PLAMLIB
15086	  ## CC just makes a GrossModule.
15087	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15088	  reload_cmds='$CC -r -o $output$reload_objs'
15089	  hardcode_direct=no
15090        ;;
15091	motorola)
15092	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15094	;;
15095      esac
15096      runpath_var='LD_RUN_PATH'
15097      hardcode_shlibpath_var=no
15098      ;;
15099
15100    sysv4.3*)
15101      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15102      hardcode_shlibpath_var=no
15103      export_dynamic_flag_spec='-Bexport'
15104      ;;
15105
15106    sysv4*MP*)
15107      if test -d /usr/nec; then
15108	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109	hardcode_shlibpath_var=no
15110	runpath_var=LD_RUN_PATH
15111	hardcode_runpath_var=yes
15112	ld_shlibs=yes
15113      fi
15114      ;;
15115
15116    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15117      no_undefined_flag='${wl}-z,text'
15118      archive_cmds_need_lc=no
15119      hardcode_shlibpath_var=no
15120      runpath_var='LD_RUN_PATH'
15121
15122      if test "$GCC" = yes; then
15123	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15124	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125      else
15126	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128      fi
15129      ;;
15130
15131    sysv5* | sco3.2v5* | sco5v6*)
15132      # Note: We can NOT use -z defs as we might desire, because we do not
15133      # link with -lc, and that would cause any symbols used from libc to
15134      # always be unresolved, which means just about no library would
15135      # ever link correctly.  If we're not using GNU ld we use -z text
15136      # though, which does catch some bad symbols but isn't as heavy-handed
15137      # as -z defs.
15138      no_undefined_flag='${wl}-z,text'
15139      allow_undefined_flag='${wl}-z,nodefs'
15140      archive_cmds_need_lc=no
15141      hardcode_shlibpath_var=no
15142      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15143      hardcode_libdir_separator=':'
15144      link_all_deplibs=yes
15145      export_dynamic_flag_spec='${wl}-Bexport'
15146      runpath_var='LD_RUN_PATH'
15147
15148      if test "$GCC" = yes; then
15149	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15150	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151      else
15152	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154      fi
15155      ;;
15156
15157    uts4*)
15158      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159      hardcode_libdir_flag_spec='-L$libdir'
15160      hardcode_shlibpath_var=no
15161      ;;
15162
15163    *)
15164      ld_shlibs=no
15165      ;;
15166    esac
15167  fi
15168
15169{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15170echo "${ECHO_T}$ld_shlibs" >&6; }
15171test "$ld_shlibs" = no && can_build_shared=no
15172
15173#
15174# Do we need to explicitly link libc?
15175#
15176case "x$archive_cmds_need_lc" in
15177x|xyes)
15178  # Assume -lc should be added
15179  archive_cmds_need_lc=yes
15180
15181  if test "$enable_shared" = yes && test "$GCC" = yes; then
15182    case $archive_cmds in
15183    *'~'*)
15184      # FIXME: we may have to deal with multi-command sequences.
15185      ;;
15186    '$CC '*)
15187      # Test whether the compiler implicitly links with -lc since on some
15188      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15189      # to ld, don't add -lc before -lgcc.
15190      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15191echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15192      $rm conftest*
15193      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15194
15195      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15196  (eval $ac_compile) 2>&5
15197  ac_status=$?
15198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199  (exit $ac_status); } 2>conftest.err; then
15200        soname=conftest
15201        lib=conftest
15202        libobjs=conftest.$ac_objext
15203        deplibs=
15204        wl=$lt_prog_compiler_wl
15205	pic_flag=$lt_prog_compiler_pic
15206        compiler_flags=-v
15207        linker_flags=-v
15208        verstring=
15209        output_objdir=.
15210        libname=conftest
15211        lt_save_allow_undefined_flag=$allow_undefined_flag
15212        allow_undefined_flag=
15213        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15214  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15215  ac_status=$?
15216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217  (exit $ac_status); }
15218        then
15219	  archive_cmds_need_lc=no
15220        else
15221	  archive_cmds_need_lc=yes
15222        fi
15223        allow_undefined_flag=$lt_save_allow_undefined_flag
15224      else
15225        cat conftest.err 1>&5
15226      fi
15227      $rm conftest*
15228      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15229echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15230      ;;
15231    esac
15232  fi
15233  ;;
15234esac
15235
15236{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15237echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15238library_names_spec=
15239libname_spec='lib$name'
15240soname_spec=
15241shrext_cmds=".so"
15242postinstall_cmds=
15243postuninstall_cmds=
15244finish_cmds=
15245finish_eval=
15246shlibpath_var=
15247shlibpath_overrides_runpath=unknown
15248version_type=none
15249dynamic_linker="$host_os ld.so"
15250sys_lib_dlsearch_path_spec="/lib /usr/lib"
15251
15252if test "$GCC" = yes; then
15253  case $host_os in
15254    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15255    *) lt_awk_arg="/^libraries:/" ;;
15256  esac
15257  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15258  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
15259    # if the path contains ";" then we assume it to be the separator
15260    # otherwise default to the standard path separator (i.e. ":") - it is
15261    # assumed that no part of a normal pathname contains ";" but that should
15262    # okay in the real world where ";" in dirpaths is itself problematic.
15263    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15264  else
15265    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15266  fi
15267  # Ok, now we have the path, separated by spaces, we can step through it
15268  # and add multilib dir if necessary.
15269  lt_tmp_lt_search_path_spec=
15270  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15271  for lt_sys_path in $lt_search_path_spec; do
15272    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15273      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15274    else
15275      test -d "$lt_sys_path" && \
15276	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15277    fi
15278  done
15279  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15280BEGIN {RS=" "; FS="/|\n";} {
15281  lt_foo="";
15282  lt_count=0;
15283  for (lt_i = NF; lt_i > 0; lt_i--) {
15284    if ($lt_i != "" && $lt_i != ".") {
15285      if ($lt_i == "..") {
15286        lt_count++;
15287      } else {
15288        if (lt_count == 0) {
15289          lt_foo="/" $lt_i lt_foo;
15290        } else {
15291          lt_count--;
15292        }
15293      }
15294    }
15295  }
15296  if (lt_foo != "") { lt_freq[lt_foo]++; }
15297  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15298}'`
15299  sys_lib_search_path_spec=`echo $lt_search_path_spec`
15300else
15301  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15302fi
15303need_lib_prefix=unknown
15304hardcode_into_libs=no
15305
15306# when you set need_version to no, make sure it does not cause -set_version
15307# flags to be left without arguments
15308need_version=unknown
15309
15310case $host_os in
15311aix3*)
15312  version_type=linux
15313  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15314  shlibpath_var=LIBPATH
15315
15316  # AIX 3 has no versioning support, so we append a major version to the name.
15317  soname_spec='${libname}${release}${shared_ext}$major'
15318  ;;
15319
15320aix[4-9]*)
15321  version_type=linux
15322  need_lib_prefix=no
15323  need_version=no
15324  hardcode_into_libs=yes
15325  if test "$host_cpu" = ia64; then
15326    # AIX 5 supports IA64
15327    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15328    shlibpath_var=LD_LIBRARY_PATH
15329  else
15330    # With GCC up to 2.95.x, collect2 would create an import file
15331    # for dependence libraries.  The import file would start with
15332    # the line `#! .'.  This would cause the generated library to
15333    # depend on `.', always an invalid library.  This was fixed in
15334    # development snapshots of GCC prior to 3.0.
15335    case $host_os in
15336      aix4 | aix4.[01] | aix4.[01].*)
15337      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15338	   echo ' yes '
15339	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15340	:
15341      else
15342	can_build_shared=no
15343      fi
15344      ;;
15345    esac
15346    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15347    # soname into executable. Probably we can add versioning support to
15348    # collect2, so additional links can be useful in future.
15349    if test "$aix_use_runtimelinking" = yes; then
15350      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15351      # instead of lib<name>.a to let people know that these are not
15352      # typical AIX shared libraries.
15353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354    else
15355      # We preserve .a as extension for shared libraries through AIX4.2
15356      # and later when we are not doing run time linking.
15357      library_names_spec='${libname}${release}.a $libname.a'
15358      soname_spec='${libname}${release}${shared_ext}$major'
15359    fi
15360    shlibpath_var=LIBPATH
15361  fi
15362  ;;
15363
15364amigaos*)
15365  library_names_spec='$libname.ixlibrary $libname.a'
15366  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15367  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'
15368  ;;
15369
15370beos*)
15371  library_names_spec='${libname}${shared_ext}'
15372  dynamic_linker="$host_os ld.so"
15373  shlibpath_var=LIBRARY_PATH
15374  ;;
15375
15376bsdi[45]*)
15377  version_type=linux
15378  need_version=no
15379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380  soname_spec='${libname}${release}${shared_ext}$major'
15381  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15382  shlibpath_var=LD_LIBRARY_PATH
15383  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15384  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15385  # the default ld.so.conf also contains /usr/contrib/lib and
15386  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15387  # libtool to hard-code these into programs
15388  ;;
15389
15390cygwin* | mingw* | pw32*)
15391  version_type=windows
15392  shrext_cmds=".dll"
15393  need_version=no
15394  need_lib_prefix=no
15395
15396  case $GCC,$host_os in
15397  yes,cygwin* | yes,mingw* | yes,pw32*)
15398    library_names_spec='$libname.dll.a'
15399    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15400    postinstall_cmds='base_file=`basename \${file}`~
15401      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15402      dldir=$destdir/`dirname \$dlpath`~
15403      test -d \$dldir || mkdir -p \$dldir~
15404      $install_prog $dir/$dlname \$dldir/$dlname~
15405      chmod a+x \$dldir/$dlname'
15406    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15407      dlpath=$dir/\$dldll~
15408       $rm \$dlpath'
15409    shlibpath_overrides_runpath=yes
15410
15411    case $host_os in
15412    cygwin*)
15413      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15414      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15415      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15416      ;;
15417    mingw*)
15418      # MinGW DLLs use traditional 'lib' prefix
15419      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15421      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15422        # It is most probably a Windows format PATH printed by
15423        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15424        # path with ; separators, and with drive letters. We can handle the
15425        # drive letters (cygwin fileutils understands them), so leave them,
15426        # especially as we might pass files found there to a mingw objdump,
15427        # which wouldn't understand a cygwinified path. Ahh.
15428        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15429      else
15430        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15431      fi
15432      ;;
15433    pw32*)
15434      # pw32 DLLs use 'pw' prefix rather than 'lib'
15435      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15436      ;;
15437    esac
15438    ;;
15439
15440  *)
15441    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15442    ;;
15443  esac
15444  dynamic_linker='Win32 ld.exe'
15445  # FIXME: first we should search . and the directory the executable is in
15446  shlibpath_var=PATH
15447  ;;
15448
15449darwin* | rhapsody*)
15450  dynamic_linker="$host_os dyld"
15451  version_type=darwin
15452  need_lib_prefix=no
15453  need_version=no
15454  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15455  soname_spec='${libname}${release}${major}$shared_ext'
15456  shlibpath_overrides_runpath=yes
15457  shlibpath_var=DYLD_LIBRARY_PATH
15458  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15459
15460  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15461  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15462  ;;
15463
15464dgux*)
15465  version_type=linux
15466  need_lib_prefix=no
15467  need_version=no
15468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15469  soname_spec='${libname}${release}${shared_ext}$major'
15470  shlibpath_var=LD_LIBRARY_PATH
15471  ;;
15472
15473freebsd1*)
15474  dynamic_linker=no
15475  ;;
15476
15477freebsd* | dragonfly*)
15478  # DragonFly does not have aout.  When/if they implement a new
15479  # versioning mechanism, adjust this.
15480  if test -x /usr/bin/objformat; then
15481    objformat=`/usr/bin/objformat`
15482  else
15483    case $host_os in
15484    freebsd[123]*) objformat=aout ;;
15485    *) objformat=elf ;;
15486    esac
15487  fi
15488  version_type=freebsd-$objformat
15489  case $version_type in
15490    freebsd-elf*)
15491      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15492      need_version=no
15493      need_lib_prefix=no
15494      ;;
15495    freebsd-*)
15496      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15497      need_version=yes
15498      ;;
15499  esac
15500  shlibpath_var=LD_LIBRARY_PATH
15501  case $host_os in
15502  freebsd2*)
15503    shlibpath_overrides_runpath=yes
15504    ;;
15505  freebsd3.[01]* | freebsdelf3.[01]*)
15506    shlibpath_overrides_runpath=yes
15507    hardcode_into_libs=yes
15508    ;;
15509  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15510  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15511    shlibpath_overrides_runpath=no
15512    hardcode_into_libs=yes
15513    ;;
15514  *) # from 4.6 on, and DragonFly
15515    shlibpath_overrides_runpath=yes
15516    hardcode_into_libs=yes
15517    ;;
15518  esac
15519  ;;
15520
15521gnu*)
15522  version_type=linux
15523  need_lib_prefix=no
15524  need_version=no
15525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15526  soname_spec='${libname}${release}${shared_ext}$major'
15527  shlibpath_var=LD_LIBRARY_PATH
15528  hardcode_into_libs=yes
15529  ;;
15530
15531hpux9* | hpux10* | hpux11*)
15532  # Give a soname corresponding to the major version so that dld.sl refuses to
15533  # link against other versions.
15534  version_type=sunos
15535  need_lib_prefix=no
15536  need_version=no
15537  case $host_cpu in
15538  ia64*)
15539    shrext_cmds='.so'
15540    hardcode_into_libs=yes
15541    dynamic_linker="$host_os dld.so"
15542    shlibpath_var=LD_LIBRARY_PATH
15543    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545    soname_spec='${libname}${release}${shared_ext}$major'
15546    if test "X$HPUX_IA64_MODE" = X32; then
15547      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15548    else
15549      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15550    fi
15551    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15552    ;;
15553   hppa*64*)
15554     shrext_cmds='.sl'
15555     hardcode_into_libs=yes
15556     dynamic_linker="$host_os dld.sl"
15557     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560     soname_spec='${libname}${release}${shared_ext}$major'
15561     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15563     ;;
15564   *)
15565    shrext_cmds='.sl'
15566    dynamic_linker="$host_os dld.sl"
15567    shlibpath_var=SHLIB_PATH
15568    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15569    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570    soname_spec='${libname}${release}${shared_ext}$major'
15571    ;;
15572  esac
15573  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15574  postinstall_cmds='chmod 555 $lib'
15575  ;;
15576
15577interix[3-9]*)
15578  version_type=linux
15579  need_lib_prefix=no
15580  need_version=no
15581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15582  soname_spec='${libname}${release}${shared_ext}$major'
15583  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15584  shlibpath_var=LD_LIBRARY_PATH
15585  shlibpath_overrides_runpath=no
15586  hardcode_into_libs=yes
15587  ;;
15588
15589irix5* | irix6* | nonstopux*)
15590  case $host_os in
15591    nonstopux*) version_type=nonstopux ;;
15592    *)
15593	if test "$lt_cv_prog_gnu_ld" = yes; then
15594		version_type=linux
15595	else
15596		version_type=irix
15597	fi ;;
15598  esac
15599  need_lib_prefix=no
15600  need_version=no
15601  soname_spec='${libname}${release}${shared_ext}$major'
15602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15603  case $host_os in
15604  irix5* | nonstopux*)
15605    libsuff= shlibsuff=
15606    ;;
15607  *)
15608    case $LD in # libtool.m4 will add one of these switches to LD
15609    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15610      libsuff= shlibsuff= libmagic=32-bit;;
15611    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15612      libsuff=32 shlibsuff=N32 libmagic=N32;;
15613    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15614      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15615    *) libsuff= shlibsuff= libmagic=never-match;;
15616    esac
15617    ;;
15618  esac
15619  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15620  shlibpath_overrides_runpath=no
15621  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15622  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15623  hardcode_into_libs=yes
15624  ;;
15625
15626# No shared lib support for Linux oldld, aout, or coff.
15627linux*oldld* | linux*aout* | linux*coff*)
15628  dynamic_linker=no
15629  ;;
15630
15631# This must be Linux ELF.
15632linux* | k*bsd*-gnu)
15633  version_type=linux
15634  need_lib_prefix=no
15635  need_version=no
15636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637  soname_spec='${libname}${release}${shared_ext}$major'
15638  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15639  shlibpath_var=LD_LIBRARY_PATH
15640  shlibpath_overrides_runpath=no
15641  # This implies no fast_install, which is unacceptable.
15642  # Some rework will be needed to allow for fast_install
15643  # before this can be enabled.
15644  hardcode_into_libs=yes
15645
15646  # Append ld.so.conf contents to the search path
15647  if test -f /etc/ld.so.conf; then
15648    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15649    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15650  fi
15651
15652  # We used to test for /lib/ld.so.1 and disable shared libraries on
15653  # powerpc, because MkLinux only supported shared libraries with the
15654  # GNU dynamic linker.  Since this was broken with cross compilers,
15655  # most powerpc-linux boxes support dynamic linking these days and
15656  # people can always --disable-shared, the test was removed, and we
15657  # assume the GNU/Linux dynamic linker is in use.
15658  dynamic_linker='GNU/Linux ld.so'
15659  ;;
15660
15661netbsdelf*-gnu)
15662  version_type=linux
15663  need_lib_prefix=no
15664  need_version=no
15665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15666  soname_spec='${libname}${release}${shared_ext}$major'
15667  shlibpath_var=LD_LIBRARY_PATH
15668  shlibpath_overrides_runpath=no
15669  hardcode_into_libs=yes
15670  dynamic_linker='NetBSD ld.elf_so'
15671  ;;
15672
15673netbsd*)
15674  version_type=sunos
15675  need_lib_prefix=no
15676  need_version=no
15677  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15679    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15680    dynamic_linker='NetBSD (a.out) ld.so'
15681  else
15682    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683    soname_spec='${libname}${release}${shared_ext}$major'
15684    dynamic_linker='NetBSD ld.elf_so'
15685  fi
15686  shlibpath_var=LD_LIBRARY_PATH
15687  shlibpath_overrides_runpath=yes
15688  hardcode_into_libs=yes
15689  ;;
15690
15691newsos6)
15692  version_type=linux
15693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694  shlibpath_var=LD_LIBRARY_PATH
15695  shlibpath_overrides_runpath=yes
15696  ;;
15697
15698nto-qnx*)
15699  version_type=linux
15700  need_lib_prefix=no
15701  need_version=no
15702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703  soname_spec='${libname}${release}${shared_ext}$major'
15704  shlibpath_var=LD_LIBRARY_PATH
15705  shlibpath_overrides_runpath=yes
15706  ;;
15707
15708openbsd*)
15709  version_type=sunos
15710  sys_lib_dlsearch_path_spec="/usr/lib"
15711  need_lib_prefix=no
15712  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15713  case $host_os in
15714    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15715    *)                         need_version=no  ;;
15716  esac
15717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15719  shlibpath_var=LD_LIBRARY_PATH
15720  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721    case $host_os in
15722      openbsd2.[89] | openbsd2.[89].*)
15723	shlibpath_overrides_runpath=no
15724	;;
15725      *)
15726	shlibpath_overrides_runpath=yes
15727	;;
15728      esac
15729  else
15730    shlibpath_overrides_runpath=yes
15731  fi
15732  ;;
15733
15734os2*)
15735  libname_spec='$name'
15736  shrext_cmds=".dll"
15737  need_lib_prefix=no
15738  library_names_spec='$libname${shared_ext} $libname.a'
15739  dynamic_linker='OS/2 ld.exe'
15740  shlibpath_var=LIBPATH
15741  ;;
15742
15743osf3* | osf4* | osf5*)
15744  version_type=osf
15745  need_lib_prefix=no
15746  need_version=no
15747  soname_spec='${libname}${release}${shared_ext}$major'
15748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749  shlibpath_var=LD_LIBRARY_PATH
15750  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15751  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15752  ;;
15753
15754rdos*)
15755  dynamic_linker=no
15756  ;;
15757
15758solaris*)
15759  version_type=linux
15760  need_lib_prefix=no
15761  need_version=no
15762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763  soname_spec='${libname}${release}${shared_ext}$major'
15764  shlibpath_var=LD_LIBRARY_PATH
15765  shlibpath_overrides_runpath=yes
15766  hardcode_into_libs=yes
15767  # ldd complains unless libraries are executable
15768  postinstall_cmds='chmod +x $lib'
15769  ;;
15770
15771sunos4*)
15772  version_type=sunos
15773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15774  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15775  shlibpath_var=LD_LIBRARY_PATH
15776  shlibpath_overrides_runpath=yes
15777  if test "$with_gnu_ld" = yes; then
15778    need_lib_prefix=no
15779  fi
15780  need_version=yes
15781  ;;
15782
15783sysv4 | sysv4.3*)
15784  version_type=linux
15785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786  soname_spec='${libname}${release}${shared_ext}$major'
15787  shlibpath_var=LD_LIBRARY_PATH
15788  case $host_vendor in
15789    sni)
15790      shlibpath_overrides_runpath=no
15791      need_lib_prefix=no
15792      export_dynamic_flag_spec='${wl}-Blargedynsym'
15793      runpath_var=LD_RUN_PATH
15794      ;;
15795    siemens)
15796      need_lib_prefix=no
15797      ;;
15798    motorola)
15799      need_lib_prefix=no
15800      need_version=no
15801      shlibpath_overrides_runpath=no
15802      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15803      ;;
15804  esac
15805  ;;
15806
15807sysv4*MP*)
15808  if test -d /usr/nec ;then
15809    version_type=linux
15810    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15811    soname_spec='$libname${shared_ext}.$major'
15812    shlibpath_var=LD_LIBRARY_PATH
15813  fi
15814  ;;
15815
15816sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15817  version_type=freebsd-elf
15818  need_lib_prefix=no
15819  need_version=no
15820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15821  soname_spec='${libname}${release}${shared_ext}$major'
15822  shlibpath_var=LD_LIBRARY_PATH
15823  hardcode_into_libs=yes
15824  if test "$with_gnu_ld" = yes; then
15825    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15826    shlibpath_overrides_runpath=no
15827  else
15828    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15829    shlibpath_overrides_runpath=yes
15830    case $host_os in
15831      sco3.2v5*)
15832        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15833	;;
15834    esac
15835  fi
15836  sys_lib_dlsearch_path_spec='/usr/lib'
15837  ;;
15838
15839uts4*)
15840  version_type=linux
15841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842  soname_spec='${libname}${release}${shared_ext}$major'
15843  shlibpath_var=LD_LIBRARY_PATH
15844  ;;
15845
15846*)
15847  dynamic_linker=no
15848  ;;
15849esac
15850{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15851echo "${ECHO_T}$dynamic_linker" >&6; }
15852test "$dynamic_linker" = no && can_build_shared=no
15853
15854if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15855  echo $ECHO_N "(cached) $ECHO_C" >&6
15856else
15857  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15858fi
15859
15860sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15861if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15862  echo $ECHO_N "(cached) $ECHO_C" >&6
15863else
15864  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15865fi
15866
15867sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15868
15869variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15870if test "$GCC" = yes; then
15871  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15872fi
15873
15874{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15876hardcode_action=
15877if test -n "$hardcode_libdir_flag_spec" || \
15878   test -n "$runpath_var" || \
15879   test "X$hardcode_automatic" = "Xyes" ; then
15880
15881  # We can hardcode non-existant directories.
15882  if test "$hardcode_direct" != no &&
15883     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884     # have to relink, otherwise we might link with an installed library
15885     # when we should be linking with a yet-to-be-installed one
15886     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15887     test "$hardcode_minus_L" != no; then
15888    # Linking always hardcodes the temporary library directory.
15889    hardcode_action=relink
15890  else
15891    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892    hardcode_action=immediate
15893  fi
15894else
15895  # We cannot hardcode anything, or else we can only hardcode existing
15896  # directories.
15897  hardcode_action=unsupported
15898fi
15899{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15900echo "${ECHO_T}$hardcode_action" >&6; }
15901
15902if test "$hardcode_action" = relink; then
15903  # Fast installation is not supported
15904  enable_fast_install=no
15905elif test "$shlibpath_overrides_runpath" = yes ||
15906     test "$enable_shared" = no; then
15907  # Fast installation is not necessary
15908  enable_fast_install=needless
15909fi
15910
15911striplib=
15912old_striplib=
15913{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15914echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15915if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15916  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15917  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15918  { echo "$as_me:$LINENO: result: yes" >&5
15919echo "${ECHO_T}yes" >&6; }
15920else
15921# FIXME - insert some real tests, host_os isn't really good enough
15922  case $host_os in
15923   darwin*)
15924       if test -n "$STRIP" ; then
15925         striplib="$STRIP -x"
15926         old_striplib="$STRIP -S"
15927         { echo "$as_me:$LINENO: result: yes" >&5
15928echo "${ECHO_T}yes" >&6; }
15929       else
15930  { echo "$as_me:$LINENO: result: no" >&5
15931echo "${ECHO_T}no" >&6; }
15932fi
15933       ;;
15934   *)
15935  { echo "$as_me:$LINENO: result: no" >&5
15936echo "${ECHO_T}no" >&6; }
15937    ;;
15938  esac
15939fi
15940
15941if test "x$enable_dlopen" != xyes; then
15942  enable_dlopen=unknown
15943  enable_dlopen_self=unknown
15944  enable_dlopen_self_static=unknown
15945else
15946  lt_cv_dlopen=no
15947  lt_cv_dlopen_libs=
15948
15949  case $host_os in
15950  beos*)
15951    lt_cv_dlopen="load_add_on"
15952    lt_cv_dlopen_libs=
15953    lt_cv_dlopen_self=yes
15954    ;;
15955
15956  mingw* | pw32*)
15957    lt_cv_dlopen="LoadLibrary"
15958    lt_cv_dlopen_libs=
15959   ;;
15960
15961  cygwin*)
15962    lt_cv_dlopen="dlopen"
15963    lt_cv_dlopen_libs=
15964   ;;
15965
15966  darwin*)
15967  # if libdl is installed we need to link against it
15968    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15969echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15970if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15971  echo $ECHO_N "(cached) $ECHO_C" >&6
15972else
15973  ac_check_lib_save_LIBS=$LIBS
15974LIBS="-ldl  $LIBS"
15975cat >conftest.$ac_ext <<_ACEOF
15976/* confdefs.h.  */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h.  */
15981
15982/* Override any GCC internal prototype to avoid an error.
15983   Use char because int might match the return type of a GCC
15984   builtin and then its argument prototype would still apply.  */
15985#ifdef __cplusplus
15986extern "C"
15987#endif
15988char dlopen ();
15989int
15990main ()
15991{
15992return dlopen ();
15993  ;
15994  return 0;
15995}
15996_ACEOF
15997rm -f conftest.$ac_objext conftest$ac_exeext
15998if { (ac_try="$ac_link"
15999case "(($ac_try" in
16000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001  *) ac_try_echo=$ac_try;;
16002esac
16003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004  (eval "$ac_link") 2>conftest.er1
16005  ac_status=$?
16006  grep -v '^ *+' conftest.er1 >conftest.err
16007  rm -f conftest.er1
16008  cat conftest.err >&5
16009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010  (exit $ac_status); } && {
16011	 test -z "$ac_c_werror_flag" ||
16012	 test ! -s conftest.err
16013       } && test -s conftest$ac_exeext &&
16014       $as_test_x conftest$ac_exeext; then
16015  ac_cv_lib_dl_dlopen=yes
16016else
16017  echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020	ac_cv_lib_dl_dlopen=no
16021fi
16022
16023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16024      conftest$ac_exeext conftest.$ac_ext
16025LIBS=$ac_check_lib_save_LIBS
16026fi
16027{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16028echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16029if test $ac_cv_lib_dl_dlopen = yes; then
16030  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16031else
16032
16033    lt_cv_dlopen="dyld"
16034    lt_cv_dlopen_libs=
16035    lt_cv_dlopen_self=yes
16036
16037fi
16038
16039   ;;
16040
16041  *)
16042    { echo "$as_me:$LINENO: checking for shl_load" >&5
16043echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16044if test "${ac_cv_func_shl_load+set}" = set; then
16045  echo $ECHO_N "(cached) $ECHO_C" >&6
16046else
16047  cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h.  */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h.  */
16053/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16055#define shl_load innocuous_shl_load
16056
16057/* System header to define __stub macros and hopefully few prototypes,
16058    which can conflict with char shl_load (); below.
16059    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16060    <limits.h> exists even on freestanding compilers.  */
16061
16062#ifdef __STDC__
16063# include <limits.h>
16064#else
16065# include <assert.h>
16066#endif
16067
16068#undef shl_load
16069
16070/* Override any GCC internal prototype to avoid an error.
16071   Use char because int might match the return type of a GCC
16072   builtin and then its argument prototype would still apply.  */
16073#ifdef __cplusplus
16074extern "C"
16075#endif
16076char shl_load ();
16077/* The GNU C library defines this for functions which it implements
16078    to always fail with ENOSYS.  Some functions are actually named
16079    something starting with __ and the normal name is an alias.  */
16080#if defined __stub_shl_load || defined __stub___shl_load
16081choke me
16082#endif
16083
16084int
16085main ()
16086{
16087return shl_load ();
16088  ;
16089  return 0;
16090}
16091_ACEOF
16092rm -f conftest.$ac_objext conftest$ac_exeext
16093if { (ac_try="$ac_link"
16094case "(($ac_try" in
16095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096  *) ac_try_echo=$ac_try;;
16097esac
16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099  (eval "$ac_link") 2>conftest.er1
16100  ac_status=$?
16101  grep -v '^ *+' conftest.er1 >conftest.err
16102  rm -f conftest.er1
16103  cat conftest.err >&5
16104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105  (exit $ac_status); } && {
16106	 test -z "$ac_c_werror_flag" ||
16107	 test ! -s conftest.err
16108       } && test -s conftest$ac_exeext &&
16109       $as_test_x conftest$ac_exeext; then
16110  ac_cv_func_shl_load=yes
16111else
16112  echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115	ac_cv_func_shl_load=no
16116fi
16117
16118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16119      conftest$ac_exeext conftest.$ac_ext
16120fi
16121{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16122echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16123if test $ac_cv_func_shl_load = yes; then
16124  lt_cv_dlopen="shl_load"
16125else
16126  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16127echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16128if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16129  echo $ECHO_N "(cached) $ECHO_C" >&6
16130else
16131  ac_check_lib_save_LIBS=$LIBS
16132LIBS="-ldld  $LIBS"
16133cat >conftest.$ac_ext <<_ACEOF
16134/* confdefs.h.  */
16135_ACEOF
16136cat confdefs.h >>conftest.$ac_ext
16137cat >>conftest.$ac_ext <<_ACEOF
16138/* end confdefs.h.  */
16139
16140/* Override any GCC internal prototype to avoid an error.
16141   Use char because int might match the return type of a GCC
16142   builtin and then its argument prototype would still apply.  */
16143#ifdef __cplusplus
16144extern "C"
16145#endif
16146char shl_load ();
16147int
16148main ()
16149{
16150return shl_load ();
16151  ;
16152  return 0;
16153}
16154_ACEOF
16155rm -f conftest.$ac_objext conftest$ac_exeext
16156if { (ac_try="$ac_link"
16157case "(($ac_try" in
16158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159  *) ac_try_echo=$ac_try;;
16160esac
16161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162  (eval "$ac_link") 2>conftest.er1
16163  ac_status=$?
16164  grep -v '^ *+' conftest.er1 >conftest.err
16165  rm -f conftest.er1
16166  cat conftest.err >&5
16167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168  (exit $ac_status); } && {
16169	 test -z "$ac_c_werror_flag" ||
16170	 test ! -s conftest.err
16171       } && test -s conftest$ac_exeext &&
16172       $as_test_x conftest$ac_exeext; then
16173  ac_cv_lib_dld_shl_load=yes
16174else
16175  echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
16178	ac_cv_lib_dld_shl_load=no
16179fi
16180
16181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16182      conftest$ac_exeext conftest.$ac_ext
16183LIBS=$ac_check_lib_save_LIBS
16184fi
16185{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16186echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16187if test $ac_cv_lib_dld_shl_load = yes; then
16188  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16189else
16190  { echo "$as_me:$LINENO: checking for dlopen" >&5
16191echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16192if test "${ac_cv_func_dlopen+set}" = set; then
16193  echo $ECHO_N "(cached) $ECHO_C" >&6
16194else
16195  cat >conftest.$ac_ext <<_ACEOF
16196/* confdefs.h.  */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
16200/* end confdefs.h.  */
16201/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16202   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16203#define dlopen innocuous_dlopen
16204
16205/* System header to define __stub macros and hopefully few prototypes,
16206    which can conflict with char dlopen (); below.
16207    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16208    <limits.h> exists even on freestanding compilers.  */
16209
16210#ifdef __STDC__
16211# include <limits.h>
16212#else
16213# include <assert.h>
16214#endif
16215
16216#undef dlopen
16217
16218/* Override any GCC internal prototype to avoid an error.
16219   Use char because int might match the return type of a GCC
16220   builtin and then its argument prototype would still apply.  */
16221#ifdef __cplusplus
16222extern "C"
16223#endif
16224char dlopen ();
16225/* The GNU C library defines this for functions which it implements
16226    to always fail with ENOSYS.  Some functions are actually named
16227    something starting with __ and the normal name is an alias.  */
16228#if defined __stub_dlopen || defined __stub___dlopen
16229choke me
16230#endif
16231
16232int
16233main ()
16234{
16235return dlopen ();
16236  ;
16237  return 0;
16238}
16239_ACEOF
16240rm -f conftest.$ac_objext conftest$ac_exeext
16241if { (ac_try="$ac_link"
16242case "(($ac_try" in
16243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244  *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247  (eval "$ac_link") 2>conftest.er1
16248  ac_status=$?
16249  grep -v '^ *+' conftest.er1 >conftest.err
16250  rm -f conftest.er1
16251  cat conftest.err >&5
16252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253  (exit $ac_status); } && {
16254	 test -z "$ac_c_werror_flag" ||
16255	 test ! -s conftest.err
16256       } && test -s conftest$ac_exeext &&
16257       $as_test_x conftest$ac_exeext; then
16258  ac_cv_func_dlopen=yes
16259else
16260  echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263	ac_cv_func_dlopen=no
16264fi
16265
16266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16267      conftest$ac_exeext conftest.$ac_ext
16268fi
16269{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16270echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16271if test $ac_cv_func_dlopen = yes; then
16272  lt_cv_dlopen="dlopen"
16273else
16274  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16275echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16276if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16277  echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279  ac_check_lib_save_LIBS=$LIBS
16280LIBS="-ldl  $LIBS"
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h.  */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h.  */
16287
16288/* Override any GCC internal prototype to avoid an error.
16289   Use char because int might match the return type of a GCC
16290   builtin and then its argument prototype would still apply.  */
16291#ifdef __cplusplus
16292extern "C"
16293#endif
16294char dlopen ();
16295int
16296main ()
16297{
16298return dlopen ();
16299  ;
16300  return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext conftest$ac_exeext
16304if { (ac_try="$ac_link"
16305case "(($ac_try" in
16306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307  *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310  (eval "$ac_link") 2>conftest.er1
16311  ac_status=$?
16312  grep -v '^ *+' conftest.er1 >conftest.err
16313  rm -f conftest.er1
16314  cat conftest.err >&5
16315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316  (exit $ac_status); } && {
16317	 test -z "$ac_c_werror_flag" ||
16318	 test ! -s conftest.err
16319       } && test -s conftest$ac_exeext &&
16320       $as_test_x conftest$ac_exeext; then
16321  ac_cv_lib_dl_dlopen=yes
16322else
16323  echo "$as_me: failed program was:" >&5
16324sed 's/^/| /' conftest.$ac_ext >&5
16325
16326	ac_cv_lib_dl_dlopen=no
16327fi
16328
16329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16330      conftest$ac_exeext conftest.$ac_ext
16331LIBS=$ac_check_lib_save_LIBS
16332fi
16333{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16334echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16335if test $ac_cv_lib_dl_dlopen = yes; then
16336  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16337else
16338  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16339echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16340if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16341  echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343  ac_check_lib_save_LIBS=$LIBS
16344LIBS="-lsvld  $LIBS"
16345cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h.  */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h.  */
16351
16352/* Override any GCC internal prototype to avoid an error.
16353   Use char because int might match the return type of a GCC
16354   builtin and then its argument prototype would still apply.  */
16355#ifdef __cplusplus
16356extern "C"
16357#endif
16358char dlopen ();
16359int
16360main ()
16361{
16362return dlopen ();
16363  ;
16364  return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext conftest$ac_exeext
16368if { (ac_try="$ac_link"
16369case "(($ac_try" in
16370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371  *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374  (eval "$ac_link") 2>conftest.er1
16375  ac_status=$?
16376  grep -v '^ *+' conftest.er1 >conftest.err
16377  rm -f conftest.er1
16378  cat conftest.err >&5
16379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380  (exit $ac_status); } && {
16381	 test -z "$ac_c_werror_flag" ||
16382	 test ! -s conftest.err
16383       } && test -s conftest$ac_exeext &&
16384       $as_test_x conftest$ac_exeext; then
16385  ac_cv_lib_svld_dlopen=yes
16386else
16387  echo "$as_me: failed program was:" >&5
16388sed 's/^/| /' conftest.$ac_ext >&5
16389
16390	ac_cv_lib_svld_dlopen=no
16391fi
16392
16393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394      conftest$ac_exeext conftest.$ac_ext
16395LIBS=$ac_check_lib_save_LIBS
16396fi
16397{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16398echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16399if test $ac_cv_lib_svld_dlopen = yes; then
16400  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16401else
16402  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16403echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16404if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16405  echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407  ac_check_lib_save_LIBS=$LIBS
16408LIBS="-ldld  $LIBS"
16409cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h.  */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h.  */
16415
16416/* Override any GCC internal prototype to avoid an error.
16417   Use char because int might match the return type of a GCC
16418   builtin and then its argument prototype would still apply.  */
16419#ifdef __cplusplus
16420extern "C"
16421#endif
16422char dld_link ();
16423int
16424main ()
16425{
16426return dld_link ();
16427  ;
16428  return 0;
16429}
16430_ACEOF
16431rm -f conftest.$ac_objext conftest$ac_exeext
16432if { (ac_try="$ac_link"
16433case "(($ac_try" in
16434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435  *) ac_try_echo=$ac_try;;
16436esac
16437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438  (eval "$ac_link") 2>conftest.er1
16439  ac_status=$?
16440  grep -v '^ *+' conftest.er1 >conftest.err
16441  rm -f conftest.er1
16442  cat conftest.err >&5
16443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444  (exit $ac_status); } && {
16445	 test -z "$ac_c_werror_flag" ||
16446	 test ! -s conftest.err
16447       } && test -s conftest$ac_exeext &&
16448       $as_test_x conftest$ac_exeext; then
16449  ac_cv_lib_dld_dld_link=yes
16450else
16451  echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454	ac_cv_lib_dld_dld_link=no
16455fi
16456
16457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16458      conftest$ac_exeext conftest.$ac_ext
16459LIBS=$ac_check_lib_save_LIBS
16460fi
16461{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16462echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16463if test $ac_cv_lib_dld_dld_link = yes; then
16464  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16465fi
16466
16467
16468fi
16469
16470
16471fi
16472
16473
16474fi
16475
16476
16477fi
16478
16479
16480fi
16481
16482    ;;
16483  esac
16484
16485  if test "x$lt_cv_dlopen" != xno; then
16486    enable_dlopen=yes
16487  else
16488    enable_dlopen=no
16489  fi
16490
16491  case $lt_cv_dlopen in
16492  dlopen)
16493    save_CPPFLAGS="$CPPFLAGS"
16494    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16495
16496    save_LDFLAGS="$LDFLAGS"
16497    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16498
16499    save_LIBS="$LIBS"
16500    LIBS="$lt_cv_dlopen_libs $LIBS"
16501
16502    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16503echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16504if test "${lt_cv_dlopen_self+set}" = set; then
16505  echo $ECHO_N "(cached) $ECHO_C" >&6
16506else
16507  	  if test "$cross_compiling" = yes; then :
16508  lt_cv_dlopen_self=cross
16509else
16510  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16511  lt_status=$lt_dlunknown
16512  cat > conftest.$ac_ext <<EOF
16513#line 16513 "configure"
16514#include "confdefs.h"
16515
16516#if HAVE_DLFCN_H
16517#include <dlfcn.h>
16518#endif
16519
16520#include <stdio.h>
16521
16522#ifdef RTLD_GLOBAL
16523#  define LT_DLGLOBAL		RTLD_GLOBAL
16524#else
16525#  ifdef DL_GLOBAL
16526#    define LT_DLGLOBAL		DL_GLOBAL
16527#  else
16528#    define LT_DLGLOBAL		0
16529#  endif
16530#endif
16531
16532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16533   find out it does not work in some platform. */
16534#ifndef LT_DLLAZY_OR_NOW
16535#  ifdef RTLD_LAZY
16536#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16537#  else
16538#    ifdef DL_LAZY
16539#      define LT_DLLAZY_OR_NOW		DL_LAZY
16540#    else
16541#      ifdef RTLD_NOW
16542#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16543#      else
16544#        ifdef DL_NOW
16545#          define LT_DLLAZY_OR_NOW	DL_NOW
16546#        else
16547#          define LT_DLLAZY_OR_NOW	0
16548#        endif
16549#      endif
16550#    endif
16551#  endif
16552#endif
16553
16554#ifdef __cplusplus
16555extern "C" void exit (int);
16556#endif
16557
16558void fnord() { int i=42;}
16559int main ()
16560{
16561  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16562  int status = $lt_dlunknown;
16563
16564  if (self)
16565    {
16566      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16567      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16568      /* dlclose (self); */
16569    }
16570  else
16571    puts (dlerror ());
16572
16573    exit (status);
16574}
16575EOF
16576  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577  (eval $ac_link) 2>&5
16578  ac_status=$?
16579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16581    (./conftest; exit; ) >&5 2>/dev/null
16582    lt_status=$?
16583    case x$lt_status in
16584      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16585      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16586      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16587    esac
16588  else :
16589    # compilation failed
16590    lt_cv_dlopen_self=no
16591  fi
16592fi
16593rm -fr conftest*
16594
16595
16596fi
16597{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16598echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16599
16600    if test "x$lt_cv_dlopen_self" = xyes; then
16601      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16602      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16603echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16604if test "${lt_cv_dlopen_self_static+set}" = set; then
16605  echo $ECHO_N "(cached) $ECHO_C" >&6
16606else
16607  	  if test "$cross_compiling" = yes; then :
16608  lt_cv_dlopen_self_static=cross
16609else
16610  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16611  lt_status=$lt_dlunknown
16612  cat > conftest.$ac_ext <<EOF
16613#line 16613 "configure"
16614#include "confdefs.h"
16615
16616#if HAVE_DLFCN_H
16617#include <dlfcn.h>
16618#endif
16619
16620#include <stdio.h>
16621
16622#ifdef RTLD_GLOBAL
16623#  define LT_DLGLOBAL		RTLD_GLOBAL
16624#else
16625#  ifdef DL_GLOBAL
16626#    define LT_DLGLOBAL		DL_GLOBAL
16627#  else
16628#    define LT_DLGLOBAL		0
16629#  endif
16630#endif
16631
16632/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16633   find out it does not work in some platform. */
16634#ifndef LT_DLLAZY_OR_NOW
16635#  ifdef RTLD_LAZY
16636#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16637#  else
16638#    ifdef DL_LAZY
16639#      define LT_DLLAZY_OR_NOW		DL_LAZY
16640#    else
16641#      ifdef RTLD_NOW
16642#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16643#      else
16644#        ifdef DL_NOW
16645#          define LT_DLLAZY_OR_NOW	DL_NOW
16646#        else
16647#          define LT_DLLAZY_OR_NOW	0
16648#        endif
16649#      endif
16650#    endif
16651#  endif
16652#endif
16653
16654#ifdef __cplusplus
16655extern "C" void exit (int);
16656#endif
16657
16658void fnord() { int i=42;}
16659int main ()
16660{
16661  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16662  int status = $lt_dlunknown;
16663
16664  if (self)
16665    {
16666      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16667      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16668      /* dlclose (self); */
16669    }
16670  else
16671    puts (dlerror ());
16672
16673    exit (status);
16674}
16675EOF
16676  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677  (eval $ac_link) 2>&5
16678  ac_status=$?
16679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16681    (./conftest; exit; ) >&5 2>/dev/null
16682    lt_status=$?
16683    case x$lt_status in
16684      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16685      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16686      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16687    esac
16688  else :
16689    # compilation failed
16690    lt_cv_dlopen_self_static=no
16691  fi
16692fi
16693rm -fr conftest*
16694
16695
16696fi
16697{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16698echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16699    fi
16700
16701    CPPFLAGS="$save_CPPFLAGS"
16702    LDFLAGS="$save_LDFLAGS"
16703    LIBS="$save_LIBS"
16704    ;;
16705  esac
16706
16707  case $lt_cv_dlopen_self in
16708  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16709  *) enable_dlopen_self=unknown ;;
16710  esac
16711
16712  case $lt_cv_dlopen_self_static in
16713  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16714  *) enable_dlopen_self_static=unknown ;;
16715  esac
16716fi
16717
16718
16719# Report which library types will actually be built
16720{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16721echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16722{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16723echo "${ECHO_T}$can_build_shared" >&6; }
16724
16725{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16726echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16727test "$can_build_shared" = "no" && enable_shared=no
16728
16729# On AIX, shared libraries and static libraries use the same namespace, and
16730# are all built from PIC.
16731case $host_os in
16732aix3*)
16733  test "$enable_shared" = yes && enable_static=no
16734  if test -n "$RANLIB"; then
16735    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16736    postinstall_cmds='$RANLIB $lib'
16737  fi
16738  ;;
16739
16740aix[4-9]*)
16741  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16742    test "$enable_shared" = yes && enable_static=no
16743  fi
16744    ;;
16745esac
16746{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16747echo "${ECHO_T}$enable_shared" >&6; }
16748
16749{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16750echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16751# Make sure either enable_shared or enable_static is yes.
16752test "$enable_shared" = yes || enable_static=yes
16753{ echo "$as_me:$LINENO: result: $enable_static" >&5
16754echo "${ECHO_T}$enable_static" >&6; }
16755
16756# The else clause should only fire when bootstrapping the
16757# libtool distribution, otherwise you forgot to ship ltmain.sh
16758# with your package, and you will get complaints that there are
16759# no rules to generate ltmain.sh.
16760if test -f "$ltmain"; then
16761  # See if we are running on zsh, and set the options which allow our commands through
16762  # without removal of \ escapes.
16763  if test -n "${ZSH_VERSION+set}" ; then
16764    setopt NO_GLOB_SUBST
16765  fi
16766  # Now quote all the things that may contain metacharacters while being
16767  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16768  # variables and quote the copies for generation of the libtool script.
16769  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16770    SED SHELL STRIP \
16771    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16772    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16773    deplibs_check_method reload_flag reload_cmds need_locks \
16774    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16775    lt_cv_sys_global_symbol_to_c_name_address \
16776    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16777    old_postinstall_cmds old_postuninstall_cmds \
16778    compiler \
16779    CC \
16780    LD \
16781    lt_prog_compiler_wl \
16782    lt_prog_compiler_pic \
16783    lt_prog_compiler_static \
16784    lt_prog_compiler_no_builtin_flag \
16785    export_dynamic_flag_spec \
16786    thread_safe_flag_spec \
16787    whole_archive_flag_spec \
16788    enable_shared_with_static_runtimes \
16789    old_archive_cmds \
16790    old_archive_from_new_cmds \
16791    predep_objects \
16792    postdep_objects \
16793    predeps \
16794    postdeps \
16795    compiler_lib_search_path \
16796    compiler_lib_search_dirs \
16797    archive_cmds \
16798    archive_expsym_cmds \
16799    postinstall_cmds \
16800    postuninstall_cmds \
16801    old_archive_from_expsyms_cmds \
16802    allow_undefined_flag \
16803    no_undefined_flag \
16804    export_symbols_cmds \
16805    hardcode_libdir_flag_spec \
16806    hardcode_libdir_flag_spec_ld \
16807    hardcode_libdir_separator \
16808    hardcode_automatic \
16809    module_cmds \
16810    module_expsym_cmds \
16811    lt_cv_prog_compiler_c_o \
16812    fix_srcfile_path \
16813    exclude_expsyms \
16814    include_expsyms; do
16815
16816    case $var in
16817    old_archive_cmds | \
16818    old_archive_from_new_cmds | \
16819    archive_cmds | \
16820    archive_expsym_cmds | \
16821    module_cmds | \
16822    module_expsym_cmds | \
16823    old_archive_from_expsyms_cmds | \
16824    export_symbols_cmds | \
16825    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16826    postinstall_cmds | postuninstall_cmds | \
16827    old_postinstall_cmds | old_postuninstall_cmds | \
16828    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16829      # Double-quote double-evaled strings.
16830      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16831      ;;
16832    *)
16833      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16834      ;;
16835    esac
16836  done
16837
16838  case $lt_echo in
16839  *'\$0 --fallback-echo"')
16840    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16841    ;;
16842  esac
16843
16844cfgfile="${ofile}T"
16845  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16846  $rm -f "$cfgfile"
16847  { echo "$as_me:$LINENO: creating $ofile" >&5
16848echo "$as_me: creating $ofile" >&6;}
16849
16850  cat <<__EOF__ >> "$cfgfile"
16851#! $SHELL
16852
16853# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16854# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16855# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16856#
16857# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
16858# Free Software Foundation, Inc.
16859#
16860# This file is part of GNU Libtool:
16861# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16862#
16863# This program is free software; you can redistribute it and/or modify
16864# it under the terms of the GNU General Public License as published by
16865# the Free Software Foundation; either version 2 of the License, or
16866# (at your option) any later version.
16867#
16868# This program is distributed in the hope that it will be useful, but
16869# WITHOUT ANY WARRANTY; without even the implied warranty of
16870# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16871# General Public License for more details.
16872#
16873# You should have received a copy of the GNU General Public License
16874# along with this program; if not, write to the Free Software
16875# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16876#
16877# As a special exception to the GNU General Public License, if you
16878# distribute this file as part of a program that contains a
16879# configuration script generated by Autoconf, you may include it under
16880# the same distribution terms that you use for the rest of that program.
16881
16882# A sed program that does not truncate output.
16883SED=$lt_SED
16884
16885# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16886Xsed="$SED -e 1s/^X//"
16887
16888# The HP-UX ksh and POSIX shell print the target directory to stdout
16889# if CDPATH is set.
16890(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16891
16892# The names of the tagged configurations supported by this script.
16893available_tags=
16894
16895# ### BEGIN LIBTOOL CONFIG
16896
16897# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16898
16899# Shell to use when invoking shell scripts.
16900SHELL=$lt_SHELL
16901
16902# Whether or not to build shared libraries.
16903build_libtool_libs=$enable_shared
16904
16905# Whether or not to build static libraries.
16906build_old_libs=$enable_static
16907
16908# Whether or not to add -lc for building shared libraries.
16909build_libtool_need_lc=$archive_cmds_need_lc
16910
16911# Whether or not to disallow shared libs when runtime libs are static
16912allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16913
16914# Whether or not to optimize for fast installation.
16915fast_install=$enable_fast_install
16916
16917# The host system.
16918host_alias=$host_alias
16919host=$host
16920host_os=$host_os
16921
16922# The build system.
16923build_alias=$build_alias
16924build=$build
16925build_os=$build_os
16926
16927# An echo program that does not interpret backslashes.
16928echo=$lt_echo
16929
16930# The archiver.
16931AR=$lt_AR
16932AR_FLAGS=$lt_AR_FLAGS
16933
16934# A C compiler.
16935LTCC=$lt_LTCC
16936
16937# LTCC compiler flags.
16938LTCFLAGS=$lt_LTCFLAGS
16939
16940# A language-specific compiler.
16941CC=$lt_compiler
16942
16943# Is the compiler the GNU C compiler?
16944with_gcc=$GCC
16945
16946# An ERE matcher.
16947EGREP=$lt_EGREP
16948
16949# The linker used to build libraries.
16950LD=$lt_LD
16951
16952# Whether we need hard or soft links.
16953LN_S=$lt_LN_S
16954
16955# A BSD-compatible nm program.
16956NM=$lt_NM
16957
16958# A symbol stripping program
16959STRIP=$lt_STRIP
16960
16961# Used to examine libraries when file_magic_cmd begins "file"
16962MAGIC_CMD=$MAGIC_CMD
16963
16964# Used on cygwin: DLL creation program.
16965DLLTOOL="$DLLTOOL"
16966
16967# Used on cygwin: object dumper.
16968OBJDUMP="$OBJDUMP"
16969
16970# Used on cygwin: assembler.
16971AS="$AS"
16972
16973# The name of the directory that contains temporary libtool files.
16974objdir=$objdir
16975
16976# How to create reloadable object files.
16977reload_flag=$lt_reload_flag
16978reload_cmds=$lt_reload_cmds
16979
16980# How to pass a linker flag through the compiler.
16981wl=$lt_lt_prog_compiler_wl
16982
16983# Object file suffix (normally "o").
16984objext="$ac_objext"
16985
16986# Old archive suffix (normally "a").
16987libext="$libext"
16988
16989# Shared library suffix (normally ".so").
16990shrext_cmds='$shrext_cmds'
16991
16992# Executable file suffix (normally "").
16993exeext="$exeext"
16994
16995# Additional compiler flags for building library objects.
16996pic_flag=$lt_lt_prog_compiler_pic
16997pic_mode=$pic_mode
16998
16999# What is the maximum length of a command?
17000max_cmd_len=$lt_cv_sys_max_cmd_len
17001
17002# Does compiler simultaneously support -c and -o options?
17003compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17004
17005# Must we lock files when doing compilation?
17006need_locks=$lt_need_locks
17007
17008# Do we need the lib prefix for modules?
17009need_lib_prefix=$need_lib_prefix
17010
17011# Do we need a version for libraries?
17012need_version=$need_version
17013
17014# Whether dlopen is supported.
17015dlopen_support=$enable_dlopen
17016
17017# Whether dlopen of programs is supported.
17018dlopen_self=$enable_dlopen_self
17019
17020# Whether dlopen of statically linked programs is supported.
17021dlopen_self_static=$enable_dlopen_self_static
17022
17023# Compiler flag to prevent dynamic linking.
17024link_static_flag=$lt_lt_prog_compiler_static
17025
17026# Compiler flag to turn off builtin functions.
17027no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17028
17029# Compiler flag to allow reflexive dlopens.
17030export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17031
17032# Compiler flag to generate shared objects directly from archives.
17033whole_archive_flag_spec=$lt_whole_archive_flag_spec
17034
17035# Compiler flag to generate thread-safe objects.
17036thread_safe_flag_spec=$lt_thread_safe_flag_spec
17037
17038# Library versioning type.
17039version_type=$version_type
17040
17041# Format of library name prefix.
17042libname_spec=$lt_libname_spec
17043
17044# List of archive names.  First name is the real one, the rest are links.
17045# The last name is the one that the linker finds with -lNAME.
17046library_names_spec=$lt_library_names_spec
17047
17048# The coded name of the library, if different from the real name.
17049soname_spec=$lt_soname_spec
17050
17051# Commands used to build and install an old-style archive.
17052RANLIB=$lt_RANLIB
17053old_archive_cmds=$lt_old_archive_cmds
17054old_postinstall_cmds=$lt_old_postinstall_cmds
17055old_postuninstall_cmds=$lt_old_postuninstall_cmds
17056
17057# Create an old-style archive from a shared archive.
17058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17059
17060# Create a temporary old-style archive to link instead of a shared archive.
17061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17062
17063# Commands used to build and install a shared archive.
17064archive_cmds=$lt_archive_cmds
17065archive_expsym_cmds=$lt_archive_expsym_cmds
17066postinstall_cmds=$lt_postinstall_cmds
17067postuninstall_cmds=$lt_postuninstall_cmds
17068
17069# Commands used to build a loadable module (assumed same as above if empty)
17070module_cmds=$lt_module_cmds
17071module_expsym_cmds=$lt_module_expsym_cmds
17072
17073# Commands to strip libraries.
17074old_striplib=$lt_old_striplib
17075striplib=$lt_striplib
17076
17077# Dependencies to place before the objects being linked to create a
17078# shared library.
17079predep_objects=$lt_predep_objects
17080
17081# Dependencies to place after the objects being linked to create a
17082# shared library.
17083postdep_objects=$lt_postdep_objects
17084
17085# Dependencies to place before the objects being linked to create a
17086# shared library.
17087predeps=$lt_predeps
17088
17089# Dependencies to place after the objects being linked to create a
17090# shared library.
17091postdeps=$lt_postdeps
17092
17093# The directories searched by this compiler when creating a shared
17094# library
17095compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17096
17097# The library search path used internally by the compiler when linking
17098# a shared library.
17099compiler_lib_search_path=$lt_compiler_lib_search_path
17100
17101# Method to check whether dependent libraries are shared objects.
17102deplibs_check_method=$lt_deplibs_check_method
17103
17104# Command to use when deplibs_check_method == file_magic.
17105file_magic_cmd=$lt_file_magic_cmd
17106
17107# Flag that allows shared libraries with undefined symbols to be built.
17108allow_undefined_flag=$lt_allow_undefined_flag
17109
17110# Flag that forces no undefined symbols.
17111no_undefined_flag=$lt_no_undefined_flag
17112
17113# Commands used to finish a libtool library installation in a directory.
17114finish_cmds=$lt_finish_cmds
17115
17116# Same as above, but a single script fragment to be evaled but not shown.
17117finish_eval=$lt_finish_eval
17118
17119# Take the output of nm and produce a listing of raw symbols and C names.
17120global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17121
17122# Transform the output of nm in a proper C declaration
17123global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17124
17125# Transform the output of nm in a C name address pair
17126global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17127
17128# This is the shared library runtime path variable.
17129runpath_var=$runpath_var
17130
17131# This is the shared library path variable.
17132shlibpath_var=$shlibpath_var
17133
17134# Is shlibpath searched before the hard-coded library search path?
17135shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17136
17137# How to hardcode a shared library path into an executable.
17138hardcode_action=$hardcode_action
17139
17140# Whether we should hardcode library paths into libraries.
17141hardcode_into_libs=$hardcode_into_libs
17142
17143# Flag to hardcode \$libdir into a binary during linking.
17144# This must work even if \$libdir does not exist.
17145hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17146
17147# If ld is used when linking, flag to hardcode \$libdir into
17148# a binary during linking. This must work even if \$libdir does
17149# not exist.
17150hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17151
17152# Whether we need a single -rpath flag with a separated argument.
17153hardcode_libdir_separator=$lt_hardcode_libdir_separator
17154
17155# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17156# resulting binary.
17157hardcode_direct=$hardcode_direct
17158
17159# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17160# resulting binary.
17161hardcode_minus_L=$hardcode_minus_L
17162
17163# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17164# the resulting binary.
17165hardcode_shlibpath_var=$hardcode_shlibpath_var
17166
17167# Set to yes if building a shared library automatically hardcodes DIR into the library
17168# and all subsequent libraries and executables linked against it.
17169hardcode_automatic=$hardcode_automatic
17170
17171# Variables whose values should be saved in libtool wrapper scripts and
17172# restored at relink time.
17173variables_saved_for_relink="$variables_saved_for_relink"
17174
17175# Whether libtool must link a program against all its dependency libraries.
17176link_all_deplibs=$link_all_deplibs
17177
17178# Compile-time system search path for libraries
17179sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17180
17181# Run-time system search path for libraries
17182sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17183
17184# Fix the shell variable \$srcfile for the compiler.
17185fix_srcfile_path=$lt_fix_srcfile_path
17186
17187# Set to yes if exported symbols are required.
17188always_export_symbols=$always_export_symbols
17189
17190# The commands to list exported symbols.
17191export_symbols_cmds=$lt_export_symbols_cmds
17192
17193# The commands to extract the exported symbol list from a shared archive.
17194extract_expsyms_cmds=$lt_extract_expsyms_cmds
17195
17196# Symbols that should not be listed in the preloaded symbols.
17197exclude_expsyms=$lt_exclude_expsyms
17198
17199# Symbols that must always be exported.
17200include_expsyms=$lt_include_expsyms
17201
17202# ### END LIBTOOL CONFIG
17203
17204__EOF__
17205
17206
17207  case $host_os in
17208  aix3*)
17209    cat <<\EOF >> "$cfgfile"
17210
17211# AIX sometimes has problems with the GCC collect2 program.  For some
17212# reason, if we set the COLLECT_NAMES environment variable, the problems
17213# vanish in a puff of smoke.
17214if test "X${COLLECT_NAMES+set}" != Xset; then
17215  COLLECT_NAMES=
17216  export COLLECT_NAMES
17217fi
17218EOF
17219    ;;
17220  esac
17221
17222  # We use sed instead of cat because bash on DJGPP gets confused if
17223  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17224  # text mode, it properly converts lines to CR/LF.  This bash problem
17225  # is reportedly fixed, but why not run on old versions too?
17226  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17227
17228  mv -f "$cfgfile" "$ofile" || \
17229    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17230  chmod +x "$ofile"
17231
17232else
17233  # If there is no Makefile yet, we rely on a make rule to execute
17234  # `config.status --recheck' to rerun these tests and create the
17235  # libtool script then.
17236  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17237  if test -f "$ltmain_in"; then
17238    test -f Makefile && make "$ltmain"
17239  fi
17240fi
17241
17242
17243ac_ext=c
17244ac_cpp='$CPP $CPPFLAGS'
17245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17247ac_compiler_gnu=$ac_cv_c_compiler_gnu
17248
17249CC="$lt_save_CC"
17250
17251
17252# Check whether --with-tags was given.
17253if test "${with_tags+set}" = set; then
17254  withval=$with_tags; tagnames="$withval"
17255fi
17256
17257
17258if test -f "$ltmain" && test -n "$tagnames"; then
17259  if test ! -f "${ofile}"; then
17260    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17261echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17262  fi
17263
17264  if test -z "$LTCC"; then
17265    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17266    if test -z "$LTCC"; then
17267      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17268echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17269    else
17270      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17271echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17272    fi
17273  fi
17274  if test -z "$LTCFLAGS"; then
17275    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17276  fi
17277
17278  # Extract list of available tagged configurations in $ofile.
17279  # Note that this assumes the entire list is on one line.
17280  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17281
17282  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17283  for tagname in $tagnames; do
17284    IFS="$lt_save_ifs"
17285    # Check whether tagname contains only valid characters
17286    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17287    "") ;;
17288    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17289echo "$as_me: error: invalid tag name: $tagname" >&2;}
17290   { (exit 1); exit 1; }; }
17291	;;
17292    esac
17293
17294    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17295    then
17296      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17297echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17298   { (exit 1); exit 1; }; }
17299    fi
17300
17301    # Update the list of available tags.
17302    if test -n "$tagname"; then
17303      echo appending configuration tag \"$tagname\" to $ofile
17304
17305      case $tagname in
17306      CXX)
17307	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17308	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17309	    (test "X$CXX" != "Xg++"))) ; then
17310	  ac_ext=cpp
17311ac_cpp='$CXXCPP $CPPFLAGS'
17312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17315
17316
17317
17318
17319archive_cmds_need_lc_CXX=no
17320allow_undefined_flag_CXX=
17321always_export_symbols_CXX=no
17322archive_expsym_cmds_CXX=
17323export_dynamic_flag_spec_CXX=
17324hardcode_direct_CXX=no
17325hardcode_libdir_flag_spec_CXX=
17326hardcode_libdir_flag_spec_ld_CXX=
17327hardcode_libdir_separator_CXX=
17328hardcode_minus_L_CXX=no
17329hardcode_shlibpath_var_CXX=unsupported
17330hardcode_automatic_CXX=no
17331module_cmds_CXX=
17332module_expsym_cmds_CXX=
17333link_all_deplibs_CXX=unknown
17334old_archive_cmds_CXX=$old_archive_cmds
17335no_undefined_flag_CXX=
17336whole_archive_flag_spec_CXX=
17337enable_shared_with_static_runtimes_CXX=no
17338
17339# Dependencies to place before and after the object being linked:
17340predep_objects_CXX=
17341postdep_objects_CXX=
17342predeps_CXX=
17343postdeps_CXX=
17344compiler_lib_search_path_CXX=
17345compiler_lib_search_dirs_CXX=
17346
17347# Source file extension for C++ test sources.
17348ac_ext=cpp
17349
17350# Object file extension for compiled C++ test sources.
17351objext=o
17352objext_CXX=$objext
17353
17354# Code to be used in simple compile tests
17355lt_simple_compile_test_code="int some_variable = 0;"
17356
17357# Code to be used in simple link tests
17358lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17359
17360# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17361
17362# If no C compiler was specified, use CC.
17363LTCC=${LTCC-"$CC"}
17364
17365# If no C compiler flags were specified, use CFLAGS.
17366LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17367
17368# Allow CC to be a program name with arguments.
17369compiler=$CC
17370
17371
17372# save warnings/boilerplate of simple test code
17373ac_outfile=conftest.$ac_objext
17374echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17375eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17376_lt_compiler_boilerplate=`cat conftest.err`
17377$rm conftest*
17378
17379ac_outfile=conftest.$ac_objext
17380echo "$lt_simple_link_test_code" >conftest.$ac_ext
17381eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17382_lt_linker_boilerplate=`cat conftest.err`
17383$rm -r conftest*
17384
17385
17386# Allow CC to be a program name with arguments.
17387lt_save_CC=$CC
17388lt_save_LD=$LD
17389lt_save_GCC=$GCC
17390GCC=$GXX
17391lt_save_with_gnu_ld=$with_gnu_ld
17392lt_save_path_LD=$lt_cv_path_LD
17393if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17394  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17395else
17396  $as_unset lt_cv_prog_gnu_ld
17397fi
17398if test -n "${lt_cv_path_LDCXX+set}"; then
17399  lt_cv_path_LD=$lt_cv_path_LDCXX
17400else
17401  $as_unset lt_cv_path_LD
17402fi
17403test -z "${LDCXX+set}" || LD=$LDCXX
17404CC=${CXX-"c++"}
17405compiler=$CC
17406compiler_CXX=$CC
17407for cc_temp in $compiler""; do
17408  case $cc_temp in
17409    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17410    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17411    \-*) ;;
17412    *) break;;
17413  esac
17414done
17415cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17416
17417
17418# We don't want -fno-exception wen compiling C++ code, so set the
17419# no_builtin_flag separately
17420if test "$GXX" = yes; then
17421  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17422else
17423  lt_prog_compiler_no_builtin_flag_CXX=
17424fi
17425
17426if test "$GXX" = yes; then
17427  # Set up default GNU C++ configuration
17428
17429
17430# Check whether --with-gnu-ld was given.
17431if test "${with_gnu_ld+set}" = set; then
17432  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17433else
17434  with_gnu_ld=no
17435fi
17436
17437ac_prog=ld
17438if test "$GCC" = yes; then
17439  # Check if gcc -print-prog-name=ld gives a path.
17440  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17441echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17442  case $host in
17443  *-*-mingw*)
17444    # gcc leaves a trailing carriage return which upsets mingw
17445    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17446  *)
17447    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17448  esac
17449  case $ac_prog in
17450    # Accept absolute paths.
17451    [\\/]* | ?:[\\/]*)
17452      re_direlt='/[^/][^/]*/\.\./'
17453      # Canonicalize the pathname of ld
17454      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17455      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17456	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17457      done
17458      test -z "$LD" && LD="$ac_prog"
17459      ;;
17460  "")
17461    # If it fails, then pretend we aren't using GCC.
17462    ac_prog=ld
17463    ;;
17464  *)
17465    # If it is relative, then search for the first ld in PATH.
17466    with_gnu_ld=unknown
17467    ;;
17468  esac
17469elif test "$with_gnu_ld" = yes; then
17470  { echo "$as_me:$LINENO: checking for GNU ld" >&5
17471echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17472else
17473  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17474echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17475fi
17476if test "${lt_cv_path_LD+set}" = set; then
17477  echo $ECHO_N "(cached) $ECHO_C" >&6
17478else
17479  if test -z "$LD"; then
17480  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17481  for ac_dir in $PATH; do
17482    IFS="$lt_save_ifs"
17483    test -z "$ac_dir" && ac_dir=.
17484    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17485      lt_cv_path_LD="$ac_dir/$ac_prog"
17486      # Check to see if the program is GNU ld.  I'd rather use --version,
17487      # but apparently some variants of GNU ld only accept -v.
17488      # Break only if it was the GNU/non-GNU ld that we prefer.
17489      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17490      *GNU* | *'with BFD'*)
17491	test "$with_gnu_ld" != no && break
17492	;;
17493      *)
17494	test "$with_gnu_ld" != yes && break
17495	;;
17496      esac
17497    fi
17498  done
17499  IFS="$lt_save_ifs"
17500else
17501  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17502fi
17503fi
17504
17505LD="$lt_cv_path_LD"
17506if test -n "$LD"; then
17507  { echo "$as_me:$LINENO: result: $LD" >&5
17508echo "${ECHO_T}$LD" >&6; }
17509else
17510  { echo "$as_me:$LINENO: result: no" >&5
17511echo "${ECHO_T}no" >&6; }
17512fi
17513test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17514echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17515   { (exit 1); exit 1; }; }
17516{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17517echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17518if test "${lt_cv_prog_gnu_ld+set}" = set; then
17519  echo $ECHO_N "(cached) $ECHO_C" >&6
17520else
17521  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17522case `$LD -v 2>&1 </dev/null` in
17523*GNU* | *'with BFD'*)
17524  lt_cv_prog_gnu_ld=yes
17525  ;;
17526*)
17527  lt_cv_prog_gnu_ld=no
17528  ;;
17529esac
17530fi
17531{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17532echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17533with_gnu_ld=$lt_cv_prog_gnu_ld
17534
17535
17536
17537  # Check if GNU C++ uses GNU ld as the underlying linker, since the
17538  # archiving commands below assume that GNU ld is being used.
17539  if test "$with_gnu_ld" = yes; then
17540    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541    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'
17542
17543    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17544    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17545
17546    # If archive_cmds runs LD, not CC, wlarc should be empty
17547    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17548    #     investigate it a little bit more. (MM)
17549    wlarc='${wl}'
17550
17551    # ancient GNU ld didn't support --whole-archive et. al.
17552    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17553	grep 'no-whole-archive' > /dev/null; then
17554      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17555    else
17556      whole_archive_flag_spec_CXX=
17557    fi
17558  else
17559    with_gnu_ld=no
17560    wlarc=
17561
17562    # A generic and very simple default shared library creation
17563    # command for GNU C++ for the case where it uses the native
17564    # linker, instead of GNU ld.  If possible, this setting should
17565    # overridden to take advantage of the native linker features on
17566    # the platform it is being used on.
17567    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17568  fi
17569
17570  # Commands to make compiler produce verbose output that lists
17571  # what "hidden" libraries, object files and flags are used when
17572  # linking a shared library.
17573  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17574
17575else
17576  GXX=no
17577  with_gnu_ld=no
17578  wlarc=
17579fi
17580
17581# PORTME: fill in a description of your system's C++ link characteristics
17582{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17584ld_shlibs_CXX=yes
17585case $host_os in
17586  aix3*)
17587    # FIXME: insert proper C++ library support
17588    ld_shlibs_CXX=no
17589    ;;
17590  aix[4-9]*)
17591    if test "$host_cpu" = ia64; then
17592      # On IA64, the linker does run time linking by default, so we don't
17593      # have to do anything special.
17594      aix_use_runtimelinking=no
17595      exp_sym_flag='-Bexport'
17596      no_entry_flag=""
17597    else
17598      aix_use_runtimelinking=no
17599
17600      # Test if we are trying to use run time linking or normal
17601      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17602      # need to do runtime linking.
17603      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17604	for ld_flag in $LDFLAGS; do
17605	  case $ld_flag in
17606	  *-brtl*)
17607	    aix_use_runtimelinking=yes
17608	    break
17609	    ;;
17610	  esac
17611	done
17612	;;
17613      esac
17614
17615      exp_sym_flag='-bexport'
17616      no_entry_flag='-bnoentry'
17617    fi
17618
17619    # When large executables or shared objects are built, AIX ld can
17620    # have problems creating the table of contents.  If linking a library
17621    # or program results in "error TOC overflow" add -mminimal-toc to
17622    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17623    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17624
17625    archive_cmds_CXX=''
17626    hardcode_direct_CXX=yes
17627    hardcode_libdir_separator_CXX=':'
17628    link_all_deplibs_CXX=yes
17629
17630    if test "$GXX" = yes; then
17631      case $host_os in aix4.[012]|aix4.[012].*)
17632      # We only want to do this on AIX 4.2 and lower, the check
17633      # below for broken collect2 doesn't work under 4.3+
17634	collect2name=`${CC} -print-prog-name=collect2`
17635	if test -f "$collect2name" && \
17636	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17637	then
17638	  # We have reworked collect2
17639	  :
17640	else
17641	  # We have old collect2
17642	  hardcode_direct_CXX=unsupported
17643	  # It fails to find uninstalled libraries when the uninstalled
17644	  # path is not listed in the libpath.  Setting hardcode_minus_L
17645	  # to unsupported forces relinking
17646	  hardcode_minus_L_CXX=yes
17647	  hardcode_libdir_flag_spec_CXX='-L$libdir'
17648	  hardcode_libdir_separator_CXX=
17649	fi
17650	;;
17651      esac
17652      shared_flag='-shared'
17653      if test "$aix_use_runtimelinking" = yes; then
17654	shared_flag="$shared_flag "'${wl}-G'
17655      fi
17656    else
17657      # not using gcc
17658      if test "$host_cpu" = ia64; then
17659	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17660	# chokes on -Wl,-G. The following line is correct:
17661	shared_flag='-G'
17662      else
17663	if test "$aix_use_runtimelinking" = yes; then
17664	  shared_flag='${wl}-G'
17665	else
17666	  shared_flag='${wl}-bM:SRE'
17667	fi
17668      fi
17669    fi
17670
17671    # It seems that -bexpall does not export symbols beginning with
17672    # underscore (_), so it is better to generate a list of symbols to export.
17673    always_export_symbols_CXX=yes
17674    if test "$aix_use_runtimelinking" = yes; then
17675      # Warning - without using the other runtime loading flags (-brtl),
17676      # -berok will link without error, but may produce a broken library.
17677      allow_undefined_flag_CXX='-berok'
17678      # Determine the default libpath from the value encoded in an empty executable.
17679      cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h.  */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h.  */
17685
17686int
17687main ()
17688{
17689
17690  ;
17691  return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext conftest$ac_exeext
17695if { (ac_try="$ac_link"
17696case "(($ac_try" in
17697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698  *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701  (eval "$ac_link") 2>conftest.er1
17702  ac_status=$?
17703  grep -v '^ *+' conftest.er1 >conftest.err
17704  rm -f conftest.er1
17705  cat conftest.err >&5
17706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707  (exit $ac_status); } && {
17708	 test -z "$ac_cxx_werror_flag" ||
17709	 test ! -s conftest.err
17710       } && test -s conftest$ac_exeext &&
17711       $as_test_x conftest$ac_exeext; then
17712
17713lt_aix_libpath_sed='
17714    /Import File Strings/,/^$/ {
17715	/^0/ {
17716	    s/^0  *\(.*\)$/\1/
17717	    p
17718	}
17719    }'
17720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17721# Check for a 64-bit object if we didn't find anything.
17722if test -z "$aix_libpath"; then
17723  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17724fi
17725else
17726  echo "$as_me: failed program was:" >&5
17727sed 's/^/| /' conftest.$ac_ext >&5
17728
17729
17730fi
17731
17732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17733      conftest$ac_exeext conftest.$ac_ext
17734if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17735
17736      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17737
17738      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"
17739     else
17740      if test "$host_cpu" = ia64; then
17741	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17742	allow_undefined_flag_CXX="-z nodefs"
17743	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"
17744      else
17745	# Determine the default libpath from the value encoded in an empty executable.
17746	cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h.  */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h.  */
17752
17753int
17754main ()
17755{
17756
17757  ;
17758  return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext conftest$ac_exeext
17762if { (ac_try="$ac_link"
17763case "(($ac_try" in
17764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765  *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768  (eval "$ac_link") 2>conftest.er1
17769  ac_status=$?
17770  grep -v '^ *+' conftest.er1 >conftest.err
17771  rm -f conftest.er1
17772  cat conftest.err >&5
17773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774  (exit $ac_status); } && {
17775	 test -z "$ac_cxx_werror_flag" ||
17776	 test ! -s conftest.err
17777       } && test -s conftest$ac_exeext &&
17778       $as_test_x conftest$ac_exeext; then
17779
17780lt_aix_libpath_sed='
17781    /Import File Strings/,/^$/ {
17782	/^0/ {
17783	    s/^0  *\(.*\)$/\1/
17784	    p
17785	}
17786    }'
17787aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788# Check for a 64-bit object if we didn't find anything.
17789if test -z "$aix_libpath"; then
17790  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17791fi
17792else
17793  echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796
17797fi
17798
17799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17800      conftest$ac_exeext conftest.$ac_ext
17801if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17802
17803	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17804	# Warning - without using the other run time loading flags,
17805	# -berok will link without error, but may produce a broken library.
17806	no_undefined_flag_CXX=' ${wl}-bernotok'
17807	allow_undefined_flag_CXX=' ${wl}-berok'
17808	# Exported symbols can be pulled into shared objects from archives
17809	whole_archive_flag_spec_CXX='$convenience'
17810	archive_cmds_need_lc_CXX=yes
17811	# This is similar to how AIX traditionally builds its shared libraries.
17812	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'
17813      fi
17814    fi
17815    ;;
17816
17817  beos*)
17818    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17819      allow_undefined_flag_CXX=unsupported
17820      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17821      # support --undefined.  This deserves some investigation.  FIXME
17822      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17823    else
17824      ld_shlibs_CXX=no
17825    fi
17826    ;;
17827
17828  chorus*)
17829    case $cc_basename in
17830      *)
17831	# FIXME: insert proper C++ library support
17832	ld_shlibs_CXX=no
17833	;;
17834    esac
17835    ;;
17836
17837  cygwin* | mingw* | pw32*)
17838    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17839    # as there is no search path for DLLs.
17840    hardcode_libdir_flag_spec_CXX='-L$libdir'
17841    allow_undefined_flag_CXX=unsupported
17842    always_export_symbols_CXX=no
17843    enable_shared_with_static_runtimes_CXX=yes
17844
17845    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17846      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'
17847      # If the export-symbols file already is a .def file (1st line
17848      # is EXPORTS), use it as is; otherwise, prepend...
17849      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17850	cp $export_symbols $output_objdir/$soname.def;
17851      else
17852	echo EXPORTS > $output_objdir/$soname.def;
17853	cat $export_symbols >> $output_objdir/$soname.def;
17854      fi~
17855      $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'
17856    else
17857      ld_shlibs_CXX=no
17858    fi
17859  ;;
17860      darwin* | rhapsody*)
17861      archive_cmds_need_lc_CXX=no
17862      hardcode_direct_CXX=no
17863      hardcode_automatic_CXX=yes
17864      hardcode_shlibpath_var_CXX=unsupported
17865      whole_archive_flag_spec_CXX=''
17866      link_all_deplibs_CXX=yes
17867      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17868      if test "$GXX" = yes ; then
17869      output_verbose_link_cmd='echo'
17870      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17871      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17872      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17873      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17874      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17875        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
17876        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
17877      fi
17878      else
17879      case $cc_basename in
17880        xlc*)
17881         output_verbose_link_cmd='echo'
17882          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17883          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17884          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17885          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17886          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}'
17887          ;;
17888       *)
17889         ld_shlibs_CXX=no
17890          ;;
17891      esac
17892      fi
17893        ;;
17894
17895  dgux*)
17896    case $cc_basename in
17897      ec++*)
17898	# FIXME: insert proper C++ library support
17899	ld_shlibs_CXX=no
17900	;;
17901      ghcx*)
17902	# Green Hills C++ Compiler
17903	# FIXME: insert proper C++ library support
17904	ld_shlibs_CXX=no
17905	;;
17906      *)
17907	# FIXME: insert proper C++ library support
17908	ld_shlibs_CXX=no
17909	;;
17910    esac
17911    ;;
17912  freebsd[12]*)
17913    # C++ shared libraries reported to be fairly broken before switch to ELF
17914    ld_shlibs_CXX=no
17915    ;;
17916  freebsd-elf*)
17917    archive_cmds_need_lc_CXX=no
17918    ;;
17919  freebsd* | dragonfly*)
17920    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17921    # conventions
17922    ld_shlibs_CXX=yes
17923    ;;
17924  gnu*)
17925    ;;
17926  hpux9*)
17927    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17928    hardcode_libdir_separator_CXX=:
17929    export_dynamic_flag_spec_CXX='${wl}-E'
17930    hardcode_direct_CXX=yes
17931    hardcode_minus_L_CXX=yes # Not in the search PATH,
17932				# but as the default
17933				# location of the library.
17934
17935    case $cc_basename in
17936    CC*)
17937      # FIXME: insert proper C++ library support
17938      ld_shlibs_CXX=no
17939      ;;
17940    aCC*)
17941      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'
17942      # Commands to make compiler produce verbose output that lists
17943      # what "hidden" libraries, object files and flags are used when
17944      # linking a shared library.
17945      #
17946      # There doesn't appear to be a way to prevent this compiler from
17947      # explicitly linking system object files so we need to strip them
17948      # from the output so that they don't get included in the library
17949      # dependencies.
17950      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'
17951      ;;
17952    *)
17953      if test "$GXX" = yes; then
17954        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'
17955      else
17956        # FIXME: insert proper C++ library support
17957        ld_shlibs_CXX=no
17958      fi
17959      ;;
17960    esac
17961    ;;
17962  hpux10*|hpux11*)
17963    if test $with_gnu_ld = no; then
17964      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17965      hardcode_libdir_separator_CXX=:
17966
17967      case $host_cpu in
17968      hppa*64*|ia64*) ;;
17969      *)
17970	export_dynamic_flag_spec_CXX='${wl}-E'
17971        ;;
17972      esac
17973    fi
17974    case $host_cpu in
17975    hppa*64*|ia64*)
17976      hardcode_direct_CXX=no
17977      hardcode_shlibpath_var_CXX=no
17978      ;;
17979    *)
17980      hardcode_direct_CXX=yes
17981      hardcode_minus_L_CXX=yes # Not in the search PATH,
17982					      # but as the default
17983					      # location of the library.
17984      ;;
17985    esac
17986
17987    case $cc_basename in
17988      CC*)
17989	# FIXME: insert proper C++ library support
17990	ld_shlibs_CXX=no
17991	;;
17992      aCC*)
17993	case $host_cpu in
17994	hppa*64*)
17995	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17996	  ;;
17997	ia64*)
17998	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17999	  ;;
18000	*)
18001	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18002	  ;;
18003	esac
18004	# Commands to make compiler produce verbose output that lists
18005	# what "hidden" libraries, object files and flags are used when
18006	# linking a shared library.
18007	#
18008	# There doesn't appear to be a way to prevent this compiler from
18009	# explicitly linking system object files so we need to strip them
18010	# from the output so that they don't get included in the library
18011	# dependencies.
18012	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'
18013	;;
18014      *)
18015	if test "$GXX" = yes; then
18016	  if test $with_gnu_ld = no; then
18017	    case $host_cpu in
18018	    hppa*64*)
18019	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18020	      ;;
18021	    ia64*)
18022	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18023	      ;;
18024	    *)
18025	      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'
18026	      ;;
18027	    esac
18028	  fi
18029	else
18030	  # FIXME: insert proper C++ library support
18031	  ld_shlibs_CXX=no
18032	fi
18033	;;
18034    esac
18035    ;;
18036  interix[3-9]*)
18037    hardcode_direct_CXX=no
18038    hardcode_shlibpath_var_CXX=no
18039    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18040    export_dynamic_flag_spec_CXX='${wl}-E'
18041    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18042    # Instead, shared libraries are loaded at an image base (0x10000000 by
18043    # default) and relocated if they conflict, which is a slow very memory
18044    # consuming and fragmenting process.  To avoid this, we pick a random,
18045    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18046    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18047    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'
18048    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'
18049    ;;
18050  irix5* | irix6*)
18051    case $cc_basename in
18052      CC*)
18053	# SGI C++
18054	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'
18055
18056	# Archives containing C++ object files must be created using
18057	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18058	# necessary to make sure instantiated templates are included
18059	# in the archive.
18060	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18061	;;
18062      *)
18063	if test "$GXX" = yes; then
18064	  if test "$with_gnu_ld" = no; then
18065	    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'
18066	  else
18067	    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'
18068	  fi
18069	fi
18070	link_all_deplibs_CXX=yes
18071	;;
18072    esac
18073    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18074    hardcode_libdir_separator_CXX=:
18075    ;;
18076  linux* | k*bsd*-gnu)
18077    case $cc_basename in
18078      KCC*)
18079	# Kuck and Associates, Inc. (KAI) C++ Compiler
18080
18081	# KCC will only create a shared library if the output file
18082	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18083	# to its proper name (with version) after linking.
18084	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'
18085	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'
18086	# Commands to make compiler produce verbose output that lists
18087	# what "hidden" libraries, object files and flags are used when
18088	# linking a shared library.
18089	#
18090	# There doesn't appear to be a way to prevent this compiler from
18091	# explicitly linking system object files so we need to strip them
18092	# from the output so that they don't get included in the library
18093	# dependencies.
18094	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'
18095
18096	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18097	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18098
18099	# Archives containing C++ object files must be created using
18100	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18101	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18102	;;
18103      icpc*)
18104	# Intel C++
18105	with_gnu_ld=yes
18106	# version 8.0 and above of icpc choke on multiply defined symbols
18107	# if we add $predep_objects and $postdep_objects, however 7.1 and
18108	# earlier do not add the objects themselves.
18109	case `$CC -V 2>&1` in
18110	*"Version 7."*)
18111  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18112  	  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'
18113	  ;;
18114	*)  # Version 8.0 or newer
18115	  tmp_idyn=
18116	  case $host_cpu in
18117	    ia64*) tmp_idyn=' -i_dynamic';;
18118	  esac
18119  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18120	  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'
18121	  ;;
18122	esac
18123	archive_cmds_need_lc_CXX=no
18124	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18125	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18126	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18127	;;
18128      pgCC* | pgcpp*)
18129        # Portland Group C++ compiler
18130	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18131  	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'
18132
18133	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18134	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18135	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'
18136        ;;
18137      cxx*)
18138	# Compaq C++
18139	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18140	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'
18141
18142	runpath_var=LD_RUN_PATH
18143	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18144	hardcode_libdir_separator_CXX=:
18145
18146	# Commands to make compiler produce verbose output that lists
18147	# what "hidden" libraries, object files and flags are used when
18148	# linking a shared library.
18149	#
18150	# There doesn't appear to be a way to prevent this compiler from
18151	# explicitly linking system object files so we need to strip them
18152	# from the output so that they don't get included in the library
18153	# dependencies.
18154	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'
18155	;;
18156      *)
18157	case `$CC -V 2>&1 | sed 5q` in
18158	*Sun\ C*)
18159	  # Sun C++ 5.9
18160	  no_undefined_flag_CXX=' -zdefs'
18161	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18162	  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'
18163	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18164	  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'
18165
18166	  # Not sure whether something based on
18167	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18168	  # would be better.
18169	  output_verbose_link_cmd='echo'
18170
18171	  # Archives containing C++ object files must be created using
18172	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18173	  # necessary to make sure instantiated templates are included
18174	  # in the archive.
18175	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18176	  ;;
18177	esac
18178	;;
18179    esac
18180    ;;
18181  lynxos*)
18182    # FIXME: insert proper C++ library support
18183    ld_shlibs_CXX=no
18184    ;;
18185  m88k*)
18186    # FIXME: insert proper C++ library support
18187    ld_shlibs_CXX=no
18188    ;;
18189  mvs*)
18190    case $cc_basename in
18191      cxx*)
18192	# FIXME: insert proper C++ library support
18193	ld_shlibs_CXX=no
18194	;;
18195      *)
18196	# FIXME: insert proper C++ library support
18197	ld_shlibs_CXX=no
18198	;;
18199    esac
18200    ;;
18201  netbsd* | netbsdelf*-gnu)
18202    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18203      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18204      wlarc=
18205      hardcode_libdir_flag_spec_CXX='-R$libdir'
18206      hardcode_direct_CXX=yes
18207      hardcode_shlibpath_var_CXX=no
18208    fi
18209    # Workaround some broken pre-1.5 toolchains
18210    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18211    ;;
18212  openbsd2*)
18213    # C++ shared libraries are fairly broken
18214    ld_shlibs_CXX=no
18215    ;;
18216  openbsd*)
18217    if test -f /usr/libexec/ld.so; then
18218      hardcode_direct_CXX=yes
18219      hardcode_shlibpath_var_CXX=no
18220      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18221      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18222      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18223	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18224	export_dynamic_flag_spec_CXX='${wl}-E'
18225	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18226      fi
18227      output_verbose_link_cmd='echo'
18228    else
18229      ld_shlibs_CXX=no
18230    fi
18231    ;;
18232  osf3*)
18233    case $cc_basename in
18234      KCC*)
18235	# Kuck and Associates, Inc. (KAI) C++ Compiler
18236
18237	# KCC will only create a shared library if the output file
18238	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18239	# to its proper name (with version) after linking.
18240	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'
18241
18242	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18243	hardcode_libdir_separator_CXX=:
18244
18245	# Archives containing C++ object files must be created using
18246	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18247	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18248
18249	;;
18250      RCC*)
18251	# Rational C++ 2.4.1
18252	# FIXME: insert proper C++ library support
18253	ld_shlibs_CXX=no
18254	;;
18255      cxx*)
18256	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18257	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'
18258
18259	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18260	hardcode_libdir_separator_CXX=:
18261
18262	# Commands to make compiler produce verbose output that lists
18263	# what "hidden" libraries, object files and flags are used when
18264	# linking a shared library.
18265	#
18266	# There doesn't appear to be a way to prevent this compiler from
18267	# explicitly linking system object files so we need to strip them
18268	# from the output so that they don't get included in the library
18269	# dependencies.
18270	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'
18271	;;
18272      *)
18273	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18274	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18275	  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'
18276
18277	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18278	  hardcode_libdir_separator_CXX=:
18279
18280	  # Commands to make compiler produce verbose output that lists
18281	  # what "hidden" libraries, object files and flags are used when
18282	  # linking a shared library.
18283	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18284
18285	else
18286	  # FIXME: insert proper C++ library support
18287	  ld_shlibs_CXX=no
18288	fi
18289	;;
18290    esac
18291    ;;
18292  osf4* | osf5*)
18293    case $cc_basename in
18294      KCC*)
18295	# Kuck and Associates, Inc. (KAI) C++ Compiler
18296
18297	# KCC will only create a shared library if the output file
18298	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18299	# to its proper name (with version) after linking.
18300	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'
18301
18302	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18303	hardcode_libdir_separator_CXX=:
18304
18305	# Archives containing C++ object files must be created using
18306	# the KAI C++ compiler.
18307	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18308	;;
18309      RCC*)
18310	# Rational C++ 2.4.1
18311	# FIXME: insert proper C++ library support
18312	ld_shlibs_CXX=no
18313	;;
18314      cxx*)
18315	allow_undefined_flag_CXX=' -expect_unresolved \*'
18316	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'
18317	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18318	  echo "-hidden">> $lib.exp~
18319	  $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~
18320	  $rm $lib.exp'
18321
18322	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18323	hardcode_libdir_separator_CXX=:
18324
18325	# Commands to make compiler produce verbose output that lists
18326	# what "hidden" libraries, object files and flags are used when
18327	# linking a shared library.
18328	#
18329	# There doesn't appear to be a way to prevent this compiler from
18330	# explicitly linking system object files so we need to strip them
18331	# from the output so that they don't get included in the library
18332	# dependencies.
18333	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'
18334	;;
18335      *)
18336	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18337	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18338	 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'
18339
18340	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18341	  hardcode_libdir_separator_CXX=:
18342
18343	  # Commands to make compiler produce verbose output that lists
18344	  # what "hidden" libraries, object files and flags are used when
18345	  # linking a shared library.
18346	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18347
18348	else
18349	  # FIXME: insert proper C++ library support
18350	  ld_shlibs_CXX=no
18351	fi
18352	;;
18353    esac
18354    ;;
18355  psos*)
18356    # FIXME: insert proper C++ library support
18357    ld_shlibs_CXX=no
18358    ;;
18359  sunos4*)
18360    case $cc_basename in
18361      CC*)
18362	# Sun C++ 4.x
18363	# FIXME: insert proper C++ library support
18364	ld_shlibs_CXX=no
18365	;;
18366      lcc*)
18367	# Lucid
18368	# FIXME: insert proper C++ library support
18369	ld_shlibs_CXX=no
18370	;;
18371      *)
18372	# FIXME: insert proper C++ library support
18373	ld_shlibs_CXX=no
18374	;;
18375    esac
18376    ;;
18377  solaris*)
18378    case $cc_basename in
18379      CC*)
18380	# Sun C++ 4.2, 5.x and Centerline C++
18381        archive_cmds_need_lc_CXX=yes
18382	no_undefined_flag_CXX=' -zdefs'
18383	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18384	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18385	$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'
18386
18387	hardcode_libdir_flag_spec_CXX='-R$libdir'
18388	hardcode_shlibpath_var_CXX=no
18389	case $host_os in
18390	  solaris2.[0-5] | solaris2.[0-5].*) ;;
18391	  *)
18392	    # The compiler driver will combine and reorder linker options,
18393	    # but understands `-z linker_flag'.
18394	    # Supported since Solaris 2.6 (maybe 2.5.1?)
18395	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18396	    ;;
18397	esac
18398	link_all_deplibs_CXX=yes
18399
18400	output_verbose_link_cmd='echo'
18401
18402	# Archives containing C++ object files must be created using
18403	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
18404	# necessary to make sure instantiated templates are included
18405	# in the archive.
18406	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18407	;;
18408      gcx*)
18409	# Green Hills C++ Compiler
18410	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18411
18412	# The C++ compiler must be used to create the archive.
18413	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18414	;;
18415      *)
18416	# GNU C++ compiler with Solaris linker
18417	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18418	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18419	  if $CC --version | grep -v '^2\.7' > /dev/null; then
18420	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18421	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18422		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18423
18424	    # Commands to make compiler produce verbose output that lists
18425	    # what "hidden" libraries, object files and flags are used when
18426	    # linking a shared library.
18427	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18428	  else
18429	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
18430	    # platform.
18431	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18432	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18433		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18434
18435	    # Commands to make compiler produce verbose output that lists
18436	    # what "hidden" libraries, object files and flags are used when
18437	    # linking a shared library.
18438	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18439	  fi
18440
18441	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18442	  case $host_os in
18443	  solaris2.[0-5] | solaris2.[0-5].*) ;;
18444	  *)
18445	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18446	    ;;
18447	  esac
18448	fi
18449	;;
18450    esac
18451    ;;
18452  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18453    no_undefined_flag_CXX='${wl}-z,text'
18454    archive_cmds_need_lc_CXX=no
18455    hardcode_shlibpath_var_CXX=no
18456    runpath_var='LD_RUN_PATH'
18457
18458    case $cc_basename in
18459      CC*)
18460	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18461	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18462	;;
18463      *)
18464	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18465	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18466	;;
18467    esac
18468    ;;
18469  sysv5* | sco3.2v5* | sco5v6*)
18470    # Note: We can NOT use -z defs as we might desire, because we do not
18471    # link with -lc, and that would cause any symbols used from libc to
18472    # always be unresolved, which means just about no library would
18473    # ever link correctly.  If we're not using GNU ld we use -z text
18474    # though, which does catch some bad symbols but isn't as heavy-handed
18475    # as -z defs.
18476    # For security reasons, it is highly recommended that you always
18477    # use absolute paths for naming shared libraries, and exclude the
18478    # DT_RUNPATH tag from executables and libraries.  But doing so
18479    # requires that you compile everything twice, which is a pain.
18480    # So that behaviour is only enabled if SCOABSPATH is set to a
18481    # non-empty value in the environment.  Most likely only useful for
18482    # creating official distributions of packages.
18483    # This is a hack until libtool officially supports absolute path
18484    # names for shared libraries.
18485    no_undefined_flag_CXX='${wl}-z,text'
18486    allow_undefined_flag_CXX='${wl}-z,nodefs'
18487    archive_cmds_need_lc_CXX=no
18488    hardcode_shlibpath_var_CXX=no
18489    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18490    hardcode_libdir_separator_CXX=':'
18491    link_all_deplibs_CXX=yes
18492    export_dynamic_flag_spec_CXX='${wl}-Bexport'
18493    runpath_var='LD_RUN_PATH'
18494
18495    case $cc_basename in
18496      CC*)
18497	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18498	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18499	;;
18500      *)
18501	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18502	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18503	;;
18504    esac
18505    ;;
18506  tandem*)
18507    case $cc_basename in
18508      NCC*)
18509	# NonStop-UX NCC 3.20
18510	# FIXME: insert proper C++ library support
18511	ld_shlibs_CXX=no
18512	;;
18513      *)
18514	# FIXME: insert proper C++ library support
18515	ld_shlibs_CXX=no
18516	;;
18517    esac
18518    ;;
18519  vxworks*)
18520    # FIXME: insert proper C++ library support
18521    ld_shlibs_CXX=no
18522    ;;
18523  *)
18524    # FIXME: insert proper C++ library support
18525    ld_shlibs_CXX=no
18526    ;;
18527esac
18528{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18529echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18530test "$ld_shlibs_CXX" = no && can_build_shared=no
18531
18532GCC_CXX="$GXX"
18533LD_CXX="$LD"
18534
18535cat > conftest.$ac_ext <<EOF
18536class Foo
18537{
18538public:
18539  Foo (void) { a = 0; }
18540private:
18541  int a;
18542};
18543EOF
18544
18545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546  (eval $ac_compile) 2>&5
18547  ac_status=$?
18548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549  (exit $ac_status); }; then
18550  # Parse the compiler output and extract the necessary
18551  # objects, libraries and library flags.
18552
18553  # Sentinel used to keep track of whether or not we are before
18554  # the conftest object file.
18555  pre_test_object_deps_done=no
18556
18557  # The `*' in the case matches for architectures that use `case' in
18558  # $output_verbose_cmd can trigger glob expansion during the loop
18559  # eval without this substitution.
18560  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18561
18562  for p in `eval $output_verbose_link_cmd`; do
18563    case $p in
18564
18565    -L* | -R* | -l*)
18566       # Some compilers place space between "-{L,R}" and the path.
18567       # Remove the space.
18568       if test $p = "-L" \
18569	  || test $p = "-R"; then
18570	 prev=$p
18571	 continue
18572       else
18573	 prev=
18574       fi
18575
18576       if test "$pre_test_object_deps_done" = no; then
18577	 case $p in
18578	 -L* | -R*)
18579	   # Internal compiler library paths should come after those
18580	   # provided the user.  The postdeps already come after the
18581	   # user supplied libs so there is no need to process them.
18582	   if test -z "$compiler_lib_search_path_CXX"; then
18583	     compiler_lib_search_path_CXX="${prev}${p}"
18584	   else
18585	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18586	   fi
18587	   ;;
18588	 # The "-l" case would never come before the object being
18589	 # linked, so don't bother handling this case.
18590	 esac
18591       else
18592	 if test -z "$postdeps_CXX"; then
18593	   postdeps_CXX="${prev}${p}"
18594	 else
18595	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18596	 fi
18597       fi
18598       ;;
18599
18600    *.$objext)
18601       # This assumes that the test object file only shows up
18602       # once in the compiler output.
18603       if test "$p" = "conftest.$objext"; then
18604	 pre_test_object_deps_done=yes
18605	 continue
18606       fi
18607
18608       if test "$pre_test_object_deps_done" = no; then
18609	 if test -z "$predep_objects_CXX"; then
18610	   predep_objects_CXX="$p"
18611	 else
18612	   predep_objects_CXX="$predep_objects_CXX $p"
18613	 fi
18614       else
18615	 if test -z "$postdep_objects_CXX"; then
18616	   postdep_objects_CXX="$p"
18617	 else
18618	   postdep_objects_CXX="$postdep_objects_CXX $p"
18619	 fi
18620       fi
18621       ;;
18622
18623    *) ;; # Ignore the rest.
18624
18625    esac
18626  done
18627
18628  # Clean up.
18629  rm -f a.out a.exe
18630else
18631  echo "libtool.m4: error: problem compiling CXX test program"
18632fi
18633
18634$rm -f confest.$objext
18635
18636compiler_lib_search_dirs_CXX=
18637if test -n "$compiler_lib_search_path_CXX"; then
18638  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18639fi
18640
18641# PORTME: override above test on systems where it is broken
18642case $host_os in
18643interix[3-9]*)
18644  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18645  # hack all around it, let's just trust "g++" to DTRT.
18646  predep_objects_CXX=
18647  postdep_objects_CXX=
18648  postdeps_CXX=
18649  ;;
18650
18651linux*)
18652  case `$CC -V 2>&1 | sed 5q` in
18653  *Sun\ C*)
18654    # Sun C++ 5.9
18655    #
18656    # The more standards-conforming stlport4 library is
18657    # incompatible with the Cstd library. Avoid specifying
18658    # it if it's in CXXFLAGS. Ignore libCrun as
18659    # -library=stlport4 depends on it.
18660    case " $CXX $CXXFLAGS " in
18661    *" -library=stlport4 "*)
18662      solaris_use_stlport4=yes
18663      ;;
18664    esac
18665    if test "$solaris_use_stlport4" != yes; then
18666      postdeps_CXX='-library=Cstd -library=Crun'
18667    fi
18668    ;;
18669  esac
18670  ;;
18671
18672solaris*)
18673  case $cc_basename in
18674  CC*)
18675    # The more standards-conforming stlport4 library is
18676    # incompatible with the Cstd library. Avoid specifying
18677    # it if it's in CXXFLAGS. Ignore libCrun as
18678    # -library=stlport4 depends on it.
18679    case " $CXX $CXXFLAGS " in
18680    *" -library=stlport4 "*)
18681      solaris_use_stlport4=yes
18682      ;;
18683    esac
18684
18685    # Adding this requires a known-good setup of shared libraries for
18686    # Sun compiler versions before 5.6, else PIC objects from an old
18687    # archive will be linked into the output, leading to subtle bugs.
18688    if test "$solaris_use_stlport4" != yes; then
18689      postdeps_CXX='-library=Cstd -library=Crun'
18690    fi
18691    ;;
18692  esac
18693  ;;
18694esac
18695
18696case " $postdeps_CXX " in
18697*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18698esac
18699
18700lt_prog_compiler_wl_CXX=
18701lt_prog_compiler_pic_CXX=
18702lt_prog_compiler_static_CXX=
18703
18704{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18705echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18706
18707  # C++ specific cases for pic, static, wl, etc.
18708  if test "$GXX" = yes; then
18709    lt_prog_compiler_wl_CXX='-Wl,'
18710    lt_prog_compiler_static_CXX='-static'
18711
18712    case $host_os in
18713    aix*)
18714      # All AIX code is PIC.
18715      if test "$host_cpu" = ia64; then
18716	# AIX 5 now supports IA64 processor
18717	lt_prog_compiler_static_CXX='-Bstatic'
18718      fi
18719      ;;
18720    amigaos*)
18721      # FIXME: we need at least 68020 code to build shared libraries, but
18722      # adding the `-m68020' flag to GCC prevents building anything better,
18723      # like `-m68040'.
18724      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18725      ;;
18726    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18727      # PIC is the default for these OSes.
18728      ;;
18729    mingw* | cygwin* | os2* | pw32*)
18730      # This hack is so that the source file can tell whether it is being
18731      # built for inclusion in a dll (and should export symbols for example).
18732      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18733      # (--disable-auto-import) libraries
18734      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18735      ;;
18736    darwin* | rhapsody*)
18737      # PIC is the default on this platform
18738      # Common symbols not allowed in MH_DYLIB files
18739      lt_prog_compiler_pic_CXX='-fno-common'
18740      ;;
18741    *djgpp*)
18742      # DJGPP does not support shared libraries at all
18743      lt_prog_compiler_pic_CXX=
18744      ;;
18745    interix[3-9]*)
18746      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18747      # Instead, we relocate shared libraries at runtime.
18748      ;;
18749    sysv4*MP*)
18750      if test -d /usr/nec; then
18751	lt_prog_compiler_pic_CXX=-Kconform_pic
18752      fi
18753      ;;
18754    hpux*)
18755      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18756      # not for PA HP-UX.
18757      case $host_cpu in
18758      hppa*64*|ia64*)
18759	;;
18760      *)
18761	lt_prog_compiler_pic_CXX='-fPIC'
18762	;;
18763      esac
18764      ;;
18765    *)
18766      lt_prog_compiler_pic_CXX='-fPIC'
18767      ;;
18768    esac
18769  else
18770    case $host_os in
18771      aix[4-9]*)
18772	# All AIX code is PIC.
18773	if test "$host_cpu" = ia64; then
18774	  # AIX 5 now supports IA64 processor
18775	  lt_prog_compiler_static_CXX='-Bstatic'
18776	else
18777	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18778	fi
18779	;;
18780      chorus*)
18781	case $cc_basename in
18782	cxch68*)
18783	  # Green Hills C++ Compiler
18784	  # _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"
18785	  ;;
18786	esac
18787	;;
18788       darwin*)
18789         # PIC is the default on this platform
18790         # Common symbols not allowed in MH_DYLIB files
18791         case $cc_basename in
18792           xlc*)
18793           lt_prog_compiler_pic_CXX='-qnocommon'
18794           lt_prog_compiler_wl_CXX='-Wl,'
18795           ;;
18796         esac
18797       ;;
18798      dgux*)
18799	case $cc_basename in
18800	  ec++*)
18801	    lt_prog_compiler_pic_CXX='-KPIC'
18802	    ;;
18803	  ghcx*)
18804	    # Green Hills C++ Compiler
18805	    lt_prog_compiler_pic_CXX='-pic'
18806	    ;;
18807	  *)
18808	    ;;
18809	esac
18810	;;
18811      freebsd* | dragonfly*)
18812	# FreeBSD uses GNU C++
18813	;;
18814      hpux9* | hpux10* | hpux11*)
18815	case $cc_basename in
18816	  CC*)
18817	    lt_prog_compiler_wl_CXX='-Wl,'
18818	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18819	    if test "$host_cpu" != ia64; then
18820	      lt_prog_compiler_pic_CXX='+Z'
18821	    fi
18822	    ;;
18823	  aCC*)
18824	    lt_prog_compiler_wl_CXX='-Wl,'
18825	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18826	    case $host_cpu in
18827	    hppa*64*|ia64*)
18828	      # +Z the default
18829	      ;;
18830	    *)
18831	      lt_prog_compiler_pic_CXX='+Z'
18832	      ;;
18833	    esac
18834	    ;;
18835	  *)
18836	    ;;
18837	esac
18838	;;
18839      interix*)
18840	# This is c89, which is MS Visual C++ (no shared libs)
18841	# Anyone wants to do a port?
18842	;;
18843      irix5* | irix6* | nonstopux*)
18844	case $cc_basename in
18845	  CC*)
18846	    lt_prog_compiler_wl_CXX='-Wl,'
18847	    lt_prog_compiler_static_CXX='-non_shared'
18848	    # CC pic flag -KPIC is the default.
18849	    ;;
18850	  *)
18851	    ;;
18852	esac
18853	;;
18854      linux* | k*bsd*-gnu)
18855	case $cc_basename in
18856	  KCC*)
18857	    # KAI C++ Compiler
18858	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18859	    lt_prog_compiler_pic_CXX='-fPIC'
18860	    ;;
18861	  icpc* | ecpc*)
18862	    # Intel C++
18863	    lt_prog_compiler_wl_CXX='-Wl,'
18864	    lt_prog_compiler_pic_CXX='-KPIC'
18865	    lt_prog_compiler_static_CXX='-static'
18866	    ;;
18867	  pgCC* | pgcpp*)
18868	    # Portland Group C++ compiler.
18869	    lt_prog_compiler_wl_CXX='-Wl,'
18870	    lt_prog_compiler_pic_CXX='-fpic'
18871	    lt_prog_compiler_static_CXX='-Bstatic'
18872	    ;;
18873	  cxx*)
18874	    # Compaq C++
18875	    # Make sure the PIC flag is empty.  It appears that all Alpha
18876	    # Linux and Compaq Tru64 Unix objects are PIC.
18877	    lt_prog_compiler_pic_CXX=
18878	    lt_prog_compiler_static_CXX='-non_shared'
18879	    ;;
18880	  *)
18881	    case `$CC -V 2>&1 | sed 5q` in
18882	    *Sun\ C*)
18883	      # Sun C++ 5.9
18884	      lt_prog_compiler_pic_CXX='-KPIC'
18885	      lt_prog_compiler_static_CXX='-Bstatic'
18886	      lt_prog_compiler_wl_CXX='-Qoption ld '
18887	      ;;
18888	    esac
18889	    ;;
18890	esac
18891	;;
18892      lynxos*)
18893	;;
18894      m88k*)
18895	;;
18896      mvs*)
18897	case $cc_basename in
18898	  cxx*)
18899	    lt_prog_compiler_pic_CXX='-W c,exportall'
18900	    ;;
18901	  *)
18902	    ;;
18903	esac
18904	;;
18905      netbsd* | netbsdelf*-gnu)
18906	;;
18907      osf3* | osf4* | osf5*)
18908	case $cc_basename in
18909	  KCC*)
18910	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18911	    ;;
18912	  RCC*)
18913	    # Rational C++ 2.4.1
18914	    lt_prog_compiler_pic_CXX='-pic'
18915	    ;;
18916	  cxx*)
18917	    # Digital/Compaq C++
18918	    lt_prog_compiler_wl_CXX='-Wl,'
18919	    # Make sure the PIC flag is empty.  It appears that all Alpha
18920	    # Linux and Compaq Tru64 Unix objects are PIC.
18921	    lt_prog_compiler_pic_CXX=
18922	    lt_prog_compiler_static_CXX='-non_shared'
18923	    ;;
18924	  *)
18925	    ;;
18926	esac
18927	;;
18928      psos*)
18929	;;
18930      solaris*)
18931	case $cc_basename in
18932	  CC*)
18933	    # Sun C++ 4.2, 5.x and Centerline C++
18934	    lt_prog_compiler_pic_CXX='-KPIC'
18935	    lt_prog_compiler_static_CXX='-Bstatic'
18936	    lt_prog_compiler_wl_CXX='-Qoption ld '
18937	    ;;
18938	  gcx*)
18939	    # Green Hills C++ Compiler
18940	    lt_prog_compiler_pic_CXX='-PIC'
18941	    ;;
18942	  *)
18943	    ;;
18944	esac
18945	;;
18946      sunos4*)
18947	case $cc_basename in
18948	  CC*)
18949	    # Sun C++ 4.x
18950	    lt_prog_compiler_pic_CXX='-pic'
18951	    lt_prog_compiler_static_CXX='-Bstatic'
18952	    ;;
18953	  lcc*)
18954	    # Lucid
18955	    lt_prog_compiler_pic_CXX='-pic'
18956	    ;;
18957	  *)
18958	    ;;
18959	esac
18960	;;
18961      tandem*)
18962	case $cc_basename in
18963	  NCC*)
18964	    # NonStop-UX NCC 3.20
18965	    lt_prog_compiler_pic_CXX='-KPIC'
18966	    ;;
18967	  *)
18968	    ;;
18969	esac
18970	;;
18971      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18972	case $cc_basename in
18973	  CC*)
18974	    lt_prog_compiler_wl_CXX='-Wl,'
18975	    lt_prog_compiler_pic_CXX='-KPIC'
18976	    lt_prog_compiler_static_CXX='-Bstatic'
18977	    ;;
18978	esac
18979	;;
18980      vxworks*)
18981	;;
18982      *)
18983	lt_prog_compiler_can_build_shared_CXX=no
18984	;;
18985    esac
18986  fi
18987
18988{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18989echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18990
18991#
18992# Check to make sure the PIC flag actually works.
18993#
18994if test -n "$lt_prog_compiler_pic_CXX"; then
18995
18996{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18997echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18998if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18999  echo $ECHO_N "(cached) $ECHO_C" >&6
19000else
19001  lt_cv_prog_compiler_pic_works_CXX=no
19002  ac_outfile=conftest.$ac_objext
19003   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19004   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19005   # Insert the option either (1) after the last *FLAGS variable, or
19006   # (2) before a word containing "conftest.", or (3) at the end.
19007   # Note that $ac_compile itself does not contain backslashes and begins
19008   # with a dollar sign (not a hyphen), so the echo should work correctly.
19009   # The option is referenced via a variable to avoid confusing sed.
19010   lt_compile=`echo "$ac_compile" | $SED \
19011   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19012   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19013   -e 's:$: $lt_compiler_flag:'`
19014   (eval echo "\"\$as_me:19014: $lt_compile\"" >&5)
19015   (eval "$lt_compile" 2>conftest.err)
19016   ac_status=$?
19017   cat conftest.err >&5
19018   echo "$as_me:19018: \$? = $ac_status" >&5
19019   if (exit $ac_status) && test -s "$ac_outfile"; then
19020     # The compiler can only warn and ignore the option if not recognized
19021     # So say no if there are warnings other than the usual output.
19022     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19023     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19024     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19025       lt_cv_prog_compiler_pic_works_CXX=yes
19026     fi
19027   fi
19028   $rm conftest*
19029
19030fi
19031{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19032echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19033
19034if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19035    case $lt_prog_compiler_pic_CXX in
19036     "" | " "*) ;;
19037     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19038     esac
19039else
19040    lt_prog_compiler_pic_CXX=
19041     lt_prog_compiler_can_build_shared_CXX=no
19042fi
19043
19044fi
19045case $host_os in
19046  # For platforms which do not support PIC, -DPIC is meaningless:
19047  *djgpp*)
19048    lt_prog_compiler_pic_CXX=
19049    ;;
19050  *)
19051    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19052    ;;
19053esac
19054
19055#
19056# Check to make sure the static flag actually works.
19057#
19058wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19059{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19060echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19061if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
19062  echo $ECHO_N "(cached) $ECHO_C" >&6
19063else
19064  lt_cv_prog_compiler_static_works_CXX=no
19065   save_LDFLAGS="$LDFLAGS"
19066   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19067   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19068   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19069     # The linker can only warn and ignore the option if not recognized
19070     # So say no if there are warnings
19071     if test -s conftest.err; then
19072       # Append any errors to the config.log.
19073       cat conftest.err 1>&5
19074       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19075       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19076       if diff conftest.exp conftest.er2 >/dev/null; then
19077         lt_cv_prog_compiler_static_works_CXX=yes
19078       fi
19079     else
19080       lt_cv_prog_compiler_static_works_CXX=yes
19081     fi
19082   fi
19083   $rm -r conftest*
19084   LDFLAGS="$save_LDFLAGS"
19085
19086fi
19087{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19088echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
19089
19090if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19091    :
19092else
19093    lt_prog_compiler_static_CXX=
19094fi
19095
19096
19097{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19098echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19099if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19100  echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102  lt_cv_prog_compiler_c_o_CXX=no
19103   $rm -r conftest 2>/dev/null
19104   mkdir conftest
19105   cd conftest
19106   mkdir out
19107   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19108
19109   lt_compiler_flag="-o out/conftest2.$ac_objext"
19110   # Insert the option either (1) after the last *FLAGS variable, or
19111   # (2) before a word containing "conftest.", or (3) at the end.
19112   # Note that $ac_compile itself does not contain backslashes and begins
19113   # with a dollar sign (not a hyphen), so the echo should work correctly.
19114   lt_compile=`echo "$ac_compile" | $SED \
19115   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19116   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19117   -e 's:$: $lt_compiler_flag:'`
19118   (eval echo "\"\$as_me:19118: $lt_compile\"" >&5)
19119   (eval "$lt_compile" 2>out/conftest.err)
19120   ac_status=$?
19121   cat out/conftest.err >&5
19122   echo "$as_me:19122: \$? = $ac_status" >&5
19123   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19124   then
19125     # The compiler can only warn and ignore the option if not recognized
19126     # So say no if there are warnings
19127     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19128     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19129     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19130       lt_cv_prog_compiler_c_o_CXX=yes
19131     fi
19132   fi
19133   chmod u+w . 2>&5
19134   $rm conftest*
19135   # SGI C++ compiler will create directory out/ii_files/ for
19136   # template instantiation
19137   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19138   $rm out/* && rmdir out
19139   cd ..
19140   rmdir conftest
19141   $rm conftest*
19142
19143fi
19144{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19145echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19146
19147
19148hard_links="nottested"
19149if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19150  # do not overwrite the value of need_locks provided by the user
19151  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19152echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19153  hard_links=yes
19154  $rm conftest*
19155  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19156  touch conftest.a
19157  ln conftest.a conftest.b 2>&5 || hard_links=no
19158  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19159  { echo "$as_me:$LINENO: result: $hard_links" >&5
19160echo "${ECHO_T}$hard_links" >&6; }
19161  if test "$hard_links" = no; then
19162    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19163echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19164    need_locks=warn
19165  fi
19166else
19167  need_locks=no
19168fi
19169
19170{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19171echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19172
19173  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19174  case $host_os in
19175  aix[4-9]*)
19176    # If we're using GNU nm, then we don't want the "-C" option.
19177    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19178    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19179      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'
19180    else
19181      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'
19182    fi
19183    ;;
19184  pw32*)
19185    export_symbols_cmds_CXX="$ltdll_cmds"
19186  ;;
19187  cygwin* | mingw*)
19188    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'
19189  ;;
19190  linux* | k*bsd*-gnu)
19191    link_all_deplibs_CXX=no
19192  ;;
19193  *)
19194    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19195  ;;
19196  esac
19197  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19198
19199{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19200echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19201test "$ld_shlibs_CXX" = no && can_build_shared=no
19202
19203#
19204# Do we need to explicitly link libc?
19205#
19206case "x$archive_cmds_need_lc_CXX" in
19207x|xyes)
19208  # Assume -lc should be added
19209  archive_cmds_need_lc_CXX=yes
19210
19211  if test "$enable_shared" = yes && test "$GCC" = yes; then
19212    case $archive_cmds_CXX in
19213    *'~'*)
19214      # FIXME: we may have to deal with multi-command sequences.
19215      ;;
19216    '$CC '*)
19217      # Test whether the compiler implicitly links with -lc since on some
19218      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19219      # to ld, don't add -lc before -lgcc.
19220      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19221echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19222      $rm conftest*
19223      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19224
19225      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19226  (eval $ac_compile) 2>&5
19227  ac_status=$?
19228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229  (exit $ac_status); } 2>conftest.err; then
19230        soname=conftest
19231        lib=conftest
19232        libobjs=conftest.$ac_objext
19233        deplibs=
19234        wl=$lt_prog_compiler_wl_CXX
19235	pic_flag=$lt_prog_compiler_pic_CXX
19236        compiler_flags=-v
19237        linker_flags=-v
19238        verstring=
19239        output_objdir=.
19240        libname=conftest
19241        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19242        allow_undefined_flag_CXX=
19243        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19244  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19245  ac_status=$?
19246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247  (exit $ac_status); }
19248        then
19249	  archive_cmds_need_lc_CXX=no
19250        else
19251	  archive_cmds_need_lc_CXX=yes
19252        fi
19253        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19254      else
19255        cat conftest.err 1>&5
19256      fi
19257      $rm conftest*
19258      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19259echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19260      ;;
19261    esac
19262  fi
19263  ;;
19264esac
19265
19266{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19267echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19268library_names_spec=
19269libname_spec='lib$name'
19270soname_spec=
19271shrext_cmds=".so"
19272postinstall_cmds=
19273postuninstall_cmds=
19274finish_cmds=
19275finish_eval=
19276shlibpath_var=
19277shlibpath_overrides_runpath=unknown
19278version_type=none
19279dynamic_linker="$host_os ld.so"
19280sys_lib_dlsearch_path_spec="/lib /usr/lib"
19281
19282need_lib_prefix=unknown
19283hardcode_into_libs=no
19284
19285# when you set need_version to no, make sure it does not cause -set_version
19286# flags to be left without arguments
19287need_version=unknown
19288
19289case $host_os in
19290aix3*)
19291  version_type=linux
19292  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19293  shlibpath_var=LIBPATH
19294
19295  # AIX 3 has no versioning support, so we append a major version to the name.
19296  soname_spec='${libname}${release}${shared_ext}$major'
19297  ;;
19298
19299aix[4-9]*)
19300  version_type=linux
19301  need_lib_prefix=no
19302  need_version=no
19303  hardcode_into_libs=yes
19304  if test "$host_cpu" = ia64; then
19305    # AIX 5 supports IA64
19306    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19307    shlibpath_var=LD_LIBRARY_PATH
19308  else
19309    # With GCC up to 2.95.x, collect2 would create an import file
19310    # for dependence libraries.  The import file would start with
19311    # the line `#! .'.  This would cause the generated library to
19312    # depend on `.', always an invalid library.  This was fixed in
19313    # development snapshots of GCC prior to 3.0.
19314    case $host_os in
19315      aix4 | aix4.[01] | aix4.[01].*)
19316      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19317	   echo ' yes '
19318	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19319	:
19320      else
19321	can_build_shared=no
19322      fi
19323      ;;
19324    esac
19325    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19326    # soname into executable. Probably we can add versioning support to
19327    # collect2, so additional links can be useful in future.
19328    if test "$aix_use_runtimelinking" = yes; then
19329      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19330      # instead of lib<name>.a to let people know that these are not
19331      # typical AIX shared libraries.
19332      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19333    else
19334      # We preserve .a as extension for shared libraries through AIX4.2
19335      # and later when we are not doing run time linking.
19336      library_names_spec='${libname}${release}.a $libname.a'
19337      soname_spec='${libname}${release}${shared_ext}$major'
19338    fi
19339    shlibpath_var=LIBPATH
19340  fi
19341  ;;
19342
19343amigaos*)
19344  library_names_spec='$libname.ixlibrary $libname.a'
19345  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19346  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'
19347  ;;
19348
19349beos*)
19350  library_names_spec='${libname}${shared_ext}'
19351  dynamic_linker="$host_os ld.so"
19352  shlibpath_var=LIBRARY_PATH
19353  ;;
19354
19355bsdi[45]*)
19356  version_type=linux
19357  need_version=no
19358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19359  soname_spec='${libname}${release}${shared_ext}$major'
19360  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19361  shlibpath_var=LD_LIBRARY_PATH
19362  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19363  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19364  # the default ld.so.conf also contains /usr/contrib/lib and
19365  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19366  # libtool to hard-code these into programs
19367  ;;
19368
19369cygwin* | mingw* | pw32*)
19370  version_type=windows
19371  shrext_cmds=".dll"
19372  need_version=no
19373  need_lib_prefix=no
19374
19375  case $GCC,$host_os in
19376  yes,cygwin* | yes,mingw* | yes,pw32*)
19377    library_names_spec='$libname.dll.a'
19378    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19379    postinstall_cmds='base_file=`basename \${file}`~
19380      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19381      dldir=$destdir/`dirname \$dlpath`~
19382      test -d \$dldir || mkdir -p \$dldir~
19383      $install_prog $dir/$dlname \$dldir/$dlname~
19384      chmod a+x \$dldir/$dlname'
19385    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19386      dlpath=$dir/\$dldll~
19387       $rm \$dlpath'
19388    shlibpath_overrides_runpath=yes
19389
19390    case $host_os in
19391    cygwin*)
19392      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19393      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19394      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19395      ;;
19396    mingw*)
19397      # MinGW DLLs use traditional 'lib' prefix
19398      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19399      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19400      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19401        # It is most probably a Windows format PATH printed by
19402        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19403        # path with ; separators, and with drive letters. We can handle the
19404        # drive letters (cygwin fileutils understands them), so leave them,
19405        # especially as we might pass files found there to a mingw objdump,
19406        # which wouldn't understand a cygwinified path. Ahh.
19407        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19408      else
19409        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19410      fi
19411      ;;
19412    pw32*)
19413      # pw32 DLLs use 'pw' prefix rather than 'lib'
19414      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19415      ;;
19416    esac
19417    ;;
19418
19419  *)
19420    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19421    ;;
19422  esac
19423  dynamic_linker='Win32 ld.exe'
19424  # FIXME: first we should search . and the directory the executable is in
19425  shlibpath_var=PATH
19426  ;;
19427
19428darwin* | rhapsody*)
19429  dynamic_linker="$host_os dyld"
19430  version_type=darwin
19431  need_lib_prefix=no
19432  need_version=no
19433  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19434  soname_spec='${libname}${release}${major}$shared_ext'
19435  shlibpath_overrides_runpath=yes
19436  shlibpath_var=DYLD_LIBRARY_PATH
19437  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19438
19439  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19440  ;;
19441
19442dgux*)
19443  version_type=linux
19444  need_lib_prefix=no
19445  need_version=no
19446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19447  soname_spec='${libname}${release}${shared_ext}$major'
19448  shlibpath_var=LD_LIBRARY_PATH
19449  ;;
19450
19451freebsd1*)
19452  dynamic_linker=no
19453  ;;
19454
19455freebsd* | dragonfly*)
19456  # DragonFly does not have aout.  When/if they implement a new
19457  # versioning mechanism, adjust this.
19458  if test -x /usr/bin/objformat; then
19459    objformat=`/usr/bin/objformat`
19460  else
19461    case $host_os in
19462    freebsd[123]*) objformat=aout ;;
19463    *) objformat=elf ;;
19464    esac
19465  fi
19466  version_type=freebsd-$objformat
19467  case $version_type in
19468    freebsd-elf*)
19469      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19470      need_version=no
19471      need_lib_prefix=no
19472      ;;
19473    freebsd-*)
19474      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19475      need_version=yes
19476      ;;
19477  esac
19478  shlibpath_var=LD_LIBRARY_PATH
19479  case $host_os in
19480  freebsd2*)
19481    shlibpath_overrides_runpath=yes
19482    ;;
19483  freebsd3.[01]* | freebsdelf3.[01]*)
19484    shlibpath_overrides_runpath=yes
19485    hardcode_into_libs=yes
19486    ;;
19487  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19488  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19489    shlibpath_overrides_runpath=no
19490    hardcode_into_libs=yes
19491    ;;
19492  *) # from 4.6 on, and DragonFly
19493    shlibpath_overrides_runpath=yes
19494    hardcode_into_libs=yes
19495    ;;
19496  esac
19497  ;;
19498
19499gnu*)
19500  version_type=linux
19501  need_lib_prefix=no
19502  need_version=no
19503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19504  soname_spec='${libname}${release}${shared_ext}$major'
19505  shlibpath_var=LD_LIBRARY_PATH
19506  hardcode_into_libs=yes
19507  ;;
19508
19509hpux9* | hpux10* | hpux11*)
19510  # Give a soname corresponding to the major version so that dld.sl refuses to
19511  # link against other versions.
19512  version_type=sunos
19513  need_lib_prefix=no
19514  need_version=no
19515  case $host_cpu in
19516  ia64*)
19517    shrext_cmds='.so'
19518    hardcode_into_libs=yes
19519    dynamic_linker="$host_os dld.so"
19520    shlibpath_var=LD_LIBRARY_PATH
19521    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19523    soname_spec='${libname}${release}${shared_ext}$major'
19524    if test "X$HPUX_IA64_MODE" = X32; then
19525      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19526    else
19527      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19528    fi
19529    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19530    ;;
19531   hppa*64*)
19532     shrext_cmds='.sl'
19533     hardcode_into_libs=yes
19534     dynamic_linker="$host_os dld.sl"
19535     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19538     soname_spec='${libname}${release}${shared_ext}$major'
19539     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19541     ;;
19542   *)
19543    shrext_cmds='.sl'
19544    dynamic_linker="$host_os dld.sl"
19545    shlibpath_var=SHLIB_PATH
19546    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19547    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19548    soname_spec='${libname}${release}${shared_ext}$major'
19549    ;;
19550  esac
19551  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19552  postinstall_cmds='chmod 555 $lib'
19553  ;;
19554
19555interix[3-9]*)
19556  version_type=linux
19557  need_lib_prefix=no
19558  need_version=no
19559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19560  soname_spec='${libname}${release}${shared_ext}$major'
19561  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19562  shlibpath_var=LD_LIBRARY_PATH
19563  shlibpath_overrides_runpath=no
19564  hardcode_into_libs=yes
19565  ;;
19566
19567irix5* | irix6* | nonstopux*)
19568  case $host_os in
19569    nonstopux*) version_type=nonstopux ;;
19570    *)
19571	if test "$lt_cv_prog_gnu_ld" = yes; then
19572		version_type=linux
19573	else
19574		version_type=irix
19575	fi ;;
19576  esac
19577  need_lib_prefix=no
19578  need_version=no
19579  soname_spec='${libname}${release}${shared_ext}$major'
19580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19581  case $host_os in
19582  irix5* | nonstopux*)
19583    libsuff= shlibsuff=
19584    ;;
19585  *)
19586    case $LD in # libtool.m4 will add one of these switches to LD
19587    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19588      libsuff= shlibsuff= libmagic=32-bit;;
19589    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19590      libsuff=32 shlibsuff=N32 libmagic=N32;;
19591    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19592      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19593    *) libsuff= shlibsuff= libmagic=never-match;;
19594    esac
19595    ;;
19596  esac
19597  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19598  shlibpath_overrides_runpath=no
19599  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19600  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19601  hardcode_into_libs=yes
19602  ;;
19603
19604# No shared lib support for Linux oldld, aout, or coff.
19605linux*oldld* | linux*aout* | linux*coff*)
19606  dynamic_linker=no
19607  ;;
19608
19609# This must be Linux ELF.
19610linux* | k*bsd*-gnu)
19611  version_type=linux
19612  need_lib_prefix=no
19613  need_version=no
19614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19615  soname_spec='${libname}${release}${shared_ext}$major'
19616  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19617  shlibpath_var=LD_LIBRARY_PATH
19618  shlibpath_overrides_runpath=no
19619  # This implies no fast_install, which is unacceptable.
19620  # Some rework will be needed to allow for fast_install
19621  # before this can be enabled.
19622  hardcode_into_libs=yes
19623
19624  # Append ld.so.conf contents to the search path
19625  if test -f /etc/ld.so.conf; then
19626    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19627    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19628  fi
19629
19630  # We used to test for /lib/ld.so.1 and disable shared libraries on
19631  # powerpc, because MkLinux only supported shared libraries with the
19632  # GNU dynamic linker.  Since this was broken with cross compilers,
19633  # most powerpc-linux boxes support dynamic linking these days and
19634  # people can always --disable-shared, the test was removed, and we
19635  # assume the GNU/Linux dynamic linker is in use.
19636  dynamic_linker='GNU/Linux ld.so'
19637  ;;
19638
19639netbsdelf*-gnu)
19640  version_type=linux
19641  need_lib_prefix=no
19642  need_version=no
19643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19644  soname_spec='${libname}${release}${shared_ext}$major'
19645  shlibpath_var=LD_LIBRARY_PATH
19646  shlibpath_overrides_runpath=no
19647  hardcode_into_libs=yes
19648  dynamic_linker='NetBSD ld.elf_so'
19649  ;;
19650
19651netbsd*)
19652  version_type=sunos
19653  need_lib_prefix=no
19654  need_version=no
19655  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19657    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19658    dynamic_linker='NetBSD (a.out) ld.so'
19659  else
19660    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19661    soname_spec='${libname}${release}${shared_ext}$major'
19662    dynamic_linker='NetBSD ld.elf_so'
19663  fi
19664  shlibpath_var=LD_LIBRARY_PATH
19665  shlibpath_overrides_runpath=yes
19666  hardcode_into_libs=yes
19667  ;;
19668
19669newsos6)
19670  version_type=linux
19671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19672  shlibpath_var=LD_LIBRARY_PATH
19673  shlibpath_overrides_runpath=yes
19674  ;;
19675
19676nto-qnx*)
19677  version_type=linux
19678  need_lib_prefix=no
19679  need_version=no
19680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19681  soname_spec='${libname}${release}${shared_ext}$major'
19682  shlibpath_var=LD_LIBRARY_PATH
19683  shlibpath_overrides_runpath=yes
19684  ;;
19685
19686openbsd*)
19687  version_type=sunos
19688  sys_lib_dlsearch_path_spec="/usr/lib"
19689  need_lib_prefix=no
19690  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19691  case $host_os in
19692    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19693    *)                         need_version=no  ;;
19694  esac
19695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19696  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19697  shlibpath_var=LD_LIBRARY_PATH
19698  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19699    case $host_os in
19700      openbsd2.[89] | openbsd2.[89].*)
19701	shlibpath_overrides_runpath=no
19702	;;
19703      *)
19704	shlibpath_overrides_runpath=yes
19705	;;
19706      esac
19707  else
19708    shlibpath_overrides_runpath=yes
19709  fi
19710  ;;
19711
19712os2*)
19713  libname_spec='$name'
19714  shrext_cmds=".dll"
19715  need_lib_prefix=no
19716  library_names_spec='$libname${shared_ext} $libname.a'
19717  dynamic_linker='OS/2 ld.exe'
19718  shlibpath_var=LIBPATH
19719  ;;
19720
19721osf3* | osf4* | osf5*)
19722  version_type=osf
19723  need_lib_prefix=no
19724  need_version=no
19725  soname_spec='${libname}${release}${shared_ext}$major'
19726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19727  shlibpath_var=LD_LIBRARY_PATH
19728  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19729  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19730  ;;
19731
19732rdos*)
19733  dynamic_linker=no
19734  ;;
19735
19736solaris*)
19737  version_type=linux
19738  need_lib_prefix=no
19739  need_version=no
19740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741  soname_spec='${libname}${release}${shared_ext}$major'
19742  shlibpath_var=LD_LIBRARY_PATH
19743  shlibpath_overrides_runpath=yes
19744  hardcode_into_libs=yes
19745  # ldd complains unless libraries are executable
19746  postinstall_cmds='chmod +x $lib'
19747  ;;
19748
19749sunos4*)
19750  version_type=sunos
19751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19752  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19753  shlibpath_var=LD_LIBRARY_PATH
19754  shlibpath_overrides_runpath=yes
19755  if test "$with_gnu_ld" = yes; then
19756    need_lib_prefix=no
19757  fi
19758  need_version=yes
19759  ;;
19760
19761sysv4 | sysv4.3*)
19762  version_type=linux
19763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19764  soname_spec='${libname}${release}${shared_ext}$major'
19765  shlibpath_var=LD_LIBRARY_PATH
19766  case $host_vendor in
19767    sni)
19768      shlibpath_overrides_runpath=no
19769      need_lib_prefix=no
19770      export_dynamic_flag_spec='${wl}-Blargedynsym'
19771      runpath_var=LD_RUN_PATH
19772      ;;
19773    siemens)
19774      need_lib_prefix=no
19775      ;;
19776    motorola)
19777      need_lib_prefix=no
19778      need_version=no
19779      shlibpath_overrides_runpath=no
19780      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19781      ;;
19782  esac
19783  ;;
19784
19785sysv4*MP*)
19786  if test -d /usr/nec ;then
19787    version_type=linux
19788    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19789    soname_spec='$libname${shared_ext}.$major'
19790    shlibpath_var=LD_LIBRARY_PATH
19791  fi
19792  ;;
19793
19794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19795  version_type=freebsd-elf
19796  need_lib_prefix=no
19797  need_version=no
19798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19799  soname_spec='${libname}${release}${shared_ext}$major'
19800  shlibpath_var=LD_LIBRARY_PATH
19801  hardcode_into_libs=yes
19802  if test "$with_gnu_ld" = yes; then
19803    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19804    shlibpath_overrides_runpath=no
19805  else
19806    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19807    shlibpath_overrides_runpath=yes
19808    case $host_os in
19809      sco3.2v5*)
19810        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19811	;;
19812    esac
19813  fi
19814  sys_lib_dlsearch_path_spec='/usr/lib'
19815  ;;
19816
19817uts4*)
19818  version_type=linux
19819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19820  soname_spec='${libname}${release}${shared_ext}$major'
19821  shlibpath_var=LD_LIBRARY_PATH
19822  ;;
19823
19824*)
19825  dynamic_linker=no
19826  ;;
19827esac
19828{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19829echo "${ECHO_T}$dynamic_linker" >&6; }
19830test "$dynamic_linker" = no && can_build_shared=no
19831
19832if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19833  echo $ECHO_N "(cached) $ECHO_C" >&6
19834else
19835  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19836fi
19837
19838sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19839if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19840  echo $ECHO_N "(cached) $ECHO_C" >&6
19841else
19842  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19843fi
19844
19845sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19846
19847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19848if test "$GCC" = yes; then
19849  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19850fi
19851
19852{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19853echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19854hardcode_action_CXX=
19855if test -n "$hardcode_libdir_flag_spec_CXX" || \
19856   test -n "$runpath_var_CXX" || \
19857   test "X$hardcode_automatic_CXX" = "Xyes" ; then
19858
19859  # We can hardcode non-existant directories.
19860  if test "$hardcode_direct_CXX" != no &&
19861     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19862     # have to relink, otherwise we might link with an installed library
19863     # when we should be linking with a yet-to-be-installed one
19864     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19865     test "$hardcode_minus_L_CXX" != no; then
19866    # Linking always hardcodes the temporary library directory.
19867    hardcode_action_CXX=relink
19868  else
19869    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19870    hardcode_action_CXX=immediate
19871  fi
19872else
19873  # We cannot hardcode anything, or else we can only hardcode existing
19874  # directories.
19875  hardcode_action_CXX=unsupported
19876fi
19877{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19878echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19879
19880if test "$hardcode_action_CXX" = relink; then
19881  # Fast installation is not supported
19882  enable_fast_install=no
19883elif test "$shlibpath_overrides_runpath" = yes ||
19884     test "$enable_shared" = no; then
19885  # Fast installation is not necessary
19886  enable_fast_install=needless
19887fi
19888
19889
19890# The else clause should only fire when bootstrapping the
19891# libtool distribution, otherwise you forgot to ship ltmain.sh
19892# with your package, and you will get complaints that there are
19893# no rules to generate ltmain.sh.
19894if test -f "$ltmain"; then
19895  # See if we are running on zsh, and set the options which allow our commands through
19896  # without removal of \ escapes.
19897  if test -n "${ZSH_VERSION+set}" ; then
19898    setopt NO_GLOB_SUBST
19899  fi
19900  # Now quote all the things that may contain metacharacters while being
19901  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19902  # variables and quote the copies for generation of the libtool script.
19903  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19904    SED SHELL STRIP \
19905    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19906    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19907    deplibs_check_method reload_flag reload_cmds need_locks \
19908    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19909    lt_cv_sys_global_symbol_to_c_name_address \
19910    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19911    old_postinstall_cmds old_postuninstall_cmds \
19912    compiler_CXX \
19913    CC_CXX \
19914    LD_CXX \
19915    lt_prog_compiler_wl_CXX \
19916    lt_prog_compiler_pic_CXX \
19917    lt_prog_compiler_static_CXX \
19918    lt_prog_compiler_no_builtin_flag_CXX \
19919    export_dynamic_flag_spec_CXX \
19920    thread_safe_flag_spec_CXX \
19921    whole_archive_flag_spec_CXX \
19922    enable_shared_with_static_runtimes_CXX \
19923    old_archive_cmds_CXX \
19924    old_archive_from_new_cmds_CXX \
19925    predep_objects_CXX \
19926    postdep_objects_CXX \
19927    predeps_CXX \
19928    postdeps_CXX \
19929    compiler_lib_search_path_CXX \
19930    compiler_lib_search_dirs_CXX \
19931    archive_cmds_CXX \
19932    archive_expsym_cmds_CXX \
19933    postinstall_cmds_CXX \
19934    postuninstall_cmds_CXX \
19935    old_archive_from_expsyms_cmds_CXX \
19936    allow_undefined_flag_CXX \
19937    no_undefined_flag_CXX \
19938    export_symbols_cmds_CXX \
19939    hardcode_libdir_flag_spec_CXX \
19940    hardcode_libdir_flag_spec_ld_CXX \
19941    hardcode_libdir_separator_CXX \
19942    hardcode_automatic_CXX \
19943    module_cmds_CXX \
19944    module_expsym_cmds_CXX \
19945    lt_cv_prog_compiler_c_o_CXX \
19946    fix_srcfile_path_CXX \
19947    exclude_expsyms_CXX \
19948    include_expsyms_CXX; do
19949
19950    case $var in
19951    old_archive_cmds_CXX | \
19952    old_archive_from_new_cmds_CXX | \
19953    archive_cmds_CXX | \
19954    archive_expsym_cmds_CXX | \
19955    module_cmds_CXX | \
19956    module_expsym_cmds_CXX | \
19957    old_archive_from_expsyms_cmds_CXX | \
19958    export_symbols_cmds_CXX | \
19959    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19960    postinstall_cmds | postuninstall_cmds | \
19961    old_postinstall_cmds | old_postuninstall_cmds | \
19962    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19963      # Double-quote double-evaled strings.
19964      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19965      ;;
19966    *)
19967      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19968      ;;
19969    esac
19970  done
19971
19972  case $lt_echo in
19973  *'\$0 --fallback-echo"')
19974    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19975    ;;
19976  esac
19977
19978cfgfile="$ofile"
19979
19980  cat <<__EOF__ >> "$cfgfile"
19981# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19982
19983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19984
19985# Shell to use when invoking shell scripts.
19986SHELL=$lt_SHELL
19987
19988# Whether or not to build shared libraries.
19989build_libtool_libs=$enable_shared
19990
19991# Whether or not to build static libraries.
19992build_old_libs=$enable_static
19993
19994# Whether or not to add -lc for building shared libraries.
19995build_libtool_need_lc=$archive_cmds_need_lc_CXX
19996
19997# Whether or not to disallow shared libs when runtime libs are static
19998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19999
20000# Whether or not to optimize for fast installation.
20001fast_install=$enable_fast_install
20002
20003# The host system.
20004host_alias=$host_alias
20005host=$host
20006host_os=$host_os
20007
20008# The build system.
20009build_alias=$build_alias
20010build=$build
20011build_os=$build_os
20012
20013# An echo program that does not interpret backslashes.
20014echo=$lt_echo
20015
20016# The archiver.
20017AR=$lt_AR
20018AR_FLAGS=$lt_AR_FLAGS
20019
20020# A C compiler.
20021LTCC=$lt_LTCC
20022
20023# LTCC compiler flags.
20024LTCFLAGS=$lt_LTCFLAGS
20025
20026# A language-specific compiler.
20027CC=$lt_compiler_CXX
20028
20029# Is the compiler the GNU C compiler?
20030with_gcc=$GCC_CXX
20031
20032# An ERE matcher.
20033EGREP=$lt_EGREP
20034
20035# The linker used to build libraries.
20036LD=$lt_LD_CXX
20037
20038# Whether we need hard or soft links.
20039LN_S=$lt_LN_S
20040
20041# A BSD-compatible nm program.
20042NM=$lt_NM
20043
20044# A symbol stripping program
20045STRIP=$lt_STRIP
20046
20047# Used to examine libraries when file_magic_cmd begins "file"
20048MAGIC_CMD=$MAGIC_CMD
20049
20050# Used on cygwin: DLL creation program.
20051DLLTOOL="$DLLTOOL"
20052
20053# Used on cygwin: object dumper.
20054OBJDUMP="$OBJDUMP"
20055
20056# Used on cygwin: assembler.
20057AS="$AS"
20058
20059# The name of the directory that contains temporary libtool files.
20060objdir=$objdir
20061
20062# How to create reloadable object files.
20063reload_flag=$lt_reload_flag
20064reload_cmds=$lt_reload_cmds
20065
20066# How to pass a linker flag through the compiler.
20067wl=$lt_lt_prog_compiler_wl_CXX
20068
20069# Object file suffix (normally "o").
20070objext="$ac_objext"
20071
20072# Old archive suffix (normally "a").
20073libext="$libext"
20074
20075# Shared library suffix (normally ".so").
20076shrext_cmds='$shrext_cmds'
20077
20078# Executable file suffix (normally "").
20079exeext="$exeext"
20080
20081# Additional compiler flags for building library objects.
20082pic_flag=$lt_lt_prog_compiler_pic_CXX
20083pic_mode=$pic_mode
20084
20085# What is the maximum length of a command?
20086max_cmd_len=$lt_cv_sys_max_cmd_len
20087
20088# Does compiler simultaneously support -c and -o options?
20089compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20090
20091# Must we lock files when doing compilation?
20092need_locks=$lt_need_locks
20093
20094# Do we need the lib prefix for modules?
20095need_lib_prefix=$need_lib_prefix
20096
20097# Do we need a version for libraries?
20098need_version=$need_version
20099
20100# Whether dlopen is supported.
20101dlopen_support=$enable_dlopen
20102
20103# Whether dlopen of programs is supported.
20104dlopen_self=$enable_dlopen_self
20105
20106# Whether dlopen of statically linked programs is supported.
20107dlopen_self_static=$enable_dlopen_self_static
20108
20109# Compiler flag to prevent dynamic linking.
20110link_static_flag=$lt_lt_prog_compiler_static_CXX
20111
20112# Compiler flag to turn off builtin functions.
20113no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20114
20115# Compiler flag to allow reflexive dlopens.
20116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20117
20118# Compiler flag to generate shared objects directly from archives.
20119whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20120
20121# Compiler flag to generate thread-safe objects.
20122thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20123
20124# Library versioning type.
20125version_type=$version_type
20126
20127# Format of library name prefix.
20128libname_spec=$lt_libname_spec
20129
20130# List of archive names.  First name is the real one, the rest are links.
20131# The last name is the one that the linker finds with -lNAME.
20132library_names_spec=$lt_library_names_spec
20133
20134# The coded name of the library, if different from the real name.
20135soname_spec=$lt_soname_spec
20136
20137# Commands used to build and install an old-style archive.
20138RANLIB=$lt_RANLIB
20139old_archive_cmds=$lt_old_archive_cmds_CXX
20140old_postinstall_cmds=$lt_old_postinstall_cmds
20141old_postuninstall_cmds=$lt_old_postuninstall_cmds
20142
20143# Create an old-style archive from a shared archive.
20144old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20145
20146# Create a temporary old-style archive to link instead of a shared archive.
20147old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20148
20149# Commands used to build and install a shared archive.
20150archive_cmds=$lt_archive_cmds_CXX
20151archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20152postinstall_cmds=$lt_postinstall_cmds
20153postuninstall_cmds=$lt_postuninstall_cmds
20154
20155# Commands used to build a loadable module (assumed same as above if empty)
20156module_cmds=$lt_module_cmds_CXX
20157module_expsym_cmds=$lt_module_expsym_cmds_CXX
20158
20159# Commands to strip libraries.
20160old_striplib=$lt_old_striplib
20161striplib=$lt_striplib
20162
20163# Dependencies to place before the objects being linked to create a
20164# shared library.
20165predep_objects=$lt_predep_objects_CXX
20166
20167# Dependencies to place after the objects being linked to create a
20168# shared library.
20169postdep_objects=$lt_postdep_objects_CXX
20170
20171# Dependencies to place before the objects being linked to create a
20172# shared library.
20173predeps=$lt_predeps_CXX
20174
20175# Dependencies to place after the objects being linked to create a
20176# shared library.
20177postdeps=$lt_postdeps_CXX
20178
20179# The directories searched by this compiler when creating a shared
20180# library
20181compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20182
20183# The library search path used internally by the compiler when linking
20184# a shared library.
20185compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20186
20187# Method to check whether dependent libraries are shared objects.
20188deplibs_check_method=$lt_deplibs_check_method
20189
20190# Command to use when deplibs_check_method == file_magic.
20191file_magic_cmd=$lt_file_magic_cmd
20192
20193# Flag that allows shared libraries with undefined symbols to be built.
20194allow_undefined_flag=$lt_allow_undefined_flag_CXX
20195
20196# Flag that forces no undefined symbols.
20197no_undefined_flag=$lt_no_undefined_flag_CXX
20198
20199# Commands used to finish a libtool library installation in a directory.
20200finish_cmds=$lt_finish_cmds
20201
20202# Same as above, but a single script fragment to be evaled but not shown.
20203finish_eval=$lt_finish_eval
20204
20205# Take the output of nm and produce a listing of raw symbols and C names.
20206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20207
20208# Transform the output of nm in a proper C declaration
20209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20210
20211# Transform the output of nm in a C name address pair
20212global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20213
20214# This is the shared library runtime path variable.
20215runpath_var=$runpath_var
20216
20217# This is the shared library path variable.
20218shlibpath_var=$shlibpath_var
20219
20220# Is shlibpath searched before the hard-coded library search path?
20221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20222
20223# How to hardcode a shared library path into an executable.
20224hardcode_action=$hardcode_action_CXX
20225
20226# Whether we should hardcode library paths into libraries.
20227hardcode_into_libs=$hardcode_into_libs
20228
20229# Flag to hardcode \$libdir into a binary during linking.
20230# This must work even if \$libdir does not exist.
20231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20232
20233# If ld is used when linking, flag to hardcode \$libdir into
20234# a binary during linking. This must work even if \$libdir does
20235# not exist.
20236hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20237
20238# Whether we need a single -rpath flag with a separated argument.
20239hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20240
20241# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20242# resulting binary.
20243hardcode_direct=$hardcode_direct_CXX
20244
20245# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20246# resulting binary.
20247hardcode_minus_L=$hardcode_minus_L_CXX
20248
20249# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20250# the resulting binary.
20251hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20252
20253# Set to yes if building a shared library automatically hardcodes DIR into the library
20254# and all subsequent libraries and executables linked against it.
20255hardcode_automatic=$hardcode_automatic_CXX
20256
20257# Variables whose values should be saved in libtool wrapper scripts and
20258# restored at relink time.
20259variables_saved_for_relink="$variables_saved_for_relink"
20260
20261# Whether libtool must link a program against all its dependency libraries.
20262link_all_deplibs=$link_all_deplibs_CXX
20263
20264# Compile-time system search path for libraries
20265sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20266
20267# Run-time system search path for libraries
20268sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20269
20270# Fix the shell variable \$srcfile for the compiler.
20271fix_srcfile_path=$lt_fix_srcfile_path
20272
20273# Set to yes if exported symbols are required.
20274always_export_symbols=$always_export_symbols_CXX
20275
20276# The commands to list exported symbols.
20277export_symbols_cmds=$lt_export_symbols_cmds_CXX
20278
20279# The commands to extract the exported symbol list from a shared archive.
20280extract_expsyms_cmds=$lt_extract_expsyms_cmds
20281
20282# Symbols that should not be listed in the preloaded symbols.
20283exclude_expsyms=$lt_exclude_expsyms_CXX
20284
20285# Symbols that must always be exported.
20286include_expsyms=$lt_include_expsyms_CXX
20287
20288# ### END LIBTOOL TAG CONFIG: $tagname
20289
20290__EOF__
20291
20292
20293else
20294  # If there is no Makefile yet, we rely on a make rule to execute
20295  # `config.status --recheck' to rerun these tests and create the
20296  # libtool script then.
20297  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20298  if test -f "$ltmain_in"; then
20299    test -f Makefile && make "$ltmain"
20300  fi
20301fi
20302
20303
20304ac_ext=c
20305ac_cpp='$CPP $CPPFLAGS'
20306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308ac_compiler_gnu=$ac_cv_c_compiler_gnu
20309
20310CC=$lt_save_CC
20311LDCXX=$LD
20312LD=$lt_save_LD
20313GCC=$lt_save_GCC
20314with_gnu_ldcxx=$with_gnu_ld
20315with_gnu_ld=$lt_save_with_gnu_ld
20316lt_cv_path_LDCXX=$lt_cv_path_LD
20317lt_cv_path_LD=$lt_save_path_LD
20318lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20319lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20320
20321	else
20322	  tagname=""
20323	fi
20324	;;
20325
20326      F77)
20327	if test -n "$F77" && test "X$F77" != "Xno"; then
20328
20329ac_ext=f
20330ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20331ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20332ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20333
20334
20335archive_cmds_need_lc_F77=no
20336allow_undefined_flag_F77=
20337always_export_symbols_F77=no
20338archive_expsym_cmds_F77=
20339export_dynamic_flag_spec_F77=
20340hardcode_direct_F77=no
20341hardcode_libdir_flag_spec_F77=
20342hardcode_libdir_flag_spec_ld_F77=
20343hardcode_libdir_separator_F77=
20344hardcode_minus_L_F77=no
20345hardcode_automatic_F77=no
20346module_cmds_F77=
20347module_expsym_cmds_F77=
20348link_all_deplibs_F77=unknown
20349old_archive_cmds_F77=$old_archive_cmds
20350no_undefined_flag_F77=
20351whole_archive_flag_spec_F77=
20352enable_shared_with_static_runtimes_F77=no
20353
20354# Source file extension for f77 test sources.
20355ac_ext=f
20356
20357# Object file extension for compiled f77 test sources.
20358objext=o
20359objext_F77=$objext
20360
20361# Code to be used in simple compile tests
20362lt_simple_compile_test_code="\
20363      subroutine t
20364      return
20365      end
20366"
20367
20368# Code to be used in simple link tests
20369lt_simple_link_test_code="\
20370      program t
20371      end
20372"
20373
20374# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20375
20376# If no C compiler was specified, use CC.
20377LTCC=${LTCC-"$CC"}
20378
20379# If no C compiler flags were specified, use CFLAGS.
20380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20381
20382# Allow CC to be a program name with arguments.
20383compiler=$CC
20384
20385
20386# save warnings/boilerplate of simple test code
20387ac_outfile=conftest.$ac_objext
20388echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20390_lt_compiler_boilerplate=`cat conftest.err`
20391$rm conftest*
20392
20393ac_outfile=conftest.$ac_objext
20394echo "$lt_simple_link_test_code" >conftest.$ac_ext
20395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20396_lt_linker_boilerplate=`cat conftest.err`
20397$rm -r conftest*
20398
20399
20400# Allow CC to be a program name with arguments.
20401lt_save_CC="$CC"
20402CC=${F77-"f77"}
20403compiler=$CC
20404compiler_F77=$CC
20405for cc_temp in $compiler""; do
20406  case $cc_temp in
20407    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20408    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20409    \-*) ;;
20410    *) break;;
20411  esac
20412done
20413cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20414
20415
20416{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20417echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20418{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20419echo "${ECHO_T}$can_build_shared" >&6; }
20420
20421{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20422echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20423test "$can_build_shared" = "no" && enable_shared=no
20424
20425# On AIX, shared libraries and static libraries use the same namespace, and
20426# are all built from PIC.
20427case $host_os in
20428aix3*)
20429  test "$enable_shared" = yes && enable_static=no
20430  if test -n "$RANLIB"; then
20431    archive_cmds="$archive_cmds~\$RANLIB \$lib"
20432    postinstall_cmds='$RANLIB $lib'
20433  fi
20434  ;;
20435aix[4-9]*)
20436  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20437    test "$enable_shared" = yes && enable_static=no
20438  fi
20439  ;;
20440esac
20441{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20442echo "${ECHO_T}$enable_shared" >&6; }
20443
20444{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20445echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20446# Make sure either enable_shared or enable_static is yes.
20447test "$enable_shared" = yes || enable_static=yes
20448{ echo "$as_me:$LINENO: result: $enable_static" >&5
20449echo "${ECHO_T}$enable_static" >&6; }
20450
20451GCC_F77="$G77"
20452LD_F77="$LD"
20453
20454lt_prog_compiler_wl_F77=
20455lt_prog_compiler_pic_F77=
20456lt_prog_compiler_static_F77=
20457
20458{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20459echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20460
20461  if test "$GCC" = yes; then
20462    lt_prog_compiler_wl_F77='-Wl,'
20463    lt_prog_compiler_static_F77='-static'
20464
20465    case $host_os in
20466      aix*)
20467      # All AIX code is PIC.
20468      if test "$host_cpu" = ia64; then
20469	# AIX 5 now supports IA64 processor
20470	lt_prog_compiler_static_F77='-Bstatic'
20471      fi
20472      ;;
20473
20474    amigaos*)
20475      # FIXME: we need at least 68020 code to build shared libraries, but
20476      # adding the `-m68020' flag to GCC prevents building anything better,
20477      # like `-m68040'.
20478      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20479      ;;
20480
20481    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20482      # PIC is the default for these OSes.
20483      ;;
20484
20485    mingw* | cygwin* | pw32* | os2*)
20486      # This hack is so that the source file can tell whether it is being
20487      # built for inclusion in a dll (and should export symbols for example).
20488      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20489      # (--disable-auto-import) libraries
20490      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20491      ;;
20492
20493    darwin* | rhapsody*)
20494      # PIC is the default on this platform
20495      # Common symbols not allowed in MH_DYLIB files
20496      lt_prog_compiler_pic_F77='-fno-common'
20497      ;;
20498
20499    interix[3-9]*)
20500      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20501      # Instead, we relocate shared libraries at runtime.
20502      ;;
20503
20504    msdosdjgpp*)
20505      # Just because we use GCC doesn't mean we suddenly get shared libraries
20506      # on systems that don't support them.
20507      lt_prog_compiler_can_build_shared_F77=no
20508      enable_shared=no
20509      ;;
20510
20511    sysv4*MP*)
20512      if test -d /usr/nec; then
20513	lt_prog_compiler_pic_F77=-Kconform_pic
20514      fi
20515      ;;
20516
20517    hpux*)
20518      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20519      # not for PA HP-UX.
20520      case $host_cpu in
20521      hppa*64*|ia64*)
20522	# +Z the default
20523	;;
20524      *)
20525	lt_prog_compiler_pic_F77='-fPIC'
20526	;;
20527      esac
20528      ;;
20529
20530    *)
20531      lt_prog_compiler_pic_F77='-fPIC'
20532      ;;
20533    esac
20534  else
20535    # PORTME Check for flag to pass linker flags through the system compiler.
20536    case $host_os in
20537    aix*)
20538      lt_prog_compiler_wl_F77='-Wl,'
20539      if test "$host_cpu" = ia64; then
20540	# AIX 5 now supports IA64 processor
20541	lt_prog_compiler_static_F77='-Bstatic'
20542      else
20543	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20544      fi
20545      ;;
20546      darwin*)
20547        # PIC is the default on this platform
20548        # Common symbols not allowed in MH_DYLIB files
20549       case $cc_basename in
20550         xlc*)
20551         lt_prog_compiler_pic_F77='-qnocommon'
20552         lt_prog_compiler_wl_F77='-Wl,'
20553         ;;
20554       esac
20555       ;;
20556
20557    mingw* | cygwin* | pw32* | os2*)
20558      # This hack is so that the source file can tell whether it is being
20559      # built for inclusion in a dll (and should export symbols for example).
20560      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20561      ;;
20562
20563    hpux9* | hpux10* | hpux11*)
20564      lt_prog_compiler_wl_F77='-Wl,'
20565      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20566      # not for PA HP-UX.
20567      case $host_cpu in
20568      hppa*64*|ia64*)
20569	# +Z the default
20570	;;
20571      *)
20572	lt_prog_compiler_pic_F77='+Z'
20573	;;
20574      esac
20575      # Is there a better lt_prog_compiler_static that works with the bundled CC?
20576      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20577      ;;
20578
20579    irix5* | irix6* | nonstopux*)
20580      lt_prog_compiler_wl_F77='-Wl,'
20581      # PIC (with -KPIC) is the default.
20582      lt_prog_compiler_static_F77='-non_shared'
20583      ;;
20584
20585    newsos6)
20586      lt_prog_compiler_pic_F77='-KPIC'
20587      lt_prog_compiler_static_F77='-Bstatic'
20588      ;;
20589
20590    linux* | k*bsd*-gnu)
20591      case $cc_basename in
20592      icc* | ecc*)
20593	lt_prog_compiler_wl_F77='-Wl,'
20594	lt_prog_compiler_pic_F77='-KPIC'
20595	lt_prog_compiler_static_F77='-static'
20596        ;;
20597      pgcc* | pgf77* | pgf90* | pgf95*)
20598        # Portland Group compilers (*not* the Pentium gcc compiler,
20599	# which looks to be a dead project)
20600	lt_prog_compiler_wl_F77='-Wl,'
20601	lt_prog_compiler_pic_F77='-fpic'
20602	lt_prog_compiler_static_F77='-Bstatic'
20603        ;;
20604      ccc*)
20605        lt_prog_compiler_wl_F77='-Wl,'
20606        # All Alpha code is PIC.
20607        lt_prog_compiler_static_F77='-non_shared'
20608        ;;
20609      *)
20610        case `$CC -V 2>&1 | sed 5q` in
20611	*Sun\ C*)
20612	  # Sun C 5.9
20613	  lt_prog_compiler_pic_F77='-KPIC'
20614	  lt_prog_compiler_static_F77='-Bstatic'
20615	  lt_prog_compiler_wl_F77='-Wl,'
20616	  ;;
20617	*Sun\ F*)
20618	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
20619	  lt_prog_compiler_pic_F77='-KPIC'
20620	  lt_prog_compiler_static_F77='-Bstatic'
20621	  lt_prog_compiler_wl_F77=''
20622	  ;;
20623	esac
20624	;;
20625      esac
20626      ;;
20627
20628    osf3* | osf4* | osf5*)
20629      lt_prog_compiler_wl_F77='-Wl,'
20630      # All OSF/1 code is PIC.
20631      lt_prog_compiler_static_F77='-non_shared'
20632      ;;
20633
20634    rdos*)
20635      lt_prog_compiler_static_F77='-non_shared'
20636      ;;
20637
20638    solaris*)
20639      lt_prog_compiler_pic_F77='-KPIC'
20640      lt_prog_compiler_static_F77='-Bstatic'
20641      case $cc_basename in
20642      f77* | f90* | f95*)
20643	lt_prog_compiler_wl_F77='-Qoption ld ';;
20644      *)
20645	lt_prog_compiler_wl_F77='-Wl,';;
20646      esac
20647      ;;
20648
20649    sunos4*)
20650      lt_prog_compiler_wl_F77='-Qoption ld '
20651      lt_prog_compiler_pic_F77='-PIC'
20652      lt_prog_compiler_static_F77='-Bstatic'
20653      ;;
20654
20655    sysv4 | sysv4.2uw2* | sysv4.3*)
20656      lt_prog_compiler_wl_F77='-Wl,'
20657      lt_prog_compiler_pic_F77='-KPIC'
20658      lt_prog_compiler_static_F77='-Bstatic'
20659      ;;
20660
20661    sysv4*MP*)
20662      if test -d /usr/nec ;then
20663	lt_prog_compiler_pic_F77='-Kconform_pic'
20664	lt_prog_compiler_static_F77='-Bstatic'
20665      fi
20666      ;;
20667
20668    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20669      lt_prog_compiler_wl_F77='-Wl,'
20670      lt_prog_compiler_pic_F77='-KPIC'
20671      lt_prog_compiler_static_F77='-Bstatic'
20672      ;;
20673
20674    unicos*)
20675      lt_prog_compiler_wl_F77='-Wl,'
20676      lt_prog_compiler_can_build_shared_F77=no
20677      ;;
20678
20679    uts4*)
20680      lt_prog_compiler_pic_F77='-pic'
20681      lt_prog_compiler_static_F77='-Bstatic'
20682      ;;
20683
20684    *)
20685      lt_prog_compiler_can_build_shared_F77=no
20686      ;;
20687    esac
20688  fi
20689
20690{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20691echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20692
20693#
20694# Check to make sure the PIC flag actually works.
20695#
20696if test -n "$lt_prog_compiler_pic_F77"; then
20697
20698{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20699echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20700if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
20701  echo $ECHO_N "(cached) $ECHO_C" >&6
20702else
20703  lt_cv_prog_compiler_pic_works_F77=no
20704  ac_outfile=conftest.$ac_objext
20705   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20706   lt_compiler_flag="$lt_prog_compiler_pic_F77"
20707   # Insert the option either (1) after the last *FLAGS variable, or
20708   # (2) before a word containing "conftest.", or (3) at the end.
20709   # Note that $ac_compile itself does not contain backslashes and begins
20710   # with a dollar sign (not a hyphen), so the echo should work correctly.
20711   # The option is referenced via a variable to avoid confusing sed.
20712   lt_compile=`echo "$ac_compile" | $SED \
20713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20715   -e 's:$: $lt_compiler_flag:'`
20716   (eval echo "\"\$as_me:20716: $lt_compile\"" >&5)
20717   (eval "$lt_compile" 2>conftest.err)
20718   ac_status=$?
20719   cat conftest.err >&5
20720   echo "$as_me:20720: \$? = $ac_status" >&5
20721   if (exit $ac_status) && test -s "$ac_outfile"; then
20722     # The compiler can only warn and ignore the option if not recognized
20723     # So say no if there are warnings other than the usual output.
20724     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20725     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20726     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20727       lt_cv_prog_compiler_pic_works_F77=yes
20728     fi
20729   fi
20730   $rm conftest*
20731
20732fi
20733{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
20734echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
20735
20736if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
20737    case $lt_prog_compiler_pic_F77 in
20738     "" | " "*) ;;
20739     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20740     esac
20741else
20742    lt_prog_compiler_pic_F77=
20743     lt_prog_compiler_can_build_shared_F77=no
20744fi
20745
20746fi
20747case $host_os in
20748  # For platforms which do not support PIC, -DPIC is meaningless:
20749  *djgpp*)
20750    lt_prog_compiler_pic_F77=
20751    ;;
20752  *)
20753    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20754    ;;
20755esac
20756
20757#
20758# Check to make sure the static flag actually works.
20759#
20760wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20761{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20762echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20763if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
20764  echo $ECHO_N "(cached) $ECHO_C" >&6
20765else
20766  lt_cv_prog_compiler_static_works_F77=no
20767   save_LDFLAGS="$LDFLAGS"
20768   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20769   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20770   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20771     # The linker can only warn and ignore the option if not recognized
20772     # So say no if there are warnings
20773     if test -s conftest.err; then
20774       # Append any errors to the config.log.
20775       cat conftest.err 1>&5
20776       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20777       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20778       if diff conftest.exp conftest.er2 >/dev/null; then
20779         lt_cv_prog_compiler_static_works_F77=yes
20780       fi
20781     else
20782       lt_cv_prog_compiler_static_works_F77=yes
20783     fi
20784   fi
20785   $rm -r conftest*
20786   LDFLAGS="$save_LDFLAGS"
20787
20788fi
20789{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
20790echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
20791
20792if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
20793    :
20794else
20795    lt_prog_compiler_static_F77=
20796fi
20797
20798
20799{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20800echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20801if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20802  echo $ECHO_N "(cached) $ECHO_C" >&6
20803else
20804  lt_cv_prog_compiler_c_o_F77=no
20805   $rm -r conftest 2>/dev/null
20806   mkdir conftest
20807   cd conftest
20808   mkdir out
20809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20810
20811   lt_compiler_flag="-o out/conftest2.$ac_objext"
20812   # Insert the option either (1) after the last *FLAGS variable, or
20813   # (2) before a word containing "conftest.", or (3) at the end.
20814   # Note that $ac_compile itself does not contain backslashes and begins
20815   # with a dollar sign (not a hyphen), so the echo should work correctly.
20816   lt_compile=`echo "$ac_compile" | $SED \
20817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20819   -e 's:$: $lt_compiler_flag:'`
20820   (eval echo "\"\$as_me:20820: $lt_compile\"" >&5)
20821   (eval "$lt_compile" 2>out/conftest.err)
20822   ac_status=$?
20823   cat out/conftest.err >&5
20824   echo "$as_me:20824: \$? = $ac_status" >&5
20825   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20826   then
20827     # The compiler can only warn and ignore the option if not recognized
20828     # So say no if there are warnings
20829     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20830     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20831     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20832       lt_cv_prog_compiler_c_o_F77=yes
20833     fi
20834   fi
20835   chmod u+w . 2>&5
20836   $rm conftest*
20837   # SGI C++ compiler will create directory out/ii_files/ for
20838   # template instantiation
20839   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20840   $rm out/* && rmdir out
20841   cd ..
20842   rmdir conftest
20843   $rm conftest*
20844
20845fi
20846{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20847echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20848
20849
20850hard_links="nottested"
20851if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20852  # do not overwrite the value of need_locks provided by the user
20853  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20854echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20855  hard_links=yes
20856  $rm conftest*
20857  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20858  touch conftest.a
20859  ln conftest.a conftest.b 2>&5 || hard_links=no
20860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20861  { echo "$as_me:$LINENO: result: $hard_links" >&5
20862echo "${ECHO_T}$hard_links" >&6; }
20863  if test "$hard_links" = no; then
20864    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20865echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20866    need_locks=warn
20867  fi
20868else
20869  need_locks=no
20870fi
20871
20872{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20873echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20874
20875  runpath_var=
20876  allow_undefined_flag_F77=
20877  enable_shared_with_static_runtimes_F77=no
20878  archive_cmds_F77=
20879  archive_expsym_cmds_F77=
20880  old_archive_From_new_cmds_F77=
20881  old_archive_from_expsyms_cmds_F77=
20882  export_dynamic_flag_spec_F77=
20883  whole_archive_flag_spec_F77=
20884  thread_safe_flag_spec_F77=
20885  hardcode_libdir_flag_spec_F77=
20886  hardcode_libdir_flag_spec_ld_F77=
20887  hardcode_libdir_separator_F77=
20888  hardcode_direct_F77=no
20889  hardcode_minus_L_F77=no
20890  hardcode_shlibpath_var_F77=unsupported
20891  link_all_deplibs_F77=unknown
20892  hardcode_automatic_F77=no
20893  module_cmds_F77=
20894  module_expsym_cmds_F77=
20895  always_export_symbols_F77=no
20896  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20897  # include_expsyms should be a list of space-separated symbols to be *always*
20898  # included in the symbol list
20899  include_expsyms_F77=
20900  # exclude_expsyms can be an extended regexp of symbols to exclude
20901  # it will be wrapped by ` (' and `)$', so one must not match beginning or
20902  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20903  # as well as any symbol that contains `d'.
20904  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20905  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20906  # platforms (ab)use it in PIC code, but their linkers get confused if
20907  # the symbol is explicitly referenced.  Since portable code cannot
20908  # rely on this symbol name, it's probably fine to never include it in
20909  # preloaded symbol tables.
20910  # Exclude shared library initialization/finalization symbols.
20911  extract_expsyms_cmds=
20912  # Just being paranoid about ensuring that cc_basename is set.
20913  for cc_temp in $compiler""; do
20914  case $cc_temp in
20915    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20916    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20917    \-*) ;;
20918    *) break;;
20919  esac
20920done
20921cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20922
20923  case $host_os in
20924  cygwin* | mingw* | pw32*)
20925    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20926    # When not using gcc, we currently assume that we are using
20927    # Microsoft Visual C++.
20928    if test "$GCC" != yes; then
20929      with_gnu_ld=no
20930    fi
20931    ;;
20932  interix*)
20933    # we just hope/assume this is gcc and not c89 (= MSVC++)
20934    with_gnu_ld=yes
20935    ;;
20936  openbsd*)
20937    with_gnu_ld=no
20938    ;;
20939  esac
20940
20941  ld_shlibs_F77=yes
20942  if test "$with_gnu_ld" = yes; then
20943    # If archive_cmds runs LD, not CC, wlarc should be empty
20944    wlarc='${wl}'
20945
20946    # Set some defaults for GNU ld with shared library support. These
20947    # are reset later if shared libraries are not supported. Putting them
20948    # here allows them to be overridden if necessary.
20949    runpath_var=LD_RUN_PATH
20950    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20951    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20952    # ancient GNU ld didn't support --whole-archive et. al.
20953    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20954	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20955      else
20956  	whole_archive_flag_spec_F77=
20957    fi
20958    supports_anon_versioning=no
20959    case `$LD -v 2>/dev/null` in
20960      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20961      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20962      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20963      *\ 2.11.*) ;; # other 2.11 versions
20964      *) supports_anon_versioning=yes ;;
20965    esac
20966
20967    # See if GNU ld supports shared libraries.
20968    case $host_os in
20969    aix[3-9]*)
20970      # On AIX/PPC, the GNU linker is very broken
20971      if test "$host_cpu" != ia64; then
20972	ld_shlibs_F77=no
20973	cat <<EOF 1>&2
20974
20975*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20976*** to be unable to reliably create shared libraries on AIX.
20977*** Therefore, libtool is disabling shared libraries support.  If you
20978*** really care for shared libraries, you may want to modify your PATH
20979*** so that a non-GNU linker is found, and then restart.
20980
20981EOF
20982      fi
20983      ;;
20984
20985    amigaos*)
20986      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)'
20987      hardcode_libdir_flag_spec_F77='-L$libdir'
20988      hardcode_minus_L_F77=yes
20989
20990      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20991      # that the semantics of dynamic libraries on AmigaOS, at least up
20992      # to version 4, is to share data among multiple programs linked
20993      # with the same dynamic library.  Since this doesn't match the
20994      # behavior of shared libraries on other platforms, we can't use
20995      # them.
20996      ld_shlibs_F77=no
20997      ;;
20998
20999    beos*)
21000      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21001	allow_undefined_flag_F77=unsupported
21002	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21003	# support --undefined.  This deserves some investigation.  FIXME
21004	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21005      else
21006	ld_shlibs_F77=no
21007      fi
21008      ;;
21009
21010    cygwin* | mingw* | pw32*)
21011      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21012      # as there is no search path for DLLs.
21013      hardcode_libdir_flag_spec_F77='-L$libdir'
21014      allow_undefined_flag_F77=unsupported
21015      always_export_symbols_F77=no
21016      enable_shared_with_static_runtimes_F77=yes
21017      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21018
21019      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21020        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21021	# If the export-symbols file already is a .def file (1st line
21022	# is EXPORTS), use it as is; otherwise, prepend...
21023	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21024	  cp $export_symbols $output_objdir/$soname.def;
21025	else
21026	  echo EXPORTS > $output_objdir/$soname.def;
21027	  cat $export_symbols >> $output_objdir/$soname.def;
21028	fi~
21029	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21030      else
21031	ld_shlibs_F77=no
21032      fi
21033      ;;
21034
21035    interix[3-9]*)
21036      hardcode_direct_F77=no
21037      hardcode_shlibpath_var_F77=no
21038      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21039      export_dynamic_flag_spec_F77='${wl}-E'
21040      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21041      # Instead, shared libraries are loaded at an image base (0x10000000 by
21042      # default) and relocated if they conflict, which is a slow very memory
21043      # consuming and fragmenting process.  To avoid this, we pick a random,
21044      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21045      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21046      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'
21047      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'
21048      ;;
21049
21050    gnu* | linux* | k*bsd*-gnu)
21051      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21052	tmp_addflag=
21053	case $cc_basename,$host_cpu in
21054	pgcc*)				# Portland Group C compiler
21055	  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'
21056	  tmp_addflag=' $pic_flag'
21057	  ;;
21058	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21059	  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'
21060	  tmp_addflag=' $pic_flag -Mnomain' ;;
21061	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21062	  tmp_addflag=' -i_dynamic' ;;
21063	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21064	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21065	ifc* | ifort*)			# Intel Fortran compiler
21066	  tmp_addflag=' -nofor_main' ;;
21067	esac
21068	case `$CC -V 2>&1 | sed 5q` in
21069	*Sun\ C*)			# Sun C 5.9
21070	  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'
21071	  tmp_sharedflag='-G' ;;
21072	*Sun\ F*)			# Sun Fortran 8.3
21073	  tmp_sharedflag='-G' ;;
21074	*)
21075	  tmp_sharedflag='-shared' ;;
21076	esac
21077	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21078
21079	if test $supports_anon_versioning = yes; then
21080	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21081  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21082  $echo "local: *; };" >> $output_objdir/$libname.ver~
21083	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21084	fi
21085	link_all_deplibs_F77=no
21086      else
21087	ld_shlibs_F77=no
21088      fi
21089      ;;
21090
21091    netbsd* | netbsdelf*-gnu)
21092      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21093	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21094	wlarc=
21095      else
21096	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21097	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21098      fi
21099      ;;
21100
21101    solaris*)
21102      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21103	ld_shlibs_F77=no
21104	cat <<EOF 1>&2
21105
21106*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21107*** create shared libraries on Solaris systems.  Therefore, libtool
21108*** is disabling shared libraries support.  We urge you to upgrade GNU
21109*** binutils to release 2.9.1 or newer.  Another option is to modify
21110*** your PATH or compiler configuration so that the native linker is
21111*** used, and then restart.
21112
21113EOF
21114      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21115	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21116	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21117      else
21118	ld_shlibs_F77=no
21119      fi
21120      ;;
21121
21122    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21123      case `$LD -v 2>&1` in
21124        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21125	ld_shlibs_F77=no
21126	cat <<_LT_EOF 1>&2
21127
21128*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21129*** reliably create shared libraries on SCO systems.  Therefore, libtool
21130*** is disabling shared libraries support.  We urge you to upgrade GNU
21131*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21132*** your PATH or compiler configuration so that the native linker is
21133*** used, and then restart.
21134
21135_LT_EOF
21136	;;
21137	*)
21138	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21139	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21140	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21141	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21142	  else
21143	    ld_shlibs_F77=no
21144	  fi
21145	;;
21146      esac
21147      ;;
21148
21149    sunos4*)
21150      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21151      wlarc=
21152      hardcode_direct_F77=yes
21153      hardcode_shlibpath_var_F77=no
21154      ;;
21155
21156    *)
21157      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21158	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21159	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21160      else
21161	ld_shlibs_F77=no
21162      fi
21163      ;;
21164    esac
21165
21166    if test "$ld_shlibs_F77" = no; then
21167      runpath_var=
21168      hardcode_libdir_flag_spec_F77=
21169      export_dynamic_flag_spec_F77=
21170      whole_archive_flag_spec_F77=
21171    fi
21172  else
21173    # PORTME fill in a description of your system's linker (not GNU ld)
21174    case $host_os in
21175    aix3*)
21176      allow_undefined_flag_F77=unsupported
21177      always_export_symbols_F77=yes
21178      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'
21179      # Note: this linker hardcodes the directories in LIBPATH if there
21180      # are no directories specified by -L.
21181      hardcode_minus_L_F77=yes
21182      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21183	# Neither direct hardcoding nor static linking is supported with a
21184	# broken collect2.
21185	hardcode_direct_F77=unsupported
21186      fi
21187      ;;
21188
21189    aix[4-9]*)
21190      if test "$host_cpu" = ia64; then
21191	# On IA64, the linker does run time linking by default, so we don't
21192	# have to do anything special.
21193	aix_use_runtimelinking=no
21194	exp_sym_flag='-Bexport'
21195	no_entry_flag=""
21196      else
21197	# If we're using GNU nm, then we don't want the "-C" option.
21198	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21199	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21200	  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'
21201	else
21202	  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'
21203	fi
21204	aix_use_runtimelinking=no
21205
21206	# Test if we are trying to use run time linking or normal
21207	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21208	# need to do runtime linking.
21209	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21210	  for ld_flag in $LDFLAGS; do
21211  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21212  	    aix_use_runtimelinking=yes
21213  	    break
21214  	  fi
21215	  done
21216	  ;;
21217	esac
21218
21219	exp_sym_flag='-bexport'
21220	no_entry_flag='-bnoentry'
21221      fi
21222
21223      # When large executables or shared objects are built, AIX ld can
21224      # have problems creating the table of contents.  If linking a library
21225      # or program results in "error TOC overflow" add -mminimal-toc to
21226      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21227      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21228
21229      archive_cmds_F77=''
21230      hardcode_direct_F77=yes
21231      hardcode_libdir_separator_F77=':'
21232      link_all_deplibs_F77=yes
21233
21234      if test "$GCC" = yes; then
21235	case $host_os in aix4.[012]|aix4.[012].*)
21236	# We only want to do this on AIX 4.2 and lower, the check
21237	# below for broken collect2 doesn't work under 4.3+
21238	  collect2name=`${CC} -print-prog-name=collect2`
21239	  if test -f "$collect2name" && \
21240  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21241	  then
21242  	  # We have reworked collect2
21243  	  :
21244	  else
21245  	  # We have old collect2
21246  	  hardcode_direct_F77=unsupported
21247  	  # It fails to find uninstalled libraries when the uninstalled
21248  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21249  	  # to unsupported forces relinking
21250  	  hardcode_minus_L_F77=yes
21251  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21252  	  hardcode_libdir_separator_F77=
21253	  fi
21254	  ;;
21255	esac
21256	shared_flag='-shared'
21257	if test "$aix_use_runtimelinking" = yes; then
21258	  shared_flag="$shared_flag "'${wl}-G'
21259	fi
21260      else
21261	# not using gcc
21262	if test "$host_cpu" = ia64; then
21263  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21264  	# chokes on -Wl,-G. The following line is correct:
21265	  shared_flag='-G'
21266	else
21267	  if test "$aix_use_runtimelinking" = yes; then
21268	    shared_flag='${wl}-G'
21269	  else
21270	    shared_flag='${wl}-bM:SRE'
21271	  fi
21272	fi
21273      fi
21274
21275      # It seems that -bexpall does not export symbols beginning with
21276      # underscore (_), so it is better to generate a list of symbols to export.
21277      always_export_symbols_F77=yes
21278      if test "$aix_use_runtimelinking" = yes; then
21279	# Warning - without using the other runtime loading flags (-brtl),
21280	# -berok will link without error, but may produce a broken library.
21281	allow_undefined_flag_F77='-berok'
21282       # Determine the default libpath from the value encoded in an empty executable.
21283       cat >conftest.$ac_ext <<_ACEOF
21284      program main
21285
21286      end
21287_ACEOF
21288rm -f conftest.$ac_objext conftest$ac_exeext
21289if { (ac_try="$ac_link"
21290case "(($ac_try" in
21291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292  *) ac_try_echo=$ac_try;;
21293esac
21294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295  (eval "$ac_link") 2>conftest.er1
21296  ac_status=$?
21297  grep -v '^ *+' conftest.er1 >conftest.err
21298  rm -f conftest.er1
21299  cat conftest.err >&5
21300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301  (exit $ac_status); } && {
21302	 test -z "$ac_f77_werror_flag" ||
21303	 test ! -s conftest.err
21304       } && test -s conftest$ac_exeext &&
21305       $as_test_x conftest$ac_exeext; then
21306
21307lt_aix_libpath_sed='
21308    /Import File Strings/,/^$/ {
21309	/^0/ {
21310	    s/^0  *\(.*\)$/\1/
21311	    p
21312	}
21313    }'
21314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21315# Check for a 64-bit object if we didn't find anything.
21316if test -z "$aix_libpath"; then
21317  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21318fi
21319else
21320  echo "$as_me: failed program was:" >&5
21321sed 's/^/| /' conftest.$ac_ext >&5
21322
21323
21324fi
21325
21326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21327      conftest$ac_exeext conftest.$ac_ext
21328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21329
21330       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21331	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"
21332       else
21333	if test "$host_cpu" = ia64; then
21334	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21335	  allow_undefined_flag_F77="-z nodefs"
21336	  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"
21337	else
21338	 # Determine the default libpath from the value encoded in an empty executable.
21339	 cat >conftest.$ac_ext <<_ACEOF
21340      program main
21341
21342      end
21343_ACEOF
21344rm -f conftest.$ac_objext conftest$ac_exeext
21345if { (ac_try="$ac_link"
21346case "(($ac_try" in
21347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348  *) ac_try_echo=$ac_try;;
21349esac
21350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351  (eval "$ac_link") 2>conftest.er1
21352  ac_status=$?
21353  grep -v '^ *+' conftest.er1 >conftest.err
21354  rm -f conftest.er1
21355  cat conftest.err >&5
21356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357  (exit $ac_status); } && {
21358	 test -z "$ac_f77_werror_flag" ||
21359	 test ! -s conftest.err
21360       } && test -s conftest$ac_exeext &&
21361       $as_test_x conftest$ac_exeext; then
21362
21363lt_aix_libpath_sed='
21364    /Import File Strings/,/^$/ {
21365	/^0/ {
21366	    s/^0  *\(.*\)$/\1/
21367	    p
21368	}
21369    }'
21370aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21371# Check for a 64-bit object if we didn't find anything.
21372if test -z "$aix_libpath"; then
21373  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21374fi
21375else
21376  echo "$as_me: failed program was:" >&5
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
21379
21380fi
21381
21382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21383      conftest$ac_exeext conftest.$ac_ext
21384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21385
21386	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21387	  # Warning - without using the other run time loading flags,
21388	  # -berok will link without error, but may produce a broken library.
21389	  no_undefined_flag_F77=' ${wl}-bernotok'
21390	  allow_undefined_flag_F77=' ${wl}-berok'
21391	  # Exported symbols can be pulled into shared objects from archives
21392	  whole_archive_flag_spec_F77='$convenience'
21393	  archive_cmds_need_lc_F77=yes
21394	  # This is similar to how AIX traditionally builds its shared libraries.
21395	  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'
21396	fi
21397      fi
21398      ;;
21399
21400    amigaos*)
21401      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)'
21402      hardcode_libdir_flag_spec_F77='-L$libdir'
21403      hardcode_minus_L_F77=yes
21404      # see comment about different semantics on the GNU ld section
21405      ld_shlibs_F77=no
21406      ;;
21407
21408    bsdi[45]*)
21409      export_dynamic_flag_spec_F77=-rdynamic
21410      ;;
21411
21412    cygwin* | mingw* | pw32*)
21413      # When not using gcc, we currently assume that we are using
21414      # Microsoft Visual C++.
21415      # hardcode_libdir_flag_spec is actually meaningless, as there is
21416      # no search path for DLLs.
21417      hardcode_libdir_flag_spec_F77=' '
21418      allow_undefined_flag_F77=unsupported
21419      # Tell ltmain to make .lib files, not .a files.
21420      libext=lib
21421      # Tell ltmain to make .dll files, not .so files.
21422      shrext_cmds=".dll"
21423      # FIXME: Setting linknames here is a bad hack.
21424      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21425      # The linker will automatically build a .lib file if we build a DLL.
21426      old_archive_From_new_cmds_F77='true'
21427      # FIXME: Should let the user specify the lib program.
21428      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
21429      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21430      enable_shared_with_static_runtimes_F77=yes
21431      ;;
21432
21433    darwin* | rhapsody*)
21434      case $host_os in
21435        rhapsody* | darwin1.[012])
21436         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21437         ;;
21438       *) # Darwin 1.3 on
21439         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21440           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21441         else
21442           case ${MACOSX_DEPLOYMENT_TARGET} in
21443             10.[012])
21444               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21445               ;;
21446             10.*)
21447               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21448               ;;
21449           esac
21450         fi
21451         ;;
21452      esac
21453      archive_cmds_need_lc_F77=no
21454      hardcode_direct_F77=no
21455      hardcode_automatic_F77=yes
21456      hardcode_shlibpath_var_F77=unsupported
21457      whole_archive_flag_spec_F77=''
21458      link_all_deplibs_F77=yes
21459    if test "$GCC" = yes ; then
21460    	output_verbose_link_cmd='echo'
21461        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21462        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21463        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
21464        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
21465    else
21466      case $cc_basename in
21467        xlc*)
21468         output_verbose_link_cmd='echo'
21469         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
21470         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21471          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21472         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21473          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}'
21474          ;;
21475       *)
21476         ld_shlibs_F77=no
21477          ;;
21478      esac
21479    fi
21480      ;;
21481
21482    dgux*)
21483      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21484      hardcode_libdir_flag_spec_F77='-L$libdir'
21485      hardcode_shlibpath_var_F77=no
21486      ;;
21487
21488    freebsd1*)
21489      ld_shlibs_F77=no
21490      ;;
21491
21492    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21493    # support.  Future versions do this automatically, but an explicit c++rt0.o
21494    # does not break anything, and helps significantly (at the cost of a little
21495    # extra space).
21496    freebsd2.2*)
21497      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21498      hardcode_libdir_flag_spec_F77='-R$libdir'
21499      hardcode_direct_F77=yes
21500      hardcode_shlibpath_var_F77=no
21501      ;;
21502
21503    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21504    freebsd2*)
21505      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21506      hardcode_direct_F77=yes
21507      hardcode_minus_L_F77=yes
21508      hardcode_shlibpath_var_F77=no
21509      ;;
21510
21511    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21512    freebsd* | dragonfly*)
21513      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21514      hardcode_libdir_flag_spec_F77='-R$libdir'
21515      hardcode_direct_F77=yes
21516      hardcode_shlibpath_var_F77=no
21517      ;;
21518
21519    hpux9*)
21520      if test "$GCC" = yes; then
21521	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'
21522      else
21523	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'
21524      fi
21525      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21526      hardcode_libdir_separator_F77=:
21527      hardcode_direct_F77=yes
21528
21529      # hardcode_minus_L: Not really in the search PATH,
21530      # but as the default location of the library.
21531      hardcode_minus_L_F77=yes
21532      export_dynamic_flag_spec_F77='${wl}-E'
21533      ;;
21534
21535    hpux10*)
21536      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21537	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21538      else
21539	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21540      fi
21541      if test "$with_gnu_ld" = no; then
21542	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21543	hardcode_libdir_separator_F77=:
21544
21545	hardcode_direct_F77=yes
21546	export_dynamic_flag_spec_F77='${wl}-E'
21547
21548	# hardcode_minus_L: Not really in the search PATH,
21549	# but as the default location of the library.
21550	hardcode_minus_L_F77=yes
21551      fi
21552      ;;
21553
21554    hpux11*)
21555      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21556	case $host_cpu in
21557	hppa*64*)
21558	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21559	  ;;
21560	ia64*)
21561	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21562	  ;;
21563	*)
21564	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21565	  ;;
21566	esac
21567      else
21568	case $host_cpu in
21569	hppa*64*)
21570	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21571	  ;;
21572	ia64*)
21573	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21574	  ;;
21575	*)
21576	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21577	  ;;
21578	esac
21579      fi
21580      if test "$with_gnu_ld" = no; then
21581	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21582	hardcode_libdir_separator_F77=:
21583
21584	case $host_cpu in
21585	hppa*64*|ia64*)
21586	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21587	  hardcode_direct_F77=no
21588	  hardcode_shlibpath_var_F77=no
21589	  ;;
21590	*)
21591	  hardcode_direct_F77=yes
21592	  export_dynamic_flag_spec_F77='${wl}-E'
21593
21594	  # hardcode_minus_L: Not really in the search PATH,
21595	  # but as the default location of the library.
21596	  hardcode_minus_L_F77=yes
21597	  ;;
21598	esac
21599      fi
21600      ;;
21601
21602    irix5* | irix6* | nonstopux*)
21603      if test "$GCC" = yes; then
21604	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'
21605      else
21606	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'
21607	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21608      fi
21609      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21610      hardcode_libdir_separator_F77=:
21611      link_all_deplibs_F77=yes
21612      ;;
21613
21614    netbsd* | netbsdelf*-gnu)
21615      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21616	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21617      else
21618	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21619      fi
21620      hardcode_libdir_flag_spec_F77='-R$libdir'
21621      hardcode_direct_F77=yes
21622      hardcode_shlibpath_var_F77=no
21623      ;;
21624
21625    newsos6)
21626      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21627      hardcode_direct_F77=yes
21628      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21629      hardcode_libdir_separator_F77=:
21630      hardcode_shlibpath_var_F77=no
21631      ;;
21632
21633    openbsd*)
21634      if test -f /usr/libexec/ld.so; then
21635	hardcode_direct_F77=yes
21636	hardcode_shlibpath_var_F77=no
21637	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21638	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21639	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21640	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21641	  export_dynamic_flag_spec_F77='${wl}-E'
21642	else
21643	  case $host_os in
21644	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21645	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21646	     hardcode_libdir_flag_spec_F77='-R$libdir'
21647	     ;;
21648	   *)
21649	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21650	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21651	     ;;
21652	  esac
21653        fi
21654      else
21655	ld_shlibs_F77=no
21656      fi
21657      ;;
21658
21659    os2*)
21660      hardcode_libdir_flag_spec_F77='-L$libdir'
21661      hardcode_minus_L_F77=yes
21662      allow_undefined_flag_F77=unsupported
21663      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'
21664      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21665      ;;
21666
21667    osf3*)
21668      if test "$GCC" = yes; then
21669	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21670	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'
21671      else
21672	allow_undefined_flag_F77=' -expect_unresolved \*'
21673	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'
21674      fi
21675      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21676      hardcode_libdir_separator_F77=:
21677      ;;
21678
21679    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21680      if test "$GCC" = yes; then
21681	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21682	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'
21683	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21684      else
21685	allow_undefined_flag_F77=' -expect_unresolved \*'
21686	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'
21687	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~
21688	$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'
21689
21690	# Both c and cxx compiler support -rpath directly
21691	hardcode_libdir_flag_spec_F77='-rpath $libdir'
21692      fi
21693      hardcode_libdir_separator_F77=:
21694      ;;
21695
21696    solaris*)
21697      no_undefined_flag_F77=' -z text'
21698      if test "$GCC" = yes; then
21699	wlarc='${wl}'
21700	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21701	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21702	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21703      else
21704	wlarc=''
21705	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21706	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21707  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21708      fi
21709      hardcode_libdir_flag_spec_F77='-R$libdir'
21710      hardcode_shlibpath_var_F77=no
21711      case $host_os in
21712      solaris2.[0-5] | solaris2.[0-5].*) ;;
21713      *)
21714	# The compiler driver will combine and reorder linker options,
21715	# but understands `-z linker_flag'.  GCC discards it without `$wl',
21716	# but is careful enough not to reorder.
21717 	# Supported since Solaris 2.6 (maybe 2.5.1?)
21718	if test "$GCC" = yes; then
21719	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21720	else
21721	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
21722	fi
21723	;;
21724      esac
21725      link_all_deplibs_F77=yes
21726      ;;
21727
21728    sunos4*)
21729      if test "x$host_vendor" = xsequent; then
21730	# Use $CC to link under sequent, because it throws in some extra .o
21731	# files that make .init and .fini sections work.
21732	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21733      else
21734	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21735      fi
21736      hardcode_libdir_flag_spec_F77='-L$libdir'
21737      hardcode_direct_F77=yes
21738      hardcode_minus_L_F77=yes
21739      hardcode_shlibpath_var_F77=no
21740      ;;
21741
21742    sysv4)
21743      case $host_vendor in
21744	sni)
21745	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21746	  hardcode_direct_F77=yes # is this really true???
21747	;;
21748	siemens)
21749	  ## LD is ld it makes a PLAMLIB
21750	  ## CC just makes a GrossModule.
21751	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21752	  reload_cmds_F77='$CC -r -o $output$reload_objs'
21753	  hardcode_direct_F77=no
21754        ;;
21755	motorola)
21756	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21757	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21758	;;
21759      esac
21760      runpath_var='LD_RUN_PATH'
21761      hardcode_shlibpath_var_F77=no
21762      ;;
21763
21764    sysv4.3*)
21765      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21766      hardcode_shlibpath_var_F77=no
21767      export_dynamic_flag_spec_F77='-Bexport'
21768      ;;
21769
21770    sysv4*MP*)
21771      if test -d /usr/nec; then
21772	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21773	hardcode_shlibpath_var_F77=no
21774	runpath_var=LD_RUN_PATH
21775	hardcode_runpath_var=yes
21776	ld_shlibs_F77=yes
21777      fi
21778      ;;
21779
21780    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21781      no_undefined_flag_F77='${wl}-z,text'
21782      archive_cmds_need_lc_F77=no
21783      hardcode_shlibpath_var_F77=no
21784      runpath_var='LD_RUN_PATH'
21785
21786      if test "$GCC" = yes; then
21787	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21788	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21789      else
21790	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21791	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21792      fi
21793      ;;
21794
21795    sysv5* | sco3.2v5* | sco5v6*)
21796      # Note: We can NOT use -z defs as we might desire, because we do not
21797      # link with -lc, and that would cause any symbols used from libc to
21798      # always be unresolved, which means just about no library would
21799      # ever link correctly.  If we're not using GNU ld we use -z text
21800      # though, which does catch some bad symbols but isn't as heavy-handed
21801      # as -z defs.
21802      no_undefined_flag_F77='${wl}-z,text'
21803      allow_undefined_flag_F77='${wl}-z,nodefs'
21804      archive_cmds_need_lc_F77=no
21805      hardcode_shlibpath_var_F77=no
21806      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21807      hardcode_libdir_separator_F77=':'
21808      link_all_deplibs_F77=yes
21809      export_dynamic_flag_spec_F77='${wl}-Bexport'
21810      runpath_var='LD_RUN_PATH'
21811
21812      if test "$GCC" = yes; then
21813	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21814	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21815      else
21816	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21817	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21818      fi
21819      ;;
21820
21821    uts4*)
21822      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21823      hardcode_libdir_flag_spec_F77='-L$libdir'
21824      hardcode_shlibpath_var_F77=no
21825      ;;
21826
21827    *)
21828      ld_shlibs_F77=no
21829      ;;
21830    esac
21831  fi
21832
21833{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21834echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21835test "$ld_shlibs_F77" = no && can_build_shared=no
21836
21837#
21838# Do we need to explicitly link libc?
21839#
21840case "x$archive_cmds_need_lc_F77" in
21841x|xyes)
21842  # Assume -lc should be added
21843  archive_cmds_need_lc_F77=yes
21844
21845  if test "$enable_shared" = yes && test "$GCC" = yes; then
21846    case $archive_cmds_F77 in
21847    *'~'*)
21848      # FIXME: we may have to deal with multi-command sequences.
21849      ;;
21850    '$CC '*)
21851      # Test whether the compiler implicitly links with -lc since on some
21852      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21853      # to ld, don't add -lc before -lgcc.
21854      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21855echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21856      $rm conftest*
21857      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21858
21859      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21860  (eval $ac_compile) 2>&5
21861  ac_status=$?
21862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863  (exit $ac_status); } 2>conftest.err; then
21864        soname=conftest
21865        lib=conftest
21866        libobjs=conftest.$ac_objext
21867        deplibs=
21868        wl=$lt_prog_compiler_wl_F77
21869	pic_flag=$lt_prog_compiler_pic_F77
21870        compiler_flags=-v
21871        linker_flags=-v
21872        verstring=
21873        output_objdir=.
21874        libname=conftest
21875        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21876        allow_undefined_flag_F77=
21877        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21878  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21879  ac_status=$?
21880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881  (exit $ac_status); }
21882        then
21883	  archive_cmds_need_lc_F77=no
21884        else
21885	  archive_cmds_need_lc_F77=yes
21886        fi
21887        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21888      else
21889        cat conftest.err 1>&5
21890      fi
21891      $rm conftest*
21892      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21893echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21894      ;;
21895    esac
21896  fi
21897  ;;
21898esac
21899
21900{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21901echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21902library_names_spec=
21903libname_spec='lib$name'
21904soname_spec=
21905shrext_cmds=".so"
21906postinstall_cmds=
21907postuninstall_cmds=
21908finish_cmds=
21909finish_eval=
21910shlibpath_var=
21911shlibpath_overrides_runpath=unknown
21912version_type=none
21913dynamic_linker="$host_os ld.so"
21914sys_lib_dlsearch_path_spec="/lib /usr/lib"
21915
21916need_lib_prefix=unknown
21917hardcode_into_libs=no
21918
21919# when you set need_version to no, make sure it does not cause -set_version
21920# flags to be left without arguments
21921need_version=unknown
21922
21923case $host_os in
21924aix3*)
21925  version_type=linux
21926  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21927  shlibpath_var=LIBPATH
21928
21929  # AIX 3 has no versioning support, so we append a major version to the name.
21930  soname_spec='${libname}${release}${shared_ext}$major'
21931  ;;
21932
21933aix[4-9]*)
21934  version_type=linux
21935  need_lib_prefix=no
21936  need_version=no
21937  hardcode_into_libs=yes
21938  if test "$host_cpu" = ia64; then
21939    # AIX 5 supports IA64
21940    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21941    shlibpath_var=LD_LIBRARY_PATH
21942  else
21943    # With GCC up to 2.95.x, collect2 would create an import file
21944    # for dependence libraries.  The import file would start with
21945    # the line `#! .'.  This would cause the generated library to
21946    # depend on `.', always an invalid library.  This was fixed in
21947    # development snapshots of GCC prior to 3.0.
21948    case $host_os in
21949      aix4 | aix4.[01] | aix4.[01].*)
21950      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21951	   echo ' yes '
21952	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21953	:
21954      else
21955	can_build_shared=no
21956      fi
21957      ;;
21958    esac
21959    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21960    # soname into executable. Probably we can add versioning support to
21961    # collect2, so additional links can be useful in future.
21962    if test "$aix_use_runtimelinking" = yes; then
21963      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21964      # instead of lib<name>.a to let people know that these are not
21965      # typical AIX shared libraries.
21966      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21967    else
21968      # We preserve .a as extension for shared libraries through AIX4.2
21969      # and later when we are not doing run time linking.
21970      library_names_spec='${libname}${release}.a $libname.a'
21971      soname_spec='${libname}${release}${shared_ext}$major'
21972    fi
21973    shlibpath_var=LIBPATH
21974  fi
21975  ;;
21976
21977amigaos*)
21978  library_names_spec='$libname.ixlibrary $libname.a'
21979  # Create ${libname}_ixlibrary.a entries in /sys/libs.
21980  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'
21981  ;;
21982
21983beos*)
21984  library_names_spec='${libname}${shared_ext}'
21985  dynamic_linker="$host_os ld.so"
21986  shlibpath_var=LIBRARY_PATH
21987  ;;
21988
21989bsdi[45]*)
21990  version_type=linux
21991  need_version=no
21992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21993  soname_spec='${libname}${release}${shared_ext}$major'
21994  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21995  shlibpath_var=LD_LIBRARY_PATH
21996  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21997  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21998  # the default ld.so.conf also contains /usr/contrib/lib and
21999  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22000  # libtool to hard-code these into programs
22001  ;;
22002
22003cygwin* | mingw* | pw32*)
22004  version_type=windows
22005  shrext_cmds=".dll"
22006  need_version=no
22007  need_lib_prefix=no
22008
22009  case $GCC,$host_os in
22010  yes,cygwin* | yes,mingw* | yes,pw32*)
22011    library_names_spec='$libname.dll.a'
22012    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22013    postinstall_cmds='base_file=`basename \${file}`~
22014      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22015      dldir=$destdir/`dirname \$dlpath`~
22016      test -d \$dldir || mkdir -p \$dldir~
22017      $install_prog $dir/$dlname \$dldir/$dlname~
22018      chmod a+x \$dldir/$dlname'
22019    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22020      dlpath=$dir/\$dldll~
22021       $rm \$dlpath'
22022    shlibpath_overrides_runpath=yes
22023
22024    case $host_os in
22025    cygwin*)
22026      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22027      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22028      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22029      ;;
22030    mingw*)
22031      # MinGW DLLs use traditional 'lib' prefix
22032      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22033      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22034      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22035        # It is most probably a Windows format PATH printed by
22036        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22037        # path with ; separators, and with drive letters. We can handle the
22038        # drive letters (cygwin fileutils understands them), so leave them,
22039        # especially as we might pass files found there to a mingw objdump,
22040        # which wouldn't understand a cygwinified path. Ahh.
22041        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22042      else
22043        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22044      fi
22045      ;;
22046    pw32*)
22047      # pw32 DLLs use 'pw' prefix rather than 'lib'
22048      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22049      ;;
22050    esac
22051    ;;
22052
22053  *)
22054    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22055    ;;
22056  esac
22057  dynamic_linker='Win32 ld.exe'
22058  # FIXME: first we should search . and the directory the executable is in
22059  shlibpath_var=PATH
22060  ;;
22061
22062darwin* | rhapsody*)
22063  dynamic_linker="$host_os dyld"
22064  version_type=darwin
22065  need_lib_prefix=no
22066  need_version=no
22067  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22068  soname_spec='${libname}${release}${major}$shared_ext'
22069  shlibpath_overrides_runpath=yes
22070  shlibpath_var=DYLD_LIBRARY_PATH
22071  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22072
22073  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22074  ;;
22075
22076dgux*)
22077  version_type=linux
22078  need_lib_prefix=no
22079  need_version=no
22080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22081  soname_spec='${libname}${release}${shared_ext}$major'
22082  shlibpath_var=LD_LIBRARY_PATH
22083  ;;
22084
22085freebsd1*)
22086  dynamic_linker=no
22087  ;;
22088
22089freebsd* | dragonfly*)
22090  # DragonFly does not have aout.  When/if they implement a new
22091  # versioning mechanism, adjust this.
22092  if test -x /usr/bin/objformat; then
22093    objformat=`/usr/bin/objformat`
22094  else
22095    case $host_os in
22096    freebsd[123]*) objformat=aout ;;
22097    *) objformat=elf ;;
22098    esac
22099  fi
22100  version_type=freebsd-$objformat
22101  case $version_type in
22102    freebsd-elf*)
22103      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22104      need_version=no
22105      need_lib_prefix=no
22106      ;;
22107    freebsd-*)
22108      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22109      need_version=yes
22110      ;;
22111  esac
22112  shlibpath_var=LD_LIBRARY_PATH
22113  case $host_os in
22114  freebsd2*)
22115    shlibpath_overrides_runpath=yes
22116    ;;
22117  freebsd3.[01]* | freebsdelf3.[01]*)
22118    shlibpath_overrides_runpath=yes
22119    hardcode_into_libs=yes
22120    ;;
22121  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22122  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22123    shlibpath_overrides_runpath=no
22124    hardcode_into_libs=yes
22125    ;;
22126  *) # from 4.6 on, and DragonFly
22127    shlibpath_overrides_runpath=yes
22128    hardcode_into_libs=yes
22129    ;;
22130  esac
22131  ;;
22132
22133gnu*)
22134  version_type=linux
22135  need_lib_prefix=no
22136  need_version=no
22137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22138  soname_spec='${libname}${release}${shared_ext}$major'
22139  shlibpath_var=LD_LIBRARY_PATH
22140  hardcode_into_libs=yes
22141  ;;
22142
22143hpux9* | hpux10* | hpux11*)
22144  # Give a soname corresponding to the major version so that dld.sl refuses to
22145  # link against other versions.
22146  version_type=sunos
22147  need_lib_prefix=no
22148  need_version=no
22149  case $host_cpu in
22150  ia64*)
22151    shrext_cmds='.so'
22152    hardcode_into_libs=yes
22153    dynamic_linker="$host_os dld.so"
22154    shlibpath_var=LD_LIBRARY_PATH
22155    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22157    soname_spec='${libname}${release}${shared_ext}$major'
22158    if test "X$HPUX_IA64_MODE" = X32; then
22159      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22160    else
22161      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22162    fi
22163    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22164    ;;
22165   hppa*64*)
22166     shrext_cmds='.sl'
22167     hardcode_into_libs=yes
22168     dynamic_linker="$host_os dld.sl"
22169     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172     soname_spec='${libname}${release}${shared_ext}$major'
22173     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22174     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22175     ;;
22176   *)
22177    shrext_cmds='.sl'
22178    dynamic_linker="$host_os dld.sl"
22179    shlibpath_var=SHLIB_PATH
22180    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22181    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22182    soname_spec='${libname}${release}${shared_ext}$major'
22183    ;;
22184  esac
22185  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22186  postinstall_cmds='chmod 555 $lib'
22187  ;;
22188
22189interix[3-9]*)
22190  version_type=linux
22191  need_lib_prefix=no
22192  need_version=no
22193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22194  soname_spec='${libname}${release}${shared_ext}$major'
22195  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22196  shlibpath_var=LD_LIBRARY_PATH
22197  shlibpath_overrides_runpath=no
22198  hardcode_into_libs=yes
22199  ;;
22200
22201irix5* | irix6* | nonstopux*)
22202  case $host_os in
22203    nonstopux*) version_type=nonstopux ;;
22204    *)
22205	if test "$lt_cv_prog_gnu_ld" = yes; then
22206		version_type=linux
22207	else
22208		version_type=irix
22209	fi ;;
22210  esac
22211  need_lib_prefix=no
22212  need_version=no
22213  soname_spec='${libname}${release}${shared_ext}$major'
22214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22215  case $host_os in
22216  irix5* | nonstopux*)
22217    libsuff= shlibsuff=
22218    ;;
22219  *)
22220    case $LD in # libtool.m4 will add one of these switches to LD
22221    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22222      libsuff= shlibsuff= libmagic=32-bit;;
22223    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22224      libsuff=32 shlibsuff=N32 libmagic=N32;;
22225    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22226      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22227    *) libsuff= shlibsuff= libmagic=never-match;;
22228    esac
22229    ;;
22230  esac
22231  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22232  shlibpath_overrides_runpath=no
22233  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22234  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22235  hardcode_into_libs=yes
22236  ;;
22237
22238# No shared lib support for Linux oldld, aout, or coff.
22239linux*oldld* | linux*aout* | linux*coff*)
22240  dynamic_linker=no
22241  ;;
22242
22243# This must be Linux ELF.
22244linux* | k*bsd*-gnu)
22245  version_type=linux
22246  need_lib_prefix=no
22247  need_version=no
22248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22249  soname_spec='${libname}${release}${shared_ext}$major'
22250  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22251  shlibpath_var=LD_LIBRARY_PATH
22252  shlibpath_overrides_runpath=no
22253  # This implies no fast_install, which is unacceptable.
22254  # Some rework will be needed to allow for fast_install
22255  # before this can be enabled.
22256  hardcode_into_libs=yes
22257
22258  # Append ld.so.conf contents to the search path
22259  if test -f /etc/ld.so.conf; then
22260    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22261    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22262  fi
22263
22264  # We used to test for /lib/ld.so.1 and disable shared libraries on
22265  # powerpc, because MkLinux only supported shared libraries with the
22266  # GNU dynamic linker.  Since this was broken with cross compilers,
22267  # most powerpc-linux boxes support dynamic linking these days and
22268  # people can always --disable-shared, the test was removed, and we
22269  # assume the GNU/Linux dynamic linker is in use.
22270  dynamic_linker='GNU/Linux ld.so'
22271  ;;
22272
22273netbsdelf*-gnu)
22274  version_type=linux
22275  need_lib_prefix=no
22276  need_version=no
22277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22278  soname_spec='${libname}${release}${shared_ext}$major'
22279  shlibpath_var=LD_LIBRARY_PATH
22280  shlibpath_overrides_runpath=no
22281  hardcode_into_libs=yes
22282  dynamic_linker='NetBSD ld.elf_so'
22283  ;;
22284
22285netbsd*)
22286  version_type=sunos
22287  need_lib_prefix=no
22288  need_version=no
22289  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22291    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22292    dynamic_linker='NetBSD (a.out) ld.so'
22293  else
22294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22295    soname_spec='${libname}${release}${shared_ext}$major'
22296    dynamic_linker='NetBSD ld.elf_so'
22297  fi
22298  shlibpath_var=LD_LIBRARY_PATH
22299  shlibpath_overrides_runpath=yes
22300  hardcode_into_libs=yes
22301  ;;
22302
22303newsos6)
22304  version_type=linux
22305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22306  shlibpath_var=LD_LIBRARY_PATH
22307  shlibpath_overrides_runpath=yes
22308  ;;
22309
22310nto-qnx*)
22311  version_type=linux
22312  need_lib_prefix=no
22313  need_version=no
22314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22315  soname_spec='${libname}${release}${shared_ext}$major'
22316  shlibpath_var=LD_LIBRARY_PATH
22317  shlibpath_overrides_runpath=yes
22318  ;;
22319
22320openbsd*)
22321  version_type=sunos
22322  sys_lib_dlsearch_path_spec="/usr/lib"
22323  need_lib_prefix=no
22324  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22325  case $host_os in
22326    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22327    *)                         need_version=no  ;;
22328  esac
22329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22331  shlibpath_var=LD_LIBRARY_PATH
22332  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22333    case $host_os in
22334      openbsd2.[89] | openbsd2.[89].*)
22335	shlibpath_overrides_runpath=no
22336	;;
22337      *)
22338	shlibpath_overrides_runpath=yes
22339	;;
22340      esac
22341  else
22342    shlibpath_overrides_runpath=yes
22343  fi
22344  ;;
22345
22346os2*)
22347  libname_spec='$name'
22348  shrext_cmds=".dll"
22349  need_lib_prefix=no
22350  library_names_spec='$libname${shared_ext} $libname.a'
22351  dynamic_linker='OS/2 ld.exe'
22352  shlibpath_var=LIBPATH
22353  ;;
22354
22355osf3* | osf4* | osf5*)
22356  version_type=osf
22357  need_lib_prefix=no
22358  need_version=no
22359  soname_spec='${libname}${release}${shared_ext}$major'
22360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22361  shlibpath_var=LD_LIBRARY_PATH
22362  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22363  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22364  ;;
22365
22366rdos*)
22367  dynamic_linker=no
22368  ;;
22369
22370solaris*)
22371  version_type=linux
22372  need_lib_prefix=no
22373  need_version=no
22374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22375  soname_spec='${libname}${release}${shared_ext}$major'
22376  shlibpath_var=LD_LIBRARY_PATH
22377  shlibpath_overrides_runpath=yes
22378  hardcode_into_libs=yes
22379  # ldd complains unless libraries are executable
22380  postinstall_cmds='chmod +x $lib'
22381  ;;
22382
22383sunos4*)
22384  version_type=sunos
22385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22386  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22387  shlibpath_var=LD_LIBRARY_PATH
22388  shlibpath_overrides_runpath=yes
22389  if test "$with_gnu_ld" = yes; then
22390    need_lib_prefix=no
22391  fi
22392  need_version=yes
22393  ;;
22394
22395sysv4 | sysv4.3*)
22396  version_type=linux
22397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22398  soname_spec='${libname}${release}${shared_ext}$major'
22399  shlibpath_var=LD_LIBRARY_PATH
22400  case $host_vendor in
22401    sni)
22402      shlibpath_overrides_runpath=no
22403      need_lib_prefix=no
22404      export_dynamic_flag_spec='${wl}-Blargedynsym'
22405      runpath_var=LD_RUN_PATH
22406      ;;
22407    siemens)
22408      need_lib_prefix=no
22409      ;;
22410    motorola)
22411      need_lib_prefix=no
22412      need_version=no
22413      shlibpath_overrides_runpath=no
22414      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22415      ;;
22416  esac
22417  ;;
22418
22419sysv4*MP*)
22420  if test -d /usr/nec ;then
22421    version_type=linux
22422    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22423    soname_spec='$libname${shared_ext}.$major'
22424    shlibpath_var=LD_LIBRARY_PATH
22425  fi
22426  ;;
22427
22428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22429  version_type=freebsd-elf
22430  need_lib_prefix=no
22431  need_version=no
22432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22433  soname_spec='${libname}${release}${shared_ext}$major'
22434  shlibpath_var=LD_LIBRARY_PATH
22435  hardcode_into_libs=yes
22436  if test "$with_gnu_ld" = yes; then
22437    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22438    shlibpath_overrides_runpath=no
22439  else
22440    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22441    shlibpath_overrides_runpath=yes
22442    case $host_os in
22443      sco3.2v5*)
22444        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22445	;;
22446    esac
22447  fi
22448  sys_lib_dlsearch_path_spec='/usr/lib'
22449  ;;
22450
22451uts4*)
22452  version_type=linux
22453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22454  soname_spec='${libname}${release}${shared_ext}$major'
22455  shlibpath_var=LD_LIBRARY_PATH
22456  ;;
22457
22458*)
22459  dynamic_linker=no
22460  ;;
22461esac
22462{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22463echo "${ECHO_T}$dynamic_linker" >&6; }
22464test "$dynamic_linker" = no && can_build_shared=no
22465
22466if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22467  echo $ECHO_N "(cached) $ECHO_C" >&6
22468else
22469  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22470fi
22471
22472sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22473if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22474  echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
22476  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22477fi
22478
22479sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22480
22481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22482if test "$GCC" = yes; then
22483  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22484fi
22485
22486{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22487echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22488hardcode_action_F77=
22489if test -n "$hardcode_libdir_flag_spec_F77" || \
22490   test -n "$runpath_var_F77" || \
22491   test "X$hardcode_automatic_F77" = "Xyes" ; then
22492
22493  # We can hardcode non-existant directories.
22494  if test "$hardcode_direct_F77" != no &&
22495     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22496     # have to relink, otherwise we might link with an installed library
22497     # when we should be linking with a yet-to-be-installed one
22498     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22499     test "$hardcode_minus_L_F77" != no; then
22500    # Linking always hardcodes the temporary library directory.
22501    hardcode_action_F77=relink
22502  else
22503    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22504    hardcode_action_F77=immediate
22505  fi
22506else
22507  # We cannot hardcode anything, or else we can only hardcode existing
22508  # directories.
22509  hardcode_action_F77=unsupported
22510fi
22511{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22512echo "${ECHO_T}$hardcode_action_F77" >&6; }
22513
22514if test "$hardcode_action_F77" = relink; then
22515  # Fast installation is not supported
22516  enable_fast_install=no
22517elif test "$shlibpath_overrides_runpath" = yes ||
22518     test "$enable_shared" = no; then
22519  # Fast installation is not necessary
22520  enable_fast_install=needless
22521fi
22522
22523
22524# The else clause should only fire when bootstrapping the
22525# libtool distribution, otherwise you forgot to ship ltmain.sh
22526# with your package, and you will get complaints that there are
22527# no rules to generate ltmain.sh.
22528if test -f "$ltmain"; then
22529  # See if we are running on zsh, and set the options which allow our commands through
22530  # without removal of \ escapes.
22531  if test -n "${ZSH_VERSION+set}" ; then
22532    setopt NO_GLOB_SUBST
22533  fi
22534  # Now quote all the things that may contain metacharacters while being
22535  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22536  # variables and quote the copies for generation of the libtool script.
22537  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22538    SED SHELL STRIP \
22539    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22540    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22541    deplibs_check_method reload_flag reload_cmds need_locks \
22542    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22543    lt_cv_sys_global_symbol_to_c_name_address \
22544    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22545    old_postinstall_cmds old_postuninstall_cmds \
22546    compiler_F77 \
22547    CC_F77 \
22548    LD_F77 \
22549    lt_prog_compiler_wl_F77 \
22550    lt_prog_compiler_pic_F77 \
22551    lt_prog_compiler_static_F77 \
22552    lt_prog_compiler_no_builtin_flag_F77 \
22553    export_dynamic_flag_spec_F77 \
22554    thread_safe_flag_spec_F77 \
22555    whole_archive_flag_spec_F77 \
22556    enable_shared_with_static_runtimes_F77 \
22557    old_archive_cmds_F77 \
22558    old_archive_from_new_cmds_F77 \
22559    predep_objects_F77 \
22560    postdep_objects_F77 \
22561    predeps_F77 \
22562    postdeps_F77 \
22563    compiler_lib_search_path_F77 \
22564    compiler_lib_search_dirs_F77 \
22565    archive_cmds_F77 \
22566    archive_expsym_cmds_F77 \
22567    postinstall_cmds_F77 \
22568    postuninstall_cmds_F77 \
22569    old_archive_from_expsyms_cmds_F77 \
22570    allow_undefined_flag_F77 \
22571    no_undefined_flag_F77 \
22572    export_symbols_cmds_F77 \
22573    hardcode_libdir_flag_spec_F77 \
22574    hardcode_libdir_flag_spec_ld_F77 \
22575    hardcode_libdir_separator_F77 \
22576    hardcode_automatic_F77 \
22577    module_cmds_F77 \
22578    module_expsym_cmds_F77 \
22579    lt_cv_prog_compiler_c_o_F77 \
22580    fix_srcfile_path_F77 \
22581    exclude_expsyms_F77 \
22582    include_expsyms_F77; do
22583
22584    case $var in
22585    old_archive_cmds_F77 | \
22586    old_archive_from_new_cmds_F77 | \
22587    archive_cmds_F77 | \
22588    archive_expsym_cmds_F77 | \
22589    module_cmds_F77 | \
22590    module_expsym_cmds_F77 | \
22591    old_archive_from_expsyms_cmds_F77 | \
22592    export_symbols_cmds_F77 | \
22593    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22594    postinstall_cmds | postuninstall_cmds | \
22595    old_postinstall_cmds | old_postuninstall_cmds | \
22596    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22597      # Double-quote double-evaled strings.
22598      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22599      ;;
22600    *)
22601      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22602      ;;
22603    esac
22604  done
22605
22606  case $lt_echo in
22607  *'\$0 --fallback-echo"')
22608    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22609    ;;
22610  esac
22611
22612cfgfile="$ofile"
22613
22614  cat <<__EOF__ >> "$cfgfile"
22615# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22616
22617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22618
22619# Shell to use when invoking shell scripts.
22620SHELL=$lt_SHELL
22621
22622# Whether or not to build shared libraries.
22623build_libtool_libs=$enable_shared
22624
22625# Whether or not to build static libraries.
22626build_old_libs=$enable_static
22627
22628# Whether or not to add -lc for building shared libraries.
22629build_libtool_need_lc=$archive_cmds_need_lc_F77
22630
22631# Whether or not to disallow shared libs when runtime libs are static
22632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22633
22634# Whether or not to optimize for fast installation.
22635fast_install=$enable_fast_install
22636
22637# The host system.
22638host_alias=$host_alias
22639host=$host
22640host_os=$host_os
22641
22642# The build system.
22643build_alias=$build_alias
22644build=$build
22645build_os=$build_os
22646
22647# An echo program that does not interpret backslashes.
22648echo=$lt_echo
22649
22650# The archiver.
22651AR=$lt_AR
22652AR_FLAGS=$lt_AR_FLAGS
22653
22654# A C compiler.
22655LTCC=$lt_LTCC
22656
22657# LTCC compiler flags.
22658LTCFLAGS=$lt_LTCFLAGS
22659
22660# A language-specific compiler.
22661CC=$lt_compiler_F77
22662
22663# Is the compiler the GNU C compiler?
22664with_gcc=$GCC_F77
22665
22666# An ERE matcher.
22667EGREP=$lt_EGREP
22668
22669# The linker used to build libraries.
22670LD=$lt_LD_F77
22671
22672# Whether we need hard or soft links.
22673LN_S=$lt_LN_S
22674
22675# A BSD-compatible nm program.
22676NM=$lt_NM
22677
22678# A symbol stripping program
22679STRIP=$lt_STRIP
22680
22681# Used to examine libraries when file_magic_cmd begins "file"
22682MAGIC_CMD=$MAGIC_CMD
22683
22684# Used on cygwin: DLL creation program.
22685DLLTOOL="$DLLTOOL"
22686
22687# Used on cygwin: object dumper.
22688OBJDUMP="$OBJDUMP"
22689
22690# Used on cygwin: assembler.
22691AS="$AS"
22692
22693# The name of the directory that contains temporary libtool files.
22694objdir=$objdir
22695
22696# How to create reloadable object files.
22697reload_flag=$lt_reload_flag
22698reload_cmds=$lt_reload_cmds
22699
22700# How to pass a linker flag through the compiler.
22701wl=$lt_lt_prog_compiler_wl_F77
22702
22703# Object file suffix (normally "o").
22704objext="$ac_objext"
22705
22706# Old archive suffix (normally "a").
22707libext="$libext"
22708
22709# Shared library suffix (normally ".so").
22710shrext_cmds='$shrext_cmds'
22711
22712# Executable file suffix (normally "").
22713exeext="$exeext"
22714
22715# Additional compiler flags for building library objects.
22716pic_flag=$lt_lt_prog_compiler_pic_F77
22717pic_mode=$pic_mode
22718
22719# What is the maximum length of a command?
22720max_cmd_len=$lt_cv_sys_max_cmd_len
22721
22722# Does compiler simultaneously support -c and -o options?
22723compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22724
22725# Must we lock files when doing compilation?
22726need_locks=$lt_need_locks
22727
22728# Do we need the lib prefix for modules?
22729need_lib_prefix=$need_lib_prefix
22730
22731# Do we need a version for libraries?
22732need_version=$need_version
22733
22734# Whether dlopen is supported.
22735dlopen_support=$enable_dlopen
22736
22737# Whether dlopen of programs is supported.
22738dlopen_self=$enable_dlopen_self
22739
22740# Whether dlopen of statically linked programs is supported.
22741dlopen_self_static=$enable_dlopen_self_static
22742
22743# Compiler flag to prevent dynamic linking.
22744link_static_flag=$lt_lt_prog_compiler_static_F77
22745
22746# Compiler flag to turn off builtin functions.
22747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22748
22749# Compiler flag to allow reflexive dlopens.
22750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22751
22752# Compiler flag to generate shared objects directly from archives.
22753whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22754
22755# Compiler flag to generate thread-safe objects.
22756thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22757
22758# Library versioning type.
22759version_type=$version_type
22760
22761# Format of library name prefix.
22762libname_spec=$lt_libname_spec
22763
22764# List of archive names.  First name is the real one, the rest are links.
22765# The last name is the one that the linker finds with -lNAME.
22766library_names_spec=$lt_library_names_spec
22767
22768# The coded name of the library, if different from the real name.
22769soname_spec=$lt_soname_spec
22770
22771# Commands used to build and install an old-style archive.
22772RANLIB=$lt_RANLIB
22773old_archive_cmds=$lt_old_archive_cmds_F77
22774old_postinstall_cmds=$lt_old_postinstall_cmds
22775old_postuninstall_cmds=$lt_old_postuninstall_cmds
22776
22777# Create an old-style archive from a shared archive.
22778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22779
22780# Create a temporary old-style archive to link instead of a shared archive.
22781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22782
22783# Commands used to build and install a shared archive.
22784archive_cmds=$lt_archive_cmds_F77
22785archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22786postinstall_cmds=$lt_postinstall_cmds
22787postuninstall_cmds=$lt_postuninstall_cmds
22788
22789# Commands used to build a loadable module (assumed same as above if empty)
22790module_cmds=$lt_module_cmds_F77
22791module_expsym_cmds=$lt_module_expsym_cmds_F77
22792
22793# Commands to strip libraries.
22794old_striplib=$lt_old_striplib
22795striplib=$lt_striplib
22796
22797# Dependencies to place before the objects being linked to create a
22798# shared library.
22799predep_objects=$lt_predep_objects_F77
22800
22801# Dependencies to place after the objects being linked to create a
22802# shared library.
22803postdep_objects=$lt_postdep_objects_F77
22804
22805# Dependencies to place before the objects being linked to create a
22806# shared library.
22807predeps=$lt_predeps_F77
22808
22809# Dependencies to place after the objects being linked to create a
22810# shared library.
22811postdeps=$lt_postdeps_F77
22812
22813# The directories searched by this compiler when creating a shared
22814# library
22815compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
22816
22817# The library search path used internally by the compiler when linking
22818# a shared library.
22819compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22820
22821# Method to check whether dependent libraries are shared objects.
22822deplibs_check_method=$lt_deplibs_check_method
22823
22824# Command to use when deplibs_check_method == file_magic.
22825file_magic_cmd=$lt_file_magic_cmd
22826
22827# Flag that allows shared libraries with undefined symbols to be built.
22828allow_undefined_flag=$lt_allow_undefined_flag_F77
22829
22830# Flag that forces no undefined symbols.
22831no_undefined_flag=$lt_no_undefined_flag_F77
22832
22833# Commands used to finish a libtool library installation in a directory.
22834finish_cmds=$lt_finish_cmds
22835
22836# Same as above, but a single script fragment to be evaled but not shown.
22837finish_eval=$lt_finish_eval
22838
22839# Take the output of nm and produce a listing of raw symbols and C names.
22840global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22841
22842# Transform the output of nm in a proper C declaration
22843global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22844
22845# Transform the output of nm in a C name address pair
22846global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22847
22848# This is the shared library runtime path variable.
22849runpath_var=$runpath_var
22850
22851# This is the shared library path variable.
22852shlibpath_var=$shlibpath_var
22853
22854# Is shlibpath searched before the hard-coded library search path?
22855shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22856
22857# How to hardcode a shared library path into an executable.
22858hardcode_action=$hardcode_action_F77
22859
22860# Whether we should hardcode library paths into libraries.
22861hardcode_into_libs=$hardcode_into_libs
22862
22863# Flag to hardcode \$libdir into a binary during linking.
22864# This must work even if \$libdir does not exist.
22865hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22866
22867# If ld is used when linking, flag to hardcode \$libdir into
22868# a binary during linking. This must work even if \$libdir does
22869# not exist.
22870hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22871
22872# Whether we need a single -rpath flag with a separated argument.
22873hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22874
22875# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22876# resulting binary.
22877hardcode_direct=$hardcode_direct_F77
22878
22879# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22880# resulting binary.
22881hardcode_minus_L=$hardcode_minus_L_F77
22882
22883# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22884# the resulting binary.
22885hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22886
22887# Set to yes if building a shared library automatically hardcodes DIR into the library
22888# and all subsequent libraries and executables linked against it.
22889hardcode_automatic=$hardcode_automatic_F77
22890
22891# Variables whose values should be saved in libtool wrapper scripts and
22892# restored at relink time.
22893variables_saved_for_relink="$variables_saved_for_relink"
22894
22895# Whether libtool must link a program against all its dependency libraries.
22896link_all_deplibs=$link_all_deplibs_F77
22897
22898# Compile-time system search path for libraries
22899sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22900
22901# Run-time system search path for libraries
22902sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22903
22904# Fix the shell variable \$srcfile for the compiler.
22905fix_srcfile_path=$lt_fix_srcfile_path
22906
22907# Set to yes if exported symbols are required.
22908always_export_symbols=$always_export_symbols_F77
22909
22910# The commands to list exported symbols.
22911export_symbols_cmds=$lt_export_symbols_cmds_F77
22912
22913# The commands to extract the exported symbol list from a shared archive.
22914extract_expsyms_cmds=$lt_extract_expsyms_cmds
22915
22916# Symbols that should not be listed in the preloaded symbols.
22917exclude_expsyms=$lt_exclude_expsyms_F77
22918
22919# Symbols that must always be exported.
22920include_expsyms=$lt_include_expsyms_F77
22921
22922# ### END LIBTOOL TAG CONFIG: $tagname
22923
22924__EOF__
22925
22926
22927else
22928  # If there is no Makefile yet, we rely on a make rule to execute
22929  # `config.status --recheck' to rerun these tests and create the
22930  # libtool script then.
22931  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22932  if test -f "$ltmain_in"; then
22933    test -f Makefile && make "$ltmain"
22934  fi
22935fi
22936
22937
22938ac_ext=c
22939ac_cpp='$CPP $CPPFLAGS'
22940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22942ac_compiler_gnu=$ac_cv_c_compiler_gnu
22943
22944CC="$lt_save_CC"
22945
22946	else
22947	  tagname=""
22948	fi
22949	;;
22950
22951      GCJ)
22952	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22953
22954
22955# Source file extension for Java test sources.
22956ac_ext=java
22957
22958# Object file extension for compiled Java test sources.
22959objext=o
22960objext_GCJ=$objext
22961
22962# Code to be used in simple compile tests
22963lt_simple_compile_test_code="class foo {}"
22964
22965# Code to be used in simple link tests
22966lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
22967
22968# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22969
22970# If no C compiler was specified, use CC.
22971LTCC=${LTCC-"$CC"}
22972
22973# If no C compiler flags were specified, use CFLAGS.
22974LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22975
22976# Allow CC to be a program name with arguments.
22977compiler=$CC
22978
22979
22980# save warnings/boilerplate of simple test code
22981ac_outfile=conftest.$ac_objext
22982echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22983eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22984_lt_compiler_boilerplate=`cat conftest.err`
22985$rm conftest*
22986
22987ac_outfile=conftest.$ac_objext
22988echo "$lt_simple_link_test_code" >conftest.$ac_ext
22989eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22990_lt_linker_boilerplate=`cat conftest.err`
22991$rm -r conftest*
22992
22993
22994# Allow CC to be a program name with arguments.
22995lt_save_CC="$CC"
22996CC=${GCJ-"gcj"}
22997compiler=$CC
22998compiler_GCJ=$CC
22999for cc_temp in $compiler""; do
23000  case $cc_temp in
23001    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23002    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23003    \-*) ;;
23004    *) break;;
23005  esac
23006done
23007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23008
23009
23010# GCJ did not exist at the time GCC didn't implicitly link libc in.
23011archive_cmds_need_lc_GCJ=no
23012
23013old_archive_cmds_GCJ=$old_archive_cmds
23014
23015
23016lt_prog_compiler_no_builtin_flag_GCJ=
23017
23018if test "$GCC" = yes; then
23019  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23020
23021
23022{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23023echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23024if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23025  echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027  lt_cv_prog_compiler_rtti_exceptions=no
23028  ac_outfile=conftest.$ac_objext
23029   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23030   lt_compiler_flag="-fno-rtti -fno-exceptions"
23031   # Insert the option either (1) after the last *FLAGS variable, or
23032   # (2) before a word containing "conftest.", or (3) at the end.
23033   # Note that $ac_compile itself does not contain backslashes and begins
23034   # with a dollar sign (not a hyphen), so the echo should work correctly.
23035   # The option is referenced via a variable to avoid confusing sed.
23036   lt_compile=`echo "$ac_compile" | $SED \
23037   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23038   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23039   -e 's:$: $lt_compiler_flag:'`
23040   (eval echo "\"\$as_me:23040: $lt_compile\"" >&5)
23041   (eval "$lt_compile" 2>conftest.err)
23042   ac_status=$?
23043   cat conftest.err >&5
23044   echo "$as_me:23044: \$? = $ac_status" >&5
23045   if (exit $ac_status) && test -s "$ac_outfile"; then
23046     # The compiler can only warn and ignore the option if not recognized
23047     # So say no if there are warnings other than the usual output.
23048     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23049     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23050     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23051       lt_cv_prog_compiler_rtti_exceptions=yes
23052     fi
23053   fi
23054   $rm conftest*
23055
23056fi
23057{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23058echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23059
23060if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23061    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23062else
23063    :
23064fi
23065
23066fi
23067
23068lt_prog_compiler_wl_GCJ=
23069lt_prog_compiler_pic_GCJ=
23070lt_prog_compiler_static_GCJ=
23071
23072{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23073echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23074
23075  if test "$GCC" = yes; then
23076    lt_prog_compiler_wl_GCJ='-Wl,'
23077    lt_prog_compiler_static_GCJ='-static'
23078
23079    case $host_os in
23080      aix*)
23081      # All AIX code is PIC.
23082      if test "$host_cpu" = ia64; then
23083	# AIX 5 now supports IA64 processor
23084	lt_prog_compiler_static_GCJ='-Bstatic'
23085      fi
23086      ;;
23087
23088    amigaos*)
23089      # FIXME: we need at least 68020 code to build shared libraries, but
23090      # adding the `-m68020' flag to GCC prevents building anything better,
23091      # like `-m68040'.
23092      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23093      ;;
23094
23095    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23096      # PIC is the default for these OSes.
23097      ;;
23098
23099    mingw* | cygwin* | pw32* | os2*)
23100      # This hack is so that the source file can tell whether it is being
23101      # built for inclusion in a dll (and should export symbols for example).
23102      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23103      # (--disable-auto-import) libraries
23104
23105      ;;
23106
23107    darwin* | rhapsody*)
23108      # PIC is the default on this platform
23109      # Common symbols not allowed in MH_DYLIB files
23110      lt_prog_compiler_pic_GCJ='-fno-common'
23111      ;;
23112
23113    interix[3-9]*)
23114      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23115      # Instead, we relocate shared libraries at runtime.
23116      ;;
23117
23118    msdosdjgpp*)
23119      # Just because we use GCC doesn't mean we suddenly get shared libraries
23120      # on systems that don't support them.
23121      lt_prog_compiler_can_build_shared_GCJ=no
23122      enable_shared=no
23123      ;;
23124
23125    sysv4*MP*)
23126      if test -d /usr/nec; then
23127	lt_prog_compiler_pic_GCJ=-Kconform_pic
23128      fi
23129      ;;
23130
23131    hpux*)
23132      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23133      # not for PA HP-UX.
23134      case $host_cpu in
23135      hppa*64*|ia64*)
23136	# +Z the default
23137	;;
23138      *)
23139	lt_prog_compiler_pic_GCJ='-fPIC'
23140	;;
23141      esac
23142      ;;
23143
23144    *)
23145      lt_prog_compiler_pic_GCJ='-fPIC'
23146      ;;
23147    esac
23148  else
23149    # PORTME Check for flag to pass linker flags through the system compiler.
23150    case $host_os in
23151    aix*)
23152      lt_prog_compiler_wl_GCJ='-Wl,'
23153      if test "$host_cpu" = ia64; then
23154	# AIX 5 now supports IA64 processor
23155	lt_prog_compiler_static_GCJ='-Bstatic'
23156      else
23157	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23158      fi
23159      ;;
23160      darwin*)
23161        # PIC is the default on this platform
23162        # Common symbols not allowed in MH_DYLIB files
23163       case $cc_basename in
23164         xlc*)
23165         lt_prog_compiler_pic_GCJ='-qnocommon'
23166         lt_prog_compiler_wl_GCJ='-Wl,'
23167         ;;
23168       esac
23169       ;;
23170
23171    mingw* | cygwin* | pw32* | os2*)
23172      # This hack is so that the source file can tell whether it is being
23173      # built for inclusion in a dll (and should export symbols for example).
23174
23175      ;;
23176
23177    hpux9* | hpux10* | hpux11*)
23178      lt_prog_compiler_wl_GCJ='-Wl,'
23179      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23180      # not for PA HP-UX.
23181      case $host_cpu in
23182      hppa*64*|ia64*)
23183	# +Z the default
23184	;;
23185      *)
23186	lt_prog_compiler_pic_GCJ='+Z'
23187	;;
23188      esac
23189      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23190      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23191      ;;
23192
23193    irix5* | irix6* | nonstopux*)
23194      lt_prog_compiler_wl_GCJ='-Wl,'
23195      # PIC (with -KPIC) is the default.
23196      lt_prog_compiler_static_GCJ='-non_shared'
23197      ;;
23198
23199    newsos6)
23200      lt_prog_compiler_pic_GCJ='-KPIC'
23201      lt_prog_compiler_static_GCJ='-Bstatic'
23202      ;;
23203
23204    linux* | k*bsd*-gnu)
23205      case $cc_basename in
23206      icc* | ecc*)
23207	lt_prog_compiler_wl_GCJ='-Wl,'
23208	lt_prog_compiler_pic_GCJ='-KPIC'
23209	lt_prog_compiler_static_GCJ='-static'
23210        ;;
23211      pgcc* | pgf77* | pgf90* | pgf95*)
23212        # Portland Group compilers (*not* the Pentium gcc compiler,
23213	# which looks to be a dead project)
23214	lt_prog_compiler_wl_GCJ='-Wl,'
23215	lt_prog_compiler_pic_GCJ='-fpic'
23216	lt_prog_compiler_static_GCJ='-Bstatic'
23217        ;;
23218      ccc*)
23219        lt_prog_compiler_wl_GCJ='-Wl,'
23220        # All Alpha code is PIC.
23221        lt_prog_compiler_static_GCJ='-non_shared'
23222        ;;
23223      *)
23224        case `$CC -V 2>&1 | sed 5q` in
23225	*Sun\ C*)
23226	  # Sun C 5.9
23227	  lt_prog_compiler_pic_GCJ='-KPIC'
23228	  lt_prog_compiler_static_GCJ='-Bstatic'
23229	  lt_prog_compiler_wl_GCJ='-Wl,'
23230	  ;;
23231	*Sun\ F*)
23232	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
23233	  lt_prog_compiler_pic_GCJ='-KPIC'
23234	  lt_prog_compiler_static_GCJ='-Bstatic'
23235	  lt_prog_compiler_wl_GCJ=''
23236	  ;;
23237	esac
23238	;;
23239      esac
23240      ;;
23241
23242    osf3* | osf4* | osf5*)
23243      lt_prog_compiler_wl_GCJ='-Wl,'
23244      # All OSF/1 code is PIC.
23245      lt_prog_compiler_static_GCJ='-non_shared'
23246      ;;
23247
23248    rdos*)
23249      lt_prog_compiler_static_GCJ='-non_shared'
23250      ;;
23251
23252    solaris*)
23253      lt_prog_compiler_pic_GCJ='-KPIC'
23254      lt_prog_compiler_static_GCJ='-Bstatic'
23255      case $cc_basename in
23256      f77* | f90* | f95*)
23257	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23258      *)
23259	lt_prog_compiler_wl_GCJ='-Wl,';;
23260      esac
23261      ;;
23262
23263    sunos4*)
23264      lt_prog_compiler_wl_GCJ='-Qoption ld '
23265      lt_prog_compiler_pic_GCJ='-PIC'
23266      lt_prog_compiler_static_GCJ='-Bstatic'
23267      ;;
23268
23269    sysv4 | sysv4.2uw2* | sysv4.3*)
23270      lt_prog_compiler_wl_GCJ='-Wl,'
23271      lt_prog_compiler_pic_GCJ='-KPIC'
23272      lt_prog_compiler_static_GCJ='-Bstatic'
23273      ;;
23274
23275    sysv4*MP*)
23276      if test -d /usr/nec ;then
23277	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23278	lt_prog_compiler_static_GCJ='-Bstatic'
23279      fi
23280      ;;
23281
23282    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23283      lt_prog_compiler_wl_GCJ='-Wl,'
23284      lt_prog_compiler_pic_GCJ='-KPIC'
23285      lt_prog_compiler_static_GCJ='-Bstatic'
23286      ;;
23287
23288    unicos*)
23289      lt_prog_compiler_wl_GCJ='-Wl,'
23290      lt_prog_compiler_can_build_shared_GCJ=no
23291      ;;
23292
23293    uts4*)
23294      lt_prog_compiler_pic_GCJ='-pic'
23295      lt_prog_compiler_static_GCJ='-Bstatic'
23296      ;;
23297
23298    *)
23299      lt_prog_compiler_can_build_shared_GCJ=no
23300      ;;
23301    esac
23302  fi
23303
23304{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23305echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23306
23307#
23308# Check to make sure the PIC flag actually works.
23309#
23310if test -n "$lt_prog_compiler_pic_GCJ"; then
23311
23312{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23313echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23314if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
23315  echo $ECHO_N "(cached) $ECHO_C" >&6
23316else
23317  lt_cv_prog_compiler_pic_works_GCJ=no
23318  ac_outfile=conftest.$ac_objext
23319   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23320   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23321   # Insert the option either (1) after the last *FLAGS variable, or
23322   # (2) before a word containing "conftest.", or (3) at the end.
23323   # Note that $ac_compile itself does not contain backslashes and begins
23324   # with a dollar sign (not a hyphen), so the echo should work correctly.
23325   # The option is referenced via a variable to avoid confusing sed.
23326   lt_compile=`echo "$ac_compile" | $SED \
23327   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23328   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23329   -e 's:$: $lt_compiler_flag:'`
23330   (eval echo "\"\$as_me:23330: $lt_compile\"" >&5)
23331   (eval "$lt_compile" 2>conftest.err)
23332   ac_status=$?
23333   cat conftest.err >&5
23334   echo "$as_me:23334: \$? = $ac_status" >&5
23335   if (exit $ac_status) && test -s "$ac_outfile"; then
23336     # The compiler can only warn and ignore the option if not recognized
23337     # So say no if there are warnings other than the usual output.
23338     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23339     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23340     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23341       lt_cv_prog_compiler_pic_works_GCJ=yes
23342     fi
23343   fi
23344   $rm conftest*
23345
23346fi
23347{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
23348echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
23349
23350if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
23351    case $lt_prog_compiler_pic_GCJ in
23352     "" | " "*) ;;
23353     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23354     esac
23355else
23356    lt_prog_compiler_pic_GCJ=
23357     lt_prog_compiler_can_build_shared_GCJ=no
23358fi
23359
23360fi
23361case $host_os in
23362  # For platforms which do not support PIC, -DPIC is meaningless:
23363  *djgpp*)
23364    lt_prog_compiler_pic_GCJ=
23365    ;;
23366  *)
23367    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23368    ;;
23369esac
23370
23371#
23372# Check to make sure the static flag actually works.
23373#
23374wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23375{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23376echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23377if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
23378  echo $ECHO_N "(cached) $ECHO_C" >&6
23379else
23380  lt_cv_prog_compiler_static_works_GCJ=no
23381   save_LDFLAGS="$LDFLAGS"
23382   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23383   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23384   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23385     # The linker can only warn and ignore the option if not recognized
23386     # So say no if there are warnings
23387     if test -s conftest.err; then
23388       # Append any errors to the config.log.
23389       cat conftest.err 1>&5
23390       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23391       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23392       if diff conftest.exp conftest.er2 >/dev/null; then
23393         lt_cv_prog_compiler_static_works_GCJ=yes
23394       fi
23395     else
23396       lt_cv_prog_compiler_static_works_GCJ=yes
23397     fi
23398   fi
23399   $rm -r conftest*
23400   LDFLAGS="$save_LDFLAGS"
23401
23402fi
23403{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
23404echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
23405
23406if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
23407    :
23408else
23409    lt_prog_compiler_static_GCJ=
23410fi
23411
23412
23413{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23414echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23415if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23416  echo $ECHO_N "(cached) $ECHO_C" >&6
23417else
23418  lt_cv_prog_compiler_c_o_GCJ=no
23419   $rm -r conftest 2>/dev/null
23420   mkdir conftest
23421   cd conftest
23422   mkdir out
23423   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23424
23425   lt_compiler_flag="-o out/conftest2.$ac_objext"
23426   # Insert the option either (1) after the last *FLAGS variable, or
23427   # (2) before a word containing "conftest.", or (3) at the end.
23428   # Note that $ac_compile itself does not contain backslashes and begins
23429   # with a dollar sign (not a hyphen), so the echo should work correctly.
23430   lt_compile=`echo "$ac_compile" | $SED \
23431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23433   -e 's:$: $lt_compiler_flag:'`
23434   (eval echo "\"\$as_me:23434: $lt_compile\"" >&5)
23435   (eval "$lt_compile" 2>out/conftest.err)
23436   ac_status=$?
23437   cat out/conftest.err >&5
23438   echo "$as_me:23438: \$? = $ac_status" >&5
23439   if (exit $ac_status) && test -s out/conftest2.$ac_objext
23440   then
23441     # The compiler can only warn and ignore the option if not recognized
23442     # So say no if there are warnings
23443     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23444     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23445     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23446       lt_cv_prog_compiler_c_o_GCJ=yes
23447     fi
23448   fi
23449   chmod u+w . 2>&5
23450   $rm conftest*
23451   # SGI C++ compiler will create directory out/ii_files/ for
23452   # template instantiation
23453   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23454   $rm out/* && rmdir out
23455   cd ..
23456   rmdir conftest
23457   $rm conftest*
23458
23459fi
23460{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23461echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23462
23463
23464hard_links="nottested"
23465if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23466  # do not overwrite the value of need_locks provided by the user
23467  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23468echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23469  hard_links=yes
23470  $rm conftest*
23471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23472  touch conftest.a
23473  ln conftest.a conftest.b 2>&5 || hard_links=no
23474  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23475  { echo "$as_me:$LINENO: result: $hard_links" >&5
23476echo "${ECHO_T}$hard_links" >&6; }
23477  if test "$hard_links" = no; then
23478    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23479echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23480    need_locks=warn
23481  fi
23482else
23483  need_locks=no
23484fi
23485
23486{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23487echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23488
23489  runpath_var=
23490  allow_undefined_flag_GCJ=
23491  enable_shared_with_static_runtimes_GCJ=no
23492  archive_cmds_GCJ=
23493  archive_expsym_cmds_GCJ=
23494  old_archive_From_new_cmds_GCJ=
23495  old_archive_from_expsyms_cmds_GCJ=
23496  export_dynamic_flag_spec_GCJ=
23497  whole_archive_flag_spec_GCJ=
23498  thread_safe_flag_spec_GCJ=
23499  hardcode_libdir_flag_spec_GCJ=
23500  hardcode_libdir_flag_spec_ld_GCJ=
23501  hardcode_libdir_separator_GCJ=
23502  hardcode_direct_GCJ=no
23503  hardcode_minus_L_GCJ=no
23504  hardcode_shlibpath_var_GCJ=unsupported
23505  link_all_deplibs_GCJ=unknown
23506  hardcode_automatic_GCJ=no
23507  module_cmds_GCJ=
23508  module_expsym_cmds_GCJ=
23509  always_export_symbols_GCJ=no
23510  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23511  # include_expsyms should be a list of space-separated symbols to be *always*
23512  # included in the symbol list
23513  include_expsyms_GCJ=
23514  # exclude_expsyms can be an extended regexp of symbols to exclude
23515  # it will be wrapped by ` (' and `)$', so one must not match beginning or
23516  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23517  # as well as any symbol that contains `d'.
23518  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23519  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23520  # platforms (ab)use it in PIC code, but their linkers get confused if
23521  # the symbol is explicitly referenced.  Since portable code cannot
23522  # rely on this symbol name, it's probably fine to never include it in
23523  # preloaded symbol tables.
23524  # Exclude shared library initialization/finalization symbols.
23525  extract_expsyms_cmds=
23526  # Just being paranoid about ensuring that cc_basename is set.
23527  for cc_temp in $compiler""; do
23528  case $cc_temp in
23529    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23530    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23531    \-*) ;;
23532    *) break;;
23533  esac
23534done
23535cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23536
23537  case $host_os in
23538  cygwin* | mingw* | pw32*)
23539    # FIXME: the MSVC++ port hasn't been tested in a loooong time
23540    # When not using gcc, we currently assume that we are using
23541    # Microsoft Visual C++.
23542    if test "$GCC" != yes; then
23543      with_gnu_ld=no
23544    fi
23545    ;;
23546  interix*)
23547    # we just hope/assume this is gcc and not c89 (= MSVC++)
23548    with_gnu_ld=yes
23549    ;;
23550  openbsd*)
23551    with_gnu_ld=no
23552    ;;
23553  esac
23554
23555  ld_shlibs_GCJ=yes
23556  if test "$with_gnu_ld" = yes; then
23557    # If archive_cmds runs LD, not CC, wlarc should be empty
23558    wlarc='${wl}'
23559
23560    # Set some defaults for GNU ld with shared library support. These
23561    # are reset later if shared libraries are not supported. Putting them
23562    # here allows them to be overridden if necessary.
23563    runpath_var=LD_RUN_PATH
23564    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23565    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23566    # ancient GNU ld didn't support --whole-archive et. al.
23567    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23568	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23569      else
23570  	whole_archive_flag_spec_GCJ=
23571    fi
23572    supports_anon_versioning=no
23573    case `$LD -v 2>/dev/null` in
23574      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23575      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23576      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23577      *\ 2.11.*) ;; # other 2.11 versions
23578      *) supports_anon_versioning=yes ;;
23579    esac
23580
23581    # See if GNU ld supports shared libraries.
23582    case $host_os in
23583    aix[3-9]*)
23584      # On AIX/PPC, the GNU linker is very broken
23585      if test "$host_cpu" != ia64; then
23586	ld_shlibs_GCJ=no
23587	cat <<EOF 1>&2
23588
23589*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23590*** to be unable to reliably create shared libraries on AIX.
23591*** Therefore, libtool is disabling shared libraries support.  If you
23592*** really care for shared libraries, you may want to modify your PATH
23593*** so that a non-GNU linker is found, and then restart.
23594
23595EOF
23596      fi
23597      ;;
23598
23599    amigaos*)
23600      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)'
23601      hardcode_libdir_flag_spec_GCJ='-L$libdir'
23602      hardcode_minus_L_GCJ=yes
23603
23604      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23605      # that the semantics of dynamic libraries on AmigaOS, at least up
23606      # to version 4, is to share data among multiple programs linked
23607      # with the same dynamic library.  Since this doesn't match the
23608      # behavior of shared libraries on other platforms, we can't use
23609      # them.
23610      ld_shlibs_GCJ=no
23611      ;;
23612
23613    beos*)
23614      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23615	allow_undefined_flag_GCJ=unsupported
23616	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23617	# support --undefined.  This deserves some investigation.  FIXME
23618	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23619      else
23620	ld_shlibs_GCJ=no
23621      fi
23622      ;;
23623
23624    cygwin* | mingw* | pw32*)
23625      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23626      # as there is no search path for DLLs.
23627      hardcode_libdir_flag_spec_GCJ='-L$libdir'
23628      allow_undefined_flag_GCJ=unsupported
23629      always_export_symbols_GCJ=no
23630      enable_shared_with_static_runtimes_GCJ=yes
23631      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23632
23633      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23634        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23635	# If the export-symbols file already is a .def file (1st line
23636	# is EXPORTS), use it as is; otherwise, prepend...
23637	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23638	  cp $export_symbols $output_objdir/$soname.def;
23639	else
23640	  echo EXPORTS > $output_objdir/$soname.def;
23641	  cat $export_symbols >> $output_objdir/$soname.def;
23642	fi~
23643	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23644      else
23645	ld_shlibs_GCJ=no
23646      fi
23647      ;;
23648
23649    interix[3-9]*)
23650      hardcode_direct_GCJ=no
23651      hardcode_shlibpath_var_GCJ=no
23652      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23653      export_dynamic_flag_spec_GCJ='${wl}-E'
23654      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23655      # Instead, shared libraries are loaded at an image base (0x10000000 by
23656      # default) and relocated if they conflict, which is a slow very memory
23657      # consuming and fragmenting process.  To avoid this, we pick a random,
23658      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23659      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23660      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'
23661      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'
23662      ;;
23663
23664    gnu* | linux* | k*bsd*-gnu)
23665      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23666	tmp_addflag=
23667	case $cc_basename,$host_cpu in
23668	pgcc*)				# Portland Group C compiler
23669	  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'
23670	  tmp_addflag=' $pic_flag'
23671	  ;;
23672	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
23673	  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'
23674	  tmp_addflag=' $pic_flag -Mnomain' ;;
23675	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
23676	  tmp_addflag=' -i_dynamic' ;;
23677	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
23678	  tmp_addflag=' -i_dynamic -nofor_main' ;;
23679	ifc* | ifort*)			# Intel Fortran compiler
23680	  tmp_addflag=' -nofor_main' ;;
23681	esac
23682	case `$CC -V 2>&1 | sed 5q` in
23683	*Sun\ C*)			# Sun C 5.9
23684	  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'
23685	  tmp_sharedflag='-G' ;;
23686	*Sun\ F*)			# Sun Fortran 8.3
23687	  tmp_sharedflag='-G' ;;
23688	*)
23689	  tmp_sharedflag='-shared' ;;
23690	esac
23691	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23692
23693	if test $supports_anon_versioning = yes; then
23694	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23695  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23696  $echo "local: *; };" >> $output_objdir/$libname.ver~
23697	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23698	fi
23699	link_all_deplibs_GCJ=no
23700      else
23701	ld_shlibs_GCJ=no
23702      fi
23703      ;;
23704
23705    netbsd* | netbsdelf*-gnu)
23706      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23707	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23708	wlarc=
23709      else
23710	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23711	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23712      fi
23713      ;;
23714
23715    solaris*)
23716      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23717	ld_shlibs_GCJ=no
23718	cat <<EOF 1>&2
23719
23720*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23721*** create shared libraries on Solaris systems.  Therefore, libtool
23722*** is disabling shared libraries support.  We urge you to upgrade GNU
23723*** binutils to release 2.9.1 or newer.  Another option is to modify
23724*** your PATH or compiler configuration so that the native linker is
23725*** used, and then restart.
23726
23727EOF
23728      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23729	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23730	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23731      else
23732	ld_shlibs_GCJ=no
23733      fi
23734      ;;
23735
23736    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23737      case `$LD -v 2>&1` in
23738        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23739	ld_shlibs_GCJ=no
23740	cat <<_LT_EOF 1>&2
23741
23742*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23743*** reliably create shared libraries on SCO systems.  Therefore, libtool
23744*** is disabling shared libraries support.  We urge you to upgrade GNU
23745*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23746*** your PATH or compiler configuration so that the native linker is
23747*** used, and then restart.
23748
23749_LT_EOF
23750	;;
23751	*)
23752	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23753	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23754	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23755	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23756	  else
23757	    ld_shlibs_GCJ=no
23758	  fi
23759	;;
23760      esac
23761      ;;
23762
23763    sunos4*)
23764      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23765      wlarc=
23766      hardcode_direct_GCJ=yes
23767      hardcode_shlibpath_var_GCJ=no
23768      ;;
23769
23770    *)
23771      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23772	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23773	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23774      else
23775	ld_shlibs_GCJ=no
23776      fi
23777      ;;
23778    esac
23779
23780    if test "$ld_shlibs_GCJ" = no; then
23781      runpath_var=
23782      hardcode_libdir_flag_spec_GCJ=
23783      export_dynamic_flag_spec_GCJ=
23784      whole_archive_flag_spec_GCJ=
23785    fi
23786  else
23787    # PORTME fill in a description of your system's linker (not GNU ld)
23788    case $host_os in
23789    aix3*)
23790      allow_undefined_flag_GCJ=unsupported
23791      always_export_symbols_GCJ=yes
23792      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'
23793      # Note: this linker hardcodes the directories in LIBPATH if there
23794      # are no directories specified by -L.
23795      hardcode_minus_L_GCJ=yes
23796      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23797	# Neither direct hardcoding nor static linking is supported with a
23798	# broken collect2.
23799	hardcode_direct_GCJ=unsupported
23800      fi
23801      ;;
23802
23803    aix[4-9]*)
23804      if test "$host_cpu" = ia64; then
23805	# On IA64, the linker does run time linking by default, so we don't
23806	# have to do anything special.
23807	aix_use_runtimelinking=no
23808	exp_sym_flag='-Bexport'
23809	no_entry_flag=""
23810      else
23811	# If we're using GNU nm, then we don't want the "-C" option.
23812	# -C means demangle to AIX nm, but means don't demangle with GNU nm
23813	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23814	  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'
23815	else
23816	  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'
23817	fi
23818	aix_use_runtimelinking=no
23819
23820	# Test if we are trying to use run time linking or normal
23821	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
23822	# need to do runtime linking.
23823	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
23824	  for ld_flag in $LDFLAGS; do
23825  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23826  	    aix_use_runtimelinking=yes
23827  	    break
23828  	  fi
23829	  done
23830	  ;;
23831	esac
23832
23833	exp_sym_flag='-bexport'
23834	no_entry_flag='-bnoentry'
23835      fi
23836
23837      # When large executables or shared objects are built, AIX ld can
23838      # have problems creating the table of contents.  If linking a library
23839      # or program results in "error TOC overflow" add -mminimal-toc to
23840      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23841      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23842
23843      archive_cmds_GCJ=''
23844      hardcode_direct_GCJ=yes
23845      hardcode_libdir_separator_GCJ=':'
23846      link_all_deplibs_GCJ=yes
23847
23848      if test "$GCC" = yes; then
23849	case $host_os in aix4.[012]|aix4.[012].*)
23850	# We only want to do this on AIX 4.2 and lower, the check
23851	# below for broken collect2 doesn't work under 4.3+
23852	  collect2name=`${CC} -print-prog-name=collect2`
23853	  if test -f "$collect2name" && \
23854  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
23855	  then
23856  	  # We have reworked collect2
23857  	  :
23858	  else
23859  	  # We have old collect2
23860  	  hardcode_direct_GCJ=unsupported
23861  	  # It fails to find uninstalled libraries when the uninstalled
23862  	  # path is not listed in the libpath.  Setting hardcode_minus_L
23863  	  # to unsupported forces relinking
23864  	  hardcode_minus_L_GCJ=yes
23865  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
23866  	  hardcode_libdir_separator_GCJ=
23867	  fi
23868	  ;;
23869	esac
23870	shared_flag='-shared'
23871	if test "$aix_use_runtimelinking" = yes; then
23872	  shared_flag="$shared_flag "'${wl}-G'
23873	fi
23874      else
23875	# not using gcc
23876	if test "$host_cpu" = ia64; then
23877  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23878  	# chokes on -Wl,-G. The following line is correct:
23879	  shared_flag='-G'
23880	else
23881	  if test "$aix_use_runtimelinking" = yes; then
23882	    shared_flag='${wl}-G'
23883	  else
23884	    shared_flag='${wl}-bM:SRE'
23885	  fi
23886	fi
23887      fi
23888
23889      # It seems that -bexpall does not export symbols beginning with
23890      # underscore (_), so it is better to generate a list of symbols to export.
23891      always_export_symbols_GCJ=yes
23892      if test "$aix_use_runtimelinking" = yes; then
23893	# Warning - without using the other runtime loading flags (-brtl),
23894	# -berok will link without error, but may produce a broken library.
23895	allow_undefined_flag_GCJ='-berok'
23896       # Determine the default libpath from the value encoded in an empty executable.
23897       cat >conftest.$ac_ext <<_ACEOF
23898/* confdefs.h.  */
23899_ACEOF
23900cat confdefs.h >>conftest.$ac_ext
23901cat >>conftest.$ac_ext <<_ACEOF
23902/* end confdefs.h.  */
23903
23904int
23905main ()
23906{
23907
23908  ;
23909  return 0;
23910}
23911_ACEOF
23912rm -f conftest.$ac_objext conftest$ac_exeext
23913if { (ac_try="$ac_link"
23914case "(($ac_try" in
23915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916  *) ac_try_echo=$ac_try;;
23917esac
23918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919  (eval "$ac_link") 2>conftest.er1
23920  ac_status=$?
23921  grep -v '^ *+' conftest.er1 >conftest.err
23922  rm -f conftest.er1
23923  cat conftest.err >&5
23924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925  (exit $ac_status); } && {
23926	 test -z "$ac_c_werror_flag" ||
23927	 test ! -s conftest.err
23928       } && test -s conftest$ac_exeext &&
23929       $as_test_x conftest$ac_exeext; then
23930
23931lt_aix_libpath_sed='
23932    /Import File Strings/,/^$/ {
23933	/^0/ {
23934	    s/^0  *\(.*\)$/\1/
23935	    p
23936	}
23937    }'
23938aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23939# Check for a 64-bit object if we didn't find anything.
23940if test -z "$aix_libpath"; then
23941  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23942fi
23943else
23944  echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948fi
23949
23950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23951      conftest$ac_exeext conftest.$ac_ext
23952if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23953
23954       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23955	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"
23956       else
23957	if test "$host_cpu" = ia64; then
23958	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23959	  allow_undefined_flag_GCJ="-z nodefs"
23960	  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"
23961	else
23962	 # Determine the default libpath from the value encoded in an empty executable.
23963	 cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h.  */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h.  */
23969
23970int
23971main ()
23972{
23973
23974  ;
23975  return 0;
23976}
23977_ACEOF
23978rm -f conftest.$ac_objext conftest$ac_exeext
23979if { (ac_try="$ac_link"
23980case "(($ac_try" in
23981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982  *) ac_try_echo=$ac_try;;
23983esac
23984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985  (eval "$ac_link") 2>conftest.er1
23986  ac_status=$?
23987  grep -v '^ *+' conftest.er1 >conftest.err
23988  rm -f conftest.er1
23989  cat conftest.err >&5
23990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991  (exit $ac_status); } && {
23992	 test -z "$ac_c_werror_flag" ||
23993	 test ! -s conftest.err
23994       } && test -s conftest$ac_exeext &&
23995       $as_test_x conftest$ac_exeext; then
23996
23997lt_aix_libpath_sed='
23998    /Import File Strings/,/^$/ {
23999	/^0/ {
24000	    s/^0  *\(.*\)$/\1/
24001	    p
24002	}
24003    }'
24004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24005# Check for a 64-bit object if we didn't find anything.
24006if test -z "$aix_libpath"; then
24007  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24008fi
24009else
24010  echo "$as_me: failed program was:" >&5
24011sed 's/^/| /' conftest.$ac_ext >&5
24012
24013
24014fi
24015
24016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24017      conftest$ac_exeext conftest.$ac_ext
24018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24019
24020	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24021	  # Warning - without using the other run time loading flags,
24022	  # -berok will link without error, but may produce a broken library.
24023	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24024	  allow_undefined_flag_GCJ=' ${wl}-berok'
24025	  # Exported symbols can be pulled into shared objects from archives
24026	  whole_archive_flag_spec_GCJ='$convenience'
24027	  archive_cmds_need_lc_GCJ=yes
24028	  # This is similar to how AIX traditionally builds its shared libraries.
24029	  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'
24030	fi
24031      fi
24032      ;;
24033
24034    amigaos*)
24035      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)'
24036      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24037      hardcode_minus_L_GCJ=yes
24038      # see comment about different semantics on the GNU ld section
24039      ld_shlibs_GCJ=no
24040      ;;
24041
24042    bsdi[45]*)
24043      export_dynamic_flag_spec_GCJ=-rdynamic
24044      ;;
24045
24046    cygwin* | mingw* | pw32*)
24047      # When not using gcc, we currently assume that we are using
24048      # Microsoft Visual C++.
24049      # hardcode_libdir_flag_spec is actually meaningless, as there is
24050      # no search path for DLLs.
24051      hardcode_libdir_flag_spec_GCJ=' '
24052      allow_undefined_flag_GCJ=unsupported
24053      # Tell ltmain to make .lib files, not .a files.
24054      libext=lib
24055      # Tell ltmain to make .dll files, not .so files.
24056      shrext_cmds=".dll"
24057      # FIXME: Setting linknames here is a bad hack.
24058      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24059      # The linker will automatically build a .lib file if we build a DLL.
24060      old_archive_From_new_cmds_GCJ='true'
24061      # FIXME: Should let the user specify the lib program.
24062      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
24063      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24064      enable_shared_with_static_runtimes_GCJ=yes
24065      ;;
24066
24067    darwin* | rhapsody*)
24068      case $host_os in
24069        rhapsody* | darwin1.[012])
24070         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24071         ;;
24072       *) # Darwin 1.3 on
24073         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24074           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24075         else
24076           case ${MACOSX_DEPLOYMENT_TARGET} in
24077             10.[012])
24078               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24079               ;;
24080             10.*)
24081               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24082               ;;
24083           esac
24084         fi
24085         ;;
24086      esac
24087      archive_cmds_need_lc_GCJ=no
24088      hardcode_direct_GCJ=no
24089      hardcode_automatic_GCJ=yes
24090      hardcode_shlibpath_var_GCJ=unsupported
24091      whole_archive_flag_spec_GCJ=''
24092      link_all_deplibs_GCJ=yes
24093    if test "$GCC" = yes ; then
24094    	output_verbose_link_cmd='echo'
24095        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24096        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24097        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
24098        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
24099    else
24100      case $cc_basename in
24101        xlc*)
24102         output_verbose_link_cmd='echo'
24103         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24104         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24105          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24106         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24107          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}'
24108          ;;
24109       *)
24110         ld_shlibs_GCJ=no
24111          ;;
24112      esac
24113    fi
24114      ;;
24115
24116    dgux*)
24117      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24118      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24119      hardcode_shlibpath_var_GCJ=no
24120      ;;
24121
24122    freebsd1*)
24123      ld_shlibs_GCJ=no
24124      ;;
24125
24126    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24127    # support.  Future versions do this automatically, but an explicit c++rt0.o
24128    # does not break anything, and helps significantly (at the cost of a little
24129    # extra space).
24130    freebsd2.2*)
24131      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24132      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24133      hardcode_direct_GCJ=yes
24134      hardcode_shlibpath_var_GCJ=no
24135      ;;
24136
24137    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24138    freebsd2*)
24139      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24140      hardcode_direct_GCJ=yes
24141      hardcode_minus_L_GCJ=yes
24142      hardcode_shlibpath_var_GCJ=no
24143      ;;
24144
24145    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24146    freebsd* | dragonfly*)
24147      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24148      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24149      hardcode_direct_GCJ=yes
24150      hardcode_shlibpath_var_GCJ=no
24151      ;;
24152
24153    hpux9*)
24154      if test "$GCC" = yes; then
24155	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'
24156      else
24157	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'
24158      fi
24159      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24160      hardcode_libdir_separator_GCJ=:
24161      hardcode_direct_GCJ=yes
24162
24163      # hardcode_minus_L: Not really in the search PATH,
24164      # but as the default location of the library.
24165      hardcode_minus_L_GCJ=yes
24166      export_dynamic_flag_spec_GCJ='${wl}-E'
24167      ;;
24168
24169    hpux10*)
24170      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24171	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24172      else
24173	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24174      fi
24175      if test "$with_gnu_ld" = no; then
24176	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24177	hardcode_libdir_separator_GCJ=:
24178
24179	hardcode_direct_GCJ=yes
24180	export_dynamic_flag_spec_GCJ='${wl}-E'
24181
24182	# hardcode_minus_L: Not really in the search PATH,
24183	# but as the default location of the library.
24184	hardcode_minus_L_GCJ=yes
24185      fi
24186      ;;
24187
24188    hpux11*)
24189      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24190	case $host_cpu in
24191	hppa*64*)
24192	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24193	  ;;
24194	ia64*)
24195	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24196	  ;;
24197	*)
24198	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24199	  ;;
24200	esac
24201      else
24202	case $host_cpu in
24203	hppa*64*)
24204	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24205	  ;;
24206	ia64*)
24207	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24208	  ;;
24209	*)
24210	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24211	  ;;
24212	esac
24213      fi
24214      if test "$with_gnu_ld" = no; then
24215	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24216	hardcode_libdir_separator_GCJ=:
24217
24218	case $host_cpu in
24219	hppa*64*|ia64*)
24220	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24221	  hardcode_direct_GCJ=no
24222	  hardcode_shlibpath_var_GCJ=no
24223	  ;;
24224	*)
24225	  hardcode_direct_GCJ=yes
24226	  export_dynamic_flag_spec_GCJ='${wl}-E'
24227
24228	  # hardcode_minus_L: Not really in the search PATH,
24229	  # but as the default location of the library.
24230	  hardcode_minus_L_GCJ=yes
24231	  ;;
24232	esac
24233      fi
24234      ;;
24235
24236    irix5* | irix6* | nonstopux*)
24237      if test "$GCC" = yes; then
24238	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'
24239      else
24240	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'
24241	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24242      fi
24243      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24244      hardcode_libdir_separator_GCJ=:
24245      link_all_deplibs_GCJ=yes
24246      ;;
24247
24248    netbsd* | netbsdelf*-gnu)
24249      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24250	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24251      else
24252	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24253      fi
24254      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24255      hardcode_direct_GCJ=yes
24256      hardcode_shlibpath_var_GCJ=no
24257      ;;
24258
24259    newsos6)
24260      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24261      hardcode_direct_GCJ=yes
24262      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24263      hardcode_libdir_separator_GCJ=:
24264      hardcode_shlibpath_var_GCJ=no
24265      ;;
24266
24267    openbsd*)
24268      if test -f /usr/libexec/ld.so; then
24269	hardcode_direct_GCJ=yes
24270	hardcode_shlibpath_var_GCJ=no
24271	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24272	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24273	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24274	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24275	  export_dynamic_flag_spec_GCJ='${wl}-E'
24276	else
24277	  case $host_os in
24278	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24279	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24280	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
24281	     ;;
24282	   *)
24283	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24284	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24285	     ;;
24286	  esac
24287        fi
24288      else
24289	ld_shlibs_GCJ=no
24290      fi
24291      ;;
24292
24293    os2*)
24294      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24295      hardcode_minus_L_GCJ=yes
24296      allow_undefined_flag_GCJ=unsupported
24297      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'
24298      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24299      ;;
24300
24301    osf3*)
24302      if test "$GCC" = yes; then
24303	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24304	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'
24305      else
24306	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24307	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'
24308      fi
24309      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24310      hardcode_libdir_separator_GCJ=:
24311      ;;
24312
24313    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24314      if test "$GCC" = yes; then
24315	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24316	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'
24317	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24318      else
24319	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24320	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'
24321	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~
24322	$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'
24323
24324	# Both c and cxx compiler support -rpath directly
24325	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24326      fi
24327      hardcode_libdir_separator_GCJ=:
24328      ;;
24329
24330    solaris*)
24331      no_undefined_flag_GCJ=' -z text'
24332      if test "$GCC" = yes; then
24333	wlarc='${wl}'
24334	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24335	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24336	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24337      else
24338	wlarc=''
24339	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24340	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24341  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24342      fi
24343      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24344      hardcode_shlibpath_var_GCJ=no
24345      case $host_os in
24346      solaris2.[0-5] | solaris2.[0-5].*) ;;
24347      *)
24348	# The compiler driver will combine and reorder linker options,
24349	# but understands `-z linker_flag'.  GCC discards it without `$wl',
24350	# but is careful enough not to reorder.
24351 	# Supported since Solaris 2.6 (maybe 2.5.1?)
24352	if test "$GCC" = yes; then
24353	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24354	else
24355	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
24356	fi
24357	;;
24358      esac
24359      link_all_deplibs_GCJ=yes
24360      ;;
24361
24362    sunos4*)
24363      if test "x$host_vendor" = xsequent; then
24364	# Use $CC to link under sequent, because it throws in some extra .o
24365	# files that make .init and .fini sections work.
24366	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24367      else
24368	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24369      fi
24370      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24371      hardcode_direct_GCJ=yes
24372      hardcode_minus_L_GCJ=yes
24373      hardcode_shlibpath_var_GCJ=no
24374      ;;
24375
24376    sysv4)
24377      case $host_vendor in
24378	sni)
24379	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24380	  hardcode_direct_GCJ=yes # is this really true???
24381	;;
24382	siemens)
24383	  ## LD is ld it makes a PLAMLIB
24384	  ## CC just makes a GrossModule.
24385	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24386	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24387	  hardcode_direct_GCJ=no
24388        ;;
24389	motorola)
24390	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24391	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24392	;;
24393      esac
24394      runpath_var='LD_RUN_PATH'
24395      hardcode_shlibpath_var_GCJ=no
24396      ;;
24397
24398    sysv4.3*)
24399      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24400      hardcode_shlibpath_var_GCJ=no
24401      export_dynamic_flag_spec_GCJ='-Bexport'
24402      ;;
24403
24404    sysv4*MP*)
24405      if test -d /usr/nec; then
24406	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24407	hardcode_shlibpath_var_GCJ=no
24408	runpath_var=LD_RUN_PATH
24409	hardcode_runpath_var=yes
24410	ld_shlibs_GCJ=yes
24411      fi
24412      ;;
24413
24414    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24415      no_undefined_flag_GCJ='${wl}-z,text'
24416      archive_cmds_need_lc_GCJ=no
24417      hardcode_shlibpath_var_GCJ=no
24418      runpath_var='LD_RUN_PATH'
24419
24420      if test "$GCC" = yes; then
24421	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24422	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24423      else
24424	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24425	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24426      fi
24427      ;;
24428
24429    sysv5* | sco3.2v5* | sco5v6*)
24430      # Note: We can NOT use -z defs as we might desire, because we do not
24431      # link with -lc, and that would cause any symbols used from libc to
24432      # always be unresolved, which means just about no library would
24433      # ever link correctly.  If we're not using GNU ld we use -z text
24434      # though, which does catch some bad symbols but isn't as heavy-handed
24435      # as -z defs.
24436      no_undefined_flag_GCJ='${wl}-z,text'
24437      allow_undefined_flag_GCJ='${wl}-z,nodefs'
24438      archive_cmds_need_lc_GCJ=no
24439      hardcode_shlibpath_var_GCJ=no
24440      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24441      hardcode_libdir_separator_GCJ=':'
24442      link_all_deplibs_GCJ=yes
24443      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24444      runpath_var='LD_RUN_PATH'
24445
24446      if test "$GCC" = yes; then
24447	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24448	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24449      else
24450	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24451	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24452      fi
24453      ;;
24454
24455    uts4*)
24456      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24457      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24458      hardcode_shlibpath_var_GCJ=no
24459      ;;
24460
24461    *)
24462      ld_shlibs_GCJ=no
24463      ;;
24464    esac
24465  fi
24466
24467{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24468echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24469test "$ld_shlibs_GCJ" = no && can_build_shared=no
24470
24471#
24472# Do we need to explicitly link libc?
24473#
24474case "x$archive_cmds_need_lc_GCJ" in
24475x|xyes)
24476  # Assume -lc should be added
24477  archive_cmds_need_lc_GCJ=yes
24478
24479  if test "$enable_shared" = yes && test "$GCC" = yes; then
24480    case $archive_cmds_GCJ in
24481    *'~'*)
24482      # FIXME: we may have to deal with multi-command sequences.
24483      ;;
24484    '$CC '*)
24485      # Test whether the compiler implicitly links with -lc since on some
24486      # systems, -lgcc has to come before -lc. If gcc already passes -lc
24487      # to ld, don't add -lc before -lgcc.
24488      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24489echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24490      $rm conftest*
24491      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24492
24493      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24494  (eval $ac_compile) 2>&5
24495  ac_status=$?
24496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497  (exit $ac_status); } 2>conftest.err; then
24498        soname=conftest
24499        lib=conftest
24500        libobjs=conftest.$ac_objext
24501        deplibs=
24502        wl=$lt_prog_compiler_wl_GCJ
24503	pic_flag=$lt_prog_compiler_pic_GCJ
24504        compiler_flags=-v
24505        linker_flags=-v
24506        verstring=
24507        output_objdir=.
24508        libname=conftest
24509        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24510        allow_undefined_flag_GCJ=
24511        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24512  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24513  ac_status=$?
24514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515  (exit $ac_status); }
24516        then
24517	  archive_cmds_need_lc_GCJ=no
24518        else
24519	  archive_cmds_need_lc_GCJ=yes
24520        fi
24521        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24522      else
24523        cat conftest.err 1>&5
24524      fi
24525      $rm conftest*
24526      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24527echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24528      ;;
24529    esac
24530  fi
24531  ;;
24532esac
24533
24534{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24536library_names_spec=
24537libname_spec='lib$name'
24538soname_spec=
24539shrext_cmds=".so"
24540postinstall_cmds=
24541postuninstall_cmds=
24542finish_cmds=
24543finish_eval=
24544shlibpath_var=
24545shlibpath_overrides_runpath=unknown
24546version_type=none
24547dynamic_linker="$host_os ld.so"
24548sys_lib_dlsearch_path_spec="/lib /usr/lib"
24549
24550need_lib_prefix=unknown
24551hardcode_into_libs=no
24552
24553# when you set need_version to no, make sure it does not cause -set_version
24554# flags to be left without arguments
24555need_version=unknown
24556
24557case $host_os in
24558aix3*)
24559  version_type=linux
24560  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24561  shlibpath_var=LIBPATH
24562
24563  # AIX 3 has no versioning support, so we append a major version to the name.
24564  soname_spec='${libname}${release}${shared_ext}$major'
24565  ;;
24566
24567aix[4-9]*)
24568  version_type=linux
24569  need_lib_prefix=no
24570  need_version=no
24571  hardcode_into_libs=yes
24572  if test "$host_cpu" = ia64; then
24573    # AIX 5 supports IA64
24574    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24575    shlibpath_var=LD_LIBRARY_PATH
24576  else
24577    # With GCC up to 2.95.x, collect2 would create an import file
24578    # for dependence libraries.  The import file would start with
24579    # the line `#! .'.  This would cause the generated library to
24580    # depend on `.', always an invalid library.  This was fixed in
24581    # development snapshots of GCC prior to 3.0.
24582    case $host_os in
24583      aix4 | aix4.[01] | aix4.[01].*)
24584      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24585	   echo ' yes '
24586	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24587	:
24588      else
24589	can_build_shared=no
24590      fi
24591      ;;
24592    esac
24593    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24594    # soname into executable. Probably we can add versioning support to
24595    # collect2, so additional links can be useful in future.
24596    if test "$aix_use_runtimelinking" = yes; then
24597      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24598      # instead of lib<name>.a to let people know that these are not
24599      # typical AIX shared libraries.
24600      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24601    else
24602      # We preserve .a as extension for shared libraries through AIX4.2
24603      # and later when we are not doing run time linking.
24604      library_names_spec='${libname}${release}.a $libname.a'
24605      soname_spec='${libname}${release}${shared_ext}$major'
24606    fi
24607    shlibpath_var=LIBPATH
24608  fi
24609  ;;
24610
24611amigaos*)
24612  library_names_spec='$libname.ixlibrary $libname.a'
24613  # Create ${libname}_ixlibrary.a entries in /sys/libs.
24614  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'
24615  ;;
24616
24617beos*)
24618  library_names_spec='${libname}${shared_ext}'
24619  dynamic_linker="$host_os ld.so"
24620  shlibpath_var=LIBRARY_PATH
24621  ;;
24622
24623bsdi[45]*)
24624  version_type=linux
24625  need_version=no
24626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24627  soname_spec='${libname}${release}${shared_ext}$major'
24628  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24629  shlibpath_var=LD_LIBRARY_PATH
24630  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24631  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24632  # the default ld.so.conf also contains /usr/contrib/lib and
24633  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24634  # libtool to hard-code these into programs
24635  ;;
24636
24637cygwin* | mingw* | pw32*)
24638  version_type=windows
24639  shrext_cmds=".dll"
24640  need_version=no
24641  need_lib_prefix=no
24642
24643  case $GCC,$host_os in
24644  yes,cygwin* | yes,mingw* | yes,pw32*)
24645    library_names_spec='$libname.dll.a'
24646    # DLL is installed to $(libdir)/../bin by postinstall_cmds
24647    postinstall_cmds='base_file=`basename \${file}`~
24648      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24649      dldir=$destdir/`dirname \$dlpath`~
24650      test -d \$dldir || mkdir -p \$dldir~
24651      $install_prog $dir/$dlname \$dldir/$dlname~
24652      chmod a+x \$dldir/$dlname'
24653    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24654      dlpath=$dir/\$dldll~
24655       $rm \$dlpath'
24656    shlibpath_overrides_runpath=yes
24657
24658    case $host_os in
24659    cygwin*)
24660      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24661      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24662      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24663      ;;
24664    mingw*)
24665      # MinGW DLLs use traditional 'lib' prefix
24666      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24667      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24668      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24669        # It is most probably a Windows format PATH printed by
24670        # mingw gcc, but we are running on Cygwin. Gcc prints its search
24671        # path with ; separators, and with drive letters. We can handle the
24672        # drive letters (cygwin fileutils understands them), so leave them,
24673        # especially as we might pass files found there to a mingw objdump,
24674        # which wouldn't understand a cygwinified path. Ahh.
24675        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24676      else
24677        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24678      fi
24679      ;;
24680    pw32*)
24681      # pw32 DLLs use 'pw' prefix rather than 'lib'
24682      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24683      ;;
24684    esac
24685    ;;
24686
24687  *)
24688    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24689    ;;
24690  esac
24691  dynamic_linker='Win32 ld.exe'
24692  # FIXME: first we should search . and the directory the executable is in
24693  shlibpath_var=PATH
24694  ;;
24695
24696darwin* | rhapsody*)
24697  dynamic_linker="$host_os dyld"
24698  version_type=darwin
24699  need_lib_prefix=no
24700  need_version=no
24701  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24702  soname_spec='${libname}${release}${major}$shared_ext'
24703  shlibpath_overrides_runpath=yes
24704  shlibpath_var=DYLD_LIBRARY_PATH
24705  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24706
24707  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24708  ;;
24709
24710dgux*)
24711  version_type=linux
24712  need_lib_prefix=no
24713  need_version=no
24714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24715  soname_spec='${libname}${release}${shared_ext}$major'
24716  shlibpath_var=LD_LIBRARY_PATH
24717  ;;
24718
24719freebsd1*)
24720  dynamic_linker=no
24721  ;;
24722
24723freebsd* | dragonfly*)
24724  # DragonFly does not have aout.  When/if they implement a new
24725  # versioning mechanism, adjust this.
24726  if test -x /usr/bin/objformat; then
24727    objformat=`/usr/bin/objformat`
24728  else
24729    case $host_os in
24730    freebsd[123]*) objformat=aout ;;
24731    *) objformat=elf ;;
24732    esac
24733  fi
24734  version_type=freebsd-$objformat
24735  case $version_type in
24736    freebsd-elf*)
24737      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24738      need_version=no
24739      need_lib_prefix=no
24740      ;;
24741    freebsd-*)
24742      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24743      need_version=yes
24744      ;;
24745  esac
24746  shlibpath_var=LD_LIBRARY_PATH
24747  case $host_os in
24748  freebsd2*)
24749    shlibpath_overrides_runpath=yes
24750    ;;
24751  freebsd3.[01]* | freebsdelf3.[01]*)
24752    shlibpath_overrides_runpath=yes
24753    hardcode_into_libs=yes
24754    ;;
24755  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24756  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24757    shlibpath_overrides_runpath=no
24758    hardcode_into_libs=yes
24759    ;;
24760  *) # from 4.6 on, and DragonFly
24761    shlibpath_overrides_runpath=yes
24762    hardcode_into_libs=yes
24763    ;;
24764  esac
24765  ;;
24766
24767gnu*)
24768  version_type=linux
24769  need_lib_prefix=no
24770  need_version=no
24771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24772  soname_spec='${libname}${release}${shared_ext}$major'
24773  shlibpath_var=LD_LIBRARY_PATH
24774  hardcode_into_libs=yes
24775  ;;
24776
24777hpux9* | hpux10* | hpux11*)
24778  # Give a soname corresponding to the major version so that dld.sl refuses to
24779  # link against other versions.
24780  version_type=sunos
24781  need_lib_prefix=no
24782  need_version=no
24783  case $host_cpu in
24784  ia64*)
24785    shrext_cmds='.so'
24786    hardcode_into_libs=yes
24787    dynamic_linker="$host_os dld.so"
24788    shlibpath_var=LD_LIBRARY_PATH
24789    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24791    soname_spec='${libname}${release}${shared_ext}$major'
24792    if test "X$HPUX_IA64_MODE" = X32; then
24793      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24794    else
24795      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24796    fi
24797    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24798    ;;
24799   hppa*64*)
24800     shrext_cmds='.sl'
24801     hardcode_into_libs=yes
24802     dynamic_linker="$host_os dld.sl"
24803     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24804     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24806     soname_spec='${libname}${release}${shared_ext}$major'
24807     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24808     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24809     ;;
24810   *)
24811    shrext_cmds='.sl'
24812    dynamic_linker="$host_os dld.sl"
24813    shlibpath_var=SHLIB_PATH
24814    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24815    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24816    soname_spec='${libname}${release}${shared_ext}$major'
24817    ;;
24818  esac
24819  # HP-UX runs *really* slowly unless shared libraries are mode 555.
24820  postinstall_cmds='chmod 555 $lib'
24821  ;;
24822
24823interix[3-9]*)
24824  version_type=linux
24825  need_lib_prefix=no
24826  need_version=no
24827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24828  soname_spec='${libname}${release}${shared_ext}$major'
24829  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24830  shlibpath_var=LD_LIBRARY_PATH
24831  shlibpath_overrides_runpath=no
24832  hardcode_into_libs=yes
24833  ;;
24834
24835irix5* | irix6* | nonstopux*)
24836  case $host_os in
24837    nonstopux*) version_type=nonstopux ;;
24838    *)
24839	if test "$lt_cv_prog_gnu_ld" = yes; then
24840		version_type=linux
24841	else
24842		version_type=irix
24843	fi ;;
24844  esac
24845  need_lib_prefix=no
24846  need_version=no
24847  soname_spec='${libname}${release}${shared_ext}$major'
24848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24849  case $host_os in
24850  irix5* | nonstopux*)
24851    libsuff= shlibsuff=
24852    ;;
24853  *)
24854    case $LD in # libtool.m4 will add one of these switches to LD
24855    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24856      libsuff= shlibsuff= libmagic=32-bit;;
24857    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24858      libsuff=32 shlibsuff=N32 libmagic=N32;;
24859    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24860      libsuff=64 shlibsuff=64 libmagic=64-bit;;
24861    *) libsuff= shlibsuff= libmagic=never-match;;
24862    esac
24863    ;;
24864  esac
24865  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24866  shlibpath_overrides_runpath=no
24867  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24868  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24869  hardcode_into_libs=yes
24870  ;;
24871
24872# No shared lib support for Linux oldld, aout, or coff.
24873linux*oldld* | linux*aout* | linux*coff*)
24874  dynamic_linker=no
24875  ;;
24876
24877# This must be Linux ELF.
24878linux* | k*bsd*-gnu)
24879  version_type=linux
24880  need_lib_prefix=no
24881  need_version=no
24882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24883  soname_spec='${libname}${release}${shared_ext}$major'
24884  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24885  shlibpath_var=LD_LIBRARY_PATH
24886  shlibpath_overrides_runpath=no
24887  # This implies no fast_install, which is unacceptable.
24888  # Some rework will be needed to allow for fast_install
24889  # before this can be enabled.
24890  hardcode_into_libs=yes
24891
24892  # Append ld.so.conf contents to the search path
24893  if test -f /etc/ld.so.conf; then
24894    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24895    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24896  fi
24897
24898  # We used to test for /lib/ld.so.1 and disable shared libraries on
24899  # powerpc, because MkLinux only supported shared libraries with the
24900  # GNU dynamic linker.  Since this was broken with cross compilers,
24901  # most powerpc-linux boxes support dynamic linking these days and
24902  # people can always --disable-shared, the test was removed, and we
24903  # assume the GNU/Linux dynamic linker is in use.
24904  dynamic_linker='GNU/Linux ld.so'
24905  ;;
24906
24907netbsdelf*-gnu)
24908  version_type=linux
24909  need_lib_prefix=no
24910  need_version=no
24911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24912  soname_spec='${libname}${release}${shared_ext}$major'
24913  shlibpath_var=LD_LIBRARY_PATH
24914  shlibpath_overrides_runpath=no
24915  hardcode_into_libs=yes
24916  dynamic_linker='NetBSD ld.elf_so'
24917  ;;
24918
24919netbsd*)
24920  version_type=sunos
24921  need_lib_prefix=no
24922  need_version=no
24923  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24924    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24925    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24926    dynamic_linker='NetBSD (a.out) ld.so'
24927  else
24928    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24929    soname_spec='${libname}${release}${shared_ext}$major'
24930    dynamic_linker='NetBSD ld.elf_so'
24931  fi
24932  shlibpath_var=LD_LIBRARY_PATH
24933  shlibpath_overrides_runpath=yes
24934  hardcode_into_libs=yes
24935  ;;
24936
24937newsos6)
24938  version_type=linux
24939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24940  shlibpath_var=LD_LIBRARY_PATH
24941  shlibpath_overrides_runpath=yes
24942  ;;
24943
24944nto-qnx*)
24945  version_type=linux
24946  need_lib_prefix=no
24947  need_version=no
24948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24949  soname_spec='${libname}${release}${shared_ext}$major'
24950  shlibpath_var=LD_LIBRARY_PATH
24951  shlibpath_overrides_runpath=yes
24952  ;;
24953
24954openbsd*)
24955  version_type=sunos
24956  sys_lib_dlsearch_path_spec="/usr/lib"
24957  need_lib_prefix=no
24958  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24959  case $host_os in
24960    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24961    *)                         need_version=no  ;;
24962  esac
24963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24964  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24965  shlibpath_var=LD_LIBRARY_PATH
24966  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24967    case $host_os in
24968      openbsd2.[89] | openbsd2.[89].*)
24969	shlibpath_overrides_runpath=no
24970	;;
24971      *)
24972	shlibpath_overrides_runpath=yes
24973	;;
24974      esac
24975  else
24976    shlibpath_overrides_runpath=yes
24977  fi
24978  ;;
24979
24980os2*)
24981  libname_spec='$name'
24982  shrext_cmds=".dll"
24983  need_lib_prefix=no
24984  library_names_spec='$libname${shared_ext} $libname.a'
24985  dynamic_linker='OS/2 ld.exe'
24986  shlibpath_var=LIBPATH
24987  ;;
24988
24989osf3* | osf4* | osf5*)
24990  version_type=osf
24991  need_lib_prefix=no
24992  need_version=no
24993  soname_spec='${libname}${release}${shared_ext}$major'
24994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24995  shlibpath_var=LD_LIBRARY_PATH
24996  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24997  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24998  ;;
24999
25000rdos*)
25001  dynamic_linker=no
25002  ;;
25003
25004solaris*)
25005  version_type=linux
25006  need_lib_prefix=no
25007  need_version=no
25008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25009  soname_spec='${libname}${release}${shared_ext}$major'
25010  shlibpath_var=LD_LIBRARY_PATH
25011  shlibpath_overrides_runpath=yes
25012  hardcode_into_libs=yes
25013  # ldd complains unless libraries are executable
25014  postinstall_cmds='chmod +x $lib'
25015  ;;
25016
25017sunos4*)
25018  version_type=sunos
25019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25020  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25021  shlibpath_var=LD_LIBRARY_PATH
25022  shlibpath_overrides_runpath=yes
25023  if test "$with_gnu_ld" = yes; then
25024    need_lib_prefix=no
25025  fi
25026  need_version=yes
25027  ;;
25028
25029sysv4 | sysv4.3*)
25030  version_type=linux
25031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25032  soname_spec='${libname}${release}${shared_ext}$major'
25033  shlibpath_var=LD_LIBRARY_PATH
25034  case $host_vendor in
25035    sni)
25036      shlibpath_overrides_runpath=no
25037      need_lib_prefix=no
25038      export_dynamic_flag_spec='${wl}-Blargedynsym'
25039      runpath_var=LD_RUN_PATH
25040      ;;
25041    siemens)
25042      need_lib_prefix=no
25043      ;;
25044    motorola)
25045      need_lib_prefix=no
25046      need_version=no
25047      shlibpath_overrides_runpath=no
25048      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25049      ;;
25050  esac
25051  ;;
25052
25053sysv4*MP*)
25054  if test -d /usr/nec ;then
25055    version_type=linux
25056    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25057    soname_spec='$libname${shared_ext}.$major'
25058    shlibpath_var=LD_LIBRARY_PATH
25059  fi
25060  ;;
25061
25062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25063  version_type=freebsd-elf
25064  need_lib_prefix=no
25065  need_version=no
25066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25067  soname_spec='${libname}${release}${shared_ext}$major'
25068  shlibpath_var=LD_LIBRARY_PATH
25069  hardcode_into_libs=yes
25070  if test "$with_gnu_ld" = yes; then
25071    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25072    shlibpath_overrides_runpath=no
25073  else
25074    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25075    shlibpath_overrides_runpath=yes
25076    case $host_os in
25077      sco3.2v5*)
25078        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25079	;;
25080    esac
25081  fi
25082  sys_lib_dlsearch_path_spec='/usr/lib'
25083  ;;
25084
25085uts4*)
25086  version_type=linux
25087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25088  soname_spec='${libname}${release}${shared_ext}$major'
25089  shlibpath_var=LD_LIBRARY_PATH
25090  ;;
25091
25092*)
25093  dynamic_linker=no
25094  ;;
25095esac
25096{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25097echo "${ECHO_T}$dynamic_linker" >&6; }
25098test "$dynamic_linker" = no && can_build_shared=no
25099
25100if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
25101  echo $ECHO_N "(cached) $ECHO_C" >&6
25102else
25103  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
25104fi
25105
25106sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
25107if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
25108  echo $ECHO_N "(cached) $ECHO_C" >&6
25109else
25110  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
25111fi
25112
25113sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25114
25115variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25116if test "$GCC" = yes; then
25117  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25118fi
25119
25120{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25121echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25122hardcode_action_GCJ=
25123if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25124   test -n "$runpath_var_GCJ" || \
25125   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25126
25127  # We can hardcode non-existant directories.
25128  if test "$hardcode_direct_GCJ" != no &&
25129     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25130     # have to relink, otherwise we might link with an installed library
25131     # when we should be linking with a yet-to-be-installed one
25132     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25133     test "$hardcode_minus_L_GCJ" != no; then
25134    # Linking always hardcodes the temporary library directory.
25135    hardcode_action_GCJ=relink
25136  else
25137    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25138    hardcode_action_GCJ=immediate
25139  fi
25140else
25141  # We cannot hardcode anything, or else we can only hardcode existing
25142  # directories.
25143  hardcode_action_GCJ=unsupported
25144fi
25145{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25146echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25147
25148if test "$hardcode_action_GCJ" = relink; then
25149  # Fast installation is not supported
25150  enable_fast_install=no
25151elif test "$shlibpath_overrides_runpath" = yes ||
25152     test "$enable_shared" = no; then
25153  # Fast installation is not necessary
25154  enable_fast_install=needless
25155fi
25156
25157
25158# The else clause should only fire when bootstrapping the
25159# libtool distribution, otherwise you forgot to ship ltmain.sh
25160# with your package, and you will get complaints that there are
25161# no rules to generate ltmain.sh.
25162if test -f "$ltmain"; then
25163  # See if we are running on zsh, and set the options which allow our commands through
25164  # without removal of \ escapes.
25165  if test -n "${ZSH_VERSION+set}" ; then
25166    setopt NO_GLOB_SUBST
25167  fi
25168  # Now quote all the things that may contain metacharacters while being
25169  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25170  # variables and quote the copies for generation of the libtool script.
25171  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25172    SED SHELL STRIP \
25173    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25174    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25175    deplibs_check_method reload_flag reload_cmds need_locks \
25176    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25177    lt_cv_sys_global_symbol_to_c_name_address \
25178    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25179    old_postinstall_cmds old_postuninstall_cmds \
25180    compiler_GCJ \
25181    CC_GCJ \
25182    LD_GCJ \
25183    lt_prog_compiler_wl_GCJ \
25184    lt_prog_compiler_pic_GCJ \
25185    lt_prog_compiler_static_GCJ \
25186    lt_prog_compiler_no_builtin_flag_GCJ \
25187    export_dynamic_flag_spec_GCJ \
25188    thread_safe_flag_spec_GCJ \
25189    whole_archive_flag_spec_GCJ \
25190    enable_shared_with_static_runtimes_GCJ \
25191    old_archive_cmds_GCJ \
25192    old_archive_from_new_cmds_GCJ \
25193    predep_objects_GCJ \
25194    postdep_objects_GCJ \
25195    predeps_GCJ \
25196    postdeps_GCJ \
25197    compiler_lib_search_path_GCJ \
25198    compiler_lib_search_dirs_GCJ \
25199    archive_cmds_GCJ \
25200    archive_expsym_cmds_GCJ \
25201    postinstall_cmds_GCJ \
25202    postuninstall_cmds_GCJ \
25203    old_archive_from_expsyms_cmds_GCJ \
25204    allow_undefined_flag_GCJ \
25205    no_undefined_flag_GCJ \
25206    export_symbols_cmds_GCJ \
25207    hardcode_libdir_flag_spec_GCJ \
25208    hardcode_libdir_flag_spec_ld_GCJ \
25209    hardcode_libdir_separator_GCJ \
25210    hardcode_automatic_GCJ \
25211    module_cmds_GCJ \
25212    module_expsym_cmds_GCJ \
25213    lt_cv_prog_compiler_c_o_GCJ \
25214    fix_srcfile_path_GCJ \
25215    exclude_expsyms_GCJ \
25216    include_expsyms_GCJ; do
25217
25218    case $var in
25219    old_archive_cmds_GCJ | \
25220    old_archive_from_new_cmds_GCJ | \
25221    archive_cmds_GCJ | \
25222    archive_expsym_cmds_GCJ | \
25223    module_cmds_GCJ | \
25224    module_expsym_cmds_GCJ | \
25225    old_archive_from_expsyms_cmds_GCJ | \
25226    export_symbols_cmds_GCJ | \
25227    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25228    postinstall_cmds | postuninstall_cmds | \
25229    old_postinstall_cmds | old_postuninstall_cmds | \
25230    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25231      # Double-quote double-evaled strings.
25232      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25233      ;;
25234    *)
25235      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25236      ;;
25237    esac
25238  done
25239
25240  case $lt_echo in
25241  *'\$0 --fallback-echo"')
25242    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25243    ;;
25244  esac
25245
25246cfgfile="$ofile"
25247
25248  cat <<__EOF__ >> "$cfgfile"
25249# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25250
25251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25252
25253# Shell to use when invoking shell scripts.
25254SHELL=$lt_SHELL
25255
25256# Whether or not to build shared libraries.
25257build_libtool_libs=$enable_shared
25258
25259# Whether or not to build static libraries.
25260build_old_libs=$enable_static
25261
25262# Whether or not to add -lc for building shared libraries.
25263build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25264
25265# Whether or not to disallow shared libs when runtime libs are static
25266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25267
25268# Whether or not to optimize for fast installation.
25269fast_install=$enable_fast_install
25270
25271# The host system.
25272host_alias=$host_alias
25273host=$host
25274host_os=$host_os
25275
25276# The build system.
25277build_alias=$build_alias
25278build=$build
25279build_os=$build_os
25280
25281# An echo program that does not interpret backslashes.
25282echo=$lt_echo
25283
25284# The archiver.
25285AR=$lt_AR
25286AR_FLAGS=$lt_AR_FLAGS
25287
25288# A C compiler.
25289LTCC=$lt_LTCC
25290
25291# LTCC compiler flags.
25292LTCFLAGS=$lt_LTCFLAGS
25293
25294# A language-specific compiler.
25295CC=$lt_compiler_GCJ
25296
25297# Is the compiler the GNU C compiler?
25298with_gcc=$GCC_GCJ
25299
25300# An ERE matcher.
25301EGREP=$lt_EGREP
25302
25303# The linker used to build libraries.
25304LD=$lt_LD_GCJ
25305
25306# Whether we need hard or soft links.
25307LN_S=$lt_LN_S
25308
25309# A BSD-compatible nm program.
25310NM=$lt_NM
25311
25312# A symbol stripping program
25313STRIP=$lt_STRIP
25314
25315# Used to examine libraries when file_magic_cmd begins "file"
25316MAGIC_CMD=$MAGIC_CMD
25317
25318# Used on cygwin: DLL creation program.
25319DLLTOOL="$DLLTOOL"
25320
25321# Used on cygwin: object dumper.
25322OBJDUMP="$OBJDUMP"
25323
25324# Used on cygwin: assembler.
25325AS="$AS"
25326
25327# The name of the directory that contains temporary libtool files.
25328objdir=$objdir
25329
25330# How to create reloadable object files.
25331reload_flag=$lt_reload_flag
25332reload_cmds=$lt_reload_cmds
25333
25334# How to pass a linker flag through the compiler.
25335wl=$lt_lt_prog_compiler_wl_GCJ
25336
25337# Object file suffix (normally "o").
25338objext="$ac_objext"
25339
25340# Old archive suffix (normally "a").
25341libext="$libext"
25342
25343# Shared library suffix (normally ".so").
25344shrext_cmds='$shrext_cmds'
25345
25346# Executable file suffix (normally "").
25347exeext="$exeext"
25348
25349# Additional compiler flags for building library objects.
25350pic_flag=$lt_lt_prog_compiler_pic_GCJ
25351pic_mode=$pic_mode
25352
25353# What is the maximum length of a command?
25354max_cmd_len=$lt_cv_sys_max_cmd_len
25355
25356# Does compiler simultaneously support -c and -o options?
25357compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25358
25359# Must we lock files when doing compilation?
25360need_locks=$lt_need_locks
25361
25362# Do we need the lib prefix for modules?
25363need_lib_prefix=$need_lib_prefix
25364
25365# Do we need a version for libraries?
25366need_version=$need_version
25367
25368# Whether dlopen is supported.
25369dlopen_support=$enable_dlopen
25370
25371# Whether dlopen of programs is supported.
25372dlopen_self=$enable_dlopen_self
25373
25374# Whether dlopen of statically linked programs is supported.
25375dlopen_self_static=$enable_dlopen_self_static
25376
25377# Compiler flag to prevent dynamic linking.
25378link_static_flag=$lt_lt_prog_compiler_static_GCJ
25379
25380# Compiler flag to turn off builtin functions.
25381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25382
25383# Compiler flag to allow reflexive dlopens.
25384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25385
25386# Compiler flag to generate shared objects directly from archives.
25387whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25388
25389# Compiler flag to generate thread-safe objects.
25390thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25391
25392# Library versioning type.
25393version_type=$version_type
25394
25395# Format of library name prefix.
25396libname_spec=$lt_libname_spec
25397
25398# List of archive names.  First name is the real one, the rest are links.
25399# The last name is the one that the linker finds with -lNAME.
25400library_names_spec=$lt_library_names_spec
25401
25402# The coded name of the library, if different from the real name.
25403soname_spec=$lt_soname_spec
25404
25405# Commands used to build and install an old-style archive.
25406RANLIB=$lt_RANLIB
25407old_archive_cmds=$lt_old_archive_cmds_GCJ
25408old_postinstall_cmds=$lt_old_postinstall_cmds
25409old_postuninstall_cmds=$lt_old_postuninstall_cmds
25410
25411# Create an old-style archive from a shared archive.
25412old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25413
25414# Create a temporary old-style archive to link instead of a shared archive.
25415old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25416
25417# Commands used to build and install a shared archive.
25418archive_cmds=$lt_archive_cmds_GCJ
25419archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25420postinstall_cmds=$lt_postinstall_cmds
25421postuninstall_cmds=$lt_postuninstall_cmds
25422
25423# Commands used to build a loadable module (assumed same as above if empty)
25424module_cmds=$lt_module_cmds_GCJ
25425module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25426
25427# Commands to strip libraries.
25428old_striplib=$lt_old_striplib
25429striplib=$lt_striplib
25430
25431# Dependencies to place before the objects being linked to create a
25432# shared library.
25433predep_objects=$lt_predep_objects_GCJ
25434
25435# Dependencies to place after the objects being linked to create a
25436# shared library.
25437postdep_objects=$lt_postdep_objects_GCJ
25438
25439# Dependencies to place before the objects being linked to create a
25440# shared library.
25441predeps=$lt_predeps_GCJ
25442
25443# Dependencies to place after the objects being linked to create a
25444# shared library.
25445postdeps=$lt_postdeps_GCJ
25446
25447# The directories searched by this compiler when creating a shared
25448# library
25449compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
25450
25451# The library search path used internally by the compiler when linking
25452# a shared library.
25453compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25454
25455# Method to check whether dependent libraries are shared objects.
25456deplibs_check_method=$lt_deplibs_check_method
25457
25458# Command to use when deplibs_check_method == file_magic.
25459file_magic_cmd=$lt_file_magic_cmd
25460
25461# Flag that allows shared libraries with undefined symbols to be built.
25462allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25463
25464# Flag that forces no undefined symbols.
25465no_undefined_flag=$lt_no_undefined_flag_GCJ
25466
25467# Commands used to finish a libtool library installation in a directory.
25468finish_cmds=$lt_finish_cmds
25469
25470# Same as above, but a single script fragment to be evaled but not shown.
25471finish_eval=$lt_finish_eval
25472
25473# Take the output of nm and produce a listing of raw symbols and C names.
25474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25475
25476# Transform the output of nm in a proper C declaration
25477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25478
25479# Transform the output of nm in a C name address pair
25480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25481
25482# This is the shared library runtime path variable.
25483runpath_var=$runpath_var
25484
25485# This is the shared library path variable.
25486shlibpath_var=$shlibpath_var
25487
25488# Is shlibpath searched before the hard-coded library search path?
25489shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25490
25491# How to hardcode a shared library path into an executable.
25492hardcode_action=$hardcode_action_GCJ
25493
25494# Whether we should hardcode library paths into libraries.
25495hardcode_into_libs=$hardcode_into_libs
25496
25497# Flag to hardcode \$libdir into a binary during linking.
25498# This must work even if \$libdir does not exist.
25499hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25500
25501# If ld is used when linking, flag to hardcode \$libdir into
25502# a binary during linking. This must work even if \$libdir does
25503# not exist.
25504hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25505
25506# Whether we need a single -rpath flag with a separated argument.
25507hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25508
25509# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25510# resulting binary.
25511hardcode_direct=$hardcode_direct_GCJ
25512
25513# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25514# resulting binary.
25515hardcode_minus_L=$hardcode_minus_L_GCJ
25516
25517# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25518# the resulting binary.
25519hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25520
25521# Set to yes if building a shared library automatically hardcodes DIR into the library
25522# and all subsequent libraries and executables linked against it.
25523hardcode_automatic=$hardcode_automatic_GCJ
25524
25525# Variables whose values should be saved in libtool wrapper scripts and
25526# restored at relink time.
25527variables_saved_for_relink="$variables_saved_for_relink"
25528
25529# Whether libtool must link a program against all its dependency libraries.
25530link_all_deplibs=$link_all_deplibs_GCJ
25531
25532# Compile-time system search path for libraries
25533sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25534
25535# Run-time system search path for libraries
25536sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25537
25538# Fix the shell variable \$srcfile for the compiler.
25539fix_srcfile_path=$lt_fix_srcfile_path
25540
25541# Set to yes if exported symbols are required.
25542always_export_symbols=$always_export_symbols_GCJ
25543
25544# The commands to list exported symbols.
25545export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25546
25547# The commands to extract the exported symbol list from a shared archive.
25548extract_expsyms_cmds=$lt_extract_expsyms_cmds
25549
25550# Symbols that should not be listed in the preloaded symbols.
25551exclude_expsyms=$lt_exclude_expsyms_GCJ
25552
25553# Symbols that must always be exported.
25554include_expsyms=$lt_include_expsyms_GCJ
25555
25556# ### END LIBTOOL TAG CONFIG: $tagname
25557
25558__EOF__
25559
25560
25561else
25562  # If there is no Makefile yet, we rely on a make rule to execute
25563  # `config.status --recheck' to rerun these tests and create the
25564  # libtool script then.
25565  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25566  if test -f "$ltmain_in"; then
25567    test -f Makefile && make "$ltmain"
25568  fi
25569fi
25570
25571
25572ac_ext=c
25573ac_cpp='$CPP $CPPFLAGS'
25574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25576ac_compiler_gnu=$ac_cv_c_compiler_gnu
25577
25578CC="$lt_save_CC"
25579
25580	else
25581	  tagname=""
25582	fi
25583	;;
25584
25585      RC)
25586
25587
25588# Source file extension for RC test sources.
25589ac_ext=rc
25590
25591# Object file extension for compiled RC test sources.
25592objext=o
25593objext_RC=$objext
25594
25595# Code to be used in simple compile tests
25596lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
25597
25598# Code to be used in simple link tests
25599lt_simple_link_test_code="$lt_simple_compile_test_code"
25600
25601# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25602
25603# If no C compiler was specified, use CC.
25604LTCC=${LTCC-"$CC"}
25605
25606# If no C compiler flags were specified, use CFLAGS.
25607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25608
25609# Allow CC to be a program name with arguments.
25610compiler=$CC
25611
25612
25613# save warnings/boilerplate of simple test code
25614ac_outfile=conftest.$ac_objext
25615echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25616eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25617_lt_compiler_boilerplate=`cat conftest.err`
25618$rm conftest*
25619
25620ac_outfile=conftest.$ac_objext
25621echo "$lt_simple_link_test_code" >conftest.$ac_ext
25622eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25623_lt_linker_boilerplate=`cat conftest.err`
25624$rm -r conftest*
25625
25626
25627# Allow CC to be a program name with arguments.
25628lt_save_CC="$CC"
25629CC=${RC-"windres"}
25630compiler=$CC
25631compiler_RC=$CC
25632for cc_temp in $compiler""; do
25633  case $cc_temp in
25634    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25635    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25636    \-*) ;;
25637    *) break;;
25638  esac
25639done
25640cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25641
25642lt_cv_prog_compiler_c_o_RC=yes
25643
25644# The else clause should only fire when bootstrapping the
25645# libtool distribution, otherwise you forgot to ship ltmain.sh
25646# with your package, and you will get complaints that there are
25647# no rules to generate ltmain.sh.
25648if test -f "$ltmain"; then
25649  # See if we are running on zsh, and set the options which allow our commands through
25650  # without removal of \ escapes.
25651  if test -n "${ZSH_VERSION+set}" ; then
25652    setopt NO_GLOB_SUBST
25653  fi
25654  # Now quote all the things that may contain metacharacters while being
25655  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25656  # variables and quote the copies for generation of the libtool script.
25657  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25658    SED SHELL STRIP \
25659    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25660    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25661    deplibs_check_method reload_flag reload_cmds need_locks \
25662    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25663    lt_cv_sys_global_symbol_to_c_name_address \
25664    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25665    old_postinstall_cmds old_postuninstall_cmds \
25666    compiler_RC \
25667    CC_RC \
25668    LD_RC \
25669    lt_prog_compiler_wl_RC \
25670    lt_prog_compiler_pic_RC \
25671    lt_prog_compiler_static_RC \
25672    lt_prog_compiler_no_builtin_flag_RC \
25673    export_dynamic_flag_spec_RC \
25674    thread_safe_flag_spec_RC \
25675    whole_archive_flag_spec_RC \
25676    enable_shared_with_static_runtimes_RC \
25677    old_archive_cmds_RC \
25678    old_archive_from_new_cmds_RC \
25679    predep_objects_RC \
25680    postdep_objects_RC \
25681    predeps_RC \
25682    postdeps_RC \
25683    compiler_lib_search_path_RC \
25684    compiler_lib_search_dirs_RC \
25685    archive_cmds_RC \
25686    archive_expsym_cmds_RC \
25687    postinstall_cmds_RC \
25688    postuninstall_cmds_RC \
25689    old_archive_from_expsyms_cmds_RC \
25690    allow_undefined_flag_RC \
25691    no_undefined_flag_RC \
25692    export_symbols_cmds_RC \
25693    hardcode_libdir_flag_spec_RC \
25694    hardcode_libdir_flag_spec_ld_RC \
25695    hardcode_libdir_separator_RC \
25696    hardcode_automatic_RC \
25697    module_cmds_RC \
25698    module_expsym_cmds_RC \
25699    lt_cv_prog_compiler_c_o_RC \
25700    fix_srcfile_path_RC \
25701    exclude_expsyms_RC \
25702    include_expsyms_RC; do
25703
25704    case $var in
25705    old_archive_cmds_RC | \
25706    old_archive_from_new_cmds_RC | \
25707    archive_cmds_RC | \
25708    archive_expsym_cmds_RC | \
25709    module_cmds_RC | \
25710    module_expsym_cmds_RC | \
25711    old_archive_from_expsyms_cmds_RC | \
25712    export_symbols_cmds_RC | \
25713    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25714    postinstall_cmds | postuninstall_cmds | \
25715    old_postinstall_cmds | old_postuninstall_cmds | \
25716    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25717      # Double-quote double-evaled strings.
25718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25719      ;;
25720    *)
25721      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25722      ;;
25723    esac
25724  done
25725
25726  case $lt_echo in
25727  *'\$0 --fallback-echo"')
25728    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25729    ;;
25730  esac
25731
25732cfgfile="$ofile"
25733
25734  cat <<__EOF__ >> "$cfgfile"
25735# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25736
25737# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25738
25739# Shell to use when invoking shell scripts.
25740SHELL=$lt_SHELL
25741
25742# Whether or not to build shared libraries.
25743build_libtool_libs=$enable_shared
25744
25745# Whether or not to build static libraries.
25746build_old_libs=$enable_static
25747
25748# Whether or not to add -lc for building shared libraries.
25749build_libtool_need_lc=$archive_cmds_need_lc_RC
25750
25751# Whether or not to disallow shared libs when runtime libs are static
25752allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25753
25754# Whether or not to optimize for fast installation.
25755fast_install=$enable_fast_install
25756
25757# The host system.
25758host_alias=$host_alias
25759host=$host
25760host_os=$host_os
25761
25762# The build system.
25763build_alias=$build_alias
25764build=$build
25765build_os=$build_os
25766
25767# An echo program that does not interpret backslashes.
25768echo=$lt_echo
25769
25770# The archiver.
25771AR=$lt_AR
25772AR_FLAGS=$lt_AR_FLAGS
25773
25774# A C compiler.
25775LTCC=$lt_LTCC
25776
25777# LTCC compiler flags.
25778LTCFLAGS=$lt_LTCFLAGS
25779
25780# A language-specific compiler.
25781CC=$lt_compiler_RC
25782
25783# Is the compiler the GNU C compiler?
25784with_gcc=$GCC_RC
25785
25786# An ERE matcher.
25787EGREP=$lt_EGREP
25788
25789# The linker used to build libraries.
25790LD=$lt_LD_RC
25791
25792# Whether we need hard or soft links.
25793LN_S=$lt_LN_S
25794
25795# A BSD-compatible nm program.
25796NM=$lt_NM
25797
25798# A symbol stripping program
25799STRIP=$lt_STRIP
25800
25801# Used to examine libraries when file_magic_cmd begins "file"
25802MAGIC_CMD=$MAGIC_CMD
25803
25804# Used on cygwin: DLL creation program.
25805DLLTOOL="$DLLTOOL"
25806
25807# Used on cygwin: object dumper.
25808OBJDUMP="$OBJDUMP"
25809
25810# Used on cygwin: assembler.
25811AS="$AS"
25812
25813# The name of the directory that contains temporary libtool files.
25814objdir=$objdir
25815
25816# How to create reloadable object files.
25817reload_flag=$lt_reload_flag
25818reload_cmds=$lt_reload_cmds
25819
25820# How to pass a linker flag through the compiler.
25821wl=$lt_lt_prog_compiler_wl_RC
25822
25823# Object file suffix (normally "o").
25824objext="$ac_objext"
25825
25826# Old archive suffix (normally "a").
25827libext="$libext"
25828
25829# Shared library suffix (normally ".so").
25830shrext_cmds='$shrext_cmds'
25831
25832# Executable file suffix (normally "").
25833exeext="$exeext"
25834
25835# Additional compiler flags for building library objects.
25836pic_flag=$lt_lt_prog_compiler_pic_RC
25837pic_mode=$pic_mode
25838
25839# What is the maximum length of a command?
25840max_cmd_len=$lt_cv_sys_max_cmd_len
25841
25842# Does compiler simultaneously support -c and -o options?
25843compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25844
25845# Must we lock files when doing compilation?
25846need_locks=$lt_need_locks
25847
25848# Do we need the lib prefix for modules?
25849need_lib_prefix=$need_lib_prefix
25850
25851# Do we need a version for libraries?
25852need_version=$need_version
25853
25854# Whether dlopen is supported.
25855dlopen_support=$enable_dlopen
25856
25857# Whether dlopen of programs is supported.
25858dlopen_self=$enable_dlopen_self
25859
25860# Whether dlopen of statically linked programs is supported.
25861dlopen_self_static=$enable_dlopen_self_static
25862
25863# Compiler flag to prevent dynamic linking.
25864link_static_flag=$lt_lt_prog_compiler_static_RC
25865
25866# Compiler flag to turn off builtin functions.
25867no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25868
25869# Compiler flag to allow reflexive dlopens.
25870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25871
25872# Compiler flag to generate shared objects directly from archives.
25873whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25874
25875# Compiler flag to generate thread-safe objects.
25876thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25877
25878# Library versioning type.
25879version_type=$version_type
25880
25881# Format of library name prefix.
25882libname_spec=$lt_libname_spec
25883
25884# List of archive names.  First name is the real one, the rest are links.
25885# The last name is the one that the linker finds with -lNAME.
25886library_names_spec=$lt_library_names_spec
25887
25888# The coded name of the library, if different from the real name.
25889soname_spec=$lt_soname_spec
25890
25891# Commands used to build and install an old-style archive.
25892RANLIB=$lt_RANLIB
25893old_archive_cmds=$lt_old_archive_cmds_RC
25894old_postinstall_cmds=$lt_old_postinstall_cmds
25895old_postuninstall_cmds=$lt_old_postuninstall_cmds
25896
25897# Create an old-style archive from a shared archive.
25898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25899
25900# Create a temporary old-style archive to link instead of a shared archive.
25901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25902
25903# Commands used to build and install a shared archive.
25904archive_cmds=$lt_archive_cmds_RC
25905archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25906postinstall_cmds=$lt_postinstall_cmds
25907postuninstall_cmds=$lt_postuninstall_cmds
25908
25909# Commands used to build a loadable module (assumed same as above if empty)
25910module_cmds=$lt_module_cmds_RC
25911module_expsym_cmds=$lt_module_expsym_cmds_RC
25912
25913# Commands to strip libraries.
25914old_striplib=$lt_old_striplib
25915striplib=$lt_striplib
25916
25917# Dependencies to place before the objects being linked to create a
25918# shared library.
25919predep_objects=$lt_predep_objects_RC
25920
25921# Dependencies to place after the objects being linked to create a
25922# shared library.
25923postdep_objects=$lt_postdep_objects_RC
25924
25925# Dependencies to place before the objects being linked to create a
25926# shared library.
25927predeps=$lt_predeps_RC
25928
25929# Dependencies to place after the objects being linked to create a
25930# shared library.
25931postdeps=$lt_postdeps_RC
25932
25933# The directories searched by this compiler when creating a shared
25934# library
25935compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
25936
25937# The library search path used internally by the compiler when linking
25938# a shared library.
25939compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25940
25941# Method to check whether dependent libraries are shared objects.
25942deplibs_check_method=$lt_deplibs_check_method
25943
25944# Command to use when deplibs_check_method == file_magic.
25945file_magic_cmd=$lt_file_magic_cmd
25946
25947# Flag that allows shared libraries with undefined symbols to be built.
25948allow_undefined_flag=$lt_allow_undefined_flag_RC
25949
25950# Flag that forces no undefined symbols.
25951no_undefined_flag=$lt_no_undefined_flag_RC
25952
25953# Commands used to finish a libtool library installation in a directory.
25954finish_cmds=$lt_finish_cmds
25955
25956# Same as above, but a single script fragment to be evaled but not shown.
25957finish_eval=$lt_finish_eval
25958
25959# Take the output of nm and produce a listing of raw symbols and C names.
25960global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25961
25962# Transform the output of nm in a proper C declaration
25963global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25964
25965# Transform the output of nm in a C name address pair
25966global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25967
25968# This is the shared library runtime path variable.
25969runpath_var=$runpath_var
25970
25971# This is the shared library path variable.
25972shlibpath_var=$shlibpath_var
25973
25974# Is shlibpath searched before the hard-coded library search path?
25975shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25976
25977# How to hardcode a shared library path into an executable.
25978hardcode_action=$hardcode_action_RC
25979
25980# Whether we should hardcode library paths into libraries.
25981hardcode_into_libs=$hardcode_into_libs
25982
25983# Flag to hardcode \$libdir into a binary during linking.
25984# This must work even if \$libdir does not exist.
25985hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25986
25987# If ld is used when linking, flag to hardcode \$libdir into
25988# a binary during linking. This must work even if \$libdir does
25989# not exist.
25990hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25991
25992# Whether we need a single -rpath flag with a separated argument.
25993hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25994
25995# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25996# resulting binary.
25997hardcode_direct=$hardcode_direct_RC
25998
25999# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26000# resulting binary.
26001hardcode_minus_L=$hardcode_minus_L_RC
26002
26003# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26004# the resulting binary.
26005hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26006
26007# Set to yes if building a shared library automatically hardcodes DIR into the library
26008# and all subsequent libraries and executables linked against it.
26009hardcode_automatic=$hardcode_automatic_RC
26010
26011# Variables whose values should be saved in libtool wrapper scripts and
26012# restored at relink time.
26013variables_saved_for_relink="$variables_saved_for_relink"
26014
26015# Whether libtool must link a program against all its dependency libraries.
26016link_all_deplibs=$link_all_deplibs_RC
26017
26018# Compile-time system search path for libraries
26019sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26020
26021# Run-time system search path for libraries
26022sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26023
26024# Fix the shell variable \$srcfile for the compiler.
26025fix_srcfile_path=$lt_fix_srcfile_path
26026
26027# Set to yes if exported symbols are required.
26028always_export_symbols=$always_export_symbols_RC
26029
26030# The commands to list exported symbols.
26031export_symbols_cmds=$lt_export_symbols_cmds_RC
26032
26033# The commands to extract the exported symbol list from a shared archive.
26034extract_expsyms_cmds=$lt_extract_expsyms_cmds
26035
26036# Symbols that should not be listed in the preloaded symbols.
26037exclude_expsyms=$lt_exclude_expsyms_RC
26038
26039# Symbols that must always be exported.
26040include_expsyms=$lt_include_expsyms_RC
26041
26042# ### END LIBTOOL TAG CONFIG: $tagname
26043
26044__EOF__
26045
26046
26047else
26048  # If there is no Makefile yet, we rely on a make rule to execute
26049  # `config.status --recheck' to rerun these tests and create the
26050  # libtool script then.
26051  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26052  if test -f "$ltmain_in"; then
26053    test -f Makefile && make "$ltmain"
26054  fi
26055fi
26056
26057
26058ac_ext=c
26059ac_cpp='$CPP $CPPFLAGS'
26060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26062ac_compiler_gnu=$ac_cv_c_compiler_gnu
26063
26064CC="$lt_save_CC"
26065
26066	;;
26067
26068      *)
26069	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26070echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26071   { (exit 1); exit 1; }; }
26072	;;
26073      esac
26074
26075      # Append the new tag name to the list of available tags.
26076      if test -n "$tagname" ; then
26077      available_tags="$available_tags $tagname"
26078    fi
26079    fi
26080  done
26081  IFS="$lt_save_ifs"
26082
26083  # Now substitute the updated list of available tags.
26084  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26085    mv "${ofile}T" "$ofile"
26086    chmod +x "$ofile"
26087  else
26088    rm -f "${ofile}T"
26089    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26090echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26091   { (exit 1); exit 1; }; }
26092  fi
26093fi
26094
26095
26096
26097# This can be used to rebuild libtool when needed
26098LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26099
26100# Always use our own libtool.
26101LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26102
26103# Prevent multiple expansion
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129ac_header_dirent=no
26130for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26131  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26132{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26133echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26135  echo $ECHO_N "(cached) $ECHO_C" >&6
26136else
26137  cat >conftest.$ac_ext <<_ACEOF
26138/* confdefs.h.  */
26139_ACEOF
26140cat confdefs.h >>conftest.$ac_ext
26141cat >>conftest.$ac_ext <<_ACEOF
26142/* end confdefs.h.  */
26143#include <sys/types.h>
26144#include <$ac_hdr>
26145
26146int
26147main ()
26148{
26149if ((DIR *) 0)
26150return 0;
26151  ;
26152  return 0;
26153}
26154_ACEOF
26155rm -f conftest.$ac_objext
26156if { (ac_try="$ac_compile"
26157case "(($ac_try" in
26158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159  *) ac_try_echo=$ac_try;;
26160esac
26161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162  (eval "$ac_compile") 2>conftest.er1
26163  ac_status=$?
26164  grep -v '^ *+' conftest.er1 >conftest.err
26165  rm -f conftest.er1
26166  cat conftest.err >&5
26167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168  (exit $ac_status); } && {
26169	 test -z "$ac_c_werror_flag" ||
26170	 test ! -s conftest.err
26171       } && test -s conftest.$ac_objext; then
26172  eval "$as_ac_Header=yes"
26173else
26174  echo "$as_me: failed program was:" >&5
26175sed 's/^/| /' conftest.$ac_ext >&5
26176
26177	eval "$as_ac_Header=no"
26178fi
26179
26180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181fi
26182ac_res=`eval echo '${'$as_ac_Header'}'`
26183	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26184echo "${ECHO_T}$ac_res" >&6; }
26185if test `eval echo '${'$as_ac_Header'}'` = yes; then
26186  cat >>confdefs.h <<_ACEOF
26187#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26188_ACEOF
26189
26190ac_header_dirent=$ac_hdr; break
26191fi
26192
26193done
26194# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26195if test $ac_header_dirent = dirent.h; then
26196  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26197echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26198if test "${ac_cv_search_opendir+set}" = set; then
26199  echo $ECHO_N "(cached) $ECHO_C" >&6
26200else
26201  ac_func_search_save_LIBS=$LIBS
26202cat >conftest.$ac_ext <<_ACEOF
26203/* confdefs.h.  */
26204_ACEOF
26205cat confdefs.h >>conftest.$ac_ext
26206cat >>conftest.$ac_ext <<_ACEOF
26207/* end confdefs.h.  */
26208
26209/* Override any GCC internal prototype to avoid an error.
26210   Use char because int might match the return type of a GCC
26211   builtin and then its argument prototype would still apply.  */
26212#ifdef __cplusplus
26213extern "C"
26214#endif
26215char opendir ();
26216int
26217main ()
26218{
26219return opendir ();
26220  ;
26221  return 0;
26222}
26223_ACEOF
26224for ac_lib in '' dir; do
26225  if test -z "$ac_lib"; then
26226    ac_res="none required"
26227  else
26228    ac_res=-l$ac_lib
26229    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26230  fi
26231  rm -f conftest.$ac_objext conftest$ac_exeext
26232if { (ac_try="$ac_link"
26233case "(($ac_try" in
26234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235  *) ac_try_echo=$ac_try;;
26236esac
26237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238  (eval "$ac_link") 2>conftest.er1
26239  ac_status=$?
26240  grep -v '^ *+' conftest.er1 >conftest.err
26241  rm -f conftest.er1
26242  cat conftest.err >&5
26243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244  (exit $ac_status); } && {
26245	 test -z "$ac_c_werror_flag" ||
26246	 test ! -s conftest.err
26247       } && test -s conftest$ac_exeext &&
26248       $as_test_x conftest$ac_exeext; then
26249  ac_cv_search_opendir=$ac_res
26250else
26251  echo "$as_me: failed program was:" >&5
26252sed 's/^/| /' conftest.$ac_ext >&5
26253
26254
26255fi
26256
26257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26258      conftest$ac_exeext
26259  if test "${ac_cv_search_opendir+set}" = set; then
26260  break
26261fi
26262done
26263if test "${ac_cv_search_opendir+set}" = set; then
26264  :
26265else
26266  ac_cv_search_opendir=no
26267fi
26268rm conftest.$ac_ext
26269LIBS=$ac_func_search_save_LIBS
26270fi
26271{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26272echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26273ac_res=$ac_cv_search_opendir
26274if test "$ac_res" != no; then
26275  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26276
26277fi
26278
26279else
26280  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26281echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26282if test "${ac_cv_search_opendir+set}" = set; then
26283  echo $ECHO_N "(cached) $ECHO_C" >&6
26284else
26285  ac_func_search_save_LIBS=$LIBS
26286cat >conftest.$ac_ext <<_ACEOF
26287/* confdefs.h.  */
26288_ACEOF
26289cat confdefs.h >>conftest.$ac_ext
26290cat >>conftest.$ac_ext <<_ACEOF
26291/* end confdefs.h.  */
26292
26293/* Override any GCC internal prototype to avoid an error.
26294   Use char because int might match the return type of a GCC
26295   builtin and then its argument prototype would still apply.  */
26296#ifdef __cplusplus
26297extern "C"
26298#endif
26299char opendir ();
26300int
26301main ()
26302{
26303return opendir ();
26304  ;
26305  return 0;
26306}
26307_ACEOF
26308for ac_lib in '' x; do
26309  if test -z "$ac_lib"; then
26310    ac_res="none required"
26311  else
26312    ac_res=-l$ac_lib
26313    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26314  fi
26315  rm -f conftest.$ac_objext conftest$ac_exeext
26316if { (ac_try="$ac_link"
26317case "(($ac_try" in
26318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319  *) ac_try_echo=$ac_try;;
26320esac
26321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322  (eval "$ac_link") 2>conftest.er1
26323  ac_status=$?
26324  grep -v '^ *+' conftest.er1 >conftest.err
26325  rm -f conftest.er1
26326  cat conftest.err >&5
26327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328  (exit $ac_status); } && {
26329	 test -z "$ac_c_werror_flag" ||
26330	 test ! -s conftest.err
26331       } && test -s conftest$ac_exeext &&
26332       $as_test_x conftest$ac_exeext; then
26333  ac_cv_search_opendir=$ac_res
26334else
26335  echo "$as_me: failed program was:" >&5
26336sed 's/^/| /' conftest.$ac_ext >&5
26337
26338
26339fi
26340
26341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26342      conftest$ac_exeext
26343  if test "${ac_cv_search_opendir+set}" = set; then
26344  break
26345fi
26346done
26347if test "${ac_cv_search_opendir+set}" = set; then
26348  :
26349else
26350  ac_cv_search_opendir=no
26351fi
26352rm conftest.$ac_ext
26353LIBS=$ac_func_search_save_LIBS
26354fi
26355{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26356echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26357ac_res=$ac_cv_search_opendir
26358if test "$ac_res" != no; then
26359  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26360
26361fi
26362
26363fi
26364
26365# Check whether --enable-ltdl-install was given.
26366if test "${enable_ltdl_install+set}" = set; then
26367  enableval=$enable_ltdl_install;
26368fi
26369
26370
26371 if test x"${enable_ltdl_install-no}" != xno; then
26372  INSTALL_LTDL_TRUE=
26373  INSTALL_LTDL_FALSE='#'
26374else
26375  INSTALL_LTDL_TRUE='#'
26376  INSTALL_LTDL_FALSE=
26377fi
26378
26379 if test x"${enable_ltdl_convenience-no}" != xno; then
26380  CONVENIENCE_LTDL_TRUE=
26381  CONVENIENCE_LTDL_FALSE='#'
26382else
26383  CONVENIENCE_LTDL_TRUE='#'
26384  CONVENIENCE_LTDL_FALSE=
26385fi
26386
26387
26388
26389{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
26390echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
26391if test "${libltdl_cv_shlibext+set}" = set; then
26392  echo $ECHO_N "(cached) $ECHO_C" >&6
26393else
26394
26395module=yes
26396eval libltdl_cv_shlibext=$shrext_cmds
26397
26398fi
26399{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
26400echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
26401if test -n "$libltdl_cv_shlibext"; then
26402
26403cat >>confdefs.h <<_ACEOF
26404#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
26405_ACEOF
26406
26407fi
26408
26409
26410{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
26411echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
26412if test "${libltdl_cv_shlibpath_var+set}" = set; then
26413  echo $ECHO_N "(cached) $ECHO_C" >&6
26414else
26415  libltdl_cv_shlibpath_var="$shlibpath_var"
26416fi
26417{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
26418echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
26419if test -n "$libltdl_cv_shlibpath_var"; then
26420
26421cat >>confdefs.h <<_ACEOF
26422#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
26423_ACEOF
26424
26425fi
26426
26427
26428{ echo "$as_me:$LINENO: checking for the default library search path" >&5
26429echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
26430if test "${libltdl_cv_sys_search_path+set}" = set; then
26431  echo $ECHO_N "(cached) $ECHO_C" >&6
26432else
26433  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
26434fi
26435{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
26436echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
26437if test -n "$libltdl_cv_sys_search_path"; then
26438  sys_search_path=
26439  for dir in $libltdl_cv_sys_search_path; do
26440    if test -z "$sys_search_path"; then
26441      sys_search_path="$dir"
26442    else
26443      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
26444    fi
26445  done
26446
26447cat >>confdefs.h <<_ACEOF
26448#define LTDL_SYSSEARCHPATH "$sys_search_path"
26449_ACEOF
26450
26451fi
26452
26453{ echo "$as_me:$LINENO: checking for objdir" >&5
26454echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
26455if test "${libltdl_cv_objdir+set}" = set; then
26456  echo $ECHO_N "(cached) $ECHO_C" >&6
26457else
26458  libltdl_cv_objdir="$objdir"
26459  if test -n "$objdir"; then
26460    :
26461  else
26462    rm -f .libs 2>/dev/null
26463    mkdir .libs 2>/dev/null
26464    if test -d .libs; then
26465      libltdl_cv_objdir=.libs
26466    else
26467      # MS-DOS does not allow filenames that begin with a dot.
26468      libltdl_cv_objdir=_libs
26469    fi
26470  rmdir .libs 2>/dev/null
26471  fi
26472
26473fi
26474{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
26475echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
26476
26477cat >>confdefs.h <<_ACEOF
26478#define LTDL_OBJDIR "$libltdl_cv_objdir/"
26479_ACEOF
26480
26481
26482
26483{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
26484echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
26485if test "${libltdl_cv_preloaded_symbols+set}" = set; then
26486  echo $ECHO_N "(cached) $ECHO_C" >&6
26487else
26488  if test -n "$lt_cv_sys_global_symbol_pipe"; then
26489    libltdl_cv_preloaded_symbols=yes
26490  else
26491    libltdl_cv_preloaded_symbols=no
26492  fi
26493
26494fi
26495{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
26496echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
26497if test x"$libltdl_cv_preloaded_symbols" = xyes; then
26498
26499cat >>confdefs.h <<\_ACEOF
26500#define HAVE_PRELOADED_SYMBOLS 1
26501_ACEOF
26502
26503fi
26504
26505LIBADD_DL=
26506
26507ac_ext=c
26508ac_cpp='$CPP $CPPFLAGS'
26509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26511ac_compiler_gnu=$ac_cv_c_compiler_gnu
26512
26513
26514{ echo "$as_me:$LINENO: checking for shl_load" >&5
26515echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
26516if test "${ac_cv_func_shl_load+set}" = set; then
26517  echo $ECHO_N "(cached) $ECHO_C" >&6
26518else
26519  cat >conftest.$ac_ext <<_ACEOF
26520/* confdefs.h.  */
26521_ACEOF
26522cat confdefs.h >>conftest.$ac_ext
26523cat >>conftest.$ac_ext <<_ACEOF
26524/* end confdefs.h.  */
26525/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
26526   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26527#define shl_load innocuous_shl_load
26528
26529/* System header to define __stub macros and hopefully few prototypes,
26530    which can conflict with char shl_load (); below.
26531    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26532    <limits.h> exists even on freestanding compilers.  */
26533
26534#ifdef __STDC__
26535# include <limits.h>
26536#else
26537# include <assert.h>
26538#endif
26539
26540#undef shl_load
26541
26542/* Override any GCC internal prototype to avoid an error.
26543   Use char because int might match the return type of a GCC
26544   builtin and then its argument prototype would still apply.  */
26545#ifdef __cplusplus
26546extern "C"
26547#endif
26548char shl_load ();
26549/* The GNU C library defines this for functions which it implements
26550    to always fail with ENOSYS.  Some functions are actually named
26551    something starting with __ and the normal name is an alias.  */
26552#if defined __stub_shl_load || defined __stub___shl_load
26553choke me
26554#endif
26555
26556int
26557main ()
26558{
26559return shl_load ();
26560  ;
26561  return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext conftest$ac_exeext
26565if { (ac_try="$ac_link"
26566case "(($ac_try" in
26567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568  *) ac_try_echo=$ac_try;;
26569esac
26570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571  (eval "$ac_link") 2>conftest.er1
26572  ac_status=$?
26573  grep -v '^ *+' conftest.er1 >conftest.err
26574  rm -f conftest.er1
26575  cat conftest.err >&5
26576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577  (exit $ac_status); } && {
26578	 test -z "$ac_c_werror_flag" ||
26579	 test ! -s conftest.err
26580       } && test -s conftest$ac_exeext &&
26581       $as_test_x conftest$ac_exeext; then
26582  ac_cv_func_shl_load=yes
26583else
26584  echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587	ac_cv_func_shl_load=no
26588fi
26589
26590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26591      conftest$ac_exeext conftest.$ac_ext
26592fi
26593{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26594echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
26595if test $ac_cv_func_shl_load = yes; then
26596
26597cat >>confdefs.h <<\_ACEOF
26598#define HAVE_SHL_LOAD 1
26599_ACEOF
26600
26601else
26602  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26603echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
26604if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26605  echo $ECHO_N "(cached) $ECHO_C" >&6
26606else
26607  ac_check_lib_save_LIBS=$LIBS
26608LIBS="-ldld  $LIBS"
26609cat >conftest.$ac_ext <<_ACEOF
26610/* confdefs.h.  */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h.  */
26615
26616/* Override any GCC internal prototype to avoid an error.
26617   Use char because int might match the return type of a GCC
26618   builtin and then its argument prototype would still apply.  */
26619#ifdef __cplusplus
26620extern "C"
26621#endif
26622char shl_load ();
26623int
26624main ()
26625{
26626return shl_load ();
26627  ;
26628  return 0;
26629}
26630_ACEOF
26631rm -f conftest.$ac_objext conftest$ac_exeext
26632if { (ac_try="$ac_link"
26633case "(($ac_try" in
26634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635  *) ac_try_echo=$ac_try;;
26636esac
26637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638  (eval "$ac_link") 2>conftest.er1
26639  ac_status=$?
26640  grep -v '^ *+' conftest.er1 >conftest.err
26641  rm -f conftest.er1
26642  cat conftest.err >&5
26643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644  (exit $ac_status); } && {
26645	 test -z "$ac_c_werror_flag" ||
26646	 test ! -s conftest.err
26647       } && test -s conftest$ac_exeext &&
26648       $as_test_x conftest$ac_exeext; then
26649  ac_cv_lib_dld_shl_load=yes
26650else
26651  echo "$as_me: failed program was:" >&5
26652sed 's/^/| /' conftest.$ac_ext >&5
26653
26654	ac_cv_lib_dld_shl_load=no
26655fi
26656
26657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26658      conftest$ac_exeext conftest.$ac_ext
26659LIBS=$ac_check_lib_save_LIBS
26660fi
26661{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
26662echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
26663if test $ac_cv_lib_dld_shl_load = yes; then
26664
26665cat >>confdefs.h <<\_ACEOF
26666#define HAVE_SHL_LOAD 1
26667_ACEOF
26668
26669	LIBADD_DL="$LIBADD_DL -ldld"
26670else
26671  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
26673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26674  echo $ECHO_N "(cached) $ECHO_C" >&6
26675else
26676  ac_check_lib_save_LIBS=$LIBS
26677LIBS="-ldl  $LIBS"
26678cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h.  */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h.  */
26684
26685/* Override any GCC internal prototype to avoid an error.
26686   Use char because int might match the return type of a GCC
26687   builtin and then its argument prototype would still apply.  */
26688#ifdef __cplusplus
26689extern "C"
26690#endif
26691char dlopen ();
26692int
26693main ()
26694{
26695return dlopen ();
26696  ;
26697  return 0;
26698}
26699_ACEOF
26700rm -f conftest.$ac_objext conftest$ac_exeext
26701if { (ac_try="$ac_link"
26702case "(($ac_try" in
26703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26704  *) ac_try_echo=$ac_try;;
26705esac
26706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26707  (eval "$ac_link") 2>conftest.er1
26708  ac_status=$?
26709  grep -v '^ *+' conftest.er1 >conftest.err
26710  rm -f conftest.er1
26711  cat conftest.err >&5
26712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713  (exit $ac_status); } && {
26714	 test -z "$ac_c_werror_flag" ||
26715	 test ! -s conftest.err
26716       } && test -s conftest$ac_exeext &&
26717       $as_test_x conftest$ac_exeext; then
26718  ac_cv_lib_dl_dlopen=yes
26719else
26720  echo "$as_me: failed program was:" >&5
26721sed 's/^/| /' conftest.$ac_ext >&5
26722
26723	ac_cv_lib_dl_dlopen=no
26724fi
26725
26726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26727      conftest$ac_exeext conftest.$ac_ext
26728LIBS=$ac_check_lib_save_LIBS
26729fi
26730{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26731echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
26732if test $ac_cv_lib_dl_dlopen = yes; then
26733
26734cat >>confdefs.h <<\_ACEOF
26735#define HAVE_LIBDL 1
26736_ACEOF
26737
26738	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
26739else
26740  cat >conftest.$ac_ext <<_ACEOF
26741/* confdefs.h.  */
26742_ACEOF
26743cat confdefs.h >>conftest.$ac_ext
26744cat >>conftest.$ac_ext <<_ACEOF
26745/* end confdefs.h.  */
26746#if HAVE_DLFCN_H
26747#  include <dlfcn.h>
26748#endif
26749
26750int
26751main ()
26752{
26753dlopen(0, 0);
26754  ;
26755  return 0;
26756}
26757_ACEOF
26758rm -f conftest.$ac_objext conftest$ac_exeext
26759if { (ac_try="$ac_link"
26760case "(($ac_try" in
26761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762  *) ac_try_echo=$ac_try;;
26763esac
26764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765  (eval "$ac_link") 2>conftest.er1
26766  ac_status=$?
26767  grep -v '^ *+' conftest.er1 >conftest.err
26768  rm -f conftest.er1
26769  cat conftest.err >&5
26770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771  (exit $ac_status); } && {
26772	 test -z "$ac_c_werror_flag" ||
26773	 test ! -s conftest.err
26774       } && test -s conftest$ac_exeext &&
26775       $as_test_x conftest$ac_exeext; then
26776
26777cat >>confdefs.h <<\_ACEOF
26778#define HAVE_LIBDL 1
26779_ACEOF
26780 libltdl_cv_func_dlopen="yes"
26781else
26782  echo "$as_me: failed program was:" >&5
26783sed 's/^/| /' conftest.$ac_ext >&5
26784
26785	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
26786echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
26787if test "${ac_cv_lib_svld_dlopen+set}" = set; then
26788  echo $ECHO_N "(cached) $ECHO_C" >&6
26789else
26790  ac_check_lib_save_LIBS=$LIBS
26791LIBS="-lsvld  $LIBS"
26792cat >conftest.$ac_ext <<_ACEOF
26793/* confdefs.h.  */
26794_ACEOF
26795cat confdefs.h >>conftest.$ac_ext
26796cat >>conftest.$ac_ext <<_ACEOF
26797/* end confdefs.h.  */
26798
26799/* Override any GCC internal prototype to avoid an error.
26800   Use char because int might match the return type of a GCC
26801   builtin and then its argument prototype would still apply.  */
26802#ifdef __cplusplus
26803extern "C"
26804#endif
26805char dlopen ();
26806int
26807main ()
26808{
26809return dlopen ();
26810  ;
26811  return 0;
26812}
26813_ACEOF
26814rm -f conftest.$ac_objext conftest$ac_exeext
26815if { (ac_try="$ac_link"
26816case "(($ac_try" in
26817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818  *) ac_try_echo=$ac_try;;
26819esac
26820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821  (eval "$ac_link") 2>conftest.er1
26822  ac_status=$?
26823  grep -v '^ *+' conftest.er1 >conftest.err
26824  rm -f conftest.er1
26825  cat conftest.err >&5
26826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827  (exit $ac_status); } && {
26828	 test -z "$ac_c_werror_flag" ||
26829	 test ! -s conftest.err
26830       } && test -s conftest$ac_exeext &&
26831       $as_test_x conftest$ac_exeext; then
26832  ac_cv_lib_svld_dlopen=yes
26833else
26834  echo "$as_me: failed program was:" >&5
26835sed 's/^/| /' conftest.$ac_ext >&5
26836
26837	ac_cv_lib_svld_dlopen=no
26838fi
26839
26840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26841      conftest$ac_exeext conftest.$ac_ext
26842LIBS=$ac_check_lib_save_LIBS
26843fi
26844{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
26845echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
26846if test $ac_cv_lib_svld_dlopen = yes; then
26847
26848cat >>confdefs.h <<\_ACEOF
26849#define HAVE_LIBDL 1
26850_ACEOF
26851
26852	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
26853else
26854  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
26855echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
26856if test "${ac_cv_lib_dld_dld_link+set}" = set; then
26857  echo $ECHO_N "(cached) $ECHO_C" >&6
26858else
26859  ac_check_lib_save_LIBS=$LIBS
26860LIBS="-ldld  $LIBS"
26861cat >conftest.$ac_ext <<_ACEOF
26862/* confdefs.h.  */
26863_ACEOF
26864cat confdefs.h >>conftest.$ac_ext
26865cat >>conftest.$ac_ext <<_ACEOF
26866/* end confdefs.h.  */
26867
26868/* Override any GCC internal prototype to avoid an error.
26869   Use char because int might match the return type of a GCC
26870   builtin and then its argument prototype would still apply.  */
26871#ifdef __cplusplus
26872extern "C"
26873#endif
26874char dld_link ();
26875int
26876main ()
26877{
26878return dld_link ();
26879  ;
26880  return 0;
26881}
26882_ACEOF
26883rm -f conftest.$ac_objext conftest$ac_exeext
26884if { (ac_try="$ac_link"
26885case "(($ac_try" in
26886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26887  *) ac_try_echo=$ac_try;;
26888esac
26889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26890  (eval "$ac_link") 2>conftest.er1
26891  ac_status=$?
26892  grep -v '^ *+' conftest.er1 >conftest.err
26893  rm -f conftest.er1
26894  cat conftest.err >&5
26895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896  (exit $ac_status); } && {
26897	 test -z "$ac_c_werror_flag" ||
26898	 test ! -s conftest.err
26899       } && test -s conftest$ac_exeext &&
26900       $as_test_x conftest$ac_exeext; then
26901  ac_cv_lib_dld_dld_link=yes
26902else
26903  echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
26906	ac_cv_lib_dld_dld_link=no
26907fi
26908
26909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26910      conftest$ac_exeext conftest.$ac_ext
26911LIBS=$ac_check_lib_save_LIBS
26912fi
26913{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
26914echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
26915if test $ac_cv_lib_dld_dld_link = yes; then
26916
26917cat >>confdefs.h <<\_ACEOF
26918#define HAVE_DLD 1
26919_ACEOF
26920
26921	 	LIBADD_DL="$LIBADD_DL -ldld"
26922else
26923  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
26924echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
26925if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
26926  echo $ECHO_N "(cached) $ECHO_C" >&6
26927else
26928  cat >conftest.$ac_ext <<_ACEOF
26929/* confdefs.h.  */
26930_ACEOF
26931cat confdefs.h >>conftest.$ac_ext
26932cat >>conftest.$ac_ext <<_ACEOF
26933/* end confdefs.h.  */
26934/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
26935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26936#define _dyld_func_lookup innocuous__dyld_func_lookup
26937
26938/* System header to define __stub macros and hopefully few prototypes,
26939    which can conflict with char _dyld_func_lookup (); below.
26940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26941    <limits.h> exists even on freestanding compilers.  */
26942
26943#ifdef __STDC__
26944# include <limits.h>
26945#else
26946# include <assert.h>
26947#endif
26948
26949#undef _dyld_func_lookup
26950
26951/* Override any GCC internal prototype to avoid an error.
26952   Use char because int might match the return type of a GCC
26953   builtin and then its argument prototype would still apply.  */
26954#ifdef __cplusplus
26955extern "C"
26956#endif
26957char _dyld_func_lookup ();
26958/* The GNU C library defines this for functions which it implements
26959    to always fail with ENOSYS.  Some functions are actually named
26960    something starting with __ and the normal name is an alias.  */
26961#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
26962choke me
26963#endif
26964
26965int
26966main ()
26967{
26968return _dyld_func_lookup ();
26969  ;
26970  return 0;
26971}
26972_ACEOF
26973rm -f conftest.$ac_objext conftest$ac_exeext
26974if { (ac_try="$ac_link"
26975case "(($ac_try" in
26976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977  *) ac_try_echo=$ac_try;;
26978esac
26979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980  (eval "$ac_link") 2>conftest.er1
26981  ac_status=$?
26982  grep -v '^ *+' conftest.er1 >conftest.err
26983  rm -f conftest.er1
26984  cat conftest.err >&5
26985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986  (exit $ac_status); } && {
26987	 test -z "$ac_c_werror_flag" ||
26988	 test ! -s conftest.err
26989       } && test -s conftest$ac_exeext &&
26990       $as_test_x conftest$ac_exeext; then
26991  ac_cv_func__dyld_func_lookup=yes
26992else
26993  echo "$as_me: failed program was:" >&5
26994sed 's/^/| /' conftest.$ac_ext >&5
26995
26996	ac_cv_func__dyld_func_lookup=no
26997fi
26998
26999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27000      conftest$ac_exeext conftest.$ac_ext
27001fi
27002{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
27003echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
27004if test $ac_cv_func__dyld_func_lookup = yes; then
27005
27006cat >>confdefs.h <<\_ACEOF
27007#define HAVE_DYLD 1
27008_ACEOF
27009
27010fi
27011
27012
27013fi
27014
27015
27016fi
27017
27018
27019fi
27020
27021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27022      conftest$ac_exeext conftest.$ac_ext
27023
27024fi
27025
27026
27027fi
27028
27029
27030fi
27031
27032
27033if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
27034then
27035  lt_save_LIBS="$LIBS"
27036  LIBS="$LIBS $LIBADD_DL"
27037
27038for ac_func in dlerror
27039do
27040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27041{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27044  echo $ECHO_N "(cached) $ECHO_C" >&6
27045else
27046  cat >conftest.$ac_ext <<_ACEOF
27047/* confdefs.h.  */
27048_ACEOF
27049cat confdefs.h >>conftest.$ac_ext
27050cat >>conftest.$ac_ext <<_ACEOF
27051/* end confdefs.h.  */
27052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27053   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27054#define $ac_func innocuous_$ac_func
27055
27056/* System header to define __stub macros and hopefully few prototypes,
27057    which can conflict with char $ac_func (); below.
27058    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27059    <limits.h> exists even on freestanding compilers.  */
27060
27061#ifdef __STDC__
27062# include <limits.h>
27063#else
27064# include <assert.h>
27065#endif
27066
27067#undef $ac_func
27068
27069/* Override any GCC internal prototype to avoid an error.
27070   Use char because int might match the return type of a GCC
27071   builtin and then its argument prototype would still apply.  */
27072#ifdef __cplusplus
27073extern "C"
27074#endif
27075char $ac_func ();
27076/* The GNU C library defines this for functions which it implements
27077    to always fail with ENOSYS.  Some functions are actually named
27078    something starting with __ and the normal name is an alias.  */
27079#if defined __stub_$ac_func || defined __stub___$ac_func
27080choke me
27081#endif
27082
27083int
27084main ()
27085{
27086return $ac_func ();
27087  ;
27088  return 0;
27089}
27090_ACEOF
27091rm -f conftest.$ac_objext conftest$ac_exeext
27092if { (ac_try="$ac_link"
27093case "(($ac_try" in
27094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095  *) ac_try_echo=$ac_try;;
27096esac
27097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098  (eval "$ac_link") 2>conftest.er1
27099  ac_status=$?
27100  grep -v '^ *+' conftest.er1 >conftest.err
27101  rm -f conftest.er1
27102  cat conftest.err >&5
27103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104  (exit $ac_status); } && {
27105	 test -z "$ac_c_werror_flag" ||
27106	 test ! -s conftest.err
27107       } && test -s conftest$ac_exeext &&
27108       $as_test_x conftest$ac_exeext; then
27109  eval "$as_ac_var=yes"
27110else
27111  echo "$as_me: failed program was:" >&5
27112sed 's/^/| /' conftest.$ac_ext >&5
27113
27114	eval "$as_ac_var=no"
27115fi
27116
27117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118      conftest$ac_exeext conftest.$ac_ext
27119fi
27120ac_res=`eval echo '${'$as_ac_var'}'`
27121	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27122echo "${ECHO_T}$ac_res" >&6; }
27123if test `eval echo '${'$as_ac_var'}'` = yes; then
27124  cat >>confdefs.h <<_ACEOF
27125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27126_ACEOF
27127
27128fi
27129done
27130
27131  LIBS="$lt_save_LIBS"
27132fi
27133ac_ext=c
27134ac_cpp='$CPP $CPPFLAGS'
27135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27137ac_compiler_gnu=$ac_cv_c_compiler_gnu
27138
27139
27140
27141{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
27142echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
27143if test "${ac_cv_sys_symbol_underscore+set}" = set; then
27144  echo $ECHO_N "(cached) $ECHO_C" >&6
27145else
27146  ac_cv_sys_symbol_underscore=no
27147  cat > conftest.$ac_ext <<EOF
27148void nm_test_func(){}
27149int main(){nm_test_func;return 0;}
27150EOF
27151  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27152  (eval $ac_compile) 2>&5
27153  ac_status=$?
27154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155  (exit $ac_status); }; then
27156    # Now try to grab the symbols.
27157    ac_nlist=conftest.nm
27158    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
27159  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
27160  ac_status=$?
27161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162  (exit $ac_status); } && test -s "$ac_nlist"; then
27163      # See whether the symbols have a leading underscore.
27164      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
27165        ac_cv_sys_symbol_underscore=yes
27166      else
27167        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
27168	  :
27169        else
27170	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
27171        fi
27172      fi
27173    else
27174      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
27175    fi
27176  else
27177    echo "configure: failed program was:" >&5
27178    cat conftest.c >&5
27179  fi
27180  rm -rf conftest*
27181
27182fi
27183{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
27184echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
27185
27186
27187if test x"$ac_cv_sys_symbol_underscore" = xyes; then
27188  if test x"$libltdl_cv_func_dlopen" = xyes ||
27189     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
27190	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
27191echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
27192if test "${libltdl_cv_need_uscore+set}" = set; then
27193  echo $ECHO_N "(cached) $ECHO_C" >&6
27194else
27195  libltdl_cv_need_uscore=unknown
27196          save_LIBS="$LIBS"
27197          LIBS="$LIBS $LIBADD_DL"
27198	  if test "$cross_compiling" = yes; then :
27199  libltdl_cv_need_uscore=cross
27200else
27201  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27202  lt_status=$lt_dlunknown
27203  cat > conftest.$ac_ext <<EOF
27204#line 27204 "configure"
27205#include "confdefs.h"
27206
27207#if HAVE_DLFCN_H
27208#include <dlfcn.h>
27209#endif
27210
27211#include <stdio.h>
27212
27213#ifdef RTLD_GLOBAL
27214#  define LT_DLGLOBAL		RTLD_GLOBAL
27215#else
27216#  ifdef DL_GLOBAL
27217#    define LT_DLGLOBAL		DL_GLOBAL
27218#  else
27219#    define LT_DLGLOBAL		0
27220#  endif
27221#endif
27222
27223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27224   find out it does not work in some platform. */
27225#ifndef LT_DLLAZY_OR_NOW
27226#  ifdef RTLD_LAZY
27227#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
27228#  else
27229#    ifdef DL_LAZY
27230#      define LT_DLLAZY_OR_NOW		DL_LAZY
27231#    else
27232#      ifdef RTLD_NOW
27233#        define LT_DLLAZY_OR_NOW	RTLD_NOW
27234#      else
27235#        ifdef DL_NOW
27236#          define LT_DLLAZY_OR_NOW	DL_NOW
27237#        else
27238#          define LT_DLLAZY_OR_NOW	0
27239#        endif
27240#      endif
27241#    endif
27242#  endif
27243#endif
27244
27245#ifdef __cplusplus
27246extern "C" void exit (int);
27247#endif
27248
27249void fnord() { int i=42;}
27250int main ()
27251{
27252  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27253  int status = $lt_dlunknown;
27254
27255  if (self)
27256    {
27257      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27258      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27259      /* dlclose (self); */
27260    }
27261  else
27262    puts (dlerror ());
27263
27264    exit (status);
27265}
27266EOF
27267  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27268  (eval $ac_link) 2>&5
27269  ac_status=$?
27270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27272    (./conftest; exit; ) >&5 2>/dev/null
27273    lt_status=$?
27274    case x$lt_status in
27275      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
27276      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
27277      x$lt_dlunknown|x*)  ;;
27278    esac
27279  else :
27280    # compilation failed
27281
27282  fi
27283fi
27284rm -fr conftest*
27285
27286	  LIBS="$save_LIBS"
27287
27288fi
27289{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
27290echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
27291  fi
27292fi
27293
27294if test x"$libltdl_cv_need_uscore" = xyes; then
27295
27296cat >>confdefs.h <<\_ACEOF
27297#define NEED_USCORE 1
27298_ACEOF
27299
27300fi
27301
27302
27303{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
27304echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
27305if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
27306  echo $ECHO_N "(cached) $ECHO_C" >&6
27307else
27308  # PORTME does your system automatically load deplibs for dlopen?
27309  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
27310  # For now, we just catch OSes we know something about -- in the
27311  # future, we'll try test this programmatically.
27312  libltdl_cv_sys_dlopen_deplibs=unknown
27313  case "$host_os" in
27314  aix3*|aix4.1.*|aix4.2.*)
27315    # Unknown whether this is true for these versions of AIX, but
27316    # we want this `case' here to explicitly catch those versions.
27317    libltdl_cv_sys_dlopen_deplibs=unknown
27318    ;;
27319  aix[4-9]*)
27320    libltdl_cv_sys_dlopen_deplibs=yes
27321    ;;
27322  darwin*)
27323    # Assuming the user has installed a libdl from somewhere, this is true
27324    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
27325    libltdl_cv_sys_dlopen_deplibs=yes
27326    ;;
27327  freebsd* | dragonfly*)
27328    libltdl_cv_sys_dlopen_deplibs=yes
27329    ;;
27330  gnu* | linux* | k*bsd*-gnu)
27331    # GNU and its variants, using gnu ld.so (Glibc)
27332    libltdl_cv_sys_dlopen_deplibs=yes
27333    ;;
27334  hpux10*|hpux11*)
27335    libltdl_cv_sys_dlopen_deplibs=yes
27336    ;;
27337  interix*)
27338    libltdl_cv_sys_dlopen_deplibs=yes
27339    ;;
27340  irix[12345]*|irix6.[01]*)
27341    # Catch all versions of IRIX before 6.2, and indicate that we don't
27342    # know how it worked for any of those versions.
27343    libltdl_cv_sys_dlopen_deplibs=unknown
27344    ;;
27345  irix*)
27346    # The case above catches anything before 6.2, and it's known that
27347    # at 6.2 and later dlopen does load deplibs.
27348    libltdl_cv_sys_dlopen_deplibs=yes
27349    ;;
27350  netbsd* | netbsdelf*-gnu)
27351    libltdl_cv_sys_dlopen_deplibs=yes
27352    ;;
27353  openbsd*)
27354    libltdl_cv_sys_dlopen_deplibs=yes
27355    ;;
27356  osf[1234]*)
27357    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
27358    # it did *not* use an RPATH in a shared library to find objects the
27359    # library depends on, so we explictly say `no'.
27360    libltdl_cv_sys_dlopen_deplibs=no
27361    ;;
27362  osf5.0|osf5.0a|osf5.1)
27363    # dlopen *does* load deplibs and with the right loader patch applied
27364    # it even uses RPATH in a shared library to search for shared objects
27365    # that the library depends on, but there's no easy way to know if that
27366    # patch is installed.  Since this is the case, all we can really
27367    # say is unknown -- it depends on the patch being installed.  If
27368    # it is, this changes to `yes'.  Without it, it would be `no'.
27369    libltdl_cv_sys_dlopen_deplibs=unknown
27370    ;;
27371  osf*)
27372    # the two cases above should catch all versions of osf <= 5.1.  Read
27373    # the comments above for what we know about them.
27374    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
27375    # is used to find them so we can finally say `yes'.
27376    libltdl_cv_sys_dlopen_deplibs=yes
27377    ;;
27378  solaris*)
27379    libltdl_cv_sys_dlopen_deplibs=yes
27380    ;;
27381  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27382    libltdl_cv_sys_dlopen_deplibs=yes
27383    ;;
27384  esac
27385
27386fi
27387{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
27388echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
27389if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
27390
27391cat >>confdefs.h <<\_ACEOF
27392#define LTDL_DLOPEN_DEPLIBS 1
27393_ACEOF
27394
27395fi
27396
27397
27398for ac_header in argz.h
27399do
27400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27402  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27405  echo $ECHO_N "(cached) $ECHO_C" >&6
27406fi
27407ac_res=`eval echo '${'$as_ac_Header'}'`
27408	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27409echo "${ECHO_T}$ac_res" >&6; }
27410else
27411  # Is the header compilable?
27412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27414cat >conftest.$ac_ext <<_ACEOF
27415/* confdefs.h.  */
27416_ACEOF
27417cat confdefs.h >>conftest.$ac_ext
27418cat >>conftest.$ac_ext <<_ACEOF
27419/* end confdefs.h.  */
27420$ac_includes_default
27421#include <$ac_header>
27422_ACEOF
27423rm -f conftest.$ac_objext
27424if { (ac_try="$ac_compile"
27425case "(($ac_try" in
27426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427  *) ac_try_echo=$ac_try;;
27428esac
27429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430  (eval "$ac_compile") 2>conftest.er1
27431  ac_status=$?
27432  grep -v '^ *+' conftest.er1 >conftest.err
27433  rm -f conftest.er1
27434  cat conftest.err >&5
27435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436  (exit $ac_status); } && {
27437	 test -z "$ac_c_werror_flag" ||
27438	 test ! -s conftest.err
27439       } && test -s conftest.$ac_objext; then
27440  ac_header_compiler=yes
27441else
27442  echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
27445	ac_header_compiler=no
27446fi
27447
27448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27450echo "${ECHO_T}$ac_header_compiler" >&6; }
27451
27452# Is the header present?
27453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27455cat >conftest.$ac_ext <<_ACEOF
27456/* confdefs.h.  */
27457_ACEOF
27458cat confdefs.h >>conftest.$ac_ext
27459cat >>conftest.$ac_ext <<_ACEOF
27460/* end confdefs.h.  */
27461#include <$ac_header>
27462_ACEOF
27463if { (ac_try="$ac_cpp conftest.$ac_ext"
27464case "(($ac_try" in
27465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466  *) ac_try_echo=$ac_try;;
27467esac
27468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27470  ac_status=$?
27471  grep -v '^ *+' conftest.er1 >conftest.err
27472  rm -f conftest.er1
27473  cat conftest.err >&5
27474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475  (exit $ac_status); } >/dev/null && {
27476	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27477	 test ! -s conftest.err
27478       }; then
27479  ac_header_preproc=yes
27480else
27481  echo "$as_me: failed program was:" >&5
27482sed 's/^/| /' conftest.$ac_ext >&5
27483
27484  ac_header_preproc=no
27485fi
27486
27487rm -f conftest.err conftest.$ac_ext
27488{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27489echo "${ECHO_T}$ac_header_preproc" >&6; }
27490
27491# So?  What about this header?
27492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27493  yes:no: )
27494    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27496    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27498    ac_header_preproc=yes
27499    ;;
27500  no:yes:* )
27501    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27503    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27504echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27505    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27507    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27508echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27511    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27513    ( cat <<\_ASBOX
27514## ------------------------------- ##
27515## Report this to ashie@homa.ne.jp ##
27516## ------------------------------- ##
27517_ASBOX
27518     ) | sed "s/^/$as_me: WARNING:     /" >&2
27519    ;;
27520esac
27521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27524  echo $ECHO_N "(cached) $ECHO_C" >&6
27525else
27526  eval "$as_ac_Header=\$ac_header_preproc"
27527fi
27528ac_res=`eval echo '${'$as_ac_Header'}'`
27529	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27530echo "${ECHO_T}$ac_res" >&6; }
27531
27532fi
27533if test `eval echo '${'$as_ac_Header'}'` = yes; then
27534  cat >>confdefs.h <<_ACEOF
27535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27536_ACEOF
27537
27538fi
27539
27540done
27541
27542
27543{ echo "$as_me:$LINENO: checking for error_t" >&5
27544echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
27545if test "${ac_cv_type_error_t+set}" = set; then
27546  echo $ECHO_N "(cached) $ECHO_C" >&6
27547else
27548  cat >conftest.$ac_ext <<_ACEOF
27549/* confdefs.h.  */
27550_ACEOF
27551cat confdefs.h >>conftest.$ac_ext
27552cat >>conftest.$ac_ext <<_ACEOF
27553/* end confdefs.h.  */
27554#if HAVE_ARGZ_H
27555#  include <argz.h>
27556#endif
27557
27558typedef error_t ac__type_new_;
27559int
27560main ()
27561{
27562if ((ac__type_new_ *) 0)
27563  return 0;
27564if (sizeof (ac__type_new_))
27565  return 0;
27566  ;
27567  return 0;
27568}
27569_ACEOF
27570rm -f conftest.$ac_objext
27571if { (ac_try="$ac_compile"
27572case "(($ac_try" in
27573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574  *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577  (eval "$ac_compile") 2>conftest.er1
27578  ac_status=$?
27579  grep -v '^ *+' conftest.er1 >conftest.err
27580  rm -f conftest.er1
27581  cat conftest.err >&5
27582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583  (exit $ac_status); } && {
27584	 test -z "$ac_c_werror_flag" ||
27585	 test ! -s conftest.err
27586       } && test -s conftest.$ac_objext; then
27587  ac_cv_type_error_t=yes
27588else
27589  echo "$as_me: failed program was:" >&5
27590sed 's/^/| /' conftest.$ac_ext >&5
27591
27592	ac_cv_type_error_t=no
27593fi
27594
27595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596fi
27597{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
27598echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
27599if test $ac_cv_type_error_t = yes; then
27600
27601cat >>confdefs.h <<_ACEOF
27602#define HAVE_ERROR_T 1
27603_ACEOF
27604
27605
27606else
27607
27608cat >>confdefs.h <<\_ACEOF
27609#define error_t int
27610_ACEOF
27611
27612fi
27613
27614
27615
27616
27617
27618
27619
27620for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
27621do
27622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27623{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27625if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27626  echo $ECHO_N "(cached) $ECHO_C" >&6
27627else
27628  cat >conftest.$ac_ext <<_ACEOF
27629/* confdefs.h.  */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h.  */
27634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27635   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27636#define $ac_func innocuous_$ac_func
27637
27638/* System header to define __stub macros and hopefully few prototypes,
27639    which can conflict with char $ac_func (); below.
27640    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27641    <limits.h> exists even on freestanding compilers.  */
27642
27643#ifdef __STDC__
27644# include <limits.h>
27645#else
27646# include <assert.h>
27647#endif
27648
27649#undef $ac_func
27650
27651/* Override any GCC internal prototype to avoid an error.
27652   Use char because int might match the return type of a GCC
27653   builtin and then its argument prototype would still apply.  */
27654#ifdef __cplusplus
27655extern "C"
27656#endif
27657char $ac_func ();
27658/* The GNU C library defines this for functions which it implements
27659    to always fail with ENOSYS.  Some functions are actually named
27660    something starting with __ and the normal name is an alias.  */
27661#if defined __stub_$ac_func || defined __stub___$ac_func
27662choke me
27663#endif
27664
27665int
27666main ()
27667{
27668return $ac_func ();
27669  ;
27670  return 0;
27671}
27672_ACEOF
27673rm -f conftest.$ac_objext conftest$ac_exeext
27674if { (ac_try="$ac_link"
27675case "(($ac_try" in
27676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677  *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680  (eval "$ac_link") 2>conftest.er1
27681  ac_status=$?
27682  grep -v '^ *+' conftest.er1 >conftest.err
27683  rm -f conftest.er1
27684  cat conftest.err >&5
27685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686  (exit $ac_status); } && {
27687	 test -z "$ac_c_werror_flag" ||
27688	 test ! -s conftest.err
27689       } && test -s conftest$ac_exeext &&
27690       $as_test_x conftest$ac_exeext; then
27691  eval "$as_ac_var=yes"
27692else
27693  echo "$as_me: failed program was:" >&5
27694sed 's/^/| /' conftest.$ac_ext >&5
27695
27696	eval "$as_ac_var=no"
27697fi
27698
27699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27700      conftest$ac_exeext conftest.$ac_ext
27701fi
27702ac_res=`eval echo '${'$as_ac_var'}'`
27703	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27704echo "${ECHO_T}$ac_res" >&6; }
27705if test `eval echo '${'$as_ac_var'}'` = yes; then
27706  cat >>confdefs.h <<_ACEOF
27707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27708_ACEOF
27709
27710fi
27711done
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
27741		  stdio.h unistd.h
27742do
27743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27745  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27748  echo $ECHO_N "(cached) $ECHO_C" >&6
27749fi
27750ac_res=`eval echo '${'$as_ac_Header'}'`
27751	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27752echo "${ECHO_T}$ac_res" >&6; }
27753else
27754  # Is the header compilable?
27755{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27757cat >conftest.$ac_ext <<_ACEOF
27758/* confdefs.h.  */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h.  */
27763$ac_includes_default
27764#include <$ac_header>
27765_ACEOF
27766rm -f conftest.$ac_objext
27767if { (ac_try="$ac_compile"
27768case "(($ac_try" in
27769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770  *) ac_try_echo=$ac_try;;
27771esac
27772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773  (eval "$ac_compile") 2>conftest.er1
27774  ac_status=$?
27775  grep -v '^ *+' conftest.er1 >conftest.err
27776  rm -f conftest.er1
27777  cat conftest.err >&5
27778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779  (exit $ac_status); } && {
27780	 test -z "$ac_c_werror_flag" ||
27781	 test ! -s conftest.err
27782       } && test -s conftest.$ac_objext; then
27783  ac_header_compiler=yes
27784else
27785  echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
27788	ac_header_compiler=no
27789fi
27790
27791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27793echo "${ECHO_T}$ac_header_compiler" >&6; }
27794
27795# Is the header present?
27796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27798cat >conftest.$ac_ext <<_ACEOF
27799/* confdefs.h.  */
27800_ACEOF
27801cat confdefs.h >>conftest.$ac_ext
27802cat >>conftest.$ac_ext <<_ACEOF
27803/* end confdefs.h.  */
27804#include <$ac_header>
27805_ACEOF
27806if { (ac_try="$ac_cpp conftest.$ac_ext"
27807case "(($ac_try" in
27808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809  *) ac_try_echo=$ac_try;;
27810esac
27811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27813  ac_status=$?
27814  grep -v '^ *+' conftest.er1 >conftest.err
27815  rm -f conftest.er1
27816  cat conftest.err >&5
27817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818  (exit $ac_status); } >/dev/null && {
27819	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27820	 test ! -s conftest.err
27821       }; then
27822  ac_header_preproc=yes
27823else
27824  echo "$as_me: failed program was:" >&5
27825sed 's/^/| /' conftest.$ac_ext >&5
27826
27827  ac_header_preproc=no
27828fi
27829
27830rm -f conftest.err conftest.$ac_ext
27831{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27832echo "${ECHO_T}$ac_header_preproc" >&6; }
27833
27834# So?  What about this header?
27835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27836  yes:no: )
27837    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27839    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27841    ac_header_preproc=yes
27842    ;;
27843  no:yes:* )
27844    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27846    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27847echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27848    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27850    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27851echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27852    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27854    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27856    ( cat <<\_ASBOX
27857## ------------------------------- ##
27858## Report this to ashie@homa.ne.jp ##
27859## ------------------------------- ##
27860_ASBOX
27861     ) | sed "s/^/$as_me: WARNING:     /" >&2
27862    ;;
27863esac
27864{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27867  echo $ECHO_N "(cached) $ECHO_C" >&6
27868else
27869  eval "$as_ac_Header=\$ac_header_preproc"
27870fi
27871ac_res=`eval echo '${'$as_ac_Header'}'`
27872	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27873echo "${ECHO_T}$ac_res" >&6; }
27874
27875fi
27876if test `eval echo '${'$as_ac_Header'}'` = yes; then
27877  cat >>confdefs.h <<_ACEOF
27878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27879_ACEOF
27880
27881fi
27882
27883done
27884
27885
27886
27887
27888
27889for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
27890do
27891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27893  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27896  echo $ECHO_N "(cached) $ECHO_C" >&6
27897fi
27898ac_res=`eval echo '${'$as_ac_Header'}'`
27899	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27900echo "${ECHO_T}$ac_res" >&6; }
27901else
27902  # Is the header compilable?
27903{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27905cat >conftest.$ac_ext <<_ACEOF
27906/* confdefs.h.  */
27907_ACEOF
27908cat confdefs.h >>conftest.$ac_ext
27909cat >>conftest.$ac_ext <<_ACEOF
27910/* end confdefs.h.  */
27911$ac_includes_default
27912#include <$ac_header>
27913_ACEOF
27914rm -f conftest.$ac_objext
27915if { (ac_try="$ac_compile"
27916case "(($ac_try" in
27917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27918  *) ac_try_echo=$ac_try;;
27919esac
27920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27921  (eval "$ac_compile") 2>conftest.er1
27922  ac_status=$?
27923  grep -v '^ *+' conftest.er1 >conftest.err
27924  rm -f conftest.er1
27925  cat conftest.err >&5
27926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927  (exit $ac_status); } && {
27928	 test -z "$ac_c_werror_flag" ||
27929	 test ! -s conftest.err
27930       } && test -s conftest.$ac_objext; then
27931  ac_header_compiler=yes
27932else
27933  echo "$as_me: failed program was:" >&5
27934sed 's/^/| /' conftest.$ac_ext >&5
27935
27936	ac_header_compiler=no
27937fi
27938
27939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27940{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27941echo "${ECHO_T}$ac_header_compiler" >&6; }
27942
27943# Is the header present?
27944{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27946cat >conftest.$ac_ext <<_ACEOF
27947/* confdefs.h.  */
27948_ACEOF
27949cat confdefs.h >>conftest.$ac_ext
27950cat >>conftest.$ac_ext <<_ACEOF
27951/* end confdefs.h.  */
27952#include <$ac_header>
27953_ACEOF
27954if { (ac_try="$ac_cpp conftest.$ac_ext"
27955case "(($ac_try" in
27956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957  *) ac_try_echo=$ac_try;;
27958esac
27959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27961  ac_status=$?
27962  grep -v '^ *+' conftest.er1 >conftest.err
27963  rm -f conftest.er1
27964  cat conftest.err >&5
27965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966  (exit $ac_status); } >/dev/null && {
27967	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27968	 test ! -s conftest.err
27969       }; then
27970  ac_header_preproc=yes
27971else
27972  echo "$as_me: failed program was:" >&5
27973sed 's/^/| /' conftest.$ac_ext >&5
27974
27975  ac_header_preproc=no
27976fi
27977
27978rm -f conftest.err conftest.$ac_ext
27979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27980echo "${ECHO_T}$ac_header_preproc" >&6; }
27981
27982# So?  What about this header?
27983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27984  yes:no: )
27985    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27987    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27989    ac_header_preproc=yes
27990    ;;
27991  no:yes:* )
27992    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27994    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27995echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27996    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27998    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27999echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28000    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28002    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28004    ( cat <<\_ASBOX
28005## ------------------------------- ##
28006## Report this to ashie@homa.ne.jp ##
28007## ------------------------------- ##
28008_ASBOX
28009     ) | sed "s/^/$as_me: WARNING:     /" >&2
28010    ;;
28011esac
28012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28015  echo $ECHO_N "(cached) $ECHO_C" >&6
28016else
28017  eval "$as_ac_Header=\$ac_header_preproc"
28018fi
28019ac_res=`eval echo '${'$as_ac_Header'}'`
28020	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28021echo "${ECHO_T}$ac_res" >&6; }
28022
28023fi
28024if test `eval echo '${'$as_ac_Header'}'` = yes; then
28025  cat >>confdefs.h <<_ACEOF
28026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28027_ACEOF
28028
28029fi
28030
28031done
28032
28033
28034
28035for ac_header in string.h strings.h
28036do
28037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28039  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28042  echo $ECHO_N "(cached) $ECHO_C" >&6
28043fi
28044ac_res=`eval echo '${'$as_ac_Header'}'`
28045	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28046echo "${ECHO_T}$ac_res" >&6; }
28047else
28048  # Is the header compilable?
28049{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28051cat >conftest.$ac_ext <<_ACEOF
28052/* confdefs.h.  */
28053_ACEOF
28054cat confdefs.h >>conftest.$ac_ext
28055cat >>conftest.$ac_ext <<_ACEOF
28056/* end confdefs.h.  */
28057$ac_includes_default
28058#include <$ac_header>
28059_ACEOF
28060rm -f conftest.$ac_objext
28061if { (ac_try="$ac_compile"
28062case "(($ac_try" in
28063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064  *) ac_try_echo=$ac_try;;
28065esac
28066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067  (eval "$ac_compile") 2>conftest.er1
28068  ac_status=$?
28069  grep -v '^ *+' conftest.er1 >conftest.err
28070  rm -f conftest.er1
28071  cat conftest.err >&5
28072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073  (exit $ac_status); } && {
28074	 test -z "$ac_c_werror_flag" ||
28075	 test ! -s conftest.err
28076       } && test -s conftest.$ac_objext; then
28077  ac_header_compiler=yes
28078else
28079  echo "$as_me: failed program was:" >&5
28080sed 's/^/| /' conftest.$ac_ext >&5
28081
28082	ac_header_compiler=no
28083fi
28084
28085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28087echo "${ECHO_T}$ac_header_compiler" >&6; }
28088
28089# Is the header present?
28090{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28092cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h.  */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h.  */
28098#include <$ac_header>
28099_ACEOF
28100if { (ac_try="$ac_cpp conftest.$ac_ext"
28101case "(($ac_try" in
28102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103  *) ac_try_echo=$ac_try;;
28104esac
28105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28107  ac_status=$?
28108  grep -v '^ *+' conftest.er1 >conftest.err
28109  rm -f conftest.er1
28110  cat conftest.err >&5
28111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112  (exit $ac_status); } >/dev/null && {
28113	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28114	 test ! -s conftest.err
28115       }; then
28116  ac_header_preproc=yes
28117else
28118  echo "$as_me: failed program was:" >&5
28119sed 's/^/| /' conftest.$ac_ext >&5
28120
28121  ac_header_preproc=no
28122fi
28123
28124rm -f conftest.err conftest.$ac_ext
28125{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28126echo "${ECHO_T}$ac_header_preproc" >&6; }
28127
28128# So?  What about this header?
28129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28130  yes:no: )
28131    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28135    ac_header_preproc=yes
28136    ;;
28137  no:yes:* )
28138    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28140    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28141echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28142    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28144    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28145echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28148    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28150    ( cat <<\_ASBOX
28151## ------------------------------- ##
28152## Report this to ashie@homa.ne.jp ##
28153## ------------------------------- ##
28154_ASBOX
28155     ) | sed "s/^/$as_me: WARNING:     /" >&2
28156    ;;
28157esac
28158{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28161  echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
28163  eval "$as_ac_Header=\$ac_header_preproc"
28164fi
28165ac_res=`eval echo '${'$as_ac_Header'}'`
28166	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28167echo "${ECHO_T}$ac_res" >&6; }
28168
28169fi
28170if test `eval echo '${'$as_ac_Header'}'` = yes; then
28171  cat >>confdefs.h <<_ACEOF
28172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28173_ACEOF
28174 break
28175fi
28176
28177done
28178
28179
28180
28181
28182for ac_func in strchr index
28183do
28184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28188  echo $ECHO_N "(cached) $ECHO_C" >&6
28189else
28190  cat >conftest.$ac_ext <<_ACEOF
28191/* confdefs.h.  */
28192_ACEOF
28193cat confdefs.h >>conftest.$ac_ext
28194cat >>conftest.$ac_ext <<_ACEOF
28195/* end confdefs.h.  */
28196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28197   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28198#define $ac_func innocuous_$ac_func
28199
28200/* System header to define __stub macros and hopefully few prototypes,
28201    which can conflict with char $ac_func (); below.
28202    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28203    <limits.h> exists even on freestanding compilers.  */
28204
28205#ifdef __STDC__
28206# include <limits.h>
28207#else
28208# include <assert.h>
28209#endif
28210
28211#undef $ac_func
28212
28213/* Override any GCC internal prototype to avoid an error.
28214   Use char because int might match the return type of a GCC
28215   builtin and then its argument prototype would still apply.  */
28216#ifdef __cplusplus
28217extern "C"
28218#endif
28219char $ac_func ();
28220/* The GNU C library defines this for functions which it implements
28221    to always fail with ENOSYS.  Some functions are actually named
28222    something starting with __ and the normal name is an alias.  */
28223#if defined __stub_$ac_func || defined __stub___$ac_func
28224choke me
28225#endif
28226
28227int
28228main ()
28229{
28230return $ac_func ();
28231  ;
28232  return 0;
28233}
28234_ACEOF
28235rm -f conftest.$ac_objext conftest$ac_exeext
28236if { (ac_try="$ac_link"
28237case "(($ac_try" in
28238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239  *) ac_try_echo=$ac_try;;
28240esac
28241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242  (eval "$ac_link") 2>conftest.er1
28243  ac_status=$?
28244  grep -v '^ *+' conftest.er1 >conftest.err
28245  rm -f conftest.er1
28246  cat conftest.err >&5
28247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248  (exit $ac_status); } && {
28249	 test -z "$ac_c_werror_flag" ||
28250	 test ! -s conftest.err
28251       } && test -s conftest$ac_exeext &&
28252       $as_test_x conftest$ac_exeext; then
28253  eval "$as_ac_var=yes"
28254else
28255  echo "$as_me: failed program was:" >&5
28256sed 's/^/| /' conftest.$ac_ext >&5
28257
28258	eval "$as_ac_var=no"
28259fi
28260
28261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28262      conftest$ac_exeext conftest.$ac_ext
28263fi
28264ac_res=`eval echo '${'$as_ac_var'}'`
28265	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28266echo "${ECHO_T}$ac_res" >&6; }
28267if test `eval echo '${'$as_ac_var'}'` = yes; then
28268  cat >>confdefs.h <<_ACEOF
28269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28270_ACEOF
28271 break
28272fi
28273done
28274
28275
28276
28277for ac_func in strrchr rindex
28278do
28279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28283  echo $ECHO_N "(cached) $ECHO_C" >&6
28284else
28285  cat >conftest.$ac_ext <<_ACEOF
28286/* confdefs.h.  */
28287_ACEOF
28288cat confdefs.h >>conftest.$ac_ext
28289cat >>conftest.$ac_ext <<_ACEOF
28290/* end confdefs.h.  */
28291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28292   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28293#define $ac_func innocuous_$ac_func
28294
28295/* System header to define __stub macros and hopefully few prototypes,
28296    which can conflict with char $ac_func (); below.
28297    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28298    <limits.h> exists even on freestanding compilers.  */
28299
28300#ifdef __STDC__
28301# include <limits.h>
28302#else
28303# include <assert.h>
28304#endif
28305
28306#undef $ac_func
28307
28308/* Override any GCC internal prototype to avoid an error.
28309   Use char because int might match the return type of a GCC
28310   builtin and then its argument prototype would still apply.  */
28311#ifdef __cplusplus
28312extern "C"
28313#endif
28314char $ac_func ();
28315/* The GNU C library defines this for functions which it implements
28316    to always fail with ENOSYS.  Some functions are actually named
28317    something starting with __ and the normal name is an alias.  */
28318#if defined __stub_$ac_func || defined __stub___$ac_func
28319choke me
28320#endif
28321
28322int
28323main ()
28324{
28325return $ac_func ();
28326  ;
28327  return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (ac_try="$ac_link"
28332case "(($ac_try" in
28333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334  *) ac_try_echo=$ac_try;;
28335esac
28336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337  (eval "$ac_link") 2>conftest.er1
28338  ac_status=$?
28339  grep -v '^ *+' conftest.er1 >conftest.err
28340  rm -f conftest.er1
28341  cat conftest.err >&5
28342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343  (exit $ac_status); } && {
28344	 test -z "$ac_c_werror_flag" ||
28345	 test ! -s conftest.err
28346       } && test -s conftest$ac_exeext &&
28347       $as_test_x conftest$ac_exeext; then
28348  eval "$as_ac_var=yes"
28349else
28350  echo "$as_me: failed program was:" >&5
28351sed 's/^/| /' conftest.$ac_ext >&5
28352
28353	eval "$as_ac_var=no"
28354fi
28355
28356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28357      conftest$ac_exeext conftest.$ac_ext
28358fi
28359ac_res=`eval echo '${'$as_ac_var'}'`
28360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28361echo "${ECHO_T}$ac_res" >&6; }
28362if test `eval echo '${'$as_ac_var'}'` = yes; then
28363  cat >>confdefs.h <<_ACEOF
28364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28365_ACEOF
28366 break
28367fi
28368done
28369
28370
28371
28372for ac_func in memcpy bcopy
28373do
28374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28378  echo $ECHO_N "(cached) $ECHO_C" >&6
28379else
28380  cat >conftest.$ac_ext <<_ACEOF
28381/* confdefs.h.  */
28382_ACEOF
28383cat confdefs.h >>conftest.$ac_ext
28384cat >>conftest.$ac_ext <<_ACEOF
28385/* end confdefs.h.  */
28386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28387   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28388#define $ac_func innocuous_$ac_func
28389
28390/* System header to define __stub macros and hopefully few prototypes,
28391    which can conflict with char $ac_func (); below.
28392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28393    <limits.h> exists even on freestanding compilers.  */
28394
28395#ifdef __STDC__
28396# include <limits.h>
28397#else
28398# include <assert.h>
28399#endif
28400
28401#undef $ac_func
28402
28403/* Override any GCC internal prototype to avoid an error.
28404   Use char because int might match the return type of a GCC
28405   builtin and then its argument prototype would still apply.  */
28406#ifdef __cplusplus
28407extern "C"
28408#endif
28409char $ac_func ();
28410/* The GNU C library defines this for functions which it implements
28411    to always fail with ENOSYS.  Some functions are actually named
28412    something starting with __ and the normal name is an alias.  */
28413#if defined __stub_$ac_func || defined __stub___$ac_func
28414choke me
28415#endif
28416
28417int
28418main ()
28419{
28420return $ac_func ();
28421  ;
28422  return 0;
28423}
28424_ACEOF
28425rm -f conftest.$ac_objext conftest$ac_exeext
28426if { (ac_try="$ac_link"
28427case "(($ac_try" in
28428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429  *) ac_try_echo=$ac_try;;
28430esac
28431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432  (eval "$ac_link") 2>conftest.er1
28433  ac_status=$?
28434  grep -v '^ *+' conftest.er1 >conftest.err
28435  rm -f conftest.er1
28436  cat conftest.err >&5
28437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438  (exit $ac_status); } && {
28439	 test -z "$ac_c_werror_flag" ||
28440	 test ! -s conftest.err
28441       } && test -s conftest$ac_exeext &&
28442       $as_test_x conftest$ac_exeext; then
28443  eval "$as_ac_var=yes"
28444else
28445  echo "$as_me: failed program was:" >&5
28446sed 's/^/| /' conftest.$ac_ext >&5
28447
28448	eval "$as_ac_var=no"
28449fi
28450
28451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28452      conftest$ac_exeext conftest.$ac_ext
28453fi
28454ac_res=`eval echo '${'$as_ac_var'}'`
28455	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28456echo "${ECHO_T}$ac_res" >&6; }
28457if test `eval echo '${'$as_ac_var'}'` = yes; then
28458  cat >>confdefs.h <<_ACEOF
28459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28460_ACEOF
28461 break
28462fi
28463done
28464
28465
28466
28467for ac_func in memmove strcmp
28468do
28469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28470{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28472if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28473  echo $ECHO_N "(cached) $ECHO_C" >&6
28474else
28475  cat >conftest.$ac_ext <<_ACEOF
28476/* confdefs.h.  */
28477_ACEOF
28478cat confdefs.h >>conftest.$ac_ext
28479cat >>conftest.$ac_ext <<_ACEOF
28480/* end confdefs.h.  */
28481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28482   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28483#define $ac_func innocuous_$ac_func
28484
28485/* System header to define __stub macros and hopefully few prototypes,
28486    which can conflict with char $ac_func (); below.
28487    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28488    <limits.h> exists even on freestanding compilers.  */
28489
28490#ifdef __STDC__
28491# include <limits.h>
28492#else
28493# include <assert.h>
28494#endif
28495
28496#undef $ac_func
28497
28498/* Override any GCC internal prototype to avoid an error.
28499   Use char because int might match the return type of a GCC
28500   builtin and then its argument prototype would still apply.  */
28501#ifdef __cplusplus
28502extern "C"
28503#endif
28504char $ac_func ();
28505/* The GNU C library defines this for functions which it implements
28506    to always fail with ENOSYS.  Some functions are actually named
28507    something starting with __ and the normal name is an alias.  */
28508#if defined __stub_$ac_func || defined __stub___$ac_func
28509choke me
28510#endif
28511
28512int
28513main ()
28514{
28515return $ac_func ();
28516  ;
28517  return 0;
28518}
28519_ACEOF
28520rm -f conftest.$ac_objext conftest$ac_exeext
28521if { (ac_try="$ac_link"
28522case "(($ac_try" in
28523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524  *) ac_try_echo=$ac_try;;
28525esac
28526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527  (eval "$ac_link") 2>conftest.er1
28528  ac_status=$?
28529  grep -v '^ *+' conftest.er1 >conftest.err
28530  rm -f conftest.er1
28531  cat conftest.err >&5
28532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533  (exit $ac_status); } && {
28534	 test -z "$ac_c_werror_flag" ||
28535	 test ! -s conftest.err
28536       } && test -s conftest$ac_exeext &&
28537       $as_test_x conftest$ac_exeext; then
28538  eval "$as_ac_var=yes"
28539else
28540  echo "$as_me: failed program was:" >&5
28541sed 's/^/| /' conftest.$ac_ext >&5
28542
28543	eval "$as_ac_var=no"
28544fi
28545
28546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28547      conftest$ac_exeext conftest.$ac_ext
28548fi
28549ac_res=`eval echo '${'$as_ac_var'}'`
28550	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28551echo "${ECHO_T}$ac_res" >&6; }
28552if test `eval echo '${'$as_ac_var'}'` = yes; then
28553  cat >>confdefs.h <<_ACEOF
28554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28555_ACEOF
28556
28557fi
28558done
28559
28560
28561
28562
28563for ac_func in closedir opendir readdir
28564do
28565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28569  echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571  cat >conftest.$ac_ext <<_ACEOF
28572/* confdefs.h.  */
28573_ACEOF
28574cat confdefs.h >>conftest.$ac_ext
28575cat >>conftest.$ac_ext <<_ACEOF
28576/* end confdefs.h.  */
28577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28578   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28579#define $ac_func innocuous_$ac_func
28580
28581/* System header to define __stub macros and hopefully few prototypes,
28582    which can conflict with char $ac_func (); below.
28583    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28584    <limits.h> exists even on freestanding compilers.  */
28585
28586#ifdef __STDC__
28587# include <limits.h>
28588#else
28589# include <assert.h>
28590#endif
28591
28592#undef $ac_func
28593
28594/* Override any GCC internal prototype to avoid an error.
28595   Use char because int might match the return type of a GCC
28596   builtin and then its argument prototype would still apply.  */
28597#ifdef __cplusplus
28598extern "C"
28599#endif
28600char $ac_func ();
28601/* The GNU C library defines this for functions which it implements
28602    to always fail with ENOSYS.  Some functions are actually named
28603    something starting with __ and the normal name is an alias.  */
28604#if defined __stub_$ac_func || defined __stub___$ac_func
28605choke me
28606#endif
28607
28608int
28609main ()
28610{
28611return $ac_func ();
28612  ;
28613  return 0;
28614}
28615_ACEOF
28616rm -f conftest.$ac_objext conftest$ac_exeext
28617if { (ac_try="$ac_link"
28618case "(($ac_try" in
28619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620  *) ac_try_echo=$ac_try;;
28621esac
28622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623  (eval "$ac_link") 2>conftest.er1
28624  ac_status=$?
28625  grep -v '^ *+' conftest.er1 >conftest.err
28626  rm -f conftest.er1
28627  cat conftest.err >&5
28628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629  (exit $ac_status); } && {
28630	 test -z "$ac_c_werror_flag" ||
28631	 test ! -s conftest.err
28632       } && test -s conftest$ac_exeext &&
28633       $as_test_x conftest$ac_exeext; then
28634  eval "$as_ac_var=yes"
28635else
28636  echo "$as_me: failed program was:" >&5
28637sed 's/^/| /' conftest.$ac_ext >&5
28638
28639	eval "$as_ac_var=no"
28640fi
28641
28642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28643      conftest$ac_exeext conftest.$ac_ext
28644fi
28645ac_res=`eval echo '${'$as_ac_var'}'`
28646	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28647echo "${ECHO_T}$ac_res" >&6; }
28648if test `eval echo '${'$as_ac_var'}'` = yes; then
28649  cat >>confdefs.h <<_ACEOF
28650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28651_ACEOF
28652
28653fi
28654done
28655
28656
28657
28658
28659# Checks for programs.
28660ac_ext=cpp
28661ac_cpp='$CXXCPP $CPPFLAGS'
28662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28665if test -z "$CXX"; then
28666  if test -n "$CCC"; then
28667    CXX=$CCC
28668  else
28669    if test -n "$ac_tool_prefix"; then
28670  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28671  do
28672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28676if test "${ac_cv_prog_CXX+set}" = set; then
28677  echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679  if test -n "$CXX"; then
28680  ac_cv_prog_CXX="$CXX" # Let the user override the test.
28681else
28682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28683for as_dir in $PATH
28684do
28685  IFS=$as_save_IFS
28686  test -z "$as_dir" && as_dir=.
28687  for ac_exec_ext in '' $ac_executable_extensions; do
28688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28689    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28691    break 2
28692  fi
28693done
28694done
28695IFS=$as_save_IFS
28696
28697fi
28698fi
28699CXX=$ac_cv_prog_CXX
28700if test -n "$CXX"; then
28701  { echo "$as_me:$LINENO: result: $CXX" >&5
28702echo "${ECHO_T}$CXX" >&6; }
28703else
28704  { echo "$as_me:$LINENO: result: no" >&5
28705echo "${ECHO_T}no" >&6; }
28706fi
28707
28708
28709    test -n "$CXX" && break
28710  done
28711fi
28712if test -z "$CXX"; then
28713  ac_ct_CXX=$CXX
28714  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28715do
28716  # Extract the first word of "$ac_prog", so it can be a program name with args.
28717set dummy $ac_prog; ac_word=$2
28718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28720if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
28721  echo $ECHO_N "(cached) $ECHO_C" >&6
28722else
28723  if test -n "$ac_ct_CXX"; then
28724  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28725else
28726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28727for as_dir in $PATH
28728do
28729  IFS=$as_save_IFS
28730  test -z "$as_dir" && as_dir=.
28731  for ac_exec_ext in '' $ac_executable_extensions; do
28732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28733    ac_cv_prog_ac_ct_CXX="$ac_prog"
28734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28735    break 2
28736  fi
28737done
28738done
28739IFS=$as_save_IFS
28740
28741fi
28742fi
28743ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28744if test -n "$ac_ct_CXX"; then
28745  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
28746echo "${ECHO_T}$ac_ct_CXX" >&6; }
28747else
28748  { echo "$as_me:$LINENO: result: no" >&5
28749echo "${ECHO_T}no" >&6; }
28750fi
28751
28752
28753  test -n "$ac_ct_CXX" && break
28754done
28755
28756  if test "x$ac_ct_CXX" = x; then
28757    CXX="g++"
28758  else
28759    case $cross_compiling:$ac_tool_warned in
28760yes:)
28761{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28762whose name does not start with the host triplet.  If you think this
28763configuration is useful to you, please write to autoconf@gnu.org." >&5
28764echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28765whose name does not start with the host triplet.  If you think this
28766configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28767ac_tool_warned=yes ;;
28768esac
28769    CXX=$ac_ct_CXX
28770  fi
28771fi
28772
28773  fi
28774fi
28775# Provide some information about the compiler.
28776echo "$as_me:$LINENO: checking for C++ compiler version" >&5
28777ac_compiler=`set X $ac_compile; echo $2`
28778{ (ac_try="$ac_compiler --version >&5"
28779case "(($ac_try" in
28780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781  *) ac_try_echo=$ac_try;;
28782esac
28783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784  (eval "$ac_compiler --version >&5") 2>&5
28785  ac_status=$?
28786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787  (exit $ac_status); }
28788{ (ac_try="$ac_compiler -v >&5"
28789case "(($ac_try" in
28790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791  *) ac_try_echo=$ac_try;;
28792esac
28793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794  (eval "$ac_compiler -v >&5") 2>&5
28795  ac_status=$?
28796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797  (exit $ac_status); }
28798{ (ac_try="$ac_compiler -V >&5"
28799case "(($ac_try" in
28800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801  *) ac_try_echo=$ac_try;;
28802esac
28803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804  (eval "$ac_compiler -V >&5") 2>&5
28805  ac_status=$?
28806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807  (exit $ac_status); }
28808
28809{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
28810echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
28811if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
28812  echo $ECHO_N "(cached) $ECHO_C" >&6
28813else
28814  cat >conftest.$ac_ext <<_ACEOF
28815/* confdefs.h.  */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h.  */
28820
28821int
28822main ()
28823{
28824#ifndef __GNUC__
28825       choke me
28826#endif
28827
28828  ;
28829  return 0;
28830}
28831_ACEOF
28832rm -f conftest.$ac_objext
28833if { (ac_try="$ac_compile"
28834case "(($ac_try" in
28835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836  *) ac_try_echo=$ac_try;;
28837esac
28838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839  (eval "$ac_compile") 2>conftest.er1
28840  ac_status=$?
28841  grep -v '^ *+' conftest.er1 >conftest.err
28842  rm -f conftest.er1
28843  cat conftest.err >&5
28844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845  (exit $ac_status); } && {
28846	 test -z "$ac_cxx_werror_flag" ||
28847	 test ! -s conftest.err
28848       } && test -s conftest.$ac_objext; then
28849  ac_compiler_gnu=yes
28850else
28851  echo "$as_me: failed program was:" >&5
28852sed 's/^/| /' conftest.$ac_ext >&5
28853
28854	ac_compiler_gnu=no
28855fi
28856
28857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28858ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28859
28860fi
28861{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
28862echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
28863GXX=`test $ac_compiler_gnu = yes && echo yes`
28864ac_test_CXXFLAGS=${CXXFLAGS+set}
28865ac_save_CXXFLAGS=$CXXFLAGS
28866{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
28867echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
28868if test "${ac_cv_prog_cxx_g+set}" = set; then
28869  echo $ECHO_N "(cached) $ECHO_C" >&6
28870else
28871  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
28872   ac_cxx_werror_flag=yes
28873   ac_cv_prog_cxx_g=no
28874   CXXFLAGS="-g"
28875   cat >conftest.$ac_ext <<_ACEOF
28876/* confdefs.h.  */
28877_ACEOF
28878cat confdefs.h >>conftest.$ac_ext
28879cat >>conftest.$ac_ext <<_ACEOF
28880/* end confdefs.h.  */
28881
28882int
28883main ()
28884{
28885
28886  ;
28887  return 0;
28888}
28889_ACEOF
28890rm -f conftest.$ac_objext
28891if { (ac_try="$ac_compile"
28892case "(($ac_try" in
28893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894  *) ac_try_echo=$ac_try;;
28895esac
28896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897  (eval "$ac_compile") 2>conftest.er1
28898  ac_status=$?
28899  grep -v '^ *+' conftest.er1 >conftest.err
28900  rm -f conftest.er1
28901  cat conftest.err >&5
28902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903  (exit $ac_status); } && {
28904	 test -z "$ac_cxx_werror_flag" ||
28905	 test ! -s conftest.err
28906       } && test -s conftest.$ac_objext; then
28907  ac_cv_prog_cxx_g=yes
28908else
28909  echo "$as_me: failed program was:" >&5
28910sed 's/^/| /' conftest.$ac_ext >&5
28911
28912	CXXFLAGS=""
28913      cat >conftest.$ac_ext <<_ACEOF
28914/* confdefs.h.  */
28915_ACEOF
28916cat confdefs.h >>conftest.$ac_ext
28917cat >>conftest.$ac_ext <<_ACEOF
28918/* end confdefs.h.  */
28919
28920int
28921main ()
28922{
28923
28924  ;
28925  return 0;
28926}
28927_ACEOF
28928rm -f conftest.$ac_objext
28929if { (ac_try="$ac_compile"
28930case "(($ac_try" in
28931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28932  *) ac_try_echo=$ac_try;;
28933esac
28934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28935  (eval "$ac_compile") 2>conftest.er1
28936  ac_status=$?
28937  grep -v '^ *+' conftest.er1 >conftest.err
28938  rm -f conftest.er1
28939  cat conftest.err >&5
28940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941  (exit $ac_status); } && {
28942	 test -z "$ac_cxx_werror_flag" ||
28943	 test ! -s conftest.err
28944       } && test -s conftest.$ac_objext; then
28945  :
28946else
28947  echo "$as_me: failed program was:" >&5
28948sed 's/^/| /' conftest.$ac_ext >&5
28949
28950	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28951	 CXXFLAGS="-g"
28952	 cat >conftest.$ac_ext <<_ACEOF
28953/* confdefs.h.  */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h.  */
28958
28959int
28960main ()
28961{
28962
28963  ;
28964  return 0;
28965}
28966_ACEOF
28967rm -f conftest.$ac_objext
28968if { (ac_try="$ac_compile"
28969case "(($ac_try" in
28970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971  *) ac_try_echo=$ac_try;;
28972esac
28973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28974  (eval "$ac_compile") 2>conftest.er1
28975  ac_status=$?
28976  grep -v '^ *+' conftest.er1 >conftest.err
28977  rm -f conftest.er1
28978  cat conftest.err >&5
28979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980  (exit $ac_status); } && {
28981	 test -z "$ac_cxx_werror_flag" ||
28982	 test ! -s conftest.err
28983       } && test -s conftest.$ac_objext; then
28984  ac_cv_prog_cxx_g=yes
28985else
28986  echo "$as_me: failed program was:" >&5
28987sed 's/^/| /' conftest.$ac_ext >&5
28988
28989
28990fi
28991
28992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28993fi
28994
28995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28996fi
28997
28998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28999   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
29000fi
29001{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
29002echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
29003if test "$ac_test_CXXFLAGS" = set; then
29004  CXXFLAGS=$ac_save_CXXFLAGS
29005elif test $ac_cv_prog_cxx_g = yes; then
29006  if test "$GXX" = yes; then
29007    CXXFLAGS="-g -O2"
29008  else
29009    CXXFLAGS="-g"
29010  fi
29011else
29012  if test "$GXX" = yes; then
29013    CXXFLAGS="-O2"
29014  else
29015    CXXFLAGS=
29016  fi
29017fi
29018ac_ext=c
29019ac_cpp='$CPP $CPPFLAGS'
29020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29022ac_compiler_gnu=$ac_cv_c_compiler_gnu
29023
29024depcc="$CXX"  am_compiler_list=
29025
29026{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29027echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
29028if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
29029  echo $ECHO_N "(cached) $ECHO_C" >&6
29030else
29031  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29032  # We make a subdir and do the tests there.  Otherwise we can end up
29033  # making bogus files that we don't know about and never remove.  For
29034  # instance it was reported that on HP-UX the gcc test will end up
29035  # making a dummy file named `D' -- because `-MD' means `put the output
29036  # in D'.
29037  mkdir conftest.dir
29038  # Copy depcomp to subdir because otherwise we won't find it if we're
29039  # using a relative directory.
29040  cp "$am_depcomp" conftest.dir
29041  cd conftest.dir
29042  # We will build objects and dependencies in a subdirectory because
29043  # it helps to detect inapplicable dependency modes.  For instance
29044  # both Tru64's cc and ICC support -MD to output dependencies as a
29045  # side effect of compilation, but ICC will put the dependencies in
29046  # the current directory while Tru64 will put them in the object
29047  # directory.
29048  mkdir sub
29049
29050  am_cv_CXX_dependencies_compiler_type=none
29051  if test "$am_compiler_list" = ""; then
29052     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29053  fi
29054  for depmode in $am_compiler_list; do
29055    # Setup a source with many dependencies, because some compilers
29056    # like to wrap large dependency lists on column 80 (with \), and
29057    # we should not choose a depcomp mode which is confused by this.
29058    #
29059    # We need to recreate these files for each test, as the compiler may
29060    # overwrite some of them when testing with obscure command lines.
29061    # This happens at least with the AIX C compiler.
29062    : > sub/conftest.c
29063    for i in 1 2 3 4 5 6; do
29064      echo '#include "conftst'$i'.h"' >> sub/conftest.c
29065      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
29066      # Solaris 8's {/usr,}/bin/sh.
29067      touch sub/conftst$i.h
29068    done
29069    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29070
29071    case $depmode in
29072    nosideeffect)
29073      # after this tag, mechanisms are not by side-effect, so they'll
29074      # only be used when explicitly requested
29075      if test "x$enable_dependency_tracking" = xyes; then
29076	continue
29077      else
29078	break
29079      fi
29080      ;;
29081    none) break ;;
29082    esac
29083    # We check with `-c' and `-o' for the sake of the "dashmstdout"
29084    # mode.  It turns out that the SunPro C++ compiler does not properly
29085    # handle `-M -o', and we need to detect this.
29086    if depmode=$depmode \
29087       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
29088       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29089       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
29090         >/dev/null 2>conftest.err &&
29091       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
29092       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29093       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
29094       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29095      # icc doesn't choke on unknown options, it will just issue warnings
29096      # or remarks (even with -Werror).  So we grep stderr for any message
29097      # that says an option was ignored or not supported.
29098      # When given -MP, icc 7.0 and 7.1 complain thusly:
29099      #   icc: Command line warning: ignoring option '-M'; no argument required
29100      # The diagnosis changed in icc 8.0:
29101      #   icc: Command line remark: option '-MP' not supported
29102      if (grep 'ignoring option' conftest.err ||
29103          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29104        am_cv_CXX_dependencies_compiler_type=$depmode
29105        break
29106      fi
29107    fi
29108  done
29109
29110  cd ..
29111  rm -rf conftest.dir
29112else
29113  am_cv_CXX_dependencies_compiler_type=none
29114fi
29115
29116fi
29117{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
29118echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
29119CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
29120
29121 if
29122  test "x$enable_dependency_tracking" != xno \
29123  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
29124  am__fastdepCXX_TRUE=
29125  am__fastdepCXX_FALSE='#'
29126else
29127  am__fastdepCXX_TRUE='#'
29128  am__fastdepCXX_FALSE=
29129fi
29130
29131
29132ac_ext=c
29133ac_cpp='$CPP $CPPFLAGS'
29134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29136ac_compiler_gnu=$ac_cv_c_compiler_gnu
29137if test -n "$ac_tool_prefix"; then
29138  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
29139set dummy ${ac_tool_prefix}gcc; ac_word=$2
29140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29142if test "${ac_cv_prog_CC+set}" = set; then
29143  echo $ECHO_N "(cached) $ECHO_C" >&6
29144else
29145  if test -n "$CC"; then
29146  ac_cv_prog_CC="$CC" # Let the user override the test.
29147else
29148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29149for as_dir in $PATH
29150do
29151  IFS=$as_save_IFS
29152  test -z "$as_dir" && as_dir=.
29153  for ac_exec_ext in '' $ac_executable_extensions; do
29154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29155    ac_cv_prog_CC="${ac_tool_prefix}gcc"
29156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29157    break 2
29158  fi
29159done
29160done
29161IFS=$as_save_IFS
29162
29163fi
29164fi
29165CC=$ac_cv_prog_CC
29166if test -n "$CC"; then
29167  { echo "$as_me:$LINENO: result: $CC" >&5
29168echo "${ECHO_T}$CC" >&6; }
29169else
29170  { echo "$as_me:$LINENO: result: no" >&5
29171echo "${ECHO_T}no" >&6; }
29172fi
29173
29174
29175fi
29176if test -z "$ac_cv_prog_CC"; then
29177  ac_ct_CC=$CC
29178  # Extract the first word of "gcc", so it can be a program name with args.
29179set dummy gcc; ac_word=$2
29180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
29183  echo $ECHO_N "(cached) $ECHO_C" >&6
29184else
29185  if test -n "$ac_ct_CC"; then
29186  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29187else
29188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29189for as_dir in $PATH
29190do
29191  IFS=$as_save_IFS
29192  test -z "$as_dir" && as_dir=.
29193  for ac_exec_ext in '' $ac_executable_extensions; do
29194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29195    ac_cv_prog_ac_ct_CC="gcc"
29196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29197    break 2
29198  fi
29199done
29200done
29201IFS=$as_save_IFS
29202
29203fi
29204fi
29205ac_ct_CC=$ac_cv_prog_ac_ct_CC
29206if test -n "$ac_ct_CC"; then
29207  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
29208echo "${ECHO_T}$ac_ct_CC" >&6; }
29209else
29210  { echo "$as_me:$LINENO: result: no" >&5
29211echo "${ECHO_T}no" >&6; }
29212fi
29213
29214  if test "x$ac_ct_CC" = x; then
29215    CC=""
29216  else
29217    case $cross_compiling:$ac_tool_warned in
29218yes:)
29219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29220whose name does not start with the host triplet.  If you think this
29221configuration is useful to you, please write to autoconf@gnu.org." >&5
29222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29223whose name does not start with the host triplet.  If you think this
29224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29225ac_tool_warned=yes ;;
29226esac
29227    CC=$ac_ct_CC
29228  fi
29229else
29230  CC="$ac_cv_prog_CC"
29231fi
29232
29233if test -z "$CC"; then
29234          if test -n "$ac_tool_prefix"; then
29235    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
29236set dummy ${ac_tool_prefix}cc; ac_word=$2
29237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29239if test "${ac_cv_prog_CC+set}" = set; then
29240  echo $ECHO_N "(cached) $ECHO_C" >&6
29241else
29242  if test -n "$CC"; then
29243  ac_cv_prog_CC="$CC" # Let the user override the test.
29244else
29245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29246for as_dir in $PATH
29247do
29248  IFS=$as_save_IFS
29249  test -z "$as_dir" && as_dir=.
29250  for ac_exec_ext in '' $ac_executable_extensions; do
29251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29252    ac_cv_prog_CC="${ac_tool_prefix}cc"
29253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29254    break 2
29255  fi
29256done
29257done
29258IFS=$as_save_IFS
29259
29260fi
29261fi
29262CC=$ac_cv_prog_CC
29263if test -n "$CC"; then
29264  { echo "$as_me:$LINENO: result: $CC" >&5
29265echo "${ECHO_T}$CC" >&6; }
29266else
29267  { echo "$as_me:$LINENO: result: no" >&5
29268echo "${ECHO_T}no" >&6; }
29269fi
29270
29271
29272  fi
29273fi
29274if test -z "$CC"; then
29275  # Extract the first word of "cc", so it can be a program name with args.
29276set dummy cc; ac_word=$2
29277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29279if test "${ac_cv_prog_CC+set}" = set; then
29280  echo $ECHO_N "(cached) $ECHO_C" >&6
29281else
29282  if test -n "$CC"; then
29283  ac_cv_prog_CC="$CC" # Let the user override the test.
29284else
29285  ac_prog_rejected=no
29286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29287for as_dir in $PATH
29288do
29289  IFS=$as_save_IFS
29290  test -z "$as_dir" && as_dir=.
29291  for ac_exec_ext in '' $ac_executable_extensions; do
29292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29293    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
29294       ac_prog_rejected=yes
29295       continue
29296     fi
29297    ac_cv_prog_CC="cc"
29298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29299    break 2
29300  fi
29301done
29302done
29303IFS=$as_save_IFS
29304
29305if test $ac_prog_rejected = yes; then
29306  # We found a bogon in the path, so make sure we never use it.
29307  set dummy $ac_cv_prog_CC
29308  shift
29309  if test $# != 0; then
29310    # We chose a different compiler from the bogus one.
29311    # However, it has the same basename, so the bogon will be chosen
29312    # first if we set CC to just the basename; use the full file name.
29313    shift
29314    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
29315  fi
29316fi
29317fi
29318fi
29319CC=$ac_cv_prog_CC
29320if test -n "$CC"; then
29321  { echo "$as_me:$LINENO: result: $CC" >&5
29322echo "${ECHO_T}$CC" >&6; }
29323else
29324  { echo "$as_me:$LINENO: result: no" >&5
29325echo "${ECHO_T}no" >&6; }
29326fi
29327
29328
29329fi
29330if test -z "$CC"; then
29331  if test -n "$ac_tool_prefix"; then
29332  for ac_prog in cl.exe
29333  do
29334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29338if test "${ac_cv_prog_CC+set}" = set; then
29339  echo $ECHO_N "(cached) $ECHO_C" >&6
29340else
29341  if test -n "$CC"; then
29342  ac_cv_prog_CC="$CC" # Let the user override the test.
29343else
29344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29345for as_dir in $PATH
29346do
29347  IFS=$as_save_IFS
29348  test -z "$as_dir" && as_dir=.
29349  for ac_exec_ext in '' $ac_executable_extensions; do
29350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29351    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29353    break 2
29354  fi
29355done
29356done
29357IFS=$as_save_IFS
29358
29359fi
29360fi
29361CC=$ac_cv_prog_CC
29362if test -n "$CC"; then
29363  { echo "$as_me:$LINENO: result: $CC" >&5
29364echo "${ECHO_T}$CC" >&6; }
29365else
29366  { echo "$as_me:$LINENO: result: no" >&5
29367echo "${ECHO_T}no" >&6; }
29368fi
29369
29370
29371    test -n "$CC" && break
29372  done
29373fi
29374if test -z "$CC"; then
29375  ac_ct_CC=$CC
29376  for ac_prog in cl.exe
29377do
29378  # Extract the first word of "$ac_prog", so it can be a program name with args.
29379set dummy $ac_prog; ac_word=$2
29380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
29383  echo $ECHO_N "(cached) $ECHO_C" >&6
29384else
29385  if test -n "$ac_ct_CC"; then
29386  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29387else
29388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29389for as_dir in $PATH
29390do
29391  IFS=$as_save_IFS
29392  test -z "$as_dir" && as_dir=.
29393  for ac_exec_ext in '' $ac_executable_extensions; do
29394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29395    ac_cv_prog_ac_ct_CC="$ac_prog"
29396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29397    break 2
29398  fi
29399done
29400done
29401IFS=$as_save_IFS
29402
29403fi
29404fi
29405ac_ct_CC=$ac_cv_prog_ac_ct_CC
29406if test -n "$ac_ct_CC"; then
29407  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
29408echo "${ECHO_T}$ac_ct_CC" >&6; }
29409else
29410  { echo "$as_me:$LINENO: result: no" >&5
29411echo "${ECHO_T}no" >&6; }
29412fi
29413
29414
29415  test -n "$ac_ct_CC" && break
29416done
29417
29418  if test "x$ac_ct_CC" = x; then
29419    CC=""
29420  else
29421    case $cross_compiling:$ac_tool_warned in
29422yes:)
29423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29424whose name does not start with the host triplet.  If you think this
29425configuration is useful to you, please write to autoconf@gnu.org." >&5
29426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29427whose name does not start with the host triplet.  If you think this
29428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29429ac_tool_warned=yes ;;
29430esac
29431    CC=$ac_ct_CC
29432  fi
29433fi
29434
29435fi
29436
29437
29438test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
29439See \`config.log' for more details." >&5
29440echo "$as_me: error: no acceptable C compiler found in \$PATH
29441See \`config.log' for more details." >&2;}
29442   { (exit 1); exit 1; }; }
29443
29444# Provide some information about the compiler.
29445echo "$as_me:$LINENO: checking for C compiler version" >&5
29446ac_compiler=`set X $ac_compile; echo $2`
29447{ (ac_try="$ac_compiler --version >&5"
29448case "(($ac_try" in
29449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450  *) ac_try_echo=$ac_try;;
29451esac
29452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453  (eval "$ac_compiler --version >&5") 2>&5
29454  ac_status=$?
29455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456  (exit $ac_status); }
29457{ (ac_try="$ac_compiler -v >&5"
29458case "(($ac_try" in
29459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460  *) ac_try_echo=$ac_try;;
29461esac
29462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463  (eval "$ac_compiler -v >&5") 2>&5
29464  ac_status=$?
29465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466  (exit $ac_status); }
29467{ (ac_try="$ac_compiler -V >&5"
29468case "(($ac_try" in
29469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470  *) ac_try_echo=$ac_try;;
29471esac
29472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473  (eval "$ac_compiler -V >&5") 2>&5
29474  ac_status=$?
29475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476  (exit $ac_status); }
29477
29478{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
29479echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
29480if test "${ac_cv_c_compiler_gnu+set}" = set; then
29481  echo $ECHO_N "(cached) $ECHO_C" >&6
29482else
29483  cat >conftest.$ac_ext <<_ACEOF
29484/* confdefs.h.  */
29485_ACEOF
29486cat confdefs.h >>conftest.$ac_ext
29487cat >>conftest.$ac_ext <<_ACEOF
29488/* end confdefs.h.  */
29489
29490int
29491main ()
29492{
29493#ifndef __GNUC__
29494       choke me
29495#endif
29496
29497  ;
29498  return 0;
29499}
29500_ACEOF
29501rm -f conftest.$ac_objext
29502if { (ac_try="$ac_compile"
29503case "(($ac_try" in
29504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505  *) ac_try_echo=$ac_try;;
29506esac
29507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508  (eval "$ac_compile") 2>conftest.er1
29509  ac_status=$?
29510  grep -v '^ *+' conftest.er1 >conftest.err
29511  rm -f conftest.er1
29512  cat conftest.err >&5
29513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514  (exit $ac_status); } && {
29515	 test -z "$ac_c_werror_flag" ||
29516	 test ! -s conftest.err
29517       } && test -s conftest.$ac_objext; then
29518  ac_compiler_gnu=yes
29519else
29520  echo "$as_me: failed program was:" >&5
29521sed 's/^/| /' conftest.$ac_ext >&5
29522
29523	ac_compiler_gnu=no
29524fi
29525
29526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29527ac_cv_c_compiler_gnu=$ac_compiler_gnu
29528
29529fi
29530{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
29531echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
29532GCC=`test $ac_compiler_gnu = yes && echo yes`
29533ac_test_CFLAGS=${CFLAGS+set}
29534ac_save_CFLAGS=$CFLAGS
29535{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
29536echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
29537if test "${ac_cv_prog_cc_g+set}" = set; then
29538  echo $ECHO_N "(cached) $ECHO_C" >&6
29539else
29540  ac_save_c_werror_flag=$ac_c_werror_flag
29541   ac_c_werror_flag=yes
29542   ac_cv_prog_cc_g=no
29543   CFLAGS="-g"
29544   cat >conftest.$ac_ext <<_ACEOF
29545/* confdefs.h.  */
29546_ACEOF
29547cat confdefs.h >>conftest.$ac_ext
29548cat >>conftest.$ac_ext <<_ACEOF
29549/* end confdefs.h.  */
29550
29551int
29552main ()
29553{
29554
29555  ;
29556  return 0;
29557}
29558_ACEOF
29559rm -f conftest.$ac_objext
29560if { (ac_try="$ac_compile"
29561case "(($ac_try" in
29562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563  *) ac_try_echo=$ac_try;;
29564esac
29565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566  (eval "$ac_compile") 2>conftest.er1
29567  ac_status=$?
29568  grep -v '^ *+' conftest.er1 >conftest.err
29569  rm -f conftest.er1
29570  cat conftest.err >&5
29571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572  (exit $ac_status); } && {
29573	 test -z "$ac_c_werror_flag" ||
29574	 test ! -s conftest.err
29575       } && test -s conftest.$ac_objext; then
29576  ac_cv_prog_cc_g=yes
29577else
29578  echo "$as_me: failed program was:" >&5
29579sed 's/^/| /' conftest.$ac_ext >&5
29580
29581	CFLAGS=""
29582      cat >conftest.$ac_ext <<_ACEOF
29583/* confdefs.h.  */
29584_ACEOF
29585cat confdefs.h >>conftest.$ac_ext
29586cat >>conftest.$ac_ext <<_ACEOF
29587/* end confdefs.h.  */
29588
29589int
29590main ()
29591{
29592
29593  ;
29594  return 0;
29595}
29596_ACEOF
29597rm -f conftest.$ac_objext
29598if { (ac_try="$ac_compile"
29599case "(($ac_try" in
29600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601  *) ac_try_echo=$ac_try;;
29602esac
29603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604  (eval "$ac_compile") 2>conftest.er1
29605  ac_status=$?
29606  grep -v '^ *+' conftest.er1 >conftest.err
29607  rm -f conftest.er1
29608  cat conftest.err >&5
29609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610  (exit $ac_status); } && {
29611	 test -z "$ac_c_werror_flag" ||
29612	 test ! -s conftest.err
29613       } && test -s conftest.$ac_objext; then
29614  :
29615else
29616  echo "$as_me: failed program was:" >&5
29617sed 's/^/| /' conftest.$ac_ext >&5
29618
29619	ac_c_werror_flag=$ac_save_c_werror_flag
29620	 CFLAGS="-g"
29621	 cat >conftest.$ac_ext <<_ACEOF
29622/* confdefs.h.  */
29623_ACEOF
29624cat confdefs.h >>conftest.$ac_ext
29625cat >>conftest.$ac_ext <<_ACEOF
29626/* end confdefs.h.  */
29627
29628int
29629main ()
29630{
29631
29632  ;
29633  return 0;
29634}
29635_ACEOF
29636rm -f conftest.$ac_objext
29637if { (ac_try="$ac_compile"
29638case "(($ac_try" in
29639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640  *) ac_try_echo=$ac_try;;
29641esac
29642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29643  (eval "$ac_compile") 2>conftest.er1
29644  ac_status=$?
29645  grep -v '^ *+' conftest.er1 >conftest.err
29646  rm -f conftest.er1
29647  cat conftest.err >&5
29648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649  (exit $ac_status); } && {
29650	 test -z "$ac_c_werror_flag" ||
29651	 test ! -s conftest.err
29652       } && test -s conftest.$ac_objext; then
29653  ac_cv_prog_cc_g=yes
29654else
29655  echo "$as_me: failed program was:" >&5
29656sed 's/^/| /' conftest.$ac_ext >&5
29657
29658
29659fi
29660
29661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29662fi
29663
29664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665fi
29666
29667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29668   ac_c_werror_flag=$ac_save_c_werror_flag
29669fi
29670{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
29671echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
29672if test "$ac_test_CFLAGS" = set; then
29673  CFLAGS=$ac_save_CFLAGS
29674elif test $ac_cv_prog_cc_g = yes; then
29675  if test "$GCC" = yes; then
29676    CFLAGS="-g -O2"
29677  else
29678    CFLAGS="-g"
29679  fi
29680else
29681  if test "$GCC" = yes; then
29682    CFLAGS="-O2"
29683  else
29684    CFLAGS=
29685  fi
29686fi
29687{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
29688echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
29689if test "${ac_cv_prog_cc_c89+set}" = set; then
29690  echo $ECHO_N "(cached) $ECHO_C" >&6
29691else
29692  ac_cv_prog_cc_c89=no
29693ac_save_CC=$CC
29694cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h.  */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h.  */
29700#include <stdarg.h>
29701#include <stdio.h>
29702#include <sys/types.h>
29703#include <sys/stat.h>
29704/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29705struct buf { int x; };
29706FILE * (*rcsopen) (struct buf *, struct stat *, int);
29707static char *e (p, i)
29708     char **p;
29709     int i;
29710{
29711  return p[i];
29712}
29713static char *f (char * (*g) (char **, int), char **p, ...)
29714{
29715  char *s;
29716  va_list v;
29717  va_start (v,p);
29718  s = g (p, va_arg (v,int));
29719  va_end (v);
29720  return s;
29721}
29722
29723/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29724   function prototypes and stuff, but not '\xHH' hex character constants.
29725   These don't provoke an error unfortunately, instead are silently treated
29726   as 'x'.  The following induces an error, until -std is added to get
29727   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29728   array size at least.  It's necessary to write '\x00'==0 to get something
29729   that's true only with -std.  */
29730int osf4_cc_array ['\x00' == 0 ? 1 : -1];
29731
29732/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
29733   inside strings and character constants.  */
29734#define FOO(x) 'x'
29735int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
29736
29737int test (int i, double x);
29738struct s1 {int (*f) (int a);};
29739struct s2 {int (*f) (double a);};
29740int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
29741int argc;
29742char **argv;
29743int
29744main ()
29745{
29746return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
29747  ;
29748  return 0;
29749}
29750_ACEOF
29751for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
29752	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
29753do
29754  CC="$ac_save_CC $ac_arg"
29755  rm -f conftest.$ac_objext
29756if { (ac_try="$ac_compile"
29757case "(($ac_try" in
29758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759  *) ac_try_echo=$ac_try;;
29760esac
29761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762  (eval "$ac_compile") 2>conftest.er1
29763  ac_status=$?
29764  grep -v '^ *+' conftest.er1 >conftest.err
29765  rm -f conftest.er1
29766  cat conftest.err >&5
29767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768  (exit $ac_status); } && {
29769	 test -z "$ac_c_werror_flag" ||
29770	 test ! -s conftest.err
29771       } && test -s conftest.$ac_objext; then
29772  ac_cv_prog_cc_c89=$ac_arg
29773else
29774  echo "$as_me: failed program was:" >&5
29775sed 's/^/| /' conftest.$ac_ext >&5
29776
29777
29778fi
29779
29780rm -f core conftest.err conftest.$ac_objext
29781  test "x$ac_cv_prog_cc_c89" != "xno" && break
29782done
29783rm -f conftest.$ac_ext
29784CC=$ac_save_CC
29785
29786fi
29787# AC_CACHE_VAL
29788case "x$ac_cv_prog_cc_c89" in
29789  x)
29790    { echo "$as_me:$LINENO: result: none needed" >&5
29791echo "${ECHO_T}none needed" >&6; } ;;
29792  xno)
29793    { echo "$as_me:$LINENO: result: unsupported" >&5
29794echo "${ECHO_T}unsupported" >&6; } ;;
29795  *)
29796    CC="$CC $ac_cv_prog_cc_c89"
29797    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
29798echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
29799esac
29800
29801
29802ac_ext=c
29803ac_cpp='$CPP $CPPFLAGS'
29804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29806ac_compiler_gnu=$ac_cv_c_compiler_gnu
29807
29808depcc="$CC"   am_compiler_list=
29809
29810{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29811echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
29812if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
29813  echo $ECHO_N "(cached) $ECHO_C" >&6
29814else
29815  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29816  # We make a subdir and do the tests there.  Otherwise we can end up
29817  # making bogus files that we don't know about and never remove.  For
29818  # instance it was reported that on HP-UX the gcc test will end up
29819  # making a dummy file named `D' -- because `-MD' means `put the output
29820  # in D'.
29821  mkdir conftest.dir
29822  # Copy depcomp to subdir because otherwise we won't find it if we're
29823  # using a relative directory.
29824  cp "$am_depcomp" conftest.dir
29825  cd conftest.dir
29826  # We will build objects and dependencies in a subdirectory because
29827  # it helps to detect inapplicable dependency modes.  For instance
29828  # both Tru64's cc and ICC support -MD to output dependencies as a
29829  # side effect of compilation, but ICC will put the dependencies in
29830  # the current directory while Tru64 will put them in the object
29831  # directory.
29832  mkdir sub
29833
29834  am_cv_CC_dependencies_compiler_type=none
29835  if test "$am_compiler_list" = ""; then
29836     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29837  fi
29838  for depmode in $am_compiler_list; do
29839    # Setup a source with many dependencies, because some compilers
29840    # like to wrap large dependency lists on column 80 (with \), and
29841    # we should not choose a depcomp mode which is confused by this.
29842    #
29843    # We need to recreate these files for each test, as the compiler may
29844    # overwrite some of them when testing with obscure command lines.
29845    # This happens at least with the AIX C compiler.
29846    : > sub/conftest.c
29847    for i in 1 2 3 4 5 6; do
29848      echo '#include "conftst'$i'.h"' >> sub/conftest.c
29849      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
29850      # Solaris 8's {/usr,}/bin/sh.
29851      touch sub/conftst$i.h
29852    done
29853    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29854
29855    case $depmode in
29856    nosideeffect)
29857      # after this tag, mechanisms are not by side-effect, so they'll
29858      # only be used when explicitly requested
29859      if test "x$enable_dependency_tracking" = xyes; then
29860	continue
29861      else
29862	break
29863      fi
29864      ;;
29865    none) break ;;
29866    esac
29867    # We check with `-c' and `-o' for the sake of the "dashmstdout"
29868    # mode.  It turns out that the SunPro C++ compiler does not properly
29869    # handle `-M -o', and we need to detect this.
29870    if depmode=$depmode \
29871       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
29872       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29873       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
29874         >/dev/null 2>conftest.err &&
29875       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
29876       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29877       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
29878       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29879      # icc doesn't choke on unknown options, it will just issue warnings
29880      # or remarks (even with -Werror).  So we grep stderr for any message
29881      # that says an option was ignored or not supported.
29882      # When given -MP, icc 7.0 and 7.1 complain thusly:
29883      #   icc: Command line warning: ignoring option '-M'; no argument required
29884      # The diagnosis changed in icc 8.0:
29885      #   icc: Command line remark: option '-MP' not supported
29886      if (grep 'ignoring option' conftest.err ||
29887          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29888        am_cv_CC_dependencies_compiler_type=$depmode
29889        break
29890      fi
29891    fi
29892  done
29893
29894  cd ..
29895  rm -rf conftest.dir
29896else
29897  am_cv_CC_dependencies_compiler_type=none
29898fi
29899
29900fi
29901{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29902echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
29903CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
29904
29905 if
29906  test "x$enable_dependency_tracking" != xno \
29907  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
29908  am__fastdepCC_TRUE=
29909  am__fastdepCC_FALSE='#'
29910else
29911  am__fastdepCC_TRUE='#'
29912  am__fastdepCC_FALSE=
29913fi
29914
29915
29916ac_ext=cpp
29917ac_cpp='$CXXCPP $CPPFLAGS'
29918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29921
29922
29923{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29924echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
29925if test "${ac_cv_c_const+set}" = set; then
29926  echo $ECHO_N "(cached) $ECHO_C" >&6
29927else
29928  cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h.  */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h.  */
29934
29935int
29936main ()
29937{
29938/* FIXME: Include the comments suggested by Paul. */
29939#ifndef __cplusplus
29940  /* Ultrix mips cc rejects this.  */
29941  typedef int charset[2];
29942  const charset cs;
29943  /* SunOS 4.1.1 cc rejects this.  */
29944  char const *const *pcpcc;
29945  char **ppc;
29946  /* NEC SVR4.0.2 mips cc rejects this.  */
29947  struct point {int x, y;};
29948  static struct point const zero = {0,0};
29949  /* AIX XL C 1.02.0.0 rejects this.
29950     It does not let you subtract one const X* pointer from another in
29951     an arm of an if-expression whose if-part is not a constant
29952     expression */
29953  const char *g = "string";
29954  pcpcc = &g + (g ? g-g : 0);
29955  /* HPUX 7.0 cc rejects these. */
29956  ++pcpcc;
29957  ppc = (char**) pcpcc;
29958  pcpcc = (char const *const *) ppc;
29959  { /* SCO 3.2v4 cc rejects this.  */
29960    char *t;
29961    char const *s = 0 ? (char *) 0 : (char const *) 0;
29962
29963    *t++ = 0;
29964    if (s) return 0;
29965  }
29966  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29967    int x[] = {25, 17};
29968    const int *foo = &x[0];
29969    ++foo;
29970  }
29971  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29972    typedef const int *iptr;
29973    iptr p = 0;
29974    ++p;
29975  }
29976  { /* AIX XL C 1.02.0.0 rejects this saying
29977       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29978    struct s { int j; const int *ap[3]; };
29979    struct s *b; b->j = 5;
29980  }
29981  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29982    const int foo = 10;
29983    if (!foo) return 0;
29984  }
29985  return !cs[0] && !zero.x;
29986#endif
29987
29988  ;
29989  return 0;
29990}
29991_ACEOF
29992rm -f conftest.$ac_objext
29993if { (ac_try="$ac_compile"
29994case "(($ac_try" in
29995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996  *) ac_try_echo=$ac_try;;
29997esac
29998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999  (eval "$ac_compile") 2>conftest.er1
30000  ac_status=$?
30001  grep -v '^ *+' conftest.er1 >conftest.err
30002  rm -f conftest.er1
30003  cat conftest.err >&5
30004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005  (exit $ac_status); } && {
30006	 test -z "$ac_cxx_werror_flag" ||
30007	 test ! -s conftest.err
30008       } && test -s conftest.$ac_objext; then
30009  ac_cv_c_const=yes
30010else
30011  echo "$as_me: failed program was:" >&5
30012sed 's/^/| /' conftest.$ac_ext >&5
30013
30014	ac_cv_c_const=no
30015fi
30016
30017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30018fi
30019{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30020echo "${ECHO_T}$ac_cv_c_const" >&6; }
30021if test $ac_cv_c_const = no; then
30022
30023cat >>confdefs.h <<\_ACEOF
30024#define const
30025_ACEOF
30026
30027fi
30028
30029{ echo "$as_me:$LINENO: checking for size_t" >&5
30030echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30031if test "${ac_cv_type_size_t+set}" = set; then
30032  echo $ECHO_N "(cached) $ECHO_C" >&6
30033else
30034  cat >conftest.$ac_ext <<_ACEOF
30035/* confdefs.h.  */
30036_ACEOF
30037cat confdefs.h >>conftest.$ac_ext
30038cat >>conftest.$ac_ext <<_ACEOF
30039/* end confdefs.h.  */
30040$ac_includes_default
30041typedef size_t ac__type_new_;
30042int
30043main ()
30044{
30045if ((ac__type_new_ *) 0)
30046  return 0;
30047if (sizeof (ac__type_new_))
30048  return 0;
30049  ;
30050  return 0;
30051}
30052_ACEOF
30053rm -f conftest.$ac_objext
30054if { (ac_try="$ac_compile"
30055case "(($ac_try" in
30056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057  *) ac_try_echo=$ac_try;;
30058esac
30059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060  (eval "$ac_compile") 2>conftest.er1
30061  ac_status=$?
30062  grep -v '^ *+' conftest.er1 >conftest.err
30063  rm -f conftest.er1
30064  cat conftest.err >&5
30065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066  (exit $ac_status); } && {
30067	 test -z "$ac_cxx_werror_flag" ||
30068	 test ! -s conftest.err
30069       } && test -s conftest.$ac_objext; then
30070  ac_cv_type_size_t=yes
30071else
30072  echo "$as_me: failed program was:" >&5
30073sed 's/^/| /' conftest.$ac_ext >&5
30074
30075	ac_cv_type_size_t=no
30076fi
30077
30078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30079fi
30080{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30081echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30082if test $ac_cv_type_size_t = yes; then
30083  :
30084else
30085
30086cat >>confdefs.h <<_ACEOF
30087#define size_t unsigned int
30088_ACEOF
30089
30090fi
30091
30092
30093# Checks for libraries.
30094
30095SCIM_VERSION=1.2.0
30096
30097
30098
30099if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30100	if test -n "$ac_tool_prefix"; then
30101  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30102set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30105if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30106  echo $ECHO_N "(cached) $ECHO_C" >&6
30107else
30108  case $PKG_CONFIG in
30109  [\\/]* | ?:[\\/]*)
30110  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30111  ;;
30112  *)
30113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30114for as_dir in $PATH
30115do
30116  IFS=$as_save_IFS
30117  test -z "$as_dir" && as_dir=.
30118  for ac_exec_ext in '' $ac_executable_extensions; do
30119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30120    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30122    break 2
30123  fi
30124done
30125done
30126IFS=$as_save_IFS
30127
30128  ;;
30129esac
30130fi
30131PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30132if test -n "$PKG_CONFIG"; then
30133  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30134echo "${ECHO_T}$PKG_CONFIG" >&6; }
30135else
30136  { echo "$as_me:$LINENO: result: no" >&5
30137echo "${ECHO_T}no" >&6; }
30138fi
30139
30140
30141fi
30142if test -z "$ac_cv_path_PKG_CONFIG"; then
30143  ac_pt_PKG_CONFIG=$PKG_CONFIG
30144  # Extract the first word of "pkg-config", so it can be a program name with args.
30145set dummy pkg-config; ac_word=$2
30146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30148if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30149  echo $ECHO_N "(cached) $ECHO_C" >&6
30150else
30151  case $ac_pt_PKG_CONFIG in
30152  [\\/]* | ?:[\\/]*)
30153  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30154  ;;
30155  *)
30156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30157for as_dir in $PATH
30158do
30159  IFS=$as_save_IFS
30160  test -z "$as_dir" && as_dir=.
30161  for ac_exec_ext in '' $ac_executable_extensions; do
30162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30163    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30165    break 2
30166  fi
30167done
30168done
30169IFS=$as_save_IFS
30170
30171  ;;
30172esac
30173fi
30174ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30175if test -n "$ac_pt_PKG_CONFIG"; then
30176  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30177echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30178else
30179  { echo "$as_me:$LINENO: result: no" >&5
30180echo "${ECHO_T}no" >&6; }
30181fi
30182
30183  if test "x$ac_pt_PKG_CONFIG" = x; then
30184    PKG_CONFIG=""
30185  else
30186    case $cross_compiling:$ac_tool_warned in
30187yes:)
30188{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30189whose name does not start with the host triplet.  If you think this
30190configuration is useful to you, please write to autoconf@gnu.org." >&5
30191echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30192whose name does not start with the host triplet.  If you think this
30193configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30194ac_tool_warned=yes ;;
30195esac
30196    PKG_CONFIG=$ac_pt_PKG_CONFIG
30197  fi
30198else
30199  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30200fi
30201
30202fi
30203if test -n "$PKG_CONFIG"; then
30204	_pkg_min_version=0.9.0
30205	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30206echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
30207	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30208		{ echo "$as_me:$LINENO: result: yes" >&5
30209echo "${ECHO_T}yes" >&6; }
30210	else
30211		{ echo "$as_me:$LINENO: result: no" >&5
30212echo "${ECHO_T}no" >&6; }
30213		PKG_CONFIG=""
30214	fi
30215
30216fi
30217
30218pkg_failed=no
30219{ echo "$as_me:$LINENO: checking for SCIM" >&5
30220echo $ECHO_N "checking for SCIM... $ECHO_C" >&6; }
30221
30222if test -n "$PKG_CONFIG"; then
30223    if test -n "$SCIM_CFLAGS"; then
30224        pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
30225    else
30226        if test -n "$PKG_CONFIG" && \
30227    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
30228  ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
30229  ac_status=$?
30230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231  (exit $ac_status); }; then
30232  pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
30233else
30234  pkg_failed=yes
30235fi
30236    fi
30237else
30238	pkg_failed=untried
30239fi
30240if test -n "$PKG_CONFIG"; then
30241    if test -n "$SCIM_LIBS"; then
30242        pkg_cv_SCIM_LIBS="$SCIM_LIBS"
30243    else
30244        if test -n "$PKG_CONFIG" && \
30245    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
30246  ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
30247  ac_status=$?
30248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249  (exit $ac_status); }; then
30250  pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
30251else
30252  pkg_failed=yes
30253fi
30254    fi
30255else
30256	pkg_failed=untried
30257fi
30258
30259
30260
30261if test $pkg_failed = yes; then
30262
30263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30264        _pkg_short_errors_supported=yes
30265else
30266        _pkg_short_errors_supported=no
30267fi
30268        if test $_pkg_short_errors_supported = yes; then
30269	        SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
30270        else
30271	        SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
30272        fi
30273	# Put the nasty error message in config.log where it belongs
30274	echo "$SCIM_PKG_ERRORS" >&5
30275
30276	{ { echo "$as_me:$LINENO: error: Package requirements (scim >= $SCIM_VERSION) were not met:
30277
30278$SCIM_PKG_ERRORS
30279
30280Consider adjusting the PKG_CONFIG_PATH environment variable if you
30281installed software in a non-standard prefix.
30282
30283Alternatively, you may set the environment variables SCIM_CFLAGS
30284and SCIM_LIBS to avoid the need to call pkg-config.
30285See the pkg-config man page for more details.
30286" >&5
30287echo "$as_me: error: Package requirements (scim >= $SCIM_VERSION) were not met:
30288
30289$SCIM_PKG_ERRORS
30290
30291Consider adjusting the PKG_CONFIG_PATH environment variable if you
30292installed software in a non-standard prefix.
30293
30294Alternatively, you may set the environment variables SCIM_CFLAGS
30295and SCIM_LIBS to avoid the need to call pkg-config.
30296See the pkg-config man page for more details.
30297" >&2;}
30298   { (exit 1); exit 1; }; }
30299elif test $pkg_failed = untried; then
30300	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
30301is in your PATH or set the PKG_CONFIG environment variable to the full
30302path to pkg-config.
30303
30304Alternatively, you may set the environment variables SCIM_CFLAGS
30305and SCIM_LIBS to avoid the need to call pkg-config.
30306See the pkg-config man page for more details.
30307
30308To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30309See \`config.log' for more details." >&5
30310echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
30311is in your PATH or set the PKG_CONFIG environment variable to the full
30312path to pkg-config.
30313
30314Alternatively, you may set the environment variables SCIM_CFLAGS
30315and SCIM_LIBS to avoid the need to call pkg-config.
30316See the pkg-config man page for more details.
30317
30318To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30319See \`config.log' for more details." >&2;}
30320   { (exit 1); exit 1; }; }
30321else
30322	SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
30323	SCIM_LIBS=$pkg_cv_SCIM_LIBS
30324        { echo "$as_me:$LINENO: result: yes" >&5
30325echo "${ECHO_T}yes" >&6; }
30326	:
30327fi
30328
30329# Check if we should build setup module
30330
30331pkg_failed=no
30332{ echo "$as_me:$LINENO: checking for SCIM_GTKUTILS" >&5
30333echo $ECHO_N "checking for SCIM_GTKUTILS... $ECHO_C" >&6; }
30334
30335if test -n "$PKG_CONFIG"; then
30336    if test -n "$SCIM_GTKUTILS_CFLAGS"; then
30337        pkg_cv_SCIM_GTKUTILS_CFLAGS="$SCIM_GTKUTILS_CFLAGS"
30338    else
30339        if test -n "$PKG_CONFIG" && \
30340    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
30341  ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
30342  ac_status=$?
30343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344  (exit $ac_status); }; then
30345  pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
30346else
30347  pkg_failed=yes
30348fi
30349    fi
30350else
30351	pkg_failed=untried
30352fi
30353if test -n "$PKG_CONFIG"; then
30354    if test -n "$SCIM_GTKUTILS_LIBS"; then
30355        pkg_cv_SCIM_GTKUTILS_LIBS="$SCIM_GTKUTILS_LIBS"
30356    else
30357        if test -n "$PKG_CONFIG" && \
30358    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
30359  ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
30360  ac_status=$?
30361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362  (exit $ac_status); }; then
30363  pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
30364else
30365  pkg_failed=yes
30366fi
30367    fi
30368else
30369	pkg_failed=untried
30370fi
30371
30372
30373
30374if test $pkg_failed = yes; then
30375
30376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30377        _pkg_short_errors_supported=yes
30378else
30379        _pkg_short_errors_supported=no
30380fi
30381        if test $_pkg_short_errors_supported = yes; then
30382	        SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
30383        else
30384	        SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
30385        fi
30386	# Put the nasty error message in config.log where it belongs
30387	echo "$SCIM_GTKUTILS_PKG_ERRORS" >&5
30388
30389	{ echo "$as_me:$LINENO: result: no" >&5
30390echo "${ECHO_T}no" >&6; }
30391                SCIM_HAS_GTKUTILS=no
30392elif test $pkg_failed = untried; then
30393	SCIM_HAS_GTKUTILS=no
30394else
30395	SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
30396	SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
30397        { echo "$as_me:$LINENO: result: yes" >&5
30398echo "${ECHO_T}yes" >&6; }
30399	SCIM_HAS_GTKUTILS=yes
30400fi
30401
30402
30403
30404
30405 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
30406  SCIM_BUILD_SETUP_TRUE=
30407  SCIM_BUILD_SETUP_FALSE='#'
30408else
30409  SCIM_BUILD_SETUP_TRUE='#'
30410  SCIM_BUILD_SETUP_FALSE=
30411fi
30412
30413
30414if test "$SCIM_HAS_GTKUTILS" = "yes"; then
30415  SCIM_BUILD_SETUP=1
30416else
30417  SCIM_BUILD_SETUP=0
30418fi
30419
30420
30421
30422# Checks for header files.
30423
30424{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30425echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30426if test "${ac_cv_header_stdc+set}" = set; then
30427  echo $ECHO_N "(cached) $ECHO_C" >&6
30428else
30429  cat >conftest.$ac_ext <<_ACEOF
30430/* confdefs.h.  */
30431_ACEOF
30432cat confdefs.h >>conftest.$ac_ext
30433cat >>conftest.$ac_ext <<_ACEOF
30434/* end confdefs.h.  */
30435#include <stdlib.h>
30436#include <stdarg.h>
30437#include <string.h>
30438#include <float.h>
30439
30440int
30441main ()
30442{
30443
30444  ;
30445  return 0;
30446}
30447_ACEOF
30448rm -f conftest.$ac_objext
30449if { (ac_try="$ac_compile"
30450case "(($ac_try" in
30451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30452  *) ac_try_echo=$ac_try;;
30453esac
30454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30455  (eval "$ac_compile") 2>conftest.er1
30456  ac_status=$?
30457  grep -v '^ *+' conftest.er1 >conftest.err
30458  rm -f conftest.er1
30459  cat conftest.err >&5
30460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461  (exit $ac_status); } && {
30462	 test -z "$ac_cxx_werror_flag" ||
30463	 test ! -s conftest.err
30464       } && test -s conftest.$ac_objext; then
30465  ac_cv_header_stdc=yes
30466else
30467  echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470	ac_cv_header_stdc=no
30471fi
30472
30473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30474
30475if test $ac_cv_header_stdc = yes; then
30476  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30477  cat >conftest.$ac_ext <<_ACEOF
30478/* confdefs.h.  */
30479_ACEOF
30480cat confdefs.h >>conftest.$ac_ext
30481cat >>conftest.$ac_ext <<_ACEOF
30482/* end confdefs.h.  */
30483#include <string.h>
30484
30485_ACEOF
30486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30487  $EGREP "memchr" >/dev/null 2>&1; then
30488  :
30489else
30490  ac_cv_header_stdc=no
30491fi
30492rm -f conftest*
30493
30494fi
30495
30496if test $ac_cv_header_stdc = yes; then
30497  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30498  cat >conftest.$ac_ext <<_ACEOF
30499/* confdefs.h.  */
30500_ACEOF
30501cat confdefs.h >>conftest.$ac_ext
30502cat >>conftest.$ac_ext <<_ACEOF
30503/* end confdefs.h.  */
30504#include <stdlib.h>
30505
30506_ACEOF
30507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30508  $EGREP "free" >/dev/null 2>&1; then
30509  :
30510else
30511  ac_cv_header_stdc=no
30512fi
30513rm -f conftest*
30514
30515fi
30516
30517if test $ac_cv_header_stdc = yes; then
30518  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30519  if test "$cross_compiling" = yes; then
30520  :
30521else
30522  cat >conftest.$ac_ext <<_ACEOF
30523/* confdefs.h.  */
30524_ACEOF
30525cat confdefs.h >>conftest.$ac_ext
30526cat >>conftest.$ac_ext <<_ACEOF
30527/* end confdefs.h.  */
30528#include <ctype.h>
30529#include <stdlib.h>
30530#if ((' ' & 0x0FF) == 0x020)
30531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30533#else
30534# define ISLOWER(c) \
30535		   (('a' <= (c) && (c) <= 'i') \
30536		     || ('j' <= (c) && (c) <= 'r') \
30537		     || ('s' <= (c) && (c) <= 'z'))
30538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30539#endif
30540
30541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30542int
30543main ()
30544{
30545  int i;
30546  for (i = 0; i < 256; i++)
30547    if (XOR (islower (i), ISLOWER (i))
30548	|| toupper (i) != TOUPPER (i))
30549      return 2;
30550  return 0;
30551}
30552_ACEOF
30553rm -f conftest$ac_exeext
30554if { (ac_try="$ac_link"
30555case "(($ac_try" in
30556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557  *) ac_try_echo=$ac_try;;
30558esac
30559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560  (eval "$ac_link") 2>&5
30561  ac_status=$?
30562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30564  { (case "(($ac_try" in
30565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566  *) ac_try_echo=$ac_try;;
30567esac
30568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569  (eval "$ac_try") 2>&5
30570  ac_status=$?
30571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572  (exit $ac_status); }; }; then
30573  :
30574else
30575  echo "$as_me: program exited with status $ac_status" >&5
30576echo "$as_me: failed program was:" >&5
30577sed 's/^/| /' conftest.$ac_ext >&5
30578
30579( exit $ac_status )
30580ac_cv_header_stdc=no
30581fi
30582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30583fi
30584
30585
30586fi
30587fi
30588{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30589echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30590if test $ac_cv_header_stdc = yes; then
30591
30592cat >>confdefs.h <<\_ACEOF
30593#define STDC_HEADERS 1
30594_ACEOF
30595
30596fi
30597
30598# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30599# for constant arguments.  Useless!
30600{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30601echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30602if test "${ac_cv_working_alloca_h+set}" = set; then
30603  echo $ECHO_N "(cached) $ECHO_C" >&6
30604else
30605  cat >conftest.$ac_ext <<_ACEOF
30606/* confdefs.h.  */
30607_ACEOF
30608cat confdefs.h >>conftest.$ac_ext
30609cat >>conftest.$ac_ext <<_ACEOF
30610/* end confdefs.h.  */
30611#include <alloca.h>
30612int
30613main ()
30614{
30615char *p = (char *) alloca (2 * sizeof (int));
30616			  if (p) return 0;
30617  ;
30618  return 0;
30619}
30620_ACEOF
30621rm -f conftest.$ac_objext conftest$ac_exeext
30622if { (ac_try="$ac_link"
30623case "(($ac_try" in
30624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625  *) ac_try_echo=$ac_try;;
30626esac
30627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628  (eval "$ac_link") 2>conftest.er1
30629  ac_status=$?
30630  grep -v '^ *+' conftest.er1 >conftest.err
30631  rm -f conftest.er1
30632  cat conftest.err >&5
30633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634  (exit $ac_status); } && {
30635	 test -z "$ac_cxx_werror_flag" ||
30636	 test ! -s conftest.err
30637       } && test -s conftest$ac_exeext &&
30638       $as_test_x conftest$ac_exeext; then
30639  ac_cv_working_alloca_h=yes
30640else
30641  echo "$as_me: failed program was:" >&5
30642sed 's/^/| /' conftest.$ac_ext >&5
30643
30644	ac_cv_working_alloca_h=no
30645fi
30646
30647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30648      conftest$ac_exeext conftest.$ac_ext
30649fi
30650{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30651echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30652if test $ac_cv_working_alloca_h = yes; then
30653
30654cat >>confdefs.h <<\_ACEOF
30655#define HAVE_ALLOCA_H 1
30656_ACEOF
30657
30658fi
30659
30660{ echo "$as_me:$LINENO: checking for alloca" >&5
30661echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30662if test "${ac_cv_func_alloca_works+set}" = set; then
30663  echo $ECHO_N "(cached) $ECHO_C" >&6
30664else
30665  cat >conftest.$ac_ext <<_ACEOF
30666/* confdefs.h.  */
30667_ACEOF
30668cat confdefs.h >>conftest.$ac_ext
30669cat >>conftest.$ac_ext <<_ACEOF
30670/* end confdefs.h.  */
30671#ifdef __GNUC__
30672# define alloca __builtin_alloca
30673#else
30674# ifdef _MSC_VER
30675#  include <malloc.h>
30676#  define alloca _alloca
30677# else
30678#  ifdef HAVE_ALLOCA_H
30679#   include <alloca.h>
30680#  else
30681#   ifdef _AIX
30682 #pragma alloca
30683#   else
30684#    ifndef alloca /* predefined by HP cc +Olibcalls */
30685char *alloca ();
30686#    endif
30687#   endif
30688#  endif
30689# endif
30690#endif
30691
30692int
30693main ()
30694{
30695char *p = (char *) alloca (1);
30696				    if (p) return 0;
30697  ;
30698  return 0;
30699}
30700_ACEOF
30701rm -f conftest.$ac_objext conftest$ac_exeext
30702if { (ac_try="$ac_link"
30703case "(($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_link") 2>conftest.er1
30709  ac_status=$?
30710  grep -v '^ *+' conftest.er1 >conftest.err
30711  rm -f conftest.er1
30712  cat conftest.err >&5
30713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714  (exit $ac_status); } && {
30715	 test -z "$ac_cxx_werror_flag" ||
30716	 test ! -s conftest.err
30717       } && test -s conftest$ac_exeext &&
30718       $as_test_x conftest$ac_exeext; then
30719  ac_cv_func_alloca_works=yes
30720else
30721  echo "$as_me: failed program was:" >&5
30722sed 's/^/| /' conftest.$ac_ext >&5
30723
30724	ac_cv_func_alloca_works=no
30725fi
30726
30727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30728      conftest$ac_exeext conftest.$ac_ext
30729fi
30730{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30731echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30732
30733if test $ac_cv_func_alloca_works = yes; then
30734
30735cat >>confdefs.h <<\_ACEOF
30736#define HAVE_ALLOCA 1
30737_ACEOF
30738
30739else
30740  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30741# that cause trouble.  Some versions do not even contain alloca or
30742# contain a buggy version.  If you still want to use their alloca,
30743# use ar to extract alloca.o from them instead of compiling alloca.c.
30744
30745ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30746
30747cat >>confdefs.h <<\_ACEOF
30748#define C_ALLOCA 1
30749_ACEOF
30750
30751
30752{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30753echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30754if test "${ac_cv_os_cray+set}" = set; then
30755  echo $ECHO_N "(cached) $ECHO_C" >&6
30756else
30757  cat >conftest.$ac_ext <<_ACEOF
30758/* confdefs.h.  */
30759_ACEOF
30760cat confdefs.h >>conftest.$ac_ext
30761cat >>conftest.$ac_ext <<_ACEOF
30762/* end confdefs.h.  */
30763#if defined CRAY && ! defined CRAY2
30764webecray
30765#else
30766wenotbecray
30767#endif
30768
30769_ACEOF
30770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30771  $EGREP "webecray" >/dev/null 2>&1; then
30772  ac_cv_os_cray=yes
30773else
30774  ac_cv_os_cray=no
30775fi
30776rm -f conftest*
30777
30778fi
30779{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30780echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30781if test $ac_cv_os_cray = yes; then
30782  for ac_func in _getb67 GETB67 getb67; do
30783    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30784{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30786if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30787  echo $ECHO_N "(cached) $ECHO_C" >&6
30788else
30789  cat >conftest.$ac_ext <<_ACEOF
30790/* confdefs.h.  */
30791_ACEOF
30792cat confdefs.h >>conftest.$ac_ext
30793cat >>conftest.$ac_ext <<_ACEOF
30794/* end confdefs.h.  */
30795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30796   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30797#define $ac_func innocuous_$ac_func
30798
30799/* System header to define __stub macros and hopefully few prototypes,
30800    which can conflict with char $ac_func (); below.
30801    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30802    <limits.h> exists even on freestanding compilers.  */
30803
30804#ifdef __STDC__
30805# include <limits.h>
30806#else
30807# include <assert.h>
30808#endif
30809
30810#undef $ac_func
30811
30812/* Override any GCC internal prototype to avoid an error.
30813   Use char because int might match the return type of a GCC
30814   builtin and then its argument prototype would still apply.  */
30815#ifdef __cplusplus
30816extern "C"
30817#endif
30818char $ac_func ();
30819/* The GNU C library defines this for functions which it implements
30820    to always fail with ENOSYS.  Some functions are actually named
30821    something starting with __ and the normal name is an alias.  */
30822#if defined __stub_$ac_func || defined __stub___$ac_func
30823choke me
30824#endif
30825
30826int
30827main ()
30828{
30829return $ac_func ();
30830  ;
30831  return 0;
30832}
30833_ACEOF
30834rm -f conftest.$ac_objext conftest$ac_exeext
30835if { (ac_try="$ac_link"
30836case "(($ac_try" in
30837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838  *) ac_try_echo=$ac_try;;
30839esac
30840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841  (eval "$ac_link") 2>conftest.er1
30842  ac_status=$?
30843  grep -v '^ *+' conftest.er1 >conftest.err
30844  rm -f conftest.er1
30845  cat conftest.err >&5
30846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847  (exit $ac_status); } && {
30848	 test -z "$ac_cxx_werror_flag" ||
30849	 test ! -s conftest.err
30850       } && test -s conftest$ac_exeext &&
30851       $as_test_x conftest$ac_exeext; then
30852  eval "$as_ac_var=yes"
30853else
30854  echo "$as_me: failed program was:" >&5
30855sed 's/^/| /' conftest.$ac_ext >&5
30856
30857	eval "$as_ac_var=no"
30858fi
30859
30860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30861      conftest$ac_exeext conftest.$ac_ext
30862fi
30863ac_res=`eval echo '${'$as_ac_var'}'`
30864	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30865echo "${ECHO_T}$ac_res" >&6; }
30866if test `eval echo '${'$as_ac_var'}'` = yes; then
30867
30868cat >>confdefs.h <<_ACEOF
30869#define CRAY_STACKSEG_END $ac_func
30870_ACEOF
30871
30872    break
30873fi
30874
30875  done
30876fi
30877
30878{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30879echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30880if test "${ac_cv_c_stack_direction+set}" = set; then
30881  echo $ECHO_N "(cached) $ECHO_C" >&6
30882else
30883  if test "$cross_compiling" = yes; then
30884  ac_cv_c_stack_direction=0
30885else
30886  cat >conftest.$ac_ext <<_ACEOF
30887/* confdefs.h.  */
30888_ACEOF
30889cat confdefs.h >>conftest.$ac_ext
30890cat >>conftest.$ac_ext <<_ACEOF
30891/* end confdefs.h.  */
30892$ac_includes_default
30893int
30894find_stack_direction ()
30895{
30896  static char *addr = 0;
30897  auto char dummy;
30898  if (addr == 0)
30899    {
30900      addr = &dummy;
30901      return find_stack_direction ();
30902    }
30903  else
30904    return (&dummy > addr) ? 1 : -1;
30905}
30906
30907int
30908main ()
30909{
30910  return find_stack_direction () < 0;
30911}
30912_ACEOF
30913rm -f conftest$ac_exeext
30914if { (ac_try="$ac_link"
30915case "(($ac_try" in
30916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917  *) ac_try_echo=$ac_try;;
30918esac
30919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920  (eval "$ac_link") 2>&5
30921  ac_status=$?
30922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30924  { (case "(($ac_try" in
30925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926  *) ac_try_echo=$ac_try;;
30927esac
30928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929  (eval "$ac_try") 2>&5
30930  ac_status=$?
30931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932  (exit $ac_status); }; }; then
30933  ac_cv_c_stack_direction=1
30934else
30935  echo "$as_me: program exited with status $ac_status" >&5
30936echo "$as_me: failed program was:" >&5
30937sed 's/^/| /' conftest.$ac_ext >&5
30938
30939( exit $ac_status )
30940ac_cv_c_stack_direction=-1
30941fi
30942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30943fi
30944
30945
30946fi
30947{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30948echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30949
30950cat >>confdefs.h <<_ACEOF
30951#define STACK_DIRECTION $ac_cv_c_stack_direction
30952_ACEOF
30953
30954
30955fi
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975for ac_header in argz.h fcntl.h float.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h unistd.h wchar.h
30976do
30977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30979  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30982  echo $ECHO_N "(cached) $ECHO_C" >&6
30983fi
30984ac_res=`eval echo '${'$as_ac_Header'}'`
30985	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30986echo "${ECHO_T}$ac_res" >&6; }
30987else
30988  # Is the header compilable?
30989{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30991cat >conftest.$ac_ext <<_ACEOF
30992/* confdefs.h.  */
30993_ACEOF
30994cat confdefs.h >>conftest.$ac_ext
30995cat >>conftest.$ac_ext <<_ACEOF
30996/* end confdefs.h.  */
30997$ac_includes_default
30998#include <$ac_header>
30999_ACEOF
31000rm -f conftest.$ac_objext
31001if { (ac_try="$ac_compile"
31002case "(($ac_try" in
31003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31004  *) ac_try_echo=$ac_try;;
31005esac
31006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31007  (eval "$ac_compile") 2>conftest.er1
31008  ac_status=$?
31009  grep -v '^ *+' conftest.er1 >conftest.err
31010  rm -f conftest.er1
31011  cat conftest.err >&5
31012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013  (exit $ac_status); } && {
31014	 test -z "$ac_cxx_werror_flag" ||
31015	 test ! -s conftest.err
31016       } && test -s conftest.$ac_objext; then
31017  ac_header_compiler=yes
31018else
31019  echo "$as_me: failed program was:" >&5
31020sed 's/^/| /' conftest.$ac_ext >&5
31021
31022	ac_header_compiler=no
31023fi
31024
31025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31026{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31027echo "${ECHO_T}$ac_header_compiler" >&6; }
31028
31029# Is the header present?
31030{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31032cat >conftest.$ac_ext <<_ACEOF
31033/* confdefs.h.  */
31034_ACEOF
31035cat confdefs.h >>conftest.$ac_ext
31036cat >>conftest.$ac_ext <<_ACEOF
31037/* end confdefs.h.  */
31038#include <$ac_header>
31039_ACEOF
31040if { (ac_try="$ac_cpp conftest.$ac_ext"
31041case "(($ac_try" in
31042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31043  *) ac_try_echo=$ac_try;;
31044esac
31045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31046  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31047  ac_status=$?
31048  grep -v '^ *+' conftest.er1 >conftest.err
31049  rm -f conftest.er1
31050  cat conftest.err >&5
31051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052  (exit $ac_status); } >/dev/null && {
31053	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31054	 test ! -s conftest.err
31055       }; then
31056  ac_header_preproc=yes
31057else
31058  echo "$as_me: failed program was:" >&5
31059sed 's/^/| /' conftest.$ac_ext >&5
31060
31061  ac_header_preproc=no
31062fi
31063
31064rm -f conftest.err conftest.$ac_ext
31065{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31066echo "${ECHO_T}$ac_header_preproc" >&6; }
31067
31068# So?  What about this header?
31069case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31070  yes:no: )
31071    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31073    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31075    ac_header_preproc=yes
31076    ;;
31077  no:yes:* )
31078    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31080    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31081echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31082    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31084    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31085echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31086    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31088    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31090    ( cat <<\_ASBOX
31091## ------------------------------- ##
31092## Report this to ashie@homa.ne.jp ##
31093## ------------------------------- ##
31094_ASBOX
31095     ) | sed "s/^/$as_me: WARNING:     /" >&2
31096    ;;
31097esac
31098{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31101  echo $ECHO_N "(cached) $ECHO_C" >&6
31102else
31103  eval "$as_ac_Header=\$ac_header_preproc"
31104fi
31105ac_res=`eval echo '${'$as_ac_Header'}'`
31106	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31107echo "${ECHO_T}$ac_res" >&6; }
31108
31109fi
31110if test `eval echo '${'$as_ac_Header'}'` = yes; then
31111  cat >>confdefs.h <<_ACEOF
31112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31113_ACEOF
31114
31115fi
31116
31117done
31118
31119
31120# Checks for library functions.
31121
31122
31123# Checks for anthy
31124if test "${ac_cv_header_anthy_anthy_h+set}" = set; then
31125  { echo "$as_me:$LINENO: checking for anthy/anthy.h" >&5
31126echo $ECHO_N "checking for anthy/anthy.h... $ECHO_C" >&6; }
31127if test "${ac_cv_header_anthy_anthy_h+set}" = set; then
31128  echo $ECHO_N "(cached) $ECHO_C" >&6
31129fi
31130{ echo "$as_me:$LINENO: result: $ac_cv_header_anthy_anthy_h" >&5
31131echo "${ECHO_T}$ac_cv_header_anthy_anthy_h" >&6; }
31132else
31133  # Is the header compilable?
31134{ echo "$as_me:$LINENO: checking anthy/anthy.h usability" >&5
31135echo $ECHO_N "checking anthy/anthy.h usability... $ECHO_C" >&6; }
31136cat >conftest.$ac_ext <<_ACEOF
31137/* confdefs.h.  */
31138_ACEOF
31139cat confdefs.h >>conftest.$ac_ext
31140cat >>conftest.$ac_ext <<_ACEOF
31141/* end confdefs.h.  */
31142$ac_includes_default
31143#include <anthy/anthy.h>
31144_ACEOF
31145rm -f conftest.$ac_objext
31146if { (ac_try="$ac_compile"
31147case "(($ac_try" in
31148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149  *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152  (eval "$ac_compile") 2>conftest.er1
31153  ac_status=$?
31154  grep -v '^ *+' conftest.er1 >conftest.err
31155  rm -f conftest.er1
31156  cat conftest.err >&5
31157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158  (exit $ac_status); } && {
31159	 test -z "$ac_cxx_werror_flag" ||
31160	 test ! -s conftest.err
31161       } && test -s conftest.$ac_objext; then
31162  ac_header_compiler=yes
31163else
31164  echo "$as_me: failed program was:" >&5
31165sed 's/^/| /' conftest.$ac_ext >&5
31166
31167	ac_header_compiler=no
31168fi
31169
31170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31172echo "${ECHO_T}$ac_header_compiler" >&6; }
31173
31174# Is the header present?
31175{ echo "$as_me:$LINENO: checking anthy/anthy.h presence" >&5
31176echo $ECHO_N "checking anthy/anthy.h presence... $ECHO_C" >&6; }
31177cat >conftest.$ac_ext <<_ACEOF
31178/* confdefs.h.  */
31179_ACEOF
31180cat confdefs.h >>conftest.$ac_ext
31181cat >>conftest.$ac_ext <<_ACEOF
31182/* end confdefs.h.  */
31183#include <anthy/anthy.h>
31184_ACEOF
31185if { (ac_try="$ac_cpp conftest.$ac_ext"
31186case "(($ac_try" in
31187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31188  *) ac_try_echo=$ac_try;;
31189esac
31190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31191  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31192  ac_status=$?
31193  grep -v '^ *+' conftest.er1 >conftest.err
31194  rm -f conftest.er1
31195  cat conftest.err >&5
31196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197  (exit $ac_status); } >/dev/null && {
31198	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31199	 test ! -s conftest.err
31200       }; then
31201  ac_header_preproc=yes
31202else
31203  echo "$as_me: failed program was:" >&5
31204sed 's/^/| /' conftest.$ac_ext >&5
31205
31206  ac_header_preproc=no
31207fi
31208
31209rm -f conftest.err conftest.$ac_ext
31210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31211echo "${ECHO_T}$ac_header_preproc" >&6; }
31212
31213# So?  What about this header?
31214case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31215  yes:no: )
31216    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: accepted by the compiler, rejected by the preprocessor!" >&5
31217echo "$as_me: WARNING: anthy/anthy.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31218    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: proceeding with the compiler's result" >&5
31219echo "$as_me: WARNING: anthy/anthy.h: proceeding with the compiler's result" >&2;}
31220    ac_header_preproc=yes
31221    ;;
31222  no:yes:* )
31223    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: present but cannot be compiled" >&5
31224echo "$as_me: WARNING: anthy/anthy.h: present but cannot be compiled" >&2;}
31225    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h:     check for missing prerequisite headers?" >&5
31226echo "$as_me: WARNING: anthy/anthy.h:     check for missing prerequisite headers?" >&2;}
31227    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: see the Autoconf documentation" >&5
31228echo "$as_me: WARNING: anthy/anthy.h: see the Autoconf documentation" >&2;}
31229    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h:     section \"Present But Cannot Be Compiled\"" >&5
31230echo "$as_me: WARNING: anthy/anthy.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31231    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: proceeding with the preprocessor's result" >&5
31232echo "$as_me: WARNING: anthy/anthy.h: proceeding with the preprocessor's result" >&2;}
31233    { echo "$as_me:$LINENO: WARNING: anthy/anthy.h: in the future, the compiler will take precedence" >&5
31234echo "$as_me: WARNING: anthy/anthy.h: in the future, the compiler will take precedence" >&2;}
31235    ( cat <<\_ASBOX
31236## ------------------------------- ##
31237## Report this to ashie@homa.ne.jp ##
31238## ------------------------------- ##
31239_ASBOX
31240     ) | sed "s/^/$as_me: WARNING:     /" >&2
31241    ;;
31242esac
31243{ echo "$as_me:$LINENO: checking for anthy/anthy.h" >&5
31244echo $ECHO_N "checking for anthy/anthy.h... $ECHO_C" >&6; }
31245if test "${ac_cv_header_anthy_anthy_h+set}" = set; then
31246  echo $ECHO_N "(cached) $ECHO_C" >&6
31247else
31248  ac_cv_header_anthy_anthy_h=$ac_header_preproc
31249fi
31250{ echo "$as_me:$LINENO: result: $ac_cv_header_anthy_anthy_h" >&5
31251echo "${ECHO_T}$ac_cv_header_anthy_anthy_h" >&6; }
31252
31253fi
31254if test $ac_cv_header_anthy_anthy_h = yes; then
31255  :
31256else
31257  { { echo "$as_me:$LINENO: error: anthy/anthy.h was not found." >&5
31258echo "$as_me: error: anthy/anthy.h was not found." >&2;}
31259   { (exit 1); exit 1; }; }
31260fi
31261
31262
31263ANTHY_LIBS="-lanthy -lanthydic"
31264ANTHY_CFLAGS=""
31265
31266
31267
31268# Check gtk2
31269
31270pkg_failed=no
31271{ echo "$as_me:$LINENO: checking for GTK2" >&5
31272echo $ECHO_N "checking for GTK2... $ECHO_C" >&6; }
31273
31274if test -n "$PKG_CONFIG"; then
31275    if test -n "$GTK2_CFLAGS"; then
31276        pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
31277    else
31278        if test -n "$PKG_CONFIG" && \
31279    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5
31280  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5
31281  ac_status=$?
31282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283  (exit $ac_status); }; then
31284  pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0" 2>/dev/null`
31285else
31286  pkg_failed=yes
31287fi
31288    fi
31289else
31290	pkg_failed=untried
31291fi
31292if test -n "$PKG_CONFIG"; then
31293    if test -n "$GTK2_LIBS"; then
31294        pkg_cv_GTK2_LIBS="$GTK2_LIBS"
31295    else
31296        if test -n "$PKG_CONFIG" && \
31297    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5
31298  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5
31299  ac_status=$?
31300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301  (exit $ac_status); }; then
31302  pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0" 2>/dev/null`
31303else
31304  pkg_failed=yes
31305fi
31306    fi
31307else
31308	pkg_failed=untried
31309fi
31310
31311
31312
31313if test $pkg_failed = yes; then
31314
31315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31316        _pkg_short_errors_supported=yes
31317else
31318        _pkg_short_errors_supported=no
31319fi
31320        if test $_pkg_short_errors_supported = yes; then
31321	        GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
31322        else
31323	        GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
31324        fi
31325	# Put the nasty error message in config.log where it belongs
31326	echo "$GTK2_PKG_ERRORS" >&5
31327
31328	{ echo "$as_me:$LINENO: result: no" >&5
31329echo "${ECHO_T}no" >&6; }
31330                HAS_GTK=no
31331elif test $pkg_failed = untried; then
31332	HAS_GTK=no
31333else
31334	GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
31335	GTK2_LIBS=$pkg_cv_GTK2_LIBS
31336        { echo "$as_me:$LINENO: result: yes" >&5
31337echo "${ECHO_T}yes" >&6; }
31338	HAS_GTK=yes
31339fi
31340
31341 if test "$HAS_GTK" = "yes"; then
31342  SCIM_BUILD_HELPER_TRUE=
31343  SCIM_BUILD_HELPER_FALSE='#'
31344else
31345  SCIM_BUILD_HELPER_TRUE='#'
31346  SCIM_BUILD_HELPER_FALSE=
31347fi
31348
31349
31350if test "$HAS_GTK" = "yes"; then
31351  SCIM_BUILD_HELPER=1
31352else
31353  SCIM_BUILD_HELPER=0
31354fi
31355
31356
31357
31358# libtool option to control which symbols are exported
31359# right now, symbols starting with _ are not exported
31360LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
31361
31362
31363# Extra args.
31364# Check whether --enable-debug was given.
31365if test "${enable_debug+set}" = set; then
31366  enableval=$enable_debug; case "${enableval}" in
31367	       yes) debug=yes ;;
31368	       no)  debug=no ;;
31369	       *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
31370echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
31371   { (exit 1); exit 1; }; } ;;
31372       	      esac
31373else
31374  debug=no
31375fi
31376
31377
31378if test "x$debug" = "xyes"; then
31379  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
31380  test "$cppflags_set" = set || CPPFLAGS="$CXXFLAGS -g"
31381  SCIM_DEBUG_FLAGS="-DENABLE_DEBUG=1"
31382else
31383  SCIM_DEBUG_FLAGS=""
31384fi
31385
31386
31387SCIM_DATADIR=`$PKG_CONFIG --variable=scimdatadir scim`
31388SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
31389SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
31390
31391if test "x$SCIM_DATADIR" = "x"; then
31392  SCIM_DATADIR=${datadir}/scim
31393fi
31394
31395if test "x$SCIM_ICONDIR" = "x"; then
31396  SCIM_ICONDIR=${datadir}/scim/icons
31397fi
31398
31399if test "x$SCIM_MODULEDIR" = "x"; then
31400  SCIM_MODULEDIR=${libdir}/scim-1.0
31401fi
31402
31403SCIM_ANTHY_DATADIR=${SCIM_DATADIR}/Anthy
31404
31405
31406
31407
31408
31409
31410ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile src/Makefile data/Makefile"
31411
31412
31413cat >confcache <<\_ACEOF
31414# This file is a shell script that caches the results of configure
31415# tests run on this system so they can be shared between configure
31416# scripts and configure runs, see configure's option --config-cache.
31417# It is not useful on other systems.  If it contains results you don't
31418# want to keep, you may remove or edit it.
31419#
31420# config.status only pays attention to the cache file if you give it
31421# the --recheck option to rerun configure.
31422#
31423# `ac_cv_env_foo' variables (set or unset) will be overridden when
31424# loading this file, other *unset* `ac_cv_foo' will be assigned the
31425# following values.
31426
31427_ACEOF
31428
31429# The following way of writing the cache mishandles newlines in values,
31430# but we know of no workaround that is simple, portable, and efficient.
31431# So, we kill variables containing newlines.
31432# Ultrix sh set writes to stderr and can't be redirected directly,
31433# and sets the high bit in the cache file unless we assign to the vars.
31434(
31435  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31436    eval ac_val=\$$ac_var
31437    case $ac_val in #(
31438    *${as_nl}*)
31439      case $ac_var in #(
31440      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31441echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31442      esac
31443      case $ac_var in #(
31444      _ | IFS | as_nl) ;; #(
31445      *) $as_unset $ac_var ;;
31446      esac ;;
31447    esac
31448  done
31449
31450  (set) 2>&1 |
31451    case $as_nl`(ac_space=' '; set) 2>&1` in #(
31452    *${as_nl}ac_space=\ *)
31453      # `set' does not quote correctly, so add quotes (double-quote
31454      # substitution turns \\\\ into \\, and sed turns \\ into \).
31455      sed -n \
31456	"s/'/'\\\\''/g;
31457	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31458      ;; #(
31459    *)
31460      # `set' quotes correctly as required by POSIX, so do not add quotes.
31461      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31462      ;;
31463    esac |
31464    sort
31465) |
31466  sed '
31467     /^ac_cv_env_/b end
31468     t clear
31469     :clear
31470     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31471     t end
31472     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31473     :end' >>confcache
31474if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31475  if test -w "$cache_file"; then
31476    test "x$cache_file" != "x/dev/null" &&
31477      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31478echo "$as_me: updating cache $cache_file" >&6;}
31479    cat confcache >$cache_file
31480  else
31481    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31482echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31483  fi
31484fi
31485rm -f confcache
31486
31487test "x$prefix" = xNONE && prefix=$ac_default_prefix
31488# Let make expand exec_prefix.
31489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31490
31491DEFS=-DHAVE_CONFIG_H
31492
31493ac_libobjs=
31494ac_ltlibobjs=
31495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31496  # 1. Remove the extension, and $U if already installed.
31497  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31498  ac_i=`echo "$ac_i" | sed "$ac_script"`
31499  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31500  #    will be set to the directory where LIBOBJS objects are built.
31501  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31502  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31503done
31504LIBOBJS=$ac_libobjs
31505
31506LTLIBOBJS=$ac_ltlibobjs
31507
31508
31509if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31510  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31511Usually this means the macro was only invoked conditionally." >&5
31512echo "$as_me: error: conditional \"AMDEP\" was never defined.
31513Usually this means the macro was only invoked conditionally." >&2;}
31514   { (exit 1); exit 1; }; }
31515fi
31516if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31517  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31518Usually this means the macro was only invoked conditionally." >&5
31519echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31520Usually this means the macro was only invoked conditionally." >&2;}
31521   { (exit 1); exit 1; }; }
31522fi
31523if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31524  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31525Usually this means the macro was only invoked conditionally." >&5
31526echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31527Usually this means the macro was only invoked conditionally." >&2;}
31528   { (exit 1); exit 1; }; }
31529fi
31530if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31531  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31532Usually this means the macro was only invoked conditionally." >&5
31533echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31534Usually this means the macro was only invoked conditionally." >&2;}
31535   { (exit 1); exit 1; }; }
31536fi
31537if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31538  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31539Usually this means the macro was only invoked conditionally." >&5
31540echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31541Usually this means the macro was only invoked conditionally." >&2;}
31542   { (exit 1); exit 1; }; }
31543fi
31544if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31545  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31546Usually this means the macro was only invoked conditionally." >&5
31547echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31548Usually this means the macro was only invoked conditionally." >&2;}
31549   { (exit 1); exit 1; }; }
31550fi
31551if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31552  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31553Usually this means the macro was only invoked conditionally." >&5
31554echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31555Usually this means the macro was only invoked conditionally." >&2;}
31556   { (exit 1); exit 1; }; }
31557fi
31558if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
31559  { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
31560Usually this means the macro was only invoked conditionally." >&5
31561echo "$as_me: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
31562Usually this means the macro was only invoked conditionally." >&2;}
31563   { (exit 1); exit 1; }; }
31564fi
31565if test -z "${SCIM_BUILD_HELPER_TRUE}" && test -z "${SCIM_BUILD_HELPER_FALSE}"; then
31566  { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_HELPER\" was never defined.
31567Usually this means the macro was only invoked conditionally." >&5
31568echo "$as_me: error: conditional \"SCIM_BUILD_HELPER\" was never defined.
31569Usually this means the macro was only invoked conditionally." >&2;}
31570   { (exit 1); exit 1; }; }
31571fi
31572
31573: ${CONFIG_STATUS=./config.status}
31574ac_clean_files_save=$ac_clean_files
31575ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31576{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31577echo "$as_me: creating $CONFIG_STATUS" >&6;}
31578cat >$CONFIG_STATUS <<_ACEOF
31579#! $SHELL
31580# Generated by $as_me.
31581# Run this file to recreate the current configuration.
31582# Compiler output produced by configure, useful for debugging
31583# configure, is in config.log if it exists.
31584
31585debug=false
31586ac_cs_recheck=false
31587ac_cs_silent=false
31588SHELL=\${CONFIG_SHELL-$SHELL}
31589_ACEOF
31590
31591cat >>$CONFIG_STATUS <<\_ACEOF
31592## --------------------- ##
31593## M4sh Initialization.  ##
31594## --------------------- ##
31595
31596# Be more Bourne compatible
31597DUALCASE=1; export DUALCASE # for MKS sh
31598if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31599  emulate sh
31600  NULLCMD=:
31601  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31602  # is contrary to our usage.  Disable this feature.
31603  alias -g '${1+"$@"}'='"$@"'
31604  setopt NO_GLOB_SUBST
31605else
31606  case `(set -o) 2>/dev/null` in
31607  *posix*) set -o posix ;;
31608esac
31609
31610fi
31611
31612
31613
31614
31615# PATH needs CR
31616# Avoid depending upon Character Ranges.
31617as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31618as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31619as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31620as_cr_digits='0123456789'
31621as_cr_alnum=$as_cr_Letters$as_cr_digits
31622
31623# The user is always right.
31624if test "${PATH_SEPARATOR+set}" != set; then
31625  echo "#! /bin/sh" >conf$$.sh
31626  echo  "exit 0"   >>conf$$.sh
31627  chmod +x conf$$.sh
31628  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31629    PATH_SEPARATOR=';'
31630  else
31631    PATH_SEPARATOR=:
31632  fi
31633  rm -f conf$$.sh
31634fi
31635
31636# Support unset when possible.
31637if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31638  as_unset=unset
31639else
31640  as_unset=false
31641fi
31642
31643
31644# IFS
31645# We need space, tab and new line, in precisely that order.  Quoting is
31646# there to prevent editors from complaining about space-tab.
31647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31648# splitting by setting IFS to empty value.)
31649as_nl='
31650'
31651IFS=" ""	$as_nl"
31652
31653# Find who we are.  Look in the path if we contain no directory separator.
31654case $0 in
31655  *[\\/]* ) as_myself=$0 ;;
31656  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31657for as_dir in $PATH
31658do
31659  IFS=$as_save_IFS
31660  test -z "$as_dir" && as_dir=.
31661  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31662done
31663IFS=$as_save_IFS
31664
31665     ;;
31666esac
31667# We did not find ourselves, most probably we were run as `sh COMMAND'
31668# in which case we are not to be found in the path.
31669if test "x$as_myself" = x; then
31670  as_myself=$0
31671fi
31672if test ! -f "$as_myself"; then
31673  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31674  { (exit 1); exit 1; }
31675fi
31676
31677# Work around bugs in pre-3.0 UWIN ksh.
31678for as_var in ENV MAIL MAILPATH
31679do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31680done
31681PS1='$ '
31682PS2='> '
31683PS4='+ '
31684
31685# NLS nuisances.
31686for as_var in \
31687  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31688  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31689  LC_TELEPHONE LC_TIME
31690do
31691  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31692    eval $as_var=C; export $as_var
31693  else
31694    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31695  fi
31696done
31697
31698# Required to use basename.
31699if expr a : '\(a\)' >/dev/null 2>&1 &&
31700   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31701  as_expr=expr
31702else
31703  as_expr=false
31704fi
31705
31706if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31707  as_basename=basename
31708else
31709  as_basename=false
31710fi
31711
31712
31713# Name of the executable.
31714as_me=`$as_basename -- "$0" ||
31715$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31716	 X"$0" : 'X\(//\)$' \| \
31717	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31718echo X/"$0" |
31719    sed '/^.*\/\([^/][^/]*\)\/*$/{
31720	    s//\1/
31721	    q
31722	  }
31723	  /^X\/\(\/\/\)$/{
31724	    s//\1/
31725	    q
31726	  }
31727	  /^X\/\(\/\).*/{
31728	    s//\1/
31729	    q
31730	  }
31731	  s/.*/./; q'`
31732
31733# CDPATH.
31734$as_unset CDPATH
31735
31736
31737
31738  as_lineno_1=$LINENO
31739  as_lineno_2=$LINENO
31740  test "x$as_lineno_1" != "x$as_lineno_2" &&
31741  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31742
31743  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31744  # uniformly replaced by the line number.  The first 'sed' inserts a
31745  # line-number line after each line using $LINENO; the second 'sed'
31746  # does the real work.  The second script uses 'N' to pair each
31747  # line-number line with the line containing $LINENO, and appends
31748  # trailing '-' during substitution so that $LINENO is not a special
31749  # case at line end.
31750  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31751  # scripts with optimization help from Paolo Bonzini.  Blame Lee
31752  # E. McMahon (1931-1989) for sed's syntax.  :-)
31753  sed -n '
31754    p
31755    /[$]LINENO/=
31756  ' <$as_myself |
31757    sed '
31758      s/[$]LINENO.*/&-/
31759      t lineno
31760      b
31761      :lineno
31762      N
31763      :loop
31764      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31765      t loop
31766      s/-\n.*//
31767    ' >$as_me.lineno &&
31768  chmod +x "$as_me.lineno" ||
31769    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31770   { (exit 1); exit 1; }; }
31771
31772  # Don't try to exec as it changes $[0], causing all sort of problems
31773  # (the dirname of $[0] is not the place where we might find the
31774  # original and so on.  Autoconf is especially sensitive to this).
31775  . "./$as_me.lineno"
31776  # Exit status is that of the last command.
31777  exit
31778}
31779
31780
31781if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31782  as_dirname=dirname
31783else
31784  as_dirname=false
31785fi
31786
31787ECHO_C= ECHO_N= ECHO_T=
31788case `echo -n x` in
31789-n*)
31790  case `echo 'x\c'` in
31791  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31792  *)   ECHO_C='\c';;
31793  esac;;
31794*)
31795  ECHO_N='-n';;
31796esac
31797
31798if expr a : '\(a\)' >/dev/null 2>&1 &&
31799   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31800  as_expr=expr
31801else
31802  as_expr=false
31803fi
31804
31805rm -f conf$$ conf$$.exe conf$$.file
31806if test -d conf$$.dir; then
31807  rm -f conf$$.dir/conf$$.file
31808else
31809  rm -f conf$$.dir
31810  mkdir conf$$.dir
31811fi
31812echo >conf$$.file
31813if ln -s conf$$.file conf$$ 2>/dev/null; then
31814  as_ln_s='ln -s'
31815  # ... but there are two gotchas:
31816  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31817  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31818  # In both cases, we have to default to `cp -p'.
31819  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31820    as_ln_s='cp -p'
31821elif ln conf$$.file conf$$ 2>/dev/null; then
31822  as_ln_s=ln
31823else
31824  as_ln_s='cp -p'
31825fi
31826rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31827rmdir conf$$.dir 2>/dev/null
31828
31829if mkdir -p . 2>/dev/null; then
31830  as_mkdir_p=:
31831else
31832  test -d ./-p && rmdir ./-p
31833  as_mkdir_p=false
31834fi
31835
31836if test -x / >/dev/null 2>&1; then
31837  as_test_x='test -x'
31838else
31839  if ls -dL / >/dev/null 2>&1; then
31840    as_ls_L_option=L
31841  else
31842    as_ls_L_option=
31843  fi
31844  as_test_x='
31845    eval sh -c '\''
31846      if test -d "$1"; then
31847        test -d "$1/.";
31848      else
31849	case $1 in
31850        -*)set "./$1";;
31851	esac;
31852	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31853	???[sx]*):;;*)false;;esac;fi
31854    '\'' sh
31855  '
31856fi
31857as_executable_p=$as_test_x
31858
31859# Sed expression to map a string onto a valid CPP name.
31860as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31861
31862# Sed expression to map a string onto a valid variable name.
31863as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31864
31865
31866exec 6>&1
31867
31868# Save the log message, to keep $[0] and so on meaningful, and to
31869# report actual input values of CONFIG_FILES etc. instead of their
31870# values after options handling.
31871ac_log="
31872This file was extended by scim-anthy $as_me 1.2.7, which was
31873generated by GNU Autoconf 2.61.  Invocation command line was
31874
31875  CONFIG_FILES    = $CONFIG_FILES
31876  CONFIG_HEADERS  = $CONFIG_HEADERS
31877  CONFIG_LINKS    = $CONFIG_LINKS
31878  CONFIG_COMMANDS = $CONFIG_COMMANDS
31879  $ $0 $@
31880
31881on `(hostname || uname -n) 2>/dev/null | sed 1q`
31882"
31883
31884_ACEOF
31885
31886cat >>$CONFIG_STATUS <<_ACEOF
31887# Files that config.status was made for.
31888config_files="$ac_config_files"
31889config_headers="$ac_config_headers"
31890config_commands="$ac_config_commands"
31891
31892_ACEOF
31893
31894cat >>$CONFIG_STATUS <<\_ACEOF
31895ac_cs_usage="\
31896\`$as_me' instantiates files from templates according to the
31897current configuration.
31898
31899Usage: $0 [OPTIONS] [FILE]...
31900
31901  -h, --help       print this help, then exit
31902  -V, --version    print version number and configuration settings, then exit
31903  -q, --quiet      do not print progress messages
31904  -d, --debug      don't remove temporary files
31905      --recheck    update $as_me by reconfiguring in the same conditions
31906  --file=FILE[:TEMPLATE]
31907		   instantiate the configuration file FILE
31908  --header=FILE[:TEMPLATE]
31909		   instantiate the configuration header FILE
31910
31911Configuration files:
31912$config_files
31913
31914Configuration headers:
31915$config_headers
31916
31917Configuration commands:
31918$config_commands
31919
31920Report bugs to <bug-autoconf@gnu.org>."
31921
31922_ACEOF
31923cat >>$CONFIG_STATUS <<_ACEOF
31924ac_cs_version="\\
31925scim-anthy config.status 1.2.7
31926configured by $0, generated by GNU Autoconf 2.61,
31927  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31928
31929Copyright (C) 2006 Free Software Foundation, Inc.
31930This config.status script is free software; the Free Software Foundation
31931gives unlimited permission to copy, distribute and modify it."
31932
31933ac_pwd='$ac_pwd'
31934srcdir='$srcdir'
31935INSTALL='$INSTALL'
31936MKDIR_P='$MKDIR_P'
31937_ACEOF
31938
31939cat >>$CONFIG_STATUS <<\_ACEOF
31940# If no file are specified by the user, then we need to provide default
31941# value.  By we need to know if files were specified by the user.
31942ac_need_defaults=:
31943while test $# != 0
31944do
31945  case $1 in
31946  --*=*)
31947    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31948    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31949    ac_shift=:
31950    ;;
31951  *)
31952    ac_option=$1
31953    ac_optarg=$2
31954    ac_shift=shift
31955    ;;
31956  esac
31957
31958  case $ac_option in
31959  # Handling of the options.
31960  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31961    ac_cs_recheck=: ;;
31962  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31963    echo "$ac_cs_version"; exit ;;
31964  --debug | --debu | --deb | --de | --d | -d )
31965    debug=: ;;
31966  --file | --fil | --fi | --f )
31967    $ac_shift
31968    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31969    ac_need_defaults=false;;
31970  --header | --heade | --head | --hea )
31971    $ac_shift
31972    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31973    ac_need_defaults=false;;
31974  --he | --h)
31975    # Conflict between --help and --header
31976    { echo "$as_me: error: ambiguous option: $1
31977Try \`$0 --help' for more information." >&2
31978   { (exit 1); exit 1; }; };;
31979  --help | --hel | -h )
31980    echo "$ac_cs_usage"; exit ;;
31981  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31982  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31983    ac_cs_silent=: ;;
31984
31985  # This is an error.
31986  -*) { echo "$as_me: error: unrecognized option: $1
31987Try \`$0 --help' for more information." >&2
31988   { (exit 1); exit 1; }; } ;;
31989
31990  *) ac_config_targets="$ac_config_targets $1"
31991     ac_need_defaults=false ;;
31992
31993  esac
31994  shift
31995done
31996
31997ac_configure_extra_args=
31998
31999if $ac_cs_silent; then
32000  exec 6>/dev/null
32001  ac_configure_extra_args="$ac_configure_extra_args --silent"
32002fi
32003
32004_ACEOF
32005cat >>$CONFIG_STATUS <<_ACEOF
32006if \$ac_cs_recheck; then
32007  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32008  CONFIG_SHELL=$SHELL
32009  export CONFIG_SHELL
32010  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32011fi
32012
32013_ACEOF
32014cat >>$CONFIG_STATUS <<\_ACEOF
32015exec 5>>config.log
32016{
32017  echo
32018  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32019## Running $as_me. ##
32020_ASBOX
32021  echo "$ac_log"
32022} >&5
32023
32024_ACEOF
32025cat >>$CONFIG_STATUS <<_ACEOF
32026#
32027# INIT-COMMANDS
32028#
32029# Capture the value of obsolete ALL_LINGUAS because we need it to compute
32030    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32031    # from automake.
32032    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32033    # Capture the value of LINGUAS because we need it to compute CATALOGS.
32034    LINGUAS="${LINGUAS-%UNSET%}"
32035
32036AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32037
32038_ACEOF
32039
32040cat >>$CONFIG_STATUS <<\_ACEOF
32041
32042# Handling of arguments.
32043for ac_config_target in $ac_config_targets
32044do
32045  case $ac_config_target in
32046    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32047    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32048    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32049    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32050    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
32051    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32052    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
32053    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32054    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
32055
32056  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32057echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32058   { (exit 1); exit 1; }; };;
32059  esac
32060done
32061
32062
32063# If the user did not use the arguments to specify the items to instantiate,
32064# then the envvar interface is used.  Set only those that are not.
32065# We use the long form for the default assignment because of an extremely
32066# bizarre bug on SunOS 4.1.3.
32067if $ac_need_defaults; then
32068  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32069  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32070  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32071fi
32072
32073# Have a temporary directory for convenience.  Make it in the build tree
32074# simply because there is no reason against having it here, and in addition,
32075# creating and moving files from /tmp can sometimes cause problems.
32076# Hook for its removal unless debugging.
32077# Note that there is a small window in which the directory will not be cleaned:
32078# after its creation but before its name has been assigned to `$tmp'.
32079$debug ||
32080{
32081  tmp=
32082  trap 'exit_status=$?
32083  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32084' 0
32085  trap '{ (exit 1); exit 1; }' 1 2 13 15
32086}
32087# Create a (secure) tmp directory for tmp files.
32088
32089{
32090  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32091  test -n "$tmp" && test -d "$tmp"
32092}  ||
32093{
32094  tmp=./conf$$-$RANDOM
32095  (umask 077 && mkdir "$tmp")
32096} ||
32097{
32098   echo "$me: cannot create a temporary directory in ." >&2
32099   { (exit 1); exit 1; }
32100}
32101
32102#
32103# Set up the sed scripts for CONFIG_FILES section.
32104#
32105
32106# No need to generate the scripts if there are no CONFIG_FILES.
32107# This happens for instance when ./config.status config.h
32108if test -n "$CONFIG_FILES"; then
32109
32110_ACEOF
32111
32112
32113
32114ac_delim='%!_!# '
32115for ac_last_try in false false false false false :; do
32116  cat >conf$$subs.sed <<_ACEOF
32117SHELL!$SHELL$ac_delim
32118PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32119PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32120PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32121PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32122PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32123PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32124exec_prefix!$exec_prefix$ac_delim
32125prefix!$prefix$ac_delim
32126program_transform_name!$program_transform_name$ac_delim
32127bindir!$bindir$ac_delim
32128sbindir!$sbindir$ac_delim
32129libexecdir!$libexecdir$ac_delim
32130datarootdir!$datarootdir$ac_delim
32131datadir!$datadir$ac_delim
32132sysconfdir!$sysconfdir$ac_delim
32133sharedstatedir!$sharedstatedir$ac_delim
32134localstatedir!$localstatedir$ac_delim
32135includedir!$includedir$ac_delim
32136oldincludedir!$oldincludedir$ac_delim
32137docdir!$docdir$ac_delim
32138infodir!$infodir$ac_delim
32139htmldir!$htmldir$ac_delim
32140dvidir!$dvidir$ac_delim
32141pdfdir!$pdfdir$ac_delim
32142psdir!$psdir$ac_delim
32143libdir!$libdir$ac_delim
32144localedir!$localedir$ac_delim
32145mandir!$mandir$ac_delim
32146DEFS!$DEFS$ac_delim
32147ECHO_C!$ECHO_C$ac_delim
32148ECHO_N!$ECHO_N$ac_delim
32149ECHO_T!$ECHO_T$ac_delim
32150LIBS!$LIBS$ac_delim
32151build_alias!$build_alias$ac_delim
32152host_alias!$host_alias$ac_delim
32153target_alias!$target_alias$ac_delim
32154SCIM_ANTHY_MAJOR_VERSION!$SCIM_ANTHY_MAJOR_VERSION$ac_delim
32155SCIM_ANTHY_MINOR_VERSION!$SCIM_ANTHY_MINOR_VERSION$ac_delim
32156SCIM_ANTHY_MICRO_VERSION!$SCIM_ANTHY_MICRO_VERSION$ac_delim
32157SCIM_ANTHY_VERSION!$SCIM_ANTHY_VERSION$ac_delim
32158INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32159INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32160INSTALL_DATA!$INSTALL_DATA$ac_delim
32161am__isrc!$am__isrc$ac_delim
32162CYGPATH_W!$CYGPATH_W$ac_delim
32163PACKAGE!$PACKAGE$ac_delim
32164VERSION!$VERSION$ac_delim
32165ACLOCAL!$ACLOCAL$ac_delim
32166AUTOCONF!$AUTOCONF$ac_delim
32167AUTOMAKE!$AUTOMAKE$ac_delim
32168AUTOHEADER!$AUTOHEADER$ac_delim
32169MAKEINFO!$MAKEINFO$ac_delim
32170install_sh!$install_sh$ac_delim
32171STRIP!$STRIP$ac_delim
32172INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
32173mkdir_p!$mkdir_p$ac_delim
32174AWK!$AWK$ac_delim
32175SET_MAKE!$SET_MAKE$ac_delim
32176am__leading_dot!$am__leading_dot$ac_delim
32177AMTAR!$AMTAR$ac_delim
32178am__tar!$am__tar$ac_delim
32179am__untar!$am__untar$ac_delim
32180MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
32181USE_NLS!$USE_NLS$ac_delim
32182MSGFMT!$MSGFMT$ac_delim
32183GMSGFMT!$GMSGFMT$ac_delim
32184XGETTEXT!$XGETTEXT$ac_delim
32185MSGMERGE!$MSGMERGE$ac_delim
32186CC!$CC$ac_delim
32187CFLAGS!$CFLAGS$ac_delim
32188LDFLAGS!$LDFLAGS$ac_delim
32189CPPFLAGS!$CPPFLAGS$ac_delim
32190ac_ct_CC!$ac_ct_CC$ac_delim
32191EXEEXT!$EXEEXT$ac_delim
32192OBJEXT!$OBJEXT$ac_delim
32193DEPDIR!$DEPDIR$ac_delim
32194am__include!$am__include$ac_delim
32195am__quote!$am__quote$ac_delim
32196AMDEP_TRUE!$AMDEP_TRUE$ac_delim
32197AMDEP_FALSE!$AMDEP_FALSE$ac_delim
32198AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
32199CCDEPMODE!$CCDEPMODE$ac_delim
32200am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32201am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32202build!$build$ac_delim
32203build_cpu!$build_cpu$ac_delim
32204build_vendor!$build_vendor$ac_delim
32205build_os!$build_os$ac_delim
32206host!$host$ac_delim
32207host_cpu!$host_cpu$ac_delim
32208host_vendor!$host_vendor$ac_delim
32209host_os!$host_os$ac_delim
32210RANLIB!$RANLIB$ac_delim
32211CPP!$CPP$ac_delim
32212GREP!$GREP$ac_delim
32213EGREP!$EGREP$ac_delim
32214_ACEOF
32215
32216  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32217    break
32218  elif $ac_last_try; then
32219    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32220echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32221   { (exit 1); exit 1; }; }
32222  else
32223    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32224  fi
32225done
32226
32227ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32228if test -n "$ac_eof"; then
32229  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32230  ac_eof=`expr $ac_eof + 1`
32231fi
32232
32233cat >>$CONFIG_STATUS <<_ACEOF
32234cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32236_ACEOF
32237sed '
32238s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32239s/^/s,@/; s/!/@,|#_!!_#|/
32240:n
32241t n
32242s/'"$ac_delim"'$/,g/; t
32243s/$/\\/; p
32244N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32245' >>$CONFIG_STATUS <conf$$subs.sed
32246rm -f conf$$subs.sed
32247cat >>$CONFIG_STATUS <<_ACEOF
32248CEOF$ac_eof
32249_ACEOF
32250
32251
32252ac_delim='%!_!# '
32253for ac_last_try in false false false false false :; do
32254  cat >conf$$subs.sed <<_ACEOF
32255ALLOCA!$ALLOCA$ac_delim
32256GLIBC21!$GLIBC21$ac_delim
32257HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
32258HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
32259HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
32260HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
32261LIBICONV!$LIBICONV$ac_delim
32262LTLIBICONV!$LTLIBICONV$ac_delim
32263INTLBISON!$INTLBISON$ac_delim
32264BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
32265USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
32266CATOBJEXT!$CATOBJEXT$ac_delim
32267DATADIRNAME!$DATADIRNAME$ac_delim
32268INSTOBJEXT!$INSTOBJEXT$ac_delim
32269GENCAT!$GENCAT$ac_delim
32270INTLOBJS!$INTLOBJS$ac_delim
32271INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
32272INTLLIBS!$INTLLIBS$ac_delim
32273LIBINTL!$LIBINTL$ac_delim
32274LTLIBINTL!$LTLIBINTL$ac_delim
32275POSUB!$POSUB$ac_delim
32276GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
32277SED!$SED$ac_delim
32278LN_S!$LN_S$ac_delim
32279ECHO!$ECHO$ac_delim
32280AR!$AR$ac_delim
32281DSYMUTIL!$DSYMUTIL$ac_delim
32282NMEDIT!$NMEDIT$ac_delim
32283CXX!$CXX$ac_delim
32284CXXFLAGS!$CXXFLAGS$ac_delim
32285ac_ct_CXX!$ac_ct_CXX$ac_delim
32286CXXDEPMODE!$CXXDEPMODE$ac_delim
32287am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32288am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32289CXXCPP!$CXXCPP$ac_delim
32290F77!$F77$ac_delim
32291FFLAGS!$FFLAGS$ac_delim
32292ac_ct_F77!$ac_ct_F77$ac_delim
32293LIBTOOL!$LIBTOOL$ac_delim
32294INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32295INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32296CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32297CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32298LIBADD_DL!$LIBADD_DL$ac_delim
32299LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
32300PKG_CONFIG!$PKG_CONFIG$ac_delim
32301SCIM_CFLAGS!$SCIM_CFLAGS$ac_delim
32302SCIM_LIBS!$SCIM_LIBS$ac_delim
32303SCIM_GTKUTILS_CFLAGS!$SCIM_GTKUTILS_CFLAGS$ac_delim
32304SCIM_GTKUTILS_LIBS!$SCIM_GTKUTILS_LIBS$ac_delim
32305SCIM_VERSION!$SCIM_VERSION$ac_delim
32306SCIM_BUILD_SETUP_TRUE!$SCIM_BUILD_SETUP_TRUE$ac_delim
32307SCIM_BUILD_SETUP_FALSE!$SCIM_BUILD_SETUP_FALSE$ac_delim
32308SCIM_BUILD_SETUP!$SCIM_BUILD_SETUP$ac_delim
32309ac_aux_dir!$ac_aux_dir$ac_delim
32310ANTHY_LIBS!$ANTHY_LIBS$ac_delim
32311ANTHY_CFLAGS!$ANTHY_CFLAGS$ac_delim
32312GTK2_CFLAGS!$GTK2_CFLAGS$ac_delim
32313GTK2_LIBS!$GTK2_LIBS$ac_delim
32314SCIM_BUILD_HELPER_TRUE!$SCIM_BUILD_HELPER_TRUE$ac_delim
32315SCIM_BUILD_HELPER_FALSE!$SCIM_BUILD_HELPER_FALSE$ac_delim
32316SCIM_BUILD_HELPER!$SCIM_BUILD_HELPER$ac_delim
32317LIBTOOL_EXPORT_OPTIONS!$LIBTOOL_EXPORT_OPTIONS$ac_delim
32318SCIM_DEBUG_FLAGS!$SCIM_DEBUG_FLAGS$ac_delim
32319SCIM_DATADIR!$SCIM_DATADIR$ac_delim
32320SCIM_ICONDIR!$SCIM_ICONDIR$ac_delim
32321SCIM_MODULEDIR!$SCIM_MODULEDIR$ac_delim
32322SCIM_ANTHY_DATADIR!$SCIM_ANTHY_DATADIR$ac_delim
32323LIBOBJS!$LIBOBJS$ac_delim
32324LTLIBOBJS!$LTLIBOBJS$ac_delim
32325_ACEOF
32326
32327  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
32328    break
32329  elif $ac_last_try; then
32330    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32331echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32332   { (exit 1); exit 1; }; }
32333  else
32334    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32335  fi
32336done
32337
32338ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32339if test -n "$ac_eof"; then
32340  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32341  ac_eof=`expr $ac_eof + 1`
32342fi
32343
32344cat >>$CONFIG_STATUS <<_ACEOF
32345cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32347_ACEOF
32348sed '
32349s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32350s/^/s,@/; s/!/@,|#_!!_#|/
32351:n
32352t n
32353s/'"$ac_delim"'$/,g/; t
32354s/$/\\/; p
32355N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32356' >>$CONFIG_STATUS <conf$$subs.sed
32357rm -f conf$$subs.sed
32358cat >>$CONFIG_STATUS <<_ACEOF
32359:end
32360s/|#_!!_#|//g
32361CEOF$ac_eof
32362_ACEOF
32363
32364
32365# VPATH may cause trouble with some makes, so we remove $(srcdir),
32366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32367# trailing colons and then remove the whole line if VPATH becomes empty
32368# (actually we leave an empty line to preserve line numbers).
32369if test "x$srcdir" = x.; then
32370  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
32371s/:*\$(srcdir):*/:/
32372s/:*\${srcdir}:*/:/
32373s/:*@srcdir@:*/:/
32374s/^\([^=]*=[	 ]*\):*/\1/
32375s/:*$//
32376s/^[^=]*=[	 ]*$//
32377}'
32378fi
32379
32380cat >>$CONFIG_STATUS <<\_ACEOF
32381fi # test -n "$CONFIG_FILES"
32382
32383
32384for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
32385do
32386  case $ac_tag in
32387  :[FHLC]) ac_mode=$ac_tag; continue;;
32388  esac
32389  case $ac_mode$ac_tag in
32390  :[FHL]*:*);;
32391  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32392echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32393   { (exit 1); exit 1; }; };;
32394  :[FH]-) ac_tag=-:-;;
32395  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32396  esac
32397  ac_save_IFS=$IFS
32398  IFS=:
32399  set x $ac_tag
32400  IFS=$ac_save_IFS
32401  shift
32402  ac_file=$1
32403  shift
32404
32405  case $ac_mode in
32406  :L) ac_source=$1;;
32407  :[FH])
32408    ac_file_inputs=
32409    for ac_f
32410    do
32411      case $ac_f in
32412      -) ac_f="$tmp/stdin";;
32413      *) # Look for the file first in the build tree, then in the source tree
32414	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
32415	 # because $ac_f cannot contain `:'.
32416	 test -f "$ac_f" ||
32417	   case $ac_f in
32418	   [\\/$]*) false;;
32419	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32420	   esac ||
32421	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32422echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32423   { (exit 1); exit 1; }; };;
32424      esac
32425      ac_file_inputs="$ac_file_inputs $ac_f"
32426    done
32427
32428    # Let's still pretend it is `configure' which instantiates (i.e., don't
32429    # use $as_me), people would be surprised to read:
32430    #    /* config.h.  Generated by config.status.  */
32431    configure_input="Generated from "`IFS=:
32432	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32433    if test x"$ac_file" != x-; then
32434      configure_input="$ac_file.  $configure_input"
32435      { echo "$as_me:$LINENO: creating $ac_file" >&5
32436echo "$as_me: creating $ac_file" >&6;}
32437    fi
32438
32439    case $ac_tag in
32440    *:-:* | *:-) cat >"$tmp/stdin";;
32441    esac
32442    ;;
32443  esac
32444
32445  ac_dir=`$as_dirname -- "$ac_file" ||
32446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32447	 X"$ac_file" : 'X\(//\)[^/]' \| \
32448	 X"$ac_file" : 'X\(//\)$' \| \
32449	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32450echo X"$ac_file" |
32451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32452	    s//\1/
32453	    q
32454	  }
32455	  /^X\(\/\/\)[^/].*/{
32456	    s//\1/
32457	    q
32458	  }
32459	  /^X\(\/\/\)$/{
32460	    s//\1/
32461	    q
32462	  }
32463	  /^X\(\/\).*/{
32464	    s//\1/
32465	    q
32466	  }
32467	  s/.*/./; q'`
32468  { as_dir="$ac_dir"
32469  case $as_dir in #(
32470  -*) as_dir=./$as_dir;;
32471  esac
32472  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32473    as_dirs=
32474    while :; do
32475      case $as_dir in #(
32476      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32477      *) as_qdir=$as_dir;;
32478      esac
32479      as_dirs="'$as_qdir' $as_dirs"
32480      as_dir=`$as_dirname -- "$as_dir" ||
32481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32482	 X"$as_dir" : 'X\(//\)[^/]' \| \
32483	 X"$as_dir" : 'X\(//\)$' \| \
32484	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32485echo X"$as_dir" |
32486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32487	    s//\1/
32488	    q
32489	  }
32490	  /^X\(\/\/\)[^/].*/{
32491	    s//\1/
32492	    q
32493	  }
32494	  /^X\(\/\/\)$/{
32495	    s//\1/
32496	    q
32497	  }
32498	  /^X\(\/\).*/{
32499	    s//\1/
32500	    q
32501	  }
32502	  s/.*/./; q'`
32503      test -d "$as_dir" && break
32504    done
32505    test -z "$as_dirs" || eval "mkdir $as_dirs"
32506  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32507echo "$as_me: error: cannot create directory $as_dir" >&2;}
32508   { (exit 1); exit 1; }; }; }
32509  ac_builddir=.
32510
32511case "$ac_dir" in
32512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32513*)
32514  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32515  # A ".." for each directory in $ac_dir_suffix.
32516  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32517  case $ac_top_builddir_sub in
32518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32520  esac ;;
32521esac
32522ac_abs_top_builddir=$ac_pwd
32523ac_abs_builddir=$ac_pwd$ac_dir_suffix
32524# for backward compatibility:
32525ac_top_builddir=$ac_top_build_prefix
32526
32527case $srcdir in
32528  .)  # We are building in place.
32529    ac_srcdir=.
32530    ac_top_srcdir=$ac_top_builddir_sub
32531    ac_abs_top_srcdir=$ac_pwd ;;
32532  [\\/]* | ?:[\\/]* )  # Absolute name.
32533    ac_srcdir=$srcdir$ac_dir_suffix;
32534    ac_top_srcdir=$srcdir
32535    ac_abs_top_srcdir=$srcdir ;;
32536  *) # Relative name.
32537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32538    ac_top_srcdir=$ac_top_build_prefix$srcdir
32539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32540esac
32541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32542
32543
32544  case $ac_mode in
32545  :F)
32546  #
32547  # CONFIG_FILE
32548  #
32549
32550  case $INSTALL in
32551  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32552  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32553  esac
32554  ac_MKDIR_P=$MKDIR_P
32555  case $MKDIR_P in
32556  [\\/$]* | ?:[\\/]* ) ;;
32557  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32558  esac
32559_ACEOF
32560
32561cat >>$CONFIG_STATUS <<\_ACEOF
32562# If the template does not know about datarootdir, expand it.
32563# FIXME: This hack should be removed a few years after 2.60.
32564ac_datarootdir_hack=; ac_datarootdir_seen=
32565
32566case `sed -n '/datarootdir/ {
32567  p
32568  q
32569}
32570/@datadir@/p
32571/@docdir@/p
32572/@infodir@/p
32573/@localedir@/p
32574/@mandir@/p
32575' $ac_file_inputs` in
32576*datarootdir*) ac_datarootdir_seen=yes;;
32577*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32578  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32579echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32580_ACEOF
32581cat >>$CONFIG_STATUS <<_ACEOF
32582  ac_datarootdir_hack='
32583  s&@datadir@&$datadir&g
32584  s&@docdir@&$docdir&g
32585  s&@infodir@&$infodir&g
32586  s&@localedir@&$localedir&g
32587  s&@mandir@&$mandir&g
32588    s&\\\${datarootdir}&$datarootdir&g' ;;
32589esac
32590_ACEOF
32591
32592# Neutralize VPATH when `$srcdir' = `.'.
32593# Shell code in configure.ac might set extrasub.
32594# FIXME: do we really want to maintain this feature?
32595cat >>$CONFIG_STATUS <<_ACEOF
32596  sed "$ac_vpsub
32597$extrasub
32598_ACEOF
32599cat >>$CONFIG_STATUS <<\_ACEOF
32600:t
32601/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32602s&@configure_input@&$configure_input&;t t
32603s&@top_builddir@&$ac_top_builddir_sub&;t t
32604s&@srcdir@&$ac_srcdir&;t t
32605s&@abs_srcdir@&$ac_abs_srcdir&;t t
32606s&@top_srcdir@&$ac_top_srcdir&;t t
32607s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32608s&@builddir@&$ac_builddir&;t t
32609s&@abs_builddir@&$ac_abs_builddir&;t t
32610s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32611s&@INSTALL@&$ac_INSTALL&;t t
32612s&@MKDIR_P@&$ac_MKDIR_P&;t t
32613$ac_datarootdir_hack
32614" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
32615
32616test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32617  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32618  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32619  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32620which seems to be undefined.  Please make sure it is defined." >&5
32621echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32622which seems to be undefined.  Please make sure it is defined." >&2;}
32623
32624  rm -f "$tmp/stdin"
32625  case $ac_file in
32626  -) cat "$tmp/out"; rm -f "$tmp/out";;
32627  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32628  esac
32629 ;;
32630  :H)
32631  #
32632  # CONFIG_HEADER
32633  #
32634_ACEOF
32635
32636# Transform confdefs.h into a sed script `conftest.defines', that
32637# substitutes the proper values into config.h.in to produce config.h.
32638rm -f conftest.defines conftest.tail
32639# First, append a space to every undef/define line, to ease matching.
32640echo 's/$/ /' >conftest.defines
32641# Then, protect against being on the right side of a sed subst, or in
32642# an unquoted here document, in config.status.  If some macros were
32643# called several times there might be several #defines for the same
32644# symbol, which is useless.  But do not sort them, since the last
32645# AC_DEFINE must be honored.
32646ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32647# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32648# NAME is the cpp macro being defined, VALUE is the value it is being given.
32649# PARAMS is the parameter list in the macro definition--in most cases, it's
32650# just an empty string.
32651ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
32652ac_dB='\\)[	 (].*,\\1define\\2'
32653ac_dC=' '
32654ac_dD=' ,'
32655
32656uniq confdefs.h |
32657  sed -n '
32658	t rset
32659	:rset
32660	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
32661	t ok
32662	d
32663	:ok
32664	s/[\\&,]/\\&/g
32665	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32666	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32667  ' >>conftest.defines
32668
32669# Remove the space that was appended to ease matching.
32670# Then replace #undef with comments.  This is necessary, for
32671# example, in the case of _POSIX_SOURCE, which is predefined and required
32672# on some systems where configure will not decide to define it.
32673# (The regexp can be short, since the line contains either #define or #undef.)
32674echo 's/ $//
32675s,^[	 #]*u.*,/* & */,' >>conftest.defines
32676
32677# Break up conftest.defines:
32678ac_max_sed_lines=50
32679
32680# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32681# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32682# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32683# et cetera.
32684ac_in='$ac_file_inputs'
32685ac_out='"$tmp/out1"'
32686ac_nxt='"$tmp/out2"'
32687
32688while :
32689do
32690  # Write a here document:
32691    cat >>$CONFIG_STATUS <<_ACEOF
32692    # First, check the format of the line:
32693    cat >"\$tmp/defines.sed" <<\\CEOF
32694/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
32695/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
32696b
32697:def
32698_ACEOF
32699  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32700  echo 'CEOF
32701    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32702  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32703  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32704  grep . conftest.tail >/dev/null || break
32705  rm -f conftest.defines
32706  mv conftest.tail conftest.defines
32707done
32708rm -f conftest.defines conftest.tail
32709
32710echo "ac_result=$ac_in" >>$CONFIG_STATUS
32711cat >>$CONFIG_STATUS <<\_ACEOF
32712  if test x"$ac_file" != x-; then
32713    echo "/* $configure_input  */" >"$tmp/config.h"
32714    cat "$ac_result" >>"$tmp/config.h"
32715    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32716      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32717echo "$as_me: $ac_file is unchanged" >&6;}
32718    else
32719      rm -f $ac_file
32720      mv "$tmp/config.h" $ac_file
32721    fi
32722  else
32723    echo "/* $configure_input  */"
32724    cat "$ac_result"
32725  fi
32726  rm -f "$tmp/out12"
32727# Compute $ac_file's index in $config_headers.
32728_am_arg=$ac_file
32729_am_stamp_count=1
32730for _am_header in $config_headers :; do
32731  case $_am_header in
32732    $_am_arg | $_am_arg:* )
32733      break ;;
32734    * )
32735      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32736  esac
32737done
32738echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32739$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32740	 X"$_am_arg" : 'X\(//\)[^/]' \| \
32741	 X"$_am_arg" : 'X\(//\)$' \| \
32742	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32743echo X"$_am_arg" |
32744    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32745	    s//\1/
32746	    q
32747	  }
32748	  /^X\(\/\/\)[^/].*/{
32749	    s//\1/
32750	    q
32751	  }
32752	  /^X\(\/\/\)$/{
32753	    s//\1/
32754	    q
32755	  }
32756	  /^X\(\/\).*/{
32757	    s//\1/
32758	    q
32759	  }
32760	  s/.*/./; q'`/stamp-h$_am_stamp_count
32761 ;;
32762
32763  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32764echo "$as_me: executing $ac_file commands" >&6;}
32765 ;;
32766  esac
32767
32768
32769  case $ac_file$ac_mode in
32770    "default-1":C)
32771    for ac_file in $CONFIG_FILES; do
32772      # Support "outfile[:infile[:infile...]]"
32773      case "$ac_file" in
32774        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32775      esac
32776      # PO directories have a Makefile.in generated from Makefile.in.in.
32777      case "$ac_file" in */Makefile.in)
32778        # Adjust a relative srcdir.
32779        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32780        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32781        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32782        # In autoconf-2.13 it is called $ac_given_srcdir.
32783        # In autoconf-2.50 it is called $srcdir.
32784        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32785        case "$ac_given_srcdir" in
32786          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32787          /*) top_srcdir="$ac_given_srcdir" ;;
32788          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32789        esac
32790        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32791          rm -f "$ac_dir/POTFILES"
32792          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32793          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32794          POMAKEFILEDEPS="POTFILES.in"
32795          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32796          # on $ac_dir but don't depend on user-specified configuration
32797          # parameters.
32798          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32799            # The LINGUAS file contains the set of available languages.
32800            if test -n "$OBSOLETE_ALL_LINGUAS"; then
32801              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32802            fi
32803            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32804            # Hide the ALL_LINGUAS assigment from automake.
32805            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32806            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32807          else
32808            # The set of available languages was given in configure.in.
32809            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32810          fi
32811          # Compute POFILES
32812          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32813          # Compute UPDATEPOFILES
32814          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32815          # Compute DUMMYPOFILES
32816          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32817          # Compute GMOFILES
32818          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32819          case "$ac_given_srcdir" in
32820            .) srcdirpre= ;;
32821            *) srcdirpre='$(srcdir)/' ;;
32822          esac
32823          POFILES=
32824          UPDATEPOFILES=
32825          DUMMYPOFILES=
32826          GMOFILES=
32827          for lang in $ALL_LINGUAS; do
32828            POFILES="$POFILES $srcdirpre$lang.po"
32829            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32830            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32831            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32832          done
32833          # CATALOGS depends on both $ac_dir and the user's LINGUAS
32834          # environment variable.
32835          INST_LINGUAS=
32836          if test -n "$ALL_LINGUAS"; then
32837            for presentlang in $ALL_LINGUAS; do
32838              useit=no
32839              if test "%UNSET%" != "$LINGUAS"; then
32840                desiredlanguages="$LINGUAS"
32841              else
32842                desiredlanguages="$ALL_LINGUAS"
32843              fi
32844              for desiredlang in $desiredlanguages; do
32845                # Use the presentlang catalog if desiredlang is
32846                #   a. equal to presentlang, or
32847                #   b. a variant of presentlang (because in this case,
32848                #      presentlang can be used as a fallback for messages
32849                #      which are not translated in the desiredlang catalog).
32850                case "$desiredlang" in
32851                  "$presentlang"*) useit=yes;;
32852                esac
32853              done
32854              if test $useit = yes; then
32855                INST_LINGUAS="$INST_LINGUAS $presentlang"
32856              fi
32857            done
32858          fi
32859          CATALOGS=
32860          if test -n "$INST_LINGUAS"; then
32861            for lang in $INST_LINGUAS; do
32862              CATALOGS="$CATALOGS $lang.gmo"
32863            done
32864          fi
32865          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32866          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"
32867          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32868            if test -f "$f"; then
32869              case "$f" in
32870                *.orig | *.bak | *~) ;;
32871                *) cat "$f" >> "$ac_dir/Makefile" ;;
32872              esac
32873            fi
32874          done
32875        fi
32876        ;;
32877      esac
32878    done ;;
32879    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32880  # Strip MF so we end up with the name of the file.
32881  mf=`echo "$mf" | sed -e 's/:.*$//'`
32882  # Check whether this is an Automake generated Makefile or not.
32883  # We used to match only the files named `Makefile.in', but
32884  # some people rename them; so instead we look at the file content.
32885  # Grep'ing the first line is not enough: some people post-process
32886  # each Makefile.in and add a new line on top of each file to say so.
32887  # Grep'ing the whole file is not good either: AIX grep has a line
32888  # limit of 2048, but all sed's we know have understand at least 4000.
32889  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32890    dirpart=`$as_dirname -- "$mf" ||
32891$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32892	 X"$mf" : 'X\(//\)[^/]' \| \
32893	 X"$mf" : 'X\(//\)$' \| \
32894	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32895echo X"$mf" |
32896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32897	    s//\1/
32898	    q
32899	  }
32900	  /^X\(\/\/\)[^/].*/{
32901	    s//\1/
32902	    q
32903	  }
32904	  /^X\(\/\/\)$/{
32905	    s//\1/
32906	    q
32907	  }
32908	  /^X\(\/\).*/{
32909	    s//\1/
32910	    q
32911	  }
32912	  s/.*/./; q'`
32913  else
32914    continue
32915  fi
32916  # Extract the definition of DEPDIR, am__include, and am__quote
32917  # from the Makefile without running `make'.
32918  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32919  test -z "$DEPDIR" && continue
32920  am__include=`sed -n 's/^am__include = //p' < "$mf"`
32921  test -z "am__include" && continue
32922  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32923  # When using ansi2knr, U may be empty or an underscore; expand it
32924  U=`sed -n 's/^U = //p' < "$mf"`
32925  # Find all dependency output files, they are included files with
32926  # $(DEPDIR) in their names.  We invoke sed twice because it is the
32927  # simplest approach to changing $(DEPDIR) to its actual value in the
32928  # expansion.
32929  for file in `sed -n "
32930    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32931       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32932    # Make sure the directory exists.
32933    test -f "$dirpart/$file" && continue
32934    fdir=`$as_dirname -- "$file" ||
32935$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32936	 X"$file" : 'X\(//\)[^/]' \| \
32937	 X"$file" : 'X\(//\)$' \| \
32938	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32939echo X"$file" |
32940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32941	    s//\1/
32942	    q
32943	  }
32944	  /^X\(\/\/\)[^/].*/{
32945	    s//\1/
32946	    q
32947	  }
32948	  /^X\(\/\/\)$/{
32949	    s//\1/
32950	    q
32951	  }
32952	  /^X\(\/\).*/{
32953	    s//\1/
32954	    q
32955	  }
32956	  s/.*/./; q'`
32957    { as_dir=$dirpart/$fdir
32958  case $as_dir in #(
32959  -*) as_dir=./$as_dir;;
32960  esac
32961  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32962    as_dirs=
32963    while :; do
32964      case $as_dir in #(
32965      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32966      *) as_qdir=$as_dir;;
32967      esac
32968      as_dirs="'$as_qdir' $as_dirs"
32969      as_dir=`$as_dirname -- "$as_dir" ||
32970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32971	 X"$as_dir" : 'X\(//\)[^/]' \| \
32972	 X"$as_dir" : 'X\(//\)$' \| \
32973	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32974echo X"$as_dir" |
32975    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32976	    s//\1/
32977	    q
32978	  }
32979	  /^X\(\/\/\)[^/].*/{
32980	    s//\1/
32981	    q
32982	  }
32983	  /^X\(\/\/\)$/{
32984	    s//\1/
32985	    q
32986	  }
32987	  /^X\(\/\).*/{
32988	    s//\1/
32989	    q
32990	  }
32991	  s/.*/./; q'`
32992      test -d "$as_dir" && break
32993    done
32994    test -z "$as_dirs" || eval "mkdir $as_dirs"
32995  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32996echo "$as_me: error: cannot create directory $as_dir" >&2;}
32997   { (exit 1); exit 1; }; }; }
32998    # echo "creating $dirpart/$file"
32999    echo '# dummy' > "$dirpart/$file"
33000  done
33001done
33002 ;;
33003
33004  esac
33005done # for ac_tag
33006
33007
33008{ (exit 0); exit 0; }
33009_ACEOF
33010chmod +x $CONFIG_STATUS
33011ac_clean_files=$ac_clean_files_save
33012
33013
33014# configure is writing to config.log, and then calls config.status.
33015# config.status does its own redirection, appending to config.log.
33016# Unfortunately, on DOS this fails, as config.log is still kept open
33017# by configure, so config.status won't be able to write to it; its
33018# output is simply discarded.  So we exec the FD to /dev/null,
33019# effectively closing config.log, so it can be properly (re)opened and
33020# appended to by config.status.  When coming back to configure, we
33021# need to make the FD available again.
33022if test "$no_create" != yes; then
33023  ac_cs_success=:
33024  ac_config_status_args=
33025  test "$silent" = yes &&
33026    ac_config_status_args="$ac_config_status_args --quiet"
33027  exec 5>/dev/null
33028  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33029  exec 5>>config.log
33030  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33031  # would make configure fail if this is the last instruction.
33032  $ac_cs_success || { (exit 1); exit 1; }
33033fi
33034
33035