1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for Image Scan! for Linux 2.11.0.
4#
5# Report bugs to <EPSON AVASYS Corporation <pipsnews@avasys.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='Image Scan! for Linux'
730PACKAGE_TARNAME='iscan'
731PACKAGE_VERSION='2.11.0'
732PACKAGE_STRING='Image Scan! for Linux 2.11.0'
733PACKAGE_BUGREPORT='EPSON AVASYS Corporation <pipsnews@avasys.jp>'
734
735ac_unique_file="backend/epkowa.c"
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
809PACKAGE_RELEASE
810subdirs
811INSTALL_PROGRAM
812INSTALL_SCRIPT
813INSTALL_DATA
814CYGPATH_W
815PACKAGE
816VERSION
817ACLOCAL
818AUTOCONF
819AUTOMAKE
820AUTOHEADER
821MAKEINFO
822install_sh
823STRIP
824INSTALL_STRIP_PROGRAM
825mkdir_p
826AWK
827SET_MAKE
828am__leading_dot
829AMTAR
830am__tar
831am__untar
832CXX
833CXXFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CXX
837EXEEXT
838OBJEXT
839DEPDIR
840am__include
841am__quote
842AMDEP_TRUE
843AMDEP_FALSE
844AMDEPBACKSLASH
845CXXDEPMODE
846am__fastdepCXX_TRUE
847am__fastdepCXX_FALSE
848PACKAGE_CXX_ABI
849CC
850CFLAGS
851ac_ct_CC
852CCDEPMODE
853am__fastdepCC_TRUE
854am__fastdepCC_FALSE
855CPP
856LN_S
857PKG_CONFIG
858GTK_CFLAGS
859GTK_LIBS
860GDK_IMLIB_CFLAGS
861GDK_IMLIB_LIBS
862GIMP_CFLAGS
863GIMP_LIBS
864GIMP_CONFIG
865ALLOCA
866GREP
867EGREP
868MKINSTALLDIRS
869USE_NLS
870MSGFMT
871GMSGFMT
872XGETTEXT
873MSGMERGE
874build
875build_cpu
876build_vendor
877build_os
878host
879host_cpu
880host_vendor
881host_os
882RANLIB
883GLIBC21
884HAVE_POSIX_PRINTF
885HAVE_ASPRINTF
886HAVE_SNPRINTF
887HAVE_WPRINTF
888LIBICONV
889LTLIBICONV
890INTLBISON
891BUILD_INCLUDED_LIBINTL
892USE_INCLUDED_LIBINTL
893CATOBJEXT
894DATADIRNAME
895INSTOBJEXT
896GENCAT
897INTLOBJS
898INTL_LIBTOOL_SUFFIX_PREFIX
899INTLLIBS
900LIBINTL
901LTLIBINTL
902POSUB
903LIBOBJS
904POW_LIB
905INSTALL_LTDL_TRUE
906INSTALL_LTDL_FALSE
907CONVENIENCE_LTDL_TRUE
908CONVENIENCE_LTDL_FALSE
909LIBADD_DL
910ECHO
911AR
912CXXCPP
913F77
914FFLAGS
915ac_ct_F77
916LIBTOOL
917LTDLINCL
918LIBLTDL
919ISCAN_HOST_CPU
920ENABLE_FRONTEND_TRUE
921ENABLE_FRONTEND_FALSE
922SANE_MAJOR
923SANE_MINOR
924SANE_REVISION
925LTLIBOBJS'
926ac_subst_files=''
927      ac_precious_vars='build_alias
928host_alias
929target_alias
930CXX
931CXXFLAGS
932LDFLAGS
933LIBS
934CPPFLAGS
935CCC
936CC
937CFLAGS
938CPP
939PKG_CONFIG
940GTK_CFLAGS
941GTK_LIBS
942GDK_IMLIB_CFLAGS
943GDK_IMLIB_LIBS
944GIMP_CFLAGS
945GIMP_LIBS
946CXXCPP
947F77
948FFLAGS'
949ac_subdirs_all='libltdl'
950
951# Initialize some variables set by options.
952ac_init_help=
953ac_init_version=false
954# The variables have the same names as the options, with
955# dashes changed to underlines.
956cache_file=/dev/null
957exec_prefix=NONE
958no_create=
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
967verbose=
968x_includes=NONE
969x_libraries=NONE
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
976# (The list follows the same order as the GNU Coding Standards.)
977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
996
997ac_prev=
998ac_dashdash=
999for ac_option
1000do
1001  # If the previous option needs an argument, assign it.
1002  if test -n "$ac_prev"; then
1003    eval $ac_prev=\$ac_option
1004    ac_prev=
1005    continue
1006  fi
1007
1008  case $ac_option in
1009  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010  *)	ac_optarg=yes ;;
1011  esac
1012
1013  # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015  case $ac_dashdash$ac_option in
1016  --)
1017    ac_dashdash=yes ;;
1018
1019  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020    ac_prev=bindir ;;
1021  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022    bindir=$ac_optarg ;;
1023
1024  -build | --build | --buil | --bui | --bu)
1025    ac_prev=build_alias ;;
1026  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027    build_alias=$ac_optarg ;;
1028
1029  -cache-file | --cache-file | --cache-fil | --cache-fi \
1030  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031    ac_prev=cache_file ;;
1032  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034    cache_file=$ac_optarg ;;
1035
1036  --config-cache | -C)
1037    cache_file=config.cache ;;
1038
1039  -datadir | --datadir | --datadi | --datad)
1040    ac_prev=datadir ;;
1041  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042    datadir=$ac_optarg ;;
1043
1044  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045  | --dataroo | --dataro | --datar)
1046    ac_prev=datarootdir ;;
1047  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049    datarootdir=$ac_optarg ;;
1050
1051  -disable-* | --disable-*)
1052    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056   { (exit 1); exit 1; }; }
1057    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058    eval enable_$ac_feature=no ;;
1059
1060  -docdir | --docdir | --docdi | --doc | --do)
1061    ac_prev=docdir ;;
1062  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063    docdir=$ac_optarg ;;
1064
1065  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066    ac_prev=dvidir ;;
1067  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068    dvidir=$ac_optarg ;;
1069
1070  -enable-* | --enable-*)
1071    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075   { (exit 1); exit 1; }; }
1076    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077    eval enable_$ac_feature=\$ac_optarg ;;
1078
1079  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081  | --exec | --exe | --ex)
1082    ac_prev=exec_prefix ;;
1083  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085  | --exec=* | --exe=* | --ex=*)
1086    exec_prefix=$ac_optarg ;;
1087
1088  -gas | --gas | --ga | --g)
1089    # Obsolete; use --with-gas.
1090    with_gas=yes ;;
1091
1092  -help | --help | --hel | --he | -h)
1093    ac_init_help=long ;;
1094  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095    ac_init_help=recursive ;;
1096  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097    ac_init_help=short ;;
1098
1099  -host | --host | --hos | --ho)
1100    ac_prev=host_alias ;;
1101  -host=* | --host=* | --hos=* | --ho=*)
1102    host_alias=$ac_optarg ;;
1103
1104  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105    ac_prev=htmldir ;;
1106  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107  | --ht=*)
1108    htmldir=$ac_optarg ;;
1109
1110  -includedir | --includedir | --includedi | --included | --include \
1111  | --includ | --inclu | --incl | --inc)
1112    ac_prev=includedir ;;
1113  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114  | --includ=* | --inclu=* | --incl=* | --inc=*)
1115    includedir=$ac_optarg ;;
1116
1117  -infodir | --infodir | --infodi | --infod | --info | --inf)
1118    ac_prev=infodir ;;
1119  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120    infodir=$ac_optarg ;;
1121
1122  -libdir | --libdir | --libdi | --libd)
1123    ac_prev=libdir ;;
1124  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125    libdir=$ac_optarg ;;
1126
1127  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128  | --libexe | --libex | --libe)
1129    ac_prev=libexecdir ;;
1130  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131  | --libexe=* | --libex=* | --libe=*)
1132    libexecdir=$ac_optarg ;;
1133
1134  -localedir | --localedir | --localedi | --localed | --locale)
1135    ac_prev=localedir ;;
1136  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137    localedir=$ac_optarg ;;
1138
1139  -localstatedir | --localstatedir | --localstatedi | --localstated \
1140  | --localstate | --localstat | --localsta | --localst | --locals)
1141    ac_prev=localstatedir ;;
1142  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144    localstatedir=$ac_optarg ;;
1145
1146  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147    ac_prev=mandir ;;
1148  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149    mandir=$ac_optarg ;;
1150
1151  -nfp | --nfp | --nf)
1152    # Obsolete; use --without-fp.
1153    with_fp=no ;;
1154
1155  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156  | --no-cr | --no-c | -n)
1157    no_create=yes ;;
1158
1159  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161    no_recursion=yes ;;
1162
1163  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165  | --oldin | --oldi | --old | --ol | --o)
1166    ac_prev=oldincludedir ;;
1167  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170    oldincludedir=$ac_optarg ;;
1171
1172  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173    ac_prev=prefix ;;
1174  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175    prefix=$ac_optarg ;;
1176
1177  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178  | --program-pre | --program-pr | --program-p)
1179    ac_prev=program_prefix ;;
1180  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182    program_prefix=$ac_optarg ;;
1183
1184  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185  | --program-suf | --program-su | --program-s)
1186    ac_prev=program_suffix ;;
1187  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189    program_suffix=$ac_optarg ;;
1190
1191  -program-transform-name | --program-transform-name \
1192  | --program-transform-nam | --program-transform-na \
1193  | --program-transform-n | --program-transform- \
1194  | --program-transform | --program-transfor \
1195  | --program-transfo | --program-transf \
1196  | --program-trans | --program-tran \
1197  | --progr-tra | --program-tr | --program-t)
1198    ac_prev=program_transform_name ;;
1199  -program-transform-name=* | --program-transform-name=* \
1200  | --program-transform-nam=* | --program-transform-na=* \
1201  | --program-transform-n=* | --program-transform-=* \
1202  | --program-transform=* | --program-transfor=* \
1203  | --program-transfo=* | --program-transf=* \
1204  | --program-trans=* | --program-tran=* \
1205  | --progr-tra=* | --program-tr=* | --program-t=*)
1206    program_transform_name=$ac_optarg ;;
1207
1208  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209    ac_prev=pdfdir ;;
1210  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211    pdfdir=$ac_optarg ;;
1212
1213  -psdir | --psdir | --psdi | --psd | --ps)
1214    ac_prev=psdir ;;
1215  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216    psdir=$ac_optarg ;;
1217
1218  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219  | -silent | --silent | --silen | --sile | --sil)
1220    silent=yes ;;
1221
1222  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223    ac_prev=sbindir ;;
1224  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225  | --sbi=* | --sb=*)
1226    sbindir=$ac_optarg ;;
1227
1228  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230  | --sharedst | --shareds | --shared | --share | --shar \
1231  | --sha | --sh)
1232    ac_prev=sharedstatedir ;;
1233  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236  | --sha=* | --sh=*)
1237    sharedstatedir=$ac_optarg ;;
1238
1239  -site | --site | --sit)
1240    ac_prev=site ;;
1241  -site=* | --site=* | --sit=*)
1242    site=$ac_optarg ;;
1243
1244  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245    ac_prev=srcdir ;;
1246  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247    srcdir=$ac_optarg ;;
1248
1249  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250  | --syscon | --sysco | --sysc | --sys | --sy)
1251    ac_prev=sysconfdir ;;
1252  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254    sysconfdir=$ac_optarg ;;
1255
1256  -target | --target | --targe | --targ | --tar | --ta | --t)
1257    ac_prev=target_alias ;;
1258  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259    target_alias=$ac_optarg ;;
1260
1261  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262    verbose=yes ;;
1263
1264  -version | --version | --versio | --versi | --vers | -V)
1265    ac_init_version=: ;;
1266
1267  -with-* | --with-*)
1268    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269    # Reject names that are not valid shell variable names.
1270    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271      { echo "$as_me: error: invalid package name: $ac_package" >&2
1272   { (exit 1); exit 1; }; }
1273    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274    eval with_$ac_package=\$ac_optarg ;;
1275
1276  -without-* | --without-*)
1277    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      { echo "$as_me: error: invalid package name: $ac_package" >&2
1281   { (exit 1); exit 1; }; }
1282    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283    eval with_$ac_package=no ;;
1284
1285  --x)
1286    # Obsolete; use --with-x.
1287    with_x=yes ;;
1288
1289  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290  | --x-incl | --x-inc | --x-in | --x-i)
1291    ac_prev=x_includes ;;
1292  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294    x_includes=$ac_optarg ;;
1295
1296  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298    ac_prev=x_libraries ;;
1299  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301    x_libraries=$ac_optarg ;;
1302
1303  -*) { echo "$as_me: error: unrecognized option: $ac_option
1304Try \`$0 --help' for more information." >&2
1305   { (exit 1); exit 1; }; }
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313   { (exit 1); exit 1; }; }
1314    eval $ac_envvar=\$ac_optarg
1315    export $ac_envvar ;;
1316
1317  *)
1318    # FIXME: should be removed in autoconf 3.0.
1319    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323    ;;
1324
1325  esac
1326done
1327
1328if test -n "$ac_prev"; then
1329  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330  { echo "$as_me: error: missing argument to $ac_option" >&2
1331   { (exit 1); exit 1; }; }
1332fi
1333
1334# Be sure to have absolute directory names.
1335for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336		datadir sysconfdir sharedstatedir localstatedir includedir \
1337		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338		libdir localedir mandir
1339do
1340  eval ac_val=\$$ac_var
1341  case $ac_val in
1342    [\\/$]* | ?:[\\/]* )  continue;;
1343    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344  esac
1345  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346   { (exit 1); exit 1; }; }
1347done
1348
1349# There might be people who depend on the old broken behavior: `$host'
1350# used to hold the argument of --host etc.
1351# FIXME: To remove some day.
1352build=$build_alias
1353host=$host_alias
1354target=$target_alias
1355
1356# FIXME: To remove some day.
1357if test "x$host_alias" != x; then
1358  if test "x$build_alias" = x; then
1359    cross_compiling=maybe
1360    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361    If a cross compiler is detected then cross compile mode will be used." >&2
1362  elif test "x$build_alias" != "x$host_alias"; then
1363    cross_compiling=yes
1364  fi
1365fi
1366
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
1371
1372
1373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376  { echo "$as_me: error: Working directory cannot be determined" >&2
1377   { (exit 1); exit 1; }; }
1378test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379  { echo "$as_me: error: pwd does not report name of working directory" >&2
1380   { (exit 1); exit 1; }; }
1381
1382
1383# Find the source files, if location was not specified.
1384if test -z "$srcdir"; then
1385  ac_srcdir_defaulted=yes
1386  # Try the directory containing this script, then the parent directory.
1387  ac_confdir=`$as_dirname -- "$0" ||
1388$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389	 X"$0" : 'X\(//\)[^/]' \| \
1390	 X"$0" : 'X\(//\)$' \| \
1391	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392echo X"$0" |
1393    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394	    s//\1/
1395	    q
1396	  }
1397	  /^X\(\/\/\)[^/].*/{
1398	    s//\1/
1399	    q
1400	  }
1401	  /^X\(\/\/\)$/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\).*/{
1406	    s//\1/
1407	    q
1408	  }
1409	  s/.*/./; q'`
1410  srcdir=$ac_confdir
1411  if test ! -r "$srcdir/$ac_unique_file"; then
1412    srcdir=..
1413  fi
1414else
1415  ac_srcdir_defaulted=no
1416fi
1417if test ! -r "$srcdir/$ac_unique_file"; then
1418  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420   { (exit 1); exit 1; }; }
1421fi
1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
1424	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425   { (exit 1); exit 1; }; }
1426	pwd)`
1427# When building in place, set srcdir=.
1428if test "$ac_abs_confdir" = "$ac_pwd"; then
1429  srcdir=.
1430fi
1431# Remove unnecessary trailing slashes from srcdir.
1432# Double slashes in file names in object file debugging info
1433# mess up M-x gdb in Emacs.
1434case $srcdir in
1435*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436esac
1437for ac_var in $ac_precious_vars; do
1438  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439  eval ac_env_${ac_var}_value=\$${ac_var}
1440  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442done
1443
1444#
1445# Report the --help message.
1446#
1447if test "$ac_init_help" = "long"; then
1448  # Omit some internal or obsolete options to make the list less imposing.
1449  # This message is too long to be a string in the A/UX 3.1 sh.
1450  cat <<_ACEOF
1451\`configure' configures Image Scan! for Linux 2.11.0 to adapt to many kinds of systems.
1452
1453Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458Defaults for the options are specified in brackets.
1459
1460Configuration:
1461  -h, --help              display this help and exit
1462      --help=short        display options specific to this package
1463      --help=recursive    display the short help of all the included packages
1464  -V, --version           display version information and exit
1465  -q, --quiet, --silent   do not print \`checking...' messages
1466      --cache-file=FILE   cache test results in FILE [disabled]
1467  -C, --config-cache      alias for \`--cache-file=config.cache'
1468  -n, --no-create         do not create output files
1469      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471Installation directories:
1472  --prefix=PREFIX         install architecture-independent files in PREFIX
1473			  [$ac_default_prefix]
1474  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475			  [PREFIX]
1476
1477By default, \`make install' will install all the files in
1478\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480for instance \`--prefix=\$HOME'.
1481
1482For better control, use the options below.
1483
1484Fine tuning of the installation directories:
1485  --bindir=DIR           user executables [EPREFIX/bin]
1486  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1487  --libexecdir=DIR       program executables [EPREFIX/libexec]
1488  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1489  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1490  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1491  --libdir=DIR           object code libraries [EPREFIX/lib]
1492  --includedir=DIR       C header files [PREFIX/include]
1493  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1494  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1495  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1496  --infodir=DIR          info documentation [DATAROOTDIR/info]
1497  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1498  --mandir=DIR           man documentation [DATAROOTDIR/man]
1499  --docdir=DIR           documentation root [DATAROOTDIR/doc/iscan]
1500  --htmldir=DIR          html documentation [DOCDIR]
1501  --dvidir=DIR           dvi documentation [DOCDIR]
1502  --pdfdir=DIR           pdf documentation [DOCDIR]
1503  --psdir=DIR            ps documentation [DOCDIR]
1504_ACEOF
1505
1506  cat <<\_ACEOF
1507
1508Program names:
1509  --program-prefix=PREFIX            prepend PREFIX to installed program names
1510  --program-suffix=SUFFIX            append SUFFIX to installed program names
1511  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513System types:
1514  --build=BUILD     configure for building on BUILD [guessed]
1515  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516_ACEOF
1517fi
1518
1519if test -n "$ac_init_help"; then
1520  case $ac_init_help in
1521     short | recursive ) echo "Configuration of Image Scan! for Linux 2.11.0:";;
1522   esac
1523  cat <<\_ACEOF
1524
1525Optional Features:
1526  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528  --disable-dependency-tracking  speeds up one-time build
1529  --enable-dependency-tracking   do not reject slow dependency extractors
1530  --disable-nls           do not use Native Language Support
1531  --disable-rpath         do not hardcode runtime library paths
1532  --enable-ltdl-install   install libltdl
1533  --enable-shared[=PKGS]  build shared libraries [default=yes]
1534  --enable-static[=PKGS]  build static libraries [default=yes]
1535  --enable-fast-install[=PKGS]
1536                          optimize for fast installation [default=yes]
1537  --disable-libtool-lock  avoid locking (might break parallel builds)
1538  --enable-jpeg           ensure support for the JPEG file format
1539  --enable-png            ensure support for the PNG file format
1540  --enable-frontend       ensure the frontend application is built
1541
1542Optional Packages:
1543  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1544  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1545  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1546  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1547  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1548  --with-included-gettext use the GNU gettext library included here
1549  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1550  --without-libintl-prefix     don't search for libintl in includedir and libdir
1551  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1552  --with-pic              try to use only PIC/non-PIC objects [default=use
1553                          both]
1554  --with-tags[=TAGS]      include additional configurations [automatic]
1555
1556Some influential environment variables:
1557  CXX         C++ compiler command
1558  CXXFLAGS    C++ compiler flags
1559  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560              nonstandard directory <lib dir>
1561  LIBS        libraries to pass to the linker, e.g. -l<library>
1562  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563              you have headers in a nonstandard directory <include dir>
1564  CC          C compiler command
1565  CFLAGS      C compiler flags
1566  CPP         C preprocessor
1567  PKG_CONFIG  path to pkg-config utility
1568  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1569  GTK_LIBS    linker flags for GTK, overriding pkg-config
1570  GDK_IMLIB_CFLAGS
1571              C compiler flags for GDK_IMLIB, overriding pkg-config
1572  GDK_IMLIB_LIBS
1573              linker flags for GDK_IMLIB, overriding pkg-config
1574  GIMP_CFLAGS C compiler flags for GIMP, overriding pkg-config
1575  GIMP_LIBS   linker flags for GIMP, overriding pkg-config
1576  CXXCPP      C++ preprocessor
1577  F77         Fortran 77 compiler command
1578  FFLAGS      Fortran 77 compiler flags
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <EPSON AVASYS Corporation <pipsnews@avasys.jp>>.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" || continue
1592    ac_builddir=.
1593
1594case "$ac_dir" in
1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596*)
1597  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1598  # A ".." for each directory in $ac_dir_suffix.
1599  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600  case $ac_top_builddir_sub in
1601  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603  esac ;;
1604esac
1605ac_abs_top_builddir=$ac_pwd
1606ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607# for backward compatibility:
1608ac_top_builddir=$ac_top_build_prefix
1609
1610case $srcdir in
1611  .)  # We are building in place.
1612    ac_srcdir=.
1613    ac_top_srcdir=$ac_top_builddir_sub
1614    ac_abs_top_srcdir=$ac_pwd ;;
1615  [\\/]* | ?:[\\/]* )  # Absolute name.
1616    ac_srcdir=$srcdir$ac_dir_suffix;
1617    ac_top_srcdir=$srcdir
1618    ac_abs_top_srcdir=$srcdir ;;
1619  *) # Relative name.
1620    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621    ac_top_srcdir=$ac_top_build_prefix$srcdir
1622    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623esac
1624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626    cd "$ac_dir" || { ac_status=$?; continue; }
1627    # Check for guested configure.
1628    if test -f "$ac_srcdir/configure.gnu"; then
1629      echo &&
1630      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631    elif test -f "$ac_srcdir/configure"; then
1632      echo &&
1633      $SHELL "$ac_srcdir/configure" --help=recursive
1634    else
1635      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636    fi || ac_status=$?
1637    cd "$ac_pwd" || { ac_status=$?; break; }
1638  done
1639fi
1640
1641test -n "$ac_init_help" && exit $ac_status
1642if $ac_init_version; then
1643  cat <<\_ACEOF
1644Image Scan! for Linux configure 2.11.0
1645generated by GNU Autoconf 2.61
1646
1647Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
1651_ACEOF
1652  exit
1653fi
1654cat >config.log <<_ACEOF
1655This file contains any messages produced by compilers while
1656running configure, to aid debugging if configure makes a mistake.
1657
1658It was created by Image Scan! for Linux $as_me 2.11.0, which was
1659generated by GNU Autoconf 2.61.  Invocation command line was
1660
1661  $ $0 $@
1662
1663_ACEOF
1664exec 5>>config.log
1665{
1666cat <<_ASUNAME
1667## --------- ##
1668## Platform. ##
1669## --------- ##
1670
1671hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1672uname -m = `(uname -m) 2>/dev/null || echo unknown`
1673uname -r = `(uname -r) 2>/dev/null || echo unknown`
1674uname -s = `(uname -s) 2>/dev/null || echo unknown`
1675uname -v = `(uname -v) 2>/dev/null || echo unknown`
1676
1677/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1678/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1679
1680/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1681/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1682/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1683/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1684/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1685/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1686/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1687
1688_ASUNAME
1689
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693  IFS=$as_save_IFS
1694  test -z "$as_dir" && as_dir=.
1695  echo "PATH: $as_dir"
1696done
1697IFS=$as_save_IFS
1698
1699} >&5
1700
1701cat >&5 <<_ACEOF
1702
1703
1704## ----------- ##
1705## Core tests. ##
1706## ----------- ##
1707
1708_ACEOF
1709
1710
1711# Keep a trace of the command line.
1712# Strip out --no-create and --no-recursion so they do not pile up.
1713# Strip out --silent because we don't want to record it for future runs.
1714# Also quote any args containing shell meta-characters.
1715# Make two passes to allow for proper duplicate-argument suppression.
1716ac_configure_args=
1717ac_configure_args0=
1718ac_configure_args1=
1719ac_must_keep_next=false
1720for ac_pass in 1 2
1721do
1722  for ac_arg
1723  do
1724    case $ac_arg in
1725    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1726    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1727    | -silent | --silent | --silen | --sile | --sil)
1728      continue ;;
1729    *\'*)
1730      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731    esac
1732    case $ac_pass in
1733    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1734    2)
1735      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1736      if test $ac_must_keep_next = true; then
1737	ac_must_keep_next=false # Got value, back to normal.
1738      else
1739	case $ac_arg in
1740	  *=* | --config-cache | -C | -disable-* | --disable-* \
1741	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1742	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1743	  | -with-* | --with-* | -without-* | --without-* | --x)
1744	    case "$ac_configure_args0 " in
1745	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746	    esac
1747	    ;;
1748	  -* ) ac_must_keep_next=true ;;
1749	esac
1750      fi
1751      ac_configure_args="$ac_configure_args '$ac_arg'"
1752      ;;
1753    esac
1754  done
1755done
1756$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1757$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1758
1759# When interrupted or exit'd, cleanup temporary files, and complete
1760# config.log.  We remove comments because anyway the quotes in there
1761# would cause problems or look ugly.
1762# WARNING: Use '\'' to represent an apostrophe within the trap.
1763# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1764trap 'exit_status=$?
1765  # Save into config.log some information that might help in debugging.
1766  {
1767    echo
1768
1769    cat <<\_ASBOX
1770## ---------------- ##
1771## Cache variables. ##
1772## ---------------- ##
1773_ASBOX
1774    echo
1775    # The following way of writing the cache mishandles newlines in values,
1776(
1777  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1778    eval ac_val=\$$ac_var
1779    case $ac_val in #(
1780    *${as_nl}*)
1781      case $ac_var in #(
1782      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1783echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1784      esac
1785      case $ac_var in #(
1786      _ | IFS | as_nl) ;; #(
1787      *) $as_unset $ac_var ;;
1788      esac ;;
1789    esac
1790  done
1791  (set) 2>&1 |
1792    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793    *${as_nl}ac_space=\ *)
1794      sed -n \
1795	"s/'\''/'\''\\\\'\'''\''/g;
1796	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797      ;; #(
1798    *)
1799      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800      ;;
1801    esac |
1802    sort
1803)
1804    echo
1805
1806    cat <<\_ASBOX
1807## ----------------- ##
1808## Output variables. ##
1809## ----------------- ##
1810_ASBOX
1811    echo
1812    for ac_var in $ac_subst_vars
1813    do
1814      eval ac_val=\$$ac_var
1815      case $ac_val in
1816      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817      esac
1818      echo "$ac_var='\''$ac_val'\''"
1819    done | sort
1820    echo
1821
1822    if test -n "$ac_subst_files"; then
1823      cat <<\_ASBOX
1824## ------------------- ##
1825## File substitutions. ##
1826## ------------------- ##
1827_ASBOX
1828      echo
1829      for ac_var in $ac_subst_files
1830      do
1831	eval ac_val=\$$ac_var
1832	case $ac_val in
1833	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834	esac
1835	echo "$ac_var='\''$ac_val'\''"
1836      done | sort
1837      echo
1838    fi
1839
1840    if test -s confdefs.h; then
1841      cat <<\_ASBOX
1842## ----------- ##
1843## confdefs.h. ##
1844## ----------- ##
1845_ASBOX
1846      echo
1847      cat confdefs.h
1848      echo
1849    fi
1850    test "$ac_signal" != 0 &&
1851      echo "$as_me: caught signal $ac_signal"
1852    echo "$as_me: exit $exit_status"
1853  } >&5
1854  rm -f core *.core core.conftest.* &&
1855    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856    exit $exit_status
1857' 0
1858for ac_signal in 1 2 13 15; do
1859  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860done
1861ac_signal=0
1862
1863# confdefs.h avoids OS command line length limits that DEFS can exceed.
1864rm -f -r conftest* confdefs.h
1865
1866# Predefined preprocessor variables.
1867
1868cat >>confdefs.h <<_ACEOF
1869#define PACKAGE_NAME "$PACKAGE_NAME"
1870_ACEOF
1871
1872
1873cat >>confdefs.h <<_ACEOF
1874#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875_ACEOF
1876
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_VERSION "$PACKAGE_VERSION"
1880_ACEOF
1881
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_STRING "$PACKAGE_STRING"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890_ACEOF
1891
1892
1893# Let the site file select an alternate cache file if it wants to.
1894# Prefer explicitly selected file to automatically selected ones.
1895if test -n "$CONFIG_SITE"; then
1896  set x "$CONFIG_SITE"
1897elif test "x$prefix" != xNONE; then
1898  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1899else
1900  set x "$ac_default_prefix/share/config.site" \
1901	"$ac_default_prefix/etc/config.site"
1902fi
1903shift
1904for ac_site_file
1905do
1906  if test -r "$ac_site_file"; then
1907    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908echo "$as_me: loading site script $ac_site_file" >&6;}
1909    sed 's/^/| /' "$ac_site_file" >&5
1910    . "$ac_site_file"
1911  fi
1912done
1913
1914if test -r "$cache_file"; then
1915  # Some versions of bash will fail to source /dev/null (special
1916  # files actually), so we avoid doing that.
1917  if test -f "$cache_file"; then
1918    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919echo "$as_me: loading cache $cache_file" >&6;}
1920    case $cache_file in
1921      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922      *)                      . "./$cache_file";;
1923    esac
1924  fi
1925else
1926  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927echo "$as_me: creating cache $cache_file" >&6;}
1928  >$cache_file
1929fi
1930
1931# Check that the precious variables saved in the cache have kept the same
1932# value.
1933ac_cache_corrupted=false
1934for ac_var in $ac_precious_vars; do
1935  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1936  eval ac_new_set=\$ac_env_${ac_var}_set
1937  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1938  eval ac_new_val=\$ac_env_${ac_var}_value
1939  case $ac_old_set,$ac_new_set in
1940    set,)
1941      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1942echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1943      ac_cache_corrupted=: ;;
1944    ,set)
1945      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1946echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1947      ac_cache_corrupted=: ;;
1948    ,);;
1949    *)
1950      if test "x$ac_old_val" != "x$ac_new_val"; then
1951	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1952echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1953	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1954echo "$as_me:   former value:  $ac_old_val" >&2;}
1955	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1956echo "$as_me:   current value: $ac_new_val" >&2;}
1957	ac_cache_corrupted=:
1958      fi;;
1959  esac
1960  # Pass precious variables to config.status.
1961  if test "$ac_new_set" = set; then
1962    case $ac_new_val in
1963    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1964    *) ac_arg=$ac_var=$ac_new_val ;;
1965    esac
1966    case " $ac_configure_args " in
1967      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1968      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1969    esac
1970  fi
1971done
1972if $ac_cache_corrupted; then
1973  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977   { (exit 1); exit 1; }; }
1978fi
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004ac_ext=c
2005ac_cpp='$CPP $CPPFLAGS'
2006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011PACKAGE_RELEASE=1
2012
2013ac_config_headers="$ac_config_headers config.h"
2014
2015
2016ac_aux_dir=
2017for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018  if test -f "$ac_dir/install-sh"; then
2019    ac_aux_dir=$ac_dir
2020    ac_install_sh="$ac_aux_dir/install-sh -c"
2021    break
2022  elif test -f "$ac_dir/install.sh"; then
2023    ac_aux_dir=$ac_dir
2024    ac_install_sh="$ac_aux_dir/install.sh -c"
2025    break
2026  elif test -f "$ac_dir/shtool"; then
2027    ac_aux_dir=$ac_dir
2028    ac_install_sh="$ac_aux_dir/shtool install -c"
2029    break
2030  fi
2031done
2032if test -z "$ac_aux_dir"; then
2033  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2034echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2035   { (exit 1); exit 1; }; }
2036fi
2037
2038# These three variables are undocumented and unsupported,
2039# and are intended to be withdrawn in a future Autoconf release.
2040# They can cause serious problems if a builder's source tree is in a directory
2041# whose full name contains unusual characters.
2042ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2043ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2044ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2045
2046
2047subdirs="$subdirs libltdl"
2048
2049
2050am__api_version="1.9"
2051# Find a good install program.  We prefer a C program (faster),
2052# so one script is as good as another.  But avoid the broken or
2053# incompatible versions:
2054# SysV /etc/install, /usr/sbin/install
2055# SunOS /usr/etc/install
2056# IRIX /sbin/install
2057# AIX /bin/install
2058# AmigaOS /C/install, which installs bootblocks on floppy discs
2059# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2060# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2061# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2062# OS/2's system install, which has a completely different semantic
2063# ./install, which can be erroneously created by make from ./install.sh.
2064{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2065echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2066if test -z "$INSTALL"; then
2067if test "${ac_cv_path_install+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073  IFS=$as_save_IFS
2074  test -z "$as_dir" && as_dir=.
2075  # Account for people who put trailing slashes in PATH elements.
2076case $as_dir/ in
2077  ./ | .// | /cC/* | \
2078  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2079  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2080  /usr/ucb/* ) ;;
2081  *)
2082    # OSF1 and SCO ODT 3.0 have their own names for install.
2083    # Don't use installbsd from OSF since it installs stuff as root
2084    # by default.
2085    for ac_prog in ginstall scoinst install; do
2086      for ac_exec_ext in '' $ac_executable_extensions; do
2087	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2088	  if test $ac_prog = install &&
2089	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2090	    # AIX install.  It has an incompatible calling convention.
2091	    :
2092	  elif test $ac_prog = install &&
2093	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2094	    # program-specific install script used by HP pwplus--don't use.
2095	    :
2096	  else
2097	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2098	    break 3
2099	  fi
2100	fi
2101      done
2102    done
2103    ;;
2104esac
2105done
2106IFS=$as_save_IFS
2107
2108
2109fi
2110  if test "${ac_cv_path_install+set}" = set; then
2111    INSTALL=$ac_cv_path_install
2112  else
2113    # As a last resort, use the slow shell script.  Don't cache a
2114    # value for INSTALL within a source directory, because that will
2115    # break other packages using the cache if that directory is
2116    # removed, or if the value is a relative name.
2117    INSTALL=$ac_install_sh
2118  fi
2119fi
2120{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2121echo "${ECHO_T}$INSTALL" >&6; }
2122
2123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2124# It thinks the first close brace ends the variable substitution.
2125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126
2127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128
2129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130
2131{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2132echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2133# Just in case
2134sleep 1
2135echo timestamp > conftest.file
2136# Do `set' in a subshell so we don't clobber the current shell's
2137# arguments.  Must try -L first in case configure is actually a
2138# symlink; some systems play weird games with the mod time of symlinks
2139# (eg FreeBSD returns the mod time of the symlink's containing
2140# directory).
2141if (
2142   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2143   if test "$*" = "X"; then
2144      # -L didn't work.
2145      set X `ls -t $srcdir/configure conftest.file`
2146   fi
2147   rm -f conftest.file
2148   if test "$*" != "X $srcdir/configure conftest.file" \
2149      && test "$*" != "X conftest.file $srcdir/configure"; then
2150
2151      # If neither matched, then we have a broken ls.  This can happen
2152      # if, for instance, CONFIG_SHELL is bash and it inherits a
2153      # broken ls alias from the environment.  This has actually
2154      # happened.  Such a system could not be considered "sane".
2155      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2156alias in your environment" >&5
2157echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2158alias in your environment" >&2;}
2159   { (exit 1); exit 1; }; }
2160   fi
2161
2162   test "$2" = conftest.file
2163   )
2164then
2165   # Ok.
2166   :
2167else
2168   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2169Check your system clock" >&5
2170echo "$as_me: error: newly created file is older than distributed files!
2171Check your system clock" >&2;}
2172   { (exit 1); exit 1; }; }
2173fi
2174{ echo "$as_me:$LINENO: result: yes" >&5
2175echo "${ECHO_T}yes" >&6; }
2176test "$program_prefix" != NONE &&
2177  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2178# Use a double $ so make ignores it.
2179test "$program_suffix" != NONE &&
2180  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2181# Double any \ or $.  echo might interpret backslashes.
2182# By default was `s,x,x', remove it if useless.
2183cat <<\_ACEOF >conftest.sed
2184s/[\\$]/&&/g;s/;s,x,x,$//
2185_ACEOF
2186program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2187rm -f conftest.sed
2188
2189# expand $ac_aux_dir to an absolute path
2190am_aux_dir=`cd $ac_aux_dir && pwd`
2191
2192test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2193# Use eval to expand $SHELL
2194if eval "$MISSING --run true"; then
2195  am_missing_run="$MISSING --run "
2196else
2197  am_missing_run=
2198  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2199echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2200fi
2201
2202if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2203  # We used to keeping the `.' as first argument, in order to
2204  # allow $(mkdir_p) to be used without argument.  As in
2205  #   $(mkdir_p) $(somedir)
2206  # where $(somedir) is conditionally defined.  However this is wrong
2207  # for two reasons:
2208  #  1. if the package is installed by a user who cannot write `.'
2209  #     make install will fail,
2210  #  2. the above comment should most certainly read
2211  #     $(mkdir_p) $(DESTDIR)$(somedir)
2212  #     so it does not work when $(somedir) is undefined and
2213  #     $(DESTDIR) is not.
2214  #  To support the latter case, we have to write
2215  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2216  #  so the `.' trick is pointless.
2217  mkdir_p='mkdir -p --'
2218else
2219  # On NextStep and OpenStep, the `mkdir' command does not
2220  # recognize any option.  It will interpret all options as
2221  # directories to create, and then abort because `.' already
2222  # exists.
2223  for d in ./-p ./--version;
2224  do
2225    test -d $d && rmdir $d
2226  done
2227  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2228  if test -f "$ac_aux_dir/mkinstalldirs"; then
2229    mkdir_p='$(mkinstalldirs)'
2230  else
2231    mkdir_p='$(install_sh) -d'
2232  fi
2233fi
2234
2235for ac_prog in gawk mawk nawk awk
2236do
2237  # Extract the first word of "$ac_prog", so it can be a program name with args.
2238set dummy $ac_prog; ac_word=$2
2239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241if test "${ac_cv_prog_AWK+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  if test -n "$AWK"; then
2245  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2246else
2247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248for as_dir in $PATH
2249do
2250  IFS=$as_save_IFS
2251  test -z "$as_dir" && as_dir=.
2252  for ac_exec_ext in '' $ac_executable_extensions; do
2253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254    ac_cv_prog_AWK="$ac_prog"
2255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256    break 2
2257  fi
2258done
2259done
2260IFS=$as_save_IFS
2261
2262fi
2263fi
2264AWK=$ac_cv_prog_AWK
2265if test -n "$AWK"; then
2266  { echo "$as_me:$LINENO: result: $AWK" >&5
2267echo "${ECHO_T}$AWK" >&6; }
2268else
2269  { echo "$as_me:$LINENO: result: no" >&5
2270echo "${ECHO_T}no" >&6; }
2271fi
2272
2273
2274  test -n "$AWK" && break
2275done
2276
2277{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2278echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2279set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2280if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  cat >conftest.make <<\_ACEOF
2284SHELL = /bin/sh
2285all:
2286	@echo '@@@%%%=$(MAKE)=@@@%%%'
2287_ACEOF
2288# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2289case `${MAKE-make} -f conftest.make 2>/dev/null` in
2290  *@@@%%%=?*=@@@%%%*)
2291    eval ac_cv_prog_make_${ac_make}_set=yes;;
2292  *)
2293    eval ac_cv_prog_make_${ac_make}_set=no;;
2294esac
2295rm -f conftest.make
2296fi
2297if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2298  { echo "$as_me:$LINENO: result: yes" >&5
2299echo "${ECHO_T}yes" >&6; }
2300  SET_MAKE=
2301else
2302  { echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6; }
2304  SET_MAKE="MAKE=${MAKE-make}"
2305fi
2306
2307rm -rf .tst 2>/dev/null
2308mkdir .tst 2>/dev/null
2309if test -d .tst; then
2310  am__leading_dot=.
2311else
2312  am__leading_dot=_
2313fi
2314rmdir .tst 2>/dev/null
2315
2316# test to see if srcdir already configured
2317if test "`cd $srcdir && pwd`" != "`pwd`" &&
2318   test -f $srcdir/config.status; then
2319  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2320echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2321   { (exit 1); exit 1; }; }
2322fi
2323
2324# test whether we have cygpath
2325if test -z "$CYGPATH_W"; then
2326  if (cygpath --version) >/dev/null 2>/dev/null; then
2327    CYGPATH_W='cygpath -w'
2328  else
2329    CYGPATH_W=echo
2330  fi
2331fi
2332
2333
2334# Define the identity of the package.
2335 PACKAGE='iscan'
2336 VERSION='2.11.0'
2337
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE "$PACKAGE"
2341_ACEOF
2342
2343
2344cat >>confdefs.h <<_ACEOF
2345#define VERSION "$VERSION"
2346_ACEOF
2347
2348# Some tools Automake needs.
2349
2350ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2351
2352
2353AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2354
2355
2356AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2357
2358
2359AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2360
2361
2362MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2363
2364install_sh=${install_sh-"$am_aux_dir/install-sh"}
2365
2366# Installed binaries are usually stripped using `strip' when the user
2367# run `make install-strip'.  However `strip' might not be the right
2368# tool to use in cross-compilation environments, therefore Automake
2369# will honor the `STRIP' environment variable to overrule this program.
2370if test "$cross_compiling" != no; then
2371  if test -n "$ac_tool_prefix"; then
2372  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2373set dummy ${ac_tool_prefix}strip; ac_word=$2
2374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376if test "${ac_cv_prog_STRIP+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  if test -n "$STRIP"; then
2380  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387  for ac_exec_ext in '' $ac_executable_extensions; do
2388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399STRIP=$ac_cv_prog_STRIP
2400if test -n "$STRIP"; then
2401  { echo "$as_me:$LINENO: result: $STRIP" >&5
2402echo "${ECHO_T}$STRIP" >&6; }
2403else
2404  { echo "$as_me:$LINENO: result: no" >&5
2405echo "${ECHO_T}no" >&6; }
2406fi
2407
2408
2409fi
2410if test -z "$ac_cv_prog_STRIP"; then
2411  ac_ct_STRIP=$STRIP
2412  # Extract the first word of "strip", so it can be a program name with args.
2413set dummy strip; ac_word=$2
2414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2417  echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419  if test -n "$ac_ct_STRIP"; then
2420  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427  for ac_exec_ext in '' $ac_executable_extensions; do
2428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429    ac_cv_prog_ac_ct_STRIP="strip"
2430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431    break 2
2432  fi
2433done
2434done
2435IFS=$as_save_IFS
2436
2437fi
2438fi
2439ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2440if test -n "$ac_ct_STRIP"; then
2441  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2442echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2443else
2444  { echo "$as_me:$LINENO: result: no" >&5
2445echo "${ECHO_T}no" >&6; }
2446fi
2447
2448  if test "x$ac_ct_STRIP" = x; then
2449    STRIP=":"
2450  else
2451    case $cross_compiling:$ac_tool_warned in
2452yes:)
2453{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2454whose name does not start with the host triplet.  If you think this
2455configuration is useful to you, please write to autoconf@gnu.org." >&5
2456echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2457whose name does not start with the host triplet.  If you think this
2458configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2459ac_tool_warned=yes ;;
2460esac
2461    STRIP=$ac_ct_STRIP
2462  fi
2463else
2464  STRIP="$ac_cv_prog_STRIP"
2465fi
2466
2467fi
2468INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2469
2470# We need awk for the "check" target.  The system "awk" is bad on
2471# some platforms.
2472# Always define AMTAR for backward compatibility.
2473
2474AMTAR=${AMTAR-"${am_missing_run}tar"}
2475
2476am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2477
2478
2479
2480
2481
2482
2483
2484
2485ac_ext=cpp
2486ac_cpp='$CXXCPP $CPPFLAGS'
2487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2490if test -z "$CXX"; then
2491  if test -n "$CCC"; then
2492    CXX=$CCC
2493  else
2494    if test -n "$ac_tool_prefix"; then
2495  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2496  do
2497    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501if test "${ac_cv_prog_CXX+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  if test -n "$CXX"; then
2505  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510  IFS=$as_save_IFS
2511  test -z "$as_dir" && as_dir=.
2512  for ac_exec_ext in '' $ac_executable_extensions; do
2513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516    break 2
2517  fi
2518done
2519done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524CXX=$ac_cv_prog_CXX
2525if test -n "$CXX"; then
2526  { echo "$as_me:$LINENO: result: $CXX" >&5
2527echo "${ECHO_T}$CXX" >&6; }
2528else
2529  { echo "$as_me:$LINENO: result: no" >&5
2530echo "${ECHO_T}no" >&6; }
2531fi
2532
2533
2534    test -n "$CXX" && break
2535  done
2536fi
2537if test -z "$CXX"; then
2538  ac_ct_CXX=$CXX
2539  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2540do
2541  # Extract the first word of "$ac_prog", so it can be a program name with args.
2542set dummy $ac_prog; ac_word=$2
2543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2546  echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548  if test -n "$ac_ct_CXX"; then
2549  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554  IFS=$as_save_IFS
2555  test -z "$as_dir" && as_dir=.
2556  for ac_exec_ext in '' $ac_executable_extensions; do
2557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558    ac_cv_prog_ac_ct_CXX="$ac_prog"
2559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560    break 2
2561  fi
2562done
2563done
2564IFS=$as_save_IFS
2565
2566fi
2567fi
2568ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2569if test -n "$ac_ct_CXX"; then
2570  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2571echo "${ECHO_T}$ac_ct_CXX" >&6; }
2572else
2573  { echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6; }
2575fi
2576
2577
2578  test -n "$ac_ct_CXX" && break
2579done
2580
2581  if test "x$ac_ct_CXX" = x; then
2582    CXX="g++"
2583  else
2584    case $cross_compiling:$ac_tool_warned in
2585yes:)
2586{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2587whose name does not start with the host triplet.  If you think this
2588configuration is useful to you, please write to autoconf@gnu.org." >&5
2589echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2590whose name does not start with the host triplet.  If you think this
2591configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594    CXX=$ac_ct_CXX
2595  fi
2596fi
2597
2598  fi
2599fi
2600# Provide some information about the compiler.
2601echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2602ac_compiler=`set X $ac_compile; echo $2`
2603{ (ac_try="$ac_compiler --version >&5"
2604case "(($ac_try" in
2605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606  *) ac_try_echo=$ac_try;;
2607esac
2608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609  (eval "$ac_compiler --version >&5") 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }
2613{ (ac_try="$ac_compiler -v >&5"
2614case "(($ac_try" in
2615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616  *) ac_try_echo=$ac_try;;
2617esac
2618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619  (eval "$ac_compiler -v >&5") 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }
2623{ (ac_try="$ac_compiler -V >&5"
2624case "(($ac_try" in
2625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626  *) ac_try_echo=$ac_try;;
2627esac
2628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629  (eval "$ac_compiler -V >&5") 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }
2633
2634cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640
2641int
2642main ()
2643{
2644
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649ac_clean_files_save=$ac_clean_files
2650ac_clean_files="$ac_clean_files a.out a.exe b.out"
2651# Try to create an executable without -o first, disregard a.out.
2652# It will help us diagnose broken compilers, and finding out an intuition
2653# of exeext.
2654{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2655echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2656ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2657#
2658# List of possible output files, starting from the most likely.
2659# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2660# only as a last resort.  b.out is created by i960 compilers.
2661ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2662#
2663# The IRIX 6 linker writes into existing files which may not be
2664# executable, retaining their permissions.  Remove them first so a
2665# subsequent execution test works.
2666ac_rmfiles=
2667for ac_file in $ac_files
2668do
2669  case $ac_file in
2670    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2671    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2672  esac
2673done
2674rm -f $ac_rmfiles
2675
2676if { (ac_try="$ac_link_default"
2677case "(($ac_try" in
2678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679  *) ac_try_echo=$ac_try;;
2680esac
2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682  (eval "$ac_link_default") 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; then
2686  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2687# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2688# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2689# so that the user can short-circuit this test for compilers unknown to
2690# Autoconf.
2691for ac_file in $ac_files ''
2692do
2693  test -f "$ac_file" || continue
2694  case $ac_file in
2695    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2696	;;
2697    [ab].out )
2698	# We found the default executable, but exeext='' is most
2699	# certainly right.
2700	break;;
2701    *.* )
2702        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2703	then :; else
2704	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705	fi
2706	# We set ac_cv_exeext here because the later test for it is not
2707	# safe: cross compilers may not add the suffix if given an `-o'
2708	# argument, so we may need to know it at that point already.
2709	# Even if this section looks crufty: it has the advantage of
2710	# actually working.
2711	break;;
2712    * )
2713	break;;
2714  esac
2715done
2716test "$ac_cv_exeext" = no && ac_cv_exeext=
2717
2718else
2719  ac_file=''
2720fi
2721
2722{ echo "$as_me:$LINENO: result: $ac_file" >&5
2723echo "${ECHO_T}$ac_file" >&6; }
2724if test -z "$ac_file"; then
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2729See \`config.log' for more details." >&5
2730echo "$as_me: error: C++ compiler cannot create executables
2731See \`config.log' for more details." >&2;}
2732   { (exit 77); exit 77; }; }
2733fi
2734
2735ac_exeext=$ac_cv_exeext
2736
2737# Check that the compiler produces executables we can run.  If not, either
2738# the compiler is broken, or we cross compile.
2739{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2740echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2741# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2742# If not cross compiling, check that we can run a simple program.
2743if test "$cross_compiling" != yes; then
2744  if { ac_try='./$ac_file'
2745  { (case "(($ac_try" in
2746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747  *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750  (eval "$ac_try") 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; }; then
2754    cross_compiling=no
2755  else
2756    if test "$cross_compiling" = maybe; then
2757	cross_compiling=yes
2758    else
2759	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2760If you meant to cross compile, use \`--host'.
2761See \`config.log' for more details." >&5
2762echo "$as_me: error: cannot run C++ compiled programs.
2763If you meant to cross compile, use \`--host'.
2764See \`config.log' for more details." >&2;}
2765   { (exit 1); exit 1; }; }
2766    fi
2767  fi
2768fi
2769{ echo "$as_me:$LINENO: result: yes" >&5
2770echo "${ECHO_T}yes" >&6; }
2771
2772rm -f a.out a.exe conftest$ac_cv_exeext b.out
2773ac_clean_files=$ac_clean_files_save
2774# Check that the compiler produces executables we can run.  If not, either
2775# the compiler is broken, or we cross compile.
2776{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2777echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2778{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2779echo "${ECHO_T}$cross_compiling" >&6; }
2780
2781{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2782echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2783if { (ac_try="$ac_link"
2784case "(($ac_try" in
2785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786  *) ac_try_echo=$ac_try;;
2787esac
2788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789  (eval "$ac_link") 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; then
2793  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2794# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2795# work properly (i.e., refer to `conftest.exe'), while it won't with
2796# `rm'.
2797for ac_file in conftest.exe conftest conftest.*; do
2798  test -f "$ac_file" || continue
2799  case $ac_file in
2800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2801    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802	  break;;
2803    * ) break;;
2804  esac
2805done
2806else
2807  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2808See \`config.log' for more details." >&5
2809echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2810See \`config.log' for more details." >&2;}
2811   { (exit 1); exit 1; }; }
2812fi
2813
2814rm -f conftest$ac_cv_exeext
2815{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2816echo "${ECHO_T}$ac_cv_exeext" >&6; }
2817
2818rm -f conftest.$ac_ext
2819EXEEXT=$ac_cv_exeext
2820ac_exeext=$EXEEXT
2821{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2822echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2823if test "${ac_cv_objext+set}" = set; then
2824  echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826  cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832
2833int
2834main ()
2835{
2836
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.o conftest.obj
2842if { (ac_try="$ac_compile"
2843case "(($ac_try" in
2844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845  *) ac_try_echo=$ac_try;;
2846esac
2847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848  (eval "$ac_compile") 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; then
2852  for ac_file in conftest.o conftest.obj conftest.*; do
2853  test -f "$ac_file" || continue;
2854  case $ac_file in
2855    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2856    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2857       break;;
2858  esac
2859done
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2865See \`config.log' for more details." >&5
2866echo "$as_me: error: cannot compute suffix of object files: cannot compile
2867See \`config.log' for more details." >&2;}
2868   { (exit 1); exit 1; }; }
2869fi
2870
2871rm -f conftest.$ac_cv_objext conftest.$ac_ext
2872fi
2873{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2874echo "${ECHO_T}$ac_cv_objext" >&6; }
2875OBJEXT=$ac_cv_objext
2876ac_objext=$OBJEXT
2877{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2878echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2879if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2880  echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882  cat >conftest.$ac_ext <<_ACEOF
2883/* confdefs.h.  */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h.  */
2888
2889int
2890main ()
2891{
2892#ifndef __GNUC__
2893       choke me
2894#endif
2895
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext
2901if { (ac_try="$ac_compile"
2902case "(($ac_try" in
2903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904  *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907  (eval "$ac_compile") 2>conftest.er1
2908  ac_status=$?
2909  grep -v '^ *+' conftest.er1 >conftest.err
2910  rm -f conftest.er1
2911  cat conftest.err >&5
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); } && {
2914	 test -z "$ac_cxx_werror_flag" ||
2915	 test ! -s conftest.err
2916       } && test -s conftest.$ac_objext; then
2917  ac_compiler_gnu=yes
2918else
2919  echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
2921
2922	ac_compiler_gnu=no
2923fi
2924
2925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2927
2928fi
2929{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2930echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2931GXX=`test $ac_compiler_gnu = yes && echo yes`
2932ac_test_CXXFLAGS=${CXXFLAGS+set}
2933ac_save_CXXFLAGS=$CXXFLAGS
2934{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2935echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2936if test "${ac_cv_prog_cxx_g+set}" = set; then
2937  echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2940   ac_cxx_werror_flag=yes
2941   ac_cv_prog_cxx_g=no
2942   CXXFLAGS="-g"
2943   cat >conftest.$ac_ext <<_ACEOF
2944/* confdefs.h.  */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h.  */
2949
2950int
2951main ()
2952{
2953
2954  ;
2955  return 0;
2956}
2957_ACEOF
2958rm -f conftest.$ac_objext
2959if { (ac_try="$ac_compile"
2960case "(($ac_try" in
2961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962  *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965  (eval "$ac_compile") 2>conftest.er1
2966  ac_status=$?
2967  grep -v '^ *+' conftest.er1 >conftest.err
2968  rm -f conftest.er1
2969  cat conftest.err >&5
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); } && {
2972	 test -z "$ac_cxx_werror_flag" ||
2973	 test ! -s conftest.err
2974       } && test -s conftest.$ac_objext; then
2975  ac_cv_prog_cxx_g=yes
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980	CXXFLAGS=""
2981      cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h.  */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h.  */
2987
2988int
2989main ()
2990{
2991
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996rm -f conftest.$ac_objext
2997if { (ac_try="$ac_compile"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003  (eval "$ac_compile") 2>conftest.er1
3004  ac_status=$?
3005  grep -v '^ *+' conftest.er1 >conftest.err
3006  rm -f conftest.er1
3007  cat conftest.err >&5
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); } && {
3010	 test -z "$ac_cxx_werror_flag" ||
3011	 test ! -s conftest.err
3012       } && test -s conftest.$ac_objext; then
3013  :
3014else
3015  echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3019	 CXXFLAGS="-g"
3020	 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026
3027int
3028main ()
3029{
3030
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039  *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042  (eval "$ac_compile") 2>conftest.er1
3043  ac_status=$?
3044  grep -v '^ *+' conftest.er1 >conftest.err
3045  rm -f conftest.er1
3046  cat conftest.err >&5
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); } && {
3049	 test -z "$ac_cxx_werror_flag" ||
3050	 test ! -s conftest.err
3051       } && test -s conftest.$ac_objext; then
3052  ac_cv_prog_cxx_g=yes
3053else
3054  echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057
3058fi
3059
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061fi
3062
3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064fi
3065
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3068fi
3069{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3070echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3071if test "$ac_test_CXXFLAGS" = set; then
3072  CXXFLAGS=$ac_save_CXXFLAGS
3073elif test $ac_cv_prog_cxx_g = yes; then
3074  if test "$GXX" = yes; then
3075    CXXFLAGS="-g -O2"
3076  else
3077    CXXFLAGS="-g"
3078  fi
3079else
3080  if test "$GXX" = yes; then
3081    CXXFLAGS="-O2"
3082  else
3083    CXXFLAGS=
3084  fi
3085fi
3086ac_ext=c
3087ac_cpp='$CPP $CPPFLAGS'
3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091DEPDIR="${am__leading_dot}deps"
3092
3093ac_config_commands="$ac_config_commands depfiles"
3094
3095
3096am_make=${MAKE-make}
3097cat > confinc << 'END'
3098am__doit:
3099	@echo done
3100.PHONY: am__doit
3101END
3102# If we don't find an include directive, just comment out the code.
3103{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3104echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3105am__include="#"
3106am__quote=
3107_am_result=none
3108# First try GNU make style include.
3109echo "include confinc" > confmf
3110# We grep out `Entering directory' and `Leaving directory'
3111# messages which can occur if `w' ends up in MAKEFLAGS.
3112# In particular we don't look at `^make:' because GNU make might
3113# be invoked under some other name (usually "gmake"), in which
3114# case it prints its new name instead of `make'.
3115if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3116   am__include=include
3117   am__quote=
3118   _am_result=GNU
3119fi
3120# Now try BSD make style include.
3121if test "$am__include" = "#"; then
3122   echo '.include "confinc"' > confmf
3123   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3124      am__include=.include
3125      am__quote="\""
3126      _am_result=BSD
3127   fi
3128fi
3129
3130
3131{ echo "$as_me:$LINENO: result: $_am_result" >&5
3132echo "${ECHO_T}$_am_result" >&6; }
3133rm -f confinc confmf
3134
3135# Check whether --enable-dependency-tracking was given.
3136if test "${enable_dependency_tracking+set}" = set; then
3137  enableval=$enable_dependency_tracking;
3138fi
3139
3140if test "x$enable_dependency_tracking" != xno; then
3141  am_depcomp="$ac_aux_dir/depcomp"
3142  AMDEPBACKSLASH='\'
3143fi
3144
3145
3146if test "x$enable_dependency_tracking" != xno; then
3147  AMDEP_TRUE=
3148  AMDEP_FALSE='#'
3149else
3150  AMDEP_TRUE='#'
3151  AMDEP_FALSE=
3152fi
3153
3154
3155
3156
3157depcc="$CXX"  am_compiler_list=
3158
3159{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3161if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165  # We make a subdir and do the tests there.  Otherwise we can end up
3166  # making bogus files that we don't know about and never remove.  For
3167  # instance it was reported that on HP-UX the gcc test will end up
3168  # making a dummy file named `D' -- because `-MD' means `put the output
3169  # in D'.
3170  mkdir conftest.dir
3171  # Copy depcomp to subdir because otherwise we won't find it if we're
3172  # using a relative directory.
3173  cp "$am_depcomp" conftest.dir
3174  cd conftest.dir
3175  # We will build objects and dependencies in a subdirectory because
3176  # it helps to detect inapplicable dependency modes.  For instance
3177  # both Tru64's cc and ICC support -MD to output dependencies as a
3178  # side effect of compilation, but ICC will put the dependencies in
3179  # the current directory while Tru64 will put them in the object
3180  # directory.
3181  mkdir sub
3182
3183  am_cv_CXX_dependencies_compiler_type=none
3184  if test "$am_compiler_list" = ""; then
3185     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3186  fi
3187  for depmode in $am_compiler_list; do
3188    # Setup a source with many dependencies, because some compilers
3189    # like to wrap large dependency lists on column 80 (with \), and
3190    # we should not choose a depcomp mode which is confused by this.
3191    #
3192    # We need to recreate these files for each test, as the compiler may
3193    # overwrite some of them when testing with obscure command lines.
3194    # This happens at least with the AIX C compiler.
3195    : > sub/conftest.c
3196    for i in 1 2 3 4 5 6; do
3197      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199      # Solaris 8's {/usr,}/bin/sh.
3200      touch sub/conftst$i.h
3201    done
3202    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203
3204    case $depmode in
3205    nosideeffect)
3206      # after this tag, mechanisms are not by side-effect, so they'll
3207      # only be used when explicitly requested
3208      if test "x$enable_dependency_tracking" = xyes; then
3209	continue
3210      else
3211	break
3212      fi
3213      ;;
3214    none) break ;;
3215    esac
3216    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217    # mode.  It turns out that the SunPro C++ compiler does not properly
3218    # handle `-M -o', and we need to detect this.
3219    if depmode=$depmode \
3220       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223         >/dev/null 2>conftest.err &&
3224       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227      # icc doesn't choke on unknown options, it will just issue warnings
3228      # or remarks (even with -Werror).  So we grep stderr for any message
3229      # that says an option was ignored or not supported.
3230      # When given -MP, icc 7.0 and 7.1 complain thusly:
3231      #   icc: Command line warning: ignoring option '-M'; no argument required
3232      # The diagnosis changed in icc 8.0:
3233      #   icc: Command line remark: option '-MP' not supported
3234      if (grep 'ignoring option' conftest.err ||
3235          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236        am_cv_CXX_dependencies_compiler_type=$depmode
3237        break
3238      fi
3239    fi
3240  done
3241
3242  cd ..
3243  rm -rf conftest.dir
3244else
3245  am_cv_CXX_dependencies_compiler_type=none
3246fi
3247
3248fi
3249{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3250echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3251CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3252
3253
3254
3255if
3256  test "x$enable_dependency_tracking" != xno \
3257  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3258  am__fastdepCXX_TRUE=
3259  am__fastdepCXX_FALSE='#'
3260else
3261  am__fastdepCXX_TRUE='#'
3262  am__fastdepCXX_FALSE=
3263fi
3264
3265
3266
3267#  Transitionary check for the C++ ABI while we are switching provided
3268#  binaries from gcc-3.[23] to gcc-3.4 or later.  Currently gcc-3.[23]
3269#  is still the official compiler version to use, but experimental bi-
3270#  naries are released with a ".c2" suffix.
3271#  The CXX_ABI for gcc-3.[23] is 102, btw.
3272#  Note that the PACKAGE_RELEASE for the gcc-3.4 or later packages has
3273#  to be larger than that for the gcc-3.[23] packages (as long as both
3274#  are distributed) for smooth upgrade paths.
3275
3276if test x"$CXX" = xg++; then
3277    { echo "$as_me:$LINENO: checking C++ ABI version" >&5
3278echo $ECHO_N "checking C++ ABI version... $ECHO_C" >&6; }
3279    CXX_ABI="`$CXX -E -dM - < /dev/null | $AWK '/GXX_ABI/ { print $3 }'`"
3280    { echo "$as_me:$LINENO: result: $CXX_ABI" >&5
3281echo "${ECHO_T}$CXX_ABI" >&6; }
3282    if test x"$CXX_ABI" = x1002; then
3283        PACKAGE_CXX_ABI=".c2"
3284    else
3285        PACKAGE_CXX_ABI=""
3286    fi
3287
3288fi
3289
3290ac_ext=c
3291ac_cpp='$CPP $CPPFLAGS'
3292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295if test -n "$ac_tool_prefix"; then
3296  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3297set dummy ${ac_tool_prefix}gcc; ac_word=$2
3298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3300if test "${ac_cv_prog_CC+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  if test -n "$CC"; then
3304  ac_cv_prog_CC="$CC" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311  for ac_exec_ext in '' $ac_executable_extensions; do
3312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318done
3319IFS=$as_save_IFS
3320
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325  { echo "$as_me:$LINENO: result: $CC" >&5
3326echo "${ECHO_T}$CC" >&6; }
3327else
3328  { echo "$as_me:$LINENO: result: no" >&5
3329echo "${ECHO_T}no" >&6; }
3330fi
3331
3332
3333fi
3334if test -z "$ac_cv_prog_CC"; then
3335  ac_ct_CC=$CC
3336  # Extract the first word of "gcc", so it can be a program name with args.
3337set dummy gcc; ac_word=$2
3338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3340if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  if test -n "$ac_ct_CC"; then
3344  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349  IFS=$as_save_IFS
3350  test -z "$as_dir" && as_dir=.
3351  for ac_exec_ext in '' $ac_executable_extensions; do
3352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353    ac_cv_prog_ac_ct_CC="gcc"
3354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355    break 2
3356  fi
3357done
3358done
3359IFS=$as_save_IFS
3360
3361fi
3362fi
3363ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364if test -n "$ac_ct_CC"; then
3365  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3366echo "${ECHO_T}$ac_ct_CC" >&6; }
3367else
3368  { echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6; }
3370fi
3371
3372  if test "x$ac_ct_CC" = x; then
3373    CC=""
3374  else
3375    case $cross_compiling:$ac_tool_warned in
3376yes:)
3377{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3378whose name does not start with the host triplet.  If you think this
3379configuration is useful to you, please write to autoconf@gnu.org." >&5
3380echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3381whose name does not start with the host triplet.  If you think this
3382configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3383ac_tool_warned=yes ;;
3384esac
3385    CC=$ac_ct_CC
3386  fi
3387else
3388  CC="$ac_cv_prog_CC"
3389fi
3390
3391if test -z "$CC"; then
3392          if test -n "$ac_tool_prefix"; then
3393    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3394set dummy ${ac_tool_prefix}cc; ac_word=$2
3395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397if test "${ac_cv_prog_CC+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  if test -n "$CC"; then
3401  ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408  for ac_exec_ext in '' $ac_executable_extensions; do
3409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410    ac_cv_prog_CC="${ac_tool_prefix}cc"
3411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422  { echo "$as_me:$LINENO: result: $CC" >&5
3423echo "${ECHO_T}$CC" >&6; }
3424else
3425  { echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6; }
3427fi
3428
3429
3430  fi
3431fi
3432if test -z "$CC"; then
3433  # Extract the first word of "cc", so it can be a program name with args.
3434set dummy cc; ac_word=$2
3435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3437if test "${ac_cv_prog_CC+set}" = set; then
3438  echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440  if test -n "$CC"; then
3441  ac_cv_prog_CC="$CC" # Let the user override the test.
3442else
3443  ac_prog_rejected=no
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449  for ac_exec_ext in '' $ac_executable_extensions; do
3450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452       ac_prog_rejected=yes
3453       continue
3454     fi
3455    ac_cv_prog_CC="cc"
3456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457    break 2
3458  fi
3459done
3460done
3461IFS=$as_save_IFS
3462
3463if test $ac_prog_rejected = yes; then
3464  # We found a bogon in the path, so make sure we never use it.
3465  set dummy $ac_cv_prog_CC
3466  shift
3467  if test $# != 0; then
3468    # We chose a different compiler from the bogus one.
3469    # However, it has the same basename, so the bogon will be chosen
3470    # first if we set CC to just the basename; use the full file name.
3471    shift
3472    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473  fi
3474fi
3475fi
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479  { echo "$as_me:$LINENO: result: $CC" >&5
3480echo "${ECHO_T}$CC" >&6; }
3481else
3482  { echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6; }
3484fi
3485
3486
3487fi
3488if test -z "$CC"; then
3489  if test -n "$ac_tool_prefix"; then
3490  for ac_prog in cl.exe
3491  do
3492    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3496if test "${ac_cv_prog_CC+set}" = set; then
3497  echo $ECHO_N "(cached) $ECHO_C" >&6
3498else
3499  if test -n "$CC"; then
3500  ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  test -z "$as_dir" && as_dir=.
3507  for ac_exec_ext in '' $ac_executable_extensions; do
3508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511    break 2
3512  fi
3513done
3514done
3515IFS=$as_save_IFS
3516
3517fi
3518fi
3519CC=$ac_cv_prog_CC
3520if test -n "$CC"; then
3521  { echo "$as_me:$LINENO: result: $CC" >&5
3522echo "${ECHO_T}$CC" >&6; }
3523else
3524  { echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6; }
3526fi
3527
3528
3529    test -n "$CC" && break
3530  done
3531fi
3532if test -z "$CC"; then
3533  ac_ct_CC=$CC
3534  for ac_prog in cl.exe
3535do
3536  # Extract the first word of "$ac_prog", so it can be a program name with args.
3537set dummy $ac_prog; ac_word=$2
3538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3541  echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543  if test -n "$ac_ct_CC"; then
3544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549  IFS=$as_save_IFS
3550  test -z "$as_dir" && as_dir=.
3551  for ac_exec_ext in '' $ac_executable_extensions; do
3552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553    ac_cv_prog_ac_ct_CC="$ac_prog"
3554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555    break 2
3556  fi
3557done
3558done
3559IFS=$as_save_IFS
3560
3561fi
3562fi
3563ac_ct_CC=$ac_cv_prog_ac_ct_CC
3564if test -n "$ac_ct_CC"; then
3565  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3566echo "${ECHO_T}$ac_ct_CC" >&6; }
3567else
3568  { echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6; }
3570fi
3571
3572
3573  test -n "$ac_ct_CC" && break
3574done
3575
3576  if test "x$ac_ct_CC" = x; then
3577    CC=""
3578  else
3579    case $cross_compiling:$ac_tool_warned in
3580yes:)
3581{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3582whose name does not start with the host triplet.  If you think this
3583configuration is useful to you, please write to autoconf@gnu.org." >&5
3584echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3585whose name does not start with the host triplet.  If you think this
3586configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3587ac_tool_warned=yes ;;
3588esac
3589    CC=$ac_ct_CC
3590  fi
3591fi
3592
3593fi
3594
3595
3596test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3597See \`config.log' for more details." >&5
3598echo "$as_me: error: no acceptable C compiler found in \$PATH
3599See \`config.log' for more details." >&2;}
3600   { (exit 1); exit 1; }; }
3601
3602# Provide some information about the compiler.
3603echo "$as_me:$LINENO: checking for C compiler version" >&5
3604ac_compiler=`set X $ac_compile; echo $2`
3605{ (ac_try="$ac_compiler --version >&5"
3606case "(($ac_try" in
3607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608  *) ac_try_echo=$ac_try;;
3609esac
3610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611  (eval "$ac_compiler --version >&5") 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }
3615{ (ac_try="$ac_compiler -v >&5"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621  (eval "$ac_compiler -v >&5") 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }
3625{ (ac_try="$ac_compiler -V >&5"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631  (eval "$ac_compiler -V >&5") 2>&5
3632  ac_status=$?
3633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634  (exit $ac_status); }
3635
3636{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3637echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3638if test "${ac_cv_c_compiler_gnu+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h.  */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h.  */
3647
3648int
3649main ()
3650{
3651#ifndef __GNUC__
3652       choke me
3653#endif
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659rm -f conftest.$ac_objext
3660if { (ac_try="$ac_compile"
3661case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666  (eval "$ac_compile") 2>conftest.er1
3667  ac_status=$?
3668  grep -v '^ *+' conftest.er1 >conftest.err
3669  rm -f conftest.er1
3670  cat conftest.err >&5
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); } && {
3673	 test -z "$ac_c_werror_flag" ||
3674	 test ! -s conftest.err
3675       } && test -s conftest.$ac_objext; then
3676  ac_compiler_gnu=yes
3677else
3678  echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681	ac_compiler_gnu=no
3682fi
3683
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685ac_cv_c_compiler_gnu=$ac_compiler_gnu
3686
3687fi
3688{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3689echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3690GCC=`test $ac_compiler_gnu = yes && echo yes`
3691ac_test_CFLAGS=${CFLAGS+set}
3692ac_save_CFLAGS=$CFLAGS
3693{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3694echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3695if test "${ac_cv_prog_cc_g+set}" = set; then
3696  echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698  ac_save_c_werror_flag=$ac_c_werror_flag
3699   ac_c_werror_flag=yes
3700   ac_cv_prog_cc_g=no
3701   CFLAGS="-g"
3702   cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h.  */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h.  */
3708
3709int
3710main ()
3711{
3712
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (ac_try="$ac_compile"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724  (eval "$ac_compile") 2>conftest.er1
3725  ac_status=$?
3726  grep -v '^ *+' conftest.er1 >conftest.err
3727  rm -f conftest.er1
3728  cat conftest.err >&5
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } && {
3731	 test -z "$ac_c_werror_flag" ||
3732	 test ! -s conftest.err
3733       } && test -s conftest.$ac_objext; then
3734  ac_cv_prog_cc_g=yes
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739	CFLAGS=""
3740      cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755rm -f conftest.$ac_objext
3756if { (ac_try="$ac_compile"
3757case "(($ac_try" in
3758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759  *) ac_try_echo=$ac_try;;
3760esac
3761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762  (eval "$ac_compile") 2>conftest.er1
3763  ac_status=$?
3764  grep -v '^ *+' conftest.er1 >conftest.err
3765  rm -f conftest.er1
3766  cat conftest.err >&5
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); } && {
3769	 test -z "$ac_c_werror_flag" ||
3770	 test ! -s conftest.err
3771       } && test -s conftest.$ac_objext; then
3772  :
3773else
3774  echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777	ac_c_werror_flag=$ac_save_c_werror_flag
3778	 CFLAGS="-g"
3779	 cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext
3795if { (ac_try="$ac_compile"
3796case "(($ac_try" in
3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798  *) ac_try_echo=$ac_try;;
3799esac
3800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801  (eval "$ac_compile") 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } && {
3808	 test -z "$ac_c_werror_flag" ||
3809	 test ! -s conftest.err
3810       } && test -s conftest.$ac_objext; then
3811  ac_cv_prog_cc_g=yes
3812else
3813  echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816
3817fi
3818
3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820fi
3821
3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823fi
3824
3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826   ac_c_werror_flag=$ac_save_c_werror_flag
3827fi
3828{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3829echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3830if test "$ac_test_CFLAGS" = set; then
3831  CFLAGS=$ac_save_CFLAGS
3832elif test $ac_cv_prog_cc_g = yes; then
3833  if test "$GCC" = yes; then
3834    CFLAGS="-g -O2"
3835  else
3836    CFLAGS="-g"
3837  fi
3838else
3839  if test "$GCC" = yes; then
3840    CFLAGS="-O2"
3841  else
3842    CFLAGS=
3843  fi
3844fi
3845{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3846echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3847if test "${ac_cv_prog_cc_c89+set}" = set; then
3848  echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850  ac_cv_prog_cc_c89=no
3851ac_save_CC=$CC
3852cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h.  */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
3857/* end confdefs.h.  */
3858#include <stdarg.h>
3859#include <stdio.h>
3860#include <sys/types.h>
3861#include <sys/stat.h>
3862/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3863struct buf { int x; };
3864FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865static char *e (p, i)
3866     char **p;
3867     int i;
3868{
3869  return p[i];
3870}
3871static char *f (char * (*g) (char **, int), char **p, ...)
3872{
3873  char *s;
3874  va_list v;
3875  va_start (v,p);
3876  s = g (p, va_arg (v,int));
3877  va_end (v);
3878  return s;
3879}
3880
3881/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3882   function prototypes and stuff, but not '\xHH' hex character constants.
3883   These don't provoke an error unfortunately, instead are silently treated
3884   as 'x'.  The following induces an error, until -std is added to get
3885   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3886   array size at least.  It's necessary to write '\x00'==0 to get something
3887   that's true only with -std.  */
3888int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3889
3890/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891   inside strings and character constants.  */
3892#define FOO(x) 'x'
3893int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3894
3895int test (int i, double x);
3896struct s1 {int (*f) (int a);};
3897struct s2 {int (*f) (double a);};
3898int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3899int argc;
3900char **argv;
3901int
3902main ()
3903{
3904return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3911do
3912  CC="$ac_save_CC $ac_arg"
3913  rm -f conftest.$ac_objext
3914if { (ac_try="$ac_compile"
3915case "(($ac_try" in
3916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917  *) ac_try_echo=$ac_try;;
3918esac
3919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920  (eval "$ac_compile") 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } && {
3927	 test -z "$ac_c_werror_flag" ||
3928	 test ! -s conftest.err
3929       } && test -s conftest.$ac_objext; then
3930  ac_cv_prog_cc_c89=$ac_arg
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935
3936fi
3937
3938rm -f core conftest.err conftest.$ac_objext
3939  test "x$ac_cv_prog_cc_c89" != "xno" && break
3940done
3941rm -f conftest.$ac_ext
3942CC=$ac_save_CC
3943
3944fi
3945# AC_CACHE_VAL
3946case "x$ac_cv_prog_cc_c89" in
3947  x)
3948    { echo "$as_me:$LINENO: result: none needed" >&5
3949echo "${ECHO_T}none needed" >&6; } ;;
3950  xno)
3951    { echo "$as_me:$LINENO: result: unsupported" >&5
3952echo "${ECHO_T}unsupported" >&6; } ;;
3953  *)
3954    CC="$CC $ac_cv_prog_cc_c89"
3955    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3956echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3957esac
3958
3959
3960ac_ext=c
3961ac_cpp='$CPP $CPPFLAGS'
3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966depcc="$CC"   am_compiler_list=
3967
3968{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3971  echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3974  # We make a subdir and do the tests there.  Otherwise we can end up
3975  # making bogus files that we don't know about and never remove.  For
3976  # instance it was reported that on HP-UX the gcc test will end up
3977  # making a dummy file named `D' -- because `-MD' means `put the output
3978  # in D'.
3979  mkdir conftest.dir
3980  # Copy depcomp to subdir because otherwise we won't find it if we're
3981  # using a relative directory.
3982  cp "$am_depcomp" conftest.dir
3983  cd conftest.dir
3984  # We will build objects and dependencies in a subdirectory because
3985  # it helps to detect inapplicable dependency modes.  For instance
3986  # both Tru64's cc and ICC support -MD to output dependencies as a
3987  # side effect of compilation, but ICC will put the dependencies in
3988  # the current directory while Tru64 will put them in the object
3989  # directory.
3990  mkdir sub
3991
3992  am_cv_CC_dependencies_compiler_type=none
3993  if test "$am_compiler_list" = ""; then
3994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3995  fi
3996  for depmode in $am_compiler_list; do
3997    # Setup a source with many dependencies, because some compilers
3998    # like to wrap large dependency lists on column 80 (with \), and
3999    # we should not choose a depcomp mode which is confused by this.
4000    #
4001    # We need to recreate these files for each test, as the compiler may
4002    # overwrite some of them when testing with obscure command lines.
4003    # This happens at least with the AIX C compiler.
4004    : > sub/conftest.c
4005    for i in 1 2 3 4 5 6; do
4006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008      # Solaris 8's {/usr,}/bin/sh.
4009      touch sub/conftst$i.h
4010    done
4011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012
4013    case $depmode in
4014    nosideeffect)
4015      # after this tag, mechanisms are not by side-effect, so they'll
4016      # only be used when explicitly requested
4017      if test "x$enable_dependency_tracking" = xyes; then
4018	continue
4019      else
4020	break
4021      fi
4022      ;;
4023    none) break ;;
4024    esac
4025    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4026    # mode.  It turns out that the SunPro C++ compiler does not properly
4027    # handle `-M -o', and we need to detect this.
4028    if depmode=$depmode \
4029       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4031       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4032         >/dev/null 2>conftest.err &&
4033       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4034       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4035       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4036      # icc doesn't choke on unknown options, it will just issue warnings
4037      # or remarks (even with -Werror).  So we grep stderr for any message
4038      # that says an option was ignored or not supported.
4039      # When given -MP, icc 7.0 and 7.1 complain thusly:
4040      #   icc: Command line warning: ignoring option '-M'; no argument required
4041      # The diagnosis changed in icc 8.0:
4042      #   icc: Command line remark: option '-MP' not supported
4043      if (grep 'ignoring option' conftest.err ||
4044          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4045        am_cv_CC_dependencies_compiler_type=$depmode
4046        break
4047      fi
4048    fi
4049  done
4050
4051  cd ..
4052  rm -rf conftest.dir
4053else
4054  am_cv_CC_dependencies_compiler_type=none
4055fi
4056
4057fi
4058{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4059echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4061
4062
4063
4064if
4065  test "x$enable_dependency_tracking" != xno \
4066  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4067  am__fastdepCC_TRUE=
4068  am__fastdepCC_FALSE='#'
4069else
4070  am__fastdepCC_TRUE='#'
4071  am__fastdepCC_FALSE=
4072fi
4073
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4081echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4082# On Suns, sometimes $CPP names a directory.
4083if test -n "$CPP" && test -d "$CPP"; then
4084  CPP=
4085fi
4086if test -z "$CPP"; then
4087  if test "${ac_cv_prog_CPP+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090      # Double quotes because CPP needs to be expanded
4091    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4092    do
4093      ac_preproc_ok=false
4094for ac_c_preproc_warn_flag in '' yes
4095do
4096  # Use a header file that comes with gcc, so configuring glibc
4097  # with a fresh cross-compiler works.
4098  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099  # <limits.h> exists even on freestanding compilers.
4100  # On the NeXT, cc -E runs the code through the compiler's parser,
4101  # not just through cpp. "Syntax error" is here to catch this case.
4102  cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h.  */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h.  */
4108#ifdef __STDC__
4109# include <limits.h>
4110#else
4111# include <assert.h>
4112#endif
4113		     Syntax error
4114_ACEOF
4115if { (ac_try="$ac_cpp conftest.$ac_ext"
4116case "(($ac_try" in
4117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118  *) ac_try_echo=$ac_try;;
4119esac
4120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4122  ac_status=$?
4123  grep -v '^ *+' conftest.er1 >conftest.err
4124  rm -f conftest.er1
4125  cat conftest.err >&5
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); } >/dev/null && {
4128	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4129	 test ! -s conftest.err
4130       }; then
4131  :
4132else
4133  echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136  # Broken: fails on valid input.
4137continue
4138fi
4139
4140rm -f conftest.err conftest.$ac_ext
4141
4142  # OK, works on sane cases.  Now check whether nonexistent headers
4143  # can be detected and how.
4144  cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h.  */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h.  */
4150#include <ac_nonexistent.h>
4151_ACEOF
4152if { (ac_try="$ac_cpp conftest.$ac_ext"
4153case "(($ac_try" in
4154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155  *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4159  ac_status=$?
4160  grep -v '^ *+' conftest.er1 >conftest.err
4161  rm -f conftest.er1
4162  cat conftest.err >&5
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } >/dev/null && {
4165	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4166	 test ! -s conftest.err
4167       }; then
4168  # Broken: success on invalid input.
4169continue
4170else
4171  echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174  # Passes both tests.
4175ac_preproc_ok=:
4176break
4177fi
4178
4179rm -f conftest.err conftest.$ac_ext
4180
4181done
4182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183rm -f conftest.err conftest.$ac_ext
4184if $ac_preproc_ok; then
4185  break
4186fi
4187
4188    done
4189    ac_cv_prog_CPP=$CPP
4190
4191fi
4192  CPP=$ac_cv_prog_CPP
4193else
4194  ac_cv_prog_CPP=$CPP
4195fi
4196{ echo "$as_me:$LINENO: result: $CPP" >&5
4197echo "${ECHO_T}$CPP" >&6; }
4198ac_preproc_ok=false
4199for ac_c_preproc_warn_flag in '' yes
4200do
4201  # Use a header file that comes with gcc, so configuring glibc
4202  # with a fresh cross-compiler works.
4203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204  # <limits.h> exists even on freestanding compilers.
4205  # On the NeXT, cc -E runs the code through the compiler's parser,
4206  # not just through cpp. "Syntax error" is here to catch this case.
4207  cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h.  */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h.  */
4213#ifdef __STDC__
4214# include <limits.h>
4215#else
4216# include <assert.h>
4217#endif
4218		     Syntax error
4219_ACEOF
4220if { (ac_try="$ac_cpp conftest.$ac_ext"
4221case "(($ac_try" in
4222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223  *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227  ac_status=$?
4228  grep -v '^ *+' conftest.er1 >conftest.err
4229  rm -f conftest.er1
4230  cat conftest.err >&5
4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232  (exit $ac_status); } >/dev/null && {
4233	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4234	 test ! -s conftest.err
4235       }; then
4236  :
4237else
4238  echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241  # Broken: fails on valid input.
4242continue
4243fi
4244
4245rm -f conftest.err conftest.$ac_ext
4246
4247  # OK, works on sane cases.  Now check whether nonexistent headers
4248  # can be detected and how.
4249  cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h.  */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h.  */
4255#include <ac_nonexistent.h>
4256_ACEOF
4257if { (ac_try="$ac_cpp conftest.$ac_ext"
4258case "(($ac_try" in
4259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260  *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264  ac_status=$?
4265  grep -v '^ *+' conftest.er1 >conftest.err
4266  rm -f conftest.er1
4267  cat conftest.err >&5
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); } >/dev/null && {
4270	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4271	 test ! -s conftest.err
4272       }; then
4273  # Broken: success on invalid input.
4274continue
4275else
4276  echo "$as_me: failed program was:" >&5
4277sed 's/^/| /' conftest.$ac_ext >&5
4278
4279  # Passes both tests.
4280ac_preproc_ok=:
4281break
4282fi
4283
4284rm -f conftest.err conftest.$ac_ext
4285
4286done
4287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288rm -f conftest.err conftest.$ac_ext
4289if $ac_preproc_ok; then
4290  :
4291else
4292  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4293See \`config.log' for more details." >&5
4294echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4295See \`config.log' for more details." >&2;}
4296   { (exit 1); exit 1; }; }
4297fi
4298
4299ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305# Find a good install program.  We prefer a C program (faster),
4306# so one script is as good as another.  But avoid the broken or
4307# incompatible versions:
4308# SysV /etc/install, /usr/sbin/install
4309# SunOS /usr/etc/install
4310# IRIX /sbin/install
4311# AIX /bin/install
4312# AmigaOS /C/install, which installs bootblocks on floppy discs
4313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4316# OS/2's system install, which has a completely different semantic
4317# ./install, which can be erroneously created by make from ./install.sh.
4318{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4319echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4320if test -z "$INSTALL"; then
4321if test "${ac_cv_path_install+set}" = set; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329  # Account for people who put trailing slashes in PATH elements.
4330case $as_dir/ in
4331  ./ | .// | /cC/* | \
4332  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4333  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4334  /usr/ucb/* ) ;;
4335  *)
4336    # OSF1 and SCO ODT 3.0 have their own names for install.
4337    # Don't use installbsd from OSF since it installs stuff as root
4338    # by default.
4339    for ac_prog in ginstall scoinst install; do
4340      for ac_exec_ext in '' $ac_executable_extensions; do
4341	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4342	  if test $ac_prog = install &&
4343	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4344	    # AIX install.  It has an incompatible calling convention.
4345	    :
4346	  elif test $ac_prog = install &&
4347	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4348	    # program-specific install script used by HP pwplus--don't use.
4349	    :
4350	  else
4351	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4352	    break 3
4353	  fi
4354	fi
4355      done
4356    done
4357    ;;
4358esac
4359done
4360IFS=$as_save_IFS
4361
4362
4363fi
4364  if test "${ac_cv_path_install+set}" = set; then
4365    INSTALL=$ac_cv_path_install
4366  else
4367    # As a last resort, use the slow shell script.  Don't cache a
4368    # value for INSTALL within a source directory, because that will
4369    # break other packages using the cache if that directory is
4370    # removed, or if the value is a relative name.
4371    INSTALL=$ac_install_sh
4372  fi
4373fi
4374{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4375echo "${ECHO_T}$INSTALL" >&6; }
4376
4377# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4378# It thinks the first close brace ends the variable substitution.
4379test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4380
4381test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4382
4383test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4384
4385{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4386echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4387LN_S=$as_ln_s
4388if test "$LN_S" = "ln -s"; then
4389  { echo "$as_me:$LINENO: result: yes" >&5
4390echo "${ECHO_T}yes" >&6; }
4391else
4392  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4393echo "${ECHO_T}no, using $LN_S" >&6; }
4394fi
4395
4396{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4397echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4398set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4399if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  cat >conftest.make <<\_ACEOF
4403SHELL = /bin/sh
4404all:
4405	@echo '@@@%%%=$(MAKE)=@@@%%%'
4406_ACEOF
4407# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4408case `${MAKE-make} -f conftest.make 2>/dev/null` in
4409  *@@@%%%=?*=@@@%%%*)
4410    eval ac_cv_prog_make_${ac_make}_set=yes;;
4411  *)
4412    eval ac_cv_prog_make_${ac_make}_set=no;;
4413esac
4414rm -f conftest.make
4415fi
4416if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4417  { echo "$as_me:$LINENO: result: yes" >&5
4418echo "${ECHO_T}yes" >&6; }
4419  SET_MAKE=
4420else
4421  { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
4423  SET_MAKE="MAKE=${MAKE-make}"
4424fi
4425
4426
4427
4428
4429
4430
4431if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4432	if test -n "$ac_tool_prefix"; then
4433  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4434set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4438  echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440  case $PKG_CONFIG in
4441  [\\/]* | ?:[\\/]*)
4442  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4443  ;;
4444  *)
4445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450  for ac_exec_ext in '' $ac_executable_extensions; do
4451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454    break 2
4455  fi
4456done
4457done
4458IFS=$as_save_IFS
4459
4460  ;;
4461esac
4462fi
4463PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4464if test -n "$PKG_CONFIG"; then
4465  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4466echo "${ECHO_T}$PKG_CONFIG" >&6; }
4467else
4468  { echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6; }
4470fi
4471
4472
4473fi
4474if test -z "$ac_cv_path_PKG_CONFIG"; then
4475  ac_pt_PKG_CONFIG=$PKG_CONFIG
4476  # Extract the first word of "pkg-config", so it can be a program name with args.
4477set dummy pkg-config; ac_word=$2
4478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  case $ac_pt_PKG_CONFIG in
4484  [\\/]* | ?:[\\/]*)
4485  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4486  ;;
4487  *)
4488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493  for ac_exec_ext in '' $ac_executable_extensions; do
4494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497    break 2
4498  fi
4499done
4500done
4501IFS=$as_save_IFS
4502
4503  ;;
4504esac
4505fi
4506ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4507if test -n "$ac_pt_PKG_CONFIG"; then
4508  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4509echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4510else
4511  { echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6; }
4513fi
4514
4515  if test "x$ac_pt_PKG_CONFIG" = x; then
4516    PKG_CONFIG=""
4517  else
4518    case $cross_compiling:$ac_tool_warned in
4519yes:)
4520{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4521whose name does not start with the host triplet.  If you think this
4522configuration is useful to you, please write to autoconf@gnu.org." >&5
4523echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4524whose name does not start with the host triplet.  If you think this
4525configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4526ac_tool_warned=yes ;;
4527esac
4528    PKG_CONFIG=$ac_pt_PKG_CONFIG
4529  fi
4530else
4531  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4532fi
4533
4534fi
4535if test -n "$PKG_CONFIG"; then
4536	_pkg_min_version=0.9.0
4537	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4538echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4539	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4540		{ echo "$as_me:$LINENO: result: yes" >&5
4541echo "${ECHO_T}yes" >&6; }
4542	else
4543		{ echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6; }
4545		PKG_CONFIG=""
4546	fi
4547
4548fi
4549
4550pkg_failed=no
4551{ echo "$as_me:$LINENO: checking for GTK" >&5
4552echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
4553
4554if test -n "$PKG_CONFIG"; then
4555    if test -n "$GTK_CFLAGS"; then
4556        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
4557    else
4558        if test -n "$PKG_CONFIG" && \
4559    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
4560  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; then
4564  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
4565else
4566  pkg_failed=yes
4567fi
4568    fi
4569else
4570	pkg_failed=untried
4571fi
4572if test -n "$PKG_CONFIG"; then
4573    if test -n "$GTK_LIBS"; then
4574        pkg_cv_GTK_LIBS="$GTK_LIBS"
4575    else
4576        if test -n "$PKG_CONFIG" && \
4577    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
4578  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
4579  ac_status=$?
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); }; then
4582  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
4583else
4584  pkg_failed=yes
4585fi
4586    fi
4587else
4588	pkg_failed=untried
4589fi
4590
4591
4592
4593if test $pkg_failed = yes; then
4594
4595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4596        _pkg_short_errors_supported=yes
4597else
4598        _pkg_short_errors_supported=no
4599fi
4600        if test $_pkg_short_errors_supported = yes; then
4601	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
4602        else
4603	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
4604        fi
4605	# Put the nasty error message in config.log where it belongs
4606	echo "$GTK_PKG_ERRORS" >&5
4607
4608	{ echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6; }
4610
4611
4612pkg_failed=no
4613{ echo "$as_me:$LINENO: checking for GTK" >&5
4614echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
4615
4616if test -n "$PKG_CONFIG"; then
4617    if test -n "$GTK_CFLAGS"; then
4618        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
4619    else
4620        if test -n "$PKG_CONFIG" && \
4621    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+\"") >&5
4622  ($PKG_CONFIG --exists --print-errors "gtk+") 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); }; then
4626  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+" 2>/dev/null`
4627else
4628  pkg_failed=yes
4629fi
4630    fi
4631else
4632	pkg_failed=untried
4633fi
4634if test -n "$PKG_CONFIG"; then
4635    if test -n "$GTK_LIBS"; then
4636        pkg_cv_GTK_LIBS="$GTK_LIBS"
4637    else
4638        if test -n "$PKG_CONFIG" && \
4639    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+\"") >&5
4640  ($PKG_CONFIG --exists --print-errors "gtk+") 2>&5
4641  ac_status=$?
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); }; then
4644  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+" 2>/dev/null`
4645else
4646  pkg_failed=yes
4647fi
4648    fi
4649else
4650	pkg_failed=untried
4651fi
4652
4653
4654
4655if test $pkg_failed = yes; then
4656
4657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4658        _pkg_short_errors_supported=yes
4659else
4660        _pkg_short_errors_supported=no
4661fi
4662        if test $_pkg_short_errors_supported = yes; then
4663	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+"`
4664        else
4665	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+"`
4666        fi
4667	# Put the nasty error message in config.log where it belongs
4668	echo "$GTK_PKG_ERRORS" >&5
4669
4670	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+) were not met:
4671
4672$GTK_PKG_ERRORS
4673
4674Consider adjusting the PKG_CONFIG_PATH environment variable if you
4675installed software in a non-standard prefix.
4676
4677Alternatively, you may set the environment variables GTK_CFLAGS
4678and GTK_LIBS to avoid the need to call pkg-config.
4679See the pkg-config man page for more details.
4680" >&5
4681echo "$as_me: error: Package requirements (gtk+) were not met:
4682
4683$GTK_PKG_ERRORS
4684
4685Consider adjusting the PKG_CONFIG_PATH environment variable if you
4686installed software in a non-standard prefix.
4687
4688Alternatively, you may set the environment variables GTK_CFLAGS
4689and GTK_LIBS to avoid the need to call pkg-config.
4690See the pkg-config man page for more details.
4691" >&2;}
4692   { (exit 1); exit 1; }; }
4693elif test $pkg_failed = untried; then
4694	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
4695is in your PATH or set the PKG_CONFIG environment variable to the full
4696path to pkg-config.
4697
4698Alternatively, you may set the environment variables GTK_CFLAGS
4699and GTK_LIBS to avoid the need to call pkg-config.
4700See the pkg-config man page for more details.
4701
4702To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4703See \`config.log' for more details." >&5
4704echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
4705is in your PATH or set the PKG_CONFIG environment variable to the full
4706path to pkg-config.
4707
4708Alternatively, you may set the environment variables GTK_CFLAGS
4709and GTK_LIBS to avoid the need to call pkg-config.
4710See the pkg-config man page for more details.
4711
4712To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4713See \`config.log' for more details." >&2;}
4714   { (exit 1); exit 1; }; }
4715else
4716	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
4717	GTK_LIBS=$pkg_cv_GTK_LIBS
4718        { echo "$as_me:$LINENO: result: yes" >&5
4719echo "${ECHO_T}yes" >&6; }
4720	:
4721fi
4722
4723pkg_failed=no
4724{ echo "$as_me:$LINENO: checking for GDK_IMLIB" >&5
4725echo $ECHO_N "checking for GDK_IMLIB... $ECHO_C" >&6; }
4726
4727if test -n "$PKG_CONFIG"; then
4728    if test -n "$GDK_IMLIB_CFLAGS"; then
4729        pkg_cv_GDK_IMLIB_CFLAGS="$GDK_IMLIB_CFLAGS"
4730    else
4731        if test -n "$PKG_CONFIG" && \
4732    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlibgdk\"") >&5
4733  ($PKG_CONFIG --exists --print-errors "imlibgdk") 2>&5
4734  ac_status=$?
4735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); }; then
4737  pkg_cv_GDK_IMLIB_CFLAGS=`$PKG_CONFIG --cflags "imlibgdk" 2>/dev/null`
4738else
4739  pkg_failed=yes
4740fi
4741    fi
4742else
4743	pkg_failed=untried
4744fi
4745if test -n "$PKG_CONFIG"; then
4746    if test -n "$GDK_IMLIB_LIBS"; then
4747        pkg_cv_GDK_IMLIB_LIBS="$GDK_IMLIB_LIBS"
4748    else
4749        if test -n "$PKG_CONFIG" && \
4750    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlibgdk\"") >&5
4751  ($PKG_CONFIG --exists --print-errors "imlibgdk") 2>&5
4752  ac_status=$?
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); }; then
4755  pkg_cv_GDK_IMLIB_LIBS=`$PKG_CONFIG --libs "imlibgdk" 2>/dev/null`
4756else
4757  pkg_failed=yes
4758fi
4759    fi
4760else
4761	pkg_failed=untried
4762fi
4763
4764
4765
4766if test $pkg_failed = yes; then
4767
4768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4769        _pkg_short_errors_supported=yes
4770else
4771        _pkg_short_errors_supported=no
4772fi
4773        if test $_pkg_short_errors_supported = yes; then
4774	        GDK_IMLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlibgdk"`
4775        else
4776	        GDK_IMLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlibgdk"`
4777        fi
4778	# Put the nasty error message in config.log where it belongs
4779	echo "$GDK_IMLIB_PKG_ERRORS" >&5
4780
4781	{ { echo "$as_me:$LINENO: error: Package requirements (imlibgdk) were not met:
4782
4783$GDK_IMLIB_PKG_ERRORS
4784
4785Consider adjusting the PKG_CONFIG_PATH environment variable if you
4786installed software in a non-standard prefix.
4787
4788Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
4789and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
4790See the pkg-config man page for more details.
4791" >&5
4792echo "$as_me: error: Package requirements (imlibgdk) were not met:
4793
4794$GDK_IMLIB_PKG_ERRORS
4795
4796Consider adjusting the PKG_CONFIG_PATH environment variable if you
4797installed software in a non-standard prefix.
4798
4799Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
4800and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
4801See the pkg-config man page for more details.
4802" >&2;}
4803   { (exit 1); exit 1; }; }
4804elif test $pkg_failed = untried; then
4805	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
4806is in your PATH or set the PKG_CONFIG environment variable to the full
4807path to pkg-config.
4808
4809Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
4810and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
4811See the pkg-config man page for more details.
4812
4813To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4814See \`config.log' for more details." >&5
4815echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
4816is in your PATH or set the PKG_CONFIG environment variable to the full
4817path to pkg-config.
4818
4819Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
4820and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
4821See the pkg-config man page for more details.
4822
4823To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4824See \`config.log' for more details." >&2;}
4825   { (exit 1); exit 1; }; }
4826else
4827	GDK_IMLIB_CFLAGS=$pkg_cv_GDK_IMLIB_CFLAGS
4828	GDK_IMLIB_LIBS=$pkg_cv_GDK_IMLIB_LIBS
4829        { echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6; }
4831	:
4832fi
4833
4834elif test $pkg_failed = untried; then
4835
4836
4837pkg_failed=no
4838{ echo "$as_me:$LINENO: checking for GTK" >&5
4839echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
4840
4841if test -n "$PKG_CONFIG"; then
4842    if test -n "$GTK_CFLAGS"; then
4843        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
4844    else
4845        if test -n "$PKG_CONFIG" && \
4846    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+\"") >&5
4847  ($PKG_CONFIG --exists --print-errors "gtk+") 2>&5
4848  ac_status=$?
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); }; then
4851  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+" 2>/dev/null`
4852else
4853  pkg_failed=yes
4854fi
4855    fi
4856else
4857	pkg_failed=untried
4858fi
4859if test -n "$PKG_CONFIG"; then
4860    if test -n "$GTK_LIBS"; then
4861        pkg_cv_GTK_LIBS="$GTK_LIBS"
4862    else
4863        if test -n "$PKG_CONFIG" && \
4864    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+\"") >&5
4865  ($PKG_CONFIG --exists --print-errors "gtk+") 2>&5
4866  ac_status=$?
4867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868  (exit $ac_status); }; then
4869  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+" 2>/dev/null`
4870else
4871  pkg_failed=yes
4872fi
4873    fi
4874else
4875	pkg_failed=untried
4876fi
4877
4878
4879
4880if test $pkg_failed = yes; then
4881
4882if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4883        _pkg_short_errors_supported=yes
4884else
4885        _pkg_short_errors_supported=no
4886fi
4887        if test $_pkg_short_errors_supported = yes; then
4888	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+"`
4889        else
4890	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+"`
4891        fi
4892	# Put the nasty error message in config.log where it belongs
4893	echo "$GTK_PKG_ERRORS" >&5
4894
4895	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+) were not met:
4896
4897$GTK_PKG_ERRORS
4898
4899Consider adjusting the PKG_CONFIG_PATH environment variable if you
4900installed software in a non-standard prefix.
4901
4902Alternatively, you may set the environment variables GTK_CFLAGS
4903and GTK_LIBS to avoid the need to call pkg-config.
4904See the pkg-config man page for more details.
4905" >&5
4906echo "$as_me: error: Package requirements (gtk+) were not met:
4907
4908$GTK_PKG_ERRORS
4909
4910Consider adjusting the PKG_CONFIG_PATH environment variable if you
4911installed software in a non-standard prefix.
4912
4913Alternatively, you may set the environment variables GTK_CFLAGS
4914and GTK_LIBS to avoid the need to call pkg-config.
4915See the pkg-config man page for more details.
4916" >&2;}
4917   { (exit 1); exit 1; }; }
4918elif test $pkg_failed = untried; then
4919	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
4920is in your PATH or set the PKG_CONFIG environment variable to the full
4921path to pkg-config.
4922
4923Alternatively, you may set the environment variables GTK_CFLAGS
4924and GTK_LIBS to avoid the need to call pkg-config.
4925See the pkg-config man page for more details.
4926
4927To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4928See \`config.log' for more details." >&5
4929echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
4930is in your PATH or set the PKG_CONFIG environment variable to the full
4931path to pkg-config.
4932
4933Alternatively, you may set the environment variables GTK_CFLAGS
4934and GTK_LIBS to avoid the need to call pkg-config.
4935See the pkg-config man page for more details.
4936
4937To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4938See \`config.log' for more details." >&2;}
4939   { (exit 1); exit 1; }; }
4940else
4941	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
4942	GTK_LIBS=$pkg_cv_GTK_LIBS
4943        { echo "$as_me:$LINENO: result: yes" >&5
4944echo "${ECHO_T}yes" >&6; }
4945	:
4946fi
4947
4948pkg_failed=no
4949{ echo "$as_me:$LINENO: checking for GDK_IMLIB" >&5
4950echo $ECHO_N "checking for GDK_IMLIB... $ECHO_C" >&6; }
4951
4952if test -n "$PKG_CONFIG"; then
4953    if test -n "$GDK_IMLIB_CFLAGS"; then
4954        pkg_cv_GDK_IMLIB_CFLAGS="$GDK_IMLIB_CFLAGS"
4955    else
4956        if test -n "$PKG_CONFIG" && \
4957    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlibgdk\"") >&5
4958  ($PKG_CONFIG --exists --print-errors "imlibgdk") 2>&5
4959  ac_status=$?
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); }; then
4962  pkg_cv_GDK_IMLIB_CFLAGS=`$PKG_CONFIG --cflags "imlibgdk" 2>/dev/null`
4963else
4964  pkg_failed=yes
4965fi
4966    fi
4967else
4968	pkg_failed=untried
4969fi
4970if test -n "$PKG_CONFIG"; then
4971    if test -n "$GDK_IMLIB_LIBS"; then
4972        pkg_cv_GDK_IMLIB_LIBS="$GDK_IMLIB_LIBS"
4973    else
4974        if test -n "$PKG_CONFIG" && \
4975    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlibgdk\"") >&5
4976  ($PKG_CONFIG --exists --print-errors "imlibgdk") 2>&5
4977  ac_status=$?
4978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); }; then
4980  pkg_cv_GDK_IMLIB_LIBS=`$PKG_CONFIG --libs "imlibgdk" 2>/dev/null`
4981else
4982  pkg_failed=yes
4983fi
4984    fi
4985else
4986	pkg_failed=untried
4987fi
4988
4989
4990
4991if test $pkg_failed = yes; then
4992
4993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4994        _pkg_short_errors_supported=yes
4995else
4996        _pkg_short_errors_supported=no
4997fi
4998        if test $_pkg_short_errors_supported = yes; then
4999	        GDK_IMLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlibgdk"`
5000        else
5001	        GDK_IMLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlibgdk"`
5002        fi
5003	# Put the nasty error message in config.log where it belongs
5004	echo "$GDK_IMLIB_PKG_ERRORS" >&5
5005
5006	{ { echo "$as_me:$LINENO: error: Package requirements (imlibgdk) were not met:
5007
5008$GDK_IMLIB_PKG_ERRORS
5009
5010Consider adjusting the PKG_CONFIG_PATH environment variable if you
5011installed software in a non-standard prefix.
5012
5013Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
5014and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
5015See the pkg-config man page for more details.
5016" >&5
5017echo "$as_me: error: Package requirements (imlibgdk) were not met:
5018
5019$GDK_IMLIB_PKG_ERRORS
5020
5021Consider adjusting the PKG_CONFIG_PATH environment variable if you
5022installed software in a non-standard prefix.
5023
5024Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
5025and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
5026See the pkg-config man page for more details.
5027" >&2;}
5028   { (exit 1); exit 1; }; }
5029elif test $pkg_failed = untried; then
5030	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5031is in your PATH or set the PKG_CONFIG environment variable to the full
5032path to pkg-config.
5033
5034Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
5035and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
5036See the pkg-config man page for more details.
5037
5038To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5039See \`config.log' for more details." >&5
5040echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5041is in your PATH or set the PKG_CONFIG environment variable to the full
5042path to pkg-config.
5043
5044Alternatively, you may set the environment variables GDK_IMLIB_CFLAGS
5045and GDK_IMLIB_LIBS to avoid the need to call pkg-config.
5046See the pkg-config man page for more details.
5047
5048To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5049See \`config.log' for more details." >&2;}
5050   { (exit 1); exit 1; }; }
5051else
5052	GDK_IMLIB_CFLAGS=$pkg_cv_GDK_IMLIB_CFLAGS
5053	GDK_IMLIB_LIBS=$pkg_cv_GDK_IMLIB_LIBS
5054        { echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6; }
5056	:
5057fi
5058
5059else
5060	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
5061	GTK_LIBS=$pkg_cv_GTK_LIBS
5062        { echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6; }
5064
5065
5066cat >>confdefs.h <<\_ACEOF
5067#define HAVE_GTK_2 1
5068_ACEOF
5069
5070
5071fi
5072
5073
5074pkg_failed=no
5075{ echo "$as_me:$LINENO: checking for GIMP" >&5
5076echo $ECHO_N "checking for GIMP... $ECHO_C" >&6; }
5077
5078if test -n "$PKG_CONFIG"; then
5079    if test -n "$GIMP_CFLAGS"; then
5080        pkg_cv_GIMP_CFLAGS="$GIMP_CFLAGS"
5081    else
5082        if test -n "$PKG_CONFIG" && \
5083    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gimp-2.0\"") >&5
5084  ($PKG_CONFIG --exists --print-errors "gimp-2.0") 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }; then
5088  pkg_cv_GIMP_CFLAGS=`$PKG_CONFIG --cflags "gimp-2.0" 2>/dev/null`
5089else
5090  pkg_failed=yes
5091fi
5092    fi
5093else
5094	pkg_failed=untried
5095fi
5096if test -n "$PKG_CONFIG"; then
5097    if test -n "$GIMP_LIBS"; then
5098        pkg_cv_GIMP_LIBS="$GIMP_LIBS"
5099    else
5100        if test -n "$PKG_CONFIG" && \
5101    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gimp-2.0\"") >&5
5102  ($PKG_CONFIG --exists --print-errors "gimp-2.0") 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }; then
5106  pkg_cv_GIMP_LIBS=`$PKG_CONFIG --libs "gimp-2.0" 2>/dev/null`
5107else
5108  pkg_failed=yes
5109fi
5110    fi
5111else
5112	pkg_failed=untried
5113fi
5114
5115
5116
5117if test $pkg_failed = yes; then
5118
5119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5120        _pkg_short_errors_supported=yes
5121else
5122        _pkg_short_errors_supported=no
5123fi
5124        if test $_pkg_short_errors_supported = yes; then
5125	        GIMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gimp-2.0"`
5126        else
5127	        GIMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gimp-2.0"`
5128        fi
5129	# Put the nasty error message in config.log where it belongs
5130	echo "$GIMP_PKG_ERRORS" >&5
5131
5132	{ echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6; }
5134
5135    { echo "$as_me:$LINENO: checking for GIMP - version >= 1.0.0" >&5
5136echo $ECHO_N "checking for GIMP - version >= 1.0.0... $ECHO_C" >&6; }
5137    # Extract the first word of "gimp-config", so it can be a program name with args.
5138set dummy gimp-config; ac_word=$2
5139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141if test "${ac_cv_path_GIMP_CONFIG+set}" = set; then
5142  echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144  case $GIMP_CONFIG in
5145  [\\/]* | ?:[\\/]*)
5146  ac_cv_path_GIMP_CONFIG="$GIMP_CONFIG" # Let the user override the test with a path.
5147  ;;
5148  *)
5149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154  for ac_exec_ext in '' $ac_executable_extensions; do
5155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156    ac_cv_path_GIMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158    break 2
5159  fi
5160done
5161done
5162IFS=$as_save_IFS
5163
5164  test -z "$ac_cv_path_GIMP_CONFIG" && ac_cv_path_GIMP_CONFIG="no"
5165  ;;
5166esac
5167fi
5168GIMP_CONFIG=$ac_cv_path_GIMP_CONFIG
5169if test -n "$GIMP_CONFIG"; then
5170  { echo "$as_me:$LINENO: result: $GIMP_CONFIG" >&5
5171echo "${ECHO_T}$GIMP_CONFIG" >&6; }
5172else
5173  { echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6; }
5175fi
5176
5177
5178    if test x"$GIMP_CONFIG" = xno; then
5179	{ echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6; }
5181    else
5182	GIMP_CFLAGS=`$GIMP_CONFIG --cflags`
5183	{ echo "$as_me:$LINENO: result: yes" >&5
5184echo "${ECHO_T}yes" >&6; }
5185
5186cat >>confdefs.h <<\_ACEOF
5187#define HAVE_ANY_GIMP 1
5188_ACEOF
5189
5190    fi
5191
5192elif test $pkg_failed = untried; then
5193
5194    { echo "$as_me:$LINENO: checking for GIMP - version >= 1.0.0" >&5
5195echo $ECHO_N "checking for GIMP - version >= 1.0.0... $ECHO_C" >&6; }
5196    # Extract the first word of "gimp-config", so it can be a program name with args.
5197set dummy gimp-config; ac_word=$2
5198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200if test "${ac_cv_path_GIMP_CONFIG+set}" = set; then
5201  echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203  case $GIMP_CONFIG in
5204  [\\/]* | ?:[\\/]*)
5205  ac_cv_path_GIMP_CONFIG="$GIMP_CONFIG" # Let the user override the test with a path.
5206  ;;
5207  *)
5208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211  IFS=$as_save_IFS
5212  test -z "$as_dir" && as_dir=.
5213  for ac_exec_ext in '' $ac_executable_extensions; do
5214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215    ac_cv_path_GIMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217    break 2
5218  fi
5219done
5220done
5221IFS=$as_save_IFS
5222
5223  test -z "$ac_cv_path_GIMP_CONFIG" && ac_cv_path_GIMP_CONFIG="no"
5224  ;;
5225esac
5226fi
5227GIMP_CONFIG=$ac_cv_path_GIMP_CONFIG
5228if test -n "$GIMP_CONFIG"; then
5229  { echo "$as_me:$LINENO: result: $GIMP_CONFIG" >&5
5230echo "${ECHO_T}$GIMP_CONFIG" >&6; }
5231else
5232  { echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6; }
5234fi
5235
5236
5237    if test x"$GIMP_CONFIG" = xno; then
5238	{ echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6; }
5240    else
5241	GIMP_CFLAGS=`$GIMP_CONFIG --cflags`
5242	{ echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6; }
5244
5245cat >>confdefs.h <<\_ACEOF
5246#define HAVE_ANY_GIMP 1
5247_ACEOF
5248
5249    fi
5250
5251else
5252	GIMP_CFLAGS=$pkg_cv_GIMP_CFLAGS
5253	GIMP_LIBS=$pkg_cv_GIMP_LIBS
5254        { echo "$as_me:$LINENO: result: yes" >&5
5255echo "${ECHO_T}yes" >&6; }
5256
5257
5258cat >>confdefs.h <<\_ACEOF
5259#define HAVE_GIMP_2 1
5260_ACEOF
5261
5262
5263cat >>confdefs.h <<\_ACEOF
5264#define HAVE_ANY_GIMP 1
5265_ACEOF
5266
5267
5268fi
5269
5270
5271
5272
5273
5274{ echo "$as_me:$LINENO: checking for usb_get_busses in -lusb" >&5
5275echo $ECHO_N "checking for usb_get_busses in -lusb... $ECHO_C" >&6; }
5276if test "${ac_cv_lib_usb_usb_get_busses+set}" = set; then
5277  echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279  ac_check_lib_save_LIBS=$LIBS
5280LIBS="-lusb  $LIBS"
5281cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h.  */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h.  */
5287
5288/* Override any GCC internal prototype to avoid an error.
5289   Use char because int might match the return type of a GCC
5290   builtin and then its argument prototype would still apply.  */
5291#ifdef __cplusplus
5292extern "C"
5293#endif
5294char usb_get_busses ();
5295int
5296main ()
5297{
5298return usb_get_busses ();
5299  ;
5300  return 0;
5301}
5302_ACEOF
5303rm -f conftest.$ac_objext conftest$ac_exeext
5304if { (ac_try="$ac_link"
5305case "(($ac_try" in
5306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307  *) ac_try_echo=$ac_try;;
5308esac
5309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310  (eval "$ac_link") 2>conftest.er1
5311  ac_status=$?
5312  grep -v '^ *+' conftest.er1 >conftest.err
5313  rm -f conftest.er1
5314  cat conftest.err >&5
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); } && {
5317	 test -z "$ac_c_werror_flag" ||
5318	 test ! -s conftest.err
5319       } && test -s conftest$ac_exeext &&
5320       $as_test_x conftest$ac_exeext; then
5321  ac_cv_lib_usb_usb_get_busses=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326	ac_cv_lib_usb_usb_get_busses=no
5327fi
5328
5329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5330      conftest$ac_exeext conftest.$ac_ext
5331LIBS=$ac_check_lib_save_LIBS
5332fi
5333{ echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_get_busses" >&5
5334echo "${ECHO_T}$ac_cv_lib_usb_usb_get_busses" >&6; }
5335if test $ac_cv_lib_usb_usb_get_busses = yes; then
5336  cat >>confdefs.h <<_ACEOF
5337#define HAVE_LIBUSB 1
5338_ACEOF
5339
5340  LIBS="-lusb $LIBS"
5341
5342fi
5343
5344
5345{ echo "$as_me:$LINENO: checking for sane_init in -lsane" >&5
5346echo $ECHO_N "checking for sane_init in -lsane... $ECHO_C" >&6; }
5347if test "${ac_cv_lib_sane_sane_init+set}" = set; then
5348  echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350  ac_check_lib_save_LIBS=$LIBS
5351LIBS="-lsane  $LIBS"
5352cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h.  */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
5357/* end confdefs.h.  */
5358
5359/* Override any GCC internal prototype to avoid an error.
5360   Use char because int might match the return type of a GCC
5361   builtin and then its argument prototype would still apply.  */
5362#ifdef __cplusplus
5363extern "C"
5364#endif
5365char sane_init ();
5366int
5367main ()
5368{
5369return sane_init ();
5370  ;
5371  return 0;
5372}
5373_ACEOF
5374rm -f conftest.$ac_objext conftest$ac_exeext
5375if { (ac_try="$ac_link"
5376case "(($ac_try" in
5377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378  *) ac_try_echo=$ac_try;;
5379esac
5380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381  (eval "$ac_link") 2>conftest.er1
5382  ac_status=$?
5383  grep -v '^ *+' conftest.er1 >conftest.err
5384  rm -f conftest.er1
5385  cat conftest.err >&5
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); } && {
5388	 test -z "$ac_c_werror_flag" ||
5389	 test ! -s conftest.err
5390       } && test -s conftest$ac_exeext &&
5391       $as_test_x conftest$ac_exeext; then
5392  ac_cv_lib_sane_sane_init=yes
5393else
5394  echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397	ac_cv_lib_sane_sane_init=no
5398fi
5399
5400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5401      conftest$ac_exeext conftest.$ac_ext
5402LIBS=$ac_check_lib_save_LIBS
5403fi
5404{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_init" >&5
5405echo "${ECHO_T}$ac_cv_lib_sane_sane_init" >&6; }
5406if test $ac_cv_lib_sane_sane_init = yes; then
5407  cat >>confdefs.h <<_ACEOF
5408#define HAVE_LIBSANE 1
5409_ACEOF
5410
5411  LIBS="-lsane $LIBS"
5412
5413fi
5414
5415
5416
5417
5418
5419{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5420echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5421if test "${ac_cv_path_GREP+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424  # Extract the first word of "grep ggrep" to use in msg output
5425if test -z "$GREP"; then
5426set dummy grep ggrep; ac_prog_name=$2
5427if test "${ac_cv_path_GREP+set}" = set; then
5428  echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430  ac_path_GREP_found=false
5431# Loop through the user's path and test for each of PROGNAME-LIST
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437  for ac_prog in grep ggrep; do
5438  for ac_exec_ext in '' $ac_executable_extensions; do
5439    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5440    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5441    # Check for GNU ac_path_GREP and select it if it is found.
5442  # Check for GNU $ac_path_GREP
5443case `"$ac_path_GREP" --version 2>&1` in
5444*GNU*)
5445  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5446*)
5447  ac_count=0
5448  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5449  while :
5450  do
5451    cat "conftest.in" "conftest.in" >"conftest.tmp"
5452    mv "conftest.tmp" "conftest.in"
5453    cp "conftest.in" "conftest.nl"
5454    echo 'GREP' >> "conftest.nl"
5455    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457    ac_count=`expr $ac_count + 1`
5458    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5459      # Best one so far, save it but keep looking for a better one
5460      ac_cv_path_GREP="$ac_path_GREP"
5461      ac_path_GREP_max=$ac_count
5462    fi
5463    # 10*(2^10) chars as input seems more than enough
5464    test $ac_count -gt 10 && break
5465  done
5466  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5467esac
5468
5469
5470    $ac_path_GREP_found && break 3
5471  done
5472done
5473
5474done
5475IFS=$as_save_IFS
5476
5477
5478fi
5479
5480GREP="$ac_cv_path_GREP"
5481if test -z "$GREP"; then
5482  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5483echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5484   { (exit 1); exit 1; }; }
5485fi
5486
5487else
5488  ac_cv_path_GREP=$GREP
5489fi
5490
5491
5492fi
5493{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5494echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5495 GREP="$ac_cv_path_GREP"
5496
5497
5498{ echo "$as_me:$LINENO: checking for egrep" >&5
5499echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5500if test "${ac_cv_path_EGREP+set}" = set; then
5501  echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5504   then ac_cv_path_EGREP="$GREP -E"
5505   else
5506     # Extract the first word of "egrep" to use in msg output
5507if test -z "$EGREP"; then
5508set dummy egrep; ac_prog_name=$2
5509if test "${ac_cv_path_EGREP+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512  ac_path_EGREP_found=false
5513# Loop through the user's path and test for each of PROGNAME-LIST
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5516do
5517  IFS=$as_save_IFS
5518  test -z "$as_dir" && as_dir=.
5519  for ac_prog in egrep; do
5520  for ac_exec_ext in '' $ac_executable_extensions; do
5521    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5522    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5523    # Check for GNU ac_path_EGREP and select it if it is found.
5524  # Check for GNU $ac_path_EGREP
5525case `"$ac_path_EGREP" --version 2>&1` in
5526*GNU*)
5527  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5528*)
5529  ac_count=0
5530  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5531  while :
5532  do
5533    cat "conftest.in" "conftest.in" >"conftest.tmp"
5534    mv "conftest.tmp" "conftest.in"
5535    cp "conftest.in" "conftest.nl"
5536    echo 'EGREP' >> "conftest.nl"
5537    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539    ac_count=`expr $ac_count + 1`
5540    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5541      # Best one so far, save it but keep looking for a better one
5542      ac_cv_path_EGREP="$ac_path_EGREP"
5543      ac_path_EGREP_max=$ac_count
5544    fi
5545    # 10*(2^10) chars as input seems more than enough
5546    test $ac_count -gt 10 && break
5547  done
5548  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549esac
5550
5551
5552    $ac_path_EGREP_found && break 3
5553  done
5554done
5555
5556done
5557IFS=$as_save_IFS
5558
5559
5560fi
5561
5562EGREP="$ac_cv_path_EGREP"
5563if test -z "$EGREP"; then
5564  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5565echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5566   { (exit 1); exit 1; }; }
5567fi
5568
5569else
5570  ac_cv_path_EGREP=$EGREP
5571fi
5572
5573
5574   fi
5575fi
5576{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5577echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5578 EGREP="$ac_cv_path_EGREP"
5579
5580
5581{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5582echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5583if test "${ac_cv_header_stdc+set}" = set; then
5584  echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586  cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h.  */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h.  */
5592#include <stdlib.h>
5593#include <stdarg.h>
5594#include <string.h>
5595#include <float.h>
5596
5597int
5598main ()
5599{
5600
5601  ;
5602  return 0;
5603}
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (ac_try="$ac_compile"
5607case "(($ac_try" in
5608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609  *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612  (eval "$ac_compile") 2>conftest.er1
5613  ac_status=$?
5614  grep -v '^ *+' conftest.er1 >conftest.err
5615  rm -f conftest.er1
5616  cat conftest.err >&5
5617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618  (exit $ac_status); } && {
5619	 test -z "$ac_c_werror_flag" ||
5620	 test ! -s conftest.err
5621       } && test -s conftest.$ac_objext; then
5622  ac_cv_header_stdc=yes
5623else
5624  echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627	ac_cv_header_stdc=no
5628fi
5629
5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631
5632if test $ac_cv_header_stdc = yes; then
5633  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5634  cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h.  */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h.  */
5640#include <string.h>
5641
5642_ACEOF
5643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644  $EGREP "memchr" >/dev/null 2>&1; then
5645  :
5646else
5647  ac_cv_header_stdc=no
5648fi
5649rm -f conftest*
5650
5651fi
5652
5653if test $ac_cv_header_stdc = yes; then
5654  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5655  cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661#include <stdlib.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665  $EGREP "free" >/dev/null 2>&1; then
5666  :
5667else
5668  ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676  if test "$cross_compiling" = yes; then
5677  :
5678else
5679  cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685#include <ctype.h>
5686#include <stdlib.h>
5687#if ((' ' & 0x0FF) == 0x020)
5688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690#else
5691# define ISLOWER(c) \
5692		   (('a' <= (c) && (c) <= 'i') \
5693		     || ('j' <= (c) && (c) <= 'r') \
5694		     || ('s' <= (c) && (c) <= 'z'))
5695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5696#endif
5697
5698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699int
5700main ()
5701{
5702  int i;
5703  for (i = 0; i < 256; i++)
5704    if (XOR (islower (i), ISLOWER (i))
5705	|| toupper (i) != TOUPPER (i))
5706      return 2;
5707  return 0;
5708}
5709_ACEOF
5710rm -f conftest$ac_exeext
5711if { (ac_try="$ac_link"
5712case "(($ac_try" in
5713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714  *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717  (eval "$ac_link") 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5721  { (case "(($ac_try" in
5722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723  *) ac_try_echo=$ac_try;;
5724esac
5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726  (eval "$ac_try") 2>&5
5727  ac_status=$?
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); }; }; then
5730  :
5731else
5732  echo "$as_me: program exited with status $ac_status" >&5
5733echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
5736( exit $ac_status )
5737ac_cv_header_stdc=no
5738fi
5739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5740fi
5741
5742
5743fi
5744fi
5745{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5746echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5747if test $ac_cv_header_stdc = yes; then
5748
5749cat >>confdefs.h <<\_ACEOF
5750#define STDC_HEADERS 1
5751_ACEOF
5752
5753fi
5754
5755# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5766		  inttypes.h stdint.h unistd.h
5767do
5768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5772  echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774  cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h.  */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h.  */
5780$ac_includes_default
5781
5782#include <$ac_header>
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (ac_try="$ac_compile"
5786case "(($ac_try" in
5787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788  *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791  (eval "$ac_compile") 2>conftest.er1
5792  ac_status=$?
5793  grep -v '^ *+' conftest.er1 >conftest.err
5794  rm -f conftest.er1
5795  cat conftest.err >&5
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); } && {
5798	 test -z "$ac_c_werror_flag" ||
5799	 test ! -s conftest.err
5800       } && test -s conftest.$ac_objext; then
5801  eval "$as_ac_Header=yes"
5802else
5803  echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806	eval "$as_ac_Header=no"
5807fi
5808
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810fi
5811ac_res=`eval echo '${'$as_ac_Header'}'`
5812	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5813echo "${ECHO_T}$ac_res" >&6; }
5814if test `eval echo '${'$as_ac_Header'}'` = yes; then
5815  cat >>confdefs.h <<_ACEOF
5816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5817_ACEOF
5818
5819fi
5820
5821done
5822
5823
5824# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5825# for constant arguments.  Useless!
5826{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5827echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5828if test "${ac_cv_working_alloca_h+set}" = set; then
5829  echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831  cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h.  */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h.  */
5837#include <alloca.h>
5838int
5839main ()
5840{
5841char *p = (char *) alloca (2 * sizeof (int));
5842			  if (p) return 0;
5843  ;
5844  return 0;
5845}
5846_ACEOF
5847rm -f conftest.$ac_objext conftest$ac_exeext
5848if { (ac_try="$ac_link"
5849case "(($ac_try" in
5850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851  *) ac_try_echo=$ac_try;;
5852esac
5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854  (eval "$ac_link") 2>conftest.er1
5855  ac_status=$?
5856  grep -v '^ *+' conftest.er1 >conftest.err
5857  rm -f conftest.er1
5858  cat conftest.err >&5
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); } && {
5861	 test -z "$ac_c_werror_flag" ||
5862	 test ! -s conftest.err
5863       } && test -s conftest$ac_exeext &&
5864       $as_test_x conftest$ac_exeext; then
5865  ac_cv_working_alloca_h=yes
5866else
5867  echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870	ac_cv_working_alloca_h=no
5871fi
5872
5873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5874      conftest$ac_exeext conftest.$ac_ext
5875fi
5876{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5877echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5878if test $ac_cv_working_alloca_h = yes; then
5879
5880cat >>confdefs.h <<\_ACEOF
5881#define HAVE_ALLOCA_H 1
5882_ACEOF
5883
5884fi
5885
5886{ echo "$as_me:$LINENO: checking for alloca" >&5
5887echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5888if test "${ac_cv_func_alloca_works+set}" = set; then
5889  echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891  cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h.  */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h.  */
5897#ifdef __GNUC__
5898# define alloca __builtin_alloca
5899#else
5900# ifdef _MSC_VER
5901#  include <malloc.h>
5902#  define alloca _alloca
5903# else
5904#  ifdef HAVE_ALLOCA_H
5905#   include <alloca.h>
5906#  else
5907#   ifdef _AIX
5908 #pragma alloca
5909#   else
5910#    ifndef alloca /* predefined by HP cc +Olibcalls */
5911char *alloca ();
5912#    endif
5913#   endif
5914#  endif
5915# endif
5916#endif
5917
5918int
5919main ()
5920{
5921char *p = (char *) alloca (1);
5922				    if (p) return 0;
5923  ;
5924  return 0;
5925}
5926_ACEOF
5927rm -f conftest.$ac_objext conftest$ac_exeext
5928if { (ac_try="$ac_link"
5929case "(($ac_try" in
5930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931  *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934  (eval "$ac_link") 2>conftest.er1
5935  ac_status=$?
5936  grep -v '^ *+' conftest.er1 >conftest.err
5937  rm -f conftest.er1
5938  cat conftest.err >&5
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); } && {
5941	 test -z "$ac_c_werror_flag" ||
5942	 test ! -s conftest.err
5943       } && test -s conftest$ac_exeext &&
5944       $as_test_x conftest$ac_exeext; then
5945  ac_cv_func_alloca_works=yes
5946else
5947  echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950	ac_cv_func_alloca_works=no
5951fi
5952
5953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5954      conftest$ac_exeext conftest.$ac_ext
5955fi
5956{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5957echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5958
5959if test $ac_cv_func_alloca_works = yes; then
5960
5961cat >>confdefs.h <<\_ACEOF
5962#define HAVE_ALLOCA 1
5963_ACEOF
5964
5965else
5966  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5967# that cause trouble.  Some versions do not even contain alloca or
5968# contain a buggy version.  If you still want to use their alloca,
5969# use ar to extract alloca.o from them instead of compiling alloca.c.
5970
5971ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5972
5973cat >>confdefs.h <<\_ACEOF
5974#define C_ALLOCA 1
5975_ACEOF
5976
5977
5978{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5979echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5980if test "${ac_cv_os_cray+set}" = set; then
5981  echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983  cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h.  */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h.  */
5989#if defined CRAY && ! defined CRAY2
5990webecray
5991#else
5992wenotbecray
5993#endif
5994
5995_ACEOF
5996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997  $EGREP "webecray" >/dev/null 2>&1; then
5998  ac_cv_os_cray=yes
5999else
6000  ac_cv_os_cray=no
6001fi
6002rm -f conftest*
6003
6004fi
6005{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6006echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6007if test $ac_cv_os_cray = yes; then
6008  for ac_func in _getb67 GETB67 getb67; do
6009    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6013  echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015  cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h.  */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h.  */
6021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6023#define $ac_func innocuous_$ac_func
6024
6025/* System header to define __stub macros and hopefully few prototypes,
6026    which can conflict with char $ac_func (); below.
6027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6028    <limits.h> exists even on freestanding compilers.  */
6029
6030#ifdef __STDC__
6031# include <limits.h>
6032#else
6033# include <assert.h>
6034#endif
6035
6036#undef $ac_func
6037
6038/* Override any GCC internal prototype to avoid an error.
6039   Use char because int might match the return type of a GCC
6040   builtin and then its argument prototype would still apply.  */
6041#ifdef __cplusplus
6042extern "C"
6043#endif
6044char $ac_func ();
6045/* The GNU C library defines this for functions which it implements
6046    to always fail with ENOSYS.  Some functions are actually named
6047    something starting with __ and the normal name is an alias.  */
6048#if defined __stub_$ac_func || defined __stub___$ac_func
6049choke me
6050#endif
6051
6052int
6053main ()
6054{
6055return $ac_func ();
6056  ;
6057  return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext conftest$ac_exeext
6061if { (ac_try="$ac_link"
6062case "(($ac_try" in
6063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064  *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067  (eval "$ac_link") 2>conftest.er1
6068  ac_status=$?
6069  grep -v '^ *+' conftest.er1 >conftest.err
6070  rm -f conftest.er1
6071  cat conftest.err >&5
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); } && {
6074	 test -z "$ac_c_werror_flag" ||
6075	 test ! -s conftest.err
6076       } && test -s conftest$ac_exeext &&
6077       $as_test_x conftest$ac_exeext; then
6078  eval "$as_ac_var=yes"
6079else
6080  echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083	eval "$as_ac_var=no"
6084fi
6085
6086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6087      conftest$ac_exeext conftest.$ac_ext
6088fi
6089ac_res=`eval echo '${'$as_ac_var'}'`
6090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6091echo "${ECHO_T}$ac_res" >&6; }
6092if test `eval echo '${'$as_ac_var'}'` = yes; then
6093
6094cat >>confdefs.h <<_ACEOF
6095#define CRAY_STACKSEG_END $ac_func
6096_ACEOF
6097
6098    break
6099fi
6100
6101  done
6102fi
6103
6104{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6105echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6106if test "${ac_cv_c_stack_direction+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109  if test "$cross_compiling" = yes; then
6110  ac_cv_c_stack_direction=0
6111else
6112  cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h.  */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h.  */
6118$ac_includes_default
6119int
6120find_stack_direction ()
6121{
6122  static char *addr = 0;
6123  auto char dummy;
6124  if (addr == 0)
6125    {
6126      addr = &dummy;
6127      return find_stack_direction ();
6128    }
6129  else
6130    return (&dummy > addr) ? 1 : -1;
6131}
6132
6133int
6134main ()
6135{
6136  return find_stack_direction () < 0;
6137}
6138_ACEOF
6139rm -f conftest$ac_exeext
6140if { (ac_try="$ac_link"
6141case "(($ac_try" in
6142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143  *) ac_try_echo=$ac_try;;
6144esac
6145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146  (eval "$ac_link") 2>&5
6147  ac_status=$?
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6150  { (case "(($ac_try" in
6151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152  *) ac_try_echo=$ac_try;;
6153esac
6154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155  (eval "$ac_try") 2>&5
6156  ac_status=$?
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); }; }; then
6159  ac_cv_c_stack_direction=1
6160else
6161  echo "$as_me: program exited with status $ac_status" >&5
6162echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165( exit $ac_status )
6166ac_cv_c_stack_direction=-1
6167fi
6168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6169fi
6170
6171
6172fi
6173{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6174echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6175
6176cat >>confdefs.h <<_ACEOF
6177#define STACK_DIRECTION $ac_cv_c_stack_direction
6178_ACEOF
6179
6180
6181fi
6182
6183
6184
6185
6186
6187
6188ac_header_dirent=no
6189for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6190  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6191{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6192echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6194  echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196  cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h.  */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h.  */
6202#include <sys/types.h>
6203#include <$ac_hdr>
6204
6205int
6206main ()
6207{
6208if ((DIR *) 0)
6209return 0;
6210  ;
6211  return 0;
6212}
6213_ACEOF
6214rm -f conftest.$ac_objext
6215if { (ac_try="$ac_compile"
6216case "(($ac_try" in
6217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218  *) ac_try_echo=$ac_try;;
6219esac
6220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221  (eval "$ac_compile") 2>conftest.er1
6222  ac_status=$?
6223  grep -v '^ *+' conftest.er1 >conftest.err
6224  rm -f conftest.er1
6225  cat conftest.err >&5
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); } && {
6228	 test -z "$ac_c_werror_flag" ||
6229	 test ! -s conftest.err
6230       } && test -s conftest.$ac_objext; then
6231  eval "$as_ac_Header=yes"
6232else
6233  echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236	eval "$as_ac_Header=no"
6237fi
6238
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240fi
6241ac_res=`eval echo '${'$as_ac_Header'}'`
6242	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6243echo "${ECHO_T}$ac_res" >&6; }
6244if test `eval echo '${'$as_ac_Header'}'` = yes; then
6245  cat >>confdefs.h <<_ACEOF
6246#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6247_ACEOF
6248
6249ac_header_dirent=$ac_hdr; break
6250fi
6251
6252done
6253# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6254if test $ac_header_dirent = dirent.h; then
6255  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6256echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6257if test "${ac_cv_search_opendir+set}" = set; then
6258  echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260  ac_func_search_save_LIBS=$LIBS
6261cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h.  */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h.  */
6267
6268/* Override any GCC internal prototype to avoid an error.
6269   Use char because int might match the return type of a GCC
6270   builtin and then its argument prototype would still apply.  */
6271#ifdef __cplusplus
6272extern "C"
6273#endif
6274char opendir ();
6275int
6276main ()
6277{
6278return opendir ();
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283for ac_lib in '' dir; do
6284  if test -z "$ac_lib"; then
6285    ac_res="none required"
6286  else
6287    ac_res=-l$ac_lib
6288    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6289  fi
6290  rm -f conftest.$ac_objext conftest$ac_exeext
6291if { (ac_try="$ac_link"
6292case "(($ac_try" in
6293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294  *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297  (eval "$ac_link") 2>conftest.er1
6298  ac_status=$?
6299  grep -v '^ *+' conftest.er1 >conftest.err
6300  rm -f conftest.er1
6301  cat conftest.err >&5
6302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); } && {
6304	 test -z "$ac_c_werror_flag" ||
6305	 test ! -s conftest.err
6306       } && test -s conftest$ac_exeext &&
6307       $as_test_x conftest$ac_exeext; then
6308  ac_cv_search_opendir=$ac_res
6309else
6310  echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313
6314fi
6315
6316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6317      conftest$ac_exeext
6318  if test "${ac_cv_search_opendir+set}" = set; then
6319  break
6320fi
6321done
6322if test "${ac_cv_search_opendir+set}" = set; then
6323  :
6324else
6325  ac_cv_search_opendir=no
6326fi
6327rm conftest.$ac_ext
6328LIBS=$ac_func_search_save_LIBS
6329fi
6330{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6331echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6332ac_res=$ac_cv_search_opendir
6333if test "$ac_res" != no; then
6334  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6335
6336fi
6337
6338else
6339  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6340echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6341if test "${ac_cv_search_opendir+set}" = set; then
6342  echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344  ac_func_search_save_LIBS=$LIBS
6345cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h.  */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h.  */
6351
6352/* Override any GCC internal prototype to avoid an error.
6353   Use char because int might match the return type of a GCC
6354   builtin and then its argument prototype would still apply.  */
6355#ifdef __cplusplus
6356extern "C"
6357#endif
6358char opendir ();
6359int
6360main ()
6361{
6362return opendir ();
6363  ;
6364  return 0;
6365}
6366_ACEOF
6367for ac_lib in '' x; do
6368  if test -z "$ac_lib"; then
6369    ac_res="none required"
6370  else
6371    ac_res=-l$ac_lib
6372    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6373  fi
6374  rm -f conftest.$ac_objext conftest$ac_exeext
6375if { (ac_try="$ac_link"
6376case "(($ac_try" in
6377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378  *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381  (eval "$ac_link") 2>conftest.er1
6382  ac_status=$?
6383  grep -v '^ *+' conftest.er1 >conftest.err
6384  rm -f conftest.er1
6385  cat conftest.err >&5
6386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387  (exit $ac_status); } && {
6388	 test -z "$ac_c_werror_flag" ||
6389	 test ! -s conftest.err
6390       } && test -s conftest$ac_exeext &&
6391       $as_test_x conftest$ac_exeext; then
6392  ac_cv_search_opendir=$ac_res
6393else
6394  echo "$as_me: failed program was:" >&5
6395sed 's/^/| /' conftest.$ac_ext >&5
6396
6397
6398fi
6399
6400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401      conftest$ac_exeext
6402  if test "${ac_cv_search_opendir+set}" = set; then
6403  break
6404fi
6405done
6406if test "${ac_cv_search_opendir+set}" = set; then
6407  :
6408else
6409  ac_cv_search_opendir=no
6410fi
6411rm conftest.$ac_ext
6412LIBS=$ac_func_search_save_LIBS
6413fi
6414{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6415echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6416ac_res=$ac_cv_search_opendir
6417if test "$ac_res" != no; then
6418  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6419
6420fi
6421
6422fi
6423
6424{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6425echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6426if test "${ac_cv_header_stdc+set}" = set; then
6427  echo $ECHO_N "(cached) $ECHO_C" >&6
6428else
6429  cat >conftest.$ac_ext <<_ACEOF
6430/* confdefs.h.  */
6431_ACEOF
6432cat confdefs.h >>conftest.$ac_ext
6433cat >>conftest.$ac_ext <<_ACEOF
6434/* end confdefs.h.  */
6435#include <stdlib.h>
6436#include <stdarg.h>
6437#include <string.h>
6438#include <float.h>
6439
6440int
6441main ()
6442{
6443
6444  ;
6445  return 0;
6446}
6447_ACEOF
6448rm -f conftest.$ac_objext
6449if { (ac_try="$ac_compile"
6450case "(($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_compile") 2>conftest.er1
6456  ac_status=$?
6457  grep -v '^ *+' conftest.er1 >conftest.err
6458  rm -f conftest.er1
6459  cat conftest.err >&5
6460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461  (exit $ac_status); } && {
6462	 test -z "$ac_c_werror_flag" ||
6463	 test ! -s conftest.err
6464       } && test -s conftest.$ac_objext; then
6465  ac_cv_header_stdc=yes
6466else
6467  echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470	ac_cv_header_stdc=no
6471fi
6472
6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474
6475if test $ac_cv_header_stdc = yes; then
6476  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6477  cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h.  */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h.  */
6483#include <string.h>
6484
6485_ACEOF
6486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487  $EGREP "memchr" >/dev/null 2>&1; then
6488  :
6489else
6490  ac_cv_header_stdc=no
6491fi
6492rm -f conftest*
6493
6494fi
6495
6496if test $ac_cv_header_stdc = yes; then
6497  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6498  cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504#include <stdlib.h>
6505
6506_ACEOF
6507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6508  $EGREP "free" >/dev/null 2>&1; then
6509  :
6510else
6511  ac_cv_header_stdc=no
6512fi
6513rm -f conftest*
6514
6515fi
6516
6517if test $ac_cv_header_stdc = yes; then
6518  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6519  if test "$cross_compiling" = yes; then
6520  :
6521else
6522  cat >conftest.$ac_ext <<_ACEOF
6523/* confdefs.h.  */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h.  */
6528#include <ctype.h>
6529#include <stdlib.h>
6530#if ((' ' & 0x0FF) == 0x020)
6531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6533#else
6534# define ISLOWER(c) \
6535		   (('a' <= (c) && (c) <= 'i') \
6536		     || ('j' <= (c) && (c) <= 'r') \
6537		     || ('s' <= (c) && (c) <= 'z'))
6538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6539#endif
6540
6541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6542int
6543main ()
6544{
6545  int i;
6546  for (i = 0; i < 256; i++)
6547    if (XOR (islower (i), ISLOWER (i))
6548	|| toupper (i) != TOUPPER (i))
6549      return 2;
6550  return 0;
6551}
6552_ACEOF
6553rm -f conftest$ac_exeext
6554if { (ac_try="$ac_link"
6555case "(($ac_try" in
6556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557  *) ac_try_echo=$ac_try;;
6558esac
6559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560  (eval "$ac_link") 2>&5
6561  ac_status=$?
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6564  { (case "(($ac_try" in
6565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566  *) ac_try_echo=$ac_try;;
6567esac
6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569  (eval "$ac_try") 2>&5
6570  ac_status=$?
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); }; }; then
6573  :
6574else
6575  echo "$as_me: program exited with status $ac_status" >&5
6576echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579( exit $ac_status )
6580ac_cv_header_stdc=no
6581fi
6582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6583fi
6584
6585
6586fi
6587fi
6588{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6589echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6590if test $ac_cv_header_stdc = yes; then
6591
6592cat >>confdefs.h <<\_ACEOF
6593#define STDC_HEADERS 1
6594_ACEOF
6595
6596fi
6597
6598{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6599echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6600if test "${ac_cv_header_sys_wait_h+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h.  */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h.  */
6609#include <sys/types.h>
6610#include <sys/wait.h>
6611#ifndef WEXITSTATUS
6612# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6613#endif
6614#ifndef WIFEXITED
6615# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6616#endif
6617
6618int
6619main ()
6620{
6621  int s;
6622  wait (&s);
6623  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6624  ;
6625  return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (ac_try="$ac_compile"
6630case "(($ac_try" in
6631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632  *) ac_try_echo=$ac_try;;
6633esac
6634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635  (eval "$ac_compile") 2>conftest.er1
6636  ac_status=$?
6637  grep -v '^ *+' conftest.er1 >conftest.err
6638  rm -f conftest.er1
6639  cat conftest.err >&5
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); } && {
6642	 test -z "$ac_c_werror_flag" ||
6643	 test ! -s conftest.err
6644       } && test -s conftest.$ac_objext; then
6645  ac_cv_header_sys_wait_h=yes
6646else
6647  echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650	ac_cv_header_sys_wait_h=no
6651fi
6652
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654fi
6655{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6656echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6657if test $ac_cv_header_sys_wait_h = yes; then
6658
6659cat >>confdefs.h <<\_ACEOF
6660#define HAVE_SYS_WAIT_H 1
6661_ACEOF
6662
6663fi
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679for ac_header in \
6680	fcntl.h \
6681	libintl.h \
6682	limits.h \
6683	locale.h \
6684	scsi/sg.h \
6685	stddef.h \
6686	stdint.h \
6687	stdlib.h \
6688	string.h \
6689	sys/ioctl.h \
6690	sys/param.h \
6691	sys/time.h \
6692	syslog.h \
6693	unistd.h \
6694
6695do
6696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6698  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702fi
6703ac_res=`eval echo '${'$as_ac_Header'}'`
6704	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6705echo "${ECHO_T}$ac_res" >&6; }
6706else
6707  # Is the header compilable?
6708{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6710cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h.  */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h.  */
6716$ac_includes_default
6717#include <$ac_header>
6718_ACEOF
6719rm -f conftest.$ac_objext
6720if { (ac_try="$ac_compile"
6721case "(($ac_try" in
6722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723  *) ac_try_echo=$ac_try;;
6724esac
6725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726  (eval "$ac_compile") 2>conftest.er1
6727  ac_status=$?
6728  grep -v '^ *+' conftest.er1 >conftest.err
6729  rm -f conftest.er1
6730  cat conftest.err >&5
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); } && {
6733	 test -z "$ac_c_werror_flag" ||
6734	 test ! -s conftest.err
6735       } && test -s conftest.$ac_objext; then
6736  ac_header_compiler=yes
6737else
6738  echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741	ac_header_compiler=no
6742fi
6743
6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6746echo "${ECHO_T}$ac_header_compiler" >&6; }
6747
6748# Is the header present?
6749{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6751cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h.  */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h.  */
6757#include <$ac_header>
6758_ACEOF
6759if { (ac_try="$ac_cpp conftest.$ac_ext"
6760case "(($ac_try" in
6761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762  *) ac_try_echo=$ac_try;;
6763esac
6764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6766  ac_status=$?
6767  grep -v '^ *+' conftest.er1 >conftest.err
6768  rm -f conftest.er1
6769  cat conftest.err >&5
6770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); } >/dev/null && {
6772	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6773	 test ! -s conftest.err
6774       }; then
6775  ac_header_preproc=yes
6776else
6777  echo "$as_me: failed program was:" >&5
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
6780  ac_header_preproc=no
6781fi
6782
6783rm -f conftest.err conftest.$ac_ext
6784{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6785echo "${ECHO_T}$ac_header_preproc" >&6; }
6786
6787# So?  What about this header?
6788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6789  yes:no: )
6790    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6792    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6794    ac_header_preproc=yes
6795    ;;
6796  no:yes:* )
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6799    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6800echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6801    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6803    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6804echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6805    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6807    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6809    ( cat <<\_ASBOX
6810## ------------------------------------------------------------ ##
6811## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
6812## ------------------------------------------------------------ ##
6813_ASBOX
6814     ) | sed "s/^/$as_me: WARNING:     /" >&2
6815    ;;
6816esac
6817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6820  echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822  eval "$as_ac_Header=\$ac_header_preproc"
6823fi
6824ac_res=`eval echo '${'$as_ac_Header'}'`
6825	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6826echo "${ECHO_T}$ac_res" >&6; }
6827
6828fi
6829if test `eval echo '${'$as_ac_Header'}'` = yes; then
6830  cat >>confdefs.h <<_ACEOF
6831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6832_ACEOF
6833
6834fi
6835
6836done
6837
6838
6839if test x != x"${GTK_CFLAGS}"; then
6840    iscan_save_CPPFLAGS="${CPPFLAGS}"
6841    CPPFLAGS="${CPPFLAGS} ${GTK_CFLAGS}"
6842
6843
6844
6845for ac_header in \
6846	gtk/gtk.h \
6847	libgimp/gimp.h \
6848	libgimp/gimpfeatures.h \
6849
6850do
6851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6853  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6856  echo $ECHO_N "(cached) $ECHO_C" >&6
6857fi
6858ac_res=`eval echo '${'$as_ac_Header'}'`
6859	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6860echo "${ECHO_T}$ac_res" >&6; }
6861else
6862  # Is the header compilable?
6863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6865cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h.  */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h.  */
6871$ac_includes_default
6872#include <$ac_header>
6873_ACEOF
6874rm -f conftest.$ac_objext
6875if { (ac_try="$ac_compile"
6876case "(($ac_try" in
6877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878  *) ac_try_echo=$ac_try;;
6879esac
6880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881  (eval "$ac_compile") 2>conftest.er1
6882  ac_status=$?
6883  grep -v '^ *+' conftest.er1 >conftest.err
6884  rm -f conftest.er1
6885  cat conftest.err >&5
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); } && {
6888	 test -z "$ac_c_werror_flag" ||
6889	 test ! -s conftest.err
6890       } && test -s conftest.$ac_objext; then
6891  ac_header_compiler=yes
6892else
6893  echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
6896	ac_header_compiler=no
6897fi
6898
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6901echo "${ECHO_T}$ac_header_compiler" >&6; }
6902
6903# Is the header present?
6904{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6906cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h.  */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h.  */
6912#include <$ac_header>
6913_ACEOF
6914if { (ac_try="$ac_cpp conftest.$ac_ext"
6915case "(($ac_try" in
6916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917  *) ac_try_echo=$ac_try;;
6918esac
6919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6921  ac_status=$?
6922  grep -v '^ *+' conftest.er1 >conftest.err
6923  rm -f conftest.er1
6924  cat conftest.err >&5
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); } >/dev/null && {
6927	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6928	 test ! -s conftest.err
6929       }; then
6930  ac_header_preproc=yes
6931else
6932  echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935  ac_header_preproc=no
6936fi
6937
6938rm -f conftest.err conftest.$ac_ext
6939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6940echo "${ECHO_T}$ac_header_preproc" >&6; }
6941
6942# So?  What about this header?
6943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6944  yes:no: )
6945    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6947    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6949    ac_header_preproc=yes
6950    ;;
6951  no:yes:* )
6952    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6954    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6955echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6956    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6958    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6959echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6960    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6962    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6964    ( cat <<\_ASBOX
6965## ------------------------------------------------------------ ##
6966## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
6967## ------------------------------------------------------------ ##
6968_ASBOX
6969     ) | sed "s/^/$as_me: WARNING:     /" >&2
6970    ;;
6971esac
6972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  eval "$as_ac_Header=\$ac_header_preproc"
6978fi
6979ac_res=`eval echo '${'$as_ac_Header'}'`
6980	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6981echo "${ECHO_T}$ac_res" >&6; }
6982
6983fi
6984if test `eval echo '${'$as_ac_Header'}'` = yes; then
6985  cat >>confdefs.h <<_ACEOF
6986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6987_ACEOF
6988
6989fi
6990
6991done
6992
6993    CPPFLAGS="${iscan_save_CPPFLAGS}"
6994fi
6995
6996
6997
6998{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6999echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7000if test "${ac_cv_header_stdbool_h+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009
7010#include <stdbool.h>
7011#ifndef bool
7012 "error: bool is not defined"
7013#endif
7014#ifndef false
7015 "error: false is not defined"
7016#endif
7017#if false
7018 "error: false is not 0"
7019#endif
7020#ifndef true
7021 "error: true is not defined"
7022#endif
7023#if true != 1
7024 "error: true is not 1"
7025#endif
7026#ifndef __bool_true_false_are_defined
7027 "error: __bool_true_false_are_defined is not defined"
7028#endif
7029
7030	struct s { _Bool s: 1; _Bool t; } s;
7031
7032	char a[true == 1 ? 1 : -1];
7033	char b[false == 0 ? 1 : -1];
7034	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7035	char d[(bool) 0.5 == true ? 1 : -1];
7036	bool e = &s;
7037	char f[(_Bool) 0.0 == false ? 1 : -1];
7038	char g[true];
7039	char h[sizeof (_Bool)];
7040	char i[sizeof s.t];
7041	enum { j = false, k = true, l = false * true, m = true * 256 };
7042	_Bool n[m];
7043	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7044	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7045#	if defined __xlc__ || defined __GNUC__
7046	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7047	    reported by James Lemley on 2005-10-05; see
7048	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7049	    This test is not quite right, since xlc is allowed to
7050	    reject this program, as the initializer for xlcbug is
7051	    not one of the forms that C requires support for.
7052	    However, doing the test right would require a runtime
7053	    test, and that would make cross-compilation harder.
7054	    Let us hope that IBM fixes the xlc bug, and also adds
7055	    support for this kind of constant expression.  In the
7056	    meantime, this test will reject xlc, which is OK, since
7057	    our stdbool.h substitute should suffice.  We also test
7058	    this with GCC, where it should work, to detect more
7059	    quickly whether someone messes up the test in the
7060	    future.  */
7061	 char digs[] = "0123456789";
7062	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7063#	endif
7064	/* Catch a bug in an HP-UX C compiler.  See
7065	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7066	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7067	 */
7068	_Bool q = true;
7069	_Bool *pq = &q;
7070
7071int
7072main ()
7073{
7074
7075	*pq |= q;
7076	*pq |= ! q;
7077	/* Refer to every declared value, to avoid compiler optimizations.  */
7078	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7079		+ !m + !n + !o + !p + !q + !pq);
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (ac_try="$ac_compile"
7087case "(($ac_try" in
7088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089  *) ac_try_echo=$ac_try;;
7090esac
7091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092  (eval "$ac_compile") 2>conftest.er1
7093  ac_status=$?
7094  grep -v '^ *+' conftest.er1 >conftest.err
7095  rm -f conftest.er1
7096  cat conftest.err >&5
7097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098  (exit $ac_status); } && {
7099	 test -z "$ac_c_werror_flag" ||
7100	 test ! -s conftest.err
7101       } && test -s conftest.$ac_objext; then
7102  ac_cv_header_stdbool_h=yes
7103else
7104  echo "$as_me: failed program was:" >&5
7105sed 's/^/| /' conftest.$ac_ext >&5
7106
7107	ac_cv_header_stdbool_h=no
7108fi
7109
7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111fi
7112{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7113echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7114{ echo "$as_me:$LINENO: checking for _Bool" >&5
7115echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
7116if test "${ac_cv_type__Bool+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119  cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125$ac_includes_default
7126typedef _Bool ac__type_new_;
7127int
7128main ()
7129{
7130if ((ac__type_new_ *) 0)
7131  return 0;
7132if (sizeof (ac__type_new_))
7133  return 0;
7134  ;
7135  return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext
7139if { (ac_try="$ac_compile"
7140case "(($ac_try" in
7141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142  *) ac_try_echo=$ac_try;;
7143esac
7144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145  (eval "$ac_compile") 2>conftest.er1
7146  ac_status=$?
7147  grep -v '^ *+' conftest.er1 >conftest.err
7148  rm -f conftest.er1
7149  cat conftest.err >&5
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); } && {
7152	 test -z "$ac_c_werror_flag" ||
7153	 test ! -s conftest.err
7154       } && test -s conftest.$ac_objext; then
7155  ac_cv_type__Bool=yes
7156else
7157  echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
7160	ac_cv_type__Bool=no
7161fi
7162
7163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164fi
7165{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7166echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
7167if test $ac_cv_type__Bool = yes; then
7168
7169cat >>confdefs.h <<_ACEOF
7170#define HAVE__BOOL 1
7171_ACEOF
7172
7173
7174fi
7175
7176if test $ac_cv_header_stdbool_h = yes; then
7177
7178cat >>confdefs.h <<\_ACEOF
7179#define HAVE_STDBOOL_H 1
7180_ACEOF
7181
7182fi
7183
7184{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7185echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7186if test "${ac_cv_c_const+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h.  */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h.  */
7195
7196int
7197main ()
7198{
7199/* FIXME: Include the comments suggested by Paul. */
7200#ifndef __cplusplus
7201  /* Ultrix mips cc rejects this.  */
7202  typedef int charset[2];
7203  const charset cs;
7204  /* SunOS 4.1.1 cc rejects this.  */
7205  char const *const *pcpcc;
7206  char **ppc;
7207  /* NEC SVR4.0.2 mips cc rejects this.  */
7208  struct point {int x, y;};
7209  static struct point const zero = {0,0};
7210  /* AIX XL C 1.02.0.0 rejects this.
7211     It does not let you subtract one const X* pointer from another in
7212     an arm of an if-expression whose if-part is not a constant
7213     expression */
7214  const char *g = "string";
7215  pcpcc = &g + (g ? g-g : 0);
7216  /* HPUX 7.0 cc rejects these. */
7217  ++pcpcc;
7218  ppc = (char**) pcpcc;
7219  pcpcc = (char const *const *) ppc;
7220  { /* SCO 3.2v4 cc rejects this.  */
7221    char *t;
7222    char const *s = 0 ? (char *) 0 : (char const *) 0;
7223
7224    *t++ = 0;
7225    if (s) return 0;
7226  }
7227  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7228    int x[] = {25, 17};
7229    const int *foo = &x[0];
7230    ++foo;
7231  }
7232  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7233    typedef const int *iptr;
7234    iptr p = 0;
7235    ++p;
7236  }
7237  { /* AIX XL C 1.02.0.0 rejects this saying
7238       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7239    struct s { int j; const int *ap[3]; };
7240    struct s *b; b->j = 5;
7241  }
7242  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7243    const int foo = 10;
7244    if (!foo) return 0;
7245  }
7246  return !cs[0] && !zero.x;
7247#endif
7248
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253rm -f conftest.$ac_objext
7254if { (ac_try="$ac_compile"
7255case "(($ac_try" in
7256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257  *) ac_try_echo=$ac_try;;
7258esac
7259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260  (eval "$ac_compile") 2>conftest.er1
7261  ac_status=$?
7262  grep -v '^ *+' conftest.er1 >conftest.err
7263  rm -f conftest.er1
7264  cat conftest.err >&5
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); } && {
7267	 test -z "$ac_c_werror_flag" ||
7268	 test ! -s conftest.err
7269       } && test -s conftest.$ac_objext; then
7270  ac_cv_c_const=yes
7271else
7272  echo "$as_me: failed program was:" >&5
7273sed 's/^/| /' conftest.$ac_ext >&5
7274
7275	ac_cv_c_const=no
7276fi
7277
7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279fi
7280{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7281echo "${ECHO_T}$ac_cv_c_const" >&6; }
7282if test $ac_cv_c_const = no; then
7283
7284cat >>confdefs.h <<\_ACEOF
7285#define const
7286_ACEOF
7287
7288fi
7289
7290{ echo "$as_me:$LINENO: checking for inline" >&5
7291echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7292if test "${ac_cv_c_inline+set}" = set; then
7293  echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295  ac_cv_c_inline=no
7296for ac_kw in inline __inline__ __inline; do
7297  cat >conftest.$ac_ext <<_ACEOF
7298/* confdefs.h.  */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h.  */
7303#ifndef __cplusplus
7304typedef int foo_t;
7305static $ac_kw foo_t static_foo () {return 0; }
7306$ac_kw foo_t foo () {return 0; }
7307#endif
7308
7309_ACEOF
7310rm -f conftest.$ac_objext
7311if { (ac_try="$ac_compile"
7312case "(($ac_try" in
7313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314  *) ac_try_echo=$ac_try;;
7315esac
7316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317  (eval "$ac_compile") 2>conftest.er1
7318  ac_status=$?
7319  grep -v '^ *+' conftest.er1 >conftest.err
7320  rm -f conftest.er1
7321  cat conftest.err >&5
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); } && {
7324	 test -z "$ac_c_werror_flag" ||
7325	 test ! -s conftest.err
7326       } && test -s conftest.$ac_objext; then
7327  ac_cv_c_inline=$ac_kw
7328else
7329  echo "$as_me: failed program was:" >&5
7330sed 's/^/| /' conftest.$ac_ext >&5
7331
7332
7333fi
7334
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336  test "$ac_cv_c_inline" != no && break
7337done
7338
7339fi
7340{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7341echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7342
7343
7344case $ac_cv_c_inline in
7345  inline | yes) ;;
7346  *)
7347    case $ac_cv_c_inline in
7348      no) ac_val=;;
7349      *) ac_val=$ac_cv_c_inline;;
7350    esac
7351    cat >>confdefs.h <<_ACEOF
7352#ifndef __cplusplus
7353#define inline $ac_val
7354#endif
7355_ACEOF
7356    ;;
7357esac
7358
7359{ echo "$as_me:$LINENO: checking for pid_t" >&5
7360echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7361if test "${ac_cv_type_pid_t+set}" = set; then
7362  echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364  cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370$ac_includes_default
7371typedef pid_t ac__type_new_;
7372int
7373main ()
7374{
7375if ((ac__type_new_ *) 0)
7376  return 0;
7377if (sizeof (ac__type_new_))
7378  return 0;
7379  ;
7380  return 0;
7381}
7382_ACEOF
7383rm -f conftest.$ac_objext
7384if { (ac_try="$ac_compile"
7385case "(($ac_try" in
7386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387  *) ac_try_echo=$ac_try;;
7388esac
7389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390  (eval "$ac_compile") 2>conftest.er1
7391  ac_status=$?
7392  grep -v '^ *+' conftest.er1 >conftest.err
7393  rm -f conftest.er1
7394  cat conftest.err >&5
7395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396  (exit $ac_status); } && {
7397	 test -z "$ac_c_werror_flag" ||
7398	 test ! -s conftest.err
7399       } && test -s conftest.$ac_objext; then
7400  ac_cv_type_pid_t=yes
7401else
7402  echo "$as_me: failed program was:" >&5
7403sed 's/^/| /' conftest.$ac_ext >&5
7404
7405	ac_cv_type_pid_t=no
7406fi
7407
7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409fi
7410{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7411echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7412if test $ac_cv_type_pid_t = yes; then
7413  :
7414else
7415
7416cat >>confdefs.h <<_ACEOF
7417#define pid_t int
7418_ACEOF
7419
7420fi
7421
7422{ echo "$as_me:$LINENO: checking for size_t" >&5
7423echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7424if test "${ac_cv_type_size_t+set}" = set; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427  cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h.  */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h.  */
7433$ac_includes_default
7434typedef size_t ac__type_new_;
7435int
7436main ()
7437{
7438if ((ac__type_new_ *) 0)
7439  return 0;
7440if (sizeof (ac__type_new_))
7441  return 0;
7442  ;
7443  return 0;
7444}
7445_ACEOF
7446rm -f conftest.$ac_objext
7447if { (ac_try="$ac_compile"
7448case "(($ac_try" in
7449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450  *) ac_try_echo=$ac_try;;
7451esac
7452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453  (eval "$ac_compile") 2>conftest.er1
7454  ac_status=$?
7455  grep -v '^ *+' conftest.er1 >conftest.err
7456  rm -f conftest.er1
7457  cat conftest.err >&5
7458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); } && {
7460	 test -z "$ac_c_werror_flag" ||
7461	 test ! -s conftest.err
7462       } && test -s conftest.$ac_objext; then
7463  ac_cv_type_size_t=yes
7464else
7465  echo "$as_me: failed program was:" >&5
7466sed 's/^/| /' conftest.$ac_ext >&5
7467
7468	ac_cv_type_size_t=no
7469fi
7470
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472fi
7473{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7474echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7475if test $ac_cv_type_size_t = yes; then
7476  :
7477else
7478
7479cat >>confdefs.h <<_ACEOF
7480#define size_t unsigned int
7481_ACEOF
7482
7483fi
7484
7485{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7486echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7487if test "${ac_cv_struct_tm+set}" = set; then
7488  echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490  cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h.  */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h.  */
7496#include <sys/types.h>
7497#include <time.h>
7498
7499int
7500main ()
7501{
7502struct tm tm;
7503				     int *p = &tm.tm_sec;
7504 				     return !p;
7505  ;
7506  return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext
7510if { (ac_try="$ac_compile"
7511case "(($ac_try" in
7512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513  *) ac_try_echo=$ac_try;;
7514esac
7515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516  (eval "$ac_compile") 2>conftest.er1
7517  ac_status=$?
7518  grep -v '^ *+' conftest.er1 >conftest.err
7519  rm -f conftest.er1
7520  cat conftest.err >&5
7521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522  (exit $ac_status); } && {
7523	 test -z "$ac_c_werror_flag" ||
7524	 test ! -s conftest.err
7525       } && test -s conftest.$ac_objext; then
7526  ac_cv_struct_tm=time.h
7527else
7528  echo "$as_me: failed program was:" >&5
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
7531	ac_cv_struct_tm=sys/time.h
7532fi
7533
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535fi
7536{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7537echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7538if test $ac_cv_struct_tm = sys/time.h; then
7539
7540cat >>confdefs.h <<\_ACEOF
7541#define TM_IN_SYS_TIME 1
7542_ACEOF
7543
7544fi
7545
7546{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7547echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7548if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  cat >conftest.$ac_ext <<_ACEOF
7552/* confdefs.h.  */
7553_ACEOF
7554cat confdefs.h >>conftest.$ac_ext
7555cat >>conftest.$ac_ext <<_ACEOF
7556/* end confdefs.h.  */
7557#include <sys/types.h>
7558#include <$ac_cv_struct_tm>
7559
7560
7561int
7562main ()
7563{
7564static struct tm ac_aggr;
7565if (ac_aggr.tm_zone)
7566return 0;
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571rm -f conftest.$ac_objext
7572if { (ac_try="$ac_compile"
7573case "(($ac_try" in
7574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575  *) ac_try_echo=$ac_try;;
7576esac
7577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578  (eval "$ac_compile") 2>conftest.er1
7579  ac_status=$?
7580  grep -v '^ *+' conftest.er1 >conftest.err
7581  rm -f conftest.er1
7582  cat conftest.err >&5
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); } && {
7585	 test -z "$ac_c_werror_flag" ||
7586	 test ! -s conftest.err
7587       } && test -s conftest.$ac_objext; then
7588  ac_cv_member_struct_tm_tm_zone=yes
7589else
7590  echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593	cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h.  */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h.  */
7599#include <sys/types.h>
7600#include <$ac_cv_struct_tm>
7601
7602
7603int
7604main ()
7605{
7606static struct tm ac_aggr;
7607if (sizeof ac_aggr.tm_zone)
7608return 0;
7609  ;
7610  return 0;
7611}
7612_ACEOF
7613rm -f conftest.$ac_objext
7614if { (ac_try="$ac_compile"
7615case "(($ac_try" in
7616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617  *) ac_try_echo=$ac_try;;
7618esac
7619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620  (eval "$ac_compile") 2>conftest.er1
7621  ac_status=$?
7622  grep -v '^ *+' conftest.er1 >conftest.err
7623  rm -f conftest.er1
7624  cat conftest.err >&5
7625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626  (exit $ac_status); } && {
7627	 test -z "$ac_c_werror_flag" ||
7628	 test ! -s conftest.err
7629       } && test -s conftest.$ac_objext; then
7630  ac_cv_member_struct_tm_tm_zone=yes
7631else
7632  echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635	ac_cv_member_struct_tm_tm_zone=no
7636fi
7637
7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639fi
7640
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642fi
7643{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7644echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7645if test $ac_cv_member_struct_tm_tm_zone = yes; then
7646
7647cat >>confdefs.h <<_ACEOF
7648#define HAVE_STRUCT_TM_TM_ZONE 1
7649_ACEOF
7650
7651
7652fi
7653
7654if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7655
7656cat >>confdefs.h <<\_ACEOF
7657#define HAVE_TM_ZONE 1
7658_ACEOF
7659
7660else
7661  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7662echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7663if test "${ac_cv_have_decl_tzname+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h.  */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h.  */
7672#include <time.h>
7673
7674int
7675main ()
7676{
7677#ifndef tzname
7678  (void) tzname;
7679#endif
7680
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (ac_try="$ac_compile"
7687case "(($ac_try" in
7688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689  *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692  (eval "$ac_compile") 2>conftest.er1
7693  ac_status=$?
7694  grep -v '^ *+' conftest.er1 >conftest.err
7695  rm -f conftest.er1
7696  cat conftest.err >&5
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); } && {
7699	 test -z "$ac_c_werror_flag" ||
7700	 test ! -s conftest.err
7701       } && test -s conftest.$ac_objext; then
7702  ac_cv_have_decl_tzname=yes
7703else
7704  echo "$as_me: failed program was:" >&5
7705sed 's/^/| /' conftest.$ac_ext >&5
7706
7707	ac_cv_have_decl_tzname=no
7708fi
7709
7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711fi
7712{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7713echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7714if test $ac_cv_have_decl_tzname = yes; then
7715
7716cat >>confdefs.h <<_ACEOF
7717#define HAVE_DECL_TZNAME 1
7718_ACEOF
7719
7720
7721else
7722  cat >>confdefs.h <<_ACEOF
7723#define HAVE_DECL_TZNAME 0
7724_ACEOF
7725
7726
7727fi
7728
7729
7730  { echo "$as_me:$LINENO: checking for tzname" >&5
7731echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7732if test "${ac_cv_var_tzname+set}" = set; then
7733  echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735  cat >conftest.$ac_ext <<_ACEOF
7736/* confdefs.h.  */
7737_ACEOF
7738cat confdefs.h >>conftest.$ac_ext
7739cat >>conftest.$ac_ext <<_ACEOF
7740/* end confdefs.h.  */
7741#include <time.h>
7742#if !HAVE_DECL_TZNAME
7743extern char *tzname[];
7744#endif
7745
7746int
7747main ()
7748{
7749return tzname[0][0];
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754rm -f conftest.$ac_objext conftest$ac_exeext
7755if { (ac_try="$ac_link"
7756case "(($ac_try" in
7757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758  *) ac_try_echo=$ac_try;;
7759esac
7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761  (eval "$ac_link") 2>conftest.er1
7762  ac_status=$?
7763  grep -v '^ *+' conftest.er1 >conftest.err
7764  rm -f conftest.er1
7765  cat conftest.err >&5
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); } && {
7768	 test -z "$ac_c_werror_flag" ||
7769	 test ! -s conftest.err
7770       } && test -s conftest$ac_exeext &&
7771       $as_test_x conftest$ac_exeext; then
7772  ac_cv_var_tzname=yes
7773else
7774  echo "$as_me: failed program was:" >&5
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
7777	ac_cv_var_tzname=no
7778fi
7779
7780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7781      conftest$ac_exeext conftest.$ac_ext
7782fi
7783{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7784echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7785  if test $ac_cv_var_tzname = yes; then
7786
7787cat >>confdefs.h <<\_ACEOF
7788#define HAVE_TZNAME 1
7789_ACEOF
7790
7791  fi
7792fi
7793
7794{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7795echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7796if test "${ac_cv_header_time+set}" = set; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  cat >conftest.$ac_ext <<_ACEOF
7800/* confdefs.h.  */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h.  */
7805#include <sys/types.h>
7806#include <sys/time.h>
7807#include <time.h>
7808
7809int
7810main ()
7811{
7812if ((struct tm *) 0)
7813return 0;
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext
7819if { (ac_try="$ac_compile"
7820case "(($ac_try" in
7821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822  *) ac_try_echo=$ac_try;;
7823esac
7824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825  (eval "$ac_compile") 2>conftest.er1
7826  ac_status=$?
7827  grep -v '^ *+' conftest.er1 >conftest.err
7828  rm -f conftest.er1
7829  cat conftest.err >&5
7830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831  (exit $ac_status); } && {
7832	 test -z "$ac_c_werror_flag" ||
7833	 test ! -s conftest.err
7834       } && test -s conftest.$ac_objext; then
7835  ac_cv_header_time=yes
7836else
7837  echo "$as_me: failed program was:" >&5
7838sed 's/^/| /' conftest.$ac_ext >&5
7839
7840	ac_cv_header_time=no
7841fi
7842
7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844fi
7845{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7846echo "${ECHO_T}$ac_cv_header_time" >&6; }
7847if test $ac_cv_header_time = yes; then
7848
7849cat >>confdefs.h <<\_ACEOF
7850#define TIME_WITH_SYS_TIME 1
7851_ACEOF
7852
7853fi
7854
7855{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7856echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7857if test "${ac_cv_struct_tm+set}" = set; then
7858  echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860  cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h.  */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h.  */
7866#include <sys/types.h>
7867#include <time.h>
7868
7869int
7870main ()
7871{
7872struct tm tm;
7873				     int *p = &tm.tm_sec;
7874 				     return !p;
7875  ;
7876  return 0;
7877}
7878_ACEOF
7879rm -f conftest.$ac_objext
7880if { (ac_try="$ac_compile"
7881case "(($ac_try" in
7882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883  *) ac_try_echo=$ac_try;;
7884esac
7885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886  (eval "$ac_compile") 2>conftest.er1
7887  ac_status=$?
7888  grep -v '^ *+' conftest.er1 >conftest.err
7889  rm -f conftest.er1
7890  cat conftest.err >&5
7891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892  (exit $ac_status); } && {
7893	 test -z "$ac_c_werror_flag" ||
7894	 test ! -s conftest.err
7895       } && test -s conftest.$ac_objext; then
7896  ac_cv_struct_tm=time.h
7897else
7898  echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901	ac_cv_struct_tm=sys/time.h
7902fi
7903
7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905fi
7906{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7907echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7908if test $ac_cv_struct_tm = sys/time.h; then
7909
7910cat >>confdefs.h <<\_ACEOF
7911#define TM_IN_SYS_TIME 1
7912_ACEOF
7913
7914fi
7915
7916{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7917echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7918if test "${ac_cv_type_uid_t+set}" = set; then
7919  echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921  cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h.  */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h.  */
7927#include <sys/types.h>
7928
7929_ACEOF
7930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931  $EGREP "uid_t" >/dev/null 2>&1; then
7932  ac_cv_type_uid_t=yes
7933else
7934  ac_cv_type_uid_t=no
7935fi
7936rm -f conftest*
7937
7938fi
7939{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7940echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7941if test $ac_cv_type_uid_t = no; then
7942
7943cat >>confdefs.h <<\_ACEOF
7944#define uid_t int
7945_ACEOF
7946
7947
7948cat >>confdefs.h <<\_ACEOF
7949#define gid_t int
7950_ACEOF
7951
7952fi
7953
7954
7955
7956
7957
7958        MKINSTALLDIRS=
7959  if test -n "$ac_aux_dir"; then
7960    case "$ac_aux_dir" in
7961      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7962      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7963    esac
7964  fi
7965  if test -z "$MKINSTALLDIRS"; then
7966    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7967  fi
7968
7969
7970
7971  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7972echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7973    # Check whether --enable-nls was given.
7974if test "${enable_nls+set}" = set; then
7975  enableval=$enable_nls; USE_NLS=$enableval
7976else
7977  USE_NLS=yes
7978fi
7979
7980  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7981echo "${ECHO_T}$USE_NLS" >&6; }
7982
7983
7984
7985
7986
7987
7988# Prepare PATH_SEPARATOR.
7989# The user is always right.
7990if test "${PATH_SEPARATOR+set}" != set; then
7991  echo "#! /bin/sh" >conf$$.sh
7992  echo  "exit 0"   >>conf$$.sh
7993  chmod +x conf$$.sh
7994  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7995    PATH_SEPARATOR=';'
7996  else
7997    PATH_SEPARATOR=:
7998  fi
7999  rm -f conf$$.sh
8000fi
8001
8002# Find out how to test for executable files. Don't use a zero-byte file,
8003# as systems may use methods other than mode bits to determine executability.
8004cat >conf$$.file <<_ASEOF
8005#! /bin/sh
8006exit 0
8007_ASEOF
8008chmod +x conf$$.file
8009if test -x conf$$.file >/dev/null 2>&1; then
8010  ac_executable_p="test -x"
8011else
8012  ac_executable_p="test -f"
8013fi
8014rm -f conf$$.file
8015
8016# Extract the first word of "msgfmt", so it can be a program name with args.
8017set dummy msgfmt; ac_word=$2
8018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020if test "${ac_cv_path_MSGFMT+set}" = set; then
8021  echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023  case "$MSGFMT" in
8024  [\\/]* | ?:[\\/]*)
8025    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8026    ;;
8027  *)
8028    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8029    for ac_dir in $PATH; do
8030      IFS="$ac_save_IFS"
8031      test -z "$ac_dir" && ac_dir=.
8032      for ac_exec_ext in '' $ac_executable_extensions; do
8033        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8034          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8035     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8036            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8037            break 2
8038          fi
8039        fi
8040      done
8041    done
8042    IFS="$ac_save_IFS"
8043  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8044    ;;
8045esac
8046fi
8047MSGFMT="$ac_cv_path_MSGFMT"
8048if test "$MSGFMT" != ":"; then
8049  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8050echo "${ECHO_T}$MSGFMT" >&6; }
8051else
8052  { echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6; }
8054fi
8055
8056  # Extract the first word of "gmsgfmt", so it can be a program name with args.
8057set dummy gmsgfmt; ac_word=$2
8058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060if test "${ac_cv_path_GMSGFMT+set}" = set; then
8061  echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063  case $GMSGFMT in
8064  [\\/]* | ?:[\\/]*)
8065  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8066  ;;
8067  *)
8068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071  IFS=$as_save_IFS
8072  test -z "$as_dir" && as_dir=.
8073  for ac_exec_ext in '' $ac_executable_extensions; do
8074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077    break 2
8078  fi
8079done
8080done
8081IFS=$as_save_IFS
8082
8083  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8084  ;;
8085esac
8086fi
8087GMSGFMT=$ac_cv_path_GMSGFMT
8088if test -n "$GMSGFMT"; then
8089  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8090echo "${ECHO_T}$GMSGFMT" >&6; }
8091else
8092  { echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6; }
8094fi
8095
8096
8097
8098
8099# Prepare PATH_SEPARATOR.
8100# The user is always right.
8101if test "${PATH_SEPARATOR+set}" != set; then
8102  echo "#! /bin/sh" >conf$$.sh
8103  echo  "exit 0"   >>conf$$.sh
8104  chmod +x conf$$.sh
8105  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8106    PATH_SEPARATOR=';'
8107  else
8108    PATH_SEPARATOR=:
8109  fi
8110  rm -f conf$$.sh
8111fi
8112
8113# Find out how to test for executable files. Don't use a zero-byte file,
8114# as systems may use methods other than mode bits to determine executability.
8115cat >conf$$.file <<_ASEOF
8116#! /bin/sh
8117exit 0
8118_ASEOF
8119chmod +x conf$$.file
8120if test -x conf$$.file >/dev/null 2>&1; then
8121  ac_executable_p="test -x"
8122else
8123  ac_executable_p="test -f"
8124fi
8125rm -f conf$$.file
8126
8127# Extract the first word of "xgettext", so it can be a program name with args.
8128set dummy xgettext; ac_word=$2
8129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131if test "${ac_cv_path_XGETTEXT+set}" = set; then
8132  echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134  case "$XGETTEXT" in
8135  [\\/]* | ?:[\\/]*)
8136    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8137    ;;
8138  *)
8139    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8140    for ac_dir in $PATH; do
8141      IFS="$ac_save_IFS"
8142      test -z "$ac_dir" && ac_dir=.
8143      for ac_exec_ext in '' $ac_executable_extensions; do
8144        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8145          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8146     (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
8147            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8148            break 2
8149          fi
8150        fi
8151      done
8152    done
8153    IFS="$ac_save_IFS"
8154  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8155    ;;
8156esac
8157fi
8158XGETTEXT="$ac_cv_path_XGETTEXT"
8159if test "$XGETTEXT" != ":"; then
8160  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8161echo "${ECHO_T}$XGETTEXT" >&6; }
8162else
8163  { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
8165fi
8166
8167    rm -f messages.po
8168
8169
8170# Prepare PATH_SEPARATOR.
8171# The user is always right.
8172if test "${PATH_SEPARATOR+set}" != set; then
8173  echo "#! /bin/sh" >conf$$.sh
8174  echo  "exit 0"   >>conf$$.sh
8175  chmod +x conf$$.sh
8176  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8177    PATH_SEPARATOR=';'
8178  else
8179    PATH_SEPARATOR=:
8180  fi
8181  rm -f conf$$.sh
8182fi
8183
8184# Find out how to test for executable files. Don't use a zero-byte file,
8185# as systems may use methods other than mode bits to determine executability.
8186cat >conf$$.file <<_ASEOF
8187#! /bin/sh
8188exit 0
8189_ASEOF
8190chmod +x conf$$.file
8191if test -x conf$$.file >/dev/null 2>&1; then
8192  ac_executable_p="test -x"
8193else
8194  ac_executable_p="test -f"
8195fi
8196rm -f conf$$.file
8197
8198# Extract the first word of "msgmerge", so it can be a program name with args.
8199set dummy msgmerge; ac_word=$2
8200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202if test "${ac_cv_path_MSGMERGE+set}" = set; then
8203  echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205  case "$MSGMERGE" in
8206  [\\/]* | ?:[\\/]*)
8207    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8208    ;;
8209  *)
8210    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8211    for ac_dir in $PATH; do
8212      IFS="$ac_save_IFS"
8213      test -z "$ac_dir" && ac_dir=.
8214      for ac_exec_ext in '' $ac_executable_extensions; do
8215        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8216          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8217            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8218            break 2
8219          fi
8220        fi
8221      done
8222    done
8223    IFS="$ac_save_IFS"
8224  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8225    ;;
8226esac
8227fi
8228MSGMERGE="$ac_cv_path_MSGMERGE"
8229if test "$MSGMERGE" != ":"; then
8230  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8231echo "${ECHO_T}$MSGMERGE" >&6; }
8232else
8233  { echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6; }
8235fi
8236
8237
8238      if test "$GMSGFMT" != ":"; then
8239            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8240       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8241      : ;
8242    else
8243      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8244      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8245echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
8246      GMSGFMT=":"
8247    fi
8248  fi
8249
8250      if test "$XGETTEXT" != ":"; then
8251            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8252       (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
8253      : ;
8254    else
8255      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8256echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8257      XGETTEXT=":"
8258    fi
8259        rm -f messages.po
8260  fi
8261
8262  ac_config_commands="$ac_config_commands default-1"
8263
8264
8265# Make sure we can run config.sub.
8266$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8267  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8268echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8269   { (exit 1); exit 1; }; }
8270
8271{ echo "$as_me:$LINENO: checking build system type" >&5
8272echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8273if test "${ac_cv_build+set}" = set; then
8274  echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276  ac_build_alias=$build_alias
8277test "x$ac_build_alias" = x &&
8278  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8279test "x$ac_build_alias" = x &&
8280  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8281echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8282   { (exit 1); exit 1; }; }
8283ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8284  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8285echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8286   { (exit 1); exit 1; }; }
8287
8288fi
8289{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8290echo "${ECHO_T}$ac_cv_build" >&6; }
8291case $ac_cv_build in
8292*-*-*) ;;
8293*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8294echo "$as_me: error: invalid value of canonical build" >&2;}
8295   { (exit 1); exit 1; }; };;
8296esac
8297build=$ac_cv_build
8298ac_save_IFS=$IFS; IFS='-'
8299set x $ac_cv_build
8300shift
8301build_cpu=$1
8302build_vendor=$2
8303shift; shift
8304# Remember, the first character of IFS is used to create $*,
8305# except with old shells:
8306build_os=$*
8307IFS=$ac_save_IFS
8308case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8309
8310
8311{ echo "$as_me:$LINENO: checking host system type" >&5
8312echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8313if test "${ac_cv_host+set}" = set; then
8314  echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316  if test "x$host_alias" = x; then
8317  ac_cv_host=$ac_cv_build
8318else
8319  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8320    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8321echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8322   { (exit 1); exit 1; }; }
8323fi
8324
8325fi
8326{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8327echo "${ECHO_T}$ac_cv_host" >&6; }
8328case $ac_cv_host in
8329*-*-*) ;;
8330*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8331echo "$as_me: error: invalid value of canonical host" >&2;}
8332   { (exit 1); exit 1; }; };;
8333esac
8334host=$ac_cv_host
8335ac_save_IFS=$IFS; IFS='-'
8336set x $ac_cv_host
8337shift
8338host_cpu=$1
8339host_vendor=$2
8340shift; shift
8341# Remember, the first character of IFS is used to create $*,
8342# except with old shells:
8343host_os=$*
8344IFS=$ac_save_IFS
8345case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8346
8347
8348if test -n "$ac_tool_prefix"; then
8349  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353if test "${ac_cv_prog_RANLIB+set}" = set; then
8354  echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356  if test -n "$RANLIB"; then
8357  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8358else
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362  IFS=$as_save_IFS
8363  test -z "$as_dir" && as_dir=.
8364  for ac_exec_ext in '' $ac_executable_extensions; do
8365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368    break 2
8369  fi
8370done
8371done
8372IFS=$as_save_IFS
8373
8374fi
8375fi
8376RANLIB=$ac_cv_prog_RANLIB
8377if test -n "$RANLIB"; then
8378  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8379echo "${ECHO_T}$RANLIB" >&6; }
8380else
8381  { echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6; }
8383fi
8384
8385
8386fi
8387if test -z "$ac_cv_prog_RANLIB"; then
8388  ac_ct_RANLIB=$RANLIB
8389  # Extract the first word of "ranlib", so it can be a program name with args.
8390set dummy ranlib; ac_word=$2
8391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8394  echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396  if test -n "$ac_ct_RANLIB"; then
8397  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8398else
8399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400for as_dir in $PATH
8401do
8402  IFS=$as_save_IFS
8403  test -z "$as_dir" && as_dir=.
8404  for ac_exec_ext in '' $ac_executable_extensions; do
8405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406    ac_cv_prog_ac_ct_RANLIB="ranlib"
8407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408    break 2
8409  fi
8410done
8411done
8412IFS=$as_save_IFS
8413
8414fi
8415fi
8416ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8417if test -n "$ac_ct_RANLIB"; then
8418  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8419echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8420else
8421  { echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6; }
8423fi
8424
8425  if test "x$ac_ct_RANLIB" = x; then
8426    RANLIB=":"
8427  else
8428    case $cross_compiling:$ac_tool_warned in
8429yes:)
8430{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8431whose name does not start with the host triplet.  If you think this
8432configuration is useful to you, please write to autoconf@gnu.org." >&5
8433echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8434whose name does not start with the host triplet.  If you think this
8435configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8436ac_tool_warned=yes ;;
8437esac
8438    RANLIB=$ac_ct_RANLIB
8439  fi
8440else
8441  RANLIB="$ac_cv_prog_RANLIB"
8442fi
8443
8444
8445        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
8446echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
8447if test "${ac_cv_lib_cposix_strerror+set}" = set; then
8448  echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450  ac_check_lib_save_LIBS=$LIBS
8451LIBS="-lcposix  $LIBS"
8452cat >conftest.$ac_ext <<_ACEOF
8453/* confdefs.h.  */
8454_ACEOF
8455cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF
8457/* end confdefs.h.  */
8458
8459/* Override any GCC internal prototype to avoid an error.
8460   Use char because int might match the return type of a GCC
8461   builtin and then its argument prototype would still apply.  */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465char strerror ();
8466int
8467main ()
8468{
8469return strerror ();
8470  ;
8471  return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext conftest$ac_exeext
8475if { (ac_try="$ac_link"
8476case "(($ac_try" in
8477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478  *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481  (eval "$ac_link") 2>conftest.er1
8482  ac_status=$?
8483  grep -v '^ *+' conftest.er1 >conftest.err
8484  rm -f conftest.er1
8485  cat conftest.err >&5
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); } && {
8488	 test -z "$ac_c_werror_flag" ||
8489	 test ! -s conftest.err
8490       } && test -s conftest$ac_exeext &&
8491       $as_test_x conftest$ac_exeext; then
8492  ac_cv_lib_cposix_strerror=yes
8493else
8494  echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
8497	ac_cv_lib_cposix_strerror=no
8498fi
8499
8500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8501      conftest$ac_exeext conftest.$ac_ext
8502LIBS=$ac_check_lib_save_LIBS
8503fi
8504{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8505echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8506if test $ac_cv_lib_cposix_strerror = yes; then
8507  LIBS="$LIBS -lcposix"
8508fi
8509
8510
8511
8512
8513  { echo "$as_me:$LINENO: checking for signed" >&5
8514echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8515if test "${bh_cv_c_signed+set}" = set; then
8516  echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518  cat >conftest.$ac_ext <<_ACEOF
8519/* confdefs.h.  */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h.  */
8524
8525int
8526main ()
8527{
8528signed char x;
8529  ;
8530  return 0;
8531}
8532_ACEOF
8533rm -f conftest.$ac_objext
8534if { (ac_try="$ac_compile"
8535case "(($ac_try" in
8536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537  *) ac_try_echo=$ac_try;;
8538esac
8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540  (eval "$ac_compile") 2>conftest.er1
8541  ac_status=$?
8542  grep -v '^ *+' conftest.er1 >conftest.err
8543  rm -f conftest.er1
8544  cat conftest.err >&5
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } && {
8547	 test -z "$ac_c_werror_flag" ||
8548	 test ! -s conftest.err
8549       } && test -s conftest.$ac_objext; then
8550  bh_cv_c_signed=yes
8551else
8552  echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555	bh_cv_c_signed=no
8556fi
8557
8558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi
8560{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8561echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8562  if test $bh_cv_c_signed = no; then
8563
8564cat >>confdefs.h <<\_ACEOF
8565#define signed
8566_ACEOF
8567
8568  fi
8569
8570{ echo "$as_me:$LINENO: checking for off_t" >&5
8571echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8572if test "${ac_cv_type_off_t+set}" = set; then
8573  echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575  cat >conftest.$ac_ext <<_ACEOF
8576/* confdefs.h.  */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h.  */
8581$ac_includes_default
8582typedef off_t ac__type_new_;
8583int
8584main ()
8585{
8586if ((ac__type_new_ *) 0)
8587  return 0;
8588if (sizeof (ac__type_new_))
8589  return 0;
8590  ;
8591  return 0;
8592}
8593_ACEOF
8594rm -f conftest.$ac_objext
8595if { (ac_try="$ac_compile"
8596case "(($ac_try" in
8597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598  *) ac_try_echo=$ac_try;;
8599esac
8600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601  (eval "$ac_compile") 2>conftest.er1
8602  ac_status=$?
8603  grep -v '^ *+' conftest.er1 >conftest.err
8604  rm -f conftest.er1
8605  cat conftest.err >&5
8606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607  (exit $ac_status); } && {
8608	 test -z "$ac_c_werror_flag" ||
8609	 test ! -s conftest.err
8610       } && test -s conftest.$ac_objext; then
8611  ac_cv_type_off_t=yes
8612else
8613  echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616	ac_cv_type_off_t=no
8617fi
8618
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8622echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8623if test $ac_cv_type_off_t = yes; then
8624  :
8625else
8626
8627cat >>confdefs.h <<_ACEOF
8628#define off_t long int
8629_ACEOF
8630
8631fi
8632
8633
8634  { echo "$as_me:$LINENO: checking for long long" >&5
8635echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8636if test "${ac_cv_type_long_long+set}" = set; then
8637  echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639  cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h.  */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h.  */
8645long long ll = 1LL; int i = 63;
8646int
8647main ()
8648{
8649long long llmax = (long long) -1;
8650     return ll << i | ll >> i | llmax / ll | llmax % ll;
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655rm -f conftest.$ac_objext conftest$ac_exeext
8656if { (ac_try="$ac_link"
8657case "(($ac_try" in
8658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659  *) ac_try_echo=$ac_try;;
8660esac
8661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662  (eval "$ac_link") 2>conftest.er1
8663  ac_status=$?
8664  grep -v '^ *+' conftest.er1 >conftest.err
8665  rm -f conftest.er1
8666  cat conftest.err >&5
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } && {
8669	 test -z "$ac_c_werror_flag" ||
8670	 test ! -s conftest.err
8671       } && test -s conftest$ac_exeext &&
8672       $as_test_x conftest$ac_exeext; then
8673  ac_cv_type_long_long=yes
8674else
8675  echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678	ac_cv_type_long_long=no
8679fi
8680
8681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682      conftest$ac_exeext conftest.$ac_ext
8683fi
8684{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8685echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8686  if test $ac_cv_type_long_long = yes; then
8687
8688cat >>confdefs.h <<\_ACEOF
8689#define HAVE_LONG_LONG 1
8690_ACEOF
8691
8692  fi
8693
8694
8695  { echo "$as_me:$LINENO: checking for long double" >&5
8696echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8697if test "${gt_cv_c_long_double+set}" = set; then
8698  echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700  if test "$GCC" = yes; then
8701       gt_cv_c_long_double=yes
8702     else
8703       cat >conftest.$ac_ext <<_ACEOF
8704/* confdefs.h.  */
8705_ACEOF
8706cat confdefs.h >>conftest.$ac_ext
8707cat >>conftest.$ac_ext <<_ACEOF
8708/* end confdefs.h.  */
8709
8710         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8711         long double foo = 0.0;
8712         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8713         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8714
8715int
8716main ()
8717{
8718
8719  ;
8720  return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext
8724if { (ac_try="$ac_compile"
8725case "(($ac_try" in
8726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727  *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730  (eval "$ac_compile") 2>conftest.er1
8731  ac_status=$?
8732  grep -v '^ *+' conftest.er1 >conftest.err
8733  rm -f conftest.er1
8734  cat conftest.err >&5
8735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); } && {
8737	 test -z "$ac_c_werror_flag" ||
8738	 test ! -s conftest.err
8739       } && test -s conftest.$ac_objext; then
8740  gt_cv_c_long_double=yes
8741else
8742  echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745	gt_cv_c_long_double=no
8746fi
8747
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749     fi
8750fi
8751{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8752echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8753  if test $gt_cv_c_long_double = yes; then
8754
8755cat >>confdefs.h <<\_ACEOF
8756#define HAVE_LONG_DOUBLE 1
8757_ACEOF
8758
8759  fi
8760
8761
8762  { echo "$as_me:$LINENO: checking for wchar_t" >&5
8763echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8764if test "${gt_cv_c_wchar_t+set}" = set; then
8765  echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767  cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h.  */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h.  */
8773#include <stddef.h>
8774       wchar_t foo = (wchar_t)'\0';
8775int
8776main ()
8777{
8778
8779  ;
8780  return 0;
8781}
8782_ACEOF
8783rm -f conftest.$ac_objext
8784if { (ac_try="$ac_compile"
8785case "(($ac_try" in
8786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787  *) ac_try_echo=$ac_try;;
8788esac
8789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790  (eval "$ac_compile") 2>conftest.er1
8791  ac_status=$?
8792  grep -v '^ *+' conftest.er1 >conftest.err
8793  rm -f conftest.er1
8794  cat conftest.err >&5
8795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796  (exit $ac_status); } && {
8797	 test -z "$ac_c_werror_flag" ||
8798	 test ! -s conftest.err
8799       } && test -s conftest.$ac_objext; then
8800  gt_cv_c_wchar_t=yes
8801else
8802  echo "$as_me: failed program was:" >&5
8803sed 's/^/| /' conftest.$ac_ext >&5
8804
8805	gt_cv_c_wchar_t=no
8806fi
8807
8808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809fi
8810{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8811echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8812  if test $gt_cv_c_wchar_t = yes; then
8813
8814cat >>confdefs.h <<\_ACEOF
8815#define HAVE_WCHAR_T 1
8816_ACEOF
8817
8818  fi
8819
8820
8821  { echo "$as_me:$LINENO: checking for wint_t" >&5
8822echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8823if test "${gt_cv_c_wint_t+set}" = set; then
8824  echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826  cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h.  */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h.  */
8832#include <wchar.h>
8833       wint_t foo = (wchar_t)'\0';
8834int
8835main ()
8836{
8837
8838  ;
8839  return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext
8843if { (ac_try="$ac_compile"
8844case "(($ac_try" in
8845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846  *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849  (eval "$ac_compile") 2>conftest.er1
8850  ac_status=$?
8851  grep -v '^ *+' conftest.er1 >conftest.err
8852  rm -f conftest.er1
8853  cat conftest.err >&5
8854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855  (exit $ac_status); } && {
8856	 test -z "$ac_c_werror_flag" ||
8857	 test ! -s conftest.err
8858       } && test -s conftest.$ac_objext; then
8859  gt_cv_c_wint_t=yes
8860else
8861  echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
8864	gt_cv_c_wint_t=no
8865fi
8866
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8870echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8871  if test $gt_cv_c_wint_t = yes; then
8872
8873cat >>confdefs.h <<\_ACEOF
8874#define HAVE_WINT_T 1
8875_ACEOF
8876
8877  fi
8878
8879
8880  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8881echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8882if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8883  echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885  cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h.  */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h.  */
8891#include <sys/types.h>
8892#include <inttypes.h>
8893int
8894main ()
8895{
8896uintmax_t i = (uintmax_t) -1;
8897  ;
8898  return 0;
8899}
8900_ACEOF
8901rm -f conftest.$ac_objext
8902if { (ac_try="$ac_compile"
8903case "(($ac_try" in
8904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905  *) ac_try_echo=$ac_try;;
8906esac
8907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908  (eval "$ac_compile") 2>conftest.er1
8909  ac_status=$?
8910  grep -v '^ *+' conftest.er1 >conftest.err
8911  rm -f conftest.er1
8912  cat conftest.err >&5
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); } && {
8915	 test -z "$ac_c_werror_flag" ||
8916	 test ! -s conftest.err
8917       } && test -s conftest.$ac_objext; then
8918  jm_ac_cv_header_inttypes_h=yes
8919else
8920  echo "$as_me: failed program was:" >&5
8921sed 's/^/| /' conftest.$ac_ext >&5
8922
8923	jm_ac_cv_header_inttypes_h=no
8924fi
8925
8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927fi
8928{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8929echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
8930  if test $jm_ac_cv_header_inttypes_h = yes; then
8931
8932cat >>confdefs.h <<_ACEOF
8933#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8934_ACEOF
8935
8936  fi
8937
8938
8939  { echo "$as_me:$LINENO: checking for stdint.h" >&5
8940echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8941if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943else
8944  cat >conftest.$ac_ext <<_ACEOF
8945/* confdefs.h.  */
8946_ACEOF
8947cat confdefs.h >>conftest.$ac_ext
8948cat >>conftest.$ac_ext <<_ACEOF
8949/* end confdefs.h.  */
8950#include <sys/types.h>
8951#include <stdint.h>
8952int
8953main ()
8954{
8955uintmax_t i = (uintmax_t) -1;
8956  ;
8957  return 0;
8958}
8959_ACEOF
8960rm -f conftest.$ac_objext
8961if { (ac_try="$ac_compile"
8962case "(($ac_try" in
8963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964  *) ac_try_echo=$ac_try;;
8965esac
8966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967  (eval "$ac_compile") 2>conftest.er1
8968  ac_status=$?
8969  grep -v '^ *+' conftest.er1 >conftest.err
8970  rm -f conftest.er1
8971  cat conftest.err >&5
8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973  (exit $ac_status); } && {
8974	 test -z "$ac_c_werror_flag" ||
8975	 test ! -s conftest.err
8976       } && test -s conftest.$ac_objext; then
8977  jm_ac_cv_header_stdint_h=yes
8978else
8979  echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982	jm_ac_cv_header_stdint_h=no
8983fi
8984
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8988echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
8989  if test $jm_ac_cv_header_stdint_h = yes; then
8990
8991cat >>confdefs.h <<_ACEOF
8992#define HAVE_STDINT_H_WITH_UINTMAX 1
8993_ACEOF
8994
8995  fi
8996
8997
8998
8999
9000  { echo "$as_me:$LINENO: checking for intmax_t" >&5
9001echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9002if test "${gt_cv_c_intmax_t+set}" = set; then
9003  echo $ECHO_N "(cached) $ECHO_C" >&6
9004else
9005  cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h.  */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h.  */
9011
9012#include <stddef.h>
9013#include <stdlib.h>
9014#if HAVE_STDINT_H_WITH_UINTMAX
9015#include <stdint.h>
9016#endif
9017#if HAVE_INTTYPES_H_WITH_UINTMAX
9018#include <inttypes.h>
9019#endif
9020
9021int
9022main ()
9023{
9024intmax_t x = -1;
9025  ;
9026  return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext
9030if { (ac_try="$ac_compile"
9031case "(($ac_try" in
9032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033  *) ac_try_echo=$ac_try;;
9034esac
9035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036  (eval "$ac_compile") 2>conftest.er1
9037  ac_status=$?
9038  grep -v '^ *+' conftest.er1 >conftest.err
9039  rm -f conftest.er1
9040  cat conftest.err >&5
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); } && {
9043	 test -z "$ac_c_werror_flag" ||
9044	 test ! -s conftest.err
9045       } && test -s conftest.$ac_objext; then
9046  gt_cv_c_intmax_t=yes
9047else
9048  echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051	gt_cv_c_intmax_t=no
9052fi
9053
9054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055fi
9056{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9057echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9058  if test $gt_cv_c_intmax_t = yes; then
9059
9060cat >>confdefs.h <<\_ACEOF
9061#define HAVE_INTMAX_T 1
9062_ACEOF
9063
9064  fi
9065
9066
9067
9068  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9069echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9070if test "${gt_cv_func_printf_posix+set}" = set; then
9071  echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073
9074      if test "$cross_compiling" = yes; then
9075
9076        cat >conftest.$ac_ext <<_ACEOF
9077/* confdefs.h.  */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h.  */
9082
9083#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9084  notposix
9085#endif
9086
9087_ACEOF
9088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9089  $EGREP "notposix" >/dev/null 2>&1; then
9090  gt_cv_func_printf_posix="guessing no"
9091else
9092  gt_cv_func_printf_posix="guessing yes"
9093fi
9094rm -f conftest*
9095
9096
9097else
9098  cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h.  */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h.  */
9104
9105#include <stdio.h>
9106#include <string.h>
9107/* The string "%2$d %1$d", with dollar characters protected from the shell's
9108   dollar expansion (possibly an autoconf bug).  */
9109static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9110static char buf[100];
9111int main ()
9112{
9113  sprintf (buf, format, 33, 55);
9114  return (strcmp (buf, "55 33") != 0);
9115}
9116_ACEOF
9117rm -f conftest$ac_exeext
9118if { (ac_try="$ac_link"
9119case "(($ac_try" in
9120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121  *) ac_try_echo=$ac_try;;
9122esac
9123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124  (eval "$ac_link") 2>&5
9125  ac_status=$?
9126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9128  { (case "(($ac_try" in
9129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130  *) ac_try_echo=$ac_try;;
9131esac
9132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133  (eval "$ac_try") 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; }; then
9137  gt_cv_func_printf_posix=yes
9138else
9139  echo "$as_me: program exited with status $ac_status" >&5
9140echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143( exit $ac_status )
9144gt_cv_func_printf_posix=no
9145fi
9146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9147fi
9148
9149
9150
9151fi
9152{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9153echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9154  case $gt_cv_func_printf_posix in
9155    *yes)
9156
9157cat >>confdefs.h <<\_ACEOF
9158#define HAVE_POSIX_PRINTF 1
9159_ACEOF
9160
9161      ;;
9162  esac
9163
9164
9165
9166for ac_header in stdlib.h unistd.h
9167do
9168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9170  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9173  echo $ECHO_N "(cached) $ECHO_C" >&6
9174fi
9175ac_res=`eval echo '${'$as_ac_Header'}'`
9176	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9177echo "${ECHO_T}$ac_res" >&6; }
9178else
9179  # Is the header compilable?
9180{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9182cat >conftest.$ac_ext <<_ACEOF
9183/* confdefs.h.  */
9184_ACEOF
9185cat confdefs.h >>conftest.$ac_ext
9186cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h.  */
9188$ac_includes_default
9189#include <$ac_header>
9190_ACEOF
9191rm -f conftest.$ac_objext
9192if { (ac_try="$ac_compile"
9193case "(($ac_try" in
9194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195  *) ac_try_echo=$ac_try;;
9196esac
9197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198  (eval "$ac_compile") 2>conftest.er1
9199  ac_status=$?
9200  grep -v '^ *+' conftest.er1 >conftest.err
9201  rm -f conftest.er1
9202  cat conftest.err >&5
9203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204  (exit $ac_status); } && {
9205	 test -z "$ac_c_werror_flag" ||
9206	 test ! -s conftest.err
9207       } && test -s conftest.$ac_objext; then
9208  ac_header_compiler=yes
9209else
9210  echo "$as_me: failed program was:" >&5
9211sed 's/^/| /' conftest.$ac_ext >&5
9212
9213	ac_header_compiler=no
9214fi
9215
9216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9218echo "${ECHO_T}$ac_header_compiler" >&6; }
9219
9220# Is the header present?
9221{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9223cat >conftest.$ac_ext <<_ACEOF
9224/* confdefs.h.  */
9225_ACEOF
9226cat confdefs.h >>conftest.$ac_ext
9227cat >>conftest.$ac_ext <<_ACEOF
9228/* end confdefs.h.  */
9229#include <$ac_header>
9230_ACEOF
9231if { (ac_try="$ac_cpp conftest.$ac_ext"
9232case "(($ac_try" in
9233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234  *) ac_try_echo=$ac_try;;
9235esac
9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9238  ac_status=$?
9239  grep -v '^ *+' conftest.er1 >conftest.err
9240  rm -f conftest.er1
9241  cat conftest.err >&5
9242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243  (exit $ac_status); } >/dev/null && {
9244	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9245	 test ! -s conftest.err
9246       }; then
9247  ac_header_preproc=yes
9248else
9249  echo "$as_me: failed program was:" >&5
9250sed 's/^/| /' conftest.$ac_ext >&5
9251
9252  ac_header_preproc=no
9253fi
9254
9255rm -f conftest.err conftest.$ac_ext
9256{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9257echo "${ECHO_T}$ac_header_preproc" >&6; }
9258
9259# So?  What about this header?
9260case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9261  yes:no: )
9262    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9263echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9264    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9265echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9266    ac_header_preproc=yes
9267    ;;
9268  no:yes:* )
9269    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9270echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9271    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9272echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9273    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9274echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9275    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9276echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9277    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9278echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9279    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9280echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9281    ( cat <<\_ASBOX
9282## ------------------------------------------------------------ ##
9283## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
9284## ------------------------------------------------------------ ##
9285_ASBOX
9286     ) | sed "s/^/$as_me: WARNING:     /" >&2
9287    ;;
9288esac
9289{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292  echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
9294  eval "$as_ac_Header=\$ac_header_preproc"
9295fi
9296ac_res=`eval echo '${'$as_ac_Header'}'`
9297	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9298echo "${ECHO_T}$ac_res" >&6; }
9299
9300fi
9301if test `eval echo '${'$as_ac_Header'}'` = yes; then
9302  cat >>confdefs.h <<_ACEOF
9303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9304_ACEOF
9305
9306fi
9307
9308done
9309
9310
9311for ac_func in getpagesize
9312do
9313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9314{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9317  echo $ECHO_N "(cached) $ECHO_C" >&6
9318else
9319  cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h.  */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h.  */
9325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9326   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9327#define $ac_func innocuous_$ac_func
9328
9329/* System header to define __stub macros and hopefully few prototypes,
9330    which can conflict with char $ac_func (); below.
9331    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9332    <limits.h> exists even on freestanding compilers.  */
9333
9334#ifdef __STDC__
9335# include <limits.h>
9336#else
9337# include <assert.h>
9338#endif
9339
9340#undef $ac_func
9341
9342/* Override any GCC internal prototype to avoid an error.
9343   Use char because int might match the return type of a GCC
9344   builtin and then its argument prototype would still apply.  */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char $ac_func ();
9349/* The GNU C library defines this for functions which it implements
9350    to always fail with ENOSYS.  Some functions are actually named
9351    something starting with __ and the normal name is an alias.  */
9352#if defined __stub_$ac_func || defined __stub___$ac_func
9353choke me
9354#endif
9355
9356int
9357main ()
9358{
9359return $ac_func ();
9360  ;
9361  return 0;
9362}
9363_ACEOF
9364rm -f conftest.$ac_objext conftest$ac_exeext
9365if { (ac_try="$ac_link"
9366case "(($ac_try" in
9367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368  *) ac_try_echo=$ac_try;;
9369esac
9370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371  (eval "$ac_link") 2>conftest.er1
9372  ac_status=$?
9373  grep -v '^ *+' conftest.er1 >conftest.err
9374  rm -f conftest.er1
9375  cat conftest.err >&5
9376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); } && {
9378	 test -z "$ac_c_werror_flag" ||
9379	 test ! -s conftest.err
9380       } && test -s conftest$ac_exeext &&
9381       $as_test_x conftest$ac_exeext; then
9382  eval "$as_ac_var=yes"
9383else
9384  echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387	eval "$as_ac_var=no"
9388fi
9389
9390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9391      conftest$ac_exeext conftest.$ac_ext
9392fi
9393ac_res=`eval echo '${'$as_ac_var'}'`
9394	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9395echo "${ECHO_T}$ac_res" >&6; }
9396if test `eval echo '${'$as_ac_var'}'` = yes; then
9397  cat >>confdefs.h <<_ACEOF
9398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9399_ACEOF
9400
9401fi
9402done
9403
9404{ echo "$as_me:$LINENO: checking for working mmap" >&5
9405echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9406if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9407  echo $ECHO_N "(cached) $ECHO_C" >&6
9408else
9409  if test "$cross_compiling" = yes; then
9410  ac_cv_func_mmap_fixed_mapped=no
9411else
9412  cat >conftest.$ac_ext <<_ACEOF
9413/* confdefs.h.  */
9414_ACEOF
9415cat confdefs.h >>conftest.$ac_ext
9416cat >>conftest.$ac_ext <<_ACEOF
9417/* end confdefs.h.  */
9418$ac_includes_default
9419/* malloc might have been renamed as rpl_malloc. */
9420#undef malloc
9421
9422/* Thanks to Mike Haertel and Jim Avera for this test.
9423   Here is a matrix of mmap possibilities:
9424	mmap private not fixed
9425	mmap private fixed at somewhere currently unmapped
9426	mmap private fixed at somewhere already mapped
9427	mmap shared not fixed
9428	mmap shared fixed at somewhere currently unmapped
9429	mmap shared fixed at somewhere already mapped
9430   For private mappings, we should verify that changes cannot be read()
9431   back from the file, nor mmap's back from the file at a different
9432   address.  (There have been systems where private was not correctly
9433   implemented like the infamous i386 svr4.0, and systems where the
9434   VM page cache was not coherent with the file system buffer cache
9435   like early versions of FreeBSD and possibly contemporary NetBSD.)
9436   For shared mappings, we should conversely verify that changes get
9437   propagated back to all the places they're supposed to be.
9438
9439   Grep wants private fixed already mapped.
9440   The main things grep needs to know about mmap are:
9441   * does it exist and is it safe to write into the mmap'd area
9442   * how to use it (BSD variants)  */
9443
9444#include <fcntl.h>
9445#include <sys/mman.h>
9446
9447#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9448char *malloc ();
9449#endif
9450
9451/* This mess was copied from the GNU getpagesize.h.  */
9452#ifndef HAVE_GETPAGESIZE
9453/* Assume that all systems that can run configure have sys/param.h.  */
9454# ifndef HAVE_SYS_PARAM_H
9455#  define HAVE_SYS_PARAM_H 1
9456# endif
9457
9458# ifdef _SC_PAGESIZE
9459#  define getpagesize() sysconf(_SC_PAGESIZE)
9460# else /* no _SC_PAGESIZE */
9461#  ifdef HAVE_SYS_PARAM_H
9462#   include <sys/param.h>
9463#   ifdef EXEC_PAGESIZE
9464#    define getpagesize() EXEC_PAGESIZE
9465#   else /* no EXEC_PAGESIZE */
9466#    ifdef NBPG
9467#     define getpagesize() NBPG * CLSIZE
9468#     ifndef CLSIZE
9469#      define CLSIZE 1
9470#     endif /* no CLSIZE */
9471#    else /* no NBPG */
9472#     ifdef NBPC
9473#      define getpagesize() NBPC
9474#     else /* no NBPC */
9475#      ifdef PAGESIZE
9476#       define getpagesize() PAGESIZE
9477#      endif /* PAGESIZE */
9478#     endif /* no NBPC */
9479#    endif /* no NBPG */
9480#   endif /* no EXEC_PAGESIZE */
9481#  else /* no HAVE_SYS_PARAM_H */
9482#   define getpagesize() 8192	/* punt totally */
9483#  endif /* no HAVE_SYS_PARAM_H */
9484# endif /* no _SC_PAGESIZE */
9485
9486#endif /* no HAVE_GETPAGESIZE */
9487
9488int
9489main ()
9490{
9491  char *data, *data2, *data3;
9492  int i, pagesize;
9493  int fd;
9494
9495  pagesize = getpagesize ();
9496
9497  /* First, make a file with some known garbage in it. */
9498  data = (char *) malloc (pagesize);
9499  if (!data)
9500    return 1;
9501  for (i = 0; i < pagesize; ++i)
9502    *(data + i) = rand ();
9503  umask (0);
9504  fd = creat ("conftest.mmap", 0600);
9505  if (fd < 0)
9506    return 1;
9507  if (write (fd, data, pagesize) != pagesize)
9508    return 1;
9509  close (fd);
9510
9511  /* Next, try to mmap the file at a fixed address which already has
9512     something else allocated at it.  If we can, also make sure that
9513     we see the same garbage.  */
9514  fd = open ("conftest.mmap", O_RDWR);
9515  if (fd < 0)
9516    return 1;
9517  data2 = (char *) malloc (2 * pagesize);
9518  if (!data2)
9519    return 1;
9520  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9521  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9522		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
9523    return 1;
9524  for (i = 0; i < pagesize; ++i)
9525    if (*(data + i) != *(data2 + i))
9526      return 1;
9527
9528  /* Finally, make sure that changes to the mapped area do not
9529     percolate back to the file as seen by read().  (This is a bug on
9530     some variants of i386 svr4.0.)  */
9531  for (i = 0; i < pagesize; ++i)
9532    *(data2 + i) = *(data2 + i) + 1;
9533  data3 = (char *) malloc (pagesize);
9534  if (!data3)
9535    return 1;
9536  if (read (fd, data3, pagesize) != pagesize)
9537    return 1;
9538  for (i = 0; i < pagesize; ++i)
9539    if (*(data + i) != *(data3 + i))
9540      return 1;
9541  close (fd);
9542  return 0;
9543}
9544_ACEOF
9545rm -f conftest$ac_exeext
9546if { (ac_try="$ac_link"
9547case "(($ac_try" in
9548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549  *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552  (eval "$ac_link") 2>&5
9553  ac_status=$?
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9556  { (case "(($ac_try" in
9557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558  *) ac_try_echo=$ac_try;;
9559esac
9560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561  (eval "$ac_try") 2>&5
9562  ac_status=$?
9563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564  (exit $ac_status); }; }; then
9565  ac_cv_func_mmap_fixed_mapped=yes
9566else
9567  echo "$as_me: program exited with status $ac_status" >&5
9568echo "$as_me: failed program was:" >&5
9569sed 's/^/| /' conftest.$ac_ext >&5
9570
9571( exit $ac_status )
9572ac_cv_func_mmap_fixed_mapped=no
9573fi
9574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9575fi
9576
9577
9578fi
9579{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9580echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9581if test $ac_cv_func_mmap_fixed_mapped = yes; then
9582
9583cat >>confdefs.h <<\_ACEOF
9584#define HAVE_MMAP 1
9585_ACEOF
9586
9587fi
9588rm -f conftest.mmap
9589
9590
9591    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9592echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9593if test "${ac_cv_gnu_library_2_1+set}" = set; then
9594  echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596  cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h.  */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h.  */
9602
9603#include <features.h>
9604#ifdef __GNU_LIBRARY__
9605 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9606  Lucky GNU user
9607 #endif
9608#endif
9609
9610_ACEOF
9611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9612  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9613  ac_cv_gnu_library_2_1=yes
9614else
9615  ac_cv_gnu_library_2_1=no
9616fi
9617rm -f conftest*
9618
9619
9620
9621fi
9622{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9623echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9624
9625    GLIBC21="$ac_cv_gnu_library_2_1"
9626
9627
9628
9629
9630  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9631echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9632if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9633  echo $ECHO_N "(cached) $ECHO_C" >&6
9634else
9635
9636      if test "$cross_compiling" = yes; then
9637
9638          # Guess based on the CPU.
9639          case "$host_cpu" in
9640            alpha* | i3456786 | m68k | s390*)
9641              gt_cv_int_divbyzero_sigfpe="guessing yes";;
9642            *)
9643              gt_cv_int_divbyzero_sigfpe="guessing no";;
9644          esac
9645
9646else
9647  cat >conftest.$ac_ext <<_ACEOF
9648/* confdefs.h.  */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h.  */
9653
9654#include <stdlib.h>
9655#include <signal.h>
9656
9657static void
9658#ifdef __cplusplus
9659sigfpe_handler (int sig)
9660#else
9661sigfpe_handler (sig) int sig;
9662#endif
9663{
9664  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9665  exit (sig != SIGFPE);
9666}
9667
9668int x = 1;
9669int y = 0;
9670int z;
9671int nan;
9672
9673int main ()
9674{
9675  signal (SIGFPE, sigfpe_handler);
9676/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9677#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9678  signal (SIGTRAP, sigfpe_handler);
9679#endif
9680/* Linux/SPARC yields signal SIGILL.  */
9681#if defined (__sparc__) && defined (__linux__)
9682  signal (SIGILL, sigfpe_handler);
9683#endif
9684
9685  z = x / y;
9686  nan = y / y;
9687  exit (1);
9688}
9689
9690_ACEOF
9691rm -f conftest$ac_exeext
9692if { (ac_try="$ac_link"
9693case "(($ac_try" in
9694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695  *) ac_try_echo=$ac_try;;
9696esac
9697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698  (eval "$ac_link") 2>&5
9699  ac_status=$?
9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9702  { (case "(($ac_try" in
9703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704  *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707  (eval "$ac_try") 2>&5
9708  ac_status=$?
9709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710  (exit $ac_status); }; }; then
9711  gt_cv_int_divbyzero_sigfpe=yes
9712else
9713  echo "$as_me: program exited with status $ac_status" >&5
9714echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717( exit $ac_status )
9718gt_cv_int_divbyzero_sigfpe=no
9719fi
9720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9721fi
9722
9723
9724
9725fi
9726{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9727echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9728  case "$gt_cv_int_divbyzero_sigfpe" in
9729    *yes) value=1;;
9730    *) value=0;;
9731  esac
9732
9733cat >>confdefs.h <<_ACEOF
9734#define INTDIV0_RAISES_SIGFPE $value
9735_ACEOF
9736
9737
9738
9739  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9740echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9741if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9742  echo $ECHO_N "(cached) $ECHO_C" >&6
9743else
9744  cat >conftest.$ac_ext <<_ACEOF
9745/* confdefs.h.  */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h.  */
9750unsigned long long ull = 1ULL; int i = 63;
9751int
9752main ()
9753{
9754unsigned long long ullmax = (unsigned long long) -1;
9755     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9756  ;
9757  return 0;
9758}
9759_ACEOF
9760rm -f conftest.$ac_objext conftest$ac_exeext
9761if { (ac_try="$ac_link"
9762case "(($ac_try" in
9763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764  *) ac_try_echo=$ac_try;;
9765esac
9766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767  (eval "$ac_link") 2>conftest.er1
9768  ac_status=$?
9769  grep -v '^ *+' conftest.er1 >conftest.err
9770  rm -f conftest.er1
9771  cat conftest.err >&5
9772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773  (exit $ac_status); } && {
9774	 test -z "$ac_c_werror_flag" ||
9775	 test ! -s conftest.err
9776       } && test -s conftest$ac_exeext &&
9777       $as_test_x conftest$ac_exeext; then
9778  ac_cv_type_unsigned_long_long=yes
9779else
9780  echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783	ac_cv_type_unsigned_long_long=no
9784fi
9785
9786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787      conftest$ac_exeext conftest.$ac_ext
9788fi
9789{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9790echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9791  if test $ac_cv_type_unsigned_long_long = yes; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define HAVE_UNSIGNED_LONG_LONG 1
9795_ACEOF
9796
9797  fi
9798
9799
9800
9801
9802  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9803
9804    test $ac_cv_type_unsigned_long_long = yes \
9805      && ac_type='unsigned long long' \
9806      || ac_type='unsigned long'
9807
9808cat >>confdefs.h <<_ACEOF
9809#define uintmax_t $ac_type
9810_ACEOF
9811
9812  else
9813
9814cat >>confdefs.h <<\_ACEOF
9815#define HAVE_UINTMAX_T 1
9816_ACEOF
9817
9818  fi
9819
9820
9821  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9822echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9823if test "${gt_cv_header_inttypes_h+set}" = set; then
9824  echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826
9827    cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h.  */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h.  */
9833#include <sys/types.h>
9834#include <inttypes.h>
9835int
9836main ()
9837{
9838
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext
9844if { (ac_try="$ac_compile"
9845case "(($ac_try" in
9846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847  *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850  (eval "$ac_compile") 2>conftest.er1
9851  ac_status=$?
9852  grep -v '^ *+' conftest.er1 >conftest.err
9853  rm -f conftest.er1
9854  cat conftest.err >&5
9855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856  (exit $ac_status); } && {
9857	 test -z "$ac_c_werror_flag" ||
9858	 test ! -s conftest.err
9859       } && test -s conftest.$ac_objext; then
9860  gt_cv_header_inttypes_h=yes
9861else
9862  echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865	gt_cv_header_inttypes_h=no
9866fi
9867
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869
9870fi
9871{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9872echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
9873  if test $gt_cv_header_inttypes_h = yes; then
9874
9875cat >>confdefs.h <<_ACEOF
9876#define HAVE_INTTYPES_H 1
9877_ACEOF
9878
9879  fi
9880
9881
9882
9883  if test $gt_cv_header_inttypes_h = yes; then
9884    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9885echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
9886if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9887  echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889
9890        cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h.  */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h.  */
9896#include <inttypes.h>
9897#ifdef PRId32
9898char *p = PRId32;
9899#endif
9900
9901int
9902main ()
9903{
9904
9905  ;
9906  return 0;
9907}
9908_ACEOF
9909rm -f conftest.$ac_objext
9910if { (ac_try="$ac_compile"
9911case "(($ac_try" in
9912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913  *) ac_try_echo=$ac_try;;
9914esac
9915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916  (eval "$ac_compile") 2>conftest.er1
9917  ac_status=$?
9918  grep -v '^ *+' conftest.er1 >conftest.err
9919  rm -f conftest.er1
9920  cat conftest.err >&5
9921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922  (exit $ac_status); } && {
9923	 test -z "$ac_c_werror_flag" ||
9924	 test ! -s conftest.err
9925       } && test -s conftest.$ac_objext; then
9926  gt_cv_inttypes_pri_broken=no
9927else
9928  echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931	gt_cv_inttypes_pri_broken=yes
9932fi
9933
9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935
9936fi
9937{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9938echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
9939  fi
9940  if test "$gt_cv_inttypes_pri_broken" = yes; then
9941
9942cat >>confdefs.h <<_ACEOF
9943#define PRI_MACROS_BROKEN 1
9944_ACEOF
9945
9946  fi
9947
9948
9949
9950for ac_header in stdint.h
9951do
9952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957  echo $ECHO_N "(cached) $ECHO_C" >&6
9958fi
9959ac_res=`eval echo '${'$as_ac_Header'}'`
9960	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9961echo "${ECHO_T}$ac_res" >&6; }
9962else
9963  # Is the header compilable?
9964{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9966cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972$ac_includes_default
9973#include <$ac_header>
9974_ACEOF
9975rm -f conftest.$ac_objext
9976if { (ac_try="$ac_compile"
9977case "(($ac_try" in
9978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979  *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982  (eval "$ac_compile") 2>conftest.er1
9983  ac_status=$?
9984  grep -v '^ *+' conftest.er1 >conftest.err
9985  rm -f conftest.er1
9986  cat conftest.err >&5
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); } && {
9989	 test -z "$ac_c_werror_flag" ||
9990	 test ! -s conftest.err
9991       } && test -s conftest.$ac_objext; then
9992  ac_header_compiler=yes
9993else
9994  echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997	ac_header_compiler=no
9998fi
9999
10000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10002echo "${ECHO_T}$ac_header_compiler" >&6; }
10003
10004# Is the header present?
10005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10007cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h.  */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h.  */
10013#include <$ac_header>
10014_ACEOF
10015if { (ac_try="$ac_cpp conftest.$ac_ext"
10016case "(($ac_try" in
10017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018  *) ac_try_echo=$ac_try;;
10019esac
10020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10022  ac_status=$?
10023  grep -v '^ *+' conftest.er1 >conftest.err
10024  rm -f conftest.er1
10025  cat conftest.err >&5
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); } >/dev/null && {
10028	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10029	 test ! -s conftest.err
10030       }; then
10031  ac_header_preproc=yes
10032else
10033  echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036  ac_header_preproc=no
10037fi
10038
10039rm -f conftest.err conftest.$ac_ext
10040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041echo "${ECHO_T}$ac_header_preproc" >&6; }
10042
10043# So?  What about this header?
10044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10045  yes:no: )
10046    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10050    ac_header_preproc=yes
10051    ;;
10052  no:yes:* )
10053    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10055    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10056echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10057    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10059    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10060echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10061    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10063    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10065    ( cat <<\_ASBOX
10066## ------------------------------------------------------------ ##
10067## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
10068## ------------------------------------------------------------ ##
10069_ASBOX
10070     ) | sed "s/^/$as_me: WARNING:     /" >&2
10071    ;;
10072esac
10073{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10076  echo $ECHO_N "(cached) $ECHO_C" >&6
10077else
10078  eval "$as_ac_Header=\$ac_header_preproc"
10079fi
10080ac_res=`eval echo '${'$as_ac_Header'}'`
10081	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10082echo "${ECHO_T}$ac_res" >&6; }
10083
10084fi
10085if test `eval echo '${'$as_ac_Header'}'` = yes; then
10086  cat >>confdefs.h <<_ACEOF
10087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10088_ACEOF
10089
10090fi
10091
10092done
10093
10094    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10095echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10096  result=
10097  cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h.  */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h.  */
10103
10104#include <limits.h>
10105#if HAVE_STDINT_H
10106#include <stdint.h>
10107#endif
10108#ifdef SIZE_MAX
10109Found it
10110#endif
10111
10112_ACEOF
10113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10114  $EGREP "Found it" >/dev/null 2>&1; then
10115  result=yes
10116fi
10117rm -f conftest*
10118
10119  if test -z "$result"; then
10120                    if test "$cross_compiling" = yes; then
10121  # Depending upon the size, compute the lo and hi bounds.
10122cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h.  */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h.  */
10128#include <stddef.h>
10129int
10130main ()
10131{
10132static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10133test_array [0] = 0
10134
10135  ;
10136  return 0;
10137}
10138_ACEOF
10139rm -f conftest.$ac_objext
10140if { (ac_try="$ac_compile"
10141case "(($ac_try" in
10142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143  *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146  (eval "$ac_compile") 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } && {
10153	 test -z "$ac_c_werror_flag" ||
10154	 test ! -s conftest.err
10155       } && test -s conftest.$ac_objext; then
10156  ac_lo=0 ac_mid=0
10157  while :; do
10158    cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164#include <stddef.h>
10165int
10166main ()
10167{
10168static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10169test_array [0] = 0
10170
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext
10176if { (ac_try="$ac_compile"
10177case "(($ac_try" in
10178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179  *) ac_try_echo=$ac_try;;
10180esac
10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182  (eval "$ac_compile") 2>conftest.er1
10183  ac_status=$?
10184  grep -v '^ *+' conftest.er1 >conftest.err
10185  rm -f conftest.er1
10186  cat conftest.err >&5
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); } && {
10189	 test -z "$ac_c_werror_flag" ||
10190	 test ! -s conftest.err
10191       } && test -s conftest.$ac_objext; then
10192  ac_hi=$ac_mid; break
10193else
10194  echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197	ac_lo=`expr $ac_mid + 1`
10198			if test $ac_lo -le $ac_mid; then
10199			  ac_lo= ac_hi=
10200			  break
10201			fi
10202			ac_mid=`expr 2 '*' $ac_mid + 1`
10203fi
10204
10205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206  done
10207else
10208  echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
10211	cat >conftest.$ac_ext <<_ACEOF
10212/* confdefs.h.  */
10213_ACEOF
10214cat confdefs.h >>conftest.$ac_ext
10215cat >>conftest.$ac_ext <<_ACEOF
10216/* end confdefs.h.  */
10217#include <stddef.h>
10218int
10219main ()
10220{
10221static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10222test_array [0] = 0
10223
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext
10229if { (ac_try="$ac_compile"
10230case "(($ac_try" in
10231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232  *) ac_try_echo=$ac_try;;
10233esac
10234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235  (eval "$ac_compile") 2>conftest.er1
10236  ac_status=$?
10237  grep -v '^ *+' conftest.er1 >conftest.err
10238  rm -f conftest.er1
10239  cat conftest.err >&5
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); } && {
10242	 test -z "$ac_c_werror_flag" ||
10243	 test ! -s conftest.err
10244       } && test -s conftest.$ac_objext; then
10245  ac_hi=-1 ac_mid=-1
10246  while :; do
10247    cat >conftest.$ac_ext <<_ACEOF
10248/* confdefs.h.  */
10249_ACEOF
10250cat confdefs.h >>conftest.$ac_ext
10251cat >>conftest.$ac_ext <<_ACEOF
10252/* end confdefs.h.  */
10253#include <stddef.h>
10254int
10255main ()
10256{
10257static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10258test_array [0] = 0
10259
10260  ;
10261  return 0;
10262}
10263_ACEOF
10264rm -f conftest.$ac_objext
10265if { (ac_try="$ac_compile"
10266case "(($ac_try" in
10267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268  *) ac_try_echo=$ac_try;;
10269esac
10270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271  (eval "$ac_compile") 2>conftest.er1
10272  ac_status=$?
10273  grep -v '^ *+' conftest.er1 >conftest.err
10274  rm -f conftest.er1
10275  cat conftest.err >&5
10276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277  (exit $ac_status); } && {
10278	 test -z "$ac_c_werror_flag" ||
10279	 test ! -s conftest.err
10280       } && test -s conftest.$ac_objext; then
10281  ac_lo=$ac_mid; break
10282else
10283  echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286	ac_hi=`expr '(' $ac_mid ')' - 1`
10287			if test $ac_mid -le $ac_hi; then
10288			  ac_lo= ac_hi=
10289			  break
10290			fi
10291			ac_mid=`expr 2 '*' $ac_mid`
10292fi
10293
10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10295  done
10296else
10297  echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300	ac_lo= ac_hi=
10301fi
10302
10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304fi
10305
10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307# Binary search between lo and hi bounds.
10308while test "x$ac_lo" != "x$ac_hi"; do
10309  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10310  cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h.  */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h.  */
10316#include <stddef.h>
10317int
10318main ()
10319{
10320static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10321test_array [0] = 0
10322
10323  ;
10324  return 0;
10325}
10326_ACEOF
10327rm -f conftest.$ac_objext
10328if { (ac_try="$ac_compile"
10329case "(($ac_try" in
10330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331  *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334  (eval "$ac_compile") 2>conftest.er1
10335  ac_status=$?
10336  grep -v '^ *+' conftest.er1 >conftest.err
10337  rm -f conftest.er1
10338  cat conftest.err >&5
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); } && {
10341	 test -z "$ac_c_werror_flag" ||
10342	 test ! -s conftest.err
10343       } && test -s conftest.$ac_objext; then
10344  ac_hi=$ac_mid
10345else
10346  echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349	ac_lo=`expr '(' $ac_mid ')' + 1`
10350fi
10351
10352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353done
10354case $ac_lo in
10355?*) res_hi=$ac_lo;;
10356'') result=? ;;
10357esac
10358else
10359  cat >conftest.$ac_ext <<_ACEOF
10360/* confdefs.h.  */
10361_ACEOF
10362cat confdefs.h >>conftest.$ac_ext
10363cat >>conftest.$ac_ext <<_ACEOF
10364/* end confdefs.h.  */
10365#include <stddef.h>
10366static long int longval () { return ~(size_t)0 / 10; }
10367static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10368#include <stdio.h>
10369#include <stdlib.h>
10370int
10371main ()
10372{
10373
10374  FILE *f = fopen ("conftest.val", "w");
10375  if (! f)
10376    return 1;
10377  if ((~(size_t)0 / 10) < 0)
10378    {
10379      long int i = longval ();
10380      if (i != (~(size_t)0 / 10))
10381	return 1;
10382      fprintf (f, "%ld\n", i);
10383    }
10384  else
10385    {
10386      unsigned long int i = ulongval ();
10387      if (i != (~(size_t)0 / 10))
10388	return 1;
10389      fprintf (f, "%lu\n", i);
10390    }
10391  return ferror (f) || fclose (f) != 0;
10392
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397rm -f conftest$ac_exeext
10398if { (ac_try="$ac_link"
10399case "(($ac_try" in
10400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401  *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404  (eval "$ac_link") 2>&5
10405  ac_status=$?
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10408  { (case "(($ac_try" in
10409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410  *) ac_try_echo=$ac_try;;
10411esac
10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413  (eval "$ac_try") 2>&5
10414  ac_status=$?
10415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416  (exit $ac_status); }; }; then
10417  res_hi=`cat conftest.val`
10418else
10419  echo "$as_me: program exited with status $ac_status" >&5
10420echo "$as_me: failed program was:" >&5
10421sed 's/^/| /' conftest.$ac_ext >&5
10422
10423( exit $ac_status )
10424result=?
10425fi
10426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10427fi
10428rm -f conftest.val
10429
10430    if test "$cross_compiling" = yes; then
10431  # Depending upon the size, compute the lo and hi bounds.
10432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h.  */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h.  */
10438#include <stddef.h>
10439int
10440main ()
10441{
10442static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10443test_array [0] = 0
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext
10450if { (ac_try="$ac_compile"
10451case "(($ac_try" in
10452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453  *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456  (eval "$ac_compile") 2>conftest.er1
10457  ac_status=$?
10458  grep -v '^ *+' conftest.er1 >conftest.err
10459  rm -f conftest.er1
10460  cat conftest.err >&5
10461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); } && {
10463	 test -z "$ac_c_werror_flag" ||
10464	 test ! -s conftest.err
10465       } && test -s conftest.$ac_objext; then
10466  ac_lo=0 ac_mid=0
10467  while :; do
10468    cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h.  */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h.  */
10474#include <stddef.h>
10475int
10476main ()
10477{
10478static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10479test_array [0] = 0
10480
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485rm -f conftest.$ac_objext
10486if { (ac_try="$ac_compile"
10487case "(($ac_try" in
10488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489  *) ac_try_echo=$ac_try;;
10490esac
10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492  (eval "$ac_compile") 2>conftest.er1
10493  ac_status=$?
10494  grep -v '^ *+' conftest.er1 >conftest.err
10495  rm -f conftest.er1
10496  cat conftest.err >&5
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); } && {
10499	 test -z "$ac_c_werror_flag" ||
10500	 test ! -s conftest.err
10501       } && test -s conftest.$ac_objext; then
10502  ac_hi=$ac_mid; break
10503else
10504  echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507	ac_lo=`expr $ac_mid + 1`
10508			if test $ac_lo -le $ac_mid; then
10509			  ac_lo= ac_hi=
10510			  break
10511			fi
10512			ac_mid=`expr 2 '*' $ac_mid + 1`
10513fi
10514
10515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516  done
10517else
10518  echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
10521	cat >conftest.$ac_ext <<_ACEOF
10522/* confdefs.h.  */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h.  */
10527#include <stddef.h>
10528int
10529main ()
10530{
10531static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10532test_array [0] = 0
10533
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538rm -f conftest.$ac_objext
10539if { (ac_try="$ac_compile"
10540case "(($ac_try" in
10541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542  *) ac_try_echo=$ac_try;;
10543esac
10544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545  (eval "$ac_compile") 2>conftest.er1
10546  ac_status=$?
10547  grep -v '^ *+' conftest.er1 >conftest.err
10548  rm -f conftest.er1
10549  cat conftest.err >&5
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); } && {
10552	 test -z "$ac_c_werror_flag" ||
10553	 test ! -s conftest.err
10554       } && test -s conftest.$ac_objext; then
10555  ac_hi=-1 ac_mid=-1
10556  while :; do
10557    cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h.  */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h.  */
10563#include <stddef.h>
10564int
10565main ()
10566{
10567static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10568test_array [0] = 0
10569
10570  ;
10571  return 0;
10572}
10573_ACEOF
10574rm -f conftest.$ac_objext
10575if { (ac_try="$ac_compile"
10576case "(($ac_try" in
10577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578  *) ac_try_echo=$ac_try;;
10579esac
10580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581  (eval "$ac_compile") 2>conftest.er1
10582  ac_status=$?
10583  grep -v '^ *+' conftest.er1 >conftest.err
10584  rm -f conftest.er1
10585  cat conftest.err >&5
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); } && {
10588	 test -z "$ac_c_werror_flag" ||
10589	 test ! -s conftest.err
10590       } && test -s conftest.$ac_objext; then
10591  ac_lo=$ac_mid; break
10592else
10593  echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596	ac_hi=`expr '(' $ac_mid ')' - 1`
10597			if test $ac_mid -le $ac_hi; then
10598			  ac_lo= ac_hi=
10599			  break
10600			fi
10601			ac_mid=`expr 2 '*' $ac_mid`
10602fi
10603
10604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605  done
10606else
10607  echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610	ac_lo= ac_hi=
10611fi
10612
10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614fi
10615
10616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617# Binary search between lo and hi bounds.
10618while test "x$ac_lo" != "x$ac_hi"; do
10619  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10620  cat >conftest.$ac_ext <<_ACEOF
10621/* confdefs.h.  */
10622_ACEOF
10623cat confdefs.h >>conftest.$ac_ext
10624cat >>conftest.$ac_ext <<_ACEOF
10625/* end confdefs.h.  */
10626#include <stddef.h>
10627int
10628main ()
10629{
10630static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10631test_array [0] = 0
10632
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637rm -f conftest.$ac_objext
10638if { (ac_try="$ac_compile"
10639case "(($ac_try" in
10640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641  *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644  (eval "$ac_compile") 2>conftest.er1
10645  ac_status=$?
10646  grep -v '^ *+' conftest.er1 >conftest.err
10647  rm -f conftest.er1
10648  cat conftest.err >&5
10649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650  (exit $ac_status); } && {
10651	 test -z "$ac_c_werror_flag" ||
10652	 test ! -s conftest.err
10653       } && test -s conftest.$ac_objext; then
10654  ac_hi=$ac_mid
10655else
10656  echo "$as_me: failed program was:" >&5
10657sed 's/^/| /' conftest.$ac_ext >&5
10658
10659	ac_lo=`expr '(' $ac_mid ')' + 1`
10660fi
10661
10662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663done
10664case $ac_lo in
10665?*) res_lo=$ac_lo;;
10666'') result=? ;;
10667esac
10668else
10669  cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h.  */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h.  */
10675#include <stddef.h>
10676static long int longval () { return ~(size_t)0 % 10; }
10677static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10678#include <stdio.h>
10679#include <stdlib.h>
10680int
10681main ()
10682{
10683
10684  FILE *f = fopen ("conftest.val", "w");
10685  if (! f)
10686    return 1;
10687  if ((~(size_t)0 % 10) < 0)
10688    {
10689      long int i = longval ();
10690      if (i != (~(size_t)0 % 10))
10691	return 1;
10692      fprintf (f, "%ld\n", i);
10693    }
10694  else
10695    {
10696      unsigned long int i = ulongval ();
10697      if (i != (~(size_t)0 % 10))
10698	return 1;
10699      fprintf (f, "%lu\n", i);
10700    }
10701  return ferror (f) || fclose (f) != 0;
10702
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707rm -f conftest$ac_exeext
10708if { (ac_try="$ac_link"
10709case "(($ac_try" in
10710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711  *) ac_try_echo=$ac_try;;
10712esac
10713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714  (eval "$ac_link") 2>&5
10715  ac_status=$?
10716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10718  { (case "(($ac_try" in
10719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720  *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723  (eval "$ac_try") 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); }; }; then
10727  res_lo=`cat conftest.val`
10728else
10729  echo "$as_me: program exited with status $ac_status" >&5
10730echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733( exit $ac_status )
10734result=?
10735fi
10736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10737fi
10738rm -f conftest.val
10739
10740    if test "$cross_compiling" = yes; then
10741  # Depending upon the size, compute the lo and hi bounds.
10742cat >conftest.$ac_ext <<_ACEOF
10743/* confdefs.h.  */
10744_ACEOF
10745cat confdefs.h >>conftest.$ac_ext
10746cat >>conftest.$ac_ext <<_ACEOF
10747/* end confdefs.h.  */
10748#include <stddef.h>
10749int
10750main ()
10751{
10752static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10753test_array [0] = 0
10754
10755  ;
10756  return 0;
10757}
10758_ACEOF
10759rm -f conftest.$ac_objext
10760if { (ac_try="$ac_compile"
10761case "(($ac_try" in
10762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763  *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766  (eval "$ac_compile") 2>conftest.er1
10767  ac_status=$?
10768  grep -v '^ *+' conftest.er1 >conftest.err
10769  rm -f conftest.er1
10770  cat conftest.err >&5
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); } && {
10773	 test -z "$ac_c_werror_flag" ||
10774	 test ! -s conftest.err
10775       } && test -s conftest.$ac_objext; then
10776  ac_lo=0 ac_mid=0
10777  while :; do
10778    cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h.  */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h.  */
10784#include <stddef.h>
10785int
10786main ()
10787{
10788static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10789test_array [0] = 0
10790
10791  ;
10792  return 0;
10793}
10794_ACEOF
10795rm -f conftest.$ac_objext
10796if { (ac_try="$ac_compile"
10797case "(($ac_try" in
10798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799  *) ac_try_echo=$ac_try;;
10800esac
10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802  (eval "$ac_compile") 2>conftest.er1
10803  ac_status=$?
10804  grep -v '^ *+' conftest.er1 >conftest.err
10805  rm -f conftest.er1
10806  cat conftest.err >&5
10807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808  (exit $ac_status); } && {
10809	 test -z "$ac_c_werror_flag" ||
10810	 test ! -s conftest.err
10811       } && test -s conftest.$ac_objext; then
10812  ac_hi=$ac_mid; break
10813else
10814  echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817	ac_lo=`expr $ac_mid + 1`
10818			if test $ac_lo -le $ac_mid; then
10819			  ac_lo= ac_hi=
10820			  break
10821			fi
10822			ac_mid=`expr 2 '*' $ac_mid + 1`
10823fi
10824
10825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826  done
10827else
10828  echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
10830
10831	cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h.  */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h.  */
10837#include <stddef.h>
10838int
10839main ()
10840{
10841static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10842test_array [0] = 0
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848rm -f conftest.$ac_objext
10849if { (ac_try="$ac_compile"
10850case "(($ac_try" in
10851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852  *) ac_try_echo=$ac_try;;
10853esac
10854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855  (eval "$ac_compile") 2>conftest.er1
10856  ac_status=$?
10857  grep -v '^ *+' conftest.er1 >conftest.err
10858  rm -f conftest.er1
10859  cat conftest.err >&5
10860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861  (exit $ac_status); } && {
10862	 test -z "$ac_c_werror_flag" ||
10863	 test ! -s conftest.err
10864       } && test -s conftest.$ac_objext; then
10865  ac_hi=-1 ac_mid=-1
10866  while :; do
10867    cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h.  */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h.  */
10873#include <stddef.h>
10874int
10875main ()
10876{
10877static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10878test_array [0] = 0
10879
10880  ;
10881  return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (ac_try="$ac_compile"
10886case "(($ac_try" in
10887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888  *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891  (eval "$ac_compile") 2>conftest.er1
10892  ac_status=$?
10893  grep -v '^ *+' conftest.er1 >conftest.err
10894  rm -f conftest.er1
10895  cat conftest.err >&5
10896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897  (exit $ac_status); } && {
10898	 test -z "$ac_c_werror_flag" ||
10899	 test ! -s conftest.err
10900       } && test -s conftest.$ac_objext; then
10901  ac_lo=$ac_mid; break
10902else
10903  echo "$as_me: failed program was:" >&5
10904sed 's/^/| /' conftest.$ac_ext >&5
10905
10906	ac_hi=`expr '(' $ac_mid ')' - 1`
10907			if test $ac_mid -le $ac_hi; then
10908			  ac_lo= ac_hi=
10909			  break
10910			fi
10911			ac_mid=`expr 2 '*' $ac_mid`
10912fi
10913
10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915  done
10916else
10917  echo "$as_me: failed program was:" >&5
10918sed 's/^/| /' conftest.$ac_ext >&5
10919
10920	ac_lo= ac_hi=
10921fi
10922
10923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924fi
10925
10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927# Binary search between lo and hi bounds.
10928while test "x$ac_lo" != "x$ac_hi"; do
10929  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10930  cat >conftest.$ac_ext <<_ACEOF
10931/* confdefs.h.  */
10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h.  */
10936#include <stddef.h>
10937int
10938main ()
10939{
10940static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10941test_array [0] = 0
10942
10943  ;
10944  return 0;
10945}
10946_ACEOF
10947rm -f conftest.$ac_objext
10948if { (ac_try="$ac_compile"
10949case "(($ac_try" in
10950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951  *) ac_try_echo=$ac_try;;
10952esac
10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954  (eval "$ac_compile") 2>conftest.er1
10955  ac_status=$?
10956  grep -v '^ *+' conftest.er1 >conftest.err
10957  rm -f conftest.er1
10958  cat conftest.err >&5
10959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960  (exit $ac_status); } && {
10961	 test -z "$ac_c_werror_flag" ||
10962	 test ! -s conftest.err
10963       } && test -s conftest.$ac_objext; then
10964  ac_hi=$ac_mid
10965else
10966  echo "$as_me: failed program was:" >&5
10967sed 's/^/| /' conftest.$ac_ext >&5
10968
10969	ac_lo=`expr '(' $ac_mid ')' + 1`
10970fi
10971
10972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973done
10974case $ac_lo in
10975?*) fits_in_uint=$ac_lo;;
10976'') result=? ;;
10977esac
10978else
10979  cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h.  */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h.  */
10985#include <stddef.h>
10986static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10987static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10988#include <stdio.h>
10989#include <stdlib.h>
10990int
10991main ()
10992{
10993
10994  FILE *f = fopen ("conftest.val", "w");
10995  if (! f)
10996    return 1;
10997  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10998    {
10999      long int i = longval ();
11000      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11001	return 1;
11002      fprintf (f, "%ld\n", i);
11003    }
11004  else
11005    {
11006      unsigned long int i = ulongval ();
11007      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11008	return 1;
11009      fprintf (f, "%lu\n", i);
11010    }
11011  return ferror (f) || fclose (f) != 0;
11012
11013  ;
11014  return 0;
11015}
11016_ACEOF
11017rm -f conftest$ac_exeext
11018if { (ac_try="$ac_link"
11019case "(($ac_try" in
11020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021  *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024  (eval "$ac_link") 2>&5
11025  ac_status=$?
11026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11028  { (case "(($ac_try" in
11029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030  *) ac_try_echo=$ac_try;;
11031esac
11032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033  (eval "$ac_try") 2>&5
11034  ac_status=$?
11035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036  (exit $ac_status); }; }; then
11037  fits_in_uint=`cat conftest.val`
11038else
11039  echo "$as_me: program exited with status $ac_status" >&5
11040echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
11043( exit $ac_status )
11044result=?
11045fi
11046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11047fi
11048rm -f conftest.val
11049
11050    if test "$fits_in_uint" = 1; then
11051                  cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h.  */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h.  */
11057#include <stddef.h>
11058        extern size_t foo;
11059        extern unsigned long foo;
11060
11061int
11062main ()
11063{
11064
11065  ;
11066  return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext
11070if { (ac_try="$ac_compile"
11071case "(($ac_try" in
11072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073  *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076  (eval "$ac_compile") 2>conftest.er1
11077  ac_status=$?
11078  grep -v '^ *+' conftest.er1 >conftest.err
11079  rm -f conftest.er1
11080  cat conftest.err >&5
11081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082  (exit $ac_status); } && {
11083	 test -z "$ac_c_werror_flag" ||
11084	 test ! -s conftest.err
11085       } && test -s conftest.$ac_objext; then
11086  fits_in_uint=0
11087else
11088  echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
11091
11092fi
11093
11094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095    fi
11096    if test -z "$result"; then
11097      if test "$fits_in_uint" = 1; then
11098        result="$res_hi$res_lo"U
11099      else
11100        result="$res_hi$res_lo"UL
11101      fi
11102    else
11103            result='~(size_t)0'
11104    fi
11105  fi
11106  { echo "$as_me:$LINENO: result: $result" >&5
11107echo "${ECHO_T}$result" >&6; }
11108  if test "$result" != yes; then
11109
11110cat >>confdefs.h <<_ACEOF
11111#define SIZE_MAX $result
11112_ACEOF
11113
11114  fi
11115
11116
11117
11118
11119for ac_header in stdint.h
11120do
11121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126  echo $ECHO_N "(cached) $ECHO_C" >&6
11127fi
11128ac_res=`eval echo '${'$as_ac_Header'}'`
11129	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11130echo "${ECHO_T}$ac_res" >&6; }
11131else
11132  # Is the header compilable?
11133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11135cat >conftest.$ac_ext <<_ACEOF
11136/* confdefs.h.  */
11137_ACEOF
11138cat confdefs.h >>conftest.$ac_ext
11139cat >>conftest.$ac_ext <<_ACEOF
11140/* end confdefs.h.  */
11141$ac_includes_default
11142#include <$ac_header>
11143_ACEOF
11144rm -f conftest.$ac_objext
11145if { (ac_try="$ac_compile"
11146case "(($ac_try" in
11147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148  *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151  (eval "$ac_compile") 2>conftest.er1
11152  ac_status=$?
11153  grep -v '^ *+' conftest.er1 >conftest.err
11154  rm -f conftest.er1
11155  cat conftest.err >&5
11156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157  (exit $ac_status); } && {
11158	 test -z "$ac_c_werror_flag" ||
11159	 test ! -s conftest.err
11160       } && test -s conftest.$ac_objext; then
11161  ac_header_compiler=yes
11162else
11163  echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
11166	ac_header_compiler=no
11167fi
11168
11169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11171echo "${ECHO_T}$ac_header_compiler" >&6; }
11172
11173# Is the header present?
11174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11176cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h.  */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
11181/* end confdefs.h.  */
11182#include <$ac_header>
11183_ACEOF
11184if { (ac_try="$ac_cpp conftest.$ac_ext"
11185case "(($ac_try" in
11186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187  *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11191  ac_status=$?
11192  grep -v '^ *+' conftest.er1 >conftest.err
11193  rm -f conftest.er1
11194  cat conftest.err >&5
11195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196  (exit $ac_status); } >/dev/null && {
11197	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11198	 test ! -s conftest.err
11199       }; then
11200  ac_header_preproc=yes
11201else
11202  echo "$as_me: failed program was:" >&5
11203sed 's/^/| /' conftest.$ac_ext >&5
11204
11205  ac_header_preproc=no
11206fi
11207
11208rm -f conftest.err conftest.$ac_ext
11209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11210echo "${ECHO_T}$ac_header_preproc" >&6; }
11211
11212# So?  What about this header?
11213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11214  yes:no: )
11215    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11219    ac_header_preproc=yes
11220    ;;
11221  no:yes:* )
11222    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11224    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11228    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11229echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11232    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11234    ( cat <<\_ASBOX
11235## ------------------------------------------------------------ ##
11236## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
11237## ------------------------------------------------------------ ##
11238_ASBOX
11239     ) | sed "s/^/$as_me: WARNING:     /" >&2
11240    ;;
11241esac
11242{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245  echo $ECHO_N "(cached) $ECHO_C" >&6
11246else
11247  eval "$as_ac_Header=\$ac_header_preproc"
11248fi
11249ac_res=`eval echo '${'$as_ac_Header'}'`
11250	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11251echo "${ECHO_T}$ac_res" >&6; }
11252
11253fi
11254if test `eval echo '${'$as_ac_Header'}'` = yes; then
11255  cat >>confdefs.h <<_ACEOF
11256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11257_ACEOF
11258
11259fi
11260
11261done
11262
11263
11264
11265      if test "X$prefix" = "XNONE"; then
11266    acl_final_prefix="$ac_default_prefix"
11267  else
11268    acl_final_prefix="$prefix"
11269  fi
11270  if test "X$exec_prefix" = "XNONE"; then
11271    acl_final_exec_prefix='${prefix}'
11272  else
11273    acl_final_exec_prefix="$exec_prefix"
11274  fi
11275  acl_save_prefix="$prefix"
11276  prefix="$acl_final_prefix"
11277  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11278  prefix="$acl_save_prefix"
11279
11280
11281# Check whether --with-gnu-ld was given.
11282if test "${with_gnu_ld+set}" = set; then
11283  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11284else
11285  with_gnu_ld=no
11286fi
11287
11288# Prepare PATH_SEPARATOR.
11289# The user is always right.
11290if test "${PATH_SEPARATOR+set}" != set; then
11291  echo "#! /bin/sh" >conf$$.sh
11292  echo  "exit 0"   >>conf$$.sh
11293  chmod +x conf$$.sh
11294  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11295    PATH_SEPARATOR=';'
11296  else
11297    PATH_SEPARATOR=:
11298  fi
11299  rm -f conf$$.sh
11300fi
11301ac_prog=ld
11302if test "$GCC" = yes; then
11303  # Check if gcc -print-prog-name=ld gives a path.
11304  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11305echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11306  case $host in
11307  *-*-mingw*)
11308    # gcc leaves a trailing carriage return which upsets mingw
11309    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11310  *)
11311    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11312  esac
11313  case $ac_prog in
11314    # Accept absolute paths.
11315    [\\/]* | [A-Za-z]:[\\/]*)
11316      re_direlt='/[^/][^/]*/\.\./'
11317      # Canonicalize the path of ld
11318      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11319      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11320	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11321      done
11322      test -z "$LD" && LD="$ac_prog"
11323      ;;
11324  "")
11325    # If it fails, then pretend we aren't using GCC.
11326    ac_prog=ld
11327    ;;
11328  *)
11329    # If it is relative, then search for the first ld in PATH.
11330    with_gnu_ld=unknown
11331    ;;
11332  esac
11333elif test "$with_gnu_ld" = yes; then
11334  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11335echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11336else
11337  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11338echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11339fi
11340if test "${acl_cv_path_LD+set}" = set; then
11341  echo $ECHO_N "(cached) $ECHO_C" >&6
11342else
11343  if test -z "$LD"; then
11344  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11345  for ac_dir in $PATH; do
11346    test -z "$ac_dir" && ac_dir=.
11347    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348      acl_cv_path_LD="$ac_dir/$ac_prog"
11349      # Check to see if the program is GNU ld.  I'd rather use --version,
11350      # but apparently some GNU ld's only accept -v.
11351      # Break only if it was the GNU/non-GNU ld that we prefer.
11352      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11353      *GNU* | *'with BFD'*)
11354	test "$with_gnu_ld" != no && break ;;
11355      *)
11356	test "$with_gnu_ld" != yes && break ;;
11357      esac
11358    fi
11359  done
11360  IFS="$ac_save_ifs"
11361else
11362  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11363fi
11364fi
11365
11366LD="$acl_cv_path_LD"
11367if test -n "$LD"; then
11368  { echo "$as_me:$LINENO: result: $LD" >&5
11369echo "${ECHO_T}$LD" >&6; }
11370else
11371  { echo "$as_me:$LINENO: result: no" >&5
11372echo "${ECHO_T}no" >&6; }
11373fi
11374test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11375echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11376   { (exit 1); exit 1; }; }
11377{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11378echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11379if test "${acl_cv_prog_gnu_ld+set}" = set; then
11380  echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11383case `$LD -v 2>&1 </dev/null` in
11384*GNU* | *'with BFD'*)
11385  acl_cv_prog_gnu_ld=yes ;;
11386*)
11387  acl_cv_prog_gnu_ld=no ;;
11388esac
11389fi
11390{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11391echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11392with_gnu_ld=$acl_cv_prog_gnu_ld
11393
11394
11395
11396                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11397echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11398if test "${acl_cv_rpath+set}" = set; then
11399  echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401
11402    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11403    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11404    . ./conftest.sh
11405    rm -f ./conftest.sh
11406    acl_cv_rpath=done
11407
11408fi
11409{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11410echo "${ECHO_T}$acl_cv_rpath" >&6; }
11411  wl="$acl_cv_wl"
11412  libext="$acl_cv_libext"
11413  shlibext="$acl_cv_shlibext"
11414  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11415  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11416  hardcode_direct="$acl_cv_hardcode_direct"
11417  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11418    # Check whether --enable-rpath was given.
11419if test "${enable_rpath+set}" = set; then
11420  enableval=$enable_rpath; :
11421else
11422  enable_rpath=yes
11423fi
11424
11425
11426
11427
11428
11429
11430
11431
11432    use_additional=yes
11433
11434  acl_save_prefix="$prefix"
11435  prefix="$acl_final_prefix"
11436  acl_save_exec_prefix="$exec_prefix"
11437  exec_prefix="$acl_final_exec_prefix"
11438
11439    eval additional_includedir=\"$includedir\"
11440    eval additional_libdir=\"$libdir\"
11441
11442  exec_prefix="$acl_save_exec_prefix"
11443  prefix="$acl_save_prefix"
11444
11445
11446# Check whether --with-libiconv-prefix was given.
11447if test "${with_libiconv_prefix+set}" = set; then
11448  withval=$with_libiconv_prefix;
11449    if test "X$withval" = "Xno"; then
11450      use_additional=no
11451    else
11452      if test "X$withval" = "X"; then
11453
11454  acl_save_prefix="$prefix"
11455  prefix="$acl_final_prefix"
11456  acl_save_exec_prefix="$exec_prefix"
11457  exec_prefix="$acl_final_exec_prefix"
11458
11459          eval additional_includedir=\"$includedir\"
11460          eval additional_libdir=\"$libdir\"
11461
11462  exec_prefix="$acl_save_exec_prefix"
11463  prefix="$acl_save_prefix"
11464
11465      else
11466        additional_includedir="$withval/include"
11467        additional_libdir="$withval/lib"
11468      fi
11469    fi
11470
11471fi
11472
11473      LIBICONV=
11474  LTLIBICONV=
11475  INCICONV=
11476  rpathdirs=
11477  ltrpathdirs=
11478  names_already_handled=
11479  names_next_round='iconv '
11480  while test -n "$names_next_round"; do
11481    names_this_round="$names_next_round"
11482    names_next_round=
11483    for name in $names_this_round; do
11484      already_handled=
11485      for n in $names_already_handled; do
11486        if test "$n" = "$name"; then
11487          already_handled=yes
11488          break
11489        fi
11490      done
11491      if test -z "$already_handled"; then
11492        names_already_handled="$names_already_handled $name"
11493                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11494        eval value=\"\$HAVE_LIB$uppername\"
11495        if test -n "$value"; then
11496          if test "$value" = yes; then
11497            eval value=\"\$LIB$uppername\"
11498            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11499            eval value=\"\$LTLIB$uppername\"
11500            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11501          else
11502                                    :
11503          fi
11504        else
11505                              found_dir=
11506          found_la=
11507          found_so=
11508          found_a=
11509          if test $use_additional = yes; then
11510            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11511              found_dir="$additional_libdir"
11512              found_so="$additional_libdir/lib$name.$shlibext"
11513              if test -f "$additional_libdir/lib$name.la"; then
11514                found_la="$additional_libdir/lib$name.la"
11515              fi
11516            else
11517              if test -f "$additional_libdir/lib$name.$libext"; then
11518                found_dir="$additional_libdir"
11519                found_a="$additional_libdir/lib$name.$libext"
11520                if test -f "$additional_libdir/lib$name.la"; then
11521                  found_la="$additional_libdir/lib$name.la"
11522                fi
11523              fi
11524            fi
11525          fi
11526          if test "X$found_dir" = "X"; then
11527            for x in $LDFLAGS $LTLIBICONV; do
11528
11529  acl_save_prefix="$prefix"
11530  prefix="$acl_final_prefix"
11531  acl_save_exec_prefix="$exec_prefix"
11532  exec_prefix="$acl_final_exec_prefix"
11533  eval x=\"$x\"
11534  exec_prefix="$acl_save_exec_prefix"
11535  prefix="$acl_save_prefix"
11536
11537              case "$x" in
11538                -L*)
11539                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11540                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11541                    found_dir="$dir"
11542                    found_so="$dir/lib$name.$shlibext"
11543                    if test -f "$dir/lib$name.la"; then
11544                      found_la="$dir/lib$name.la"
11545                    fi
11546                  else
11547                    if test -f "$dir/lib$name.$libext"; then
11548                      found_dir="$dir"
11549                      found_a="$dir/lib$name.$libext"
11550                      if test -f "$dir/lib$name.la"; then
11551                        found_la="$dir/lib$name.la"
11552                      fi
11553                    fi
11554                  fi
11555                  ;;
11556              esac
11557              if test "X$found_dir" != "X"; then
11558                break
11559              fi
11560            done
11561          fi
11562          if test "X$found_dir" != "X"; then
11563                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11564            if test "X$found_so" != "X"; then
11565                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11566                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11567              else
11568                                                                                haveit=
11569                for x in $ltrpathdirs; do
11570                  if test "X$x" = "X$found_dir"; then
11571                    haveit=yes
11572                    break
11573                  fi
11574                done
11575                if test -z "$haveit"; then
11576                  ltrpathdirs="$ltrpathdirs $found_dir"
11577                fi
11578                                if test "$hardcode_direct" = yes; then
11579                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11580                else
11581                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11582                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11583                                                            haveit=
11584                    for x in $rpathdirs; do
11585                      if test "X$x" = "X$found_dir"; then
11586                        haveit=yes
11587                        break
11588                      fi
11589                    done
11590                    if test -z "$haveit"; then
11591                      rpathdirs="$rpathdirs $found_dir"
11592                    fi
11593                  else
11594                                                                                haveit=
11595                    for x in $LDFLAGS $LIBICONV; do
11596
11597  acl_save_prefix="$prefix"
11598  prefix="$acl_final_prefix"
11599  acl_save_exec_prefix="$exec_prefix"
11600  exec_prefix="$acl_final_exec_prefix"
11601  eval x=\"$x\"
11602  exec_prefix="$acl_save_exec_prefix"
11603  prefix="$acl_save_prefix"
11604
11605                      if test "X$x" = "X-L$found_dir"; then
11606                        haveit=yes
11607                        break
11608                      fi
11609                    done
11610                    if test -z "$haveit"; then
11611                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11612                    fi
11613                    if test "$hardcode_minus_L" != no; then
11614                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11615                    else
11616                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11617                    fi
11618                  fi
11619                fi
11620              fi
11621            else
11622              if test "X$found_a" != "X"; then
11623                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11624              else
11625                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11626              fi
11627            fi
11628                        additional_includedir=
11629            case "$found_dir" in
11630              */lib | */lib/)
11631                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11632                additional_includedir="$basedir/include"
11633                ;;
11634            esac
11635            if test "X$additional_includedir" != "X"; then
11636                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11637                haveit=
11638                if test "X$additional_includedir" = "X/usr/local/include"; then
11639                  if test -n "$GCC"; then
11640                    case $host_os in
11641                      linux*) haveit=yes;;
11642                    esac
11643                  fi
11644                fi
11645                if test -z "$haveit"; then
11646                  for x in $CPPFLAGS $INCICONV; do
11647
11648  acl_save_prefix="$prefix"
11649  prefix="$acl_final_prefix"
11650  acl_save_exec_prefix="$exec_prefix"
11651  exec_prefix="$acl_final_exec_prefix"
11652  eval x=\"$x\"
11653  exec_prefix="$acl_save_exec_prefix"
11654  prefix="$acl_save_prefix"
11655
11656                    if test "X$x" = "X-I$additional_includedir"; then
11657                      haveit=yes
11658                      break
11659                    fi
11660                  done
11661                  if test -z "$haveit"; then
11662                    if test -d "$additional_includedir"; then
11663                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11664                    fi
11665                  fi
11666                fi
11667              fi
11668            fi
11669                        if test -n "$found_la"; then
11670                                                        save_libdir="$libdir"
11671              case "$found_la" in
11672                */* | *\\*) . "$found_la" ;;
11673                *) . "./$found_la" ;;
11674              esac
11675              libdir="$save_libdir"
11676                            for dep in $dependency_libs; do
11677                case "$dep" in
11678                  -L*)
11679                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11680                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11681                      haveit=
11682                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11683                        if test -n "$GCC"; then
11684                          case $host_os in
11685                            linux*) haveit=yes;;
11686                          esac
11687                        fi
11688                      fi
11689                      if test -z "$haveit"; then
11690                        haveit=
11691                        for x in $LDFLAGS $LIBICONV; do
11692
11693  acl_save_prefix="$prefix"
11694  prefix="$acl_final_prefix"
11695  acl_save_exec_prefix="$exec_prefix"
11696  exec_prefix="$acl_final_exec_prefix"
11697  eval x=\"$x\"
11698  exec_prefix="$acl_save_exec_prefix"
11699  prefix="$acl_save_prefix"
11700
11701                          if test "X$x" = "X-L$additional_libdir"; then
11702                            haveit=yes
11703                            break
11704                          fi
11705                        done
11706                        if test -z "$haveit"; then
11707                          if test -d "$additional_libdir"; then
11708                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11709                          fi
11710                        fi
11711                        haveit=
11712                        for x in $LDFLAGS $LTLIBICONV; do
11713
11714  acl_save_prefix="$prefix"
11715  prefix="$acl_final_prefix"
11716  acl_save_exec_prefix="$exec_prefix"
11717  exec_prefix="$acl_final_exec_prefix"
11718  eval x=\"$x\"
11719  exec_prefix="$acl_save_exec_prefix"
11720  prefix="$acl_save_prefix"
11721
11722                          if test "X$x" = "X-L$additional_libdir"; then
11723                            haveit=yes
11724                            break
11725                          fi
11726                        done
11727                        if test -z "$haveit"; then
11728                          if test -d "$additional_libdir"; then
11729                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11730                          fi
11731                        fi
11732                      fi
11733                    fi
11734                    ;;
11735                  -R*)
11736                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11737                    if test "$enable_rpath" != no; then
11738                                                                  haveit=
11739                      for x in $rpathdirs; do
11740                        if test "X$x" = "X$dir"; then
11741                          haveit=yes
11742                          break
11743                        fi
11744                      done
11745                      if test -z "$haveit"; then
11746                        rpathdirs="$rpathdirs $dir"
11747                      fi
11748                                                                  haveit=
11749                      for x in $ltrpathdirs; do
11750                        if test "X$x" = "X$dir"; then
11751                          haveit=yes
11752                          break
11753                        fi
11754                      done
11755                      if test -z "$haveit"; then
11756                        ltrpathdirs="$ltrpathdirs $dir"
11757                      fi
11758                    fi
11759                    ;;
11760                  -l*)
11761                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11762                    ;;
11763                  *.la)
11764                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11765                    ;;
11766                  *)
11767                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11768                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11769                    ;;
11770                esac
11771              done
11772            fi
11773          else
11774                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11775            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11776          fi
11777        fi
11778      fi
11779    done
11780  done
11781  if test "X$rpathdirs" != "X"; then
11782    if test -n "$hardcode_libdir_separator"; then
11783                        alldirs=
11784      for found_dir in $rpathdirs; do
11785        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11786      done
11787            acl_save_libdir="$libdir"
11788      libdir="$alldirs"
11789      eval flag=\"$hardcode_libdir_flag_spec\"
11790      libdir="$acl_save_libdir"
11791      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11792    else
11793            for found_dir in $rpathdirs; do
11794        acl_save_libdir="$libdir"
11795        libdir="$found_dir"
11796        eval flag=\"$hardcode_libdir_flag_spec\"
11797        libdir="$acl_save_libdir"
11798        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11799      done
11800    fi
11801  fi
11802  if test "X$ltrpathdirs" != "X"; then
11803            for found_dir in $ltrpathdirs; do
11804      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11805    done
11806  fi
11807
11808
11809
11810
11811
11812
11813
11814
11815  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11816echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11817if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11818  echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820  cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h.  */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h.  */
11826$ac_includes_default
11827typedef ptrdiff_t ac__type_new_;
11828int
11829main ()
11830{
11831if ((ac__type_new_ *) 0)
11832  return 0;
11833if (sizeof (ac__type_new_))
11834  return 0;
11835  ;
11836  return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext
11840if { (ac_try="$ac_compile"
11841case "(($ac_try" in
11842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843  *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846  (eval "$ac_compile") 2>conftest.er1
11847  ac_status=$?
11848  grep -v '^ *+' conftest.er1 >conftest.err
11849  rm -f conftest.er1
11850  cat conftest.err >&5
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); } && {
11853	 test -z "$ac_c_werror_flag" ||
11854	 test ! -s conftest.err
11855       } && test -s conftest.$ac_objext; then
11856  ac_cv_type_ptrdiff_t=yes
11857else
11858  echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861	ac_cv_type_ptrdiff_t=no
11862fi
11863
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865fi
11866{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11867echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11868if test $ac_cv_type_ptrdiff_t = yes; then
11869  :
11870else
11871
11872cat >>confdefs.h <<\_ACEOF
11873#define ptrdiff_t long
11874_ACEOF
11875
11876
11877fi
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11890stdlib.h string.h unistd.h sys/param.h
11891do
11892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11894  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897  echo $ECHO_N "(cached) $ECHO_C" >&6
11898fi
11899ac_res=`eval echo '${'$as_ac_Header'}'`
11900	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11901echo "${ECHO_T}$ac_res" >&6; }
11902else
11903  # Is the header compilable?
11904{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11905echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11906cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h.  */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h.  */
11912$ac_includes_default
11913#include <$ac_header>
11914_ACEOF
11915rm -f conftest.$ac_objext
11916if { (ac_try="$ac_compile"
11917case "(($ac_try" in
11918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919  *) ac_try_echo=$ac_try;;
11920esac
11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922  (eval "$ac_compile") 2>conftest.er1
11923  ac_status=$?
11924  grep -v '^ *+' conftest.er1 >conftest.err
11925  rm -f conftest.er1
11926  cat conftest.err >&5
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } && {
11929	 test -z "$ac_c_werror_flag" ||
11930	 test ! -s conftest.err
11931       } && test -s conftest.$ac_objext; then
11932  ac_header_compiler=yes
11933else
11934  echo "$as_me: failed program was:" >&5
11935sed 's/^/| /' conftest.$ac_ext >&5
11936
11937	ac_header_compiler=no
11938fi
11939
11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11942echo "${ECHO_T}$ac_header_compiler" >&6; }
11943
11944# Is the header present?
11945{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11947cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h.  */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h.  */
11953#include <$ac_header>
11954_ACEOF
11955if { (ac_try="$ac_cpp conftest.$ac_ext"
11956case "(($ac_try" in
11957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958  *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11962  ac_status=$?
11963  grep -v '^ *+' conftest.er1 >conftest.err
11964  rm -f conftest.er1
11965  cat conftest.err >&5
11966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967  (exit $ac_status); } >/dev/null && {
11968	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11969	 test ! -s conftest.err
11970       }; then
11971  ac_header_preproc=yes
11972else
11973  echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
11976  ac_header_preproc=no
11977fi
11978
11979rm -f conftest.err conftest.$ac_ext
11980{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981echo "${ECHO_T}$ac_header_preproc" >&6; }
11982
11983# So?  What about this header?
11984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11985  yes:no: )
11986    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11990    ac_header_preproc=yes
11991    ;;
11992  no:yes:* )
11993    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11995    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11996echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11997    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11999    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12000echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12001    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12003    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12005    ( cat <<\_ASBOX
12006## ------------------------------------------------------------ ##
12007## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
12008## ------------------------------------------------------------ ##
12009_ASBOX
12010     ) | sed "s/^/$as_me: WARNING:     /" >&2
12011    ;;
12012esac
12013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016  echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018  eval "$as_ac_Header=\$ac_header_preproc"
12019fi
12020ac_res=`eval echo '${'$as_ac_Header'}'`
12021	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12022echo "${ECHO_T}$ac_res" >&6; }
12023
12024fi
12025if test `eval echo '${'$as_ac_Header'}'` = yes; then
12026  cat >>confdefs.h <<_ACEOF
12027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12028_ACEOF
12029
12030fi
12031
12032done
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12058mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12059strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12060__fsetlocking
12061do
12062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12063{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12065if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12066  echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068  cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h.  */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h.  */
12074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12075   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12076#define $ac_func innocuous_$ac_func
12077
12078/* System header to define __stub macros and hopefully few prototypes,
12079    which can conflict with char $ac_func (); below.
12080    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12081    <limits.h> exists even on freestanding compilers.  */
12082
12083#ifdef __STDC__
12084# include <limits.h>
12085#else
12086# include <assert.h>
12087#endif
12088
12089#undef $ac_func
12090
12091/* Override any GCC internal prototype to avoid an error.
12092   Use char because int might match the return type of a GCC
12093   builtin and then its argument prototype would still apply.  */
12094#ifdef __cplusplus
12095extern "C"
12096#endif
12097char $ac_func ();
12098/* The GNU C library defines this for functions which it implements
12099    to always fail with ENOSYS.  Some functions are actually named
12100    something starting with __ and the normal name is an alias.  */
12101#if defined __stub_$ac_func || defined __stub___$ac_func
12102choke me
12103#endif
12104
12105int
12106main ()
12107{
12108return $ac_func ();
12109  ;
12110  return 0;
12111}
12112_ACEOF
12113rm -f conftest.$ac_objext conftest$ac_exeext
12114if { (ac_try="$ac_link"
12115case "(($ac_try" in
12116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117  *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120  (eval "$ac_link") 2>conftest.er1
12121  ac_status=$?
12122  grep -v '^ *+' conftest.er1 >conftest.err
12123  rm -f conftest.er1
12124  cat conftest.err >&5
12125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126  (exit $ac_status); } && {
12127	 test -z "$ac_c_werror_flag" ||
12128	 test ! -s conftest.err
12129       } && test -s conftest$ac_exeext &&
12130       $as_test_x conftest$ac_exeext; then
12131  eval "$as_ac_var=yes"
12132else
12133  echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136	eval "$as_ac_var=no"
12137fi
12138
12139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12140      conftest$ac_exeext conftest.$ac_ext
12141fi
12142ac_res=`eval echo '${'$as_ac_var'}'`
12143	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12144echo "${ECHO_T}$ac_res" >&6; }
12145if test `eval echo '${'$as_ac_var'}'` = yes; then
12146  cat >>confdefs.h <<_ACEOF
12147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12148_ACEOF
12149
12150fi
12151done
12152
12153
12154
12155  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12156echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12157if test "${ac_cv_have_decl__snprintf+set}" = set; then
12158  echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160  cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h.  */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h.  */
12166#include <stdio.h>
12167int
12168main ()
12169{
12170
12171#ifndef _snprintf
12172  char *p = (char *) _snprintf;
12173#endif
12174
12175  ;
12176  return 0;
12177}
12178_ACEOF
12179rm -f conftest.$ac_objext
12180if { (ac_try="$ac_compile"
12181case "(($ac_try" in
12182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183  *) ac_try_echo=$ac_try;;
12184esac
12185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186  (eval "$ac_compile") 2>conftest.er1
12187  ac_status=$?
12188  grep -v '^ *+' conftest.er1 >conftest.err
12189  rm -f conftest.er1
12190  cat conftest.err >&5
12191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192  (exit $ac_status); } && {
12193	 test -z "$ac_c_werror_flag" ||
12194	 test ! -s conftest.err
12195       } && test -s conftest.$ac_objext; then
12196  ac_cv_have_decl__snprintf=yes
12197else
12198  echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201	ac_cv_have_decl__snprintf=no
12202fi
12203
12204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205fi
12206{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12207echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12208  if test $ac_cv_have_decl__snprintf = yes; then
12209    gt_value=1
12210  else
12211    gt_value=0
12212  fi
12213
12214cat >>confdefs.h <<_ACEOF
12215#define HAVE_DECL__SNPRINTF $gt_value
12216_ACEOF
12217
12218
12219
12220  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12221echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12222if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12223  echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225  cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h.  */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h.  */
12231#include <stdio.h>
12232int
12233main ()
12234{
12235
12236#ifndef _snwprintf
12237  char *p = (char *) _snwprintf;
12238#endif
12239
12240  ;
12241  return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext
12245if { (ac_try="$ac_compile"
12246case "(($ac_try" in
12247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248  *) ac_try_echo=$ac_try;;
12249esac
12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251  (eval "$ac_compile") 2>conftest.er1
12252  ac_status=$?
12253  grep -v '^ *+' conftest.er1 >conftest.err
12254  rm -f conftest.er1
12255  cat conftest.err >&5
12256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257  (exit $ac_status); } && {
12258	 test -z "$ac_c_werror_flag" ||
12259	 test ! -s conftest.err
12260       } && test -s conftest.$ac_objext; then
12261  ac_cv_have_decl__snwprintf=yes
12262else
12263  echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266	ac_cv_have_decl__snwprintf=no
12267fi
12268
12269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12270fi
12271{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12272echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12273  if test $ac_cv_have_decl__snwprintf = yes; then
12274    gt_value=1
12275  else
12276    gt_value=0
12277  fi
12278
12279cat >>confdefs.h <<_ACEOF
12280#define HAVE_DECL__SNWPRINTF $gt_value
12281_ACEOF
12282
12283
12284
12285
12286  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12287echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12288if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12289  echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291  cat >conftest.$ac_ext <<_ACEOF
12292/* confdefs.h.  */
12293_ACEOF
12294cat confdefs.h >>conftest.$ac_ext
12295cat >>conftest.$ac_ext <<_ACEOF
12296/* end confdefs.h.  */
12297#include <stdio.h>
12298int
12299main ()
12300{
12301
12302#ifndef feof_unlocked
12303  char *p = (char *) feof_unlocked;
12304#endif
12305
12306  ;
12307  return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext
12311if { (ac_try="$ac_compile"
12312case "(($ac_try" in
12313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314  *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317  (eval "$ac_compile") 2>conftest.er1
12318  ac_status=$?
12319  grep -v '^ *+' conftest.er1 >conftest.err
12320  rm -f conftest.er1
12321  cat conftest.err >&5
12322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); } && {
12324	 test -z "$ac_c_werror_flag" ||
12325	 test ! -s conftest.err
12326       } && test -s conftest.$ac_objext; then
12327  ac_cv_have_decl_feof_unlocked=yes
12328else
12329  echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332	ac_cv_have_decl_feof_unlocked=no
12333fi
12334
12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336fi
12337{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12338echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12339  if test $ac_cv_have_decl_feof_unlocked = yes; then
12340    gt_value=1
12341  else
12342    gt_value=0
12343  fi
12344
12345cat >>confdefs.h <<_ACEOF
12346#define HAVE_DECL_FEOF_UNLOCKED $gt_value
12347_ACEOF
12348
12349
12350
12351  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12352echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12353if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12354  echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356  cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h.  */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h.  */
12362#include <stdio.h>
12363int
12364main ()
12365{
12366
12367#ifndef fgets_unlocked
12368  char *p = (char *) fgets_unlocked;
12369#endif
12370
12371  ;
12372  return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext
12376if { (ac_try="$ac_compile"
12377case "(($ac_try" in
12378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379  *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382  (eval "$ac_compile") 2>conftest.er1
12383  ac_status=$?
12384  grep -v '^ *+' conftest.er1 >conftest.err
12385  rm -f conftest.er1
12386  cat conftest.err >&5
12387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388  (exit $ac_status); } && {
12389	 test -z "$ac_c_werror_flag" ||
12390	 test ! -s conftest.err
12391       } && test -s conftest.$ac_objext; then
12392  ac_cv_have_decl_fgets_unlocked=yes
12393else
12394  echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397	ac_cv_have_decl_fgets_unlocked=no
12398fi
12399
12400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401fi
12402{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12403echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12404  if test $ac_cv_have_decl_fgets_unlocked = yes; then
12405    gt_value=1
12406  else
12407    gt_value=0
12408  fi
12409
12410cat >>confdefs.h <<_ACEOF
12411#define HAVE_DECL_FGETS_UNLOCKED $gt_value
12412_ACEOF
12413
12414
12415
12416  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12417echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12418if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12419  echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421  cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h.  */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h.  */
12427#include <stdio.h>
12428int
12429main ()
12430{
12431
12432#ifndef getc_unlocked
12433  char *p = (char *) getc_unlocked;
12434#endif
12435
12436  ;
12437  return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext
12441if { (ac_try="$ac_compile"
12442case "(($ac_try" in
12443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444  *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447  (eval "$ac_compile") 2>conftest.er1
12448  ac_status=$?
12449  grep -v '^ *+' conftest.er1 >conftest.err
12450  rm -f conftest.er1
12451  cat conftest.err >&5
12452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453  (exit $ac_status); } && {
12454	 test -z "$ac_c_werror_flag" ||
12455	 test ! -s conftest.err
12456       } && test -s conftest.$ac_objext; then
12457  ac_cv_have_decl_getc_unlocked=yes
12458else
12459  echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
12462	ac_cv_have_decl_getc_unlocked=no
12463fi
12464
12465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466fi
12467{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12468echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12469  if test $ac_cv_have_decl_getc_unlocked = yes; then
12470    gt_value=1
12471  else
12472    gt_value=0
12473  fi
12474
12475cat >>confdefs.h <<_ACEOF
12476#define HAVE_DECL_GETC_UNLOCKED $gt_value
12477_ACEOF
12478
12479
12480
12481  case $gt_cv_func_printf_posix in
12482    *yes) HAVE_POSIX_PRINTF=1 ;;
12483    *) HAVE_POSIX_PRINTF=0 ;;
12484  esac
12485
12486  if test "$ac_cv_func_asprintf" = yes; then
12487    HAVE_ASPRINTF=1
12488  else
12489    HAVE_ASPRINTF=0
12490  fi
12491
12492  if test "$ac_cv_func_snprintf" = yes; then
12493    HAVE_SNPRINTF=1
12494  else
12495    HAVE_SNPRINTF=0
12496  fi
12497
12498  if test "$ac_cv_func_wprintf" = yes; then
12499    HAVE_WPRINTF=1
12500  else
12501    HAVE_WPRINTF=0
12502  fi
12503
12504
12505
12506
12507
12508
12509
12510          am_save_CPPFLAGS="$CPPFLAGS"
12511
12512  for element in $INCICONV; do
12513    haveit=
12514    for x in $CPPFLAGS; do
12515
12516  acl_save_prefix="$prefix"
12517  prefix="$acl_final_prefix"
12518  acl_save_exec_prefix="$exec_prefix"
12519  exec_prefix="$acl_final_exec_prefix"
12520  eval x=\"$x\"
12521  exec_prefix="$acl_save_exec_prefix"
12522  prefix="$acl_save_prefix"
12523
12524      if test "X$x" = "X$element"; then
12525        haveit=yes
12526        break
12527      fi
12528    done
12529    if test -z "$haveit"; then
12530      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12531    fi
12532  done
12533
12534
12535  { echo "$as_me:$LINENO: checking for iconv" >&5
12536echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12537if test "${am_cv_func_iconv+set}" = set; then
12538  echo $ECHO_N "(cached) $ECHO_C" >&6
12539else
12540
12541    am_cv_func_iconv="no, consider installing GNU libiconv"
12542    am_cv_lib_iconv=no
12543    cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h.  */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h.  */
12549#include <stdlib.h>
12550#include <iconv.h>
12551int
12552main ()
12553{
12554iconv_t cd = iconv_open("","");
12555       iconv(cd,NULL,NULL,NULL,NULL);
12556       iconv_close(cd);
12557  ;
12558  return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext conftest$ac_exeext
12562if { (ac_try="$ac_link"
12563case "(($ac_try" in
12564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565  *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568  (eval "$ac_link") 2>conftest.er1
12569  ac_status=$?
12570  grep -v '^ *+' conftest.er1 >conftest.err
12571  rm -f conftest.er1
12572  cat conftest.err >&5
12573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574  (exit $ac_status); } && {
12575	 test -z "$ac_c_werror_flag" ||
12576	 test ! -s conftest.err
12577       } && test -s conftest$ac_exeext &&
12578       $as_test_x conftest$ac_exeext; then
12579  am_cv_func_iconv=yes
12580else
12581  echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584
12585fi
12586
12587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12588      conftest$ac_exeext conftest.$ac_ext
12589    if test "$am_cv_func_iconv" != yes; then
12590      am_save_LIBS="$LIBS"
12591      LIBS="$LIBS $LIBICONV"
12592      cat >conftest.$ac_ext <<_ACEOF
12593/* confdefs.h.  */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
12597/* end confdefs.h.  */
12598#include <stdlib.h>
12599#include <iconv.h>
12600int
12601main ()
12602{
12603iconv_t cd = iconv_open("","");
12604         iconv(cd,NULL,NULL,NULL,NULL);
12605         iconv_close(cd);
12606  ;
12607  return 0;
12608}
12609_ACEOF
12610rm -f conftest.$ac_objext conftest$ac_exeext
12611if { (ac_try="$ac_link"
12612case "(($ac_try" in
12613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614  *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617  (eval "$ac_link") 2>conftest.er1
12618  ac_status=$?
12619  grep -v '^ *+' conftest.er1 >conftest.err
12620  rm -f conftest.er1
12621  cat conftest.err >&5
12622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623  (exit $ac_status); } && {
12624	 test -z "$ac_c_werror_flag" ||
12625	 test ! -s conftest.err
12626       } && test -s conftest$ac_exeext &&
12627       $as_test_x conftest$ac_exeext; then
12628  am_cv_lib_iconv=yes
12629        am_cv_func_iconv=yes
12630else
12631  echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
12634
12635fi
12636
12637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12638      conftest$ac_exeext conftest.$ac_ext
12639      LIBS="$am_save_LIBS"
12640    fi
12641
12642fi
12643{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12644echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12645  if test "$am_cv_func_iconv" = yes; then
12646
12647cat >>confdefs.h <<\_ACEOF
12648#define HAVE_ICONV 1
12649_ACEOF
12650
12651  fi
12652  if test "$am_cv_lib_iconv" = yes; then
12653    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12654echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12655    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12656echo "${ECHO_T}$LIBICONV" >&6; }
12657  else
12658            CPPFLAGS="$am_save_CPPFLAGS"
12659    LIBICONV=
12660    LTLIBICONV=
12661  fi
12662
12663
12664
12665  if test "$am_cv_func_iconv" = yes; then
12666    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12667echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12668    if test "${am_cv_proto_iconv+set}" = set; then
12669  echo $ECHO_N "(cached) $ECHO_C" >&6
12670else
12671
12672      cat >conftest.$ac_ext <<_ACEOF
12673/* confdefs.h.  */
12674_ACEOF
12675cat confdefs.h >>conftest.$ac_ext
12676cat >>conftest.$ac_ext <<_ACEOF
12677/* end confdefs.h.  */
12678
12679#include <stdlib.h>
12680#include <iconv.h>
12681extern
12682#ifdef __cplusplus
12683"C"
12684#endif
12685#if defined(__STDC__) || defined(__cplusplus)
12686size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12687#else
12688size_t iconv();
12689#endif
12690
12691int
12692main ()
12693{
12694
12695  ;
12696  return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext
12700if { (ac_try="$ac_compile"
12701case "(($ac_try" in
12702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703  *) ac_try_echo=$ac_try;;
12704esac
12705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706  (eval "$ac_compile") 2>conftest.er1
12707  ac_status=$?
12708  grep -v '^ *+' conftest.er1 >conftest.err
12709  rm -f conftest.er1
12710  cat conftest.err >&5
12711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712  (exit $ac_status); } && {
12713	 test -z "$ac_c_werror_flag" ||
12714	 test ! -s conftest.err
12715       } && test -s conftest.$ac_objext; then
12716  am_cv_proto_iconv_arg1=""
12717else
12718  echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721	am_cv_proto_iconv_arg1="const"
12722fi
12723
12724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725      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);"
12726fi
12727
12728    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12729    { echo "$as_me:$LINENO: result: ${ac_t:-
12730         }$am_cv_proto_iconv" >&5
12731echo "${ECHO_T}${ac_t:-
12732         }$am_cv_proto_iconv" >&6; }
12733
12734cat >>confdefs.h <<_ACEOF
12735#define ICONV_CONST $am_cv_proto_iconv_arg1
12736_ACEOF
12737
12738  fi
12739
12740
12741  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12742echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12743if test "${am_cv_langinfo_codeset+set}" = set; then
12744  echo $ECHO_N "(cached) $ECHO_C" >&6
12745else
12746  cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h.  */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h.  */
12752#include <langinfo.h>
12753int
12754main ()
12755{
12756char* cs = nl_langinfo(CODESET);
12757  ;
12758  return 0;
12759}
12760_ACEOF
12761rm -f conftest.$ac_objext conftest$ac_exeext
12762if { (ac_try="$ac_link"
12763case "(($ac_try" in
12764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765  *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768  (eval "$ac_link") 2>conftest.er1
12769  ac_status=$?
12770  grep -v '^ *+' conftest.er1 >conftest.err
12771  rm -f conftest.er1
12772  cat conftest.err >&5
12773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774  (exit $ac_status); } && {
12775	 test -z "$ac_c_werror_flag" ||
12776	 test ! -s conftest.err
12777       } && test -s conftest$ac_exeext &&
12778       $as_test_x conftest$ac_exeext; then
12779  am_cv_langinfo_codeset=yes
12780else
12781  echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
12784	am_cv_langinfo_codeset=no
12785fi
12786
12787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12788      conftest$ac_exeext conftest.$ac_ext
12789
12790fi
12791{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12792echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12793  if test $am_cv_langinfo_codeset = yes; then
12794
12795cat >>confdefs.h <<\_ACEOF
12796#define HAVE_LANGINFO_CODESET 1
12797_ACEOF
12798
12799  fi
12800
12801  if test $ac_cv_header_locale_h = yes; then
12802
12803  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12804echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12805if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12806  echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808  cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h.  */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h.  */
12814#include <locale.h>
12815int
12816main ()
12817{
12818return LC_MESSAGES
12819  ;
12820  return 0;
12821}
12822_ACEOF
12823rm -f conftest.$ac_objext conftest$ac_exeext
12824if { (ac_try="$ac_link"
12825case "(($ac_try" in
12826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827  *) ac_try_echo=$ac_try;;
12828esac
12829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830  (eval "$ac_link") 2>conftest.er1
12831  ac_status=$?
12832  grep -v '^ *+' conftest.er1 >conftest.err
12833  rm -f conftest.er1
12834  cat conftest.err >&5
12835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836  (exit $ac_status); } && {
12837	 test -z "$ac_c_werror_flag" ||
12838	 test ! -s conftest.err
12839       } && test -s conftest$ac_exeext &&
12840       $as_test_x conftest$ac_exeext; then
12841  am_cv_val_LC_MESSAGES=yes
12842else
12843  echo "$as_me: failed program was:" >&5
12844sed 's/^/| /' conftest.$ac_ext >&5
12845
12846	am_cv_val_LC_MESSAGES=no
12847fi
12848
12849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12850      conftest$ac_exeext conftest.$ac_ext
12851fi
12852{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12853echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
12854  if test $am_cv_val_LC_MESSAGES = yes; then
12855
12856cat >>confdefs.h <<\_ACEOF
12857#define HAVE_LC_MESSAGES 1
12858_ACEOF
12859
12860  fi
12861
12862  fi
12863
12864                      for ac_prog in bison
12865do
12866  # Extract the first word of "$ac_prog", so it can be a program name with args.
12867set dummy $ac_prog; ac_word=$2
12868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12870if test "${ac_cv_prog_INTLBISON+set}" = set; then
12871  echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873  if test -n "$INTLBISON"; then
12874  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879  IFS=$as_save_IFS
12880  test -z "$as_dir" && as_dir=.
12881  for ac_exec_ext in '' $ac_executable_extensions; do
12882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883    ac_cv_prog_INTLBISON="$ac_prog"
12884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12885    break 2
12886  fi
12887done
12888done
12889IFS=$as_save_IFS
12890
12891fi
12892fi
12893INTLBISON=$ac_cv_prog_INTLBISON
12894if test -n "$INTLBISON"; then
12895  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12896echo "${ECHO_T}$INTLBISON" >&6; }
12897else
12898  { echo "$as_me:$LINENO: result: no" >&5
12899echo "${ECHO_T}no" >&6; }
12900fi
12901
12902
12903  test -n "$INTLBISON" && break
12904done
12905
12906  if test -z "$INTLBISON"; then
12907    ac_verc_fail=yes
12908  else
12909        { echo "$as_me:$LINENO: checking version of bison" >&5
12910echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12911    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12912    case $ac_prog_version in
12913      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12914      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12915         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12916      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12917    esac
12918    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12919echo "${ECHO_T}$ac_prog_version" >&6; }
12920  fi
12921  if test $ac_verc_fail = yes; then
12922    INTLBISON=:
12923  fi
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12941echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12942    # Check whether --enable-nls was given.
12943if test "${enable_nls+set}" = set; then
12944  enableval=$enable_nls; USE_NLS=$enableval
12945else
12946  USE_NLS=yes
12947fi
12948
12949  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12950echo "${ECHO_T}$USE_NLS" >&6; }
12951
12952
12953
12954
12955    BUILD_INCLUDED_LIBINTL=no
12956    USE_INCLUDED_LIBINTL=no
12957
12958  LIBINTL=
12959  LTLIBINTL=
12960  POSUB=
12961
12962    if test "$USE_NLS" = "yes"; then
12963    gt_use_preinstalled_gnugettext=no
12964
12965      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12966echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12967
12968# Check whether --with-included-gettext was given.
12969if test "${with_included_gettext+set}" = set; then
12970  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12971else
12972  nls_cv_force_use_gnu_gettext=no
12973fi
12974
12975      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12976echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12977
12978      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12979      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12980
12981
12982
12983
12984
12985
12986        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12987echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12988if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12989  echo $ECHO_N "(cached) $ECHO_C" >&6
12990else
12991  cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h.  */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h.  */
12997#include <libintl.h>
12998extern int _nl_msg_cat_cntr;
12999extern int *_nl_domain_bindings;
13000int
13001main ()
13002{
13003bindtextdomain ("", "");
13004return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13005  ;
13006  return 0;
13007}
13008_ACEOF
13009rm -f conftest.$ac_objext conftest$ac_exeext
13010if { (ac_try="$ac_link"
13011case "(($ac_try" in
13012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013  *) ac_try_echo=$ac_try;;
13014esac
13015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016  (eval "$ac_link") 2>conftest.er1
13017  ac_status=$?
13018  grep -v '^ *+' conftest.er1 >conftest.err
13019  rm -f conftest.er1
13020  cat conftest.err >&5
13021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022  (exit $ac_status); } && {
13023	 test -z "$ac_c_werror_flag" ||
13024	 test ! -s conftest.err
13025       } && test -s conftest$ac_exeext &&
13026       $as_test_x conftest$ac_exeext; then
13027  gt_cv_func_gnugettext1_libc=yes
13028else
13029  echo "$as_me: failed program was:" >&5
13030sed 's/^/| /' conftest.$ac_ext >&5
13031
13032	gt_cv_func_gnugettext1_libc=no
13033fi
13034
13035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13036      conftest$ac_exeext conftest.$ac_ext
13037fi
13038{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13039echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13040
13041        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13042
13043
13044
13045    use_additional=yes
13046
13047  acl_save_prefix="$prefix"
13048  prefix="$acl_final_prefix"
13049  acl_save_exec_prefix="$exec_prefix"
13050  exec_prefix="$acl_final_exec_prefix"
13051
13052    eval additional_includedir=\"$includedir\"
13053    eval additional_libdir=\"$libdir\"
13054
13055  exec_prefix="$acl_save_exec_prefix"
13056  prefix="$acl_save_prefix"
13057
13058
13059# Check whether --with-libintl-prefix was given.
13060if test "${with_libintl_prefix+set}" = set; then
13061  withval=$with_libintl_prefix;
13062    if test "X$withval" = "Xno"; then
13063      use_additional=no
13064    else
13065      if test "X$withval" = "X"; then
13066
13067  acl_save_prefix="$prefix"
13068  prefix="$acl_final_prefix"
13069  acl_save_exec_prefix="$exec_prefix"
13070  exec_prefix="$acl_final_exec_prefix"
13071
13072          eval additional_includedir=\"$includedir\"
13073          eval additional_libdir=\"$libdir\"
13074
13075  exec_prefix="$acl_save_exec_prefix"
13076  prefix="$acl_save_prefix"
13077
13078      else
13079        additional_includedir="$withval/include"
13080        additional_libdir="$withval/lib"
13081      fi
13082    fi
13083
13084fi
13085
13086      LIBINTL=
13087  LTLIBINTL=
13088  INCINTL=
13089  rpathdirs=
13090  ltrpathdirs=
13091  names_already_handled=
13092  names_next_round='intl '
13093  while test -n "$names_next_round"; do
13094    names_this_round="$names_next_round"
13095    names_next_round=
13096    for name in $names_this_round; do
13097      already_handled=
13098      for n in $names_already_handled; do
13099        if test "$n" = "$name"; then
13100          already_handled=yes
13101          break
13102        fi
13103      done
13104      if test -z "$already_handled"; then
13105        names_already_handled="$names_already_handled $name"
13106                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13107        eval value=\"\$HAVE_LIB$uppername\"
13108        if test -n "$value"; then
13109          if test "$value" = yes; then
13110            eval value=\"\$LIB$uppername\"
13111            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13112            eval value=\"\$LTLIB$uppername\"
13113            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13114          else
13115                                    :
13116          fi
13117        else
13118                              found_dir=
13119          found_la=
13120          found_so=
13121          found_a=
13122          if test $use_additional = yes; then
13123            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13124              found_dir="$additional_libdir"
13125              found_so="$additional_libdir/lib$name.$shlibext"
13126              if test -f "$additional_libdir/lib$name.la"; then
13127                found_la="$additional_libdir/lib$name.la"
13128              fi
13129            else
13130              if test -f "$additional_libdir/lib$name.$libext"; then
13131                found_dir="$additional_libdir"
13132                found_a="$additional_libdir/lib$name.$libext"
13133                if test -f "$additional_libdir/lib$name.la"; then
13134                  found_la="$additional_libdir/lib$name.la"
13135                fi
13136              fi
13137            fi
13138          fi
13139          if test "X$found_dir" = "X"; then
13140            for x in $LDFLAGS $LTLIBINTL; do
13141
13142  acl_save_prefix="$prefix"
13143  prefix="$acl_final_prefix"
13144  acl_save_exec_prefix="$exec_prefix"
13145  exec_prefix="$acl_final_exec_prefix"
13146  eval x=\"$x\"
13147  exec_prefix="$acl_save_exec_prefix"
13148  prefix="$acl_save_prefix"
13149
13150              case "$x" in
13151                -L*)
13152                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13153                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13154                    found_dir="$dir"
13155                    found_so="$dir/lib$name.$shlibext"
13156                    if test -f "$dir/lib$name.la"; then
13157                      found_la="$dir/lib$name.la"
13158                    fi
13159                  else
13160                    if test -f "$dir/lib$name.$libext"; then
13161                      found_dir="$dir"
13162                      found_a="$dir/lib$name.$libext"
13163                      if test -f "$dir/lib$name.la"; then
13164                        found_la="$dir/lib$name.la"
13165                      fi
13166                    fi
13167                  fi
13168                  ;;
13169              esac
13170              if test "X$found_dir" != "X"; then
13171                break
13172              fi
13173            done
13174          fi
13175          if test "X$found_dir" != "X"; then
13176                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13177            if test "X$found_so" != "X"; then
13178                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13179                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13180              else
13181                                                                                haveit=
13182                for x in $ltrpathdirs; do
13183                  if test "X$x" = "X$found_dir"; then
13184                    haveit=yes
13185                    break
13186                  fi
13187                done
13188                if test -z "$haveit"; then
13189                  ltrpathdirs="$ltrpathdirs $found_dir"
13190                fi
13191                                if test "$hardcode_direct" = yes; then
13192                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13193                else
13194                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13195                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13196                                                            haveit=
13197                    for x in $rpathdirs; do
13198                      if test "X$x" = "X$found_dir"; then
13199                        haveit=yes
13200                        break
13201                      fi
13202                    done
13203                    if test -z "$haveit"; then
13204                      rpathdirs="$rpathdirs $found_dir"
13205                    fi
13206                  else
13207                                                                                haveit=
13208                    for x in $LDFLAGS $LIBINTL; do
13209
13210  acl_save_prefix="$prefix"
13211  prefix="$acl_final_prefix"
13212  acl_save_exec_prefix="$exec_prefix"
13213  exec_prefix="$acl_final_exec_prefix"
13214  eval x=\"$x\"
13215  exec_prefix="$acl_save_exec_prefix"
13216  prefix="$acl_save_prefix"
13217
13218                      if test "X$x" = "X-L$found_dir"; then
13219                        haveit=yes
13220                        break
13221                      fi
13222                    done
13223                    if test -z "$haveit"; then
13224                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13225                    fi
13226                    if test "$hardcode_minus_L" != no; then
13227                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13228                    else
13229                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13230                    fi
13231                  fi
13232                fi
13233              fi
13234            else
13235              if test "X$found_a" != "X"; then
13236                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13237              else
13238                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13239              fi
13240            fi
13241                        additional_includedir=
13242            case "$found_dir" in
13243              */lib | */lib/)
13244                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13245                additional_includedir="$basedir/include"
13246                ;;
13247            esac
13248            if test "X$additional_includedir" != "X"; then
13249                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13250                haveit=
13251                if test "X$additional_includedir" = "X/usr/local/include"; then
13252                  if test -n "$GCC"; then
13253                    case $host_os in
13254                      linux*) haveit=yes;;
13255                    esac
13256                  fi
13257                fi
13258                if test -z "$haveit"; then
13259                  for x in $CPPFLAGS $INCINTL; do
13260
13261  acl_save_prefix="$prefix"
13262  prefix="$acl_final_prefix"
13263  acl_save_exec_prefix="$exec_prefix"
13264  exec_prefix="$acl_final_exec_prefix"
13265  eval x=\"$x\"
13266  exec_prefix="$acl_save_exec_prefix"
13267  prefix="$acl_save_prefix"
13268
13269                    if test "X$x" = "X-I$additional_includedir"; then
13270                      haveit=yes
13271                      break
13272                    fi
13273                  done
13274                  if test -z "$haveit"; then
13275                    if test -d "$additional_includedir"; then
13276                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13277                    fi
13278                  fi
13279                fi
13280              fi
13281            fi
13282                        if test -n "$found_la"; then
13283                                                        save_libdir="$libdir"
13284              case "$found_la" in
13285                */* | *\\*) . "$found_la" ;;
13286                *) . "./$found_la" ;;
13287              esac
13288              libdir="$save_libdir"
13289                            for dep in $dependency_libs; do
13290                case "$dep" in
13291                  -L*)
13292                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13293                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
13294                      haveit=
13295                      if test "X$additional_libdir" = "X/usr/local/lib"; then
13296                        if test -n "$GCC"; then
13297                          case $host_os in
13298                            linux*) haveit=yes;;
13299                          esac
13300                        fi
13301                      fi
13302                      if test -z "$haveit"; then
13303                        haveit=
13304                        for x in $LDFLAGS $LIBINTL; do
13305
13306  acl_save_prefix="$prefix"
13307  prefix="$acl_final_prefix"
13308  acl_save_exec_prefix="$exec_prefix"
13309  exec_prefix="$acl_final_exec_prefix"
13310  eval x=\"$x\"
13311  exec_prefix="$acl_save_exec_prefix"
13312  prefix="$acl_save_prefix"
13313
13314                          if test "X$x" = "X-L$additional_libdir"; then
13315                            haveit=yes
13316                            break
13317                          fi
13318                        done
13319                        if test -z "$haveit"; then
13320                          if test -d "$additional_libdir"; then
13321                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13322                          fi
13323                        fi
13324                        haveit=
13325                        for x in $LDFLAGS $LTLIBINTL; do
13326
13327  acl_save_prefix="$prefix"
13328  prefix="$acl_final_prefix"
13329  acl_save_exec_prefix="$exec_prefix"
13330  exec_prefix="$acl_final_exec_prefix"
13331  eval x=\"$x\"
13332  exec_prefix="$acl_save_exec_prefix"
13333  prefix="$acl_save_prefix"
13334
13335                          if test "X$x" = "X-L$additional_libdir"; then
13336                            haveit=yes
13337                            break
13338                          fi
13339                        done
13340                        if test -z "$haveit"; then
13341                          if test -d "$additional_libdir"; then
13342                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13343                          fi
13344                        fi
13345                      fi
13346                    fi
13347                    ;;
13348                  -R*)
13349                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13350                    if test "$enable_rpath" != no; then
13351                                                                  haveit=
13352                      for x in $rpathdirs; do
13353                        if test "X$x" = "X$dir"; then
13354                          haveit=yes
13355                          break
13356                        fi
13357                      done
13358                      if test -z "$haveit"; then
13359                        rpathdirs="$rpathdirs $dir"
13360                      fi
13361                                                                  haveit=
13362                      for x in $ltrpathdirs; do
13363                        if test "X$x" = "X$dir"; then
13364                          haveit=yes
13365                          break
13366                        fi
13367                      done
13368                      if test -z "$haveit"; then
13369                        ltrpathdirs="$ltrpathdirs $dir"
13370                      fi
13371                    fi
13372                    ;;
13373                  -l*)
13374                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13375                    ;;
13376                  *.la)
13377                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13378                    ;;
13379                  *)
13380                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13381                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13382                    ;;
13383                esac
13384              done
13385            fi
13386          else
13387                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13388            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13389          fi
13390        fi
13391      fi
13392    done
13393  done
13394  if test "X$rpathdirs" != "X"; then
13395    if test -n "$hardcode_libdir_separator"; then
13396                        alldirs=
13397      for found_dir in $rpathdirs; do
13398        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13399      done
13400            acl_save_libdir="$libdir"
13401      libdir="$alldirs"
13402      eval flag=\"$hardcode_libdir_flag_spec\"
13403      libdir="$acl_save_libdir"
13404      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13405    else
13406            for found_dir in $rpathdirs; do
13407        acl_save_libdir="$libdir"
13408        libdir="$found_dir"
13409        eval flag=\"$hardcode_libdir_flag_spec\"
13410        libdir="$acl_save_libdir"
13411        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13412      done
13413    fi
13414  fi
13415  if test "X$ltrpathdirs" != "X"; then
13416            for found_dir in $ltrpathdirs; do
13417      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13418    done
13419  fi
13420
13421          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13422echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13423if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13424  echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
13426  gt_save_CPPFLAGS="$CPPFLAGS"
13427            CPPFLAGS="$CPPFLAGS $INCINTL"
13428            gt_save_LIBS="$LIBS"
13429            LIBS="$LIBS $LIBINTL"
13430                        cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h.  */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h.  */
13436#include <libintl.h>
13437extern int _nl_msg_cat_cntr;
13438extern
13439#ifdef __cplusplus
13440"C"
13441#endif
13442const char *_nl_expand_alias ();
13443int
13444main ()
13445{
13446bindtextdomain ("", "");
13447return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13448  ;
13449  return 0;
13450}
13451_ACEOF
13452rm -f conftest.$ac_objext conftest$ac_exeext
13453if { (ac_try="$ac_link"
13454case "(($ac_try" in
13455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456  *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459  (eval "$ac_link") 2>conftest.er1
13460  ac_status=$?
13461  grep -v '^ *+' conftest.er1 >conftest.err
13462  rm -f conftest.er1
13463  cat conftest.err >&5
13464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465  (exit $ac_status); } && {
13466	 test -z "$ac_c_werror_flag" ||
13467	 test ! -s conftest.err
13468       } && test -s conftest$ac_exeext &&
13469       $as_test_x conftest$ac_exeext; then
13470  gt_cv_func_gnugettext1_libintl=yes
13471else
13472  echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
13474
13475	gt_cv_func_gnugettext1_libintl=no
13476fi
13477
13478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479      conftest$ac_exeext conftest.$ac_ext
13480                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13481              LIBS="$LIBS $LIBICONV"
13482              cat >conftest.$ac_ext <<_ACEOF
13483/* confdefs.h.  */
13484_ACEOF
13485cat confdefs.h >>conftest.$ac_ext
13486cat >>conftest.$ac_ext <<_ACEOF
13487/* end confdefs.h.  */
13488#include <libintl.h>
13489extern int _nl_msg_cat_cntr;
13490extern
13491#ifdef __cplusplus
13492"C"
13493#endif
13494const char *_nl_expand_alias ();
13495int
13496main ()
13497{
13498bindtextdomain ("", "");
13499return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13500  ;
13501  return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (ac_try="$ac_link"
13506case "(($ac_try" in
13507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508  *) ac_try_echo=$ac_try;;
13509esac
13510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511  (eval "$ac_link") 2>conftest.er1
13512  ac_status=$?
13513  grep -v '^ *+' conftest.er1 >conftest.err
13514  rm -f conftest.er1
13515  cat conftest.err >&5
13516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517  (exit $ac_status); } && {
13518	 test -z "$ac_c_werror_flag" ||
13519	 test ! -s conftest.err
13520       } && test -s conftest$ac_exeext &&
13521       $as_test_x conftest$ac_exeext; then
13522  LIBINTL="$LIBINTL $LIBICONV"
13523                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13524                gt_cv_func_gnugettext1_libintl=yes
13525
13526else
13527  echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530
13531fi
13532
13533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13534      conftest$ac_exeext conftest.$ac_ext
13535            fi
13536            CPPFLAGS="$gt_save_CPPFLAGS"
13537            LIBS="$gt_save_LIBS"
13538fi
13539{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13540echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13541        fi
13542
13543                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13544           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13545                && test "$PACKAGE" != gettext-runtime \
13546                && test "$PACKAGE" != gettext-tools; }; then
13547          gt_use_preinstalled_gnugettext=yes
13548        else
13549                    LIBINTL=
13550          LTLIBINTL=
13551          INCINTL=
13552        fi
13553
13554
13555        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13556                              nls_cv_use_gnu_gettext=yes
13557        fi
13558      fi
13559
13560      if test "$nls_cv_use_gnu_gettext" = "yes"; then
13561                BUILD_INCLUDED_LIBINTL=yes
13562        USE_INCLUDED_LIBINTL=yes
13563        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13564        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13565        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13566      fi
13567
13568      if test "$gt_use_preinstalled_gnugettext" = "yes" \
13569         || test "$nls_cv_use_gnu_gettext" = "yes"; then
13570                CATOBJEXT=.gmo
13571      fi
13572
13573
13574    if test "$gt_use_preinstalled_gnugettext" = "yes" \
13575       || test "$nls_cv_use_gnu_gettext" = "yes"; then
13576
13577cat >>confdefs.h <<\_ACEOF
13578#define ENABLE_NLS 1
13579_ACEOF
13580
13581    else
13582      USE_NLS=no
13583    fi
13584  fi
13585
13586  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13587echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13588  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13589echo "${ECHO_T}$USE_NLS" >&6; }
13590  if test "$USE_NLS" = "yes"; then
13591    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13592echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13593    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13594      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13595        gt_source="external libintl"
13596      else
13597        gt_source="libc"
13598      fi
13599    else
13600      gt_source="included intl directory"
13601    fi
13602    { echo "$as_me:$LINENO: result: $gt_source" >&5
13603echo "${ECHO_T}$gt_source" >&6; }
13604  fi
13605
13606  if test "$USE_NLS" = "yes"; then
13607
13608    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13609      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13610        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13611echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13612        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13613echo "${ECHO_T}$LIBINTL" >&6; }
13614
13615  for element in $INCINTL; do
13616    haveit=
13617    for x in $CPPFLAGS; do
13618
13619  acl_save_prefix="$prefix"
13620  prefix="$acl_final_prefix"
13621  acl_save_exec_prefix="$exec_prefix"
13622  exec_prefix="$acl_final_exec_prefix"
13623  eval x=\"$x\"
13624  exec_prefix="$acl_save_exec_prefix"
13625  prefix="$acl_save_prefix"
13626
13627      if test "X$x" = "X$element"; then
13628        haveit=yes
13629        break
13630      fi
13631    done
13632    if test -z "$haveit"; then
13633      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13634    fi
13635  done
13636
13637      fi
13638
13639
13640cat >>confdefs.h <<\_ACEOF
13641#define HAVE_GETTEXT 1
13642_ACEOF
13643
13644
13645cat >>confdefs.h <<\_ACEOF
13646#define HAVE_DCGETTEXT 1
13647_ACEOF
13648
13649    fi
13650
13651        POSUB=po
13652  fi
13653
13654
13655            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13656      BUILD_INCLUDED_LIBINTL=yes
13657    fi
13658
13659
13660
13661
13662
13663        nls_cv_header_intl=
13664    nls_cv_header_libgt=
13665
13666        DATADIRNAME=share
13667
13668
13669        INSTOBJEXT=.mo
13670
13671
13672        GENCAT=gencat
13673
13674
13675        if test "$USE_INCLUDED_LIBINTL" = yes; then
13676      INTLOBJS="\$(GETTOBJS)"
13677    fi
13678
13679
13680        INTL_LIBTOOL_SUFFIX_PREFIX=
13681
13682
13683
13684    INTLLIBS="$LIBINTL"
13685
13686
13687
13688
13689
13690
13691
13692
13693{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
13694echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
13695if test "${ac_cv_func_closedir_void+set}" = set; then
13696  echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698  if test "$cross_compiling" = yes; then
13699  ac_cv_func_closedir_void=yes
13700else
13701  cat >conftest.$ac_ext <<_ACEOF
13702/* confdefs.h.  */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h.  */
13707$ac_includes_default
13708#include <$ac_header_dirent>
13709#ifndef __cplusplus
13710int closedir ();
13711#endif
13712
13713int
13714main ()
13715{
13716return closedir (opendir (".")) != 0;
13717  ;
13718  return 0;
13719}
13720_ACEOF
13721rm -f conftest$ac_exeext
13722if { (ac_try="$ac_link"
13723case "(($ac_try" in
13724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725  *) ac_try_echo=$ac_try;;
13726esac
13727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728  (eval "$ac_link") 2>&5
13729  ac_status=$?
13730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13732  { (case "(($ac_try" in
13733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734  *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737  (eval "$ac_try") 2>&5
13738  ac_status=$?
13739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740  (exit $ac_status); }; }; then
13741  ac_cv_func_closedir_void=no
13742else
13743  echo "$as_me: program exited with status $ac_status" >&5
13744echo "$as_me: failed program was:" >&5
13745sed 's/^/| /' conftest.$ac_ext >&5
13746
13747( exit $ac_status )
13748ac_cv_func_closedir_void=yes
13749fi
13750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13751fi
13752
13753
13754fi
13755{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
13756echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
13757if test $ac_cv_func_closedir_void = yes; then
13758
13759cat >>confdefs.h <<\_ACEOF
13760#define CLOSEDIR_VOID 1
13761_ACEOF
13762
13763fi
13764
13765
13766for ac_header in vfork.h
13767do
13768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13770  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13773  echo $ECHO_N "(cached) $ECHO_C" >&6
13774fi
13775ac_res=`eval echo '${'$as_ac_Header'}'`
13776	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13777echo "${ECHO_T}$ac_res" >&6; }
13778else
13779  # Is the header compilable?
13780{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13782cat >conftest.$ac_ext <<_ACEOF
13783/* confdefs.h.  */
13784_ACEOF
13785cat confdefs.h >>conftest.$ac_ext
13786cat >>conftest.$ac_ext <<_ACEOF
13787/* end confdefs.h.  */
13788$ac_includes_default
13789#include <$ac_header>
13790_ACEOF
13791rm -f conftest.$ac_objext
13792if { (ac_try="$ac_compile"
13793case "(($ac_try" in
13794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795  *) ac_try_echo=$ac_try;;
13796esac
13797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798  (eval "$ac_compile") 2>conftest.er1
13799  ac_status=$?
13800  grep -v '^ *+' conftest.er1 >conftest.err
13801  rm -f conftest.er1
13802  cat conftest.err >&5
13803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804  (exit $ac_status); } && {
13805	 test -z "$ac_c_werror_flag" ||
13806	 test ! -s conftest.err
13807       } && test -s conftest.$ac_objext; then
13808  ac_header_compiler=yes
13809else
13810  echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813	ac_header_compiler=no
13814fi
13815
13816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13818echo "${ECHO_T}$ac_header_compiler" >&6; }
13819
13820# Is the header present?
13821{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13823cat >conftest.$ac_ext <<_ACEOF
13824/* confdefs.h.  */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h.  */
13829#include <$ac_header>
13830_ACEOF
13831if { (ac_try="$ac_cpp conftest.$ac_ext"
13832case "(($ac_try" in
13833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834  *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13838  ac_status=$?
13839  grep -v '^ *+' conftest.er1 >conftest.err
13840  rm -f conftest.er1
13841  cat conftest.err >&5
13842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843  (exit $ac_status); } >/dev/null && {
13844	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13845	 test ! -s conftest.err
13846       }; then
13847  ac_header_preproc=yes
13848else
13849  echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
13852  ac_header_preproc=no
13853fi
13854
13855rm -f conftest.err conftest.$ac_ext
13856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857echo "${ECHO_T}$ac_header_preproc" >&6; }
13858
13859# So?  What about this header?
13860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861  yes:no: )
13862    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866    ac_header_preproc=yes
13867    ;;
13868  no:yes:* )
13869    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13872echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13873    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13876echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13881    ( cat <<\_ASBOX
13882## ------------------------------------------------------------ ##
13883## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
13884## ------------------------------------------------------------ ##
13885_ASBOX
13886     ) | sed "s/^/$as_me: WARNING:     /" >&2
13887    ;;
13888esac
13889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13892  echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894  eval "$as_ac_Header=\$ac_header_preproc"
13895fi
13896ac_res=`eval echo '${'$as_ac_Header'}'`
13897	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13898echo "${ECHO_T}$ac_res" >&6; }
13899
13900fi
13901if test `eval echo '${'$as_ac_Header'}'` = yes; then
13902  cat >>confdefs.h <<_ACEOF
13903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13904_ACEOF
13905
13906fi
13907
13908done
13909
13910
13911
13912for ac_func in fork vfork
13913do
13914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13915{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13918  echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920  cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h.  */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h.  */
13926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13928#define $ac_func innocuous_$ac_func
13929
13930/* System header to define __stub macros and hopefully few prototypes,
13931    which can conflict with char $ac_func (); below.
13932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13933    <limits.h> exists even on freestanding compilers.  */
13934
13935#ifdef __STDC__
13936# include <limits.h>
13937#else
13938# include <assert.h>
13939#endif
13940
13941#undef $ac_func
13942
13943/* Override any GCC internal prototype to avoid an error.
13944   Use char because int might match the return type of a GCC
13945   builtin and then its argument prototype would still apply.  */
13946#ifdef __cplusplus
13947extern "C"
13948#endif
13949char $ac_func ();
13950/* The GNU C library defines this for functions which it implements
13951    to always fail with ENOSYS.  Some functions are actually named
13952    something starting with __ and the normal name is an alias.  */
13953#if defined __stub_$ac_func || defined __stub___$ac_func
13954choke me
13955#endif
13956
13957int
13958main ()
13959{
13960return $ac_func ();
13961  ;
13962  return 0;
13963}
13964_ACEOF
13965rm -f conftest.$ac_objext conftest$ac_exeext
13966if { (ac_try="$ac_link"
13967case "(($ac_try" in
13968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969  *) ac_try_echo=$ac_try;;
13970esac
13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972  (eval "$ac_link") 2>conftest.er1
13973  ac_status=$?
13974  grep -v '^ *+' conftest.er1 >conftest.err
13975  rm -f conftest.er1
13976  cat conftest.err >&5
13977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978  (exit $ac_status); } && {
13979	 test -z "$ac_c_werror_flag" ||
13980	 test ! -s conftest.err
13981       } && test -s conftest$ac_exeext &&
13982       $as_test_x conftest$ac_exeext; then
13983  eval "$as_ac_var=yes"
13984else
13985  echo "$as_me: failed program was:" >&5
13986sed 's/^/| /' conftest.$ac_ext >&5
13987
13988	eval "$as_ac_var=no"
13989fi
13990
13991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13992      conftest$ac_exeext conftest.$ac_ext
13993fi
13994ac_res=`eval echo '${'$as_ac_var'}'`
13995	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13996echo "${ECHO_T}$ac_res" >&6; }
13997if test `eval echo '${'$as_ac_var'}'` = yes; then
13998  cat >>confdefs.h <<_ACEOF
13999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14000_ACEOF
14001
14002fi
14003done
14004
14005if test "x$ac_cv_func_fork" = xyes; then
14006  { echo "$as_me:$LINENO: checking for working fork" >&5
14007echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
14008if test "${ac_cv_func_fork_works+set}" = set; then
14009  echo $ECHO_N "(cached) $ECHO_C" >&6
14010else
14011  if test "$cross_compiling" = yes; then
14012  ac_cv_func_fork_works=cross
14013else
14014  cat >conftest.$ac_ext <<_ACEOF
14015/* confdefs.h.  */
14016_ACEOF
14017cat confdefs.h >>conftest.$ac_ext
14018cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h.  */
14020$ac_includes_default
14021int
14022main ()
14023{
14024
14025	  /* By Ruediger Kuhlmann. */
14026	  return fork () < 0;
14027
14028  ;
14029  return 0;
14030}
14031_ACEOF
14032rm -f conftest$ac_exeext
14033if { (ac_try="$ac_link"
14034case "(($ac_try" in
14035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036  *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039  (eval "$ac_link") 2>&5
14040  ac_status=$?
14041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14043  { (case "(($ac_try" in
14044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045  *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048  (eval "$ac_try") 2>&5
14049  ac_status=$?
14050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051  (exit $ac_status); }; }; then
14052  ac_cv_func_fork_works=yes
14053else
14054  echo "$as_me: program exited with status $ac_status" >&5
14055echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058( exit $ac_status )
14059ac_cv_func_fork_works=no
14060fi
14061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14062fi
14063
14064
14065fi
14066{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14067echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
14068
14069else
14070  ac_cv_func_fork_works=$ac_cv_func_fork
14071fi
14072if test "x$ac_cv_func_fork_works" = xcross; then
14073  case $host in
14074    *-*-amigaos* | *-*-msdosdjgpp*)
14075      # Override, as these systems have only a dummy fork() stub
14076      ac_cv_func_fork_works=no
14077      ;;
14078    *)
14079      ac_cv_func_fork_works=yes
14080      ;;
14081  esac
14082  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14083echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14084fi
14085ac_cv_func_vfork_works=$ac_cv_func_vfork
14086if test "x$ac_cv_func_vfork" = xyes; then
14087  { echo "$as_me:$LINENO: checking for working vfork" >&5
14088echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
14089if test "${ac_cv_func_vfork_works+set}" = set; then
14090  echo $ECHO_N "(cached) $ECHO_C" >&6
14091else
14092  if test "$cross_compiling" = yes; then
14093  ac_cv_func_vfork_works=cross
14094else
14095  cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h.  */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h.  */
14101/* Thanks to Paul Eggert for this test.  */
14102$ac_includes_default
14103#include <sys/wait.h>
14104#ifdef HAVE_VFORK_H
14105# include <vfork.h>
14106#endif
14107/* On some sparc systems, changes by the child to local and incoming
14108   argument registers are propagated back to the parent.  The compiler
14109   is told about this with #include <vfork.h>, but some compilers
14110   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14111   static variable whose address is put into a register that is
14112   clobbered by the vfork.  */
14113static void
14114#ifdef __cplusplus
14115sparc_address_test (int arg)
14116# else
14117sparc_address_test (arg) int arg;
14118#endif
14119{
14120  static pid_t child;
14121  if (!child) {
14122    child = vfork ();
14123    if (child < 0) {
14124      perror ("vfork");
14125      _exit(2);
14126    }
14127    if (!child) {
14128      arg = getpid();
14129      write(-1, "", 0);
14130      _exit (arg);
14131    }
14132  }
14133}
14134
14135int
14136main ()
14137{
14138  pid_t parent = getpid ();
14139  pid_t child;
14140
14141  sparc_address_test (0);
14142
14143  child = vfork ();
14144
14145  if (child == 0) {
14146    /* Here is another test for sparc vfork register problems.  This
14147       test uses lots of local variables, at least as many local
14148       variables as main has allocated so far including compiler
14149       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14150       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14151       reuse the register of parent for one of the local variables,
14152       since it will think that parent can't possibly be used any more
14153       in this routine.  Assigning to the local variable will thus
14154       munge parent in the parent process.  */
14155    pid_t
14156      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14157      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14158    /* Convince the compiler that p..p7 are live; otherwise, it might
14159       use the same hardware register for all 8 local variables.  */
14160    if (p != p1 || p != p2 || p != p3 || p != p4
14161	|| p != p5 || p != p6 || p != p7)
14162      _exit(1);
14163
14164    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14165       from child file descriptors.  If the child closes a descriptor
14166       before it execs or exits, this munges the parent's descriptor
14167       as well.  Test for this by closing stdout in the child.  */
14168    _exit(close(fileno(stdout)) != 0);
14169  } else {
14170    int status;
14171    struct stat st;
14172
14173    while (wait(&status) != child)
14174      ;
14175    return (
14176	 /* Was there some problem with vforking?  */
14177	 child < 0
14178
14179	 /* Did the child fail?  (This shouldn't happen.)  */
14180	 || status
14181
14182	 /* Did the vfork/compiler bug occur?  */
14183	 || parent != getpid()
14184
14185	 /* Did the file descriptor bug occur?  */
14186	 || fstat(fileno(stdout), &st) != 0
14187	 );
14188  }
14189}
14190_ACEOF
14191rm -f conftest$ac_exeext
14192if { (ac_try="$ac_link"
14193case "(($ac_try" in
14194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195  *) ac_try_echo=$ac_try;;
14196esac
14197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198  (eval "$ac_link") 2>&5
14199  ac_status=$?
14200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14202  { (case "(($ac_try" in
14203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204  *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207  (eval "$ac_try") 2>&5
14208  ac_status=$?
14209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210  (exit $ac_status); }; }; then
14211  ac_cv_func_vfork_works=yes
14212else
14213  echo "$as_me: program exited with status $ac_status" >&5
14214echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217( exit $ac_status )
14218ac_cv_func_vfork_works=no
14219fi
14220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14221fi
14222
14223
14224fi
14225{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14226echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
14227
14228fi;
14229if test "x$ac_cv_func_fork_works" = xcross; then
14230  ac_cv_func_vfork_works=$ac_cv_func_vfork
14231  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14232echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14233fi
14234
14235if test "x$ac_cv_func_vfork_works" = xyes; then
14236
14237cat >>confdefs.h <<\_ACEOF
14238#define HAVE_WORKING_VFORK 1
14239_ACEOF
14240
14241else
14242
14243cat >>confdefs.h <<\_ACEOF
14244#define vfork fork
14245_ACEOF
14246
14247fi
14248if test "x$ac_cv_func_fork_works" = xyes; then
14249
14250cat >>confdefs.h <<\_ACEOF
14251#define HAVE_WORKING_FORK 1
14252_ACEOF
14253
14254fi
14255
14256if test $ac_cv_c_compiler_gnu = yes; then
14257    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
14258echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
14259if test "${ac_cv_prog_gcc_traditional+set}" = set; then
14260  echo $ECHO_N "(cached) $ECHO_C" >&6
14261else
14262    ac_pattern="Autoconf.*'x'"
14263  cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h.  */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h.  */
14269#include <sgtty.h>
14270Autoconf TIOCGETP
14271_ACEOF
14272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14273  $EGREP "$ac_pattern" >/dev/null 2>&1; then
14274  ac_cv_prog_gcc_traditional=yes
14275else
14276  ac_cv_prog_gcc_traditional=no
14277fi
14278rm -f conftest*
14279
14280
14281  if test $ac_cv_prog_gcc_traditional = no; then
14282    cat >conftest.$ac_ext <<_ACEOF
14283/* confdefs.h.  */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h.  */
14288#include <termio.h>
14289Autoconf TCGETA
14290_ACEOF
14291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14292  $EGREP "$ac_pattern" >/dev/null 2>&1; then
14293  ac_cv_prog_gcc_traditional=yes
14294fi
14295rm -f conftest*
14296
14297  fi
14298fi
14299{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14300echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
14301  if test $ac_cv_prog_gcc_traditional = yes; then
14302    CC="$CC -traditional"
14303  fi
14304fi
14305
14306
14307for ac_header in stdlib.h
14308do
14309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14311  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14314  echo $ECHO_N "(cached) $ECHO_C" >&6
14315fi
14316ac_res=`eval echo '${'$as_ac_Header'}'`
14317	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14318echo "${ECHO_T}$ac_res" >&6; }
14319else
14320  # Is the header compilable?
14321{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14323cat >conftest.$ac_ext <<_ACEOF
14324/* confdefs.h.  */
14325_ACEOF
14326cat confdefs.h >>conftest.$ac_ext
14327cat >>conftest.$ac_ext <<_ACEOF
14328/* end confdefs.h.  */
14329$ac_includes_default
14330#include <$ac_header>
14331_ACEOF
14332rm -f conftest.$ac_objext
14333if { (ac_try="$ac_compile"
14334case "(($ac_try" in
14335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336  *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339  (eval "$ac_compile") 2>conftest.er1
14340  ac_status=$?
14341  grep -v '^ *+' conftest.er1 >conftest.err
14342  rm -f conftest.er1
14343  cat conftest.err >&5
14344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345  (exit $ac_status); } && {
14346	 test -z "$ac_c_werror_flag" ||
14347	 test ! -s conftest.err
14348       } && test -s conftest.$ac_objext; then
14349  ac_header_compiler=yes
14350else
14351  echo "$as_me: failed program was:" >&5
14352sed 's/^/| /' conftest.$ac_ext >&5
14353
14354	ac_header_compiler=no
14355fi
14356
14357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14359echo "${ECHO_T}$ac_header_compiler" >&6; }
14360
14361# Is the header present?
14362{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14364cat >conftest.$ac_ext <<_ACEOF
14365/* confdefs.h.  */
14366_ACEOF
14367cat confdefs.h >>conftest.$ac_ext
14368cat >>conftest.$ac_ext <<_ACEOF
14369/* end confdefs.h.  */
14370#include <$ac_header>
14371_ACEOF
14372if { (ac_try="$ac_cpp conftest.$ac_ext"
14373case "(($ac_try" in
14374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375  *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14379  ac_status=$?
14380  grep -v '^ *+' conftest.er1 >conftest.err
14381  rm -f conftest.er1
14382  cat conftest.err >&5
14383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384  (exit $ac_status); } >/dev/null && {
14385	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14386	 test ! -s conftest.err
14387       }; then
14388  ac_header_preproc=yes
14389else
14390  echo "$as_me: failed program was:" >&5
14391sed 's/^/| /' conftest.$ac_ext >&5
14392
14393  ac_header_preproc=no
14394fi
14395
14396rm -f conftest.err conftest.$ac_ext
14397{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398echo "${ECHO_T}$ac_header_preproc" >&6; }
14399
14400# So?  What about this header?
14401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14402  yes:no: )
14403    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14406echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14407    ac_header_preproc=yes
14408    ;;
14409  no:yes:* )
14410    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14411echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14412    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14413echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14414    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14415echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14416    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14417echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14420    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14421echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14422    ( cat <<\_ASBOX
14423## ------------------------------------------------------------ ##
14424## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
14425## ------------------------------------------------------------ ##
14426_ASBOX
14427     ) | sed "s/^/$as_me: WARNING:     /" >&2
14428    ;;
14429esac
14430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14433  echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435  eval "$as_ac_Header=\$ac_header_preproc"
14436fi
14437ac_res=`eval echo '${'$as_ac_Header'}'`
14438	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14439echo "${ECHO_T}$ac_res" >&6; }
14440
14441fi
14442if test `eval echo '${'$as_ac_Header'}'` = yes; then
14443  cat >>confdefs.h <<_ACEOF
14444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14445_ACEOF
14446
14447fi
14448
14449done
14450
14451{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14452echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
14453if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14454  echo $ECHO_N "(cached) $ECHO_C" >&6
14455else
14456  if test "$cross_compiling" = yes; then
14457  ac_cv_func_malloc_0_nonnull=no
14458else
14459  cat >conftest.$ac_ext <<_ACEOF
14460/* confdefs.h.  */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h.  */
14465#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14466# include <stdlib.h>
14467#else
14468char *malloc ();
14469#endif
14470
14471int
14472main ()
14473{
14474return ! malloc (0);
14475  ;
14476  return 0;
14477}
14478_ACEOF
14479rm -f conftest$ac_exeext
14480if { (ac_try="$ac_link"
14481case "(($ac_try" in
14482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483  *) ac_try_echo=$ac_try;;
14484esac
14485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486  (eval "$ac_link") 2>&5
14487  ac_status=$?
14488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14490  { (case "(($ac_try" in
14491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492  *) ac_try_echo=$ac_try;;
14493esac
14494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495  (eval "$ac_try") 2>&5
14496  ac_status=$?
14497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498  (exit $ac_status); }; }; then
14499  ac_cv_func_malloc_0_nonnull=yes
14500else
14501  echo "$as_me: program exited with status $ac_status" >&5
14502echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505( exit $ac_status )
14506ac_cv_func_malloc_0_nonnull=no
14507fi
14508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14509fi
14510
14511
14512fi
14513{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14514echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
14515if test $ac_cv_func_malloc_0_nonnull = yes; then
14516
14517cat >>confdefs.h <<\_ACEOF
14518#define HAVE_MALLOC 1
14519_ACEOF
14520
14521else
14522  cat >>confdefs.h <<\_ACEOF
14523#define HAVE_MALLOC 0
14524_ACEOF
14525
14526   case " $LIBOBJS " in
14527  *" malloc.$ac_objext "* ) ;;
14528  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14529 ;;
14530esac
14531
14532
14533cat >>confdefs.h <<\_ACEOF
14534#define malloc rpl_malloc
14535_ACEOF
14536
14537fi
14538
14539
14540
14541{ echo "$as_me:$LINENO: checking for working memcmp" >&5
14542echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
14543if test "${ac_cv_func_memcmp_working+set}" = set; then
14544  echo $ECHO_N "(cached) $ECHO_C" >&6
14545else
14546  if test "$cross_compiling" = yes; then
14547  ac_cv_func_memcmp_working=no
14548else
14549  cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h.  */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h.  */
14555$ac_includes_default
14556int
14557main ()
14558{
14559
14560  /* Some versions of memcmp are not 8-bit clean.  */
14561  char c0 = '\100', c1 = '\200', c2 = '\201';
14562  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14563    return 1;
14564
14565  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14566     or more and with at least one buffer not starting on a 4-byte boundary.
14567     William Lewis provided this test program.   */
14568  {
14569    char foo[21];
14570    char bar[21];
14571    int i;
14572    for (i = 0; i < 4; i++)
14573      {
14574	char *a = foo + i;
14575	char *b = bar + i;
14576	strcpy (a, "--------01111111");
14577	strcpy (b, "--------10000000");
14578	if (memcmp (a, b, 16) >= 0)
14579	  return 1;
14580      }
14581    return 0;
14582  }
14583
14584  ;
14585  return 0;
14586}
14587_ACEOF
14588rm -f conftest$ac_exeext
14589if { (ac_try="$ac_link"
14590case "(($ac_try" in
14591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592  *) ac_try_echo=$ac_try;;
14593esac
14594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595  (eval "$ac_link") 2>&5
14596  ac_status=$?
14597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14599  { (case "(($ac_try" in
14600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601  *) ac_try_echo=$ac_try;;
14602esac
14603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604  (eval "$ac_try") 2>&5
14605  ac_status=$?
14606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607  (exit $ac_status); }; }; then
14608  ac_cv_func_memcmp_working=yes
14609else
14610  echo "$as_me: program exited with status $ac_status" >&5
14611echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
14614( exit $ac_status )
14615ac_cv_func_memcmp_working=no
14616fi
14617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14618fi
14619
14620
14621fi
14622{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14623echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
14624test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14625  *" memcmp.$ac_objext "* ) ;;
14626  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14627 ;;
14628esac
14629
14630
14631
14632for ac_header in stdlib.h
14633do
14634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14639  echo $ECHO_N "(cached) $ECHO_C" >&6
14640fi
14641ac_res=`eval echo '${'$as_ac_Header'}'`
14642	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14643echo "${ECHO_T}$ac_res" >&6; }
14644else
14645  # Is the header compilable?
14646{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14648cat >conftest.$ac_ext <<_ACEOF
14649/* confdefs.h.  */
14650_ACEOF
14651cat confdefs.h >>conftest.$ac_ext
14652cat >>conftest.$ac_ext <<_ACEOF
14653/* end confdefs.h.  */
14654$ac_includes_default
14655#include <$ac_header>
14656_ACEOF
14657rm -f conftest.$ac_objext
14658if { (ac_try="$ac_compile"
14659case "(($ac_try" in
14660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661  *) ac_try_echo=$ac_try;;
14662esac
14663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664  (eval "$ac_compile") 2>conftest.er1
14665  ac_status=$?
14666  grep -v '^ *+' conftest.er1 >conftest.err
14667  rm -f conftest.er1
14668  cat conftest.err >&5
14669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670  (exit $ac_status); } && {
14671	 test -z "$ac_c_werror_flag" ||
14672	 test ! -s conftest.err
14673       } && test -s conftest.$ac_objext; then
14674  ac_header_compiler=yes
14675else
14676  echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679	ac_header_compiler=no
14680fi
14681
14682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684echo "${ECHO_T}$ac_header_compiler" >&6; }
14685
14686# Is the header present?
14687{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14689cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h.  */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h.  */
14695#include <$ac_header>
14696_ACEOF
14697if { (ac_try="$ac_cpp conftest.$ac_ext"
14698case "(($ac_try" in
14699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700  *) ac_try_echo=$ac_try;;
14701esac
14702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14704  ac_status=$?
14705  grep -v '^ *+' conftest.er1 >conftest.err
14706  rm -f conftest.er1
14707  cat conftest.err >&5
14708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709  (exit $ac_status); } >/dev/null && {
14710	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711	 test ! -s conftest.err
14712       }; then
14713  ac_header_preproc=yes
14714else
14715  echo "$as_me: failed program was:" >&5
14716sed 's/^/| /' conftest.$ac_ext >&5
14717
14718  ac_header_preproc=no
14719fi
14720
14721rm -f conftest.err conftest.$ac_ext
14722{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723echo "${ECHO_T}$ac_header_preproc" >&6; }
14724
14725# So?  What about this header?
14726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14727  yes:no: )
14728    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14732    ac_header_preproc=yes
14733    ;;
14734  no:yes:* )
14735    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14737    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14738echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14739    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14741    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14742echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14743    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14745    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14747    ( cat <<\_ASBOX
14748## ------------------------------------------------------------ ##
14749## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
14750## ------------------------------------------------------------ ##
14751_ASBOX
14752     ) | sed "s/^/$as_me: WARNING:     /" >&2
14753    ;;
14754esac
14755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14758  echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760  eval "$as_ac_Header=\$ac_header_preproc"
14761fi
14762ac_res=`eval echo '${'$as_ac_Header'}'`
14763	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14764echo "${ECHO_T}$ac_res" >&6; }
14765
14766fi
14767if test `eval echo '${'$as_ac_Header'}'` = yes; then
14768  cat >>confdefs.h <<_ACEOF
14769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14770_ACEOF
14771
14772fi
14773
14774done
14775
14776{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14777echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
14778if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14779  echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781  if test "$cross_compiling" = yes; then
14782  ac_cv_func_realloc_0_nonnull=no
14783else
14784  cat >conftest.$ac_ext <<_ACEOF
14785/* confdefs.h.  */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h.  */
14790#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14791# include <stdlib.h>
14792#else
14793char *realloc ();
14794#endif
14795
14796int
14797main ()
14798{
14799return ! realloc (0, 0);
14800  ;
14801  return 0;
14802}
14803_ACEOF
14804rm -f conftest$ac_exeext
14805if { (ac_try="$ac_link"
14806case "(($ac_try" in
14807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808  *) ac_try_echo=$ac_try;;
14809esac
14810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811  (eval "$ac_link") 2>&5
14812  ac_status=$?
14813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14815  { (case "(($ac_try" in
14816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817  *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820  (eval "$ac_try") 2>&5
14821  ac_status=$?
14822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823  (exit $ac_status); }; }; then
14824  ac_cv_func_realloc_0_nonnull=yes
14825else
14826  echo "$as_me: program exited with status $ac_status" >&5
14827echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
14830( exit $ac_status )
14831ac_cv_func_realloc_0_nonnull=no
14832fi
14833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14834fi
14835
14836
14837fi
14838{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14839echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
14840if test $ac_cv_func_realloc_0_nonnull = yes; then
14841
14842cat >>confdefs.h <<\_ACEOF
14843#define HAVE_REALLOC 1
14844_ACEOF
14845
14846else
14847  cat >>confdefs.h <<\_ACEOF
14848#define HAVE_REALLOC 0
14849_ACEOF
14850
14851   case " $LIBOBJS " in
14852  *" realloc.$ac_objext "* ) ;;
14853  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
14854 ;;
14855esac
14856
14857
14858cat >>confdefs.h <<\_ACEOF
14859#define realloc rpl_realloc
14860_ACEOF
14861
14862fi
14863
14864
14865
14866
14867
14868for ac_header in sys/select.h sys/socket.h
14869do
14870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14872  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875  echo $ECHO_N "(cached) $ECHO_C" >&6
14876fi
14877ac_res=`eval echo '${'$as_ac_Header'}'`
14878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14879echo "${ECHO_T}$ac_res" >&6; }
14880else
14881  # Is the header compilable?
14882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14884cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h.  */
14886_ACEOF
14887cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h.  */
14890$ac_includes_default
14891#include <$ac_header>
14892_ACEOF
14893rm -f conftest.$ac_objext
14894if { (ac_try="$ac_compile"
14895case "(($ac_try" in
14896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897  *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900  (eval "$ac_compile") 2>conftest.er1
14901  ac_status=$?
14902  grep -v '^ *+' conftest.er1 >conftest.err
14903  rm -f conftest.er1
14904  cat conftest.err >&5
14905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906  (exit $ac_status); } && {
14907	 test -z "$ac_c_werror_flag" ||
14908	 test ! -s conftest.err
14909       } && test -s conftest.$ac_objext; then
14910  ac_header_compiler=yes
14911else
14912  echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915	ac_header_compiler=no
14916fi
14917
14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14920echo "${ECHO_T}$ac_header_compiler" >&6; }
14921
14922# Is the header present?
14923{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14925cat >conftest.$ac_ext <<_ACEOF
14926/* confdefs.h.  */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h.  */
14931#include <$ac_header>
14932_ACEOF
14933if { (ac_try="$ac_cpp conftest.$ac_ext"
14934case "(($ac_try" in
14935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936  *) ac_try_echo=$ac_try;;
14937esac
14938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940  ac_status=$?
14941  grep -v '^ *+' conftest.er1 >conftest.err
14942  rm -f conftest.er1
14943  cat conftest.err >&5
14944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945  (exit $ac_status); } >/dev/null && {
14946	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14947	 test ! -s conftest.err
14948       }; then
14949  ac_header_preproc=yes
14950else
14951  echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
14954  ac_header_preproc=no
14955fi
14956
14957rm -f conftest.err conftest.$ac_ext
14958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14959echo "${ECHO_T}$ac_header_preproc" >&6; }
14960
14961# So?  What about this header?
14962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14963  yes:no: )
14964    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14966    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14968    ac_header_preproc=yes
14969    ;;
14970  no:yes:* )
14971    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14973    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14974echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14975    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14977    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14978echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14979    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14981    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14983    ( cat <<\_ASBOX
14984## ------------------------------------------------------------ ##
14985## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
14986## ------------------------------------------------------------ ##
14987_ASBOX
14988     ) | sed "s/^/$as_me: WARNING:     /" >&2
14989    ;;
14990esac
14991{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994  echo $ECHO_N "(cached) $ECHO_C" >&6
14995else
14996  eval "$as_ac_Header=\$ac_header_preproc"
14997fi
14998ac_res=`eval echo '${'$as_ac_Header'}'`
14999	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15000echo "${ECHO_T}$ac_res" >&6; }
15001
15002fi
15003if test `eval echo '${'$as_ac_Header'}'` = yes; then
15004  cat >>confdefs.h <<_ACEOF
15005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15006_ACEOF
15007
15008fi
15009
15010done
15011
15012{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
15013echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
15014if test "${ac_cv_func_select_args+set}" = set; then
15015  echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
15017  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15018 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15019  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15020   cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h.  */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h.  */
15026$ac_includes_default
15027#ifdef HAVE_SYS_SELECT_H
15028# include <sys/select.h>
15029#endif
15030#ifdef HAVE_SYS_SOCKET_H
15031# include <sys/socket.h>
15032#endif
15033
15034int
15035main ()
15036{
15037extern int select ($ac_arg1,
15038					    $ac_arg234, $ac_arg234, $ac_arg234,
15039					    $ac_arg5);
15040  ;
15041  return 0;
15042}
15043_ACEOF
15044rm -f conftest.$ac_objext
15045if { (ac_try="$ac_compile"
15046case "(($ac_try" in
15047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048  *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051  (eval "$ac_compile") 2>conftest.er1
15052  ac_status=$?
15053  grep -v '^ *+' conftest.er1 >conftest.err
15054  rm -f conftest.er1
15055  cat conftest.err >&5
15056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057  (exit $ac_status); } && {
15058	 test -z "$ac_c_werror_flag" ||
15059	 test ! -s conftest.err
15060       } && test -s conftest.$ac_objext; then
15061  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15062else
15063  echo "$as_me: failed program was:" >&5
15064sed 's/^/| /' conftest.$ac_ext >&5
15065
15066
15067fi
15068
15069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070  done
15071 done
15072done
15073# Provide a safe default value.
15074: ${ac_cv_func_select_args='int,int *,struct timeval *'}
15075
15076fi
15077{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15078echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
15079ac_save_IFS=$IFS; IFS=','
15080set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15081IFS=$ac_save_IFS
15082shift
15083
15084cat >>confdefs.h <<_ACEOF
15085#define SELECT_TYPE_ARG1 $1
15086_ACEOF
15087
15088
15089cat >>confdefs.h <<_ACEOF
15090#define SELECT_TYPE_ARG234 ($2)
15091_ACEOF
15092
15093
15094cat >>confdefs.h <<_ACEOF
15095#define SELECT_TYPE_ARG5 ($3)
15096_ACEOF
15097
15098rm -f conftest*
15099
15100{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15101echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
15102if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15103  echo $ECHO_N "(cached) $ECHO_C" >&6
15104else
15105  rm -f conftest.sym conftest.file
15106echo >conftest.file
15107if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15108  if test "$cross_compiling" = yes; then
15109  ac_cv_func_lstat_dereferences_slashed_symlink=no
15110else
15111  cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h.  */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h.  */
15117$ac_includes_default
15118int
15119main ()
15120{
15121struct stat sbuf;
15122     /* Linux will dereference the symlink and fail.
15123	That is better in the sense that it means we will not
15124	have to compile and use the lstat wrapper.  */
15125     return lstat ("conftest.sym/", &sbuf) == 0;
15126  ;
15127  return 0;
15128}
15129_ACEOF
15130rm -f conftest$ac_exeext
15131if { (ac_try="$ac_link"
15132case "(($ac_try" in
15133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134  *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137  (eval "$ac_link") 2>&5
15138  ac_status=$?
15139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15141  { (case "(($ac_try" in
15142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143  *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146  (eval "$ac_try") 2>&5
15147  ac_status=$?
15148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149  (exit $ac_status); }; }; then
15150  ac_cv_func_lstat_dereferences_slashed_symlink=yes
15151else
15152  echo "$as_me: program exited with status $ac_status" >&5
15153echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156( exit $ac_status )
15157ac_cv_func_lstat_dereferences_slashed_symlink=no
15158fi
15159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15160fi
15161
15162
15163else
15164  # If the `ln -s' command failed, then we probably don't even
15165  # have an lstat function.
15166  ac_cv_func_lstat_dereferences_slashed_symlink=no
15167fi
15168rm -f conftest.sym conftest.file
15169
15170fi
15171{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15172echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15173
15174test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15175
15176cat >>confdefs.h <<_ACEOF
15177#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15178_ACEOF
15179
15180
15181if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15182  case " $LIBOBJS " in
15183  *" lstat.$ac_objext "* ) ;;
15184  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15185 ;;
15186esac
15187
15188fi
15189
15190{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
15191echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
15192if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
15193  echo $ECHO_N "(cached) $ECHO_C" >&6
15194else
15195  if test "$cross_compiling" = yes; then
15196  ac_cv_func_stat_empty_string_bug=yes
15197else
15198  cat >conftest.$ac_ext <<_ACEOF
15199/* confdefs.h.  */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
15203/* end confdefs.h.  */
15204$ac_includes_default
15205int
15206main ()
15207{
15208struct stat sbuf;
15209  return stat ("", &sbuf) == 0;
15210  ;
15211  return 0;
15212}
15213_ACEOF
15214rm -f conftest$ac_exeext
15215if { (ac_try="$ac_link"
15216case "(($ac_try" in
15217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218  *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221  (eval "$ac_link") 2>&5
15222  ac_status=$?
15223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15225  { (case "(($ac_try" in
15226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227  *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230  (eval "$ac_try") 2>&5
15231  ac_status=$?
15232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233  (exit $ac_status); }; }; then
15234  ac_cv_func_stat_empty_string_bug=no
15235else
15236  echo "$as_me: program exited with status $ac_status" >&5
15237echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240( exit $ac_status )
15241ac_cv_func_stat_empty_string_bug=yes
15242fi
15243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15244fi
15245
15246
15247fi
15248{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
15249echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
15250if test $ac_cv_func_stat_empty_string_bug = yes; then
15251  case " $LIBOBJS " in
15252  *" stat.$ac_objext "* ) ;;
15253  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15254 ;;
15255esac
15256
15257
15258cat >>confdefs.h <<_ACEOF
15259#define HAVE_STAT_EMPTY_STRING_BUG 1
15260_ACEOF
15261
15262fi
15263
15264{ echo "$as_me:$LINENO: checking for working strtod" >&5
15265echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
15266if test "${ac_cv_func_strtod+set}" = set; then
15267  echo $ECHO_N "(cached) $ECHO_C" >&6
15268else
15269  if test "$cross_compiling" = yes; then
15270  ac_cv_func_strtod=no
15271else
15272  cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h.  */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h.  */
15278
15279$ac_includes_default
15280#ifndef strtod
15281double strtod ();
15282#endif
15283int
15284main()
15285{
15286  {
15287    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
15288    char *string = " +69";
15289    char *term;
15290    double value;
15291    value = strtod (string, &term);
15292    if (value != 69 || term != (string + 4))
15293      return 1;
15294  }
15295
15296  {
15297    /* Under Solaris 2.4, strtod returns the wrong value for the
15298       terminating character under some conditions.  */
15299    char *string = "NaN";
15300    char *term;
15301    strtod (string, &term);
15302    if (term != string && *(term - 1) == 0)
15303      return 1;
15304  }
15305  return 0;
15306}
15307
15308_ACEOF
15309rm -f conftest$ac_exeext
15310if { (ac_try="$ac_link"
15311case "(($ac_try" in
15312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313  *) ac_try_echo=$ac_try;;
15314esac
15315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316  (eval "$ac_link") 2>&5
15317  ac_status=$?
15318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15320  { (case "(($ac_try" in
15321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322  *) ac_try_echo=$ac_try;;
15323esac
15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325  (eval "$ac_try") 2>&5
15326  ac_status=$?
15327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328  (exit $ac_status); }; }; then
15329  ac_cv_func_strtod=yes
15330else
15331  echo "$as_me: program exited with status $ac_status" >&5
15332echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335( exit $ac_status )
15336ac_cv_func_strtod=no
15337fi
15338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15339fi
15340
15341
15342fi
15343{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
15344echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
15345if test $ac_cv_func_strtod = no; then
15346  case " $LIBOBJS " in
15347  *" strtod.$ac_objext "* ) ;;
15348  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15349 ;;
15350esac
15351
15352{ echo "$as_me:$LINENO: checking for pow" >&5
15353echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
15354if test "${ac_cv_func_pow+set}" = set; then
15355  echo $ECHO_N "(cached) $ECHO_C" >&6
15356else
15357  cat >conftest.$ac_ext <<_ACEOF
15358/* confdefs.h.  */
15359_ACEOF
15360cat confdefs.h >>conftest.$ac_ext
15361cat >>conftest.$ac_ext <<_ACEOF
15362/* end confdefs.h.  */
15363/* Define pow to an innocuous variant, in case <limits.h> declares pow.
15364   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15365#define pow innocuous_pow
15366
15367/* System header to define __stub macros and hopefully few prototypes,
15368    which can conflict with char pow (); below.
15369    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15370    <limits.h> exists even on freestanding compilers.  */
15371
15372#ifdef __STDC__
15373# include <limits.h>
15374#else
15375# include <assert.h>
15376#endif
15377
15378#undef pow
15379
15380/* Override any GCC internal prototype to avoid an error.
15381   Use char because int might match the return type of a GCC
15382   builtin and then its argument prototype would still apply.  */
15383#ifdef __cplusplus
15384extern "C"
15385#endif
15386char pow ();
15387/* The GNU C library defines this for functions which it implements
15388    to always fail with ENOSYS.  Some functions are actually named
15389    something starting with __ and the normal name is an alias.  */
15390#if defined __stub_pow || defined __stub___pow
15391choke me
15392#endif
15393
15394int
15395main ()
15396{
15397return pow ();
15398  ;
15399  return 0;
15400}
15401_ACEOF
15402rm -f conftest.$ac_objext conftest$ac_exeext
15403if { (ac_try="$ac_link"
15404case "(($ac_try" in
15405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406  *) ac_try_echo=$ac_try;;
15407esac
15408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409  (eval "$ac_link") 2>conftest.er1
15410  ac_status=$?
15411  grep -v '^ *+' conftest.er1 >conftest.err
15412  rm -f conftest.er1
15413  cat conftest.err >&5
15414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415  (exit $ac_status); } && {
15416	 test -z "$ac_c_werror_flag" ||
15417	 test ! -s conftest.err
15418       } && test -s conftest$ac_exeext &&
15419       $as_test_x conftest$ac_exeext; then
15420  ac_cv_func_pow=yes
15421else
15422  echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425	ac_cv_func_pow=no
15426fi
15427
15428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15429      conftest$ac_exeext conftest.$ac_ext
15430fi
15431{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
15432echo "${ECHO_T}$ac_cv_func_pow" >&6; }
15433
15434if test $ac_cv_func_pow = no; then
15435  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
15436echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
15437if test "${ac_cv_lib_m_pow+set}" = set; then
15438  echo $ECHO_N "(cached) $ECHO_C" >&6
15439else
15440  ac_check_lib_save_LIBS=$LIBS
15441LIBS="-lm  $LIBS"
15442cat >conftest.$ac_ext <<_ACEOF
15443/* confdefs.h.  */
15444_ACEOF
15445cat confdefs.h >>conftest.$ac_ext
15446cat >>conftest.$ac_ext <<_ACEOF
15447/* end confdefs.h.  */
15448
15449/* Override any GCC internal prototype to avoid an error.
15450   Use char because int might match the return type of a GCC
15451   builtin and then its argument prototype would still apply.  */
15452#ifdef __cplusplus
15453extern "C"
15454#endif
15455char pow ();
15456int
15457main ()
15458{
15459return pow ();
15460  ;
15461  return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext conftest$ac_exeext
15465if { (ac_try="$ac_link"
15466case "(($ac_try" in
15467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468  *) ac_try_echo=$ac_try;;
15469esac
15470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471  (eval "$ac_link") 2>conftest.er1
15472  ac_status=$?
15473  grep -v '^ *+' conftest.er1 >conftest.err
15474  rm -f conftest.er1
15475  cat conftest.err >&5
15476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477  (exit $ac_status); } && {
15478	 test -z "$ac_c_werror_flag" ||
15479	 test ! -s conftest.err
15480       } && test -s conftest$ac_exeext &&
15481       $as_test_x conftest$ac_exeext; then
15482  ac_cv_lib_m_pow=yes
15483else
15484  echo "$as_me: failed program was:" >&5
15485sed 's/^/| /' conftest.$ac_ext >&5
15486
15487	ac_cv_lib_m_pow=no
15488fi
15489
15490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491      conftest$ac_exeext conftest.$ac_ext
15492LIBS=$ac_check_lib_save_LIBS
15493fi
15494{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
15495echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
15496if test $ac_cv_lib_m_pow = yes; then
15497  POW_LIB=-lm
15498else
15499  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
15500echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
15501fi
15502
15503fi
15504
15505fi
15506
15507
15508for ac_func in vprintf
15509do
15510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15514  echo $ECHO_N "(cached) $ECHO_C" >&6
15515else
15516  cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h.  */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h.  */
15522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15523   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15524#define $ac_func innocuous_$ac_func
15525
15526/* System header to define __stub macros and hopefully few prototypes,
15527    which can conflict with char $ac_func (); below.
15528    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15529    <limits.h> exists even on freestanding compilers.  */
15530
15531#ifdef __STDC__
15532# include <limits.h>
15533#else
15534# include <assert.h>
15535#endif
15536
15537#undef $ac_func
15538
15539/* Override any GCC internal prototype to avoid an error.
15540   Use char because int might match the return type of a GCC
15541   builtin and then its argument prototype would still apply.  */
15542#ifdef __cplusplus
15543extern "C"
15544#endif
15545char $ac_func ();
15546/* The GNU C library defines this for functions which it implements
15547    to always fail with ENOSYS.  Some functions are actually named
15548    something starting with __ and the normal name is an alias.  */
15549#if defined __stub_$ac_func || defined __stub___$ac_func
15550choke me
15551#endif
15552
15553int
15554main ()
15555{
15556return $ac_func ();
15557  ;
15558  return 0;
15559}
15560_ACEOF
15561rm -f conftest.$ac_objext conftest$ac_exeext
15562if { (ac_try="$ac_link"
15563case "(($ac_try" in
15564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565  *) ac_try_echo=$ac_try;;
15566esac
15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568  (eval "$ac_link") 2>conftest.er1
15569  ac_status=$?
15570  grep -v '^ *+' conftest.er1 >conftest.err
15571  rm -f conftest.er1
15572  cat conftest.err >&5
15573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574  (exit $ac_status); } && {
15575	 test -z "$ac_c_werror_flag" ||
15576	 test ! -s conftest.err
15577       } && test -s conftest$ac_exeext &&
15578       $as_test_x conftest$ac_exeext; then
15579  eval "$as_ac_var=yes"
15580else
15581  echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584	eval "$as_ac_var=no"
15585fi
15586
15587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588      conftest$ac_exeext conftest.$ac_ext
15589fi
15590ac_res=`eval echo '${'$as_ac_var'}'`
15591	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15592echo "${ECHO_T}$ac_res" >&6; }
15593if test `eval echo '${'$as_ac_var'}'` = yes; then
15594  cat >>confdefs.h <<_ACEOF
15595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15596_ACEOF
15597
15598{ echo "$as_me:$LINENO: checking for _doprnt" >&5
15599echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15600if test "${ac_cv_func__doprnt+set}" = set; then
15601  echo $ECHO_N "(cached) $ECHO_C" >&6
15602else
15603  cat >conftest.$ac_ext <<_ACEOF
15604/* confdefs.h.  */
15605_ACEOF
15606cat confdefs.h >>conftest.$ac_ext
15607cat >>conftest.$ac_ext <<_ACEOF
15608/* end confdefs.h.  */
15609/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15610   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15611#define _doprnt innocuous__doprnt
15612
15613/* System header to define __stub macros and hopefully few prototypes,
15614    which can conflict with char _doprnt (); below.
15615    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15616    <limits.h> exists even on freestanding compilers.  */
15617
15618#ifdef __STDC__
15619# include <limits.h>
15620#else
15621# include <assert.h>
15622#endif
15623
15624#undef _doprnt
15625
15626/* Override any GCC internal prototype to avoid an error.
15627   Use char because int might match the return type of a GCC
15628   builtin and then its argument prototype would still apply.  */
15629#ifdef __cplusplus
15630extern "C"
15631#endif
15632char _doprnt ();
15633/* The GNU C library defines this for functions which it implements
15634    to always fail with ENOSYS.  Some functions are actually named
15635    something starting with __ and the normal name is an alias.  */
15636#if defined __stub__doprnt || defined __stub____doprnt
15637choke me
15638#endif
15639
15640int
15641main ()
15642{
15643return _doprnt ();
15644  ;
15645  return 0;
15646}
15647_ACEOF
15648rm -f conftest.$ac_objext conftest$ac_exeext
15649if { (ac_try="$ac_link"
15650case "(($ac_try" in
15651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652  *) ac_try_echo=$ac_try;;
15653esac
15654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655  (eval "$ac_link") 2>conftest.er1
15656  ac_status=$?
15657  grep -v '^ *+' conftest.er1 >conftest.err
15658  rm -f conftest.er1
15659  cat conftest.err >&5
15660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661  (exit $ac_status); } && {
15662	 test -z "$ac_c_werror_flag" ||
15663	 test ! -s conftest.err
15664       } && test -s conftest$ac_exeext &&
15665       $as_test_x conftest$ac_exeext; then
15666  ac_cv_func__doprnt=yes
15667else
15668  echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671	ac_cv_func__doprnt=no
15672fi
15673
15674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15675      conftest$ac_exeext conftest.$ac_ext
15676fi
15677{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15678echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15679if test $ac_cv_func__doprnt = yes; then
15680
15681cat >>confdefs.h <<\_ACEOF
15682#define HAVE_DOPRNT 1
15683_ACEOF
15684
15685fi
15686
15687fi
15688done
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710for ac_func in \
15711	alarm \
15712	atexit \
15713	bzero \
15714	floor \
15715	memset \
15716	regcomp \
15717	select \
15718	setenv \
15719	setlocale \
15720	strcasecmp \
15721	strncasecmp \
15722	strchr \
15723	strdup \
15724	strerror \
15725	strndup \
15726	strrchr \
15727	strstr \
15728	strtol \
15729	strtoul \
15730
15731do
15732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15733{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15736  echo $ECHO_N "(cached) $ECHO_C" >&6
15737else
15738  cat >conftest.$ac_ext <<_ACEOF
15739/* confdefs.h.  */
15740_ACEOF
15741cat confdefs.h >>conftest.$ac_ext
15742cat >>conftest.$ac_ext <<_ACEOF
15743/* end confdefs.h.  */
15744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15745   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15746#define $ac_func innocuous_$ac_func
15747
15748/* System header to define __stub macros and hopefully few prototypes,
15749    which can conflict with char $ac_func (); below.
15750    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15751    <limits.h> exists even on freestanding compilers.  */
15752
15753#ifdef __STDC__
15754# include <limits.h>
15755#else
15756# include <assert.h>
15757#endif
15758
15759#undef $ac_func
15760
15761/* Override any GCC internal prototype to avoid an error.
15762   Use char because int might match the return type of a GCC
15763   builtin and then its argument prototype would still apply.  */
15764#ifdef __cplusplus
15765extern "C"
15766#endif
15767char $ac_func ();
15768/* The GNU C library defines this for functions which it implements
15769    to always fail with ENOSYS.  Some functions are actually named
15770    something starting with __ and the normal name is an alias.  */
15771#if defined __stub_$ac_func || defined __stub___$ac_func
15772choke me
15773#endif
15774
15775int
15776main ()
15777{
15778return $ac_func ();
15779  ;
15780  return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext conftest$ac_exeext
15784if { (ac_try="$ac_link"
15785case "(($ac_try" in
15786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787  *) ac_try_echo=$ac_try;;
15788esac
15789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790  (eval "$ac_link") 2>conftest.er1
15791  ac_status=$?
15792  grep -v '^ *+' conftest.er1 >conftest.err
15793  rm -f conftest.er1
15794  cat conftest.err >&5
15795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796  (exit $ac_status); } && {
15797	 test -z "$ac_c_werror_flag" ||
15798	 test ! -s conftest.err
15799       } && test -s conftest$ac_exeext &&
15800       $as_test_x conftest$ac_exeext; then
15801  eval "$as_ac_var=yes"
15802else
15803  echo "$as_me: failed program was:" >&5
15804sed 's/^/| /' conftest.$ac_ext >&5
15805
15806	eval "$as_ac_var=no"
15807fi
15808
15809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15810      conftest$ac_exeext conftest.$ac_ext
15811fi
15812ac_res=`eval echo '${'$as_ac_var'}'`
15813	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15814echo "${ECHO_T}$ac_res" >&6; }
15815if test `eval echo '${'$as_ac_var'}'` = yes; then
15816  cat >>confdefs.h <<_ACEOF
15817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15818_ACEOF
15819
15820fi
15821done
15822
15823
15824
15825{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
15826echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
15827if test "${lt_cv_path_SED+set}" = set; then
15828  echo $ECHO_N "(cached) $ECHO_C" >&6
15829else
15830  # Loop through the user's path and test for sed and gsed.
15831# Then use that list of sed's as ones to test for truncation.
15832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15833for as_dir in $PATH
15834do
15835  IFS=$as_save_IFS
15836  test -z "$as_dir" && as_dir=.
15837  for lt_ac_prog in sed gsed; do
15838    for ac_exec_ext in '' $ac_executable_extensions; do
15839      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
15840        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
15841      fi
15842    done
15843  done
15844done
15845lt_ac_max=0
15846lt_ac_count=0
15847# Add /usr/xpg4/bin/sed as it is typically found on Solaris
15848# along with /bin/sed that truncates output.
15849for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
15850  test ! -f $lt_ac_sed && continue
15851  cat /dev/null > conftest.in
15852  lt_ac_count=0
15853  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
15854  # Check for GNU sed and select it if it is found.
15855  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
15856    lt_cv_path_SED=$lt_ac_sed
15857    break
15858  fi
15859  while true; do
15860    cat conftest.in conftest.in >conftest.tmp
15861    mv conftest.tmp conftest.in
15862    cp conftest.in conftest.nl
15863    echo >>conftest.nl
15864    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
15865    cmp -s conftest.out conftest.nl || break
15866    # 10000 chars as input seems more than enough
15867    test $lt_ac_count -gt 10 && break
15868    lt_ac_count=`expr $lt_ac_count + 1`
15869    if test $lt_ac_count -gt $lt_ac_max; then
15870      lt_ac_max=$lt_ac_count
15871      lt_cv_path_SED=$lt_ac_sed
15872    fi
15873  done
15874done
15875
15876fi
15877
15878SED=$lt_cv_path_SED
15879{ echo "$as_me:$LINENO: result: $SED" >&5
15880echo "${ECHO_T}$SED" >&6; }
15881
15882
15883for ac_header in dlfcn.h
15884do
15885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15887  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890  echo $ECHO_N "(cached) $ECHO_C" >&6
15891fi
15892ac_res=`eval echo '${'$as_ac_Header'}'`
15893	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15894echo "${ECHO_T}$ac_res" >&6; }
15895else
15896  # Is the header compilable?
15897{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15899cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h.  */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h.  */
15905$ac_includes_default
15906#include <$ac_header>
15907_ACEOF
15908rm -f conftest.$ac_objext
15909if { (ac_try="$ac_compile"
15910case "(($ac_try" in
15911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912  *) ac_try_echo=$ac_try;;
15913esac
15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915  (eval "$ac_compile") 2>conftest.er1
15916  ac_status=$?
15917  grep -v '^ *+' conftest.er1 >conftest.err
15918  rm -f conftest.er1
15919  cat conftest.err >&5
15920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921  (exit $ac_status); } && {
15922	 test -z "$ac_c_werror_flag" ||
15923	 test ! -s conftest.err
15924       } && test -s conftest.$ac_objext; then
15925  ac_header_compiler=yes
15926else
15927  echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930	ac_header_compiler=no
15931fi
15932
15933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15935echo "${ECHO_T}$ac_header_compiler" >&6; }
15936
15937# Is the header present?
15938{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15940cat >conftest.$ac_ext <<_ACEOF
15941/* confdefs.h.  */
15942_ACEOF
15943cat confdefs.h >>conftest.$ac_ext
15944cat >>conftest.$ac_ext <<_ACEOF
15945/* end confdefs.h.  */
15946#include <$ac_header>
15947_ACEOF
15948if { (ac_try="$ac_cpp conftest.$ac_ext"
15949case "(($ac_try" in
15950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951  *) ac_try_echo=$ac_try;;
15952esac
15953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15955  ac_status=$?
15956  grep -v '^ *+' conftest.er1 >conftest.err
15957  rm -f conftest.er1
15958  cat conftest.err >&5
15959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960  (exit $ac_status); } >/dev/null && {
15961	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15962	 test ! -s conftest.err
15963       }; then
15964  ac_header_preproc=yes
15965else
15966  echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969  ac_header_preproc=no
15970fi
15971
15972rm -f conftest.err conftest.$ac_ext
15973{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15974echo "${ECHO_T}$ac_header_preproc" >&6; }
15975
15976# So?  What about this header?
15977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15978  yes:no: )
15979    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15981    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15983    ac_header_preproc=yes
15984    ;;
15985  no:yes:* )
15986    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15988    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15989echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15990    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15992    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15993echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15994    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15996    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15998    ( cat <<\_ASBOX
15999## ------------------------------------------------------------ ##
16000## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
16001## ------------------------------------------------------------ ##
16002_ASBOX
16003     ) | sed "s/^/$as_me: WARNING:     /" >&2
16004    ;;
16005esac
16006{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16009  echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011  eval "$as_ac_Header=\$ac_header_preproc"
16012fi
16013ac_res=`eval echo '${'$as_ac_Header'}'`
16014	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16015echo "${ECHO_T}$ac_res" >&6; }
16016
16017fi
16018if test `eval echo '${'$as_ac_Header'}'` = yes; then
16019  cat >>confdefs.h <<_ACEOF
16020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16021_ACEOF
16022
16023fi
16024
16025done
16026
16027# Check whether --enable-ltdl-install was given.
16028if test "${enable_ltdl_install+set}" = set; then
16029  enableval=$enable_ltdl_install;
16030fi
16031
16032
16033
16034
16035if test x"${enable_ltdl_install-no}" != xno; then
16036  INSTALL_LTDL_TRUE=
16037  INSTALL_LTDL_FALSE='#'
16038else
16039  INSTALL_LTDL_TRUE='#'
16040  INSTALL_LTDL_FALSE=
16041fi
16042
16043
16044
16045if test x"${enable_ltdl_convenience-no}" != xno; then
16046  CONVENIENCE_LTDL_TRUE=
16047  CONVENIENCE_LTDL_FALSE='#'
16048else
16049  CONVENIENCE_LTDL_TRUE='#'
16050  CONVENIENCE_LTDL_FALSE=
16051fi
16052
16053
16054{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16055echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16056library_names_spec=
16057libname_spec='lib$name'
16058soname_spec=
16059shrext_cmds=".so"
16060postinstall_cmds=
16061postuninstall_cmds=
16062finish_cmds=
16063finish_eval=
16064shlibpath_var=
16065shlibpath_overrides_runpath=unknown
16066version_type=none
16067dynamic_linker="$host_os ld.so"
16068sys_lib_dlsearch_path_spec="/lib /usr/lib"
16069if test "$GCC" = yes; then
16070  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16071  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16072    # if the path contains ";" then we assume it to be the separator
16073    # otherwise default to the standard path separator (i.e. ":") - it is
16074    # assumed that no part of a normal pathname contains ";" but that should
16075    # okay in the real world where ";" in dirpaths is itself problematic.
16076    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16077  else
16078    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16079  fi
16080else
16081  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16082fi
16083need_lib_prefix=unknown
16084hardcode_into_libs=no
16085
16086# when you set need_version to no, make sure it does not cause -set_version
16087# flags to be left without arguments
16088need_version=unknown
16089
16090case $host_os in
16091aix3*)
16092  version_type=linux
16093  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16094  shlibpath_var=LIBPATH
16095
16096  # AIX 3 has no versioning support, so we append a major version to the name.
16097  soname_spec='${libname}${release}${shared_ext}$major'
16098  ;;
16099
16100aix4* | aix5*)
16101  version_type=linux
16102  need_lib_prefix=no
16103  need_version=no
16104  hardcode_into_libs=yes
16105  if test "$host_cpu" = ia64; then
16106    # AIX 5 supports IA64
16107    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16108    shlibpath_var=LD_LIBRARY_PATH
16109  else
16110    # With GCC up to 2.95.x, collect2 would create an import file
16111    # for dependence libraries.  The import file would start with
16112    # the line `#! .'.  This would cause the generated library to
16113    # depend on `.', always an invalid library.  This was fixed in
16114    # development snapshots of GCC prior to 3.0.
16115    case $host_os in
16116      aix4 | aix4.[01] | aix4.[01].*)
16117      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16118	   echo ' yes '
16119	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16120	:
16121      else
16122	can_build_shared=no
16123      fi
16124      ;;
16125    esac
16126    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16127    # soname into executable. Probably we can add versioning support to
16128    # collect2, so additional links can be useful in future.
16129    if test "$aix_use_runtimelinking" = yes; then
16130      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16131      # instead of lib<name>.a to let people know that these are not
16132      # typical AIX shared libraries.
16133      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134    else
16135      # We preserve .a as extension for shared libraries through AIX4.2
16136      # and later when we are not doing run time linking.
16137      library_names_spec='${libname}${release}.a $libname.a'
16138      soname_spec='${libname}${release}${shared_ext}$major'
16139    fi
16140    shlibpath_var=LIBPATH
16141  fi
16142  ;;
16143
16144amigaos*)
16145  library_names_spec='$libname.ixlibrary $libname.a'
16146  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16147  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'
16148  ;;
16149
16150beos*)
16151  library_names_spec='${libname}${shared_ext}'
16152  dynamic_linker="$host_os ld.so"
16153  shlibpath_var=LIBRARY_PATH
16154  ;;
16155
16156bsdi[45]*)
16157  version_type=linux
16158  need_version=no
16159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160  soname_spec='${libname}${release}${shared_ext}$major'
16161  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16162  shlibpath_var=LD_LIBRARY_PATH
16163  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16164  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16165  # the default ld.so.conf also contains /usr/contrib/lib and
16166  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16167  # libtool to hard-code these into programs
16168  ;;
16169
16170cygwin* | mingw* | pw32*)
16171  version_type=windows
16172  shrext_cmds=".dll"
16173  need_version=no
16174  need_lib_prefix=no
16175
16176  case $GCC,$host_os in
16177  yes,cygwin* | yes,mingw* | yes,pw32*)
16178    library_names_spec='$libname.dll.a'
16179    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16180    postinstall_cmds='base_file=`basename \${file}`~
16181      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16182      dldir=$destdir/`dirname \$dlpath`~
16183      test -d \$dldir || mkdir -p \$dldir~
16184      $install_prog $dir/$dlname \$dldir/$dlname~
16185      chmod a+x \$dldir/$dlname'
16186    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16187      dlpath=$dir/\$dldll~
16188       $rm \$dlpath'
16189    shlibpath_overrides_runpath=yes
16190
16191    case $host_os in
16192    cygwin*)
16193      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16194      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16195      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16196      ;;
16197    mingw*)
16198      # MinGW DLLs use traditional 'lib' prefix
16199      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16200      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16201      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16202        # It is most probably a Windows format PATH printed by
16203        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16204        # path with ; separators, and with drive letters. We can handle the
16205        # drive letters (cygwin fileutils understands them), so leave them,
16206        # especially as we might pass files found there to a mingw objdump,
16207        # which wouldn't understand a cygwinified path. Ahh.
16208        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16209      else
16210        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16211      fi
16212      ;;
16213    pw32*)
16214      # pw32 DLLs use 'pw' prefix rather than 'lib'
16215      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16216      ;;
16217    esac
16218    ;;
16219
16220  *)
16221    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16222    ;;
16223  esac
16224  dynamic_linker='Win32 ld.exe'
16225  # FIXME: first we should search . and the directory the executable is in
16226  shlibpath_var=PATH
16227  ;;
16228
16229darwin* | rhapsody*)
16230  dynamic_linker="$host_os dyld"
16231  version_type=darwin
16232  need_lib_prefix=no
16233  need_version=no
16234  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16235  soname_spec='${libname}${release}${major}$shared_ext'
16236  shlibpath_overrides_runpath=yes
16237  shlibpath_var=DYLD_LIBRARY_PATH
16238  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16239  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16240  if test "$GCC" = yes; then
16241    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16242  else
16243    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16244  fi
16245  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16246  ;;
16247
16248dgux*)
16249  version_type=linux
16250  need_lib_prefix=no
16251  need_version=no
16252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16253  soname_spec='${libname}${release}${shared_ext}$major'
16254  shlibpath_var=LD_LIBRARY_PATH
16255  ;;
16256
16257freebsd1*)
16258  dynamic_linker=no
16259  ;;
16260
16261freebsd* | dragonfly*)
16262  # DragonFly does not have aout.  When/if they implement a new
16263  # versioning mechanism, adjust this.
16264  if test -x /usr/bin/objformat; then
16265    objformat=`/usr/bin/objformat`
16266  else
16267    case $host_os in
16268    freebsd[123]*) objformat=aout ;;
16269    *) objformat=elf ;;
16270    esac
16271  fi
16272  version_type=freebsd-$objformat
16273  case $version_type in
16274    freebsd-elf*)
16275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16276      need_version=no
16277      need_lib_prefix=no
16278      ;;
16279    freebsd-*)
16280      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16281      need_version=yes
16282      ;;
16283  esac
16284  shlibpath_var=LD_LIBRARY_PATH
16285  case $host_os in
16286  freebsd2*)
16287    shlibpath_overrides_runpath=yes
16288    ;;
16289  freebsd3.[01]* | freebsdelf3.[01]*)
16290    shlibpath_overrides_runpath=yes
16291    hardcode_into_libs=yes
16292    ;;
16293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16295    shlibpath_overrides_runpath=no
16296    hardcode_into_libs=yes
16297    ;;
16298  freebsd*) # from 4.6 on
16299    shlibpath_overrides_runpath=yes
16300    hardcode_into_libs=yes
16301    ;;
16302  esac
16303  ;;
16304
16305gnu*)
16306  version_type=linux
16307  need_lib_prefix=no
16308  need_version=no
16309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16310  soname_spec='${libname}${release}${shared_ext}$major'
16311  shlibpath_var=LD_LIBRARY_PATH
16312  hardcode_into_libs=yes
16313  ;;
16314
16315hpux9* | hpux10* | hpux11*)
16316  # Give a soname corresponding to the major version so that dld.sl refuses to
16317  # link against other versions.
16318  version_type=sunos
16319  need_lib_prefix=no
16320  need_version=no
16321  case $host_cpu in
16322  ia64*)
16323    shrext_cmds='.so'
16324    hardcode_into_libs=yes
16325    dynamic_linker="$host_os dld.so"
16326    shlibpath_var=LD_LIBRARY_PATH
16327    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329    soname_spec='${libname}${release}${shared_ext}$major'
16330    if test "X$HPUX_IA64_MODE" = X32; then
16331      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16332    else
16333      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16334    fi
16335    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16336    ;;
16337   hppa*64*)
16338     shrext_cmds='.sl'
16339     hardcode_into_libs=yes
16340     dynamic_linker="$host_os dld.sl"
16341     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16342     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344     soname_spec='${libname}${release}${shared_ext}$major'
16345     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16347     ;;
16348   *)
16349    shrext_cmds='.sl'
16350    dynamic_linker="$host_os dld.sl"
16351    shlibpath_var=SHLIB_PATH
16352    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354    soname_spec='${libname}${release}${shared_ext}$major'
16355    ;;
16356  esac
16357  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16358  postinstall_cmds='chmod 555 $lib'
16359  ;;
16360
16361interix3*)
16362  version_type=linux
16363  need_lib_prefix=no
16364  need_version=no
16365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16366  soname_spec='${libname}${release}${shared_ext}$major'
16367  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16368  shlibpath_var=LD_LIBRARY_PATH
16369  shlibpath_overrides_runpath=no
16370  hardcode_into_libs=yes
16371  ;;
16372
16373irix5* | irix6* | nonstopux*)
16374  case $host_os in
16375    nonstopux*) version_type=nonstopux ;;
16376    *)
16377	if test "$lt_cv_prog_gnu_ld" = yes; then
16378		version_type=linux
16379	else
16380		version_type=irix
16381	fi ;;
16382  esac
16383  need_lib_prefix=no
16384  need_version=no
16385  soname_spec='${libname}${release}${shared_ext}$major'
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16387  case $host_os in
16388  irix5* | nonstopux*)
16389    libsuff= shlibsuff=
16390    ;;
16391  *)
16392    case $LD in # libtool.m4 will add one of these switches to LD
16393    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16394      libsuff= shlibsuff= libmagic=32-bit;;
16395    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16396      libsuff=32 shlibsuff=N32 libmagic=N32;;
16397    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16398      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16399    *) libsuff= shlibsuff= libmagic=never-match;;
16400    esac
16401    ;;
16402  esac
16403  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16404  shlibpath_overrides_runpath=no
16405  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16406  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16407  hardcode_into_libs=yes
16408  ;;
16409
16410# No shared lib support for Linux oldld, aout, or coff.
16411linux*oldld* | linux*aout* | linux*coff*)
16412  dynamic_linker=no
16413  ;;
16414
16415# This must be Linux ELF.
16416linux* | k*bsd*-gnu)
16417  version_type=linux
16418  need_lib_prefix=no
16419  need_version=no
16420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421  soname_spec='${libname}${release}${shared_ext}$major'
16422  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16423  shlibpath_var=LD_LIBRARY_PATH
16424  shlibpath_overrides_runpath=no
16425  # This implies no fast_install, which is unacceptable.
16426  # Some rework will be needed to allow for fast_install
16427  # before this can be enabled.
16428  hardcode_into_libs=yes
16429
16430  # Append ld.so.conf contents to the search path
16431  if test -f /etc/ld.so.conf; then
16432    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16433    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16434  fi
16435
16436  # We used to test for /lib/ld.so.1 and disable shared libraries on
16437  # powerpc, because MkLinux only supported shared libraries with the
16438  # GNU dynamic linker.  Since this was broken with cross compilers,
16439  # most powerpc-linux boxes support dynamic linking these days and
16440  # people can always --disable-shared, the test was removed, and we
16441  # assume the GNU/Linux dynamic linker is in use.
16442  dynamic_linker='GNU/Linux ld.so'
16443  ;;
16444
16445netbsdelf*-gnu)
16446  version_type=linux
16447  need_lib_prefix=no
16448  need_version=no
16449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16450  soname_spec='${libname}${release}${shared_ext}$major'
16451  shlibpath_var=LD_LIBRARY_PATH
16452  shlibpath_overrides_runpath=no
16453  hardcode_into_libs=yes
16454  dynamic_linker='NetBSD ld.elf_so'
16455  ;;
16456
16457netbsd*)
16458  version_type=sunos
16459  need_lib_prefix=no
16460  need_version=no
16461  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16463    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16464    dynamic_linker='NetBSD (a.out) ld.so'
16465  else
16466    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16467    soname_spec='${libname}${release}${shared_ext}$major'
16468    dynamic_linker='NetBSD ld.elf_so'
16469  fi
16470  shlibpath_var=LD_LIBRARY_PATH
16471  shlibpath_overrides_runpath=yes
16472  hardcode_into_libs=yes
16473  ;;
16474
16475newsos6)
16476  version_type=linux
16477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16478  shlibpath_var=LD_LIBRARY_PATH
16479  shlibpath_overrides_runpath=yes
16480  ;;
16481
16482nto-qnx*)
16483  version_type=linux
16484  need_lib_prefix=no
16485  need_version=no
16486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487  soname_spec='${libname}${release}${shared_ext}$major'
16488  shlibpath_var=LD_LIBRARY_PATH
16489  shlibpath_overrides_runpath=yes
16490  ;;
16491
16492openbsd*)
16493  version_type=sunos
16494  sys_lib_dlsearch_path_spec="/usr/lib"
16495  need_lib_prefix=no
16496  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16497  case $host_os in
16498    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16499    *)                         need_version=no  ;;
16500  esac
16501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16502  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16503  shlibpath_var=LD_LIBRARY_PATH
16504  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16505    case $host_os in
16506      openbsd2.[89] | openbsd2.[89].*)
16507	shlibpath_overrides_runpath=no
16508	;;
16509      *)
16510	shlibpath_overrides_runpath=yes
16511	;;
16512      esac
16513  else
16514    shlibpath_overrides_runpath=yes
16515  fi
16516  ;;
16517
16518os2*)
16519  libname_spec='$name'
16520  shrext_cmds=".dll"
16521  need_lib_prefix=no
16522  library_names_spec='$libname${shared_ext} $libname.a'
16523  dynamic_linker='OS/2 ld.exe'
16524  shlibpath_var=LIBPATH
16525  ;;
16526
16527osf3* | osf4* | osf5*)
16528  version_type=osf
16529  need_lib_prefix=no
16530  need_version=no
16531  soname_spec='${libname}${release}${shared_ext}$major'
16532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16533  shlibpath_var=LD_LIBRARY_PATH
16534  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16535  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16536  ;;
16537
16538solaris*)
16539  version_type=linux
16540  need_lib_prefix=no
16541  need_version=no
16542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543  soname_spec='${libname}${release}${shared_ext}$major'
16544  shlibpath_var=LD_LIBRARY_PATH
16545  shlibpath_overrides_runpath=yes
16546  hardcode_into_libs=yes
16547  # ldd complains unless libraries are executable
16548  postinstall_cmds='chmod +x $lib'
16549  ;;
16550
16551sunos4*)
16552  version_type=sunos
16553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16554  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16555  shlibpath_var=LD_LIBRARY_PATH
16556  shlibpath_overrides_runpath=yes
16557  if test "$with_gnu_ld" = yes; then
16558    need_lib_prefix=no
16559  fi
16560  need_version=yes
16561  ;;
16562
16563sysv4 | sysv4.3*)
16564  version_type=linux
16565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566  soname_spec='${libname}${release}${shared_ext}$major'
16567  shlibpath_var=LD_LIBRARY_PATH
16568  case $host_vendor in
16569    sni)
16570      shlibpath_overrides_runpath=no
16571      need_lib_prefix=no
16572      export_dynamic_flag_spec='${wl}-Blargedynsym'
16573      runpath_var=LD_RUN_PATH
16574      ;;
16575    siemens)
16576      need_lib_prefix=no
16577      ;;
16578    motorola)
16579      need_lib_prefix=no
16580      need_version=no
16581      shlibpath_overrides_runpath=no
16582      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16583      ;;
16584  esac
16585  ;;
16586
16587sysv4*MP*)
16588  if test -d /usr/nec ;then
16589    version_type=linux
16590    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16591    soname_spec='$libname${shared_ext}.$major'
16592    shlibpath_var=LD_LIBRARY_PATH
16593  fi
16594  ;;
16595
16596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16597  version_type=freebsd-elf
16598  need_lib_prefix=no
16599  need_version=no
16600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16601  soname_spec='${libname}${release}${shared_ext}$major'
16602  shlibpath_var=LD_LIBRARY_PATH
16603  hardcode_into_libs=yes
16604  if test "$with_gnu_ld" = yes; then
16605    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16606    shlibpath_overrides_runpath=no
16607  else
16608    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16609    shlibpath_overrides_runpath=yes
16610    case $host_os in
16611      sco3.2v5*)
16612        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16613	;;
16614    esac
16615  fi
16616  sys_lib_dlsearch_path_spec='/usr/lib'
16617  ;;
16618
16619uts4*)
16620  version_type=linux
16621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622  soname_spec='${libname}${release}${shared_ext}$major'
16623  shlibpath_var=LD_LIBRARY_PATH
16624  ;;
16625
16626*)
16627  dynamic_linker=no
16628  ;;
16629esac
16630{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16631echo "${ECHO_T}$dynamic_linker" >&6; }
16632test "$dynamic_linker" = no && can_build_shared=no
16633
16634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16635if test "$GCC" = yes; then
16636  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16637fi
16638
16639
16640{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
16641echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
16642if test "${libltdl_cv_shlibext+set}" = set; then
16643  echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645
16646module=yes
16647eval libltdl_cv_shlibext=$shrext_cmds
16648
16649fi
16650{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
16651echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
16652if test -n "$libltdl_cv_shlibext"; then
16653
16654cat >>confdefs.h <<_ACEOF
16655#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
16656_ACEOF
16657
16658fi
16659
16660
16661{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
16662echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
16663if test "${libltdl_cv_shlibpath_var+set}" = set; then
16664  echo $ECHO_N "(cached) $ECHO_C" >&6
16665else
16666  libltdl_cv_shlibpath_var="$shlibpath_var"
16667fi
16668{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
16669echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
16670if test -n "$libltdl_cv_shlibpath_var"; then
16671
16672cat >>confdefs.h <<_ACEOF
16673#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
16674_ACEOF
16675
16676fi
16677
16678
16679{ echo "$as_me:$LINENO: checking for the default library search path" >&5
16680echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
16681if test "${libltdl_cv_sys_search_path+set}" = set; then
16682  echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
16685fi
16686{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
16687echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
16688if test -n "$libltdl_cv_sys_search_path"; then
16689  sys_search_path=
16690  for dir in $libltdl_cv_sys_search_path; do
16691    if test -z "$sys_search_path"; then
16692      sys_search_path="$dir"
16693    else
16694      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
16695    fi
16696  done
16697
16698cat >>confdefs.h <<_ACEOF
16699#define LTDL_SYSSEARCHPATH "$sys_search_path"
16700_ACEOF
16701
16702fi
16703
16704{ echo "$as_me:$LINENO: checking for objdir" >&5
16705echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
16706if test "${libltdl_cv_objdir+set}" = set; then
16707  echo $ECHO_N "(cached) $ECHO_C" >&6
16708else
16709  libltdl_cv_objdir="$objdir"
16710  if test -n "$objdir"; then
16711    :
16712  else
16713    rm -f .libs 2>/dev/null
16714    mkdir .libs 2>/dev/null
16715    if test -d .libs; then
16716      libltdl_cv_objdir=.libs
16717    else
16718      # MS-DOS does not allow filenames that begin with a dot.
16719      libltdl_cv_objdir=_libs
16720    fi
16721  rmdir .libs 2>/dev/null
16722  fi
16723
16724fi
16725{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
16726echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
16727
16728cat >>confdefs.h <<_ACEOF
16729#define LTDL_OBJDIR "$libltdl_cv_objdir/"
16730_ACEOF
16731
16732
16733{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
16734echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
16735if test "${lt_cv_path_NM+set}" = set; then
16736  echo $ECHO_N "(cached) $ECHO_C" >&6
16737else
16738  if test -n "$NM"; then
16739  # Let the user override the test.
16740  lt_cv_path_NM="$NM"
16741else
16742  lt_nm_to_check="${ac_tool_prefix}nm"
16743  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
16744    lt_nm_to_check="$lt_nm_to_check nm"
16745  fi
16746  for lt_tmp_nm in $lt_nm_to_check; do
16747    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16748    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
16749      IFS="$lt_save_ifs"
16750      test -z "$ac_dir" && ac_dir=.
16751      tmp_nm="$ac_dir/$lt_tmp_nm"
16752      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
16753	# Check to see if the nm accepts a BSD-compat flag.
16754	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
16755	#   nm: unknown option "B" ignored
16756	# Tru64's nm complains that /dev/null is an invalid object file
16757	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
16758	*/dev/null* | *'Invalid file or object type'*)
16759	  lt_cv_path_NM="$tmp_nm -B"
16760	  break
16761	  ;;
16762	*)
16763	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
16764	  */dev/null*)
16765	    lt_cv_path_NM="$tmp_nm -p"
16766	    break
16767	    ;;
16768	  *)
16769	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
16770	    continue # so that we can try to find one that supports BSD flags
16771	    ;;
16772	  esac
16773	  ;;
16774	esac
16775      fi
16776    done
16777    IFS="$lt_save_ifs"
16778  done
16779  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
16780fi
16781fi
16782{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
16783echo "${ECHO_T}$lt_cv_path_NM" >&6; }
16784NM="$lt_cv_path_NM"
16785
16786
16787
16788
16789
16790# Check for command to grab the raw symbol name followed by C symbol from nm.
16791{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16792echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
16793if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16794  echo $ECHO_N "(cached) $ECHO_C" >&6
16795else
16796
16797# These are sane defaults that work on at least a few old systems.
16798# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16799
16800# Character class describing NM global symbol codes.
16801symcode='[BCDEGRST]'
16802
16803# Regexp to match symbols that can be accessed directly from C.
16804sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16805
16806# Transform an extracted symbol line into a proper C declaration
16807lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16808
16809# Transform an extracted symbol line into symbol name and symbol address
16810lt_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'"
16811
16812# Define system-specific variables.
16813case $host_os in
16814aix*)
16815  symcode='[BCDT]'
16816  ;;
16817cygwin* | mingw* | pw32*)
16818  symcode='[ABCDGISTW]'
16819  ;;
16820hpux*) # Its linker distinguishes data from code symbols
16821  if test "$host_cpu" = ia64; then
16822    symcode='[ABCDEGRST]'
16823  fi
16824  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16825  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'"
16826  ;;
16827linux* | k*bsd*-gnu)
16828  if test "$host_cpu" = ia64; then
16829    symcode='[ABCDGIRSTW]'
16830    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16831    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'"
16832  fi
16833  ;;
16834irix* | nonstopux*)
16835  symcode='[BCDEGRST]'
16836  ;;
16837osf*)
16838  symcode='[BCDEGQRST]'
16839  ;;
16840solaris*)
16841  symcode='[BDRT]'
16842  ;;
16843sco3.2v5*)
16844  symcode='[DT]'
16845  ;;
16846sysv4.2uw2*)
16847  symcode='[DT]'
16848  ;;
16849sysv5* | sco5v6* | unixware* | OpenUNIX*)
16850  symcode='[ABDT]'
16851  ;;
16852sysv4)
16853  symcode='[DFNSTU]'
16854  ;;
16855esac
16856
16857# Handle CRLF in mingw tool chain
16858opt_cr=
16859case $build_os in
16860mingw*)
16861  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16862  ;;
16863esac
16864
16865# If we're using GNU nm, then use its standard symbol codes.
16866case `$NM -V 2>&1` in
16867*GNU* | *'with BFD'*)
16868  symcode='[ABCDGIRSTW]' ;;
16869esac
16870
16871# Try without a prefix undercore, then with it.
16872for ac_symprfx in "" "_"; do
16873
16874  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16875  symxfrm="\\1 $ac_symprfx\\2 \\2"
16876
16877  # Write the raw and C identifiers.
16878  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16879
16880  # Check to see that the pipe works correctly.
16881  pipe_works=no
16882
16883  rm -f conftest*
16884  cat > conftest.$ac_ext <<EOF
16885#ifdef __cplusplus
16886extern "C" {
16887#endif
16888char nm_test_var;
16889void nm_test_func(){}
16890#ifdef __cplusplus
16891}
16892#endif
16893int main(){nm_test_var='a';nm_test_func();return(0);}
16894EOF
16895
16896  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897  (eval $ac_compile) 2>&5
16898  ac_status=$?
16899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900  (exit $ac_status); }; then
16901    # Now try to grab the symbols.
16902    nlist=conftest.nm
16903    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16904  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16905  ac_status=$?
16906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907  (exit $ac_status); } && test -s "$nlist"; then
16908      # Try sorting and uniquifying the output.
16909      if sort "$nlist" | uniq > "$nlist"T; then
16910	mv -f "$nlist"T "$nlist"
16911      else
16912	rm -f "$nlist"T
16913      fi
16914
16915      # Make sure that we snagged all the symbols we need.
16916      if grep ' nm_test_var$' "$nlist" >/dev/null; then
16917	if grep ' nm_test_func$' "$nlist" >/dev/null; then
16918	  cat <<EOF > conftest.$ac_ext
16919#ifdef __cplusplus
16920extern "C" {
16921#endif
16922
16923EOF
16924	  # Now generate the symbol file.
16925	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16926
16927	  cat <<EOF >> conftest.$ac_ext
16928#if defined (__STDC__) && __STDC__
16929# define lt_ptr_t void *
16930#else
16931# define lt_ptr_t char *
16932# define const
16933#endif
16934
16935/* The mapping between symbol names and symbols. */
16936const struct {
16937  const char *name;
16938  lt_ptr_t address;
16939}
16940lt_preloaded_symbols[] =
16941{
16942EOF
16943	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16944	  cat <<\EOF >> conftest.$ac_ext
16945  {0, (lt_ptr_t) 0}
16946};
16947
16948#ifdef __cplusplus
16949}
16950#endif
16951EOF
16952	  # Now try linking the two files.
16953	  mv conftest.$ac_objext conftstm.$ac_objext
16954	  lt_save_LIBS="$LIBS"
16955	  lt_save_CFLAGS="$CFLAGS"
16956	  LIBS="conftstm.$ac_objext"
16957	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16958	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959  (eval $ac_link) 2>&5
16960  ac_status=$?
16961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962  (exit $ac_status); } && test -s conftest${ac_exeext}; then
16963	    pipe_works=yes
16964	  fi
16965	  LIBS="$lt_save_LIBS"
16966	  CFLAGS="$lt_save_CFLAGS"
16967	else
16968	  echo "cannot find nm_test_func in $nlist" >&5
16969	fi
16970      else
16971	echo "cannot find nm_test_var in $nlist" >&5
16972      fi
16973    else
16974      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16975    fi
16976  else
16977    echo "$progname: failed program was:" >&5
16978    cat conftest.$ac_ext >&5
16979  fi
16980  rm -f conftest* conftst*
16981
16982  # Do not use the global_symbol_pipe unless it works.
16983  if test "$pipe_works" = yes; then
16984    break
16985  else
16986    lt_cv_sys_global_symbol_pipe=
16987  fi
16988done
16989
16990fi
16991
16992if test -z "$lt_cv_sys_global_symbol_pipe"; then
16993  lt_cv_sys_global_symbol_to_cdecl=
16994fi
16995if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16996  { echo "$as_me:$LINENO: result: failed" >&5
16997echo "${ECHO_T}failed" >&6; }
16998else
16999  { echo "$as_me:$LINENO: result: ok" >&5
17000echo "${ECHO_T}ok" >&6; }
17001fi
17002
17003
17004{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
17005echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
17006if test "${libltdl_cv_preloaded_symbols+set}" = set; then
17007  echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009  if test -n "$lt_cv_sys_global_symbol_pipe"; then
17010    libltdl_cv_preloaded_symbols=yes
17011  else
17012    libltdl_cv_preloaded_symbols=no
17013  fi
17014
17015fi
17016{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
17017echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
17018if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17019
17020cat >>confdefs.h <<\_ACEOF
17021#define HAVE_PRELOADED_SYMBOLS 1
17022_ACEOF
17023
17024fi
17025
17026LIBADD_DL=
17027
17028ac_ext=c
17029ac_cpp='$CPP $CPPFLAGS'
17030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17032ac_compiler_gnu=$ac_cv_c_compiler_gnu
17033
17034
17035{ echo "$as_me:$LINENO: checking for shl_load" >&5
17036echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17037if test "${ac_cv_func_shl_load+set}" = set; then
17038  echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040  cat >conftest.$ac_ext <<_ACEOF
17041/* confdefs.h.  */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h.  */
17046/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17047   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17048#define shl_load innocuous_shl_load
17049
17050/* System header to define __stub macros and hopefully few prototypes,
17051    which can conflict with char shl_load (); below.
17052    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053    <limits.h> exists even on freestanding compilers.  */
17054
17055#ifdef __STDC__
17056# include <limits.h>
17057#else
17058# include <assert.h>
17059#endif
17060
17061#undef shl_load
17062
17063/* Override any GCC internal prototype to avoid an error.
17064   Use char because int might match the return type of a GCC
17065   builtin and then its argument prototype would still apply.  */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069char shl_load ();
17070/* The GNU C library defines this for functions which it implements
17071    to always fail with ENOSYS.  Some functions are actually named
17072    something starting with __ and the normal name is an alias.  */
17073#if defined __stub_shl_load || defined __stub___shl_load
17074choke me
17075#endif
17076
17077int
17078main ()
17079{
17080return shl_load ();
17081  ;
17082  return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext conftest$ac_exeext
17086if { (ac_try="$ac_link"
17087case "(($ac_try" in
17088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089  *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092  (eval "$ac_link") 2>conftest.er1
17093  ac_status=$?
17094  grep -v '^ *+' conftest.er1 >conftest.err
17095  rm -f conftest.er1
17096  cat conftest.err >&5
17097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098  (exit $ac_status); } && {
17099	 test -z "$ac_c_werror_flag" ||
17100	 test ! -s conftest.err
17101       } && test -s conftest$ac_exeext &&
17102       $as_test_x conftest$ac_exeext; then
17103  ac_cv_func_shl_load=yes
17104else
17105  echo "$as_me: failed program was:" >&5
17106sed 's/^/| /' conftest.$ac_ext >&5
17107
17108	ac_cv_func_shl_load=no
17109fi
17110
17111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112      conftest$ac_exeext conftest.$ac_ext
17113fi
17114{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17115echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17116if test $ac_cv_func_shl_load = yes; then
17117
17118cat >>confdefs.h <<\_ACEOF
17119#define HAVE_SHL_LOAD 1
17120_ACEOF
17121
17122else
17123  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17124echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17125if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17126  echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128  ac_check_lib_save_LIBS=$LIBS
17129LIBS="-ldld  $LIBS"
17130cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h.  */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h.  */
17136
17137/* Override any GCC internal prototype to avoid an error.
17138   Use char because int might match the return type of a GCC
17139   builtin and then its argument prototype would still apply.  */
17140#ifdef __cplusplus
17141extern "C"
17142#endif
17143char shl_load ();
17144int
17145main ()
17146{
17147return shl_load ();
17148  ;
17149  return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156  *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159  (eval "$ac_link") 2>conftest.er1
17160  ac_status=$?
17161  grep -v '^ *+' conftest.er1 >conftest.err
17162  rm -f conftest.er1
17163  cat conftest.err >&5
17164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165  (exit $ac_status); } && {
17166	 test -z "$ac_c_werror_flag" ||
17167	 test ! -s conftest.err
17168       } && test -s conftest$ac_exeext &&
17169       $as_test_x conftest$ac_exeext; then
17170  ac_cv_lib_dld_shl_load=yes
17171else
17172  echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175	ac_cv_lib_dld_shl_load=no
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179      conftest$ac_exeext conftest.$ac_ext
17180LIBS=$ac_check_lib_save_LIBS
17181fi
17182{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17183echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17184if test $ac_cv_lib_dld_shl_load = yes; then
17185
17186cat >>confdefs.h <<\_ACEOF
17187#define HAVE_SHL_LOAD 1
17188_ACEOF
17189
17190	LIBADD_DL="$LIBADD_DL -ldld"
17191else
17192  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17193echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17194if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17195  echo $ECHO_N "(cached) $ECHO_C" >&6
17196else
17197  ac_check_lib_save_LIBS=$LIBS
17198LIBS="-ldl  $LIBS"
17199cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h.  */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h.  */
17205
17206/* Override any GCC internal prototype to avoid an error.
17207   Use char because int might match the return type of a GCC
17208   builtin and then its argument prototype would still apply.  */
17209#ifdef __cplusplus
17210extern "C"
17211#endif
17212char dlopen ();
17213int
17214main ()
17215{
17216return dlopen ();
17217  ;
17218  return 0;
17219}
17220_ACEOF
17221rm -f conftest.$ac_objext conftest$ac_exeext
17222if { (ac_try="$ac_link"
17223case "(($ac_try" in
17224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225  *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228  (eval "$ac_link") 2>conftest.er1
17229  ac_status=$?
17230  grep -v '^ *+' conftest.er1 >conftest.err
17231  rm -f conftest.er1
17232  cat conftest.err >&5
17233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234  (exit $ac_status); } && {
17235	 test -z "$ac_c_werror_flag" ||
17236	 test ! -s conftest.err
17237       } && test -s conftest$ac_exeext &&
17238       $as_test_x conftest$ac_exeext; then
17239  ac_cv_lib_dl_dlopen=yes
17240else
17241  echo "$as_me: failed program was:" >&5
17242sed 's/^/| /' conftest.$ac_ext >&5
17243
17244	ac_cv_lib_dl_dlopen=no
17245fi
17246
17247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17248      conftest$ac_exeext conftest.$ac_ext
17249LIBS=$ac_check_lib_save_LIBS
17250fi
17251{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17252echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17253if test $ac_cv_lib_dl_dlopen = yes; then
17254
17255cat >>confdefs.h <<\_ACEOF
17256#define HAVE_LIBDL 1
17257_ACEOF
17258
17259	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
17260else
17261  cat >conftest.$ac_ext <<_ACEOF
17262/* confdefs.h.  */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h.  */
17267#if HAVE_DLFCN_H
17268#  include <dlfcn.h>
17269#endif
17270
17271int
17272main ()
17273{
17274dlopen(0, 0);
17275  ;
17276  return 0;
17277}
17278_ACEOF
17279rm -f conftest.$ac_objext conftest$ac_exeext
17280if { (ac_try="$ac_link"
17281case "(($ac_try" in
17282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283  *) ac_try_echo=$ac_try;;
17284esac
17285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286  (eval "$ac_link") 2>conftest.er1
17287  ac_status=$?
17288  grep -v '^ *+' conftest.er1 >conftest.err
17289  rm -f conftest.er1
17290  cat conftest.err >&5
17291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292  (exit $ac_status); } && {
17293	 test -z "$ac_c_werror_flag" ||
17294	 test ! -s conftest.err
17295       } && test -s conftest$ac_exeext &&
17296       $as_test_x conftest$ac_exeext; then
17297
17298cat >>confdefs.h <<\_ACEOF
17299#define HAVE_LIBDL 1
17300_ACEOF
17301 libltdl_cv_func_dlopen="yes"
17302else
17303  echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17307echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17308if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17309  echo $ECHO_N "(cached) $ECHO_C" >&6
17310else
17311  ac_check_lib_save_LIBS=$LIBS
17312LIBS="-lsvld  $LIBS"
17313cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h.  */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h.  */
17319
17320/* Override any GCC internal prototype to avoid an error.
17321   Use char because int might match the return type of a GCC
17322   builtin and then its argument prototype would still apply.  */
17323#ifdef __cplusplus
17324extern "C"
17325#endif
17326char dlopen ();
17327int
17328main ()
17329{
17330return dlopen ();
17331  ;
17332  return 0;
17333}
17334_ACEOF
17335rm -f conftest.$ac_objext conftest$ac_exeext
17336if { (ac_try="$ac_link"
17337case "(($ac_try" in
17338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339  *) ac_try_echo=$ac_try;;
17340esac
17341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342  (eval "$ac_link") 2>conftest.er1
17343  ac_status=$?
17344  grep -v '^ *+' conftest.er1 >conftest.err
17345  rm -f conftest.er1
17346  cat conftest.err >&5
17347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348  (exit $ac_status); } && {
17349	 test -z "$ac_c_werror_flag" ||
17350	 test ! -s conftest.err
17351       } && test -s conftest$ac_exeext &&
17352       $as_test_x conftest$ac_exeext; then
17353  ac_cv_lib_svld_dlopen=yes
17354else
17355  echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358	ac_cv_lib_svld_dlopen=no
17359fi
17360
17361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17362      conftest$ac_exeext conftest.$ac_ext
17363LIBS=$ac_check_lib_save_LIBS
17364fi
17365{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17366echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17367if test $ac_cv_lib_svld_dlopen = yes; then
17368
17369cat >>confdefs.h <<\_ACEOF
17370#define HAVE_LIBDL 1
17371_ACEOF
17372
17373	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
17374else
17375  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17376echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17377if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17378  echo $ECHO_N "(cached) $ECHO_C" >&6
17379else
17380  ac_check_lib_save_LIBS=$LIBS
17381LIBS="-ldld  $LIBS"
17382cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h.  */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h.  */
17388
17389/* Override any GCC internal prototype to avoid an error.
17390   Use char because int might match the return type of a GCC
17391   builtin and then its argument prototype would still apply.  */
17392#ifdef __cplusplus
17393extern "C"
17394#endif
17395char dld_link ();
17396int
17397main ()
17398{
17399return dld_link ();
17400  ;
17401  return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext conftest$ac_exeext
17405if { (ac_try="$ac_link"
17406case "(($ac_try" in
17407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408  *) ac_try_echo=$ac_try;;
17409esac
17410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411  (eval "$ac_link") 2>conftest.er1
17412  ac_status=$?
17413  grep -v '^ *+' conftest.er1 >conftest.err
17414  rm -f conftest.er1
17415  cat conftest.err >&5
17416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417  (exit $ac_status); } && {
17418	 test -z "$ac_c_werror_flag" ||
17419	 test ! -s conftest.err
17420       } && test -s conftest$ac_exeext &&
17421       $as_test_x conftest$ac_exeext; then
17422  ac_cv_lib_dld_dld_link=yes
17423else
17424  echo "$as_me: failed program was:" >&5
17425sed 's/^/| /' conftest.$ac_ext >&5
17426
17427	ac_cv_lib_dld_dld_link=no
17428fi
17429
17430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17431      conftest$ac_exeext conftest.$ac_ext
17432LIBS=$ac_check_lib_save_LIBS
17433fi
17434{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17435echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17436if test $ac_cv_lib_dld_dld_link = yes; then
17437
17438cat >>confdefs.h <<\_ACEOF
17439#define HAVE_DLD 1
17440_ACEOF
17441
17442	 	LIBADD_DL="$LIBADD_DL -ldld"
17443else
17444  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
17445echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
17446if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
17447  echo $ECHO_N "(cached) $ECHO_C" >&6
17448else
17449  cat >conftest.$ac_ext <<_ACEOF
17450/* confdefs.h.  */
17451_ACEOF
17452cat confdefs.h >>conftest.$ac_ext
17453cat >>conftest.$ac_ext <<_ACEOF
17454/* end confdefs.h.  */
17455/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
17456   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17457#define _dyld_func_lookup innocuous__dyld_func_lookup
17458
17459/* System header to define __stub macros and hopefully few prototypes,
17460    which can conflict with char _dyld_func_lookup (); below.
17461    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17462    <limits.h> exists even on freestanding compilers.  */
17463
17464#ifdef __STDC__
17465# include <limits.h>
17466#else
17467# include <assert.h>
17468#endif
17469
17470#undef _dyld_func_lookup
17471
17472/* Override any GCC internal prototype to avoid an error.
17473   Use char because int might match the return type of a GCC
17474   builtin and then its argument prototype would still apply.  */
17475#ifdef __cplusplus
17476extern "C"
17477#endif
17478char _dyld_func_lookup ();
17479/* The GNU C library defines this for functions which it implements
17480    to always fail with ENOSYS.  Some functions are actually named
17481    something starting with __ and the normal name is an alias.  */
17482#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
17483choke me
17484#endif
17485
17486int
17487main ()
17488{
17489return _dyld_func_lookup ();
17490  ;
17491  return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext conftest$ac_exeext
17495if { (ac_try="$ac_link"
17496case "(($ac_try" in
17497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498  *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501  (eval "$ac_link") 2>conftest.er1
17502  ac_status=$?
17503  grep -v '^ *+' conftest.er1 >conftest.err
17504  rm -f conftest.er1
17505  cat conftest.err >&5
17506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507  (exit $ac_status); } && {
17508	 test -z "$ac_c_werror_flag" ||
17509	 test ! -s conftest.err
17510       } && test -s conftest$ac_exeext &&
17511       $as_test_x conftest$ac_exeext; then
17512  ac_cv_func__dyld_func_lookup=yes
17513else
17514  echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517	ac_cv_func__dyld_func_lookup=no
17518fi
17519
17520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17521      conftest$ac_exeext conftest.$ac_ext
17522fi
17523{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
17524echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
17525if test $ac_cv_func__dyld_func_lookup = yes; then
17526
17527cat >>confdefs.h <<\_ACEOF
17528#define HAVE_DYLD 1
17529_ACEOF
17530
17531fi
17532
17533
17534fi
17535
17536
17537fi
17538
17539
17540fi
17541
17542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543      conftest$ac_exeext conftest.$ac_ext
17544
17545fi
17546
17547
17548fi
17549
17550
17551fi
17552
17553
17554if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17555then
17556  lt_save_LIBS="$LIBS"
17557  LIBS="$LIBS $LIBADD_DL"
17558
17559for ac_func in dlerror
17560do
17561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17562{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17564if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17565  echo $ECHO_N "(cached) $ECHO_C" >&6
17566else
17567  cat >conftest.$ac_ext <<_ACEOF
17568/* confdefs.h.  */
17569_ACEOF
17570cat confdefs.h >>conftest.$ac_ext
17571cat >>conftest.$ac_ext <<_ACEOF
17572/* end confdefs.h.  */
17573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17575#define $ac_func innocuous_$ac_func
17576
17577/* System header to define __stub macros and hopefully few prototypes,
17578    which can conflict with char $ac_func (); below.
17579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17580    <limits.h> exists even on freestanding compilers.  */
17581
17582#ifdef __STDC__
17583# include <limits.h>
17584#else
17585# include <assert.h>
17586#endif
17587
17588#undef $ac_func
17589
17590/* Override any GCC internal prototype to avoid an error.
17591   Use char because int might match the return type of a GCC
17592   builtin and then its argument prototype would still apply.  */
17593#ifdef __cplusplus
17594extern "C"
17595#endif
17596char $ac_func ();
17597/* The GNU C library defines this for functions which it implements
17598    to always fail with ENOSYS.  Some functions are actually named
17599    something starting with __ and the normal name is an alias.  */
17600#if defined __stub_$ac_func || defined __stub___$ac_func
17601choke me
17602#endif
17603
17604int
17605main ()
17606{
17607return $ac_func ();
17608  ;
17609  return 0;
17610}
17611_ACEOF
17612rm -f conftest.$ac_objext conftest$ac_exeext
17613if { (ac_try="$ac_link"
17614case "(($ac_try" in
17615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616  *) ac_try_echo=$ac_try;;
17617esac
17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619  (eval "$ac_link") 2>conftest.er1
17620  ac_status=$?
17621  grep -v '^ *+' conftest.er1 >conftest.err
17622  rm -f conftest.er1
17623  cat conftest.err >&5
17624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625  (exit $ac_status); } && {
17626	 test -z "$ac_c_werror_flag" ||
17627	 test ! -s conftest.err
17628       } && test -s conftest$ac_exeext &&
17629       $as_test_x conftest$ac_exeext; then
17630  eval "$as_ac_var=yes"
17631else
17632  echo "$as_me: failed program was:" >&5
17633sed 's/^/| /' conftest.$ac_ext >&5
17634
17635	eval "$as_ac_var=no"
17636fi
17637
17638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17639      conftest$ac_exeext conftest.$ac_ext
17640fi
17641ac_res=`eval echo '${'$as_ac_var'}'`
17642	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17643echo "${ECHO_T}$ac_res" >&6; }
17644if test `eval echo '${'$as_ac_var'}'` = yes; then
17645  cat >>confdefs.h <<_ACEOF
17646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17647_ACEOF
17648
17649fi
17650done
17651
17652  LIBS="$lt_save_LIBS"
17653fi
17654ac_ext=c
17655ac_cpp='$CPP $CPPFLAGS'
17656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658ac_compiler_gnu=$ac_cv_c_compiler_gnu
17659
17660
17661
17662{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
17663echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
17664if test "${ac_cv_sys_symbol_underscore+set}" = set; then
17665  echo $ECHO_N "(cached) $ECHO_C" >&6
17666else
17667  ac_cv_sys_symbol_underscore=no
17668  cat > conftest.$ac_ext <<EOF
17669void nm_test_func(){}
17670int main(){nm_test_func;return 0;}
17671EOF
17672  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17673  (eval $ac_compile) 2>&5
17674  ac_status=$?
17675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676  (exit $ac_status); }; then
17677    # Now try to grab the symbols.
17678    ac_nlist=conftest.nm
17679    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
17680  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17681  ac_status=$?
17682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683  (exit $ac_status); } && test -s "$ac_nlist"; then
17684      # See whether the symbols have a leading underscore.
17685      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17686        ac_cv_sys_symbol_underscore=yes
17687      else
17688        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17689	  :
17690        else
17691	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17692        fi
17693      fi
17694    else
17695      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17696    fi
17697  else
17698    echo "configure: failed program was:" >&5
17699    cat conftest.c >&5
17700  fi
17701  rm -rf conftest*
17702
17703fi
17704{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
17705echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
17706
17707
17708if test x"$ac_cv_sys_symbol_underscore" = xyes; then
17709  if test x"$libltdl_cv_func_dlopen" = xyes ||
17710     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
17711	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
17712echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
17713if test "${libltdl_cv_need_uscore+set}" = set; then
17714  echo $ECHO_N "(cached) $ECHO_C" >&6
17715else
17716  libltdl_cv_need_uscore=unknown
17717          save_LIBS="$LIBS"
17718          LIBS="$LIBS $LIBADD_DL"
17719	  if test "$cross_compiling" = yes; then :
17720  libltdl_cv_need_uscore=cross
17721else
17722  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17723  lt_status=$lt_dlunknown
17724  cat > conftest.$ac_ext <<EOF
17725#line 17725 "configure"
17726#include "confdefs.h"
17727
17728#if HAVE_DLFCN_H
17729#include <dlfcn.h>
17730#endif
17731
17732#include <stdio.h>
17733
17734#ifdef RTLD_GLOBAL
17735#  define LT_DLGLOBAL		RTLD_GLOBAL
17736#else
17737#  ifdef DL_GLOBAL
17738#    define LT_DLGLOBAL		DL_GLOBAL
17739#  else
17740#    define LT_DLGLOBAL		0
17741#  endif
17742#endif
17743
17744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17745   find out it does not work in some platform. */
17746#ifndef LT_DLLAZY_OR_NOW
17747#  ifdef RTLD_LAZY
17748#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17749#  else
17750#    ifdef DL_LAZY
17751#      define LT_DLLAZY_OR_NOW		DL_LAZY
17752#    else
17753#      ifdef RTLD_NOW
17754#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17755#      else
17756#        ifdef DL_NOW
17757#          define LT_DLLAZY_OR_NOW	DL_NOW
17758#        else
17759#          define LT_DLLAZY_OR_NOW	0
17760#        endif
17761#      endif
17762#    endif
17763#  endif
17764#endif
17765
17766#ifdef __cplusplus
17767extern "C" void exit (int);
17768#endif
17769
17770void fnord() { int i=42;}
17771int main ()
17772{
17773  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17774  int status = $lt_dlunknown;
17775
17776  if (self)
17777    {
17778      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17779      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17780      /* dlclose (self); */
17781    }
17782  else
17783    puts (dlerror ());
17784
17785    exit (status);
17786}
17787EOF
17788  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789  (eval $ac_link) 2>&5
17790  ac_status=$?
17791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17793    (./conftest; exit; ) >&5 2>/dev/null
17794    lt_status=$?
17795    case x$lt_status in
17796      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
17797      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
17798      x$lt_dlunknown|x*)  ;;
17799    esac
17800  else :
17801    # compilation failed
17802
17803  fi
17804fi
17805rm -fr conftest*
17806
17807	  LIBS="$save_LIBS"
17808
17809fi
17810{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
17811echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
17812  fi
17813fi
17814
17815if test x"$libltdl_cv_need_uscore" = xyes; then
17816
17817cat >>confdefs.h <<\_ACEOF
17818#define NEED_USCORE 1
17819_ACEOF
17820
17821fi
17822
17823
17824{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
17825echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
17826if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
17827  echo $ECHO_N "(cached) $ECHO_C" >&6
17828else
17829  # PORTME does your system automatically load deplibs for dlopen?
17830  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
17831  # For now, we just catch OSes we know something about -- in the
17832  # future, we'll try test this programmatically.
17833  libltdl_cv_sys_dlopen_deplibs=unknown
17834  case "$host_os" in
17835  aix3*|aix4.1.*|aix4.2.*)
17836    # Unknown whether this is true for these versions of AIX, but
17837    # we want this `case' here to explicitly catch those versions.
17838    libltdl_cv_sys_dlopen_deplibs=unknown
17839    ;;
17840  aix[45]*)
17841    libltdl_cv_sys_dlopen_deplibs=yes
17842    ;;
17843  darwin*)
17844    # Assuming the user has installed a libdl from somewhere, this is true
17845    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
17846    libltdl_cv_sys_dlopen_deplibs=yes
17847    ;;
17848  gnu* | linux* | k*bsd*-gnu)
17849    # GNU and its variants, using gnu ld.so (Glibc)
17850    libltdl_cv_sys_dlopen_deplibs=yes
17851    ;;
17852  hpux10*|hpux11*)
17853    libltdl_cv_sys_dlopen_deplibs=yes
17854    ;;
17855  interix*)
17856    libltdl_cv_sys_dlopen_deplibs=yes
17857    ;;
17858  irix[12345]*|irix6.[01]*)
17859    # Catch all versions of IRIX before 6.2, and indicate that we don't
17860    # know how it worked for any of those versions.
17861    libltdl_cv_sys_dlopen_deplibs=unknown
17862    ;;
17863  irix*)
17864    # The case above catches anything before 6.2, and it's known that
17865    # at 6.2 and later dlopen does load deplibs.
17866    libltdl_cv_sys_dlopen_deplibs=yes
17867    ;;
17868  netbsd* | netbsdelf*-gnu)
17869    libltdl_cv_sys_dlopen_deplibs=yes
17870    ;;
17871  openbsd*)
17872    libltdl_cv_sys_dlopen_deplibs=yes
17873    ;;
17874  osf[1234]*)
17875    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
17876    # it did *not* use an RPATH in a shared library to find objects the
17877    # library depends on, so we explictly say `no'.
17878    libltdl_cv_sys_dlopen_deplibs=no
17879    ;;
17880  osf5.0|osf5.0a|osf5.1)
17881    # dlopen *does* load deplibs and with the right loader patch applied
17882    # it even uses RPATH in a shared library to search for shared objects
17883    # that the library depends on, but there's no easy way to know if that
17884    # patch is installed.  Since this is the case, all we can really
17885    # say is unknown -- it depends on the patch being installed.  If
17886    # it is, this changes to `yes'.  Without it, it would be `no'.
17887    libltdl_cv_sys_dlopen_deplibs=unknown
17888    ;;
17889  osf*)
17890    # the two cases above should catch all versions of osf <= 5.1.  Read
17891    # the comments above for what we know about them.
17892    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
17893    # is used to find them so we can finally say `yes'.
17894    libltdl_cv_sys_dlopen_deplibs=yes
17895    ;;
17896  solaris*)
17897    libltdl_cv_sys_dlopen_deplibs=yes
17898    ;;
17899  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17900    libltdl_cv_sys_dlopen_deplibs=yes
17901    ;;
17902  esac
17903
17904fi
17905{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
17906echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
17907if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
17908
17909cat >>confdefs.h <<\_ACEOF
17910#define LTDL_DLOPEN_DEPLIBS 1
17911_ACEOF
17912
17913fi
17914
17915
17916for ac_header in argz.h
17917do
17918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17920  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17923  echo $ECHO_N "(cached) $ECHO_C" >&6
17924fi
17925ac_res=`eval echo '${'$as_ac_Header'}'`
17926	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17927echo "${ECHO_T}$ac_res" >&6; }
17928else
17929  # Is the header compilable?
17930{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17932cat >conftest.$ac_ext <<_ACEOF
17933/* confdefs.h.  */
17934_ACEOF
17935cat confdefs.h >>conftest.$ac_ext
17936cat >>conftest.$ac_ext <<_ACEOF
17937/* end confdefs.h.  */
17938$ac_includes_default
17939#include <$ac_header>
17940_ACEOF
17941rm -f conftest.$ac_objext
17942if { (ac_try="$ac_compile"
17943case "(($ac_try" in
17944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945  *) ac_try_echo=$ac_try;;
17946esac
17947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948  (eval "$ac_compile") 2>conftest.er1
17949  ac_status=$?
17950  grep -v '^ *+' conftest.er1 >conftest.err
17951  rm -f conftest.er1
17952  cat conftest.err >&5
17953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954  (exit $ac_status); } && {
17955	 test -z "$ac_c_werror_flag" ||
17956	 test ! -s conftest.err
17957       } && test -s conftest.$ac_objext; then
17958  ac_header_compiler=yes
17959else
17960  echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963	ac_header_compiler=no
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17968echo "${ECHO_T}$ac_header_compiler" >&6; }
17969
17970# Is the header present?
17971{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17973cat >conftest.$ac_ext <<_ACEOF
17974/* confdefs.h.  */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h.  */
17979#include <$ac_header>
17980_ACEOF
17981if { (ac_try="$ac_cpp conftest.$ac_ext"
17982case "(($ac_try" in
17983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984  *) ac_try_echo=$ac_try;;
17985esac
17986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17988  ac_status=$?
17989  grep -v '^ *+' conftest.er1 >conftest.err
17990  rm -f conftest.er1
17991  cat conftest.err >&5
17992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993  (exit $ac_status); } >/dev/null && {
17994	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17995	 test ! -s conftest.err
17996       }; then
17997  ac_header_preproc=yes
17998else
17999  echo "$as_me: failed program was:" >&5
18000sed 's/^/| /' conftest.$ac_ext >&5
18001
18002  ac_header_preproc=no
18003fi
18004
18005rm -f conftest.err conftest.$ac_ext
18006{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18007echo "${ECHO_T}$ac_header_preproc" >&6; }
18008
18009# So?  What about this header?
18010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18011  yes:no: )
18012    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18014    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18016    ac_header_preproc=yes
18017    ;;
18018  no:yes:* )
18019    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18021    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18022echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18023    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18025    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18026echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18029    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18031    ( cat <<\_ASBOX
18032## ------------------------------------------------------------ ##
18033## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
18034## ------------------------------------------------------------ ##
18035_ASBOX
18036     ) | sed "s/^/$as_me: WARNING:     /" >&2
18037    ;;
18038esac
18039{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18042  echo $ECHO_N "(cached) $ECHO_C" >&6
18043else
18044  eval "$as_ac_Header=\$ac_header_preproc"
18045fi
18046ac_res=`eval echo '${'$as_ac_Header'}'`
18047	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18048echo "${ECHO_T}$ac_res" >&6; }
18049
18050fi
18051if test `eval echo '${'$as_ac_Header'}'` = yes; then
18052  cat >>confdefs.h <<_ACEOF
18053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18054_ACEOF
18055
18056fi
18057
18058done
18059
18060
18061{ echo "$as_me:$LINENO: checking for error_t" >&5
18062echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
18063if test "${ac_cv_type_error_t+set}" = set; then
18064  echo $ECHO_N "(cached) $ECHO_C" >&6
18065else
18066  cat >conftest.$ac_ext <<_ACEOF
18067/* confdefs.h.  */
18068_ACEOF
18069cat confdefs.h >>conftest.$ac_ext
18070cat >>conftest.$ac_ext <<_ACEOF
18071/* end confdefs.h.  */
18072#if HAVE_ARGZ_H
18073#  include <argz.h>
18074#endif
18075
18076typedef error_t ac__type_new_;
18077int
18078main ()
18079{
18080if ((ac__type_new_ *) 0)
18081  return 0;
18082if (sizeof (ac__type_new_))
18083  return 0;
18084  ;
18085  return 0;
18086}
18087_ACEOF
18088rm -f conftest.$ac_objext
18089if { (ac_try="$ac_compile"
18090case "(($ac_try" in
18091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092  *) ac_try_echo=$ac_try;;
18093esac
18094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095  (eval "$ac_compile") 2>conftest.er1
18096  ac_status=$?
18097  grep -v '^ *+' conftest.er1 >conftest.err
18098  rm -f conftest.er1
18099  cat conftest.err >&5
18100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101  (exit $ac_status); } && {
18102	 test -z "$ac_c_werror_flag" ||
18103	 test ! -s conftest.err
18104       } && test -s conftest.$ac_objext; then
18105  ac_cv_type_error_t=yes
18106else
18107  echo "$as_me: failed program was:" >&5
18108sed 's/^/| /' conftest.$ac_ext >&5
18109
18110	ac_cv_type_error_t=no
18111fi
18112
18113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114fi
18115{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
18116echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
18117if test $ac_cv_type_error_t = yes; then
18118
18119cat >>confdefs.h <<_ACEOF
18120#define HAVE_ERROR_T 1
18121_ACEOF
18122
18123
18124else
18125
18126cat >>confdefs.h <<\_ACEOF
18127#define error_t int
18128_ACEOF
18129
18130fi
18131
18132
18133
18134
18135
18136
18137
18138for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
18139do
18140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18141{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18143if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18144  echo $ECHO_N "(cached) $ECHO_C" >&6
18145else
18146  cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h.  */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h.  */
18152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18153   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18154#define $ac_func innocuous_$ac_func
18155
18156/* System header to define __stub macros and hopefully few prototypes,
18157    which can conflict with char $ac_func (); below.
18158    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159    <limits.h> exists even on freestanding compilers.  */
18160
18161#ifdef __STDC__
18162# include <limits.h>
18163#else
18164# include <assert.h>
18165#endif
18166
18167#undef $ac_func
18168
18169/* Override any GCC internal prototype to avoid an error.
18170   Use char because int might match the return type of a GCC
18171   builtin and then its argument prototype would still apply.  */
18172#ifdef __cplusplus
18173extern "C"
18174#endif
18175char $ac_func ();
18176/* The GNU C library defines this for functions which it implements
18177    to always fail with ENOSYS.  Some functions are actually named
18178    something starting with __ and the normal name is an alias.  */
18179#if defined __stub_$ac_func || defined __stub___$ac_func
18180choke me
18181#endif
18182
18183int
18184main ()
18185{
18186return $ac_func ();
18187  ;
18188  return 0;
18189}
18190_ACEOF
18191rm -f conftest.$ac_objext conftest$ac_exeext
18192if { (ac_try="$ac_link"
18193case "(($ac_try" in
18194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195  *) ac_try_echo=$ac_try;;
18196esac
18197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198  (eval "$ac_link") 2>conftest.er1
18199  ac_status=$?
18200  grep -v '^ *+' conftest.er1 >conftest.err
18201  rm -f conftest.er1
18202  cat conftest.err >&5
18203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204  (exit $ac_status); } && {
18205	 test -z "$ac_c_werror_flag" ||
18206	 test ! -s conftest.err
18207       } && test -s conftest$ac_exeext &&
18208       $as_test_x conftest$ac_exeext; then
18209  eval "$as_ac_var=yes"
18210else
18211  echo "$as_me: failed program was:" >&5
18212sed 's/^/| /' conftest.$ac_ext >&5
18213
18214	eval "$as_ac_var=no"
18215fi
18216
18217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18218      conftest$ac_exeext conftest.$ac_ext
18219fi
18220ac_res=`eval echo '${'$as_ac_var'}'`
18221	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18222echo "${ECHO_T}$ac_res" >&6; }
18223if test `eval echo '${'$as_ac_var'}'` = yes; then
18224  cat >>confdefs.h <<_ACEOF
18225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226_ACEOF
18227
18228fi
18229done
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
18259		  stdio.h unistd.h
18260do
18261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18263  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266  echo $ECHO_N "(cached) $ECHO_C" >&6
18267fi
18268ac_res=`eval echo '${'$as_ac_Header'}'`
18269	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18270echo "${ECHO_T}$ac_res" >&6; }
18271else
18272  # Is the header compilable?
18273{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18274echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18275cat >conftest.$ac_ext <<_ACEOF
18276/* confdefs.h.  */
18277_ACEOF
18278cat confdefs.h >>conftest.$ac_ext
18279cat >>conftest.$ac_ext <<_ACEOF
18280/* end confdefs.h.  */
18281$ac_includes_default
18282#include <$ac_header>
18283_ACEOF
18284rm -f conftest.$ac_objext
18285if { (ac_try="$ac_compile"
18286case "(($ac_try" in
18287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288  *) ac_try_echo=$ac_try;;
18289esac
18290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291  (eval "$ac_compile") 2>conftest.er1
18292  ac_status=$?
18293  grep -v '^ *+' conftest.er1 >conftest.err
18294  rm -f conftest.er1
18295  cat conftest.err >&5
18296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297  (exit $ac_status); } && {
18298	 test -z "$ac_c_werror_flag" ||
18299	 test ! -s conftest.err
18300       } && test -s conftest.$ac_objext; then
18301  ac_header_compiler=yes
18302else
18303  echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
18306	ac_header_compiler=no
18307fi
18308
18309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18311echo "${ECHO_T}$ac_header_compiler" >&6; }
18312
18313# Is the header present?
18314{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18316cat >conftest.$ac_ext <<_ACEOF
18317/* confdefs.h.  */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h.  */
18322#include <$ac_header>
18323_ACEOF
18324if { (ac_try="$ac_cpp conftest.$ac_ext"
18325case "(($ac_try" in
18326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327  *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18331  ac_status=$?
18332  grep -v '^ *+' conftest.er1 >conftest.err
18333  rm -f conftest.er1
18334  cat conftest.err >&5
18335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336  (exit $ac_status); } >/dev/null && {
18337	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338	 test ! -s conftest.err
18339       }; then
18340  ac_header_preproc=yes
18341else
18342  echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345  ac_header_preproc=no
18346fi
18347
18348rm -f conftest.err conftest.$ac_ext
18349{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18350echo "${ECHO_T}$ac_header_preproc" >&6; }
18351
18352# So?  What about this header?
18353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18354  yes:no: )
18355    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18359    ac_header_preproc=yes
18360    ;;
18361  no:yes:* )
18362    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18364    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18365echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18366    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18368    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18369echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18370    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18372    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18374    ( cat <<\_ASBOX
18375## ------------------------------------------------------------ ##
18376## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
18377## ------------------------------------------------------------ ##
18378_ASBOX
18379     ) | sed "s/^/$as_me: WARNING:     /" >&2
18380    ;;
18381esac
18382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18385  echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387  eval "$as_ac_Header=\$ac_header_preproc"
18388fi
18389ac_res=`eval echo '${'$as_ac_Header'}'`
18390	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18391echo "${ECHO_T}$ac_res" >&6; }
18392
18393fi
18394if test `eval echo '${'$as_ac_Header'}'` = yes; then
18395  cat >>confdefs.h <<_ACEOF
18396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18397_ACEOF
18398
18399fi
18400
18401done
18402
18403
18404
18405
18406
18407for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
18408do
18409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18411  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18414  echo $ECHO_N "(cached) $ECHO_C" >&6
18415fi
18416ac_res=`eval echo '${'$as_ac_Header'}'`
18417	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18418echo "${ECHO_T}$ac_res" >&6; }
18419else
18420  # Is the header compilable?
18421{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18423cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h.  */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h.  */
18429$ac_includes_default
18430#include <$ac_header>
18431_ACEOF
18432rm -f conftest.$ac_objext
18433if { (ac_try="$ac_compile"
18434case "(($ac_try" in
18435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436  *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439  (eval "$ac_compile") 2>conftest.er1
18440  ac_status=$?
18441  grep -v '^ *+' conftest.er1 >conftest.err
18442  rm -f conftest.er1
18443  cat conftest.err >&5
18444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445  (exit $ac_status); } && {
18446	 test -z "$ac_c_werror_flag" ||
18447	 test ! -s conftest.err
18448       } && test -s conftest.$ac_objext; then
18449  ac_header_compiler=yes
18450else
18451  echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454	ac_header_compiler=no
18455fi
18456
18457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18458{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18459echo "${ECHO_T}$ac_header_compiler" >&6; }
18460
18461# Is the header present?
18462{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18464cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h.  */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
18469/* end confdefs.h.  */
18470#include <$ac_header>
18471_ACEOF
18472if { (ac_try="$ac_cpp conftest.$ac_ext"
18473case "(($ac_try" in
18474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475  *) ac_try_echo=$ac_try;;
18476esac
18477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18479  ac_status=$?
18480  grep -v '^ *+' conftest.er1 >conftest.err
18481  rm -f conftest.er1
18482  cat conftest.err >&5
18483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484  (exit $ac_status); } >/dev/null && {
18485	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18486	 test ! -s conftest.err
18487       }; then
18488  ac_header_preproc=yes
18489else
18490  echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493  ac_header_preproc=no
18494fi
18495
18496rm -f conftest.err conftest.$ac_ext
18497{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18498echo "${ECHO_T}$ac_header_preproc" >&6; }
18499
18500# So?  What about this header?
18501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18502  yes:no: )
18503    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18507    ac_header_preproc=yes
18508    ;;
18509  no:yes:* )
18510    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18512    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18513echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18514    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18516    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18517echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18520    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18522    ( cat <<\_ASBOX
18523## ------------------------------------------------------------ ##
18524## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
18525## ------------------------------------------------------------ ##
18526_ASBOX
18527     ) | sed "s/^/$as_me: WARNING:     /" >&2
18528    ;;
18529esac
18530{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18533  echo $ECHO_N "(cached) $ECHO_C" >&6
18534else
18535  eval "$as_ac_Header=\$ac_header_preproc"
18536fi
18537ac_res=`eval echo '${'$as_ac_Header'}'`
18538	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18539echo "${ECHO_T}$ac_res" >&6; }
18540
18541fi
18542if test `eval echo '${'$as_ac_Header'}'` = yes; then
18543  cat >>confdefs.h <<_ACEOF
18544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18545_ACEOF
18546
18547fi
18548
18549done
18550
18551
18552
18553for ac_header in string.h strings.h
18554do
18555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18557  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18560  echo $ECHO_N "(cached) $ECHO_C" >&6
18561fi
18562ac_res=`eval echo '${'$as_ac_Header'}'`
18563	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18564echo "${ECHO_T}$ac_res" >&6; }
18565else
18566  # Is the header compilable?
18567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18569cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h.  */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h.  */
18575$ac_includes_default
18576#include <$ac_header>
18577_ACEOF
18578rm -f conftest.$ac_objext
18579if { (ac_try="$ac_compile"
18580case "(($ac_try" in
18581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582  *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585  (eval "$ac_compile") 2>conftest.er1
18586  ac_status=$?
18587  grep -v '^ *+' conftest.er1 >conftest.err
18588  rm -f conftest.er1
18589  cat conftest.err >&5
18590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591  (exit $ac_status); } && {
18592	 test -z "$ac_c_werror_flag" ||
18593	 test ! -s conftest.err
18594       } && test -s conftest.$ac_objext; then
18595  ac_header_compiler=yes
18596else
18597  echo "$as_me: failed program was:" >&5
18598sed 's/^/| /' conftest.$ac_ext >&5
18599
18600	ac_header_compiler=no
18601fi
18602
18603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18605echo "${ECHO_T}$ac_header_compiler" >&6; }
18606
18607# Is the header present?
18608{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18610cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h.  */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h.  */
18616#include <$ac_header>
18617_ACEOF
18618if { (ac_try="$ac_cpp conftest.$ac_ext"
18619case "(($ac_try" in
18620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621  *) ac_try_echo=$ac_try;;
18622esac
18623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18625  ac_status=$?
18626  grep -v '^ *+' conftest.er1 >conftest.err
18627  rm -f conftest.er1
18628  cat conftest.err >&5
18629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630  (exit $ac_status); } >/dev/null && {
18631	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18632	 test ! -s conftest.err
18633       }; then
18634  ac_header_preproc=yes
18635else
18636  echo "$as_me: failed program was:" >&5
18637sed 's/^/| /' conftest.$ac_ext >&5
18638
18639  ac_header_preproc=no
18640fi
18641
18642rm -f conftest.err conftest.$ac_ext
18643{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18644echo "${ECHO_T}$ac_header_preproc" >&6; }
18645
18646# So?  What about this header?
18647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18648  yes:no: )
18649    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18653    ac_header_preproc=yes
18654    ;;
18655  no:yes:* )
18656    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18658    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18659echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18660    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18662    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18663echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18664    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18666    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18668    ( cat <<\_ASBOX
18669## ------------------------------------------------------------ ##
18670## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
18671## ------------------------------------------------------------ ##
18672_ASBOX
18673     ) | sed "s/^/$as_me: WARNING:     /" >&2
18674    ;;
18675esac
18676{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18679  echo $ECHO_N "(cached) $ECHO_C" >&6
18680else
18681  eval "$as_ac_Header=\$ac_header_preproc"
18682fi
18683ac_res=`eval echo '${'$as_ac_Header'}'`
18684	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18685echo "${ECHO_T}$ac_res" >&6; }
18686
18687fi
18688if test `eval echo '${'$as_ac_Header'}'` = yes; then
18689  cat >>confdefs.h <<_ACEOF
18690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18691_ACEOF
18692 break
18693fi
18694
18695done
18696
18697
18698
18699
18700for ac_func in strchr index
18701do
18702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18703{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18705if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18706  echo $ECHO_N "(cached) $ECHO_C" >&6
18707else
18708  cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h.  */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h.  */
18714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18716#define $ac_func innocuous_$ac_func
18717
18718/* System header to define __stub macros and hopefully few prototypes,
18719    which can conflict with char $ac_func (); below.
18720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18721    <limits.h> exists even on freestanding compilers.  */
18722
18723#ifdef __STDC__
18724# include <limits.h>
18725#else
18726# include <assert.h>
18727#endif
18728
18729#undef $ac_func
18730
18731/* Override any GCC internal prototype to avoid an error.
18732   Use char because int might match the return type of a GCC
18733   builtin and then its argument prototype would still apply.  */
18734#ifdef __cplusplus
18735extern "C"
18736#endif
18737char $ac_func ();
18738/* The GNU C library defines this for functions which it implements
18739    to always fail with ENOSYS.  Some functions are actually named
18740    something starting with __ and the normal name is an alias.  */
18741#if defined __stub_$ac_func || defined __stub___$ac_func
18742choke me
18743#endif
18744
18745int
18746main ()
18747{
18748return $ac_func ();
18749  ;
18750  return 0;
18751}
18752_ACEOF
18753rm -f conftest.$ac_objext conftest$ac_exeext
18754if { (ac_try="$ac_link"
18755case "(($ac_try" in
18756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757  *) ac_try_echo=$ac_try;;
18758esac
18759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760  (eval "$ac_link") 2>conftest.er1
18761  ac_status=$?
18762  grep -v '^ *+' conftest.er1 >conftest.err
18763  rm -f conftest.er1
18764  cat conftest.err >&5
18765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766  (exit $ac_status); } && {
18767	 test -z "$ac_c_werror_flag" ||
18768	 test ! -s conftest.err
18769       } && test -s conftest$ac_exeext &&
18770       $as_test_x conftest$ac_exeext; then
18771  eval "$as_ac_var=yes"
18772else
18773  echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776	eval "$as_ac_var=no"
18777fi
18778
18779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18780      conftest$ac_exeext conftest.$ac_ext
18781fi
18782ac_res=`eval echo '${'$as_ac_var'}'`
18783	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18784echo "${ECHO_T}$ac_res" >&6; }
18785if test `eval echo '${'$as_ac_var'}'` = yes; then
18786  cat >>confdefs.h <<_ACEOF
18787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18788_ACEOF
18789 break
18790fi
18791done
18792
18793
18794
18795for ac_func in strrchr rindex
18796do
18797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18801  echo $ECHO_N "(cached) $ECHO_C" >&6
18802else
18803  cat >conftest.$ac_ext <<_ACEOF
18804/* confdefs.h.  */
18805_ACEOF
18806cat confdefs.h >>conftest.$ac_ext
18807cat >>conftest.$ac_ext <<_ACEOF
18808/* end confdefs.h.  */
18809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18810   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18811#define $ac_func innocuous_$ac_func
18812
18813/* System header to define __stub macros and hopefully few prototypes,
18814    which can conflict with char $ac_func (); below.
18815    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18816    <limits.h> exists even on freestanding compilers.  */
18817
18818#ifdef __STDC__
18819# include <limits.h>
18820#else
18821# include <assert.h>
18822#endif
18823
18824#undef $ac_func
18825
18826/* Override any GCC internal prototype to avoid an error.
18827   Use char because int might match the return type of a GCC
18828   builtin and then its argument prototype would still apply.  */
18829#ifdef __cplusplus
18830extern "C"
18831#endif
18832char $ac_func ();
18833/* The GNU C library defines this for functions which it implements
18834    to always fail with ENOSYS.  Some functions are actually named
18835    something starting with __ and the normal name is an alias.  */
18836#if defined __stub_$ac_func || defined __stub___$ac_func
18837choke me
18838#endif
18839
18840int
18841main ()
18842{
18843return $ac_func ();
18844  ;
18845  return 0;
18846}
18847_ACEOF
18848rm -f conftest.$ac_objext conftest$ac_exeext
18849if { (ac_try="$ac_link"
18850case "(($ac_try" in
18851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852  *) ac_try_echo=$ac_try;;
18853esac
18854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855  (eval "$ac_link") 2>conftest.er1
18856  ac_status=$?
18857  grep -v '^ *+' conftest.er1 >conftest.err
18858  rm -f conftest.er1
18859  cat conftest.err >&5
18860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861  (exit $ac_status); } && {
18862	 test -z "$ac_c_werror_flag" ||
18863	 test ! -s conftest.err
18864       } && test -s conftest$ac_exeext &&
18865       $as_test_x conftest$ac_exeext; then
18866  eval "$as_ac_var=yes"
18867else
18868  echo "$as_me: failed program was:" >&5
18869sed 's/^/| /' conftest.$ac_ext >&5
18870
18871	eval "$as_ac_var=no"
18872fi
18873
18874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18875      conftest$ac_exeext conftest.$ac_ext
18876fi
18877ac_res=`eval echo '${'$as_ac_var'}'`
18878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18879echo "${ECHO_T}$ac_res" >&6; }
18880if test `eval echo '${'$as_ac_var'}'` = yes; then
18881  cat >>confdefs.h <<_ACEOF
18882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18883_ACEOF
18884 break
18885fi
18886done
18887
18888
18889
18890for ac_func in memcpy bcopy
18891do
18892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18896  echo $ECHO_N "(cached) $ECHO_C" >&6
18897else
18898  cat >conftest.$ac_ext <<_ACEOF
18899/* confdefs.h.  */
18900_ACEOF
18901cat confdefs.h >>conftest.$ac_ext
18902cat >>conftest.$ac_ext <<_ACEOF
18903/* end confdefs.h.  */
18904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18905   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18906#define $ac_func innocuous_$ac_func
18907
18908/* System header to define __stub macros and hopefully few prototypes,
18909    which can conflict with char $ac_func (); below.
18910    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18911    <limits.h> exists even on freestanding compilers.  */
18912
18913#ifdef __STDC__
18914# include <limits.h>
18915#else
18916# include <assert.h>
18917#endif
18918
18919#undef $ac_func
18920
18921/* Override any GCC internal prototype to avoid an error.
18922   Use char because int might match the return type of a GCC
18923   builtin and then its argument prototype would still apply.  */
18924#ifdef __cplusplus
18925extern "C"
18926#endif
18927char $ac_func ();
18928/* The GNU C library defines this for functions which it implements
18929    to always fail with ENOSYS.  Some functions are actually named
18930    something starting with __ and the normal name is an alias.  */
18931#if defined __stub_$ac_func || defined __stub___$ac_func
18932choke me
18933#endif
18934
18935int
18936main ()
18937{
18938return $ac_func ();
18939  ;
18940  return 0;
18941}
18942_ACEOF
18943rm -f conftest.$ac_objext conftest$ac_exeext
18944if { (ac_try="$ac_link"
18945case "(($ac_try" in
18946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947  *) ac_try_echo=$ac_try;;
18948esac
18949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950  (eval "$ac_link") 2>conftest.er1
18951  ac_status=$?
18952  grep -v '^ *+' conftest.er1 >conftest.err
18953  rm -f conftest.er1
18954  cat conftest.err >&5
18955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956  (exit $ac_status); } && {
18957	 test -z "$ac_c_werror_flag" ||
18958	 test ! -s conftest.err
18959       } && test -s conftest$ac_exeext &&
18960       $as_test_x conftest$ac_exeext; then
18961  eval "$as_ac_var=yes"
18962else
18963  echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966	eval "$as_ac_var=no"
18967fi
18968
18969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18970      conftest$ac_exeext conftest.$ac_ext
18971fi
18972ac_res=`eval echo '${'$as_ac_var'}'`
18973	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18974echo "${ECHO_T}$ac_res" >&6; }
18975if test `eval echo '${'$as_ac_var'}'` = yes; then
18976  cat >>confdefs.h <<_ACEOF
18977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18978_ACEOF
18979 break
18980fi
18981done
18982
18983
18984
18985for ac_func in memmove strcmp
18986do
18987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18991  echo $ECHO_N "(cached) $ECHO_C" >&6
18992else
18993  cat >conftest.$ac_ext <<_ACEOF
18994/* confdefs.h.  */
18995_ACEOF
18996cat confdefs.h >>conftest.$ac_ext
18997cat >>conftest.$ac_ext <<_ACEOF
18998/* end confdefs.h.  */
18999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19001#define $ac_func innocuous_$ac_func
19002
19003/* System header to define __stub macros and hopefully few prototypes,
19004    which can conflict with char $ac_func (); below.
19005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19006    <limits.h> exists even on freestanding compilers.  */
19007
19008#ifdef __STDC__
19009# include <limits.h>
19010#else
19011# include <assert.h>
19012#endif
19013
19014#undef $ac_func
19015
19016/* Override any GCC internal prototype to avoid an error.
19017   Use char because int might match the return type of a GCC
19018   builtin and then its argument prototype would still apply.  */
19019#ifdef __cplusplus
19020extern "C"
19021#endif
19022char $ac_func ();
19023/* The GNU C library defines this for functions which it implements
19024    to always fail with ENOSYS.  Some functions are actually named
19025    something starting with __ and the normal name is an alias.  */
19026#if defined __stub_$ac_func || defined __stub___$ac_func
19027choke me
19028#endif
19029
19030int
19031main ()
19032{
19033return $ac_func ();
19034  ;
19035  return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext conftest$ac_exeext
19039if { (ac_try="$ac_link"
19040case "(($ac_try" in
19041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042  *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045  (eval "$ac_link") 2>conftest.er1
19046  ac_status=$?
19047  grep -v '^ *+' conftest.er1 >conftest.err
19048  rm -f conftest.er1
19049  cat conftest.err >&5
19050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051  (exit $ac_status); } && {
19052	 test -z "$ac_c_werror_flag" ||
19053	 test ! -s conftest.err
19054       } && test -s conftest$ac_exeext &&
19055       $as_test_x conftest$ac_exeext; then
19056  eval "$as_ac_var=yes"
19057else
19058  echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061	eval "$as_ac_var=no"
19062fi
19063
19064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19065      conftest$ac_exeext conftest.$ac_ext
19066fi
19067ac_res=`eval echo '${'$as_ac_var'}'`
19068	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19069echo "${ECHO_T}$ac_res" >&6; }
19070if test `eval echo '${'$as_ac_var'}'` = yes; then
19071  cat >>confdefs.h <<_ACEOF
19072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19073_ACEOF
19074
19075fi
19076done
19077
19078
19079
19080
19081for ac_func in closedir opendir readdir
19082do
19083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19087  echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089  cat >conftest.$ac_ext <<_ACEOF
19090/* confdefs.h.  */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h.  */
19095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19096   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19097#define $ac_func innocuous_$ac_func
19098
19099/* System header to define __stub macros and hopefully few prototypes,
19100    which can conflict with char $ac_func (); below.
19101    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19102    <limits.h> exists even on freestanding compilers.  */
19103
19104#ifdef __STDC__
19105# include <limits.h>
19106#else
19107# include <assert.h>
19108#endif
19109
19110#undef $ac_func
19111
19112/* Override any GCC internal prototype to avoid an error.
19113   Use char because int might match the return type of a GCC
19114   builtin and then its argument prototype would still apply.  */
19115#ifdef __cplusplus
19116extern "C"
19117#endif
19118char $ac_func ();
19119/* The GNU C library defines this for functions which it implements
19120    to always fail with ENOSYS.  Some functions are actually named
19121    something starting with __ and the normal name is an alias.  */
19122#if defined __stub_$ac_func || defined __stub___$ac_func
19123choke me
19124#endif
19125
19126int
19127main ()
19128{
19129return $ac_func ();
19130  ;
19131  return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext conftest$ac_exeext
19135if { (ac_try="$ac_link"
19136case "(($ac_try" in
19137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138  *) ac_try_echo=$ac_try;;
19139esac
19140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141  (eval "$ac_link") 2>conftest.er1
19142  ac_status=$?
19143  grep -v '^ *+' conftest.er1 >conftest.err
19144  rm -f conftest.er1
19145  cat conftest.err >&5
19146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147  (exit $ac_status); } && {
19148	 test -z "$ac_c_werror_flag" ||
19149	 test ! -s conftest.err
19150       } && test -s conftest$ac_exeext &&
19151       $as_test_x conftest$ac_exeext; then
19152  eval "$as_ac_var=yes"
19153else
19154  echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
19156
19157	eval "$as_ac_var=no"
19158fi
19159
19160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19161      conftest$ac_exeext conftest.$ac_ext
19162fi
19163ac_res=`eval echo '${'$as_ac_var'}'`
19164	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19165echo "${ECHO_T}$ac_res" >&6; }
19166if test `eval echo '${'$as_ac_var'}'` = yes; then
19167  cat >>confdefs.h <<_ACEOF
19168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19169_ACEOF
19170
19171fi
19172done
19173
19174
19175  case $enable_ltdl_convenience in
19176  no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
19177echo "$as_me: error: this package needs a convenience libltdl" >&2;}
19178   { (exit 1); exit 1; }; } ;;
19179  "") enable_ltdl_convenience=yes
19180      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19181  esac
19182  LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
19183  LTDLINCL='-I${top_srcdir}/''libltdl'
19184  # For backwards non-gettext consistent compatibility...
19185  INCLTDL="$LTDLINCL"
19186
19187
19188
19189# Check whether --enable-shared was given.
19190if test "${enable_shared+set}" = set; then
19191  enableval=$enable_shared; p=${PACKAGE-default}
19192    case $enableval in
19193    yes) enable_shared=yes ;;
19194    no) enable_shared=no ;;
19195    *)
19196      enable_shared=no
19197      # Look at the argument we got.  We use all the common list separators.
19198      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19199      for pkg in $enableval; do
19200	IFS="$lt_save_ifs"
19201	if test "X$pkg" = "X$p"; then
19202	  enable_shared=yes
19203	fi
19204      done
19205      IFS="$lt_save_ifs"
19206      ;;
19207    esac
19208else
19209  enable_shared=yes
19210fi
19211
19212
19213# Check whether --enable-static was given.
19214if test "${enable_static+set}" = set; then
19215  enableval=$enable_static; p=${PACKAGE-default}
19216    case $enableval in
19217    yes) enable_static=yes ;;
19218    no) enable_static=no ;;
19219    *)
19220     enable_static=no
19221      # Look at the argument we got.  We use all the common list separators.
19222      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19223      for pkg in $enableval; do
19224	IFS="$lt_save_ifs"
19225	if test "X$pkg" = "X$p"; then
19226	  enable_static=yes
19227	fi
19228      done
19229      IFS="$lt_save_ifs"
19230      ;;
19231    esac
19232else
19233  enable_static=yes
19234fi
19235
19236
19237# Check whether --enable-fast-install was given.
19238if test "${enable_fast_install+set}" = set; then
19239  enableval=$enable_fast_install; p=${PACKAGE-default}
19240    case $enableval in
19241    yes) enable_fast_install=yes ;;
19242    no) enable_fast_install=no ;;
19243    *)
19244      enable_fast_install=no
19245      # Look at the argument we got.  We use all the common list separators.
19246      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
19247      for pkg in $enableval; do
19248	IFS="$lt_save_ifs"
19249	if test "X$pkg" = "X$p"; then
19250	  enable_fast_install=yes
19251	fi
19252      done
19253      IFS="$lt_save_ifs"
19254      ;;
19255    esac
19256else
19257  enable_fast_install=yes
19258fi
19259
19260
19261
19262# Check whether --with-gnu-ld was given.
19263if test "${with_gnu_ld+set}" = set; then
19264  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19265else
19266  with_gnu_ld=no
19267fi
19268
19269ac_prog=ld
19270if test "$GCC" = yes; then
19271  # Check if gcc -print-prog-name=ld gives a path.
19272  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
19273echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
19274  case $host in
19275  *-*-mingw*)
19276    # gcc leaves a trailing carriage return which upsets mingw
19277    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19278  *)
19279    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19280  esac
19281  case $ac_prog in
19282    # Accept absolute paths.
19283    [\\/]* | ?:[\\/]*)
19284      re_direlt='/[^/][^/]*/\.\./'
19285      # Canonicalize the pathname of ld
19286      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
19287      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19288	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
19289      done
19290      test -z "$LD" && LD="$ac_prog"
19291      ;;
19292  "")
19293    # If it fails, then pretend we aren't using GCC.
19294    ac_prog=ld
19295    ;;
19296  *)
19297    # If it is relative, then search for the first ld in PATH.
19298    with_gnu_ld=unknown
19299    ;;
19300  esac
19301elif test "$with_gnu_ld" = yes; then
19302  { echo "$as_me:$LINENO: checking for GNU ld" >&5
19303echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
19304else
19305  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19306echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
19307fi
19308if test "${lt_cv_path_LD+set}" = set; then
19309  echo $ECHO_N "(cached) $ECHO_C" >&6
19310else
19311  if test -z "$LD"; then
19312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19313  for ac_dir in $PATH; do
19314    IFS="$lt_save_ifs"
19315    test -z "$ac_dir" && ac_dir=.
19316    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19317      lt_cv_path_LD="$ac_dir/$ac_prog"
19318      # Check to see if the program is GNU ld.  I'd rather use --version,
19319      # but apparently some variants of GNU ld only accept -v.
19320      # Break only if it was the GNU/non-GNU ld that we prefer.
19321      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19322      *GNU* | *'with BFD'*)
19323	test "$with_gnu_ld" != no && break
19324	;;
19325      *)
19326	test "$with_gnu_ld" != yes && break
19327	;;
19328      esac
19329    fi
19330  done
19331  IFS="$lt_save_ifs"
19332else
19333  lt_cv_path_LD="$LD" # Let the user override the test with a path.
19334fi
19335fi
19336
19337LD="$lt_cv_path_LD"
19338if test -n "$LD"; then
19339  { echo "$as_me:$LINENO: result: $LD" >&5
19340echo "${ECHO_T}$LD" >&6; }
19341else
19342  { echo "$as_me:$LINENO: result: no" >&5
19343echo "${ECHO_T}no" >&6; }
19344fi
19345test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19346echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19347   { (exit 1); exit 1; }; }
19348{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19349echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19350if test "${lt_cv_prog_gnu_ld+set}" = set; then
19351  echo $ECHO_N "(cached) $ECHO_C" >&6
19352else
19353  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19354case `$LD -v 2>&1 </dev/null` in
19355*GNU* | *'with BFD'*)
19356  lt_cv_prog_gnu_ld=yes
19357  ;;
19358*)
19359  lt_cv_prog_gnu_ld=no
19360  ;;
19361esac
19362fi
19363{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19364echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
19365with_gnu_ld=$lt_cv_prog_gnu_ld
19366
19367
19368{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
19369echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
19370if test "${lt_cv_ld_reload_flag+set}" = set; then
19371  echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373  lt_cv_ld_reload_flag='-r'
19374fi
19375{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
19376echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
19377reload_flag=$lt_cv_ld_reload_flag
19378case $reload_flag in
19379"" | " "*) ;;
19380*) reload_flag=" $reload_flag" ;;
19381esac
19382reload_cmds='$LD$reload_flag -o $output$reload_objs'
19383case $host_os in
19384  darwin*)
19385    if test "$GCC" = yes; then
19386      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
19387    else
19388      reload_cmds='$LD$reload_flag -o $output$reload_objs'
19389    fi
19390    ;;
19391esac
19392
19393{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
19394echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
19395if test "${lt_cv_deplibs_check_method+set}" = set; then
19396  echo $ECHO_N "(cached) $ECHO_C" >&6
19397else
19398  lt_cv_file_magic_cmd='$MAGIC_CMD'
19399lt_cv_file_magic_test_file=
19400lt_cv_deplibs_check_method='unknown'
19401# Need to set the preceding variable on all platforms that support
19402# interlibrary dependencies.
19403# 'none' -- dependencies not supported.
19404# `unknown' -- same as none, but documents that we really don't know.
19405# 'pass_all' -- all dependencies passed with no checks.
19406# 'test_compile' -- check by making test program.
19407# 'file_magic [[regex]]' -- check by looking for files in library path
19408# which responds to the $file_magic_cmd with a given extended regex.
19409# If you have `file' or equivalent on your system and you're not sure
19410# whether `pass_all' will *always* work, you probably want this one.
19411
19412case $host_os in
19413aix4* | aix5*)
19414  lt_cv_deplibs_check_method=pass_all
19415  ;;
19416
19417beos*)
19418  lt_cv_deplibs_check_method=pass_all
19419  ;;
19420
19421bsdi[45]*)
19422  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
19423  lt_cv_file_magic_cmd='/usr/bin/file -L'
19424  lt_cv_file_magic_test_file=/shlib/libc.so
19425  ;;
19426
19427cygwin*)
19428  # func_win32_libid is a shell function defined in ltmain.sh
19429  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19430  lt_cv_file_magic_cmd='func_win32_libid'
19431  ;;
19432
19433mingw* | pw32*)
19434  # Base MSYS/MinGW do not provide the 'file' command needed by
19435  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
19436  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
19437  lt_cv_file_magic_cmd='$OBJDUMP -f'
19438  ;;
19439
19440darwin* | rhapsody*)
19441  lt_cv_deplibs_check_method=pass_all
19442  ;;
19443
19444freebsd* | dragonfly*)
19445  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
19446    case $host_cpu in
19447    i*86 )
19448      # Not sure whether the presence of OpenBSD here was a mistake.
19449      # Let's accept both of them until this is cleared up.
19450      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
19451      lt_cv_file_magic_cmd=/usr/bin/file
19452      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
19453      ;;
19454    esac
19455  else
19456    lt_cv_deplibs_check_method=pass_all
19457  fi
19458  ;;
19459
19460gnu*)
19461  lt_cv_deplibs_check_method=pass_all
19462  ;;
19463
19464hpux10.20* | hpux11*)
19465  lt_cv_file_magic_cmd=/usr/bin/file
19466  case $host_cpu in
19467  ia64*)
19468    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
19469    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
19470    ;;
19471  hppa*64*)
19472    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]'
19473    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
19474    ;;
19475  *)
19476    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
19477    lt_cv_file_magic_test_file=/usr/lib/libc.sl
19478    ;;
19479  esac
19480  ;;
19481
19482interix3*)
19483  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
19484  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
19485  ;;
19486
19487irix5* | irix6* | nonstopux*)
19488  case $LD in
19489  *-32|*"-32 ") libmagic=32-bit;;
19490  *-n32|*"-n32 ") libmagic=N32;;
19491  *-64|*"-64 ") libmagic=64-bit;;
19492  *) libmagic=never-match;;
19493  esac
19494  lt_cv_deplibs_check_method=pass_all
19495  ;;
19496
19497# This must be Linux ELF.
19498linux* | k*bsd*-gnu)
19499  lt_cv_deplibs_check_method=pass_all
19500  ;;
19501
19502netbsd* | netbsdelf*-gnu)
19503  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
19504    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
19505  else
19506    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
19507  fi
19508  ;;
19509
19510newos6*)
19511  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
19512  lt_cv_file_magic_cmd=/usr/bin/file
19513  lt_cv_file_magic_test_file=/usr/lib/libnls.so
19514  ;;
19515
19516nto-qnx*)
19517  lt_cv_deplibs_check_method=unknown
19518  ;;
19519
19520openbsd*)
19521  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19522    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
19523  else
19524    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
19525  fi
19526  ;;
19527
19528osf3* | osf4* | osf5*)
19529  lt_cv_deplibs_check_method=pass_all
19530  ;;
19531
19532solaris*)
19533  lt_cv_deplibs_check_method=pass_all
19534  ;;
19535
19536sysv4 | sysv4.3*)
19537  case $host_vendor in
19538  motorola)
19539    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]'
19540    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
19541    ;;
19542  ncr)
19543    lt_cv_deplibs_check_method=pass_all
19544    ;;
19545  sequent)
19546    lt_cv_file_magic_cmd='/bin/file'
19547    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
19548    ;;
19549  sni)
19550    lt_cv_file_magic_cmd='/bin/file'
19551    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
19552    lt_cv_file_magic_test_file=/lib/libc.so
19553    ;;
19554  siemens)
19555    lt_cv_deplibs_check_method=pass_all
19556    ;;
19557  pc)
19558    lt_cv_deplibs_check_method=pass_all
19559    ;;
19560  esac
19561  ;;
19562
19563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19564  lt_cv_deplibs_check_method=pass_all
19565  ;;
19566esac
19567
19568fi
19569{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
19570echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
19571file_magic_cmd=$lt_cv_file_magic_cmd
19572deplibs_check_method=$lt_cv_deplibs_check_method
19573test -z "$deplibs_check_method" && deplibs_check_method=unknown
19574
19575
19576
19577# If no C compiler was specified, use CC.
19578LTCC=${LTCC-"$CC"}
19579
19580# If no C compiler flags were specified, use CFLAGS.
19581LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19582
19583# Allow CC to be a program name with arguments.
19584compiler=$CC
19585
19586# Check whether --enable-libtool-lock was given.
19587if test "${enable_libtool_lock+set}" = set; then
19588  enableval=$enable_libtool_lock;
19589fi
19590
19591test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
19592
19593# Some flags need to be propagated to the compiler or linker for good
19594# libtool support.
19595case $host in
19596ia64-*-hpux*)
19597  # Find out which ABI we are using.
19598  echo 'int i;' > conftest.$ac_ext
19599  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600  (eval $ac_compile) 2>&5
19601  ac_status=$?
19602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603  (exit $ac_status); }; then
19604    case `/usr/bin/file conftest.$ac_objext` in
19605    *ELF-32*)
19606      HPUX_IA64_MODE="32"
19607      ;;
19608    *ELF-64*)
19609      HPUX_IA64_MODE="64"
19610      ;;
19611    esac
19612  fi
19613  rm -rf conftest*
19614  ;;
19615*-*-irix6*)
19616  # Find out which ABI we are using.
19617  echo '#line 19617 "configure"' > conftest.$ac_ext
19618  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19619  (eval $ac_compile) 2>&5
19620  ac_status=$?
19621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622  (exit $ac_status); }; then
19623   if test "$lt_cv_prog_gnu_ld" = yes; then
19624    case `/usr/bin/file conftest.$ac_objext` in
19625    *32-bit*)
19626      LD="${LD-ld} -melf32bsmip"
19627      ;;
19628    *N32*)
19629      LD="${LD-ld} -melf32bmipn32"
19630      ;;
19631    *64-bit*)
19632      LD="${LD-ld} -melf64bmip"
19633      ;;
19634    esac
19635   else
19636    case `/usr/bin/file conftest.$ac_objext` in
19637    *32-bit*)
19638      LD="${LD-ld} -32"
19639      ;;
19640    *N32*)
19641      LD="${LD-ld} -n32"
19642      ;;
19643    *64-bit*)
19644      LD="${LD-ld} -64"
19645      ;;
19646    esac
19647   fi
19648  fi
19649  rm -rf conftest*
19650  ;;
19651
19652x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
19653  # Find out which ABI we are using.
19654  echo 'int i;' > conftest.$ac_ext
19655  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656  (eval $ac_compile) 2>&5
19657  ac_status=$?
19658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659  (exit $ac_status); }; then
19660    case `/usr/bin/file conftest.o` in
19661    *32-bit*)
19662      case $host in
19663        x86_64-*linux*)
19664          LD="${LD-ld} -m elf_i386"
19665          ;;
19666        ppc64-*linux*|powerpc64-*linux*)
19667          LD="${LD-ld} -m elf32ppclinux"
19668          ;;
19669        s390x-*linux*)
19670          LD="${LD-ld} -m elf_s390"
19671          ;;
19672        sparc64-*linux*)
19673          LD="${LD-ld} -m elf32_sparc"
19674          ;;
19675      esac
19676      ;;
19677    *64-bit*)
19678      case $host in
19679        x86_64-*linux*)
19680          LD="${LD-ld} -m elf_x86_64"
19681          ;;
19682        ppc*-*linux*|powerpc*-*linux*)
19683          LD="${LD-ld} -m elf64ppc"
19684          ;;
19685        s390*-*linux*)
19686          LD="${LD-ld} -m elf64_s390"
19687          ;;
19688        sparc*-*linux*)
19689          LD="${LD-ld} -m elf64_sparc"
19690          ;;
19691      esac
19692      ;;
19693    esac
19694  fi
19695  rm -rf conftest*
19696  ;;
19697
19698*-*-sco3.2v5*)
19699  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
19700  SAVE_CFLAGS="$CFLAGS"
19701  CFLAGS="$CFLAGS -belf"
19702  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
19703echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
19704if test "${lt_cv_cc_needs_belf+set}" = set; then
19705  echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707  ac_ext=c
19708ac_cpp='$CPP $CPPFLAGS'
19709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711ac_compiler_gnu=$ac_cv_c_compiler_gnu
19712
19713     cat >conftest.$ac_ext <<_ACEOF
19714/* confdefs.h.  */
19715_ACEOF
19716cat confdefs.h >>conftest.$ac_ext
19717cat >>conftest.$ac_ext <<_ACEOF
19718/* end confdefs.h.  */
19719
19720int
19721main ()
19722{
19723
19724  ;
19725  return 0;
19726}
19727_ACEOF
19728rm -f conftest.$ac_objext conftest$ac_exeext
19729if { (ac_try="$ac_link"
19730case "(($ac_try" in
19731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732  *) ac_try_echo=$ac_try;;
19733esac
19734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735  (eval "$ac_link") 2>conftest.er1
19736  ac_status=$?
19737  grep -v '^ *+' conftest.er1 >conftest.err
19738  rm -f conftest.er1
19739  cat conftest.err >&5
19740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741  (exit $ac_status); } && {
19742	 test -z "$ac_c_werror_flag" ||
19743	 test ! -s conftest.err
19744       } && test -s conftest$ac_exeext &&
19745       $as_test_x conftest$ac_exeext; then
19746  lt_cv_cc_needs_belf=yes
19747else
19748  echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751	lt_cv_cc_needs_belf=no
19752fi
19753
19754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19755      conftest$ac_exeext conftest.$ac_ext
19756     ac_ext=c
19757ac_cpp='$CPP $CPPFLAGS'
19758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762fi
19763{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
19764echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
19765  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
19766    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
19767    CFLAGS="$SAVE_CFLAGS"
19768  fi
19769  ;;
19770sparc*-*solaris*)
19771  # Find out which ABI we are using.
19772  echo 'int i;' > conftest.$ac_ext
19773  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19774  (eval $ac_compile) 2>&5
19775  ac_status=$?
19776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777  (exit $ac_status); }; then
19778    case `/usr/bin/file conftest.o` in
19779    *64-bit*)
19780      case $lt_cv_prog_gnu_ld in
19781      yes*) LD="${LD-ld} -m elf64_sparc" ;;
19782      *)    LD="${LD-ld} -64" ;;
19783      esac
19784      ;;
19785    esac
19786  fi
19787  rm -rf conftest*
19788  ;;
19789
19790
19791esac
19792
19793need_locks="$enable_libtool_lock"
19794
19795
19796
19797
19798if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19799    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19800    (test "X$CXX" != "Xg++"))) ; then
19801  ac_ext=cpp
19802ac_cpp='$CXXCPP $CPPFLAGS'
19803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19806{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19807echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
19808if test -z "$CXXCPP"; then
19809  if test "${ac_cv_prog_CXXCPP+set}" = set; then
19810  echo $ECHO_N "(cached) $ECHO_C" >&6
19811else
19812      # Double quotes because CXXCPP needs to be expanded
19813    for CXXCPP in "$CXX -E" "/lib/cpp"
19814    do
19815      ac_preproc_ok=false
19816for ac_cxx_preproc_warn_flag in '' yes
19817do
19818  # Use a header file that comes with gcc, so configuring glibc
19819  # with a fresh cross-compiler works.
19820  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19821  # <limits.h> exists even on freestanding compilers.
19822  # On the NeXT, cc -E runs the code through the compiler's parser,
19823  # not just through cpp. "Syntax error" is here to catch this case.
19824  cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h.  */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h.  */
19830#ifdef __STDC__
19831# include <limits.h>
19832#else
19833# include <assert.h>
19834#endif
19835		     Syntax error
19836_ACEOF
19837if { (ac_try="$ac_cpp conftest.$ac_ext"
19838case "(($ac_try" in
19839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840  *) ac_try_echo=$ac_try;;
19841esac
19842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19844  ac_status=$?
19845  grep -v '^ *+' conftest.er1 >conftest.err
19846  rm -f conftest.er1
19847  cat conftest.err >&5
19848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); } >/dev/null && {
19850	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19851	 test ! -s conftest.err
19852       }; then
19853  :
19854else
19855  echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858  # Broken: fails on valid input.
19859continue
19860fi
19861
19862rm -f conftest.err conftest.$ac_ext
19863
19864  # OK, works on sane cases.  Now check whether nonexistent headers
19865  # can be detected and how.
19866  cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h.  */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h.  */
19872#include <ac_nonexistent.h>
19873_ACEOF
19874if { (ac_try="$ac_cpp conftest.$ac_ext"
19875case "(($ac_try" in
19876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877  *) ac_try_echo=$ac_try;;
19878esac
19879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19881  ac_status=$?
19882  grep -v '^ *+' conftest.er1 >conftest.err
19883  rm -f conftest.er1
19884  cat conftest.err >&5
19885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886  (exit $ac_status); } >/dev/null && {
19887	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19888	 test ! -s conftest.err
19889       }; then
19890  # Broken: success on invalid input.
19891continue
19892else
19893  echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896  # Passes both tests.
19897ac_preproc_ok=:
19898break
19899fi
19900
19901rm -f conftest.err conftest.$ac_ext
19902
19903done
19904# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19905rm -f conftest.err conftest.$ac_ext
19906if $ac_preproc_ok; then
19907  break
19908fi
19909
19910    done
19911    ac_cv_prog_CXXCPP=$CXXCPP
19912
19913fi
19914  CXXCPP=$ac_cv_prog_CXXCPP
19915else
19916  ac_cv_prog_CXXCPP=$CXXCPP
19917fi
19918{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
19919echo "${ECHO_T}$CXXCPP" >&6; }
19920ac_preproc_ok=false
19921for ac_cxx_preproc_warn_flag in '' yes
19922do
19923  # Use a header file that comes with gcc, so configuring glibc
19924  # with a fresh cross-compiler works.
19925  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19926  # <limits.h> exists even on freestanding compilers.
19927  # On the NeXT, cc -E runs the code through the compiler's parser,
19928  # not just through cpp. "Syntax error" is here to catch this case.
19929  cat >conftest.$ac_ext <<_ACEOF
19930/* confdefs.h.  */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h.  */
19935#ifdef __STDC__
19936# include <limits.h>
19937#else
19938# include <assert.h>
19939#endif
19940		     Syntax error
19941_ACEOF
19942if { (ac_try="$ac_cpp conftest.$ac_ext"
19943case "(($ac_try" in
19944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945  *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19949  ac_status=$?
19950  grep -v '^ *+' conftest.er1 >conftest.err
19951  rm -f conftest.er1
19952  cat conftest.err >&5
19953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954  (exit $ac_status); } >/dev/null && {
19955	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19956	 test ! -s conftest.err
19957       }; then
19958  :
19959else
19960  echo "$as_me: failed program was:" >&5
19961sed 's/^/| /' conftest.$ac_ext >&5
19962
19963  # Broken: fails on valid input.
19964continue
19965fi
19966
19967rm -f conftest.err conftest.$ac_ext
19968
19969  # OK, works on sane cases.  Now check whether nonexistent headers
19970  # can be detected and how.
19971  cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h.  */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
19976/* end confdefs.h.  */
19977#include <ac_nonexistent.h>
19978_ACEOF
19979if { (ac_try="$ac_cpp conftest.$ac_ext"
19980case "(($ac_try" in
19981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982  *) ac_try_echo=$ac_try;;
19983esac
19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19986  ac_status=$?
19987  grep -v '^ *+' conftest.er1 >conftest.err
19988  rm -f conftest.er1
19989  cat conftest.err >&5
19990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991  (exit $ac_status); } >/dev/null && {
19992	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19993	 test ! -s conftest.err
19994       }; then
19995  # Broken: success on invalid input.
19996continue
19997else
19998  echo "$as_me: failed program was:" >&5
19999sed 's/^/| /' conftest.$ac_ext >&5
20000
20001  # Passes both tests.
20002ac_preproc_ok=:
20003break
20004fi
20005
20006rm -f conftest.err conftest.$ac_ext
20007
20008done
20009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20010rm -f conftest.err conftest.$ac_ext
20011if $ac_preproc_ok; then
20012  :
20013else
20014  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20015See \`config.log' for more details." >&5
20016echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20017See \`config.log' for more details." >&2;}
20018   { (exit 1); exit 1; }; }
20019fi
20020
20021ac_ext=cpp
20022ac_cpp='$CXXCPP $CPPFLAGS'
20023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20026
20027fi
20028
20029
20030ac_ext=f
20031ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20032ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20033ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20034if test -n "$ac_tool_prefix"; then
20035  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
20036  do
20037    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20041if test "${ac_cv_prog_F77+set}" = set; then
20042  echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044  if test -n "$F77"; then
20045  ac_cv_prog_F77="$F77" # Let the user override the test.
20046else
20047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20048for as_dir in $PATH
20049do
20050  IFS=$as_save_IFS
20051  test -z "$as_dir" && as_dir=.
20052  for ac_exec_ext in '' $ac_executable_extensions; do
20053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20054    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
20055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20056    break 2
20057  fi
20058done
20059done
20060IFS=$as_save_IFS
20061
20062fi
20063fi
20064F77=$ac_cv_prog_F77
20065if test -n "$F77"; then
20066  { echo "$as_me:$LINENO: result: $F77" >&5
20067echo "${ECHO_T}$F77" >&6; }
20068else
20069  { echo "$as_me:$LINENO: result: no" >&5
20070echo "${ECHO_T}no" >&6; }
20071fi
20072
20073
20074    test -n "$F77" && break
20075  done
20076fi
20077if test -z "$F77"; then
20078  ac_ct_F77=$F77
20079  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
20080do
20081  # Extract the first word of "$ac_prog", so it can be a program name with args.
20082set dummy $ac_prog; ac_word=$2
20083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20085if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
20086  echo $ECHO_N "(cached) $ECHO_C" >&6
20087else
20088  if test -n "$ac_ct_F77"; then
20089  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20090else
20091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20092for as_dir in $PATH
20093do
20094  IFS=$as_save_IFS
20095  test -z "$as_dir" && as_dir=.
20096  for ac_exec_ext in '' $ac_executable_extensions; do
20097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20098    ac_cv_prog_ac_ct_F77="$ac_prog"
20099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20100    break 2
20101  fi
20102done
20103done
20104IFS=$as_save_IFS
20105
20106fi
20107fi
20108ac_ct_F77=$ac_cv_prog_ac_ct_F77
20109if test -n "$ac_ct_F77"; then
20110  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20111echo "${ECHO_T}$ac_ct_F77" >&6; }
20112else
20113  { echo "$as_me:$LINENO: result: no" >&5
20114echo "${ECHO_T}no" >&6; }
20115fi
20116
20117
20118  test -n "$ac_ct_F77" && break
20119done
20120
20121  if test "x$ac_ct_F77" = x; then
20122    F77=""
20123  else
20124    case $cross_compiling:$ac_tool_warned in
20125yes:)
20126{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20127whose name does not start with the host triplet.  If you think this
20128configuration is useful to you, please write to autoconf@gnu.org." >&5
20129echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20130whose name does not start with the host triplet.  If you think this
20131configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20132ac_tool_warned=yes ;;
20133esac
20134    F77=$ac_ct_F77
20135  fi
20136fi
20137
20138
20139# Provide some information about the compiler.
20140echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
20141ac_compiler=`set X $ac_compile; echo $2`
20142{ (ac_try="$ac_compiler --version >&5"
20143case "(($ac_try" in
20144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145  *) ac_try_echo=$ac_try;;
20146esac
20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148  (eval "$ac_compiler --version >&5") 2>&5
20149  ac_status=$?
20150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151  (exit $ac_status); }
20152{ (ac_try="$ac_compiler -v >&5"
20153case "(($ac_try" in
20154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155  *) ac_try_echo=$ac_try;;
20156esac
20157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158  (eval "$ac_compiler -v >&5") 2>&5
20159  ac_status=$?
20160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161  (exit $ac_status); }
20162{ (ac_try="$ac_compiler -V >&5"
20163case "(($ac_try" in
20164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165  *) ac_try_echo=$ac_try;;
20166esac
20167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168  (eval "$ac_compiler -V >&5") 2>&5
20169  ac_status=$?
20170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171  (exit $ac_status); }
20172rm -f a.out
20173
20174# If we don't use `.F' as extension, the preprocessor is not run on the
20175# input file.  (Note that this only needs to work for GNU compilers.)
20176ac_save_ext=$ac_ext
20177ac_ext=F
20178{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20179echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
20180if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20181  echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183  cat >conftest.$ac_ext <<_ACEOF
20184      program main
20185#ifndef __GNUC__
20186       choke me
20187#endif
20188
20189      end
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (ac_try="$ac_compile"
20193case "(($ac_try" in
20194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195  *) ac_try_echo=$ac_try;;
20196esac
20197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198  (eval "$ac_compile") 2>conftest.er1
20199  ac_status=$?
20200  grep -v '^ *+' conftest.er1 >conftest.err
20201  rm -f conftest.er1
20202  cat conftest.err >&5
20203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204  (exit $ac_status); } && {
20205	 test -z "$ac_f77_werror_flag" ||
20206	 test ! -s conftest.err
20207       } && test -s conftest.$ac_objext; then
20208  ac_compiler_gnu=yes
20209else
20210  echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
20213	ac_compiler_gnu=no
20214fi
20215
20216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20218
20219fi
20220{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20221echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
20222ac_ext=$ac_save_ext
20223ac_test_FFLAGS=${FFLAGS+set}
20224ac_save_FFLAGS=$FFLAGS
20225FFLAGS=
20226{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20227echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
20228if test "${ac_cv_prog_f77_g+set}" = set; then
20229  echo $ECHO_N "(cached) $ECHO_C" >&6
20230else
20231  FFLAGS=-g
20232cat >conftest.$ac_ext <<_ACEOF
20233      program main
20234
20235      end
20236_ACEOF
20237rm -f conftest.$ac_objext
20238if { (ac_try="$ac_compile"
20239case "(($ac_try" in
20240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241  *) ac_try_echo=$ac_try;;
20242esac
20243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244  (eval "$ac_compile") 2>conftest.er1
20245  ac_status=$?
20246  grep -v '^ *+' conftest.er1 >conftest.err
20247  rm -f conftest.er1
20248  cat conftest.err >&5
20249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250  (exit $ac_status); } && {
20251	 test -z "$ac_f77_werror_flag" ||
20252	 test ! -s conftest.err
20253       } && test -s conftest.$ac_objext; then
20254  ac_cv_prog_f77_g=yes
20255else
20256  echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259	ac_cv_prog_f77_g=no
20260fi
20261
20262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20263
20264fi
20265{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20266echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
20267if test "$ac_test_FFLAGS" = set; then
20268  FFLAGS=$ac_save_FFLAGS
20269elif test $ac_cv_prog_f77_g = yes; then
20270  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20271    FFLAGS="-g -O2"
20272  else
20273    FFLAGS="-g"
20274  fi
20275else
20276  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20277    FFLAGS="-O2"
20278  else
20279    FFLAGS=
20280  fi
20281fi
20282
20283G77=`test $ac_compiler_gnu = yes && echo yes`
20284ac_ext=c
20285ac_cpp='$CPP $CPPFLAGS'
20286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20288ac_compiler_gnu=$ac_cv_c_compiler_gnu
20289
20290
20291
20292# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
20293
20294# find the maximum length of command line arguments
20295{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
20296echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
20297if test "${lt_cv_sys_max_cmd_len+set}" = set; then
20298  echo $ECHO_N "(cached) $ECHO_C" >&6
20299else
20300    i=0
20301  teststring="ABCD"
20302
20303  case $build_os in
20304  msdosdjgpp*)
20305    # On DJGPP, this test can blow up pretty badly due to problems in libc
20306    # (any single argument exceeding 2000 bytes causes a buffer overrun
20307    # during glob expansion).  Even if it were fixed, the result of this
20308    # check would be larger than it should be.
20309    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
20310    ;;
20311
20312  gnu*)
20313    # Under GNU Hurd, this test is not required because there is
20314    # no limit to the length of command line arguments.
20315    # Libtool will interpret -1 as no limit whatsoever
20316    lt_cv_sys_max_cmd_len=-1;
20317    ;;
20318
20319  cygwin* | mingw*)
20320    # On Win9x/ME, this test blows up -- it succeeds, but takes
20321    # about 5 minutes as the teststring grows exponentially.
20322    # Worse, since 9x/ME are not pre-emptively multitasking,
20323    # you end up with a "frozen" computer, even though with patience
20324    # the test eventually succeeds (with a max line length of 256k).
20325    # Instead, let's just punt: use the minimum linelength reported by
20326    # all of the supported platforms: 8192 (on NT/2K/XP).
20327    lt_cv_sys_max_cmd_len=8192;
20328    ;;
20329
20330  amigaos*)
20331    # On AmigaOS with pdksh, this test takes hours, literally.
20332    # So we just punt and use a minimum line length of 8192.
20333    lt_cv_sys_max_cmd_len=8192;
20334    ;;
20335
20336  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
20337    # This has been around since 386BSD, at least.  Likely further.
20338    if test -x /sbin/sysctl; then
20339      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
20340    elif test -x /usr/sbin/sysctl; then
20341      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
20342    else
20343      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
20344    fi
20345    # And add a safety zone
20346    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
20347    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
20348    ;;
20349
20350  interix*)
20351    # We know the value 262144 and hardcode it with a safety zone (like BSD)
20352    lt_cv_sys_max_cmd_len=196608
20353    ;;
20354
20355  osf*)
20356    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
20357    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
20358    # nice to cause kernel panics so lets avoid the loop below.
20359    # First set a reasonable default.
20360    lt_cv_sys_max_cmd_len=16384
20361    #
20362    if test -x /sbin/sysconfig; then
20363      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
20364        *1*) lt_cv_sys_max_cmd_len=-1 ;;
20365      esac
20366    fi
20367    ;;
20368  sco3.2v5*)
20369    lt_cv_sys_max_cmd_len=102400
20370    ;;
20371  sysv5* | sco5v6* | sysv4.2uw2*)
20372    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
20373    if test -n "$kargmax"; then
20374      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
20375    else
20376      lt_cv_sys_max_cmd_len=32768
20377    fi
20378    ;;
20379  *)
20380    # If test is not a shell built-in, we'll probably end up computing a
20381    # maximum length that is only half of the actual maximum length, but
20382    # we can't tell.
20383    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
20384    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
20385	       = "XX$teststring") >/dev/null 2>&1 &&
20386	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
20387	    lt_cv_sys_max_cmd_len=$new_result &&
20388	    test $i != 17 # 1/2 MB should be enough
20389    do
20390      i=`expr $i + 1`
20391      teststring=$teststring$teststring
20392    done
20393    teststring=
20394    # Add a significant safety factor because C++ compilers can tack on massive
20395    # amounts of additional arguments before passing them to the linker.
20396    # It appears as though 1/2 is a usable value.
20397    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
20398    ;;
20399  esac
20400
20401fi
20402
20403if test -n $lt_cv_sys_max_cmd_len ; then
20404  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
20405echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
20406else
20407  { echo "$as_me:$LINENO: result: none" >&5
20408echo "${ECHO_T}none" >&6; }
20409fi
20410
20411
20412
20413
20414# Check for command to grab the raw symbol name followed by C symbol from nm.
20415{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
20416echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
20417if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
20418  echo $ECHO_N "(cached) $ECHO_C" >&6
20419else
20420
20421# These are sane defaults that work on at least a few old systems.
20422# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
20423
20424# Character class describing NM global symbol codes.
20425symcode='[BCDEGRST]'
20426
20427# Regexp to match symbols that can be accessed directly from C.
20428sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
20429
20430# Transform an extracted symbol line into a proper C declaration
20431lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
20432
20433# Transform an extracted symbol line into symbol name and symbol address
20434lt_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'"
20435
20436# Define system-specific variables.
20437case $host_os in
20438aix*)
20439  symcode='[BCDT]'
20440  ;;
20441cygwin* | mingw* | pw32*)
20442  symcode='[ABCDGISTW]'
20443  ;;
20444hpux*) # Its linker distinguishes data from code symbols
20445  if test "$host_cpu" = ia64; then
20446    symcode='[ABCDEGRST]'
20447  fi
20448  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
20449  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'"
20450  ;;
20451linux* | k*bsd*-gnu)
20452  if test "$host_cpu" = ia64; then
20453    symcode='[ABCDGIRSTW]'
20454    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
20455    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'"
20456  fi
20457  ;;
20458irix* | nonstopux*)
20459  symcode='[BCDEGRST]'
20460  ;;
20461osf*)
20462  symcode='[BCDEGQRST]'
20463  ;;
20464solaris*)
20465  symcode='[BDRT]'
20466  ;;
20467sco3.2v5*)
20468  symcode='[DT]'
20469  ;;
20470sysv4.2uw2*)
20471  symcode='[DT]'
20472  ;;
20473sysv5* | sco5v6* | unixware* | OpenUNIX*)
20474  symcode='[ABDT]'
20475  ;;
20476sysv4)
20477  symcode='[DFNSTU]'
20478  ;;
20479esac
20480
20481# Handle CRLF in mingw tool chain
20482opt_cr=
20483case $build_os in
20484mingw*)
20485  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
20486  ;;
20487esac
20488
20489# If we're using GNU nm, then use its standard symbol codes.
20490case `$NM -V 2>&1` in
20491*GNU* | *'with BFD'*)
20492  symcode='[ABCDGIRSTW]' ;;
20493esac
20494
20495# Try without a prefix undercore, then with it.
20496for ac_symprfx in "" "_"; do
20497
20498  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
20499  symxfrm="\\1 $ac_symprfx\\2 \\2"
20500
20501  # Write the raw and C identifiers.
20502  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
20503
20504  # Check to see that the pipe works correctly.
20505  pipe_works=no
20506
20507  rm -f conftest*
20508  cat > conftest.$ac_ext <<EOF
20509#ifdef __cplusplus
20510extern "C" {
20511#endif
20512char nm_test_var;
20513void nm_test_func(){}
20514#ifdef __cplusplus
20515}
20516#endif
20517int main(){nm_test_var='a';nm_test_func();return(0);}
20518EOF
20519
20520  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20521  (eval $ac_compile) 2>&5
20522  ac_status=$?
20523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524  (exit $ac_status); }; then
20525    # Now try to grab the symbols.
20526    nlist=conftest.nm
20527    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
20528  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
20529  ac_status=$?
20530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531  (exit $ac_status); } && test -s "$nlist"; then
20532      # Try sorting and uniquifying the output.
20533      if sort "$nlist" | uniq > "$nlist"T; then
20534	mv -f "$nlist"T "$nlist"
20535      else
20536	rm -f "$nlist"T
20537      fi
20538
20539      # Make sure that we snagged all the symbols we need.
20540      if grep ' nm_test_var$' "$nlist" >/dev/null; then
20541	if grep ' nm_test_func$' "$nlist" >/dev/null; then
20542	  cat <<EOF > conftest.$ac_ext
20543#ifdef __cplusplus
20544extern "C" {
20545#endif
20546
20547EOF
20548	  # Now generate the symbol file.
20549	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
20550
20551	  cat <<EOF >> conftest.$ac_ext
20552#if defined (__STDC__) && __STDC__
20553# define lt_ptr_t void *
20554#else
20555# define lt_ptr_t char *
20556# define const
20557#endif
20558
20559/* The mapping between symbol names and symbols. */
20560const struct {
20561  const char *name;
20562  lt_ptr_t address;
20563}
20564lt_preloaded_symbols[] =
20565{
20566EOF
20567	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
20568	  cat <<\EOF >> conftest.$ac_ext
20569  {0, (lt_ptr_t) 0}
20570};
20571
20572#ifdef __cplusplus
20573}
20574#endif
20575EOF
20576	  # Now try linking the two files.
20577	  mv conftest.$ac_objext conftstm.$ac_objext
20578	  lt_save_LIBS="$LIBS"
20579	  lt_save_CFLAGS="$CFLAGS"
20580	  LIBS="conftstm.$ac_objext"
20581	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
20582	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583  (eval $ac_link) 2>&5
20584  ac_status=$?
20585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586  (exit $ac_status); } && test -s conftest${ac_exeext}; then
20587	    pipe_works=yes
20588	  fi
20589	  LIBS="$lt_save_LIBS"
20590	  CFLAGS="$lt_save_CFLAGS"
20591	else
20592	  echo "cannot find nm_test_func in $nlist" >&5
20593	fi
20594      else
20595	echo "cannot find nm_test_var in $nlist" >&5
20596      fi
20597    else
20598      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
20599    fi
20600  else
20601    echo "$progname: failed program was:" >&5
20602    cat conftest.$ac_ext >&5
20603  fi
20604  rm -f conftest* conftst*
20605
20606  # Do not use the global_symbol_pipe unless it works.
20607  if test "$pipe_works" = yes; then
20608    break
20609  else
20610    lt_cv_sys_global_symbol_pipe=
20611  fi
20612done
20613
20614fi
20615
20616if test -z "$lt_cv_sys_global_symbol_pipe"; then
20617  lt_cv_sys_global_symbol_to_cdecl=
20618fi
20619if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
20620  { echo "$as_me:$LINENO: result: failed" >&5
20621echo "${ECHO_T}failed" >&6; }
20622else
20623  { echo "$as_me:$LINENO: result: ok" >&5
20624echo "${ECHO_T}ok" >&6; }
20625fi
20626
20627{ echo "$as_me:$LINENO: checking for objdir" >&5
20628echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20629if test "${lt_cv_objdir+set}" = set; then
20630  echo $ECHO_N "(cached) $ECHO_C" >&6
20631else
20632  rm -f .libs 2>/dev/null
20633mkdir .libs 2>/dev/null
20634if test -d .libs; then
20635  lt_cv_objdir=.libs
20636else
20637  # MS-DOS does not allow filenames that begin with a dot.
20638  lt_cv_objdir=_libs
20639fi
20640rmdir .libs 2>/dev/null
20641fi
20642{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
20643echo "${ECHO_T}$lt_cv_objdir" >&6; }
20644objdir=$lt_cv_objdir
20645
20646
20647
20648
20649
20650case $host_os in
20651aix3*)
20652  # AIX sometimes has problems with the GCC collect2 program.  For some
20653  # reason, if we set the COLLECT_NAMES environment variable, the problems
20654  # vanish in a puff of smoke.
20655  if test "X${COLLECT_NAMES+set}" != Xset; then
20656    COLLECT_NAMES=
20657    export COLLECT_NAMES
20658  fi
20659  ;;
20660esac
20661
20662# Sed substitution that helps us do robust quoting.  It backslashifies
20663# metacharacters that are still active within double-quoted strings.
20664Xsed='sed -e 1s/^X//'
20665sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
20666
20667# Same as above, but do not quote variable references.
20668double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
20669
20670# Sed substitution to delay expansion of an escaped shell variable in a
20671# double_quote_subst'ed string.
20672delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
20673
20674# Sed substitution to avoid accidental globbing in evaled expressions
20675no_glob_subst='s/\*/\\\*/g'
20676
20677# Constants:
20678rm="rm -f"
20679
20680# Global variables:
20681default_ofile=libtool
20682can_build_shared=yes
20683
20684# All known linkers require a `.a' archive for static linking (except MSVC,
20685# which needs '.lib').
20686libext=a
20687ltmain="$ac_aux_dir/ltmain.sh"
20688ofile="$default_ofile"
20689with_gnu_ld="$lt_cv_prog_gnu_ld"
20690
20691if test -n "$ac_tool_prefix"; then
20692  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20693set dummy ${ac_tool_prefix}ar; ac_word=$2
20694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20696if test "${ac_cv_prog_AR+set}" = set; then
20697  echo $ECHO_N "(cached) $ECHO_C" >&6
20698else
20699  if test -n "$AR"; then
20700  ac_cv_prog_AR="$AR" # Let the user override the test.
20701else
20702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20703for as_dir in $PATH
20704do
20705  IFS=$as_save_IFS
20706  test -z "$as_dir" && as_dir=.
20707  for ac_exec_ext in '' $ac_executable_extensions; do
20708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20709    ac_cv_prog_AR="${ac_tool_prefix}ar"
20710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20711    break 2
20712  fi
20713done
20714done
20715IFS=$as_save_IFS
20716
20717fi
20718fi
20719AR=$ac_cv_prog_AR
20720if test -n "$AR"; then
20721  { echo "$as_me:$LINENO: result: $AR" >&5
20722echo "${ECHO_T}$AR" >&6; }
20723else
20724  { echo "$as_me:$LINENO: result: no" >&5
20725echo "${ECHO_T}no" >&6; }
20726fi
20727
20728
20729fi
20730if test -z "$ac_cv_prog_AR"; then
20731  ac_ct_AR=$AR
20732  # Extract the first word of "ar", so it can be a program name with args.
20733set dummy ar; ac_word=$2
20734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20736if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20737  echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739  if test -n "$ac_ct_AR"; then
20740  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20741else
20742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20743for as_dir in $PATH
20744do
20745  IFS=$as_save_IFS
20746  test -z "$as_dir" && as_dir=.
20747  for ac_exec_ext in '' $ac_executable_extensions; do
20748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20749    ac_cv_prog_ac_ct_AR="ar"
20750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20751    break 2
20752  fi
20753done
20754done
20755IFS=$as_save_IFS
20756
20757fi
20758fi
20759ac_ct_AR=$ac_cv_prog_ac_ct_AR
20760if test -n "$ac_ct_AR"; then
20761  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20762echo "${ECHO_T}$ac_ct_AR" >&6; }
20763else
20764  { echo "$as_me:$LINENO: result: no" >&5
20765echo "${ECHO_T}no" >&6; }
20766fi
20767
20768  if test "x$ac_ct_AR" = x; then
20769    AR="false"
20770  else
20771    case $cross_compiling:$ac_tool_warned in
20772yes:)
20773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20774whose name does not start with the host triplet.  If you think this
20775configuration is useful to you, please write to autoconf@gnu.org." >&5
20776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20777whose name does not start with the host triplet.  If you think this
20778configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20779ac_tool_warned=yes ;;
20780esac
20781    AR=$ac_ct_AR
20782  fi
20783else
20784  AR="$ac_cv_prog_AR"
20785fi
20786
20787if test -n "$ac_tool_prefix"; then
20788  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20789set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20792if test "${ac_cv_prog_RANLIB+set}" = set; then
20793  echo $ECHO_N "(cached) $ECHO_C" >&6
20794else
20795  if test -n "$RANLIB"; then
20796  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20797else
20798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20799for as_dir in $PATH
20800do
20801  IFS=$as_save_IFS
20802  test -z "$as_dir" && as_dir=.
20803  for ac_exec_ext in '' $ac_executable_extensions; do
20804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20805    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20807    break 2
20808  fi
20809done
20810done
20811IFS=$as_save_IFS
20812
20813fi
20814fi
20815RANLIB=$ac_cv_prog_RANLIB
20816if test -n "$RANLIB"; then
20817  { echo "$as_me:$LINENO: result: $RANLIB" >&5
20818echo "${ECHO_T}$RANLIB" >&6; }
20819else
20820  { echo "$as_me:$LINENO: result: no" >&5
20821echo "${ECHO_T}no" >&6; }
20822fi
20823
20824
20825fi
20826if test -z "$ac_cv_prog_RANLIB"; then
20827  ac_ct_RANLIB=$RANLIB
20828  # Extract the first word of "ranlib", so it can be a program name with args.
20829set dummy ranlib; ac_word=$2
20830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20832if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20833  echo $ECHO_N "(cached) $ECHO_C" >&6
20834else
20835  if test -n "$ac_ct_RANLIB"; then
20836  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20837else
20838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20839for as_dir in $PATH
20840do
20841  IFS=$as_save_IFS
20842  test -z "$as_dir" && as_dir=.
20843  for ac_exec_ext in '' $ac_executable_extensions; do
20844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20845    ac_cv_prog_ac_ct_RANLIB="ranlib"
20846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20847    break 2
20848  fi
20849done
20850done
20851IFS=$as_save_IFS
20852
20853fi
20854fi
20855ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20856if test -n "$ac_ct_RANLIB"; then
20857  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20858echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
20859else
20860  { echo "$as_me:$LINENO: result: no" >&5
20861echo "${ECHO_T}no" >&6; }
20862fi
20863
20864  if test "x$ac_ct_RANLIB" = x; then
20865    RANLIB=":"
20866  else
20867    case $cross_compiling:$ac_tool_warned in
20868yes:)
20869{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20870whose name does not start with the host triplet.  If you think this
20871configuration is useful to you, please write to autoconf@gnu.org." >&5
20872echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20873whose name does not start with the host triplet.  If you think this
20874configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20875ac_tool_warned=yes ;;
20876esac
20877    RANLIB=$ac_ct_RANLIB
20878  fi
20879else
20880  RANLIB="$ac_cv_prog_RANLIB"
20881fi
20882
20883if test -n "$ac_tool_prefix"; then
20884  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20885set dummy ${ac_tool_prefix}strip; ac_word=$2
20886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20888if test "${ac_cv_prog_STRIP+set}" = set; then
20889  echo $ECHO_N "(cached) $ECHO_C" >&6
20890else
20891  if test -n "$STRIP"; then
20892  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20893else
20894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20895for as_dir in $PATH
20896do
20897  IFS=$as_save_IFS
20898  test -z "$as_dir" && as_dir=.
20899  for ac_exec_ext in '' $ac_executable_extensions; do
20900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20901    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20903    break 2
20904  fi
20905done
20906done
20907IFS=$as_save_IFS
20908
20909fi
20910fi
20911STRIP=$ac_cv_prog_STRIP
20912if test -n "$STRIP"; then
20913  { echo "$as_me:$LINENO: result: $STRIP" >&5
20914echo "${ECHO_T}$STRIP" >&6; }
20915else
20916  { echo "$as_me:$LINENO: result: no" >&5
20917echo "${ECHO_T}no" >&6; }
20918fi
20919
20920
20921fi
20922if test -z "$ac_cv_prog_STRIP"; then
20923  ac_ct_STRIP=$STRIP
20924  # Extract the first word of "strip", so it can be a program name with args.
20925set dummy strip; ac_word=$2
20926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20928if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20929  echo $ECHO_N "(cached) $ECHO_C" >&6
20930else
20931  if test -n "$ac_ct_STRIP"; then
20932  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20933else
20934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20935for as_dir in $PATH
20936do
20937  IFS=$as_save_IFS
20938  test -z "$as_dir" && as_dir=.
20939  for ac_exec_ext in '' $ac_executable_extensions; do
20940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20941    ac_cv_prog_ac_ct_STRIP="strip"
20942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20943    break 2
20944  fi
20945done
20946done
20947IFS=$as_save_IFS
20948
20949fi
20950fi
20951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20952if test -n "$ac_ct_STRIP"; then
20953  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20954echo "${ECHO_T}$ac_ct_STRIP" >&6; }
20955else
20956  { echo "$as_me:$LINENO: result: no" >&5
20957echo "${ECHO_T}no" >&6; }
20958fi
20959
20960  if test "x$ac_ct_STRIP" = x; then
20961    STRIP=":"
20962  else
20963    case $cross_compiling:$ac_tool_warned in
20964yes:)
20965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20966whose name does not start with the host triplet.  If you think this
20967configuration is useful to you, please write to autoconf@gnu.org." >&5
20968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20969whose name does not start with the host triplet.  If you think this
20970configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20971ac_tool_warned=yes ;;
20972esac
20973    STRIP=$ac_ct_STRIP
20974  fi
20975else
20976  STRIP="$ac_cv_prog_STRIP"
20977fi
20978
20979
20980old_CC="$CC"
20981old_CFLAGS="$CFLAGS"
20982
20983# Set sane defaults for various variables
20984test -z "$AR" && AR=ar
20985test -z "$AR_FLAGS" && AR_FLAGS=cru
20986test -z "$AS" && AS=as
20987test -z "$CC" && CC=cc
20988test -z "$LTCC" && LTCC=$CC
20989test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
20990test -z "$DLLTOOL" && DLLTOOL=dlltool
20991test -z "$LD" && LD=ld
20992test -z "$LN_S" && LN_S="ln -s"
20993test -z "$MAGIC_CMD" && MAGIC_CMD=file
20994test -z "$NM" && NM=nm
20995test -z "$SED" && SED=sed
20996test -z "$OBJDUMP" && OBJDUMP=objdump
20997test -z "$RANLIB" && RANLIB=:
20998test -z "$STRIP" && STRIP=:
20999test -z "$ac_objext" && ac_objext=o
21000
21001# Determine commands to create old-style static archives.
21002old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
21003old_postinstall_cmds='chmod 644 $oldlib'
21004old_postuninstall_cmds=
21005
21006if test -n "$RANLIB"; then
21007  case $host_os in
21008  openbsd*)
21009    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
21010    ;;
21011  *)
21012    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
21013    ;;
21014  esac
21015  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
21016fi
21017
21018for cc_temp in $compiler""; do
21019  case $cc_temp in
21020    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21021    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21022    \-*) ;;
21023    *) break;;
21024  esac
21025done
21026cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21027
21028
21029# Only perform the check for file, if the check method requires it
21030case $deplibs_check_method in
21031file_magic*)
21032  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
21033    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
21034echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
21035if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
21036  echo $ECHO_N "(cached) $ECHO_C" >&6
21037else
21038  case $MAGIC_CMD in
21039[\\/*] |  ?:[\\/]*)
21040  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
21041  ;;
21042*)
21043  lt_save_MAGIC_CMD="$MAGIC_CMD"
21044  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21045  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
21046  for ac_dir in $ac_dummy; do
21047    IFS="$lt_save_ifs"
21048    test -z "$ac_dir" && ac_dir=.
21049    if test -f $ac_dir/${ac_tool_prefix}file; then
21050      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
21051      if test -n "$file_magic_test_file"; then
21052	case $deplibs_check_method in
21053	"file_magic "*)
21054	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
21055	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
21056	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
21057	    $EGREP "$file_magic_regex" > /dev/null; then
21058	    :
21059	  else
21060	    cat <<EOF 1>&2
21061
21062*** Warning: the command libtool uses to detect shared libraries,
21063*** $file_magic_cmd, produces output that libtool cannot recognize.
21064*** The result is that libtool may fail to recognize shared libraries
21065*** as such.  This will affect the creation of libtool libraries that
21066*** depend on shared libraries, but programs linked with such libtool
21067*** libraries will work regardless of this problem.  Nevertheless, you
21068*** may want to report the problem to your system manager and/or to
21069*** bug-libtool@gnu.org
21070
21071EOF
21072	  fi ;;
21073	esac
21074      fi
21075      break
21076    fi
21077  done
21078  IFS="$lt_save_ifs"
21079  MAGIC_CMD="$lt_save_MAGIC_CMD"
21080  ;;
21081esac
21082fi
21083
21084MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
21085if test -n "$MAGIC_CMD"; then
21086  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
21087echo "${ECHO_T}$MAGIC_CMD" >&6; }
21088else
21089  { echo "$as_me:$LINENO: result: no" >&5
21090echo "${ECHO_T}no" >&6; }
21091fi
21092
21093if test -z "$lt_cv_path_MAGIC_CMD"; then
21094  if test -n "$ac_tool_prefix"; then
21095    { echo "$as_me:$LINENO: checking for file" >&5
21096echo $ECHO_N "checking for file... $ECHO_C" >&6; }
21097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
21098  echo $ECHO_N "(cached) $ECHO_C" >&6
21099else
21100  case $MAGIC_CMD in
21101[\\/*] |  ?:[\\/]*)
21102  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
21103  ;;
21104*)
21105  lt_save_MAGIC_CMD="$MAGIC_CMD"
21106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21107  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
21108  for ac_dir in $ac_dummy; do
21109    IFS="$lt_save_ifs"
21110    test -z "$ac_dir" && ac_dir=.
21111    if test -f $ac_dir/file; then
21112      lt_cv_path_MAGIC_CMD="$ac_dir/file"
21113      if test -n "$file_magic_test_file"; then
21114	case $deplibs_check_method in
21115	"file_magic "*)
21116	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
21117	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
21118	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
21119	    $EGREP "$file_magic_regex" > /dev/null; then
21120	    :
21121	  else
21122	    cat <<EOF 1>&2
21123
21124*** Warning: the command libtool uses to detect shared libraries,
21125*** $file_magic_cmd, produces output that libtool cannot recognize.
21126*** The result is that libtool may fail to recognize shared libraries
21127*** as such.  This will affect the creation of libtool libraries that
21128*** depend on shared libraries, but programs linked with such libtool
21129*** libraries will work regardless of this problem.  Nevertheless, you
21130*** may want to report the problem to your system manager and/or to
21131*** bug-libtool@gnu.org
21132
21133EOF
21134	  fi ;;
21135	esac
21136      fi
21137      break
21138    fi
21139  done
21140  IFS="$lt_save_ifs"
21141  MAGIC_CMD="$lt_save_MAGIC_CMD"
21142  ;;
21143esac
21144fi
21145
21146MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
21147if test -n "$MAGIC_CMD"; then
21148  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
21149echo "${ECHO_T}$MAGIC_CMD" >&6; }
21150else
21151  { echo "$as_me:$LINENO: result: no" >&5
21152echo "${ECHO_T}no" >&6; }
21153fi
21154
21155  else
21156    MAGIC_CMD=:
21157  fi
21158fi
21159
21160  fi
21161  ;;
21162esac
21163
21164enable_dlopen=yes
21165enable_win32_dll=no
21166
21167# Check whether --enable-libtool-lock was given.
21168if test "${enable_libtool_lock+set}" = set; then
21169  enableval=$enable_libtool_lock;
21170fi
21171
21172test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
21173
21174
21175# Check whether --with-pic was given.
21176if test "${with_pic+set}" = set; then
21177  withval=$with_pic; pic_mode="$withval"
21178else
21179  pic_mode=default
21180fi
21181
21182test -z "$pic_mode" && pic_mode=default
21183
21184# Use C for the default configuration in the libtool script
21185tagname=
21186lt_save_CC="$CC"
21187ac_ext=c
21188ac_cpp='$CPP $CPPFLAGS'
21189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191ac_compiler_gnu=$ac_cv_c_compiler_gnu
21192
21193
21194# Source file extension for C test sources.
21195ac_ext=c
21196
21197# Object file extension for compiled C test sources.
21198objext=o
21199objext=$objext
21200
21201# Code to be used in simple compile tests
21202lt_simple_compile_test_code="int some_variable = 0;\n"
21203
21204# Code to be used in simple link tests
21205lt_simple_link_test_code='int main(){return(0);}\n'
21206
21207
21208# If no C compiler was specified, use CC.
21209LTCC=${LTCC-"$CC"}
21210
21211# If no C compiler flags were specified, use CFLAGS.
21212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21213
21214# Allow CC to be a program name with arguments.
21215compiler=$CC
21216
21217
21218# save warnings/boilerplate of simple test code
21219ac_outfile=conftest.$ac_objext
21220printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21221eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21222_lt_compiler_boilerplate=`cat conftest.err`
21223$rm conftest*
21224
21225ac_outfile=conftest.$ac_objext
21226printf "$lt_simple_link_test_code" >conftest.$ac_ext
21227eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21228_lt_linker_boilerplate=`cat conftest.err`
21229$rm conftest*
21230
21231
21232## CAVEAT EMPTOR:
21233## There is no encapsulation within the following macros, do not change
21234## the running order or otherwise move them around unless you know exactly
21235## what you are doing...
21236
21237lt_prog_compiler_no_builtin_flag=
21238
21239if test "$GCC" = yes; then
21240  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
21241
21242
21243{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21244echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
21245if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21246  echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248  lt_cv_prog_compiler_rtti_exceptions=no
21249  ac_outfile=conftest.$ac_objext
21250   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21251   lt_compiler_flag="-fno-rtti -fno-exceptions"
21252   # Insert the option either (1) after the last *FLAGS variable, or
21253   # (2) before a word containing "conftest.", or (3) at the end.
21254   # Note that $ac_compile itself does not contain backslashes and begins
21255   # with a dollar sign (not a hyphen), so the echo should work correctly.
21256   # The option is referenced via a variable to avoid confusing sed.
21257   lt_compile=`echo "$ac_compile" | $SED \
21258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21260   -e 's:$: $lt_compiler_flag:'`
21261   (eval echo "\"\$as_me:21261: $lt_compile\"" >&5)
21262   (eval "$lt_compile" 2>conftest.err)
21263   ac_status=$?
21264   cat conftest.err >&5
21265   echo "$as_me:21265: \$? = $ac_status" >&5
21266   if (exit $ac_status) && test -s "$ac_outfile"; then
21267     # The compiler can only warn and ignore the option if not recognized
21268     # So say no if there are warnings other than the usual output.
21269     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21272       lt_cv_prog_compiler_rtti_exceptions=yes
21273     fi
21274   fi
21275   $rm conftest*
21276
21277fi
21278{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21279echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
21280
21281if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21282    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
21283else
21284    :
21285fi
21286
21287fi
21288
21289lt_prog_compiler_wl=
21290lt_prog_compiler_pic=
21291lt_prog_compiler_static=
21292
21293{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21294echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21295
21296  if test "$GCC" = yes; then
21297    lt_prog_compiler_wl='-Wl,'
21298    lt_prog_compiler_static='-static'
21299
21300    case $host_os in
21301      aix*)
21302      # All AIX code is PIC.
21303      if test "$host_cpu" = ia64; then
21304	# AIX 5 now supports IA64 processor
21305	lt_prog_compiler_static='-Bstatic'
21306      fi
21307      ;;
21308
21309    amigaos*)
21310      # FIXME: we need at least 68020 code to build shared libraries, but
21311      # adding the `-m68020' flag to GCC prevents building anything better,
21312      # like `-m68040'.
21313      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
21314      ;;
21315
21316    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21317      # PIC is the default for these OSes.
21318      ;;
21319
21320    mingw* | pw32* | os2*)
21321      # This hack is so that the source file can tell whether it is being
21322      # built for inclusion in a dll (and should export symbols for example).
21323      lt_prog_compiler_pic='-DDLL_EXPORT'
21324      ;;
21325
21326    darwin* | rhapsody*)
21327      # PIC is the default on this platform
21328      # Common symbols not allowed in MH_DYLIB files
21329      lt_prog_compiler_pic='-fno-common'
21330      ;;
21331
21332    interix3*)
21333      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21334      # Instead, we relocate shared libraries at runtime.
21335      ;;
21336
21337    msdosdjgpp*)
21338      # Just because we use GCC doesn't mean we suddenly get shared libraries
21339      # on systems that don't support them.
21340      lt_prog_compiler_can_build_shared=no
21341      enable_shared=no
21342      ;;
21343
21344    sysv4*MP*)
21345      if test -d /usr/nec; then
21346	lt_prog_compiler_pic=-Kconform_pic
21347      fi
21348      ;;
21349
21350    hpux*)
21351      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21352      # not for PA HP-UX.
21353      case $host_cpu in
21354      hppa*64*|ia64*)
21355	# +Z the default
21356	;;
21357      *)
21358	lt_prog_compiler_pic='-fPIC'
21359	;;
21360      esac
21361      ;;
21362
21363    *)
21364      lt_prog_compiler_pic='-fPIC'
21365      ;;
21366    esac
21367  else
21368    # PORTME Check for flag to pass linker flags through the system compiler.
21369    case $host_os in
21370    aix*)
21371      lt_prog_compiler_wl='-Wl,'
21372      if test "$host_cpu" = ia64; then
21373	# AIX 5 now supports IA64 processor
21374	lt_prog_compiler_static='-Bstatic'
21375      else
21376	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
21377      fi
21378      ;;
21379      darwin*)
21380        # PIC is the default on this platform
21381        # Common symbols not allowed in MH_DYLIB files
21382       case $cc_basename in
21383         xlc*)
21384         lt_prog_compiler_pic='-qnocommon'
21385         lt_prog_compiler_wl='-Wl,'
21386         ;;
21387       esac
21388       ;;
21389
21390    mingw* | pw32* | os2*)
21391      # This hack is so that the source file can tell whether it is being
21392      # built for inclusion in a dll (and should export symbols for example).
21393      lt_prog_compiler_pic='-DDLL_EXPORT'
21394      ;;
21395
21396    hpux9* | hpux10* | hpux11*)
21397      lt_prog_compiler_wl='-Wl,'
21398      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21399      # not for PA HP-UX.
21400      case $host_cpu in
21401      hppa*64*|ia64*)
21402	# +Z the default
21403	;;
21404      *)
21405	lt_prog_compiler_pic='+Z'
21406	;;
21407      esac
21408      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21409      lt_prog_compiler_static='${wl}-a ${wl}archive'
21410      ;;
21411
21412    irix5* | irix6* | nonstopux*)
21413      lt_prog_compiler_wl='-Wl,'
21414      # PIC (with -KPIC) is the default.
21415      lt_prog_compiler_static='-non_shared'
21416      ;;
21417
21418    newsos6)
21419      lt_prog_compiler_pic='-KPIC'
21420      lt_prog_compiler_static='-Bstatic'
21421      ;;
21422
21423    linux* | k*bsd*-gnu)
21424      case $cc_basename in
21425      icc* | ecc*)
21426	lt_prog_compiler_wl='-Wl,'
21427	lt_prog_compiler_pic='-KPIC'
21428	lt_prog_compiler_static='-static'
21429        ;;
21430      pgcc* | pgf77* | pgf90* | pgf95*)
21431        # Portland Group compilers (*not* the Pentium gcc compiler,
21432	# which looks to be a dead project)
21433	lt_prog_compiler_wl='-Wl,'
21434	lt_prog_compiler_pic='-fpic'
21435	lt_prog_compiler_static='-Bstatic'
21436        ;;
21437      ccc*)
21438        lt_prog_compiler_wl='-Wl,'
21439        # All Alpha code is PIC.
21440        lt_prog_compiler_static='-non_shared'
21441        ;;
21442      esac
21443      ;;
21444
21445    osf3* | osf4* | osf5*)
21446      lt_prog_compiler_wl='-Wl,'
21447      # All OSF/1 code is PIC.
21448      lt_prog_compiler_static='-non_shared'
21449      ;;
21450
21451    solaris*)
21452      lt_prog_compiler_pic='-KPIC'
21453      lt_prog_compiler_static='-Bstatic'
21454      case $cc_basename in
21455      f77* | f90* | f95*)
21456	lt_prog_compiler_wl='-Qoption ld ';;
21457      *)
21458	lt_prog_compiler_wl='-Wl,';;
21459      esac
21460      ;;
21461
21462    sunos4*)
21463      lt_prog_compiler_wl='-Qoption ld '
21464      lt_prog_compiler_pic='-PIC'
21465      lt_prog_compiler_static='-Bstatic'
21466      ;;
21467
21468    sysv4 | sysv4.2uw2* | sysv4.3*)
21469      lt_prog_compiler_wl='-Wl,'
21470      lt_prog_compiler_pic='-KPIC'
21471      lt_prog_compiler_static='-Bstatic'
21472      ;;
21473
21474    sysv4*MP*)
21475      if test -d /usr/nec ;then
21476	lt_prog_compiler_pic='-Kconform_pic'
21477	lt_prog_compiler_static='-Bstatic'
21478      fi
21479      ;;
21480
21481    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21482      lt_prog_compiler_wl='-Wl,'
21483      lt_prog_compiler_pic='-KPIC'
21484      lt_prog_compiler_static='-Bstatic'
21485      ;;
21486
21487    unicos*)
21488      lt_prog_compiler_wl='-Wl,'
21489      lt_prog_compiler_can_build_shared=no
21490      ;;
21491
21492    uts4*)
21493      lt_prog_compiler_pic='-pic'
21494      lt_prog_compiler_static='-Bstatic'
21495      ;;
21496
21497    *)
21498      lt_prog_compiler_can_build_shared=no
21499      ;;
21500    esac
21501  fi
21502
21503{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
21504echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
21505
21506#
21507# Check to make sure the PIC flag actually works.
21508#
21509if test -n "$lt_prog_compiler_pic"; then
21510
21511{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
21512echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
21513if test "${lt_prog_compiler_pic_works+set}" = set; then
21514  echo $ECHO_N "(cached) $ECHO_C" >&6
21515else
21516  lt_prog_compiler_pic_works=no
21517  ac_outfile=conftest.$ac_objext
21518   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21519   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
21520   # Insert the option either (1) after the last *FLAGS variable, or
21521   # (2) before a word containing "conftest.", or (3) at the end.
21522   # Note that $ac_compile itself does not contain backslashes and begins
21523   # with a dollar sign (not a hyphen), so the echo should work correctly.
21524   # The option is referenced via a variable to avoid confusing sed.
21525   lt_compile=`echo "$ac_compile" | $SED \
21526   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21527   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21528   -e 's:$: $lt_compiler_flag:'`
21529   (eval echo "\"\$as_me:21529: $lt_compile\"" >&5)
21530   (eval "$lt_compile" 2>conftest.err)
21531   ac_status=$?
21532   cat conftest.err >&5
21533   echo "$as_me:21533: \$? = $ac_status" >&5
21534   if (exit $ac_status) && test -s "$ac_outfile"; then
21535     # The compiler can only warn and ignore the option if not recognized
21536     # So say no if there are warnings other than the usual output.
21537     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21538     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21539     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21540       lt_prog_compiler_pic_works=yes
21541     fi
21542   fi
21543   $rm conftest*
21544
21545fi
21546{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
21547echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
21548
21549if test x"$lt_prog_compiler_pic_works" = xyes; then
21550    case $lt_prog_compiler_pic in
21551     "" | " "*) ;;
21552     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
21553     esac
21554else
21555    lt_prog_compiler_pic=
21556     lt_prog_compiler_can_build_shared=no
21557fi
21558
21559fi
21560case $host_os in
21561  # For platforms which do not support PIC, -DPIC is meaningless:
21562  *djgpp*)
21563    lt_prog_compiler_pic=
21564    ;;
21565  *)
21566    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
21567    ;;
21568esac
21569
21570#
21571# Check to make sure the static flag actually works.
21572#
21573wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
21574{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21575echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21576if test "${lt_prog_compiler_static_works+set}" = set; then
21577  echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579  lt_prog_compiler_static_works=no
21580   save_LDFLAGS="$LDFLAGS"
21581   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21582   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21583   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21584     # The linker can only warn and ignore the option if not recognized
21585     # So say no if there are warnings
21586     if test -s conftest.err; then
21587       # Append any errors to the config.log.
21588       cat conftest.err 1>&5
21589       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21590       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21591       if diff conftest.exp conftest.er2 >/dev/null; then
21592         lt_prog_compiler_static_works=yes
21593       fi
21594     else
21595       lt_prog_compiler_static_works=yes
21596     fi
21597   fi
21598   $rm conftest*
21599   LDFLAGS="$save_LDFLAGS"
21600
21601fi
21602{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
21603echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
21604
21605if test x"$lt_prog_compiler_static_works" = xyes; then
21606    :
21607else
21608    lt_prog_compiler_static=
21609fi
21610
21611
21612{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21613echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21614if test "${lt_cv_prog_compiler_c_o+set}" = set; then
21615  echo $ECHO_N "(cached) $ECHO_C" >&6
21616else
21617  lt_cv_prog_compiler_c_o=no
21618   $rm -r conftest 2>/dev/null
21619   mkdir conftest
21620   cd conftest
21621   mkdir out
21622   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21623
21624   lt_compiler_flag="-o out/conftest2.$ac_objext"
21625   # Insert the option either (1) after the last *FLAGS variable, or
21626   # (2) before a word containing "conftest.", or (3) at the end.
21627   # Note that $ac_compile itself does not contain backslashes and begins
21628   # with a dollar sign (not a hyphen), so the echo should work correctly.
21629   lt_compile=`echo "$ac_compile" | $SED \
21630   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21631   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21632   -e 's:$: $lt_compiler_flag:'`
21633   (eval echo "\"\$as_me:21633: $lt_compile\"" >&5)
21634   (eval "$lt_compile" 2>out/conftest.err)
21635   ac_status=$?
21636   cat out/conftest.err >&5
21637   echo "$as_me:21637: \$? = $ac_status" >&5
21638   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21639   then
21640     # The compiler can only warn and ignore the option if not recognized
21641     # So say no if there are warnings
21642     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21643     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21644     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21645       lt_cv_prog_compiler_c_o=yes
21646     fi
21647   fi
21648   chmod u+w . 2>&5
21649   $rm conftest*
21650   # SGI C++ compiler will create directory out/ii_files/ for
21651   # template instantiation
21652   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21653   $rm out/* && rmdir out
21654   cd ..
21655   rmdir conftest
21656   $rm conftest*
21657
21658fi
21659{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
21660echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
21661
21662
21663hard_links="nottested"
21664if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
21665  # do not overwrite the value of need_locks provided by the user
21666  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21667echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21668  hard_links=yes
21669  $rm conftest*
21670  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21671  touch conftest.a
21672  ln conftest.a conftest.b 2>&5 || hard_links=no
21673  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21674  { echo "$as_me:$LINENO: result: $hard_links" >&5
21675echo "${ECHO_T}$hard_links" >&6; }
21676  if test "$hard_links" = no; then
21677    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21678echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21679    need_locks=warn
21680  fi
21681else
21682  need_locks=no
21683fi
21684
21685{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21686echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21687
21688  runpath_var=
21689  allow_undefined_flag=
21690  enable_shared_with_static_runtimes=no
21691  archive_cmds=
21692  archive_expsym_cmds=
21693  old_archive_From_new_cmds=
21694  old_archive_from_expsyms_cmds=
21695  export_dynamic_flag_spec=
21696  whole_archive_flag_spec=
21697  thread_safe_flag_spec=
21698  hardcode_libdir_flag_spec=
21699  hardcode_libdir_flag_spec_ld=
21700  hardcode_libdir_separator=
21701  hardcode_direct=no
21702  hardcode_minus_L=no
21703  hardcode_shlibpath_var=unsupported
21704  link_all_deplibs=unknown
21705  hardcode_automatic=no
21706  module_cmds=
21707  module_expsym_cmds=
21708  always_export_symbols=no
21709  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21710  # include_expsyms should be a list of space-separated symbols to be *always*
21711  # included in the symbol list
21712  include_expsyms=
21713  # exclude_expsyms can be an extended regexp of symbols to exclude
21714  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21715  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21716  # as well as any symbol that contains `d'.
21717  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
21718  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21719  # platforms (ab)use it in PIC code, but their linkers get confused if
21720  # the symbol is explicitly referenced.  Since portable code cannot
21721  # rely on this symbol name, it's probably fine to never include it in
21722  # preloaded symbol tables.
21723  extract_expsyms_cmds=
21724  # Just being paranoid about ensuring that cc_basename is set.
21725  for cc_temp in $compiler""; do
21726  case $cc_temp in
21727    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21728    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21729    \-*) ;;
21730    *) break;;
21731  esac
21732done
21733cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21734
21735  case $host_os in
21736  cygwin* | mingw* | pw32*)
21737    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21738    # When not using gcc, we currently assume that we are using
21739    # Microsoft Visual C++.
21740    if test "$GCC" != yes; then
21741      with_gnu_ld=no
21742    fi
21743    ;;
21744  interix*)
21745    # we just hope/assume this is gcc and not c89 (= MSVC++)
21746    with_gnu_ld=yes
21747    ;;
21748  openbsd*)
21749    with_gnu_ld=no
21750    ;;
21751  esac
21752
21753  ld_shlibs=yes
21754  if test "$with_gnu_ld" = yes; then
21755    # If archive_cmds runs LD, not CC, wlarc should be empty
21756    wlarc='${wl}'
21757
21758    # Set some defaults for GNU ld with shared library support. These
21759    # are reset later if shared libraries are not supported. Putting them
21760    # here allows them to be overridden if necessary.
21761    runpath_var=LD_RUN_PATH
21762    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
21763    export_dynamic_flag_spec='${wl}--export-dynamic'
21764    # ancient GNU ld didn't support --whole-archive et. al.
21765    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21766	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21767      else
21768  	whole_archive_flag_spec=
21769    fi
21770    supports_anon_versioning=no
21771    case `$LD -v 2>/dev/null` in
21772      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21773      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21774      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21775      *\ 2.11.*) ;; # other 2.11 versions
21776      *) supports_anon_versioning=yes ;;
21777    esac
21778
21779    # See if GNU ld supports shared libraries.
21780    case $host_os in
21781    aix3* | aix4* | aix5*)
21782      # On AIX/PPC, the GNU linker is very broken
21783      if test "$host_cpu" != ia64; then
21784	ld_shlibs=no
21785	cat <<EOF 1>&2
21786
21787*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21788*** to be unable to reliably create shared libraries on AIX.
21789*** Therefore, libtool is disabling shared libraries support.  If you
21790*** really care for shared libraries, you may want to modify your PATH
21791*** so that a non-GNU linker is found, and then restart.
21792
21793EOF
21794      fi
21795      ;;
21796
21797    amigaos*)
21798      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)'
21799      hardcode_libdir_flag_spec='-L$libdir'
21800      hardcode_minus_L=yes
21801
21802      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21803      # that the semantics of dynamic libraries on AmigaOS, at least up
21804      # to version 4, is to share data among multiple programs linked
21805      # with the same dynamic library.  Since this doesn't match the
21806      # behavior of shared libraries on other platforms, we can't use
21807      # them.
21808      ld_shlibs=no
21809      ;;
21810
21811    beos*)
21812      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813	allow_undefined_flag=unsupported
21814	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21815	# support --undefined.  This deserves some investigation.  FIXME
21816	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21817      else
21818	ld_shlibs=no
21819      fi
21820      ;;
21821
21822    cygwin* | mingw* | pw32*)
21823      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
21824      # as there is no search path for DLLs.
21825      hardcode_libdir_flag_spec='-L$libdir'
21826      allow_undefined_flag=unsupported
21827      always_export_symbols=no
21828      enable_shared_with_static_runtimes=yes
21829      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21830
21831      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21832        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21833	# If the export-symbols file already is a .def file (1st line
21834	# is EXPORTS), use it as is; otherwise, prepend...
21835	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21836	  cp $export_symbols $output_objdir/$soname.def;
21837	else
21838	  echo EXPORTS > $output_objdir/$soname.def;
21839	  cat $export_symbols >> $output_objdir/$soname.def;
21840	fi~
21841	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21842      else
21843	ld_shlibs=no
21844      fi
21845      ;;
21846
21847    interix3*)
21848      hardcode_direct=no
21849      hardcode_shlibpath_var=no
21850      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
21851      export_dynamic_flag_spec='${wl}-E'
21852      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21853      # Instead, shared libraries are loaded at an image base (0x10000000 by
21854      # default) and relocated if they conflict, which is a slow very memory
21855      # consuming and fragmenting process.  To avoid this, we pick a random,
21856      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21857      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21858      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21859      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'
21860      ;;
21861
21862    linux* | k*bsd*-gnu)
21863      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21864	tmp_addflag=
21865	case $cc_basename,$host_cpu in
21866	pgcc*)				# Portland Group C compiler
21867	  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'
21868	  tmp_addflag=' $pic_flag'
21869	  ;;
21870	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21871	  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'
21872	  tmp_addflag=' $pic_flag -Mnomain' ;;
21873	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21874	  tmp_addflag=' -i_dynamic' ;;
21875	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21876	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21877	ifc* | ifort*)			# Intel Fortran compiler
21878	  tmp_addflag=' -nofor_main' ;;
21879	esac
21880	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21881
21882	if test $supports_anon_versioning = yes; then
21883	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
21884  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21885  $echo "local: *; };" >> $output_objdir/$libname.ver~
21886	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21887	fi
21888	link_all_deplibs=no
21889      else
21890	ld_shlibs=no
21891      fi
21892      ;;
21893
21894    netbsd* | netbsdelf*-gnu)
21895      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21896	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21897	wlarc=
21898      else
21899	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21900	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21901      fi
21902      ;;
21903
21904    solaris*)
21905      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21906	ld_shlibs=no
21907	cat <<EOF 1>&2
21908
21909*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21910*** create shared libraries on Solaris systems.  Therefore, libtool
21911*** is disabling shared libraries support.  We urge you to upgrade GNU
21912*** binutils to release 2.9.1 or newer.  Another option is to modify
21913*** your PATH or compiler configuration so that the native linker is
21914*** used, and then restart.
21915
21916EOF
21917      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21918	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21919	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21920      else
21921	ld_shlibs=no
21922      fi
21923      ;;
21924
21925    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21926      case `$LD -v 2>&1` in
21927        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21928	ld_shlibs=no
21929	cat <<_LT_EOF 1>&2
21930
21931*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21932*** reliably create shared libraries on SCO systems.  Therefore, libtool
21933*** is disabling shared libraries support.  We urge you to upgrade GNU
21934*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21935*** your PATH or compiler configuration so that the native linker is
21936*** used, and then restart.
21937
21938_LT_EOF
21939	;;
21940	*)
21941	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21942	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21943	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21944	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21945	  else
21946	    ld_shlibs=no
21947	  fi
21948	;;
21949      esac
21950      ;;
21951
21952    sunos4*)
21953      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21954      wlarc=
21955      hardcode_direct=yes
21956      hardcode_shlibpath_var=no
21957      ;;
21958
21959    *)
21960      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21961	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21962	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21963      else
21964	ld_shlibs=no
21965      fi
21966      ;;
21967    esac
21968
21969    if test "$ld_shlibs" = no; then
21970      runpath_var=
21971      hardcode_libdir_flag_spec=
21972      export_dynamic_flag_spec=
21973      whole_archive_flag_spec=
21974    fi
21975  else
21976    # PORTME fill in a description of your system's linker (not GNU ld)
21977    case $host_os in
21978    aix3*)
21979      allow_undefined_flag=unsupported
21980      always_export_symbols=yes
21981      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'
21982      # Note: this linker hardcodes the directories in LIBPATH if there
21983      # are no directories specified by -L.
21984      hardcode_minus_L=yes
21985      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21986	# Neither direct hardcoding nor static linking is supported with a
21987	# broken collect2.
21988	hardcode_direct=unsupported
21989      fi
21990      ;;
21991
21992    aix4* | aix5*)
21993      if test "$host_cpu" = ia64; then
21994	# On IA64, the linker does run time linking by default, so we don't
21995	# have to do anything special.
21996	aix_use_runtimelinking=no
21997	exp_sym_flag='-Bexport'
21998	no_entry_flag=""
21999      else
22000	# If we're using GNU nm, then we don't want the "-C" option.
22001	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22002	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22003	  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'
22004	else
22005	  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'
22006	fi
22007	aix_use_runtimelinking=no
22008
22009	# Test if we are trying to use run time linking or normal
22010	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22011	# need to do runtime linking.
22012	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22013	  for ld_flag in $LDFLAGS; do
22014  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22015  	    aix_use_runtimelinking=yes
22016  	    break
22017  	  fi
22018	  done
22019	  ;;
22020	esac
22021
22022	exp_sym_flag='-bexport'
22023	no_entry_flag='-bnoentry'
22024      fi
22025
22026      # When large executables or shared objects are built, AIX ld can
22027      # have problems creating the table of contents.  If linking a library
22028      # or program results in "error TOC overflow" add -mminimal-toc to
22029      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22030      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22031
22032      archive_cmds=''
22033      hardcode_direct=yes
22034      hardcode_libdir_separator=':'
22035      link_all_deplibs=yes
22036
22037      if test "$GCC" = yes; then
22038	case $host_os in aix4.[012]|aix4.[012].*)
22039	# We only want to do this on AIX 4.2 and lower, the check
22040	# below for broken collect2 doesn't work under 4.3+
22041	  collect2name=`${CC} -print-prog-name=collect2`
22042	  if test -f "$collect2name" && \
22043  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22044	  then
22045  	  # We have reworked collect2
22046  	  hardcode_direct=yes
22047	  else
22048  	  # We have old collect2
22049  	  hardcode_direct=unsupported
22050  	  # It fails to find uninstalled libraries when the uninstalled
22051  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22052  	  # to unsupported forces relinking
22053  	  hardcode_minus_L=yes
22054  	  hardcode_libdir_flag_spec='-L$libdir'
22055  	  hardcode_libdir_separator=
22056	  fi
22057	  ;;
22058	esac
22059	shared_flag='-shared'
22060	if test "$aix_use_runtimelinking" = yes; then
22061	  shared_flag="$shared_flag "'${wl}-G'
22062	fi
22063      else
22064	# not using gcc
22065	if test "$host_cpu" = ia64; then
22066  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22067  	# chokes on -Wl,-G. The following line is correct:
22068	  shared_flag='-G'
22069	else
22070	  if test "$aix_use_runtimelinking" = yes; then
22071	    shared_flag='${wl}-G'
22072	  else
22073	    shared_flag='${wl}-bM:SRE'
22074	  fi
22075	fi
22076      fi
22077
22078      # It seems that -bexpall does not export symbols beginning with
22079      # underscore (_), so it is better to generate a list of symbols to export.
22080      always_export_symbols=yes
22081      if test "$aix_use_runtimelinking" = yes; then
22082	# Warning - without using the other runtime loading flags (-brtl),
22083	# -berok will link without error, but may produce a broken library.
22084	allow_undefined_flag='-berok'
22085       # Determine the default libpath from the value encoded in an empty executable.
22086       cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h.  */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h.  */
22092
22093int
22094main ()
22095{
22096
22097  ;
22098  return 0;
22099}
22100_ACEOF
22101rm -f conftest.$ac_objext conftest$ac_exeext
22102if { (ac_try="$ac_link"
22103case "(($ac_try" in
22104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105  *) ac_try_echo=$ac_try;;
22106esac
22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108  (eval "$ac_link") 2>conftest.er1
22109  ac_status=$?
22110  grep -v '^ *+' conftest.er1 >conftest.err
22111  rm -f conftest.er1
22112  cat conftest.err >&5
22113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114  (exit $ac_status); } && {
22115	 test -z "$ac_c_werror_flag" ||
22116	 test ! -s conftest.err
22117       } && test -s conftest$ac_exeext &&
22118       $as_test_x conftest$ac_exeext; then
22119
22120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22121}'`
22122# Check for a 64-bit object if we didn't find anything.
22123if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22124}'`; fi
22125else
22126  echo "$as_me: failed program was:" >&5
22127sed 's/^/| /' conftest.$ac_ext >&5
22128
22129
22130fi
22131
22132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22133      conftest$ac_exeext conftest.$ac_ext
22134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22135
22136       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22137	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"
22138       else
22139	if test "$host_cpu" = ia64; then
22140	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
22141	  allow_undefined_flag="-z nodefs"
22142	  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"
22143	else
22144	 # Determine the default libpath from the value encoded in an empty executable.
22145	 cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h.  */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h.  */
22151
22152int
22153main ()
22154{
22155
22156  ;
22157  return 0;
22158}
22159_ACEOF
22160rm -f conftest.$ac_objext conftest$ac_exeext
22161if { (ac_try="$ac_link"
22162case "(($ac_try" in
22163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164  *) ac_try_echo=$ac_try;;
22165esac
22166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167  (eval "$ac_link") 2>conftest.er1
22168  ac_status=$?
22169  grep -v '^ *+' conftest.er1 >conftest.err
22170  rm -f conftest.er1
22171  cat conftest.err >&5
22172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173  (exit $ac_status); } && {
22174	 test -z "$ac_c_werror_flag" ||
22175	 test ! -s conftest.err
22176       } && test -s conftest$ac_exeext &&
22177       $as_test_x conftest$ac_exeext; then
22178
22179aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22180}'`
22181# Check for a 64-bit object if we didn't find anything.
22182if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22183}'`; fi
22184else
22185  echo "$as_me: failed program was:" >&5
22186sed 's/^/| /' conftest.$ac_ext >&5
22187
22188
22189fi
22190
22191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192      conftest$ac_exeext conftest.$ac_ext
22193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22194
22195	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22196	  # Warning - without using the other run time loading flags,
22197	  # -berok will link without error, but may produce a broken library.
22198	  no_undefined_flag=' ${wl}-bernotok'
22199	  allow_undefined_flag=' ${wl}-berok'
22200	  # Exported symbols can be pulled into shared objects from archives
22201	  whole_archive_flag_spec='$convenience'
22202	  archive_cmds_need_lc=yes
22203	  # This is similar to how AIX traditionally builds its shared libraries.
22204	  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'
22205	fi
22206      fi
22207      ;;
22208
22209    amigaos*)
22210      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)'
22211      hardcode_libdir_flag_spec='-L$libdir'
22212      hardcode_minus_L=yes
22213      # see comment about different semantics on the GNU ld section
22214      ld_shlibs=no
22215      ;;
22216
22217    bsdi[45]*)
22218      export_dynamic_flag_spec=-rdynamic
22219      ;;
22220
22221    cygwin* | mingw* | pw32*)
22222      # When not using gcc, we currently assume that we are using
22223      # Microsoft Visual C++.
22224      # hardcode_libdir_flag_spec is actually meaningless, as there is
22225      # no search path for DLLs.
22226      hardcode_libdir_flag_spec=' '
22227      allow_undefined_flag=unsupported
22228      # Tell ltmain to make .lib files, not .a files.
22229      libext=lib
22230      # Tell ltmain to make .dll files, not .so files.
22231      shrext_cmds=".dll"
22232      # FIXME: Setting linknames here is a bad hack.
22233      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22234      # The linker will automatically build a .lib file if we build a DLL.
22235      old_archive_From_new_cmds='true'
22236      # FIXME: Should let the user specify the lib program.
22237      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
22238      fix_srcfile_path='`cygpath -w "$srcfile"`'
22239      enable_shared_with_static_runtimes=yes
22240      ;;
22241
22242    darwin* | rhapsody*)
22243      case $host_os in
22244        rhapsody* | darwin1.[012])
22245         allow_undefined_flag='${wl}-undefined ${wl}suppress'
22246         ;;
22247       *) # Darwin 1.3 on
22248         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22249           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22250         else
22251           case ${MACOSX_DEPLOYMENT_TARGET} in
22252             10.[012])
22253               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22254               ;;
22255             10.*)
22256               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
22257               ;;
22258           esac
22259         fi
22260         ;;
22261      esac
22262      archive_cmds_need_lc=no
22263      hardcode_direct=no
22264      hardcode_automatic=yes
22265      hardcode_shlibpath_var=unsupported
22266      whole_archive_flag_spec=''
22267      link_all_deplibs=yes
22268    if test "$GCC" = yes ; then
22269    	output_verbose_link_cmd='echo'
22270        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22271      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22272      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22273      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22274      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}'
22275    else
22276      case $cc_basename in
22277        xlc*)
22278         output_verbose_link_cmd='echo'
22279         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22280         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22281          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22282         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22283          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}'
22284          ;;
22285       *)
22286         ld_shlibs=no
22287          ;;
22288      esac
22289    fi
22290      ;;
22291
22292    dgux*)
22293      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22294      hardcode_libdir_flag_spec='-L$libdir'
22295      hardcode_shlibpath_var=no
22296      ;;
22297
22298    freebsd1*)
22299      ld_shlibs=no
22300      ;;
22301
22302    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22303    # support.  Future versions do this automatically, but an explicit c++rt0.o
22304    # does not break anything, and helps significantly (at the cost of a little
22305    # extra space).
22306    freebsd2.2*)
22307      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22308      hardcode_libdir_flag_spec='-R$libdir'
22309      hardcode_direct=yes
22310      hardcode_shlibpath_var=no
22311      ;;
22312
22313    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22314    freebsd2*)
22315      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22316      hardcode_direct=yes
22317      hardcode_minus_L=yes
22318      hardcode_shlibpath_var=no
22319      ;;
22320
22321    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22322    freebsd* | dragonfly*)
22323      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22324      hardcode_libdir_flag_spec='-R$libdir'
22325      hardcode_direct=yes
22326      hardcode_shlibpath_var=no
22327      ;;
22328
22329    hpux9*)
22330      if test "$GCC" = yes; then
22331	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'
22332      else
22333	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'
22334      fi
22335      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
22336      hardcode_libdir_separator=:
22337      hardcode_direct=yes
22338
22339      # hardcode_minus_L: Not really in the search PATH,
22340      # but as the default location of the library.
22341      hardcode_minus_L=yes
22342      export_dynamic_flag_spec='${wl}-E'
22343      ;;
22344
22345    hpux10*)
22346      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22347	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22348      else
22349	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22350      fi
22351      if test "$with_gnu_ld" = no; then
22352	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
22353	hardcode_libdir_separator=:
22354
22355	hardcode_direct=yes
22356	export_dynamic_flag_spec='${wl}-E'
22357
22358	# hardcode_minus_L: Not really in the search PATH,
22359	# but as the default location of the library.
22360	hardcode_minus_L=yes
22361      fi
22362      ;;
22363
22364    hpux11*)
22365      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22366	case $host_cpu in
22367	hppa*64*)
22368	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22369	  ;;
22370	ia64*)
22371	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22372	  ;;
22373	*)
22374	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22375	  ;;
22376	esac
22377      else
22378	case $host_cpu in
22379	hppa*64*)
22380	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22381	  ;;
22382	ia64*)
22383	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22384	  ;;
22385	*)
22386	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22387	  ;;
22388	esac
22389      fi
22390      if test "$with_gnu_ld" = no; then
22391	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
22392	hardcode_libdir_separator=:
22393
22394	case $host_cpu in
22395	hppa*64*|ia64*)
22396	  hardcode_libdir_flag_spec_ld='+b $libdir'
22397	  hardcode_direct=no
22398	  hardcode_shlibpath_var=no
22399	  ;;
22400	*)
22401	  hardcode_direct=yes
22402	  export_dynamic_flag_spec='${wl}-E'
22403
22404	  # hardcode_minus_L: Not really in the search PATH,
22405	  # but as the default location of the library.
22406	  hardcode_minus_L=yes
22407	  ;;
22408	esac
22409      fi
22410      ;;
22411
22412    irix5* | irix6* | nonstopux*)
22413      if test "$GCC" = yes; then
22414	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'
22415      else
22416	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'
22417	hardcode_libdir_flag_spec_ld='-rpath $libdir'
22418      fi
22419      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22420      hardcode_libdir_separator=:
22421      link_all_deplibs=yes
22422      ;;
22423
22424    netbsd* | netbsdelf*-gnu)
22425      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22426	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22427      else
22428	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22429      fi
22430      hardcode_libdir_flag_spec='-R$libdir'
22431      hardcode_direct=yes
22432      hardcode_shlibpath_var=no
22433      ;;
22434
22435    newsos6)
22436      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437      hardcode_direct=yes
22438      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22439      hardcode_libdir_separator=:
22440      hardcode_shlibpath_var=no
22441      ;;
22442
22443    openbsd*)
22444      hardcode_direct=yes
22445      hardcode_shlibpath_var=no
22446      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22447	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22448	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22449	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
22450	export_dynamic_flag_spec='${wl}-E'
22451      else
22452       case $host_os in
22453	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22454	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22455	   hardcode_libdir_flag_spec='-R$libdir'
22456	   ;;
22457	 *)
22458	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22459	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
22460	   ;;
22461       esac
22462      fi
22463      ;;
22464
22465    os2*)
22466      hardcode_libdir_flag_spec='-L$libdir'
22467      hardcode_minus_L=yes
22468      allow_undefined_flag=unsupported
22469      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'
22470      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22471      ;;
22472
22473    osf3*)
22474      if test "$GCC" = yes; then
22475	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22476	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'
22477      else
22478	allow_undefined_flag=' -expect_unresolved \*'
22479	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'
22480      fi
22481      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22482      hardcode_libdir_separator=:
22483      ;;
22484
22485    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22486      if test "$GCC" = yes; then
22487	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22488	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'
22489	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22490      else
22491	allow_undefined_flag=' -expect_unresolved \*'
22492	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'
22493	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22494	$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'
22495
22496	# Both c and cxx compiler support -rpath directly
22497	hardcode_libdir_flag_spec='-rpath $libdir'
22498      fi
22499      hardcode_libdir_separator=:
22500      ;;
22501
22502    solaris*)
22503      no_undefined_flag=' -z text'
22504      if test "$GCC" = yes; then
22505	wlarc='${wl}'
22506	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22508	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22509      else
22510	wlarc=''
22511	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22513  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22514      fi
22515      hardcode_libdir_flag_spec='-R$libdir'
22516      hardcode_shlibpath_var=no
22517      case $host_os in
22518      solaris2.[0-5] | solaris2.[0-5].*) ;;
22519      *)
22520 	# The compiler driver will combine linker options so we
22521 	# cannot just pass the convience library names through
22522 	# without $wl, iff we do not link with $LD.
22523 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22524 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22525 	case $wlarc in
22526 	'')
22527 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
22528 	*)
22529 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22530 	esac ;;
22531      esac
22532      link_all_deplibs=yes
22533      ;;
22534
22535    sunos4*)
22536      if test "x$host_vendor" = xsequent; then
22537	# Use $CC to link under sequent, because it throws in some extra .o
22538	# files that make .init and .fini sections work.
22539	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22540      else
22541	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22542      fi
22543      hardcode_libdir_flag_spec='-L$libdir'
22544      hardcode_direct=yes
22545      hardcode_minus_L=yes
22546      hardcode_shlibpath_var=no
22547      ;;
22548
22549    sysv4)
22550      case $host_vendor in
22551	sni)
22552	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22553	  hardcode_direct=yes # is this really true???
22554	;;
22555	siemens)
22556	  ## LD is ld it makes a PLAMLIB
22557	  ## CC just makes a GrossModule.
22558	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22559	  reload_cmds='$CC -r -o $output$reload_objs'
22560	  hardcode_direct=no
22561        ;;
22562	motorola)
22563	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22564	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
22565	;;
22566      esac
22567      runpath_var='LD_RUN_PATH'
22568      hardcode_shlibpath_var=no
22569      ;;
22570
22571    sysv4.3*)
22572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22573      hardcode_shlibpath_var=no
22574      export_dynamic_flag_spec='-Bexport'
22575      ;;
22576
22577    sysv4*MP*)
22578      if test -d /usr/nec; then
22579	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22580	hardcode_shlibpath_var=no
22581	runpath_var=LD_RUN_PATH
22582	hardcode_runpath_var=yes
22583	ld_shlibs=yes
22584      fi
22585      ;;
22586
22587    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22588      no_undefined_flag='${wl}-z,text'
22589      archive_cmds_need_lc=no
22590      hardcode_shlibpath_var=no
22591      runpath_var='LD_RUN_PATH'
22592
22593      if test "$GCC" = yes; then
22594	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22595	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22596      else
22597	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22598	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22599      fi
22600      ;;
22601
22602    sysv5* | sco3.2v5* | sco5v6*)
22603      # Note: We can NOT use -z defs as we might desire, because we do not
22604      # link with -lc, and that would cause any symbols used from libc to
22605      # always be unresolved, which means just about no library would
22606      # ever link correctly.  If we're not using GNU ld we use -z text
22607      # though, which does catch some bad symbols but isn't as heavy-handed
22608      # as -z defs.
22609      no_undefined_flag='${wl}-z,text'
22610      allow_undefined_flag='${wl}-z,nodefs'
22611      archive_cmds_need_lc=no
22612      hardcode_shlibpath_var=no
22613      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22614      hardcode_libdir_separator=':'
22615      link_all_deplibs=yes
22616      export_dynamic_flag_spec='${wl}-Bexport'
22617      runpath_var='LD_RUN_PATH'
22618
22619      if test "$GCC" = yes; then
22620	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22621	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22622      else
22623	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22624	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22625      fi
22626      ;;
22627
22628    uts4*)
22629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22630      hardcode_libdir_flag_spec='-L$libdir'
22631      hardcode_shlibpath_var=no
22632      ;;
22633
22634    *)
22635      ld_shlibs=no
22636      ;;
22637    esac
22638  fi
22639
22640{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
22641echo "${ECHO_T}$ld_shlibs" >&6; }
22642test "$ld_shlibs" = no && can_build_shared=no
22643
22644#
22645# Do we need to explicitly link libc?
22646#
22647case "x$archive_cmds_need_lc" in
22648x|xyes)
22649  # Assume -lc should be added
22650  archive_cmds_need_lc=yes
22651
22652  if test "$enable_shared" = yes && test "$GCC" = yes; then
22653    case $archive_cmds in
22654    *'~'*)
22655      # FIXME: we may have to deal with multi-command sequences.
22656      ;;
22657    '$CC '*)
22658      # Test whether the compiler implicitly links with -lc since on some
22659      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22660      # to ld, don't add -lc before -lgcc.
22661      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22662echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22663      $rm conftest*
22664      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22665
22666      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667  (eval $ac_compile) 2>&5
22668  ac_status=$?
22669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670  (exit $ac_status); } 2>conftest.err; then
22671        soname=conftest
22672        lib=conftest
22673        libobjs=conftest.$ac_objext
22674        deplibs=
22675        wl=$lt_prog_compiler_wl
22676	pic_flag=$lt_prog_compiler_pic
22677        compiler_flags=-v
22678        linker_flags=-v
22679        verstring=
22680        output_objdir=.
22681        libname=conftest
22682        lt_save_allow_undefined_flag=$allow_undefined_flag
22683        allow_undefined_flag=
22684        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22685  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22686  ac_status=$?
22687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688  (exit $ac_status); }
22689        then
22690	  archive_cmds_need_lc=no
22691        else
22692	  archive_cmds_need_lc=yes
22693        fi
22694        allow_undefined_flag=$lt_save_allow_undefined_flag
22695      else
22696        cat conftest.err 1>&5
22697      fi
22698      $rm conftest*
22699      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
22700echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
22701      ;;
22702    esac
22703  fi
22704  ;;
22705esac
22706
22707{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22708echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22709library_names_spec=
22710libname_spec='lib$name'
22711soname_spec=
22712shrext_cmds=".so"
22713postinstall_cmds=
22714postuninstall_cmds=
22715finish_cmds=
22716finish_eval=
22717shlibpath_var=
22718shlibpath_overrides_runpath=unknown
22719version_type=none
22720dynamic_linker="$host_os ld.so"
22721sys_lib_dlsearch_path_spec="/lib /usr/lib"
22722if test "$GCC" = yes; then
22723  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22724  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22725    # if the path contains ";" then we assume it to be the separator
22726    # otherwise default to the standard path separator (i.e. ":") - it is
22727    # assumed that no part of a normal pathname contains ";" but that should
22728    # okay in the real world where ";" in dirpaths is itself problematic.
22729    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22730  else
22731    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22732  fi
22733else
22734  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22735fi
22736need_lib_prefix=unknown
22737hardcode_into_libs=no
22738
22739# when you set need_version to no, make sure it does not cause -set_version
22740# flags to be left without arguments
22741need_version=unknown
22742
22743case $host_os in
22744aix3*)
22745  version_type=linux
22746  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22747  shlibpath_var=LIBPATH
22748
22749  # AIX 3 has no versioning support, so we append a major version to the name.
22750  soname_spec='${libname}${release}${shared_ext}$major'
22751  ;;
22752
22753aix4* | aix5*)
22754  version_type=linux
22755  need_lib_prefix=no
22756  need_version=no
22757  hardcode_into_libs=yes
22758  if test "$host_cpu" = ia64; then
22759    # AIX 5 supports IA64
22760    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22761    shlibpath_var=LD_LIBRARY_PATH
22762  else
22763    # With GCC up to 2.95.x, collect2 would create an import file
22764    # for dependence libraries.  The import file would start with
22765    # the line `#! .'.  This would cause the generated library to
22766    # depend on `.', always an invalid library.  This was fixed in
22767    # development snapshots of GCC prior to 3.0.
22768    case $host_os in
22769      aix4 | aix4.[01] | aix4.[01].*)
22770      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22771	   echo ' yes '
22772	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22773	:
22774      else
22775	can_build_shared=no
22776      fi
22777      ;;
22778    esac
22779    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22780    # soname into executable. Probably we can add versioning support to
22781    # collect2, so additional links can be useful in future.
22782    if test "$aix_use_runtimelinking" = yes; then
22783      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22784      # instead of lib<name>.a to let people know that these are not
22785      # typical AIX shared libraries.
22786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787    else
22788      # We preserve .a as extension for shared libraries through AIX4.2
22789      # and later when we are not doing run time linking.
22790      library_names_spec='${libname}${release}.a $libname.a'
22791      soname_spec='${libname}${release}${shared_ext}$major'
22792    fi
22793    shlibpath_var=LIBPATH
22794  fi
22795  ;;
22796
22797amigaos*)
22798  library_names_spec='$libname.ixlibrary $libname.a'
22799  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22800  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'
22801  ;;
22802
22803beos*)
22804  library_names_spec='${libname}${shared_ext}'
22805  dynamic_linker="$host_os ld.so"
22806  shlibpath_var=LIBRARY_PATH
22807  ;;
22808
22809bsdi[45]*)
22810  version_type=linux
22811  need_version=no
22812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22813  soname_spec='${libname}${release}${shared_ext}$major'
22814  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22815  shlibpath_var=LD_LIBRARY_PATH
22816  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22817  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22818  # the default ld.so.conf also contains /usr/contrib/lib and
22819  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22820  # libtool to hard-code these into programs
22821  ;;
22822
22823cygwin* | mingw* | pw32*)
22824  version_type=windows
22825  shrext_cmds=".dll"
22826  need_version=no
22827  need_lib_prefix=no
22828
22829  case $GCC,$host_os in
22830  yes,cygwin* | yes,mingw* | yes,pw32*)
22831    library_names_spec='$libname.dll.a'
22832    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22833    postinstall_cmds='base_file=`basename \${file}`~
22834      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22835      dldir=$destdir/`dirname \$dlpath`~
22836      test -d \$dldir || mkdir -p \$dldir~
22837      $install_prog $dir/$dlname \$dldir/$dlname~
22838      chmod a+x \$dldir/$dlname'
22839    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22840      dlpath=$dir/\$dldll~
22841       $rm \$dlpath'
22842    shlibpath_overrides_runpath=yes
22843
22844    case $host_os in
22845    cygwin*)
22846      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22847      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22848      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22849      ;;
22850    mingw*)
22851      # MinGW DLLs use traditional 'lib' prefix
22852      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22853      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22854      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22855        # It is most probably a Windows format PATH printed by
22856        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22857        # path with ; separators, and with drive letters. We can handle the
22858        # drive letters (cygwin fileutils understands them), so leave them,
22859        # especially as we might pass files found there to a mingw objdump,
22860        # which wouldn't understand a cygwinified path. Ahh.
22861        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22862      else
22863        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22864      fi
22865      ;;
22866    pw32*)
22867      # pw32 DLLs use 'pw' prefix rather than 'lib'
22868      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22869      ;;
22870    esac
22871    ;;
22872
22873  *)
22874    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22875    ;;
22876  esac
22877  dynamic_linker='Win32 ld.exe'
22878  # FIXME: first we should search . and the directory the executable is in
22879  shlibpath_var=PATH
22880  ;;
22881
22882darwin* | rhapsody*)
22883  dynamic_linker="$host_os dyld"
22884  version_type=darwin
22885  need_lib_prefix=no
22886  need_version=no
22887  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22888  soname_spec='${libname}${release}${major}$shared_ext'
22889  shlibpath_overrides_runpath=yes
22890  shlibpath_var=DYLD_LIBRARY_PATH
22891  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22892  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22893  if test "$GCC" = yes; then
22894    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22895  else
22896    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22897  fi
22898  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22899  ;;
22900
22901dgux*)
22902  version_type=linux
22903  need_lib_prefix=no
22904  need_version=no
22905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22906  soname_spec='${libname}${release}${shared_ext}$major'
22907  shlibpath_var=LD_LIBRARY_PATH
22908  ;;
22909
22910freebsd1*)
22911  dynamic_linker=no
22912  ;;
22913
22914freebsd* | dragonfly*)
22915  # DragonFly does not have aout.  When/if they implement a new
22916  # versioning mechanism, adjust this.
22917  if test -x /usr/bin/objformat; then
22918    objformat=`/usr/bin/objformat`
22919  else
22920    case $host_os in
22921    freebsd[123]*) objformat=aout ;;
22922    *) objformat=elf ;;
22923    esac
22924  fi
22925  version_type=freebsd-$objformat
22926  case $version_type in
22927    freebsd-elf*)
22928      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22929      need_version=no
22930      need_lib_prefix=no
22931      ;;
22932    freebsd-*)
22933      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22934      need_version=yes
22935      ;;
22936  esac
22937  shlibpath_var=LD_LIBRARY_PATH
22938  case $host_os in
22939  freebsd2*)
22940    shlibpath_overrides_runpath=yes
22941    ;;
22942  freebsd3.[01]* | freebsdelf3.[01]*)
22943    shlibpath_overrides_runpath=yes
22944    hardcode_into_libs=yes
22945    ;;
22946  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22947  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22948    shlibpath_overrides_runpath=no
22949    hardcode_into_libs=yes
22950    ;;
22951  freebsd*) # from 4.6 on
22952    shlibpath_overrides_runpath=yes
22953    hardcode_into_libs=yes
22954    ;;
22955  esac
22956  ;;
22957
22958gnu*)
22959  version_type=linux
22960  need_lib_prefix=no
22961  need_version=no
22962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22963  soname_spec='${libname}${release}${shared_ext}$major'
22964  shlibpath_var=LD_LIBRARY_PATH
22965  hardcode_into_libs=yes
22966  ;;
22967
22968hpux9* | hpux10* | hpux11*)
22969  # Give a soname corresponding to the major version so that dld.sl refuses to
22970  # link against other versions.
22971  version_type=sunos
22972  need_lib_prefix=no
22973  need_version=no
22974  case $host_cpu in
22975  ia64*)
22976    shrext_cmds='.so'
22977    hardcode_into_libs=yes
22978    dynamic_linker="$host_os dld.so"
22979    shlibpath_var=LD_LIBRARY_PATH
22980    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982    soname_spec='${libname}${release}${shared_ext}$major'
22983    if test "X$HPUX_IA64_MODE" = X32; then
22984      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22985    else
22986      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22987    fi
22988    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22989    ;;
22990   hppa*64*)
22991     shrext_cmds='.sl'
22992     hardcode_into_libs=yes
22993     dynamic_linker="$host_os dld.sl"
22994     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22995     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22997     soname_spec='${libname}${release}${shared_ext}$major'
22998     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22999     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23000     ;;
23001   *)
23002    shrext_cmds='.sl'
23003    dynamic_linker="$host_os dld.sl"
23004    shlibpath_var=SHLIB_PATH
23005    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23006    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007    soname_spec='${libname}${release}${shared_ext}$major'
23008    ;;
23009  esac
23010  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23011  postinstall_cmds='chmod 555 $lib'
23012  ;;
23013
23014interix3*)
23015  version_type=linux
23016  need_lib_prefix=no
23017  need_version=no
23018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23019  soname_spec='${libname}${release}${shared_ext}$major'
23020  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23021  shlibpath_var=LD_LIBRARY_PATH
23022  shlibpath_overrides_runpath=no
23023  hardcode_into_libs=yes
23024  ;;
23025
23026irix5* | irix6* | nonstopux*)
23027  case $host_os in
23028    nonstopux*) version_type=nonstopux ;;
23029    *)
23030	if test "$lt_cv_prog_gnu_ld" = yes; then
23031		version_type=linux
23032	else
23033		version_type=irix
23034	fi ;;
23035  esac
23036  need_lib_prefix=no
23037  need_version=no
23038  soname_spec='${libname}${release}${shared_ext}$major'
23039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23040  case $host_os in
23041  irix5* | nonstopux*)
23042    libsuff= shlibsuff=
23043    ;;
23044  *)
23045    case $LD in # libtool.m4 will add one of these switches to LD
23046    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23047      libsuff= shlibsuff= libmagic=32-bit;;
23048    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23049      libsuff=32 shlibsuff=N32 libmagic=N32;;
23050    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23051      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23052    *) libsuff= shlibsuff= libmagic=never-match;;
23053    esac
23054    ;;
23055  esac
23056  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23057  shlibpath_overrides_runpath=no
23058  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23059  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23060  hardcode_into_libs=yes
23061  ;;
23062
23063# No shared lib support for Linux oldld, aout, or coff.
23064linux*oldld* | linux*aout* | linux*coff*)
23065  dynamic_linker=no
23066  ;;
23067
23068# This must be Linux ELF.
23069linux* | k*bsd*-gnu)
23070  version_type=linux
23071  need_lib_prefix=no
23072  need_version=no
23073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074  soname_spec='${libname}${release}${shared_ext}$major'
23075  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23076  shlibpath_var=LD_LIBRARY_PATH
23077  shlibpath_overrides_runpath=no
23078  # This implies no fast_install, which is unacceptable.
23079  # Some rework will be needed to allow for fast_install
23080  # before this can be enabled.
23081  hardcode_into_libs=yes
23082
23083  # Append ld.so.conf contents to the search path
23084  if test -f /etc/ld.so.conf; then
23085    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23086    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23087  fi
23088
23089  # We used to test for /lib/ld.so.1 and disable shared libraries on
23090  # powerpc, because MkLinux only supported shared libraries with the
23091  # GNU dynamic linker.  Since this was broken with cross compilers,
23092  # most powerpc-linux boxes support dynamic linking these days and
23093  # people can always --disable-shared, the test was removed, and we
23094  # assume the GNU/Linux dynamic linker is in use.
23095  dynamic_linker='GNU/Linux ld.so'
23096  ;;
23097
23098netbsdelf*-gnu)
23099  version_type=linux
23100  need_lib_prefix=no
23101  need_version=no
23102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23103  soname_spec='${libname}${release}${shared_ext}$major'
23104  shlibpath_var=LD_LIBRARY_PATH
23105  shlibpath_overrides_runpath=no
23106  hardcode_into_libs=yes
23107  dynamic_linker='NetBSD ld.elf_so'
23108  ;;
23109
23110netbsd*)
23111  version_type=sunos
23112  need_lib_prefix=no
23113  need_version=no
23114  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23115    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23117    dynamic_linker='NetBSD (a.out) ld.so'
23118  else
23119    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23120    soname_spec='${libname}${release}${shared_ext}$major'
23121    dynamic_linker='NetBSD ld.elf_so'
23122  fi
23123  shlibpath_var=LD_LIBRARY_PATH
23124  shlibpath_overrides_runpath=yes
23125  hardcode_into_libs=yes
23126  ;;
23127
23128newsos6)
23129  version_type=linux
23130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23131  shlibpath_var=LD_LIBRARY_PATH
23132  shlibpath_overrides_runpath=yes
23133  ;;
23134
23135nto-qnx*)
23136  version_type=linux
23137  need_lib_prefix=no
23138  need_version=no
23139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23140  soname_spec='${libname}${release}${shared_ext}$major'
23141  shlibpath_var=LD_LIBRARY_PATH
23142  shlibpath_overrides_runpath=yes
23143  ;;
23144
23145openbsd*)
23146  version_type=sunos
23147  sys_lib_dlsearch_path_spec="/usr/lib"
23148  need_lib_prefix=no
23149  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23150  case $host_os in
23151    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23152    *)                         need_version=no  ;;
23153  esac
23154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23155  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23156  shlibpath_var=LD_LIBRARY_PATH
23157  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23158    case $host_os in
23159      openbsd2.[89] | openbsd2.[89].*)
23160	shlibpath_overrides_runpath=no
23161	;;
23162      *)
23163	shlibpath_overrides_runpath=yes
23164	;;
23165      esac
23166  else
23167    shlibpath_overrides_runpath=yes
23168  fi
23169  ;;
23170
23171os2*)
23172  libname_spec='$name'
23173  shrext_cmds=".dll"
23174  need_lib_prefix=no
23175  library_names_spec='$libname${shared_ext} $libname.a'
23176  dynamic_linker='OS/2 ld.exe'
23177  shlibpath_var=LIBPATH
23178  ;;
23179
23180osf3* | osf4* | osf5*)
23181  version_type=osf
23182  need_lib_prefix=no
23183  need_version=no
23184  soname_spec='${libname}${release}${shared_ext}$major'
23185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23186  shlibpath_var=LD_LIBRARY_PATH
23187  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23188  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23189  ;;
23190
23191solaris*)
23192  version_type=linux
23193  need_lib_prefix=no
23194  need_version=no
23195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23196  soname_spec='${libname}${release}${shared_ext}$major'
23197  shlibpath_var=LD_LIBRARY_PATH
23198  shlibpath_overrides_runpath=yes
23199  hardcode_into_libs=yes
23200  # ldd complains unless libraries are executable
23201  postinstall_cmds='chmod +x $lib'
23202  ;;
23203
23204sunos4*)
23205  version_type=sunos
23206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23207  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23208  shlibpath_var=LD_LIBRARY_PATH
23209  shlibpath_overrides_runpath=yes
23210  if test "$with_gnu_ld" = yes; then
23211    need_lib_prefix=no
23212  fi
23213  need_version=yes
23214  ;;
23215
23216sysv4 | sysv4.3*)
23217  version_type=linux
23218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23219  soname_spec='${libname}${release}${shared_ext}$major'
23220  shlibpath_var=LD_LIBRARY_PATH
23221  case $host_vendor in
23222    sni)
23223      shlibpath_overrides_runpath=no
23224      need_lib_prefix=no
23225      export_dynamic_flag_spec='${wl}-Blargedynsym'
23226      runpath_var=LD_RUN_PATH
23227      ;;
23228    siemens)
23229      need_lib_prefix=no
23230      ;;
23231    motorola)
23232      need_lib_prefix=no
23233      need_version=no
23234      shlibpath_overrides_runpath=no
23235      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23236      ;;
23237  esac
23238  ;;
23239
23240sysv4*MP*)
23241  if test -d /usr/nec ;then
23242    version_type=linux
23243    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23244    soname_spec='$libname${shared_ext}.$major'
23245    shlibpath_var=LD_LIBRARY_PATH
23246  fi
23247  ;;
23248
23249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23250  version_type=freebsd-elf
23251  need_lib_prefix=no
23252  need_version=no
23253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23254  soname_spec='${libname}${release}${shared_ext}$major'
23255  shlibpath_var=LD_LIBRARY_PATH
23256  hardcode_into_libs=yes
23257  if test "$with_gnu_ld" = yes; then
23258    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23259    shlibpath_overrides_runpath=no
23260  else
23261    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23262    shlibpath_overrides_runpath=yes
23263    case $host_os in
23264      sco3.2v5*)
23265        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23266	;;
23267    esac
23268  fi
23269  sys_lib_dlsearch_path_spec='/usr/lib'
23270  ;;
23271
23272uts4*)
23273  version_type=linux
23274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23275  soname_spec='${libname}${release}${shared_ext}$major'
23276  shlibpath_var=LD_LIBRARY_PATH
23277  ;;
23278
23279*)
23280  dynamic_linker=no
23281  ;;
23282esac
23283{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23284echo "${ECHO_T}$dynamic_linker" >&6; }
23285test "$dynamic_linker" = no && can_build_shared=no
23286
23287variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23288if test "$GCC" = yes; then
23289  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23290fi
23291
23292{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23293echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23294hardcode_action=
23295if test -n "$hardcode_libdir_flag_spec" || \
23296   test -n "$runpath_var" || \
23297   test "X$hardcode_automatic" = "Xyes" ; then
23298
23299  # We can hardcode non-existant directories.
23300  if test "$hardcode_direct" != no &&
23301     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23302     # have to relink, otherwise we might link with an installed library
23303     # when we should be linking with a yet-to-be-installed one
23304     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
23305     test "$hardcode_minus_L" != no; then
23306    # Linking always hardcodes the temporary library directory.
23307    hardcode_action=relink
23308  else
23309    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23310    hardcode_action=immediate
23311  fi
23312else
23313  # We cannot hardcode anything, or else we can only hardcode existing
23314  # directories.
23315  hardcode_action=unsupported
23316fi
23317{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
23318echo "${ECHO_T}$hardcode_action" >&6; }
23319
23320if test "$hardcode_action" = relink; then
23321  # Fast installation is not supported
23322  enable_fast_install=no
23323elif test "$shlibpath_overrides_runpath" = yes ||
23324     test "$enable_shared" = no; then
23325  # Fast installation is not necessary
23326  enable_fast_install=needless
23327fi
23328
23329striplib=
23330old_striplib=
23331{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23332echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
23333if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23334  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23335  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23336  { echo "$as_me:$LINENO: result: yes" >&5
23337echo "${ECHO_T}yes" >&6; }
23338else
23339# FIXME - insert some real tests, host_os isn't really good enough
23340  case $host_os in
23341   darwin*)
23342       if test -n "$STRIP" ; then
23343         striplib="$STRIP -x"
23344         { echo "$as_me:$LINENO: result: yes" >&5
23345echo "${ECHO_T}yes" >&6; }
23346       else
23347  { echo "$as_me:$LINENO: result: no" >&5
23348echo "${ECHO_T}no" >&6; }
23349fi
23350       ;;
23351   *)
23352  { echo "$as_me:$LINENO: result: no" >&5
23353echo "${ECHO_T}no" >&6; }
23354    ;;
23355  esac
23356fi
23357
23358if test "x$enable_dlopen" != xyes; then
23359  enable_dlopen=unknown
23360  enable_dlopen_self=unknown
23361  enable_dlopen_self_static=unknown
23362else
23363  lt_cv_dlopen=no
23364  lt_cv_dlopen_libs=
23365
23366  case $host_os in
23367  beos*)
23368    lt_cv_dlopen="load_add_on"
23369    lt_cv_dlopen_libs=
23370    lt_cv_dlopen_self=yes
23371    ;;
23372
23373  mingw* | pw32*)
23374    lt_cv_dlopen="LoadLibrary"
23375    lt_cv_dlopen_libs=
23376   ;;
23377
23378  cygwin*)
23379    lt_cv_dlopen="dlopen"
23380    lt_cv_dlopen_libs=
23381   ;;
23382
23383  darwin*)
23384  # if libdl is installed we need to link against it
23385    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23386echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23387if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23388  echo $ECHO_N "(cached) $ECHO_C" >&6
23389else
23390  ac_check_lib_save_LIBS=$LIBS
23391LIBS="-ldl  $LIBS"
23392cat >conftest.$ac_ext <<_ACEOF
23393/* confdefs.h.  */
23394_ACEOF
23395cat confdefs.h >>conftest.$ac_ext
23396cat >>conftest.$ac_ext <<_ACEOF
23397/* end confdefs.h.  */
23398
23399/* Override any GCC internal prototype to avoid an error.
23400   Use char because int might match the return type of a GCC
23401   builtin and then its argument prototype would still apply.  */
23402#ifdef __cplusplus
23403extern "C"
23404#endif
23405char dlopen ();
23406int
23407main ()
23408{
23409return dlopen ();
23410  ;
23411  return 0;
23412}
23413_ACEOF
23414rm -f conftest.$ac_objext conftest$ac_exeext
23415if { (ac_try="$ac_link"
23416case "(($ac_try" in
23417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418  *) ac_try_echo=$ac_try;;
23419esac
23420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421  (eval "$ac_link") 2>conftest.er1
23422  ac_status=$?
23423  grep -v '^ *+' conftest.er1 >conftest.err
23424  rm -f conftest.er1
23425  cat conftest.err >&5
23426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427  (exit $ac_status); } && {
23428	 test -z "$ac_c_werror_flag" ||
23429	 test ! -s conftest.err
23430       } && test -s conftest$ac_exeext &&
23431       $as_test_x conftest$ac_exeext; then
23432  ac_cv_lib_dl_dlopen=yes
23433else
23434  echo "$as_me: failed program was:" >&5
23435sed 's/^/| /' conftest.$ac_ext >&5
23436
23437	ac_cv_lib_dl_dlopen=no
23438fi
23439
23440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23441      conftest$ac_exeext conftest.$ac_ext
23442LIBS=$ac_check_lib_save_LIBS
23443fi
23444{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23446if test $ac_cv_lib_dl_dlopen = yes; then
23447  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23448else
23449
23450    lt_cv_dlopen="dyld"
23451    lt_cv_dlopen_libs=
23452    lt_cv_dlopen_self=yes
23453
23454fi
23455
23456   ;;
23457
23458  *)
23459    { echo "$as_me:$LINENO: checking for shl_load" >&5
23460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
23461if test "${ac_cv_func_shl_load+set}" = set; then
23462  echo $ECHO_N "(cached) $ECHO_C" >&6
23463else
23464  cat >conftest.$ac_ext <<_ACEOF
23465/* confdefs.h.  */
23466_ACEOF
23467cat confdefs.h >>conftest.$ac_ext
23468cat >>conftest.$ac_ext <<_ACEOF
23469/* end confdefs.h.  */
23470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23472#define shl_load innocuous_shl_load
23473
23474/* System header to define __stub macros and hopefully few prototypes,
23475    which can conflict with char shl_load (); below.
23476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23477    <limits.h> exists even on freestanding compilers.  */
23478
23479#ifdef __STDC__
23480# include <limits.h>
23481#else
23482# include <assert.h>
23483#endif
23484
23485#undef shl_load
23486
23487/* Override any GCC internal prototype to avoid an error.
23488   Use char because int might match the return type of a GCC
23489   builtin and then its argument prototype would still apply.  */
23490#ifdef __cplusplus
23491extern "C"
23492#endif
23493char shl_load ();
23494/* The GNU C library defines this for functions which it implements
23495    to always fail with ENOSYS.  Some functions are actually named
23496    something starting with __ and the normal name is an alias.  */
23497#if defined __stub_shl_load || defined __stub___shl_load
23498choke me
23499#endif
23500
23501int
23502main ()
23503{
23504return shl_load ();
23505  ;
23506  return 0;
23507}
23508_ACEOF
23509rm -f conftest.$ac_objext conftest$ac_exeext
23510if { (ac_try="$ac_link"
23511case "(($ac_try" in
23512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513  *) ac_try_echo=$ac_try;;
23514esac
23515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516  (eval "$ac_link") 2>conftest.er1
23517  ac_status=$?
23518  grep -v '^ *+' conftest.er1 >conftest.err
23519  rm -f conftest.er1
23520  cat conftest.err >&5
23521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522  (exit $ac_status); } && {
23523	 test -z "$ac_c_werror_flag" ||
23524	 test ! -s conftest.err
23525       } && test -s conftest$ac_exeext &&
23526       $as_test_x conftest$ac_exeext; then
23527  ac_cv_func_shl_load=yes
23528else
23529  echo "$as_me: failed program was:" >&5
23530sed 's/^/| /' conftest.$ac_ext >&5
23531
23532	ac_cv_func_shl_load=no
23533fi
23534
23535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23536      conftest$ac_exeext conftest.$ac_ext
23537fi
23538{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23539echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
23540if test $ac_cv_func_shl_load = yes; then
23541  lt_cv_dlopen="shl_load"
23542else
23543  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23544echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
23545if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23546  echo $ECHO_N "(cached) $ECHO_C" >&6
23547else
23548  ac_check_lib_save_LIBS=$LIBS
23549LIBS="-ldld  $LIBS"
23550cat >conftest.$ac_ext <<_ACEOF
23551/* confdefs.h.  */
23552_ACEOF
23553cat confdefs.h >>conftest.$ac_ext
23554cat >>conftest.$ac_ext <<_ACEOF
23555/* end confdefs.h.  */
23556
23557/* Override any GCC internal prototype to avoid an error.
23558   Use char because int might match the return type of a GCC
23559   builtin and then its argument prototype would still apply.  */
23560#ifdef __cplusplus
23561extern "C"
23562#endif
23563char shl_load ();
23564int
23565main ()
23566{
23567return shl_load ();
23568  ;
23569  return 0;
23570}
23571_ACEOF
23572rm -f conftest.$ac_objext conftest$ac_exeext
23573if { (ac_try="$ac_link"
23574case "(($ac_try" in
23575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576  *) ac_try_echo=$ac_try;;
23577esac
23578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579  (eval "$ac_link") 2>conftest.er1
23580  ac_status=$?
23581  grep -v '^ *+' conftest.er1 >conftest.err
23582  rm -f conftest.er1
23583  cat conftest.err >&5
23584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585  (exit $ac_status); } && {
23586	 test -z "$ac_c_werror_flag" ||
23587	 test ! -s conftest.err
23588       } && test -s conftest$ac_exeext &&
23589       $as_test_x conftest$ac_exeext; then
23590  ac_cv_lib_dld_shl_load=yes
23591else
23592  echo "$as_me: failed program was:" >&5
23593sed 's/^/| /' conftest.$ac_ext >&5
23594
23595	ac_cv_lib_dld_shl_load=no
23596fi
23597
23598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23599      conftest$ac_exeext conftest.$ac_ext
23600LIBS=$ac_check_lib_save_LIBS
23601fi
23602{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23603echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
23604if test $ac_cv_lib_dld_shl_load = yes; then
23605  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23606else
23607  { echo "$as_me:$LINENO: checking for dlopen" >&5
23608echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
23609if test "${ac_cv_func_dlopen+set}" = set; then
23610  echo $ECHO_N "(cached) $ECHO_C" >&6
23611else
23612  cat >conftest.$ac_ext <<_ACEOF
23613/* confdefs.h.  */
23614_ACEOF
23615cat confdefs.h >>conftest.$ac_ext
23616cat >>conftest.$ac_ext <<_ACEOF
23617/* end confdefs.h.  */
23618/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23619   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23620#define dlopen innocuous_dlopen
23621
23622/* System header to define __stub macros and hopefully few prototypes,
23623    which can conflict with char dlopen (); below.
23624    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23625    <limits.h> exists even on freestanding compilers.  */
23626
23627#ifdef __STDC__
23628# include <limits.h>
23629#else
23630# include <assert.h>
23631#endif
23632
23633#undef dlopen
23634
23635/* Override any GCC internal prototype to avoid an error.
23636   Use char because int might match the return type of a GCC
23637   builtin and then its argument prototype would still apply.  */
23638#ifdef __cplusplus
23639extern "C"
23640#endif
23641char dlopen ();
23642/* The GNU C library defines this for functions which it implements
23643    to always fail with ENOSYS.  Some functions are actually named
23644    something starting with __ and the normal name is an alias.  */
23645#if defined __stub_dlopen || defined __stub___dlopen
23646choke me
23647#endif
23648
23649int
23650main ()
23651{
23652return dlopen ();
23653  ;
23654  return 0;
23655}
23656_ACEOF
23657rm -f conftest.$ac_objext conftest$ac_exeext
23658if { (ac_try="$ac_link"
23659case "(($ac_try" in
23660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661  *) ac_try_echo=$ac_try;;
23662esac
23663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664  (eval "$ac_link") 2>conftest.er1
23665  ac_status=$?
23666  grep -v '^ *+' conftest.er1 >conftest.err
23667  rm -f conftest.er1
23668  cat conftest.err >&5
23669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670  (exit $ac_status); } && {
23671	 test -z "$ac_c_werror_flag" ||
23672	 test ! -s conftest.err
23673       } && test -s conftest$ac_exeext &&
23674       $as_test_x conftest$ac_exeext; then
23675  ac_cv_func_dlopen=yes
23676else
23677  echo "$as_me: failed program was:" >&5
23678sed 's/^/| /' conftest.$ac_ext >&5
23679
23680	ac_cv_func_dlopen=no
23681fi
23682
23683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23684      conftest$ac_exeext conftest.$ac_ext
23685fi
23686{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23687echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
23688if test $ac_cv_func_dlopen = yes; then
23689  lt_cv_dlopen="dlopen"
23690else
23691  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23692echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23693if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23694  echo $ECHO_N "(cached) $ECHO_C" >&6
23695else
23696  ac_check_lib_save_LIBS=$LIBS
23697LIBS="-ldl  $LIBS"
23698cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h.  */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h.  */
23704
23705/* Override any GCC internal prototype to avoid an error.
23706   Use char because int might match the return type of a GCC
23707   builtin and then its argument prototype would still apply.  */
23708#ifdef __cplusplus
23709extern "C"
23710#endif
23711char dlopen ();
23712int
23713main ()
23714{
23715return dlopen ();
23716  ;
23717  return 0;
23718}
23719_ACEOF
23720rm -f conftest.$ac_objext conftest$ac_exeext
23721if { (ac_try="$ac_link"
23722case "(($ac_try" in
23723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724  *) ac_try_echo=$ac_try;;
23725esac
23726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727  (eval "$ac_link") 2>conftest.er1
23728  ac_status=$?
23729  grep -v '^ *+' conftest.er1 >conftest.err
23730  rm -f conftest.er1
23731  cat conftest.err >&5
23732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733  (exit $ac_status); } && {
23734	 test -z "$ac_c_werror_flag" ||
23735	 test ! -s conftest.err
23736       } && test -s conftest$ac_exeext &&
23737       $as_test_x conftest$ac_exeext; then
23738  ac_cv_lib_dl_dlopen=yes
23739else
23740  echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742
23743	ac_cv_lib_dl_dlopen=no
23744fi
23745
23746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23747      conftest$ac_exeext conftest.$ac_ext
23748LIBS=$ac_check_lib_save_LIBS
23749fi
23750{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23751echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23752if test $ac_cv_lib_dl_dlopen = yes; then
23753  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23754else
23755  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23756echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
23757if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23758  echo $ECHO_N "(cached) $ECHO_C" >&6
23759else
23760  ac_check_lib_save_LIBS=$LIBS
23761LIBS="-lsvld  $LIBS"
23762cat >conftest.$ac_ext <<_ACEOF
23763/* confdefs.h.  */
23764_ACEOF
23765cat confdefs.h >>conftest.$ac_ext
23766cat >>conftest.$ac_ext <<_ACEOF
23767/* end confdefs.h.  */
23768
23769/* Override any GCC internal prototype to avoid an error.
23770   Use char because int might match the return type of a GCC
23771   builtin and then its argument prototype would still apply.  */
23772#ifdef __cplusplus
23773extern "C"
23774#endif
23775char dlopen ();
23776int
23777main ()
23778{
23779return dlopen ();
23780  ;
23781  return 0;
23782}
23783_ACEOF
23784rm -f conftest.$ac_objext conftest$ac_exeext
23785if { (ac_try="$ac_link"
23786case "(($ac_try" in
23787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788  *) ac_try_echo=$ac_try;;
23789esac
23790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791  (eval "$ac_link") 2>conftest.er1
23792  ac_status=$?
23793  grep -v '^ *+' conftest.er1 >conftest.err
23794  rm -f conftest.er1
23795  cat conftest.err >&5
23796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797  (exit $ac_status); } && {
23798	 test -z "$ac_c_werror_flag" ||
23799	 test ! -s conftest.err
23800       } && test -s conftest$ac_exeext &&
23801       $as_test_x conftest$ac_exeext; then
23802  ac_cv_lib_svld_dlopen=yes
23803else
23804  echo "$as_me: failed program was:" >&5
23805sed 's/^/| /' conftest.$ac_ext >&5
23806
23807	ac_cv_lib_svld_dlopen=no
23808fi
23809
23810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23811      conftest$ac_exeext conftest.$ac_ext
23812LIBS=$ac_check_lib_save_LIBS
23813fi
23814{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23815echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
23816if test $ac_cv_lib_svld_dlopen = yes; then
23817  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23818else
23819  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23820echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
23821if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23822  echo $ECHO_N "(cached) $ECHO_C" >&6
23823else
23824  ac_check_lib_save_LIBS=$LIBS
23825LIBS="-ldld  $LIBS"
23826cat >conftest.$ac_ext <<_ACEOF
23827/* confdefs.h.  */
23828_ACEOF
23829cat confdefs.h >>conftest.$ac_ext
23830cat >>conftest.$ac_ext <<_ACEOF
23831/* end confdefs.h.  */
23832
23833/* Override any GCC internal prototype to avoid an error.
23834   Use char because int might match the return type of a GCC
23835   builtin and then its argument prototype would still apply.  */
23836#ifdef __cplusplus
23837extern "C"
23838#endif
23839char dld_link ();
23840int
23841main ()
23842{
23843return dld_link ();
23844  ;
23845  return 0;
23846}
23847_ACEOF
23848rm -f conftest.$ac_objext conftest$ac_exeext
23849if { (ac_try="$ac_link"
23850case "(($ac_try" in
23851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852  *) ac_try_echo=$ac_try;;
23853esac
23854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855  (eval "$ac_link") 2>conftest.er1
23856  ac_status=$?
23857  grep -v '^ *+' conftest.er1 >conftest.err
23858  rm -f conftest.er1
23859  cat conftest.err >&5
23860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861  (exit $ac_status); } && {
23862	 test -z "$ac_c_werror_flag" ||
23863	 test ! -s conftest.err
23864       } && test -s conftest$ac_exeext &&
23865       $as_test_x conftest$ac_exeext; then
23866  ac_cv_lib_dld_dld_link=yes
23867else
23868  echo "$as_me: failed program was:" >&5
23869sed 's/^/| /' conftest.$ac_ext >&5
23870
23871	ac_cv_lib_dld_dld_link=no
23872fi
23873
23874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23875      conftest$ac_exeext conftest.$ac_ext
23876LIBS=$ac_check_lib_save_LIBS
23877fi
23878{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23879echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
23880if test $ac_cv_lib_dld_dld_link = yes; then
23881  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23882fi
23883
23884
23885fi
23886
23887
23888fi
23889
23890
23891fi
23892
23893
23894fi
23895
23896
23897fi
23898
23899    ;;
23900  esac
23901
23902  if test "x$lt_cv_dlopen" != xno; then
23903    enable_dlopen=yes
23904  else
23905    enable_dlopen=no
23906  fi
23907
23908  case $lt_cv_dlopen in
23909  dlopen)
23910    save_CPPFLAGS="$CPPFLAGS"
23911    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23912
23913    save_LDFLAGS="$LDFLAGS"
23914    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23915
23916    save_LIBS="$LIBS"
23917    LIBS="$lt_cv_dlopen_libs $LIBS"
23918
23919    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23920echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
23921if test "${lt_cv_dlopen_self+set}" = set; then
23922  echo $ECHO_N "(cached) $ECHO_C" >&6
23923else
23924  	  if test "$cross_compiling" = yes; then :
23925  lt_cv_dlopen_self=cross
23926else
23927  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23928  lt_status=$lt_dlunknown
23929  cat > conftest.$ac_ext <<EOF
23930#line 23930 "configure"
23931#include "confdefs.h"
23932
23933#if HAVE_DLFCN_H
23934#include <dlfcn.h>
23935#endif
23936
23937#include <stdio.h>
23938
23939#ifdef RTLD_GLOBAL
23940#  define LT_DLGLOBAL		RTLD_GLOBAL
23941#else
23942#  ifdef DL_GLOBAL
23943#    define LT_DLGLOBAL		DL_GLOBAL
23944#  else
23945#    define LT_DLGLOBAL		0
23946#  endif
23947#endif
23948
23949/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23950   find out it does not work in some platform. */
23951#ifndef LT_DLLAZY_OR_NOW
23952#  ifdef RTLD_LAZY
23953#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23954#  else
23955#    ifdef DL_LAZY
23956#      define LT_DLLAZY_OR_NOW		DL_LAZY
23957#    else
23958#      ifdef RTLD_NOW
23959#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23960#      else
23961#        ifdef DL_NOW
23962#          define LT_DLLAZY_OR_NOW	DL_NOW
23963#        else
23964#          define LT_DLLAZY_OR_NOW	0
23965#        endif
23966#      endif
23967#    endif
23968#  endif
23969#endif
23970
23971#ifdef __cplusplus
23972extern "C" void exit (int);
23973#endif
23974
23975void fnord() { int i=42;}
23976int main ()
23977{
23978  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23979  int status = $lt_dlunknown;
23980
23981  if (self)
23982    {
23983      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23984      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23985      /* dlclose (self); */
23986    }
23987  else
23988    puts (dlerror ());
23989
23990    exit (status);
23991}
23992EOF
23993  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23994  (eval $ac_link) 2>&5
23995  ac_status=$?
23996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23998    (./conftest; exit; ) >&5 2>/dev/null
23999    lt_status=$?
24000    case x$lt_status in
24001      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24002      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24003      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
24004    esac
24005  else :
24006    # compilation failed
24007    lt_cv_dlopen_self=no
24008  fi
24009fi
24010rm -fr conftest*
24011
24012
24013fi
24014{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24015echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
24016
24017    if test "x$lt_cv_dlopen_self" = xyes; then
24018      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
24019      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24020echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
24021if test "${lt_cv_dlopen_self_static+set}" = set; then
24022  echo $ECHO_N "(cached) $ECHO_C" >&6
24023else
24024  	  if test "$cross_compiling" = yes; then :
24025  lt_cv_dlopen_self_static=cross
24026else
24027  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24028  lt_status=$lt_dlunknown
24029  cat > conftest.$ac_ext <<EOF
24030#line 24030 "configure"
24031#include "confdefs.h"
24032
24033#if HAVE_DLFCN_H
24034#include <dlfcn.h>
24035#endif
24036
24037#include <stdio.h>
24038
24039#ifdef RTLD_GLOBAL
24040#  define LT_DLGLOBAL		RTLD_GLOBAL
24041#else
24042#  ifdef DL_GLOBAL
24043#    define LT_DLGLOBAL		DL_GLOBAL
24044#  else
24045#    define LT_DLGLOBAL		0
24046#  endif
24047#endif
24048
24049/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24050   find out it does not work in some platform. */
24051#ifndef LT_DLLAZY_OR_NOW
24052#  ifdef RTLD_LAZY
24053#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
24054#  else
24055#    ifdef DL_LAZY
24056#      define LT_DLLAZY_OR_NOW		DL_LAZY
24057#    else
24058#      ifdef RTLD_NOW
24059#        define LT_DLLAZY_OR_NOW	RTLD_NOW
24060#      else
24061#        ifdef DL_NOW
24062#          define LT_DLLAZY_OR_NOW	DL_NOW
24063#        else
24064#          define LT_DLLAZY_OR_NOW	0
24065#        endif
24066#      endif
24067#    endif
24068#  endif
24069#endif
24070
24071#ifdef __cplusplus
24072extern "C" void exit (int);
24073#endif
24074
24075void fnord() { int i=42;}
24076int main ()
24077{
24078  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24079  int status = $lt_dlunknown;
24080
24081  if (self)
24082    {
24083      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24084      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24085      /* dlclose (self); */
24086    }
24087  else
24088    puts (dlerror ());
24089
24090    exit (status);
24091}
24092EOF
24093  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24094  (eval $ac_link) 2>&5
24095  ac_status=$?
24096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24098    (./conftest; exit; ) >&5 2>/dev/null
24099    lt_status=$?
24100    case x$lt_status in
24101      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24102      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24103      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
24104    esac
24105  else :
24106    # compilation failed
24107    lt_cv_dlopen_self_static=no
24108  fi
24109fi
24110rm -fr conftest*
24111
24112
24113fi
24114{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24115echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
24116    fi
24117
24118    CPPFLAGS="$save_CPPFLAGS"
24119    LDFLAGS="$save_LDFLAGS"
24120    LIBS="$save_LIBS"
24121    ;;
24122  esac
24123
24124  case $lt_cv_dlopen_self in
24125  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24126  *) enable_dlopen_self=unknown ;;
24127  esac
24128
24129  case $lt_cv_dlopen_self_static in
24130  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24131  *) enable_dlopen_self_static=unknown ;;
24132  esac
24133fi
24134
24135
24136# Report which library types will actually be built
24137{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24138echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
24139{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
24140echo "${ECHO_T}$can_build_shared" >&6; }
24141
24142{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24143echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
24144test "$can_build_shared" = "no" && enable_shared=no
24145
24146# On AIX, shared libraries and static libraries use the same namespace, and
24147# are all built from PIC.
24148case $host_os in
24149aix3*)
24150  test "$enable_shared" = yes && enable_static=no
24151  if test -n "$RANLIB"; then
24152    archive_cmds="$archive_cmds~\$RANLIB \$lib"
24153    postinstall_cmds='$RANLIB $lib'
24154  fi
24155  ;;
24156
24157aix4* | aix5*)
24158  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24159    test "$enable_shared" = yes && enable_static=no
24160  fi
24161    ;;
24162esac
24163{ echo "$as_me:$LINENO: result: $enable_shared" >&5
24164echo "${ECHO_T}$enable_shared" >&6; }
24165
24166{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24167echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
24168# Make sure either enable_shared or enable_static is yes.
24169test "$enable_shared" = yes || enable_static=yes
24170{ echo "$as_me:$LINENO: result: $enable_static" >&5
24171echo "${ECHO_T}$enable_static" >&6; }
24172
24173# The else clause should only fire when bootstrapping the
24174# libtool distribution, otherwise you forgot to ship ltmain.sh
24175# with your package, and you will get complaints that there are
24176# no rules to generate ltmain.sh.
24177if test -f "$ltmain"; then
24178  # See if we are running on zsh, and set the options which allow our commands through
24179  # without removal of \ escapes.
24180  if test -n "${ZSH_VERSION+set}" ; then
24181    setopt NO_GLOB_SUBST
24182  fi
24183  # Now quote all the things that may contain metacharacters while being
24184  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24185  # variables and quote the copies for generation of the libtool script.
24186  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24187    SED SHELL STRIP \
24188    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24189    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24190    deplibs_check_method reload_flag reload_cmds need_locks \
24191    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24192    lt_cv_sys_global_symbol_to_c_name_address \
24193    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24194    old_postinstall_cmds old_postuninstall_cmds \
24195    compiler \
24196    CC \
24197    LD \
24198    lt_prog_compiler_wl \
24199    lt_prog_compiler_pic \
24200    lt_prog_compiler_static \
24201    lt_prog_compiler_no_builtin_flag \
24202    export_dynamic_flag_spec \
24203    thread_safe_flag_spec \
24204    whole_archive_flag_spec \
24205    enable_shared_with_static_runtimes \
24206    old_archive_cmds \
24207    old_archive_from_new_cmds \
24208    predep_objects \
24209    postdep_objects \
24210    predeps \
24211    postdeps \
24212    compiler_lib_search_path \
24213    archive_cmds \
24214    archive_expsym_cmds \
24215    postinstall_cmds \
24216    postuninstall_cmds \
24217    old_archive_from_expsyms_cmds \
24218    allow_undefined_flag \
24219    no_undefined_flag \
24220    export_symbols_cmds \
24221    hardcode_libdir_flag_spec \
24222    hardcode_libdir_flag_spec_ld \
24223    hardcode_libdir_separator \
24224    hardcode_automatic \
24225    module_cmds \
24226    module_expsym_cmds \
24227    lt_cv_prog_compiler_c_o \
24228    exclude_expsyms \
24229    include_expsyms; do
24230
24231    case $var in
24232    old_archive_cmds | \
24233    old_archive_from_new_cmds | \
24234    archive_cmds | \
24235    archive_expsym_cmds | \
24236    module_cmds | \
24237    module_expsym_cmds | \
24238    old_archive_from_expsyms_cmds | \
24239    export_symbols_cmds | \
24240    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24241    postinstall_cmds | postuninstall_cmds | \
24242    old_postinstall_cmds | old_postuninstall_cmds | \
24243    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24244      # Double-quote double-evaled strings.
24245      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24246      ;;
24247    *)
24248      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24249      ;;
24250    esac
24251  done
24252
24253  case $lt_echo in
24254  *'\$0 --fallback-echo"')
24255    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24256    ;;
24257  esac
24258
24259cfgfile="${ofile}T"
24260  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
24261  $rm -f "$cfgfile"
24262  { echo "$as_me:$LINENO: creating $ofile" >&5
24263echo "$as_me: creating $ofile" >&6;}
24264
24265  cat <<__EOF__ >> "$cfgfile"
24266#! $SHELL
24267
24268# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24269# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
24270# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24271#
24272# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
24273# Free Software Foundation, Inc.
24274#
24275# This file is part of GNU Libtool:
24276# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
24277#
24278# This program is free software; you can redistribute it and/or modify
24279# it under the terms of the GNU General Public License as published by
24280# the Free Software Foundation; either version 2 of the License, or
24281# (at your option) any later version.
24282#
24283# This program is distributed in the hope that it will be useful, but
24284# WITHOUT ANY WARRANTY; without even the implied warranty of
24285# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
24286# General Public License for more details.
24287#
24288# You should have received a copy of the GNU General Public License
24289# along with this program; if not, write to the Free Software
24290# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24291#
24292# As a special exception to the GNU General Public License, if you
24293# distribute this file as part of a program that contains a
24294# configuration script generated by Autoconf, you may include it under
24295# the same distribution terms that you use for the rest of that program.
24296
24297# A sed program that does not truncate output.
24298SED=$lt_SED
24299
24300# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24301Xsed="$SED -e 1s/^X//"
24302
24303# The HP-UX ksh and POSIX shell print the target directory to stdout
24304# if CDPATH is set.
24305(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24306
24307# The names of the tagged configurations supported by this script.
24308available_tags=
24309
24310# ### BEGIN LIBTOOL CONFIG
24311
24312# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24313
24314# Shell to use when invoking shell scripts.
24315SHELL=$lt_SHELL
24316
24317# Whether or not to build shared libraries.
24318build_libtool_libs=$enable_shared
24319
24320# Whether or not to build static libraries.
24321build_old_libs=$enable_static
24322
24323# Whether or not to add -lc for building shared libraries.
24324build_libtool_need_lc=$archive_cmds_need_lc
24325
24326# Whether or not to disallow shared libs when runtime libs are static
24327allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24328
24329# Whether or not to optimize for fast installation.
24330fast_install=$enable_fast_install
24331
24332# The host system.
24333host_alias=$host_alias
24334host=$host
24335host_os=$host_os
24336
24337# The build system.
24338build_alias=$build_alias
24339build=$build
24340build_os=$build_os
24341
24342# An echo program that does not interpret backslashes.
24343echo=$lt_echo
24344
24345# The archiver.
24346AR=$lt_AR
24347AR_FLAGS=$lt_AR_FLAGS
24348
24349# A C compiler.
24350LTCC=$lt_LTCC
24351
24352# LTCC compiler flags.
24353LTCFLAGS=$lt_LTCFLAGS
24354
24355# A language-specific compiler.
24356CC=$lt_compiler
24357
24358# Is the compiler the GNU C compiler?
24359with_gcc=$GCC
24360
24361# An ERE matcher.
24362EGREP=$lt_EGREP
24363
24364# The linker used to build libraries.
24365LD=$lt_LD
24366
24367# Whether we need hard or soft links.
24368LN_S=$lt_LN_S
24369
24370# A BSD-compatible nm program.
24371NM=$lt_NM
24372
24373# A symbol stripping program
24374STRIP=$lt_STRIP
24375
24376# Used to examine libraries when file_magic_cmd begins "file"
24377MAGIC_CMD=$MAGIC_CMD
24378
24379# Used on cygwin: DLL creation program.
24380DLLTOOL="$DLLTOOL"
24381
24382# Used on cygwin: object dumper.
24383OBJDUMP="$OBJDUMP"
24384
24385# Used on cygwin: assembler.
24386AS="$AS"
24387
24388# The name of the directory that contains temporary libtool files.
24389objdir=$objdir
24390
24391# How to create reloadable object files.
24392reload_flag=$lt_reload_flag
24393reload_cmds=$lt_reload_cmds
24394
24395# How to pass a linker flag through the compiler.
24396wl=$lt_lt_prog_compiler_wl
24397
24398# Object file suffix (normally "o").
24399objext="$ac_objext"
24400
24401# Old archive suffix (normally "a").
24402libext="$libext"
24403
24404# Shared library suffix (normally ".so").
24405shrext_cmds='$shrext_cmds'
24406
24407# Executable file suffix (normally "").
24408exeext="$exeext"
24409
24410# Additional compiler flags for building library objects.
24411pic_flag=$lt_lt_prog_compiler_pic
24412pic_mode=$pic_mode
24413
24414# What is the maximum length of a command?
24415max_cmd_len=$lt_cv_sys_max_cmd_len
24416
24417# Does compiler simultaneously support -c and -o options?
24418compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24419
24420# Must we lock files when doing compilation?
24421need_locks=$lt_need_locks
24422
24423# Do we need the lib prefix for modules?
24424need_lib_prefix=$need_lib_prefix
24425
24426# Do we need a version for libraries?
24427need_version=$need_version
24428
24429# Whether dlopen is supported.
24430dlopen_support=$enable_dlopen
24431
24432# Whether dlopen of programs is supported.
24433dlopen_self=$enable_dlopen_self
24434
24435# Whether dlopen of statically linked programs is supported.
24436dlopen_self_static=$enable_dlopen_self_static
24437
24438# Compiler flag to prevent dynamic linking.
24439link_static_flag=$lt_lt_prog_compiler_static
24440
24441# Compiler flag to turn off builtin functions.
24442no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24443
24444# Compiler flag to allow reflexive dlopens.
24445export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24446
24447# Compiler flag to generate shared objects directly from archives.
24448whole_archive_flag_spec=$lt_whole_archive_flag_spec
24449
24450# Compiler flag to generate thread-safe objects.
24451thread_safe_flag_spec=$lt_thread_safe_flag_spec
24452
24453# Library versioning type.
24454version_type=$version_type
24455
24456# Format of library name prefix.
24457libname_spec=$lt_libname_spec
24458
24459# List of archive names.  First name is the real one, the rest are links.
24460# The last name is the one that the linker finds with -lNAME.
24461library_names_spec=$lt_library_names_spec
24462
24463# The coded name of the library, if different from the real name.
24464soname_spec=$lt_soname_spec
24465
24466# Commands used to build and install an old-style archive.
24467RANLIB=$lt_RANLIB
24468old_archive_cmds=$lt_old_archive_cmds
24469old_postinstall_cmds=$lt_old_postinstall_cmds
24470old_postuninstall_cmds=$lt_old_postuninstall_cmds
24471
24472# Create an old-style archive from a shared archive.
24473old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24474
24475# Create a temporary old-style archive to link instead of a shared archive.
24476old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24477
24478# Commands used to build and install a shared archive.
24479archive_cmds=$lt_archive_cmds
24480archive_expsym_cmds=$lt_archive_expsym_cmds
24481postinstall_cmds=$lt_postinstall_cmds
24482postuninstall_cmds=$lt_postuninstall_cmds
24483
24484# Commands used to build a loadable module (assumed same as above if empty)
24485module_cmds=$lt_module_cmds
24486module_expsym_cmds=$lt_module_expsym_cmds
24487
24488# Commands to strip libraries.
24489old_striplib=$lt_old_striplib
24490striplib=$lt_striplib
24491
24492# Dependencies to place before the objects being linked to create a
24493# shared library.
24494predep_objects=$lt_predep_objects
24495
24496# Dependencies to place after the objects being linked to create a
24497# shared library.
24498postdep_objects=$lt_postdep_objects
24499
24500# Dependencies to place before the objects being linked to create a
24501# shared library.
24502predeps=$lt_predeps
24503
24504# Dependencies to place after the objects being linked to create a
24505# shared library.
24506postdeps=$lt_postdeps
24507
24508# The library search path used internally by the compiler when linking
24509# a shared library.
24510compiler_lib_search_path=$lt_compiler_lib_search_path
24511
24512# Method to check whether dependent libraries are shared objects.
24513deplibs_check_method=$lt_deplibs_check_method
24514
24515# Command to use when deplibs_check_method == file_magic.
24516file_magic_cmd=$lt_file_magic_cmd
24517
24518# Flag that allows shared libraries with undefined symbols to be built.
24519allow_undefined_flag=$lt_allow_undefined_flag
24520
24521# Flag that forces no undefined symbols.
24522no_undefined_flag=$lt_no_undefined_flag
24523
24524# Commands used to finish a libtool library installation in a directory.
24525finish_cmds=$lt_finish_cmds
24526
24527# Same as above, but a single script fragment to be evaled but not shown.
24528finish_eval=$lt_finish_eval
24529
24530# Take the output of nm and produce a listing of raw symbols and C names.
24531global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24532
24533# Transform the output of nm in a proper C declaration
24534global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24535
24536# Transform the output of nm in a C name address pair
24537global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24538
24539# This is the shared library runtime path variable.
24540runpath_var=$runpath_var
24541
24542# This is the shared library path variable.
24543shlibpath_var=$shlibpath_var
24544
24545# Is shlibpath searched before the hard-coded library search path?
24546shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24547
24548# How to hardcode a shared library path into an executable.
24549hardcode_action=$hardcode_action
24550
24551# Whether we should hardcode library paths into libraries.
24552hardcode_into_libs=$hardcode_into_libs
24553
24554# Flag to hardcode \$libdir into a binary during linking.
24555# This must work even if \$libdir does not exist.
24556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24557
24558# If ld is used when linking, flag to hardcode \$libdir into
24559# a binary during linking. This must work even if \$libdir does
24560# not exist.
24561hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24562
24563# Whether we need a single -rpath flag with a separated argument.
24564hardcode_libdir_separator=$lt_hardcode_libdir_separator
24565
24566# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24567# resulting binary.
24568hardcode_direct=$hardcode_direct
24569
24570# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24571# resulting binary.
24572hardcode_minus_L=$hardcode_minus_L
24573
24574# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24575# the resulting binary.
24576hardcode_shlibpath_var=$hardcode_shlibpath_var
24577
24578# Set to yes if building a shared library automatically hardcodes DIR into the library
24579# and all subsequent libraries and executables linked against it.
24580hardcode_automatic=$hardcode_automatic
24581
24582# Variables whose values should be saved in libtool wrapper scripts and
24583# restored at relink time.
24584variables_saved_for_relink="$variables_saved_for_relink"
24585
24586# Whether libtool must link a program against all its dependency libraries.
24587link_all_deplibs=$link_all_deplibs
24588
24589# Compile-time system search path for libraries
24590sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24591
24592# Run-time system search path for libraries
24593sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24594
24595# Fix the shell variable \$srcfile for the compiler.
24596fix_srcfile_path="$fix_srcfile_path"
24597
24598# Set to yes if exported symbols are required.
24599always_export_symbols=$always_export_symbols
24600
24601# The commands to list exported symbols.
24602export_symbols_cmds=$lt_export_symbols_cmds
24603
24604# The commands to extract the exported symbol list from a shared archive.
24605extract_expsyms_cmds=$lt_extract_expsyms_cmds
24606
24607# Symbols that should not be listed in the preloaded symbols.
24608exclude_expsyms=$lt_exclude_expsyms
24609
24610# Symbols that must always be exported.
24611include_expsyms=$lt_include_expsyms
24612
24613# ### END LIBTOOL CONFIG
24614
24615__EOF__
24616
24617
24618  case $host_os in
24619  aix3*)
24620    cat <<\EOF >> "$cfgfile"
24621
24622# AIX sometimes has problems with the GCC collect2 program.  For some
24623# reason, if we set the COLLECT_NAMES environment variable, the problems
24624# vanish in a puff of smoke.
24625if test "X${COLLECT_NAMES+set}" != Xset; then
24626  COLLECT_NAMES=
24627  export COLLECT_NAMES
24628fi
24629EOF
24630    ;;
24631  esac
24632
24633  # We use sed instead of cat because bash on DJGPP gets confused if
24634  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24635  # text mode, it properly converts lines to CR/LF.  This bash problem
24636  # is reportedly fixed, but why not run on old versions too?
24637  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
24638
24639  mv -f "$cfgfile" "$ofile" || \
24640    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24641  chmod +x "$ofile"
24642
24643else
24644  # If there is no Makefile yet, we rely on a make rule to execute
24645  # `config.status --recheck' to rerun these tests and create the
24646  # libtool script then.
24647  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24648  if test -f "$ltmain_in"; then
24649    test -f Makefile && make "$ltmain"
24650  fi
24651fi
24652
24653
24654ac_ext=c
24655ac_cpp='$CPP $CPPFLAGS'
24656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24658ac_compiler_gnu=$ac_cv_c_compiler_gnu
24659
24660CC="$lt_save_CC"
24661
24662
24663# Check whether --with-tags was given.
24664if test "${with_tags+set}" = set; then
24665  withval=$with_tags; tagnames="$withval"
24666fi
24667
24668
24669if test -f "$ltmain" && test -n "$tagnames"; then
24670  if test ! -f "${ofile}"; then
24671    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
24672echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
24673  fi
24674
24675  if test -z "$LTCC"; then
24676    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
24677    if test -z "$LTCC"; then
24678      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
24679echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
24680    else
24681      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
24682echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
24683    fi
24684  fi
24685  if test -z "$LTCFLAGS"; then
24686    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
24687  fi
24688
24689  # Extract list of available tagged configurations in $ofile.
24690  # Note that this assumes the entire list is on one line.
24691  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
24692
24693  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
24694  for tagname in $tagnames; do
24695    IFS="$lt_save_ifs"
24696    # Check whether tagname contains only valid characters
24697    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
24698    "") ;;
24699    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
24700echo "$as_me: error: invalid tag name: $tagname" >&2;}
24701   { (exit 1); exit 1; }; }
24702	;;
24703    esac
24704
24705    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
24706    then
24707      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
24708echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
24709   { (exit 1); exit 1; }; }
24710    fi
24711
24712    # Update the list of available tags.
24713    if test -n "$tagname"; then
24714      echo appending configuration tag \"$tagname\" to $ofile
24715
24716      case $tagname in
24717      CXX)
24718	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
24719	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
24720	    (test "X$CXX" != "Xg++"))) ; then
24721	  ac_ext=cpp
24722ac_cpp='$CXXCPP $CPPFLAGS'
24723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24726
24727
24728
24729
24730archive_cmds_need_lc_CXX=no
24731allow_undefined_flag_CXX=
24732always_export_symbols_CXX=no
24733archive_expsym_cmds_CXX=
24734export_dynamic_flag_spec_CXX=
24735hardcode_direct_CXX=no
24736hardcode_libdir_flag_spec_CXX=
24737hardcode_libdir_flag_spec_ld_CXX=
24738hardcode_libdir_separator_CXX=
24739hardcode_minus_L_CXX=no
24740hardcode_shlibpath_var_CXX=unsupported
24741hardcode_automatic_CXX=no
24742module_cmds_CXX=
24743module_expsym_cmds_CXX=
24744link_all_deplibs_CXX=unknown
24745old_archive_cmds_CXX=$old_archive_cmds
24746no_undefined_flag_CXX=
24747whole_archive_flag_spec_CXX=
24748enable_shared_with_static_runtimes_CXX=no
24749
24750# Dependencies to place before and after the object being linked:
24751predep_objects_CXX=
24752postdep_objects_CXX=
24753predeps_CXX=
24754postdeps_CXX=
24755compiler_lib_search_path_CXX=
24756
24757# Source file extension for C++ test sources.
24758ac_ext=cpp
24759
24760# Object file extension for compiled C++ test sources.
24761objext=o
24762objext_CXX=$objext
24763
24764# Code to be used in simple compile tests
24765lt_simple_compile_test_code="int some_variable = 0;\n"
24766
24767# Code to be used in simple link tests
24768lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
24769
24770# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24771
24772# If no C compiler was specified, use CC.
24773LTCC=${LTCC-"$CC"}
24774
24775# If no C compiler flags were specified, use CFLAGS.
24776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24777
24778# Allow CC to be a program name with arguments.
24779compiler=$CC
24780
24781
24782# save warnings/boilerplate of simple test code
24783ac_outfile=conftest.$ac_objext
24784printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24785eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24786_lt_compiler_boilerplate=`cat conftest.err`
24787$rm conftest*
24788
24789ac_outfile=conftest.$ac_objext
24790printf "$lt_simple_link_test_code" >conftest.$ac_ext
24791eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24792_lt_linker_boilerplate=`cat conftest.err`
24793$rm conftest*
24794
24795
24796# Allow CC to be a program name with arguments.
24797lt_save_CC=$CC
24798lt_save_LD=$LD
24799lt_save_GCC=$GCC
24800GCC=$GXX
24801lt_save_with_gnu_ld=$with_gnu_ld
24802lt_save_path_LD=$lt_cv_path_LD
24803if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
24804  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
24805else
24806  $as_unset lt_cv_prog_gnu_ld
24807fi
24808if test -n "${lt_cv_path_LDCXX+set}"; then
24809  lt_cv_path_LD=$lt_cv_path_LDCXX
24810else
24811  $as_unset lt_cv_path_LD
24812fi
24813test -z "${LDCXX+set}" || LD=$LDCXX
24814CC=${CXX-"c++"}
24815compiler=$CC
24816compiler_CXX=$CC
24817for cc_temp in $compiler""; do
24818  case $cc_temp in
24819    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24820    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24821    \-*) ;;
24822    *) break;;
24823  esac
24824done
24825cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24826
24827
24828# We don't want -fno-exception wen compiling C++ code, so set the
24829# no_builtin_flag separately
24830if test "$GXX" = yes; then
24831  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
24832else
24833  lt_prog_compiler_no_builtin_flag_CXX=
24834fi
24835
24836if test "$GXX" = yes; then
24837  # Set up default GNU C++ configuration
24838
24839
24840# Check whether --with-gnu-ld was given.
24841if test "${with_gnu_ld+set}" = set; then
24842  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
24843else
24844  with_gnu_ld=no
24845fi
24846
24847ac_prog=ld
24848if test "$GCC" = yes; then
24849  # Check if gcc -print-prog-name=ld gives a path.
24850  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
24851echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
24852  case $host in
24853  *-*-mingw*)
24854    # gcc leaves a trailing carriage return which upsets mingw
24855    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24856  *)
24857    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24858  esac
24859  case $ac_prog in
24860    # Accept absolute paths.
24861    [\\/]* | ?:[\\/]*)
24862      re_direlt='/[^/][^/]*/\.\./'
24863      # Canonicalize the pathname of ld
24864      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
24865      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24866	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
24867      done
24868      test -z "$LD" && LD="$ac_prog"
24869      ;;
24870  "")
24871    # If it fails, then pretend we aren't using GCC.
24872    ac_prog=ld
24873    ;;
24874  *)
24875    # If it is relative, then search for the first ld in PATH.
24876    with_gnu_ld=unknown
24877    ;;
24878  esac
24879elif test "$with_gnu_ld" = yes; then
24880  { echo "$as_me:$LINENO: checking for GNU ld" >&5
24881echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
24882else
24883  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24884echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
24885fi
24886if test "${lt_cv_path_LD+set}" = set; then
24887  echo $ECHO_N "(cached) $ECHO_C" >&6
24888else
24889  if test -z "$LD"; then
24890  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
24891  for ac_dir in $PATH; do
24892    IFS="$lt_save_ifs"
24893    test -z "$ac_dir" && ac_dir=.
24894    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24895      lt_cv_path_LD="$ac_dir/$ac_prog"
24896      # Check to see if the program is GNU ld.  I'd rather use --version,
24897      # but apparently some variants of GNU ld only accept -v.
24898      # Break only if it was the GNU/non-GNU ld that we prefer.
24899      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
24900      *GNU* | *'with BFD'*)
24901	test "$with_gnu_ld" != no && break
24902	;;
24903      *)
24904	test "$with_gnu_ld" != yes && break
24905	;;
24906      esac
24907    fi
24908  done
24909  IFS="$lt_save_ifs"
24910else
24911  lt_cv_path_LD="$LD" # Let the user override the test with a path.
24912fi
24913fi
24914
24915LD="$lt_cv_path_LD"
24916if test -n "$LD"; then
24917  { echo "$as_me:$LINENO: result: $LD" >&5
24918echo "${ECHO_T}$LD" >&6; }
24919else
24920  { echo "$as_me:$LINENO: result: no" >&5
24921echo "${ECHO_T}no" >&6; }
24922fi
24923test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24924echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24925   { (exit 1); exit 1; }; }
24926{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24927echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
24928if test "${lt_cv_prog_gnu_ld+set}" = set; then
24929  echo $ECHO_N "(cached) $ECHO_C" >&6
24930else
24931  # I'd rather use --version here, but apparently some GNU lds only accept -v.
24932case `$LD -v 2>&1 </dev/null` in
24933*GNU* | *'with BFD'*)
24934  lt_cv_prog_gnu_ld=yes
24935  ;;
24936*)
24937  lt_cv_prog_gnu_ld=no
24938  ;;
24939esac
24940fi
24941{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
24942echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
24943with_gnu_ld=$lt_cv_prog_gnu_ld
24944
24945
24946
24947  # Check if GNU C++ uses GNU ld as the underlying linker, since the
24948  # archiving commands below assume that GNU ld is being used.
24949  if test "$with_gnu_ld" = yes; then
24950    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
24951    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'
24952
24953    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
24954    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
24955
24956    # If archive_cmds runs LD, not CC, wlarc should be empty
24957    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
24958    #     investigate it a little bit more. (MM)
24959    wlarc='${wl}'
24960
24961    # ancient GNU ld didn't support --whole-archive et. al.
24962    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
24963	grep 'no-whole-archive' > /dev/null; then
24964      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24965    else
24966      whole_archive_flag_spec_CXX=
24967    fi
24968  else
24969    with_gnu_ld=no
24970    wlarc=
24971
24972    # A generic and very simple default shared library creation
24973    # command for GNU C++ for the case where it uses the native
24974    # linker, instead of GNU ld.  If possible, this setting should
24975    # overridden to take advantage of the native linker features on
24976    # the platform it is being used on.
24977    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
24978  fi
24979
24980  # Commands to make compiler produce verbose output that lists
24981  # what "hidden" libraries, object files and flags are used when
24982  # linking a shared library.
24983  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
24984
24985else
24986  GXX=no
24987  with_gnu_ld=no
24988  wlarc=
24989fi
24990
24991# PORTME: fill in a description of your system's C++ link characteristics
24992{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24993echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24994ld_shlibs_CXX=yes
24995case $host_os in
24996  aix3*)
24997    # FIXME: insert proper C++ library support
24998    ld_shlibs_CXX=no
24999    ;;
25000  aix4* | aix5*)
25001    if test "$host_cpu" = ia64; then
25002      # On IA64, the linker does run time linking by default, so we don't
25003      # have to do anything special.
25004      aix_use_runtimelinking=no
25005      exp_sym_flag='-Bexport'
25006      no_entry_flag=""
25007    else
25008      aix_use_runtimelinking=no
25009
25010      # Test if we are trying to use run time linking or normal
25011      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25012      # need to do runtime linking.
25013      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25014	for ld_flag in $LDFLAGS; do
25015	  case $ld_flag in
25016	  *-brtl*)
25017	    aix_use_runtimelinking=yes
25018	    break
25019	    ;;
25020	  esac
25021	done
25022	;;
25023      esac
25024
25025      exp_sym_flag='-bexport'
25026      no_entry_flag='-bnoentry'
25027    fi
25028
25029    # When large executables or shared objects are built, AIX ld can
25030    # have problems creating the table of contents.  If linking a library
25031    # or program results in "error TOC overflow" add -mminimal-toc to
25032    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25033    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25034
25035    archive_cmds_CXX=''
25036    hardcode_direct_CXX=yes
25037    hardcode_libdir_separator_CXX=':'
25038    link_all_deplibs_CXX=yes
25039
25040    if test "$GXX" = yes; then
25041      case $host_os in aix4.[012]|aix4.[012].*)
25042      # We only want to do this on AIX 4.2 and lower, the check
25043      # below for broken collect2 doesn't work under 4.3+
25044	collect2name=`${CC} -print-prog-name=collect2`
25045	if test -f "$collect2name" && \
25046	   strings "$collect2name" | grep resolve_lib_name >/dev/null
25047	then
25048	  # We have reworked collect2
25049	  hardcode_direct_CXX=yes
25050	else
25051	  # We have old collect2
25052	  hardcode_direct_CXX=unsupported
25053	  # It fails to find uninstalled libraries when the uninstalled
25054	  # path is not listed in the libpath.  Setting hardcode_minus_L
25055	  # to unsupported forces relinking
25056	  hardcode_minus_L_CXX=yes
25057	  hardcode_libdir_flag_spec_CXX='-L$libdir'
25058	  hardcode_libdir_separator_CXX=
25059	fi
25060	;;
25061      esac
25062      shared_flag='-shared'
25063      if test "$aix_use_runtimelinking" = yes; then
25064	shared_flag="$shared_flag "'${wl}-G'
25065      fi
25066    else
25067      # not using gcc
25068      if test "$host_cpu" = ia64; then
25069	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25070	# chokes on -Wl,-G. The following line is correct:
25071	shared_flag='-G'
25072      else
25073	if test "$aix_use_runtimelinking" = yes; then
25074	  shared_flag='${wl}-G'
25075	else
25076	  shared_flag='${wl}-bM:SRE'
25077	fi
25078      fi
25079    fi
25080
25081    # It seems that -bexpall does not export symbols beginning with
25082    # underscore (_), so it is better to generate a list of symbols to export.
25083    always_export_symbols_CXX=yes
25084    if test "$aix_use_runtimelinking" = yes; then
25085      # Warning - without using the other runtime loading flags (-brtl),
25086      # -berok will link without error, but may produce a broken library.
25087      allow_undefined_flag_CXX='-berok'
25088      # Determine the default libpath from the value encoded in an empty executable.
25089      cat >conftest.$ac_ext <<_ACEOF
25090/* confdefs.h.  */
25091_ACEOF
25092cat confdefs.h >>conftest.$ac_ext
25093cat >>conftest.$ac_ext <<_ACEOF
25094/* end confdefs.h.  */
25095
25096int
25097main ()
25098{
25099
25100  ;
25101  return 0;
25102}
25103_ACEOF
25104rm -f conftest.$ac_objext conftest$ac_exeext
25105if { (ac_try="$ac_link"
25106case "(($ac_try" in
25107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108  *) ac_try_echo=$ac_try;;
25109esac
25110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111  (eval "$ac_link") 2>conftest.er1
25112  ac_status=$?
25113  grep -v '^ *+' conftest.er1 >conftest.err
25114  rm -f conftest.er1
25115  cat conftest.err >&5
25116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117  (exit $ac_status); } && {
25118	 test -z "$ac_cxx_werror_flag" ||
25119	 test ! -s conftest.err
25120       } && test -s conftest$ac_exeext &&
25121       $as_test_x conftest$ac_exeext; then
25122
25123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25124}'`
25125# Check for a 64-bit object if we didn't find anything.
25126if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25127}'`; fi
25128else
25129  echo "$as_me: failed program was:" >&5
25130sed 's/^/| /' conftest.$ac_ext >&5
25131
25132
25133fi
25134
25135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25136      conftest$ac_exeext conftest.$ac_ext
25137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25138
25139      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
25140
25141      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"
25142     else
25143      if test "$host_cpu" = ia64; then
25144	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
25145	allow_undefined_flag_CXX="-z nodefs"
25146	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"
25147      else
25148	# Determine the default libpath from the value encoded in an empty executable.
25149	cat >conftest.$ac_ext <<_ACEOF
25150/* confdefs.h.  */
25151_ACEOF
25152cat confdefs.h >>conftest.$ac_ext
25153cat >>conftest.$ac_ext <<_ACEOF
25154/* end confdefs.h.  */
25155
25156int
25157main ()
25158{
25159
25160  ;
25161  return 0;
25162}
25163_ACEOF
25164rm -f conftest.$ac_objext conftest$ac_exeext
25165if { (ac_try="$ac_link"
25166case "(($ac_try" in
25167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168  *) ac_try_echo=$ac_try;;
25169esac
25170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25171  (eval "$ac_link") 2>conftest.er1
25172  ac_status=$?
25173  grep -v '^ *+' conftest.er1 >conftest.err
25174  rm -f conftest.er1
25175  cat conftest.err >&5
25176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177  (exit $ac_status); } && {
25178	 test -z "$ac_cxx_werror_flag" ||
25179	 test ! -s conftest.err
25180       } && test -s conftest$ac_exeext &&
25181       $as_test_x conftest$ac_exeext; then
25182
25183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25184}'`
25185# Check for a 64-bit object if we didn't find anything.
25186if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25187}'`; fi
25188else
25189  echo "$as_me: failed program was:" >&5
25190sed 's/^/| /' conftest.$ac_ext >&5
25191
25192
25193fi
25194
25195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25196      conftest$ac_exeext conftest.$ac_ext
25197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25198
25199	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
25200	# Warning - without using the other run time loading flags,
25201	# -berok will link without error, but may produce a broken library.
25202	no_undefined_flag_CXX=' ${wl}-bernotok'
25203	allow_undefined_flag_CXX=' ${wl}-berok'
25204	# Exported symbols can be pulled into shared objects from archives
25205	whole_archive_flag_spec_CXX='$convenience'
25206	archive_cmds_need_lc_CXX=yes
25207	# This is similar to how AIX traditionally builds its shared libraries.
25208	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'
25209      fi
25210    fi
25211    ;;
25212
25213  beos*)
25214    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25215      allow_undefined_flag_CXX=unsupported
25216      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25217      # support --undefined.  This deserves some investigation.  FIXME
25218      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25219    else
25220      ld_shlibs_CXX=no
25221    fi
25222    ;;
25223
25224  chorus*)
25225    case $cc_basename in
25226      *)
25227	# FIXME: insert proper C++ library support
25228	ld_shlibs_CXX=no
25229	;;
25230    esac
25231    ;;
25232
25233  cygwin* | mingw* | pw32*)
25234    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
25235    # as there is no search path for DLLs.
25236    hardcode_libdir_flag_spec_CXX='-L$libdir'
25237    allow_undefined_flag_CXX=unsupported
25238    always_export_symbols_CXX=no
25239    enable_shared_with_static_runtimes_CXX=yes
25240
25241    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25242      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'
25243      # If the export-symbols file already is a .def file (1st line
25244      # is EXPORTS), use it as is; otherwise, prepend...
25245      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25246	cp $export_symbols $output_objdir/$soname.def;
25247      else
25248	echo EXPORTS > $output_objdir/$soname.def;
25249	cat $export_symbols >> $output_objdir/$soname.def;
25250      fi~
25251      $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'
25252    else
25253      ld_shlibs_CXX=no
25254    fi
25255  ;;
25256      darwin* | rhapsody*)
25257        case $host_os in
25258        rhapsody* | darwin1.[012])
25259         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
25260         ;;
25261       *) # Darwin 1.3 on
25262         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25263           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25264         else
25265           case ${MACOSX_DEPLOYMENT_TARGET} in
25266             10.[012])
25267               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25268               ;;
25269             10.*)
25270               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
25271               ;;
25272           esac
25273         fi
25274         ;;
25275        esac
25276      archive_cmds_need_lc_CXX=no
25277      hardcode_direct_CXX=no
25278      hardcode_automatic_CXX=yes
25279      hardcode_shlibpath_var_CXX=unsupported
25280      whole_archive_flag_spec_CXX=''
25281      link_all_deplibs_CXX=yes
25282
25283    if test "$GXX" = yes ; then
25284      lt_int_apple_cc_single_mod=no
25285      output_verbose_link_cmd='echo'
25286      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
25287       lt_int_apple_cc_single_mod=yes
25288      fi
25289      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
25290       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25291      else
25292          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'
25293        fi
25294        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25295        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25296          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
25297            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25298          else
25299            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25300          fi
25301            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}'
25302      else
25303      case $cc_basename in
25304        xlc*)
25305         output_verbose_link_cmd='echo'
25306          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25307          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25308          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25309          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25310          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}'
25311          ;;
25312       *)
25313         ld_shlibs_CXX=no
25314          ;;
25315      esac
25316      fi
25317        ;;
25318
25319  dgux*)
25320    case $cc_basename in
25321      ec++*)
25322	# FIXME: insert proper C++ library support
25323	ld_shlibs_CXX=no
25324	;;
25325      ghcx*)
25326	# Green Hills C++ Compiler
25327	# FIXME: insert proper C++ library support
25328	ld_shlibs_CXX=no
25329	;;
25330      *)
25331	# FIXME: insert proper C++ library support
25332	ld_shlibs_CXX=no
25333	;;
25334    esac
25335    ;;
25336  freebsd[12]*)
25337    # C++ shared libraries reported to be fairly broken before switch to ELF
25338    ld_shlibs_CXX=no
25339    ;;
25340  freebsd-elf*)
25341    archive_cmds_need_lc_CXX=no
25342    ;;
25343  freebsd* | dragonfly*)
25344    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
25345    # conventions
25346    ld_shlibs_CXX=yes
25347    ;;
25348  gnu*)
25349    ;;
25350  hpux9*)
25351    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
25352    hardcode_libdir_separator_CXX=:
25353    export_dynamic_flag_spec_CXX='${wl}-E'
25354    hardcode_direct_CXX=yes
25355    hardcode_minus_L_CXX=yes # Not in the search PATH,
25356				# but as the default
25357				# location of the library.
25358
25359    case $cc_basename in
25360    CC*)
25361      # FIXME: insert proper C++ library support
25362      ld_shlibs_CXX=no
25363      ;;
25364    aCC*)
25365      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'
25366      # Commands to make compiler produce verbose output that lists
25367      # what "hidden" libraries, object files and flags are used when
25368      # linking a shared library.
25369      #
25370      # There doesn't appear to be a way to prevent this compiler from
25371      # explicitly linking system object files so we need to strip them
25372      # from the output so that they don't get included in the library
25373      # dependencies.
25374      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'
25375      ;;
25376    *)
25377      if test "$GXX" = yes; then
25378        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'
25379      else
25380        # FIXME: insert proper C++ library support
25381        ld_shlibs_CXX=no
25382      fi
25383      ;;
25384    esac
25385    ;;
25386  hpux10*|hpux11*)
25387    if test $with_gnu_ld = no; then
25388      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
25389      hardcode_libdir_separator_CXX=:
25390
25391      case $host_cpu in
25392      hppa*64*|ia64*)
25393	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
25394        ;;
25395      *)
25396	export_dynamic_flag_spec_CXX='${wl}-E'
25397        ;;
25398      esac
25399    fi
25400    case $host_cpu in
25401    hppa*64*|ia64*)
25402      hardcode_direct_CXX=no
25403      hardcode_shlibpath_var_CXX=no
25404      ;;
25405    *)
25406      hardcode_direct_CXX=yes
25407      hardcode_minus_L_CXX=yes # Not in the search PATH,
25408					      # but as the default
25409					      # location of the library.
25410      ;;
25411    esac
25412
25413    case $cc_basename in
25414      CC*)
25415	# FIXME: insert proper C++ library support
25416	ld_shlibs_CXX=no
25417	;;
25418      aCC*)
25419	case $host_cpu in
25420	hppa*64*)
25421	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25422	  ;;
25423	ia64*)
25424	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25425	  ;;
25426	*)
25427	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25428	  ;;
25429	esac
25430	# Commands to make compiler produce verbose output that lists
25431	# what "hidden" libraries, object files and flags are used when
25432	# linking a shared library.
25433	#
25434	# There doesn't appear to be a way to prevent this compiler from
25435	# explicitly linking system object files so we need to strip them
25436	# from the output so that they don't get included in the library
25437	# dependencies.
25438	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'
25439	;;
25440      *)
25441	if test "$GXX" = yes; then
25442	  if test $with_gnu_ld = no; then
25443	    case $host_cpu in
25444	    hppa*64*)
25445	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25446	      ;;
25447	    ia64*)
25448	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25449	      ;;
25450	    *)
25451	      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'
25452	      ;;
25453	    esac
25454	  fi
25455	else
25456	  # FIXME: insert proper C++ library support
25457	  ld_shlibs_CXX=no
25458	fi
25459	;;
25460    esac
25461    ;;
25462  interix3*)
25463    hardcode_direct_CXX=no
25464    hardcode_shlibpath_var_CXX=no
25465    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25466    export_dynamic_flag_spec_CXX='${wl}-E'
25467    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25468    # Instead, shared libraries are loaded at an image base (0x10000000 by
25469    # default) and relocated if they conflict, which is a slow very memory
25470    # consuming and fragmenting process.  To avoid this, we pick a random,
25471    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25472    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
25473    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'
25474    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'
25475    ;;
25476  irix5* | irix6*)
25477    case $cc_basename in
25478      CC*)
25479	# SGI C++
25480	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'
25481
25482	# Archives containing C++ object files must be created using
25483	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
25484	# necessary to make sure instantiated templates are included
25485	# in the archive.
25486	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
25487	;;
25488      *)
25489	if test "$GXX" = yes; then
25490	  if test "$with_gnu_ld" = no; then
25491	    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'
25492	  else
25493	    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'
25494	  fi
25495	fi
25496	link_all_deplibs_CXX=yes
25497	;;
25498    esac
25499    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25500    hardcode_libdir_separator_CXX=:
25501    ;;
25502  linux* | k*bsd*-gnu)
25503    case $cc_basename in
25504      KCC*)
25505	# Kuck and Associates, Inc. (KAI) C++ Compiler
25506
25507	# KCC will only create a shared library if the output file
25508	# ends with ".so" (or ".sl" for HP-UX), so rename the library
25509	# to its proper name (with version) after linking.
25510	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'
25511	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'
25512	# Commands to make compiler produce verbose output that lists
25513	# what "hidden" libraries, object files and flags are used when
25514	# linking a shared library.
25515	#
25516	# There doesn't appear to be a way to prevent this compiler from
25517	# explicitly linking system object files so we need to strip them
25518	# from the output so that they don't get included in the library
25519	# dependencies.
25520	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'
25521
25522	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
25523	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
25524
25525	# Archives containing C++ object files must be created using
25526	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
25527	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
25528	;;
25529      icpc*)
25530	# Intel C++
25531	with_gnu_ld=yes
25532	# version 8.0 and above of icpc choke on multiply defined symbols
25533	# if we add $predep_objects and $postdep_objects, however 7.1 and
25534	# earlier do not add the objects themselves.
25535	case `$CC -V 2>&1` in
25536	*"Version 7."*)
25537  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
25538  	  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'
25539	  ;;
25540	*)  # Version 8.0 or newer
25541	  tmp_idyn=
25542	  case $host_cpu in
25543	    ia64*) tmp_idyn=' -i_dynamic';;
25544	  esac
25545  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25546	  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'
25547	  ;;
25548	esac
25549	archive_cmds_need_lc_CXX=no
25550	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25551	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
25552	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
25553	;;
25554      pgCC*)
25555        # Portland Group C++ compiler
25556	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
25557  	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'
25558
25559	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
25560	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
25561	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'
25562        ;;
25563      cxx*)
25564	# Compaq C++
25565	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
25566	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'
25567
25568	runpath_var=LD_RUN_PATH
25569	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
25570	hardcode_libdir_separator_CXX=:
25571
25572	# Commands to make compiler produce verbose output that lists
25573	# what "hidden" libraries, object files and flags are used when
25574	# linking a shared library.
25575	#
25576	# There doesn't appear to be a way to prevent this compiler from
25577	# explicitly linking system object files so we need to strip them
25578	# from the output so that they don't get included in the library
25579	# dependencies.
25580	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'
25581	;;
25582    esac
25583    ;;
25584  lynxos*)
25585    # FIXME: insert proper C++ library support
25586    ld_shlibs_CXX=no
25587    ;;
25588  m88k*)
25589    # FIXME: insert proper C++ library support
25590    ld_shlibs_CXX=no
25591    ;;
25592  mvs*)
25593    case $cc_basename in
25594      cxx*)
25595	# FIXME: insert proper C++ library support
25596	ld_shlibs_CXX=no
25597	;;
25598      *)
25599	# FIXME: insert proper C++ library support
25600	ld_shlibs_CXX=no
25601	;;
25602    esac
25603    ;;
25604  netbsd* | netbsdelf*-gnu)
25605    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25606      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
25607      wlarc=
25608      hardcode_libdir_flag_spec_CXX='-R$libdir'
25609      hardcode_direct_CXX=yes
25610      hardcode_shlibpath_var_CXX=no
25611    fi
25612    # Workaround some broken pre-1.5 toolchains
25613    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
25614    ;;
25615  openbsd2*)
25616    # C++ shared libraries are fairly broken
25617    ld_shlibs_CXX=no
25618    ;;
25619  openbsd*)
25620    hardcode_direct_CXX=yes
25621    hardcode_shlibpath_var_CXX=no
25622    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
25623    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25624    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25625      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
25626      export_dynamic_flag_spec_CXX='${wl}-E'
25627      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25628    fi
25629    output_verbose_link_cmd='echo'
25630    ;;
25631  osf3*)
25632    case $cc_basename in
25633      KCC*)
25634	# Kuck and Associates, Inc. (KAI) C++ Compiler
25635
25636	# KCC will only create a shared library if the output file
25637	# ends with ".so" (or ".sl" for HP-UX), so rename the library
25638	# to its proper name (with version) after linking.
25639	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'
25640
25641	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25642	hardcode_libdir_separator_CXX=:
25643
25644	# Archives containing C++ object files must be created using
25645	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
25646	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
25647
25648	;;
25649      RCC*)
25650	# Rational C++ 2.4.1
25651	# FIXME: insert proper C++ library support
25652	ld_shlibs_CXX=no
25653	;;
25654      cxx*)
25655	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
25656	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'
25657
25658	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25659	hardcode_libdir_separator_CXX=:
25660
25661	# Commands to make compiler produce verbose output that lists
25662	# what "hidden" libraries, object files and flags are used when
25663	# linking a shared library.
25664	#
25665	# There doesn't appear to be a way to prevent this compiler from
25666	# explicitly linking system object files so we need to strip them
25667	# from the output so that they don't get included in the library
25668	# dependencies.
25669	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'
25670	;;
25671      *)
25672	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
25673	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
25674	  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'
25675
25676	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25677	  hardcode_libdir_separator_CXX=:
25678
25679	  # Commands to make compiler produce verbose output that lists
25680	  # what "hidden" libraries, object files and flags are used when
25681	  # linking a shared library.
25682	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
25683
25684	else
25685	  # FIXME: insert proper C++ library support
25686	  ld_shlibs_CXX=no
25687	fi
25688	;;
25689    esac
25690    ;;
25691  osf4* | osf5*)
25692    case $cc_basename in
25693      KCC*)
25694	# Kuck and Associates, Inc. (KAI) C++ Compiler
25695
25696	# KCC will only create a shared library if the output file
25697	# ends with ".so" (or ".sl" for HP-UX), so rename the library
25698	# to its proper name (with version) after linking.
25699	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'
25700
25701	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25702	hardcode_libdir_separator_CXX=:
25703
25704	# Archives containing C++ object files must be created using
25705	# the KAI C++ compiler.
25706	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
25707	;;
25708      RCC*)
25709	# Rational C++ 2.4.1
25710	# FIXME: insert proper C++ library support
25711	ld_shlibs_CXX=no
25712	;;
25713      cxx*)
25714	allow_undefined_flag_CXX=' -expect_unresolved \*'
25715	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'
25716	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
25717	  echo "-hidden">> $lib.exp~
25718	  $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~
25719	  $rm $lib.exp'
25720
25721	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
25722	hardcode_libdir_separator_CXX=:
25723
25724	# Commands to make compiler produce verbose output that lists
25725	# what "hidden" libraries, object files and flags are used when
25726	# linking a shared library.
25727	#
25728	# There doesn't appear to be a way to prevent this compiler from
25729	# explicitly linking system object files so we need to strip them
25730	# from the output so that they don't get included in the library
25731	# dependencies.
25732	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'
25733	;;
25734      *)
25735	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
25736	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
25737	 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'
25738
25739	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25740	  hardcode_libdir_separator_CXX=:
25741
25742	  # Commands to make compiler produce verbose output that lists
25743	  # what "hidden" libraries, object files and flags are used when
25744	  # linking a shared library.
25745	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
25746
25747	else
25748	  # FIXME: insert proper C++ library support
25749	  ld_shlibs_CXX=no
25750	fi
25751	;;
25752    esac
25753    ;;
25754  psos*)
25755    # FIXME: insert proper C++ library support
25756    ld_shlibs_CXX=no
25757    ;;
25758  sunos4*)
25759    case $cc_basename in
25760      CC*)
25761	# Sun C++ 4.x
25762	# FIXME: insert proper C++ library support
25763	ld_shlibs_CXX=no
25764	;;
25765      lcc*)
25766	# Lucid
25767	# FIXME: insert proper C++ library support
25768	ld_shlibs_CXX=no
25769	;;
25770      *)
25771	# FIXME: insert proper C++ library support
25772	ld_shlibs_CXX=no
25773	;;
25774    esac
25775    ;;
25776  solaris*)
25777    case $cc_basename in
25778      CC*)
25779	# Sun C++ 4.2, 5.x and Centerline C++
25780        archive_cmds_need_lc_CXX=yes
25781	no_undefined_flag_CXX=' -zdefs'
25782	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25783	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25784	$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'
25785
25786	hardcode_libdir_flag_spec_CXX='-R$libdir'
25787	hardcode_shlibpath_var_CXX=no
25788	case $host_os in
25789	  solaris2.[0-5] | solaris2.[0-5].*) ;;
25790	  *)
25791	    # The C++ compiler is used as linker so we must use $wl
25792	    # flag to pass the commands to the underlying system
25793	    # linker. We must also pass each convience library through
25794	    # to the system linker between allextract/defaultextract.
25795	    # The C++ compiler will combine linker options so we
25796	    # cannot just pass the convience library names through
25797	    # without $wl.
25798	    # Supported since Solaris 2.6 (maybe 2.5.1?)
25799	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
25800	    ;;
25801	esac
25802	link_all_deplibs_CXX=yes
25803
25804	output_verbose_link_cmd='echo'
25805
25806	# Archives containing C++ object files must be created using
25807	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
25808	# necessary to make sure instantiated templates are included
25809	# in the archive.
25810	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
25811	;;
25812      gcx*)
25813	# Green Hills C++ Compiler
25814	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
25815
25816	# The C++ compiler must be used to create the archive.
25817	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
25818	;;
25819      *)
25820	# GNU C++ compiler with Solaris linker
25821	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
25822	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
25823	  if $CC --version | grep -v '^2\.7' > /dev/null; then
25824	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
25825	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25826		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
25827
25828	    # Commands to make compiler produce verbose output that lists
25829	    # what "hidden" libraries, object files and flags are used when
25830	    # linking a shared library.
25831	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
25832	  else
25833	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
25834	    # platform.
25835	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
25836	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25837		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
25838
25839	    # Commands to make compiler produce verbose output that lists
25840	    # what "hidden" libraries, object files and flags are used when
25841	    # linking a shared library.
25842	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
25843	  fi
25844
25845	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
25846	fi
25847	;;
25848    esac
25849    ;;
25850  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25851    no_undefined_flag_CXX='${wl}-z,text'
25852    archive_cmds_need_lc_CXX=no
25853    hardcode_shlibpath_var_CXX=no
25854    runpath_var='LD_RUN_PATH'
25855
25856    case $cc_basename in
25857      CC*)
25858	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25859	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25860	;;
25861      *)
25862	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25863	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25864	;;
25865    esac
25866    ;;
25867  sysv5* | sco3.2v5* | sco5v6*)
25868    # Note: We can NOT use -z defs as we might desire, because we do not
25869    # link with -lc, and that would cause any symbols used from libc to
25870    # always be unresolved, which means just about no library would
25871    # ever link correctly.  If we're not using GNU ld we use -z text
25872    # though, which does catch some bad symbols but isn't as heavy-handed
25873    # as -z defs.
25874    # For security reasons, it is highly recommended that you always
25875    # use absolute paths for naming shared libraries, and exclude the
25876    # DT_RUNPATH tag from executables and libraries.  But doing so
25877    # requires that you compile everything twice, which is a pain.
25878    # So that behaviour is only enabled if SCOABSPATH is set to a
25879    # non-empty value in the environment.  Most likely only useful for
25880    # creating official distributions of packages.
25881    # This is a hack until libtool officially supports absolute path
25882    # names for shared libraries.
25883    no_undefined_flag_CXX='${wl}-z,text'
25884    allow_undefined_flag_CXX='${wl}-z,nodefs'
25885    archive_cmds_need_lc_CXX=no
25886    hardcode_shlibpath_var_CXX=no
25887    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25888    hardcode_libdir_separator_CXX=':'
25889    link_all_deplibs_CXX=yes
25890    export_dynamic_flag_spec_CXX='${wl}-Bexport'
25891    runpath_var='LD_RUN_PATH'
25892
25893    case $cc_basename in
25894      CC*)
25895	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25896	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25897	;;
25898      *)
25899	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25900	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25901	;;
25902    esac
25903    ;;
25904  tandem*)
25905    case $cc_basename in
25906      NCC*)
25907	# NonStop-UX NCC 3.20
25908	# FIXME: insert proper C++ library support
25909	ld_shlibs_CXX=no
25910	;;
25911      *)
25912	# FIXME: insert proper C++ library support
25913	ld_shlibs_CXX=no
25914	;;
25915    esac
25916    ;;
25917  vxworks*)
25918    # FIXME: insert proper C++ library support
25919    ld_shlibs_CXX=no
25920    ;;
25921  *)
25922    # FIXME: insert proper C++ library support
25923    ld_shlibs_CXX=no
25924    ;;
25925esac
25926{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
25927echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
25928test "$ld_shlibs_CXX" = no && can_build_shared=no
25929
25930GCC_CXX="$GXX"
25931LD_CXX="$LD"
25932
25933## CAVEAT EMPTOR:
25934## There is no encapsulation within the following macros, do not change
25935## the running order or otherwise move them around unless you know exactly
25936## what you are doing...
25937
25938cat > conftest.$ac_ext <<EOF
25939class Foo
25940{
25941public:
25942  Foo (void) { a = 0; }
25943private:
25944  int a;
25945};
25946EOF
25947
25948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949  (eval $ac_compile) 2>&5
25950  ac_status=$?
25951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952  (exit $ac_status); }; then
25953  # Parse the compiler output and extract the necessary
25954  # objects, libraries and library flags.
25955
25956  # Sentinel used to keep track of whether or not we are before
25957  # the conftest object file.
25958  pre_test_object_deps_done=no
25959
25960  # The `*' in the case matches for architectures that use `case' in
25961  # $output_verbose_cmd can trigger glob expansion during the loop
25962  # eval without this substitution.
25963  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
25964
25965  for p in `eval $output_verbose_link_cmd`; do
25966    case $p in
25967
25968    -L* | -R* | -l*)
25969       # Some compilers place space between "-{L,R}" and the path.
25970       # Remove the space.
25971       if test $p = "-L" \
25972	  || test $p = "-R"; then
25973	 prev=$p
25974	 continue
25975       else
25976	 prev=
25977       fi
25978
25979       if test "$pre_test_object_deps_done" = no; then
25980	 case $p in
25981	 -L* | -R*)
25982	   # Internal compiler library paths should come after those
25983	   # provided the user.  The postdeps already come after the
25984	   # user supplied libs so there is no need to process them.
25985	   if test -z "$compiler_lib_search_path_CXX"; then
25986	     compiler_lib_search_path_CXX="${prev}${p}"
25987	   else
25988	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
25989	   fi
25990	   ;;
25991	 # The "-l" case would never come before the object being
25992	 # linked, so don't bother handling this case.
25993	 esac
25994       else
25995	 if test -z "$postdeps_CXX"; then
25996	   postdeps_CXX="${prev}${p}"
25997	 else
25998	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
25999	 fi
26000       fi
26001       ;;
26002
26003    *.$objext)
26004       # This assumes that the test object file only shows up
26005       # once in the compiler output.
26006       if test "$p" = "conftest.$objext"; then
26007	 pre_test_object_deps_done=yes
26008	 continue
26009       fi
26010
26011       if test "$pre_test_object_deps_done" = no; then
26012	 if test -z "$predep_objects_CXX"; then
26013	   predep_objects_CXX="$p"
26014	 else
26015	   predep_objects_CXX="$predep_objects_CXX $p"
26016	 fi
26017       else
26018	 if test -z "$postdep_objects_CXX"; then
26019	   postdep_objects_CXX="$p"
26020	 else
26021	   postdep_objects_CXX="$postdep_objects_CXX $p"
26022	 fi
26023       fi
26024       ;;
26025
26026    *) ;; # Ignore the rest.
26027
26028    esac
26029  done
26030
26031  # Clean up.
26032  rm -f a.out a.exe
26033else
26034  echo "libtool.m4: error: problem compiling CXX test program"
26035fi
26036
26037$rm -f confest.$objext
26038
26039# PORTME: override above test on systems where it is broken
26040case $host_os in
26041interix3*)
26042  # Interix 3.5 installs completely hosed .la files for C++, so rather than
26043  # hack all around it, let's just trust "g++" to DTRT.
26044  predep_objects_CXX=
26045  postdep_objects_CXX=
26046  postdeps_CXX=
26047  ;;
26048
26049solaris*)
26050  case $cc_basename in
26051  CC*)
26052    # Adding this requires a known-good setup of shared libraries for
26053    # Sun compiler versions before 5.6, else PIC objects from an old
26054    # archive will be linked into the output, leading to subtle bugs.
26055    postdeps_CXX='-lCstd -lCrun'
26056    ;;
26057  esac
26058  ;;
26059esac
26060
26061
26062case " $postdeps_CXX " in
26063*" -lc "*) archive_cmds_need_lc_CXX=no ;;
26064esac
26065
26066lt_prog_compiler_wl_CXX=
26067lt_prog_compiler_pic_CXX=
26068lt_prog_compiler_static_CXX=
26069
26070{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26071echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
26072
26073  # C++ specific cases for pic, static, wl, etc.
26074  if test "$GXX" = yes; then
26075    lt_prog_compiler_wl_CXX='-Wl,'
26076    lt_prog_compiler_static_CXX='-static'
26077
26078    case $host_os in
26079    aix*)
26080      # All AIX code is PIC.
26081      if test "$host_cpu" = ia64; then
26082	# AIX 5 now supports IA64 processor
26083	lt_prog_compiler_static_CXX='-Bstatic'
26084      fi
26085      ;;
26086    amigaos*)
26087      # FIXME: we need at least 68020 code to build shared libraries, but
26088      # adding the `-m68020' flag to GCC prevents building anything better,
26089      # like `-m68040'.
26090      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
26091      ;;
26092    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26093      # PIC is the default for these OSes.
26094      ;;
26095    mingw* | os2* | pw32*)
26096      # This hack is so that the source file can tell whether it is being
26097      # built for inclusion in a dll (and should export symbols for example).
26098      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
26099      ;;
26100    darwin* | rhapsody*)
26101      # PIC is the default on this platform
26102      # Common symbols not allowed in MH_DYLIB files
26103      lt_prog_compiler_pic_CXX='-fno-common'
26104      ;;
26105    *djgpp*)
26106      # DJGPP does not support shared libraries at all
26107      lt_prog_compiler_pic_CXX=
26108      ;;
26109    interix3*)
26110      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
26111      # Instead, we relocate shared libraries at runtime.
26112      ;;
26113    sysv4*MP*)
26114      if test -d /usr/nec; then
26115	lt_prog_compiler_pic_CXX=-Kconform_pic
26116      fi
26117      ;;
26118    hpux*)
26119      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26120      # not for PA HP-UX.
26121      case $host_cpu in
26122      hppa*64*|ia64*)
26123	;;
26124      *)
26125	lt_prog_compiler_pic_CXX='-fPIC'
26126	;;
26127      esac
26128      ;;
26129    *)
26130      lt_prog_compiler_pic_CXX='-fPIC'
26131      ;;
26132    esac
26133  else
26134    case $host_os in
26135      aix4* | aix5*)
26136	# All AIX code is PIC.
26137	if test "$host_cpu" = ia64; then
26138	  # AIX 5 now supports IA64 processor
26139	  lt_prog_compiler_static_CXX='-Bstatic'
26140	else
26141	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
26142	fi
26143	;;
26144      chorus*)
26145	case $cc_basename in
26146	cxch68*)
26147	  # Green Hills C++ Compiler
26148	  # _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"
26149	  ;;
26150	esac
26151	;;
26152       darwin*)
26153         # PIC is the default on this platform
26154         # Common symbols not allowed in MH_DYLIB files
26155         case $cc_basename in
26156           xlc*)
26157           lt_prog_compiler_pic_CXX='-qnocommon'
26158           lt_prog_compiler_wl_CXX='-Wl,'
26159           ;;
26160         esac
26161       ;;
26162      dgux*)
26163	case $cc_basename in
26164	  ec++*)
26165	    lt_prog_compiler_pic_CXX='-KPIC'
26166	    ;;
26167	  ghcx*)
26168	    # Green Hills C++ Compiler
26169	    lt_prog_compiler_pic_CXX='-pic'
26170	    ;;
26171	  *)
26172	    ;;
26173	esac
26174	;;
26175      freebsd* | dragonfly*)
26176	# FreeBSD uses GNU C++
26177	;;
26178      hpux9* | hpux10* | hpux11*)
26179	case $cc_basename in
26180	  CC*)
26181	    lt_prog_compiler_wl_CXX='-Wl,'
26182	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
26183	    if test "$host_cpu" != ia64; then
26184	      lt_prog_compiler_pic_CXX='+Z'
26185	    fi
26186	    ;;
26187	  aCC*)
26188	    lt_prog_compiler_wl_CXX='-Wl,'
26189	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
26190	    case $host_cpu in
26191	    hppa*64*|ia64*)
26192	      # +Z the default
26193	      ;;
26194	    *)
26195	      lt_prog_compiler_pic_CXX='+Z'
26196	      ;;
26197	    esac
26198	    ;;
26199	  *)
26200	    ;;
26201	esac
26202	;;
26203      interix*)
26204	# This is c89, which is MS Visual C++ (no shared libs)
26205	# Anyone wants to do a port?
26206	;;
26207      irix5* | irix6* | nonstopux*)
26208	case $cc_basename in
26209	  CC*)
26210	    lt_prog_compiler_wl_CXX='-Wl,'
26211	    lt_prog_compiler_static_CXX='-non_shared'
26212	    # CC pic flag -KPIC is the default.
26213	    ;;
26214	  *)
26215	    ;;
26216	esac
26217	;;
26218      linux* | k*bsd*-gnu)
26219	case $cc_basename in
26220	  KCC*)
26221	    # KAI C++ Compiler
26222	    lt_prog_compiler_wl_CXX='--backend -Wl,'
26223	    lt_prog_compiler_pic_CXX='-fPIC'
26224	    ;;
26225	  icpc* | ecpc*)
26226	    # Intel C++
26227	    lt_prog_compiler_wl_CXX='-Wl,'
26228	    lt_prog_compiler_pic_CXX='-KPIC'
26229	    lt_prog_compiler_static_CXX='-static'
26230	    ;;
26231	  pgCC*)
26232	    # Portland Group C++ compiler.
26233	    lt_prog_compiler_wl_CXX='-Wl,'
26234	    lt_prog_compiler_pic_CXX='-fpic'
26235	    lt_prog_compiler_static_CXX='-Bstatic'
26236	    ;;
26237	  cxx*)
26238	    # Compaq C++
26239	    # Make sure the PIC flag is empty.  It appears that all Alpha
26240	    # Linux and Compaq Tru64 Unix objects are PIC.
26241	    lt_prog_compiler_pic_CXX=
26242	    lt_prog_compiler_static_CXX='-non_shared'
26243	    ;;
26244	  *)
26245	    ;;
26246	esac
26247	;;
26248      lynxos*)
26249	;;
26250      m88k*)
26251	;;
26252      mvs*)
26253	case $cc_basename in
26254	  cxx*)
26255	    lt_prog_compiler_pic_CXX='-W c,exportall'
26256	    ;;
26257	  *)
26258	    ;;
26259	esac
26260	;;
26261      netbsd* | netbsdelf*-gnu)
26262	;;
26263      osf3* | osf4* | osf5*)
26264	case $cc_basename in
26265	  KCC*)
26266	    lt_prog_compiler_wl_CXX='--backend -Wl,'
26267	    ;;
26268	  RCC*)
26269	    # Rational C++ 2.4.1
26270	    lt_prog_compiler_pic_CXX='-pic'
26271	    ;;
26272	  cxx*)
26273	    # Digital/Compaq C++
26274	    lt_prog_compiler_wl_CXX='-Wl,'
26275	    # Make sure the PIC flag is empty.  It appears that all Alpha
26276	    # Linux and Compaq Tru64 Unix objects are PIC.
26277	    lt_prog_compiler_pic_CXX=
26278	    lt_prog_compiler_static_CXX='-non_shared'
26279	    ;;
26280	  *)
26281	    ;;
26282	esac
26283	;;
26284      psos*)
26285	;;
26286      solaris*)
26287	case $cc_basename in
26288	  CC*)
26289	    # Sun C++ 4.2, 5.x and Centerline C++
26290	    lt_prog_compiler_pic_CXX='-KPIC'
26291	    lt_prog_compiler_static_CXX='-Bstatic'
26292	    lt_prog_compiler_wl_CXX='-Qoption ld '
26293	    ;;
26294	  gcx*)
26295	    # Green Hills C++ Compiler
26296	    lt_prog_compiler_pic_CXX='-PIC'
26297	    ;;
26298	  *)
26299	    ;;
26300	esac
26301	;;
26302      sunos4*)
26303	case $cc_basename in
26304	  CC*)
26305	    # Sun C++ 4.x
26306	    lt_prog_compiler_pic_CXX='-pic'
26307	    lt_prog_compiler_static_CXX='-Bstatic'
26308	    ;;
26309	  lcc*)
26310	    # Lucid
26311	    lt_prog_compiler_pic_CXX='-pic'
26312	    ;;
26313	  *)
26314	    ;;
26315	esac
26316	;;
26317      tandem*)
26318	case $cc_basename in
26319	  NCC*)
26320	    # NonStop-UX NCC 3.20
26321	    lt_prog_compiler_pic_CXX='-KPIC'
26322	    ;;
26323	  *)
26324	    ;;
26325	esac
26326	;;
26327      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
26328	case $cc_basename in
26329	  CC*)
26330	    lt_prog_compiler_wl_CXX='-Wl,'
26331	    lt_prog_compiler_pic_CXX='-KPIC'
26332	    lt_prog_compiler_static_CXX='-Bstatic'
26333	    ;;
26334	esac
26335	;;
26336      vxworks*)
26337	;;
26338      *)
26339	lt_prog_compiler_can_build_shared_CXX=no
26340	;;
26341    esac
26342  fi
26343
26344{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
26345echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
26346
26347#
26348# Check to make sure the PIC flag actually works.
26349#
26350if test -n "$lt_prog_compiler_pic_CXX"; then
26351
26352{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
26353echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
26354if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
26355  echo $ECHO_N "(cached) $ECHO_C" >&6
26356else
26357  lt_prog_compiler_pic_works_CXX=no
26358  ac_outfile=conftest.$ac_objext
26359   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26360   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
26361   # Insert the option either (1) after the last *FLAGS variable, or
26362   # (2) before a word containing "conftest.", or (3) at the end.
26363   # Note that $ac_compile itself does not contain backslashes and begins
26364   # with a dollar sign (not a hyphen), so the echo should work correctly.
26365   # The option is referenced via a variable to avoid confusing sed.
26366   lt_compile=`echo "$ac_compile" | $SED \
26367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26369   -e 's:$: $lt_compiler_flag:'`
26370   (eval echo "\"\$as_me:26370: $lt_compile\"" >&5)
26371   (eval "$lt_compile" 2>conftest.err)
26372   ac_status=$?
26373   cat conftest.err >&5
26374   echo "$as_me:26374: \$? = $ac_status" >&5
26375   if (exit $ac_status) && test -s "$ac_outfile"; then
26376     # The compiler can only warn and ignore the option if not recognized
26377     # So say no if there are warnings other than the usual output.
26378     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
26379     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26380     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
26381       lt_prog_compiler_pic_works_CXX=yes
26382     fi
26383   fi
26384   $rm conftest*
26385
26386fi
26387{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
26388echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
26389
26390if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
26391    case $lt_prog_compiler_pic_CXX in
26392     "" | " "*) ;;
26393     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
26394     esac
26395else
26396    lt_prog_compiler_pic_CXX=
26397     lt_prog_compiler_can_build_shared_CXX=no
26398fi
26399
26400fi
26401case $host_os in
26402  # For platforms which do not support PIC, -DPIC is meaningless:
26403  *djgpp*)
26404    lt_prog_compiler_pic_CXX=
26405    ;;
26406  *)
26407    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
26408    ;;
26409esac
26410
26411#
26412# Check to make sure the static flag actually works.
26413#
26414wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
26415{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
26416echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
26417if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
26418  echo $ECHO_N "(cached) $ECHO_C" >&6
26419else
26420  lt_prog_compiler_static_works_CXX=no
26421   save_LDFLAGS="$LDFLAGS"
26422   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
26423   printf "$lt_simple_link_test_code" > conftest.$ac_ext
26424   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
26425     # The linker can only warn and ignore the option if not recognized
26426     # So say no if there are warnings
26427     if test -s conftest.err; then
26428       # Append any errors to the config.log.
26429       cat conftest.err 1>&5
26430       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
26431       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26432       if diff conftest.exp conftest.er2 >/dev/null; then
26433         lt_prog_compiler_static_works_CXX=yes
26434       fi
26435     else
26436       lt_prog_compiler_static_works_CXX=yes
26437     fi
26438   fi
26439   $rm conftest*
26440   LDFLAGS="$save_LDFLAGS"
26441
26442fi
26443{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
26444echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
26445
26446if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
26447    :
26448else
26449    lt_prog_compiler_static_CXX=
26450fi
26451
26452
26453{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
26454echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
26455if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
26456  echo $ECHO_N "(cached) $ECHO_C" >&6
26457else
26458  lt_cv_prog_compiler_c_o_CXX=no
26459   $rm -r conftest 2>/dev/null
26460   mkdir conftest
26461   cd conftest
26462   mkdir out
26463   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26464
26465   lt_compiler_flag="-o out/conftest2.$ac_objext"
26466   # Insert the option either (1) after the last *FLAGS variable, or
26467   # (2) before a word containing "conftest.", or (3) at the end.
26468   # Note that $ac_compile itself does not contain backslashes and begins
26469   # with a dollar sign (not a hyphen), so the echo should work correctly.
26470   lt_compile=`echo "$ac_compile" | $SED \
26471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26473   -e 's:$: $lt_compiler_flag:'`
26474   (eval echo "\"\$as_me:26474: $lt_compile\"" >&5)
26475   (eval "$lt_compile" 2>out/conftest.err)
26476   ac_status=$?
26477   cat out/conftest.err >&5
26478   echo "$as_me:26478: \$? = $ac_status" >&5
26479   if (exit $ac_status) && test -s out/conftest2.$ac_objext
26480   then
26481     # The compiler can only warn and ignore the option if not recognized
26482     # So say no if there are warnings
26483     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
26484     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
26485     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
26486       lt_cv_prog_compiler_c_o_CXX=yes
26487     fi
26488   fi
26489   chmod u+w . 2>&5
26490   $rm conftest*
26491   # SGI C++ compiler will create directory out/ii_files/ for
26492   # template instantiation
26493   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
26494   $rm out/* && rmdir out
26495   cd ..
26496   rmdir conftest
26497   $rm conftest*
26498
26499fi
26500{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
26501echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
26502
26503
26504hard_links="nottested"
26505if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
26506  # do not overwrite the value of need_locks provided by the user
26507  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
26508echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
26509  hard_links=yes
26510  $rm conftest*
26511  ln conftest.a conftest.b 2>/dev/null && hard_links=no
26512  touch conftest.a
26513  ln conftest.a conftest.b 2>&5 || hard_links=no
26514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
26515  { echo "$as_me:$LINENO: result: $hard_links" >&5
26516echo "${ECHO_T}$hard_links" >&6; }
26517  if test "$hard_links" = no; then
26518    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
26519echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
26520    need_locks=warn
26521  fi
26522else
26523  need_locks=no
26524fi
26525
26526{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
26527echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
26528
26529  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26530  case $host_os in
26531  aix4* | aix5*)
26532    # If we're using GNU nm, then we don't want the "-C" option.
26533    # -C means demangle to AIX nm, but means don't demangle with GNU nm
26534    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26535      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'
26536    else
26537      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'
26538    fi
26539    ;;
26540  pw32*)
26541    export_symbols_cmds_CXX="$ltdll_cmds"
26542  ;;
26543  cygwin* | mingw*)
26544    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'
26545  ;;
26546  linux* | k*bsd*-gnu)
26547    link_all_deplibs_CXX=no
26548  ;;
26549  *)
26550    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26551  ;;
26552  esac
26553
26554{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
26555echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
26556test "$ld_shlibs_CXX" = no && can_build_shared=no
26557
26558#
26559# Do we need to explicitly link libc?
26560#
26561case "x$archive_cmds_need_lc_CXX" in
26562x|xyes)
26563  # Assume -lc should be added
26564  archive_cmds_need_lc_CXX=yes
26565
26566  if test "$enable_shared" = yes && test "$GCC" = yes; then
26567    case $archive_cmds_CXX in
26568    *'~'*)
26569      # FIXME: we may have to deal with multi-command sequences.
26570      ;;
26571    '$CC '*)
26572      # Test whether the compiler implicitly links with -lc since on some
26573      # systems, -lgcc has to come before -lc. If gcc already passes -lc
26574      # to ld, don't add -lc before -lgcc.
26575      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26576echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
26577      $rm conftest*
26578      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26579
26580      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26581  (eval $ac_compile) 2>&5
26582  ac_status=$?
26583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584  (exit $ac_status); } 2>conftest.err; then
26585        soname=conftest
26586        lib=conftest
26587        libobjs=conftest.$ac_objext
26588        deplibs=
26589        wl=$lt_prog_compiler_wl_CXX
26590	pic_flag=$lt_prog_compiler_pic_CXX
26591        compiler_flags=-v
26592        linker_flags=-v
26593        verstring=
26594        output_objdir=.
26595        libname=conftest
26596        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
26597        allow_undefined_flag_CXX=
26598        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26599  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26600  ac_status=$?
26601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602  (exit $ac_status); }
26603        then
26604	  archive_cmds_need_lc_CXX=no
26605        else
26606	  archive_cmds_need_lc_CXX=yes
26607        fi
26608        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
26609      else
26610        cat conftest.err 1>&5
26611      fi
26612      $rm conftest*
26613      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
26614echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
26615      ;;
26616    esac
26617  fi
26618  ;;
26619esac
26620
26621{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26622echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
26623library_names_spec=
26624libname_spec='lib$name'
26625soname_spec=
26626shrext_cmds=".so"
26627postinstall_cmds=
26628postuninstall_cmds=
26629finish_cmds=
26630finish_eval=
26631shlibpath_var=
26632shlibpath_overrides_runpath=unknown
26633version_type=none
26634dynamic_linker="$host_os ld.so"
26635sys_lib_dlsearch_path_spec="/lib /usr/lib"
26636if test "$GCC" = yes; then
26637  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26638  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26639    # if the path contains ";" then we assume it to be the separator
26640    # otherwise default to the standard path separator (i.e. ":") - it is
26641    # assumed that no part of a normal pathname contains ";" but that should
26642    # okay in the real world where ";" in dirpaths is itself problematic.
26643    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26644  else
26645    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26646  fi
26647else
26648  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26649fi
26650need_lib_prefix=unknown
26651hardcode_into_libs=no
26652
26653# when you set need_version to no, make sure it does not cause -set_version
26654# flags to be left without arguments
26655need_version=unknown
26656
26657case $host_os in
26658aix3*)
26659  version_type=linux
26660  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26661  shlibpath_var=LIBPATH
26662
26663  # AIX 3 has no versioning support, so we append a major version to the name.
26664  soname_spec='${libname}${release}${shared_ext}$major'
26665  ;;
26666
26667aix4* | aix5*)
26668  version_type=linux
26669  need_lib_prefix=no
26670  need_version=no
26671  hardcode_into_libs=yes
26672  if test "$host_cpu" = ia64; then
26673    # AIX 5 supports IA64
26674    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26675    shlibpath_var=LD_LIBRARY_PATH
26676  else
26677    # With GCC up to 2.95.x, collect2 would create an import file
26678    # for dependence libraries.  The import file would start with
26679    # the line `#! .'.  This would cause the generated library to
26680    # depend on `.', always an invalid library.  This was fixed in
26681    # development snapshots of GCC prior to 3.0.
26682    case $host_os in
26683      aix4 | aix4.[01] | aix4.[01].*)
26684      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26685	   echo ' yes '
26686	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26687	:
26688      else
26689	can_build_shared=no
26690      fi
26691      ;;
26692    esac
26693    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26694    # soname into executable. Probably we can add versioning support to
26695    # collect2, so additional links can be useful in future.
26696    if test "$aix_use_runtimelinking" = yes; then
26697      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26698      # instead of lib<name>.a to let people know that these are not
26699      # typical AIX shared libraries.
26700      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26701    else
26702      # We preserve .a as extension for shared libraries through AIX4.2
26703      # and later when we are not doing run time linking.
26704      library_names_spec='${libname}${release}.a $libname.a'
26705      soname_spec='${libname}${release}${shared_ext}$major'
26706    fi
26707    shlibpath_var=LIBPATH
26708  fi
26709  ;;
26710
26711amigaos*)
26712  library_names_spec='$libname.ixlibrary $libname.a'
26713  # Create ${libname}_ixlibrary.a entries in /sys/libs.
26714  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'
26715  ;;
26716
26717beos*)
26718  library_names_spec='${libname}${shared_ext}'
26719  dynamic_linker="$host_os ld.so"
26720  shlibpath_var=LIBRARY_PATH
26721  ;;
26722
26723bsdi[45]*)
26724  version_type=linux
26725  need_version=no
26726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26727  soname_spec='${libname}${release}${shared_ext}$major'
26728  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26729  shlibpath_var=LD_LIBRARY_PATH
26730  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26731  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26732  # the default ld.so.conf also contains /usr/contrib/lib and
26733  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26734  # libtool to hard-code these into programs
26735  ;;
26736
26737cygwin* | mingw* | pw32*)
26738  version_type=windows
26739  shrext_cmds=".dll"
26740  need_version=no
26741  need_lib_prefix=no
26742
26743  case $GCC,$host_os in
26744  yes,cygwin* | yes,mingw* | yes,pw32*)
26745    library_names_spec='$libname.dll.a'
26746    # DLL is installed to $(libdir)/../bin by postinstall_cmds
26747    postinstall_cmds='base_file=`basename \${file}`~
26748      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26749      dldir=$destdir/`dirname \$dlpath`~
26750      test -d \$dldir || mkdir -p \$dldir~
26751      $install_prog $dir/$dlname \$dldir/$dlname~
26752      chmod a+x \$dldir/$dlname'
26753    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26754      dlpath=$dir/\$dldll~
26755       $rm \$dlpath'
26756    shlibpath_overrides_runpath=yes
26757
26758    case $host_os in
26759    cygwin*)
26760      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26761      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26762      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26763      ;;
26764    mingw*)
26765      # MinGW DLLs use traditional 'lib' prefix
26766      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26767      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26768      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26769        # It is most probably a Windows format PATH printed by
26770        # mingw gcc, but we are running on Cygwin. Gcc prints its search
26771        # path with ; separators, and with drive letters. We can handle the
26772        # drive letters (cygwin fileutils understands them), so leave them,
26773        # especially as we might pass files found there to a mingw objdump,
26774        # which wouldn't understand a cygwinified path. Ahh.
26775        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26776      else
26777        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26778      fi
26779      ;;
26780    pw32*)
26781      # pw32 DLLs use 'pw' prefix rather than 'lib'
26782      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26783      ;;
26784    esac
26785    ;;
26786
26787  *)
26788    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26789    ;;
26790  esac
26791  dynamic_linker='Win32 ld.exe'
26792  # FIXME: first we should search . and the directory the executable is in
26793  shlibpath_var=PATH
26794  ;;
26795
26796darwin* | rhapsody*)
26797  dynamic_linker="$host_os dyld"
26798  version_type=darwin
26799  need_lib_prefix=no
26800  need_version=no
26801  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26802  soname_spec='${libname}${release}${major}$shared_ext'
26803  shlibpath_overrides_runpath=yes
26804  shlibpath_var=DYLD_LIBRARY_PATH
26805  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26806  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26807  if test "$GCC" = yes; then
26808    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
26809  else
26810    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26811  fi
26812  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26813  ;;
26814
26815dgux*)
26816  version_type=linux
26817  need_lib_prefix=no
26818  need_version=no
26819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26820  soname_spec='${libname}${release}${shared_ext}$major'
26821  shlibpath_var=LD_LIBRARY_PATH
26822  ;;
26823
26824freebsd1*)
26825  dynamic_linker=no
26826  ;;
26827
26828freebsd* | dragonfly*)
26829  # DragonFly does not have aout.  When/if they implement a new
26830  # versioning mechanism, adjust this.
26831  if test -x /usr/bin/objformat; then
26832    objformat=`/usr/bin/objformat`
26833  else
26834    case $host_os in
26835    freebsd[123]*) objformat=aout ;;
26836    *) objformat=elf ;;
26837    esac
26838  fi
26839  version_type=freebsd-$objformat
26840  case $version_type in
26841    freebsd-elf*)
26842      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26843      need_version=no
26844      need_lib_prefix=no
26845      ;;
26846    freebsd-*)
26847      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26848      need_version=yes
26849      ;;
26850  esac
26851  shlibpath_var=LD_LIBRARY_PATH
26852  case $host_os in
26853  freebsd2*)
26854    shlibpath_overrides_runpath=yes
26855    ;;
26856  freebsd3.[01]* | freebsdelf3.[01]*)
26857    shlibpath_overrides_runpath=yes
26858    hardcode_into_libs=yes
26859    ;;
26860  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26861  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26862    shlibpath_overrides_runpath=no
26863    hardcode_into_libs=yes
26864    ;;
26865  freebsd*) # from 4.6 on
26866    shlibpath_overrides_runpath=yes
26867    hardcode_into_libs=yes
26868    ;;
26869  esac
26870  ;;
26871
26872gnu*)
26873  version_type=linux
26874  need_lib_prefix=no
26875  need_version=no
26876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26877  soname_spec='${libname}${release}${shared_ext}$major'
26878  shlibpath_var=LD_LIBRARY_PATH
26879  hardcode_into_libs=yes
26880  ;;
26881
26882hpux9* | hpux10* | hpux11*)
26883  # Give a soname corresponding to the major version so that dld.sl refuses to
26884  # link against other versions.
26885  version_type=sunos
26886  need_lib_prefix=no
26887  need_version=no
26888  case $host_cpu in
26889  ia64*)
26890    shrext_cmds='.so'
26891    hardcode_into_libs=yes
26892    dynamic_linker="$host_os dld.so"
26893    shlibpath_var=LD_LIBRARY_PATH
26894    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26895    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26896    soname_spec='${libname}${release}${shared_ext}$major'
26897    if test "X$HPUX_IA64_MODE" = X32; then
26898      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26899    else
26900      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26901    fi
26902    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26903    ;;
26904   hppa*64*)
26905     shrext_cmds='.sl'
26906     hardcode_into_libs=yes
26907     dynamic_linker="$host_os dld.sl"
26908     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26909     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26911     soname_spec='${libname}${release}${shared_ext}$major'
26912     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26913     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26914     ;;
26915   *)
26916    shrext_cmds='.sl'
26917    dynamic_linker="$host_os dld.sl"
26918    shlibpath_var=SHLIB_PATH
26919    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26920    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26921    soname_spec='${libname}${release}${shared_ext}$major'
26922    ;;
26923  esac
26924  # HP-UX runs *really* slowly unless shared libraries are mode 555.
26925  postinstall_cmds='chmod 555 $lib'
26926  ;;
26927
26928interix3*)
26929  version_type=linux
26930  need_lib_prefix=no
26931  need_version=no
26932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26933  soname_spec='${libname}${release}${shared_ext}$major'
26934  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26935  shlibpath_var=LD_LIBRARY_PATH
26936  shlibpath_overrides_runpath=no
26937  hardcode_into_libs=yes
26938  ;;
26939
26940irix5* | irix6* | nonstopux*)
26941  case $host_os in
26942    nonstopux*) version_type=nonstopux ;;
26943    *)
26944	if test "$lt_cv_prog_gnu_ld" = yes; then
26945		version_type=linux
26946	else
26947		version_type=irix
26948	fi ;;
26949  esac
26950  need_lib_prefix=no
26951  need_version=no
26952  soname_spec='${libname}${release}${shared_ext}$major'
26953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26954  case $host_os in
26955  irix5* | nonstopux*)
26956    libsuff= shlibsuff=
26957    ;;
26958  *)
26959    case $LD in # libtool.m4 will add one of these switches to LD
26960    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26961      libsuff= shlibsuff= libmagic=32-bit;;
26962    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26963      libsuff=32 shlibsuff=N32 libmagic=N32;;
26964    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26965      libsuff=64 shlibsuff=64 libmagic=64-bit;;
26966    *) libsuff= shlibsuff= libmagic=never-match;;
26967    esac
26968    ;;
26969  esac
26970  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26971  shlibpath_overrides_runpath=no
26972  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26973  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26974  hardcode_into_libs=yes
26975  ;;
26976
26977# No shared lib support for Linux oldld, aout, or coff.
26978linux*oldld* | linux*aout* | linux*coff*)
26979  dynamic_linker=no
26980  ;;
26981
26982# This must be Linux ELF.
26983linux* | k*bsd*-gnu)
26984  version_type=linux
26985  need_lib_prefix=no
26986  need_version=no
26987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26988  soname_spec='${libname}${release}${shared_ext}$major'
26989  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26990  shlibpath_var=LD_LIBRARY_PATH
26991  shlibpath_overrides_runpath=no
26992  # This implies no fast_install, which is unacceptable.
26993  # Some rework will be needed to allow for fast_install
26994  # before this can be enabled.
26995  hardcode_into_libs=yes
26996
26997  # Append ld.so.conf contents to the search path
26998  if test -f /etc/ld.so.conf; then
26999    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
27000    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27001  fi
27002
27003  # We used to test for /lib/ld.so.1 and disable shared libraries on
27004  # powerpc, because MkLinux only supported shared libraries with the
27005  # GNU dynamic linker.  Since this was broken with cross compilers,
27006  # most powerpc-linux boxes support dynamic linking these days and
27007  # people can always --disable-shared, the test was removed, and we
27008  # assume the GNU/Linux dynamic linker is in use.
27009  dynamic_linker='GNU/Linux ld.so'
27010  ;;
27011
27012netbsdelf*-gnu)
27013  version_type=linux
27014  need_lib_prefix=no
27015  need_version=no
27016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27017  soname_spec='${libname}${release}${shared_ext}$major'
27018  shlibpath_var=LD_LIBRARY_PATH
27019  shlibpath_overrides_runpath=no
27020  hardcode_into_libs=yes
27021  dynamic_linker='NetBSD ld.elf_so'
27022  ;;
27023
27024netbsd*)
27025  version_type=sunos
27026  need_lib_prefix=no
27027  need_version=no
27028  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27029    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27030    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27031    dynamic_linker='NetBSD (a.out) ld.so'
27032  else
27033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27034    soname_spec='${libname}${release}${shared_ext}$major'
27035    dynamic_linker='NetBSD ld.elf_so'
27036  fi
27037  shlibpath_var=LD_LIBRARY_PATH
27038  shlibpath_overrides_runpath=yes
27039  hardcode_into_libs=yes
27040  ;;
27041
27042newsos6)
27043  version_type=linux
27044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27045  shlibpath_var=LD_LIBRARY_PATH
27046  shlibpath_overrides_runpath=yes
27047  ;;
27048
27049nto-qnx*)
27050  version_type=linux
27051  need_lib_prefix=no
27052  need_version=no
27053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27054  soname_spec='${libname}${release}${shared_ext}$major'
27055  shlibpath_var=LD_LIBRARY_PATH
27056  shlibpath_overrides_runpath=yes
27057  ;;
27058
27059openbsd*)
27060  version_type=sunos
27061  sys_lib_dlsearch_path_spec="/usr/lib"
27062  need_lib_prefix=no
27063  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27064  case $host_os in
27065    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
27066    *)                         need_version=no  ;;
27067  esac
27068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27069  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27070  shlibpath_var=LD_LIBRARY_PATH
27071  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27072    case $host_os in
27073      openbsd2.[89] | openbsd2.[89].*)
27074	shlibpath_overrides_runpath=no
27075	;;
27076      *)
27077	shlibpath_overrides_runpath=yes
27078	;;
27079      esac
27080  else
27081    shlibpath_overrides_runpath=yes
27082  fi
27083  ;;
27084
27085os2*)
27086  libname_spec='$name'
27087  shrext_cmds=".dll"
27088  need_lib_prefix=no
27089  library_names_spec='$libname${shared_ext} $libname.a'
27090  dynamic_linker='OS/2 ld.exe'
27091  shlibpath_var=LIBPATH
27092  ;;
27093
27094osf3* | osf4* | osf5*)
27095  version_type=osf
27096  need_lib_prefix=no
27097  need_version=no
27098  soname_spec='${libname}${release}${shared_ext}$major'
27099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27100  shlibpath_var=LD_LIBRARY_PATH
27101  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27102  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27103  ;;
27104
27105solaris*)
27106  version_type=linux
27107  need_lib_prefix=no
27108  need_version=no
27109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27110  soname_spec='${libname}${release}${shared_ext}$major'
27111  shlibpath_var=LD_LIBRARY_PATH
27112  shlibpath_overrides_runpath=yes
27113  hardcode_into_libs=yes
27114  # ldd complains unless libraries are executable
27115  postinstall_cmds='chmod +x $lib'
27116  ;;
27117
27118sunos4*)
27119  version_type=sunos
27120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27121  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27122  shlibpath_var=LD_LIBRARY_PATH
27123  shlibpath_overrides_runpath=yes
27124  if test "$with_gnu_ld" = yes; then
27125    need_lib_prefix=no
27126  fi
27127  need_version=yes
27128  ;;
27129
27130sysv4 | sysv4.3*)
27131  version_type=linux
27132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27133  soname_spec='${libname}${release}${shared_ext}$major'
27134  shlibpath_var=LD_LIBRARY_PATH
27135  case $host_vendor in
27136    sni)
27137      shlibpath_overrides_runpath=no
27138      need_lib_prefix=no
27139      export_dynamic_flag_spec='${wl}-Blargedynsym'
27140      runpath_var=LD_RUN_PATH
27141      ;;
27142    siemens)
27143      need_lib_prefix=no
27144      ;;
27145    motorola)
27146      need_lib_prefix=no
27147      need_version=no
27148      shlibpath_overrides_runpath=no
27149      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27150      ;;
27151  esac
27152  ;;
27153
27154sysv4*MP*)
27155  if test -d /usr/nec ;then
27156    version_type=linux
27157    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27158    soname_spec='$libname${shared_ext}.$major'
27159    shlibpath_var=LD_LIBRARY_PATH
27160  fi
27161  ;;
27162
27163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27164  version_type=freebsd-elf
27165  need_lib_prefix=no
27166  need_version=no
27167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27168  soname_spec='${libname}${release}${shared_ext}$major'
27169  shlibpath_var=LD_LIBRARY_PATH
27170  hardcode_into_libs=yes
27171  if test "$with_gnu_ld" = yes; then
27172    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
27173    shlibpath_overrides_runpath=no
27174  else
27175    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
27176    shlibpath_overrides_runpath=yes
27177    case $host_os in
27178      sco3.2v5*)
27179        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
27180	;;
27181    esac
27182  fi
27183  sys_lib_dlsearch_path_spec='/usr/lib'
27184  ;;
27185
27186uts4*)
27187  version_type=linux
27188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27189  soname_spec='${libname}${release}${shared_ext}$major'
27190  shlibpath_var=LD_LIBRARY_PATH
27191  ;;
27192
27193*)
27194  dynamic_linker=no
27195  ;;
27196esac
27197{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27198echo "${ECHO_T}$dynamic_linker" >&6; }
27199test "$dynamic_linker" = no && can_build_shared=no
27200
27201variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27202if test "$GCC" = yes; then
27203  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27204fi
27205
27206{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27207echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
27208hardcode_action_CXX=
27209if test -n "$hardcode_libdir_flag_spec_CXX" || \
27210   test -n "$runpath_var_CXX" || \
27211   test "X$hardcode_automatic_CXX" = "Xyes" ; then
27212
27213  # We can hardcode non-existant directories.
27214  if test "$hardcode_direct_CXX" != no &&
27215     # If the only mechanism to avoid hardcoding is shlibpath_var, we
27216     # have to relink, otherwise we might link with an installed library
27217     # when we should be linking with a yet-to-be-installed one
27218     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
27219     test "$hardcode_minus_L_CXX" != no; then
27220    # Linking always hardcodes the temporary library directory.
27221    hardcode_action_CXX=relink
27222  else
27223    # We can link without hardcoding, and we can hardcode nonexisting dirs.
27224    hardcode_action_CXX=immediate
27225  fi
27226else
27227  # We cannot hardcode anything, or else we can only hardcode existing
27228  # directories.
27229  hardcode_action_CXX=unsupported
27230fi
27231{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
27232echo "${ECHO_T}$hardcode_action_CXX" >&6; }
27233
27234if test "$hardcode_action_CXX" = relink; then
27235  # Fast installation is not supported
27236  enable_fast_install=no
27237elif test "$shlibpath_overrides_runpath" = yes ||
27238     test "$enable_shared" = no; then
27239  # Fast installation is not necessary
27240  enable_fast_install=needless
27241fi
27242
27243
27244# The else clause should only fire when bootstrapping the
27245# libtool distribution, otherwise you forgot to ship ltmain.sh
27246# with your package, and you will get complaints that there are
27247# no rules to generate ltmain.sh.
27248if test -f "$ltmain"; then
27249  # See if we are running on zsh, and set the options which allow our commands through
27250  # without removal of \ escapes.
27251  if test -n "${ZSH_VERSION+set}" ; then
27252    setopt NO_GLOB_SUBST
27253  fi
27254  # Now quote all the things that may contain metacharacters while being
27255  # careful not to overquote the AC_SUBSTed values.  We take copies of the
27256  # variables and quote the copies for generation of the libtool script.
27257  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27258    SED SHELL STRIP \
27259    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27260    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27261    deplibs_check_method reload_flag reload_cmds need_locks \
27262    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27263    lt_cv_sys_global_symbol_to_c_name_address \
27264    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27265    old_postinstall_cmds old_postuninstall_cmds \
27266    compiler_CXX \
27267    CC_CXX \
27268    LD_CXX \
27269    lt_prog_compiler_wl_CXX \
27270    lt_prog_compiler_pic_CXX \
27271    lt_prog_compiler_static_CXX \
27272    lt_prog_compiler_no_builtin_flag_CXX \
27273    export_dynamic_flag_spec_CXX \
27274    thread_safe_flag_spec_CXX \
27275    whole_archive_flag_spec_CXX \
27276    enable_shared_with_static_runtimes_CXX \
27277    old_archive_cmds_CXX \
27278    old_archive_from_new_cmds_CXX \
27279    predep_objects_CXX \
27280    postdep_objects_CXX \
27281    predeps_CXX \
27282    postdeps_CXX \
27283    compiler_lib_search_path_CXX \
27284    archive_cmds_CXX \
27285    archive_expsym_cmds_CXX \
27286    postinstall_cmds_CXX \
27287    postuninstall_cmds_CXX \
27288    old_archive_from_expsyms_cmds_CXX \
27289    allow_undefined_flag_CXX \
27290    no_undefined_flag_CXX \
27291    export_symbols_cmds_CXX \
27292    hardcode_libdir_flag_spec_CXX \
27293    hardcode_libdir_flag_spec_ld_CXX \
27294    hardcode_libdir_separator_CXX \
27295    hardcode_automatic_CXX \
27296    module_cmds_CXX \
27297    module_expsym_cmds_CXX \
27298    lt_cv_prog_compiler_c_o_CXX \
27299    exclude_expsyms_CXX \
27300    include_expsyms_CXX; do
27301
27302    case $var in
27303    old_archive_cmds_CXX | \
27304    old_archive_from_new_cmds_CXX | \
27305    archive_cmds_CXX | \
27306    archive_expsym_cmds_CXX | \
27307    module_cmds_CXX | \
27308    module_expsym_cmds_CXX | \
27309    old_archive_from_expsyms_cmds_CXX | \
27310    export_symbols_cmds_CXX | \
27311    extract_expsyms_cmds | reload_cmds | finish_cmds | \
27312    postinstall_cmds | postuninstall_cmds | \
27313    old_postinstall_cmds | old_postuninstall_cmds | \
27314    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27315      # Double-quote double-evaled strings.
27316      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27317      ;;
27318    *)
27319      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27320      ;;
27321    esac
27322  done
27323
27324  case $lt_echo in
27325  *'\$0 --fallback-echo"')
27326    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27327    ;;
27328  esac
27329
27330cfgfile="$ofile"
27331
27332  cat <<__EOF__ >> "$cfgfile"
27333# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27334
27335# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27336
27337# Shell to use when invoking shell scripts.
27338SHELL=$lt_SHELL
27339
27340# Whether or not to build shared libraries.
27341build_libtool_libs=$enable_shared
27342
27343# Whether or not to build static libraries.
27344build_old_libs=$enable_static
27345
27346# Whether or not to add -lc for building shared libraries.
27347build_libtool_need_lc=$archive_cmds_need_lc_CXX
27348
27349# Whether or not to disallow shared libs when runtime libs are static
27350allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27351
27352# Whether or not to optimize for fast installation.
27353fast_install=$enable_fast_install
27354
27355# The host system.
27356host_alias=$host_alias
27357host=$host
27358host_os=$host_os
27359
27360# The build system.
27361build_alias=$build_alias
27362build=$build
27363build_os=$build_os
27364
27365# An echo program that does not interpret backslashes.
27366echo=$lt_echo
27367
27368# The archiver.
27369AR=$lt_AR
27370AR_FLAGS=$lt_AR_FLAGS
27371
27372# A C compiler.
27373LTCC=$lt_LTCC
27374
27375# LTCC compiler flags.
27376LTCFLAGS=$lt_LTCFLAGS
27377
27378# A language-specific compiler.
27379CC=$lt_compiler_CXX
27380
27381# Is the compiler the GNU C compiler?
27382with_gcc=$GCC_CXX
27383
27384# An ERE matcher.
27385EGREP=$lt_EGREP
27386
27387# The linker used to build libraries.
27388LD=$lt_LD_CXX
27389
27390# Whether we need hard or soft links.
27391LN_S=$lt_LN_S
27392
27393# A BSD-compatible nm program.
27394NM=$lt_NM
27395
27396# A symbol stripping program
27397STRIP=$lt_STRIP
27398
27399# Used to examine libraries when file_magic_cmd begins "file"
27400MAGIC_CMD=$MAGIC_CMD
27401
27402# Used on cygwin: DLL creation program.
27403DLLTOOL="$DLLTOOL"
27404
27405# Used on cygwin: object dumper.
27406OBJDUMP="$OBJDUMP"
27407
27408# Used on cygwin: assembler.
27409AS="$AS"
27410
27411# The name of the directory that contains temporary libtool files.
27412objdir=$objdir
27413
27414# How to create reloadable object files.
27415reload_flag=$lt_reload_flag
27416reload_cmds=$lt_reload_cmds
27417
27418# How to pass a linker flag through the compiler.
27419wl=$lt_lt_prog_compiler_wl_CXX
27420
27421# Object file suffix (normally "o").
27422objext="$ac_objext"
27423
27424# Old archive suffix (normally "a").
27425libext="$libext"
27426
27427# Shared library suffix (normally ".so").
27428shrext_cmds='$shrext_cmds'
27429
27430# Executable file suffix (normally "").
27431exeext="$exeext"
27432
27433# Additional compiler flags for building library objects.
27434pic_flag=$lt_lt_prog_compiler_pic_CXX
27435pic_mode=$pic_mode
27436
27437# What is the maximum length of a command?
27438max_cmd_len=$lt_cv_sys_max_cmd_len
27439
27440# Does compiler simultaneously support -c and -o options?
27441compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27442
27443# Must we lock files when doing compilation?
27444need_locks=$lt_need_locks
27445
27446# Do we need the lib prefix for modules?
27447need_lib_prefix=$need_lib_prefix
27448
27449# Do we need a version for libraries?
27450need_version=$need_version
27451
27452# Whether dlopen is supported.
27453dlopen_support=$enable_dlopen
27454
27455# Whether dlopen of programs is supported.
27456dlopen_self=$enable_dlopen_self
27457
27458# Whether dlopen of statically linked programs is supported.
27459dlopen_self_static=$enable_dlopen_self_static
27460
27461# Compiler flag to prevent dynamic linking.
27462link_static_flag=$lt_lt_prog_compiler_static_CXX
27463
27464# Compiler flag to turn off builtin functions.
27465no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27466
27467# Compiler flag to allow reflexive dlopens.
27468export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27469
27470# Compiler flag to generate shared objects directly from archives.
27471whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27472
27473# Compiler flag to generate thread-safe objects.
27474thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
27475
27476# Library versioning type.
27477version_type=$version_type
27478
27479# Format of library name prefix.
27480libname_spec=$lt_libname_spec
27481
27482# List of archive names.  First name is the real one, the rest are links.
27483# The last name is the one that the linker finds with -lNAME.
27484library_names_spec=$lt_library_names_spec
27485
27486# The coded name of the library, if different from the real name.
27487soname_spec=$lt_soname_spec
27488
27489# Commands used to build and install an old-style archive.
27490RANLIB=$lt_RANLIB
27491old_archive_cmds=$lt_old_archive_cmds_CXX
27492old_postinstall_cmds=$lt_old_postinstall_cmds
27493old_postuninstall_cmds=$lt_old_postuninstall_cmds
27494
27495# Create an old-style archive from a shared archive.
27496old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27497
27498# Create a temporary old-style archive to link instead of a shared archive.
27499old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27500
27501# Commands used to build and install a shared archive.
27502archive_cmds=$lt_archive_cmds_CXX
27503archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27504postinstall_cmds=$lt_postinstall_cmds
27505postuninstall_cmds=$lt_postuninstall_cmds
27506
27507# Commands used to build a loadable module (assumed same as above if empty)
27508module_cmds=$lt_module_cmds_CXX
27509module_expsym_cmds=$lt_module_expsym_cmds_CXX
27510
27511# Commands to strip libraries.
27512old_striplib=$lt_old_striplib
27513striplib=$lt_striplib
27514
27515# Dependencies to place before the objects being linked to create a
27516# shared library.
27517predep_objects=$lt_predep_objects_CXX
27518
27519# Dependencies to place after the objects being linked to create a
27520# shared library.
27521postdep_objects=$lt_postdep_objects_CXX
27522
27523# Dependencies to place before the objects being linked to create a
27524# shared library.
27525predeps=$lt_predeps_CXX
27526
27527# Dependencies to place after the objects being linked to create a
27528# shared library.
27529postdeps=$lt_postdeps_CXX
27530
27531# The library search path used internally by the compiler when linking
27532# a shared library.
27533compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27534
27535# Method to check whether dependent libraries are shared objects.
27536deplibs_check_method=$lt_deplibs_check_method
27537
27538# Command to use when deplibs_check_method == file_magic.
27539file_magic_cmd=$lt_file_magic_cmd
27540
27541# Flag that allows shared libraries with undefined symbols to be built.
27542allow_undefined_flag=$lt_allow_undefined_flag_CXX
27543
27544# Flag that forces no undefined symbols.
27545no_undefined_flag=$lt_no_undefined_flag_CXX
27546
27547# Commands used to finish a libtool library installation in a directory.
27548finish_cmds=$lt_finish_cmds
27549
27550# Same as above, but a single script fragment to be evaled but not shown.
27551finish_eval=$lt_finish_eval
27552
27553# Take the output of nm and produce a listing of raw symbols and C names.
27554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27555
27556# Transform the output of nm in a proper C declaration
27557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27558
27559# Transform the output of nm in a C name address pair
27560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27561
27562# This is the shared library runtime path variable.
27563runpath_var=$runpath_var
27564
27565# This is the shared library path variable.
27566shlibpath_var=$shlibpath_var
27567
27568# Is shlibpath searched before the hard-coded library search path?
27569shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27570
27571# How to hardcode a shared library path into an executable.
27572hardcode_action=$hardcode_action_CXX
27573
27574# Whether we should hardcode library paths into libraries.
27575hardcode_into_libs=$hardcode_into_libs
27576
27577# Flag to hardcode \$libdir into a binary during linking.
27578# This must work even if \$libdir does not exist.
27579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27580
27581# If ld is used when linking, flag to hardcode \$libdir into
27582# a binary during linking. This must work even if \$libdir does
27583# not exist.
27584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27585
27586# Whether we need a single -rpath flag with a separated argument.
27587hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27588
27589# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27590# resulting binary.
27591hardcode_direct=$hardcode_direct_CXX
27592
27593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27594# resulting binary.
27595hardcode_minus_L=$hardcode_minus_L_CXX
27596
27597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27598# the resulting binary.
27599hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27600
27601# Set to yes if building a shared library automatically hardcodes DIR into the library
27602# and all subsequent libraries and executables linked against it.
27603hardcode_automatic=$hardcode_automatic_CXX
27604
27605# Variables whose values should be saved in libtool wrapper scripts and
27606# restored at relink time.
27607variables_saved_for_relink="$variables_saved_for_relink"
27608
27609# Whether libtool must link a program against all its dependency libraries.
27610link_all_deplibs=$link_all_deplibs_CXX
27611
27612# Compile-time system search path for libraries
27613sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27614
27615# Run-time system search path for libraries
27616sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27617
27618# Fix the shell variable \$srcfile for the compiler.
27619fix_srcfile_path="$fix_srcfile_path_CXX"
27620
27621# Set to yes if exported symbols are required.
27622always_export_symbols=$always_export_symbols_CXX
27623
27624# The commands to list exported symbols.
27625export_symbols_cmds=$lt_export_symbols_cmds_CXX
27626
27627# The commands to extract the exported symbol list from a shared archive.
27628extract_expsyms_cmds=$lt_extract_expsyms_cmds
27629
27630# Symbols that should not be listed in the preloaded symbols.
27631exclude_expsyms=$lt_exclude_expsyms_CXX
27632
27633# Symbols that must always be exported.
27634include_expsyms=$lt_include_expsyms_CXX
27635
27636# ### END LIBTOOL TAG CONFIG: $tagname
27637
27638__EOF__
27639
27640
27641else
27642  # If there is no Makefile yet, we rely on a make rule to execute
27643  # `config.status --recheck' to rerun these tests and create the
27644  # libtool script then.
27645  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27646  if test -f "$ltmain_in"; then
27647    test -f Makefile && make "$ltmain"
27648  fi
27649fi
27650
27651
27652ac_ext=c
27653ac_cpp='$CPP $CPPFLAGS'
27654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27656ac_compiler_gnu=$ac_cv_c_compiler_gnu
27657
27658CC=$lt_save_CC
27659LDCXX=$LD
27660LD=$lt_save_LD
27661GCC=$lt_save_GCC
27662with_gnu_ldcxx=$with_gnu_ld
27663with_gnu_ld=$lt_save_with_gnu_ld
27664lt_cv_path_LDCXX=$lt_cv_path_LD
27665lt_cv_path_LD=$lt_save_path_LD
27666lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
27667lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
27668
27669	else
27670	  tagname=""
27671	fi
27672	;;
27673
27674      F77)
27675	if test -n "$F77" && test "X$F77" != "Xno"; then
27676
27677ac_ext=f
27678ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27679ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27680ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27681
27682
27683archive_cmds_need_lc_F77=no
27684allow_undefined_flag_F77=
27685always_export_symbols_F77=no
27686archive_expsym_cmds_F77=
27687export_dynamic_flag_spec_F77=
27688hardcode_direct_F77=no
27689hardcode_libdir_flag_spec_F77=
27690hardcode_libdir_flag_spec_ld_F77=
27691hardcode_libdir_separator_F77=
27692hardcode_minus_L_F77=no
27693hardcode_automatic_F77=no
27694module_cmds_F77=
27695module_expsym_cmds_F77=
27696link_all_deplibs_F77=unknown
27697old_archive_cmds_F77=$old_archive_cmds
27698no_undefined_flag_F77=
27699whole_archive_flag_spec_F77=
27700enable_shared_with_static_runtimes_F77=no
27701
27702# Source file extension for f77 test sources.
27703ac_ext=f
27704
27705# Object file extension for compiled f77 test sources.
27706objext=o
27707objext_F77=$objext
27708
27709# Code to be used in simple compile tests
27710lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
27711
27712# Code to be used in simple link tests
27713lt_simple_link_test_code="      program t\n      end\n"
27714
27715# ltmain only uses $CC for tagged configurations so make sure $CC is set.
27716
27717# If no C compiler was specified, use CC.
27718LTCC=${LTCC-"$CC"}
27719
27720# If no C compiler flags were specified, use CFLAGS.
27721LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27722
27723# Allow CC to be a program name with arguments.
27724compiler=$CC
27725
27726
27727# save warnings/boilerplate of simple test code
27728ac_outfile=conftest.$ac_objext
27729printf "$lt_simple_compile_test_code" >conftest.$ac_ext
27730eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27731_lt_compiler_boilerplate=`cat conftest.err`
27732$rm conftest*
27733
27734ac_outfile=conftest.$ac_objext
27735printf "$lt_simple_link_test_code" >conftest.$ac_ext
27736eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27737_lt_linker_boilerplate=`cat conftest.err`
27738$rm conftest*
27739
27740
27741# Allow CC to be a program name with arguments.
27742lt_save_CC="$CC"
27743CC=${F77-"f77"}
27744compiler=$CC
27745compiler_F77=$CC
27746for cc_temp in $compiler""; do
27747  case $cc_temp in
27748    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27749    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27750    \-*) ;;
27751    *) break;;
27752  esac
27753done
27754cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27755
27756
27757{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
27758echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
27759{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
27760echo "${ECHO_T}$can_build_shared" >&6; }
27761
27762{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
27763echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
27764test "$can_build_shared" = "no" && enable_shared=no
27765
27766# On AIX, shared libraries and static libraries use the same namespace, and
27767# are all built from PIC.
27768case $host_os in
27769aix3*)
27770  test "$enable_shared" = yes && enable_static=no
27771  if test -n "$RANLIB"; then
27772    archive_cmds="$archive_cmds~\$RANLIB \$lib"
27773    postinstall_cmds='$RANLIB $lib'
27774  fi
27775  ;;
27776aix4* | aix5*)
27777  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
27778    test "$enable_shared" = yes && enable_static=no
27779  fi
27780  ;;
27781esac
27782{ echo "$as_me:$LINENO: result: $enable_shared" >&5
27783echo "${ECHO_T}$enable_shared" >&6; }
27784
27785{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
27786echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
27787# Make sure either enable_shared or enable_static is yes.
27788test "$enable_shared" = yes || enable_static=yes
27789{ echo "$as_me:$LINENO: result: $enable_static" >&5
27790echo "${ECHO_T}$enable_static" >&6; }
27791
27792GCC_F77="$G77"
27793LD_F77="$LD"
27794
27795lt_prog_compiler_wl_F77=
27796lt_prog_compiler_pic_F77=
27797lt_prog_compiler_static_F77=
27798
27799{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
27800echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
27801
27802  if test "$GCC" = yes; then
27803    lt_prog_compiler_wl_F77='-Wl,'
27804    lt_prog_compiler_static_F77='-static'
27805
27806    case $host_os in
27807      aix*)
27808      # All AIX code is PIC.
27809      if test "$host_cpu" = ia64; then
27810	# AIX 5 now supports IA64 processor
27811	lt_prog_compiler_static_F77='-Bstatic'
27812      fi
27813      ;;
27814
27815    amigaos*)
27816      # FIXME: we need at least 68020 code to build shared libraries, but
27817      # adding the `-m68020' flag to GCC prevents building anything better,
27818      # like `-m68040'.
27819      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
27820      ;;
27821
27822    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
27823      # PIC is the default for these OSes.
27824      ;;
27825
27826    mingw* | pw32* | os2*)
27827      # This hack is so that the source file can tell whether it is being
27828      # built for inclusion in a dll (and should export symbols for example).
27829      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
27830      ;;
27831
27832    darwin* | rhapsody*)
27833      # PIC is the default on this platform
27834      # Common symbols not allowed in MH_DYLIB files
27835      lt_prog_compiler_pic_F77='-fno-common'
27836      ;;
27837
27838    interix3*)
27839      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
27840      # Instead, we relocate shared libraries at runtime.
27841      ;;
27842
27843    msdosdjgpp*)
27844      # Just because we use GCC doesn't mean we suddenly get shared libraries
27845      # on systems that don't support them.
27846      lt_prog_compiler_can_build_shared_F77=no
27847      enable_shared=no
27848      ;;
27849
27850    sysv4*MP*)
27851      if test -d /usr/nec; then
27852	lt_prog_compiler_pic_F77=-Kconform_pic
27853      fi
27854      ;;
27855
27856    hpux*)
27857      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27858      # not for PA HP-UX.
27859      case $host_cpu in
27860      hppa*64*|ia64*)
27861	# +Z the default
27862	;;
27863      *)
27864	lt_prog_compiler_pic_F77='-fPIC'
27865	;;
27866      esac
27867      ;;
27868
27869    *)
27870      lt_prog_compiler_pic_F77='-fPIC'
27871      ;;
27872    esac
27873  else
27874    # PORTME Check for flag to pass linker flags through the system compiler.
27875    case $host_os in
27876    aix*)
27877      lt_prog_compiler_wl_F77='-Wl,'
27878      if test "$host_cpu" = ia64; then
27879	# AIX 5 now supports IA64 processor
27880	lt_prog_compiler_static_F77='-Bstatic'
27881      else
27882	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
27883      fi
27884      ;;
27885      darwin*)
27886        # PIC is the default on this platform
27887        # Common symbols not allowed in MH_DYLIB files
27888       case $cc_basename in
27889         xlc*)
27890         lt_prog_compiler_pic_F77='-qnocommon'
27891         lt_prog_compiler_wl_F77='-Wl,'
27892         ;;
27893       esac
27894       ;;
27895
27896    mingw* | pw32* | os2*)
27897      # This hack is so that the source file can tell whether it is being
27898      # built for inclusion in a dll (and should export symbols for example).
27899      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
27900      ;;
27901
27902    hpux9* | hpux10* | hpux11*)
27903      lt_prog_compiler_wl_F77='-Wl,'
27904      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27905      # not for PA HP-UX.
27906      case $host_cpu in
27907      hppa*64*|ia64*)
27908	# +Z the default
27909	;;
27910      *)
27911	lt_prog_compiler_pic_F77='+Z'
27912	;;
27913      esac
27914      # Is there a better lt_prog_compiler_static that works with the bundled CC?
27915      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
27916      ;;
27917
27918    irix5* | irix6* | nonstopux*)
27919      lt_prog_compiler_wl_F77='-Wl,'
27920      # PIC (with -KPIC) is the default.
27921      lt_prog_compiler_static_F77='-non_shared'
27922      ;;
27923
27924    newsos6)
27925      lt_prog_compiler_pic_F77='-KPIC'
27926      lt_prog_compiler_static_F77='-Bstatic'
27927      ;;
27928
27929    linux* | k*bsd*-gnu)
27930      case $cc_basename in
27931      icc* | ecc*)
27932	lt_prog_compiler_wl_F77='-Wl,'
27933	lt_prog_compiler_pic_F77='-KPIC'
27934	lt_prog_compiler_static_F77='-static'
27935        ;;
27936      pgcc* | pgf77* | pgf90* | pgf95*)
27937        # Portland Group compilers (*not* the Pentium gcc compiler,
27938	# which looks to be a dead project)
27939	lt_prog_compiler_wl_F77='-Wl,'
27940	lt_prog_compiler_pic_F77='-fpic'
27941	lt_prog_compiler_static_F77='-Bstatic'
27942        ;;
27943      ccc*)
27944        lt_prog_compiler_wl_F77='-Wl,'
27945        # All Alpha code is PIC.
27946        lt_prog_compiler_static_F77='-non_shared'
27947        ;;
27948      esac
27949      ;;
27950
27951    osf3* | osf4* | osf5*)
27952      lt_prog_compiler_wl_F77='-Wl,'
27953      # All OSF/1 code is PIC.
27954      lt_prog_compiler_static_F77='-non_shared'
27955      ;;
27956
27957    solaris*)
27958      lt_prog_compiler_pic_F77='-KPIC'
27959      lt_prog_compiler_static_F77='-Bstatic'
27960      case $cc_basename in
27961      f77* | f90* | f95*)
27962	lt_prog_compiler_wl_F77='-Qoption ld ';;
27963      *)
27964	lt_prog_compiler_wl_F77='-Wl,';;
27965      esac
27966      ;;
27967
27968    sunos4*)
27969      lt_prog_compiler_wl_F77='-Qoption ld '
27970      lt_prog_compiler_pic_F77='-PIC'
27971      lt_prog_compiler_static_F77='-Bstatic'
27972      ;;
27973
27974    sysv4 | sysv4.2uw2* | sysv4.3*)
27975      lt_prog_compiler_wl_F77='-Wl,'
27976      lt_prog_compiler_pic_F77='-KPIC'
27977      lt_prog_compiler_static_F77='-Bstatic'
27978      ;;
27979
27980    sysv4*MP*)
27981      if test -d /usr/nec ;then
27982	lt_prog_compiler_pic_F77='-Kconform_pic'
27983	lt_prog_compiler_static_F77='-Bstatic'
27984      fi
27985      ;;
27986
27987    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
27988      lt_prog_compiler_wl_F77='-Wl,'
27989      lt_prog_compiler_pic_F77='-KPIC'
27990      lt_prog_compiler_static_F77='-Bstatic'
27991      ;;
27992
27993    unicos*)
27994      lt_prog_compiler_wl_F77='-Wl,'
27995      lt_prog_compiler_can_build_shared_F77=no
27996      ;;
27997
27998    uts4*)
27999      lt_prog_compiler_pic_F77='-pic'
28000      lt_prog_compiler_static_F77='-Bstatic'
28001      ;;
28002
28003    *)
28004      lt_prog_compiler_can_build_shared_F77=no
28005      ;;
28006    esac
28007  fi
28008
28009{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
28010echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
28011
28012#
28013# Check to make sure the PIC flag actually works.
28014#
28015if test -n "$lt_prog_compiler_pic_F77"; then
28016
28017{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
28018echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
28019if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
28020  echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022  lt_prog_compiler_pic_works_F77=no
28023  ac_outfile=conftest.$ac_objext
28024   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28025   lt_compiler_flag="$lt_prog_compiler_pic_F77"
28026   # Insert the option either (1) after the last *FLAGS variable, or
28027   # (2) before a word containing "conftest.", or (3) at the end.
28028   # Note that $ac_compile itself does not contain backslashes and begins
28029   # with a dollar sign (not a hyphen), so the echo should work correctly.
28030   # The option is referenced via a variable to avoid confusing sed.
28031   lt_compile=`echo "$ac_compile" | $SED \
28032   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28033   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28034   -e 's:$: $lt_compiler_flag:'`
28035   (eval echo "\"\$as_me:28035: $lt_compile\"" >&5)
28036   (eval "$lt_compile" 2>conftest.err)
28037   ac_status=$?
28038   cat conftest.err >&5
28039   echo "$as_me:28039: \$? = $ac_status" >&5
28040   if (exit $ac_status) && test -s "$ac_outfile"; then
28041     # The compiler can only warn and ignore the option if not recognized
28042     # So say no if there are warnings other than the usual output.
28043     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
28044     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28045     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
28046       lt_prog_compiler_pic_works_F77=yes
28047     fi
28048   fi
28049   $rm conftest*
28050
28051fi
28052{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
28053echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
28054
28055if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
28056    case $lt_prog_compiler_pic_F77 in
28057     "" | " "*) ;;
28058     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
28059     esac
28060else
28061    lt_prog_compiler_pic_F77=
28062     lt_prog_compiler_can_build_shared_F77=no
28063fi
28064
28065fi
28066case $host_os in
28067  # For platforms which do not support PIC, -DPIC is meaningless:
28068  *djgpp*)
28069    lt_prog_compiler_pic_F77=
28070    ;;
28071  *)
28072    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
28073    ;;
28074esac
28075
28076#
28077# Check to make sure the static flag actually works.
28078#
28079wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
28080{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
28081echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
28082if test "${lt_prog_compiler_static_works_F77+set}" = set; then
28083  echo $ECHO_N "(cached) $ECHO_C" >&6
28084else
28085  lt_prog_compiler_static_works_F77=no
28086   save_LDFLAGS="$LDFLAGS"
28087   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
28088   printf "$lt_simple_link_test_code" > conftest.$ac_ext
28089   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
28090     # The linker can only warn and ignore the option if not recognized
28091     # So say no if there are warnings
28092     if test -s conftest.err; then
28093       # Append any errors to the config.log.
28094       cat conftest.err 1>&5
28095       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
28096       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
28097       if diff conftest.exp conftest.er2 >/dev/null; then
28098         lt_prog_compiler_static_works_F77=yes
28099       fi
28100     else
28101       lt_prog_compiler_static_works_F77=yes
28102     fi
28103   fi
28104   $rm conftest*
28105   LDFLAGS="$save_LDFLAGS"
28106
28107fi
28108{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
28109echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
28110
28111if test x"$lt_prog_compiler_static_works_F77" = xyes; then
28112    :
28113else
28114    lt_prog_compiler_static_F77=
28115fi
28116
28117
28118{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
28119echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
28120if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
28121  echo $ECHO_N "(cached) $ECHO_C" >&6
28122else
28123  lt_cv_prog_compiler_c_o_F77=no
28124   $rm -r conftest 2>/dev/null
28125   mkdir conftest
28126   cd conftest
28127   mkdir out
28128   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28129
28130   lt_compiler_flag="-o out/conftest2.$ac_objext"
28131   # Insert the option either (1) after the last *FLAGS variable, or
28132   # (2) before a word containing "conftest.", or (3) at the end.
28133   # Note that $ac_compile itself does not contain backslashes and begins
28134   # with a dollar sign (not a hyphen), so the echo should work correctly.
28135   lt_compile=`echo "$ac_compile" | $SED \
28136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28138   -e 's:$: $lt_compiler_flag:'`
28139   (eval echo "\"\$as_me:28139: $lt_compile\"" >&5)
28140   (eval "$lt_compile" 2>out/conftest.err)
28141   ac_status=$?
28142   cat out/conftest.err >&5
28143   echo "$as_me:28143: \$? = $ac_status" >&5
28144   if (exit $ac_status) && test -s out/conftest2.$ac_objext
28145   then
28146     # The compiler can only warn and ignore the option if not recognized
28147     # So say no if there are warnings
28148     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
28149     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
28150     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
28151       lt_cv_prog_compiler_c_o_F77=yes
28152     fi
28153   fi
28154   chmod u+w . 2>&5
28155   $rm conftest*
28156   # SGI C++ compiler will create directory out/ii_files/ for
28157   # template instantiation
28158   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
28159   $rm out/* && rmdir out
28160   cd ..
28161   rmdir conftest
28162   $rm conftest*
28163
28164fi
28165{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
28166echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
28167
28168
28169hard_links="nottested"
28170if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
28171  # do not overwrite the value of need_locks provided by the user
28172  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
28173echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
28174  hard_links=yes
28175  $rm conftest*
28176  ln conftest.a conftest.b 2>/dev/null && hard_links=no
28177  touch conftest.a
28178  ln conftest.a conftest.b 2>&5 || hard_links=no
28179  ln conftest.a conftest.b 2>/dev/null && hard_links=no
28180  { echo "$as_me:$LINENO: result: $hard_links" >&5
28181echo "${ECHO_T}$hard_links" >&6; }
28182  if test "$hard_links" = no; then
28183    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
28184echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
28185    need_locks=warn
28186  fi
28187else
28188  need_locks=no
28189fi
28190
28191{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
28192echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
28193
28194  runpath_var=
28195  allow_undefined_flag_F77=
28196  enable_shared_with_static_runtimes_F77=no
28197  archive_cmds_F77=
28198  archive_expsym_cmds_F77=
28199  old_archive_From_new_cmds_F77=
28200  old_archive_from_expsyms_cmds_F77=
28201  export_dynamic_flag_spec_F77=
28202  whole_archive_flag_spec_F77=
28203  thread_safe_flag_spec_F77=
28204  hardcode_libdir_flag_spec_F77=
28205  hardcode_libdir_flag_spec_ld_F77=
28206  hardcode_libdir_separator_F77=
28207  hardcode_direct_F77=no
28208  hardcode_minus_L_F77=no
28209  hardcode_shlibpath_var_F77=unsupported
28210  link_all_deplibs_F77=unknown
28211  hardcode_automatic_F77=no
28212  module_cmds_F77=
28213  module_expsym_cmds_F77=
28214  always_export_symbols_F77=no
28215  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
28216  # include_expsyms should be a list of space-separated symbols to be *always*
28217  # included in the symbol list
28218  include_expsyms_F77=
28219  # exclude_expsyms can be an extended regexp of symbols to exclude
28220  # it will be wrapped by ` (' and `)$', so one must not match beginning or
28221  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
28222  # as well as any symbol that contains `d'.
28223  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
28224  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
28225  # platforms (ab)use it in PIC code, but their linkers get confused if
28226  # the symbol is explicitly referenced.  Since portable code cannot
28227  # rely on this symbol name, it's probably fine to never include it in
28228  # preloaded symbol tables.
28229  extract_expsyms_cmds=
28230  # Just being paranoid about ensuring that cc_basename is set.
28231  for cc_temp in $compiler""; do
28232  case $cc_temp in
28233    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28234    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28235    \-*) ;;
28236    *) break;;
28237  esac
28238done
28239cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
28240
28241  case $host_os in
28242  cygwin* | mingw* | pw32*)
28243    # FIXME: the MSVC++ port hasn't been tested in a loooong time
28244    # When not using gcc, we currently assume that we are using
28245    # Microsoft Visual C++.
28246    if test "$GCC" != yes; then
28247      with_gnu_ld=no
28248    fi
28249    ;;
28250  interix*)
28251    # we just hope/assume this is gcc and not c89 (= MSVC++)
28252    with_gnu_ld=yes
28253    ;;
28254  openbsd*)
28255    with_gnu_ld=no
28256    ;;
28257  esac
28258
28259  ld_shlibs_F77=yes
28260  if test "$with_gnu_ld" = yes; then
28261    # If archive_cmds runs LD, not CC, wlarc should be empty
28262    wlarc='${wl}'
28263
28264    # Set some defaults for GNU ld with shared library support. These
28265    # are reset later if shared libraries are not supported. Putting them
28266    # here allows them to be overridden if necessary.
28267    runpath_var=LD_RUN_PATH
28268    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
28269    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
28270    # ancient GNU ld didn't support --whole-archive et. al.
28271    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
28272	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28273      else
28274  	whole_archive_flag_spec_F77=
28275    fi
28276    supports_anon_versioning=no
28277    case `$LD -v 2>/dev/null` in
28278      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
28279      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
28280      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
28281      *\ 2.11.*) ;; # other 2.11 versions
28282      *) supports_anon_versioning=yes ;;
28283    esac
28284
28285    # See if GNU ld supports shared libraries.
28286    case $host_os in
28287    aix3* | aix4* | aix5*)
28288      # On AIX/PPC, the GNU linker is very broken
28289      if test "$host_cpu" != ia64; then
28290	ld_shlibs_F77=no
28291	cat <<EOF 1>&2
28292
28293*** Warning: the GNU linker, at least up to release 2.9.1, is reported
28294*** to be unable to reliably create shared libraries on AIX.
28295*** Therefore, libtool is disabling shared libraries support.  If you
28296*** really care for shared libraries, you may want to modify your PATH
28297*** so that a non-GNU linker is found, and then restart.
28298
28299EOF
28300      fi
28301      ;;
28302
28303    amigaos*)
28304      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)'
28305      hardcode_libdir_flag_spec_F77='-L$libdir'
28306      hardcode_minus_L_F77=yes
28307
28308      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
28309      # that the semantics of dynamic libraries on AmigaOS, at least up
28310      # to version 4, is to share data among multiple programs linked
28311      # with the same dynamic library.  Since this doesn't match the
28312      # behavior of shared libraries on other platforms, we can't use
28313      # them.
28314      ld_shlibs_F77=no
28315      ;;
28316
28317    beos*)
28318      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28319	allow_undefined_flag_F77=unsupported
28320	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
28321	# support --undefined.  This deserves some investigation.  FIXME
28322	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28323      else
28324	ld_shlibs_F77=no
28325      fi
28326      ;;
28327
28328    cygwin* | mingw* | pw32*)
28329      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
28330      # as there is no search path for DLLs.
28331      hardcode_libdir_flag_spec_F77='-L$libdir'
28332      allow_undefined_flag_F77=unsupported
28333      always_export_symbols_F77=no
28334      enable_shared_with_static_runtimes_F77=yes
28335      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
28336
28337      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
28338        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28339	# If the export-symbols file already is a .def file (1st line
28340	# is EXPORTS), use it as is; otherwise, prepend...
28341	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
28342	  cp $export_symbols $output_objdir/$soname.def;
28343	else
28344	  echo EXPORTS > $output_objdir/$soname.def;
28345	  cat $export_symbols >> $output_objdir/$soname.def;
28346	fi~
28347	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28348      else
28349	ld_shlibs_F77=no
28350      fi
28351      ;;
28352
28353    interix3*)
28354      hardcode_direct_F77=no
28355      hardcode_shlibpath_var_F77=no
28356      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
28357      export_dynamic_flag_spec_F77='${wl}-E'
28358      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
28359      # Instead, shared libraries are loaded at an image base (0x10000000 by
28360      # default) and relocated if they conflict, which is a slow very memory
28361      # consuming and fragmenting process.  To avoid this, we pick a random,
28362      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
28363      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
28364      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'
28365      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'
28366      ;;
28367
28368    linux* | k*bsd*-gnu)
28369      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28370	tmp_addflag=
28371	case $cc_basename,$host_cpu in
28372	pgcc*)				# Portland Group C compiler
28373	  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'
28374	  tmp_addflag=' $pic_flag'
28375	  ;;
28376	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
28377	  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'
28378	  tmp_addflag=' $pic_flag -Mnomain' ;;
28379	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
28380	  tmp_addflag=' -i_dynamic' ;;
28381	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
28382	  tmp_addflag=' -i_dynamic -nofor_main' ;;
28383	ifc* | ifort*)			# Intel Fortran compiler
28384	  tmp_addflag=' -nofor_main' ;;
28385	esac
28386	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28387
28388	if test $supports_anon_versioning = yes; then
28389	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
28390  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28391  $echo "local: *; };" >> $output_objdir/$libname.ver~
28392	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28393	fi
28394	link_all_deplibs_F77=no
28395      else
28396	ld_shlibs_F77=no
28397      fi
28398      ;;
28399
28400    netbsd* | netbsdelf*-gnu)
28401      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28402	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
28403	wlarc=
28404      else
28405	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28406	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28407      fi
28408      ;;
28409
28410    solaris*)
28411      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
28412	ld_shlibs_F77=no
28413	cat <<EOF 1>&2
28414
28415*** Warning: The releases 2.8.* of the GNU linker cannot reliably
28416*** create shared libraries on Solaris systems.  Therefore, libtool
28417*** is disabling shared libraries support.  We urge you to upgrade GNU
28418*** binutils to release 2.9.1 or newer.  Another option is to modify
28419*** your PATH or compiler configuration so that the native linker is
28420*** used, and then restart.
28421
28422EOF
28423      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28424	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28425	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28426      else
28427	ld_shlibs_F77=no
28428      fi
28429      ;;
28430
28431    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
28432      case `$LD -v 2>&1` in
28433        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
28434	ld_shlibs_F77=no
28435	cat <<_LT_EOF 1>&2
28436
28437*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
28438*** reliably create shared libraries on SCO systems.  Therefore, libtool
28439*** is disabling shared libraries support.  We urge you to upgrade GNU
28440*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
28441*** your PATH or compiler configuration so that the native linker is
28442*** used, and then restart.
28443
28444_LT_EOF
28445	;;
28446	*)
28447	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28448	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
28449	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
28450	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
28451	  else
28452	    ld_shlibs_F77=no
28453	  fi
28454	;;
28455      esac
28456      ;;
28457
28458    sunos4*)
28459      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28460      wlarc=
28461      hardcode_direct_F77=yes
28462      hardcode_shlibpath_var_F77=no
28463      ;;
28464
28465    *)
28466      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28467	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28468	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28469      else
28470	ld_shlibs_F77=no
28471      fi
28472      ;;
28473    esac
28474
28475    if test "$ld_shlibs_F77" = no; then
28476      runpath_var=
28477      hardcode_libdir_flag_spec_F77=
28478      export_dynamic_flag_spec_F77=
28479      whole_archive_flag_spec_F77=
28480    fi
28481  else
28482    # PORTME fill in a description of your system's linker (not GNU ld)
28483    case $host_os in
28484    aix3*)
28485      allow_undefined_flag_F77=unsupported
28486      always_export_symbols_F77=yes
28487      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'
28488      # Note: this linker hardcodes the directories in LIBPATH if there
28489      # are no directories specified by -L.
28490      hardcode_minus_L_F77=yes
28491      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
28492	# Neither direct hardcoding nor static linking is supported with a
28493	# broken collect2.
28494	hardcode_direct_F77=unsupported
28495      fi
28496      ;;
28497
28498    aix4* | aix5*)
28499      if test "$host_cpu" = ia64; then
28500	# On IA64, the linker does run time linking by default, so we don't
28501	# have to do anything special.
28502	aix_use_runtimelinking=no
28503	exp_sym_flag='-Bexport'
28504	no_entry_flag=""
28505      else
28506	# If we're using GNU nm, then we don't want the "-C" option.
28507	# -C means demangle to AIX nm, but means don't demangle with GNU nm
28508	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
28509	  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'
28510	else
28511	  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'
28512	fi
28513	aix_use_runtimelinking=no
28514
28515	# Test if we are trying to use run time linking or normal
28516	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
28517	# need to do runtime linking.
28518	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
28519	  for ld_flag in $LDFLAGS; do
28520  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
28521  	    aix_use_runtimelinking=yes
28522  	    break
28523  	  fi
28524	  done
28525	  ;;
28526	esac
28527
28528	exp_sym_flag='-bexport'
28529	no_entry_flag='-bnoentry'
28530      fi
28531
28532      # When large executables or shared objects are built, AIX ld can
28533      # have problems creating the table of contents.  If linking a library
28534      # or program results in "error TOC overflow" add -mminimal-toc to
28535      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
28536      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
28537
28538      archive_cmds_F77=''
28539      hardcode_direct_F77=yes
28540      hardcode_libdir_separator_F77=':'
28541      link_all_deplibs_F77=yes
28542
28543      if test "$GCC" = yes; then
28544	case $host_os in aix4.[012]|aix4.[012].*)
28545	# We only want to do this on AIX 4.2 and lower, the check
28546	# below for broken collect2 doesn't work under 4.3+
28547	  collect2name=`${CC} -print-prog-name=collect2`
28548	  if test -f "$collect2name" && \
28549  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
28550	  then
28551  	  # We have reworked collect2
28552  	  hardcode_direct_F77=yes
28553	  else
28554  	  # We have old collect2
28555  	  hardcode_direct_F77=unsupported
28556  	  # It fails to find uninstalled libraries when the uninstalled
28557  	  # path is not listed in the libpath.  Setting hardcode_minus_L
28558  	  # to unsupported forces relinking
28559  	  hardcode_minus_L_F77=yes
28560  	  hardcode_libdir_flag_spec_F77='-L$libdir'
28561  	  hardcode_libdir_separator_F77=
28562	  fi
28563	  ;;
28564	esac
28565	shared_flag='-shared'
28566	if test "$aix_use_runtimelinking" = yes; then
28567	  shared_flag="$shared_flag "'${wl}-G'
28568	fi
28569      else
28570	# not using gcc
28571	if test "$host_cpu" = ia64; then
28572  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
28573  	# chokes on -Wl,-G. The following line is correct:
28574	  shared_flag='-G'
28575	else
28576	  if test "$aix_use_runtimelinking" = yes; then
28577	    shared_flag='${wl}-G'
28578	  else
28579	    shared_flag='${wl}-bM:SRE'
28580	  fi
28581	fi
28582      fi
28583
28584      # It seems that -bexpall does not export symbols beginning with
28585      # underscore (_), so it is better to generate a list of symbols to export.
28586      always_export_symbols_F77=yes
28587      if test "$aix_use_runtimelinking" = yes; then
28588	# Warning - without using the other runtime loading flags (-brtl),
28589	# -berok will link without error, but may produce a broken library.
28590	allow_undefined_flag_F77='-berok'
28591       # Determine the default libpath from the value encoded in an empty executable.
28592       cat >conftest.$ac_ext <<_ACEOF
28593      program main
28594
28595      end
28596_ACEOF
28597rm -f conftest.$ac_objext conftest$ac_exeext
28598if { (ac_try="$ac_link"
28599case "(($ac_try" in
28600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601  *) ac_try_echo=$ac_try;;
28602esac
28603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604  (eval "$ac_link") 2>conftest.er1
28605  ac_status=$?
28606  grep -v '^ *+' conftest.er1 >conftest.err
28607  rm -f conftest.er1
28608  cat conftest.err >&5
28609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610  (exit $ac_status); } && {
28611	 test -z "$ac_f77_werror_flag" ||
28612	 test ! -s conftest.err
28613       } && test -s conftest$ac_exeext &&
28614       $as_test_x conftest$ac_exeext; then
28615
28616aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
28617}'`
28618# Check for a 64-bit object if we didn't find anything.
28619if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
28620}'`; fi
28621else
28622  echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625
28626fi
28627
28628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28629      conftest$ac_exeext conftest.$ac_ext
28630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
28631
28632       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
28633	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"
28634       else
28635	if test "$host_cpu" = ia64; then
28636	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
28637	  allow_undefined_flag_F77="-z nodefs"
28638	  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"
28639	else
28640	 # Determine the default libpath from the value encoded in an empty executable.
28641	 cat >conftest.$ac_ext <<_ACEOF
28642      program main
28643
28644      end
28645_ACEOF
28646rm -f conftest.$ac_objext conftest$ac_exeext
28647if { (ac_try="$ac_link"
28648case "(($ac_try" in
28649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650  *) ac_try_echo=$ac_try;;
28651esac
28652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653  (eval "$ac_link") 2>conftest.er1
28654  ac_status=$?
28655  grep -v '^ *+' conftest.er1 >conftest.err
28656  rm -f conftest.er1
28657  cat conftest.err >&5
28658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659  (exit $ac_status); } && {
28660	 test -z "$ac_f77_werror_flag" ||
28661	 test ! -s conftest.err
28662       } && test -s conftest$ac_exeext &&
28663       $as_test_x conftest$ac_exeext; then
28664
28665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
28666}'`
28667# Check for a 64-bit object if we didn't find anything.
28668if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
28669}'`; fi
28670else
28671  echo "$as_me: failed program was:" >&5
28672sed 's/^/| /' conftest.$ac_ext >&5
28673
28674
28675fi
28676
28677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28678      conftest$ac_exeext conftest.$ac_ext
28679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
28680
28681	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
28682	  # Warning - without using the other run time loading flags,
28683	  # -berok will link without error, but may produce a broken library.
28684	  no_undefined_flag_F77=' ${wl}-bernotok'
28685	  allow_undefined_flag_F77=' ${wl}-berok'
28686	  # Exported symbols can be pulled into shared objects from archives
28687	  whole_archive_flag_spec_F77='$convenience'
28688	  archive_cmds_need_lc_F77=yes
28689	  # This is similar to how AIX traditionally builds its shared libraries.
28690	  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'
28691	fi
28692      fi
28693      ;;
28694
28695    amigaos*)
28696      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)'
28697      hardcode_libdir_flag_spec_F77='-L$libdir'
28698      hardcode_minus_L_F77=yes
28699      # see comment about different semantics on the GNU ld section
28700      ld_shlibs_F77=no
28701      ;;
28702
28703    bsdi[45]*)
28704      export_dynamic_flag_spec_F77=-rdynamic
28705      ;;
28706
28707    cygwin* | mingw* | pw32*)
28708      # When not using gcc, we currently assume that we are using
28709      # Microsoft Visual C++.
28710      # hardcode_libdir_flag_spec is actually meaningless, as there is
28711      # no search path for DLLs.
28712      hardcode_libdir_flag_spec_F77=' '
28713      allow_undefined_flag_F77=unsupported
28714      # Tell ltmain to make .lib files, not .a files.
28715      libext=lib
28716      # Tell ltmain to make .dll files, not .so files.
28717      shrext_cmds=".dll"
28718      # FIXME: Setting linknames here is a bad hack.
28719      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
28720      # The linker will automatically build a .lib file if we build a DLL.
28721      old_archive_From_new_cmds_F77='true'
28722      # FIXME: Should let the user specify the lib program.
28723      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
28724      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
28725      enable_shared_with_static_runtimes_F77=yes
28726      ;;
28727
28728    darwin* | rhapsody*)
28729      case $host_os in
28730        rhapsody* | darwin1.[012])
28731         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
28732         ;;
28733       *) # Darwin 1.3 on
28734         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
28735           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
28736         else
28737           case ${MACOSX_DEPLOYMENT_TARGET} in
28738             10.[012])
28739               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
28740               ;;
28741             10.*)
28742               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
28743               ;;
28744           esac
28745         fi
28746         ;;
28747      esac
28748      archive_cmds_need_lc_F77=no
28749      hardcode_direct_F77=no
28750      hardcode_automatic_F77=yes
28751      hardcode_shlibpath_var_F77=unsupported
28752      whole_archive_flag_spec_F77=''
28753      link_all_deplibs_F77=yes
28754    if test "$GCC" = yes ; then
28755    	output_verbose_link_cmd='echo'
28756        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
28757      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
28758      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
28759      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28760      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}'
28761    else
28762      case $cc_basename in
28763        xlc*)
28764         output_verbose_link_cmd='echo'
28765         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
28766         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
28767          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
28768         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28769          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}'
28770          ;;
28771       *)
28772         ld_shlibs_F77=no
28773          ;;
28774      esac
28775    fi
28776      ;;
28777
28778    dgux*)
28779      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28780      hardcode_libdir_flag_spec_F77='-L$libdir'
28781      hardcode_shlibpath_var_F77=no
28782      ;;
28783
28784    freebsd1*)
28785      ld_shlibs_F77=no
28786      ;;
28787
28788    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
28789    # support.  Future versions do this automatically, but an explicit c++rt0.o
28790    # does not break anything, and helps significantly (at the cost of a little
28791    # extra space).
28792    freebsd2.2*)
28793      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
28794      hardcode_libdir_flag_spec_F77='-R$libdir'
28795      hardcode_direct_F77=yes
28796      hardcode_shlibpath_var_F77=no
28797      ;;
28798
28799    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
28800    freebsd2*)
28801      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28802      hardcode_direct_F77=yes
28803      hardcode_minus_L_F77=yes
28804      hardcode_shlibpath_var_F77=no
28805      ;;
28806
28807    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
28808    freebsd* | dragonfly*)
28809      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
28810      hardcode_libdir_flag_spec_F77='-R$libdir'
28811      hardcode_direct_F77=yes
28812      hardcode_shlibpath_var_F77=no
28813      ;;
28814
28815    hpux9*)
28816      if test "$GCC" = yes; then
28817	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'
28818      else
28819	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'
28820      fi
28821      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
28822      hardcode_libdir_separator_F77=:
28823      hardcode_direct_F77=yes
28824
28825      # hardcode_minus_L: Not really in the search PATH,
28826      # but as the default location of the library.
28827      hardcode_minus_L_F77=yes
28828      export_dynamic_flag_spec_F77='${wl}-E'
28829      ;;
28830
28831    hpux10*)
28832      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
28833	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28834      else
28835	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
28836      fi
28837      if test "$with_gnu_ld" = no; then
28838	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
28839	hardcode_libdir_separator_F77=:
28840
28841	hardcode_direct_F77=yes
28842	export_dynamic_flag_spec_F77='${wl}-E'
28843
28844	# hardcode_minus_L: Not really in the search PATH,
28845	# but as the default location of the library.
28846	hardcode_minus_L_F77=yes
28847      fi
28848      ;;
28849
28850    hpux11*)
28851      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
28852	case $host_cpu in
28853	hppa*64*)
28854	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28855	  ;;
28856	ia64*)
28857	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
28858	  ;;
28859	*)
28860	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28861	  ;;
28862	esac
28863      else
28864	case $host_cpu in
28865	hppa*64*)
28866	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28867	  ;;
28868	ia64*)
28869	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
28870	  ;;
28871	*)
28872	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28873	  ;;
28874	esac
28875      fi
28876      if test "$with_gnu_ld" = no; then
28877	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
28878	hardcode_libdir_separator_F77=:
28879
28880	case $host_cpu in
28881	hppa*64*|ia64*)
28882	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
28883	  hardcode_direct_F77=no
28884	  hardcode_shlibpath_var_F77=no
28885	  ;;
28886	*)
28887	  hardcode_direct_F77=yes
28888	  export_dynamic_flag_spec_F77='${wl}-E'
28889
28890	  # hardcode_minus_L: Not really in the search PATH,
28891	  # but as the default location of the library.
28892	  hardcode_minus_L_F77=yes
28893	  ;;
28894	esac
28895      fi
28896      ;;
28897
28898    irix5* | irix6* | nonstopux*)
28899      if test "$GCC" = yes; then
28900	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'
28901      else
28902	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'
28903	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
28904      fi
28905      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
28906      hardcode_libdir_separator_F77=:
28907      link_all_deplibs_F77=yes
28908      ;;
28909
28910    netbsd* | netbsdelf*-gnu)
28911      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28912	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
28913      else
28914	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
28915      fi
28916      hardcode_libdir_flag_spec_F77='-R$libdir'
28917      hardcode_direct_F77=yes
28918      hardcode_shlibpath_var_F77=no
28919      ;;
28920
28921    newsos6)
28922      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28923      hardcode_direct_F77=yes
28924      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
28925      hardcode_libdir_separator_F77=:
28926      hardcode_shlibpath_var_F77=no
28927      ;;
28928
28929    openbsd*)
28930      hardcode_direct_F77=yes
28931      hardcode_shlibpath_var_F77=no
28932      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28933	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28934	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
28935	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
28936	export_dynamic_flag_spec_F77='${wl}-E'
28937      else
28938       case $host_os in
28939	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
28940	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28941	   hardcode_libdir_flag_spec_F77='-R$libdir'
28942	   ;;
28943	 *)
28944	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28945	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
28946	   ;;
28947       esac
28948      fi
28949      ;;
28950
28951    os2*)
28952      hardcode_libdir_flag_spec_F77='-L$libdir'
28953      hardcode_minus_L_F77=yes
28954      allow_undefined_flag_F77=unsupported
28955      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'
28956      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
28957      ;;
28958
28959    osf3*)
28960      if test "$GCC" = yes; then
28961	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
28962	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'
28963      else
28964	allow_undefined_flag_F77=' -expect_unresolved \*'
28965	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'
28966      fi
28967      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
28968      hardcode_libdir_separator_F77=:
28969      ;;
28970
28971    osf4* | osf5*)	# as osf3* with the addition of -msym flag
28972      if test "$GCC" = yes; then
28973	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
28974	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'
28975	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
28976      else
28977	allow_undefined_flag_F77=' -expect_unresolved \*'
28978	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'
28979	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~
28980	$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'
28981
28982	# Both c and cxx compiler support -rpath directly
28983	hardcode_libdir_flag_spec_F77='-rpath $libdir'
28984      fi
28985      hardcode_libdir_separator_F77=:
28986      ;;
28987
28988    solaris*)
28989      no_undefined_flag_F77=' -z text'
28990      if test "$GCC" = yes; then
28991	wlarc='${wl}'
28992	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28993	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28994	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
28995      else
28996	wlarc=''
28997	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28998	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28999  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
29000      fi
29001      hardcode_libdir_flag_spec_F77='-R$libdir'
29002      hardcode_shlibpath_var_F77=no
29003      case $host_os in
29004      solaris2.[0-5] | solaris2.[0-5].*) ;;
29005      *)
29006 	# The compiler driver will combine linker options so we
29007 	# cannot just pass the convience library names through
29008 	# without $wl, iff we do not link with $LD.
29009 	# Luckily, gcc supports the same syntax we need for Sun Studio.
29010 	# Supported since Solaris 2.6 (maybe 2.5.1?)
29011 	case $wlarc in
29012 	'')
29013 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
29014 	*)
29015 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
29016 	esac ;;
29017      esac
29018      link_all_deplibs_F77=yes
29019      ;;
29020
29021    sunos4*)
29022      if test "x$host_vendor" = xsequent; then
29023	# Use $CC to link under sequent, because it throws in some extra .o
29024	# files that make .init and .fini sections work.
29025	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
29026      else
29027	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
29028      fi
29029      hardcode_libdir_flag_spec_F77='-L$libdir'
29030      hardcode_direct_F77=yes
29031      hardcode_minus_L_F77=yes
29032      hardcode_shlibpath_var_F77=no
29033      ;;
29034
29035    sysv4)
29036      case $host_vendor in
29037	sni)
29038	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29039	  hardcode_direct_F77=yes # is this really true???
29040	;;
29041	siemens)
29042	  ## LD is ld it makes a PLAMLIB
29043	  ## CC just makes a GrossModule.
29044	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29045	  reload_cmds_F77='$CC -r -o $output$reload_objs'
29046	  hardcode_direct_F77=no
29047        ;;
29048	motorola)
29049	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29050	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
29051	;;
29052      esac
29053      runpath_var='LD_RUN_PATH'
29054      hardcode_shlibpath_var_F77=no
29055      ;;
29056
29057    sysv4.3*)
29058      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29059      hardcode_shlibpath_var_F77=no
29060      export_dynamic_flag_spec_F77='-Bexport'
29061      ;;
29062
29063    sysv4*MP*)
29064      if test -d /usr/nec; then
29065	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29066	hardcode_shlibpath_var_F77=no
29067	runpath_var=LD_RUN_PATH
29068	hardcode_runpath_var=yes
29069	ld_shlibs_F77=yes
29070      fi
29071      ;;
29072
29073    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
29074      no_undefined_flag_F77='${wl}-z,text'
29075      archive_cmds_need_lc_F77=no
29076      hardcode_shlibpath_var_F77=no
29077      runpath_var='LD_RUN_PATH'
29078
29079      if test "$GCC" = yes; then
29080	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29081	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29082      else
29083	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29084	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
29085      fi
29086      ;;
29087
29088    sysv5* | sco3.2v5* | sco5v6*)
29089      # Note: We can NOT use -z defs as we might desire, because we do not
29090      # link with -lc, and that would cause any symbols used from libc to
29091      # always be unresolved, which means just about no library would
29092      # ever link correctly.  If we're not using GNU ld we use -z text
29093      # though, which does catch some bad symbols but isn't as heavy-handed
29094      # as -z defs.
29095      no_undefined_flag_F77='${wl}-z,text'
29096      allow_undefined_flag_F77='${wl}-z,nodefs'
29097      archive_cmds_need_lc_F77=no
29098      hardcode_shlibpath_var_F77=no
29099      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
29100      hardcode_libdir_separator_F77=':'
29101      link_all_deplibs_F77=yes
29102      export_dynamic_flag_spec_F77='${wl}-Bexport'
29103      runpath_var='LD_RUN_PATH'
29104
29105      if test "$GCC" = yes; then
29106	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
29107	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
29108      else
29109	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
29110	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
29111      fi
29112      ;;
29113
29114    uts4*)
29115      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29116      hardcode_libdir_flag_spec_F77='-L$libdir'
29117      hardcode_shlibpath_var_F77=no
29118      ;;
29119
29120    *)
29121      ld_shlibs_F77=no
29122      ;;
29123    esac
29124  fi
29125
29126{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
29127echo "${ECHO_T}$ld_shlibs_F77" >&6; }
29128test "$ld_shlibs_F77" = no && can_build_shared=no
29129
29130#
29131# Do we need to explicitly link libc?
29132#
29133case "x$archive_cmds_need_lc_F77" in
29134x|xyes)
29135  # Assume -lc should be added
29136  archive_cmds_need_lc_F77=yes
29137
29138  if test "$enable_shared" = yes && test "$GCC" = yes; then
29139    case $archive_cmds_F77 in
29140    *'~'*)
29141      # FIXME: we may have to deal with multi-command sequences.
29142      ;;
29143    '$CC '*)
29144      # Test whether the compiler implicitly links with -lc since on some
29145      # systems, -lgcc has to come before -lc. If gcc already passes -lc
29146      # to ld, don't add -lc before -lgcc.
29147      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
29148echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
29149      $rm conftest*
29150      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
29151
29152      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29153  (eval $ac_compile) 2>&5
29154  ac_status=$?
29155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156  (exit $ac_status); } 2>conftest.err; then
29157        soname=conftest
29158        lib=conftest
29159        libobjs=conftest.$ac_objext
29160        deplibs=
29161        wl=$lt_prog_compiler_wl_F77
29162	pic_flag=$lt_prog_compiler_pic_F77
29163        compiler_flags=-v
29164        linker_flags=-v
29165        verstring=
29166        output_objdir=.
29167        libname=conftest
29168        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
29169        allow_undefined_flag_F77=
29170        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
29171  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
29172  ac_status=$?
29173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174  (exit $ac_status); }
29175        then
29176	  archive_cmds_need_lc_F77=no
29177        else
29178	  archive_cmds_need_lc_F77=yes
29179        fi
29180        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
29181      else
29182        cat conftest.err 1>&5
29183      fi
29184      $rm conftest*
29185      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
29186echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
29187      ;;
29188    esac
29189  fi
29190  ;;
29191esac
29192
29193{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
29194echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
29195library_names_spec=
29196libname_spec='lib$name'
29197soname_spec=
29198shrext_cmds=".so"
29199postinstall_cmds=
29200postuninstall_cmds=
29201finish_cmds=
29202finish_eval=
29203shlibpath_var=
29204shlibpath_overrides_runpath=unknown
29205version_type=none
29206dynamic_linker="$host_os ld.so"
29207sys_lib_dlsearch_path_spec="/lib /usr/lib"
29208if test "$GCC" = yes; then
29209  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
29210  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
29211    # if the path contains ";" then we assume it to be the separator
29212    # otherwise default to the standard path separator (i.e. ":") - it is
29213    # assumed that no part of a normal pathname contains ";" but that should
29214    # okay in the real world where ";" in dirpaths is itself problematic.
29215    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29216  else
29217    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
29218  fi
29219else
29220  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
29221fi
29222need_lib_prefix=unknown
29223hardcode_into_libs=no
29224
29225# when you set need_version to no, make sure it does not cause -set_version
29226# flags to be left without arguments
29227need_version=unknown
29228
29229case $host_os in
29230aix3*)
29231  version_type=linux
29232  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29233  shlibpath_var=LIBPATH
29234
29235  # AIX 3 has no versioning support, so we append a major version to the name.
29236  soname_spec='${libname}${release}${shared_ext}$major'
29237  ;;
29238
29239aix4* | aix5*)
29240  version_type=linux
29241  need_lib_prefix=no
29242  need_version=no
29243  hardcode_into_libs=yes
29244  if test "$host_cpu" = ia64; then
29245    # AIX 5 supports IA64
29246    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29247    shlibpath_var=LD_LIBRARY_PATH
29248  else
29249    # With GCC up to 2.95.x, collect2 would create an import file
29250    # for dependence libraries.  The import file would start with
29251    # the line `#! .'.  This would cause the generated library to
29252    # depend on `.', always an invalid library.  This was fixed in
29253    # development snapshots of GCC prior to 3.0.
29254    case $host_os in
29255      aix4 | aix4.[01] | aix4.[01].*)
29256      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29257	   echo ' yes '
29258	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
29259	:
29260      else
29261	can_build_shared=no
29262      fi
29263      ;;
29264    esac
29265    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29266    # soname into executable. Probably we can add versioning support to
29267    # collect2, so additional links can be useful in future.
29268    if test "$aix_use_runtimelinking" = yes; then
29269      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29270      # instead of lib<name>.a to let people know that these are not
29271      # typical AIX shared libraries.
29272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29273    else
29274      # We preserve .a as extension for shared libraries through AIX4.2
29275      # and later when we are not doing run time linking.
29276      library_names_spec='${libname}${release}.a $libname.a'
29277      soname_spec='${libname}${release}${shared_ext}$major'
29278    fi
29279    shlibpath_var=LIBPATH
29280  fi
29281  ;;
29282
29283amigaos*)
29284  library_names_spec='$libname.ixlibrary $libname.a'
29285  # Create ${libname}_ixlibrary.a entries in /sys/libs.
29286  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'
29287  ;;
29288
29289beos*)
29290  library_names_spec='${libname}${shared_ext}'
29291  dynamic_linker="$host_os ld.so"
29292  shlibpath_var=LIBRARY_PATH
29293  ;;
29294
29295bsdi[45]*)
29296  version_type=linux
29297  need_version=no
29298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29299  soname_spec='${libname}${release}${shared_ext}$major'
29300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29301  shlibpath_var=LD_LIBRARY_PATH
29302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29304  # the default ld.so.conf also contains /usr/contrib/lib and
29305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29306  # libtool to hard-code these into programs
29307  ;;
29308
29309cygwin* | mingw* | pw32*)
29310  version_type=windows
29311  shrext_cmds=".dll"
29312  need_version=no
29313  need_lib_prefix=no
29314
29315  case $GCC,$host_os in
29316  yes,cygwin* | yes,mingw* | yes,pw32*)
29317    library_names_spec='$libname.dll.a'
29318    # DLL is installed to $(libdir)/../bin by postinstall_cmds
29319    postinstall_cmds='base_file=`basename \${file}`~
29320      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
29321      dldir=$destdir/`dirname \$dlpath`~
29322      test -d \$dldir || mkdir -p \$dldir~
29323      $install_prog $dir/$dlname \$dldir/$dlname~
29324      chmod a+x \$dldir/$dlname'
29325    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29326      dlpath=$dir/\$dldll~
29327       $rm \$dlpath'
29328    shlibpath_overrides_runpath=yes
29329
29330    case $host_os in
29331    cygwin*)
29332      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29333      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29334      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
29335      ;;
29336    mingw*)
29337      # MinGW DLLs use traditional 'lib' prefix
29338      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29339      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
29340      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
29341        # It is most probably a Windows format PATH printed by
29342        # mingw gcc, but we are running on Cygwin. Gcc prints its search
29343        # path with ; separators, and with drive letters. We can handle the
29344        # drive letters (cygwin fileutils understands them), so leave them,
29345        # especially as we might pass files found there to a mingw objdump,
29346        # which wouldn't understand a cygwinified path. Ahh.
29347        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29348      else
29349        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
29350      fi
29351      ;;
29352    pw32*)
29353      # pw32 DLLs use 'pw' prefix rather than 'lib'
29354      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29355      ;;
29356    esac
29357    ;;
29358
29359  *)
29360    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29361    ;;
29362  esac
29363  dynamic_linker='Win32 ld.exe'
29364  # FIXME: first we should search . and the directory the executable is in
29365  shlibpath_var=PATH
29366  ;;
29367
29368darwin* | rhapsody*)
29369  dynamic_linker="$host_os dyld"
29370  version_type=darwin
29371  need_lib_prefix=no
29372  need_version=no
29373  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29374  soname_spec='${libname}${release}${major}$shared_ext'
29375  shlibpath_overrides_runpath=yes
29376  shlibpath_var=DYLD_LIBRARY_PATH
29377  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
29378  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
29379  if test "$GCC" = yes; then
29380    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
29381  else
29382    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
29383  fi
29384  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29385  ;;
29386
29387dgux*)
29388  version_type=linux
29389  need_lib_prefix=no
29390  need_version=no
29391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29392  soname_spec='${libname}${release}${shared_ext}$major'
29393  shlibpath_var=LD_LIBRARY_PATH
29394  ;;
29395
29396freebsd1*)
29397  dynamic_linker=no
29398  ;;
29399
29400freebsd* | dragonfly*)
29401  # DragonFly does not have aout.  When/if they implement a new
29402  # versioning mechanism, adjust this.
29403  if test -x /usr/bin/objformat; then
29404    objformat=`/usr/bin/objformat`
29405  else
29406    case $host_os in
29407    freebsd[123]*) objformat=aout ;;
29408    *) objformat=elf ;;
29409    esac
29410  fi
29411  version_type=freebsd-$objformat
29412  case $version_type in
29413    freebsd-elf*)
29414      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29415      need_version=no
29416      need_lib_prefix=no
29417      ;;
29418    freebsd-*)
29419      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29420      need_version=yes
29421      ;;
29422  esac
29423  shlibpath_var=LD_LIBRARY_PATH
29424  case $host_os in
29425  freebsd2*)
29426    shlibpath_overrides_runpath=yes
29427    ;;
29428  freebsd3.[01]* | freebsdelf3.[01]*)
29429    shlibpath_overrides_runpath=yes
29430    hardcode_into_libs=yes
29431    ;;
29432  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
29433  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
29434    shlibpath_overrides_runpath=no
29435    hardcode_into_libs=yes
29436    ;;
29437  freebsd*) # from 4.6 on
29438    shlibpath_overrides_runpath=yes
29439    hardcode_into_libs=yes
29440    ;;
29441  esac
29442  ;;
29443
29444gnu*)
29445  version_type=linux
29446  need_lib_prefix=no
29447  need_version=no
29448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29449  soname_spec='${libname}${release}${shared_ext}$major'
29450  shlibpath_var=LD_LIBRARY_PATH
29451  hardcode_into_libs=yes
29452  ;;
29453
29454hpux9* | hpux10* | hpux11*)
29455  # Give a soname corresponding to the major version so that dld.sl refuses to
29456  # link against other versions.
29457  version_type=sunos
29458  need_lib_prefix=no
29459  need_version=no
29460  case $host_cpu in
29461  ia64*)
29462    shrext_cmds='.so'
29463    hardcode_into_libs=yes
29464    dynamic_linker="$host_os dld.so"
29465    shlibpath_var=LD_LIBRARY_PATH
29466    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29468    soname_spec='${libname}${release}${shared_ext}$major'
29469    if test "X$HPUX_IA64_MODE" = X32; then
29470      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29471    else
29472      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29473    fi
29474    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29475    ;;
29476   hppa*64*)
29477     shrext_cmds='.sl'
29478     hardcode_into_libs=yes
29479     dynamic_linker="$host_os dld.sl"
29480     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29481     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29483     soname_spec='${libname}${release}${shared_ext}$major'
29484     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29485     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29486     ;;
29487   *)
29488    shrext_cmds='.sl'
29489    dynamic_linker="$host_os dld.sl"
29490    shlibpath_var=SHLIB_PATH
29491    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29493    soname_spec='${libname}${release}${shared_ext}$major'
29494    ;;
29495  esac
29496  # HP-UX runs *really* slowly unless shared libraries are mode 555.
29497  postinstall_cmds='chmod 555 $lib'
29498  ;;
29499
29500interix3*)
29501  version_type=linux
29502  need_lib_prefix=no
29503  need_version=no
29504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29505  soname_spec='${libname}${release}${shared_ext}$major'
29506  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
29507  shlibpath_var=LD_LIBRARY_PATH
29508  shlibpath_overrides_runpath=no
29509  hardcode_into_libs=yes
29510  ;;
29511
29512irix5* | irix6* | nonstopux*)
29513  case $host_os in
29514    nonstopux*) version_type=nonstopux ;;
29515    *)
29516	if test "$lt_cv_prog_gnu_ld" = yes; then
29517		version_type=linux
29518	else
29519		version_type=irix
29520	fi ;;
29521  esac
29522  need_lib_prefix=no
29523  need_version=no
29524  soname_spec='${libname}${release}${shared_ext}$major'
29525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
29526  case $host_os in
29527  irix5* | nonstopux*)
29528    libsuff= shlibsuff=
29529    ;;
29530  *)
29531    case $LD in # libtool.m4 will add one of these switches to LD
29532    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
29533      libsuff= shlibsuff= libmagic=32-bit;;
29534    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
29535      libsuff=32 shlibsuff=N32 libmagic=N32;;
29536    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
29537      libsuff=64 shlibsuff=64 libmagic=64-bit;;
29538    *) libsuff= shlibsuff= libmagic=never-match;;
29539    esac
29540    ;;
29541  esac
29542  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
29543  shlibpath_overrides_runpath=no
29544  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
29545  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
29546  hardcode_into_libs=yes
29547  ;;
29548
29549# No shared lib support for Linux oldld, aout, or coff.
29550linux*oldld* | linux*aout* | linux*coff*)
29551  dynamic_linker=no
29552  ;;
29553
29554# This must be Linux ELF.
29555linux* | k*bsd*-gnu)
29556  version_type=linux
29557  need_lib_prefix=no
29558  need_version=no
29559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29560  soname_spec='${libname}${release}${shared_ext}$major'
29561  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
29562  shlibpath_var=LD_LIBRARY_PATH
29563  shlibpath_overrides_runpath=no
29564  # This implies no fast_install, which is unacceptable.
29565  # Some rework will be needed to allow for fast_install
29566  # before this can be enabled.
29567  hardcode_into_libs=yes
29568
29569  # Append ld.so.conf contents to the search path
29570  if test -f /etc/ld.so.conf; then
29571    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
29572    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
29573  fi
29574
29575  # We used to test for /lib/ld.so.1 and disable shared libraries on
29576  # powerpc, because MkLinux only supported shared libraries with the
29577  # GNU dynamic linker.  Since this was broken with cross compilers,
29578  # most powerpc-linux boxes support dynamic linking these days and
29579  # people can always --disable-shared, the test was removed, and we
29580  # assume the GNU/Linux dynamic linker is in use.
29581  dynamic_linker='GNU/Linux ld.so'
29582  ;;
29583
29584netbsdelf*-gnu)
29585  version_type=linux
29586  need_lib_prefix=no
29587  need_version=no
29588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29589  soname_spec='${libname}${release}${shared_ext}$major'
29590  shlibpath_var=LD_LIBRARY_PATH
29591  shlibpath_overrides_runpath=no
29592  hardcode_into_libs=yes
29593  dynamic_linker='NetBSD ld.elf_so'
29594  ;;
29595
29596netbsd*)
29597  version_type=sunos
29598  need_lib_prefix=no
29599  need_version=no
29600  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29601    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29602    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29603    dynamic_linker='NetBSD (a.out) ld.so'
29604  else
29605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29606    soname_spec='${libname}${release}${shared_ext}$major'
29607    dynamic_linker='NetBSD ld.elf_so'
29608  fi
29609  shlibpath_var=LD_LIBRARY_PATH
29610  shlibpath_overrides_runpath=yes
29611  hardcode_into_libs=yes
29612  ;;
29613
29614newsos6)
29615  version_type=linux
29616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29617  shlibpath_var=LD_LIBRARY_PATH
29618  shlibpath_overrides_runpath=yes
29619  ;;
29620
29621nto-qnx*)
29622  version_type=linux
29623  need_lib_prefix=no
29624  need_version=no
29625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29626  soname_spec='${libname}${release}${shared_ext}$major'
29627  shlibpath_var=LD_LIBRARY_PATH
29628  shlibpath_overrides_runpath=yes
29629  ;;
29630
29631openbsd*)
29632  version_type=sunos
29633  sys_lib_dlsearch_path_spec="/usr/lib"
29634  need_lib_prefix=no
29635  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
29636  case $host_os in
29637    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
29638    *)                         need_version=no  ;;
29639  esac
29640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29641  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29642  shlibpath_var=LD_LIBRARY_PATH
29643  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29644    case $host_os in
29645      openbsd2.[89] | openbsd2.[89].*)
29646	shlibpath_overrides_runpath=no
29647	;;
29648      *)
29649	shlibpath_overrides_runpath=yes
29650	;;
29651      esac
29652  else
29653    shlibpath_overrides_runpath=yes
29654  fi
29655  ;;
29656
29657os2*)
29658  libname_spec='$name'
29659  shrext_cmds=".dll"
29660  need_lib_prefix=no
29661  library_names_spec='$libname${shared_ext} $libname.a'
29662  dynamic_linker='OS/2 ld.exe'
29663  shlibpath_var=LIBPATH
29664  ;;
29665
29666osf3* | osf4* | osf5*)
29667  version_type=osf
29668  need_lib_prefix=no
29669  need_version=no
29670  soname_spec='${libname}${release}${shared_ext}$major'
29671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29672  shlibpath_var=LD_LIBRARY_PATH
29673  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
29674  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
29675  ;;
29676
29677solaris*)
29678  version_type=linux
29679  need_lib_prefix=no
29680  need_version=no
29681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29682  soname_spec='${libname}${release}${shared_ext}$major'
29683  shlibpath_var=LD_LIBRARY_PATH
29684  shlibpath_overrides_runpath=yes
29685  hardcode_into_libs=yes
29686  # ldd complains unless libraries are executable
29687  postinstall_cmds='chmod +x $lib'
29688  ;;
29689
29690sunos4*)
29691  version_type=sunos
29692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29693  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
29694  shlibpath_var=LD_LIBRARY_PATH
29695  shlibpath_overrides_runpath=yes
29696  if test "$with_gnu_ld" = yes; then
29697    need_lib_prefix=no
29698  fi
29699  need_version=yes
29700  ;;
29701
29702sysv4 | sysv4.3*)
29703  version_type=linux
29704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29705  soname_spec='${libname}${release}${shared_ext}$major'
29706  shlibpath_var=LD_LIBRARY_PATH
29707  case $host_vendor in
29708    sni)
29709      shlibpath_overrides_runpath=no
29710      need_lib_prefix=no
29711      export_dynamic_flag_spec='${wl}-Blargedynsym'
29712      runpath_var=LD_RUN_PATH
29713      ;;
29714    siemens)
29715      need_lib_prefix=no
29716      ;;
29717    motorola)
29718      need_lib_prefix=no
29719      need_version=no
29720      shlibpath_overrides_runpath=no
29721      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
29722      ;;
29723  esac
29724  ;;
29725
29726sysv4*MP*)
29727  if test -d /usr/nec ;then
29728    version_type=linux
29729    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
29730    soname_spec='$libname${shared_ext}.$major'
29731    shlibpath_var=LD_LIBRARY_PATH
29732  fi
29733  ;;
29734
29735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
29736  version_type=freebsd-elf
29737  need_lib_prefix=no
29738  need_version=no
29739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29740  soname_spec='${libname}${release}${shared_ext}$major'
29741  shlibpath_var=LD_LIBRARY_PATH
29742  hardcode_into_libs=yes
29743  if test "$with_gnu_ld" = yes; then
29744    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
29745    shlibpath_overrides_runpath=no
29746  else
29747    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
29748    shlibpath_overrides_runpath=yes
29749    case $host_os in
29750      sco3.2v5*)
29751        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
29752	;;
29753    esac
29754  fi
29755  sys_lib_dlsearch_path_spec='/usr/lib'
29756  ;;
29757
29758uts4*)
29759  version_type=linux
29760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29761  soname_spec='${libname}${release}${shared_ext}$major'
29762  shlibpath_var=LD_LIBRARY_PATH
29763  ;;
29764
29765*)
29766  dynamic_linker=no
29767  ;;
29768esac
29769{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
29770echo "${ECHO_T}$dynamic_linker" >&6; }
29771test "$dynamic_linker" = no && can_build_shared=no
29772
29773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
29774if test "$GCC" = yes; then
29775  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29776fi
29777
29778{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
29779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
29780hardcode_action_F77=
29781if test -n "$hardcode_libdir_flag_spec_F77" || \
29782   test -n "$runpath_var_F77" || \
29783   test "X$hardcode_automatic_F77" = "Xyes" ; then
29784
29785  # We can hardcode non-existant directories.
29786  if test "$hardcode_direct_F77" != no &&
29787     # If the only mechanism to avoid hardcoding is shlibpath_var, we
29788     # have to relink, otherwise we might link with an installed library
29789     # when we should be linking with a yet-to-be-installed one
29790     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
29791     test "$hardcode_minus_L_F77" != no; then
29792    # Linking always hardcodes the temporary library directory.
29793    hardcode_action_F77=relink
29794  else
29795    # We can link without hardcoding, and we can hardcode nonexisting dirs.
29796    hardcode_action_F77=immediate
29797  fi
29798else
29799  # We cannot hardcode anything, or else we can only hardcode existing
29800  # directories.
29801  hardcode_action_F77=unsupported
29802fi
29803{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
29804echo "${ECHO_T}$hardcode_action_F77" >&6; }
29805
29806if test "$hardcode_action_F77" = relink; then
29807  # Fast installation is not supported
29808  enable_fast_install=no
29809elif test "$shlibpath_overrides_runpath" = yes ||
29810     test "$enable_shared" = no; then
29811  # Fast installation is not necessary
29812  enable_fast_install=needless
29813fi
29814
29815
29816# The else clause should only fire when bootstrapping the
29817# libtool distribution, otherwise you forgot to ship ltmain.sh
29818# with your package, and you will get complaints that there are
29819# no rules to generate ltmain.sh.
29820if test -f "$ltmain"; then
29821  # See if we are running on zsh, and set the options which allow our commands through
29822  # without removal of \ escapes.
29823  if test -n "${ZSH_VERSION+set}" ; then
29824    setopt NO_GLOB_SUBST
29825  fi
29826  # Now quote all the things that may contain metacharacters while being
29827  # careful not to overquote the AC_SUBSTed values.  We take copies of the
29828  # variables and quote the copies for generation of the libtool script.
29829  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
29830    SED SHELL STRIP \
29831    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29832    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29833    deplibs_check_method reload_flag reload_cmds need_locks \
29834    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29835    lt_cv_sys_global_symbol_to_c_name_address \
29836    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29837    old_postinstall_cmds old_postuninstall_cmds \
29838    compiler_F77 \
29839    CC_F77 \
29840    LD_F77 \
29841    lt_prog_compiler_wl_F77 \
29842    lt_prog_compiler_pic_F77 \
29843    lt_prog_compiler_static_F77 \
29844    lt_prog_compiler_no_builtin_flag_F77 \
29845    export_dynamic_flag_spec_F77 \
29846    thread_safe_flag_spec_F77 \
29847    whole_archive_flag_spec_F77 \
29848    enable_shared_with_static_runtimes_F77 \
29849    old_archive_cmds_F77 \
29850    old_archive_from_new_cmds_F77 \
29851    predep_objects_F77 \
29852    postdep_objects_F77 \
29853    predeps_F77 \
29854    postdeps_F77 \
29855    compiler_lib_search_path_F77 \
29856    archive_cmds_F77 \
29857    archive_expsym_cmds_F77 \
29858    postinstall_cmds_F77 \
29859    postuninstall_cmds_F77 \
29860    old_archive_from_expsyms_cmds_F77 \
29861    allow_undefined_flag_F77 \
29862    no_undefined_flag_F77 \
29863    export_symbols_cmds_F77 \
29864    hardcode_libdir_flag_spec_F77 \
29865    hardcode_libdir_flag_spec_ld_F77 \
29866    hardcode_libdir_separator_F77 \
29867    hardcode_automatic_F77 \
29868    module_cmds_F77 \
29869    module_expsym_cmds_F77 \
29870    lt_cv_prog_compiler_c_o_F77 \
29871    exclude_expsyms_F77 \
29872    include_expsyms_F77; do
29873
29874    case $var in
29875    old_archive_cmds_F77 | \
29876    old_archive_from_new_cmds_F77 | \
29877    archive_cmds_F77 | \
29878    archive_expsym_cmds_F77 | \
29879    module_cmds_F77 | \
29880    module_expsym_cmds_F77 | \
29881    old_archive_from_expsyms_cmds_F77 | \
29882    export_symbols_cmds_F77 | \
29883    extract_expsyms_cmds | reload_cmds | finish_cmds | \
29884    postinstall_cmds | postuninstall_cmds | \
29885    old_postinstall_cmds | old_postuninstall_cmds | \
29886    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29887      # Double-quote double-evaled strings.
29888      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29889      ;;
29890    *)
29891      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29892      ;;
29893    esac
29894  done
29895
29896  case $lt_echo in
29897  *'\$0 --fallback-echo"')
29898    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29899    ;;
29900  esac
29901
29902cfgfile="$ofile"
29903
29904  cat <<__EOF__ >> "$cfgfile"
29905# ### BEGIN LIBTOOL TAG CONFIG: $tagname
29906
29907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29908
29909# Shell to use when invoking shell scripts.
29910SHELL=$lt_SHELL
29911
29912# Whether or not to build shared libraries.
29913build_libtool_libs=$enable_shared
29914
29915# Whether or not to build static libraries.
29916build_old_libs=$enable_static
29917
29918# Whether or not to add -lc for building shared libraries.
29919build_libtool_need_lc=$archive_cmds_need_lc_F77
29920
29921# Whether or not to disallow shared libs when runtime libs are static
29922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
29923
29924# Whether or not to optimize for fast installation.
29925fast_install=$enable_fast_install
29926
29927# The host system.
29928host_alias=$host_alias
29929host=$host
29930host_os=$host_os
29931
29932# The build system.
29933build_alias=$build_alias
29934build=$build
29935build_os=$build_os
29936
29937# An echo program that does not interpret backslashes.
29938echo=$lt_echo
29939
29940# The archiver.
29941AR=$lt_AR
29942AR_FLAGS=$lt_AR_FLAGS
29943
29944# A C compiler.
29945LTCC=$lt_LTCC
29946
29947# LTCC compiler flags.
29948LTCFLAGS=$lt_LTCFLAGS
29949
29950# A language-specific compiler.
29951CC=$lt_compiler_F77
29952
29953# Is the compiler the GNU C compiler?
29954with_gcc=$GCC_F77
29955
29956# An ERE matcher.
29957EGREP=$lt_EGREP
29958
29959# The linker used to build libraries.
29960LD=$lt_LD_F77
29961
29962# Whether we need hard or soft links.
29963LN_S=$lt_LN_S
29964
29965# A BSD-compatible nm program.
29966NM=$lt_NM
29967
29968# A symbol stripping program
29969STRIP=$lt_STRIP
29970
29971# Used to examine libraries when file_magic_cmd begins "file"
29972MAGIC_CMD=$MAGIC_CMD
29973
29974# Used on cygwin: DLL creation program.
29975DLLTOOL="$DLLTOOL"
29976
29977# Used on cygwin: object dumper.
29978OBJDUMP="$OBJDUMP"
29979
29980# Used on cygwin: assembler.
29981AS="$AS"
29982
29983# The name of the directory that contains temporary libtool files.
29984objdir=$objdir
29985
29986# How to create reloadable object files.
29987reload_flag=$lt_reload_flag
29988reload_cmds=$lt_reload_cmds
29989
29990# How to pass a linker flag through the compiler.
29991wl=$lt_lt_prog_compiler_wl_F77
29992
29993# Object file suffix (normally "o").
29994objext="$ac_objext"
29995
29996# Old archive suffix (normally "a").
29997libext="$libext"
29998
29999# Shared library suffix (normally ".so").
30000shrext_cmds='$shrext_cmds'
30001
30002# Executable file suffix (normally "").
30003exeext="$exeext"
30004
30005# Additional compiler flags for building library objects.
30006pic_flag=$lt_lt_prog_compiler_pic_F77
30007pic_mode=$pic_mode
30008
30009# What is the maximum length of a command?
30010max_cmd_len=$lt_cv_sys_max_cmd_len
30011
30012# Does compiler simultaneously support -c and -o options?
30013compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
30014
30015# Must we lock files when doing compilation?
30016need_locks=$lt_need_locks
30017
30018# Do we need the lib prefix for modules?
30019need_lib_prefix=$need_lib_prefix
30020
30021# Do we need a version for libraries?
30022need_version=$need_version
30023
30024# Whether dlopen is supported.
30025dlopen_support=$enable_dlopen
30026
30027# Whether dlopen of programs is supported.
30028dlopen_self=$enable_dlopen_self
30029
30030# Whether dlopen of statically linked programs is supported.
30031dlopen_self_static=$enable_dlopen_self_static
30032
30033# Compiler flag to prevent dynamic linking.
30034link_static_flag=$lt_lt_prog_compiler_static_F77
30035
30036# Compiler flag to turn off builtin functions.
30037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
30038
30039# Compiler flag to allow reflexive dlopens.
30040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
30041
30042# Compiler flag to generate shared objects directly from archives.
30043whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
30044
30045# Compiler flag to generate thread-safe objects.
30046thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
30047
30048# Library versioning type.
30049version_type=$version_type
30050
30051# Format of library name prefix.
30052libname_spec=$lt_libname_spec
30053
30054# List of archive names.  First name is the real one, the rest are links.
30055# The last name is the one that the linker finds with -lNAME.
30056library_names_spec=$lt_library_names_spec
30057
30058# The coded name of the library, if different from the real name.
30059soname_spec=$lt_soname_spec
30060
30061# Commands used to build and install an old-style archive.
30062RANLIB=$lt_RANLIB
30063old_archive_cmds=$lt_old_archive_cmds_F77
30064old_postinstall_cmds=$lt_old_postinstall_cmds
30065old_postuninstall_cmds=$lt_old_postuninstall_cmds
30066
30067# Create an old-style archive from a shared archive.
30068old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
30069
30070# Create a temporary old-style archive to link instead of a shared archive.
30071old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
30072
30073# Commands used to build and install a shared archive.
30074archive_cmds=$lt_archive_cmds_F77
30075archive_expsym_cmds=$lt_archive_expsym_cmds_F77
30076postinstall_cmds=$lt_postinstall_cmds
30077postuninstall_cmds=$lt_postuninstall_cmds
30078
30079# Commands used to build a loadable module (assumed same as above if empty)
30080module_cmds=$lt_module_cmds_F77
30081module_expsym_cmds=$lt_module_expsym_cmds_F77
30082
30083# Commands to strip libraries.
30084old_striplib=$lt_old_striplib
30085striplib=$lt_striplib
30086
30087# Dependencies to place before the objects being linked to create a
30088# shared library.
30089predep_objects=$lt_predep_objects_F77
30090
30091# Dependencies to place after the objects being linked to create a
30092# shared library.
30093postdep_objects=$lt_postdep_objects_F77
30094
30095# Dependencies to place before the objects being linked to create a
30096# shared library.
30097predeps=$lt_predeps_F77
30098
30099# Dependencies to place after the objects being linked to create a
30100# shared library.
30101postdeps=$lt_postdeps_F77
30102
30103# The library search path used internally by the compiler when linking
30104# a shared library.
30105compiler_lib_search_path=$lt_compiler_lib_search_path_F77
30106
30107# Method to check whether dependent libraries are shared objects.
30108deplibs_check_method=$lt_deplibs_check_method
30109
30110# Command to use when deplibs_check_method == file_magic.
30111file_magic_cmd=$lt_file_magic_cmd
30112
30113# Flag that allows shared libraries with undefined symbols to be built.
30114allow_undefined_flag=$lt_allow_undefined_flag_F77
30115
30116# Flag that forces no undefined symbols.
30117no_undefined_flag=$lt_no_undefined_flag_F77
30118
30119# Commands used to finish a libtool library installation in a directory.
30120finish_cmds=$lt_finish_cmds
30121
30122# Same as above, but a single script fragment to be evaled but not shown.
30123finish_eval=$lt_finish_eval
30124
30125# Take the output of nm and produce a listing of raw symbols and C names.
30126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30127
30128# Transform the output of nm in a proper C declaration
30129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30130
30131# Transform the output of nm in a C name address pair
30132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30133
30134# This is the shared library runtime path variable.
30135runpath_var=$runpath_var
30136
30137# This is the shared library path variable.
30138shlibpath_var=$shlibpath_var
30139
30140# Is shlibpath searched before the hard-coded library search path?
30141shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30142
30143# How to hardcode a shared library path into an executable.
30144hardcode_action=$hardcode_action_F77
30145
30146# Whether we should hardcode library paths into libraries.
30147hardcode_into_libs=$hardcode_into_libs
30148
30149# Flag to hardcode \$libdir into a binary during linking.
30150# This must work even if \$libdir does not exist.
30151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
30152
30153# If ld is used when linking, flag to hardcode \$libdir into
30154# a binary during linking. This must work even if \$libdir does
30155# not exist.
30156hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
30157
30158# Whether we need a single -rpath flag with a separated argument.
30159hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
30160
30161# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30162# resulting binary.
30163hardcode_direct=$hardcode_direct_F77
30164
30165# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30166# resulting binary.
30167hardcode_minus_L=$hardcode_minus_L_F77
30168
30169# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30170# the resulting binary.
30171hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
30172
30173# Set to yes if building a shared library automatically hardcodes DIR into the library
30174# and all subsequent libraries and executables linked against it.
30175hardcode_automatic=$hardcode_automatic_F77
30176
30177# Variables whose values should be saved in libtool wrapper scripts and
30178# restored at relink time.
30179variables_saved_for_relink="$variables_saved_for_relink"
30180
30181# Whether libtool must link a program against all its dependency libraries.
30182link_all_deplibs=$link_all_deplibs_F77
30183
30184# Compile-time system search path for libraries
30185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30186
30187# Run-time system search path for libraries
30188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30189
30190# Fix the shell variable \$srcfile for the compiler.
30191fix_srcfile_path="$fix_srcfile_path_F77"
30192
30193# Set to yes if exported symbols are required.
30194always_export_symbols=$always_export_symbols_F77
30195
30196# The commands to list exported symbols.
30197export_symbols_cmds=$lt_export_symbols_cmds_F77
30198
30199# The commands to extract the exported symbol list from a shared archive.
30200extract_expsyms_cmds=$lt_extract_expsyms_cmds
30201
30202# Symbols that should not be listed in the preloaded symbols.
30203exclude_expsyms=$lt_exclude_expsyms_F77
30204
30205# Symbols that must always be exported.
30206include_expsyms=$lt_include_expsyms_F77
30207
30208# ### END LIBTOOL TAG CONFIG: $tagname
30209
30210__EOF__
30211
30212
30213else
30214  # If there is no Makefile yet, we rely on a make rule to execute
30215  # `config.status --recheck' to rerun these tests and create the
30216  # libtool script then.
30217  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30218  if test -f "$ltmain_in"; then
30219    test -f Makefile && make "$ltmain"
30220  fi
30221fi
30222
30223
30224ac_ext=c
30225ac_cpp='$CPP $CPPFLAGS'
30226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228ac_compiler_gnu=$ac_cv_c_compiler_gnu
30229
30230CC="$lt_save_CC"
30231
30232	else
30233	  tagname=""
30234	fi
30235	;;
30236
30237      GCJ)
30238	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
30239
30240
30241# Source file extension for Java test sources.
30242ac_ext=java
30243
30244# Object file extension for compiled Java test sources.
30245objext=o
30246objext_GCJ=$objext
30247
30248# Code to be used in simple compile tests
30249lt_simple_compile_test_code="class foo {}\n"
30250
30251# Code to be used in simple link tests
30252lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
30253
30254# ltmain only uses $CC for tagged configurations so make sure $CC is set.
30255
30256# If no C compiler was specified, use CC.
30257LTCC=${LTCC-"$CC"}
30258
30259# If no C compiler flags were specified, use CFLAGS.
30260LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
30261
30262# Allow CC to be a program name with arguments.
30263compiler=$CC
30264
30265
30266# save warnings/boilerplate of simple test code
30267ac_outfile=conftest.$ac_objext
30268printf "$lt_simple_compile_test_code" >conftest.$ac_ext
30269eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
30270_lt_compiler_boilerplate=`cat conftest.err`
30271$rm conftest*
30272
30273ac_outfile=conftest.$ac_objext
30274printf "$lt_simple_link_test_code" >conftest.$ac_ext
30275eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
30276_lt_linker_boilerplate=`cat conftest.err`
30277$rm conftest*
30278
30279
30280# Allow CC to be a program name with arguments.
30281lt_save_CC="$CC"
30282CC=${GCJ-"gcj"}
30283compiler=$CC
30284compiler_GCJ=$CC
30285for cc_temp in $compiler""; do
30286  case $cc_temp in
30287    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30288    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30289    \-*) ;;
30290    *) break;;
30291  esac
30292done
30293cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30294
30295
30296# GCJ did not exist at the time GCC didn't implicitly link libc in.
30297archive_cmds_need_lc_GCJ=no
30298
30299old_archive_cmds_GCJ=$old_archive_cmds
30300
30301## CAVEAT EMPTOR:
30302## There is no encapsulation within the following macros, do not change
30303## the running order or otherwise move them around unless you know exactly
30304## what you are doing...
30305
30306lt_prog_compiler_no_builtin_flag_GCJ=
30307
30308if test "$GCC" = yes; then
30309  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
30310
30311
30312{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
30313echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
30314if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
30315  echo $ECHO_N "(cached) $ECHO_C" >&6
30316else
30317  lt_cv_prog_compiler_rtti_exceptions=no
30318  ac_outfile=conftest.$ac_objext
30319   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30320   lt_compiler_flag="-fno-rtti -fno-exceptions"
30321   # Insert the option either (1) after the last *FLAGS variable, or
30322   # (2) before a word containing "conftest.", or (3) at the end.
30323   # Note that $ac_compile itself does not contain backslashes and begins
30324   # with a dollar sign (not a hyphen), so the echo should work correctly.
30325   # The option is referenced via a variable to avoid confusing sed.
30326   lt_compile=`echo "$ac_compile" | $SED \
30327   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30328   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30329   -e 's:$: $lt_compiler_flag:'`
30330   (eval echo "\"\$as_me:30330: $lt_compile\"" >&5)
30331   (eval "$lt_compile" 2>conftest.err)
30332   ac_status=$?
30333   cat conftest.err >&5
30334   echo "$as_me:30334: \$? = $ac_status" >&5
30335   if (exit $ac_status) && test -s "$ac_outfile"; then
30336     # The compiler can only warn and ignore the option if not recognized
30337     # So say no if there are warnings other than the usual output.
30338     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
30339     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
30340     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
30341       lt_cv_prog_compiler_rtti_exceptions=yes
30342     fi
30343   fi
30344   $rm conftest*
30345
30346fi
30347{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
30348echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
30349
30350if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
30351    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
30352else
30353    :
30354fi
30355
30356fi
30357
30358lt_prog_compiler_wl_GCJ=
30359lt_prog_compiler_pic_GCJ=
30360lt_prog_compiler_static_GCJ=
30361
30362{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
30363echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
30364
30365  if test "$GCC" = yes; then
30366    lt_prog_compiler_wl_GCJ='-Wl,'
30367    lt_prog_compiler_static_GCJ='-static'
30368
30369    case $host_os in
30370      aix*)
30371      # All AIX code is PIC.
30372      if test "$host_cpu" = ia64; then
30373	# AIX 5 now supports IA64 processor
30374	lt_prog_compiler_static_GCJ='-Bstatic'
30375      fi
30376      ;;
30377
30378    amigaos*)
30379      # FIXME: we need at least 68020 code to build shared libraries, but
30380      # adding the `-m68020' flag to GCC prevents building anything better,
30381      # like `-m68040'.
30382      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
30383      ;;
30384
30385    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30386      # PIC is the default for these OSes.
30387      ;;
30388
30389    mingw* | pw32* | os2*)
30390      # This hack is so that the source file can tell whether it is being
30391      # built for inclusion in a dll (and should export symbols for example).
30392      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
30393      ;;
30394
30395    darwin* | rhapsody*)
30396      # PIC is the default on this platform
30397      # Common symbols not allowed in MH_DYLIB files
30398      lt_prog_compiler_pic_GCJ='-fno-common'
30399      ;;
30400
30401    interix3*)
30402      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
30403      # Instead, we relocate shared libraries at runtime.
30404      ;;
30405
30406    msdosdjgpp*)
30407      # Just because we use GCC doesn't mean we suddenly get shared libraries
30408      # on systems that don't support them.
30409      lt_prog_compiler_can_build_shared_GCJ=no
30410      enable_shared=no
30411      ;;
30412
30413    sysv4*MP*)
30414      if test -d /usr/nec; then
30415	lt_prog_compiler_pic_GCJ=-Kconform_pic
30416      fi
30417      ;;
30418
30419    hpux*)
30420      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30421      # not for PA HP-UX.
30422      case $host_cpu in
30423      hppa*64*|ia64*)
30424	# +Z the default
30425	;;
30426      *)
30427	lt_prog_compiler_pic_GCJ='-fPIC'
30428	;;
30429      esac
30430      ;;
30431
30432    *)
30433      lt_prog_compiler_pic_GCJ='-fPIC'
30434      ;;
30435    esac
30436  else
30437    # PORTME Check for flag to pass linker flags through the system compiler.
30438    case $host_os in
30439    aix*)
30440      lt_prog_compiler_wl_GCJ='-Wl,'
30441      if test "$host_cpu" = ia64; then
30442	# AIX 5 now supports IA64 processor
30443	lt_prog_compiler_static_GCJ='-Bstatic'
30444      else
30445	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
30446      fi
30447      ;;
30448      darwin*)
30449        # PIC is the default on this platform
30450        # Common symbols not allowed in MH_DYLIB files
30451       case $cc_basename in
30452         xlc*)
30453         lt_prog_compiler_pic_GCJ='-qnocommon'
30454         lt_prog_compiler_wl_GCJ='-Wl,'
30455         ;;
30456       esac
30457       ;;
30458
30459    mingw* | pw32* | os2*)
30460      # This hack is so that the source file can tell whether it is being
30461      # built for inclusion in a dll (and should export symbols for example).
30462      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
30463      ;;
30464
30465    hpux9* | hpux10* | hpux11*)
30466      lt_prog_compiler_wl_GCJ='-Wl,'
30467      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30468      # not for PA HP-UX.
30469      case $host_cpu in
30470      hppa*64*|ia64*)
30471	# +Z the default
30472	;;
30473      *)
30474	lt_prog_compiler_pic_GCJ='+Z'
30475	;;
30476      esac
30477      # Is there a better lt_prog_compiler_static that works with the bundled CC?
30478      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
30479      ;;
30480
30481    irix5* | irix6* | nonstopux*)
30482      lt_prog_compiler_wl_GCJ='-Wl,'
30483      # PIC (with -KPIC) is the default.
30484      lt_prog_compiler_static_GCJ='-non_shared'
30485      ;;
30486
30487    newsos6)
30488      lt_prog_compiler_pic_GCJ='-KPIC'
30489      lt_prog_compiler_static_GCJ='-Bstatic'
30490      ;;
30491
30492    linux* | k*bsd*-gnu)
30493      case $cc_basename in
30494      icc* | ecc*)
30495	lt_prog_compiler_wl_GCJ='-Wl,'
30496	lt_prog_compiler_pic_GCJ='-KPIC'
30497	lt_prog_compiler_static_GCJ='-static'
30498        ;;
30499      pgcc* | pgf77* | pgf90* | pgf95*)
30500        # Portland Group compilers (*not* the Pentium gcc compiler,
30501	# which looks to be a dead project)
30502	lt_prog_compiler_wl_GCJ='-Wl,'
30503	lt_prog_compiler_pic_GCJ='-fpic'
30504	lt_prog_compiler_static_GCJ='-Bstatic'
30505        ;;
30506      ccc*)
30507        lt_prog_compiler_wl_GCJ='-Wl,'
30508        # All Alpha code is PIC.
30509        lt_prog_compiler_static_GCJ='-non_shared'
30510        ;;
30511      esac
30512      ;;
30513
30514    osf3* | osf4* | osf5*)
30515      lt_prog_compiler_wl_GCJ='-Wl,'
30516      # All OSF/1 code is PIC.
30517      lt_prog_compiler_static_GCJ='-non_shared'
30518      ;;
30519
30520    solaris*)
30521      lt_prog_compiler_pic_GCJ='-KPIC'
30522      lt_prog_compiler_static_GCJ='-Bstatic'
30523      case $cc_basename in
30524      f77* | f90* | f95*)
30525	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
30526      *)
30527	lt_prog_compiler_wl_GCJ='-Wl,';;
30528      esac
30529      ;;
30530
30531    sunos4*)
30532      lt_prog_compiler_wl_GCJ='-Qoption ld '
30533      lt_prog_compiler_pic_GCJ='-PIC'
30534      lt_prog_compiler_static_GCJ='-Bstatic'
30535      ;;
30536
30537    sysv4 | sysv4.2uw2* | sysv4.3*)
30538      lt_prog_compiler_wl_GCJ='-Wl,'
30539      lt_prog_compiler_pic_GCJ='-KPIC'
30540      lt_prog_compiler_static_GCJ='-Bstatic'
30541      ;;
30542
30543    sysv4*MP*)
30544      if test -d /usr/nec ;then
30545	lt_prog_compiler_pic_GCJ='-Kconform_pic'
30546	lt_prog_compiler_static_GCJ='-Bstatic'
30547      fi
30548      ;;
30549
30550    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
30551      lt_prog_compiler_wl_GCJ='-Wl,'
30552      lt_prog_compiler_pic_GCJ='-KPIC'
30553      lt_prog_compiler_static_GCJ='-Bstatic'
30554      ;;
30555
30556    unicos*)
30557      lt_prog_compiler_wl_GCJ='-Wl,'
30558      lt_prog_compiler_can_build_shared_GCJ=no
30559      ;;
30560
30561    uts4*)
30562      lt_prog_compiler_pic_GCJ='-pic'
30563      lt_prog_compiler_static_GCJ='-Bstatic'
30564      ;;
30565
30566    *)
30567      lt_prog_compiler_can_build_shared_GCJ=no
30568      ;;
30569    esac
30570  fi
30571
30572{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
30573echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
30574
30575#
30576# Check to make sure the PIC flag actually works.
30577#
30578if test -n "$lt_prog_compiler_pic_GCJ"; then
30579
30580{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
30581echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
30582if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
30583  echo $ECHO_N "(cached) $ECHO_C" >&6
30584else
30585  lt_prog_compiler_pic_works_GCJ=no
30586  ac_outfile=conftest.$ac_objext
30587   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30588   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
30589   # Insert the option either (1) after the last *FLAGS variable, or
30590   # (2) before a word containing "conftest.", or (3) at the end.
30591   # Note that $ac_compile itself does not contain backslashes and begins
30592   # with a dollar sign (not a hyphen), so the echo should work correctly.
30593   # The option is referenced via a variable to avoid confusing sed.
30594   lt_compile=`echo "$ac_compile" | $SED \
30595   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30596   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30597   -e 's:$: $lt_compiler_flag:'`
30598   (eval echo "\"\$as_me:30598: $lt_compile\"" >&5)
30599   (eval "$lt_compile" 2>conftest.err)
30600   ac_status=$?
30601   cat conftest.err >&5
30602   echo "$as_me:30602: \$? = $ac_status" >&5
30603   if (exit $ac_status) && test -s "$ac_outfile"; then
30604     # The compiler can only warn and ignore the option if not recognized
30605     # So say no if there are warnings other than the usual output.
30606     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
30607     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
30608     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
30609       lt_prog_compiler_pic_works_GCJ=yes
30610     fi
30611   fi
30612   $rm conftest*
30613
30614fi
30615{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
30616echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
30617
30618if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
30619    case $lt_prog_compiler_pic_GCJ in
30620     "" | " "*) ;;
30621     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
30622     esac
30623else
30624    lt_prog_compiler_pic_GCJ=
30625     lt_prog_compiler_can_build_shared_GCJ=no
30626fi
30627
30628fi
30629case $host_os in
30630  # For platforms which do not support PIC, -DPIC is meaningless:
30631  *djgpp*)
30632    lt_prog_compiler_pic_GCJ=
30633    ;;
30634  *)
30635    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
30636    ;;
30637esac
30638
30639#
30640# Check to make sure the static flag actually works.
30641#
30642wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
30643{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
30644echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
30645if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
30646  echo $ECHO_N "(cached) $ECHO_C" >&6
30647else
30648  lt_prog_compiler_static_works_GCJ=no
30649   save_LDFLAGS="$LDFLAGS"
30650   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
30651   printf "$lt_simple_link_test_code" > conftest.$ac_ext
30652   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
30653     # The linker can only warn and ignore the option if not recognized
30654     # So say no if there are warnings
30655     if test -s conftest.err; then
30656       # Append any errors to the config.log.
30657       cat conftest.err 1>&5
30658       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
30659       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
30660       if diff conftest.exp conftest.er2 >/dev/null; then
30661         lt_prog_compiler_static_works_GCJ=yes
30662       fi
30663     else
30664       lt_prog_compiler_static_works_GCJ=yes
30665     fi
30666   fi
30667   $rm conftest*
30668   LDFLAGS="$save_LDFLAGS"
30669
30670fi
30671{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
30672echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
30673
30674if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
30675    :
30676else
30677    lt_prog_compiler_static_GCJ=
30678fi
30679
30680
30681{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
30682echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
30683if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
30684  echo $ECHO_N "(cached) $ECHO_C" >&6
30685else
30686  lt_cv_prog_compiler_c_o_GCJ=no
30687   $rm -r conftest 2>/dev/null
30688   mkdir conftest
30689   cd conftest
30690   mkdir out
30691   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30692
30693   lt_compiler_flag="-o out/conftest2.$ac_objext"
30694   # Insert the option either (1) after the last *FLAGS variable, or
30695   # (2) before a word containing "conftest.", or (3) at the end.
30696   # Note that $ac_compile itself does not contain backslashes and begins
30697   # with a dollar sign (not a hyphen), so the echo should work correctly.
30698   lt_compile=`echo "$ac_compile" | $SED \
30699   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30700   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30701   -e 's:$: $lt_compiler_flag:'`
30702   (eval echo "\"\$as_me:30702: $lt_compile\"" >&5)
30703   (eval "$lt_compile" 2>out/conftest.err)
30704   ac_status=$?
30705   cat out/conftest.err >&5
30706   echo "$as_me:30706: \$? = $ac_status" >&5
30707   if (exit $ac_status) && test -s out/conftest2.$ac_objext
30708   then
30709     # The compiler can only warn and ignore the option if not recognized
30710     # So say no if there are warnings
30711     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
30712     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
30713     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
30714       lt_cv_prog_compiler_c_o_GCJ=yes
30715     fi
30716   fi
30717   chmod u+w . 2>&5
30718   $rm conftest*
30719   # SGI C++ compiler will create directory out/ii_files/ for
30720   # template instantiation
30721   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
30722   $rm out/* && rmdir out
30723   cd ..
30724   rmdir conftest
30725   $rm conftest*
30726
30727fi
30728{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
30729echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
30730
30731
30732hard_links="nottested"
30733if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
30734  # do not overwrite the value of need_locks provided by the user
30735  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
30736echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
30737  hard_links=yes
30738  $rm conftest*
30739  ln conftest.a conftest.b 2>/dev/null && hard_links=no
30740  touch conftest.a
30741  ln conftest.a conftest.b 2>&5 || hard_links=no
30742  ln conftest.a conftest.b 2>/dev/null && hard_links=no
30743  { echo "$as_me:$LINENO: result: $hard_links" >&5
30744echo "${ECHO_T}$hard_links" >&6; }
30745  if test "$hard_links" = no; then
30746    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
30747echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
30748    need_locks=warn
30749  fi
30750else
30751  need_locks=no
30752fi
30753
30754{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
30755echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
30756
30757  runpath_var=
30758  allow_undefined_flag_GCJ=
30759  enable_shared_with_static_runtimes_GCJ=no
30760  archive_cmds_GCJ=
30761  archive_expsym_cmds_GCJ=
30762  old_archive_From_new_cmds_GCJ=
30763  old_archive_from_expsyms_cmds_GCJ=
30764  export_dynamic_flag_spec_GCJ=
30765  whole_archive_flag_spec_GCJ=
30766  thread_safe_flag_spec_GCJ=
30767  hardcode_libdir_flag_spec_GCJ=
30768  hardcode_libdir_flag_spec_ld_GCJ=
30769  hardcode_libdir_separator_GCJ=
30770  hardcode_direct_GCJ=no
30771  hardcode_minus_L_GCJ=no
30772  hardcode_shlibpath_var_GCJ=unsupported
30773  link_all_deplibs_GCJ=unknown
30774  hardcode_automatic_GCJ=no
30775  module_cmds_GCJ=
30776  module_expsym_cmds_GCJ=
30777  always_export_symbols_GCJ=no
30778  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30779  # include_expsyms should be a list of space-separated symbols to be *always*
30780  # included in the symbol list
30781  include_expsyms_GCJ=
30782  # exclude_expsyms can be an extended regexp of symbols to exclude
30783  # it will be wrapped by ` (' and `)$', so one must not match beginning or
30784  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
30785  # as well as any symbol that contains `d'.
30786  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
30787  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
30788  # platforms (ab)use it in PIC code, but their linkers get confused if
30789  # the symbol is explicitly referenced.  Since portable code cannot
30790  # rely on this symbol name, it's probably fine to never include it in
30791  # preloaded symbol tables.
30792  extract_expsyms_cmds=
30793  # Just being paranoid about ensuring that cc_basename is set.
30794  for cc_temp in $compiler""; do
30795  case $cc_temp in
30796    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30797    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30798    \-*) ;;
30799    *) break;;
30800  esac
30801done
30802cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30803
30804  case $host_os in
30805  cygwin* | mingw* | pw32*)
30806    # FIXME: the MSVC++ port hasn't been tested in a loooong time
30807    # When not using gcc, we currently assume that we are using
30808    # Microsoft Visual C++.
30809    if test "$GCC" != yes; then
30810      with_gnu_ld=no
30811    fi
30812    ;;
30813  interix*)
30814    # we just hope/assume this is gcc and not c89 (= MSVC++)
30815    with_gnu_ld=yes
30816    ;;
30817  openbsd*)
30818    with_gnu_ld=no
30819    ;;
30820  esac
30821
30822  ld_shlibs_GCJ=yes
30823  if test "$with_gnu_ld" = yes; then
30824    # If archive_cmds runs LD, not CC, wlarc should be empty
30825    wlarc='${wl}'
30826
30827    # Set some defaults for GNU ld with shared library support. These
30828    # are reset later if shared libraries are not supported. Putting them
30829    # here allows them to be overridden if necessary.
30830    runpath_var=LD_RUN_PATH
30831    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
30832    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
30833    # ancient GNU ld didn't support --whole-archive et. al.
30834    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
30835	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
30836      else
30837  	whole_archive_flag_spec_GCJ=
30838    fi
30839    supports_anon_versioning=no
30840    case `$LD -v 2>/dev/null` in
30841      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
30842      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
30843      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
30844      *\ 2.11.*) ;; # other 2.11 versions
30845      *) supports_anon_versioning=yes ;;
30846    esac
30847
30848    # See if GNU ld supports shared libraries.
30849    case $host_os in
30850    aix3* | aix4* | aix5*)
30851      # On AIX/PPC, the GNU linker is very broken
30852      if test "$host_cpu" != ia64; then
30853	ld_shlibs_GCJ=no
30854	cat <<EOF 1>&2
30855
30856*** Warning: the GNU linker, at least up to release 2.9.1, is reported
30857*** to be unable to reliably create shared libraries on AIX.
30858*** Therefore, libtool is disabling shared libraries support.  If you
30859*** really care for shared libraries, you may want to modify your PATH
30860*** so that a non-GNU linker is found, and then restart.
30861
30862EOF
30863      fi
30864      ;;
30865
30866    amigaos*)
30867      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)'
30868      hardcode_libdir_flag_spec_GCJ='-L$libdir'
30869      hardcode_minus_L_GCJ=yes
30870
30871      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
30872      # that the semantics of dynamic libraries on AmigaOS, at least up
30873      # to version 4, is to share data among multiple programs linked
30874      # with the same dynamic library.  Since this doesn't match the
30875      # behavior of shared libraries on other platforms, we can't use
30876      # them.
30877      ld_shlibs_GCJ=no
30878      ;;
30879
30880    beos*)
30881      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30882	allow_undefined_flag_GCJ=unsupported
30883	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
30884	# support --undefined.  This deserves some investigation.  FIXME
30885	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30886      else
30887	ld_shlibs_GCJ=no
30888      fi
30889      ;;
30890
30891    cygwin* | mingw* | pw32*)
30892      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
30893      # as there is no search path for DLLs.
30894      hardcode_libdir_flag_spec_GCJ='-L$libdir'
30895      allow_undefined_flag_GCJ=unsupported
30896      always_export_symbols_GCJ=no
30897      enable_shared_with_static_runtimes_GCJ=yes
30898      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
30899
30900      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
30901        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
30902	# If the export-symbols file already is a .def file (1st line
30903	# is EXPORTS), use it as is; otherwise, prepend...
30904	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
30905	  cp $export_symbols $output_objdir/$soname.def;
30906	else
30907	  echo EXPORTS > $output_objdir/$soname.def;
30908	  cat $export_symbols >> $output_objdir/$soname.def;
30909	fi~
30910	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
30911      else
30912	ld_shlibs_GCJ=no
30913      fi
30914      ;;
30915
30916    interix3*)
30917      hardcode_direct_GCJ=no
30918      hardcode_shlibpath_var_GCJ=no
30919      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
30920      export_dynamic_flag_spec_GCJ='${wl}-E'
30921      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
30922      # Instead, shared libraries are loaded at an image base (0x10000000 by
30923      # default) and relocated if they conflict, which is a slow very memory
30924      # consuming and fragmenting process.  To avoid this, we pick a random,
30925      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
30926      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
30927      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'
30928      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'
30929      ;;
30930
30931    linux* | k*bsd*-gnu)
30932      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30933	tmp_addflag=
30934	case $cc_basename,$host_cpu in
30935	pgcc*)				# Portland Group C compiler
30936	  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'
30937	  tmp_addflag=' $pic_flag'
30938	  ;;
30939	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
30940	  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'
30941	  tmp_addflag=' $pic_flag -Mnomain' ;;
30942	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
30943	  tmp_addflag=' -i_dynamic' ;;
30944	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
30945	  tmp_addflag=' -i_dynamic -nofor_main' ;;
30946	ifc* | ifort*)			# Intel Fortran compiler
30947	  tmp_addflag=' -nofor_main' ;;
30948	esac
30949	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30950
30951	if test $supports_anon_versioning = yes; then
30952	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
30953  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
30954  $echo "local: *; };" >> $output_objdir/$libname.ver~
30955	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
30956	fi
30957	link_all_deplibs_GCJ=no
30958      else
30959	ld_shlibs_GCJ=no
30960      fi
30961      ;;
30962
30963    netbsd* | netbsdelf*-gnu)
30964      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
30965	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
30966	wlarc=
30967      else
30968	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30969	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
30970      fi
30971      ;;
30972
30973    solaris*)
30974      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
30975	ld_shlibs_GCJ=no
30976	cat <<EOF 1>&2
30977
30978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
30979*** create shared libraries on Solaris systems.  Therefore, libtool
30980*** is disabling shared libraries support.  We urge you to upgrade GNU
30981*** binutils to release 2.9.1 or newer.  Another option is to modify
30982*** your PATH or compiler configuration so that the native linker is
30983*** used, and then restart.
30984
30985EOF
30986      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30987	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30988	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
30989      else
30990	ld_shlibs_GCJ=no
30991      fi
30992      ;;
30993
30994    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
30995      case `$LD -v 2>&1` in
30996        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
30997	ld_shlibs_GCJ=no
30998	cat <<_LT_EOF 1>&2
30999
31000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
31001*** reliably create shared libraries on SCO systems.  Therefore, libtool
31002*** is disabling shared libraries support.  We urge you to upgrade GNU
31003*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
31004*** your PATH or compiler configuration so that the native linker is
31005*** used, and then restart.
31006
31007_LT_EOF
31008	;;
31009	*)
31010	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31011	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
31012	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
31013	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
31014	  else
31015	    ld_shlibs_GCJ=no
31016	  fi
31017	;;
31018      esac
31019      ;;
31020
31021    sunos4*)
31022      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31023      wlarc=
31024      hardcode_direct_GCJ=yes
31025      hardcode_shlibpath_var_GCJ=no
31026      ;;
31027
31028    *)
31029      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31030	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31031	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31032      else
31033	ld_shlibs_GCJ=no
31034      fi
31035      ;;
31036    esac
31037
31038    if test "$ld_shlibs_GCJ" = no; then
31039      runpath_var=
31040      hardcode_libdir_flag_spec_GCJ=
31041      export_dynamic_flag_spec_GCJ=
31042      whole_archive_flag_spec_GCJ=
31043    fi
31044  else
31045    # PORTME fill in a description of your system's linker (not GNU ld)
31046    case $host_os in
31047    aix3*)
31048      allow_undefined_flag_GCJ=unsupported
31049      always_export_symbols_GCJ=yes
31050      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'
31051      # Note: this linker hardcodes the directories in LIBPATH if there
31052      # are no directories specified by -L.
31053      hardcode_minus_L_GCJ=yes
31054      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
31055	# Neither direct hardcoding nor static linking is supported with a
31056	# broken collect2.
31057	hardcode_direct_GCJ=unsupported
31058      fi
31059      ;;
31060
31061    aix4* | aix5*)
31062      if test "$host_cpu" = ia64; then
31063	# On IA64, the linker does run time linking by default, so we don't
31064	# have to do anything special.
31065	aix_use_runtimelinking=no
31066	exp_sym_flag='-Bexport'
31067	no_entry_flag=""
31068      else
31069	# If we're using GNU nm, then we don't want the "-C" option.
31070	# -C means demangle to AIX nm, but means don't demangle with GNU nm
31071	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
31072	  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'
31073	else
31074	  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'
31075	fi
31076	aix_use_runtimelinking=no
31077
31078	# Test if we are trying to use run time linking or normal
31079	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
31080	# need to do runtime linking.
31081	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
31082	  for ld_flag in $LDFLAGS; do
31083  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
31084  	    aix_use_runtimelinking=yes
31085  	    break
31086  	  fi
31087	  done
31088	  ;;
31089	esac
31090
31091	exp_sym_flag='-bexport'
31092	no_entry_flag='-bnoentry'
31093      fi
31094
31095      # When large executables or shared objects are built, AIX ld can
31096      # have problems creating the table of contents.  If linking a library
31097      # or program results in "error TOC overflow" add -mminimal-toc to
31098      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
31099      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
31100
31101      archive_cmds_GCJ=''
31102      hardcode_direct_GCJ=yes
31103      hardcode_libdir_separator_GCJ=':'
31104      link_all_deplibs_GCJ=yes
31105
31106      if test "$GCC" = yes; then
31107	case $host_os in aix4.[012]|aix4.[012].*)
31108	# We only want to do this on AIX 4.2 and lower, the check
31109	# below for broken collect2 doesn't work under 4.3+
31110	  collect2name=`${CC} -print-prog-name=collect2`
31111	  if test -f "$collect2name" && \
31112  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
31113	  then
31114  	  # We have reworked collect2
31115  	  hardcode_direct_GCJ=yes
31116	  else
31117  	  # We have old collect2
31118  	  hardcode_direct_GCJ=unsupported
31119  	  # It fails to find uninstalled libraries when the uninstalled
31120  	  # path is not listed in the libpath.  Setting hardcode_minus_L
31121  	  # to unsupported forces relinking
31122  	  hardcode_minus_L_GCJ=yes
31123  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
31124  	  hardcode_libdir_separator_GCJ=
31125	  fi
31126	  ;;
31127	esac
31128	shared_flag='-shared'
31129	if test "$aix_use_runtimelinking" = yes; then
31130	  shared_flag="$shared_flag "'${wl}-G'
31131	fi
31132      else
31133	# not using gcc
31134	if test "$host_cpu" = ia64; then
31135  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
31136  	# chokes on -Wl,-G. The following line is correct:
31137	  shared_flag='-G'
31138	else
31139	  if test "$aix_use_runtimelinking" = yes; then
31140	    shared_flag='${wl}-G'
31141	  else
31142	    shared_flag='${wl}-bM:SRE'
31143	  fi
31144	fi
31145      fi
31146
31147      # It seems that -bexpall does not export symbols beginning with
31148      # underscore (_), so it is better to generate a list of symbols to export.
31149      always_export_symbols_GCJ=yes
31150      if test "$aix_use_runtimelinking" = yes; then
31151	# Warning - without using the other runtime loading flags (-brtl),
31152	# -berok will link without error, but may produce a broken library.
31153	allow_undefined_flag_GCJ='-berok'
31154       # Determine the default libpath from the value encoded in an empty executable.
31155       cat >conftest.$ac_ext <<_ACEOF
31156/* confdefs.h.  */
31157_ACEOF
31158cat confdefs.h >>conftest.$ac_ext
31159cat >>conftest.$ac_ext <<_ACEOF
31160/* end confdefs.h.  */
31161
31162int
31163main ()
31164{
31165
31166  ;
31167  return 0;
31168}
31169_ACEOF
31170rm -f conftest.$ac_objext conftest$ac_exeext
31171if { (ac_try="$ac_link"
31172case "(($ac_try" in
31173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174  *) ac_try_echo=$ac_try;;
31175esac
31176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177  (eval "$ac_link") 2>conftest.er1
31178  ac_status=$?
31179  grep -v '^ *+' conftest.er1 >conftest.err
31180  rm -f conftest.er1
31181  cat conftest.err >&5
31182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183  (exit $ac_status); } && {
31184	 test -z "$ac_c_werror_flag" ||
31185	 test ! -s conftest.err
31186       } && test -s conftest$ac_exeext &&
31187       $as_test_x conftest$ac_exeext; then
31188
31189aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
31190}'`
31191# Check for a 64-bit object if we didn't find anything.
31192if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
31193}'`; fi
31194else
31195  echo "$as_me: failed program was:" >&5
31196sed 's/^/| /' conftest.$ac_ext >&5
31197
31198
31199fi
31200
31201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31202      conftest$ac_exeext conftest.$ac_ext
31203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31204
31205       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
31206	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"
31207       else
31208	if test "$host_cpu" = ia64; then
31209	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
31210	  allow_undefined_flag_GCJ="-z nodefs"
31211	  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"
31212	else
31213	 # Determine the default libpath from the value encoded in an empty executable.
31214	 cat >conftest.$ac_ext <<_ACEOF
31215/* confdefs.h.  */
31216_ACEOF
31217cat confdefs.h >>conftest.$ac_ext
31218cat >>conftest.$ac_ext <<_ACEOF
31219/* end confdefs.h.  */
31220
31221int
31222main ()
31223{
31224
31225  ;
31226  return 0;
31227}
31228_ACEOF
31229rm -f conftest.$ac_objext conftest$ac_exeext
31230if { (ac_try="$ac_link"
31231case "(($ac_try" in
31232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233  *) ac_try_echo=$ac_try;;
31234esac
31235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236  (eval "$ac_link") 2>conftest.er1
31237  ac_status=$?
31238  grep -v '^ *+' conftest.er1 >conftest.err
31239  rm -f conftest.er1
31240  cat conftest.err >&5
31241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242  (exit $ac_status); } && {
31243	 test -z "$ac_c_werror_flag" ||
31244	 test ! -s conftest.err
31245       } && test -s conftest$ac_exeext &&
31246       $as_test_x conftest$ac_exeext; then
31247
31248aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
31249}'`
31250# Check for a 64-bit object if we didn't find anything.
31251if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
31252}'`; fi
31253else
31254  echo "$as_me: failed program was:" >&5
31255sed 's/^/| /' conftest.$ac_ext >&5
31256
31257
31258fi
31259
31260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31261      conftest$ac_exeext conftest.$ac_ext
31262if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31263
31264	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
31265	  # Warning - without using the other run time loading flags,
31266	  # -berok will link without error, but may produce a broken library.
31267	  no_undefined_flag_GCJ=' ${wl}-bernotok'
31268	  allow_undefined_flag_GCJ=' ${wl}-berok'
31269	  # Exported symbols can be pulled into shared objects from archives
31270	  whole_archive_flag_spec_GCJ='$convenience'
31271	  archive_cmds_need_lc_GCJ=yes
31272	  # This is similar to how AIX traditionally builds its shared libraries.
31273	  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'
31274	fi
31275      fi
31276      ;;
31277
31278    amigaos*)
31279      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)'
31280      hardcode_libdir_flag_spec_GCJ='-L$libdir'
31281      hardcode_minus_L_GCJ=yes
31282      # see comment about different semantics on the GNU ld section
31283      ld_shlibs_GCJ=no
31284      ;;
31285
31286    bsdi[45]*)
31287      export_dynamic_flag_spec_GCJ=-rdynamic
31288      ;;
31289
31290    cygwin* | mingw* | pw32*)
31291      # When not using gcc, we currently assume that we are using
31292      # Microsoft Visual C++.
31293      # hardcode_libdir_flag_spec is actually meaningless, as there is
31294      # no search path for DLLs.
31295      hardcode_libdir_flag_spec_GCJ=' '
31296      allow_undefined_flag_GCJ=unsupported
31297      # Tell ltmain to make .lib files, not .a files.
31298      libext=lib
31299      # Tell ltmain to make .dll files, not .so files.
31300      shrext_cmds=".dll"
31301      # FIXME: Setting linknames here is a bad hack.
31302      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
31303      # The linker will automatically build a .lib file if we build a DLL.
31304      old_archive_From_new_cmds_GCJ='true'
31305      # FIXME: Should let the user specify the lib program.
31306      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
31307      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
31308      enable_shared_with_static_runtimes_GCJ=yes
31309      ;;
31310
31311    darwin* | rhapsody*)
31312      case $host_os in
31313        rhapsody* | darwin1.[012])
31314         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
31315         ;;
31316       *) # Darwin 1.3 on
31317         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
31318           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
31319         else
31320           case ${MACOSX_DEPLOYMENT_TARGET} in
31321             10.[012])
31322               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
31323               ;;
31324             10.*)
31325               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
31326               ;;
31327           esac
31328         fi
31329         ;;
31330      esac
31331      archive_cmds_need_lc_GCJ=no
31332      hardcode_direct_GCJ=no
31333      hardcode_automatic_GCJ=yes
31334      hardcode_shlibpath_var_GCJ=unsupported
31335      whole_archive_flag_spec_GCJ=''
31336      link_all_deplibs_GCJ=yes
31337    if test "$GCC" = yes ; then
31338    	output_verbose_link_cmd='echo'
31339        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
31340      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
31341      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
31342      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
31343      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}'
31344    else
31345      case $cc_basename in
31346        xlc*)
31347         output_verbose_link_cmd='echo'
31348         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
31349         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
31350          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
31351         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
31352          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}'
31353          ;;
31354       *)
31355         ld_shlibs_GCJ=no
31356          ;;
31357      esac
31358    fi
31359      ;;
31360
31361    dgux*)
31362      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31363      hardcode_libdir_flag_spec_GCJ='-L$libdir'
31364      hardcode_shlibpath_var_GCJ=no
31365      ;;
31366
31367    freebsd1*)
31368      ld_shlibs_GCJ=no
31369      ;;
31370
31371    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
31372    # support.  Future versions do this automatically, but an explicit c++rt0.o
31373    # does not break anything, and helps significantly (at the cost of a little
31374    # extra space).
31375    freebsd2.2*)
31376      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
31377      hardcode_libdir_flag_spec_GCJ='-R$libdir'
31378      hardcode_direct_GCJ=yes
31379      hardcode_shlibpath_var_GCJ=no
31380      ;;
31381
31382    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31383    freebsd2*)
31384      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31385      hardcode_direct_GCJ=yes
31386      hardcode_minus_L_GCJ=yes
31387      hardcode_shlibpath_var_GCJ=no
31388      ;;
31389
31390    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
31391    freebsd* | dragonfly*)
31392      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
31393      hardcode_libdir_flag_spec_GCJ='-R$libdir'
31394      hardcode_direct_GCJ=yes
31395      hardcode_shlibpath_var_GCJ=no
31396      ;;
31397
31398    hpux9*)
31399      if test "$GCC" = yes; then
31400	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'
31401      else
31402	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'
31403      fi
31404      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
31405      hardcode_libdir_separator_GCJ=:
31406      hardcode_direct_GCJ=yes
31407
31408      # hardcode_minus_L: Not really in the search PATH,
31409      # but as the default location of the library.
31410      hardcode_minus_L_GCJ=yes
31411      export_dynamic_flag_spec_GCJ='${wl}-E'
31412      ;;
31413
31414    hpux10*)
31415      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31416	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31417      else
31418	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
31419      fi
31420      if test "$with_gnu_ld" = no; then
31421	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
31422	hardcode_libdir_separator_GCJ=:
31423
31424	hardcode_direct_GCJ=yes
31425	export_dynamic_flag_spec_GCJ='${wl}-E'
31426
31427	# hardcode_minus_L: Not really in the search PATH,
31428	# but as the default location of the library.
31429	hardcode_minus_L_GCJ=yes
31430      fi
31431      ;;
31432
31433    hpux11*)
31434      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31435	case $host_cpu in
31436	hppa*64*)
31437	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31438	  ;;
31439	ia64*)
31440	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31441	  ;;
31442	*)
31443	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31444	  ;;
31445	esac
31446      else
31447	case $host_cpu in
31448	hppa*64*)
31449	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31450	  ;;
31451	ia64*)
31452	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31453	  ;;
31454	*)
31455	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31456	  ;;
31457	esac
31458      fi
31459      if test "$with_gnu_ld" = no; then
31460	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
31461	hardcode_libdir_separator_GCJ=:
31462
31463	case $host_cpu in
31464	hppa*64*|ia64*)
31465	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
31466	  hardcode_direct_GCJ=no
31467	  hardcode_shlibpath_var_GCJ=no
31468	  ;;
31469	*)
31470	  hardcode_direct_GCJ=yes
31471	  export_dynamic_flag_spec_GCJ='${wl}-E'
31472
31473	  # hardcode_minus_L: Not really in the search PATH,
31474	  # but as the default location of the library.
31475	  hardcode_minus_L_GCJ=yes
31476	  ;;
31477	esac
31478      fi
31479      ;;
31480
31481    irix5* | irix6* | nonstopux*)
31482      if test "$GCC" = yes; then
31483	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'
31484      else
31485	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'
31486	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
31487      fi
31488      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31489      hardcode_libdir_separator_GCJ=:
31490      link_all_deplibs_GCJ=yes
31491      ;;
31492
31493    netbsd* | netbsdelf*-gnu)
31494      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
31495	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
31496      else
31497	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
31498      fi
31499      hardcode_libdir_flag_spec_GCJ='-R$libdir'
31500      hardcode_direct_GCJ=yes
31501      hardcode_shlibpath_var_GCJ=no
31502      ;;
31503
31504    newsos6)
31505      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31506      hardcode_direct_GCJ=yes
31507      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31508      hardcode_libdir_separator_GCJ=:
31509      hardcode_shlibpath_var_GCJ=no
31510      ;;
31511
31512    openbsd*)
31513      hardcode_direct_GCJ=yes
31514      hardcode_shlibpath_var_GCJ=no
31515      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
31516	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31517	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
31518	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
31519	export_dynamic_flag_spec_GCJ='${wl}-E'
31520      else
31521       case $host_os in
31522	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
31523	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31524	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
31525	   ;;
31526	 *)
31527	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31528	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
31529	   ;;
31530       esac
31531      fi
31532      ;;
31533
31534    os2*)
31535      hardcode_libdir_flag_spec_GCJ='-L$libdir'
31536      hardcode_minus_L_GCJ=yes
31537      allow_undefined_flag_GCJ=unsupported
31538      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'
31539      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
31540      ;;
31541
31542    osf3*)
31543      if test "$GCC" = yes; then
31544	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
31545	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'
31546      else
31547	allow_undefined_flag_GCJ=' -expect_unresolved \*'
31548	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'
31549      fi
31550      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31551      hardcode_libdir_separator_GCJ=:
31552      ;;
31553
31554    osf4* | osf5*)	# as osf3* with the addition of -msym flag
31555      if test "$GCC" = yes; then
31556	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
31557	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'
31558	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31559      else
31560	allow_undefined_flag_GCJ=' -expect_unresolved \*'
31561	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'
31562	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~
31563	$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'
31564
31565	# Both c and cxx compiler support -rpath directly
31566	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
31567      fi
31568      hardcode_libdir_separator_GCJ=:
31569      ;;
31570
31571    solaris*)
31572      no_undefined_flag_GCJ=' -z text'
31573      if test "$GCC" = yes; then
31574	wlarc='${wl}'
31575	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31576	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31577	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
31578      else
31579	wlarc=''
31580	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
31581	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31582  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
31583      fi
31584      hardcode_libdir_flag_spec_GCJ='-R$libdir'
31585      hardcode_shlibpath_var_GCJ=no
31586      case $host_os in
31587      solaris2.[0-5] | solaris2.[0-5].*) ;;
31588      *)
31589 	# The compiler driver will combine linker options so we
31590 	# cannot just pass the convience library names through
31591 	# without $wl, iff we do not link with $LD.
31592 	# Luckily, gcc supports the same syntax we need for Sun Studio.
31593 	# Supported since Solaris 2.6 (maybe 2.5.1?)
31594 	case $wlarc in
31595 	'')
31596 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
31597 	*)
31598 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
31599 	esac ;;
31600      esac
31601      link_all_deplibs_GCJ=yes
31602      ;;
31603
31604    sunos4*)
31605      if test "x$host_vendor" = xsequent; then
31606	# Use $CC to link under sequent, because it throws in some extra .o
31607	# files that make .init and .fini sections work.
31608	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
31609      else
31610	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
31611      fi
31612      hardcode_libdir_flag_spec_GCJ='-L$libdir'
31613      hardcode_direct_GCJ=yes
31614      hardcode_minus_L_GCJ=yes
31615      hardcode_shlibpath_var_GCJ=no
31616      ;;
31617
31618    sysv4)
31619      case $host_vendor in
31620	sni)
31621	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31622	  hardcode_direct_GCJ=yes # is this really true???
31623	;;
31624	siemens)
31625	  ## LD is ld it makes a PLAMLIB
31626	  ## CC just makes a GrossModule.
31627	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
31628	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
31629	  hardcode_direct_GCJ=no
31630        ;;
31631	motorola)
31632	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31633	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
31634	;;
31635      esac
31636      runpath_var='LD_RUN_PATH'
31637      hardcode_shlibpath_var_GCJ=no
31638      ;;
31639
31640    sysv4.3*)
31641      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31642      hardcode_shlibpath_var_GCJ=no
31643      export_dynamic_flag_spec_GCJ='-Bexport'
31644      ;;
31645
31646    sysv4*MP*)
31647      if test -d /usr/nec; then
31648	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31649	hardcode_shlibpath_var_GCJ=no
31650	runpath_var=LD_RUN_PATH
31651	hardcode_runpath_var=yes
31652	ld_shlibs_GCJ=yes
31653      fi
31654      ;;
31655
31656    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
31657      no_undefined_flag_GCJ='${wl}-z,text'
31658      archive_cmds_need_lc_GCJ=no
31659      hardcode_shlibpath_var_GCJ=no
31660      runpath_var='LD_RUN_PATH'
31661
31662      if test "$GCC" = yes; then
31663	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31664	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31665      else
31666	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31667	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31668      fi
31669      ;;
31670
31671    sysv5* | sco3.2v5* | sco5v6*)
31672      # Note: We can NOT use -z defs as we might desire, because we do not
31673      # link with -lc, and that would cause any symbols used from libc to
31674      # always be unresolved, which means just about no library would
31675      # ever link correctly.  If we're not using GNU ld we use -z text
31676      # though, which does catch some bad symbols but isn't as heavy-handed
31677      # as -z defs.
31678      no_undefined_flag_GCJ='${wl}-z,text'
31679      allow_undefined_flag_GCJ='${wl}-z,nodefs'
31680      archive_cmds_need_lc_GCJ=no
31681      hardcode_shlibpath_var_GCJ=no
31682      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
31683      hardcode_libdir_separator_GCJ=':'
31684      link_all_deplibs_GCJ=yes
31685      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
31686      runpath_var='LD_RUN_PATH'
31687
31688      if test "$GCC" = yes; then
31689	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31690	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31691      else
31692	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31693	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31694      fi
31695      ;;
31696
31697    uts4*)
31698      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31699      hardcode_libdir_flag_spec_GCJ='-L$libdir'
31700      hardcode_shlibpath_var_GCJ=no
31701      ;;
31702
31703    *)
31704      ld_shlibs_GCJ=no
31705      ;;
31706    esac
31707  fi
31708
31709{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
31710echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
31711test "$ld_shlibs_GCJ" = no && can_build_shared=no
31712
31713#
31714# Do we need to explicitly link libc?
31715#
31716case "x$archive_cmds_need_lc_GCJ" in
31717x|xyes)
31718  # Assume -lc should be added
31719  archive_cmds_need_lc_GCJ=yes
31720
31721  if test "$enable_shared" = yes && test "$GCC" = yes; then
31722    case $archive_cmds_GCJ in
31723    *'~'*)
31724      # FIXME: we may have to deal with multi-command sequences.
31725      ;;
31726    '$CC '*)
31727      # Test whether the compiler implicitly links with -lc since on some
31728      # systems, -lgcc has to come before -lc. If gcc already passes -lc
31729      # to ld, don't add -lc before -lgcc.
31730      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
31731echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
31732      $rm conftest*
31733      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
31734
31735      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31736  (eval $ac_compile) 2>&5
31737  ac_status=$?
31738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739  (exit $ac_status); } 2>conftest.err; then
31740        soname=conftest
31741        lib=conftest
31742        libobjs=conftest.$ac_objext
31743        deplibs=
31744        wl=$lt_prog_compiler_wl_GCJ
31745	pic_flag=$lt_prog_compiler_pic_GCJ
31746        compiler_flags=-v
31747        linker_flags=-v
31748        verstring=
31749        output_objdir=.
31750        libname=conftest
31751        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
31752        allow_undefined_flag_GCJ=
31753        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
31754  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
31755  ac_status=$?
31756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757  (exit $ac_status); }
31758        then
31759	  archive_cmds_need_lc_GCJ=no
31760        else
31761	  archive_cmds_need_lc_GCJ=yes
31762        fi
31763        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
31764      else
31765        cat conftest.err 1>&5
31766      fi
31767      $rm conftest*
31768      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
31769echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
31770      ;;
31771    esac
31772  fi
31773  ;;
31774esac
31775
31776{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
31777echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
31778library_names_spec=
31779libname_spec='lib$name'
31780soname_spec=
31781shrext_cmds=".so"
31782postinstall_cmds=
31783postuninstall_cmds=
31784finish_cmds=
31785finish_eval=
31786shlibpath_var=
31787shlibpath_overrides_runpath=unknown
31788version_type=none
31789dynamic_linker="$host_os ld.so"
31790sys_lib_dlsearch_path_spec="/lib /usr/lib"
31791if test "$GCC" = yes; then
31792  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
31793  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
31794    # if the path contains ";" then we assume it to be the separator
31795    # otherwise default to the standard path separator (i.e. ":") - it is
31796    # assumed that no part of a normal pathname contains ";" but that should
31797    # okay in the real world where ";" in dirpaths is itself problematic.
31798    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31799  else
31800    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
31801  fi
31802else
31803  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
31804fi
31805need_lib_prefix=unknown
31806hardcode_into_libs=no
31807
31808# when you set need_version to no, make sure it does not cause -set_version
31809# flags to be left without arguments
31810need_version=unknown
31811
31812case $host_os in
31813aix3*)
31814  version_type=linux
31815  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
31816  shlibpath_var=LIBPATH
31817
31818  # AIX 3 has no versioning support, so we append a major version to the name.
31819  soname_spec='${libname}${release}${shared_ext}$major'
31820  ;;
31821
31822aix4* | aix5*)
31823  version_type=linux
31824  need_lib_prefix=no
31825  need_version=no
31826  hardcode_into_libs=yes
31827  if test "$host_cpu" = ia64; then
31828    # AIX 5 supports IA64
31829    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
31830    shlibpath_var=LD_LIBRARY_PATH
31831  else
31832    # With GCC up to 2.95.x, collect2 would create an import file
31833    # for dependence libraries.  The import file would start with
31834    # the line `#! .'.  This would cause the generated library to
31835    # depend on `.', always an invalid library.  This was fixed in
31836    # development snapshots of GCC prior to 3.0.
31837    case $host_os in
31838      aix4 | aix4.[01] | aix4.[01].*)
31839      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
31840	   echo ' yes '
31841	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
31842	:
31843      else
31844	can_build_shared=no
31845      fi
31846      ;;
31847    esac
31848    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
31849    # soname into executable. Probably we can add versioning support to
31850    # collect2, so additional links can be useful in future.
31851    if test "$aix_use_runtimelinking" = yes; then
31852      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
31853      # instead of lib<name>.a to let people know that these are not
31854      # typical AIX shared libraries.
31855      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31856    else
31857      # We preserve .a as extension for shared libraries through AIX4.2
31858      # and later when we are not doing run time linking.
31859      library_names_spec='${libname}${release}.a $libname.a'
31860      soname_spec='${libname}${release}${shared_ext}$major'
31861    fi
31862    shlibpath_var=LIBPATH
31863  fi
31864  ;;
31865
31866amigaos*)
31867  library_names_spec='$libname.ixlibrary $libname.a'
31868  # Create ${libname}_ixlibrary.a entries in /sys/libs.
31869  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'
31870  ;;
31871
31872beos*)
31873  library_names_spec='${libname}${shared_ext}'
31874  dynamic_linker="$host_os ld.so"
31875  shlibpath_var=LIBRARY_PATH
31876  ;;
31877
31878bsdi[45]*)
31879  version_type=linux
31880  need_version=no
31881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31882  soname_spec='${libname}${release}${shared_ext}$major'
31883  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
31884  shlibpath_var=LD_LIBRARY_PATH
31885  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
31886  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
31887  # the default ld.so.conf also contains /usr/contrib/lib and
31888  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
31889  # libtool to hard-code these into programs
31890  ;;
31891
31892cygwin* | mingw* | pw32*)
31893  version_type=windows
31894  shrext_cmds=".dll"
31895  need_version=no
31896  need_lib_prefix=no
31897
31898  case $GCC,$host_os in
31899  yes,cygwin* | yes,mingw* | yes,pw32*)
31900    library_names_spec='$libname.dll.a'
31901    # DLL is installed to $(libdir)/../bin by postinstall_cmds
31902    postinstall_cmds='base_file=`basename \${file}`~
31903      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
31904      dldir=$destdir/`dirname \$dlpath`~
31905      test -d \$dldir || mkdir -p \$dldir~
31906      $install_prog $dir/$dlname \$dldir/$dlname~
31907      chmod a+x \$dldir/$dlname'
31908    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
31909      dlpath=$dir/\$dldll~
31910       $rm \$dlpath'
31911    shlibpath_overrides_runpath=yes
31912
31913    case $host_os in
31914    cygwin*)
31915      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
31916      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31917      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
31918      ;;
31919    mingw*)
31920      # MinGW DLLs use traditional 'lib' prefix
31921      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31922      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
31923      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
31924        # It is most probably a Windows format PATH printed by
31925        # mingw gcc, but we are running on Cygwin. Gcc prints its search
31926        # path with ; separators, and with drive letters. We can handle the
31927        # drive letters (cygwin fileutils understands them), so leave them,
31928        # especially as we might pass files found there to a mingw objdump,
31929        # which wouldn't understand a cygwinified path. Ahh.
31930        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31931      else
31932        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
31933      fi
31934      ;;
31935    pw32*)
31936      # pw32 DLLs use 'pw' prefix rather than 'lib'
31937      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31938      ;;
31939    esac
31940    ;;
31941
31942  *)
31943    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
31944    ;;
31945  esac
31946  dynamic_linker='Win32 ld.exe'
31947  # FIXME: first we should search . and the directory the executable is in
31948  shlibpath_var=PATH
31949  ;;
31950
31951darwin* | rhapsody*)
31952  dynamic_linker="$host_os dyld"
31953  version_type=darwin
31954  need_lib_prefix=no
31955  need_version=no
31956  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
31957  soname_spec='${libname}${release}${major}$shared_ext'
31958  shlibpath_overrides_runpath=yes
31959  shlibpath_var=DYLD_LIBRARY_PATH
31960  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
31961  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
31962  if test "$GCC" = yes; then
31963    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
31964  else
31965    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
31966  fi
31967  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
31968  ;;
31969
31970dgux*)
31971  version_type=linux
31972  need_lib_prefix=no
31973  need_version=no
31974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
31975  soname_spec='${libname}${release}${shared_ext}$major'
31976  shlibpath_var=LD_LIBRARY_PATH
31977  ;;
31978
31979freebsd1*)
31980  dynamic_linker=no
31981  ;;
31982
31983freebsd* | dragonfly*)
31984  # DragonFly does not have aout.  When/if they implement a new
31985  # versioning mechanism, adjust this.
31986  if test -x /usr/bin/objformat; then
31987    objformat=`/usr/bin/objformat`
31988  else
31989    case $host_os in
31990    freebsd[123]*) objformat=aout ;;
31991    *) objformat=elf ;;
31992    esac
31993  fi
31994  version_type=freebsd-$objformat
31995  case $version_type in
31996    freebsd-elf*)
31997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
31998      need_version=no
31999      need_lib_prefix=no
32000      ;;
32001    freebsd-*)
32002      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
32003      need_version=yes
32004      ;;
32005  esac
32006  shlibpath_var=LD_LIBRARY_PATH
32007  case $host_os in
32008  freebsd2*)
32009    shlibpath_overrides_runpath=yes
32010    ;;
32011  freebsd3.[01]* | freebsdelf3.[01]*)
32012    shlibpath_overrides_runpath=yes
32013    hardcode_into_libs=yes
32014    ;;
32015  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
32016  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
32017    shlibpath_overrides_runpath=no
32018    hardcode_into_libs=yes
32019    ;;
32020  freebsd*) # from 4.6 on
32021    shlibpath_overrides_runpath=yes
32022    hardcode_into_libs=yes
32023    ;;
32024  esac
32025  ;;
32026
32027gnu*)
32028  version_type=linux
32029  need_lib_prefix=no
32030  need_version=no
32031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
32032  soname_spec='${libname}${release}${shared_ext}$major'
32033  shlibpath_var=LD_LIBRARY_PATH
32034  hardcode_into_libs=yes
32035  ;;
32036
32037hpux9* | hpux10* | hpux11*)
32038  # Give a soname corresponding to the major version so that dld.sl refuses to
32039  # link against other versions.
32040  version_type=sunos
32041  need_lib_prefix=no
32042  need_version=no
32043  case $host_cpu in
32044  ia64*)
32045    shrext_cmds='.so'
32046    hardcode_into_libs=yes
32047    dynamic_linker="$host_os dld.so"
32048    shlibpath_var=LD_LIBRARY_PATH
32049    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
32050    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32051    soname_spec='${libname}${release}${shared_ext}$major'
32052    if test "X$HPUX_IA64_MODE" = X32; then
32053      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
32054    else
32055      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
32056    fi
32057    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
32058    ;;
32059   hppa*64*)
32060     shrext_cmds='.sl'
32061     hardcode_into_libs=yes
32062     dynamic_linker="$host_os dld.sl"
32063     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
32064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
32065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32066     soname_spec='${libname}${release}${shared_ext}$major'
32067     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
32068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
32069     ;;
32070   *)
32071    shrext_cmds='.sl'
32072    dynamic_linker="$host_os dld.sl"
32073    shlibpath_var=SHLIB_PATH
32074    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
32075    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32076    soname_spec='${libname}${release}${shared_ext}$major'
32077    ;;
32078  esac
32079  # HP-UX runs *really* slowly unless shared libraries are mode 555.
32080  postinstall_cmds='chmod 555 $lib'
32081  ;;
32082
32083interix3*)
32084  version_type=linux
32085  need_lib_prefix=no
32086  need_version=no
32087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32088  soname_spec='${libname}${release}${shared_ext}$major'
32089  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
32090  shlibpath_var=LD_LIBRARY_PATH
32091  shlibpath_overrides_runpath=no
32092  hardcode_into_libs=yes
32093  ;;
32094
32095irix5* | irix6* | nonstopux*)
32096  case $host_os in
32097    nonstopux*) version_type=nonstopux ;;
32098    *)
32099	if test "$lt_cv_prog_gnu_ld" = yes; then
32100		version_type=linux
32101	else
32102		version_type=irix
32103	fi ;;
32104  esac
32105  need_lib_prefix=no
32106  need_version=no
32107  soname_spec='${libname}${release}${shared_ext}$major'
32108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
32109  case $host_os in
32110  irix5* | nonstopux*)
32111    libsuff= shlibsuff=
32112    ;;
32113  *)
32114    case $LD in # libtool.m4 will add one of these switches to LD
32115    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
32116      libsuff= shlibsuff= libmagic=32-bit;;
32117    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
32118      libsuff=32 shlibsuff=N32 libmagic=N32;;
32119    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
32120      libsuff=64 shlibsuff=64 libmagic=64-bit;;
32121    *) libsuff= shlibsuff= libmagic=never-match;;
32122    esac
32123    ;;
32124  esac
32125  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
32126  shlibpath_overrides_runpath=no
32127  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
32128  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
32129  hardcode_into_libs=yes
32130  ;;
32131
32132# No shared lib support for Linux oldld, aout, or coff.
32133linux*oldld* | linux*aout* | linux*coff*)
32134  dynamic_linker=no
32135  ;;
32136
32137# This must be Linux ELF.
32138linux* | k*bsd*-gnu)
32139  version_type=linux
32140  need_lib_prefix=no
32141  need_version=no
32142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32143  soname_spec='${libname}${release}${shared_ext}$major'
32144  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
32145  shlibpath_var=LD_LIBRARY_PATH
32146  shlibpath_overrides_runpath=no
32147  # This implies no fast_install, which is unacceptable.
32148  # Some rework will be needed to allow for fast_install
32149  # before this can be enabled.
32150  hardcode_into_libs=yes
32151
32152  # Append ld.so.conf contents to the search path
32153  if test -f /etc/ld.so.conf; then
32154    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
32155    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
32156  fi
32157
32158  # We used to test for /lib/ld.so.1 and disable shared libraries on
32159  # powerpc, because MkLinux only supported shared libraries with the
32160  # GNU dynamic linker.  Since this was broken with cross compilers,
32161  # most powerpc-linux boxes support dynamic linking these days and
32162  # people can always --disable-shared, the test was removed, and we
32163  # assume the GNU/Linux dynamic linker is in use.
32164  dynamic_linker='GNU/Linux ld.so'
32165  ;;
32166
32167netbsdelf*-gnu)
32168  version_type=linux
32169  need_lib_prefix=no
32170  need_version=no
32171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32172  soname_spec='${libname}${release}${shared_ext}$major'
32173  shlibpath_var=LD_LIBRARY_PATH
32174  shlibpath_overrides_runpath=no
32175  hardcode_into_libs=yes
32176  dynamic_linker='NetBSD ld.elf_so'
32177  ;;
32178
32179netbsd*)
32180  version_type=sunos
32181  need_lib_prefix=no
32182  need_version=no
32183  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
32184    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32185    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32186    dynamic_linker='NetBSD (a.out) ld.so'
32187  else
32188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32189    soname_spec='${libname}${release}${shared_ext}$major'
32190    dynamic_linker='NetBSD ld.elf_so'
32191  fi
32192  shlibpath_var=LD_LIBRARY_PATH
32193  shlibpath_overrides_runpath=yes
32194  hardcode_into_libs=yes
32195  ;;
32196
32197newsos6)
32198  version_type=linux
32199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32200  shlibpath_var=LD_LIBRARY_PATH
32201  shlibpath_overrides_runpath=yes
32202  ;;
32203
32204nto-qnx*)
32205  version_type=linux
32206  need_lib_prefix=no
32207  need_version=no
32208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32209  soname_spec='${libname}${release}${shared_ext}$major'
32210  shlibpath_var=LD_LIBRARY_PATH
32211  shlibpath_overrides_runpath=yes
32212  ;;
32213
32214openbsd*)
32215  version_type=sunos
32216  sys_lib_dlsearch_path_spec="/usr/lib"
32217  need_lib_prefix=no
32218  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
32219  case $host_os in
32220    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
32221    *)                         need_version=no  ;;
32222  esac
32223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32224  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32225  shlibpath_var=LD_LIBRARY_PATH
32226  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32227    case $host_os in
32228      openbsd2.[89] | openbsd2.[89].*)
32229	shlibpath_overrides_runpath=no
32230	;;
32231      *)
32232	shlibpath_overrides_runpath=yes
32233	;;
32234      esac
32235  else
32236    shlibpath_overrides_runpath=yes
32237  fi
32238  ;;
32239
32240os2*)
32241  libname_spec='$name'
32242  shrext_cmds=".dll"
32243  need_lib_prefix=no
32244  library_names_spec='$libname${shared_ext} $libname.a'
32245  dynamic_linker='OS/2 ld.exe'
32246  shlibpath_var=LIBPATH
32247  ;;
32248
32249osf3* | osf4* | osf5*)
32250  version_type=osf
32251  need_lib_prefix=no
32252  need_version=no
32253  soname_spec='${libname}${release}${shared_ext}$major'
32254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32255  shlibpath_var=LD_LIBRARY_PATH
32256  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
32257  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
32258  ;;
32259
32260solaris*)
32261  version_type=linux
32262  need_lib_prefix=no
32263  need_version=no
32264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32265  soname_spec='${libname}${release}${shared_ext}$major'
32266  shlibpath_var=LD_LIBRARY_PATH
32267  shlibpath_overrides_runpath=yes
32268  hardcode_into_libs=yes
32269  # ldd complains unless libraries are executable
32270  postinstall_cmds='chmod +x $lib'
32271  ;;
32272
32273sunos4*)
32274  version_type=sunos
32275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32276  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
32277  shlibpath_var=LD_LIBRARY_PATH
32278  shlibpath_overrides_runpath=yes
32279  if test "$with_gnu_ld" = yes; then
32280    need_lib_prefix=no
32281  fi
32282  need_version=yes
32283  ;;
32284
32285sysv4 | sysv4.3*)
32286  version_type=linux
32287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32288  soname_spec='${libname}${release}${shared_ext}$major'
32289  shlibpath_var=LD_LIBRARY_PATH
32290  case $host_vendor in
32291    sni)
32292      shlibpath_overrides_runpath=no
32293      need_lib_prefix=no
32294      export_dynamic_flag_spec='${wl}-Blargedynsym'
32295      runpath_var=LD_RUN_PATH
32296      ;;
32297    siemens)
32298      need_lib_prefix=no
32299      ;;
32300    motorola)
32301      need_lib_prefix=no
32302      need_version=no
32303      shlibpath_overrides_runpath=no
32304      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
32305      ;;
32306  esac
32307  ;;
32308
32309sysv4*MP*)
32310  if test -d /usr/nec ;then
32311    version_type=linux
32312    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
32313    soname_spec='$libname${shared_ext}.$major'
32314    shlibpath_var=LD_LIBRARY_PATH
32315  fi
32316  ;;
32317
32318sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
32319  version_type=freebsd-elf
32320  need_lib_prefix=no
32321  need_version=no
32322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
32323  soname_spec='${libname}${release}${shared_ext}$major'
32324  shlibpath_var=LD_LIBRARY_PATH
32325  hardcode_into_libs=yes
32326  if test "$with_gnu_ld" = yes; then
32327    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
32328    shlibpath_overrides_runpath=no
32329  else
32330    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
32331    shlibpath_overrides_runpath=yes
32332    case $host_os in
32333      sco3.2v5*)
32334        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
32335	;;
32336    esac
32337  fi
32338  sys_lib_dlsearch_path_spec='/usr/lib'
32339  ;;
32340
32341uts4*)
32342  version_type=linux
32343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32344  soname_spec='${libname}${release}${shared_ext}$major'
32345  shlibpath_var=LD_LIBRARY_PATH
32346  ;;
32347
32348*)
32349  dynamic_linker=no
32350  ;;
32351esac
32352{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
32353echo "${ECHO_T}$dynamic_linker" >&6; }
32354test "$dynamic_linker" = no && can_build_shared=no
32355
32356variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
32357if test "$GCC" = yes; then
32358  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
32359fi
32360
32361{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
32362echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
32363hardcode_action_GCJ=
32364if test -n "$hardcode_libdir_flag_spec_GCJ" || \
32365   test -n "$runpath_var_GCJ" || \
32366   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
32367
32368  # We can hardcode non-existant directories.
32369  if test "$hardcode_direct_GCJ" != no &&
32370     # If the only mechanism to avoid hardcoding is shlibpath_var, we
32371     # have to relink, otherwise we might link with an installed library
32372     # when we should be linking with a yet-to-be-installed one
32373     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
32374     test "$hardcode_minus_L_GCJ" != no; then
32375    # Linking always hardcodes the temporary library directory.
32376    hardcode_action_GCJ=relink
32377  else
32378    # We can link without hardcoding, and we can hardcode nonexisting dirs.
32379    hardcode_action_GCJ=immediate
32380  fi
32381else
32382  # We cannot hardcode anything, or else we can only hardcode existing
32383  # directories.
32384  hardcode_action_GCJ=unsupported
32385fi
32386{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
32387echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
32388
32389if test "$hardcode_action_GCJ" = relink; then
32390  # Fast installation is not supported
32391  enable_fast_install=no
32392elif test "$shlibpath_overrides_runpath" = yes ||
32393     test "$enable_shared" = no; then
32394  # Fast installation is not necessary
32395  enable_fast_install=needless
32396fi
32397
32398
32399# The else clause should only fire when bootstrapping the
32400# libtool distribution, otherwise you forgot to ship ltmain.sh
32401# with your package, and you will get complaints that there are
32402# no rules to generate ltmain.sh.
32403if test -f "$ltmain"; then
32404  # See if we are running on zsh, and set the options which allow our commands through
32405  # without removal of \ escapes.
32406  if test -n "${ZSH_VERSION+set}" ; then
32407    setopt NO_GLOB_SUBST
32408  fi
32409  # Now quote all the things that may contain metacharacters while being
32410  # careful not to overquote the AC_SUBSTed values.  We take copies of the
32411  # variables and quote the copies for generation of the libtool script.
32412  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
32413    SED SHELL STRIP \
32414    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
32415    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
32416    deplibs_check_method reload_flag reload_cmds need_locks \
32417    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
32418    lt_cv_sys_global_symbol_to_c_name_address \
32419    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
32420    old_postinstall_cmds old_postuninstall_cmds \
32421    compiler_GCJ \
32422    CC_GCJ \
32423    LD_GCJ \
32424    lt_prog_compiler_wl_GCJ \
32425    lt_prog_compiler_pic_GCJ \
32426    lt_prog_compiler_static_GCJ \
32427    lt_prog_compiler_no_builtin_flag_GCJ \
32428    export_dynamic_flag_spec_GCJ \
32429    thread_safe_flag_spec_GCJ \
32430    whole_archive_flag_spec_GCJ \
32431    enable_shared_with_static_runtimes_GCJ \
32432    old_archive_cmds_GCJ \
32433    old_archive_from_new_cmds_GCJ \
32434    predep_objects_GCJ \
32435    postdep_objects_GCJ \
32436    predeps_GCJ \
32437    postdeps_GCJ \
32438    compiler_lib_search_path_GCJ \
32439    archive_cmds_GCJ \
32440    archive_expsym_cmds_GCJ \
32441    postinstall_cmds_GCJ \
32442    postuninstall_cmds_GCJ \
32443    old_archive_from_expsyms_cmds_GCJ \
32444    allow_undefined_flag_GCJ \
32445    no_undefined_flag_GCJ \
32446    export_symbols_cmds_GCJ \
32447    hardcode_libdir_flag_spec_GCJ \
32448    hardcode_libdir_flag_spec_ld_GCJ \
32449    hardcode_libdir_separator_GCJ \
32450    hardcode_automatic_GCJ \
32451    module_cmds_GCJ \
32452    module_expsym_cmds_GCJ \
32453    lt_cv_prog_compiler_c_o_GCJ \
32454    exclude_expsyms_GCJ \
32455    include_expsyms_GCJ; do
32456
32457    case $var in
32458    old_archive_cmds_GCJ | \
32459    old_archive_from_new_cmds_GCJ | \
32460    archive_cmds_GCJ | \
32461    archive_expsym_cmds_GCJ | \
32462    module_cmds_GCJ | \
32463    module_expsym_cmds_GCJ | \
32464    old_archive_from_expsyms_cmds_GCJ | \
32465    export_symbols_cmds_GCJ | \
32466    extract_expsyms_cmds | reload_cmds | finish_cmds | \
32467    postinstall_cmds | postuninstall_cmds | \
32468    old_postinstall_cmds | old_postuninstall_cmds | \
32469    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
32470      # Double-quote double-evaled strings.
32471      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
32472      ;;
32473    *)
32474      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
32475      ;;
32476    esac
32477  done
32478
32479  case $lt_echo in
32480  *'\$0 --fallback-echo"')
32481    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
32482    ;;
32483  esac
32484
32485cfgfile="$ofile"
32486
32487  cat <<__EOF__ >> "$cfgfile"
32488# ### BEGIN LIBTOOL TAG CONFIG: $tagname
32489
32490# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32491
32492# Shell to use when invoking shell scripts.
32493SHELL=$lt_SHELL
32494
32495# Whether or not to build shared libraries.
32496build_libtool_libs=$enable_shared
32497
32498# Whether or not to build static libraries.
32499build_old_libs=$enable_static
32500
32501# Whether or not to add -lc for building shared libraries.
32502build_libtool_need_lc=$archive_cmds_need_lc_GCJ
32503
32504# Whether or not to disallow shared libs when runtime libs are static
32505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
32506
32507# Whether or not to optimize for fast installation.
32508fast_install=$enable_fast_install
32509
32510# The host system.
32511host_alias=$host_alias
32512host=$host
32513host_os=$host_os
32514
32515# The build system.
32516build_alias=$build_alias
32517build=$build
32518build_os=$build_os
32519
32520# An echo program that does not interpret backslashes.
32521echo=$lt_echo
32522
32523# The archiver.
32524AR=$lt_AR
32525AR_FLAGS=$lt_AR_FLAGS
32526
32527# A C compiler.
32528LTCC=$lt_LTCC
32529
32530# LTCC compiler flags.
32531LTCFLAGS=$lt_LTCFLAGS
32532
32533# A language-specific compiler.
32534CC=$lt_compiler_GCJ
32535
32536# Is the compiler the GNU C compiler?
32537with_gcc=$GCC_GCJ
32538
32539# An ERE matcher.
32540EGREP=$lt_EGREP
32541
32542# The linker used to build libraries.
32543LD=$lt_LD_GCJ
32544
32545# Whether we need hard or soft links.
32546LN_S=$lt_LN_S
32547
32548# A BSD-compatible nm program.
32549NM=$lt_NM
32550
32551# A symbol stripping program
32552STRIP=$lt_STRIP
32553
32554# Used to examine libraries when file_magic_cmd begins "file"
32555MAGIC_CMD=$MAGIC_CMD
32556
32557# Used on cygwin: DLL creation program.
32558DLLTOOL="$DLLTOOL"
32559
32560# Used on cygwin: object dumper.
32561OBJDUMP="$OBJDUMP"
32562
32563# Used on cygwin: assembler.
32564AS="$AS"
32565
32566# The name of the directory that contains temporary libtool files.
32567objdir=$objdir
32568
32569# How to create reloadable object files.
32570reload_flag=$lt_reload_flag
32571reload_cmds=$lt_reload_cmds
32572
32573# How to pass a linker flag through the compiler.
32574wl=$lt_lt_prog_compiler_wl_GCJ
32575
32576# Object file suffix (normally "o").
32577objext="$ac_objext"
32578
32579# Old archive suffix (normally "a").
32580libext="$libext"
32581
32582# Shared library suffix (normally ".so").
32583shrext_cmds='$shrext_cmds'
32584
32585# Executable file suffix (normally "").
32586exeext="$exeext"
32587
32588# Additional compiler flags for building library objects.
32589pic_flag=$lt_lt_prog_compiler_pic_GCJ
32590pic_mode=$pic_mode
32591
32592# What is the maximum length of a command?
32593max_cmd_len=$lt_cv_sys_max_cmd_len
32594
32595# Does compiler simultaneously support -c and -o options?
32596compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
32597
32598# Must we lock files when doing compilation?
32599need_locks=$lt_need_locks
32600
32601# Do we need the lib prefix for modules?
32602need_lib_prefix=$need_lib_prefix
32603
32604# Do we need a version for libraries?
32605need_version=$need_version
32606
32607# Whether dlopen is supported.
32608dlopen_support=$enable_dlopen
32609
32610# Whether dlopen of programs is supported.
32611dlopen_self=$enable_dlopen_self
32612
32613# Whether dlopen of statically linked programs is supported.
32614dlopen_self_static=$enable_dlopen_self_static
32615
32616# Compiler flag to prevent dynamic linking.
32617link_static_flag=$lt_lt_prog_compiler_static_GCJ
32618
32619# Compiler flag to turn off builtin functions.
32620no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
32621
32622# Compiler flag to allow reflexive dlopens.
32623export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
32624
32625# Compiler flag to generate shared objects directly from archives.
32626whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
32627
32628# Compiler flag to generate thread-safe objects.
32629thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
32630
32631# Library versioning type.
32632version_type=$version_type
32633
32634# Format of library name prefix.
32635libname_spec=$lt_libname_spec
32636
32637# List of archive names.  First name is the real one, the rest are links.
32638# The last name is the one that the linker finds with -lNAME.
32639library_names_spec=$lt_library_names_spec
32640
32641# The coded name of the library, if different from the real name.
32642soname_spec=$lt_soname_spec
32643
32644# Commands used to build and install an old-style archive.
32645RANLIB=$lt_RANLIB
32646old_archive_cmds=$lt_old_archive_cmds_GCJ
32647old_postinstall_cmds=$lt_old_postinstall_cmds
32648old_postuninstall_cmds=$lt_old_postuninstall_cmds
32649
32650# Create an old-style archive from a shared archive.
32651old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
32652
32653# Create a temporary old-style archive to link instead of a shared archive.
32654old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
32655
32656# Commands used to build and install a shared archive.
32657archive_cmds=$lt_archive_cmds_GCJ
32658archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
32659postinstall_cmds=$lt_postinstall_cmds
32660postuninstall_cmds=$lt_postuninstall_cmds
32661
32662# Commands used to build a loadable module (assumed same as above if empty)
32663module_cmds=$lt_module_cmds_GCJ
32664module_expsym_cmds=$lt_module_expsym_cmds_GCJ
32665
32666# Commands to strip libraries.
32667old_striplib=$lt_old_striplib
32668striplib=$lt_striplib
32669
32670# Dependencies to place before the objects being linked to create a
32671# shared library.
32672predep_objects=$lt_predep_objects_GCJ
32673
32674# Dependencies to place after the objects being linked to create a
32675# shared library.
32676postdep_objects=$lt_postdep_objects_GCJ
32677
32678# Dependencies to place before the objects being linked to create a
32679# shared library.
32680predeps=$lt_predeps_GCJ
32681
32682# Dependencies to place after the objects being linked to create a
32683# shared library.
32684postdeps=$lt_postdeps_GCJ
32685
32686# The library search path used internally by the compiler when linking
32687# a shared library.
32688compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
32689
32690# Method to check whether dependent libraries are shared objects.
32691deplibs_check_method=$lt_deplibs_check_method
32692
32693# Command to use when deplibs_check_method == file_magic.
32694file_magic_cmd=$lt_file_magic_cmd
32695
32696# Flag that allows shared libraries with undefined symbols to be built.
32697allow_undefined_flag=$lt_allow_undefined_flag_GCJ
32698
32699# Flag that forces no undefined symbols.
32700no_undefined_flag=$lt_no_undefined_flag_GCJ
32701
32702# Commands used to finish a libtool library installation in a directory.
32703finish_cmds=$lt_finish_cmds
32704
32705# Same as above, but a single script fragment to be evaled but not shown.
32706finish_eval=$lt_finish_eval
32707
32708# Take the output of nm and produce a listing of raw symbols and C names.
32709global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32710
32711# Transform the output of nm in a proper C declaration
32712global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32713
32714# Transform the output of nm in a C name address pair
32715global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32716
32717# This is the shared library runtime path variable.
32718runpath_var=$runpath_var
32719
32720# This is the shared library path variable.
32721shlibpath_var=$shlibpath_var
32722
32723# Is shlibpath searched before the hard-coded library search path?
32724shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32725
32726# How to hardcode a shared library path into an executable.
32727hardcode_action=$hardcode_action_GCJ
32728
32729# Whether we should hardcode library paths into libraries.
32730hardcode_into_libs=$hardcode_into_libs
32731
32732# Flag to hardcode \$libdir into a binary during linking.
32733# This must work even if \$libdir does not exist.
32734hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
32735
32736# If ld is used when linking, flag to hardcode \$libdir into
32737# a binary during linking. This must work even if \$libdir does
32738# not exist.
32739hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
32740
32741# Whether we need a single -rpath flag with a separated argument.
32742hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
32743
32744# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
32745# resulting binary.
32746hardcode_direct=$hardcode_direct_GCJ
32747
32748# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
32749# resulting binary.
32750hardcode_minus_L=$hardcode_minus_L_GCJ
32751
32752# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
32753# the resulting binary.
32754hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
32755
32756# Set to yes if building a shared library automatically hardcodes DIR into the library
32757# and all subsequent libraries and executables linked against it.
32758hardcode_automatic=$hardcode_automatic_GCJ
32759
32760# Variables whose values should be saved in libtool wrapper scripts and
32761# restored at relink time.
32762variables_saved_for_relink="$variables_saved_for_relink"
32763
32764# Whether libtool must link a program against all its dependency libraries.
32765link_all_deplibs=$link_all_deplibs_GCJ
32766
32767# Compile-time system search path for libraries
32768sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32769
32770# Run-time system search path for libraries
32771sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32772
32773# Fix the shell variable \$srcfile for the compiler.
32774fix_srcfile_path="$fix_srcfile_path_GCJ"
32775
32776# Set to yes if exported symbols are required.
32777always_export_symbols=$always_export_symbols_GCJ
32778
32779# The commands to list exported symbols.
32780export_symbols_cmds=$lt_export_symbols_cmds_GCJ
32781
32782# The commands to extract the exported symbol list from a shared archive.
32783extract_expsyms_cmds=$lt_extract_expsyms_cmds
32784
32785# Symbols that should not be listed in the preloaded symbols.
32786exclude_expsyms=$lt_exclude_expsyms_GCJ
32787
32788# Symbols that must always be exported.
32789include_expsyms=$lt_include_expsyms_GCJ
32790
32791# ### END LIBTOOL TAG CONFIG: $tagname
32792
32793__EOF__
32794
32795
32796else
32797  # If there is no Makefile yet, we rely on a make rule to execute
32798  # `config.status --recheck' to rerun these tests and create the
32799  # libtool script then.
32800  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
32801  if test -f "$ltmain_in"; then
32802    test -f Makefile && make "$ltmain"
32803  fi
32804fi
32805
32806
32807ac_ext=c
32808ac_cpp='$CPP $CPPFLAGS'
32809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32811ac_compiler_gnu=$ac_cv_c_compiler_gnu
32812
32813CC="$lt_save_CC"
32814
32815	else
32816	  tagname=""
32817	fi
32818	;;
32819
32820      RC)
32821
32822
32823# Source file extension for RC test sources.
32824ac_ext=rc
32825
32826# Object file extension for compiled RC test sources.
32827objext=o
32828objext_RC=$objext
32829
32830# Code to be used in simple compile tests
32831lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
32832
32833# Code to be used in simple link tests
32834lt_simple_link_test_code="$lt_simple_compile_test_code"
32835
32836# ltmain only uses $CC for tagged configurations so make sure $CC is set.
32837
32838# If no C compiler was specified, use CC.
32839LTCC=${LTCC-"$CC"}
32840
32841# If no C compiler flags were specified, use CFLAGS.
32842LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32843
32844# Allow CC to be a program name with arguments.
32845compiler=$CC
32846
32847
32848# save warnings/boilerplate of simple test code
32849ac_outfile=conftest.$ac_objext
32850printf "$lt_simple_compile_test_code" >conftest.$ac_ext
32851eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32852_lt_compiler_boilerplate=`cat conftest.err`
32853$rm conftest*
32854
32855ac_outfile=conftest.$ac_objext
32856printf "$lt_simple_link_test_code" >conftest.$ac_ext
32857eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32858_lt_linker_boilerplate=`cat conftest.err`
32859$rm conftest*
32860
32861
32862# Allow CC to be a program name with arguments.
32863lt_save_CC="$CC"
32864CC=${RC-"windres"}
32865compiler=$CC
32866compiler_RC=$CC
32867for cc_temp in $compiler""; do
32868  case $cc_temp in
32869    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32870    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32871    \-*) ;;
32872    *) break;;
32873  esac
32874done
32875cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
32876
32877lt_cv_prog_compiler_c_o_RC=yes
32878
32879# The else clause should only fire when bootstrapping the
32880# libtool distribution, otherwise you forgot to ship ltmain.sh
32881# with your package, and you will get complaints that there are
32882# no rules to generate ltmain.sh.
32883if test -f "$ltmain"; then
32884  # See if we are running on zsh, and set the options which allow our commands through
32885  # without removal of \ escapes.
32886  if test -n "${ZSH_VERSION+set}" ; then
32887    setopt NO_GLOB_SUBST
32888  fi
32889  # Now quote all the things that may contain metacharacters while being
32890  # careful not to overquote the AC_SUBSTed values.  We take copies of the
32891  # variables and quote the copies for generation of the libtool script.
32892  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
32893    SED SHELL STRIP \
32894    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
32895    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
32896    deplibs_check_method reload_flag reload_cmds need_locks \
32897    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
32898    lt_cv_sys_global_symbol_to_c_name_address \
32899    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
32900    old_postinstall_cmds old_postuninstall_cmds \
32901    compiler_RC \
32902    CC_RC \
32903    LD_RC \
32904    lt_prog_compiler_wl_RC \
32905    lt_prog_compiler_pic_RC \
32906    lt_prog_compiler_static_RC \
32907    lt_prog_compiler_no_builtin_flag_RC \
32908    export_dynamic_flag_spec_RC \
32909    thread_safe_flag_spec_RC \
32910    whole_archive_flag_spec_RC \
32911    enable_shared_with_static_runtimes_RC \
32912    old_archive_cmds_RC \
32913    old_archive_from_new_cmds_RC \
32914    predep_objects_RC \
32915    postdep_objects_RC \
32916    predeps_RC \
32917    postdeps_RC \
32918    compiler_lib_search_path_RC \
32919    archive_cmds_RC \
32920    archive_expsym_cmds_RC \
32921    postinstall_cmds_RC \
32922    postuninstall_cmds_RC \
32923    old_archive_from_expsyms_cmds_RC \
32924    allow_undefined_flag_RC \
32925    no_undefined_flag_RC \
32926    export_symbols_cmds_RC \
32927    hardcode_libdir_flag_spec_RC \
32928    hardcode_libdir_flag_spec_ld_RC \
32929    hardcode_libdir_separator_RC \
32930    hardcode_automatic_RC \
32931    module_cmds_RC \
32932    module_expsym_cmds_RC \
32933    lt_cv_prog_compiler_c_o_RC \
32934    exclude_expsyms_RC \
32935    include_expsyms_RC; do
32936
32937    case $var in
32938    old_archive_cmds_RC | \
32939    old_archive_from_new_cmds_RC | \
32940    archive_cmds_RC | \
32941    archive_expsym_cmds_RC | \
32942    module_cmds_RC | \
32943    module_expsym_cmds_RC | \
32944    old_archive_from_expsyms_cmds_RC | \
32945    export_symbols_cmds_RC | \
32946    extract_expsyms_cmds | reload_cmds | finish_cmds | \
32947    postinstall_cmds | postuninstall_cmds | \
32948    old_postinstall_cmds | old_postuninstall_cmds | \
32949    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
32950      # Double-quote double-evaled strings.
32951      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
32952      ;;
32953    *)
32954      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
32955      ;;
32956    esac
32957  done
32958
32959  case $lt_echo in
32960  *'\$0 --fallback-echo"')
32961    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
32962    ;;
32963  esac
32964
32965cfgfile="$ofile"
32966
32967  cat <<__EOF__ >> "$cfgfile"
32968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
32969
32970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32971
32972# Shell to use when invoking shell scripts.
32973SHELL=$lt_SHELL
32974
32975# Whether or not to build shared libraries.
32976build_libtool_libs=$enable_shared
32977
32978# Whether or not to build static libraries.
32979build_old_libs=$enable_static
32980
32981# Whether or not to add -lc for building shared libraries.
32982build_libtool_need_lc=$archive_cmds_need_lc_RC
32983
32984# Whether or not to disallow shared libs when runtime libs are static
32985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
32986
32987# Whether or not to optimize for fast installation.
32988fast_install=$enable_fast_install
32989
32990# The host system.
32991host_alias=$host_alias
32992host=$host
32993host_os=$host_os
32994
32995# The build system.
32996build_alias=$build_alias
32997build=$build
32998build_os=$build_os
32999
33000# An echo program that does not interpret backslashes.
33001echo=$lt_echo
33002
33003# The archiver.
33004AR=$lt_AR
33005AR_FLAGS=$lt_AR_FLAGS
33006
33007# A C compiler.
33008LTCC=$lt_LTCC
33009
33010# LTCC compiler flags.
33011LTCFLAGS=$lt_LTCFLAGS
33012
33013# A language-specific compiler.
33014CC=$lt_compiler_RC
33015
33016# Is the compiler the GNU C compiler?
33017with_gcc=$GCC_RC
33018
33019# An ERE matcher.
33020EGREP=$lt_EGREP
33021
33022# The linker used to build libraries.
33023LD=$lt_LD_RC
33024
33025# Whether we need hard or soft links.
33026LN_S=$lt_LN_S
33027
33028# A BSD-compatible nm program.
33029NM=$lt_NM
33030
33031# A symbol stripping program
33032STRIP=$lt_STRIP
33033
33034# Used to examine libraries when file_magic_cmd begins "file"
33035MAGIC_CMD=$MAGIC_CMD
33036
33037# Used on cygwin: DLL creation program.
33038DLLTOOL="$DLLTOOL"
33039
33040# Used on cygwin: object dumper.
33041OBJDUMP="$OBJDUMP"
33042
33043# Used on cygwin: assembler.
33044AS="$AS"
33045
33046# The name of the directory that contains temporary libtool files.
33047objdir=$objdir
33048
33049# How to create reloadable object files.
33050reload_flag=$lt_reload_flag
33051reload_cmds=$lt_reload_cmds
33052
33053# How to pass a linker flag through the compiler.
33054wl=$lt_lt_prog_compiler_wl_RC
33055
33056# Object file suffix (normally "o").
33057objext="$ac_objext"
33058
33059# Old archive suffix (normally "a").
33060libext="$libext"
33061
33062# Shared library suffix (normally ".so").
33063shrext_cmds='$shrext_cmds'
33064
33065# Executable file suffix (normally "").
33066exeext="$exeext"
33067
33068# Additional compiler flags for building library objects.
33069pic_flag=$lt_lt_prog_compiler_pic_RC
33070pic_mode=$pic_mode
33071
33072# What is the maximum length of a command?
33073max_cmd_len=$lt_cv_sys_max_cmd_len
33074
33075# Does compiler simultaneously support -c and -o options?
33076compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
33077
33078# Must we lock files when doing compilation?
33079need_locks=$lt_need_locks
33080
33081# Do we need the lib prefix for modules?
33082need_lib_prefix=$need_lib_prefix
33083
33084# Do we need a version for libraries?
33085need_version=$need_version
33086
33087# Whether dlopen is supported.
33088dlopen_support=$enable_dlopen
33089
33090# Whether dlopen of programs is supported.
33091dlopen_self=$enable_dlopen_self
33092
33093# Whether dlopen of statically linked programs is supported.
33094dlopen_self_static=$enable_dlopen_self_static
33095
33096# Compiler flag to prevent dynamic linking.
33097link_static_flag=$lt_lt_prog_compiler_static_RC
33098
33099# Compiler flag to turn off builtin functions.
33100no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
33101
33102# Compiler flag to allow reflexive dlopens.
33103export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
33104
33105# Compiler flag to generate shared objects directly from archives.
33106whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
33107
33108# Compiler flag to generate thread-safe objects.
33109thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
33110
33111# Library versioning type.
33112version_type=$version_type
33113
33114# Format of library name prefix.
33115libname_spec=$lt_libname_spec
33116
33117# List of archive names.  First name is the real one, the rest are links.
33118# The last name is the one that the linker finds with -lNAME.
33119library_names_spec=$lt_library_names_spec
33120
33121# The coded name of the library, if different from the real name.
33122soname_spec=$lt_soname_spec
33123
33124# Commands used to build and install an old-style archive.
33125RANLIB=$lt_RANLIB
33126old_archive_cmds=$lt_old_archive_cmds_RC
33127old_postinstall_cmds=$lt_old_postinstall_cmds
33128old_postuninstall_cmds=$lt_old_postuninstall_cmds
33129
33130# Create an old-style archive from a shared archive.
33131old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
33132
33133# Create a temporary old-style archive to link instead of a shared archive.
33134old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
33135
33136# Commands used to build and install a shared archive.
33137archive_cmds=$lt_archive_cmds_RC
33138archive_expsym_cmds=$lt_archive_expsym_cmds_RC
33139postinstall_cmds=$lt_postinstall_cmds
33140postuninstall_cmds=$lt_postuninstall_cmds
33141
33142# Commands used to build a loadable module (assumed same as above if empty)
33143module_cmds=$lt_module_cmds_RC
33144module_expsym_cmds=$lt_module_expsym_cmds_RC
33145
33146# Commands to strip libraries.
33147old_striplib=$lt_old_striplib
33148striplib=$lt_striplib
33149
33150# Dependencies to place before the objects being linked to create a
33151# shared library.
33152predep_objects=$lt_predep_objects_RC
33153
33154# Dependencies to place after the objects being linked to create a
33155# shared library.
33156postdep_objects=$lt_postdep_objects_RC
33157
33158# Dependencies to place before the objects being linked to create a
33159# shared library.
33160predeps=$lt_predeps_RC
33161
33162# Dependencies to place after the objects being linked to create a
33163# shared library.
33164postdeps=$lt_postdeps_RC
33165
33166# The library search path used internally by the compiler when linking
33167# a shared library.
33168compiler_lib_search_path=$lt_compiler_lib_search_path_RC
33169
33170# Method to check whether dependent libraries are shared objects.
33171deplibs_check_method=$lt_deplibs_check_method
33172
33173# Command to use when deplibs_check_method == file_magic.
33174file_magic_cmd=$lt_file_magic_cmd
33175
33176# Flag that allows shared libraries with undefined symbols to be built.
33177allow_undefined_flag=$lt_allow_undefined_flag_RC
33178
33179# Flag that forces no undefined symbols.
33180no_undefined_flag=$lt_no_undefined_flag_RC
33181
33182# Commands used to finish a libtool library installation in a directory.
33183finish_cmds=$lt_finish_cmds
33184
33185# Same as above, but a single script fragment to be evaled but not shown.
33186finish_eval=$lt_finish_eval
33187
33188# Take the output of nm and produce a listing of raw symbols and C names.
33189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33190
33191# Transform the output of nm in a proper C declaration
33192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33193
33194# Transform the output of nm in a C name address pair
33195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33196
33197# This is the shared library runtime path variable.
33198runpath_var=$runpath_var
33199
33200# This is the shared library path variable.
33201shlibpath_var=$shlibpath_var
33202
33203# Is shlibpath searched before the hard-coded library search path?
33204shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33205
33206# How to hardcode a shared library path into an executable.
33207hardcode_action=$hardcode_action_RC
33208
33209# Whether we should hardcode library paths into libraries.
33210hardcode_into_libs=$hardcode_into_libs
33211
33212# Flag to hardcode \$libdir into a binary during linking.
33213# This must work even if \$libdir does not exist.
33214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
33215
33216# If ld is used when linking, flag to hardcode \$libdir into
33217# a binary during linking. This must work even if \$libdir does
33218# not exist.
33219hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
33220
33221# Whether we need a single -rpath flag with a separated argument.
33222hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
33223
33224# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
33225# resulting binary.
33226hardcode_direct=$hardcode_direct_RC
33227
33228# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
33229# resulting binary.
33230hardcode_minus_L=$hardcode_minus_L_RC
33231
33232# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
33233# the resulting binary.
33234hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
33235
33236# Set to yes if building a shared library automatically hardcodes DIR into the library
33237# and all subsequent libraries and executables linked against it.
33238hardcode_automatic=$hardcode_automatic_RC
33239
33240# Variables whose values should be saved in libtool wrapper scripts and
33241# restored at relink time.
33242variables_saved_for_relink="$variables_saved_for_relink"
33243
33244# Whether libtool must link a program against all its dependency libraries.
33245link_all_deplibs=$link_all_deplibs_RC
33246
33247# Compile-time system search path for libraries
33248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33249
33250# Run-time system search path for libraries
33251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33252
33253# Fix the shell variable \$srcfile for the compiler.
33254fix_srcfile_path="$fix_srcfile_path_RC"
33255
33256# Set to yes if exported symbols are required.
33257always_export_symbols=$always_export_symbols_RC
33258
33259# The commands to list exported symbols.
33260export_symbols_cmds=$lt_export_symbols_cmds_RC
33261
33262# The commands to extract the exported symbol list from a shared archive.
33263extract_expsyms_cmds=$lt_extract_expsyms_cmds
33264
33265# Symbols that should not be listed in the preloaded symbols.
33266exclude_expsyms=$lt_exclude_expsyms_RC
33267
33268# Symbols that must always be exported.
33269include_expsyms=$lt_include_expsyms_RC
33270
33271# ### END LIBTOOL TAG CONFIG: $tagname
33272
33273__EOF__
33274
33275
33276else
33277  # If there is no Makefile yet, we rely on a make rule to execute
33278  # `config.status --recheck' to rerun these tests and create the
33279  # libtool script then.
33280  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
33281  if test -f "$ltmain_in"; then
33282    test -f Makefile && make "$ltmain"
33283  fi
33284fi
33285
33286
33287ac_ext=c
33288ac_cpp='$CPP $CPPFLAGS'
33289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291ac_compiler_gnu=$ac_cv_c_compiler_gnu
33292
33293CC="$lt_save_CC"
33294
33295	;;
33296
33297      *)
33298	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
33299echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
33300   { (exit 1); exit 1; }; }
33301	;;
33302      esac
33303
33304      # Append the new tag name to the list of available tags.
33305      if test -n "$tagname" ; then
33306      available_tags="$available_tags $tagname"
33307    fi
33308    fi
33309  done
33310  IFS="$lt_save_ifs"
33311
33312  # Now substitute the updated list of available tags.
33313  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
33314    mv "${ofile}T" "$ofile"
33315    chmod +x "$ofile"
33316  else
33317    rm -f "${ofile}T"
33318    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
33319echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
33320   { (exit 1); exit 1; }; }
33321  fi
33322fi
33323
33324
33325
33326# This can be used to rebuild libtool when needed
33327LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
33328
33329# Always use our own libtool.
33330LIBTOOL='$(SHELL) $(top_builddir)/libtool'
33331
33332# Prevent multiple expansion
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360# Check whether --enable-jpeg was given.
33361if test "${enable_jpeg+set}" = set; then
33362  enableval=$enable_jpeg; if test "x$enable_jpeg" != xno; then
33363		      iff_header="`echo jpeglib.h | $as_tr_sh`"
33364
33365for ac_header in jpeglib.h
33366do
33367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33369  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33372  echo $ECHO_N "(cached) $ECHO_C" >&6
33373fi
33374ac_res=`eval echo '${'$as_ac_Header'}'`
33375	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33376echo "${ECHO_T}$ac_res" >&6; }
33377else
33378  # Is the header compilable?
33379{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33381cat >conftest.$ac_ext <<_ACEOF
33382/* confdefs.h.  */
33383_ACEOF
33384cat confdefs.h >>conftest.$ac_ext
33385cat >>conftest.$ac_ext <<_ACEOF
33386/* end confdefs.h.  */
33387$ac_includes_default
33388#include <$ac_header>
33389_ACEOF
33390rm -f conftest.$ac_objext
33391if { (ac_try="$ac_compile"
33392case "(($ac_try" in
33393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394  *) ac_try_echo=$ac_try;;
33395esac
33396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397  (eval "$ac_compile") 2>conftest.er1
33398  ac_status=$?
33399  grep -v '^ *+' conftest.er1 >conftest.err
33400  rm -f conftest.er1
33401  cat conftest.err >&5
33402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403  (exit $ac_status); } && {
33404	 test -z "$ac_c_werror_flag" ||
33405	 test ! -s conftest.err
33406       } && test -s conftest.$ac_objext; then
33407  ac_header_compiler=yes
33408else
33409  echo "$as_me: failed program was:" >&5
33410sed 's/^/| /' conftest.$ac_ext >&5
33411
33412	ac_header_compiler=no
33413fi
33414
33415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33416{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33417echo "${ECHO_T}$ac_header_compiler" >&6; }
33418
33419# Is the header present?
33420{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33422cat >conftest.$ac_ext <<_ACEOF
33423/* confdefs.h.  */
33424_ACEOF
33425cat confdefs.h >>conftest.$ac_ext
33426cat >>conftest.$ac_ext <<_ACEOF
33427/* end confdefs.h.  */
33428#include <$ac_header>
33429_ACEOF
33430if { (ac_try="$ac_cpp conftest.$ac_ext"
33431case "(($ac_try" in
33432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33433  *) ac_try_echo=$ac_try;;
33434esac
33435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33436  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33437  ac_status=$?
33438  grep -v '^ *+' conftest.er1 >conftest.err
33439  rm -f conftest.er1
33440  cat conftest.err >&5
33441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442  (exit $ac_status); } >/dev/null && {
33443	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33444	 test ! -s conftest.err
33445       }; then
33446  ac_header_preproc=yes
33447else
33448  echo "$as_me: failed program was:" >&5
33449sed 's/^/| /' conftest.$ac_ext >&5
33450
33451  ac_header_preproc=no
33452fi
33453
33454rm -f conftest.err conftest.$ac_ext
33455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33456echo "${ECHO_T}$ac_header_preproc" >&6; }
33457
33458# So?  What about this header?
33459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33460  yes:no: )
33461    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33463    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33465    ac_header_preproc=yes
33466    ;;
33467  no:yes:* )
33468    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33470    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33471echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33472    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33474    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33475echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33478    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33480    ( cat <<\_ASBOX
33481## ------------------------------------------------------------ ##
33482## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
33483## ------------------------------------------------------------ ##
33484_ASBOX
33485     ) | sed "s/^/$as_me: WARNING:     /" >&2
33486    ;;
33487esac
33488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33491  echo $ECHO_N "(cached) $ECHO_C" >&6
33492else
33493  eval "$as_ac_Header=\$ac_header_preproc"
33494fi
33495ac_res=`eval echo '${'$as_ac_Header'}'`
33496	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33497echo "${ECHO_T}$ac_res" >&6; }
33498
33499fi
33500if test `eval echo '${'$as_ac_Header'}'` = yes; then
33501  cat >>confdefs.h <<_ACEOF
33502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33503_ACEOF
33504
33505fi
33506
33507done
33508
33509		      if test `eval echo '$ac_cv_header_'$iff_header` \
33510			       != yes; then
33511			 { { echo "$as_me:$LINENO: error: required header file missing" >&5
33512echo "$as_me: error: required header file missing" >&2;}
33513   { (exit 1); exit 1; }; }
33514		      fi
33515		   fi
33516else
33517
33518for ac_header in jpeglib.h
33519do
33520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33522  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33525  echo $ECHO_N "(cached) $ECHO_C" >&6
33526fi
33527ac_res=`eval echo '${'$as_ac_Header'}'`
33528	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33529echo "${ECHO_T}$ac_res" >&6; }
33530else
33531  # Is the header compilable?
33532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33534cat >conftest.$ac_ext <<_ACEOF
33535/* confdefs.h.  */
33536_ACEOF
33537cat confdefs.h >>conftest.$ac_ext
33538cat >>conftest.$ac_ext <<_ACEOF
33539/* end confdefs.h.  */
33540$ac_includes_default
33541#include <$ac_header>
33542_ACEOF
33543rm -f conftest.$ac_objext
33544if { (ac_try="$ac_compile"
33545case "(($ac_try" in
33546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547  *) ac_try_echo=$ac_try;;
33548esac
33549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550  (eval "$ac_compile") 2>conftest.er1
33551  ac_status=$?
33552  grep -v '^ *+' conftest.er1 >conftest.err
33553  rm -f conftest.er1
33554  cat conftest.err >&5
33555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556  (exit $ac_status); } && {
33557	 test -z "$ac_c_werror_flag" ||
33558	 test ! -s conftest.err
33559       } && test -s conftest.$ac_objext; then
33560  ac_header_compiler=yes
33561else
33562  echo "$as_me: failed program was:" >&5
33563sed 's/^/| /' conftest.$ac_ext >&5
33564
33565	ac_header_compiler=no
33566fi
33567
33568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33570echo "${ECHO_T}$ac_header_compiler" >&6; }
33571
33572# Is the header present?
33573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33575cat >conftest.$ac_ext <<_ACEOF
33576/* confdefs.h.  */
33577_ACEOF
33578cat confdefs.h >>conftest.$ac_ext
33579cat >>conftest.$ac_ext <<_ACEOF
33580/* end confdefs.h.  */
33581#include <$ac_header>
33582_ACEOF
33583if { (ac_try="$ac_cpp conftest.$ac_ext"
33584case "(($ac_try" in
33585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586  *) ac_try_echo=$ac_try;;
33587esac
33588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33590  ac_status=$?
33591  grep -v '^ *+' conftest.er1 >conftest.err
33592  rm -f conftest.er1
33593  cat conftest.err >&5
33594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595  (exit $ac_status); } >/dev/null && {
33596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33597	 test ! -s conftest.err
33598       }; then
33599  ac_header_preproc=yes
33600else
33601  echo "$as_me: failed program was:" >&5
33602sed 's/^/| /' conftest.$ac_ext >&5
33603
33604  ac_header_preproc=no
33605fi
33606
33607rm -f conftest.err conftest.$ac_ext
33608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33609echo "${ECHO_T}$ac_header_preproc" >&6; }
33610
33611# So?  What about this header?
33612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33613  yes:no: )
33614    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33616    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33618    ac_header_preproc=yes
33619    ;;
33620  no:yes:* )
33621    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33623    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33624echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33625    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33627    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33628echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33631    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33633    ( cat <<\_ASBOX
33634## ------------------------------------------------------------ ##
33635## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
33636## ------------------------------------------------------------ ##
33637_ASBOX
33638     ) | sed "s/^/$as_me: WARNING:     /" >&2
33639    ;;
33640esac
33641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33644  echo $ECHO_N "(cached) $ECHO_C" >&6
33645else
33646  eval "$as_ac_Header=\$ac_header_preproc"
33647fi
33648ac_res=`eval echo '${'$as_ac_Header'}'`
33649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33650echo "${ECHO_T}$ac_res" >&6; }
33651
33652fi
33653if test `eval echo '${'$as_ac_Header'}'` = yes; then
33654  cat >>confdefs.h <<_ACEOF
33655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33656_ACEOF
33657
33658fi
33659
33660done
33661
33662fi
33663
33664
33665# Check whether --enable-png was given.
33666if test "${enable_png+set}" = set; then
33667  enableval=$enable_png; if test "x$enable_png" != xno; then
33668		      iff_header="`echo png.h | $as_tr_sh`"
33669
33670for ac_header in png.h
33671do
33672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33674  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33677  echo $ECHO_N "(cached) $ECHO_C" >&6
33678fi
33679ac_res=`eval echo '${'$as_ac_Header'}'`
33680	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33681echo "${ECHO_T}$ac_res" >&6; }
33682else
33683  # Is the header compilable?
33684{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33686cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h.  */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h.  */
33692$ac_includes_default
33693#include <$ac_header>
33694_ACEOF
33695rm -f conftest.$ac_objext
33696if { (ac_try="$ac_compile"
33697case "(($ac_try" in
33698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33699  *) ac_try_echo=$ac_try;;
33700esac
33701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33702  (eval "$ac_compile") 2>conftest.er1
33703  ac_status=$?
33704  grep -v '^ *+' conftest.er1 >conftest.err
33705  rm -f conftest.er1
33706  cat conftest.err >&5
33707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708  (exit $ac_status); } && {
33709	 test -z "$ac_c_werror_flag" ||
33710	 test ! -s conftest.err
33711       } && test -s conftest.$ac_objext; then
33712  ac_header_compiler=yes
33713else
33714  echo "$as_me: failed program was:" >&5
33715sed 's/^/| /' conftest.$ac_ext >&5
33716
33717	ac_header_compiler=no
33718fi
33719
33720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33721{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33722echo "${ECHO_T}$ac_header_compiler" >&6; }
33723
33724# Is the header present?
33725{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33726echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33727cat >conftest.$ac_ext <<_ACEOF
33728/* confdefs.h.  */
33729_ACEOF
33730cat confdefs.h >>conftest.$ac_ext
33731cat >>conftest.$ac_ext <<_ACEOF
33732/* end confdefs.h.  */
33733#include <$ac_header>
33734_ACEOF
33735if { (ac_try="$ac_cpp conftest.$ac_ext"
33736case "(($ac_try" in
33737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738  *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33742  ac_status=$?
33743  grep -v '^ *+' conftest.er1 >conftest.err
33744  rm -f conftest.er1
33745  cat conftest.err >&5
33746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747  (exit $ac_status); } >/dev/null && {
33748	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33749	 test ! -s conftest.err
33750       }; then
33751  ac_header_preproc=yes
33752else
33753  echo "$as_me: failed program was:" >&5
33754sed 's/^/| /' conftest.$ac_ext >&5
33755
33756  ac_header_preproc=no
33757fi
33758
33759rm -f conftest.err conftest.$ac_ext
33760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33761echo "${ECHO_T}$ac_header_preproc" >&6; }
33762
33763# So?  What about this header?
33764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33765  yes:no: )
33766    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33770    ac_header_preproc=yes
33771    ;;
33772  no:yes:* )
33773    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33775    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33776echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33777    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33779    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33780echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33783    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33785    ( cat <<\_ASBOX
33786## ------------------------------------------------------------ ##
33787## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
33788## ------------------------------------------------------------ ##
33789_ASBOX
33790     ) | sed "s/^/$as_me: WARNING:     /" >&2
33791    ;;
33792esac
33793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33796  echo $ECHO_N "(cached) $ECHO_C" >&6
33797else
33798  eval "$as_ac_Header=\$ac_header_preproc"
33799fi
33800ac_res=`eval echo '${'$as_ac_Header'}'`
33801	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33802echo "${ECHO_T}$ac_res" >&6; }
33803
33804fi
33805if test `eval echo '${'$as_ac_Header'}'` = yes; then
33806  cat >>confdefs.h <<_ACEOF
33807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33808_ACEOF
33809
33810fi
33811
33812done
33813
33814		      if test `eval echo '$ac_cv_header_'$iff_header` \
33815			       != yes; then
33816			 { { echo "$as_me:$LINENO: error: required header file missing" >&5
33817echo "$as_me: error: required header file missing" >&2;}
33818   { (exit 1); exit 1; }; }
33819		      fi
33820		   fi
33821else
33822
33823for ac_header in png.h
33824do
33825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33827  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33830  echo $ECHO_N "(cached) $ECHO_C" >&6
33831fi
33832ac_res=`eval echo '${'$as_ac_Header'}'`
33833	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33834echo "${ECHO_T}$ac_res" >&6; }
33835else
33836  # Is the header compilable?
33837{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33839cat >conftest.$ac_ext <<_ACEOF
33840/* confdefs.h.  */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h.  */
33845$ac_includes_default
33846#include <$ac_header>
33847_ACEOF
33848rm -f conftest.$ac_objext
33849if { (ac_try="$ac_compile"
33850case "(($ac_try" in
33851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33852  *) ac_try_echo=$ac_try;;
33853esac
33854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33855  (eval "$ac_compile") 2>conftest.er1
33856  ac_status=$?
33857  grep -v '^ *+' conftest.er1 >conftest.err
33858  rm -f conftest.er1
33859  cat conftest.err >&5
33860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861  (exit $ac_status); } && {
33862	 test -z "$ac_c_werror_flag" ||
33863	 test ! -s conftest.err
33864       } && test -s conftest.$ac_objext; then
33865  ac_header_compiler=yes
33866else
33867  echo "$as_me: failed program was:" >&5
33868sed 's/^/| /' conftest.$ac_ext >&5
33869
33870	ac_header_compiler=no
33871fi
33872
33873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33875echo "${ECHO_T}$ac_header_compiler" >&6; }
33876
33877# Is the header present?
33878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33880cat >conftest.$ac_ext <<_ACEOF
33881/* confdefs.h.  */
33882_ACEOF
33883cat confdefs.h >>conftest.$ac_ext
33884cat >>conftest.$ac_ext <<_ACEOF
33885/* end confdefs.h.  */
33886#include <$ac_header>
33887_ACEOF
33888if { (ac_try="$ac_cpp conftest.$ac_ext"
33889case "(($ac_try" in
33890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33891  *) ac_try_echo=$ac_try;;
33892esac
33893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33894  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33895  ac_status=$?
33896  grep -v '^ *+' conftest.er1 >conftest.err
33897  rm -f conftest.er1
33898  cat conftest.err >&5
33899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900  (exit $ac_status); } >/dev/null && {
33901	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33902	 test ! -s conftest.err
33903       }; then
33904  ac_header_preproc=yes
33905else
33906  echo "$as_me: failed program was:" >&5
33907sed 's/^/| /' conftest.$ac_ext >&5
33908
33909  ac_header_preproc=no
33910fi
33911
33912rm -f conftest.err conftest.$ac_ext
33913{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33914echo "${ECHO_T}$ac_header_preproc" >&6; }
33915
33916# So?  What about this header?
33917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33918  yes:no: )
33919    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33921    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33923    ac_header_preproc=yes
33924    ;;
33925  no:yes:* )
33926    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33928    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33929echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33930    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33932    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33933echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33934    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33936    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33938    ( cat <<\_ASBOX
33939## ------------------------------------------------------------ ##
33940## Report this to EPSON AVASYS Corporation <pipsnews@avasys.jp> ##
33941## ------------------------------------------------------------ ##
33942_ASBOX
33943     ) | sed "s/^/$as_me: WARNING:     /" >&2
33944    ;;
33945esac
33946{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33949  echo $ECHO_N "(cached) $ECHO_C" >&6
33950else
33951  eval "$as_ac_Header=\$ac_header_preproc"
33952fi
33953ac_res=`eval echo '${'$as_ac_Header'}'`
33954	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33955echo "${ECHO_T}$ac_res" >&6; }
33956
33957fi
33958if test `eval echo '${'$as_ac_Header'}'` = yes; then
33959  cat >>confdefs.h <<_ACEOF
33960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33961_ACEOF
33962
33963fi
33964
33965done
33966
33967fi
33968
33969
33970
33971
33972
33973ISCAN_HOST_CPU=$host_cpu
33974
33975{ echo "$as_me:$LINENO: checking whether to build the frontend application" >&5
33976echo $ECHO_N "checking whether to build the frontend application... $ECHO_C" >&6; }
33977# Check whether --enable-frontend was given.
33978if test "${enable_frontend+set}" = set; then
33979  enableval=$enable_frontend; if test "x$enable_frontend" != xno; then
33980		  case $host_cpu in
33981		    i?86) :
33982			  ;;
33983		    *)	  { { echo "$as_me:$LINENO: error: requires IA32 architecture" >&5
33984echo "$as_me: error: requires IA32 architecture" >&2;}
33985   { (exit 1); exit 1; }; }
33986			  ;;
33987		  esac
33988	       fi
33989else
33990  case $host_cpu in
33991	         i?86)   enable_frontend=yes ;;
33992		 *)      enable_frontend=no  ;;
33993	       esac
33994fi
33995
33996{ echo "$as_me:$LINENO: result: $enable_frontend" >&5
33997echo "${ECHO_T}$enable_frontend" >&6; }
33998
33999
34000if test x$enable_frontend = xyes; then
34001  ENABLE_FRONTEND_TRUE=
34002  ENABLE_FRONTEND_FALSE='#'
34003else
34004  ENABLE_FRONTEND_TRUE='#'
34005  ENABLE_FRONTEND_FALSE=
34006fi
34007
34008
34009
34010
34011SANE_MAJOR=1
34012
34013SANE_MINOR=0
34014
34015SANE_REVISION=15
34016
34017ac_config_headers="$ac_config_headers include/sane/config.h:config.h.in"
34018
34019
34020for ac_func in \
34021	sigprocmask \
34022
34023do
34024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34025{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34027if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34028  echo $ECHO_N "(cached) $ECHO_C" >&6
34029else
34030  cat >conftest.$ac_ext <<_ACEOF
34031/* confdefs.h.  */
34032_ACEOF
34033cat confdefs.h >>conftest.$ac_ext
34034cat >>conftest.$ac_ext <<_ACEOF
34035/* end confdefs.h.  */
34036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34038#define $ac_func innocuous_$ac_func
34039
34040/* System header to define __stub macros and hopefully few prototypes,
34041    which can conflict with char $ac_func (); below.
34042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34043    <limits.h> exists even on freestanding compilers.  */
34044
34045#ifdef __STDC__
34046# include <limits.h>
34047#else
34048# include <assert.h>
34049#endif
34050
34051#undef $ac_func
34052
34053/* Override any GCC internal prototype to avoid an error.
34054   Use char because int might match the return type of a GCC
34055   builtin and then its argument prototype would still apply.  */
34056#ifdef __cplusplus
34057extern "C"
34058#endif
34059char $ac_func ();
34060/* The GNU C library defines this for functions which it implements
34061    to always fail with ENOSYS.  Some functions are actually named
34062    something starting with __ and the normal name is an alias.  */
34063#if defined __stub_$ac_func || defined __stub___$ac_func
34064choke me
34065#endif
34066
34067int
34068main ()
34069{
34070return $ac_func ();
34071  ;
34072  return 0;
34073}
34074_ACEOF
34075rm -f conftest.$ac_objext conftest$ac_exeext
34076if { (ac_try="$ac_link"
34077case "(($ac_try" in
34078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34079  *) ac_try_echo=$ac_try;;
34080esac
34081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082  (eval "$ac_link") 2>conftest.er1
34083  ac_status=$?
34084  grep -v '^ *+' conftest.er1 >conftest.err
34085  rm -f conftest.er1
34086  cat conftest.err >&5
34087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088  (exit $ac_status); } && {
34089	 test -z "$ac_c_werror_flag" ||
34090	 test ! -s conftest.err
34091       } && test -s conftest$ac_exeext &&
34092       $as_test_x conftest$ac_exeext; then
34093  eval "$as_ac_var=yes"
34094else
34095  echo "$as_me: failed program was:" >&5
34096sed 's/^/| /' conftest.$ac_ext >&5
34097
34098	eval "$as_ac_var=no"
34099fi
34100
34101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34102      conftest$ac_exeext conftest.$ac_ext
34103fi
34104ac_res=`eval echo '${'$as_ac_var'}'`
34105	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34106echo "${ECHO_T}$ac_res" >&6; }
34107if test `eval echo '${'$as_ac_var'}'` = yes; then
34108  cat >>confdefs.h <<_ACEOF
34109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34110_ACEOF
34111
34112else
34113  case " $LIBOBJS " in
34114  *" $ac_func.$ac_objext "* ) ;;
34115  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34116 ;;
34117esac
34118
34119fi
34120done
34121
34122
34123
34124
34125ac_config_files="$ac_config_files Makefile backend/Makefile doc/Makefile frontend/Makefile include/Makefile intl/Makefile lib/Makefile non-free/Makefile po/Makefile.in sanei/Makefile utils/Makefile iscan.spec"
34126
34127
34128cat >confcache <<\_ACEOF
34129# This file is a shell script that caches the results of configure
34130# tests run on this system so they can be shared between configure
34131# scripts and configure runs, see configure's option --config-cache.
34132# It is not useful on other systems.  If it contains results you don't
34133# want to keep, you may remove or edit it.
34134#
34135# config.status only pays attention to the cache file if you give it
34136# the --recheck option to rerun configure.
34137#
34138# `ac_cv_env_foo' variables (set or unset) will be overridden when
34139# loading this file, other *unset* `ac_cv_foo' will be assigned the
34140# following values.
34141
34142_ACEOF
34143
34144# The following way of writing the cache mishandles newlines in values,
34145# but we know of no workaround that is simple, portable, and efficient.
34146# So, we kill variables containing newlines.
34147# Ultrix sh set writes to stderr and can't be redirected directly,
34148# and sets the high bit in the cache file unless we assign to the vars.
34149(
34150  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34151    eval ac_val=\$$ac_var
34152    case $ac_val in #(
34153    *${as_nl}*)
34154      case $ac_var in #(
34155      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34156echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34157      esac
34158      case $ac_var in #(
34159      _ | IFS | as_nl) ;; #(
34160      *) $as_unset $ac_var ;;
34161      esac ;;
34162    esac
34163  done
34164
34165  (set) 2>&1 |
34166    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34167    *${as_nl}ac_space=\ *)
34168      # `set' does not quote correctly, so add quotes (double-quote
34169      # substitution turns \\\\ into \\, and sed turns \\ into \).
34170      sed -n \
34171	"s/'/'\\\\''/g;
34172	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34173      ;; #(
34174    *)
34175      # `set' quotes correctly as required by POSIX, so do not add quotes.
34176      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34177      ;;
34178    esac |
34179    sort
34180) |
34181  sed '
34182     /^ac_cv_env_/b end
34183     t clear
34184     :clear
34185     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34186     t end
34187     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34188     :end' >>confcache
34189if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34190  if test -w "$cache_file"; then
34191    test "x$cache_file" != "x/dev/null" &&
34192      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34193echo "$as_me: updating cache $cache_file" >&6;}
34194    cat confcache >$cache_file
34195  else
34196    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34197echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34198  fi
34199fi
34200rm -f confcache
34201
34202test "x$prefix" = xNONE && prefix=$ac_default_prefix
34203# Let make expand exec_prefix.
34204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34205
34206DEFS=-DHAVE_CONFIG_H
34207
34208ac_libobjs=
34209ac_ltlibobjs=
34210for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34211  # 1. Remove the extension, and $U if already installed.
34212  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34213  ac_i=`echo "$ac_i" | sed "$ac_script"`
34214  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34215  #    will be set to the directory where LIBOBJS objects are built.
34216  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34217  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34218done
34219LIBOBJS=$ac_libobjs
34220
34221LTLIBOBJS=$ac_ltlibobjs
34222
34223
34224if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34225  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34226Usually this means the macro was only invoked conditionally." >&5
34227echo "$as_me: error: conditional \"AMDEP\" was never defined.
34228Usually this means the macro was only invoked conditionally." >&2;}
34229   { (exit 1); exit 1; }; }
34230fi
34231if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34232  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34233Usually this means the macro was only invoked conditionally." >&5
34234echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34235Usually this means the macro was only invoked conditionally." >&2;}
34236   { (exit 1); exit 1; }; }
34237fi
34238if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34239  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34240Usually this means the macro was only invoked conditionally." >&5
34241echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34242Usually this means the macro was only invoked conditionally." >&2;}
34243   { (exit 1); exit 1; }; }
34244fi
34245if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34246  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34247Usually this means the macro was only invoked conditionally." >&5
34248echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34249Usually this means the macro was only invoked conditionally." >&2;}
34250   { (exit 1); exit 1; }; }
34251fi
34252if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34253  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34254Usually this means the macro was only invoked conditionally." >&5
34255echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34256Usually this means the macro was only invoked conditionally." >&2;}
34257   { (exit 1); exit 1; }; }
34258fi
34259if test -z "${ENABLE_FRONTEND_TRUE}" && test -z "${ENABLE_FRONTEND_FALSE}"; then
34260  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRONTEND\" was never defined.
34261Usually this means the macro was only invoked conditionally." >&5
34262echo "$as_me: error: conditional \"ENABLE_FRONTEND\" was never defined.
34263Usually this means the macro was only invoked conditionally." >&2;}
34264   { (exit 1); exit 1; }; }
34265fi
34266
34267: ${CONFIG_STATUS=./config.status}
34268ac_clean_files_save=$ac_clean_files
34269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34271echo "$as_me: creating $CONFIG_STATUS" >&6;}
34272cat >$CONFIG_STATUS <<_ACEOF
34273#! $SHELL
34274# Generated by $as_me.
34275# Run this file to recreate the current configuration.
34276# Compiler output produced by configure, useful for debugging
34277# configure, is in config.log if it exists.
34278
34279debug=false
34280ac_cs_recheck=false
34281ac_cs_silent=false
34282SHELL=\${CONFIG_SHELL-$SHELL}
34283_ACEOF
34284
34285cat >>$CONFIG_STATUS <<\_ACEOF
34286## --------------------- ##
34287## M4sh Initialization.  ##
34288## --------------------- ##
34289
34290# Be more Bourne compatible
34291DUALCASE=1; export DUALCASE # for MKS sh
34292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34293  emulate sh
34294  NULLCMD=:
34295  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34296  # is contrary to our usage.  Disable this feature.
34297  alias -g '${1+"$@"}'='"$@"'
34298  setopt NO_GLOB_SUBST
34299else
34300  case `(set -o) 2>/dev/null` in
34301  *posix*) set -o posix ;;
34302esac
34303
34304fi
34305
34306
34307
34308
34309# PATH needs CR
34310# Avoid depending upon Character Ranges.
34311as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34313as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34314as_cr_digits='0123456789'
34315as_cr_alnum=$as_cr_Letters$as_cr_digits
34316
34317# The user is always right.
34318if test "${PATH_SEPARATOR+set}" != set; then
34319  echo "#! /bin/sh" >conf$$.sh
34320  echo  "exit 0"   >>conf$$.sh
34321  chmod +x conf$$.sh
34322  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34323    PATH_SEPARATOR=';'
34324  else
34325    PATH_SEPARATOR=:
34326  fi
34327  rm -f conf$$.sh
34328fi
34329
34330# Support unset when possible.
34331if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34332  as_unset=unset
34333else
34334  as_unset=false
34335fi
34336
34337
34338# IFS
34339# We need space, tab and new line, in precisely that order.  Quoting is
34340# there to prevent editors from complaining about space-tab.
34341# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34342# splitting by setting IFS to empty value.)
34343as_nl='
34344'
34345IFS=" ""	$as_nl"
34346
34347# Find who we are.  Look in the path if we contain no directory separator.
34348case $0 in
34349  *[\\/]* ) as_myself=$0 ;;
34350  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34351for as_dir in $PATH
34352do
34353  IFS=$as_save_IFS
34354  test -z "$as_dir" && as_dir=.
34355  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34356done
34357IFS=$as_save_IFS
34358
34359     ;;
34360esac
34361# We did not find ourselves, most probably we were run as `sh COMMAND'
34362# in which case we are not to be found in the path.
34363if test "x$as_myself" = x; then
34364  as_myself=$0
34365fi
34366if test ! -f "$as_myself"; then
34367  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34368  { (exit 1); exit 1; }
34369fi
34370
34371# Work around bugs in pre-3.0 UWIN ksh.
34372for as_var in ENV MAIL MAILPATH
34373do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34374done
34375PS1='$ '
34376PS2='> '
34377PS4='+ '
34378
34379# NLS nuisances.
34380for as_var in \
34381  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34382  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34383  LC_TELEPHONE LC_TIME
34384do
34385  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34386    eval $as_var=C; export $as_var
34387  else
34388    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34389  fi
34390done
34391
34392# Required to use basename.
34393if expr a : '\(a\)' >/dev/null 2>&1 &&
34394   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34395  as_expr=expr
34396else
34397  as_expr=false
34398fi
34399
34400if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34401  as_basename=basename
34402else
34403  as_basename=false
34404fi
34405
34406
34407# Name of the executable.
34408as_me=`$as_basename -- "$0" ||
34409$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34410	 X"$0" : 'X\(//\)$' \| \
34411	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34412echo X/"$0" |
34413    sed '/^.*\/\([^/][^/]*\)\/*$/{
34414	    s//\1/
34415	    q
34416	  }
34417	  /^X\/\(\/\/\)$/{
34418	    s//\1/
34419	    q
34420	  }
34421	  /^X\/\(\/\).*/{
34422	    s//\1/
34423	    q
34424	  }
34425	  s/.*/./; q'`
34426
34427# CDPATH.
34428$as_unset CDPATH
34429
34430
34431
34432  as_lineno_1=$LINENO
34433  as_lineno_2=$LINENO
34434  test "x$as_lineno_1" != "x$as_lineno_2" &&
34435  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34436
34437  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34438  # uniformly replaced by the line number.  The first 'sed' inserts a
34439  # line-number line after each line using $LINENO; the second 'sed'
34440  # does the real work.  The second script uses 'N' to pair each
34441  # line-number line with the line containing $LINENO, and appends
34442  # trailing '-' during substitution so that $LINENO is not a special
34443  # case at line end.
34444  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34445  # scripts with optimization help from Paolo Bonzini.  Blame Lee
34446  # E. McMahon (1931-1989) for sed's syntax.  :-)
34447  sed -n '
34448    p
34449    /[$]LINENO/=
34450  ' <$as_myself |
34451    sed '
34452      s/[$]LINENO.*/&-/
34453      t lineno
34454      b
34455      :lineno
34456      N
34457      :loop
34458      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34459      t loop
34460      s/-\n.*//
34461    ' >$as_me.lineno &&
34462  chmod +x "$as_me.lineno" ||
34463    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34464   { (exit 1); exit 1; }; }
34465
34466  # Don't try to exec as it changes $[0], causing all sort of problems
34467  # (the dirname of $[0] is not the place where we might find the
34468  # original and so on.  Autoconf is especially sensitive to this).
34469  . "./$as_me.lineno"
34470  # Exit status is that of the last command.
34471  exit
34472}
34473
34474
34475if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34476  as_dirname=dirname
34477else
34478  as_dirname=false
34479fi
34480
34481ECHO_C= ECHO_N= ECHO_T=
34482case `echo -n x` in
34483-n*)
34484  case `echo 'x\c'` in
34485  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
34486  *)   ECHO_C='\c';;
34487  esac;;
34488*)
34489  ECHO_N='-n';;
34490esac
34491
34492if expr a : '\(a\)' >/dev/null 2>&1 &&
34493   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34494  as_expr=expr
34495else
34496  as_expr=false
34497fi
34498
34499rm -f conf$$ conf$$.exe conf$$.file
34500if test -d conf$$.dir; then
34501  rm -f conf$$.dir/conf$$.file
34502else
34503  rm -f conf$$.dir
34504  mkdir conf$$.dir
34505fi
34506echo >conf$$.file
34507if ln -s conf$$.file conf$$ 2>/dev/null; then
34508  as_ln_s='ln -s'
34509  # ... but there are two gotchas:
34510  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34511  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34512  # In both cases, we have to default to `cp -p'.
34513  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34514    as_ln_s='cp -p'
34515elif ln conf$$.file conf$$ 2>/dev/null; then
34516  as_ln_s=ln
34517else
34518  as_ln_s='cp -p'
34519fi
34520rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34521rmdir conf$$.dir 2>/dev/null
34522
34523if mkdir -p . 2>/dev/null; then
34524  as_mkdir_p=:
34525else
34526  test -d ./-p && rmdir ./-p
34527  as_mkdir_p=false
34528fi
34529
34530if test -x / >/dev/null 2>&1; then
34531  as_test_x='test -x'
34532else
34533  if ls -dL / >/dev/null 2>&1; then
34534    as_ls_L_option=L
34535  else
34536    as_ls_L_option=
34537  fi
34538  as_test_x='
34539    eval sh -c '\''
34540      if test -d "$1"; then
34541        test -d "$1/.";
34542      else
34543	case $1 in
34544        -*)set "./$1";;
34545	esac;
34546	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34547	???[sx]*):;;*)false;;esac;fi
34548    '\'' sh
34549  '
34550fi
34551as_executable_p=$as_test_x
34552
34553# Sed expression to map a string onto a valid CPP name.
34554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34555
34556# Sed expression to map a string onto a valid variable name.
34557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34558
34559
34560exec 6>&1
34561
34562# Save the log message, to keep $[0] and so on meaningful, and to
34563# report actual input values of CONFIG_FILES etc. instead of their
34564# values after options handling.
34565ac_log="
34566This file was extended by Image Scan! for Linux $as_me 2.11.0, which was
34567generated by GNU Autoconf 2.61.  Invocation command line was
34568
34569  CONFIG_FILES    = $CONFIG_FILES
34570  CONFIG_HEADERS  = $CONFIG_HEADERS
34571  CONFIG_LINKS    = $CONFIG_LINKS
34572  CONFIG_COMMANDS = $CONFIG_COMMANDS
34573  $ $0 $@
34574
34575on `(hostname || uname -n) 2>/dev/null | sed 1q`
34576"
34577
34578_ACEOF
34579
34580cat >>$CONFIG_STATUS <<_ACEOF
34581# Files that config.status was made for.
34582config_files="$ac_config_files"
34583config_headers="$ac_config_headers"
34584config_commands="$ac_config_commands"
34585
34586_ACEOF
34587
34588cat >>$CONFIG_STATUS <<\_ACEOF
34589ac_cs_usage="\
34590\`$as_me' instantiates files from templates according to the
34591current configuration.
34592
34593Usage: $0 [OPTIONS] [FILE]...
34594
34595  -h, --help       print this help, then exit
34596  -V, --version    print version number and configuration settings, then exit
34597  -q, --quiet      do not print progress messages
34598  -d, --debug      don't remove temporary files
34599      --recheck    update $as_me by reconfiguring in the same conditions
34600  --file=FILE[:TEMPLATE]
34601		   instantiate the configuration file FILE
34602  --header=FILE[:TEMPLATE]
34603		   instantiate the configuration header FILE
34604
34605Configuration files:
34606$config_files
34607
34608Configuration headers:
34609$config_headers
34610
34611Configuration commands:
34612$config_commands
34613
34614Report bugs to <bug-autoconf@gnu.org>."
34615
34616_ACEOF
34617cat >>$CONFIG_STATUS <<_ACEOF
34618ac_cs_version="\\
34619Image Scan! for Linux config.status 2.11.0
34620configured by $0, generated by GNU Autoconf 2.61,
34621  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34622
34623Copyright (C) 2006 Free Software Foundation, Inc.
34624This config.status script is free software; the Free Software Foundation
34625gives unlimited permission to copy, distribute and modify it."
34626
34627ac_pwd='$ac_pwd'
34628srcdir='$srcdir'
34629INSTALL='$INSTALL'
34630_ACEOF
34631
34632cat >>$CONFIG_STATUS <<\_ACEOF
34633# If no file are specified by the user, then we need to provide default
34634# value.  By we need to know if files were specified by the user.
34635ac_need_defaults=:
34636while test $# != 0
34637do
34638  case $1 in
34639  --*=*)
34640    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34641    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34642    ac_shift=:
34643    ;;
34644  *)
34645    ac_option=$1
34646    ac_optarg=$2
34647    ac_shift=shift
34648    ;;
34649  esac
34650
34651  case $ac_option in
34652  # Handling of the options.
34653  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34654    ac_cs_recheck=: ;;
34655  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34656    echo "$ac_cs_version"; exit ;;
34657  --debug | --debu | --deb | --de | --d | -d )
34658    debug=: ;;
34659  --file | --fil | --fi | --f )
34660    $ac_shift
34661    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34662    ac_need_defaults=false;;
34663  --header | --heade | --head | --hea )
34664    $ac_shift
34665    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34666    ac_need_defaults=false;;
34667  --he | --h)
34668    # Conflict between --help and --header
34669    { echo "$as_me: error: ambiguous option: $1
34670Try \`$0 --help' for more information." >&2
34671   { (exit 1); exit 1; }; };;
34672  --help | --hel | -h )
34673    echo "$ac_cs_usage"; exit ;;
34674  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34675  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34676    ac_cs_silent=: ;;
34677
34678  # This is an error.
34679  -*) { echo "$as_me: error: unrecognized option: $1
34680Try \`$0 --help' for more information." >&2
34681   { (exit 1); exit 1; }; } ;;
34682
34683  *) ac_config_targets="$ac_config_targets $1"
34684     ac_need_defaults=false ;;
34685
34686  esac
34687  shift
34688done
34689
34690ac_configure_extra_args=
34691
34692if $ac_cs_silent; then
34693  exec 6>/dev/null
34694  ac_configure_extra_args="$ac_configure_extra_args --silent"
34695fi
34696
34697_ACEOF
34698cat >>$CONFIG_STATUS <<_ACEOF
34699if \$ac_cs_recheck; then
34700  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34701  CONFIG_SHELL=$SHELL
34702  export CONFIG_SHELL
34703  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34704fi
34705
34706_ACEOF
34707cat >>$CONFIG_STATUS <<\_ACEOF
34708exec 5>>config.log
34709{
34710  echo
34711  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34712## Running $as_me. ##
34713_ASBOX
34714  echo "$ac_log"
34715} >&5
34716
34717_ACEOF
34718cat >>$CONFIG_STATUS <<_ACEOF
34719#
34720# INIT-COMMANDS
34721#
34722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34723# Capture the value of obsolete ALL_LINGUAS because we need it to compute
34724    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34725    # from automake.
34726    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34727    # Capture the value of LINGUAS because we need it to compute CATALOGS.
34728    LINGUAS="${LINGUAS-%UNSET%}"
34729
34730
34731_ACEOF
34732
34733cat >>$CONFIG_STATUS <<\_ACEOF
34734
34735# Handling of arguments.
34736for ac_config_target in $ac_config_targets
34737do
34738  case $ac_config_target in
34739    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34740    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34741    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34742    "include/sane/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/sane/config.h:config.h.in" ;;
34743    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34744    "backend/Makefile") CONFIG_FILES="$CONFIG_FILES backend/Makefile" ;;
34745    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34746    "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
34747    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34748    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
34749    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34750    "non-free/Makefile") CONFIG_FILES="$CONFIG_FILES non-free/Makefile" ;;
34751    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34752    "sanei/Makefile") CONFIG_FILES="$CONFIG_FILES sanei/Makefile" ;;
34753    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
34754    "iscan.spec") CONFIG_FILES="$CONFIG_FILES iscan.spec" ;;
34755
34756  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34757echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34758   { (exit 1); exit 1; }; };;
34759  esac
34760done
34761
34762
34763# If the user did not use the arguments to specify the items to instantiate,
34764# then the envvar interface is used.  Set only those that are not.
34765# We use the long form for the default assignment because of an extremely
34766# bizarre bug on SunOS 4.1.3.
34767if $ac_need_defaults; then
34768  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34769  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34770  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34771fi
34772
34773# Have a temporary directory for convenience.  Make it in the build tree
34774# simply because there is no reason against having it here, and in addition,
34775# creating and moving files from /tmp can sometimes cause problems.
34776# Hook for its removal unless debugging.
34777# Note that there is a small window in which the directory will not be cleaned:
34778# after its creation but before its name has been assigned to `$tmp'.
34779$debug ||
34780{
34781  tmp=
34782  trap 'exit_status=$?
34783  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34784' 0
34785  trap '{ (exit 1); exit 1; }' 1 2 13 15
34786}
34787# Create a (secure) tmp directory for tmp files.
34788
34789{
34790  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34791  test -n "$tmp" && test -d "$tmp"
34792}  ||
34793{
34794  tmp=./conf$$-$RANDOM
34795  (umask 077 && mkdir "$tmp")
34796} ||
34797{
34798   echo "$me: cannot create a temporary directory in ." >&2
34799   { (exit 1); exit 1; }
34800}
34801
34802#
34803# Set up the sed scripts for CONFIG_FILES section.
34804#
34805
34806# No need to generate the scripts if there are no CONFIG_FILES.
34807# This happens for instance when ./config.status config.h
34808if test -n "$CONFIG_FILES"; then
34809
34810_ACEOF
34811
34812
34813
34814ac_delim='%!_!# '
34815for ac_last_try in false false false false false :; do
34816  cat >conf$$subs.sed <<_ACEOF
34817SHELL!$SHELL$ac_delim
34818PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34819PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34820PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34821PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34822PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34823PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34824exec_prefix!$exec_prefix$ac_delim
34825prefix!$prefix$ac_delim
34826program_transform_name!$program_transform_name$ac_delim
34827bindir!$bindir$ac_delim
34828sbindir!$sbindir$ac_delim
34829libexecdir!$libexecdir$ac_delim
34830datarootdir!$datarootdir$ac_delim
34831datadir!$datadir$ac_delim
34832sysconfdir!$sysconfdir$ac_delim
34833sharedstatedir!$sharedstatedir$ac_delim
34834localstatedir!$localstatedir$ac_delim
34835includedir!$includedir$ac_delim
34836oldincludedir!$oldincludedir$ac_delim
34837docdir!$docdir$ac_delim
34838infodir!$infodir$ac_delim
34839htmldir!$htmldir$ac_delim
34840dvidir!$dvidir$ac_delim
34841pdfdir!$pdfdir$ac_delim
34842psdir!$psdir$ac_delim
34843libdir!$libdir$ac_delim
34844localedir!$localedir$ac_delim
34845mandir!$mandir$ac_delim
34846DEFS!$DEFS$ac_delim
34847ECHO_C!$ECHO_C$ac_delim
34848ECHO_N!$ECHO_N$ac_delim
34849ECHO_T!$ECHO_T$ac_delim
34850LIBS!$LIBS$ac_delim
34851build_alias!$build_alias$ac_delim
34852host_alias!$host_alias$ac_delim
34853target_alias!$target_alias$ac_delim
34854PACKAGE_RELEASE!$PACKAGE_RELEASE$ac_delim
34855subdirs!$subdirs$ac_delim
34856INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34857INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34858INSTALL_DATA!$INSTALL_DATA$ac_delim
34859CYGPATH_W!$CYGPATH_W$ac_delim
34860PACKAGE!$PACKAGE$ac_delim
34861VERSION!$VERSION$ac_delim
34862ACLOCAL!$ACLOCAL$ac_delim
34863AUTOCONF!$AUTOCONF$ac_delim
34864AUTOMAKE!$AUTOMAKE$ac_delim
34865AUTOHEADER!$AUTOHEADER$ac_delim
34866MAKEINFO!$MAKEINFO$ac_delim
34867install_sh!$install_sh$ac_delim
34868STRIP!$STRIP$ac_delim
34869INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34870mkdir_p!$mkdir_p$ac_delim
34871AWK!$AWK$ac_delim
34872SET_MAKE!$SET_MAKE$ac_delim
34873am__leading_dot!$am__leading_dot$ac_delim
34874AMTAR!$AMTAR$ac_delim
34875am__tar!$am__tar$ac_delim
34876am__untar!$am__untar$ac_delim
34877CXX!$CXX$ac_delim
34878CXXFLAGS!$CXXFLAGS$ac_delim
34879LDFLAGS!$LDFLAGS$ac_delim
34880CPPFLAGS!$CPPFLAGS$ac_delim
34881ac_ct_CXX!$ac_ct_CXX$ac_delim
34882EXEEXT!$EXEEXT$ac_delim
34883OBJEXT!$OBJEXT$ac_delim
34884DEPDIR!$DEPDIR$ac_delim
34885am__include!$am__include$ac_delim
34886am__quote!$am__quote$ac_delim
34887AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34888AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34889AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34890CXXDEPMODE!$CXXDEPMODE$ac_delim
34891am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34892am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34893PACKAGE_CXX_ABI!$PACKAGE_CXX_ABI$ac_delim
34894CC!$CC$ac_delim
34895CFLAGS!$CFLAGS$ac_delim
34896ac_ct_CC!$ac_ct_CC$ac_delim
34897CCDEPMODE!$CCDEPMODE$ac_delim
34898am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34899am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34900CPP!$CPP$ac_delim
34901LN_S!$LN_S$ac_delim
34902PKG_CONFIG!$PKG_CONFIG$ac_delim
34903GTK_CFLAGS!$GTK_CFLAGS$ac_delim
34904GTK_LIBS!$GTK_LIBS$ac_delim
34905GDK_IMLIB_CFLAGS!$GDK_IMLIB_CFLAGS$ac_delim
34906GDK_IMLIB_LIBS!$GDK_IMLIB_LIBS$ac_delim
34907GIMP_CFLAGS!$GIMP_CFLAGS$ac_delim
34908GIMP_LIBS!$GIMP_LIBS$ac_delim
34909GIMP_CONFIG!$GIMP_CONFIG$ac_delim
34910ALLOCA!$ALLOCA$ac_delim
34911GREP!$GREP$ac_delim
34912EGREP!$EGREP$ac_delim
34913MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34914_ACEOF
34915
34916  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34917    break
34918  elif $ac_last_try; then
34919    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34920echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34921   { (exit 1); exit 1; }; }
34922  else
34923    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34924  fi
34925done
34926
34927ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34928if test -n "$ac_eof"; then
34929  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34930  ac_eof=`expr $ac_eof + 1`
34931fi
34932
34933cat >>$CONFIG_STATUS <<_ACEOF
34934cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34936_ACEOF
34937sed '
34938s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34939s/^/s,@/; s/!/@,|#_!!_#|/
34940:n
34941t n
34942s/'"$ac_delim"'$/,g/; t
34943s/$/\\/; p
34944N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34945' >>$CONFIG_STATUS <conf$$subs.sed
34946rm -f conf$$subs.sed
34947cat >>$CONFIG_STATUS <<_ACEOF
34948CEOF$ac_eof
34949_ACEOF
34950
34951
34952ac_delim='%!_!# '
34953for ac_last_try in false false false false false :; do
34954  cat >conf$$subs.sed <<_ACEOF
34955USE_NLS!$USE_NLS$ac_delim
34956MSGFMT!$MSGFMT$ac_delim
34957GMSGFMT!$GMSGFMT$ac_delim
34958XGETTEXT!$XGETTEXT$ac_delim
34959MSGMERGE!$MSGMERGE$ac_delim
34960build!$build$ac_delim
34961build_cpu!$build_cpu$ac_delim
34962build_vendor!$build_vendor$ac_delim
34963build_os!$build_os$ac_delim
34964host!$host$ac_delim
34965host_cpu!$host_cpu$ac_delim
34966host_vendor!$host_vendor$ac_delim
34967host_os!$host_os$ac_delim
34968RANLIB!$RANLIB$ac_delim
34969GLIBC21!$GLIBC21$ac_delim
34970HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34971HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34972HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34973HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34974LIBICONV!$LIBICONV$ac_delim
34975LTLIBICONV!$LTLIBICONV$ac_delim
34976INTLBISON!$INTLBISON$ac_delim
34977BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34978USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34979CATOBJEXT!$CATOBJEXT$ac_delim
34980DATADIRNAME!$DATADIRNAME$ac_delim
34981INSTOBJEXT!$INSTOBJEXT$ac_delim
34982GENCAT!$GENCAT$ac_delim
34983INTLOBJS!$INTLOBJS$ac_delim
34984INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34985INTLLIBS!$INTLLIBS$ac_delim
34986LIBINTL!$LIBINTL$ac_delim
34987LTLIBINTL!$LTLIBINTL$ac_delim
34988POSUB!$POSUB$ac_delim
34989LIBOBJS!$LIBOBJS$ac_delim
34990POW_LIB!$POW_LIB$ac_delim
34991INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34992INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34993CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34994CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34995LIBADD_DL!$LIBADD_DL$ac_delim
34996ECHO!$ECHO$ac_delim
34997AR!$AR$ac_delim
34998CXXCPP!$CXXCPP$ac_delim
34999F77!$F77$ac_delim
35000FFLAGS!$FFLAGS$ac_delim
35001ac_ct_F77!$ac_ct_F77$ac_delim
35002LIBTOOL!$LIBTOOL$ac_delim
35003LTDLINCL!$LTDLINCL$ac_delim
35004LIBLTDL!$LIBLTDL$ac_delim
35005ISCAN_HOST_CPU!$ISCAN_HOST_CPU$ac_delim
35006ENABLE_FRONTEND_TRUE!$ENABLE_FRONTEND_TRUE$ac_delim
35007ENABLE_FRONTEND_FALSE!$ENABLE_FRONTEND_FALSE$ac_delim
35008SANE_MAJOR!$SANE_MAJOR$ac_delim
35009SANE_MINOR!$SANE_MINOR$ac_delim
35010SANE_REVISION!$SANE_REVISION$ac_delim
35011LTLIBOBJS!$LTLIBOBJS$ac_delim
35012_ACEOF
35013
35014  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
35015    break
35016  elif $ac_last_try; then
35017    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35018echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35019   { (exit 1); exit 1; }; }
35020  else
35021    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35022  fi
35023done
35024
35025ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35026if test -n "$ac_eof"; then
35027  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35028  ac_eof=`expr $ac_eof + 1`
35029fi
35030
35031cat >>$CONFIG_STATUS <<_ACEOF
35032cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35033/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35034_ACEOF
35035sed '
35036s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35037s/^/s,@/; s/!/@,|#_!!_#|/
35038:n
35039t n
35040s/'"$ac_delim"'$/,g/; t
35041s/$/\\/; p
35042N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35043' >>$CONFIG_STATUS <conf$$subs.sed
35044rm -f conf$$subs.sed
35045cat >>$CONFIG_STATUS <<_ACEOF
35046:end
35047s/|#_!!_#|//g
35048CEOF$ac_eof
35049_ACEOF
35050
35051
35052# VPATH may cause trouble with some makes, so we remove $(srcdir),
35053# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35054# trailing colons and then remove the whole line if VPATH becomes empty
35055# (actually we leave an empty line to preserve line numbers).
35056if test "x$srcdir" = x.; then
35057  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35058s/:*\$(srcdir):*/:/
35059s/:*\${srcdir}:*/:/
35060s/:*@srcdir@:*/:/
35061s/^\([^=]*=[	 ]*\):*/\1/
35062s/:*$//
35063s/^[^=]*=[	 ]*$//
35064}'
35065fi
35066
35067cat >>$CONFIG_STATUS <<\_ACEOF
35068fi # test -n "$CONFIG_FILES"
35069
35070
35071for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35072do
35073  case $ac_tag in
35074  :[FHLC]) ac_mode=$ac_tag; continue;;
35075  esac
35076  case $ac_mode$ac_tag in
35077  :[FHL]*:*);;
35078  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35079echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35080   { (exit 1); exit 1; }; };;
35081  :[FH]-) ac_tag=-:-;;
35082  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35083  esac
35084  ac_save_IFS=$IFS
35085  IFS=:
35086  set x $ac_tag
35087  IFS=$ac_save_IFS
35088  shift
35089  ac_file=$1
35090  shift
35091
35092  case $ac_mode in
35093  :L) ac_source=$1;;
35094  :[FH])
35095    ac_file_inputs=
35096    for ac_f
35097    do
35098      case $ac_f in
35099      -) ac_f="$tmp/stdin";;
35100      *) # Look for the file first in the build tree, then in the source tree
35101	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35102	 # because $ac_f cannot contain `:'.
35103	 test -f "$ac_f" ||
35104	   case $ac_f in
35105	   [\\/$]*) false;;
35106	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35107	   esac ||
35108	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35109echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35110   { (exit 1); exit 1; }; };;
35111      esac
35112      ac_file_inputs="$ac_file_inputs $ac_f"
35113    done
35114
35115    # Let's still pretend it is `configure' which instantiates (i.e., don't
35116    # use $as_me), people would be surprised to read:
35117    #    /* config.h.  Generated by config.status.  */
35118    configure_input="Generated from "`IFS=:
35119	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35120    if test x"$ac_file" != x-; then
35121      configure_input="$ac_file.  $configure_input"
35122      { echo "$as_me:$LINENO: creating $ac_file" >&5
35123echo "$as_me: creating $ac_file" >&6;}
35124    fi
35125
35126    case $ac_tag in
35127    *:-:* | *:-) cat >"$tmp/stdin";;
35128    esac
35129    ;;
35130  esac
35131
35132  ac_dir=`$as_dirname -- "$ac_file" ||
35133$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35134	 X"$ac_file" : 'X\(//\)[^/]' \| \
35135	 X"$ac_file" : 'X\(//\)$' \| \
35136	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35137echo X"$ac_file" |
35138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35139	    s//\1/
35140	    q
35141	  }
35142	  /^X\(\/\/\)[^/].*/{
35143	    s//\1/
35144	    q
35145	  }
35146	  /^X\(\/\/\)$/{
35147	    s//\1/
35148	    q
35149	  }
35150	  /^X\(\/\).*/{
35151	    s//\1/
35152	    q
35153	  }
35154	  s/.*/./; q'`
35155  { as_dir="$ac_dir"
35156  case $as_dir in #(
35157  -*) as_dir=./$as_dir;;
35158  esac
35159  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35160    as_dirs=
35161    while :; do
35162      case $as_dir in #(
35163      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35164      *) as_qdir=$as_dir;;
35165      esac
35166      as_dirs="'$as_qdir' $as_dirs"
35167      as_dir=`$as_dirname -- "$as_dir" ||
35168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35169	 X"$as_dir" : 'X\(//\)[^/]' \| \
35170	 X"$as_dir" : 'X\(//\)$' \| \
35171	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35172echo X"$as_dir" |
35173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35174	    s//\1/
35175	    q
35176	  }
35177	  /^X\(\/\/\)[^/].*/{
35178	    s//\1/
35179	    q
35180	  }
35181	  /^X\(\/\/\)$/{
35182	    s//\1/
35183	    q
35184	  }
35185	  /^X\(\/\).*/{
35186	    s//\1/
35187	    q
35188	  }
35189	  s/.*/./; q'`
35190      test -d "$as_dir" && break
35191    done
35192    test -z "$as_dirs" || eval "mkdir $as_dirs"
35193  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35194echo "$as_me: error: cannot create directory $as_dir" >&2;}
35195   { (exit 1); exit 1; }; }; }
35196  ac_builddir=.
35197
35198case "$ac_dir" in
35199.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35200*)
35201  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35202  # A ".." for each directory in $ac_dir_suffix.
35203  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35204  case $ac_top_builddir_sub in
35205  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35206  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35207  esac ;;
35208esac
35209ac_abs_top_builddir=$ac_pwd
35210ac_abs_builddir=$ac_pwd$ac_dir_suffix
35211# for backward compatibility:
35212ac_top_builddir=$ac_top_build_prefix
35213
35214case $srcdir in
35215  .)  # We are building in place.
35216    ac_srcdir=.
35217    ac_top_srcdir=$ac_top_builddir_sub
35218    ac_abs_top_srcdir=$ac_pwd ;;
35219  [\\/]* | ?:[\\/]* )  # Absolute name.
35220    ac_srcdir=$srcdir$ac_dir_suffix;
35221    ac_top_srcdir=$srcdir
35222    ac_abs_top_srcdir=$srcdir ;;
35223  *) # Relative name.
35224    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35225    ac_top_srcdir=$ac_top_build_prefix$srcdir
35226    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35227esac
35228ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35229
35230
35231  case $ac_mode in
35232  :F)
35233  #
35234  # CONFIG_FILE
35235  #
35236
35237  case $INSTALL in
35238  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35239  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35240  esac
35241_ACEOF
35242
35243cat >>$CONFIG_STATUS <<\_ACEOF
35244# If the template does not know about datarootdir, expand it.
35245# FIXME: This hack should be removed a few years after 2.60.
35246ac_datarootdir_hack=; ac_datarootdir_seen=
35247
35248case `sed -n '/datarootdir/ {
35249  p
35250  q
35251}
35252/@datadir@/p
35253/@docdir@/p
35254/@infodir@/p
35255/@localedir@/p
35256/@mandir@/p
35257' $ac_file_inputs` in
35258*datarootdir*) ac_datarootdir_seen=yes;;
35259*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35260  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35261echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35262_ACEOF
35263cat >>$CONFIG_STATUS <<_ACEOF
35264  ac_datarootdir_hack='
35265  s&@datadir@&$datadir&g
35266  s&@docdir@&$docdir&g
35267  s&@infodir@&$infodir&g
35268  s&@localedir@&$localedir&g
35269  s&@mandir@&$mandir&g
35270    s&\\\${datarootdir}&$datarootdir&g' ;;
35271esac
35272_ACEOF
35273
35274# Neutralize VPATH when `$srcdir' = `.'.
35275# Shell code in configure.ac might set extrasub.
35276# FIXME: do we really want to maintain this feature?
35277cat >>$CONFIG_STATUS <<_ACEOF
35278  sed "$ac_vpsub
35279$extrasub
35280_ACEOF
35281cat >>$CONFIG_STATUS <<\_ACEOF
35282:t
35283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35284s&@configure_input@&$configure_input&;t t
35285s&@top_builddir@&$ac_top_builddir_sub&;t t
35286s&@srcdir@&$ac_srcdir&;t t
35287s&@abs_srcdir@&$ac_abs_srcdir&;t t
35288s&@top_srcdir@&$ac_top_srcdir&;t t
35289s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35290s&@builddir@&$ac_builddir&;t t
35291s&@abs_builddir@&$ac_abs_builddir&;t t
35292s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35293s&@INSTALL@&$ac_INSTALL&;t t
35294$ac_datarootdir_hack
35295" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35296
35297test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35298  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35299  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35300  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35301which seems to be undefined.  Please make sure it is defined." >&5
35302echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35303which seems to be undefined.  Please make sure it is defined." >&2;}
35304
35305  rm -f "$tmp/stdin"
35306  case $ac_file in
35307  -) cat "$tmp/out"; rm -f "$tmp/out";;
35308  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35309  esac
35310 ;;
35311  :H)
35312  #
35313  # CONFIG_HEADER
35314  #
35315_ACEOF
35316
35317# Transform confdefs.h into a sed script `conftest.defines', that
35318# substitutes the proper values into config.h.in to produce config.h.
35319rm -f conftest.defines conftest.tail
35320# First, append a space to every undef/define line, to ease matching.
35321echo 's/$/ /' >conftest.defines
35322# Then, protect against being on the right side of a sed subst, or in
35323# an unquoted here document, in config.status.  If some macros were
35324# called several times there might be several #defines for the same
35325# symbol, which is useless.  But do not sort them, since the last
35326# AC_DEFINE must be honored.
35327ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35328# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35329# NAME is the cpp macro being defined, VALUE is the value it is being given.
35330# PARAMS is the parameter list in the macro definition--in most cases, it's
35331# just an empty string.
35332ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
35333ac_dB='\\)[	 (].*,\\1define\\2'
35334ac_dC=' '
35335ac_dD=' ,'
35336
35337uniq confdefs.h |
35338  sed -n '
35339	t rset
35340	:rset
35341	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
35342	t ok
35343	d
35344	:ok
35345	s/[\\&,]/\\&/g
35346	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35347	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35348  ' >>conftest.defines
35349
35350# Remove the space that was appended to ease matching.
35351# Then replace #undef with comments.  This is necessary, for
35352# example, in the case of _POSIX_SOURCE, which is predefined and required
35353# on some systems where configure will not decide to define it.
35354# (The regexp can be short, since the line contains either #define or #undef.)
35355echo 's/ $//
35356s,^[	 #]*u.*,/* & */,' >>conftest.defines
35357
35358# Break up conftest.defines:
35359ac_max_sed_lines=50
35360
35361# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35362# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35363# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35364# et cetera.
35365ac_in='$ac_file_inputs'
35366ac_out='"$tmp/out1"'
35367ac_nxt='"$tmp/out2"'
35368
35369while :
35370do
35371  # Write a here document:
35372    cat >>$CONFIG_STATUS <<_ACEOF
35373    # First, check the format of the line:
35374    cat >"\$tmp/defines.sed" <<\\CEOF
35375/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
35376/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
35377b
35378:def
35379_ACEOF
35380  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35381  echo 'CEOF
35382    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35383  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35384  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35385  grep . conftest.tail >/dev/null || break
35386  rm -f conftest.defines
35387  mv conftest.tail conftest.defines
35388done
35389rm -f conftest.defines conftest.tail
35390
35391echo "ac_result=$ac_in" >>$CONFIG_STATUS
35392cat >>$CONFIG_STATUS <<\_ACEOF
35393  if test x"$ac_file" != x-; then
35394    echo "/* $configure_input  */" >"$tmp/config.h"
35395    cat "$ac_result" >>"$tmp/config.h"
35396    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35397      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35398echo "$as_me: $ac_file is unchanged" >&6;}
35399    else
35400      rm -f $ac_file
35401      mv "$tmp/config.h" $ac_file
35402    fi
35403  else
35404    echo "/* $configure_input  */"
35405    cat "$ac_result"
35406  fi
35407  rm -f "$tmp/out12"
35408# Compute $ac_file's index in $config_headers.
35409_am_stamp_count=1
35410for _am_header in $config_headers :; do
35411  case $_am_header in
35412    $ac_file | $ac_file:* )
35413      break ;;
35414    * )
35415      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35416  esac
35417done
35418echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35419$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35420	 X$ac_file : 'X\(//\)[^/]' \| \
35421	 X$ac_file : 'X\(//\)$' \| \
35422	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35423echo X$ac_file |
35424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35425	    s//\1/
35426	    q
35427	  }
35428	  /^X\(\/\/\)[^/].*/{
35429	    s//\1/
35430	    q
35431	  }
35432	  /^X\(\/\/\)$/{
35433	    s//\1/
35434	    q
35435	  }
35436	  /^X\(\/\).*/{
35437	    s//\1/
35438	    q
35439	  }
35440	  s/.*/./; q'`/stamp-h$_am_stamp_count
35441 ;;
35442
35443  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35444echo "$as_me: executing $ac_file commands" >&6;}
35445 ;;
35446  esac
35447
35448
35449  case $ac_file$ac_mode in
35450    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35451  # Strip MF so we end up with the name of the file.
35452  mf=`echo "$mf" | sed -e 's/:.*$//'`
35453  # Check whether this is an Automake generated Makefile or not.
35454  # We used to match only the files named `Makefile.in', but
35455  # some people rename them; so instead we look at the file content.
35456  # Grep'ing the first line is not enough: some people post-process
35457  # each Makefile.in and add a new line on top of each file to say so.
35458  # So let's grep whole file.
35459  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35460    dirpart=`$as_dirname -- "$mf" ||
35461$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35462	 X"$mf" : 'X\(//\)[^/]' \| \
35463	 X"$mf" : 'X\(//\)$' \| \
35464	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35465echo X"$mf" |
35466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35467	    s//\1/
35468	    q
35469	  }
35470	  /^X\(\/\/\)[^/].*/{
35471	    s//\1/
35472	    q
35473	  }
35474	  /^X\(\/\/\)$/{
35475	    s//\1/
35476	    q
35477	  }
35478	  /^X\(\/\).*/{
35479	    s//\1/
35480	    q
35481	  }
35482	  s/.*/./; q'`
35483  else
35484    continue
35485  fi
35486  # Extract the definition of DEPDIR, am__include, and am__quote
35487  # from the Makefile without running `make'.
35488  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35489  test -z "$DEPDIR" && continue
35490  am__include=`sed -n 's/^am__include = //p' < "$mf"`
35491  test -z "am__include" && continue
35492  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35493  # When using ansi2knr, U may be empty or an underscore; expand it
35494  U=`sed -n 's/^U = //p' < "$mf"`
35495  # Find all dependency output files, they are included files with
35496  # $(DEPDIR) in their names.  We invoke sed twice because it is the
35497  # simplest approach to changing $(DEPDIR) to its actual value in the
35498  # expansion.
35499  for file in `sed -n "
35500    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35501       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35502    # Make sure the directory exists.
35503    test -f "$dirpart/$file" && continue
35504    fdir=`$as_dirname -- "$file" ||
35505$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35506	 X"$file" : 'X\(//\)[^/]' \| \
35507	 X"$file" : 'X\(//\)$' \| \
35508	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35509echo X"$file" |
35510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35511	    s//\1/
35512	    q
35513	  }
35514	  /^X\(\/\/\)[^/].*/{
35515	    s//\1/
35516	    q
35517	  }
35518	  /^X\(\/\/\)$/{
35519	    s//\1/
35520	    q
35521	  }
35522	  /^X\(\/\).*/{
35523	    s//\1/
35524	    q
35525	  }
35526	  s/.*/./; q'`
35527    { as_dir=$dirpart/$fdir
35528  case $as_dir in #(
35529  -*) as_dir=./$as_dir;;
35530  esac
35531  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35532    as_dirs=
35533    while :; do
35534      case $as_dir in #(
35535      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35536      *) as_qdir=$as_dir;;
35537      esac
35538      as_dirs="'$as_qdir' $as_dirs"
35539      as_dir=`$as_dirname -- "$as_dir" ||
35540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35541	 X"$as_dir" : 'X\(//\)[^/]' \| \
35542	 X"$as_dir" : 'X\(//\)$' \| \
35543	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35544echo X"$as_dir" |
35545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35546	    s//\1/
35547	    q
35548	  }
35549	  /^X\(\/\/\)[^/].*/{
35550	    s//\1/
35551	    q
35552	  }
35553	  /^X\(\/\/\)$/{
35554	    s//\1/
35555	    q
35556	  }
35557	  /^X\(\/\).*/{
35558	    s//\1/
35559	    q
35560	  }
35561	  s/.*/./; q'`
35562      test -d "$as_dir" && break
35563    done
35564    test -z "$as_dirs" || eval "mkdir $as_dirs"
35565  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35566echo "$as_me: error: cannot create directory $as_dir" >&2;}
35567   { (exit 1); exit 1; }; }; }
35568    # echo "creating $dirpart/$file"
35569    echo '# dummy' > "$dirpart/$file"
35570  done
35571done
35572 ;;
35573    "default-1":C)
35574    for ac_file in $CONFIG_FILES; do
35575      # Support "outfile[:infile[:infile...]]"
35576      case "$ac_file" in
35577        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35578      esac
35579      # PO directories have a Makefile.in generated from Makefile.in.in.
35580      case "$ac_file" in */Makefile.in)
35581        # Adjust a relative srcdir.
35582        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35583        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35584        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35585        # In autoconf-2.13 it is called $ac_given_srcdir.
35586        # In autoconf-2.50 it is called $srcdir.
35587        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35588        case "$ac_given_srcdir" in
35589          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35590          /*) top_srcdir="$ac_given_srcdir" ;;
35591          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35592        esac
35593        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35594          rm -f "$ac_dir/POTFILES"
35595          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35596          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35597          POMAKEFILEDEPS="POTFILES.in"
35598          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35599          # on $ac_dir but don't depend on user-specified configuration
35600          # parameters.
35601          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35602            # The LINGUAS file contains the set of available languages.
35603            if test -n "$OBSOLETE_ALL_LINGUAS"; then
35604              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35605            fi
35606            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35607            # Hide the ALL_LINGUAS assigment from automake.
35608            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35609            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35610          else
35611            # The set of available languages was given in configure.in.
35612            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35613          fi
35614          # Compute POFILES
35615          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35616          # Compute UPDATEPOFILES
35617          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35618          # Compute DUMMYPOFILES
35619          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35620          # Compute GMOFILES
35621          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35622          case "$ac_given_srcdir" in
35623            .) srcdirpre= ;;
35624            *) srcdirpre='$(srcdir)/' ;;
35625          esac
35626          POFILES=
35627          UPDATEPOFILES=
35628          DUMMYPOFILES=
35629          GMOFILES=
35630          for lang in $ALL_LINGUAS; do
35631            POFILES="$POFILES $srcdirpre$lang.po"
35632            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35633            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35634            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35635          done
35636          # CATALOGS depends on both $ac_dir and the user's LINGUAS
35637          # environment variable.
35638          INST_LINGUAS=
35639          if test -n "$ALL_LINGUAS"; then
35640            for presentlang in $ALL_LINGUAS; do
35641              useit=no
35642              if test "%UNSET%" != "$LINGUAS"; then
35643                desiredlanguages="$LINGUAS"
35644              else
35645                desiredlanguages="$ALL_LINGUAS"
35646              fi
35647              for desiredlang in $desiredlanguages; do
35648                # Use the presentlang catalog if desiredlang is
35649                #   a. equal to presentlang, or
35650                #   b. a variant of presentlang (because in this case,
35651                #      presentlang can be used as a fallback for messages
35652                #      which are not translated in the desiredlang catalog).
35653                case "$desiredlang" in
35654                  "$presentlang"*) useit=yes;;
35655                esac
35656              done
35657              if test $useit = yes; then
35658                INST_LINGUAS="$INST_LINGUAS $presentlang"
35659              fi
35660            done
35661          fi
35662          CATALOGS=
35663          if test -n "$INST_LINGUAS"; then
35664            for lang in $INST_LINGUAS; do
35665              CATALOGS="$CATALOGS $lang.gmo"
35666            done
35667          fi
35668          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35669          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"
35670          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35671            if test -f "$f"; then
35672              case "$f" in
35673                *.orig | *.bak | *~) ;;
35674                *) cat "$f" >> "$ac_dir/Makefile" ;;
35675              esac
35676            fi
35677          done
35678        fi
35679        ;;
35680      esac
35681    done ;;
35682
35683  esac
35684done # for ac_tag
35685
35686
35687{ (exit 0); exit 0; }
35688_ACEOF
35689chmod +x $CONFIG_STATUS
35690ac_clean_files=$ac_clean_files_save
35691
35692
35693# configure is writing to config.log, and then calls config.status.
35694# config.status does its own redirection, appending to config.log.
35695# Unfortunately, on DOS this fails, as config.log is still kept open
35696# by configure, so config.status won't be able to write to it; its
35697# output is simply discarded.  So we exec the FD to /dev/null,
35698# effectively closing config.log, so it can be properly (re)opened and
35699# appended to by config.status.  When coming back to configure, we
35700# need to make the FD available again.
35701if test "$no_create" != yes; then
35702  ac_cs_success=:
35703  ac_config_status_args=
35704  test "$silent" = yes &&
35705    ac_config_status_args="$ac_config_status_args --quiet"
35706  exec 5>/dev/null
35707  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35708  exec 5>>config.log
35709  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35710  # would make configure fail if this is the last instruction.
35711  $ac_cs_success || { (exit 1); exit 1; }
35712fi
35713
35714#
35715# CONFIG_SUBDIRS section.
35716#
35717if test "$no_recursion" != yes; then
35718
35719  # Remove --cache-file and --srcdir arguments so they do not pile up.
35720  ac_sub_configure_args=
35721  ac_prev=
35722  eval "set x $ac_configure_args"
35723  shift
35724  for ac_arg
35725  do
35726    if test -n "$ac_prev"; then
35727      ac_prev=
35728      continue
35729    fi
35730    case $ac_arg in
35731    -cache-file | --cache-file | --cache-fil | --cache-fi \
35732    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35733      ac_prev=cache_file ;;
35734    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35735    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35736    | --c=*)
35737      ;;
35738    --config-cache | -C)
35739      ;;
35740    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35741      ac_prev=srcdir ;;
35742    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35743      ;;
35744    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35745      ac_prev=prefix ;;
35746    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35747      ;;
35748    *)
35749      case $ac_arg in
35750      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35751      esac
35752      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35753    esac
35754  done
35755
35756  # Always prepend --prefix to ensure using the same prefix
35757  # in subdir configurations.
35758  ac_arg="--prefix=$prefix"
35759  case $ac_arg in
35760  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35761  esac
35762  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35763
35764  # Pass --silent
35765  if test "$silent" = yes; then
35766    ac_sub_configure_args="--silent $ac_sub_configure_args"
35767  fi
35768
35769  ac_popdir=`pwd`
35770  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35771
35772    # Do not complain, so a configure script can configure whichever
35773    # parts of a large source tree are present.
35774    test -d "$srcdir/$ac_dir" || continue
35775
35776    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35777    echo "$as_me:$LINENO: $ac_msg" >&5
35778    echo "$ac_msg" >&6
35779    { as_dir="$ac_dir"
35780  case $as_dir in #(
35781  -*) as_dir=./$as_dir;;
35782  esac
35783  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35784    as_dirs=
35785    while :; do
35786      case $as_dir in #(
35787      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35788      *) as_qdir=$as_dir;;
35789      esac
35790      as_dirs="'$as_qdir' $as_dirs"
35791      as_dir=`$as_dirname -- "$as_dir" ||
35792$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35793	 X"$as_dir" : 'X\(//\)[^/]' \| \
35794	 X"$as_dir" : 'X\(//\)$' \| \
35795	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35796echo X"$as_dir" |
35797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35798	    s//\1/
35799	    q
35800	  }
35801	  /^X\(\/\/\)[^/].*/{
35802	    s//\1/
35803	    q
35804	  }
35805	  /^X\(\/\/\)$/{
35806	    s//\1/
35807	    q
35808	  }
35809	  /^X\(\/\).*/{
35810	    s//\1/
35811	    q
35812	  }
35813	  s/.*/./; q'`
35814      test -d "$as_dir" && break
35815    done
35816    test -z "$as_dirs" || eval "mkdir $as_dirs"
35817  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35818echo "$as_me: error: cannot create directory $as_dir" >&2;}
35819   { (exit 1); exit 1; }; }; }
35820    ac_builddir=.
35821
35822case "$ac_dir" in
35823.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35824*)
35825  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35826  # A ".." for each directory in $ac_dir_suffix.
35827  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35828  case $ac_top_builddir_sub in
35829  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35830  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35831  esac ;;
35832esac
35833ac_abs_top_builddir=$ac_pwd
35834ac_abs_builddir=$ac_pwd$ac_dir_suffix
35835# for backward compatibility:
35836ac_top_builddir=$ac_top_build_prefix
35837
35838case $srcdir in
35839  .)  # We are building in place.
35840    ac_srcdir=.
35841    ac_top_srcdir=$ac_top_builddir_sub
35842    ac_abs_top_srcdir=$ac_pwd ;;
35843  [\\/]* | ?:[\\/]* )  # Absolute name.
35844    ac_srcdir=$srcdir$ac_dir_suffix;
35845    ac_top_srcdir=$srcdir
35846    ac_abs_top_srcdir=$srcdir ;;
35847  *) # Relative name.
35848    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35849    ac_top_srcdir=$ac_top_build_prefix$srcdir
35850    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35851esac
35852ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35853
35854
35855    cd "$ac_dir"
35856
35857    # Check for guested configure; otherwise get Cygnus style configure.
35858    if test -f "$ac_srcdir/configure.gnu"; then
35859      ac_sub_configure=$ac_srcdir/configure.gnu
35860    elif test -f "$ac_srcdir/configure"; then
35861      ac_sub_configure=$ac_srcdir/configure
35862    elif test -f "$ac_srcdir/configure.in"; then
35863      # This should be Cygnus configure.
35864      ac_sub_configure=$ac_aux_dir/configure
35865    else
35866      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35867echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35868      ac_sub_configure=
35869    fi
35870
35871    # The recursion is here.
35872    if test -n "$ac_sub_configure"; then
35873      # Make the cache file name correct relative to the subdirectory.
35874      case $cache_file in
35875      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35876      *) # Relative name.
35877	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35878      esac
35879
35880      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35881echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35882      # The eval makes quoting arguments work.
35883      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35884	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35885	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35886echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35887   { (exit 1); exit 1; }; }
35888    fi
35889
35890    cd "$ac_popdir"
35891  done
35892fi
35893
35894