1#! /bin/sh
2# From configure.in Id: configure.in,v 1.388 2009/02/02 13:02:47 vruppert Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61.
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be more Bourne compatible
15DUALCASE=1; export DUALCASE # for MKS sh
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in
25  *posix*) set -o posix ;;
26esac
27
28fi
29
30
31
32
33# PATH needs CR
34# Avoid depending upon Character Ranges.
35as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38as_cr_digits='0123456789'
39as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41# The user is always right.
42if test "${PATH_SEPARATOR+set}" != set; then
43  echo "#! /bin/sh" >conf$$.sh
44  echo  "exit 0"   >>conf$$.sh
45  chmod +x conf$$.sh
46  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47    PATH_SEPARATOR=';'
48  else
49    PATH_SEPARATOR=:
50  fi
51  rm -f conf$$.sh
52fi
53
54# Support unset when possible.
55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56  as_unset=unset
57else
58  as_unset=false
59fi
60
61
62# IFS
63# We need space, tab and new line, in precisely that order.  Quoting is
64# there to prevent editors from complaining about space-tab.
65# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66# splitting by setting IFS to empty value.)
67as_nl='
68'
69IFS=" ""	$as_nl"
70
71# Find who we are.  Look in the path if we contain no directory separator.
72case $0 in
73  *[\\/]* ) as_myself=$0 ;;
74  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75for as_dir in $PATH
76do
77  IFS=$as_save_IFS
78  test -z "$as_dir" && as_dir=.
79  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80done
81IFS=$as_save_IFS
82
83     ;;
84esac
85# We did not find ourselves, most probably we were run as `sh COMMAND'
86# in which case we are not to be found in the path.
87if test "x$as_myself" = x; then
88  as_myself=$0
89fi
90if test ! -f "$as_myself"; then
91  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92  { (exit 1); exit 1; }
93fi
94
95# Work around bugs in pre-3.0 UWIN ksh.
96for as_var in ENV MAIL MAILPATH
97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98done
99PS1='$ '
100PS2='> '
101PS4='+ '
102
103# NLS nuisances.
104for as_var in \
105  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107  LC_TELEPHONE LC_TIME
108do
109  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110    eval $as_var=C; export $as_var
111  else
112    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113  fi
114done
115
116# Required to use basename.
117if expr a : '\(a\)' >/dev/null 2>&1 &&
118   test "X`expr 00001 : '.*\(...\)'`" = X001; then
119  as_expr=expr
120else
121  as_expr=false
122fi
123
124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125  as_basename=basename
126else
127  as_basename=false
128fi
129
130
131# Name of the executable.
132as_me=`$as_basename -- "$0" ||
133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134	 X"$0" : 'X\(//\)$' \| \
135	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136echo X/"$0" |
137    sed '/^.*\/\([^/][^/]*\)\/*$/{
138	    s//\1/
139	    q
140	  }
141	  /^X\/\(\/\/\)$/{
142	    s//\1/
143	    q
144	  }
145	  /^X\/\(\/\).*/{
146	    s//\1/
147	    q
148	  }
149	  s/.*/./; q'`
150
151# CDPATH.
152$as_unset CDPATH
153
154
155if test "x$CONFIG_SHELL" = x; then
156  if (eval ":") 2>/dev/null; then
157  as_have_required=yes
158else
159  as_have_required=no
160fi
161
162  if test $as_have_required = yes && 	 (eval ":
163(as_func_return () {
164  (exit \$1)
165}
166as_func_success () {
167  as_func_return 0
168}
169as_func_failure () {
170  as_func_return 1
171}
172as_func_ret_success () {
173  return 0
174}
175as_func_ret_failure () {
176  return 1
177}
178
179exitcode=0
180if as_func_success; then
181  :
182else
183  exitcode=1
184  echo as_func_success failed.
185fi
186
187if as_func_failure; then
188  exitcode=1
189  echo as_func_failure succeeded.
190fi
191
192if as_func_ret_success; then
193  :
194else
195  exitcode=1
196  echo as_func_ret_success failed.
197fi
198
199if as_func_ret_failure; then
200  exitcode=1
201  echo as_func_ret_failure succeeded.
202fi
203
204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205  :
206else
207  exitcode=1
208  echo positional parameters were not saved.
209fi
210
211test \$exitcode = 0) || { (exit 1); exit 1; }
212
213(
214  as_lineno_1=\$LINENO
215  as_lineno_2=\$LINENO
216  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218") 2> /dev/null; then
219  :
220else
221  as_candidate_shells=
222    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224do
225  IFS=$as_save_IFS
226  test -z "$as_dir" && as_dir=.
227  case $as_dir in
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231	   done;;
232       esac
233done
234IFS=$as_save_IFS
235
236
237      for as_shell in $as_candidate_shells $SHELL; do
238	 # Try only shells that exist, to save several forks.
239	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240		{ ("$as_shell") 2> /dev/null <<\_ASEOF
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in
250  *posix*) set -o posix ;;
251esac
252
253fi
254
255
256:
257_ASEOF
258}; then
259  CONFIG_SHELL=$as_shell
260	       as_have_required=yes
261	       if { "$as_shell" 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263  emulate sh
264  NULLCMD=:
265  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266  # is contrary to our usage.  Disable this feature.
267  alias -g '${1+"$@"}'='"$@"'
268  setopt NO_GLOB_SUBST
269else
270  case `(set -o) 2>/dev/null` in
271  *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278(as_func_return () {
279  (exit $1)
280}
281as_func_success () {
282  as_func_return 0
283}
284as_func_failure () {
285  as_func_return 1
286}
287as_func_ret_success () {
288  return 0
289}
290as_func_ret_failure () {
291  return 1
292}
293
294exitcode=0
295if as_func_success; then
296  :
297else
298  exitcode=1
299  echo as_func_success failed.
300fi
301
302if as_func_failure; then
303  exitcode=1
304  echo as_func_failure succeeded.
305fi
306
307if as_func_ret_success; then
308  :
309else
310  exitcode=1
311  echo as_func_ret_success failed.
312fi
313
314if as_func_ret_failure; then
315  exitcode=1
316  echo as_func_ret_failure succeeded.
317fi
318
319if ( set x; as_func_ret_success y && test x = "$1" ); then
320  :
321else
322  exitcode=1
323  echo positional parameters were not saved.
324fi
325
326test $exitcode = 0) || { (exit 1); exit 1; }
327
328(
329  as_lineno_1=$LINENO
330  as_lineno_2=$LINENO
331  test "x$as_lineno_1" != "x$as_lineno_2" &&
332  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334_ASEOF
335}; then
336  break
337fi
338
339fi
340
341      done
342
343      if test "x$CONFIG_SHELL" != x; then
344  for as_var in BASH_ENV ENV
345        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346        done
347        export CONFIG_SHELL
348        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349fi
350
351
352    if test $as_have_required = no; then
353  echo This script requires a shell more modern than all the
354      echo shells that I found on your system.  Please install a
355      echo modern shell, or manually run the script under such a
356      echo shell if you do have one.
357      { (exit 1); exit 1; }
358fi
359
360
361fi
362
363fi
364
365
366
367(eval "as_func_return () {
368  (exit \$1)
369}
370as_func_success () {
371  as_func_return 0
372}
373as_func_failure () {
374  as_func_return 1
375}
376as_func_ret_success () {
377  return 0
378}
379as_func_ret_failure () {
380  return 1
381}
382
383exitcode=0
384if as_func_success; then
385  :
386else
387  exitcode=1
388  echo as_func_success failed.
389fi
390
391if as_func_failure; then
392  exitcode=1
393  echo as_func_failure succeeded.
394fi
395
396if as_func_ret_success; then
397  :
398else
399  exitcode=1
400  echo as_func_ret_success failed.
401fi
402
403if as_func_ret_failure; then
404  exitcode=1
405  echo as_func_ret_failure succeeded.
406fi
407
408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409  :
410else
411  exitcode=1
412  echo positional parameters were not saved.
413fi
414
415test \$exitcode = 0") || {
416  echo No shell found that supports shell functions.
417  echo Please tell autoconf@gnu.org about your system,
418  echo including any error possibly output before this
419  echo message
420}
421
422
423
424  as_lineno_1=$LINENO
425  as_lineno_2=$LINENO
426  test "x$as_lineno_1" != "x$as_lineno_2" &&
427  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430  # uniformly replaced by the line number.  The first 'sed' inserts a
431  # line-number line after each line using $LINENO; the second 'sed'
432  # does the real work.  The second script uses 'N' to pair each
433  # line-number line with the line containing $LINENO, and appends
434  # trailing '-' during substitution so that $LINENO is not a special
435  # case at line end.
436  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437  # scripts with optimization help from Paolo Bonzini.  Blame Lee
438  # E. McMahon (1931-1989) for sed's syntax.  :-)
439  sed -n '
440    p
441    /[$]LINENO/=
442  ' <$as_myself |
443    sed '
444      s/[$]LINENO.*/&-/
445      t lineno
446      b
447      :lineno
448      N
449      :loop
450      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451      t loop
452      s/-\n.*//
453    ' >$as_me.lineno &&
454  chmod +x "$as_me.lineno" ||
455    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456   { (exit 1); exit 1; }; }
457
458  # Don't try to exec as it changes $[0], causing all sort of problems
459  # (the dirname of $[0] is not the place where we might find the
460  # original and so on.  Autoconf is especially sensitive to this).
461  . "./$as_me.lineno"
462  # Exit status is that of the last command.
463  exit
464}
465
466
467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468  as_dirname=dirname
469else
470  as_dirname=false
471fi
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in
475-n*)
476  case `echo 'x\c'` in
477  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478  *)   ECHO_C='\c';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484if expr a : '\(a\)' >/dev/null 2>&1 &&
485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
486  as_expr=expr
487else
488  as_expr=false
489fi
490
491rm -f conf$$ conf$$.exe conf$$.file
492if test -d conf$$.dir; then
493  rm -f conf$$.dir/conf$$.file
494else
495  rm -f conf$$.dir
496  mkdir conf$$.dir
497fi
498echo >conf$$.file
499if ln -s conf$$.file conf$$ 2>/dev/null; then
500  as_ln_s='ln -s'
501  # ... but there are two gotchas:
502  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504  # In both cases, we have to default to `cp -p'.
505  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506    as_ln_s='cp -p'
507elif ln conf$$.file conf$$ 2>/dev/null; then
508  as_ln_s=ln
509else
510  as_ln_s='cp -p'
511fi
512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513rmdir conf$$.dir 2>/dev/null
514
515if mkdir -p . 2>/dev/null; then
516  as_mkdir_p=:
517else
518  test -d ./-p && rmdir ./-p
519  as_mkdir_p=false
520fi
521
522if test -x / >/dev/null 2>&1; then
523  as_test_x='test -x'
524else
525  if ls -dL / >/dev/null 2>&1; then
526    as_ls_L_option=L
527  else
528    as_ls_L_option=
529  fi
530  as_test_x='
531    eval sh -c '\''
532      if test -d "$1"; then
533        test -d "$1/.";
534      else
535	case $1 in
536        -*)set "./$1";;
537	esac;
538	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539	???[sx]*):;;*)false;;esac;fi
540    '\'' sh
541  '
542fi
543as_executable_p=$as_test_x
544
545# Sed expression to map a string onto a valid CPP name.
546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548# Sed expression to map a string onto a valid variable name.
549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554# Check that we are running under the correct shell.
555SHELL=${CONFIG_SHELL-/bin/sh}
556
557case X$ECHO in
558X*--fallback-echo)
559  # Remove one level of quotation (which was required for Make).
560  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561  ;;
562esac
563
564echo=${ECHO-echo}
565if test "X$1" = X--no-reexec; then
566  # Discard the --no-reexec flag, and continue.
567  shift
568elif test "X$1" = X--fallback-echo; then
569  # Avoid inline document here, it may be left over
570  :
571elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572  # Yippee, $echo works!
573  :
574else
575  # Restart under the correct shell.
576  exec $SHELL "$0" --no-reexec ${1+"$@"}
577fi
578
579if test "X$1" = X--fallback-echo; then
580  # used as fallback echo
581  shift
582  cat <<EOF
583$*
584EOF
585  exit 0
586fi
587
588# The HP-UX ksh and POSIX shell print the target directory to stdout
589# if CDPATH is set.
590if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
591
592if test -z "$ECHO"; then
593if test "X${echo_test_string+set}" != Xset; then
594# find a string as large as possible, as long as the shell can cope with it
595  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
598       echo_test_string="`eval $cmd`" &&
599       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600    then
601      break
602    fi
603  done
604fi
605
606if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608   test "X$echo_testing_string" = "X$echo_test_string"; then
609  :
610else
611  # The Solaris, AIX, and Digital Unix default echo programs unquote
612  # backslashes.  This makes it impossible to quote backslashes using
613  #   echo "$something" | sed 's/\\/\\\\/g'
614  #
615  # So, first we look for a working echo in the user's PATH.
616
617  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618  for dir in $PATH /usr/ucb; do
619    IFS="$lt_save_ifs"
620    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623       test "X$echo_testing_string" = "X$echo_test_string"; then
624      echo="$dir/echo"
625      break
626    fi
627  done
628  IFS="$lt_save_ifs"
629
630  if test "X$echo" = Xecho; then
631    # We didn't find a better echo, so look for alternatives.
632    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634       test "X$echo_testing_string" = "X$echo_test_string"; then
635      # This shell has a builtin print -r that does the trick.
636      echo='print -r'
637    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638	 test "X$CONFIG_SHELL" != X/bin/ksh; then
639      # If we have ksh, try running configure again with it.
640      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641      export ORIGINAL_CONFIG_SHELL
642      CONFIG_SHELL=/bin/ksh
643      export CONFIG_SHELL
644      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645    else
646      # Try using printf.
647      echo='printf %s\n'
648      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650	 test "X$echo_testing_string" = "X$echo_test_string"; then
651	# Cool, printf works
652	:
653      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654	   test "X$echo_testing_string" = 'X\t' &&
655	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656	   test "X$echo_testing_string" = "X$echo_test_string"; then
657	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658	export CONFIG_SHELL
659	SHELL="$CONFIG_SHELL"
660	export SHELL
661	echo="$CONFIG_SHELL $0 --fallback-echo"
662      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663	   test "X$echo_testing_string" = 'X\t' &&
664	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665	   test "X$echo_testing_string" = "X$echo_test_string"; then
666	echo="$CONFIG_SHELL $0 --fallback-echo"
667      else
668	# maybe with a smaller string...
669	prev=:
670
671	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673	  then
674	    break
675	  fi
676	  prev="$cmd"
677	done
678
679	if test "$prev" != 'sed 50q "$0"'; then
680	  echo_test_string=`eval $prev`
681	  export echo_test_string
682	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683	else
684	  # Oops.  We lost completely, so just stick with echo.
685	  echo=echo
686	fi
687      fi
688    fi
689  fi
690fi
691fi
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
695ECHO=$echo
696if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698fi
699
700
701
702
703tagnames=${tagnames+${tagnames},}CXX
704
705tagnames=${tagnames+${tagnames},}F77
706
707exec 7<&0 </dev/null 6>&1
708
709# Name of the host.
710# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714#
715# Initializations.
716#
717ac_default_prefix=/usr/local
718ac_clean_files=
719ac_config_libobj_dir=.
720LIBOBJS=
721cross_compiling=no
722subdirs=
723MFLAGS=
724MAKEFLAGS=
725SHELL=${CONFIG_SHELL-/bin/sh}
726
727# Identity of this package.
728PACKAGE_NAME=
729PACKAGE_TARNAME=
730PACKAGE_VERSION=
731PACKAGE_STRING=
732PACKAGE_BUGREPORT=
733
734ac_unique_file="bochs.h"
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749#  include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754#  include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808build
809build_cpu
810build_vendor
811build_os
812host
813host_cpu
814host_vendor
815host_os
816target
817target_cpu
818target_vendor
819target_os
820CC
821CFLAGS
822LDFLAGS
823CPPFLAGS
824ac_ct_CC
825EXEEXT
826OBJEXT
827CXX
828CXXFLAGS
829ac_ct_CXX
830SET_MAKE
831GREP
832EGREP
833LN_S
834ECHO
835AR
836RANLIB
837STRIP
838CPP
839CXXCPP
840F77
841FFLAGS
842ac_ct_F77
843LIBTOOL
844LIBADD_DL
845XMKMF
846X_CFLAGS
847X_PRE_LIBS
848X_LIBS
849X_EXTRA_LIBS
850BX_USE_IDLE_HACK
851DEFINE_PLUGIN_PATH
852NONPLUGIN_GUI_LINK_OPTS
853OBJS64
854IOAPIC_OBJS
855BX_COMPRESSED_HD_SUPPORT
856NE2K_OBJS
857BX_SUPPORT_ACPI
858PCI_OBJ
859KERNELDIR
860LSMOD
861INSMOD
862RMMOD
863DEPMOD
864PCIDEV_MODULE_MAKE_ALL
865KERNEL_MODULE_SUFFIX
866USBDEV_OBJS
867SCSI_OBJS
868NETLOW_OBJS
869SUFFIX_LINE
870CPP_SUFFIX
871DEBUGGER_VAR
872DISASM_VAR
873READLINE_LIB
874INSTRUMENT_DIR
875INSTRUMENT_VAR
876FPU_VAR
877CDROM_OBJS
878SB16_OBJS
879SOUNDLOW_OBJS
880SOUND_LINK_OPTS
881GAME_OBJS
882GDBSTUB_VAR
883IODEBUG_OBJS
884DOCBOOK2HTML
885BUILD_DOCBOOK_VAR
886INSTALL_DOCBOOK_VAR
887IODEV_LIB_VAR
888EXTRA_BX_OBJS
889NONINLINE_VAR
890INLINE_VAR
891EXTERNAL_DEPENDENCY
892RC_CMD
893WX_CONFIG
894XPM_LIB
895GUI_CFLAGS
896GUI_CXXFLAGS
897WX_CFLAGS
898WX_CXXFLAGS
899TOOLKIT_CXXFLAGS
900WGET
901ENH_DBG_OBJS
902DIALOG_OBJS
903EXPORT_DYNAMIC
904PTHREAD_CC
905PTHREAD_LIBS
906PTHREAD_CFLAGS
907INSTALL_TARGET
908INSTALL_LIST_FOR_PLATFORM
909RFB_LIBS
910GUI_OBJS
911DEVICE_LINK_OPTS
912GUI_LINK_OPTS
913GUI_LINK_OPTS_TERM
914GUI_LINK_OPTS_WX
915BXIMAGE_LINK_OPTS
916DASH
917SLASH
918CXXFP
919CFP
920OFP
921MAKELIB
922RMCOMMAND
923LINK
924LINK_CONSOLE
925EXE
926PRIMARY_TARGET
927PLUGIN_LIBNAME_TRANSFORMATION
928COMMAND_SEPARATOR
929CD_UP_ONE
930CD_UP_TWO
931CD_UP_THREE
932VERSION
933VER_STRING
934WIN_VER_STRING
935REL_STRING
936EXTRA_LINK_OPTS
937GUI_NON_PLUGIN_OBJS
938GUI_PLUGIN_OBJS
939IODEV_NON_PLUGIN_OBJS
940IODEV_PLUGIN_OBJS
941PLUGIN_VAR
942PLUGIN_TARGET
943INSTALL_PLUGINS_VAR
944GZIP
945TAR
946LIBOBJS
947LTLIBOBJS'
948ac_subst_files=''
949      ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955LIBS
956CPPFLAGS
957CXX
958CXXFLAGS
959CCC
960CPP
961CXXCPP
962F77
963FFLAGS
964XMKMF'
965
966
967# Initialize some variables set by options.
968ac_init_help=
969ac_init_version=false
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
992# (The list follows the same order as the GNU Coding Standards.)
993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
1001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
1003docdir='${datarootdir}/doc/${PACKAGE}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
1012
1013ac_prev=
1014ac_dashdash=
1015for ac_option
1016do
1017  # If the previous option needs an argument, assign it.
1018  if test -n "$ac_prev"; then
1019    eval $ac_prev=\$ac_option
1020    ac_prev=
1021    continue
1022  fi
1023
1024  case $ac_option in
1025  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026  *)	ac_optarg=yes ;;
1027  esac
1028
1029  # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031  case $ac_dashdash$ac_option in
1032  --)
1033    ac_dashdash=yes ;;
1034
1035  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036    ac_prev=bindir ;;
1037  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038    bindir=$ac_optarg ;;
1039
1040  -build | --build | --buil | --bui | --bu)
1041    ac_prev=build_alias ;;
1042  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043    build_alias=$ac_optarg ;;
1044
1045  -cache-file | --cache-file | --cache-fil | --cache-fi \
1046  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047    ac_prev=cache_file ;;
1048  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050    cache_file=$ac_optarg ;;
1051
1052  --config-cache | -C)
1053    cache_file=config.cache ;;
1054
1055  -datadir | --datadir | --datadi | --datad)
1056    ac_prev=datadir ;;
1057  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058    datadir=$ac_optarg ;;
1059
1060  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061  | --dataroo | --dataro | --datar)
1062    ac_prev=datarootdir ;;
1063  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065    datarootdir=$ac_optarg ;;
1066
1067  -disable-* | --disable-*)
1068    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072   { (exit 1); exit 1; }; }
1073    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1074    eval enable_$ac_feature=no ;;
1075
1076  -docdir | --docdir | --docdi | --doc | --do)
1077    ac_prev=docdir ;;
1078  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079    docdir=$ac_optarg ;;
1080
1081  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082    ac_prev=dvidir ;;
1083  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084    dvidir=$ac_optarg ;;
1085
1086  -enable-* | --enable-*)
1087    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091   { (exit 1); exit 1; }; }
1092    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1093    eval enable_$ac_feature=\$ac_optarg ;;
1094
1095  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097  | --exec | --exe | --ex)
1098    ac_prev=exec_prefix ;;
1099  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101  | --exec=* | --exe=* | --ex=*)
1102    exec_prefix=$ac_optarg ;;
1103
1104  -gas | --gas | --ga | --g)
1105    # Obsolete; use --with-gas.
1106    with_gas=yes ;;
1107
1108  -help | --help | --hel | --he | -h)
1109    ac_init_help=long ;;
1110  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111    ac_init_help=recursive ;;
1112  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113    ac_init_help=short ;;
1114
1115  -host | --host | --hos | --ho)
1116    ac_prev=host_alias ;;
1117  -host=* | --host=* | --hos=* | --ho=*)
1118    host_alias=$ac_optarg ;;
1119
1120  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121    ac_prev=htmldir ;;
1122  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123  | --ht=*)
1124    htmldir=$ac_optarg ;;
1125
1126  -includedir | --includedir | --includedi | --included | --include \
1127  | --includ | --inclu | --incl | --inc)
1128    ac_prev=includedir ;;
1129  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130  | --includ=* | --inclu=* | --incl=* | --inc=*)
1131    includedir=$ac_optarg ;;
1132
1133  -infodir | --infodir | --infodi | --infod | --info | --inf)
1134    ac_prev=infodir ;;
1135  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136    infodir=$ac_optarg ;;
1137
1138  -libdir | --libdir | --libdi | --libd)
1139    ac_prev=libdir ;;
1140  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141    libdir=$ac_optarg ;;
1142
1143  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144  | --libexe | --libex | --libe)
1145    ac_prev=libexecdir ;;
1146  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147  | --libexe=* | --libex=* | --libe=*)
1148    libexecdir=$ac_optarg ;;
1149
1150  -localedir | --localedir | --localedi | --localed | --locale)
1151    ac_prev=localedir ;;
1152  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153    localedir=$ac_optarg ;;
1154
1155  -localstatedir | --localstatedir | --localstatedi | --localstated \
1156  | --localstate | --localstat | --localsta | --localst | --locals)
1157    ac_prev=localstatedir ;;
1158  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160    localstatedir=$ac_optarg ;;
1161
1162  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163    ac_prev=mandir ;;
1164  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165    mandir=$ac_optarg ;;
1166
1167  -nfp | --nfp | --nf)
1168    # Obsolete; use --without-fp.
1169    with_fp=no ;;
1170
1171  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172  | --no-cr | --no-c | -n)
1173    no_create=yes ;;
1174
1175  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177    no_recursion=yes ;;
1178
1179  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181  | --oldin | --oldi | --old | --ol | --o)
1182    ac_prev=oldincludedir ;;
1183  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186    oldincludedir=$ac_optarg ;;
1187
1188  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189    ac_prev=prefix ;;
1190  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191    prefix=$ac_optarg ;;
1192
1193  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194  | --program-pre | --program-pr | --program-p)
1195    ac_prev=program_prefix ;;
1196  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198    program_prefix=$ac_optarg ;;
1199
1200  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201  | --program-suf | --program-su | --program-s)
1202    ac_prev=program_suffix ;;
1203  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205    program_suffix=$ac_optarg ;;
1206
1207  -program-transform-name | --program-transform-name \
1208  | --program-transform-nam | --program-transform-na \
1209  | --program-transform-n | --program-transform- \
1210  | --program-transform | --program-transfor \
1211  | --program-transfo | --program-transf \
1212  | --program-trans | --program-tran \
1213  | --progr-tra | --program-tr | --program-t)
1214    ac_prev=program_transform_name ;;
1215  -program-transform-name=* | --program-transform-name=* \
1216  | --program-transform-nam=* | --program-transform-na=* \
1217  | --program-transform-n=* | --program-transform-=* \
1218  | --program-transform=* | --program-transfor=* \
1219  | --program-transfo=* | --program-transf=* \
1220  | --program-trans=* | --program-tran=* \
1221  | --progr-tra=* | --program-tr=* | --program-t=*)
1222    program_transform_name=$ac_optarg ;;
1223
1224  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225    ac_prev=pdfdir ;;
1226  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227    pdfdir=$ac_optarg ;;
1228
1229  -psdir | --psdir | --psdi | --psd | --ps)
1230    ac_prev=psdir ;;
1231  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232    psdir=$ac_optarg ;;
1233
1234  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235  | -silent | --silent | --silen | --sile | --sil)
1236    silent=yes ;;
1237
1238  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239    ac_prev=sbindir ;;
1240  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241  | --sbi=* | --sb=*)
1242    sbindir=$ac_optarg ;;
1243
1244  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246  | --sharedst | --shareds | --shared | --share | --shar \
1247  | --sha | --sh)
1248    ac_prev=sharedstatedir ;;
1249  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252  | --sha=* | --sh=*)
1253    sharedstatedir=$ac_optarg ;;
1254
1255  -site | --site | --sit)
1256    ac_prev=site ;;
1257  -site=* | --site=* | --sit=*)
1258    site=$ac_optarg ;;
1259
1260  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261    ac_prev=srcdir ;;
1262  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263    srcdir=$ac_optarg ;;
1264
1265  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266  | --syscon | --sysco | --sysc | --sys | --sy)
1267    ac_prev=sysconfdir ;;
1268  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270    sysconfdir=$ac_optarg ;;
1271
1272  -target | --target | --targe | --targ | --tar | --ta | --t)
1273    ac_prev=target_alias ;;
1274  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275    target_alias=$ac_optarg ;;
1276
1277  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278    verbose=yes ;;
1279
1280  -version | --version | --versio | --versi | --vers | -V)
1281    ac_init_version=: ;;
1282
1283  -with-* | --with-*)
1284    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285    # Reject names that are not valid shell variable names.
1286    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287      { echo "$as_me: error: invalid package name: $ac_package" >&2
1288   { (exit 1); exit 1; }; }
1289    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1290    eval with_$ac_package=\$ac_optarg ;;
1291
1292  -without-* | --without-*)
1293    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294    # Reject names that are not valid shell variable names.
1295    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296      { echo "$as_me: error: invalid package name: $ac_package" >&2
1297   { (exit 1); exit 1; }; }
1298    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1299    eval with_$ac_package=no ;;
1300
1301  --x)
1302    # Obsolete; use --with-x.
1303    with_x=yes ;;
1304
1305  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306  | --x-incl | --x-inc | --x-in | --x-i)
1307    ac_prev=x_includes ;;
1308  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310    x_includes=$ac_optarg ;;
1311
1312  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314    ac_prev=x_libraries ;;
1315  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317    x_libraries=$ac_optarg ;;
1318
1319  -*) { echo "$as_me: error: unrecognized option: $ac_option
1320Try \`$0 --help' for more information." >&2
1321   { (exit 1); exit 1; }; }
1322    ;;
1323
1324  *=*)
1325    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326    # Reject names that are not valid shell variable names.
1327    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329   { (exit 1); exit 1; }; }
1330    eval $ac_envvar=\$ac_optarg
1331    export $ac_envvar ;;
1332
1333  *)
1334    # FIXME: should be removed in autoconf 3.0.
1335    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339    ;;
1340
1341  esac
1342done
1343
1344if test -n "$ac_prev"; then
1345  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346  { echo "$as_me: error: missing argument to $ac_option" >&2
1347   { (exit 1); exit 1; }; }
1348fi
1349
1350# Be sure to have absolute directory names.
1351for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352		datadir sysconfdir sharedstatedir localstatedir includedir \
1353		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354		libdir localedir mandir
1355do
1356  eval ac_val=\$$ac_var
1357  case $ac_val in
1358    [\\/$]* | ?:[\\/]* )  continue;;
1359    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360  esac
1361  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362   { (exit 1); exit 1; }; }
1363done
1364
1365# There might be people who depend on the old broken behavior: `$host'
1366# used to hold the argument of --host etc.
1367# FIXME: To remove some day.
1368build=$build_alias
1369host=$host_alias
1370target=$target_alias
1371
1372# FIXME: To remove some day.
1373if test "x$host_alias" != x; then
1374  if test "x$build_alias" = x; then
1375    cross_compiling=maybe
1376    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377    If a cross compiler is detected then cross compile mode will be used." >&2
1378  elif test "x$build_alias" != "x$host_alias"; then
1379    cross_compiling=yes
1380  fi
1381fi
1382
1383ac_tool_prefix=
1384test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386test "$silent" = yes && exec 6>/dev/null
1387
1388
1389ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390ac_ls_di=`ls -di .` &&
1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392  { echo "$as_me: error: Working directory cannot be determined" >&2
1393   { (exit 1); exit 1; }; }
1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395  { echo "$as_me: error: pwd does not report name of working directory" >&2
1396   { (exit 1); exit 1; }; }
1397
1398
1399# Find the source files, if location was not specified.
1400if test -z "$srcdir"; then
1401  ac_srcdir_defaulted=yes
1402  # Try the directory containing this script, then the parent directory.
1403  ac_confdir=`$as_dirname -- "$0" ||
1404$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405	 X"$0" : 'X\(//\)[^/]' \| \
1406	 X"$0" : 'X\(//\)$' \| \
1407	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1408echo X"$0" |
1409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)[^/].*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\/\)$/{
1418	    s//\1/
1419	    q
1420	  }
1421	  /^X\(\/\).*/{
1422	    s//\1/
1423	    q
1424	  }
1425	  s/.*/./; q'`
1426  srcdir=$ac_confdir
1427  if test ! -r "$srcdir/$ac_unique_file"; then
1428    srcdir=..
1429  fi
1430else
1431  ac_srcdir_defaulted=no
1432fi
1433if test ! -r "$srcdir/$ac_unique_file"; then
1434  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436   { (exit 1); exit 1; }; }
1437fi
1438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441   { (exit 1); exit 1; }; }
1442	pwd)`
1443# When building in place, set srcdir=.
1444if test "$ac_abs_confdir" = "$ac_pwd"; then
1445  srcdir=.
1446fi
1447# Remove unnecessary trailing slashes from srcdir.
1448# Double slashes in file names in object file debugging info
1449# mess up M-x gdb in Emacs.
1450case $srcdir in
1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452esac
1453for ac_var in $ac_precious_vars; do
1454  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455  eval ac_env_${ac_var}_value=\$${ac_var}
1456  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458done
1459
1460#
1461# Report the --help message.
1462#
1463if test "$ac_init_help" = "long"; then
1464  # Omit some internal or obsolete options to make the list less imposing.
1465  # This message is too long to be a string in the A/UX 3.1 sh.
1466  cat <<_ACEOF
1467\`configure' configures this package to adapt to many kinds of systems.
1468
1469Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474Defaults for the options are specified in brackets.
1475
1476Configuration:
1477  -h, --help              display this help and exit
1478      --help=short        display options specific to this package
1479      --help=recursive    display the short help of all the included packages
1480  -V, --version           display version information and exit
1481  -q, --quiet, --silent   do not print \`checking...' messages
1482      --cache-file=FILE   cache test results in FILE [disabled]
1483  -C, --config-cache      alias for \`--cache-file=config.cache'
1484  -n, --no-create         do not create output files
1485      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487Installation directories:
1488  --prefix=PREFIX         install architecture-independent files in PREFIX
1489			  [$ac_default_prefix]
1490  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491			  [PREFIX]
1492
1493By default, \`make install' will install all the files in
1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496for instance \`--prefix=\$HOME'.
1497
1498For better control, use the options below.
1499
1500Fine tuning of the installation directories:
1501  --bindir=DIR           user executables [EPREFIX/bin]
1502  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1503  --libexecdir=DIR       program executables [EPREFIX/libexec]
1504  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1505  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1506  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1507  --libdir=DIR           object code libraries [EPREFIX/lib]
1508  --includedir=DIR       C header files [PREFIX/include]
1509  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1510  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1511  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1512  --infodir=DIR          info documentation [DATAROOTDIR/info]
1513  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1514  --mandir=DIR           man documentation [DATAROOTDIR/man]
1515  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1516  --htmldir=DIR          html documentation [DOCDIR]
1517  --dvidir=DIR           dvi documentation [DOCDIR]
1518  --pdfdir=DIR           pdf documentation [DOCDIR]
1519  --psdir=DIR            ps documentation [DOCDIR]
1520_ACEOF
1521
1522  cat <<\_ACEOF
1523
1524X features:
1525  --x-includes=DIR    X include files are in DIR
1526  --x-libraries=DIR   X library files are in DIR
1527
1528System types:
1529  --build=BUILD     configure for building on BUILD [guessed]
1530  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531  --target=TARGET   configure for building compilers for TARGET [HOST]
1532_ACEOF
1533fi
1534
1535if test -n "$ac_init_help"; then
1536
1537  cat <<\_ACEOF
1538
1539Optional Features:
1540  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542  --enable-static[=PKGS]  build static libraries [default=no]
1543  --enable-shared[=PKGS]  build shared libraries [default=yes]
1544  --enable-fast-install[=PKGS]
1545                          optimize for fast installation [default=yes]
1546  --disable-libtool-lock  avoid locking (might break parallel builds)
1547  --enable-ltdl-install   install libltdl
1548  --disable-largefile     omit support for large files
1549  --enable-idle-hack                use Roland Mainz's idle hack
1550  --enable-plugins                  enable plugins
1551  --enable-x86-64                   compile in support for x86-64 instructions
1552  --enable-smp                      compile in support for SMP configurations
1553  --enable-cpu-level                select cpu level (3,4,5,6)
1554  --enable-apic                     enable APIC support
1555  --enable-compressed-hd            allows compressed (zlib) hard disk image (not implemented yet)
1556  --enable-ne2000                   enable limited ne2000 support
1557  --enable-acpi                     enable ACPI support
1558  --enable-pci                      enable limited i440FX PCI support
1559  --enable-pcidev                   enable PCI host device mapping support (linux host only)
1560  --enable-usb                      enable limited USB UHCI support
1561  --enable-usb-ohci                 enable limited USB OHCI support
1562  --enable-pnic                     enable PCI pseudo NIC support
1563  --enable-large-pages               support for large pages (2M/4M pages)
1564  --enable-pae                      support Physical Address Extensions
1565  --enable-global-pages             support for global pages in PDE/PTE
1566  --enable-1g-pages                 support for 1G pages in long mode
1567  --enable-mtrr                     support for MTRRs
1568  --enable-repeat-speedups          support repeated IO and mem copy speedups
1569  --enable-trace-cache              support instruction trace cache
1570  --enable-icache                   support instruction cache
1571  --enable-fast-function-calls      support for fast function calls (gcc on x86 only)
1572  --enable-host-specific-asms       support for host specific inline assembly
1573  --enable-configurable-msrs        support for configurable MSR registers
1574  --enable-ignore-bad-msr           ignore bad MSR references
1575  --enable-port-e9-hack             writes to port e9 go to console
1576  --enable-show-ips                 show IPS in Bochs log file
1577  --enable-cpp                      use .cpp as C++ suffix
1578  --enable-debugger                 compile in support for Bochs internal debugger
1579  --enable-disasm                   compile in support for disassembler
1580  --enable-debugger-gui             compile in support for Bochs internal debugger GUI
1581  --enable-all-optimizations        compile in all possible optimizations
1582  --enable-readline                 use readline library, if available
1583  --enable-instrumentation          compile in support for instrumentation
1584  --enable-logging                  enable logging
1585  --enable-assert-checks            enable BX_ASSERT checks
1586  --enable-raw-serial               use raw serial port access
1587  --enable-vbe                      use VESA BIOS extensions
1588  --enable-clgd54xx                 enable CLGD54XX emulation
1589  --enable-fpu                      compile in FPU emulation
1590  --enable-vme                      virtual 8086 mode extensions
1591  --enable-vmx                      virtualization extensions
1592  --enable-mmx                      MMX support
1593  --enable-3dnow                    3DNow! support (incomplete)
1594  --enable-sse                      SSE support (--enable-sse=no|1|2|3|4)
1595  --enable-sse-extension            support for SSE extensions
1596  --enable-daz                      denormals-are-zeroes support
1597  --enable-xsave                    support for XSAVE/XRSTOR extensions
1598  --enable-aes                      support for AES instructions
1599  --enable-alignment-check          alignment check (#AC) support
1600  --enable-misaligned-sse           misaligned SSE support
1601  --enable-sep                      SYSENTER/SYSEXIT support
1602  --enable-popcnt                   support for POPCNT instruction
1603  --enable-movbe                    support for MOVBE Intel Atom(R) instruction
1604  --enable-monitor-mwait            support for MONITOR/MWAIT instructions (experimental)
1605  --enable-x86-debugger             x86 debugger support
1606  --enable-cdrom                    CDROM support
1607  --enable-sb16=xxx                 Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1608  --enable-gameport                 enable standard PC gameport support
1609  --enable-gdb-stub                 enable gdb stub support
1610  --enable-iodebug                  enable I/O interface to debugger
1611  --enable-docbook                  build the Docbook documentation
1612  --enable-xpm                      enable the check for XPM support
1613  --enable-guest2host-tlb          enables guest to host addr TLB for speed (deprecated)
1614  --enable-external-debugger       enables external debugger interface (deprecated)
1615  --enable-magic-breakpoints        enables magic breakpoints (deprecated)
1616  --enable-save-restore             enables save/restore (deprecated)
1617
1618Optional Packages:
1619  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1620  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1621  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1622  --with-pic              try to use only PIC/non-PIC objects [default=use
1623                          both]
1624  --with-tags[=TAGS]      include additional configurations [automatic]
1625  --with-x                use the X Window System
1626  --with-x11                        use X11 GUI
1627  --with-beos                       use BeOS GUI
1628  --with-win32                      use Win32 GUI
1629  --with-macos                      use Macintosh/CodeWarrior environment
1630  --with-carbon                     compile for MacOS X with Carbon GUI
1631  --with-nogui                      no native GUI, just use blank stubs
1632  --with-term                       textmode terminal environment
1633  --with-rfb                        use RFB protocol, works with VNC viewer
1634  --with-amigaos                    use AmigaOS (or MorphOS) GUI
1635  --with-sdl                        use SDL libraries
1636  --with-svga                       use SVGALib libraries
1637  --with-wx                         use wxWidgets libraries
1638  --with-all-libs                   compile all guis that Bochs supports
1639
1640Some influential environment variables:
1641  CC          C compiler command
1642  CFLAGS      C compiler flags
1643  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1644              nonstandard directory <lib dir>
1645  LIBS        libraries to pass to the linker, e.g. -l<library>
1646  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1647              you have headers in a nonstandard directory <include dir>
1648  CXX         C++ compiler command
1649  CXXFLAGS    C++ compiler flags
1650  CPP         C preprocessor
1651  CXXCPP      C++ preprocessor
1652  F77         Fortran 77 compiler command
1653  FFLAGS      Fortran 77 compiler flags
1654  XMKMF       Path to xmkmf, Makefile generator for X Window System
1655
1656Use these variables to override the choices made by `configure' or to help
1657it to find libraries and programs with nonstandard names/locations.
1658
1659_ACEOF
1660ac_status=$?
1661fi
1662
1663if test "$ac_init_help" = "recursive"; then
1664  # If there are subdirs, report their specific --help.
1665  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666    test -d "$ac_dir" || continue
1667    ac_builddir=.
1668
1669case "$ac_dir" in
1670.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671*)
1672  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1673  # A ".." for each directory in $ac_dir_suffix.
1674  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1675  case $ac_top_builddir_sub in
1676  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678  esac ;;
1679esac
1680ac_abs_top_builddir=$ac_pwd
1681ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682# for backward compatibility:
1683ac_top_builddir=$ac_top_build_prefix
1684
1685case $srcdir in
1686  .)  # We are building in place.
1687    ac_srcdir=.
1688    ac_top_srcdir=$ac_top_builddir_sub
1689    ac_abs_top_srcdir=$ac_pwd ;;
1690  [\\/]* | ?:[\\/]* )  # Absolute name.
1691    ac_srcdir=$srcdir$ac_dir_suffix;
1692    ac_top_srcdir=$srcdir
1693    ac_abs_top_srcdir=$srcdir ;;
1694  *) # Relative name.
1695    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696    ac_top_srcdir=$ac_top_build_prefix$srcdir
1697    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698esac
1699ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701    cd "$ac_dir" || { ac_status=$?; continue; }
1702    # Check for guested configure.
1703    if test -f "$ac_srcdir/configure.gnu"; then
1704      echo &&
1705      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706    elif test -f "$ac_srcdir/configure"; then
1707      echo &&
1708      $SHELL "$ac_srcdir/configure" --help=recursive
1709    else
1710      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711    fi || ac_status=$?
1712    cd "$ac_pwd" || { ac_status=$?; break; }
1713  done
1714fi
1715
1716test -n "$ac_init_help" && exit $ac_status
1717if $ac_init_version; then
1718  cat <<\_ACEOF
1719configure
1720generated by GNU Autoconf 2.61
1721
1722Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17232002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1724This configure script is free software; the Free Software Foundation
1725gives unlimited permission to copy, distribute and modify it.
1726_ACEOF
1727  exit
1728fi
1729cat >config.log <<_ACEOF
1730This file contains any messages produced by compilers while
1731running configure, to aid debugging if configure makes a mistake.
1732
1733It was created by $as_me, which was
1734generated by GNU Autoconf 2.61.  Invocation command line was
1735
1736  $ $0 $@
1737
1738_ACEOF
1739exec 5>>config.log
1740{
1741cat <<_ASUNAME
1742## --------- ##
1743## Platform. ##
1744## --------- ##
1745
1746hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1747uname -m = `(uname -m) 2>/dev/null || echo unknown`
1748uname -r = `(uname -r) 2>/dev/null || echo unknown`
1749uname -s = `(uname -s) 2>/dev/null || echo unknown`
1750uname -v = `(uname -v) 2>/dev/null || echo unknown`
1751
1752/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1753/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1754
1755/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1756/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1757/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1758/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1759/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1760/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1761/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1762
1763_ASUNAME
1764
1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766for as_dir in $PATH
1767do
1768  IFS=$as_save_IFS
1769  test -z "$as_dir" && as_dir=.
1770  echo "PATH: $as_dir"
1771done
1772IFS=$as_save_IFS
1773
1774} >&5
1775
1776cat >&5 <<_ACEOF
1777
1778
1779## ----------- ##
1780## Core tests. ##
1781## ----------- ##
1782
1783_ACEOF
1784
1785
1786# Keep a trace of the command line.
1787# Strip out --no-create and --no-recursion so they do not pile up.
1788# Strip out --silent because we don't want to record it for future runs.
1789# Also quote any args containing shell meta-characters.
1790# Make two passes to allow for proper duplicate-argument suppression.
1791ac_configure_args=
1792ac_configure_args0=
1793ac_configure_args1=
1794ac_must_keep_next=false
1795for ac_pass in 1 2
1796do
1797  for ac_arg
1798  do
1799    case $ac_arg in
1800    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802    | -silent | --silent | --silen | --sile | --sil)
1803      continue ;;
1804    *\'*)
1805      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806    esac
1807    case $ac_pass in
1808    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1809    2)
1810      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1811      if test $ac_must_keep_next = true; then
1812	ac_must_keep_next=false # Got value, back to normal.
1813      else
1814	case $ac_arg in
1815	  *=* | --config-cache | -C | -disable-* | --disable-* \
1816	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818	  | -with-* | --with-* | -without-* | --without-* | --x)
1819	    case "$ac_configure_args0 " in
1820	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1821	    esac
1822	    ;;
1823	  -* ) ac_must_keep_next=true ;;
1824	esac
1825      fi
1826      ac_configure_args="$ac_configure_args '$ac_arg'"
1827      ;;
1828    esac
1829  done
1830done
1831$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1832$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1833
1834# When interrupted or exit'd, cleanup temporary files, and complete
1835# config.log.  We remove comments because anyway the quotes in there
1836# would cause problems or look ugly.
1837# WARNING: Use '\'' to represent an apostrophe within the trap.
1838# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839trap 'exit_status=$?
1840  # Save into config.log some information that might help in debugging.
1841  {
1842    echo
1843
1844    cat <<\_ASBOX
1845## ---------------- ##
1846## Cache variables. ##
1847## ---------------- ##
1848_ASBOX
1849    echo
1850    # The following way of writing the cache mishandles newlines in values,
1851(
1852  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853    eval ac_val=\$$ac_var
1854    case $ac_val in #(
1855    *${as_nl}*)
1856      case $ac_var in #(
1857      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1858echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1859      esac
1860      case $ac_var in #(
1861      _ | IFS | as_nl) ;; #(
1862      *) $as_unset $ac_var ;;
1863      esac ;;
1864    esac
1865  done
1866  (set) 2>&1 |
1867    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868    *${as_nl}ac_space=\ *)
1869      sed -n \
1870	"s/'\''/'\''\\\\'\'''\''/g;
1871	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872      ;; #(
1873    *)
1874      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875      ;;
1876    esac |
1877    sort
1878)
1879    echo
1880
1881    cat <<\_ASBOX
1882## ----------------- ##
1883## Output variables. ##
1884## ----------------- ##
1885_ASBOX
1886    echo
1887    for ac_var in $ac_subst_vars
1888    do
1889      eval ac_val=\$$ac_var
1890      case $ac_val in
1891      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892      esac
1893      echo "$ac_var='\''$ac_val'\''"
1894    done | sort
1895    echo
1896
1897    if test -n "$ac_subst_files"; then
1898      cat <<\_ASBOX
1899## ------------------- ##
1900## File substitutions. ##
1901## ------------------- ##
1902_ASBOX
1903      echo
1904      for ac_var in $ac_subst_files
1905      do
1906	eval ac_val=\$$ac_var
1907	case $ac_val in
1908	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909	esac
1910	echo "$ac_var='\''$ac_val'\''"
1911      done | sort
1912      echo
1913    fi
1914
1915    if test -s confdefs.h; then
1916      cat <<\_ASBOX
1917## ----------- ##
1918## confdefs.h. ##
1919## ----------- ##
1920_ASBOX
1921      echo
1922      cat confdefs.h
1923      echo
1924    fi
1925    test "$ac_signal" != 0 &&
1926      echo "$as_me: caught signal $ac_signal"
1927    echo "$as_me: exit $exit_status"
1928  } >&5
1929  rm -f core *.core core.conftest.* &&
1930    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931    exit $exit_status
1932' 0
1933for ac_signal in 1 2 13 15; do
1934  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1935done
1936ac_signal=0
1937
1938# confdefs.h avoids OS command line length limits that DEFS can exceed.
1939rm -f -r conftest* confdefs.h
1940
1941# Predefined preprocessor variables.
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_NAME "$PACKAGE_NAME"
1945_ACEOF
1946
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_VERSION "$PACKAGE_VERSION"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_STRING "$PACKAGE_STRING"
1960_ACEOF
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965_ACEOF
1966
1967
1968# Let the site file select an alternate cache file if it wants to.
1969# Prefer explicitly selected file to automatically selected ones.
1970if test -n "$CONFIG_SITE"; then
1971  set x "$CONFIG_SITE"
1972elif test "x$prefix" != xNONE; then
1973  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1974else
1975  set x "$ac_default_prefix/share/config.site" \
1976	"$ac_default_prefix/etc/config.site"
1977fi
1978shift
1979for ac_site_file
1980do
1981  if test -r "$ac_site_file"; then
1982    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1983echo "$as_me: loading site script $ac_site_file" >&6;}
1984    sed 's/^/| /' "$ac_site_file" >&5
1985    . "$ac_site_file"
1986  fi
1987done
1988
1989if test -r "$cache_file"; then
1990  # Some versions of bash will fail to source /dev/null (special
1991  # files actually), so we avoid doing that.
1992  if test -f "$cache_file"; then
1993    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1994echo "$as_me: loading cache $cache_file" >&6;}
1995    case $cache_file in
1996      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997      *)                      . "./$cache_file";;
1998    esac
1999  fi
2000else
2001  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2002echo "$as_me: creating cache $cache_file" >&6;}
2003  >$cache_file
2004fi
2005
2006# Check that the precious variables saved in the cache have kept the same
2007# value.
2008ac_cache_corrupted=false
2009for ac_var in $ac_precious_vars; do
2010  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2011  eval ac_new_set=\$ac_env_${ac_var}_set
2012  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2013  eval ac_new_val=\$ac_env_${ac_var}_value
2014  case $ac_old_set,$ac_new_set in
2015    set,)
2016      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2017echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2018      ac_cache_corrupted=: ;;
2019    ,set)
2020      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2021echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2022      ac_cache_corrupted=: ;;
2023    ,);;
2024    *)
2025      if test "x$ac_old_val" != "x$ac_new_val"; then
2026	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2029echo "$as_me:   former value:  $ac_old_val" >&2;}
2030	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2031echo "$as_me:   current value: $ac_new_val" >&2;}
2032	ac_cache_corrupted=:
2033      fi;;
2034  esac
2035  # Pass precious variables to config.status.
2036  if test "$ac_new_set" = set; then
2037    case $ac_new_val in
2038    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2039    *) ac_arg=$ac_var=$ac_new_val ;;
2040    esac
2041    case " $ac_configure_args " in
2042      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2043      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044    esac
2045  fi
2046done
2047if $ac_cache_corrupted; then
2048  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2052   { (exit 1); exit 1; }; }
2053fi
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071ac_ext=c
2072ac_cpp='$CPP $CPPFLAGS'
2073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076
2077
2078
2079ac_config_headers="$ac_config_headers config.h"
2080
2081ac_config_headers="$ac_config_headers ltdlconf.h"
2082
2083
2084VERSION="2.3.7.cvs"
2085VER_STRING="2.3.7.cvs"
2086WIN_VER_STRING="2, 3, 7, 1"
2087REL_STRING="Build from CVS snapshot, after release 2.3.7"
2088
2089
2090
2091
2092ac_aux_dir=
2093for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2094  if test -f "$ac_dir/install-sh"; then
2095    ac_aux_dir=$ac_dir
2096    ac_install_sh="$ac_aux_dir/install-sh -c"
2097    break
2098  elif test -f "$ac_dir/install.sh"; then
2099    ac_aux_dir=$ac_dir
2100    ac_install_sh="$ac_aux_dir/install.sh -c"
2101    break
2102  elif test -f "$ac_dir/shtool"; then
2103    ac_aux_dir=$ac_dir
2104    ac_install_sh="$ac_aux_dir/shtool install -c"
2105    break
2106  fi
2107done
2108if test -z "$ac_aux_dir"; then
2109  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2110echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2111   { (exit 1); exit 1; }; }
2112fi
2113
2114# These three variables are undocumented and unsupported,
2115# and are intended to be withdrawn in a future Autoconf release.
2116# They can cause serious problems if a builder's source tree is in a directory
2117# whose full name contains unusual characters.
2118ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2119ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2120ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2121
2122
2123# Make sure we can run config.sub.
2124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127   { (exit 1); exit 1; }; }
2128
2129{ echo "$as_me:$LINENO: checking build system type" >&5
2130echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2131if test "${ac_cv_build+set}" = set; then
2132  echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134  ac_build_alias=$build_alias
2135test "x$ac_build_alias" = x &&
2136  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137test "x$ac_build_alias" = x &&
2138  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140   { (exit 1); exit 1; }; }
2141ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146fi
2147{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148echo "${ECHO_T}$ac_cv_build" >&6; }
2149case $ac_cv_build in
2150*-*-*) ;;
2151*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152echo "$as_me: error: invalid value of canonical build" >&2;}
2153   { (exit 1); exit 1; }; };;
2154esac
2155build=$ac_cv_build
2156ac_save_IFS=$IFS; IFS='-'
2157set x $ac_cv_build
2158shift
2159build_cpu=$1
2160build_vendor=$2
2161shift; shift
2162# Remember, the first character of IFS is used to create $*,
2163# except with old shells:
2164build_os=$*
2165IFS=$ac_save_IFS
2166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2167
2168
2169{ echo "$as_me:$LINENO: checking host system type" >&5
2170echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2171if test "${ac_cv_host+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  if test "x$host_alias" = x; then
2175  ac_cv_host=$ac_cv_build
2176else
2177  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180   { (exit 1); exit 1; }; }
2181fi
2182
2183fi
2184{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185echo "${ECHO_T}$ac_cv_host" >&6; }
2186case $ac_cv_host in
2187*-*-*) ;;
2188*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189echo "$as_me: error: invalid value of canonical host" >&2;}
2190   { (exit 1); exit 1; }; };;
2191esac
2192host=$ac_cv_host
2193ac_save_IFS=$IFS; IFS='-'
2194set x $ac_cv_host
2195shift
2196host_cpu=$1
2197host_vendor=$2
2198shift; shift
2199# Remember, the first character of IFS is used to create $*,
2200# except with old shells:
2201host_os=$*
2202IFS=$ac_save_IFS
2203case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2204
2205
2206{ echo "$as_me:$LINENO: checking target system type" >&5
2207echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2208if test "${ac_cv_target+set}" = set; then
2209  echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
2211  if test "x$target_alias" = x; then
2212  ac_cv_target=$ac_cv_host
2213else
2214  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2215    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2216echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2217   { (exit 1); exit 1; }; }
2218fi
2219
2220fi
2221{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2222echo "${ECHO_T}$ac_cv_target" >&6; }
2223case $ac_cv_target in
2224*-*-*) ;;
2225*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2226echo "$as_me: error: invalid value of canonical target" >&2;}
2227   { (exit 1); exit 1; }; };;
2228esac
2229target=$ac_cv_target
2230ac_save_IFS=$IFS; IFS='-'
2231set x $ac_cv_target
2232shift
2233target_cpu=$1
2234target_vendor=$2
2235shift; shift
2236# Remember, the first character of IFS is used to create $*,
2237# except with old shells:
2238target_os=$*
2239IFS=$ac_save_IFS
2240case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2241
2242
2243# The aliases save the names the user supplied, while $host etc.
2244# will get canonicalized.
2245test -n "$target_alias" &&
2246  test "$program_prefix$program_suffix$program_transform_name" = \
2247    NONENONEs,x,x, &&
2248  program_prefix=${target_alias}-
2249
2250{ echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2251echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2252if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2253  { echo "$as_me:$LINENO: result: yes" >&5
2254echo "${ECHO_T}yes" >&6; }
2255  cross_configure=1
2256else
2257  { echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6; }
2259  cross_configure=0
2260fi
2261
2262# this case statement defines the compile flags which are needed to
2263# compile bochs on a platform.  Don't put things like optimization settings
2264# into the configure.in file, since people will want to be able to change
2265# those settings by defining CFLAGS and CXXFLAGS before running configure.
2266NO_LT=0
2267need_dlcompat_for_plugins=0
2268case "$target" in
2269  *-pc-windows* | *-pc-winnt*)
2270    DEFAULT_GUI=win32                 # default to win32 gui
2271    ;;
2272  *-pc-cygwin* | *-pc-mingw32*)
2273    NO_LT=1   # do not use libtool at all on cygwin
2274    if test "$with_term" = yes; then
2275      # ncurses won't compile with -mno-cygwin or -DWIN32
2276      # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2277      # see /usr/include/curses.h for details.
2278      ADD_FLAGS="-DBROKEN_LINKER=1"
2279    else
2280      # default case
2281      ADD_FLAGS="-mno-cygwin -DWIN32"   # required for cygwin compile+win32 gui
2282      DEFAULT_GUI=win32                 # default to win32 gui
2283    fi
2284    ;;
2285  *-macosx* | *-darwin*)
2286    ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh"      # required for macosx compile
2287    DEFAULT_GUI=carbon                # default to carbon
2288    need_dlcompat_for_plugins=1
2289    ;;
2290  *-macos*)
2291    DEFAULT_GUI=macos                 # macos defaults to macos
2292    ;;
2293  *-beos*)
2294    ADD_FLAGS="-Wno-multichar"
2295    DEFAULT_GUI=beos                  # beos defaults to beos
2296    ;;
2297  *-amigaos* | *-morphos*)
2298    DEFAULT_GUI=amigaos               # amigaos or morphos defaults to amigaos gui
2299    ;;
2300  *-solaris*)
2301    ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__"      # required for correct function prototypes
2302    LIBS="$LIBS -lsocket -lnsl"
2303    DEFAULT_GUI=x11
2304    ;;
2305  *)
2306    DEFAULT_GUI=x11
2307    ;;
2308esac
2309if test "${ADD_FLAGS:+set}" = set; then
2310      CFLAGS="$CFLAGS $ADD_FLAGS"
2311      CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2312      CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2313fi
2314
2315{ echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2316echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2317{ echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2318echo "${ECHO_T}$ADD_FLAGS" >&6; }
2319
2320if (test "$with_sdl" != yes) && \
2321   (test "$with_svga" != yes) && \
2322   (test "$with_x11" != yes) && \
2323   (test "$with_beos" != yes) && \
2324   (test "$with_win32" != yes) && \
2325   (test "$with_nogui" != yes) && \
2326   (test "$with_term" != yes) && \
2327   (test "$with_rfb" != yes) && \
2328   (test "$with_amigaos" != yes) && \
2329   (test "$with_carbon" != yes) && \
2330   (test "$with_wx" != yes) && \
2331   (test "$with_macos" != yes); then
2332  # use DEFAULT_GUI.  Set the appropriate variable.
2333  # DEFAULT_GUI must be set to one of the names above.  Otherwise, no
2334  # valid $with_* variable will be set and who knows what will happen?
2335  eval "with_${DEFAULT_GUI}=yes"
2336fi
2337
2338ac_ext=c
2339ac_cpp='$CPP $CPPFLAGS'
2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343if test -n "$ac_tool_prefix"; then
2344  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2345set dummy ${ac_tool_prefix}gcc; ac_word=$2
2346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348if test "${ac_cv_prog_CC+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  if test -n "$CC"; then
2352  ac_cv_prog_CC="$CC" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357  IFS=$as_save_IFS
2358  test -z "$as_dir" && as_dir=.
2359  for ac_exec_ext in '' $ac_executable_extensions; do
2360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363    break 2
2364  fi
2365done
2366done
2367IFS=$as_save_IFS
2368
2369fi
2370fi
2371CC=$ac_cv_prog_CC
2372if test -n "$CC"; then
2373  { echo "$as_me:$LINENO: result: $CC" >&5
2374echo "${ECHO_T}$CC" >&6; }
2375else
2376  { echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6; }
2378fi
2379
2380
2381fi
2382if test -z "$ac_cv_prog_CC"; then
2383  ac_ct_CC=$CC
2384  # Extract the first word of "gcc", so it can be a program name with args.
2385set dummy gcc; ac_word=$2
2386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  if test -n "$ac_ct_CC"; then
2392  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399  for ac_exec_ext in '' $ac_executable_extensions; do
2400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401    ac_cv_prog_ac_ct_CC="gcc"
2402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403    break 2
2404  fi
2405done
2406done
2407IFS=$as_save_IFS
2408
2409fi
2410fi
2411ac_ct_CC=$ac_cv_prog_ac_ct_CC
2412if test -n "$ac_ct_CC"; then
2413  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2414echo "${ECHO_T}$ac_ct_CC" >&6; }
2415else
2416  { echo "$as_me:$LINENO: result: no" >&5
2417echo "${ECHO_T}no" >&6; }
2418fi
2419
2420  if test "x$ac_ct_CC" = x; then
2421    CC=""
2422  else
2423    case $cross_compiling:$ac_tool_warned in
2424yes:)
2425{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426whose name does not start with the host triplet.  If you think this
2427configuration is useful to you, please write to autoconf@gnu.org." >&5
2428echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429whose name does not start with the host triplet.  If you think this
2430configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431ac_tool_warned=yes ;;
2432esac
2433    CC=$ac_ct_CC
2434  fi
2435else
2436  CC="$ac_cv_prog_CC"
2437fi
2438
2439if test -z "$CC"; then
2440          if test -n "$ac_tool_prefix"; then
2441    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2442set dummy ${ac_tool_prefix}cc; ac_word=$2
2443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445if test "${ac_cv_prog_CC+set}" = set; then
2446  echo $ECHO_N "(cached) $ECHO_C" >&6
2447else
2448  if test -n "$CC"; then
2449  ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456  for ac_exec_ext in '' $ac_executable_extensions; do
2457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458    ac_cv_prog_CC="${ac_tool_prefix}cc"
2459    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460    break 2
2461  fi
2462done
2463done
2464IFS=$as_save_IFS
2465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470  { echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6; }
2472else
2473  { echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6; }
2475fi
2476
2477
2478  fi
2479fi
2480if test -z "$CC"; then
2481  # Extract the first word of "cc", so it can be a program name with args.
2482set dummy cc; ac_word=$2
2483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485if test "${ac_cv_prog_CC+set}" = set; then
2486  echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488  if test -n "$CC"; then
2489  ac_cv_prog_CC="$CC" # Let the user override the test.
2490else
2491  ac_prog_rejected=no
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_exec_ext in '' $ac_executable_extensions; do
2498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500       ac_prog_rejected=yes
2501       continue
2502     fi
2503    ac_cv_prog_CC="cc"
2504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508done
2509IFS=$as_save_IFS
2510
2511if test $ac_prog_rejected = yes; then
2512  # We found a bogon in the path, so make sure we never use it.
2513  set dummy $ac_cv_prog_CC
2514  shift
2515  if test $# != 0; then
2516    # We chose a different compiler from the bogus one.
2517    # However, it has the same basename, so the bogon will be chosen
2518    # first if we set CC to just the basename; use the full file name.
2519    shift
2520    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2521  fi
2522fi
2523fi
2524fi
2525CC=$ac_cv_prog_CC
2526if test -n "$CC"; then
2527  { echo "$as_me:$LINENO: result: $CC" >&5
2528echo "${ECHO_T}$CC" >&6; }
2529else
2530  { echo "$as_me:$LINENO: result: no" >&5
2531echo "${ECHO_T}no" >&6; }
2532fi
2533
2534
2535fi
2536if test -z "$CC"; then
2537  if test -n "$ac_tool_prefix"; then
2538  for ac_prog in cl.exe
2539  do
2540    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544if test "${ac_cv_prog_CC+set}" = set; then
2545  echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547  if test -n "$CC"; then
2548  ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553  IFS=$as_save_IFS
2554  test -z "$as_dir" && as_dir=.
2555  for ac_exec_ext in '' $ac_executable_extensions; do
2556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559    break 2
2560  fi
2561done
2562done
2563IFS=$as_save_IFS
2564
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569  { echo "$as_me:$LINENO: result: $CC" >&5
2570echo "${ECHO_T}$CC" >&6; }
2571else
2572  { echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6; }
2574fi
2575
2576
2577    test -n "$CC" && break
2578  done
2579fi
2580if test -z "$CC"; then
2581  ac_ct_CC=$CC
2582  for ac_prog in cl.exe
2583do
2584  # Extract the first word of "$ac_prog", so it can be a program name with args.
2585set dummy $ac_prog; ac_word=$2
2586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589  echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591  if test -n "$ac_ct_CC"; then
2592  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  test -z "$as_dir" && as_dir=.
2599  for ac_exec_ext in '' $ac_executable_extensions; do
2600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601    ac_cv_prog_ac_ct_CC="$ac_prog"
2602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603    break 2
2604  fi
2605done
2606done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612if test -n "$ac_ct_CC"; then
2613  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2614echo "${ECHO_T}$ac_ct_CC" >&6; }
2615else
2616  { echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6; }
2618fi
2619
2620
2621  test -n "$ac_ct_CC" && break
2622done
2623
2624  if test "x$ac_ct_CC" = x; then
2625    CC=""
2626  else
2627    case $cross_compiling:$ac_tool_warned in
2628yes:)
2629{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2630whose name does not start with the host triplet.  If you think this
2631configuration is useful to you, please write to autoconf@gnu.org." >&5
2632echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2633whose name does not start with the host triplet.  If you think this
2634configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2635ac_tool_warned=yes ;;
2636esac
2637    CC=$ac_ct_CC
2638  fi
2639fi
2640
2641fi
2642
2643
2644test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2645See \`config.log' for more details." >&5
2646echo "$as_me: error: no acceptable C compiler found in \$PATH
2647See \`config.log' for more details." >&2;}
2648   { (exit 1); exit 1; }; }
2649
2650# Provide some information about the compiler.
2651echo "$as_me:$LINENO: checking for C compiler version" >&5
2652ac_compiler=`set X $ac_compile; echo $2`
2653{ (ac_try="$ac_compiler --version >&5"
2654case "(($ac_try" in
2655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656  *) ac_try_echo=$ac_try;;
2657esac
2658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659  (eval "$ac_compiler --version >&5") 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }
2663{ (ac_try="$ac_compiler -v >&5"
2664case "(($ac_try" in
2665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666  *) ac_try_echo=$ac_try;;
2667esac
2668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669  (eval "$ac_compiler -v >&5") 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }
2673{ (ac_try="$ac_compiler -V >&5"
2674case "(($ac_try" in
2675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676  *) ac_try_echo=$ac_try;;
2677esac
2678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679  (eval "$ac_compiler -V >&5") 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }
2683
2684cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690
2691int
2692main ()
2693{
2694
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699ac_clean_files_save=$ac_clean_files
2700ac_clean_files="$ac_clean_files a.out a.exe b.out"
2701# Try to create an executable without -o first, disregard a.out.
2702# It will help us diagnose broken compilers, and finding out an intuition
2703# of exeext.
2704{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2705echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2706ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2707#
2708# List of possible output files, starting from the most likely.
2709# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2710# only as a last resort.  b.out is created by i960 compilers.
2711ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2712#
2713# The IRIX 6 linker writes into existing files which may not be
2714# executable, retaining their permissions.  Remove them first so a
2715# subsequent execution test works.
2716ac_rmfiles=
2717for ac_file in $ac_files
2718do
2719  case $ac_file in
2720    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2721    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2722  esac
2723done
2724rm -f $ac_rmfiles
2725
2726if { (ac_try="$ac_link_default"
2727case "(($ac_try" in
2728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729  *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732  (eval "$ac_link_default") 2>&5
2733  ac_status=$?
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); }; then
2736  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2737# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2738# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2739# so that the user can short-circuit this test for compilers unknown to
2740# Autoconf.
2741for ac_file in $ac_files ''
2742do
2743  test -f "$ac_file" || continue
2744  case $ac_file in
2745    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2746	;;
2747    [ab].out )
2748	# We found the default executable, but exeext='' is most
2749	# certainly right.
2750	break;;
2751    *.* )
2752        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2753	then :; else
2754	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2755	fi
2756	# We set ac_cv_exeext here because the later test for it is not
2757	# safe: cross compilers may not add the suffix if given an `-o'
2758	# argument, so we may need to know it at that point already.
2759	# Even if this section looks crufty: it has the advantage of
2760	# actually working.
2761	break;;
2762    * )
2763	break;;
2764  esac
2765done
2766test "$ac_cv_exeext" = no && ac_cv_exeext=
2767
2768else
2769  ac_file=''
2770fi
2771
2772{ echo "$as_me:$LINENO: result: $ac_file" >&5
2773echo "${ECHO_T}$ac_file" >&6; }
2774if test -z "$ac_file"; then
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2779See \`config.log' for more details." >&5
2780echo "$as_me: error: C compiler cannot create executables
2781See \`config.log' for more details." >&2;}
2782   { (exit 77); exit 77; }; }
2783fi
2784
2785ac_exeext=$ac_cv_exeext
2786
2787# Check that the compiler produces executables we can run.  If not, either
2788# the compiler is broken, or we cross compile.
2789{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2790echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2791# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2792# If not cross compiling, check that we can run a simple program.
2793if test "$cross_compiling" != yes; then
2794  if { ac_try='./$ac_file'
2795  { (case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800  (eval "$ac_try") 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804    cross_compiling=no
2805  else
2806    if test "$cross_compiling" = maybe; then
2807	cross_compiling=yes
2808    else
2809	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2810If you meant to cross compile, use \`--host'.
2811See \`config.log' for more details." >&5
2812echo "$as_me: error: cannot run C compiled programs.
2813If you meant to cross compile, use \`--host'.
2814See \`config.log' for more details." >&2;}
2815   { (exit 1); exit 1; }; }
2816    fi
2817  fi
2818fi
2819{ echo "$as_me:$LINENO: result: yes" >&5
2820echo "${ECHO_T}yes" >&6; }
2821
2822rm -f a.out a.exe conftest$ac_cv_exeext b.out
2823ac_clean_files=$ac_clean_files_save
2824# Check that the compiler produces executables we can run.  If not, either
2825# the compiler is broken, or we cross compile.
2826{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2827echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2828{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2829echo "${ECHO_T}$cross_compiling" >&6; }
2830
2831{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2832echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2833if { (ac_try="$ac_link"
2834case "(($ac_try" in
2835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836  *) ac_try_echo=$ac_try;;
2837esac
2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839  (eval "$ac_link") 2>&5
2840  ac_status=$?
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; then
2843  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2844# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2845# work properly (i.e., refer to `conftest.exe'), while it won't with
2846# `rm'.
2847for ac_file in conftest.exe conftest conftest.*; do
2848  test -f "$ac_file" || continue
2849  case $ac_file in
2850    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852	  break;;
2853    * ) break;;
2854  esac
2855done
2856else
2857  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2860See \`config.log' for more details." >&2;}
2861   { (exit 1); exit 1; }; }
2862fi
2863
2864rm -f conftest$ac_cv_exeext
2865{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2866echo "${ECHO_T}$ac_cv_exeext" >&6; }
2867
2868rm -f conftest.$ac_ext
2869EXEEXT=$ac_cv_exeext
2870ac_exeext=$EXEEXT
2871{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2872echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2873if test "${ac_cv_objext+set}" = set; then
2874  echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876  cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h.  */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h.  */
2882
2883int
2884main ()
2885{
2886
2887  ;
2888  return 0;
2889}
2890_ACEOF
2891rm -f conftest.o conftest.obj
2892if { (ac_try="$ac_compile"
2893case "(($ac_try" in
2894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895  *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898  (eval "$ac_compile") 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; then
2902  for ac_file in conftest.o conftest.obj conftest.*; do
2903  test -f "$ac_file" || continue;
2904  case $ac_file in
2905    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2906    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2907       break;;
2908  esac
2909done
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: cannot compute suffix of object files: cannot compile
2917See \`config.log' for more details." >&2;}
2918   { (exit 1); exit 1; }; }
2919fi
2920
2921rm -f conftest.$ac_cv_objext conftest.$ac_ext
2922fi
2923{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2924echo "${ECHO_T}$ac_cv_objext" >&6; }
2925OBJEXT=$ac_cv_objext
2926ac_objext=$OBJEXT
2927{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_c_compiler_gnu+set}" = set; then
2930  echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932  cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943       choke me
2944#endif
2945
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957  (eval "$ac_compile") 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } && {
2964	 test -z "$ac_c_werror_flag" ||
2965	 test ! -s conftest.err
2966       } && test -s conftest.$ac_objext; then
2967  ac_compiler_gnu=yes
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972	ac_compiler_gnu=no
2973fi
2974
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976ac_cv_c_compiler_gnu=$ac_compiler_gnu
2977
2978fi
2979{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2980echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2981GCC=`test $ac_compiler_gnu = yes && echo yes`
2982ac_test_CFLAGS=${CFLAGS+set}
2983ac_save_CFLAGS=$CFLAGS
2984{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2985echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2986if test "${ac_cv_prog_cc_g+set}" = set; then
2987  echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989  ac_save_c_werror_flag=$ac_c_werror_flag
2990   ac_c_werror_flag=yes
2991   ac_cv_prog_cc_g=no
2992   CFLAGS="-g"
2993   cat >conftest.$ac_ext <<_ACEOF
2994/* confdefs.h.  */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h.  */
2999
3000int
3001main ()
3002{
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008rm -f conftest.$ac_objext
3009if { (ac_try="$ac_compile"
3010case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015  (eval "$ac_compile") 2>conftest.er1
3016  ac_status=$?
3017  grep -v '^ *+' conftest.er1 >conftest.err
3018  rm -f conftest.er1
3019  cat conftest.err >&5
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); } && {
3022	 test -z "$ac_c_werror_flag" ||
3023	 test ! -s conftest.err
3024       } && test -s conftest.$ac_objext; then
3025  ac_cv_prog_cc_g=yes
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030	CFLAGS=""
3031      cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h.  */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h.  */
3037
3038int
3039main ()
3040{
3041
3042  ;
3043  return 0;
3044}
3045_ACEOF
3046rm -f conftest.$ac_objext
3047if { (ac_try="$ac_compile"
3048case "(($ac_try" in
3049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050  *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053  (eval "$ac_compile") 2>conftest.er1
3054  ac_status=$?
3055  grep -v '^ *+' conftest.er1 >conftest.err
3056  rm -f conftest.er1
3057  cat conftest.err >&5
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); } && {
3060	 test -z "$ac_c_werror_flag" ||
3061	 test ! -s conftest.err
3062       } && test -s conftest.$ac_objext; then
3063  :
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068	ac_c_werror_flag=$ac_save_c_werror_flag
3069	 CFLAGS="-g"
3070	 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092  (eval "$ac_compile") 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } && {
3099	 test -z "$ac_c_werror_flag" ||
3100	 test ! -s conftest.err
3101       } && test -s conftest.$ac_objext; then
3102  ac_cv_prog_cc_g=yes
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107
3108fi
3109
3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111fi
3112
3113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114fi
3115
3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117   ac_c_werror_flag=$ac_save_c_werror_flag
3118fi
3119{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3120echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3121if test "$ac_test_CFLAGS" = set; then
3122  CFLAGS=$ac_save_CFLAGS
3123elif test $ac_cv_prog_cc_g = yes; then
3124  if test "$GCC" = yes; then
3125    CFLAGS="-g -O2"
3126  else
3127    CFLAGS="-g"
3128  fi
3129else
3130  if test "$GCC" = yes; then
3131    CFLAGS="-O2"
3132  else
3133    CFLAGS=
3134  fi
3135fi
3136{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3137echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3138if test "${ac_cv_prog_cc_c89+set}" = set; then
3139  echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141  ac_cv_prog_cc_c89=no
3142ac_save_CC=$CC
3143cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149#include <stdarg.h>
3150#include <stdio.h>
3151#include <sys/types.h>
3152#include <sys/stat.h>
3153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3154struct buf { int x; };
3155FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156static char *e (p, i)
3157     char **p;
3158     int i;
3159{
3160  return p[i];
3161}
3162static char *f (char * (*g) (char **, int), char **p, ...)
3163{
3164  char *s;
3165  va_list v;
3166  va_start (v,p);
3167  s = g (p, va_arg (v,int));
3168  va_end (v);
3169  return s;
3170}
3171
3172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3173   function prototypes and stuff, but not '\xHH' hex character constants.
3174   These don't provoke an error unfortunately, instead are silently treated
3175   as 'x'.  The following induces an error, until -std is added to get
3176   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3177   array size at least.  It's necessary to write '\x00'==0 to get something
3178   that's true only with -std.  */
3179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180
3181/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3182   inside strings and character constants.  */
3183#define FOO(x) 'x'
3184int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3185
3186int test (int i, double x);
3187struct s1 {int (*f) (int a);};
3188struct s2 {int (*f) (double a);};
3189int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190int argc;
3191char **argv;
3192int
3193main ()
3194{
3195return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3201	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3202do
3203  CC="$ac_save_CC $ac_arg"
3204  rm -f conftest.$ac_objext
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_compile") 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } && {
3218	 test -z "$ac_c_werror_flag" ||
3219	 test ! -s conftest.err
3220       } && test -s conftest.$ac_objext; then
3221  ac_cv_prog_cc_c89=$ac_arg
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext
3230  test "x$ac_cv_prog_cc_c89" != "xno" && break
3231done
3232rm -f conftest.$ac_ext
3233CC=$ac_save_CC
3234
3235fi
3236# AC_CACHE_VAL
3237case "x$ac_cv_prog_cc_c89" in
3238  x)
3239    { echo "$as_me:$LINENO: result: none needed" >&5
3240echo "${ECHO_T}none needed" >&6; } ;;
3241  xno)
3242    { echo "$as_me:$LINENO: result: unsupported" >&5
3243echo "${ECHO_T}unsupported" >&6; } ;;
3244  *)
3245    CC="$CC $ac_cv_prog_cc_c89"
3246    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3247echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3248esac
3249
3250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257ac_ext=cpp
3258ac_cpp='$CXXCPP $CPPFLAGS'
3259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3262if test -z "$CXX"; then
3263  if test -n "$CCC"; then
3264    CXX=$CCC
3265  else
3266    if test -n "$ac_tool_prefix"; then
3267  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3268  do
3269    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3270set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273if test "${ac_cv_prog_CXX+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  if test -n "$CXX"; then
3277  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284  for ac_exec_ext in '' $ac_executable_extensions; do
3285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296CXX=$ac_cv_prog_CXX
3297if test -n "$CXX"; then
3298  { echo "$as_me:$LINENO: result: $CXX" >&5
3299echo "${ECHO_T}$CXX" >&6; }
3300else
3301  { echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6; }
3303fi
3304
3305
3306    test -n "$CXX" && break
3307  done
3308fi
3309if test -z "$CXX"; then
3310  ac_ct_CXX=$CXX
3311  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3312do
3313  # Extract the first word of "$ac_prog", so it can be a program name with args.
3314set dummy $ac_prog; ac_word=$2
3315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320  if test -n "$ac_ct_CXX"; then
3321  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328  for ac_exec_ext in '' $ac_executable_extensions; do
3329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330    ac_cv_prog_ac_ct_CXX="$ac_prog"
3331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3341if test -n "$ac_ct_CXX"; then
3342  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3343echo "${ECHO_T}$ac_ct_CXX" >&6; }
3344else
3345  { echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6; }
3347fi
3348
3349
3350  test -n "$ac_ct_CXX" && break
3351done
3352
3353  if test "x$ac_ct_CXX" = x; then
3354    CXX="g++"
3355  else
3356    case $cross_compiling:$ac_tool_warned in
3357yes:)
3358{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3359whose name does not start with the host triplet.  If you think this
3360configuration is useful to you, please write to autoconf@gnu.org." >&5
3361echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3362whose name does not start with the host triplet.  If you think this
3363configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3364ac_tool_warned=yes ;;
3365esac
3366    CXX=$ac_ct_CXX
3367  fi
3368fi
3369
3370  fi
3371fi
3372# Provide some information about the compiler.
3373echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3374ac_compiler=`set X $ac_compile; echo $2`
3375{ (ac_try="$ac_compiler --version >&5"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381  (eval "$ac_compiler --version >&5") 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); }
3385{ (ac_try="$ac_compiler -v >&5"
3386case "(($ac_try" in
3387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388  *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391  (eval "$ac_compiler -v >&5") 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }
3395{ (ac_try="$ac_compiler -V >&5"
3396case "(($ac_try" in
3397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398  *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401  (eval "$ac_compiler -V >&5") 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }
3405
3406{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3407echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3408if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421#ifndef __GNUC__
3422       choke me
3423#endif
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (ac_try="$ac_compile"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436  (eval "$ac_compile") 2>conftest.er1
3437  ac_status=$?
3438  grep -v '^ *+' conftest.er1 >conftest.err
3439  rm -f conftest.er1
3440  cat conftest.err >&5
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); } && {
3443	 test -z "$ac_cxx_werror_flag" ||
3444	 test ! -s conftest.err
3445       } && test -s conftest.$ac_objext; then
3446  ac_compiler_gnu=yes
3447else
3448  echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451	ac_compiler_gnu=no
3452fi
3453
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3456
3457fi
3458{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3459echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3460GXX=`test $ac_compiler_gnu = yes && echo yes`
3461ac_test_CXXFLAGS=${CXXFLAGS+set}
3462ac_save_CXXFLAGS=$CXXFLAGS
3463{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3464echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3465if test "${ac_cv_prog_cxx_g+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3469   ac_cxx_werror_flag=yes
3470   ac_cv_prog_cxx_g=no
3471   CXXFLAGS="-g"
3472   cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h.  */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (ac_try="$ac_compile"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494  (eval "$ac_compile") 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } && {
3501	 test -z "$ac_cxx_werror_flag" ||
3502	 test ! -s conftest.err
3503       } && test -s conftest.$ac_objext; then
3504  ac_cv_prog_cxx_g=yes
3505else
3506  echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509	CXXFLAGS=""
3510      cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (ac_try="$ac_compile"
3527case "(($ac_try" in
3528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529  *) ac_try_echo=$ac_try;;
3530esac
3531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532  (eval "$ac_compile") 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } && {
3539	 test -z "$ac_cxx_werror_flag" ||
3540	 test ! -s conftest.err
3541       } && test -s conftest.$ac_objext; then
3542  :
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3548	 CXXFLAGS="-g"
3549	 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h.  */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (ac_try="$ac_compile"
3566case "(($ac_try" in
3567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568  *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571  (eval "$ac_compile") 2>conftest.er1
3572  ac_status=$?
3573  grep -v '^ *+' conftest.er1 >conftest.err
3574  rm -f conftest.er1
3575  cat conftest.err >&5
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); } && {
3578	 test -z "$ac_cxx_werror_flag" ||
3579	 test ! -s conftest.err
3580       } && test -s conftest.$ac_objext; then
3581  ac_cv_prog_cxx_g=yes
3582else
3583  echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586
3587fi
3588
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590fi
3591
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3597fi
3598{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3599echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3600if test "$ac_test_CXXFLAGS" = set; then
3601  CXXFLAGS=$ac_save_CXXFLAGS
3602elif test $ac_cv_prog_cxx_g = yes; then
3603  if test "$GXX" = yes; then
3604    CXXFLAGS="-g -O2"
3605  else
3606    CXXFLAGS="-g"
3607  fi
3608else
3609  if test "$GXX" = yes; then
3610    CXXFLAGS="-O2"
3611  else
3612    CXXFLAGS=
3613  fi
3614fi
3615ac_ext=c
3616ac_cpp='$CPP $CPPFLAGS'
3617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
3621{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3622echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3623set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3624if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3625  echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
3627  cat >conftest.make <<\_ACEOF
3628SHELL = /bin/sh
3629all:
3630	@echo '@@@%%%=$(MAKE)=@@@%%%'
3631_ACEOF
3632# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3633case `${MAKE-make} -f conftest.make 2>/dev/null` in
3634  *@@@%%%=?*=@@@%%%*)
3635    eval ac_cv_prog_make_${ac_make}_set=yes;;
3636  *)
3637    eval ac_cv_prog_make_${ac_make}_set=no;;
3638esac
3639rm -f conftest.make
3640fi
3641if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3642  { echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6; }
3644  SET_MAKE=
3645else
3646  { echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6; }
3648  SET_MAKE="MAKE=${MAKE-make}"
3649fi
3650
3651
3652# Check whether --enable-static was given.
3653if test "${enable_static+set}" = set; then
3654  enableval=$enable_static; p=${PACKAGE-default}
3655    case $enableval in
3656    yes) enable_static=yes ;;
3657    no) enable_static=no ;;
3658    *)
3659     enable_static=no
3660      # Look at the argument we got.  We use all the common list separators.
3661      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3662      for pkg in $enableval; do
3663	IFS="$lt_save_ifs"
3664	if test "X$pkg" = "X$p"; then
3665	  enable_static=yes
3666	fi
3667      done
3668      IFS="$lt_save_ifs"
3669      ;;
3670    esac
3671else
3672  enable_static=no
3673fi
3674
3675
3676
3677
3678
3679# Check whether --enable-shared was given.
3680if test "${enable_shared+set}" = set; then
3681  enableval=$enable_shared; p=${PACKAGE-default}
3682    case $enableval in
3683    yes) enable_shared=yes ;;
3684    no) enable_shared=no ;;
3685    *)
3686      enable_shared=no
3687      # Look at the argument we got.  We use all the common list separators.
3688      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3689      for pkg in $enableval; do
3690	IFS="$lt_save_ifs"
3691	if test "X$pkg" = "X$p"; then
3692	  enable_shared=yes
3693	fi
3694      done
3695      IFS="$lt_save_ifs"
3696      ;;
3697    esac
3698else
3699  enable_shared=yes
3700fi
3701
3702
3703# Check whether --enable-fast-install was given.
3704if test "${enable_fast_install+set}" = set; then
3705  enableval=$enable_fast_install; p=${PACKAGE-default}
3706    case $enableval in
3707    yes) enable_fast_install=yes ;;
3708    no) enable_fast_install=no ;;
3709    *)
3710      enable_fast_install=no
3711      # Look at the argument we got.  We use all the common list separators.
3712      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3713      for pkg in $enableval; do
3714	IFS="$lt_save_ifs"
3715	if test "X$pkg" = "X$p"; then
3716	  enable_fast_install=yes
3717	fi
3718      done
3719      IFS="$lt_save_ifs"
3720      ;;
3721    esac
3722else
3723  enable_fast_install=yes
3724fi
3725
3726
3727{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3729if test "${lt_cv_path_SED+set}" = set; then
3730  echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732  # Loop through the user's path and test for sed and gsed.
3733# Then use that list of sed's as ones to test for truncation.
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737  IFS=$as_save_IFS
3738  test -z "$as_dir" && as_dir=.
3739  for lt_ac_prog in sed gsed; do
3740    for ac_exec_ext in '' $ac_executable_extensions; do
3741      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3742        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3743      fi
3744    done
3745  done
3746done
3747lt_ac_max=0
3748lt_ac_count=0
3749# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3750# along with /bin/sed that truncates output.
3751for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3752  test ! -f $lt_ac_sed && break
3753  cat /dev/null > conftest.in
3754  lt_ac_count=0
3755  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3756  # Check for GNU sed and select it if it is found.
3757  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3758    lt_cv_path_SED=$lt_ac_sed
3759    break
3760  fi
3761  while true; do
3762    cat conftest.in conftest.in >conftest.tmp
3763    mv conftest.tmp conftest.in
3764    cp conftest.in conftest.nl
3765    echo >>conftest.nl
3766    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3767    cmp -s conftest.out conftest.nl || break
3768    # 10000 chars as input seems more than enough
3769    test $lt_ac_count -gt 10 && break
3770    lt_ac_count=`expr $lt_ac_count + 1`
3771    if test $lt_ac_count -gt $lt_ac_max; then
3772      lt_ac_max=$lt_ac_count
3773      lt_cv_path_SED=$lt_ac_sed
3774    fi
3775  done
3776done
3777SED=$lt_cv_path_SED
3778
3779fi
3780
3781{ echo "$as_me:$LINENO: result: $SED" >&5
3782echo "${ECHO_T}$SED" >&6; }
3783
3784{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3786if test "${ac_cv_path_GREP+set}" = set; then
3787  echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789  # Extract the first word of "grep ggrep" to use in msg output
3790if test -z "$GREP"; then
3791set dummy grep ggrep; ac_prog_name=$2
3792if test "${ac_cv_path_GREP+set}" = set; then
3793  echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795  ac_path_GREP_found=false
3796# Loop through the user's path and test for each of PROGNAME-LIST
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799do
3800  IFS=$as_save_IFS
3801  test -z "$as_dir" && as_dir=.
3802  for ac_prog in grep ggrep; do
3803  for ac_exec_ext in '' $ac_executable_extensions; do
3804    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3806    # Check for GNU ac_path_GREP and select it if it is found.
3807  # Check for GNU $ac_path_GREP
3808case `"$ac_path_GREP" --version 2>&1` in
3809*GNU*)
3810  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811*)
3812  ac_count=0
3813  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814  while :
3815  do
3816    cat "conftest.in" "conftest.in" >"conftest.tmp"
3817    mv "conftest.tmp" "conftest.in"
3818    cp "conftest.in" "conftest.nl"
3819    echo 'GREP' >> "conftest.nl"
3820    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822    ac_count=`expr $ac_count + 1`
3823    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824      # Best one so far, save it but keep looking for a better one
3825      ac_cv_path_GREP="$ac_path_GREP"
3826      ac_path_GREP_max=$ac_count
3827    fi
3828    # 10*(2^10) chars as input seems more than enough
3829    test $ac_count -gt 10 && break
3830  done
3831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832esac
3833
3834
3835    $ac_path_GREP_found && break 3
3836  done
3837done
3838
3839done
3840IFS=$as_save_IFS
3841
3842
3843fi
3844
3845GREP="$ac_cv_path_GREP"
3846if test -z "$GREP"; then
3847  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849   { (exit 1); exit 1; }; }
3850fi
3851
3852else
3853  ac_cv_path_GREP=$GREP
3854fi
3855
3856
3857fi
3858{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3861
3862
3863{ echo "$as_me:$LINENO: checking for egrep" >&5
3864echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865if test "${ac_cv_path_EGREP+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869   then ac_cv_path_EGREP="$GREP -E"
3870   else
3871     # Extract the first word of "egrep" to use in msg output
3872if test -z "$EGREP"; then
3873set dummy egrep; ac_prog_name=$2
3874if test "${ac_cv_path_EGREP+set}" = set; then
3875  echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877  ac_path_EGREP_found=false
3878# Loop through the user's path and test for each of PROGNAME-LIST
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884  for ac_prog in egrep; do
3885  for ac_exec_ext in '' $ac_executable_extensions; do
3886    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3887    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3888    # Check for GNU ac_path_EGREP and select it if it is found.
3889  # Check for GNU $ac_path_EGREP
3890case `"$ac_path_EGREP" --version 2>&1` in
3891*GNU*)
3892  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3893*)
3894  ac_count=0
3895  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896  while :
3897  do
3898    cat "conftest.in" "conftest.in" >"conftest.tmp"
3899    mv "conftest.tmp" "conftest.in"
3900    cp "conftest.in" "conftest.nl"
3901    echo 'EGREP' >> "conftest.nl"
3902    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904    ac_count=`expr $ac_count + 1`
3905    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906      # Best one so far, save it but keep looking for a better one
3907      ac_cv_path_EGREP="$ac_path_EGREP"
3908      ac_path_EGREP_max=$ac_count
3909    fi
3910    # 10*(2^10) chars as input seems more than enough
3911    test $ac_count -gt 10 && break
3912  done
3913  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914esac
3915
3916
3917    $ac_path_EGREP_found && break 3
3918  done
3919done
3920
3921done
3922IFS=$as_save_IFS
3923
3924
3925fi
3926
3927EGREP="$ac_cv_path_EGREP"
3928if test -z "$EGREP"; then
3929  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931   { (exit 1); exit 1; }; }
3932fi
3933
3934else
3935  ac_cv_path_EGREP=$EGREP
3936fi
3937
3938
3939   fi
3940fi
3941{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3944
3945
3946
3947# Check whether --with-gnu-ld was given.
3948if test "${with_gnu_ld+set}" = set; then
3949  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3950else
3951  with_gnu_ld=no
3952fi
3953
3954ac_prog=ld
3955if test "$GCC" = yes; then
3956  # Check if gcc -print-prog-name=ld gives a path.
3957  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3959  case $host in
3960  *-*-mingw*)
3961    # gcc leaves a trailing carriage return which upsets mingw
3962    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3963  *)
3964    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965  esac
3966  case $ac_prog in
3967    # Accept absolute paths.
3968    [\\/]* | ?:[\\/]*)
3969      re_direlt='/[^/][^/]*/\.\./'
3970      # Canonicalize the pathname of ld
3971      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3972      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3973	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3974      done
3975      test -z "$LD" && LD="$ac_prog"
3976      ;;
3977  "")
3978    # If it fails, then pretend we aren't using GCC.
3979    ac_prog=ld
3980    ;;
3981  *)
3982    # If it is relative, then search for the first ld in PATH.
3983    with_gnu_ld=unknown
3984    ;;
3985  esac
3986elif test "$with_gnu_ld" = yes; then
3987  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3988echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3989else
3990  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3992fi
3993if test "${lt_cv_path_LD+set}" = set; then
3994  echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996  if test -z "$LD"; then
3997  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998  for ac_dir in $PATH; do
3999    IFS="$lt_save_ifs"
4000    test -z "$ac_dir" && ac_dir=.
4001    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002      lt_cv_path_LD="$ac_dir/$ac_prog"
4003      # Check to see if the program is GNU ld.  I'd rather use --version,
4004      # but apparently some GNU ld's only accept -v.
4005      # Break only if it was the GNU/non-GNU ld that we prefer.
4006      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007      *GNU* | *'with BFD'*)
4008	test "$with_gnu_ld" != no && break
4009	;;
4010      *)
4011	test "$with_gnu_ld" != yes && break
4012	;;
4013      esac
4014    fi
4015  done
4016  IFS="$lt_save_ifs"
4017else
4018  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4019fi
4020fi
4021
4022LD="$lt_cv_path_LD"
4023if test -n "$LD"; then
4024  { echo "$as_me:$LINENO: result: $LD" >&5
4025echo "${ECHO_T}$LD" >&6; }
4026else
4027  { echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6; }
4029fi
4030test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032   { (exit 1); exit 1; }; }
4033{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4035if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036  echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4039case `$LD -v 2>&1 </dev/null` in
4040*GNU* | *'with BFD'*)
4041  lt_cv_prog_gnu_ld=yes
4042  ;;
4043*)
4044  lt_cv_prog_gnu_ld=no
4045  ;;
4046esac
4047fi
4048{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4050with_gnu_ld=$lt_cv_prog_gnu_ld
4051
4052
4053{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4054echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4055if test "${lt_cv_ld_reload_flag+set}" = set; then
4056  echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058  lt_cv_ld_reload_flag='-r'
4059fi
4060{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4061echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4062reload_flag=$lt_cv_ld_reload_flag
4063case $reload_flag in
4064"" | " "*) ;;
4065*) reload_flag=" $reload_flag" ;;
4066esac
4067reload_cmds='$LD$reload_flag -o $output$reload_objs'
4068
4069{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071if test "${lt_cv_path_NM+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  if test -n "$NM"; then
4075  # Let the user override the test.
4076  lt_cv_path_NM="$NM"
4077else
4078  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4080    IFS="$lt_save_ifs"
4081    test -z "$ac_dir" && ac_dir=.
4082    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4083    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4084      # Check to see if the nm accepts a BSD-compat flag.
4085      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4086      #   nm: unknown option "B" ignored
4087      # Tru64's nm complains that /dev/null is an invalid object file
4088      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4089      */dev/null* | *'Invalid file or object type'*)
4090	lt_cv_path_NM="$tmp_nm -B"
4091	break
4092        ;;
4093      *)
4094	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4095	*/dev/null*)
4096	  lt_cv_path_NM="$tmp_nm -p"
4097	  break
4098	  ;;
4099	*)
4100	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4101	  continue # so that we can try to find one that supports BSD flags
4102	  ;;
4103	esac
4104      esac
4105    fi
4106  done
4107  IFS="$lt_save_ifs"
4108  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4109fi
4110fi
4111{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4112echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4113NM="$lt_cv_path_NM"
4114
4115{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4116echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4117LN_S=$as_ln_s
4118if test "$LN_S" = "ln -s"; then
4119  { echo "$as_me:$LINENO: result: yes" >&5
4120echo "${ECHO_T}yes" >&6; }
4121else
4122  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4123echo "${ECHO_T}no, using $LN_S" >&6; }
4124fi
4125
4126{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4127echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4128if test "${lt_cv_deplibs_check_method+set}" = set; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  lt_cv_file_magic_cmd='$MAGIC_CMD'
4132lt_cv_file_magic_test_file=
4133lt_cv_deplibs_check_method='unknown'
4134# Need to set the preceding variable on all platforms that support
4135# interlibrary dependencies.
4136# 'none' -- dependencies not supported.
4137# `unknown' -- same as none, but documents that we really don't know.
4138# 'pass_all' -- all dependencies passed with no checks.
4139# 'test_compile' -- check by making test program.
4140# 'file_magic [[regex]]' -- check by looking for files in library path
4141# which responds to the $file_magic_cmd with a given extended regex.
4142# If you have `file' or equivalent on your system and you're not sure
4143# whether `pass_all' will *always* work, you probably want this one.
4144
4145case $host_os in
4146aix4* | aix5*)
4147  lt_cv_deplibs_check_method=pass_all
4148  ;;
4149
4150beos*)
4151  lt_cv_deplibs_check_method=pass_all
4152  ;;
4153
4154bsdi4*)
4155  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4156  lt_cv_file_magic_cmd='/usr/bin/file -L'
4157  lt_cv_file_magic_test_file=/shlib/libc.so
4158  ;;
4159
4160cygwin* | mingw* | pw32*)
4161  # win32_libid is a shell function defined in ltmain.sh
4162  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4163  lt_cv_file_magic_cmd='win32_libid'
4164  ;;
4165
4166darwin* | rhapsody*)
4167  # this will be overwritten by pass_all, but leave it in just in case
4168  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4169  lt_cv_file_magic_cmd='/usr/bin/file -L'
4170  case "$host_os" in
4171  rhapsody* | darwin1.[012])
4172    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4173    ;;
4174  *) # Darwin 1.3 on
4175    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4176    ;;
4177  esac
4178  lt_cv_deplibs_check_method=pass_all
4179  ;;
4180
4181freebsd* | kfreebsd*-gnu)
4182  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4183    case $host_cpu in
4184    i*86 )
4185      # Not sure whether the presence of OpenBSD here was a mistake.
4186      # Let's accept both of them until this is cleared up.
4187      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4188      lt_cv_file_magic_cmd=/usr/bin/file
4189      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4190      ;;
4191    esac
4192  else
4193    lt_cv_deplibs_check_method=pass_all
4194  fi
4195  ;;
4196
4197gnu*)
4198  lt_cv_deplibs_check_method=pass_all
4199  ;;
4200
4201hpux10.20* | hpux11*)
4202  lt_cv_file_magic_cmd=/usr/bin/file
4203  case "$host_cpu" in
4204  ia64*)
4205    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4206    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4207    ;;
4208  hppa*64*)
4209    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]'
4210    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4211    ;;
4212  *)
4213    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4214    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4215    ;;
4216  esac
4217  ;;
4218
4219irix5* | irix6* | nonstopux*)
4220  case $host_os in
4221  irix5* | nonstopux*)
4222    # this will be overridden with pass_all, but let us keep it just in case
4223    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4224    ;;
4225  *)
4226    case $LD in
4227    *-32|*"-32 ") libmagic=32-bit;;
4228    *-n32|*"-n32 ") libmagic=N32;;
4229    *-64|*"-64 ") libmagic=64-bit;;
4230    *) libmagic=never-match;;
4231    esac
4232    # this will be overridden with pass_all, but let us keep it just in case
4233    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4234    ;;
4235  esac
4236  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4237  lt_cv_deplibs_check_method=pass_all
4238  ;;
4239
4240# This must be Linux ELF.
4241linux*)
4242  case $host_cpu in
4243  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4244    lt_cv_deplibs_check_method=pass_all ;;
4245  *)
4246    # glibc up to 2.1.1 does not perform some relocations on ARM
4247    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4248  esac
4249  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4250  ;;
4251
4252netbsd*)
4253  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4254    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4255  else
4256    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4257  fi
4258  ;;
4259
4260newos6*)
4261  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4262  lt_cv_file_magic_cmd=/usr/bin/file
4263  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4264  ;;
4265
4266nto-qnx*)
4267  lt_cv_deplibs_check_method=unknown
4268  ;;
4269
4270openbsd*)
4271  lt_cv_file_magic_cmd=/usr/bin/file
4272  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4273  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4274    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4275  else
4276    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4277  fi
4278  ;;
4279
4280osf3* | osf4* | osf5*)
4281  # this will be overridden with pass_all, but let us keep it just in case
4282  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4283  lt_cv_file_magic_test_file=/shlib/libc.so
4284  lt_cv_deplibs_check_method=pass_all
4285  ;;
4286
4287sco3.2v5*)
4288  lt_cv_deplibs_check_method=pass_all
4289  ;;
4290
4291solaris*)
4292  lt_cv_deplibs_check_method=pass_all
4293  lt_cv_file_magic_test_file=/lib/libc.so
4294  ;;
4295
4296sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4297  case $host_vendor in
4298  motorola)
4299    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]'
4300    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4301    ;;
4302  ncr)
4303    lt_cv_deplibs_check_method=pass_all
4304    ;;
4305  sequent)
4306    lt_cv_file_magic_cmd='/bin/file'
4307    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4308    ;;
4309  sni)
4310    lt_cv_file_magic_cmd='/bin/file'
4311    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4312    lt_cv_file_magic_test_file=/lib/libc.so
4313    ;;
4314  siemens)
4315    lt_cv_deplibs_check_method=pass_all
4316    ;;
4317  esac
4318  ;;
4319
4320sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4321  lt_cv_deplibs_check_method=pass_all
4322  ;;
4323esac
4324
4325fi
4326{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4327echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4328file_magic_cmd=$lt_cv_file_magic_cmd
4329deplibs_check_method=$lt_cv_deplibs_check_method
4330test -z "$deplibs_check_method" && deplibs_check_method=unknown
4331
4332
4333
4334
4335# If no C compiler was specified, use CC.
4336LTCC=${LTCC-"$CC"}
4337
4338# Allow CC to be a program name with arguments.
4339compiler=$CC
4340
4341
4342# Check whether --enable-libtool-lock was given.
4343if test "${enable_libtool_lock+set}" = set; then
4344  enableval=$enable_libtool_lock;
4345fi
4346
4347test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4348
4349# Some flags need to be propagated to the compiler or linker for good
4350# libtool support.
4351case $host in
4352ia64-*-hpux*)
4353  # Find out which ABI we are using.
4354  echo 'int i;' > conftest.$ac_ext
4355  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356  (eval $ac_compile) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; then
4360    case `/usr/bin/file conftest.$ac_objext` in
4361    *ELF-32*)
4362      HPUX_IA64_MODE="32"
4363      ;;
4364    *ELF-64*)
4365      HPUX_IA64_MODE="64"
4366      ;;
4367    esac
4368  fi
4369  rm -rf conftest*
4370  ;;
4371*-*-irix6*)
4372  # Find out which ABI we are using.
4373  echo '#line 4373 "configure"' > conftest.$ac_ext
4374  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375  (eval $ac_compile) 2>&5
4376  ac_status=$?
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); }; then
4379   if test "$lt_cv_prog_gnu_ld" = yes; then
4380    case `/usr/bin/file conftest.$ac_objext` in
4381    *32-bit*)
4382      LD="${LD-ld} -melf32bsmip"
4383      ;;
4384    *N32*)
4385      LD="${LD-ld} -melf32bmipn32"
4386      ;;
4387    *64-bit*)
4388      LD="${LD-ld} -melf64bmip"
4389      ;;
4390    esac
4391   else
4392    case `/usr/bin/file conftest.$ac_objext` in
4393    *32-bit*)
4394      LD="${LD-ld} -32"
4395      ;;
4396    *N32*)
4397      LD="${LD-ld} -n32"
4398      ;;
4399    *64-bit*)
4400      LD="${LD-ld} -64"
4401      ;;
4402    esac
4403   fi
4404  fi
4405  rm -rf conftest*
4406  ;;
4407
4408x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4409  # Find out which ABI we are using.
4410  echo 'int i;' > conftest.$ac_ext
4411  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412  (eval $ac_compile) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; then
4416    case "`/usr/bin/file conftest.o`" in
4417    *32-bit*)
4418      case $host in
4419        x86_64-*linux*)
4420          LD="${LD-ld} -m elf_i386"
4421          ;;
4422        ppc64-*linux*|powerpc64-*linux*)
4423          LD="${LD-ld} -m elf32ppclinux"
4424          ;;
4425        s390x-*linux*)
4426          LD="${LD-ld} -m elf_s390"
4427          ;;
4428        sparc64-*linux*)
4429          LD="${LD-ld} -m elf32_sparc"
4430          ;;
4431      esac
4432      ;;
4433    *64-bit*)
4434      case $host in
4435        x86_64-*linux*)
4436          LD="${LD-ld} -m elf_x86_64"
4437          ;;
4438        ppc*-*linux*|powerpc*-*linux*)
4439          LD="${LD-ld} -m elf64ppc"
4440          ;;
4441        s390*-*linux*)
4442          LD="${LD-ld} -m elf64_s390"
4443          ;;
4444        sparc*-*linux*)
4445          LD="${LD-ld} -m elf64_sparc"
4446          ;;
4447      esac
4448      ;;
4449    esac
4450  fi
4451  rm -rf conftest*
4452  ;;
4453
4454*-*-sco3.2v5*)
4455  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4456  SAVE_CFLAGS="$CFLAGS"
4457  CFLAGS="$CFLAGS -belf"
4458  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4459echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4460if test "${lt_cv_cc_needs_belf+set}" = set; then
4461  echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463  ac_ext=c
4464ac_cpp='$CPP $CPPFLAGS'
4465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469     cat >conftest.$ac_ext <<_ACEOF
4470/* confdefs.h.  */
4471_ACEOF
4472cat confdefs.h >>conftest.$ac_ext
4473cat >>conftest.$ac_ext <<_ACEOF
4474/* end confdefs.h.  */
4475
4476int
4477main ()
4478{
4479
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484rm -f conftest.$ac_objext conftest$ac_exeext
4485if { (ac_try="$ac_link"
4486case "(($ac_try" in
4487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488  *) ac_try_echo=$ac_try;;
4489esac
4490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491  (eval "$ac_link") 2>conftest.er1
4492  ac_status=$?
4493  grep -v '^ *+' conftest.er1 >conftest.err
4494  rm -f conftest.er1
4495  cat conftest.err >&5
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); } && {
4498	 test -z "$ac_c_werror_flag" ||
4499	 test ! -s conftest.err
4500       } && test -s conftest$ac_exeext &&
4501       $as_test_x conftest$ac_exeext; then
4502  lt_cv_cc_needs_belf=yes
4503else
4504  echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507	lt_cv_cc_needs_belf=no
4508fi
4509
4510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4511      conftest$ac_exeext conftest.$ac_ext
4512     ac_ext=c
4513ac_cpp='$CPP $CPPFLAGS'
4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518fi
4519{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4520echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4521  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523    CFLAGS="$SAVE_CFLAGS"
4524  fi
4525  ;;
4526
4527esac
4528
4529need_locks="$enable_libtool_lock"
4530
4531
4532ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4538echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4539# On Suns, sometimes $CPP names a directory.
4540if test -n "$CPP" && test -d "$CPP"; then
4541  CPP=
4542fi
4543if test -z "$CPP"; then
4544  if test "${ac_cv_prog_CPP+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547      # Double quotes because CPP needs to be expanded
4548    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4549    do
4550      ac_preproc_ok=false
4551for ac_c_preproc_warn_flag in '' yes
4552do
4553  # Use a header file that comes with gcc, so configuring glibc
4554  # with a fresh cross-compiler works.
4555  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556  # <limits.h> exists even on freestanding compilers.
4557  # On the NeXT, cc -E runs the code through the compiler's parser,
4558  # not just through cpp. "Syntax error" is here to catch this case.
4559  cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h.  */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h.  */
4565#ifdef __STDC__
4566# include <limits.h>
4567#else
4568# include <assert.h>
4569#endif
4570		     Syntax error
4571_ACEOF
4572if { (ac_try="$ac_cpp conftest.$ac_ext"
4573case "(($ac_try" in
4574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575  *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4579  ac_status=$?
4580  grep -v '^ *+' conftest.er1 >conftest.err
4581  rm -f conftest.er1
4582  cat conftest.err >&5
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); } >/dev/null && {
4585	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4586	 test ! -s conftest.err
4587       }; then
4588  :
4589else
4590  echo "$as_me: failed program was:" >&5
4591sed 's/^/| /' conftest.$ac_ext >&5
4592
4593  # Broken: fails on valid input.
4594continue
4595fi
4596
4597rm -f conftest.err conftest.$ac_ext
4598
4599  # OK, works on sane cases.  Now check whether nonexistent headers
4600  # can be detected and how.
4601  cat >conftest.$ac_ext <<_ACEOF
4602/* confdefs.h.  */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h.  */
4607#include <ac_nonexistent.h>
4608_ACEOF
4609if { (ac_try="$ac_cpp conftest.$ac_ext"
4610case "(($ac_try" in
4611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612  *) ac_try_echo=$ac_try;;
4613esac
4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } >/dev/null && {
4622	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4623	 test ! -s conftest.err
4624       }; then
4625  # Broken: success on invalid input.
4626continue
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631  # Passes both tests.
4632ac_preproc_ok=:
4633break
4634fi
4635
4636rm -f conftest.err conftest.$ac_ext
4637
4638done
4639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640rm -f conftest.err conftest.$ac_ext
4641if $ac_preproc_ok; then
4642  break
4643fi
4644
4645    done
4646    ac_cv_prog_CPP=$CPP
4647
4648fi
4649  CPP=$ac_cv_prog_CPP
4650else
4651  ac_cv_prog_CPP=$CPP
4652fi
4653{ echo "$as_me:$LINENO: result: $CPP" >&5
4654echo "${ECHO_T}$CPP" >&6; }
4655ac_preproc_ok=false
4656for ac_c_preproc_warn_flag in '' yes
4657do
4658  # Use a header file that comes with gcc, so configuring glibc
4659  # with a fresh cross-compiler works.
4660  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661  # <limits.h> exists even on freestanding compilers.
4662  # On the NeXT, cc -E runs the code through the compiler's parser,
4663  # not just through cpp. "Syntax error" is here to catch this case.
4664  cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h.  */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h.  */
4670#ifdef __STDC__
4671# include <limits.h>
4672#else
4673# include <assert.h>
4674#endif
4675		     Syntax error
4676_ACEOF
4677if { (ac_try="$ac_cpp conftest.$ac_ext"
4678case "(($ac_try" in
4679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680  *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } >/dev/null && {
4690	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691	 test ! -s conftest.err
4692       }; then
4693  :
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698  # Broken: fails on valid input.
4699continue
4700fi
4701
4702rm -f conftest.err conftest.$ac_ext
4703
4704  # OK, works on sane cases.  Now check whether nonexistent headers
4705  # can be detected and how.
4706  cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h.  */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h.  */
4712#include <ac_nonexistent.h>
4713_ACEOF
4714if { (ac_try="$ac_cpp conftest.$ac_ext"
4715case "(($ac_try" in
4716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717  *) ac_try_echo=$ac_try;;
4718esac
4719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721  ac_status=$?
4722  grep -v '^ *+' conftest.er1 >conftest.err
4723  rm -f conftest.er1
4724  cat conftest.err >&5
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); } >/dev/null && {
4727	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728	 test ! -s conftest.err
4729       }; then
4730  # Broken: success on invalid input.
4731continue
4732else
4733  echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736  # Passes both tests.
4737ac_preproc_ok=:
4738break
4739fi
4740
4741rm -f conftest.err conftest.$ac_ext
4742
4743done
4744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745rm -f conftest.err conftest.$ac_ext
4746if $ac_preproc_ok; then
4747  :
4748else
4749  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4750See \`config.log' for more details." >&5
4751echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4752See \`config.log' for more details." >&2;}
4753   { (exit 1); exit 1; }; }
4754fi
4755
4756ac_ext=c
4757ac_cpp='$CPP $CPPFLAGS'
4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762
4763{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4764echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4765if test "${ac_cv_header_stdc+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774#include <stdlib.h>
4775#include <stdarg.h>
4776#include <string.h>
4777#include <float.h>
4778
4779int
4780main ()
4781{
4782
4783  ;
4784  return 0;
4785}
4786_ACEOF
4787rm -f conftest.$ac_objext
4788if { (ac_try="$ac_compile"
4789case "(($ac_try" in
4790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791  *) ac_try_echo=$ac_try;;
4792esac
4793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794  (eval "$ac_compile") 2>conftest.er1
4795  ac_status=$?
4796  grep -v '^ *+' conftest.er1 >conftest.err
4797  rm -f conftest.er1
4798  cat conftest.err >&5
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); } && {
4801	 test -z "$ac_c_werror_flag" ||
4802	 test ! -s conftest.err
4803       } && test -s conftest.$ac_objext; then
4804  ac_cv_header_stdc=yes
4805else
4806  echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809	ac_cv_header_stdc=no
4810fi
4811
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813
4814if test $ac_cv_header_stdc = yes; then
4815  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4816  cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822#include <string.h>
4823
4824_ACEOF
4825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826  $EGREP "memchr" >/dev/null 2>&1; then
4827  :
4828else
4829  ac_cv_header_stdc=no
4830fi
4831rm -f conftest*
4832
4833fi
4834
4835if test $ac_cv_header_stdc = yes; then
4836  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4837  cat >conftest.$ac_ext <<_ACEOF
4838/* confdefs.h.  */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h.  */
4843#include <stdlib.h>
4844
4845_ACEOF
4846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847  $EGREP "free" >/dev/null 2>&1; then
4848  :
4849else
4850  ac_cv_header_stdc=no
4851fi
4852rm -f conftest*
4853
4854fi
4855
4856if test $ac_cv_header_stdc = yes; then
4857  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4858  if test "$cross_compiling" = yes; then
4859  :
4860else
4861  cat >conftest.$ac_ext <<_ACEOF
4862/* confdefs.h.  */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h.  */
4867#include <ctype.h>
4868#include <stdlib.h>
4869#if ((' ' & 0x0FF) == 0x020)
4870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4872#else
4873# define ISLOWER(c) \
4874		   (('a' <= (c) && (c) <= 'i') \
4875		     || ('j' <= (c) && (c) <= 'r') \
4876		     || ('s' <= (c) && (c) <= 'z'))
4877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4878#endif
4879
4880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4881int
4882main ()
4883{
4884  int i;
4885  for (i = 0; i < 256; i++)
4886    if (XOR (islower (i), ISLOWER (i))
4887	|| toupper (i) != TOUPPER (i))
4888      return 2;
4889  return 0;
4890}
4891_ACEOF
4892rm -f conftest$ac_exeext
4893if { (ac_try="$ac_link"
4894case "(($ac_try" in
4895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896  *) ac_try_echo=$ac_try;;
4897esac
4898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899  (eval "$ac_link") 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4903  { (case "(($ac_try" in
4904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905  *) ac_try_echo=$ac_try;;
4906esac
4907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908  (eval "$ac_try") 2>&5
4909  ac_status=$?
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); }; }; then
4912  :
4913else
4914  echo "$as_me: program exited with status $ac_status" >&5
4915echo "$as_me: failed program was:" >&5
4916sed 's/^/| /' conftest.$ac_ext >&5
4917
4918( exit $ac_status )
4919ac_cv_header_stdc=no
4920fi
4921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4922fi
4923
4924
4925fi
4926fi
4927{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4928echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4929if test $ac_cv_header_stdc = yes; then
4930
4931cat >>confdefs.h <<\_ACEOF
4932#define STDC_HEADERS 1
4933_ACEOF
4934
4935fi
4936
4937# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4948		  inttypes.h stdint.h unistd.h
4949do
4950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4951{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4954  echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956  cat >conftest.$ac_ext <<_ACEOF
4957/* confdefs.h.  */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h.  */
4962$ac_includes_default
4963
4964#include <$ac_header>
4965_ACEOF
4966rm -f conftest.$ac_objext
4967if { (ac_try="$ac_compile"
4968case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973  (eval "$ac_compile") 2>conftest.er1
4974  ac_status=$?
4975  grep -v '^ *+' conftest.er1 >conftest.err
4976  rm -f conftest.er1
4977  cat conftest.err >&5
4978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); } && {
4980	 test -z "$ac_c_werror_flag" ||
4981	 test ! -s conftest.err
4982       } && test -s conftest.$ac_objext; then
4983  eval "$as_ac_Header=yes"
4984else
4985  echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988	eval "$as_ac_Header=no"
4989fi
4990
4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992fi
4993ac_res=`eval echo '${'$as_ac_Header'}'`
4994	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4995echo "${ECHO_T}$ac_res" >&6; }
4996if test `eval echo '${'$as_ac_Header'}'` = yes; then
4997  cat >>confdefs.h <<_ACEOF
4998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999_ACEOF
5000
5001fi
5002
5003done
5004
5005
5006
5007for ac_header in dlfcn.h
5008do
5009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5011  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5014  echo $ECHO_N "(cached) $ECHO_C" >&6
5015fi
5016ac_res=`eval echo '${'$as_ac_Header'}'`
5017	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5018echo "${ECHO_T}$ac_res" >&6; }
5019else
5020  # Is the header compilable?
5021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5023cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029$ac_includes_default
5030#include <$ac_header>
5031_ACEOF
5032rm -f conftest.$ac_objext
5033if { (ac_try="$ac_compile"
5034case "(($ac_try" in
5035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036  *) ac_try_echo=$ac_try;;
5037esac
5038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039  (eval "$ac_compile") 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } && {
5046	 test -z "$ac_c_werror_flag" ||
5047	 test ! -s conftest.err
5048       } && test -s conftest.$ac_objext; then
5049  ac_header_compiler=yes
5050else
5051  echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054	ac_header_compiler=no
5055fi
5056
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5059echo "${ECHO_T}$ac_header_compiler" >&6; }
5060
5061# Is the header present?
5062{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5064cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h.  */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h.  */
5070#include <$ac_header>
5071_ACEOF
5072if { (ac_try="$ac_cpp conftest.$ac_ext"
5073case "(($ac_try" in
5074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075  *) ac_try_echo=$ac_try;;
5076esac
5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079  ac_status=$?
5080  grep -v '^ *+' conftest.er1 >conftest.err
5081  rm -f conftest.er1
5082  cat conftest.err >&5
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); } >/dev/null && {
5085	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086	 test ! -s conftest.err
5087       }; then
5088  ac_header_preproc=yes
5089else
5090  echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093  ac_header_preproc=no
5094fi
5095
5096rm -f conftest.err conftest.$ac_ext
5097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5098echo "${ECHO_T}$ac_header_preproc" >&6; }
5099
5100# So?  What about this header?
5101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5102  yes:no: )
5103    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5107    ac_header_preproc=yes
5108    ;;
5109  no:yes:* )
5110    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5112    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5113echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5114    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5116    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5117echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5118    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5120    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5122
5123    ;;
5124esac
5125{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  eval "$as_ac_Header=\$ac_header_preproc"
5131fi
5132ac_res=`eval echo '${'$as_ac_Header'}'`
5133	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5134echo "${ECHO_T}$ac_res" >&6; }
5135
5136fi
5137if test `eval echo '${'$as_ac_Header'}'` = yes; then
5138  cat >>confdefs.h <<_ACEOF
5139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5140_ACEOF
5141
5142fi
5143
5144done
5145
5146ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5152echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5153if test -z "$CXXCPP"; then
5154  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5155  echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157      # Double quotes because CXXCPP needs to be expanded
5158    for CXXCPP in "$CXX -E" "/lib/cpp"
5159    do
5160      ac_preproc_ok=false
5161for ac_cxx_preproc_warn_flag in '' yes
5162do
5163  # Use a header file that comes with gcc, so configuring glibc
5164  # with a fresh cross-compiler works.
5165  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166  # <limits.h> exists even on freestanding compilers.
5167  # On the NeXT, cc -E runs the code through the compiler's parser,
5168  # not just through cpp. "Syntax error" is here to catch this case.
5169  cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h.  */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h.  */
5175#ifdef __STDC__
5176# include <limits.h>
5177#else
5178# include <assert.h>
5179#endif
5180		     Syntax error
5181_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext"
5183case "(($ac_try" in
5184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185  *) ac_try_echo=$ac_try;;
5186esac
5187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189  ac_status=$?
5190  grep -v '^ *+' conftest.er1 >conftest.err
5191  rm -f conftest.er1
5192  cat conftest.err >&5
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); } >/dev/null && {
5195	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5196	 test ! -s conftest.err
5197       }; then
5198  :
5199else
5200  echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202
5203  # Broken: fails on valid input.
5204continue
5205fi
5206
5207rm -f conftest.err conftest.$ac_ext
5208
5209  # OK, works on sane cases.  Now check whether nonexistent headers
5210  # can be detected and how.
5211  cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h.  */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h.  */
5217#include <ac_nonexistent.h>
5218_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext"
5220case "(($ac_try" in
5221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222  *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226  ac_status=$?
5227  grep -v '^ *+' conftest.er1 >conftest.err
5228  rm -f conftest.er1
5229  cat conftest.err >&5
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); } >/dev/null && {
5232	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5233	 test ! -s conftest.err
5234       }; then
5235  # Broken: success on invalid input.
5236continue
5237else
5238  echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241  # Passes both tests.
5242ac_preproc_ok=:
5243break
5244fi
5245
5246rm -f conftest.err conftest.$ac_ext
5247
5248done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then
5252  break
5253fi
5254
5255    done
5256    ac_cv_prog_CXXCPP=$CXXCPP
5257
5258fi
5259  CXXCPP=$ac_cv_prog_CXXCPP
5260else
5261  ac_cv_prog_CXXCPP=$CXXCPP
5262fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; }
5265ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes
5267do
5268  # Use a header file that comes with gcc, so configuring glibc
5269  # with a fresh cross-compiler works.
5270  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271  # <limits.h> exists even on freestanding compilers.
5272  # On the NeXT, cc -E runs the code through the compiler's parser,
5273  # not just through cpp. "Syntax error" is here to catch this case.
5274  cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h.  */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h.  */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285		     Syntax error
5286_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext"
5288case "(($ac_try" in
5289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290  *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294  ac_status=$?
5295  grep -v '^ *+' conftest.er1 >conftest.err
5296  rm -f conftest.er1
5297  cat conftest.err >&5
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); } >/dev/null && {
5300	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5301	 test ! -s conftest.err
5302       }; then
5303  :
5304else
5305  echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308  # Broken: fails on valid input.
5309continue
5310fi
5311
5312rm -f conftest.err conftest.$ac_ext
5313
5314  # OK, works on sane cases.  Now check whether nonexistent headers
5315  # can be detected and how.
5316  cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h.  */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h.  */
5322#include <ac_nonexistent.h>
5323_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext"
5325case "(($ac_try" in
5326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327  *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331  ac_status=$?
5332  grep -v '^ *+' conftest.er1 >conftest.err
5333  rm -f conftest.er1
5334  cat conftest.err >&5
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); } >/dev/null && {
5337	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5338	 test ! -s conftest.err
5339       }; then
5340  # Broken: success on invalid input.
5341continue
5342else
5343  echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346  # Passes both tests.
5347ac_preproc_ok=:
5348break
5349fi
5350
5351rm -f conftest.err conftest.$ac_ext
5352
5353done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then
5357  :
5358else
5359  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5360See \`config.log' for more details." >&5
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;}
5363   { (exit 1); exit 1; }; }
5364fi
5365
5366ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371
5372
5373ac_ext=f
5374ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5375ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5377if test -n "$ac_tool_prefix"; then
5378  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
5379  do
5380    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5384if test "${ac_cv_prog_F77+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  if test -n "$F77"; then
5388  ac_cv_prog_F77="$F77" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393  IFS=$as_save_IFS
5394  test -z "$as_dir" && as_dir=.
5395  for ac_exec_ext in '' $ac_executable_extensions; do
5396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399    break 2
5400  fi
5401done
5402done
5403IFS=$as_save_IFS
5404
5405fi
5406fi
5407F77=$ac_cv_prog_F77
5408if test -n "$F77"; then
5409  { echo "$as_me:$LINENO: result: $F77" >&5
5410echo "${ECHO_T}$F77" >&6; }
5411else
5412  { echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6; }
5414fi
5415
5416
5417    test -n "$F77" && break
5418  done
5419fi
5420if test -z "$F77"; then
5421  ac_ct_F77=$F77
5422  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
5423do
5424  # Extract the first word of "$ac_prog", so it can be a program name with args.
5425set dummy $ac_prog; ac_word=$2
5426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5428if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5429  echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431  if test -n "$ac_ct_F77"; then
5432  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437  IFS=$as_save_IFS
5438  test -z "$as_dir" && as_dir=.
5439  for ac_exec_ext in '' $ac_executable_extensions; do
5440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441    ac_cv_prog_ac_ct_F77="$ac_prog"
5442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443    break 2
5444  fi
5445done
5446done
5447IFS=$as_save_IFS
5448
5449fi
5450fi
5451ac_ct_F77=$ac_cv_prog_ac_ct_F77
5452if test -n "$ac_ct_F77"; then
5453  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5454echo "${ECHO_T}$ac_ct_F77" >&6; }
5455else
5456  { echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6; }
5458fi
5459
5460
5461  test -n "$ac_ct_F77" && break
5462done
5463
5464  if test "x$ac_ct_F77" = x; then
5465    F77=""
5466  else
5467    case $cross_compiling:$ac_tool_warned in
5468yes:)
5469{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470whose name does not start with the host triplet.  If you think this
5471configuration is useful to you, please write to autoconf@gnu.org." >&5
5472echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473whose name does not start with the host triplet.  If you think this
5474configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477    F77=$ac_ct_F77
5478  fi
5479fi
5480
5481
5482# Provide some information about the compiler.
5483echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5484ac_compiler=`set X $ac_compile; echo $2`
5485{ (ac_try="$ac_compiler --version >&5"
5486case "(($ac_try" in
5487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488  *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491  (eval "$ac_compiler --version >&5") 2>&5
5492  ac_status=$?
5493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494  (exit $ac_status); }
5495{ (ac_try="$ac_compiler -v >&5"
5496case "(($ac_try" in
5497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498  *) ac_try_echo=$ac_try;;
5499esac
5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501  (eval "$ac_compiler -v >&5") 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }
5505{ (ac_try="$ac_compiler -V >&5"
5506case "(($ac_try" in
5507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508  *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511  (eval "$ac_compiler -V >&5") 2>&5
5512  ac_status=$?
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); }
5515rm -f a.out
5516
5517# If we don't use `.F' as extension, the preprocessor is not run on the
5518# input file.  (Note that this only needs to work for GNU compilers.)
5519ac_save_ext=$ac_ext
5520ac_ext=F
5521{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5522echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5523if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526  cat >conftest.$ac_ext <<_ACEOF
5527      program main
5528#ifndef __GNUC__
5529       choke me
5530#endif
5531
5532      end
5533_ACEOF
5534rm -f conftest.$ac_objext
5535if { (ac_try="$ac_compile"
5536case "(($ac_try" in
5537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538  *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541  (eval "$ac_compile") 2>conftest.er1
5542  ac_status=$?
5543  grep -v '^ *+' conftest.er1 >conftest.err
5544  rm -f conftest.er1
5545  cat conftest.err >&5
5546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547  (exit $ac_status); } && {
5548	 test -z "$ac_f77_werror_flag" ||
5549	 test ! -s conftest.err
5550       } && test -s conftest.$ac_objext; then
5551  ac_compiler_gnu=yes
5552else
5553  echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556	ac_compiler_gnu=no
5557fi
5558
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5561
5562fi
5563{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5564echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5565ac_ext=$ac_save_ext
5566ac_test_FFLAGS=${FFLAGS+set}
5567ac_save_FFLAGS=$FFLAGS
5568FFLAGS=
5569{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5570echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5571if test "${ac_cv_prog_f77_g+set}" = set; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574  FFLAGS=-g
5575cat >conftest.$ac_ext <<_ACEOF
5576      program main
5577
5578      end
5579_ACEOF
5580rm -f conftest.$ac_objext
5581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584  *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587  (eval "$ac_compile") 2>conftest.er1
5588  ac_status=$?
5589  grep -v '^ *+' conftest.er1 >conftest.err
5590  rm -f conftest.er1
5591  cat conftest.err >&5
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); } && {
5594	 test -z "$ac_f77_werror_flag" ||
5595	 test ! -s conftest.err
5596       } && test -s conftest.$ac_objext; then
5597  ac_cv_prog_f77_g=yes
5598else
5599  echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
5602	ac_cv_prog_f77_g=no
5603fi
5604
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606
5607fi
5608{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5609echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5610if test "$ac_test_FFLAGS" = set; then
5611  FFLAGS=$ac_save_FFLAGS
5612elif test $ac_cv_prog_f77_g = yes; then
5613  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5614    FFLAGS="-g -O2"
5615  else
5616    FFLAGS="-g"
5617  fi
5618else
5619  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5620    FFLAGS="-O2"
5621  else
5622    FFLAGS=
5623  fi
5624fi
5625
5626G77=`test $ac_compiler_gnu = yes && echo yes`
5627ac_ext=c
5628ac_cpp='$CPP $CPPFLAGS'
5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632
5633
5634
5635# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5636
5637# find the maximum length of command line arguments
5638{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5639echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5640if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643    i=0
5644  testring="ABCD"
5645
5646  case $build_os in
5647  msdosdjgpp*)
5648    # On DJGPP, this test can blow up pretty badly due to problems in libc
5649    # (any single argument exceeding 2000 bytes causes a buffer overrun
5650    # during glob expansion).  Even if it were fixed, the result of this
5651    # check would be larger than it should be.
5652    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5653    ;;
5654
5655  gnu*)
5656    # Under GNU Hurd, this test is not required because there is
5657    # no limit to the length of command line arguments.
5658    # Libtool will interpret -1 as no limit whatsoever
5659    lt_cv_sys_max_cmd_len=-1;
5660    ;;
5661
5662  cygwin* | mingw*)
5663    # On Win9x/ME, this test blows up -- it succeeds, but takes
5664    # about 5 minutes as the teststring grows exponentially.
5665    # Worse, since 9x/ME are not pre-emptively multitasking,
5666    # you end up with a "frozen" computer, even though with patience
5667    # the test eventually succeeds (with a max line length of 256k).
5668    # Instead, let's just punt: use the minimum linelength reported by
5669    # all of the supported platforms: 8192 (on NT/2K/XP).
5670    lt_cv_sys_max_cmd_len=8192;
5671    ;;
5672
5673  amigaos* | morphos*)
5674    # On AmigaOS with pdksh, this test takes hours, literally.
5675    # So we just punt and use a minimum line length of 8192.
5676    lt_cv_sys_max_cmd_len=8192;
5677    ;;
5678
5679 *)
5680    # If test is not a shell built-in, we'll probably end up computing a
5681    # maximum length that is only half of the actual maximum length, but
5682    # we can't tell.
5683    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5684	       = "XX$testring") >/dev/null 2>&1 &&
5685	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5686	    lt_cv_sys_max_cmd_len=$new_result &&
5687	    test $i != 17 # 1/2 MB should be enough
5688    do
5689      i=`expr $i + 1`
5690      testring=$testring$testring
5691    done
5692    testring=
5693    # Add a significant safety factor because C++ compilers can tack on massive
5694    # amounts of additional arguments before passing them to the linker.
5695    # It appears as though 1/2 is a usable value.
5696    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5697    ;;
5698  esac
5699
5700fi
5701
5702if test -n $lt_cv_sys_max_cmd_len ; then
5703  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5704echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5705else
5706  { echo "$as_me:$LINENO: result: none" >&5
5707echo "${ECHO_T}none" >&6; }
5708fi
5709
5710
5711
5712
5713# Check for command to grab the raw symbol name followed by C symbol from nm.
5714{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5715echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5716if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5717  echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719
5720# These are sane defaults that work on at least a few old systems.
5721# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5722
5723# Character class describing NM global symbol codes.
5724symcode='[BCDEGRST]'
5725
5726# Regexp to match symbols that can be accessed directly from C.
5727sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5728
5729# Transform the above into a raw symbol and a C symbol.
5730symxfrm='\1 \2\3 \3'
5731
5732# Transform an extracted symbol line into a proper C declaration
5733lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5734
5735# Transform an extracted symbol line into symbol name and symbol address
5736lt_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'"
5737
5738# Define system-specific variables.
5739case $host_os in
5740aix*)
5741  symcode='[BCDT]'
5742  ;;
5743cygwin* | mingw* | pw32*)
5744  symcode='[ABCDGISTW]'
5745  ;;
5746hpux*) # Its linker distinguishes data from code symbols
5747  if test "$host_cpu" = ia64; then
5748    symcode='[ABCDEGRST]'
5749  fi
5750  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5751  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'"
5752  ;;
5753irix* | nonstopux*)
5754  symcode='[BCDEGRST]'
5755  ;;
5756osf*)
5757  symcode='[BCDEGQRST]'
5758  ;;
5759solaris* | sysv5*)
5760  symcode='[BDRT]'
5761  ;;
5762sysv4)
5763  symcode='[DFNSTU]'
5764  ;;
5765esac
5766
5767# Handle CRLF in mingw tool chain
5768opt_cr=
5769case $build_os in
5770mingw*)
5771  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5772  ;;
5773esac
5774
5775# If we're using GNU nm, then use its standard symbol codes.
5776case `$NM -V 2>&1` in
5777*GNU* | *'with BFD'*)
5778  symcode='[ABCDGIRSTW]' ;;
5779esac
5780
5781# Try without a prefix undercore, then with it.
5782for ac_symprfx in "" "_"; do
5783
5784  # Write the raw and C identifiers.
5785  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5786
5787  # Check to see that the pipe works correctly.
5788  pipe_works=no
5789
5790  rm -f conftest*
5791  cat > conftest.$ac_ext <<EOF
5792#ifdef __cplusplus
5793extern "C" {
5794#endif
5795char nm_test_var;
5796void nm_test_func(){}
5797#ifdef __cplusplus
5798}
5799#endif
5800int main(){nm_test_var='a';nm_test_func();return(0);}
5801EOF
5802
5803  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804  (eval $ac_compile) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; then
5808    # Now try to grab the symbols.
5809    nlist=conftest.nm
5810    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5811  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5812  ac_status=$?
5813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814  (exit $ac_status); } && test -s "$nlist"; then
5815      # Try sorting and uniquifying the output.
5816      if sort "$nlist" | uniq > "$nlist"T; then
5817	mv -f "$nlist"T "$nlist"
5818      else
5819	rm -f "$nlist"T
5820      fi
5821
5822      # Make sure that we snagged all the symbols we need.
5823      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5824	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5825	  cat <<EOF > conftest.$ac_ext
5826#ifdef __cplusplus
5827extern "C" {
5828#endif
5829
5830EOF
5831	  # Now generate the symbol file.
5832	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5833
5834	  cat <<EOF >> conftest.$ac_ext
5835#if defined (__STDC__) && __STDC__
5836# define lt_ptr_t void *
5837#else
5838# define lt_ptr_t char *
5839# define const
5840#endif
5841
5842/* The mapping between symbol names and symbols. */
5843const struct {
5844  const char *name;
5845  lt_ptr_t address;
5846}
5847lt_preloaded_symbols[] =
5848{
5849EOF
5850	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5851	  cat <<\EOF >> conftest.$ac_ext
5852  {0, (lt_ptr_t) 0}
5853};
5854
5855#ifdef __cplusplus
5856}
5857#endif
5858EOF
5859	  # Now try linking the two files.
5860	  mv conftest.$ac_objext conftstm.$ac_objext
5861	  lt_save_LIBS="$LIBS"
5862	  lt_save_CFLAGS="$CFLAGS"
5863	  LIBS="conftstm.$ac_objext"
5864	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5865	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866  (eval $ac_link) 2>&5
5867  ac_status=$?
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5870	    pipe_works=yes
5871	  fi
5872	  LIBS="$lt_save_LIBS"
5873	  CFLAGS="$lt_save_CFLAGS"
5874	else
5875	  echo "cannot find nm_test_func in $nlist" >&5
5876	fi
5877      else
5878	echo "cannot find nm_test_var in $nlist" >&5
5879      fi
5880    else
5881      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5882    fi
5883  else
5884    echo "$progname: failed program was:" >&5
5885    cat conftest.$ac_ext >&5
5886  fi
5887  rm -f conftest* conftst*
5888
5889  # Do not use the global_symbol_pipe unless it works.
5890  if test "$pipe_works" = yes; then
5891    break
5892  else
5893    lt_cv_sys_global_symbol_pipe=
5894  fi
5895done
5896
5897fi
5898
5899if test -z "$lt_cv_sys_global_symbol_pipe"; then
5900  lt_cv_sys_global_symbol_to_cdecl=
5901fi
5902if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5903  { echo "$as_me:$LINENO: result: failed" >&5
5904echo "${ECHO_T}failed" >&6; }
5905else
5906  { echo "$as_me:$LINENO: result: ok" >&5
5907echo "${ECHO_T}ok" >&6; }
5908fi
5909
5910{ echo "$as_me:$LINENO: checking for objdir" >&5
5911echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5912if test "${lt_cv_objdir+set}" = set; then
5913  echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915  rm -f .libs 2>/dev/null
5916mkdir .libs 2>/dev/null
5917if test -d .libs; then
5918  lt_cv_objdir=.libs
5919else
5920  # MS-DOS does not allow filenames that begin with a dot.
5921  lt_cv_objdir=_libs
5922fi
5923rmdir .libs 2>/dev/null
5924fi
5925{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5926echo "${ECHO_T}$lt_cv_objdir" >&6; }
5927objdir=$lt_cv_objdir
5928
5929
5930
5931
5932
5933case $host_os in
5934aix3*)
5935  # AIX sometimes has problems with the GCC collect2 program.  For some
5936  # reason, if we set the COLLECT_NAMES environment variable, the problems
5937  # vanish in a puff of smoke.
5938  if test "X${COLLECT_NAMES+set}" != Xset; then
5939    COLLECT_NAMES=
5940    export COLLECT_NAMES
5941  fi
5942  ;;
5943esac
5944
5945# Sed substitution that helps us do robust quoting.  It backslashifies
5946# metacharacters that are still active within double-quoted strings.
5947Xsed='sed -e s/^X//'
5948sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5949
5950# Same as above, but do not quote variable references.
5951double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5952
5953# Sed substitution to delay expansion of an escaped shell variable in a
5954# double_quote_subst'ed string.
5955delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5956
5957# Sed substitution to avoid accidental globbing in evaled expressions
5958no_glob_subst='s/\*/\\\*/g'
5959
5960# Constants:
5961rm="rm -f"
5962
5963# Global variables:
5964default_ofile=libtool
5965can_build_shared=yes
5966
5967# All known linkers require a `.a' archive for static linking (except M$VC,
5968# which needs '.lib').
5969libext=a
5970ltmain="$ac_aux_dir/ltmain.sh"
5971ofile="$default_ofile"
5972with_gnu_ld="$lt_cv_prog_gnu_ld"
5973
5974if test -n "$ac_tool_prefix"; then
5975  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5976set dummy ${ac_tool_prefix}ar; ac_word=$2
5977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979if test "${ac_cv_prog_AR+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -n "$AR"; then
5983  ac_cv_prog_AR="$AR" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992    ac_cv_prog_AR="${ac_tool_prefix}ar"
5993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002AR=$ac_cv_prog_AR
6003if test -n "$AR"; then
6004  { echo "$as_me:$LINENO: result: $AR" >&5
6005echo "${ECHO_T}$AR" >&6; }
6006else
6007  { echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6; }
6009fi
6010
6011
6012fi
6013if test -z "$ac_cv_prog_AR"; then
6014  ac_ct_AR=$AR
6015  # Extract the first word of "ar", so it can be a program name with args.
6016set dummy ar; ac_word=$2
6017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6020  echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022  if test -n "$ac_ct_AR"; then
6023  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028  IFS=$as_save_IFS
6029  test -z "$as_dir" && as_dir=.
6030  for ac_exec_ext in '' $ac_executable_extensions; do
6031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032    ac_cv_prog_ac_ct_AR="ar"
6033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034    break 2
6035  fi
6036done
6037done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042ac_ct_AR=$ac_cv_prog_ac_ct_AR
6043if test -n "$ac_ct_AR"; then
6044  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6045echo "${ECHO_T}$ac_ct_AR" >&6; }
6046else
6047  { echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6; }
6049fi
6050
6051  if test "x$ac_ct_AR" = x; then
6052    AR="false"
6053  else
6054    case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057whose name does not start with the host triplet.  If you think this
6058configuration is useful to you, please write to autoconf@gnu.org." >&5
6059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060whose name does not start with the host triplet.  If you think this
6061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062ac_tool_warned=yes ;;
6063esac
6064    AR=$ac_ct_AR
6065  fi
6066else
6067  AR="$ac_cv_prog_AR"
6068fi
6069
6070if test -n "$ac_tool_prefix"; then
6071  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6072set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075if test "${ac_cv_prog_RANLIB+set}" = set; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  if test -n "$RANLIB"; then
6079  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086  for ac_exec_ext in '' $ac_executable_extensions; do
6087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090    break 2
6091  fi
6092done
6093done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098RANLIB=$ac_cv_prog_RANLIB
6099if test -n "$RANLIB"; then
6100  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6101echo "${ECHO_T}$RANLIB" >&6; }
6102else
6103  { echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6; }
6105fi
6106
6107
6108fi
6109if test -z "$ac_cv_prog_RANLIB"; then
6110  ac_ct_RANLIB=$RANLIB
6111  # Extract the first word of "ranlib", so it can be a program name with args.
6112set dummy ranlib; ac_word=$2
6113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  if test -n "$ac_ct_RANLIB"; then
6119  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126  for ac_exec_ext in '' $ac_executable_extensions; do
6127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128    ac_cv_prog_ac_ct_RANLIB="ranlib"
6129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6139if test -n "$ac_ct_RANLIB"; then
6140  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6141echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6142else
6143  { echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6; }
6145fi
6146
6147  if test "x$ac_ct_RANLIB" = x; then
6148    RANLIB=":"
6149  else
6150    case $cross_compiling:$ac_tool_warned in
6151yes:)
6152{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6153whose name does not start with the host triplet.  If you think this
6154configuration is useful to you, please write to autoconf@gnu.org." >&5
6155echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6156whose name does not start with the host triplet.  If you think this
6157configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6158ac_tool_warned=yes ;;
6159esac
6160    RANLIB=$ac_ct_RANLIB
6161  fi
6162else
6163  RANLIB="$ac_cv_prog_RANLIB"
6164fi
6165
6166if test -n "$ac_tool_prefix"; then
6167  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6168set dummy ${ac_tool_prefix}strip; ac_word=$2
6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_STRIP+set}" = set; then
6172  echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174  if test -n "$STRIP"; then
6175  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180  IFS=$as_save_IFS
6181  test -z "$as_dir" && as_dir=.
6182  for ac_exec_ext in '' $ac_executable_extensions; do
6183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186    break 2
6187  fi
6188done
6189done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194STRIP=$ac_cv_prog_STRIP
6195if test -n "$STRIP"; then
6196  { echo "$as_me:$LINENO: result: $STRIP" >&5
6197echo "${ECHO_T}$STRIP" >&6; }
6198else
6199  { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
6201fi
6202
6203
6204fi
6205if test -z "$ac_cv_prog_STRIP"; then
6206  ac_ct_STRIP=$STRIP
6207  # Extract the first word of "strip", so it can be a program name with args.
6208set dummy strip; ac_word=$2
6209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  if test -n "$ac_ct_STRIP"; then
6215  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  test -z "$as_dir" && as_dir=.
6222  for ac_exec_ext in '' $ac_executable_extensions; do
6223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224    ac_cv_prog_ac_ct_STRIP="strip"
6225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6235if test -n "$ac_ct_STRIP"; then
6236  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6237echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6238else
6239  { echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6; }
6241fi
6242
6243  if test "x$ac_ct_STRIP" = x; then
6244    STRIP=":"
6245  else
6246    case $cross_compiling:$ac_tool_warned in
6247yes:)
6248{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249whose name does not start with the host triplet.  If you think this
6250configuration is useful to you, please write to autoconf@gnu.org." >&5
6251echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252whose name does not start with the host triplet.  If you think this
6253configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6254ac_tool_warned=yes ;;
6255esac
6256    STRIP=$ac_ct_STRIP
6257  fi
6258else
6259  STRIP="$ac_cv_prog_STRIP"
6260fi
6261
6262
6263old_CC="$CC"
6264old_CFLAGS="$CFLAGS"
6265
6266# Set sane defaults for various variables
6267test -z "$AR" && AR=ar
6268test -z "$AR_FLAGS" && AR_FLAGS=cru
6269test -z "$AS" && AS=as
6270test -z "$CC" && CC=cc
6271test -z "$LTCC" && LTCC=$CC
6272test -z "$DLLTOOL" && DLLTOOL=dlltool
6273test -z "$LD" && LD=ld
6274test -z "$LN_S" && LN_S="ln -s"
6275test -z "$MAGIC_CMD" && MAGIC_CMD=file
6276test -z "$NM" && NM=nm
6277test -z "$SED" && SED=sed
6278test -z "$OBJDUMP" && OBJDUMP=objdump
6279test -z "$RANLIB" && RANLIB=:
6280test -z "$STRIP" && STRIP=:
6281test -z "$ac_objext" && ac_objext=o
6282
6283# Determine commands to create old-style static archives.
6284old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6285old_postinstall_cmds='chmod 644 $oldlib'
6286old_postuninstall_cmds=
6287
6288if test -n "$RANLIB"; then
6289  case $host_os in
6290  openbsd*)
6291    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6292    ;;
6293  *)
6294    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6295    ;;
6296  esac
6297  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6298fi
6299
6300# Only perform the check for file, if the check method requires it
6301case $deplibs_check_method in
6302file_magic*)
6303  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6304    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6305echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6306if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309  case $MAGIC_CMD in
6310[\\/*] |  ?:[\\/]*)
6311  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6312  ;;
6313*)
6314  lt_save_MAGIC_CMD="$MAGIC_CMD"
6315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6317  for ac_dir in $ac_dummy; do
6318    IFS="$lt_save_ifs"
6319    test -z "$ac_dir" && ac_dir=.
6320    if test -f $ac_dir/${ac_tool_prefix}file; then
6321      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6322      if test -n "$file_magic_test_file"; then
6323	case $deplibs_check_method in
6324	"file_magic "*)
6325	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6326	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6327	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6328	    $EGREP "$file_magic_regex" > /dev/null; then
6329	    :
6330	  else
6331	    cat <<EOF 1>&2
6332
6333*** Warning: the command libtool uses to detect shared libraries,
6334*** $file_magic_cmd, produces output that libtool cannot recognize.
6335*** The result is that libtool may fail to recognize shared libraries
6336*** as such.  This will affect the creation of libtool libraries that
6337*** depend on shared libraries, but programs linked with such libtool
6338*** libraries will work regardless of this problem.  Nevertheless, you
6339*** may want to report the problem to your system manager and/or to
6340*** bug-libtool@gnu.org
6341
6342EOF
6343	  fi ;;
6344	esac
6345      fi
6346      break
6347    fi
6348  done
6349  IFS="$lt_save_ifs"
6350  MAGIC_CMD="$lt_save_MAGIC_CMD"
6351  ;;
6352esac
6353fi
6354
6355MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6356if test -n "$MAGIC_CMD"; then
6357  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6358echo "${ECHO_T}$MAGIC_CMD" >&6; }
6359else
6360  { echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6; }
6362fi
6363
6364if test -z "$lt_cv_path_MAGIC_CMD"; then
6365  if test -n "$ac_tool_prefix"; then
6366    { echo "$as_me:$LINENO: checking for file" >&5
6367echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6368if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371  case $MAGIC_CMD in
6372[\\/*] |  ?:[\\/]*)
6373  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6374  ;;
6375*)
6376  lt_save_MAGIC_CMD="$MAGIC_CMD"
6377  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6378  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6379  for ac_dir in $ac_dummy; do
6380    IFS="$lt_save_ifs"
6381    test -z "$ac_dir" && ac_dir=.
6382    if test -f $ac_dir/file; then
6383      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6384      if test -n "$file_magic_test_file"; then
6385	case $deplibs_check_method in
6386	"file_magic "*)
6387	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6388	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6389	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6390	    $EGREP "$file_magic_regex" > /dev/null; then
6391	    :
6392	  else
6393	    cat <<EOF 1>&2
6394
6395*** Warning: the command libtool uses to detect shared libraries,
6396*** $file_magic_cmd, produces output that libtool cannot recognize.
6397*** The result is that libtool may fail to recognize shared libraries
6398*** as such.  This will affect the creation of libtool libraries that
6399*** depend on shared libraries, but programs linked with such libtool
6400*** libraries will work regardless of this problem.  Nevertheless, you
6401*** may want to report the problem to your system manager and/or to
6402*** bug-libtool@gnu.org
6403
6404EOF
6405	  fi ;;
6406	esac
6407      fi
6408      break
6409    fi
6410  done
6411  IFS="$lt_save_ifs"
6412  MAGIC_CMD="$lt_save_MAGIC_CMD"
6413  ;;
6414esac
6415fi
6416
6417MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6418if test -n "$MAGIC_CMD"; then
6419  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6420echo "${ECHO_T}$MAGIC_CMD" >&6; }
6421else
6422  { echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6; }
6424fi
6425
6426  else
6427    MAGIC_CMD=:
6428  fi
6429fi
6430
6431  fi
6432  ;;
6433esac
6434
6435enable_dlopen=yes
6436enable_win32_dll=no
6437
6438# Check whether --enable-libtool-lock was given.
6439if test "${enable_libtool_lock+set}" = set; then
6440  enableval=$enable_libtool_lock;
6441fi
6442
6443test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6444
6445
6446# Check whether --with-pic was given.
6447if test "${with_pic+set}" = set; then
6448  withval=$with_pic; pic_mode="$withval"
6449else
6450  pic_mode=default
6451fi
6452
6453test -z "$pic_mode" && pic_mode=default
6454
6455# Use C for the default configuration in the libtool script
6456tagname=
6457lt_save_CC="$CC"
6458ac_ext=c
6459ac_cpp='$CPP $CPPFLAGS'
6460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464
6465# Source file extension for C test sources.
6466ac_ext=c
6467
6468# Object file extension for compiled C test sources.
6469objext=o
6470objext=$objext
6471
6472# Code to be used in simple compile tests
6473lt_simple_compile_test_code="int some_variable = 0;\n"
6474
6475# Code to be used in simple link tests
6476lt_simple_link_test_code='int main(){return(0);}\n'
6477
6478
6479# If no C compiler was specified, use CC.
6480LTCC=${LTCC-"$CC"}
6481
6482# Allow CC to be a program name with arguments.
6483compiler=$CC
6484
6485
6486#
6487# Check for any special shared library compilation flags.
6488#
6489lt_prog_cc_shlib=
6490if test "$GCC" = no; then
6491  case $host_os in
6492  sco3.2v5*)
6493    lt_prog_cc_shlib='-belf'
6494    ;;
6495  esac
6496fi
6497if test -n "$lt_prog_cc_shlib"; then
6498  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6499echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6500  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6501  else
6502    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6503echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6504    lt_cv_prog_cc_can_build_shared=no
6505  fi
6506fi
6507
6508
6509#
6510# Check to make sure the static flag actually works.
6511#
6512{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6513echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6514if test "${lt_prog_compiler_static_works+set}" = set; then
6515  echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517  lt_prog_compiler_static_works=no
6518   save_LDFLAGS="$LDFLAGS"
6519   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6520   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6521   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6522     # The compiler can only warn and ignore the option if not recognized
6523     # So say no if there are warnings
6524     if test -s conftest.err; then
6525       # Append any errors to the config.log.
6526       cat conftest.err 1>&5
6527     else
6528       lt_prog_compiler_static_works=yes
6529     fi
6530   fi
6531   $rm conftest*
6532   LDFLAGS="$save_LDFLAGS"
6533
6534fi
6535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6536echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6537
6538if test x"$lt_prog_compiler_static_works" = xyes; then
6539    :
6540else
6541    lt_prog_compiler_static=
6542fi
6543
6544
6545
6546## CAVEAT EMPTOR:
6547## There is no encapsulation within the following macros, do not change
6548## the running order or otherwise move them around unless you know exactly
6549## what you are doing...
6550
6551lt_prog_compiler_no_builtin_flag=
6552
6553if test "$GCC" = yes; then
6554  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6555
6556
6557{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6558echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6559if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  lt_cv_prog_compiler_rtti_exceptions=no
6563  ac_outfile=conftest.$ac_objext
6564   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6565   lt_compiler_flag="-fno-rtti -fno-exceptions"
6566   # Insert the option either (1) after the last *FLAGS variable, or
6567   # (2) before a word containing "conftest.", or (3) at the end.
6568   # Note that $ac_compile itself does not contain backslashes and begins
6569   # with a dollar sign (not a hyphen), so the echo should work correctly.
6570   # The option is referenced via a variable to avoid confusing sed.
6571   lt_compile=`echo "$ac_compile" | $SED \
6572   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6573   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6574   -e 's:$: $lt_compiler_flag:'`
6575   (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
6576   (eval "$lt_compile" 2>conftest.err)
6577   ac_status=$?
6578   cat conftest.err >&5
6579   echo "$as_me:6579: \$? = $ac_status" >&5
6580   if (exit $ac_status) && test -s "$ac_outfile"; then
6581     # The compiler can only warn and ignore the option if not recognized
6582     # So say no if there are warnings
6583     if test ! -s conftest.err; then
6584       lt_cv_prog_compiler_rtti_exceptions=yes
6585     fi
6586   fi
6587   $rm conftest*
6588
6589fi
6590{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6591echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6592
6593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6594    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6595else
6596    :
6597fi
6598
6599fi
6600
6601lt_prog_compiler_wl=
6602lt_prog_compiler_pic=
6603lt_prog_compiler_static=
6604
6605{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6606echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6607
6608  if test "$GCC" = yes; then
6609    lt_prog_compiler_wl='-Wl,'
6610    lt_prog_compiler_static='-static'
6611
6612    case $host_os in
6613      aix*)
6614      # All AIX code is PIC.
6615      if test "$host_cpu" = ia64; then
6616	# AIX 5 now supports IA64 processor
6617	lt_prog_compiler_static='-Bstatic'
6618      fi
6619      ;;
6620
6621    amigaos*)
6622      # FIXME: we need at least 68020 code to build shared libraries, but
6623      # adding the `-m68020' flag to GCC prevents building anything better,
6624      # like `-m68040'.
6625      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6626      ;;
6627
6628    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6629      # PIC is the default for these OSes.
6630      ;;
6631
6632    mingw* | pw32* | os2*)
6633      # This hack is so that the source file can tell whether it is being
6634      # built for inclusion in a dll (and should export symbols for example).
6635      lt_prog_compiler_pic='-DDLL_EXPORT'
6636      ;;
6637
6638    darwin* | rhapsody*)
6639      # PIC is the default on this platform
6640      # Common symbols not allowed in MH_DYLIB files
6641      lt_prog_compiler_pic='-fno-common'
6642      ;;
6643
6644    msdosdjgpp*)
6645      # Just because we use GCC doesn't mean we suddenly get shared libraries
6646      # on systems that don't support them.
6647      lt_prog_compiler_can_build_shared=no
6648      enable_shared=no
6649      ;;
6650
6651    sysv4*MP*)
6652      if test -d /usr/nec; then
6653	lt_prog_compiler_pic=-Kconform_pic
6654      fi
6655      ;;
6656
6657    hpux*)
6658      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6659      # not for PA HP-UX.
6660      case "$host_cpu" in
6661      hppa*64*|ia64*)
6662	# +Z the default
6663	;;
6664      *)
6665	lt_prog_compiler_pic='-fPIC'
6666	;;
6667      esac
6668      ;;
6669
6670    *)
6671      lt_prog_compiler_pic='-fPIC'
6672      ;;
6673    esac
6674  else
6675    # PORTME Check for flag to pass linker flags through the system compiler.
6676    case $host_os in
6677    aix*)
6678      lt_prog_compiler_wl='-Wl,'
6679      if test "$host_cpu" = ia64; then
6680	# AIX 5 now supports IA64 processor
6681	lt_prog_compiler_static='-Bstatic'
6682      else
6683	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6684      fi
6685      ;;
6686
6687    mingw* | pw32* | os2*)
6688      # This hack is so that the source file can tell whether it is being
6689      # built for inclusion in a dll (and should export symbols for example).
6690      lt_prog_compiler_pic='-DDLL_EXPORT'
6691      ;;
6692
6693    hpux9* | hpux10* | hpux11*)
6694      lt_prog_compiler_wl='-Wl,'
6695      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6696      # not for PA HP-UX.
6697      case "$host_cpu" in
6698      hppa*64*|ia64*)
6699	# +Z the default
6700	;;
6701      *)
6702	lt_prog_compiler_pic='+Z'
6703	;;
6704      esac
6705      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6706      lt_prog_compiler_static='${wl}-a ${wl}archive'
6707      ;;
6708
6709    irix5* | irix6* | nonstopux*)
6710      lt_prog_compiler_wl='-Wl,'
6711      # PIC (with -KPIC) is the default.
6712      lt_prog_compiler_static='-non_shared'
6713      ;;
6714
6715    newsos6)
6716      lt_prog_compiler_pic='-KPIC'
6717      lt_prog_compiler_static='-Bstatic'
6718      ;;
6719
6720    linux*)
6721      case $CC in
6722      icc* | ecc*)
6723	lt_prog_compiler_wl='-Wl,'
6724	lt_prog_compiler_pic='-KPIC'
6725	lt_prog_compiler_static='-static'
6726        ;;
6727      ccc*)
6728        lt_prog_compiler_wl='-Wl,'
6729        # All Alpha code is PIC.
6730        lt_prog_compiler_static='-non_shared'
6731        ;;
6732      esac
6733      ;;
6734
6735    osf3* | osf4* | osf5*)
6736      lt_prog_compiler_wl='-Wl,'
6737      # All OSF/1 code is PIC.
6738      lt_prog_compiler_static='-non_shared'
6739      ;;
6740
6741    sco3.2v5*)
6742      lt_prog_compiler_pic='-Kpic'
6743      lt_prog_compiler_static='-dn'
6744      ;;
6745
6746    solaris*)
6747      lt_prog_compiler_wl='-Wl,'
6748      lt_prog_compiler_pic='-KPIC'
6749      lt_prog_compiler_static='-Bstatic'
6750      ;;
6751
6752    sunos4*)
6753      lt_prog_compiler_wl='-Qoption ld '
6754      lt_prog_compiler_pic='-PIC'
6755      lt_prog_compiler_static='-Bstatic'
6756      ;;
6757
6758    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6759      lt_prog_compiler_wl='-Wl,'
6760      lt_prog_compiler_pic='-KPIC'
6761      lt_prog_compiler_static='-Bstatic'
6762      ;;
6763
6764    sysv4*MP*)
6765      if test -d /usr/nec ;then
6766	lt_prog_compiler_pic='-Kconform_pic'
6767	lt_prog_compiler_static='-Bstatic'
6768      fi
6769      ;;
6770
6771    uts4*)
6772      lt_prog_compiler_pic='-pic'
6773      lt_prog_compiler_static='-Bstatic'
6774      ;;
6775
6776    *)
6777      lt_prog_compiler_can_build_shared=no
6778      ;;
6779    esac
6780  fi
6781
6782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6783echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6784
6785#
6786# Check to make sure the PIC flag actually works.
6787#
6788if test -n "$lt_prog_compiler_pic"; then
6789
6790{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6791echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6792if test "${lt_prog_compiler_pic_works+set}" = set; then
6793  echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795  lt_prog_compiler_pic_works=no
6796  ac_outfile=conftest.$ac_objext
6797   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6798   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6799   # Insert the option either (1) after the last *FLAGS variable, or
6800   # (2) before a word containing "conftest.", or (3) at the end.
6801   # Note that $ac_compile itself does not contain backslashes and begins
6802   # with a dollar sign (not a hyphen), so the echo should work correctly.
6803   # The option is referenced via a variable to avoid confusing sed.
6804   lt_compile=`echo "$ac_compile" | $SED \
6805   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6807   -e 's:$: $lt_compiler_flag:'`
6808   (eval echo "\"\$as_me:6808: $lt_compile\"" >&5)
6809   (eval "$lt_compile" 2>conftest.err)
6810   ac_status=$?
6811   cat conftest.err >&5
6812   echo "$as_me:6812: \$? = $ac_status" >&5
6813   if (exit $ac_status) && test -s "$ac_outfile"; then
6814     # The compiler can only warn and ignore the option if not recognized
6815     # So say no if there are warnings
6816     if test ! -s conftest.err; then
6817       lt_prog_compiler_pic_works=yes
6818     fi
6819   fi
6820   $rm conftest*
6821
6822fi
6823{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6824echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6825
6826if test x"$lt_prog_compiler_pic_works" = xyes; then
6827    case $lt_prog_compiler_pic in
6828     "" | " "*) ;;
6829     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6830     esac
6831else
6832    lt_prog_compiler_pic=
6833     lt_prog_compiler_can_build_shared=no
6834fi
6835
6836fi
6837case "$host_os" in
6838  # For platforms which do not support PIC, -DPIC is meaningless:
6839  *djgpp*)
6840    lt_prog_compiler_pic=
6841    ;;
6842  *)
6843    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6844    ;;
6845esac
6846
6847{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6849if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6850  echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852  lt_cv_prog_compiler_c_o=no
6853   $rm -r conftest 2>/dev/null
6854   mkdir conftest
6855   cd conftest
6856   mkdir out
6857   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6858
6859   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6860   # that will create temporary files in the current directory regardless of
6861   # the output directory.  Thus, making CWD read-only will cause this test
6862   # to fail, enabling locking or at least warning the user not to do parallel
6863   # builds.
6864   chmod -w .
6865
6866   lt_compiler_flag="-o out/conftest2.$ac_objext"
6867   # Insert the option either (1) after the last *FLAGS variable, or
6868   # (2) before a word containing "conftest.", or (3) at the end.
6869   # Note that $ac_compile itself does not contain backslashes and begins
6870   # with a dollar sign (not a hyphen), so the echo should work correctly.
6871   lt_compile=`echo "$ac_compile" | $SED \
6872   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6873   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6874   -e 's:$: $lt_compiler_flag:'`
6875   (eval echo "\"\$as_me:6875: $lt_compile\"" >&5)
6876   (eval "$lt_compile" 2>out/conftest.err)
6877   ac_status=$?
6878   cat out/conftest.err >&5
6879   echo "$as_me:6879: \$? = $ac_status" >&5
6880   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6881   then
6882     # The compiler can only warn and ignore the option if not recognized
6883     # So say no if there are warnings
6884     if test ! -s out/conftest.err; then
6885       lt_cv_prog_compiler_c_o=yes
6886     fi
6887   fi
6888   chmod u+w .
6889   $rm conftest*
6890   # SGI C++ compiler will create directory out/ii_files/ for
6891   # template instantiation
6892   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6893   $rm out/* && rmdir out
6894   cd ..
6895   rmdir conftest
6896   $rm conftest*
6897
6898fi
6899{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6900echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6901
6902
6903hard_links="nottested"
6904if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6905  # do not overwrite the value of need_locks provided by the user
6906  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6907echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6908  hard_links=yes
6909  $rm conftest*
6910  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6911  touch conftest.a
6912  ln conftest.a conftest.b 2>&5 || hard_links=no
6913  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6914  { echo "$as_me:$LINENO: result: $hard_links" >&5
6915echo "${ECHO_T}$hard_links" >&6; }
6916  if test "$hard_links" = no; then
6917    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6918echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6919    need_locks=warn
6920  fi
6921else
6922  need_locks=no
6923fi
6924
6925{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6926echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6927
6928  runpath_var=
6929  allow_undefined_flag=
6930  enable_shared_with_static_runtimes=no
6931  archive_cmds=
6932  archive_expsym_cmds=
6933  old_archive_From_new_cmds=
6934  old_archive_from_expsyms_cmds=
6935  export_dynamic_flag_spec=
6936  whole_archive_flag_spec=
6937  thread_safe_flag_spec=
6938  hardcode_libdir_flag_spec=
6939  hardcode_libdir_flag_spec_ld=
6940  hardcode_libdir_separator=
6941  hardcode_direct=no
6942  hardcode_minus_L=no
6943  hardcode_shlibpath_var=unsupported
6944  link_all_deplibs=unknown
6945  hardcode_automatic=no
6946  module_cmds=
6947  module_expsym_cmds=
6948  always_export_symbols=no
6949  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6950  # include_expsyms should be a list of space-separated symbols to be *always*
6951  # included in the symbol list
6952  include_expsyms=
6953  # exclude_expsyms can be an extended regexp of symbols to exclude
6954  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6955  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6956  # as well as any symbol that contains `d'.
6957  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6958  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6959  # platforms (ab)use it in PIC code, but their linkers get confused if
6960  # the symbol is explicitly referenced.  Since portable code cannot
6961  # rely on this symbol name, it's probably fine to never include it in
6962  # preloaded symbol tables.
6963  extract_expsyms_cmds=
6964
6965  case $host_os in
6966  cygwin* | mingw* | pw32*)
6967    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6968    # When not using gcc, we currently assume that we are using
6969    # Microsoft Visual C++.
6970    if test "$GCC" != yes; then
6971      with_gnu_ld=no
6972    fi
6973    ;;
6974  openbsd*)
6975    with_gnu_ld=no
6976    ;;
6977  esac
6978
6979  ld_shlibs=yes
6980  if test "$with_gnu_ld" = yes; then
6981    # If archive_cmds runs LD, not CC, wlarc should be empty
6982    wlarc='${wl}'
6983
6984    # See if GNU ld supports shared libraries.
6985    case $host_os in
6986    aix3* | aix4* | aix5*)
6987      # On AIX/PPC, the GNU linker is very broken
6988      if test "$host_cpu" != ia64; then
6989	ld_shlibs=no
6990	cat <<EOF 1>&2
6991
6992*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6993*** to be unable to reliably create shared libraries on AIX.
6994*** Therefore, libtool is disabling shared libraries support.  If you
6995*** really care for shared libraries, you may want to modify your PATH
6996*** so that a non-GNU linker is found, and then restart.
6997
6998EOF
6999      fi
7000      ;;
7001
7002    amigaos*)
7003      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)'
7004      hardcode_libdir_flag_spec='-L$libdir'
7005      hardcode_minus_L=yes
7006
7007      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7008      # that the semantics of dynamic libraries on AmigaOS, at least up
7009      # to version 4, is to share data among multiple programs linked
7010      # with the same dynamic library.  Since this doesn't match the
7011      # behavior of shared libraries on other platforms, we can't use
7012      # them.
7013      ld_shlibs=no
7014      ;;
7015
7016    beos*)
7017      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7018	allow_undefined_flag=unsupported
7019	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7020	# support --undefined.  This deserves some investigation.  FIXME
7021	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022      else
7023	ld_shlibs=no
7024      fi
7025      ;;
7026
7027    cygwin* | mingw* | pw32*)
7028      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7029      # as there is no search path for DLLs.
7030      hardcode_libdir_flag_spec='-L$libdir'
7031      allow_undefined_flag=unsupported
7032      always_export_symbols=no
7033      enable_shared_with_static_runtimes=yes
7034      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7035
7036      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7037        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7038	# If the export-symbols file already is a .def file (1st line
7039	# is EXPORTS), use it as is; otherwise, prepend...
7040	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7041	  cp $export_symbols $output_objdir/$soname.def;
7042	else
7043	  echo EXPORTS > $output_objdir/$soname.def;
7044	  cat $export_symbols >> $output_objdir/$soname.def;
7045	fi~
7046	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7047      else
7048	ld_shlibs=no
7049      fi
7050      ;;
7051
7052    netbsd*)
7053      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7054	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7055	wlarc=
7056      else
7057	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7058	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7059      fi
7060      ;;
7061
7062    solaris* | sysv5*)
7063      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7064	ld_shlibs=no
7065	cat <<EOF 1>&2
7066
7067*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7068*** create shared libraries on Solaris systems.  Therefore, libtool
7069*** is disabling shared libraries support.  We urge you to upgrade GNU
7070*** binutils to release 2.9.1 or newer.  Another option is to modify
7071*** your PATH or compiler configuration so that the native linker is
7072*** used, and then restart.
7073
7074EOF
7075      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7076	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7077	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7078      else
7079	ld_shlibs=no
7080      fi
7081      ;;
7082
7083    sunos4*)
7084      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7085      wlarc=
7086      hardcode_direct=yes
7087      hardcode_shlibpath_var=no
7088      ;;
7089
7090  linux*)
7091    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7092        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7093	archive_cmds="$tmp_archive_cmds"
7094      supports_anon_versioning=no
7095      case `$LD -v 2>/dev/null` in
7096        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7097        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7098        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7099        *\ 2.11.*) ;; # other 2.11 versions
7100        *) supports_anon_versioning=yes ;;
7101      esac
7102      if test $supports_anon_versioning = yes; then
7103        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7104cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7105$echo "local: *; };" >> $output_objdir/$libname.ver~
7106        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7107      else
7108        archive_expsym_cmds="$tmp_archive_cmds"
7109      fi
7110    else
7111      ld_shlibs=no
7112    fi
7113    ;;
7114
7115    *)
7116      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7117	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7118	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7119      else
7120	ld_shlibs=no
7121      fi
7122      ;;
7123    esac
7124
7125    if test "$ld_shlibs" = yes; then
7126      runpath_var=LD_RUN_PATH
7127      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7128      export_dynamic_flag_spec='${wl}--export-dynamic'
7129      # ancient GNU ld didn't support --whole-archive et. al.
7130      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7131 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7132      else
7133  	whole_archive_flag_spec=
7134      fi
7135    fi
7136  else
7137    # PORTME fill in a description of your system's linker (not GNU ld)
7138    case $host_os in
7139    aix3*)
7140      allow_undefined_flag=unsupported
7141      always_export_symbols=yes
7142      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'
7143      # Note: this linker hardcodes the directories in LIBPATH if there
7144      # are no directories specified by -L.
7145      hardcode_minus_L=yes
7146      if test "$GCC" = yes && test -z "$link_static_flag"; then
7147	# Neither direct hardcoding nor static linking is supported with a
7148	# broken collect2.
7149	hardcode_direct=unsupported
7150      fi
7151      ;;
7152
7153    aix4* | aix5*)
7154      if test "$host_cpu" = ia64; then
7155	# On IA64, the linker does run time linking by default, so we don't
7156	# have to do anything special.
7157	aix_use_runtimelinking=no
7158	exp_sym_flag='-Bexport'
7159	no_entry_flag=""
7160      else
7161	# If we're using GNU nm, then we don't want the "-C" option.
7162	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7163	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7164	  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'
7165	else
7166	  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'
7167	fi
7168	aix_use_runtimelinking=no
7169
7170	# Test if we are trying to use run time linking or normal
7171	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7172	# need to do runtime linking.
7173	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7174	  for ld_flag in $LDFLAGS; do
7175  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7176  	    aix_use_runtimelinking=yes
7177  	    break
7178  	  fi
7179	  done
7180	esac
7181
7182	exp_sym_flag='-bexport'
7183	no_entry_flag='-bnoentry'
7184      fi
7185
7186      # When large executables or shared objects are built, AIX ld can
7187      # have problems creating the table of contents.  If linking a library
7188      # or program results in "error TOC overflow" add -mminimal-toc to
7189      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7190      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7191
7192      archive_cmds=''
7193      hardcode_direct=yes
7194      hardcode_libdir_separator=':'
7195      link_all_deplibs=yes
7196
7197      if test "$GCC" = yes; then
7198	case $host_os in aix4.012|aix4.012.*)
7199	# We only want to do this on AIX 4.2 and lower, the check
7200	# below for broken collect2 doesn't work under 4.3+
7201	  collect2name=`${CC} -print-prog-name=collect2`
7202	  if test -f "$collect2name" && \
7203  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7204	  then
7205  	  # We have reworked collect2
7206  	  hardcode_direct=yes
7207	  else
7208  	  # We have old collect2
7209  	  hardcode_direct=unsupported
7210  	  # It fails to find uninstalled libraries when the uninstalled
7211  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7212  	  # to unsupported forces relinking
7213  	  hardcode_minus_L=yes
7214  	  hardcode_libdir_flag_spec='-L$libdir'
7215  	  hardcode_libdir_separator=
7216	  fi
7217	esac
7218	shared_flag='-shared'
7219      else
7220	# not using gcc
7221	if test "$host_cpu" = ia64; then
7222  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7223  	# chokes on -Wl,-G. The following line is correct:
7224	  shared_flag='-G'
7225	else
7226  	if test "$aix_use_runtimelinking" = yes; then
7227	    shared_flag='${wl}-G'
7228	  else
7229	    shared_flag='${wl}-bM:SRE'
7230  	fi
7231	fi
7232      fi
7233
7234      # It seems that -bexpall does not export symbols beginning with
7235      # underscore (_), so it is better to generate a list of symbols to export.
7236      always_export_symbols=yes
7237      if test "$aix_use_runtimelinking" = yes; then
7238	# Warning - without using the other runtime loading flags (-brtl),
7239	# -berok will link without error, but may produce a broken library.
7240	allow_undefined_flag='-berok'
7241       # Determine the default libpath from the value encoded in an empty executable.
7242       cat >conftest.$ac_ext <<_ACEOF
7243/* confdefs.h.  */
7244_ACEOF
7245cat confdefs.h >>conftest.$ac_ext
7246cat >>conftest.$ac_ext <<_ACEOF
7247/* end confdefs.h.  */
7248
7249int
7250main ()
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext conftest$ac_exeext
7258if { (ac_try="$ac_link"
7259case "(($ac_try" in
7260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261  *) ac_try_echo=$ac_try;;
7262esac
7263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264  (eval "$ac_link") 2>conftest.er1
7265  ac_status=$?
7266  grep -v '^ *+' conftest.er1 >conftest.err
7267  rm -f conftest.er1
7268  cat conftest.err >&5
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); } && {
7271	 test -z "$ac_c_werror_flag" ||
7272	 test ! -s conftest.err
7273       } && test -s conftest$ac_exeext &&
7274       $as_test_x conftest$ac_exeext; then
7275
7276aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7277}'`
7278# Check for a 64-bit object if we didn't find anything.
7279if 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; }
7280}'`; fi
7281else
7282  echo "$as_me: failed program was:" >&5
7283sed 's/^/| /' conftest.$ac_ext >&5
7284
7285
7286fi
7287
7288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289      conftest$ac_exeext conftest.$ac_ext
7290if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7291
7292       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7293	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7294       else
7295	if test "$host_cpu" = ia64; then
7296	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7297	  allow_undefined_flag="-z nodefs"
7298	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7299	else
7300	 # Determine the default libpath from the value encoded in an empty executable.
7301	 cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h.  */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h.  */
7307
7308int
7309main ()
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext conftest$ac_exeext
7317if { (ac_try="$ac_link"
7318case "(($ac_try" in
7319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320  *) ac_try_echo=$ac_try;;
7321esac
7322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323  (eval "$ac_link") 2>conftest.er1
7324  ac_status=$?
7325  grep -v '^ *+' conftest.er1 >conftest.err
7326  rm -f conftest.er1
7327  cat conftest.err >&5
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); } && {
7330	 test -z "$ac_c_werror_flag" ||
7331	 test ! -s conftest.err
7332       } && test -s conftest$ac_exeext &&
7333       $as_test_x conftest$ac_exeext; then
7334
7335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7336}'`
7337# Check for a 64-bit object if we didn't find anything.
7338if 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; }
7339}'`; fi
7340else
7341  echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344
7345fi
7346
7347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7348      conftest$ac_exeext conftest.$ac_ext
7349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7350
7351	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7352	  # Warning - without using the other run time loading flags,
7353	  # -berok will link without error, but may produce a broken library.
7354	  no_undefined_flag=' ${wl}-bernotok'
7355	  allow_undefined_flag=' ${wl}-berok'
7356	  # -bexpall does not export symbols beginning with underscore (_)
7357	  always_export_symbols=yes
7358	  # Exported symbols can be pulled into shared objects from archives
7359	  whole_archive_flag_spec=' '
7360	  archive_cmds_need_lc=yes
7361	  # This is similar to how AIX traditionally builds it's shared libraries.
7362	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7363	fi
7364      fi
7365      ;;
7366
7367    amigaos*)
7368      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)'
7369      hardcode_libdir_flag_spec='-L$libdir'
7370      hardcode_minus_L=yes
7371      # see comment about different semantics on the GNU ld section
7372      ld_shlibs=no
7373      ;;
7374
7375    bsdi4*)
7376      export_dynamic_flag_spec=-rdynamic
7377      ;;
7378
7379    cygwin* | mingw* | pw32*)
7380      # When not using gcc, we currently assume that we are using
7381      # Microsoft Visual C++.
7382      # hardcode_libdir_flag_spec is actually meaningless, as there is
7383      # no search path for DLLs.
7384      hardcode_libdir_flag_spec=' '
7385      allow_undefined_flag=unsupported
7386      # Tell ltmain to make .lib files, not .a files.
7387      libext=lib
7388      # Tell ltmain to make .dll files, not .so files.
7389      shrext=".dll"
7390      # FIXME: Setting linknames here is a bad hack.
7391      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7392      # The linker will automatically build a .lib file if we build a DLL.
7393      old_archive_From_new_cmds='true'
7394      # FIXME: Should let the user specify the lib program.
7395      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7396      fix_srcfile_path='`cygpath -w "$srcfile"`'
7397      enable_shared_with_static_runtimes=yes
7398      ;;
7399
7400    darwin* | rhapsody*)
7401    if test "$GXX" = yes ; then
7402      archive_cmds_need_lc=no
7403      case "$host_os" in
7404      rhapsody* | darwin1.[012])
7405	allow_undefined_flag='-undefined suppress'
7406	;;
7407      *) # Darwin 1.3 on
7408      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7409      	allow_undefined_flag='-flat_namespace -undefined suppress'
7410      else
7411        case ${MACOSX_DEPLOYMENT_TARGET} in
7412          10.[012])
7413            allow_undefined_flag='-flat_namespace -undefined suppress'
7414            ;;
7415          10.*)
7416            allow_undefined_flag='-undefined dynamic_lookup'
7417            ;;
7418        esac
7419      fi
7420	;;
7421      esac
7422    	lt_int_apple_cc_single_mod=no
7423    	output_verbose_link_cmd='echo'
7424    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7425    	  lt_int_apple_cc_single_mod=yes
7426    	fi
7427    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7428    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7429    	else
7430        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7431      fi
7432      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7433      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7434        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7435          archive_expsym_cmds='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}'
7436        else
7437          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7438        fi
7439          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}'
7440      hardcode_direct=no
7441      hardcode_automatic=yes
7442      hardcode_shlibpath_var=unsupported
7443      whole_archive_flag_spec='-all_load $convenience'
7444      link_all_deplibs=yes
7445    else
7446      ld_shlibs=no
7447    fi
7448      ;;
7449
7450    dgux*)
7451      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452      hardcode_libdir_flag_spec='-L$libdir'
7453      hardcode_shlibpath_var=no
7454      ;;
7455
7456    freebsd1*)
7457      ld_shlibs=no
7458      ;;
7459
7460    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7461    # support.  Future versions do this automatically, but an explicit c++rt0.o
7462    # does not break anything, and helps significantly (at the cost of a little
7463    # extra space).
7464    freebsd2.2*)
7465      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7466      hardcode_libdir_flag_spec='-R$libdir'
7467      hardcode_direct=yes
7468      hardcode_shlibpath_var=no
7469      ;;
7470
7471    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7472    freebsd2*)
7473      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7474      hardcode_direct=yes
7475      hardcode_minus_L=yes
7476      hardcode_shlibpath_var=no
7477      ;;
7478
7479    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7480    freebsd* | kfreebsd*-gnu)
7481      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7482      hardcode_libdir_flag_spec='-R$libdir'
7483      hardcode_direct=yes
7484      hardcode_shlibpath_var=no
7485      ;;
7486
7487    hpux9*)
7488      if test "$GCC" = yes; then
7489	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'
7490      else
7491	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'
7492      fi
7493      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7494      hardcode_libdir_separator=:
7495      hardcode_direct=yes
7496
7497      # hardcode_minus_L: Not really in the search PATH,
7498      # but as the default location of the library.
7499      hardcode_minus_L=yes
7500      export_dynamic_flag_spec='${wl}-E'
7501      ;;
7502
7503    hpux10* | hpux11*)
7504      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7505	case "$host_cpu" in
7506	hppa*64*|ia64*)
7507	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7508	  ;;
7509	*)
7510	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7511	  ;;
7512	esac
7513      else
7514	case "$host_cpu" in
7515	hppa*64*|ia64*)
7516	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7517	  ;;
7518	*)
7519	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7520	  ;;
7521	esac
7522      fi
7523      if test "$with_gnu_ld" = no; then
7524	case "$host_cpu" in
7525	hppa*64*)
7526	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7527	  hardcode_libdir_flag_spec_ld='+b $libdir'
7528	  hardcode_libdir_separator=:
7529	  hardcode_direct=no
7530	  hardcode_shlibpath_var=no
7531	  ;;
7532	ia64*)
7533	  hardcode_libdir_flag_spec='-L$libdir'
7534	  hardcode_direct=no
7535	  hardcode_shlibpath_var=no
7536
7537	  # hardcode_minus_L: Not really in the search PATH,
7538	  # but as the default location of the library.
7539	  hardcode_minus_L=yes
7540	  ;;
7541	*)
7542	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7543	  hardcode_libdir_separator=:
7544	  hardcode_direct=yes
7545	  export_dynamic_flag_spec='${wl}-E'
7546
7547	  # hardcode_minus_L: Not really in the search PATH,
7548	  # but as the default location of the library.
7549	  hardcode_minus_L=yes
7550	  ;;
7551	esac
7552      fi
7553      ;;
7554
7555    irix5* | irix6* | nonstopux*)
7556      if test "$GCC" = yes; then
7557	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'
7558      else
7559	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'
7560	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7561      fi
7562      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7563      hardcode_libdir_separator=:
7564      link_all_deplibs=yes
7565      ;;
7566
7567    netbsd*)
7568      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7569	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7570      else
7571	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7572      fi
7573      hardcode_libdir_flag_spec='-R$libdir'
7574      hardcode_direct=yes
7575      hardcode_shlibpath_var=no
7576      ;;
7577
7578    newsos6)
7579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580      hardcode_direct=yes
7581      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7582      hardcode_libdir_separator=:
7583      hardcode_shlibpath_var=no
7584      ;;
7585
7586    openbsd*)
7587      hardcode_direct=yes
7588      hardcode_shlibpath_var=no
7589      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7590	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7591	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7592	export_dynamic_flag_spec='${wl}-E'
7593      else
7594       case $host_os in
7595	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7596	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7597	   hardcode_libdir_flag_spec='-R$libdir'
7598	   ;;
7599	 *)
7600	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7601	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7602	   ;;
7603       esac
7604      fi
7605      ;;
7606
7607    os2*)
7608      hardcode_libdir_flag_spec='-L$libdir'
7609      hardcode_minus_L=yes
7610      allow_undefined_flag=unsupported
7611      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'
7612      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7613      ;;
7614
7615    osf3*)
7616      if test "$GCC" = yes; then
7617	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7618	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'
7619      else
7620	allow_undefined_flag=' -expect_unresolved \*'
7621	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'
7622      fi
7623      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624      hardcode_libdir_separator=:
7625      ;;
7626
7627    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7628      if test "$GCC" = yes; then
7629	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7630	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'
7631	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7632      else
7633	allow_undefined_flag=' -expect_unresolved \*'
7634	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'
7635	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7636	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7637
7638	# Both c and cxx compiler support -rpath directly
7639	hardcode_libdir_flag_spec='-rpath $libdir'
7640      fi
7641      hardcode_libdir_separator=:
7642      ;;
7643
7644    sco3.2v5*)
7645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646      hardcode_shlibpath_var=no
7647      export_dynamic_flag_spec='${wl}-Bexport'
7648      runpath_var=LD_RUN_PATH
7649      hardcode_runpath_var=yes
7650      ;;
7651
7652    solaris*)
7653      no_undefined_flag=' -z text'
7654      if test "$GCC" = yes; then
7655	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7656	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7657	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7658      else
7659	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7662      fi
7663      hardcode_libdir_flag_spec='-R$libdir'
7664      hardcode_shlibpath_var=no
7665      case $host_os in
7666      solaris2.[0-5] | solaris2.[0-5].*) ;;
7667      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7668	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7669      esac
7670      link_all_deplibs=yes
7671      ;;
7672
7673    sunos4*)
7674      if test "x$host_vendor" = xsequent; then
7675	# Use $CC to link under sequent, because it throws in some extra .o
7676	# files that make .init and .fini sections work.
7677	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7678      else
7679	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7680      fi
7681      hardcode_libdir_flag_spec='-L$libdir'
7682      hardcode_direct=yes
7683      hardcode_minus_L=yes
7684      hardcode_shlibpath_var=no
7685      ;;
7686
7687    sysv4)
7688      case $host_vendor in
7689	sni)
7690	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7691	  hardcode_direct=yes # is this really true???
7692	;;
7693	siemens)
7694	  ## LD is ld it makes a PLAMLIB
7695	  ## CC just makes a GrossModule.
7696	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7697	  reload_cmds='$CC -r -o $output$reload_objs'
7698	  hardcode_direct=no
7699        ;;
7700	motorola)
7701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7703	;;
7704      esac
7705      runpath_var='LD_RUN_PATH'
7706      hardcode_shlibpath_var=no
7707      ;;
7708
7709    sysv4.3*)
7710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7711      hardcode_shlibpath_var=no
7712      export_dynamic_flag_spec='-Bexport'
7713      ;;
7714
7715    sysv4*MP*)
7716      if test -d /usr/nec; then
7717	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718	hardcode_shlibpath_var=no
7719	runpath_var=LD_RUN_PATH
7720	hardcode_runpath_var=yes
7721	ld_shlibs=yes
7722      fi
7723      ;;
7724
7725    sysv4.2uw2*)
7726      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7727      hardcode_direct=yes
7728      hardcode_minus_L=no
7729      hardcode_shlibpath_var=no
7730      hardcode_runpath_var=yes
7731      runpath_var=LD_RUN_PATH
7732      ;;
7733
7734   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7735      no_undefined_flag='${wl}-z ${wl}text'
7736      if test "$GCC" = yes; then
7737	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7738      else
7739	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740      fi
7741      runpath_var='LD_RUN_PATH'
7742      hardcode_shlibpath_var=no
7743      ;;
7744
7745    sysv5*)
7746      no_undefined_flag=' -z text'
7747      # $CC -shared without GNU ld will not create a library from C++
7748      # object files and a static libstdc++, better avoid it by now
7749      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7750      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7751  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7752      hardcode_libdir_flag_spec=
7753      hardcode_shlibpath_var=no
7754      runpath_var='LD_RUN_PATH'
7755      ;;
7756
7757    uts4*)
7758      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7759      hardcode_libdir_flag_spec='-L$libdir'
7760      hardcode_shlibpath_var=no
7761      ;;
7762
7763    *)
7764      ld_shlibs=no
7765      ;;
7766    esac
7767  fi
7768
7769{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7770echo "${ECHO_T}$ld_shlibs" >&6; }
7771test "$ld_shlibs" = no && can_build_shared=no
7772
7773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7774if test "$GCC" = yes; then
7775  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7776fi
7777
7778#
7779# Do we need to explicitly link libc?
7780#
7781case "x$archive_cmds_need_lc" in
7782x|xyes)
7783  # Assume -lc should be added
7784  archive_cmds_need_lc=yes
7785
7786  if test "$enable_shared" = yes && test "$GCC" = yes; then
7787    case $archive_cmds in
7788    *'~'*)
7789      # FIXME: we may have to deal with multi-command sequences.
7790      ;;
7791    '$CC '*)
7792      # Test whether the compiler implicitly links with -lc since on some
7793      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7794      # to ld, don't add -lc before -lgcc.
7795      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7796echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7797      $rm conftest*
7798      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799
7800      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801  (eval $ac_compile) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); } 2>conftest.err; then
7805        soname=conftest
7806        lib=conftest
7807        libobjs=conftest.$ac_objext
7808        deplibs=
7809        wl=$lt_prog_compiler_wl
7810        compiler_flags=-v
7811        linker_flags=-v
7812        verstring=
7813        output_objdir=.
7814        libname=conftest
7815        lt_save_allow_undefined_flag=$allow_undefined_flag
7816        allow_undefined_flag=
7817        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7818  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7819  ac_status=$?
7820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821  (exit $ac_status); }
7822        then
7823	  archive_cmds_need_lc=no
7824        else
7825	  archive_cmds_need_lc=yes
7826        fi
7827        allow_undefined_flag=$lt_save_allow_undefined_flag
7828      else
7829        cat conftest.err 1>&5
7830      fi
7831      $rm conftest*
7832      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7833echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7834      ;;
7835    esac
7836  fi
7837  ;;
7838esac
7839
7840{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7841echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7842library_names_spec=
7843libname_spec='lib$name'
7844soname_spec=
7845shrext=".so"
7846postinstall_cmds=
7847postuninstall_cmds=
7848finish_cmds=
7849finish_eval=
7850shlibpath_var=
7851shlibpath_overrides_runpath=unknown
7852version_type=none
7853dynamic_linker="$host_os ld.so"
7854sys_lib_dlsearch_path_spec="/lib /usr/lib"
7855if test "$GCC" = yes; then
7856  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7857  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7858    # if the path contains ";" then we assume it to be the separator
7859    # otherwise default to the standard path separator (i.e. ":") - it is
7860    # assumed that no part of a normal pathname contains ";" but that should
7861    # okay in the real world where ";" in dirpaths is itself problematic.
7862    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7863  else
7864    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7865  fi
7866else
7867  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7868fi
7869need_lib_prefix=unknown
7870hardcode_into_libs=no
7871
7872# when you set need_version to no, make sure it does not cause -set_version
7873# flags to be left without arguments
7874need_version=unknown
7875
7876case $host_os in
7877aix3*)
7878  version_type=linux
7879  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7880  shlibpath_var=LIBPATH
7881
7882  # AIX 3 has no versioning support, so we append a major version to the name.
7883  soname_spec='${libname}${release}${shared_ext}$major'
7884  ;;
7885
7886aix4* | aix5*)
7887  version_type=linux
7888  need_lib_prefix=no
7889  need_version=no
7890  hardcode_into_libs=yes
7891  if test "$host_cpu" = ia64; then
7892    # AIX 5 supports IA64
7893    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7894    shlibpath_var=LD_LIBRARY_PATH
7895  else
7896    # With GCC up to 2.95.x, collect2 would create an import file
7897    # for dependence libraries.  The import file would start with
7898    # the line `#! .'.  This would cause the generated library to
7899    # depend on `.', always an invalid library.  This was fixed in
7900    # development snapshots of GCC prior to 3.0.
7901    case $host_os in
7902      aix4 | aix4.[01] | aix4.[01].*)
7903      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7904	   echo ' yes '
7905	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7906	:
7907      else
7908	can_build_shared=no
7909      fi
7910      ;;
7911    esac
7912    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7913    # soname into executable. Probably we can add versioning support to
7914    # collect2, so additional links can be useful in future.
7915    if test "$aix_use_runtimelinking" = yes; then
7916      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7917      # instead of lib<name>.a to let people know that these are not
7918      # typical AIX shared libraries.
7919      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920    else
7921      # We preserve .a as extension for shared libraries through AIX4.2
7922      # and later when we are not doing run time linking.
7923      library_names_spec='${libname}${release}.a $libname.a'
7924      soname_spec='${libname}${release}${shared_ext}$major'
7925    fi
7926    shlibpath_var=LIBPATH
7927  fi
7928  ;;
7929
7930amigaos*)
7931  library_names_spec='$libname.ixlibrary $libname.a'
7932  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7933  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'
7934  ;;
7935
7936beos*)
7937  library_names_spec='${libname}${shared_ext}'
7938  dynamic_linker="$host_os ld.so"
7939  shlibpath_var=LIBRARY_PATH
7940  ;;
7941
7942bsdi4*)
7943  version_type=linux
7944  need_version=no
7945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7946  soname_spec='${libname}${release}${shared_ext}$major'
7947  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7948  shlibpath_var=LD_LIBRARY_PATH
7949  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7950  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7951  # the default ld.so.conf also contains /usr/contrib/lib and
7952  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7953  # libtool to hard-code these into programs
7954  ;;
7955
7956cygwin* | mingw* | pw32*)
7957  version_type=windows
7958  shrext=".dll"
7959  need_version=no
7960  need_lib_prefix=no
7961
7962  case $GCC,$host_os in
7963  yes,cygwin* | yes,mingw* | yes,pw32*)
7964    library_names_spec='$libname.dll.a'
7965    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7966    postinstall_cmds='base_file=`basename \${file}`~
7967      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7968      dldir=$destdir/`dirname \$dlpath`~
7969      test -d \$dldir || mkdir -p \$dldir~
7970      $install_prog $dir/$dlname \$dldir/$dlname'
7971    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7972      dlpath=$dir/\$dldll~
7973       $rm \$dlpath'
7974    shlibpath_overrides_runpath=yes
7975
7976    case $host_os in
7977    cygwin*)
7978      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7979      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7980      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7981      ;;
7982    mingw*)
7983      # MinGW DLLs use traditional 'lib' prefix
7984      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7987        # It is most probably a Windows format PATH printed by
7988        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7989        # path with ; separators, and with drive letters. We can handle the
7990        # drive letters (cygwin fileutils understands them), so leave them,
7991        # especially as we might pass files found there to a mingw objdump,
7992        # which wouldn't understand a cygwinified path. Ahh.
7993        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7994      else
7995        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7996      fi
7997      ;;
7998    pw32*)
7999      # pw32 DLLs use 'pw' prefix rather than 'lib'
8000      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8001      ;;
8002    esac
8003    ;;
8004
8005  *)
8006    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8007    ;;
8008  esac
8009  dynamic_linker='Win32 ld.exe'
8010  # FIXME: first we should search . and the directory the executable is in
8011  shlibpath_var=PATH
8012  ;;
8013
8014darwin* | rhapsody*)
8015  dynamic_linker="$host_os dyld"
8016  version_type=darwin
8017  need_lib_prefix=no
8018  need_version=no
8019  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8020  soname_spec='${libname}${release}${major}$shared_ext'
8021  shlibpath_overrides_runpath=yes
8022  shlibpath_var=DYLD_LIBRARY_PATH
8023  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8024  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8025  if test "$GCC" = yes; then
8026    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"`
8027  else
8028    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8029  fi
8030  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8031  ;;
8032
8033dgux*)
8034  version_type=linux
8035  need_lib_prefix=no
8036  need_version=no
8037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8038  soname_spec='${libname}${release}${shared_ext}$major'
8039  shlibpath_var=LD_LIBRARY_PATH
8040  ;;
8041
8042freebsd1*)
8043  dynamic_linker=no
8044  ;;
8045
8046kfreebsd*-gnu)
8047  version_type=linux
8048  need_lib_prefix=no
8049  need_version=no
8050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8051  soname_spec='${libname}${release}${shared_ext}$major'
8052  shlibpath_var=LD_LIBRARY_PATH
8053  shlibpath_overrides_runpath=no
8054  hardcode_into_libs=yes
8055  dynamic_linker='GNU ld.so'
8056  ;;
8057
8058freebsd*)
8059  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8060  version_type=freebsd-$objformat
8061  case $version_type in
8062    freebsd-elf*)
8063      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8064      need_version=no
8065      need_lib_prefix=no
8066      ;;
8067    freebsd-*)
8068      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8069      need_version=yes
8070      ;;
8071  esac
8072  shlibpath_var=LD_LIBRARY_PATH
8073  case $host_os in
8074  freebsd2*)
8075    shlibpath_overrides_runpath=yes
8076    ;;
8077  freebsd3.01* | freebsdelf3.01*)
8078    shlibpath_overrides_runpath=yes
8079    hardcode_into_libs=yes
8080    ;;
8081  *) # from 3.2 on
8082    shlibpath_overrides_runpath=no
8083    hardcode_into_libs=yes
8084    ;;
8085  esac
8086  ;;
8087
8088gnu*)
8089  version_type=linux
8090  need_lib_prefix=no
8091  need_version=no
8092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8093  soname_spec='${libname}${release}${shared_ext}$major'
8094  shlibpath_var=LD_LIBRARY_PATH
8095  hardcode_into_libs=yes
8096  ;;
8097
8098hpux9* | hpux10* | hpux11*)
8099  # Give a soname corresponding to the major version so that dld.sl refuses to
8100  # link against other versions.
8101  version_type=sunos
8102  need_lib_prefix=no
8103  need_version=no
8104  case "$host_cpu" in
8105  ia64*)
8106    shrext='.so'
8107    hardcode_into_libs=yes
8108    dynamic_linker="$host_os dld.so"
8109    shlibpath_var=LD_LIBRARY_PATH
8110    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112    soname_spec='${libname}${release}${shared_ext}$major'
8113    if test "X$HPUX_IA64_MODE" = X32; then
8114      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8115    else
8116      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8117    fi
8118    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8119    ;;
8120   hppa*64*)
8121     shrext='.sl'
8122     hardcode_into_libs=yes
8123     dynamic_linker="$host_os dld.sl"
8124     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8125     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127     soname_spec='${libname}${release}${shared_ext}$major'
8128     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8129     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8130     ;;
8131   *)
8132    shrext='.sl'
8133    dynamic_linker="$host_os dld.sl"
8134    shlibpath_var=SHLIB_PATH
8135    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8136    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137    soname_spec='${libname}${release}${shared_ext}$major'
8138    ;;
8139  esac
8140  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8141  postinstall_cmds='chmod 555 $lib'
8142  ;;
8143
8144irix5* | irix6* | nonstopux*)
8145  case $host_os in
8146    nonstopux*) version_type=nonstopux ;;
8147    *)
8148	if test "$lt_cv_prog_gnu_ld" = yes; then
8149		version_type=linux
8150	else
8151		version_type=irix
8152	fi ;;
8153  esac
8154  need_lib_prefix=no
8155  need_version=no
8156  soname_spec='${libname}${release}${shared_ext}$major'
8157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8158  case $host_os in
8159  irix5* | nonstopux*)
8160    libsuff= shlibsuff=
8161    ;;
8162  *)
8163    case $LD in # libtool.m4 will add one of these switches to LD
8164    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8165      libsuff= shlibsuff= libmagic=32-bit;;
8166    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8167      libsuff=32 shlibsuff=N32 libmagic=N32;;
8168    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8169      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8170    *) libsuff= shlibsuff= libmagic=never-match;;
8171    esac
8172    ;;
8173  esac
8174  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8175  shlibpath_overrides_runpath=no
8176  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8177  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8178  hardcode_into_libs=yes
8179  ;;
8180
8181# No shared lib support for Linux oldld, aout, or coff.
8182linux*oldld* | linux*aout* | linux*coff*)
8183  dynamic_linker=no
8184  ;;
8185
8186# This must be Linux ELF.
8187linux*)
8188  version_type=linux
8189  need_lib_prefix=no
8190  need_version=no
8191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192  soname_spec='${libname}${release}${shared_ext}$major'
8193  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8194  shlibpath_var=LD_LIBRARY_PATH
8195  shlibpath_overrides_runpath=no
8196  # This implies no fast_install, which is unacceptable.
8197  # Some rework will be needed to allow for fast_install
8198  # before this can be enabled.
8199  hardcode_into_libs=yes
8200
8201  # We used to test for /lib/ld.so.1 and disable shared libraries on
8202  # powerpc, because MkLinux only supported shared libraries with the
8203  # GNU dynamic linker.  Since this was broken with cross compilers,
8204  # most powerpc-linux boxes support dynamic linking these days and
8205  # people can always --disable-shared, the test was removed, and we
8206  # assume the GNU/Linux dynamic linker is in use.
8207  dynamic_linker='GNU/Linux ld.so'
8208  ;;
8209
8210netbsd*)
8211  version_type=sunos
8212  need_lib_prefix=no
8213  need_version=no
8214  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8215    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8216    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8217    dynamic_linker='NetBSD (a.out) ld.so'
8218  else
8219    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8220    soname_spec='${libname}${release}${shared_ext}$major'
8221    dynamic_linker='NetBSD ld.elf_so'
8222  fi
8223  shlibpath_var=LD_LIBRARY_PATH
8224  shlibpath_overrides_runpath=yes
8225  hardcode_into_libs=yes
8226  ;;
8227
8228newsos6)
8229  version_type=linux
8230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231  shlibpath_var=LD_LIBRARY_PATH
8232  shlibpath_overrides_runpath=yes
8233  ;;
8234
8235nto-qnx*)
8236  version_type=linux
8237  need_lib_prefix=no
8238  need_version=no
8239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240  soname_spec='${libname}${release}${shared_ext}$major'
8241  shlibpath_var=LD_LIBRARY_PATH
8242  shlibpath_overrides_runpath=yes
8243  ;;
8244
8245openbsd*)
8246  version_type=sunos
8247  need_lib_prefix=no
8248  need_version=no
8249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8250  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8251  shlibpath_var=LD_LIBRARY_PATH
8252  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8253    case $host_os in
8254      openbsd2.[89] | openbsd2.[89].*)
8255	shlibpath_overrides_runpath=no
8256	;;
8257      *)
8258	shlibpath_overrides_runpath=yes
8259	;;
8260      esac
8261  else
8262    shlibpath_overrides_runpath=yes
8263  fi
8264  ;;
8265
8266os2*)
8267  libname_spec='$name'
8268  shrext=".dll"
8269  need_lib_prefix=no
8270  library_names_spec='$libname${shared_ext} $libname.a'
8271  dynamic_linker='OS/2 ld.exe'
8272  shlibpath_var=LIBPATH
8273  ;;
8274
8275osf3* | osf4* | osf5*)
8276  version_type=osf
8277  need_lib_prefix=no
8278  need_version=no
8279  soname_spec='${libname}${release}${shared_ext}$major'
8280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281  shlibpath_var=LD_LIBRARY_PATH
8282  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8283  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8284  ;;
8285
8286sco3.2v5*)
8287  version_type=osf
8288  soname_spec='${libname}${release}${shared_ext}$major'
8289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290  shlibpath_var=LD_LIBRARY_PATH
8291  ;;
8292
8293solaris*)
8294  version_type=linux
8295  need_lib_prefix=no
8296  need_version=no
8297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298  soname_spec='${libname}${release}${shared_ext}$major'
8299  shlibpath_var=LD_LIBRARY_PATH
8300  shlibpath_overrides_runpath=yes
8301  hardcode_into_libs=yes
8302  # ldd complains unless libraries are executable
8303  postinstall_cmds='chmod +x $lib'
8304  ;;
8305
8306sunos4*)
8307  version_type=sunos
8308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8309  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8310  shlibpath_var=LD_LIBRARY_PATH
8311  shlibpath_overrides_runpath=yes
8312  if test "$with_gnu_ld" = yes; then
8313    need_lib_prefix=no
8314  fi
8315  need_version=yes
8316  ;;
8317
8318sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8319  version_type=linux
8320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321  soname_spec='${libname}${release}${shared_ext}$major'
8322  shlibpath_var=LD_LIBRARY_PATH
8323  case $host_vendor in
8324    sni)
8325      shlibpath_overrides_runpath=no
8326      need_lib_prefix=no
8327      export_dynamic_flag_spec='${wl}-Blargedynsym'
8328      runpath_var=LD_RUN_PATH
8329      ;;
8330    siemens)
8331      need_lib_prefix=no
8332      ;;
8333    motorola)
8334      need_lib_prefix=no
8335      need_version=no
8336      shlibpath_overrides_runpath=no
8337      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8338      ;;
8339  esac
8340  ;;
8341
8342sysv4*MP*)
8343  if test -d /usr/nec ;then
8344    version_type=linux
8345    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8346    soname_spec='$libname${shared_ext}.$major'
8347    shlibpath_var=LD_LIBRARY_PATH
8348  fi
8349  ;;
8350
8351uts4*)
8352  version_type=linux
8353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354  soname_spec='${libname}${release}${shared_ext}$major'
8355  shlibpath_var=LD_LIBRARY_PATH
8356  ;;
8357
8358*)
8359  dynamic_linker=no
8360  ;;
8361esac
8362{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8363echo "${ECHO_T}$dynamic_linker" >&6; }
8364test "$dynamic_linker" = no && can_build_shared=no
8365
8366{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8367echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8368hardcode_action=
8369if test -n "$hardcode_libdir_flag_spec" || \
8370   test -n "$runpath_var " || \
8371   test "X$hardcode_automatic"="Xyes" ; then
8372
8373  # We can hardcode non-existant directories.
8374  if test "$hardcode_direct" != no &&
8375     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8376     # have to relink, otherwise we might link with an installed library
8377     # when we should be linking with a yet-to-be-installed one
8378     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8379     test "$hardcode_minus_L" != no; then
8380    # Linking always hardcodes the temporary library directory.
8381    hardcode_action=relink
8382  else
8383    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8384    hardcode_action=immediate
8385  fi
8386else
8387  # We cannot hardcode anything, or else we can only hardcode existing
8388  # directories.
8389  hardcode_action=unsupported
8390fi
8391{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8392echo "${ECHO_T}$hardcode_action" >&6; }
8393
8394if test "$hardcode_action" = relink; then
8395  # Fast installation is not supported
8396  enable_fast_install=no
8397elif test "$shlibpath_overrides_runpath" = yes ||
8398     test "$enable_shared" = no; then
8399  # Fast installation is not necessary
8400  enable_fast_install=needless
8401fi
8402
8403striplib=
8404old_striplib=
8405{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8406echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8407if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8408  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8409  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8410  { echo "$as_me:$LINENO: result: yes" >&5
8411echo "${ECHO_T}yes" >&6; }
8412else
8413# FIXME - insert some real tests, host_os isn't really good enough
8414  case $host_os in
8415   darwin*)
8416       if test -n "$STRIP" ; then
8417         striplib="$STRIP -x"
8418         { echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6; }
8420       else
8421  { echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6; }
8423fi
8424       ;;
8425   *)
8426  { echo "$as_me:$LINENO: result: no" >&5
8427echo "${ECHO_T}no" >&6; }
8428    ;;
8429  esac
8430fi
8431
8432if test "x$enable_dlopen" != xyes; then
8433  enable_dlopen=unknown
8434  enable_dlopen_self=unknown
8435  enable_dlopen_self_static=unknown
8436else
8437  lt_cv_dlopen=no
8438  lt_cv_dlopen_libs=
8439
8440  case $host_os in
8441  beos*)
8442    lt_cv_dlopen="load_add_on"
8443    lt_cv_dlopen_libs=
8444    lt_cv_dlopen_self=yes
8445    ;;
8446
8447  mingw* | pw32*)
8448    lt_cv_dlopen="LoadLibrary"
8449    lt_cv_dlopen_libs=
8450   ;;
8451
8452  cygwin*)
8453    lt_cv_dlopen="dlopen"
8454    lt_cv_dlopen_libs=
8455   ;;
8456
8457  darwin*)
8458  # if libdl is installed we need to link against it
8459    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8460echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8461if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8462  echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464  ac_check_lib_save_LIBS=$LIBS
8465LIBS="-ldl  $LIBS"
8466cat >conftest.$ac_ext <<_ACEOF
8467/* confdefs.h.  */
8468_ACEOF
8469cat confdefs.h >>conftest.$ac_ext
8470cat >>conftest.$ac_ext <<_ACEOF
8471/* end confdefs.h.  */
8472
8473/* Override any GCC internal prototype to avoid an error.
8474   Use char because int might match the return type of a GCC
8475   builtin and then its argument prototype would still apply.  */
8476#ifdef __cplusplus
8477extern "C"
8478#endif
8479char dlopen ();
8480int
8481main ()
8482{
8483return dlopen ();
8484  ;
8485  return 0;
8486}
8487_ACEOF
8488rm -f conftest.$ac_objext conftest$ac_exeext
8489if { (ac_try="$ac_link"
8490case "(($ac_try" in
8491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492  *) ac_try_echo=$ac_try;;
8493esac
8494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495  (eval "$ac_link") 2>conftest.er1
8496  ac_status=$?
8497  grep -v '^ *+' conftest.er1 >conftest.err
8498  rm -f conftest.er1
8499  cat conftest.err >&5
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } && {
8502	 test -z "$ac_c_werror_flag" ||
8503	 test ! -s conftest.err
8504       } && test -s conftest$ac_exeext &&
8505       $as_test_x conftest$ac_exeext; then
8506  ac_cv_lib_dl_dlopen=yes
8507else
8508  echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511	ac_cv_lib_dl_dlopen=no
8512fi
8513
8514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515      conftest$ac_exeext conftest.$ac_ext
8516LIBS=$ac_check_lib_save_LIBS
8517fi
8518{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8519echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8520if test $ac_cv_lib_dl_dlopen = yes; then
8521  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8522else
8523
8524    lt_cv_dlopen="dyld"
8525    lt_cv_dlopen_libs=
8526    lt_cv_dlopen_self=yes
8527
8528fi
8529
8530   ;;
8531
8532  *)
8533    { echo "$as_me:$LINENO: checking for shl_load" >&5
8534echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8535if test "${ac_cv_func_shl_load+set}" = set; then
8536  echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538  cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h.  */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h.  */
8544/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8545   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8546#define shl_load innocuous_shl_load
8547
8548/* System header to define __stub macros and hopefully few prototypes,
8549    which can conflict with char shl_load (); below.
8550    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8551    <limits.h> exists even on freestanding compilers.  */
8552
8553#ifdef __STDC__
8554# include <limits.h>
8555#else
8556# include <assert.h>
8557#endif
8558
8559#undef shl_load
8560
8561/* Override any GCC internal prototype to avoid an error.
8562   Use char because int might match the return type of a GCC
8563   builtin and then its argument prototype would still apply.  */
8564#ifdef __cplusplus
8565extern "C"
8566#endif
8567char shl_load ();
8568/* The GNU C library defines this for functions which it implements
8569    to always fail with ENOSYS.  Some functions are actually named
8570    something starting with __ and the normal name is an alias.  */
8571#if defined __stub_shl_load || defined __stub___shl_load
8572choke me
8573#endif
8574
8575int
8576main ()
8577{
8578return shl_load ();
8579  ;
8580  return 0;
8581}
8582_ACEOF
8583rm -f conftest.$ac_objext conftest$ac_exeext
8584if { (ac_try="$ac_link"
8585case "(($ac_try" in
8586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587  *) ac_try_echo=$ac_try;;
8588esac
8589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590  (eval "$ac_link") 2>conftest.er1
8591  ac_status=$?
8592  grep -v '^ *+' conftest.er1 >conftest.err
8593  rm -f conftest.er1
8594  cat conftest.err >&5
8595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596  (exit $ac_status); } && {
8597	 test -z "$ac_c_werror_flag" ||
8598	 test ! -s conftest.err
8599       } && test -s conftest$ac_exeext &&
8600       $as_test_x conftest$ac_exeext; then
8601  ac_cv_func_shl_load=yes
8602else
8603  echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606	ac_cv_func_shl_load=no
8607fi
8608
8609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610      conftest$ac_exeext conftest.$ac_ext
8611fi
8612{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8613echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8614if test $ac_cv_func_shl_load = yes; then
8615  lt_cv_dlopen="shl_load"
8616else
8617  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8618echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8619if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8620  echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622  ac_check_lib_save_LIBS=$LIBS
8623LIBS="-ldld  $LIBS"
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h.  */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h.  */
8630
8631/* Override any GCC internal prototype to avoid an error.
8632   Use char because int might match the return type of a GCC
8633   builtin and then its argument prototype would still apply.  */
8634#ifdef __cplusplus
8635extern "C"
8636#endif
8637char shl_load ();
8638int
8639main ()
8640{
8641return shl_load ();
8642  ;
8643  return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
8647if { (ac_try="$ac_link"
8648case "(($ac_try" in
8649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650  *) ac_try_echo=$ac_try;;
8651esac
8652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653  (eval "$ac_link") 2>conftest.er1
8654  ac_status=$?
8655  grep -v '^ *+' conftest.er1 >conftest.err
8656  rm -f conftest.er1
8657  cat conftest.err >&5
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); } && {
8660	 test -z "$ac_c_werror_flag" ||
8661	 test ! -s conftest.err
8662       } && test -s conftest$ac_exeext &&
8663       $as_test_x conftest$ac_exeext; then
8664  ac_cv_lib_dld_shl_load=yes
8665else
8666  echo "$as_me: failed program was:" >&5
8667sed 's/^/| /' conftest.$ac_ext >&5
8668
8669	ac_cv_lib_dld_shl_load=no
8670fi
8671
8672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8673      conftest$ac_exeext conftest.$ac_ext
8674LIBS=$ac_check_lib_save_LIBS
8675fi
8676{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8677echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8678if test $ac_cv_lib_dld_shl_load = yes; then
8679  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8680else
8681  { echo "$as_me:$LINENO: checking for dlopen" >&5
8682echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8683if test "${ac_cv_func_dlopen+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686  cat >conftest.$ac_ext <<_ACEOF
8687/* confdefs.h.  */
8688_ACEOF
8689cat confdefs.h >>conftest.$ac_ext
8690cat >>conftest.$ac_ext <<_ACEOF
8691/* end confdefs.h.  */
8692/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8693   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8694#define dlopen innocuous_dlopen
8695
8696/* System header to define __stub macros and hopefully few prototypes,
8697    which can conflict with char dlopen (); below.
8698    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699    <limits.h> exists even on freestanding compilers.  */
8700
8701#ifdef __STDC__
8702# include <limits.h>
8703#else
8704# include <assert.h>
8705#endif
8706
8707#undef dlopen
8708
8709/* Override any GCC internal prototype to avoid an error.
8710   Use char because int might match the return type of a GCC
8711   builtin and then its argument prototype would still apply.  */
8712#ifdef __cplusplus
8713extern "C"
8714#endif
8715char dlopen ();
8716/* The GNU C library defines this for functions which it implements
8717    to always fail with ENOSYS.  Some functions are actually named
8718    something starting with __ and the normal name is an alias.  */
8719#if defined __stub_dlopen || defined __stub___dlopen
8720choke me
8721#endif
8722
8723int
8724main ()
8725{
8726return dlopen ();
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext conftest$ac_exeext
8732if { (ac_try="$ac_link"
8733case "(($ac_try" in
8734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735  *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738  (eval "$ac_link") 2>conftest.er1
8739  ac_status=$?
8740  grep -v '^ *+' conftest.er1 >conftest.err
8741  rm -f conftest.er1
8742  cat conftest.err >&5
8743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744  (exit $ac_status); } && {
8745	 test -z "$ac_c_werror_flag" ||
8746	 test ! -s conftest.err
8747       } && test -s conftest$ac_exeext &&
8748       $as_test_x conftest$ac_exeext; then
8749  ac_cv_func_dlopen=yes
8750else
8751  echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754	ac_cv_func_dlopen=no
8755fi
8756
8757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8758      conftest$ac_exeext conftest.$ac_ext
8759fi
8760{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8761echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8762if test $ac_cv_func_dlopen = yes; then
8763  lt_cv_dlopen="dlopen"
8764else
8765  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8766echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8767if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8768  echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770  ac_check_lib_save_LIBS=$LIBS
8771LIBS="-ldl  $LIBS"
8772cat >conftest.$ac_ext <<_ACEOF
8773/* confdefs.h.  */
8774_ACEOF
8775cat confdefs.h >>conftest.$ac_ext
8776cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h.  */
8778
8779/* Override any GCC internal prototype to avoid an error.
8780   Use char because int might match the return type of a GCC
8781   builtin and then its argument prototype would still apply.  */
8782#ifdef __cplusplus
8783extern "C"
8784#endif
8785char dlopen ();
8786int
8787main ()
8788{
8789return dlopen ();
8790  ;
8791  return 0;
8792}
8793_ACEOF
8794rm -f conftest.$ac_objext conftest$ac_exeext
8795if { (ac_try="$ac_link"
8796case "(($ac_try" in
8797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798  *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801  (eval "$ac_link") 2>conftest.er1
8802  ac_status=$?
8803  grep -v '^ *+' conftest.er1 >conftest.err
8804  rm -f conftest.er1
8805  cat conftest.err >&5
8806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807  (exit $ac_status); } && {
8808	 test -z "$ac_c_werror_flag" ||
8809	 test ! -s conftest.err
8810       } && test -s conftest$ac_exeext &&
8811       $as_test_x conftest$ac_exeext; then
8812  ac_cv_lib_dl_dlopen=yes
8813else
8814  echo "$as_me: failed program was:" >&5
8815sed 's/^/| /' conftest.$ac_ext >&5
8816
8817	ac_cv_lib_dl_dlopen=no
8818fi
8819
8820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8821      conftest$ac_exeext conftest.$ac_ext
8822LIBS=$ac_check_lib_save_LIBS
8823fi
8824{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8825echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8826if test $ac_cv_lib_dl_dlopen = yes; then
8827  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8828else
8829  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8830echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8831if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8832  echo $ECHO_N "(cached) $ECHO_C" >&6
8833else
8834  ac_check_lib_save_LIBS=$LIBS
8835LIBS="-lsvld  $LIBS"
8836cat >conftest.$ac_ext <<_ACEOF
8837/* confdefs.h.  */
8838_ACEOF
8839cat confdefs.h >>conftest.$ac_ext
8840cat >>conftest.$ac_ext <<_ACEOF
8841/* end confdefs.h.  */
8842
8843/* Override any GCC internal prototype to avoid an error.
8844   Use char because int might match the return type of a GCC
8845   builtin and then its argument prototype would still apply.  */
8846#ifdef __cplusplus
8847extern "C"
8848#endif
8849char dlopen ();
8850int
8851main ()
8852{
8853return dlopen ();
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858rm -f conftest.$ac_objext conftest$ac_exeext
8859if { (ac_try="$ac_link"
8860case "(($ac_try" in
8861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862  *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865  (eval "$ac_link") 2>conftest.er1
8866  ac_status=$?
8867  grep -v '^ *+' conftest.er1 >conftest.err
8868  rm -f conftest.er1
8869  cat conftest.err >&5
8870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871  (exit $ac_status); } && {
8872	 test -z "$ac_c_werror_flag" ||
8873	 test ! -s conftest.err
8874       } && test -s conftest$ac_exeext &&
8875       $as_test_x conftest$ac_exeext; then
8876  ac_cv_lib_svld_dlopen=yes
8877else
8878  echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881	ac_cv_lib_svld_dlopen=no
8882fi
8883
8884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885      conftest$ac_exeext conftest.$ac_ext
8886LIBS=$ac_check_lib_save_LIBS
8887fi
8888{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8889echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8890if test $ac_cv_lib_svld_dlopen = yes; then
8891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8892else
8893  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8894echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8895if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8896  echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898  ac_check_lib_save_LIBS=$LIBS
8899LIBS="-ldld  $LIBS"
8900cat >conftest.$ac_ext <<_ACEOF
8901/* confdefs.h.  */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
8905/* end confdefs.h.  */
8906
8907/* Override any GCC internal prototype to avoid an error.
8908   Use char because int might match the return type of a GCC
8909   builtin and then its argument prototype would still apply.  */
8910#ifdef __cplusplus
8911extern "C"
8912#endif
8913char dld_link ();
8914int
8915main ()
8916{
8917return dld_link ();
8918  ;
8919  return 0;
8920}
8921_ACEOF
8922rm -f conftest.$ac_objext conftest$ac_exeext
8923if { (ac_try="$ac_link"
8924case "(($ac_try" in
8925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926  *) ac_try_echo=$ac_try;;
8927esac
8928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929  (eval "$ac_link") 2>conftest.er1
8930  ac_status=$?
8931  grep -v '^ *+' conftest.er1 >conftest.err
8932  rm -f conftest.er1
8933  cat conftest.err >&5
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); } && {
8936	 test -z "$ac_c_werror_flag" ||
8937	 test ! -s conftest.err
8938       } && test -s conftest$ac_exeext &&
8939       $as_test_x conftest$ac_exeext; then
8940  ac_cv_lib_dld_dld_link=yes
8941else
8942  echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945	ac_cv_lib_dld_dld_link=no
8946fi
8947
8948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8949      conftest$ac_exeext conftest.$ac_ext
8950LIBS=$ac_check_lib_save_LIBS
8951fi
8952{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8953echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8954if test $ac_cv_lib_dld_dld_link = yes; then
8955  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8956fi
8957
8958
8959fi
8960
8961
8962fi
8963
8964
8965fi
8966
8967
8968fi
8969
8970
8971fi
8972
8973    ;;
8974  esac
8975
8976  if test "x$lt_cv_dlopen" != xno; then
8977    enable_dlopen=yes
8978  else
8979    enable_dlopen=no
8980  fi
8981
8982  case $lt_cv_dlopen in
8983  dlopen)
8984    save_CPPFLAGS="$CPPFLAGS"
8985    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8986
8987    save_LDFLAGS="$LDFLAGS"
8988    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8989
8990    save_LIBS="$LIBS"
8991    LIBS="$lt_cv_dlopen_libs $LIBS"
8992
8993    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8994echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8995if test "${lt_cv_dlopen_self+set}" = set; then
8996  echo $ECHO_N "(cached) $ECHO_C" >&6
8997else
8998  	  if test "$cross_compiling" = yes; then :
8999  lt_cv_dlopen_self=cross
9000else
9001  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9002  lt_status=$lt_dlunknown
9003  cat > conftest.$ac_ext <<EOF
9004#line 9004 "configure"
9005#include "confdefs.h"
9006
9007#if HAVE_DLFCN_H
9008#include <dlfcn.h>
9009#endif
9010
9011#include <stdio.h>
9012
9013#ifdef RTLD_GLOBAL
9014#  define LT_DLGLOBAL		RTLD_GLOBAL
9015#else
9016#  ifdef DL_GLOBAL
9017#    define LT_DLGLOBAL		DL_GLOBAL
9018#  else
9019#    define LT_DLGLOBAL		0
9020#  endif
9021#endif
9022
9023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9024   find out it does not work in some platform. */
9025#ifndef LT_DLLAZY_OR_NOW
9026#  ifdef RTLD_LAZY
9027#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9028#  else
9029#    ifdef DL_LAZY
9030#      define LT_DLLAZY_OR_NOW		DL_LAZY
9031#    else
9032#      ifdef RTLD_NOW
9033#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9034#      else
9035#        ifdef DL_NOW
9036#          define LT_DLLAZY_OR_NOW	DL_NOW
9037#        else
9038#          define LT_DLLAZY_OR_NOW	0
9039#        endif
9040#      endif
9041#    endif
9042#  endif
9043#endif
9044
9045#ifdef __cplusplus
9046extern "C" void exit (int);
9047#endif
9048
9049void fnord() { int i=42;}
9050int main ()
9051{
9052  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9053  int status = $lt_dlunknown;
9054
9055  if (self)
9056    {
9057      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9058      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9059      /* dlclose (self); */
9060    }
9061
9062    exit (status);
9063}
9064EOF
9065  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066  (eval $ac_link) 2>&5
9067  ac_status=$?
9068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9070    (./conftest; exit; ) 2>/dev/null
9071    lt_status=$?
9072    case x$lt_status in
9073      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9074      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9075      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9076    esac
9077  else :
9078    # compilation failed
9079    lt_cv_dlopen_self=no
9080  fi
9081fi
9082rm -fr conftest*
9083
9084
9085fi
9086{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9087echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9088
9089    if test "x$lt_cv_dlopen_self" = xyes; then
9090      LDFLAGS="$LDFLAGS $link_static_flag"
9091      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9092echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9093if test "${lt_cv_dlopen_self_static+set}" = set; then
9094  echo $ECHO_N "(cached) $ECHO_C" >&6
9095else
9096  	  if test "$cross_compiling" = yes; then :
9097  lt_cv_dlopen_self_static=cross
9098else
9099  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9100  lt_status=$lt_dlunknown
9101  cat > conftest.$ac_ext <<EOF
9102#line 9102 "configure"
9103#include "confdefs.h"
9104
9105#if HAVE_DLFCN_H
9106#include <dlfcn.h>
9107#endif
9108
9109#include <stdio.h>
9110
9111#ifdef RTLD_GLOBAL
9112#  define LT_DLGLOBAL		RTLD_GLOBAL
9113#else
9114#  ifdef DL_GLOBAL
9115#    define LT_DLGLOBAL		DL_GLOBAL
9116#  else
9117#    define LT_DLGLOBAL		0
9118#  endif
9119#endif
9120
9121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9122   find out it does not work in some platform. */
9123#ifndef LT_DLLAZY_OR_NOW
9124#  ifdef RTLD_LAZY
9125#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9126#  else
9127#    ifdef DL_LAZY
9128#      define LT_DLLAZY_OR_NOW		DL_LAZY
9129#    else
9130#      ifdef RTLD_NOW
9131#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9132#      else
9133#        ifdef DL_NOW
9134#          define LT_DLLAZY_OR_NOW	DL_NOW
9135#        else
9136#          define LT_DLLAZY_OR_NOW	0
9137#        endif
9138#      endif
9139#    endif
9140#  endif
9141#endif
9142
9143#ifdef __cplusplus
9144extern "C" void exit (int);
9145#endif
9146
9147void fnord() { int i=42;}
9148int main ()
9149{
9150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9151  int status = $lt_dlunknown;
9152
9153  if (self)
9154    {
9155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9156      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9157      /* dlclose (self); */
9158    }
9159
9160    exit (status);
9161}
9162EOF
9163  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164  (eval $ac_link) 2>&5
9165  ac_status=$?
9166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9168    (./conftest; exit; ) 2>/dev/null
9169    lt_status=$?
9170    case x$lt_status in
9171      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9172      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9173      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9174    esac
9175  else :
9176    # compilation failed
9177    lt_cv_dlopen_self_static=no
9178  fi
9179fi
9180rm -fr conftest*
9181
9182
9183fi
9184{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9185echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9186    fi
9187
9188    CPPFLAGS="$save_CPPFLAGS"
9189    LDFLAGS="$save_LDFLAGS"
9190    LIBS="$save_LIBS"
9191    ;;
9192  esac
9193
9194  case $lt_cv_dlopen_self in
9195  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9196  *) enable_dlopen_self=unknown ;;
9197  esac
9198
9199  case $lt_cv_dlopen_self_static in
9200  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9201  *) enable_dlopen_self_static=unknown ;;
9202  esac
9203fi
9204
9205
9206# Report which librarie types wil actually be built
9207{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9208echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9209{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9210echo "${ECHO_T}$can_build_shared" >&6; }
9211
9212{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9213echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9214test "$can_build_shared" = "no" && enable_shared=no
9215
9216# On AIX, shared libraries and static libraries use the same namespace, and
9217# are all built from PIC.
9218case "$host_os" in
9219aix3*)
9220  test "$enable_shared" = yes && enable_static=no
9221  if test -n "$RANLIB"; then
9222    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9223    postinstall_cmds='$RANLIB $lib'
9224  fi
9225  ;;
9226
9227aix4*)
9228  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9229    test "$enable_shared" = yes && enable_static=no
9230  fi
9231  ;;
9232  darwin* | rhapsody*)
9233  if test "$GCC" = yes; then
9234    archive_cmds_need_lc=no
9235    case "$host_os" in
9236    rhapsody* | darwin1.[012])
9237      allow_undefined_flag='-undefined suppress'
9238      ;;
9239    *) # Darwin 1.3 on
9240      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9241      	allow_undefined_flag='-flat_namespace -undefined suppress'
9242      else
9243        case ${MACOSX_DEPLOYMENT_TARGET} in
9244          10.[012])
9245            allow_undefined_flag='-flat_namespace -undefined suppress'
9246            ;;
9247          10.*)
9248            allow_undefined_flag='-undefined dynamic_lookup'
9249            ;;
9250        esac
9251      fi
9252      ;;
9253    esac
9254    output_verbose_link_cmd='echo'
9255    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9256    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9257    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9258    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}'
9259    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}'
9260    hardcode_direct=no
9261    hardcode_automatic=yes
9262    hardcode_shlibpath_var=unsupported
9263    whole_archive_flag_spec='-all_load $convenience'
9264    link_all_deplibs=yes
9265  else
9266    ld_shlibs=no
9267  fi
9268    ;;
9269esac
9270{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9271echo "${ECHO_T}$enable_shared" >&6; }
9272
9273{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9274echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9275# Make sure either enable_shared or enable_static is yes.
9276test "$enable_shared" = yes || enable_static=yes
9277{ echo "$as_me:$LINENO: result: $enable_static" >&5
9278echo "${ECHO_T}$enable_static" >&6; }
9279
9280# The else clause should only fire when bootstrapping the
9281# libtool distribution, otherwise you forgot to ship ltmain.sh
9282# with your package, and you will get complaints that there are
9283# no rules to generate ltmain.sh.
9284if test -f "$ltmain"; then
9285  # See if we are running on zsh, and set the options which allow our commands through
9286  # without removal of \ escapes.
9287  if test -n "${ZSH_VERSION+set}" ; then
9288    setopt NO_GLOB_SUBST
9289  fi
9290  # Now quote all the things that may contain metacharacters while being
9291  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9292  # variables and quote the copies for generation of the libtool script.
9293  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9294    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9295    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9296    deplibs_check_method reload_flag reload_cmds need_locks \
9297    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9298    lt_cv_sys_global_symbol_to_c_name_address \
9299    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9300    old_postinstall_cmds old_postuninstall_cmds \
9301    compiler \
9302    CC \
9303    LD \
9304    lt_prog_compiler_wl \
9305    lt_prog_compiler_pic \
9306    lt_prog_compiler_static \
9307    lt_prog_compiler_no_builtin_flag \
9308    export_dynamic_flag_spec \
9309    thread_safe_flag_spec \
9310    whole_archive_flag_spec \
9311    enable_shared_with_static_runtimes \
9312    old_archive_cmds \
9313    old_archive_from_new_cmds \
9314    predep_objects \
9315    postdep_objects \
9316    predeps \
9317    postdeps \
9318    compiler_lib_search_path \
9319    archive_cmds \
9320    archive_expsym_cmds \
9321    postinstall_cmds \
9322    postuninstall_cmds \
9323    old_archive_from_expsyms_cmds \
9324    allow_undefined_flag \
9325    no_undefined_flag \
9326    export_symbols_cmds \
9327    hardcode_libdir_flag_spec \
9328    hardcode_libdir_flag_spec_ld \
9329    hardcode_libdir_separator \
9330    hardcode_automatic \
9331    module_cmds \
9332    module_expsym_cmds \
9333    lt_cv_prog_compiler_c_o \
9334    exclude_expsyms \
9335    include_expsyms; do
9336
9337    case $var in
9338    old_archive_cmds | \
9339    old_archive_from_new_cmds | \
9340    archive_cmds | \
9341    archive_expsym_cmds | \
9342    module_cmds | \
9343    module_expsym_cmds | \
9344    old_archive_from_expsyms_cmds | \
9345    export_symbols_cmds | \
9346    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9347    postinstall_cmds | postuninstall_cmds | \
9348    old_postinstall_cmds | old_postuninstall_cmds | \
9349    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9350      # Double-quote double-evaled strings.
9351      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9352      ;;
9353    *)
9354      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9355      ;;
9356    esac
9357  done
9358
9359  case $lt_echo in
9360  *'\$0 --fallback-echo"')
9361    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9362    ;;
9363  esac
9364
9365cfgfile="${ofile}T"
9366  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9367  $rm -f "$cfgfile"
9368  { echo "$as_me:$LINENO: creating $ofile" >&5
9369echo "$as_me: creating $ofile" >&6;}
9370
9371  cat <<__EOF__ >> "$cfgfile"
9372#! $SHELL
9373
9374# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9375# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9376# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9377#
9378# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9379# Free Software Foundation, Inc.
9380#
9381# This file is part of GNU Libtool:
9382# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9383#
9384# This program is free software; you can redistribute it and/or modify
9385# it under the terms of the GNU General Public License as published by
9386# the Free Software Foundation; either version 2 of the License, or
9387# (at your option) any later version.
9388#
9389# This program is distributed in the hope that it will be useful, but
9390# WITHOUT ANY WARRANTY; without even the implied warranty of
9391# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9392# General Public License for more details.
9393#
9394# You should have received a copy of the GNU General Public License
9395# along with this program; if not, write to the Free Software
9396# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
9397#
9398# As a special exception to the GNU General Public License, if you
9399# distribute this file as part of a program that contains a
9400# configuration script generated by Autoconf, you may include it under
9401# the same distribution terms that you use for the rest of that program.
9402
9403# A sed program that does not truncate output.
9404SED=$lt_SED
9405
9406# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9407Xsed="$SED -e s/^X//"
9408
9409# The HP-UX ksh and POSIX shell print the target directory to stdout
9410# if CDPATH is set.
9411if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9412
9413# The names of the tagged configurations supported by this script.
9414available_tags=
9415
9416# ### BEGIN LIBTOOL CONFIG
9417
9418# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9419
9420# Shell to use when invoking shell scripts.
9421SHELL=$lt_SHELL
9422
9423# Whether or not to build shared libraries.
9424build_libtool_libs=$enable_shared
9425
9426# Whether or not to build static libraries.
9427build_old_libs=$enable_static
9428
9429# Whether or not to add -lc for building shared libraries.
9430build_libtool_need_lc=$archive_cmds_need_lc
9431
9432# Whether or not to disallow shared libs when runtime libs are static
9433allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9434
9435# Whether or not to optimize for fast installation.
9436fast_install=$enable_fast_install
9437
9438# The host system.
9439host_alias=$host_alias
9440host=$host
9441
9442# An echo program that does not interpret backslashes.
9443echo=$lt_echo
9444
9445# The archiver.
9446AR=$lt_AR
9447AR_FLAGS=$lt_AR_FLAGS
9448
9449# A C compiler.
9450LTCC=$lt_LTCC
9451
9452# A language-specific compiler.
9453CC=$lt_compiler
9454
9455# Is the compiler the GNU C compiler?
9456with_gcc=$GCC
9457
9458# An ERE matcher.
9459EGREP=$lt_EGREP
9460
9461# The linker used to build libraries.
9462LD=$lt_LD
9463
9464# Whether we need hard or soft links.
9465LN_S=$lt_LN_S
9466
9467# A BSD-compatible nm program.
9468NM=$lt_NM
9469
9470# A symbol stripping program
9471STRIP="$STRIP"
9472
9473# Used to examine libraries when file_magic_cmd begins "file"
9474MAGIC_CMD=$MAGIC_CMD
9475
9476# Used on cygwin: DLL creation program.
9477DLLTOOL="$DLLTOOL"
9478
9479# Used on cygwin: object dumper.
9480OBJDUMP="$OBJDUMP"
9481
9482# Used on cygwin: assembler.
9483AS="$AS"
9484
9485# The name of the directory that contains temporary libtool files.
9486objdir=$objdir
9487
9488# How to create reloadable object files.
9489reload_flag=$lt_reload_flag
9490reload_cmds=$lt_reload_cmds
9491
9492# How to pass a linker flag through the compiler.
9493wl=$lt_lt_prog_compiler_wl
9494
9495# Object file suffix (normally "o").
9496objext="$ac_objext"
9497
9498# Old archive suffix (normally "a").
9499libext="$libext"
9500
9501# Shared library suffix (normally ".so").
9502shrext='$shrext'
9503
9504# Executable file suffix (normally "").
9505exeext="$exeext"
9506
9507# Additional compiler flags for building library objects.
9508pic_flag=$lt_lt_prog_compiler_pic
9509pic_mode=$pic_mode
9510
9511# What is the maximum length of a command?
9512max_cmd_len=$lt_cv_sys_max_cmd_len
9513
9514# Does compiler simultaneously support -c and -o options?
9515compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9516
9517# Must we lock files when doing compilation ?
9518need_locks=$lt_need_locks
9519
9520# Do we need the lib prefix for modules?
9521need_lib_prefix=$need_lib_prefix
9522
9523# Do we need a version for libraries?
9524need_version=$need_version
9525
9526# Whether dlopen is supported.
9527dlopen_support=$enable_dlopen
9528
9529# Whether dlopen of programs is supported.
9530dlopen_self=$enable_dlopen_self
9531
9532# Whether dlopen of statically linked programs is supported.
9533dlopen_self_static=$enable_dlopen_self_static
9534
9535# Compiler flag to prevent dynamic linking.
9536link_static_flag=$lt_lt_prog_compiler_static
9537
9538# Compiler flag to turn off builtin functions.
9539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9540
9541# Compiler flag to allow reflexive dlopens.
9542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9543
9544# Compiler flag to generate shared objects directly from archives.
9545whole_archive_flag_spec=$lt_whole_archive_flag_spec
9546
9547# Compiler flag to generate thread-safe objects.
9548thread_safe_flag_spec=$lt_thread_safe_flag_spec
9549
9550# Library versioning type.
9551version_type=$version_type
9552
9553# Format of library name prefix.
9554libname_spec=$lt_libname_spec
9555
9556# List of archive names.  First name is the real one, the rest are links.
9557# The last name is the one that the linker finds with -lNAME.
9558library_names_spec=$lt_library_names_spec
9559
9560# The coded name of the library, if different from the real name.
9561soname_spec=$lt_soname_spec
9562
9563# Commands used to build and install an old-style archive.
9564RANLIB=$lt_RANLIB
9565old_archive_cmds=$lt_old_archive_cmds
9566old_postinstall_cmds=$lt_old_postinstall_cmds
9567old_postuninstall_cmds=$lt_old_postuninstall_cmds
9568
9569# Create an old-style archive from a shared archive.
9570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9571
9572# Create a temporary old-style archive to link instead of a shared archive.
9573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9574
9575# Commands used to build and install a shared archive.
9576archive_cmds=$lt_archive_cmds
9577archive_expsym_cmds=$lt_archive_expsym_cmds
9578postinstall_cmds=$lt_postinstall_cmds
9579postuninstall_cmds=$lt_postuninstall_cmds
9580
9581# Commands used to build a loadable module (assumed same as above if empty)
9582module_cmds=$lt_module_cmds
9583module_expsym_cmds=$lt_module_expsym_cmds
9584
9585# Commands to strip libraries.
9586old_striplib=$lt_old_striplib
9587striplib=$lt_striplib
9588
9589# Dependencies to place before the objects being linked to create a
9590# shared library.
9591predep_objects=$lt_predep_objects
9592
9593# Dependencies to place after the objects being linked to create a
9594# shared library.
9595postdep_objects=$lt_postdep_objects
9596
9597# Dependencies to place before the objects being linked to create a
9598# shared library.
9599predeps=$lt_predeps
9600
9601# Dependencies to place after the objects being linked to create a
9602# shared library.
9603postdeps=$lt_postdeps
9604
9605# The library search path used internally by the compiler when linking
9606# a shared library.
9607compiler_lib_search_path=$lt_compiler_lib_search_path
9608
9609# Method to check whether dependent libraries are shared objects.
9610deplibs_check_method=$lt_deplibs_check_method
9611
9612# Command to use when deplibs_check_method == file_magic.
9613file_magic_cmd=$lt_file_magic_cmd
9614
9615# Flag that allows shared libraries with undefined symbols to be built.
9616allow_undefined_flag=$lt_allow_undefined_flag
9617
9618# Flag that forces no undefined symbols.
9619no_undefined_flag=$lt_no_undefined_flag
9620
9621# Commands used to finish a libtool library installation in a directory.
9622finish_cmds=$lt_finish_cmds
9623
9624# Same as above, but a single script fragment to be evaled but not shown.
9625finish_eval=$lt_finish_eval
9626
9627# Take the output of nm and produce a listing of raw symbols and C names.
9628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9629
9630# Transform the output of nm in a proper C declaration
9631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9632
9633# Transform the output of nm in a C name address pair
9634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9635
9636# This is the shared library runtime path variable.
9637runpath_var=$runpath_var
9638
9639# This is the shared library path variable.
9640shlibpath_var=$shlibpath_var
9641
9642# Is shlibpath searched before the hard-coded library search path?
9643shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9644
9645# How to hardcode a shared library path into an executable.
9646hardcode_action=$hardcode_action
9647
9648# Whether we should hardcode library paths into libraries.
9649hardcode_into_libs=$hardcode_into_libs
9650
9651# Flag to hardcode \$libdir into a binary during linking.
9652# This must work even if \$libdir does not exist.
9653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9654
9655# If ld is used when linking, flag to hardcode \$libdir into
9656# a binary during linking. This must work even if \$libdir does
9657# not exist.
9658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9659
9660# Whether we need a single -rpath flag with a separated argument.
9661hardcode_libdir_separator=$lt_hardcode_libdir_separator
9662
9663# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9664# resulting binary.
9665hardcode_direct=$hardcode_direct
9666
9667# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9668# resulting binary.
9669hardcode_minus_L=$hardcode_minus_L
9670
9671# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9672# the resulting binary.
9673hardcode_shlibpath_var=$hardcode_shlibpath_var
9674
9675# Set to yes if building a shared library automatically hardcodes DIR into the library
9676# and all subsequent libraries and executables linked against it.
9677hardcode_automatic=$hardcode_automatic
9678
9679# Variables whose values should be saved in libtool wrapper scripts and
9680# restored at relink time.
9681variables_saved_for_relink="$variables_saved_for_relink"
9682
9683# Whether libtool must link a program against all its dependency libraries.
9684link_all_deplibs=$link_all_deplibs
9685
9686# Compile-time system search path for libraries
9687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9688
9689# Run-time system search path for libraries
9690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9691
9692# Fix the shell variable \$srcfile for the compiler.
9693fix_srcfile_path="$fix_srcfile_path"
9694
9695# Set to yes if exported symbols are required.
9696always_export_symbols=$always_export_symbols
9697
9698# The commands to list exported symbols.
9699export_symbols_cmds=$lt_export_symbols_cmds
9700
9701# The commands to extract the exported symbol list from a shared archive.
9702extract_expsyms_cmds=$lt_extract_expsyms_cmds
9703
9704# Symbols that should not be listed in the preloaded symbols.
9705exclude_expsyms=$lt_exclude_expsyms
9706
9707# Symbols that must always be exported.
9708include_expsyms=$lt_include_expsyms
9709
9710# ### END LIBTOOL CONFIG
9711
9712__EOF__
9713
9714
9715  case $host_os in
9716  aix3*)
9717    cat <<\EOF >> "$cfgfile"
9718
9719# AIX sometimes has problems with the GCC collect2 program.  For some
9720# reason, if we set the COLLECT_NAMES environment variable, the problems
9721# vanish in a puff of smoke.
9722if test "X${COLLECT_NAMES+set}" != Xset; then
9723  COLLECT_NAMES=
9724  export COLLECT_NAMES
9725fi
9726EOF
9727    ;;
9728  esac
9729
9730  # We use sed instead of cat because bash on DJGPP gets confused if
9731  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9732  # text mode, it properly converts lines to CR/LF.  This bash problem
9733  # is reportedly fixed, but why not run on old versions too?
9734  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9735
9736  mv -f "$cfgfile" "$ofile" || \
9737    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9738  chmod +x "$ofile"
9739
9740else
9741  # If there is no Makefile yet, we rely on a make rule to execute
9742  # `config.status --recheck' to rerun these tests and create the
9743  # libtool script then.
9744  test -f Makefile && make "$ltmain"
9745fi
9746
9747
9748ac_ext=c
9749ac_cpp='$CPP $CPPFLAGS'
9750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753
9754CC="$lt_save_CC"
9755
9756
9757# Check whether --with-tags was given.
9758if test "${with_tags+set}" = set; then
9759  withval=$with_tags; tagnames="$withval"
9760fi
9761
9762
9763if test -f "$ltmain" && test -n "$tagnames"; then
9764  if test ! -f "${ofile}"; then
9765    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9766echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9767  fi
9768
9769  if test -z "$LTCC"; then
9770    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9771    if test -z "$LTCC"; then
9772      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9773echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9774    else
9775      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9776echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9777    fi
9778  fi
9779
9780  # Extract list of available tagged configurations in $ofile.
9781  # Note that this assumes the entire list is on one line.
9782  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9783
9784  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9785  for tagname in $tagnames; do
9786    IFS="$lt_save_ifs"
9787    # Check whether tagname contains only valid characters
9788    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9789    "") ;;
9790    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9791echo "$as_me: error: invalid tag name: $tagname" >&2;}
9792   { (exit 1); exit 1; }; }
9793	;;
9794    esac
9795
9796    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9797    then
9798      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9799echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9800   { (exit 1); exit 1; }; }
9801    fi
9802
9803    # Update the list of available tags.
9804    if test -n "$tagname"; then
9805      echo appending configuration tag \"$tagname\" to $ofile
9806
9807      case $tagname in
9808      CXX)
9809	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9810	  ac_ext=cpp
9811ac_cpp='$CXXCPP $CPPFLAGS'
9812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9815
9816
9817
9818
9819archive_cmds_need_lc_CXX=no
9820allow_undefined_flag_CXX=
9821always_export_symbols_CXX=no
9822archive_expsym_cmds_CXX=
9823export_dynamic_flag_spec_CXX=
9824hardcode_direct_CXX=no
9825hardcode_libdir_flag_spec_CXX=
9826hardcode_libdir_flag_spec_ld_CXX=
9827hardcode_libdir_separator_CXX=
9828hardcode_minus_L_CXX=no
9829hardcode_automatic_CXX=no
9830module_cmds_CXX=
9831module_expsym_cmds_CXX=
9832link_all_deplibs_CXX=unknown
9833old_archive_cmds_CXX=$old_archive_cmds
9834no_undefined_flag_CXX=
9835whole_archive_flag_spec_CXX=
9836enable_shared_with_static_runtimes_CXX=no
9837
9838# Dependencies to place before and after the object being linked:
9839predep_objects_CXX=
9840postdep_objects_CXX=
9841predeps_CXX=
9842postdeps_CXX=
9843compiler_lib_search_path_CXX=
9844
9845# Source file extension for C++ test sources.
9846ac_ext=cc
9847
9848# Object file extension for compiled C++ test sources.
9849objext=o
9850objext_CXX=$objext
9851
9852# Code to be used in simple compile tests
9853lt_simple_compile_test_code="int some_variable = 0;\n"
9854
9855# Code to be used in simple link tests
9856lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9857
9858# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9859
9860# If no C compiler was specified, use CC.
9861LTCC=${LTCC-"$CC"}
9862
9863# Allow CC to be a program name with arguments.
9864compiler=$CC
9865
9866
9867# Allow CC to be a program name with arguments.
9868lt_save_CC=$CC
9869lt_save_LD=$LD
9870lt_save_GCC=$GCC
9871GCC=$GXX
9872lt_save_with_gnu_ld=$with_gnu_ld
9873lt_save_path_LD=$lt_cv_path_LD
9874if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9875  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9876else
9877  unset lt_cv_prog_gnu_ld
9878fi
9879if test -n "${lt_cv_path_LDCXX+set}"; then
9880  lt_cv_path_LD=$lt_cv_path_LDCXX
9881else
9882  unset lt_cv_path_LD
9883fi
9884test -z "${LDCXX+set}" || LD=$LDCXX
9885CC=${CXX-"c++"}
9886compiler=$CC
9887compiler_CXX=$CC
9888cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9889
9890# We don't want -fno-exception wen compiling C++ code, so set the
9891# no_builtin_flag separately
9892if test "$GXX" = yes; then
9893  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9894else
9895  lt_prog_compiler_no_builtin_flag_CXX=
9896fi
9897
9898if test "$GXX" = yes; then
9899  # Set up default GNU C++ configuration
9900
9901
9902# Check whether --with-gnu-ld was given.
9903if test "${with_gnu_ld+set}" = set; then
9904  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9905else
9906  with_gnu_ld=no
9907fi
9908
9909ac_prog=ld
9910if test "$GCC" = yes; then
9911  # Check if gcc -print-prog-name=ld gives a path.
9912  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9913echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9914  case $host in
9915  *-*-mingw*)
9916    # gcc leaves a trailing carriage return which upsets mingw
9917    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9918  *)
9919    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9920  esac
9921  case $ac_prog in
9922    # Accept absolute paths.
9923    [\\/]* | ?:[\\/]*)
9924      re_direlt='/[^/][^/]*/\.\./'
9925      # Canonicalize the pathname of ld
9926      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9927      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9928	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9929      done
9930      test -z "$LD" && LD="$ac_prog"
9931      ;;
9932  "")
9933    # If it fails, then pretend we aren't using GCC.
9934    ac_prog=ld
9935    ;;
9936  *)
9937    # If it is relative, then search for the first ld in PATH.
9938    with_gnu_ld=unknown
9939    ;;
9940  esac
9941elif test "$with_gnu_ld" = yes; then
9942  { echo "$as_me:$LINENO: checking for GNU ld" >&5
9943echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9944else
9945  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9946echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9947fi
9948if test "${lt_cv_path_LD+set}" = set; then
9949  echo $ECHO_N "(cached) $ECHO_C" >&6
9950else
9951  if test -z "$LD"; then
9952  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9953  for ac_dir in $PATH; do
9954    IFS="$lt_save_ifs"
9955    test -z "$ac_dir" && ac_dir=.
9956    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9957      lt_cv_path_LD="$ac_dir/$ac_prog"
9958      # Check to see if the program is GNU ld.  I'd rather use --version,
9959      # but apparently some GNU ld's only accept -v.
9960      # Break only if it was the GNU/non-GNU ld that we prefer.
9961      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9962      *GNU* | *'with BFD'*)
9963	test "$with_gnu_ld" != no && break
9964	;;
9965      *)
9966	test "$with_gnu_ld" != yes && break
9967	;;
9968      esac
9969    fi
9970  done
9971  IFS="$lt_save_ifs"
9972else
9973  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9974fi
9975fi
9976
9977LD="$lt_cv_path_LD"
9978if test -n "$LD"; then
9979  { echo "$as_me:$LINENO: result: $LD" >&5
9980echo "${ECHO_T}$LD" >&6; }
9981else
9982  { echo "$as_me:$LINENO: result: no" >&5
9983echo "${ECHO_T}no" >&6; }
9984fi
9985test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9986echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9987   { (exit 1); exit 1; }; }
9988{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9989echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9990if test "${lt_cv_prog_gnu_ld+set}" = set; then
9991  echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9994case `$LD -v 2>&1 </dev/null` in
9995*GNU* | *'with BFD'*)
9996  lt_cv_prog_gnu_ld=yes
9997  ;;
9998*)
9999  lt_cv_prog_gnu_ld=no
10000  ;;
10001esac
10002fi
10003{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10004echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10005with_gnu_ld=$lt_cv_prog_gnu_ld
10006
10007
10008
10009  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10010  # archiving commands below assume that GNU ld is being used.
10011  if test "$with_gnu_ld" = yes; then
10012    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013    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'
10014
10015    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10016    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10017
10018    # If archive_cmds runs LD, not CC, wlarc should be empty
10019    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10020    #     investigate it a little bit more. (MM)
10021    wlarc='${wl}'
10022
10023    # ancient GNU ld didn't support --whole-archive et. al.
10024    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10025	grep 'no-whole-archive' > /dev/null; then
10026      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10027    else
10028      whole_archive_flag_spec_CXX=
10029    fi
10030  else
10031    with_gnu_ld=no
10032    wlarc=
10033
10034    # A generic and very simple default shared library creation
10035    # command for GNU C++ for the case where it uses the native
10036    # linker, instead of GNU ld.  If possible, this setting should
10037    # overridden to take advantage of the native linker features on
10038    # the platform it is being used on.
10039    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10040  fi
10041
10042  # Commands to make compiler produce verbose output that lists
10043  # what "hidden" libraries, object files and flags are used when
10044  # linking a shared library.
10045  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10046
10047else
10048  GXX=no
10049  with_gnu_ld=no
10050  wlarc=
10051fi
10052
10053# PORTME: fill in a description of your system's C++ link characteristics
10054{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10055echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10056ld_shlibs_CXX=yes
10057case $host_os in
10058  aix3*)
10059    # FIXME: insert proper C++ library support
10060    ld_shlibs_CXX=no
10061    ;;
10062  aix4* | aix5*)
10063    if test "$host_cpu" = ia64; then
10064      # On IA64, the linker does run time linking by default, so we don't
10065      # have to do anything special.
10066      aix_use_runtimelinking=no
10067      exp_sym_flag='-Bexport'
10068      no_entry_flag=""
10069    else
10070      aix_use_runtimelinking=no
10071
10072      # Test if we are trying to use run time linking or normal
10073      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10074      # need to do runtime linking.
10075      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10076	for ld_flag in $LDFLAGS; do
10077	  case $ld_flag in
10078	  *-brtl*)
10079	    aix_use_runtimelinking=yes
10080	    break
10081	    ;;
10082	  esac
10083	done
10084      esac
10085
10086      exp_sym_flag='-bexport'
10087      no_entry_flag='-bnoentry'
10088    fi
10089
10090    # When large executables or shared objects are built, AIX ld can
10091    # have problems creating the table of contents.  If linking a library
10092    # or program results in "error TOC overflow" add -mminimal-toc to
10093    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10094    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10095
10096    archive_cmds_CXX=''
10097    hardcode_direct_CXX=yes
10098    hardcode_libdir_separator_CXX=':'
10099    link_all_deplibs_CXX=yes
10100
10101    if test "$GXX" = yes; then
10102      case $host_os in aix4.012|aix4.012.*)
10103      # We only want to do this on AIX 4.2 and lower, the check
10104      # below for broken collect2 doesn't work under 4.3+
10105	collect2name=`${CC} -print-prog-name=collect2`
10106	if test -f "$collect2name" && \
10107	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10108	then
10109	  # We have reworked collect2
10110	  hardcode_direct_CXX=yes
10111	else
10112	  # We have old collect2
10113	  hardcode_direct_CXX=unsupported
10114	  # It fails to find uninstalled libraries when the uninstalled
10115	  # path is not listed in the libpath.  Setting hardcode_minus_L
10116	  # to unsupported forces relinking
10117	  hardcode_minus_L_CXX=yes
10118	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10119	  hardcode_libdir_separator_CXX=
10120	fi
10121      esac
10122      shared_flag='-shared'
10123    else
10124      # not using gcc
10125      if test "$host_cpu" = ia64; then
10126	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10127	# chokes on -Wl,-G. The following line is correct:
10128	shared_flag='-G'
10129      else
10130	if test "$aix_use_runtimelinking" = yes; then
10131	  shared_flag='${wl}-G'
10132	else
10133	  shared_flag='${wl}-bM:SRE'
10134	fi
10135      fi
10136    fi
10137
10138    # It seems that -bexpall does not export symbols beginning with
10139    # underscore (_), so it is better to generate a list of symbols to export.
10140    always_export_symbols_CXX=yes
10141    if test "$aix_use_runtimelinking" = yes; then
10142      # Warning - without using the other runtime loading flags (-brtl),
10143      # -berok will link without error, but may produce a broken library.
10144      allow_undefined_flag_CXX='-berok'
10145      # Determine the default libpath from the value encoded in an empty executable.
10146      cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h.  */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h.  */
10152
10153int
10154main ()
10155{
10156
10157  ;
10158  return 0;
10159}
10160_ACEOF
10161rm -f conftest.$ac_objext conftest$ac_exeext
10162if { (ac_try="$ac_link"
10163case "(($ac_try" in
10164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165  *) ac_try_echo=$ac_try;;
10166esac
10167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168  (eval "$ac_link") 2>conftest.er1
10169  ac_status=$?
10170  grep -v '^ *+' conftest.er1 >conftest.err
10171  rm -f conftest.er1
10172  cat conftest.err >&5
10173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); } && {
10175	 test -z "$ac_cxx_werror_flag" ||
10176	 test ! -s conftest.err
10177       } && test -s conftest$ac_exeext &&
10178       $as_test_x conftest$ac_exeext; then
10179
10180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10181}'`
10182# Check for a 64-bit object if we didn't find anything.
10183if 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; }
10184}'`; fi
10185else
10186  echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189
10190fi
10191
10192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193      conftest$ac_exeext conftest.$ac_ext
10194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10195
10196      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10197
10198      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10199     else
10200      if test "$host_cpu" = ia64; then
10201	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10202	allow_undefined_flag_CXX="-z nodefs"
10203	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10204      else
10205	# Determine the default libpath from the value encoded in an empty executable.
10206	cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h.  */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h.  */
10212
10213int
10214main ()
10215{
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext conftest$ac_exeext
10222if { (ac_try="$ac_link"
10223case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228  (eval "$ac_link") 2>conftest.er1
10229  ac_status=$?
10230  grep -v '^ *+' conftest.er1 >conftest.err
10231  rm -f conftest.er1
10232  cat conftest.err >&5
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); } && {
10235	 test -z "$ac_cxx_werror_flag" ||
10236	 test ! -s conftest.err
10237       } && test -s conftest$ac_exeext &&
10238       $as_test_x conftest$ac_exeext; then
10239
10240aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10241}'`
10242# Check for a 64-bit object if we didn't find anything.
10243if 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; }
10244}'`; fi
10245else
10246  echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249
10250fi
10251
10252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253      conftest$ac_exeext conftest.$ac_ext
10254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10255
10256	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10257	# Warning - without using the other run time loading flags,
10258	# -berok will link without error, but may produce a broken library.
10259	no_undefined_flag_CXX=' ${wl}-bernotok'
10260	allow_undefined_flag_CXX=' ${wl}-berok'
10261	# -bexpall does not export symbols beginning with underscore (_)
10262	always_export_symbols_CXX=yes
10263	# Exported symbols can be pulled into shared objects from archives
10264	whole_archive_flag_spec_CXX=' '
10265	archive_cmds_need_lc_CXX=yes
10266	# This is similar to how AIX traditionally builds it's shared libraries.
10267	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10268      fi
10269    fi
10270    ;;
10271  chorus*)
10272    case $cc_basename in
10273      *)
10274	# FIXME: insert proper C++ library support
10275	ld_shlibs_CXX=no
10276	;;
10277    esac
10278    ;;
10279
10280  cygwin* | mingw* | pw32*)
10281    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10282    # as there is no search path for DLLs.
10283    hardcode_libdir_flag_spec_CXX='-L$libdir'
10284    allow_undefined_flag_CXX=unsupported
10285    always_export_symbols_CXX=no
10286    enable_shared_with_static_runtimes_CXX=yes
10287
10288    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10289      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10290      # If the export-symbols file already is a .def file (1st line
10291      # is EXPORTS), use it as is; otherwise, prepend...
10292      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10293	cp $export_symbols $output_objdir/$soname.def;
10294      else
10295	echo EXPORTS > $output_objdir/$soname.def;
10296	cat $export_symbols >> $output_objdir/$soname.def;
10297      fi~
10298      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10299    else
10300      ld_shlibs_CXX=no
10301    fi
10302  ;;
10303
10304  darwin* | rhapsody*)
10305  if test "$GXX" = yes; then
10306    archive_cmds_need_lc_CXX=no
10307    case "$host_os" in
10308    rhapsody* | darwin1.[012])
10309      allow_undefined_flag_CXX='-undefined suppress'
10310      ;;
10311    *) # Darwin 1.3 on
10312      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10313      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10314      else
10315        case ${MACOSX_DEPLOYMENT_TARGET} in
10316          10.[012])
10317            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10318            ;;
10319          10.*)
10320            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10321            ;;
10322        esac
10323      fi
10324      ;;
10325    esac
10326    lt_int_apple_cc_single_mod=no
10327    output_verbose_link_cmd='echo'
10328    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10329      lt_int_apple_cc_single_mod=yes
10330    fi
10331    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10332      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10333    else
10334      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10335    fi
10336    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10337
10338    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10339    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10340      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}'
10341    else
10342      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10343    fi
10344    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}'
10345    hardcode_direct_CXX=no
10346    hardcode_automatic_CXX=yes
10347    hardcode_shlibpath_var_CXX=unsupported
10348    whole_archive_flag_spec_CXX='-all_load $convenience'
10349    link_all_deplibs_CXX=yes
10350  else
10351    ld_shlibs_CXX=no
10352  fi
10353    ;;
10354
10355  dgux*)
10356    case $cc_basename in
10357      ec++)
10358	# FIXME: insert proper C++ library support
10359	ld_shlibs_CXX=no
10360	;;
10361      ghcx)
10362	# Green Hills C++ Compiler
10363	# FIXME: insert proper C++ library support
10364	ld_shlibs_CXX=no
10365	;;
10366      *)
10367	# FIXME: insert proper C++ library support
10368	ld_shlibs_CXX=no
10369	;;
10370    esac
10371    ;;
10372  freebsd12*)
10373    # C++ shared libraries reported to be fairly broken before switch to ELF
10374    ld_shlibs_CXX=no
10375    ;;
10376  freebsd-elf*)
10377    archive_cmds_need_lc_CXX=no
10378    ;;
10379  freebsd* | kfreebsd*-gnu)
10380    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10381    # conventions
10382    ld_shlibs_CXX=yes
10383    ;;
10384  gnu*)
10385    ;;
10386  hpux9*)
10387    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10388    hardcode_libdir_separator_CXX=:
10389    export_dynamic_flag_spec_CXX='${wl}-E'
10390    hardcode_direct_CXX=yes
10391    hardcode_minus_L_CXX=yes # Not in the search PATH,
10392				# but as the default
10393				# location of the library.
10394
10395    case $cc_basename in
10396    CC)
10397      # FIXME: insert proper C++ library support
10398      ld_shlibs_CXX=no
10399      ;;
10400    aCC)
10401      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'
10402      # Commands to make compiler produce verbose output that lists
10403      # what "hidden" libraries, object files and flags are used when
10404      # linking a shared library.
10405      #
10406      # There doesn't appear to be a way to prevent this compiler from
10407      # explicitly linking system object files so we need to strip them
10408      # from the output so that they don't get included in the library
10409      # dependencies.
10410      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10411      ;;
10412    *)
10413      if test "$GXX" = yes; then
10414        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'
10415      else
10416        # FIXME: insert proper C++ library support
10417        ld_shlibs_CXX=no
10418      fi
10419      ;;
10420    esac
10421    ;;
10422  hpux10*|hpux11*)
10423    if test $with_gnu_ld = no; then
10424      case "$host_cpu" in
10425      hppa*64*)
10426	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10427	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10428	hardcode_libdir_separator_CXX=:
10429        ;;
10430      ia64*)
10431	hardcode_libdir_flag_spec_CXX='-L$libdir'
10432        ;;
10433      *)
10434	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10435	hardcode_libdir_separator_CXX=:
10436	export_dynamic_flag_spec_CXX='${wl}-E'
10437        ;;
10438      esac
10439    fi
10440    case "$host_cpu" in
10441    hppa*64*)
10442      hardcode_direct_CXX=no
10443      hardcode_shlibpath_var_CXX=no
10444      ;;
10445    ia64*)
10446      hardcode_direct_CXX=no
10447      hardcode_shlibpath_var_CXX=no
10448      hardcode_minus_L_CXX=yes # Not in the search PATH,
10449					      # but as the default
10450					      # location of the library.
10451      ;;
10452    *)
10453      hardcode_direct_CXX=yes
10454      hardcode_minus_L_CXX=yes # Not in the search PATH,
10455					      # but as the default
10456					      # location of the library.
10457      ;;
10458    esac
10459
10460    case $cc_basename in
10461      CC)
10462	# FIXME: insert proper C++ library support
10463	ld_shlibs_CXX=no
10464	;;
10465      aCC)
10466	case "$host_cpu" in
10467	hppa*64*|ia64*)
10468	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10469	  ;;
10470	*)
10471	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10472	  ;;
10473	esac
10474	# Commands to make compiler produce verbose output that lists
10475	# what "hidden" libraries, object files and flags are used when
10476	# linking a shared library.
10477	#
10478	# There doesn't appear to be a way to prevent this compiler from
10479	# explicitly linking system object files so we need to strip them
10480	# from the output so that they don't get included in the library
10481	# dependencies.
10482	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'
10483	;;
10484      *)
10485	if test "$GXX" = yes; then
10486	  if test $with_gnu_ld = no; then
10487	    case "$host_cpu" in
10488	    ia64*|hppa*64*)
10489	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10490	      ;;
10491	    *)
10492	      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'
10493	      ;;
10494	    esac
10495	  fi
10496	else
10497	  # FIXME: insert proper C++ library support
10498	  ld_shlibs_CXX=no
10499	fi
10500	;;
10501    esac
10502    ;;
10503  irix5* | irix6*)
10504    case $cc_basename in
10505      CC)
10506	# SGI C++
10507	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 ${objdir}/so_locations -o $lib'
10508
10509	# Archives containing C++ object files must be created using
10510	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10511	# necessary to make sure instantiated templates are included
10512	# in the archive.
10513	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10514	;;
10515      *)
10516	if test "$GXX" = yes; then
10517	  if test "$with_gnu_ld" = no; then
10518	    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}${objdir}/so_locations -o $lib'
10519	  else
10520	    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'
10521	  fi
10522	fi
10523	link_all_deplibs_CXX=yes
10524	;;
10525    esac
10526    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10527    hardcode_libdir_separator_CXX=:
10528    ;;
10529  linux*)
10530    case $cc_basename in
10531      KCC)
10532	# Kuck and Associates, Inc. (KAI) C++ Compiler
10533
10534	# KCC will only create a shared library if the output file
10535	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10536	# to its proper name (with version) after linking.
10537	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'
10538	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'
10539	# Commands to make compiler produce verbose output that lists
10540	# what "hidden" libraries, object files and flags are used when
10541	# linking a shared library.
10542	#
10543	# There doesn't appear to be a way to prevent this compiler from
10544	# explicitly linking system object files so we need to strip them
10545	# from the output so that they don't get included in the library
10546	# dependencies.
10547	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'
10548
10549	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10550	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10551
10552	# Archives containing C++ object files must be created using
10553	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10554	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10555	;;
10556      icpc)
10557	# Intel C++
10558	with_gnu_ld=yes
10559	archive_cmds_need_lc_CXX=no
10560	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561	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'
10562	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10563	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10564	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10565	;;
10566      cxx)
10567	# Compaq C++
10568	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569	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'
10570
10571	runpath_var=LD_RUN_PATH
10572	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10573	hardcode_libdir_separator_CXX=:
10574
10575	# Commands to make compiler produce verbose output that lists
10576	# what "hidden" libraries, object files and flags are used when
10577	# linking a shared library.
10578	#
10579	# There doesn't appear to be a way to prevent this compiler from
10580	# explicitly linking system object files so we need to strip them
10581	# from the output so that they don't get included in the library
10582	# dependencies.
10583	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'
10584	;;
10585    esac
10586    ;;
10587  lynxos*)
10588    # FIXME: insert proper C++ library support
10589    ld_shlibs_CXX=no
10590    ;;
10591  m88k*)
10592    # FIXME: insert proper C++ library support
10593    ld_shlibs_CXX=no
10594    ;;
10595  mvs*)
10596    case $cc_basename in
10597      cxx)
10598	# FIXME: insert proper C++ library support
10599	ld_shlibs_CXX=no
10600	;;
10601      *)
10602	# FIXME: insert proper C++ library support
10603	ld_shlibs_CXX=no
10604	;;
10605    esac
10606    ;;
10607  netbsd*)
10608    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10609      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10610      wlarc=
10611      hardcode_libdir_flag_spec_CXX='-R$libdir'
10612      hardcode_direct_CXX=yes
10613      hardcode_shlibpath_var_CXX=no
10614    fi
10615    # Workaround some broken pre-1.5 toolchains
10616    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10617    ;;
10618  osf3*)
10619    case $cc_basename in
10620      KCC)
10621	# Kuck and Associates, Inc. (KAI) C++ Compiler
10622
10623	# KCC will only create a shared library if the output file
10624	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10625	# to its proper name (with version) after linking.
10626	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'
10627
10628	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10629	hardcode_libdir_separator_CXX=:
10630
10631	# Archives containing C++ object files must be created using
10632	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10633	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10634
10635	;;
10636      RCC)
10637	# Rational C++ 2.4.1
10638	# FIXME: insert proper C++ library support
10639	ld_shlibs_CXX=no
10640	;;
10641      cxx)
10642	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10643	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 ${objdir}/so_locations -o $lib'
10644
10645	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10646	hardcode_libdir_separator_CXX=:
10647
10648	# Commands to make compiler produce verbose output that lists
10649	# what "hidden" libraries, object files and flags are used when
10650	# linking a shared library.
10651	#
10652	# There doesn't appear to be a way to prevent this compiler from
10653	# explicitly linking system object files so we need to strip them
10654	# from the output so that they don't get included in the library
10655	# dependencies.
10656	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'
10657	;;
10658      *)
10659	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10660	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10661	  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}${objdir}/so_locations -o $lib'
10662
10663	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10664	  hardcode_libdir_separator_CXX=:
10665
10666	  # Commands to make compiler produce verbose output that lists
10667	  # what "hidden" libraries, object files and flags are used when
10668	  # linking a shared library.
10669	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10670
10671	else
10672	  # FIXME: insert proper C++ library support
10673	  ld_shlibs_CXX=no
10674	fi
10675	;;
10676    esac
10677    ;;
10678  osf4* | osf5*)
10679    case $cc_basename in
10680      KCC)
10681	# Kuck and Associates, Inc. (KAI) C++ Compiler
10682
10683	# KCC will only create a shared library if the output file
10684	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10685	# to its proper name (with version) after linking.
10686	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'
10687
10688	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10689	hardcode_libdir_separator_CXX=:
10690
10691	# Archives containing C++ object files must be created using
10692	# the KAI C++ compiler.
10693	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10694	;;
10695      RCC)
10696	# Rational C++ 2.4.1
10697	# FIXME: insert proper C++ library support
10698	ld_shlibs_CXX=no
10699	;;
10700      cxx)
10701	allow_undefined_flag_CXX=' -expect_unresolved \*'
10702	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 ${objdir}/so_locations -o $lib'
10703	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10704	  echo "-hidden">> $lib.exp~
10705	  $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 $objdir/so_locations -o $lib~
10706	  $rm $lib.exp'
10707
10708	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10709	hardcode_libdir_separator_CXX=:
10710
10711	# Commands to make compiler produce verbose output that lists
10712	# what "hidden" libraries, object files and flags are used when
10713	# linking a shared library.
10714	#
10715	# There doesn't appear to be a way to prevent this compiler from
10716	# explicitly linking system object files so we need to strip them
10717	# from the output so that they don't get included in the library
10718	# dependencies.
10719	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'
10720	;;
10721      *)
10722	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10723	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10724	 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}${objdir}/so_locations -o $lib'
10725
10726	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10727	  hardcode_libdir_separator_CXX=:
10728
10729	  # Commands to make compiler produce verbose output that lists
10730	  # what "hidden" libraries, object files and flags are used when
10731	  # linking a shared library.
10732	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10733
10734	else
10735	  # FIXME: insert proper C++ library support
10736	  ld_shlibs_CXX=no
10737	fi
10738	;;
10739    esac
10740    ;;
10741  psos*)
10742    # FIXME: insert proper C++ library support
10743    ld_shlibs_CXX=no
10744    ;;
10745  sco*)
10746    archive_cmds_need_lc_CXX=no
10747    case $cc_basename in
10748      CC)
10749	# FIXME: insert proper C++ library support
10750	ld_shlibs_CXX=no
10751	;;
10752      *)
10753	# FIXME: insert proper C++ library support
10754	ld_shlibs_CXX=no
10755	;;
10756    esac
10757    ;;
10758  sunos4*)
10759    case $cc_basename in
10760      CC)
10761	# Sun C++ 4.x
10762	# FIXME: insert proper C++ library support
10763	ld_shlibs_CXX=no
10764	;;
10765      lcc)
10766	# Lucid
10767	# FIXME: insert proper C++ library support
10768	ld_shlibs_CXX=no
10769	;;
10770      *)
10771	# FIXME: insert proper C++ library support
10772	ld_shlibs_CXX=no
10773	;;
10774    esac
10775    ;;
10776  solaris*)
10777    case $cc_basename in
10778      CC)
10779	# Sun C++ 4.2, 5.x and Centerline C++
10780	no_undefined_flag_CXX=' -zdefs'
10781	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10782	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10783	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10784
10785	hardcode_libdir_flag_spec_CXX='-R$libdir'
10786	hardcode_shlibpath_var_CXX=no
10787	case $host_os in
10788	  solaris2.0-5 | solaris2.0-5.*) ;;
10789	  *)
10790	    # The C++ compiler is used as linker so we must use $wl
10791	    # flag to pass the commands to the underlying system
10792	    # linker.
10793	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10794	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10795	    ;;
10796	esac
10797	link_all_deplibs_CXX=yes
10798
10799	# Commands to make compiler produce verbose output that lists
10800	# what "hidden" libraries, object files and flags are used when
10801	# linking a shared library.
10802	#
10803	# There doesn't appear to be a way to prevent this compiler from
10804	# explicitly linking system object files so we need to strip them
10805	# from the output so that they don't get included in the library
10806	# dependencies.
10807	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10808
10809	# Archives containing C++ object files must be created using
10810	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10811	# necessary to make sure instantiated templates are included
10812	# in the archive.
10813	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10814	;;
10815      gcx)
10816	# Green Hills C++ Compiler
10817	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10818
10819	# The C++ compiler must be used to create the archive.
10820	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10821	;;
10822      *)
10823	# GNU C++ compiler with Solaris linker
10824	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10825	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10826	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10827	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10828	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10829		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10830
10831	    # Commands to make compiler produce verbose output that lists
10832	    # what "hidden" libraries, object files and flags are used when
10833	    # linking a shared library.
10834	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10835	  else
10836	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10837	    # platform.
10838	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10839	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10840		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10841
10842	    # Commands to make compiler produce verbose output that lists
10843	    # what "hidden" libraries, object files and flags are used when
10844	    # linking a shared library.
10845	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10846	  fi
10847
10848	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10849	fi
10850	;;
10851    esac
10852    ;;
10853  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10854    archive_cmds_need_lc_CXX=no
10855    ;;
10856  tandem*)
10857    case $cc_basename in
10858      NCC)
10859	# NonStop-UX NCC 3.20
10860	# FIXME: insert proper C++ library support
10861	ld_shlibs_CXX=no
10862	;;
10863      *)
10864	# FIXME: insert proper C++ library support
10865	ld_shlibs_CXX=no
10866	;;
10867    esac
10868    ;;
10869  vxworks*)
10870    # FIXME: insert proper C++ library support
10871    ld_shlibs_CXX=no
10872    ;;
10873  *)
10874    # FIXME: insert proper C++ library support
10875    ld_shlibs_CXX=no
10876    ;;
10877esac
10878{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10879echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10880test "$ld_shlibs_CXX" = no && can_build_shared=no
10881
10882GCC_CXX="$GXX"
10883LD_CXX="$LD"
10884
10885## CAVEAT EMPTOR:
10886## There is no encapsulation within the following macros, do not change
10887## the running order or otherwise move them around unless you know exactly
10888## what you are doing...
10889
10890cat > conftest.$ac_ext <<EOF
10891class Foo
10892{
10893public:
10894  Foo (void) { a = 0; }
10895private:
10896  int a;
10897};
10898EOF
10899
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901  (eval $ac_compile) 2>&5
10902  ac_status=$?
10903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904  (exit $ac_status); }; then
10905  # Parse the compiler output and extract the necessary
10906  # objects, libraries and library flags.
10907
10908  # Sentinel used to keep track of whether or not we are before
10909  # the conftest object file.
10910  pre_test_object_deps_done=no
10911
10912  # The `*' in the case matches for architectures that use `case' in
10913  # $output_verbose_cmd can trigger glob expansion during the loop
10914  # eval without this substitution.
10915  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10916
10917  for p in `eval $output_verbose_link_cmd`; do
10918    case $p in
10919
10920    -L* | -R* | -l*)
10921       # Some compilers place space between "-{L,R}" and the path.
10922       # Remove the space.
10923       if test $p = "-L" \
10924	  || test $p = "-R"; then
10925	 prev=$p
10926	 continue
10927       else
10928	 prev=
10929       fi
10930
10931       if test "$pre_test_object_deps_done" = no; then
10932	 case $p in
10933	 -L* | -R*)
10934	   # Internal compiler library paths should come after those
10935	   # provided the user.  The postdeps already come after the
10936	   # user supplied libs so there is no need to process them.
10937	   if test -z "$compiler_lib_search_path_CXX"; then
10938	     compiler_lib_search_path_CXX="${prev}${p}"
10939	   else
10940	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10941	   fi
10942	   ;;
10943	 # The "-l" case would never come before the object being
10944	 # linked, so don't bother handling this case.
10945	 esac
10946       else
10947	 if test -z "$postdeps_CXX"; then
10948	   postdeps_CXX="${prev}${p}"
10949	 else
10950	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10951	 fi
10952       fi
10953       ;;
10954
10955    *.$objext)
10956       # This assumes that the test object file only shows up
10957       # once in the compiler output.
10958       if test "$p" = "conftest.$objext"; then
10959	 pre_test_object_deps_done=yes
10960	 continue
10961       fi
10962
10963       if test "$pre_test_object_deps_done" = no; then
10964	 if test -z "$predep_objects_CXX"; then
10965	   predep_objects_CXX="$p"
10966	 else
10967	   predep_objects_CXX="$predep_objects_CXX $p"
10968	 fi
10969       else
10970	 if test -z "$postdep_objects_CXX"; then
10971	   postdep_objects_CXX="$p"
10972	 else
10973	   postdep_objects_CXX="$postdep_objects_CXX $p"
10974	 fi
10975       fi
10976       ;;
10977
10978    *) ;; # Ignore the rest.
10979
10980    esac
10981  done
10982
10983  # Clean up.
10984  rm -f a.out a.exe
10985else
10986  echo "libtool.m4: error: problem compiling CXX test program"
10987fi
10988
10989$rm -f confest.$objext
10990
10991case " $postdeps_CXX " in
10992*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10993esac
10994
10995lt_prog_compiler_wl_CXX=
10996lt_prog_compiler_pic_CXX=
10997lt_prog_compiler_static_CXX=
10998
10999{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11000echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11001
11002  # C++ specific cases for pic, static, wl, etc.
11003  if test "$GXX" = yes; then
11004    lt_prog_compiler_wl_CXX='-Wl,'
11005    lt_prog_compiler_static_CXX='-static'
11006
11007    case $host_os in
11008    aix*)
11009      # All AIX code is PIC.
11010      if test "$host_cpu" = ia64; then
11011	# AIX 5 now supports IA64 processor
11012	lt_prog_compiler_static_CXX='-Bstatic'
11013      fi
11014      ;;
11015    amigaos*)
11016      # FIXME: we need at least 68020 code to build shared libraries, but
11017      # adding the `-m68020' flag to GCC prevents building anything better,
11018      # like `-m68040'.
11019      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11020      ;;
11021    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11022      # PIC is the default for these OSes.
11023      ;;
11024    mingw* | os2* | pw32*)
11025      # This hack is so that the source file can tell whether it is being
11026      # built for inclusion in a dll (and should export symbols for example).
11027      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11028      ;;
11029    darwin* | rhapsody*)
11030      # PIC is the default on this platform
11031      # Common symbols not allowed in MH_DYLIB files
11032      lt_prog_compiler_pic_CXX='-fno-common'
11033      ;;
11034    *djgpp*)
11035      # DJGPP does not support shared libraries at all
11036      lt_prog_compiler_pic_CXX=
11037      ;;
11038    sysv4*MP*)
11039      if test -d /usr/nec; then
11040	lt_prog_compiler_pic_CXX=-Kconform_pic
11041      fi
11042      ;;
11043    hpux*)
11044      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11045      # not for PA HP-UX.
11046      case "$host_cpu" in
11047      hppa*64*|ia64*)
11048	;;
11049      *)
11050	lt_prog_compiler_pic_CXX='-fPIC'
11051	;;
11052      esac
11053      ;;
11054    *)
11055      lt_prog_compiler_pic_CXX='-fPIC'
11056      ;;
11057    esac
11058  else
11059    case $host_os in
11060      aix4* | aix5*)
11061	# All AIX code is PIC.
11062	if test "$host_cpu" = ia64; then
11063	  # AIX 5 now supports IA64 processor
11064	  lt_prog_compiler_static_CXX='-Bstatic'
11065	else
11066	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11067	fi
11068	;;
11069      chorus*)
11070	case $cc_basename in
11071	cxch68)
11072	  # Green Hills C++ Compiler
11073	  # _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"
11074	  ;;
11075	esac
11076	;;
11077      dgux*)
11078	case $cc_basename in
11079	  ec++)
11080	    lt_prog_compiler_pic_CXX='-KPIC'
11081	    ;;
11082	  ghcx)
11083	    # Green Hills C++ Compiler
11084	    lt_prog_compiler_pic_CXX='-pic'
11085	    ;;
11086	  *)
11087	    ;;
11088	esac
11089	;;
11090      freebsd* | kfreebsd*-gnu)
11091	# FreeBSD uses GNU C++
11092	;;
11093      hpux9* | hpux10* | hpux11*)
11094	case $cc_basename in
11095	  CC)
11096	    lt_prog_compiler_wl_CXX='-Wl,'
11097	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11098	    if test "$host_cpu" != ia64; then
11099	      lt_prog_compiler_pic_CXX='+Z'
11100	    fi
11101	    ;;
11102	  aCC)
11103	    lt_prog_compiler_wl_CXX='-Wl,'
11104	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11105	    case "$host_cpu" in
11106	    hppa*64*|ia64*)
11107	      # +Z the default
11108	      ;;
11109	    *)
11110	      lt_prog_compiler_pic_CXX='+Z'
11111	      ;;
11112	    esac
11113	    ;;
11114	  *)
11115	    ;;
11116	esac
11117	;;
11118      irix5* | irix6* | nonstopux*)
11119	case $cc_basename in
11120	  CC)
11121	    lt_prog_compiler_wl_CXX='-Wl,'
11122	    lt_prog_compiler_static_CXX='-non_shared'
11123	    # CC pic flag -KPIC is the default.
11124	    ;;
11125	  *)
11126	    ;;
11127	esac
11128	;;
11129      linux*)
11130	case $cc_basename in
11131	  KCC)
11132	    # KAI C++ Compiler
11133	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11134	    lt_prog_compiler_pic_CXX='-fPIC'
11135	    ;;
11136	  icpc)
11137	    # Intel C++
11138	    lt_prog_compiler_wl_CXX='-Wl,'
11139	    lt_prog_compiler_pic_CXX='-KPIC'
11140	    lt_prog_compiler_static_CXX='-static'
11141	    ;;
11142	  cxx)
11143	    # Compaq C++
11144	    # Make sure the PIC flag is empty.  It appears that all Alpha
11145	    # Linux and Compaq Tru64 Unix objects are PIC.
11146	    lt_prog_compiler_pic_CXX=
11147	    lt_prog_compiler_static_CXX='-non_shared'
11148	    ;;
11149	  *)
11150	    ;;
11151	esac
11152	;;
11153      lynxos*)
11154	;;
11155      m88k*)
11156	;;
11157      mvs*)
11158	case $cc_basename in
11159	  cxx)
11160	    lt_prog_compiler_pic_CXX='-W c,exportall'
11161	    ;;
11162	  *)
11163	    ;;
11164	esac
11165	;;
11166      netbsd*)
11167	;;
11168      osf3* | osf4* | osf5*)
11169	case $cc_basename in
11170	  KCC)
11171	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11172	    ;;
11173	  RCC)
11174	    # Rational C++ 2.4.1
11175	    lt_prog_compiler_pic_CXX='-pic'
11176	    ;;
11177	  cxx)
11178	    # Digital/Compaq C++
11179	    lt_prog_compiler_wl_CXX='-Wl,'
11180	    # Make sure the PIC flag is empty.  It appears that all Alpha
11181	    # Linux and Compaq Tru64 Unix objects are PIC.
11182	    lt_prog_compiler_pic_CXX=
11183	    lt_prog_compiler_static_CXX='-non_shared'
11184	    ;;
11185	  *)
11186	    ;;
11187	esac
11188	;;
11189      psos*)
11190	;;
11191      sco*)
11192	case $cc_basename in
11193	  CC)
11194	    lt_prog_compiler_pic_CXX='-fPIC'
11195	    ;;
11196	  *)
11197	    ;;
11198	esac
11199	;;
11200      solaris*)
11201	case $cc_basename in
11202	  CC)
11203	    # Sun C++ 4.2, 5.x and Centerline C++
11204	    lt_prog_compiler_pic_CXX='-KPIC'
11205	    lt_prog_compiler_static_CXX='-Bstatic'
11206	    lt_prog_compiler_wl_CXX='-Qoption ld '
11207	    ;;
11208	  gcx)
11209	    # Green Hills C++ Compiler
11210	    lt_prog_compiler_pic_CXX='-PIC'
11211	    ;;
11212	  *)
11213	    ;;
11214	esac
11215	;;
11216      sunos4*)
11217	case $cc_basename in
11218	  CC)
11219	    # Sun C++ 4.x
11220	    lt_prog_compiler_pic_CXX='-pic'
11221	    lt_prog_compiler_static_CXX='-Bstatic'
11222	    ;;
11223	  lcc)
11224	    # Lucid
11225	    lt_prog_compiler_pic_CXX='-pic'
11226	    ;;
11227	  *)
11228	    ;;
11229	esac
11230	;;
11231      tandem*)
11232	case $cc_basename in
11233	  NCC)
11234	    # NonStop-UX NCC 3.20
11235	    lt_prog_compiler_pic_CXX='-KPIC'
11236	    ;;
11237	  *)
11238	    ;;
11239	esac
11240	;;
11241      unixware*)
11242	;;
11243      vxworks*)
11244	;;
11245      *)
11246	lt_prog_compiler_can_build_shared_CXX=no
11247	;;
11248    esac
11249  fi
11250
11251{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11252echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11253
11254#
11255# Check to make sure the PIC flag actually works.
11256#
11257if test -n "$lt_prog_compiler_pic_CXX"; then
11258
11259{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11260echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11261if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11262  echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264  lt_prog_compiler_pic_works_CXX=no
11265  ac_outfile=conftest.$ac_objext
11266   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11267   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11268   # Insert the option either (1) after the last *FLAGS variable, or
11269   # (2) before a word containing "conftest.", or (3) at the end.
11270   # Note that $ac_compile itself does not contain backslashes and begins
11271   # with a dollar sign (not a hyphen), so the echo should work correctly.
11272   # The option is referenced via a variable to avoid confusing sed.
11273   lt_compile=`echo "$ac_compile" | $SED \
11274   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11275   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11276   -e 's:$: $lt_compiler_flag:'`
11277   (eval echo "\"\$as_me:11277: $lt_compile\"" >&5)
11278   (eval "$lt_compile" 2>conftest.err)
11279   ac_status=$?
11280   cat conftest.err >&5
11281   echo "$as_me:11281: \$? = $ac_status" >&5
11282   if (exit $ac_status) && test -s "$ac_outfile"; then
11283     # The compiler can only warn and ignore the option if not recognized
11284     # So say no if there are warnings
11285     if test ! -s conftest.err; then
11286       lt_prog_compiler_pic_works_CXX=yes
11287     fi
11288   fi
11289   $rm conftest*
11290
11291fi
11292{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11293echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11294
11295if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11296    case $lt_prog_compiler_pic_CXX in
11297     "" | " "*) ;;
11298     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11299     esac
11300else
11301    lt_prog_compiler_pic_CXX=
11302     lt_prog_compiler_can_build_shared_CXX=no
11303fi
11304
11305fi
11306case "$host_os" in
11307  # For platforms which do not support PIC, -DPIC is meaningless:
11308  *djgpp*)
11309    lt_prog_compiler_pic_CXX=
11310    ;;
11311  *)
11312    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11313    ;;
11314esac
11315
11316{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11317echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11318if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11319  echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321  lt_cv_prog_compiler_c_o_CXX=no
11322   $rm -r conftest 2>/dev/null
11323   mkdir conftest
11324   cd conftest
11325   mkdir out
11326   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11327
11328   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11329   # that will create temporary files in the current directory regardless of
11330   # the output directory.  Thus, making CWD read-only will cause this test
11331   # to fail, enabling locking or at least warning the user not to do parallel
11332   # builds.
11333   chmod -w .
11334
11335   lt_compiler_flag="-o out/conftest2.$ac_objext"
11336   # Insert the option either (1) after the last *FLAGS variable, or
11337   # (2) before a word containing "conftest.", or (3) at the end.
11338   # Note that $ac_compile itself does not contain backslashes and begins
11339   # with a dollar sign (not a hyphen), so the echo should work correctly.
11340   lt_compile=`echo "$ac_compile" | $SED \
11341   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11343   -e 's:$: $lt_compiler_flag:'`
11344   (eval echo "\"\$as_me:11344: $lt_compile\"" >&5)
11345   (eval "$lt_compile" 2>out/conftest.err)
11346   ac_status=$?
11347   cat out/conftest.err >&5
11348   echo "$as_me:11348: \$? = $ac_status" >&5
11349   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11350   then
11351     # The compiler can only warn and ignore the option if not recognized
11352     # So say no if there are warnings
11353     if test ! -s out/conftest.err; then
11354       lt_cv_prog_compiler_c_o_CXX=yes
11355     fi
11356   fi
11357   chmod u+w .
11358   $rm conftest*
11359   # SGI C++ compiler will create directory out/ii_files/ for
11360   # template instantiation
11361   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11362   $rm out/* && rmdir out
11363   cd ..
11364   rmdir conftest
11365   $rm conftest*
11366
11367fi
11368{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11369echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11370
11371
11372hard_links="nottested"
11373if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11374  # do not overwrite the value of need_locks provided by the user
11375  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11376echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11377  hard_links=yes
11378  $rm conftest*
11379  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11380  touch conftest.a
11381  ln conftest.a conftest.b 2>&5 || hard_links=no
11382  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11383  { echo "$as_me:$LINENO: result: $hard_links" >&5
11384echo "${ECHO_T}$hard_links" >&6; }
11385  if test "$hard_links" = no; then
11386    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11387echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11388    need_locks=warn
11389  fi
11390else
11391  need_locks=no
11392fi
11393
11394{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11395echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11396
11397  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11398  case $host_os in
11399  aix4* | aix5*)
11400    # If we're using GNU nm, then we don't want the "-C" option.
11401    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11402    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11403      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'
11404    else
11405      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'
11406    fi
11407    ;;
11408  pw32*)
11409    export_symbols_cmds_CXX="$ltdll_cmds"
11410  ;;
11411  cygwin* | mingw*)
11412    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11413  ;;
11414  *)
11415    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11416  ;;
11417  esac
11418
11419{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11420echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11421test "$ld_shlibs_CXX" = no && can_build_shared=no
11422
11423variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11424if test "$GCC" = yes; then
11425  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11426fi
11427
11428#
11429# Do we need to explicitly link libc?
11430#
11431case "x$archive_cmds_need_lc_CXX" in
11432x|xyes)
11433  # Assume -lc should be added
11434  archive_cmds_need_lc_CXX=yes
11435
11436  if test "$enable_shared" = yes && test "$GCC" = yes; then
11437    case $archive_cmds_CXX in
11438    *'~'*)
11439      # FIXME: we may have to deal with multi-command sequences.
11440      ;;
11441    '$CC '*)
11442      # Test whether the compiler implicitly links with -lc since on some
11443      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11444      # to ld, don't add -lc before -lgcc.
11445      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11446echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11447      $rm conftest*
11448      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11449
11450      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451  (eval $ac_compile) 2>&5
11452  ac_status=$?
11453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454  (exit $ac_status); } 2>conftest.err; then
11455        soname=conftest
11456        lib=conftest
11457        libobjs=conftest.$ac_objext
11458        deplibs=
11459        wl=$lt_prog_compiler_wl_CXX
11460        compiler_flags=-v
11461        linker_flags=-v
11462        verstring=
11463        output_objdir=.
11464        libname=conftest
11465        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11466        allow_undefined_flag_CXX=
11467        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11468  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11469  ac_status=$?
11470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471  (exit $ac_status); }
11472        then
11473	  archive_cmds_need_lc_CXX=no
11474        else
11475	  archive_cmds_need_lc_CXX=yes
11476        fi
11477        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11478      else
11479        cat conftest.err 1>&5
11480      fi
11481      $rm conftest*
11482      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11483echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11484      ;;
11485    esac
11486  fi
11487  ;;
11488esac
11489
11490{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11491echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11492library_names_spec=
11493libname_spec='lib$name'
11494soname_spec=
11495shrext=".so"
11496postinstall_cmds=
11497postuninstall_cmds=
11498finish_cmds=
11499finish_eval=
11500shlibpath_var=
11501shlibpath_overrides_runpath=unknown
11502version_type=none
11503dynamic_linker="$host_os ld.so"
11504sys_lib_dlsearch_path_spec="/lib /usr/lib"
11505if test "$GCC" = yes; then
11506  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11507  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11508    # if the path contains ";" then we assume it to be the separator
11509    # otherwise default to the standard path separator (i.e. ":") - it is
11510    # assumed that no part of a normal pathname contains ";" but that should
11511    # okay in the real world where ";" in dirpaths is itself problematic.
11512    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11513  else
11514    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11515  fi
11516else
11517  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11518fi
11519need_lib_prefix=unknown
11520hardcode_into_libs=no
11521
11522# when you set need_version to no, make sure it does not cause -set_version
11523# flags to be left without arguments
11524need_version=unknown
11525
11526case $host_os in
11527aix3*)
11528  version_type=linux
11529  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11530  shlibpath_var=LIBPATH
11531
11532  # AIX 3 has no versioning support, so we append a major version to the name.
11533  soname_spec='${libname}${release}${shared_ext}$major'
11534  ;;
11535
11536aix4* | aix5*)
11537  version_type=linux
11538  need_lib_prefix=no
11539  need_version=no
11540  hardcode_into_libs=yes
11541  if test "$host_cpu" = ia64; then
11542    # AIX 5 supports IA64
11543    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11544    shlibpath_var=LD_LIBRARY_PATH
11545  else
11546    # With GCC up to 2.95.x, collect2 would create an import file
11547    # for dependence libraries.  The import file would start with
11548    # the line `#! .'.  This would cause the generated library to
11549    # depend on `.', always an invalid library.  This was fixed in
11550    # development snapshots of GCC prior to 3.0.
11551    case $host_os in
11552      aix4 | aix4.[01] | aix4.[01].*)
11553      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11554	   echo ' yes '
11555	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11556	:
11557      else
11558	can_build_shared=no
11559      fi
11560      ;;
11561    esac
11562    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11563    # soname into executable. Probably we can add versioning support to
11564    # collect2, so additional links can be useful in future.
11565    if test "$aix_use_runtimelinking" = yes; then
11566      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11567      # instead of lib<name>.a to let people know that these are not
11568      # typical AIX shared libraries.
11569      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570    else
11571      # We preserve .a as extension for shared libraries through AIX4.2
11572      # and later when we are not doing run time linking.
11573      library_names_spec='${libname}${release}.a $libname.a'
11574      soname_spec='${libname}${release}${shared_ext}$major'
11575    fi
11576    shlibpath_var=LIBPATH
11577  fi
11578  ;;
11579
11580amigaos*)
11581  library_names_spec='$libname.ixlibrary $libname.a'
11582  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11583  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'
11584  ;;
11585
11586beos*)
11587  library_names_spec='${libname}${shared_ext}'
11588  dynamic_linker="$host_os ld.so"
11589  shlibpath_var=LIBRARY_PATH
11590  ;;
11591
11592bsdi4*)
11593  version_type=linux
11594  need_version=no
11595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596  soname_spec='${libname}${release}${shared_ext}$major'
11597  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11598  shlibpath_var=LD_LIBRARY_PATH
11599  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11600  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11601  # the default ld.so.conf also contains /usr/contrib/lib and
11602  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11603  # libtool to hard-code these into programs
11604  ;;
11605
11606cygwin* | mingw* | pw32*)
11607  version_type=windows
11608  shrext=".dll"
11609  need_version=no
11610  need_lib_prefix=no
11611
11612  case $GCC,$host_os in
11613  yes,cygwin* | yes,mingw* | yes,pw32*)
11614    library_names_spec='$libname.dll.a'
11615    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11616    postinstall_cmds='base_file=`basename \${file}`~
11617      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11618      dldir=$destdir/`dirname \$dlpath`~
11619      test -d \$dldir || mkdir -p \$dldir~
11620      $install_prog $dir/$dlname \$dldir/$dlname'
11621    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11622      dlpath=$dir/\$dldll~
11623       $rm \$dlpath'
11624    shlibpath_overrides_runpath=yes
11625
11626    case $host_os in
11627    cygwin*)
11628      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11629      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11630      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11631      ;;
11632    mingw*)
11633      # MinGW DLLs use traditional 'lib' prefix
11634      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11635      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11636      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11637        # It is most probably a Windows format PATH printed by
11638        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11639        # path with ; separators, and with drive letters. We can handle the
11640        # drive letters (cygwin fileutils understands them), so leave them,
11641        # especially as we might pass files found there to a mingw objdump,
11642        # which wouldn't understand a cygwinified path. Ahh.
11643        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11644      else
11645        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11646      fi
11647      ;;
11648    pw32*)
11649      # pw32 DLLs use 'pw' prefix rather than 'lib'
11650      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11651      ;;
11652    esac
11653    ;;
11654
11655  *)
11656    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11657    ;;
11658  esac
11659  dynamic_linker='Win32 ld.exe'
11660  # FIXME: first we should search . and the directory the executable is in
11661  shlibpath_var=PATH
11662  ;;
11663
11664darwin* | rhapsody*)
11665  dynamic_linker="$host_os dyld"
11666  version_type=darwin
11667  need_lib_prefix=no
11668  need_version=no
11669  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11670  soname_spec='${libname}${release}${major}$shared_ext'
11671  shlibpath_overrides_runpath=yes
11672  shlibpath_var=DYLD_LIBRARY_PATH
11673  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11674  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11675  if test "$GCC" = yes; then
11676    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"`
11677  else
11678    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11679  fi
11680  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11681  ;;
11682
11683dgux*)
11684  version_type=linux
11685  need_lib_prefix=no
11686  need_version=no
11687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11688  soname_spec='${libname}${release}${shared_ext}$major'
11689  shlibpath_var=LD_LIBRARY_PATH
11690  ;;
11691
11692freebsd1*)
11693  dynamic_linker=no
11694  ;;
11695
11696kfreebsd*-gnu)
11697  version_type=linux
11698  need_lib_prefix=no
11699  need_version=no
11700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11701  soname_spec='${libname}${release}${shared_ext}$major'
11702  shlibpath_var=LD_LIBRARY_PATH
11703  shlibpath_overrides_runpath=no
11704  hardcode_into_libs=yes
11705  dynamic_linker='GNU ld.so'
11706  ;;
11707
11708freebsd*)
11709  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11710  version_type=freebsd-$objformat
11711  case $version_type in
11712    freebsd-elf*)
11713      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11714      need_version=no
11715      need_lib_prefix=no
11716      ;;
11717    freebsd-*)
11718      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11719      need_version=yes
11720      ;;
11721  esac
11722  shlibpath_var=LD_LIBRARY_PATH
11723  case $host_os in
11724  freebsd2*)
11725    shlibpath_overrides_runpath=yes
11726    ;;
11727  freebsd3.01* | freebsdelf3.01*)
11728    shlibpath_overrides_runpath=yes
11729    hardcode_into_libs=yes
11730    ;;
11731  *) # from 3.2 on
11732    shlibpath_overrides_runpath=no
11733    hardcode_into_libs=yes
11734    ;;
11735  esac
11736  ;;
11737
11738gnu*)
11739  version_type=linux
11740  need_lib_prefix=no
11741  need_version=no
11742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11743  soname_spec='${libname}${release}${shared_ext}$major'
11744  shlibpath_var=LD_LIBRARY_PATH
11745  hardcode_into_libs=yes
11746  ;;
11747
11748hpux9* | hpux10* | hpux11*)
11749  # Give a soname corresponding to the major version so that dld.sl refuses to
11750  # link against other versions.
11751  version_type=sunos
11752  need_lib_prefix=no
11753  need_version=no
11754  case "$host_cpu" in
11755  ia64*)
11756    shrext='.so'
11757    hardcode_into_libs=yes
11758    dynamic_linker="$host_os dld.so"
11759    shlibpath_var=LD_LIBRARY_PATH
11760    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11761    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762    soname_spec='${libname}${release}${shared_ext}$major'
11763    if test "X$HPUX_IA64_MODE" = X32; then
11764      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11765    else
11766      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11767    fi
11768    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11769    ;;
11770   hppa*64*)
11771     shrext='.sl'
11772     hardcode_into_libs=yes
11773     dynamic_linker="$host_os dld.sl"
11774     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11775     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777     soname_spec='${libname}${release}${shared_ext}$major'
11778     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11779     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11780     ;;
11781   *)
11782    shrext='.sl'
11783    dynamic_linker="$host_os dld.sl"
11784    shlibpath_var=SHLIB_PATH
11785    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787    soname_spec='${libname}${release}${shared_ext}$major'
11788    ;;
11789  esac
11790  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11791  postinstall_cmds='chmod 555 $lib'
11792  ;;
11793
11794irix5* | irix6* | nonstopux*)
11795  case $host_os in
11796    nonstopux*) version_type=nonstopux ;;
11797    *)
11798	if test "$lt_cv_prog_gnu_ld" = yes; then
11799		version_type=linux
11800	else
11801		version_type=irix
11802	fi ;;
11803  esac
11804  need_lib_prefix=no
11805  need_version=no
11806  soname_spec='${libname}${release}${shared_ext}$major'
11807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11808  case $host_os in
11809  irix5* | nonstopux*)
11810    libsuff= shlibsuff=
11811    ;;
11812  *)
11813    case $LD in # libtool.m4 will add one of these switches to LD
11814    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11815      libsuff= shlibsuff= libmagic=32-bit;;
11816    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11817      libsuff=32 shlibsuff=N32 libmagic=N32;;
11818    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11819      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11820    *) libsuff= shlibsuff= libmagic=never-match;;
11821    esac
11822    ;;
11823  esac
11824  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11825  shlibpath_overrides_runpath=no
11826  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11827  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11828  hardcode_into_libs=yes
11829  ;;
11830
11831# No shared lib support for Linux oldld, aout, or coff.
11832linux*oldld* | linux*aout* | linux*coff*)
11833  dynamic_linker=no
11834  ;;
11835
11836# This must be Linux ELF.
11837linux*)
11838  version_type=linux
11839  need_lib_prefix=no
11840  need_version=no
11841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842  soname_spec='${libname}${release}${shared_ext}$major'
11843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11844  shlibpath_var=LD_LIBRARY_PATH
11845  shlibpath_overrides_runpath=no
11846  # This implies no fast_install, which is unacceptable.
11847  # Some rework will be needed to allow for fast_install
11848  # before this can be enabled.
11849  hardcode_into_libs=yes
11850
11851  # We used to test for /lib/ld.so.1 and disable shared libraries on
11852  # powerpc, because MkLinux only supported shared libraries with the
11853  # GNU dynamic linker.  Since this was broken with cross compilers,
11854  # most powerpc-linux boxes support dynamic linking these days and
11855  # people can always --disable-shared, the test was removed, and we
11856  # assume the GNU/Linux dynamic linker is in use.
11857  dynamic_linker='GNU/Linux ld.so'
11858  ;;
11859
11860netbsd*)
11861  version_type=sunos
11862  need_lib_prefix=no
11863  need_version=no
11864  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11866    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11867    dynamic_linker='NetBSD (a.out) ld.so'
11868  else
11869    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11870    soname_spec='${libname}${release}${shared_ext}$major'
11871    dynamic_linker='NetBSD ld.elf_so'
11872  fi
11873  shlibpath_var=LD_LIBRARY_PATH
11874  shlibpath_overrides_runpath=yes
11875  hardcode_into_libs=yes
11876  ;;
11877
11878newsos6)
11879  version_type=linux
11880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881  shlibpath_var=LD_LIBRARY_PATH
11882  shlibpath_overrides_runpath=yes
11883  ;;
11884
11885nto-qnx*)
11886  version_type=linux
11887  need_lib_prefix=no
11888  need_version=no
11889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890  soname_spec='${libname}${release}${shared_ext}$major'
11891  shlibpath_var=LD_LIBRARY_PATH
11892  shlibpath_overrides_runpath=yes
11893  ;;
11894
11895openbsd*)
11896  version_type=sunos
11897  need_lib_prefix=no
11898  need_version=no
11899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11901  shlibpath_var=LD_LIBRARY_PATH
11902  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11903    case $host_os in
11904      openbsd2.[89] | openbsd2.[89].*)
11905	shlibpath_overrides_runpath=no
11906	;;
11907      *)
11908	shlibpath_overrides_runpath=yes
11909	;;
11910      esac
11911  else
11912    shlibpath_overrides_runpath=yes
11913  fi
11914  ;;
11915
11916os2*)
11917  libname_spec='$name'
11918  shrext=".dll"
11919  need_lib_prefix=no
11920  library_names_spec='$libname${shared_ext} $libname.a'
11921  dynamic_linker='OS/2 ld.exe'
11922  shlibpath_var=LIBPATH
11923  ;;
11924
11925osf3* | osf4* | osf5*)
11926  version_type=osf
11927  need_lib_prefix=no
11928  need_version=no
11929  soname_spec='${libname}${release}${shared_ext}$major'
11930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931  shlibpath_var=LD_LIBRARY_PATH
11932  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11933  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11934  ;;
11935
11936sco3.2v5*)
11937  version_type=osf
11938  soname_spec='${libname}${release}${shared_ext}$major'
11939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940  shlibpath_var=LD_LIBRARY_PATH
11941  ;;
11942
11943solaris*)
11944  version_type=linux
11945  need_lib_prefix=no
11946  need_version=no
11947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948  soname_spec='${libname}${release}${shared_ext}$major'
11949  shlibpath_var=LD_LIBRARY_PATH
11950  shlibpath_overrides_runpath=yes
11951  hardcode_into_libs=yes
11952  # ldd complains unless libraries are executable
11953  postinstall_cmds='chmod +x $lib'
11954  ;;
11955
11956sunos4*)
11957  version_type=sunos
11958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11959  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  shlibpath_overrides_runpath=yes
11962  if test "$with_gnu_ld" = yes; then
11963    need_lib_prefix=no
11964  fi
11965  need_version=yes
11966  ;;
11967
11968sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11969  version_type=linux
11970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971  soname_spec='${libname}${release}${shared_ext}$major'
11972  shlibpath_var=LD_LIBRARY_PATH
11973  case $host_vendor in
11974    sni)
11975      shlibpath_overrides_runpath=no
11976      need_lib_prefix=no
11977      export_dynamic_flag_spec='${wl}-Blargedynsym'
11978      runpath_var=LD_RUN_PATH
11979      ;;
11980    siemens)
11981      need_lib_prefix=no
11982      ;;
11983    motorola)
11984      need_lib_prefix=no
11985      need_version=no
11986      shlibpath_overrides_runpath=no
11987      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11988      ;;
11989  esac
11990  ;;
11991
11992sysv4*MP*)
11993  if test -d /usr/nec ;then
11994    version_type=linux
11995    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11996    soname_spec='$libname${shared_ext}.$major'
11997    shlibpath_var=LD_LIBRARY_PATH
11998  fi
11999  ;;
12000
12001uts4*)
12002  version_type=linux
12003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12004  soname_spec='${libname}${release}${shared_ext}$major'
12005  shlibpath_var=LD_LIBRARY_PATH
12006  ;;
12007
12008*)
12009  dynamic_linker=no
12010  ;;
12011esac
12012{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12013echo "${ECHO_T}$dynamic_linker" >&6; }
12014test "$dynamic_linker" = no && can_build_shared=no
12015
12016{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12018hardcode_action_CXX=
12019if test -n "$hardcode_libdir_flag_spec_CXX" || \
12020   test -n "$runpath_var CXX" || \
12021   test "X$hardcode_automatic_CXX"="Xyes" ; then
12022
12023  # We can hardcode non-existant directories.
12024  if test "$hardcode_direct_CXX" != no &&
12025     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026     # have to relink, otherwise we might link with an installed library
12027     # when we should be linking with a yet-to-be-installed one
12028     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12029     test "$hardcode_minus_L_CXX" != no; then
12030    # Linking always hardcodes the temporary library directory.
12031    hardcode_action_CXX=relink
12032  else
12033    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034    hardcode_action_CXX=immediate
12035  fi
12036else
12037  # We cannot hardcode anything, or else we can only hardcode existing
12038  # directories.
12039  hardcode_action_CXX=unsupported
12040fi
12041{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12042echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12043
12044if test "$hardcode_action_CXX" = relink; then
12045  # Fast installation is not supported
12046  enable_fast_install=no
12047elif test "$shlibpath_overrides_runpath" = yes ||
12048     test "$enable_shared" = no; then
12049  # Fast installation is not necessary
12050  enable_fast_install=needless
12051fi
12052
12053striplib=
12054old_striplib=
12055{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12056echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12057if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12058  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12059  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12060  { echo "$as_me:$LINENO: result: yes" >&5
12061echo "${ECHO_T}yes" >&6; }
12062else
12063# FIXME - insert some real tests, host_os isn't really good enough
12064  case $host_os in
12065   darwin*)
12066       if test -n "$STRIP" ; then
12067         striplib="$STRIP -x"
12068         { echo "$as_me:$LINENO: result: yes" >&5
12069echo "${ECHO_T}yes" >&6; }
12070       else
12071  { echo "$as_me:$LINENO: result: no" >&5
12072echo "${ECHO_T}no" >&6; }
12073fi
12074       ;;
12075   *)
12076  { echo "$as_me:$LINENO: result: no" >&5
12077echo "${ECHO_T}no" >&6; }
12078    ;;
12079  esac
12080fi
12081
12082if test "x$enable_dlopen" != xyes; then
12083  enable_dlopen=unknown
12084  enable_dlopen_self=unknown
12085  enable_dlopen_self_static=unknown
12086else
12087  lt_cv_dlopen=no
12088  lt_cv_dlopen_libs=
12089
12090  case $host_os in
12091  beos*)
12092    lt_cv_dlopen="load_add_on"
12093    lt_cv_dlopen_libs=
12094    lt_cv_dlopen_self=yes
12095    ;;
12096
12097  mingw* | pw32*)
12098    lt_cv_dlopen="LoadLibrary"
12099    lt_cv_dlopen_libs=
12100   ;;
12101
12102  cygwin*)
12103    lt_cv_dlopen="dlopen"
12104    lt_cv_dlopen_libs=
12105   ;;
12106
12107  darwin*)
12108  # if libdl is installed we need to link against it
12109    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12110echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12111if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12112  echo $ECHO_N "(cached) $ECHO_C" >&6
12113else
12114  ac_check_lib_save_LIBS=$LIBS
12115LIBS="-ldl  $LIBS"
12116cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h.  */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h.  */
12122
12123/* Override any GCC internal prototype to avoid an error.
12124   Use char because int might match the return type of a GCC
12125   builtin and then its argument prototype would still apply.  */
12126#ifdef __cplusplus
12127extern "C"
12128#endif
12129char dlopen ();
12130int
12131main ()
12132{
12133return dlopen ();
12134  ;
12135  return 0;
12136}
12137_ACEOF
12138rm -f conftest.$ac_objext conftest$ac_exeext
12139if { (ac_try="$ac_link"
12140case "(($ac_try" in
12141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142  *) ac_try_echo=$ac_try;;
12143esac
12144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145  (eval "$ac_link") 2>conftest.er1
12146  ac_status=$?
12147  grep -v '^ *+' conftest.er1 >conftest.err
12148  rm -f conftest.er1
12149  cat conftest.err >&5
12150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151  (exit $ac_status); } && {
12152	 test -z "$ac_cxx_werror_flag" ||
12153	 test ! -s conftest.err
12154       } && test -s conftest$ac_exeext &&
12155       $as_test_x conftest$ac_exeext; then
12156  ac_cv_lib_dl_dlopen=yes
12157else
12158  echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
12161	ac_cv_lib_dl_dlopen=no
12162fi
12163
12164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12165      conftest$ac_exeext conftest.$ac_ext
12166LIBS=$ac_check_lib_save_LIBS
12167fi
12168{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12169echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12170if test $ac_cv_lib_dl_dlopen = yes; then
12171  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12172else
12173
12174    lt_cv_dlopen="dyld"
12175    lt_cv_dlopen_libs=
12176    lt_cv_dlopen_self=yes
12177
12178fi
12179
12180   ;;
12181
12182  *)
12183    { echo "$as_me:$LINENO: checking for shl_load" >&5
12184echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12185if test "${ac_cv_func_shl_load+set}" = set; then
12186  echo $ECHO_N "(cached) $ECHO_C" >&6
12187else
12188  cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h.  */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h.  */
12194/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12195   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12196#define shl_load innocuous_shl_load
12197
12198/* System header to define __stub macros and hopefully few prototypes,
12199    which can conflict with char shl_load (); below.
12200    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201    <limits.h> exists even on freestanding compilers.  */
12202
12203#ifdef __STDC__
12204# include <limits.h>
12205#else
12206# include <assert.h>
12207#endif
12208
12209#undef shl_load
12210
12211/* Override any GCC internal prototype to avoid an error.
12212   Use char because int might match the return type of a GCC
12213   builtin and then its argument prototype would still apply.  */
12214#ifdef __cplusplus
12215extern "C"
12216#endif
12217char shl_load ();
12218/* The GNU C library defines this for functions which it implements
12219    to always fail with ENOSYS.  Some functions are actually named
12220    something starting with __ and the normal name is an alias.  */
12221#if defined __stub_shl_load || defined __stub___shl_load
12222choke me
12223#endif
12224
12225int
12226main ()
12227{
12228return shl_load ();
12229  ;
12230  return 0;
12231}
12232_ACEOF
12233rm -f conftest.$ac_objext conftest$ac_exeext
12234if { (ac_try="$ac_link"
12235case "(($ac_try" in
12236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237  *) ac_try_echo=$ac_try;;
12238esac
12239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240  (eval "$ac_link") 2>conftest.er1
12241  ac_status=$?
12242  grep -v '^ *+' conftest.er1 >conftest.err
12243  rm -f conftest.er1
12244  cat conftest.err >&5
12245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); } && {
12247	 test -z "$ac_cxx_werror_flag" ||
12248	 test ! -s conftest.err
12249       } && test -s conftest$ac_exeext &&
12250       $as_test_x conftest$ac_exeext; then
12251  ac_cv_func_shl_load=yes
12252else
12253  echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
12256	ac_cv_func_shl_load=no
12257fi
12258
12259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12260      conftest$ac_exeext conftest.$ac_ext
12261fi
12262{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12263echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12264if test $ac_cv_func_shl_load = yes; then
12265  lt_cv_dlopen="shl_load"
12266else
12267  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12268echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12269if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12270  echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272  ac_check_lib_save_LIBS=$LIBS
12273LIBS="-ldld  $LIBS"
12274cat >conftest.$ac_ext <<_ACEOF
12275/* confdefs.h.  */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h.  */
12280
12281/* Override any GCC internal prototype to avoid an error.
12282   Use char because int might match the return type of a GCC
12283   builtin and then its argument prototype would still apply.  */
12284#ifdef __cplusplus
12285extern "C"
12286#endif
12287char shl_load ();
12288int
12289main ()
12290{
12291return shl_load ();
12292  ;
12293  return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext conftest$ac_exeext
12297if { (ac_try="$ac_link"
12298case "(($ac_try" in
12299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300  *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303  (eval "$ac_link") 2>conftest.er1
12304  ac_status=$?
12305  grep -v '^ *+' conftest.er1 >conftest.err
12306  rm -f conftest.er1
12307  cat conftest.err >&5
12308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309  (exit $ac_status); } && {
12310	 test -z "$ac_cxx_werror_flag" ||
12311	 test ! -s conftest.err
12312       } && test -s conftest$ac_exeext &&
12313       $as_test_x conftest$ac_exeext; then
12314  ac_cv_lib_dld_shl_load=yes
12315else
12316  echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319	ac_cv_lib_dld_shl_load=no
12320fi
12321
12322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12323      conftest$ac_exeext conftest.$ac_ext
12324LIBS=$ac_check_lib_save_LIBS
12325fi
12326{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12327echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12328if test $ac_cv_lib_dld_shl_load = yes; then
12329  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12330else
12331  { echo "$as_me:$LINENO: checking for dlopen" >&5
12332echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12333if test "${ac_cv_func_dlopen+set}" = set; then
12334  echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336  cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h.  */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h.  */
12342/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12343   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12344#define dlopen innocuous_dlopen
12345
12346/* System header to define __stub macros and hopefully few prototypes,
12347    which can conflict with char dlopen (); below.
12348    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349    <limits.h> exists even on freestanding compilers.  */
12350
12351#ifdef __STDC__
12352# include <limits.h>
12353#else
12354# include <assert.h>
12355#endif
12356
12357#undef dlopen
12358
12359/* Override any GCC internal prototype to avoid an error.
12360   Use char because int might match the return type of a GCC
12361   builtin and then its argument prototype would still apply.  */
12362#ifdef __cplusplus
12363extern "C"
12364#endif
12365char dlopen ();
12366/* The GNU C library defines this for functions which it implements
12367    to always fail with ENOSYS.  Some functions are actually named
12368    something starting with __ and the normal name is an alias.  */
12369#if defined __stub_dlopen || defined __stub___dlopen
12370choke me
12371#endif
12372
12373int
12374main ()
12375{
12376return dlopen ();
12377  ;
12378  return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext conftest$ac_exeext
12382if { (ac_try="$ac_link"
12383case "(($ac_try" in
12384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385  *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388  (eval "$ac_link") 2>conftest.er1
12389  ac_status=$?
12390  grep -v '^ *+' conftest.er1 >conftest.err
12391  rm -f conftest.er1
12392  cat conftest.err >&5
12393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394  (exit $ac_status); } && {
12395	 test -z "$ac_cxx_werror_flag" ||
12396	 test ! -s conftest.err
12397       } && test -s conftest$ac_exeext &&
12398       $as_test_x conftest$ac_exeext; then
12399  ac_cv_func_dlopen=yes
12400else
12401  echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404	ac_cv_func_dlopen=no
12405fi
12406
12407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12408      conftest$ac_exeext conftest.$ac_ext
12409fi
12410{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12411echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12412if test $ac_cv_func_dlopen = yes; then
12413  lt_cv_dlopen="dlopen"
12414else
12415  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12416echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12417if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12418  echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420  ac_check_lib_save_LIBS=$LIBS
12421LIBS="-ldl  $LIBS"
12422cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h.  */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h.  */
12428
12429/* Override any GCC internal prototype to avoid an error.
12430   Use char because int might match the return type of a GCC
12431   builtin and then its argument prototype would still apply.  */
12432#ifdef __cplusplus
12433extern "C"
12434#endif
12435char dlopen ();
12436int
12437main ()
12438{
12439return dlopen ();
12440  ;
12441  return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext conftest$ac_exeext
12445if { (ac_try="$ac_link"
12446case "(($ac_try" in
12447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448  *) ac_try_echo=$ac_try;;
12449esac
12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451  (eval "$ac_link") 2>conftest.er1
12452  ac_status=$?
12453  grep -v '^ *+' conftest.er1 >conftest.err
12454  rm -f conftest.er1
12455  cat conftest.err >&5
12456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457  (exit $ac_status); } && {
12458	 test -z "$ac_cxx_werror_flag" ||
12459	 test ! -s conftest.err
12460       } && test -s conftest$ac_exeext &&
12461       $as_test_x conftest$ac_exeext; then
12462  ac_cv_lib_dl_dlopen=yes
12463else
12464  echo "$as_me: failed program was:" >&5
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
12467	ac_cv_lib_dl_dlopen=no
12468fi
12469
12470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12471      conftest$ac_exeext conftest.$ac_ext
12472LIBS=$ac_check_lib_save_LIBS
12473fi
12474{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12475echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12476if test $ac_cv_lib_dl_dlopen = yes; then
12477  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12478else
12479  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12480echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12481if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12482  echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484  ac_check_lib_save_LIBS=$LIBS
12485LIBS="-lsvld  $LIBS"
12486cat >conftest.$ac_ext <<_ACEOF
12487/* confdefs.h.  */
12488_ACEOF
12489cat confdefs.h >>conftest.$ac_ext
12490cat >>conftest.$ac_ext <<_ACEOF
12491/* end confdefs.h.  */
12492
12493/* Override any GCC internal prototype to avoid an error.
12494   Use char because int might match the return type of a GCC
12495   builtin and then its argument prototype would still apply.  */
12496#ifdef __cplusplus
12497extern "C"
12498#endif
12499char dlopen ();
12500int
12501main ()
12502{
12503return dlopen ();
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext conftest$ac_exeext
12509if { (ac_try="$ac_link"
12510case "(($ac_try" in
12511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512  *) ac_try_echo=$ac_try;;
12513esac
12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515  (eval "$ac_link") 2>conftest.er1
12516  ac_status=$?
12517  grep -v '^ *+' conftest.er1 >conftest.err
12518  rm -f conftest.er1
12519  cat conftest.err >&5
12520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521  (exit $ac_status); } && {
12522	 test -z "$ac_cxx_werror_flag" ||
12523	 test ! -s conftest.err
12524       } && test -s conftest$ac_exeext &&
12525       $as_test_x conftest$ac_exeext; then
12526  ac_cv_lib_svld_dlopen=yes
12527else
12528  echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531	ac_cv_lib_svld_dlopen=no
12532fi
12533
12534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535      conftest$ac_exeext conftest.$ac_ext
12536LIBS=$ac_check_lib_save_LIBS
12537fi
12538{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12539echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12540if test $ac_cv_lib_svld_dlopen = yes; then
12541  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12542else
12543  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12544echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12545if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12546  echo $ECHO_N "(cached) $ECHO_C" >&6
12547else
12548  ac_check_lib_save_LIBS=$LIBS
12549LIBS="-ldld  $LIBS"
12550cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h.  */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h.  */
12556
12557/* Override any GCC internal prototype to avoid an error.
12558   Use char because int might match the return type of a GCC
12559   builtin and then its argument prototype would still apply.  */
12560#ifdef __cplusplus
12561extern "C"
12562#endif
12563char dld_link ();
12564int
12565main ()
12566{
12567return dld_link ();
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572rm -f conftest.$ac_objext conftest$ac_exeext
12573if { (ac_try="$ac_link"
12574case "(($ac_try" in
12575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576  *) ac_try_echo=$ac_try;;
12577esac
12578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579  (eval "$ac_link") 2>conftest.er1
12580  ac_status=$?
12581  grep -v '^ *+' conftest.er1 >conftest.err
12582  rm -f conftest.er1
12583  cat conftest.err >&5
12584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585  (exit $ac_status); } && {
12586	 test -z "$ac_cxx_werror_flag" ||
12587	 test ! -s conftest.err
12588       } && test -s conftest$ac_exeext &&
12589       $as_test_x conftest$ac_exeext; then
12590  ac_cv_lib_dld_dld_link=yes
12591else
12592  echo "$as_me: failed program was:" >&5
12593sed 's/^/| /' conftest.$ac_ext >&5
12594
12595	ac_cv_lib_dld_dld_link=no
12596fi
12597
12598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12599      conftest$ac_exeext conftest.$ac_ext
12600LIBS=$ac_check_lib_save_LIBS
12601fi
12602{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12603echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12604if test $ac_cv_lib_dld_dld_link = yes; then
12605  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12606fi
12607
12608
12609fi
12610
12611
12612fi
12613
12614
12615fi
12616
12617
12618fi
12619
12620
12621fi
12622
12623    ;;
12624  esac
12625
12626  if test "x$lt_cv_dlopen" != xno; then
12627    enable_dlopen=yes
12628  else
12629    enable_dlopen=no
12630  fi
12631
12632  case $lt_cv_dlopen in
12633  dlopen)
12634    save_CPPFLAGS="$CPPFLAGS"
12635    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12636
12637    save_LDFLAGS="$LDFLAGS"
12638    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12639
12640    save_LIBS="$LIBS"
12641    LIBS="$lt_cv_dlopen_libs $LIBS"
12642
12643    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12644echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12645if test "${lt_cv_dlopen_self+set}" = set; then
12646  echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648  	  if test "$cross_compiling" = yes; then :
12649  lt_cv_dlopen_self=cross
12650else
12651  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12652  lt_status=$lt_dlunknown
12653  cat > conftest.$ac_ext <<EOF
12654#line 12654 "configure"
12655#include "confdefs.h"
12656
12657#if HAVE_DLFCN_H
12658#include <dlfcn.h>
12659#endif
12660
12661#include <stdio.h>
12662
12663#ifdef RTLD_GLOBAL
12664#  define LT_DLGLOBAL		RTLD_GLOBAL
12665#else
12666#  ifdef DL_GLOBAL
12667#    define LT_DLGLOBAL		DL_GLOBAL
12668#  else
12669#    define LT_DLGLOBAL		0
12670#  endif
12671#endif
12672
12673/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12674   find out it does not work in some platform. */
12675#ifndef LT_DLLAZY_OR_NOW
12676#  ifdef RTLD_LAZY
12677#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12678#  else
12679#    ifdef DL_LAZY
12680#      define LT_DLLAZY_OR_NOW		DL_LAZY
12681#    else
12682#      ifdef RTLD_NOW
12683#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12684#      else
12685#        ifdef DL_NOW
12686#          define LT_DLLAZY_OR_NOW	DL_NOW
12687#        else
12688#          define LT_DLLAZY_OR_NOW	0
12689#        endif
12690#      endif
12691#    endif
12692#  endif
12693#endif
12694
12695#ifdef __cplusplus
12696extern "C" void exit (int);
12697#endif
12698
12699void fnord() { int i=42;}
12700int main ()
12701{
12702  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12703  int status = $lt_dlunknown;
12704
12705  if (self)
12706    {
12707      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12708      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12709      /* dlclose (self); */
12710    }
12711
12712    exit (status);
12713}
12714EOF
12715  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716  (eval $ac_link) 2>&5
12717  ac_status=$?
12718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12720    (./conftest; exit; ) 2>/dev/null
12721    lt_status=$?
12722    case x$lt_status in
12723      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12724      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12725      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12726    esac
12727  else :
12728    # compilation failed
12729    lt_cv_dlopen_self=no
12730  fi
12731fi
12732rm -fr conftest*
12733
12734
12735fi
12736{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12737echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12738
12739    if test "x$lt_cv_dlopen_self" = xyes; then
12740      LDFLAGS="$LDFLAGS $link_static_flag"
12741      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12742echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12743if test "${lt_cv_dlopen_self_static+set}" = set; then
12744  echo $ECHO_N "(cached) $ECHO_C" >&6
12745else
12746  	  if test "$cross_compiling" = yes; then :
12747  lt_cv_dlopen_self_static=cross
12748else
12749  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12750  lt_status=$lt_dlunknown
12751  cat > conftest.$ac_ext <<EOF
12752#line 12752 "configure"
12753#include "confdefs.h"
12754
12755#if HAVE_DLFCN_H
12756#include <dlfcn.h>
12757#endif
12758
12759#include <stdio.h>
12760
12761#ifdef RTLD_GLOBAL
12762#  define LT_DLGLOBAL		RTLD_GLOBAL
12763#else
12764#  ifdef DL_GLOBAL
12765#    define LT_DLGLOBAL		DL_GLOBAL
12766#  else
12767#    define LT_DLGLOBAL		0
12768#  endif
12769#endif
12770
12771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12772   find out it does not work in some platform. */
12773#ifndef LT_DLLAZY_OR_NOW
12774#  ifdef RTLD_LAZY
12775#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12776#  else
12777#    ifdef DL_LAZY
12778#      define LT_DLLAZY_OR_NOW		DL_LAZY
12779#    else
12780#      ifdef RTLD_NOW
12781#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12782#      else
12783#        ifdef DL_NOW
12784#          define LT_DLLAZY_OR_NOW	DL_NOW
12785#        else
12786#          define LT_DLLAZY_OR_NOW	0
12787#        endif
12788#      endif
12789#    endif
12790#  endif
12791#endif
12792
12793#ifdef __cplusplus
12794extern "C" void exit (int);
12795#endif
12796
12797void fnord() { int i=42;}
12798int main ()
12799{
12800  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12801  int status = $lt_dlunknown;
12802
12803  if (self)
12804    {
12805      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12806      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12807      /* dlclose (self); */
12808    }
12809
12810    exit (status);
12811}
12812EOF
12813  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814  (eval $ac_link) 2>&5
12815  ac_status=$?
12816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12818    (./conftest; exit; ) 2>/dev/null
12819    lt_status=$?
12820    case x$lt_status in
12821      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12822      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12823      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12824    esac
12825  else :
12826    # compilation failed
12827    lt_cv_dlopen_self_static=no
12828  fi
12829fi
12830rm -fr conftest*
12831
12832
12833fi
12834{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12835echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12836    fi
12837
12838    CPPFLAGS="$save_CPPFLAGS"
12839    LDFLAGS="$save_LDFLAGS"
12840    LIBS="$save_LIBS"
12841    ;;
12842  esac
12843
12844  case $lt_cv_dlopen_self in
12845  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12846  *) enable_dlopen_self=unknown ;;
12847  esac
12848
12849  case $lt_cv_dlopen_self_static in
12850  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12851  *) enable_dlopen_self_static=unknown ;;
12852  esac
12853fi
12854
12855
12856# The else clause should only fire when bootstrapping the
12857# libtool distribution, otherwise you forgot to ship ltmain.sh
12858# with your package, and you will get complaints that there are
12859# no rules to generate ltmain.sh.
12860if test -f "$ltmain"; then
12861  # See if we are running on zsh, and set the options which allow our commands through
12862  # without removal of \ escapes.
12863  if test -n "${ZSH_VERSION+set}" ; then
12864    setopt NO_GLOB_SUBST
12865  fi
12866  # Now quote all the things that may contain metacharacters while being
12867  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12868  # variables and quote the copies for generation of the libtool script.
12869  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12870    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12871    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12872    deplibs_check_method reload_flag reload_cmds need_locks \
12873    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12874    lt_cv_sys_global_symbol_to_c_name_address \
12875    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12876    old_postinstall_cmds old_postuninstall_cmds \
12877    compiler_CXX \
12878    CC_CXX \
12879    LD_CXX \
12880    lt_prog_compiler_wl_CXX \
12881    lt_prog_compiler_pic_CXX \
12882    lt_prog_compiler_static_CXX \
12883    lt_prog_compiler_no_builtin_flag_CXX \
12884    export_dynamic_flag_spec_CXX \
12885    thread_safe_flag_spec_CXX \
12886    whole_archive_flag_spec_CXX \
12887    enable_shared_with_static_runtimes_CXX \
12888    old_archive_cmds_CXX \
12889    old_archive_from_new_cmds_CXX \
12890    predep_objects_CXX \
12891    postdep_objects_CXX \
12892    predeps_CXX \
12893    postdeps_CXX \
12894    compiler_lib_search_path_CXX \
12895    archive_cmds_CXX \
12896    archive_expsym_cmds_CXX \
12897    postinstall_cmds_CXX \
12898    postuninstall_cmds_CXX \
12899    old_archive_from_expsyms_cmds_CXX \
12900    allow_undefined_flag_CXX \
12901    no_undefined_flag_CXX \
12902    export_symbols_cmds_CXX \
12903    hardcode_libdir_flag_spec_CXX \
12904    hardcode_libdir_flag_spec_ld_CXX \
12905    hardcode_libdir_separator_CXX \
12906    hardcode_automatic_CXX \
12907    module_cmds_CXX \
12908    module_expsym_cmds_CXX \
12909    lt_cv_prog_compiler_c_o_CXX \
12910    exclude_expsyms_CXX \
12911    include_expsyms_CXX; do
12912
12913    case $var in
12914    old_archive_cmds_CXX | \
12915    old_archive_from_new_cmds_CXX | \
12916    archive_cmds_CXX | \
12917    archive_expsym_cmds_CXX | \
12918    module_cmds_CXX | \
12919    module_expsym_cmds_CXX | \
12920    old_archive_from_expsyms_cmds_CXX | \
12921    export_symbols_cmds_CXX | \
12922    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12923    postinstall_cmds | postuninstall_cmds | \
12924    old_postinstall_cmds | old_postuninstall_cmds | \
12925    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12926      # Double-quote double-evaled strings.
12927      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12928      ;;
12929    *)
12930      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12931      ;;
12932    esac
12933  done
12934
12935  case $lt_echo in
12936  *'\$0 --fallback-echo"')
12937    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12938    ;;
12939  esac
12940
12941cfgfile="$ofile"
12942
12943  cat <<__EOF__ >> "$cfgfile"
12944# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12945
12946# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12947
12948# Shell to use when invoking shell scripts.
12949SHELL=$lt_SHELL
12950
12951# Whether or not to build shared libraries.
12952build_libtool_libs=$enable_shared
12953
12954# Whether or not to build static libraries.
12955build_old_libs=$enable_static
12956
12957# Whether or not to add -lc for building shared libraries.
12958build_libtool_need_lc=$archive_cmds_need_lc_CXX
12959
12960# Whether or not to disallow shared libs when runtime libs are static
12961allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12962
12963# Whether or not to optimize for fast installation.
12964fast_install=$enable_fast_install
12965
12966# The host system.
12967host_alias=$host_alias
12968host=$host
12969
12970# An echo program that does not interpret backslashes.
12971echo=$lt_echo
12972
12973# The archiver.
12974AR=$lt_AR
12975AR_FLAGS=$lt_AR_FLAGS
12976
12977# A C compiler.
12978LTCC=$lt_LTCC
12979
12980# A language-specific compiler.
12981CC=$lt_compiler_CXX
12982
12983# Is the compiler the GNU C compiler?
12984with_gcc=$GCC_CXX
12985
12986# An ERE matcher.
12987EGREP=$lt_EGREP
12988
12989# The linker used to build libraries.
12990LD=$lt_LD_CXX
12991
12992# Whether we need hard or soft links.
12993LN_S=$lt_LN_S
12994
12995# A BSD-compatible nm program.
12996NM=$lt_NM
12997
12998# A symbol stripping program
12999STRIP="$STRIP"
13000
13001# Used to examine libraries when file_magic_cmd begins "file"
13002MAGIC_CMD=$MAGIC_CMD
13003
13004# Used on cygwin: DLL creation program.
13005DLLTOOL="$DLLTOOL"
13006
13007# Used on cygwin: object dumper.
13008OBJDUMP="$OBJDUMP"
13009
13010# Used on cygwin: assembler.
13011AS="$AS"
13012
13013# The name of the directory that contains temporary libtool files.
13014objdir=$objdir
13015
13016# How to create reloadable object files.
13017reload_flag=$lt_reload_flag
13018reload_cmds=$lt_reload_cmds
13019
13020# How to pass a linker flag through the compiler.
13021wl=$lt_lt_prog_compiler_wl_CXX
13022
13023# Object file suffix (normally "o").
13024objext="$ac_objext"
13025
13026# Old archive suffix (normally "a").
13027libext="$libext"
13028
13029# Shared library suffix (normally ".so").
13030shrext='$shrext'
13031
13032# Executable file suffix (normally "").
13033exeext="$exeext"
13034
13035# Additional compiler flags for building library objects.
13036pic_flag=$lt_lt_prog_compiler_pic_CXX
13037pic_mode=$pic_mode
13038
13039# What is the maximum length of a command?
13040max_cmd_len=$lt_cv_sys_max_cmd_len
13041
13042# Does compiler simultaneously support -c and -o options?
13043compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13044
13045# Must we lock files when doing compilation ?
13046need_locks=$lt_need_locks
13047
13048# Do we need the lib prefix for modules?
13049need_lib_prefix=$need_lib_prefix
13050
13051# Do we need a version for libraries?
13052need_version=$need_version
13053
13054# Whether dlopen is supported.
13055dlopen_support=$enable_dlopen
13056
13057# Whether dlopen of programs is supported.
13058dlopen_self=$enable_dlopen_self
13059
13060# Whether dlopen of statically linked programs is supported.
13061dlopen_self_static=$enable_dlopen_self_static
13062
13063# Compiler flag to prevent dynamic linking.
13064link_static_flag=$lt_lt_prog_compiler_static_CXX
13065
13066# Compiler flag to turn off builtin functions.
13067no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13068
13069# Compiler flag to allow reflexive dlopens.
13070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13071
13072# Compiler flag to generate shared objects directly from archives.
13073whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13074
13075# Compiler flag to generate thread-safe objects.
13076thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13077
13078# Library versioning type.
13079version_type=$version_type
13080
13081# Format of library name prefix.
13082libname_spec=$lt_libname_spec
13083
13084# List of archive names.  First name is the real one, the rest are links.
13085# The last name is the one that the linker finds with -lNAME.
13086library_names_spec=$lt_library_names_spec
13087
13088# The coded name of the library, if different from the real name.
13089soname_spec=$lt_soname_spec
13090
13091# Commands used to build and install an old-style archive.
13092RANLIB=$lt_RANLIB
13093old_archive_cmds=$lt_old_archive_cmds_CXX
13094old_postinstall_cmds=$lt_old_postinstall_cmds
13095old_postuninstall_cmds=$lt_old_postuninstall_cmds
13096
13097# Create an old-style archive from a shared archive.
13098old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13099
13100# Create a temporary old-style archive to link instead of a shared archive.
13101old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13102
13103# Commands used to build and install a shared archive.
13104archive_cmds=$lt_archive_cmds_CXX
13105archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13106postinstall_cmds=$lt_postinstall_cmds
13107postuninstall_cmds=$lt_postuninstall_cmds
13108
13109# Commands used to build a loadable module (assumed same as above if empty)
13110module_cmds=$lt_module_cmds_CXX
13111module_expsym_cmds=$lt_module_expsym_cmds_CXX
13112
13113# Commands to strip libraries.
13114old_striplib=$lt_old_striplib
13115striplib=$lt_striplib
13116
13117# Dependencies to place before the objects being linked to create a
13118# shared library.
13119predep_objects=$lt_predep_objects_CXX
13120
13121# Dependencies to place after the objects being linked to create a
13122# shared library.
13123postdep_objects=$lt_postdep_objects_CXX
13124
13125# Dependencies to place before the objects being linked to create a
13126# shared library.
13127predeps=$lt_predeps_CXX
13128
13129# Dependencies to place after the objects being linked to create a
13130# shared library.
13131postdeps=$lt_postdeps_CXX
13132
13133# The library search path used internally by the compiler when linking
13134# a shared library.
13135compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13136
13137# Method to check whether dependent libraries are shared objects.
13138deplibs_check_method=$lt_deplibs_check_method
13139
13140# Command to use when deplibs_check_method == file_magic.
13141file_magic_cmd=$lt_file_magic_cmd
13142
13143# Flag that allows shared libraries with undefined symbols to be built.
13144allow_undefined_flag=$lt_allow_undefined_flag_CXX
13145
13146# Flag that forces no undefined symbols.
13147no_undefined_flag=$lt_no_undefined_flag_CXX
13148
13149# Commands used to finish a libtool library installation in a directory.
13150finish_cmds=$lt_finish_cmds
13151
13152# Same as above, but a single script fragment to be evaled but not shown.
13153finish_eval=$lt_finish_eval
13154
13155# Take the output of nm and produce a listing of raw symbols and C names.
13156global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13157
13158# Transform the output of nm in a proper C declaration
13159global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13160
13161# Transform the output of nm in a C name address pair
13162global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13163
13164# This is the shared library runtime path variable.
13165runpath_var=$runpath_var
13166
13167# This is the shared library path variable.
13168shlibpath_var=$shlibpath_var
13169
13170# Is shlibpath searched before the hard-coded library search path?
13171shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13172
13173# How to hardcode a shared library path into an executable.
13174hardcode_action=$hardcode_action_CXX
13175
13176# Whether we should hardcode library paths into libraries.
13177hardcode_into_libs=$hardcode_into_libs
13178
13179# Flag to hardcode \$libdir into a binary during linking.
13180# This must work even if \$libdir does not exist.
13181hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13182
13183# If ld is used when linking, flag to hardcode \$libdir into
13184# a binary during linking. This must work even if \$libdir does
13185# not exist.
13186hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13187
13188# Whether we need a single -rpath flag with a separated argument.
13189hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13190
13191# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13192# resulting binary.
13193hardcode_direct=$hardcode_direct_CXX
13194
13195# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13196# resulting binary.
13197hardcode_minus_L=$hardcode_minus_L_CXX
13198
13199# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13200# the resulting binary.
13201hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13202
13203# Set to yes if building a shared library automatically hardcodes DIR into the library
13204# and all subsequent libraries and executables linked against it.
13205hardcode_automatic=$hardcode_automatic_CXX
13206
13207# Variables whose values should be saved in libtool wrapper scripts and
13208# restored at relink time.
13209variables_saved_for_relink="$variables_saved_for_relink"
13210
13211# Whether libtool must link a program against all its dependency libraries.
13212link_all_deplibs=$link_all_deplibs_CXX
13213
13214# Compile-time system search path for libraries
13215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13216
13217# Run-time system search path for libraries
13218sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13219
13220# Fix the shell variable \$srcfile for the compiler.
13221fix_srcfile_path="$fix_srcfile_path_CXX"
13222
13223# Set to yes if exported symbols are required.
13224always_export_symbols=$always_export_symbols_CXX
13225
13226# The commands to list exported symbols.
13227export_symbols_cmds=$lt_export_symbols_cmds_CXX
13228
13229# The commands to extract the exported symbol list from a shared archive.
13230extract_expsyms_cmds=$lt_extract_expsyms_cmds
13231
13232# Symbols that should not be listed in the preloaded symbols.
13233exclude_expsyms=$lt_exclude_expsyms_CXX
13234
13235# Symbols that must always be exported.
13236include_expsyms=$lt_include_expsyms_CXX
13237
13238# ### END LIBTOOL TAG CONFIG: $tagname
13239
13240__EOF__
13241
13242
13243else
13244  # If there is no Makefile yet, we rely on a make rule to execute
13245  # `config.status --recheck' to rerun these tests and create the
13246  # libtool script then.
13247  test -f Makefile && make "$ltmain"
13248fi
13249
13250
13251ac_ext=c
13252ac_cpp='$CPP $CPPFLAGS'
13253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13255ac_compiler_gnu=$ac_cv_c_compiler_gnu
13256
13257CC=$lt_save_CC
13258LDCXX=$LD
13259LD=$lt_save_LD
13260GCC=$lt_save_GCC
13261with_gnu_ldcxx=$with_gnu_ld
13262with_gnu_ld=$lt_save_with_gnu_ld
13263lt_cv_path_LDCXX=$lt_cv_path_LD
13264lt_cv_path_LD=$lt_save_path_LD
13265lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13266lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13267
13268	else
13269	  tagname=""
13270	fi
13271	;;
13272
13273      F77)
13274	if test -n "$F77" && test "X$F77" != "Xno"; then
13275
13276ac_ext=f
13277ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13278ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13279ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13280
13281
13282archive_cmds_need_lc_F77=no
13283allow_undefined_flag_F77=
13284always_export_symbols_F77=no
13285archive_expsym_cmds_F77=
13286export_dynamic_flag_spec_F77=
13287hardcode_direct_F77=no
13288hardcode_libdir_flag_spec_F77=
13289hardcode_libdir_flag_spec_ld_F77=
13290hardcode_libdir_separator_F77=
13291hardcode_minus_L_F77=no
13292hardcode_automatic_F77=no
13293module_cmds_F77=
13294module_expsym_cmds_F77=
13295link_all_deplibs_F77=unknown
13296old_archive_cmds_F77=$old_archive_cmds
13297no_undefined_flag_F77=
13298whole_archive_flag_spec_F77=
13299enable_shared_with_static_runtimes_F77=no
13300
13301# Source file extension for f77 test sources.
13302ac_ext=f
13303
13304# Object file extension for compiled f77 test sources.
13305objext=o
13306objext_F77=$objext
13307
13308# Code to be used in simple compile tests
13309lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13310
13311# Code to be used in simple link tests
13312lt_simple_link_test_code="      program t\n      end\n"
13313
13314# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13315
13316# If no C compiler was specified, use CC.
13317LTCC=${LTCC-"$CC"}
13318
13319# Allow CC to be a program name with arguments.
13320compiler=$CC
13321
13322
13323# Allow CC to be a program name with arguments.
13324lt_save_CC="$CC"
13325CC=${F77-"f77"}
13326compiler=$CC
13327compiler_F77=$CC
13328cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13329
13330{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13331echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13332{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13333echo "${ECHO_T}$can_build_shared" >&6; }
13334
13335{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13336echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13337test "$can_build_shared" = "no" && enable_shared=no
13338
13339# On AIX, shared libraries and static libraries use the same namespace, and
13340# are all built from PIC.
13341case "$host_os" in
13342aix3*)
13343  test "$enable_shared" = yes && enable_static=no
13344  if test -n "$RANLIB"; then
13345    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13346    postinstall_cmds='$RANLIB $lib'
13347  fi
13348  ;;
13349aix4*)
13350  test "$enable_shared" = yes && enable_static=no
13351  ;;
13352esac
13353{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13354echo "${ECHO_T}$enable_shared" >&6; }
13355
13356{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13357echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13358# Make sure either enable_shared or enable_static is yes.
13359test "$enable_shared" = yes || enable_static=yes
13360{ echo "$as_me:$LINENO: result: $enable_static" >&5
13361echo "${ECHO_T}$enable_static" >&6; }
13362
13363test "$ld_shlibs_F77" = no && can_build_shared=no
13364
13365GCC_F77="$G77"
13366LD_F77="$LD"
13367
13368lt_prog_compiler_wl_F77=
13369lt_prog_compiler_pic_F77=
13370lt_prog_compiler_static_F77=
13371
13372{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13373echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13374
13375  if test "$GCC" = yes; then
13376    lt_prog_compiler_wl_F77='-Wl,'
13377    lt_prog_compiler_static_F77='-static'
13378
13379    case $host_os in
13380      aix*)
13381      # All AIX code is PIC.
13382      if test "$host_cpu" = ia64; then
13383	# AIX 5 now supports IA64 processor
13384	lt_prog_compiler_static_F77='-Bstatic'
13385      fi
13386      ;;
13387
13388    amigaos*)
13389      # FIXME: we need at least 68020 code to build shared libraries, but
13390      # adding the `-m68020' flag to GCC prevents building anything better,
13391      # like `-m68040'.
13392      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13393      ;;
13394
13395    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13396      # PIC is the default for these OSes.
13397      ;;
13398
13399    mingw* | pw32* | os2*)
13400      # This hack is so that the source file can tell whether it is being
13401      # built for inclusion in a dll (and should export symbols for example).
13402      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13403      ;;
13404
13405    darwin* | rhapsody*)
13406      # PIC is the default on this platform
13407      # Common symbols not allowed in MH_DYLIB files
13408      lt_prog_compiler_pic_F77='-fno-common'
13409      ;;
13410
13411    msdosdjgpp*)
13412      # Just because we use GCC doesn't mean we suddenly get shared libraries
13413      # on systems that don't support them.
13414      lt_prog_compiler_can_build_shared_F77=no
13415      enable_shared=no
13416      ;;
13417
13418    sysv4*MP*)
13419      if test -d /usr/nec; then
13420	lt_prog_compiler_pic_F77=-Kconform_pic
13421      fi
13422      ;;
13423
13424    hpux*)
13425      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13426      # not for PA HP-UX.
13427      case "$host_cpu" in
13428      hppa*64*|ia64*)
13429	# +Z the default
13430	;;
13431      *)
13432	lt_prog_compiler_pic_F77='-fPIC'
13433	;;
13434      esac
13435      ;;
13436
13437    *)
13438      lt_prog_compiler_pic_F77='-fPIC'
13439      ;;
13440    esac
13441  else
13442    # PORTME Check for flag to pass linker flags through the system compiler.
13443    case $host_os in
13444    aix*)
13445      lt_prog_compiler_wl_F77='-Wl,'
13446      if test "$host_cpu" = ia64; then
13447	# AIX 5 now supports IA64 processor
13448	lt_prog_compiler_static_F77='-Bstatic'
13449      else
13450	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13451      fi
13452      ;;
13453
13454    mingw* | pw32* | os2*)
13455      # This hack is so that the source file can tell whether it is being
13456      # built for inclusion in a dll (and should export symbols for example).
13457      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13458      ;;
13459
13460    hpux9* | hpux10* | hpux11*)
13461      lt_prog_compiler_wl_F77='-Wl,'
13462      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13463      # not for PA HP-UX.
13464      case "$host_cpu" in
13465      hppa*64*|ia64*)
13466	# +Z the default
13467	;;
13468      *)
13469	lt_prog_compiler_pic_F77='+Z'
13470	;;
13471      esac
13472      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13473      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13474      ;;
13475
13476    irix5* | irix6* | nonstopux*)
13477      lt_prog_compiler_wl_F77='-Wl,'
13478      # PIC (with -KPIC) is the default.
13479      lt_prog_compiler_static_F77='-non_shared'
13480      ;;
13481
13482    newsos6)
13483      lt_prog_compiler_pic_F77='-KPIC'
13484      lt_prog_compiler_static_F77='-Bstatic'
13485      ;;
13486
13487    linux*)
13488      case $CC in
13489      icc* | ecc*)
13490	lt_prog_compiler_wl_F77='-Wl,'
13491	lt_prog_compiler_pic_F77='-KPIC'
13492	lt_prog_compiler_static_F77='-static'
13493        ;;
13494      ccc*)
13495        lt_prog_compiler_wl_F77='-Wl,'
13496        # All Alpha code is PIC.
13497        lt_prog_compiler_static_F77='-non_shared'
13498        ;;
13499      esac
13500      ;;
13501
13502    osf3* | osf4* | osf5*)
13503      lt_prog_compiler_wl_F77='-Wl,'
13504      # All OSF/1 code is PIC.
13505      lt_prog_compiler_static_F77='-non_shared'
13506      ;;
13507
13508    sco3.2v5*)
13509      lt_prog_compiler_pic_F77='-Kpic'
13510      lt_prog_compiler_static_F77='-dn'
13511      ;;
13512
13513    solaris*)
13514      lt_prog_compiler_wl_F77='-Wl,'
13515      lt_prog_compiler_pic_F77='-KPIC'
13516      lt_prog_compiler_static_F77='-Bstatic'
13517      ;;
13518
13519    sunos4*)
13520      lt_prog_compiler_wl_F77='-Qoption ld '
13521      lt_prog_compiler_pic_F77='-PIC'
13522      lt_prog_compiler_static_F77='-Bstatic'
13523      ;;
13524
13525    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13526      lt_prog_compiler_wl_F77='-Wl,'
13527      lt_prog_compiler_pic_F77='-KPIC'
13528      lt_prog_compiler_static_F77='-Bstatic'
13529      ;;
13530
13531    sysv4*MP*)
13532      if test -d /usr/nec ;then
13533	lt_prog_compiler_pic_F77='-Kconform_pic'
13534	lt_prog_compiler_static_F77='-Bstatic'
13535      fi
13536      ;;
13537
13538    uts4*)
13539      lt_prog_compiler_pic_F77='-pic'
13540      lt_prog_compiler_static_F77='-Bstatic'
13541      ;;
13542
13543    *)
13544      lt_prog_compiler_can_build_shared_F77=no
13545      ;;
13546    esac
13547  fi
13548
13549{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13550echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13551
13552#
13553# Check to make sure the PIC flag actually works.
13554#
13555if test -n "$lt_prog_compiler_pic_F77"; then
13556
13557{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13558echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13559if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13560  echo $ECHO_N "(cached) $ECHO_C" >&6
13561else
13562  lt_prog_compiler_pic_works_F77=no
13563  ac_outfile=conftest.$ac_objext
13564   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13565   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13566   # Insert the option either (1) after the last *FLAGS variable, or
13567   # (2) before a word containing "conftest.", or (3) at the end.
13568   # Note that $ac_compile itself does not contain backslashes and begins
13569   # with a dollar sign (not a hyphen), so the echo should work correctly.
13570   # The option is referenced via a variable to avoid confusing sed.
13571   lt_compile=`echo "$ac_compile" | $SED \
13572   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13573   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13574   -e 's:$: $lt_compiler_flag:'`
13575   (eval echo "\"\$as_me:13575: $lt_compile\"" >&5)
13576   (eval "$lt_compile" 2>conftest.err)
13577   ac_status=$?
13578   cat conftest.err >&5
13579   echo "$as_me:13579: \$? = $ac_status" >&5
13580   if (exit $ac_status) && test -s "$ac_outfile"; then
13581     # The compiler can only warn and ignore the option if not recognized
13582     # So say no if there are warnings
13583     if test ! -s conftest.err; then
13584       lt_prog_compiler_pic_works_F77=yes
13585     fi
13586   fi
13587   $rm conftest*
13588
13589fi
13590{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13591echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13592
13593if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13594    case $lt_prog_compiler_pic_F77 in
13595     "" | " "*) ;;
13596     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13597     esac
13598else
13599    lt_prog_compiler_pic_F77=
13600     lt_prog_compiler_can_build_shared_F77=no
13601fi
13602
13603fi
13604case "$host_os" in
13605  # For platforms which do not support PIC, -DPIC is meaningless:
13606  *djgpp*)
13607    lt_prog_compiler_pic_F77=
13608    ;;
13609  *)
13610    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13611    ;;
13612esac
13613
13614{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13615echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13616if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13617  echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619  lt_cv_prog_compiler_c_o_F77=no
13620   $rm -r conftest 2>/dev/null
13621   mkdir conftest
13622   cd conftest
13623   mkdir out
13624   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13625
13626   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13627   # that will create temporary files in the current directory regardless of
13628   # the output directory.  Thus, making CWD read-only will cause this test
13629   # to fail, enabling locking or at least warning the user not to do parallel
13630   # builds.
13631   chmod -w .
13632
13633   lt_compiler_flag="-o out/conftest2.$ac_objext"
13634   # Insert the option either (1) after the last *FLAGS variable, or
13635   # (2) before a word containing "conftest.", or (3) at the end.
13636   # Note that $ac_compile itself does not contain backslashes and begins
13637   # with a dollar sign (not a hyphen), so the echo should work correctly.
13638   lt_compile=`echo "$ac_compile" | $SED \
13639   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13640   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13641   -e 's:$: $lt_compiler_flag:'`
13642   (eval echo "\"\$as_me:13642: $lt_compile\"" >&5)
13643   (eval "$lt_compile" 2>out/conftest.err)
13644   ac_status=$?
13645   cat out/conftest.err >&5
13646   echo "$as_me:13646: \$? = $ac_status" >&5
13647   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13648   then
13649     # The compiler can only warn and ignore the option if not recognized
13650     # So say no if there are warnings
13651     if test ! -s out/conftest.err; then
13652       lt_cv_prog_compiler_c_o_F77=yes
13653     fi
13654   fi
13655   chmod u+w .
13656   $rm conftest*
13657   # SGI C++ compiler will create directory out/ii_files/ for
13658   # template instantiation
13659   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13660   $rm out/* && rmdir out
13661   cd ..
13662   rmdir conftest
13663   $rm conftest*
13664
13665fi
13666{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13667echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13668
13669
13670hard_links="nottested"
13671if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13672  # do not overwrite the value of need_locks provided by the user
13673  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13674echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13675  hard_links=yes
13676  $rm conftest*
13677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13678  touch conftest.a
13679  ln conftest.a conftest.b 2>&5 || hard_links=no
13680  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13681  { echo "$as_me:$LINENO: result: $hard_links" >&5
13682echo "${ECHO_T}$hard_links" >&6; }
13683  if test "$hard_links" = no; then
13684    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13685echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13686    need_locks=warn
13687  fi
13688else
13689  need_locks=no
13690fi
13691
13692{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13693echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13694
13695  runpath_var=
13696  allow_undefined_flag_F77=
13697  enable_shared_with_static_runtimes_F77=no
13698  archive_cmds_F77=
13699  archive_expsym_cmds_F77=
13700  old_archive_From_new_cmds_F77=
13701  old_archive_from_expsyms_cmds_F77=
13702  export_dynamic_flag_spec_F77=
13703  whole_archive_flag_spec_F77=
13704  thread_safe_flag_spec_F77=
13705  hardcode_libdir_flag_spec_F77=
13706  hardcode_libdir_flag_spec_ld_F77=
13707  hardcode_libdir_separator_F77=
13708  hardcode_direct_F77=no
13709  hardcode_minus_L_F77=no
13710  hardcode_shlibpath_var_F77=unsupported
13711  link_all_deplibs_F77=unknown
13712  hardcode_automatic_F77=no
13713  module_cmds_F77=
13714  module_expsym_cmds_F77=
13715  always_export_symbols_F77=no
13716  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13717  # include_expsyms should be a list of space-separated symbols to be *always*
13718  # included in the symbol list
13719  include_expsyms_F77=
13720  # exclude_expsyms can be an extended regexp of symbols to exclude
13721  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13722  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13723  # as well as any symbol that contains `d'.
13724  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13725  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13726  # platforms (ab)use it in PIC code, but their linkers get confused if
13727  # the symbol is explicitly referenced.  Since portable code cannot
13728  # rely on this symbol name, it's probably fine to never include it in
13729  # preloaded symbol tables.
13730  extract_expsyms_cmds=
13731
13732  case $host_os in
13733  cygwin* | mingw* | pw32*)
13734    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13735    # When not using gcc, we currently assume that we are using
13736    # Microsoft Visual C++.
13737    if test "$GCC" != yes; then
13738      with_gnu_ld=no
13739    fi
13740    ;;
13741  openbsd*)
13742    with_gnu_ld=no
13743    ;;
13744  esac
13745
13746  ld_shlibs_F77=yes
13747  if test "$with_gnu_ld" = yes; then
13748    # If archive_cmds runs LD, not CC, wlarc should be empty
13749    wlarc='${wl}'
13750
13751    # See if GNU ld supports shared libraries.
13752    case $host_os in
13753    aix3* | aix4* | aix5*)
13754      # On AIX/PPC, the GNU linker is very broken
13755      if test "$host_cpu" != ia64; then
13756	ld_shlibs_F77=no
13757	cat <<EOF 1>&2
13758
13759*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13760*** to be unable to reliably create shared libraries on AIX.
13761*** Therefore, libtool is disabling shared libraries support.  If you
13762*** really care for shared libraries, you may want to modify your PATH
13763*** so that a non-GNU linker is found, and then restart.
13764
13765EOF
13766      fi
13767      ;;
13768
13769    amigaos*)
13770      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)'
13771      hardcode_libdir_flag_spec_F77='-L$libdir'
13772      hardcode_minus_L_F77=yes
13773
13774      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13775      # that the semantics of dynamic libraries on AmigaOS, at least up
13776      # to version 4, is to share data among multiple programs linked
13777      # with the same dynamic library.  Since this doesn't match the
13778      # behavior of shared libraries on other platforms, we can't use
13779      # them.
13780      ld_shlibs_F77=no
13781      ;;
13782
13783    beos*)
13784      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13785	allow_undefined_flag_F77=unsupported
13786	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13787	# support --undefined.  This deserves some investigation.  FIXME
13788	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789      else
13790	ld_shlibs_F77=no
13791      fi
13792      ;;
13793
13794    cygwin* | mingw* | pw32*)
13795      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13796      # as there is no search path for DLLs.
13797      hardcode_libdir_flag_spec_F77='-L$libdir'
13798      allow_undefined_flag_F77=unsupported
13799      always_export_symbols_F77=no
13800      enable_shared_with_static_runtimes_F77=yes
13801      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13802
13803      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13804        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13805	# If the export-symbols file already is a .def file (1st line
13806	# is EXPORTS), use it as is; otherwise, prepend...
13807	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13808	  cp $export_symbols $output_objdir/$soname.def;
13809	else
13810	  echo EXPORTS > $output_objdir/$soname.def;
13811	  cat $export_symbols >> $output_objdir/$soname.def;
13812	fi~
13813	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13814      else
13815	ld_shlibs=no
13816      fi
13817      ;;
13818
13819    netbsd*)
13820      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13821	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13822	wlarc=
13823      else
13824	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13826      fi
13827      ;;
13828
13829    solaris* | sysv5*)
13830      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13831	ld_shlibs_F77=no
13832	cat <<EOF 1>&2
13833
13834*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13835*** create shared libraries on Solaris systems.  Therefore, libtool
13836*** is disabling shared libraries support.  We urge you to upgrade GNU
13837*** binutils to release 2.9.1 or newer.  Another option is to modify
13838*** your PATH or compiler configuration so that the native linker is
13839*** used, and then restart.
13840
13841EOF
13842      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13843	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13844	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13845      else
13846	ld_shlibs_F77=no
13847      fi
13848      ;;
13849
13850    sunos4*)
13851      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13852      wlarc=
13853      hardcode_direct_F77=yes
13854      hardcode_shlibpath_var_F77=no
13855      ;;
13856
13857  linux*)
13858    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13859        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860	archive_cmds_F77="$tmp_archive_cmds"
13861      supports_anon_versioning=no
13862      case `$LD -v 2>/dev/null` in
13863        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13864        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13865        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13866        *\ 2.11.*) ;; # other 2.11 versions
13867        *) supports_anon_versioning=yes ;;
13868      esac
13869      if test $supports_anon_versioning = yes; then
13870        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13871cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13872$echo "local: *; };" >> $output_objdir/$libname.ver~
13873        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13874      else
13875        archive_expsym_cmds_F77="$tmp_archive_cmds"
13876      fi
13877    else
13878      ld_shlibs_F77=no
13879    fi
13880    ;;
13881
13882    *)
13883      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13884	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13886      else
13887	ld_shlibs_F77=no
13888      fi
13889      ;;
13890    esac
13891
13892    if test "$ld_shlibs_F77" = yes; then
13893      runpath_var=LD_RUN_PATH
13894      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13895      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13896      # ancient GNU ld didn't support --whole-archive et. al.
13897      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13898 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13899      else
13900  	whole_archive_flag_spec_F77=
13901      fi
13902    fi
13903  else
13904    # PORTME fill in a description of your system's linker (not GNU ld)
13905    case $host_os in
13906    aix3*)
13907      allow_undefined_flag_F77=unsupported
13908      always_export_symbols_F77=yes
13909      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'
13910      # Note: this linker hardcodes the directories in LIBPATH if there
13911      # are no directories specified by -L.
13912      hardcode_minus_L_F77=yes
13913      if test "$GCC" = yes && test -z "$link_static_flag"; then
13914	# Neither direct hardcoding nor static linking is supported with a
13915	# broken collect2.
13916	hardcode_direct_F77=unsupported
13917      fi
13918      ;;
13919
13920    aix4* | aix5*)
13921      if test "$host_cpu" = ia64; then
13922	# On IA64, the linker does run time linking by default, so we don't
13923	# have to do anything special.
13924	aix_use_runtimelinking=no
13925	exp_sym_flag='-Bexport'
13926	no_entry_flag=""
13927      else
13928	# If we're using GNU nm, then we don't want the "-C" option.
13929	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13930	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13931	  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'
13932	else
13933	  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'
13934	fi
13935	aix_use_runtimelinking=no
13936
13937	# Test if we are trying to use run time linking or normal
13938	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13939	# need to do runtime linking.
13940	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13941	  for ld_flag in $LDFLAGS; do
13942  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13943  	    aix_use_runtimelinking=yes
13944  	    break
13945  	  fi
13946	  done
13947	esac
13948
13949	exp_sym_flag='-bexport'
13950	no_entry_flag='-bnoentry'
13951      fi
13952
13953      # When large executables or shared objects are built, AIX ld can
13954      # have problems creating the table of contents.  If linking a library
13955      # or program results in "error TOC overflow" add -mminimal-toc to
13956      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13957      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13958
13959      archive_cmds_F77=''
13960      hardcode_direct_F77=yes
13961      hardcode_libdir_separator_F77=':'
13962      link_all_deplibs_F77=yes
13963
13964      if test "$GCC" = yes; then
13965	case $host_os in aix4.012|aix4.012.*)
13966	# We only want to do this on AIX 4.2 and lower, the check
13967	# below for broken collect2 doesn't work under 4.3+
13968	  collect2name=`${CC} -print-prog-name=collect2`
13969	  if test -f "$collect2name" && \
13970  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13971	  then
13972  	  # We have reworked collect2
13973  	  hardcode_direct_F77=yes
13974	  else
13975  	  # We have old collect2
13976  	  hardcode_direct_F77=unsupported
13977  	  # It fails to find uninstalled libraries when the uninstalled
13978  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13979  	  # to unsupported forces relinking
13980  	  hardcode_minus_L_F77=yes
13981  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13982  	  hardcode_libdir_separator_F77=
13983	  fi
13984	esac
13985	shared_flag='-shared'
13986      else
13987	# not using gcc
13988	if test "$host_cpu" = ia64; then
13989  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13990  	# chokes on -Wl,-G. The following line is correct:
13991	  shared_flag='-G'
13992	else
13993  	if test "$aix_use_runtimelinking" = yes; then
13994	    shared_flag='${wl}-G'
13995	  else
13996	    shared_flag='${wl}-bM:SRE'
13997  	fi
13998	fi
13999      fi
14000
14001      # It seems that -bexpall does not export symbols beginning with
14002      # underscore (_), so it is better to generate a list of symbols to export.
14003      always_export_symbols_F77=yes
14004      if test "$aix_use_runtimelinking" = yes; then
14005	# Warning - without using the other runtime loading flags (-brtl),
14006	# -berok will link without error, but may produce a broken library.
14007	allow_undefined_flag_F77='-berok'
14008       # Determine the default libpath from the value encoded in an empty executable.
14009       cat >conftest.$ac_ext <<_ACEOF
14010      program main
14011
14012      end
14013_ACEOF
14014rm -f conftest.$ac_objext conftest$ac_exeext
14015if { (ac_try="$ac_link"
14016case "(($ac_try" in
14017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018  *) ac_try_echo=$ac_try;;
14019esac
14020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021  (eval "$ac_link") 2>conftest.er1
14022  ac_status=$?
14023  grep -v '^ *+' conftest.er1 >conftest.err
14024  rm -f conftest.er1
14025  cat conftest.err >&5
14026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027  (exit $ac_status); } && {
14028	 test -z "$ac_f77_werror_flag" ||
14029	 test ! -s conftest.err
14030       } && test -s conftest$ac_exeext &&
14031       $as_test_x conftest$ac_exeext; then
14032
14033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14034}'`
14035# Check for a 64-bit object if we didn't find anything.
14036if 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; }
14037}'`; fi
14038else
14039  echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042
14043fi
14044
14045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046      conftest$ac_exeext conftest.$ac_ext
14047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14048
14049       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14050	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14051       else
14052	if test "$host_cpu" = ia64; then
14053	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14054	  allow_undefined_flag_F77="-z nodefs"
14055	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14056	else
14057	 # Determine the default libpath from the value encoded in an empty executable.
14058	 cat >conftest.$ac_ext <<_ACEOF
14059      program main
14060
14061      end
14062_ACEOF
14063rm -f conftest.$ac_objext conftest$ac_exeext
14064if { (ac_try="$ac_link"
14065case "(($ac_try" in
14066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067  *) ac_try_echo=$ac_try;;
14068esac
14069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070  (eval "$ac_link") 2>conftest.er1
14071  ac_status=$?
14072  grep -v '^ *+' conftest.er1 >conftest.err
14073  rm -f conftest.er1
14074  cat conftest.err >&5
14075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076  (exit $ac_status); } && {
14077	 test -z "$ac_f77_werror_flag" ||
14078	 test ! -s conftest.err
14079       } && test -s conftest$ac_exeext &&
14080       $as_test_x conftest$ac_exeext; then
14081
14082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14083}'`
14084# Check for a 64-bit object if we didn't find anything.
14085if 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; }
14086}'`; fi
14087else
14088  echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091
14092fi
14093
14094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14095      conftest$ac_exeext conftest.$ac_ext
14096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14097
14098	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14099	  # Warning - without using the other run time loading flags,
14100	  # -berok will link without error, but may produce a broken library.
14101	  no_undefined_flag_F77=' ${wl}-bernotok'
14102	  allow_undefined_flag_F77=' ${wl}-berok'
14103	  # -bexpall does not export symbols beginning with underscore (_)
14104	  always_export_symbols_F77=yes
14105	  # Exported symbols can be pulled into shared objects from archives
14106	  whole_archive_flag_spec_F77=' '
14107	  archive_cmds_need_lc_F77=yes
14108	  # This is similar to how AIX traditionally builds it's shared libraries.
14109	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14110	fi
14111      fi
14112      ;;
14113
14114    amigaos*)
14115      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)'
14116      hardcode_libdir_flag_spec_F77='-L$libdir'
14117      hardcode_minus_L_F77=yes
14118      # see comment about different semantics on the GNU ld section
14119      ld_shlibs_F77=no
14120      ;;
14121
14122    bsdi4*)
14123      export_dynamic_flag_spec_F77=-rdynamic
14124      ;;
14125
14126    cygwin* | mingw* | pw32*)
14127      # When not using gcc, we currently assume that we are using
14128      # Microsoft Visual C++.
14129      # hardcode_libdir_flag_spec is actually meaningless, as there is
14130      # no search path for DLLs.
14131      hardcode_libdir_flag_spec_F77=' '
14132      allow_undefined_flag_F77=unsupported
14133      # Tell ltmain to make .lib files, not .a files.
14134      libext=lib
14135      # Tell ltmain to make .dll files, not .so files.
14136      shrext=".dll"
14137      # FIXME: Setting linknames here is a bad hack.
14138      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14139      # The linker will automatically build a .lib file if we build a DLL.
14140      old_archive_From_new_cmds_F77='true'
14141      # FIXME: Should let the user specify the lib program.
14142      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14143      fix_srcfile_path='`cygpath -w "$srcfile"`'
14144      enable_shared_with_static_runtimes_F77=yes
14145      ;;
14146
14147    darwin* | rhapsody*)
14148    if test "$GXX" = yes ; then
14149      archive_cmds_need_lc_F77=no
14150      case "$host_os" in
14151      rhapsody* | darwin1.[012])
14152	allow_undefined_flag_F77='-undefined suppress'
14153	;;
14154      *) # Darwin 1.3 on
14155      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14156      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14157      else
14158        case ${MACOSX_DEPLOYMENT_TARGET} in
14159          10.[012])
14160            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14161            ;;
14162          10.*)
14163            allow_undefined_flag_F77='-undefined dynamic_lookup'
14164            ;;
14165        esac
14166      fi
14167	;;
14168      esac
14169    	lt_int_apple_cc_single_mod=no
14170    	output_verbose_link_cmd='echo'
14171    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14172    	  lt_int_apple_cc_single_mod=yes
14173    	fi
14174    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14175    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14176    	else
14177        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14178      fi
14179      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14180      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14181        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14182          archive_expsym_cmds_F77='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}'
14183        else
14184          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14185        fi
14186          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}'
14187      hardcode_direct_F77=no
14188      hardcode_automatic_F77=yes
14189      hardcode_shlibpath_var_F77=unsupported
14190      whole_archive_flag_spec_F77='-all_load $convenience'
14191      link_all_deplibs_F77=yes
14192    else
14193      ld_shlibs_F77=no
14194    fi
14195      ;;
14196
14197    dgux*)
14198      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14199      hardcode_libdir_flag_spec_F77='-L$libdir'
14200      hardcode_shlibpath_var_F77=no
14201      ;;
14202
14203    freebsd1*)
14204      ld_shlibs_F77=no
14205      ;;
14206
14207    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14208    # support.  Future versions do this automatically, but an explicit c++rt0.o
14209    # does not break anything, and helps significantly (at the cost of a little
14210    # extra space).
14211    freebsd2.2*)
14212      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14213      hardcode_libdir_flag_spec_F77='-R$libdir'
14214      hardcode_direct_F77=yes
14215      hardcode_shlibpath_var_F77=no
14216      ;;
14217
14218    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14219    freebsd2*)
14220      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14221      hardcode_direct_F77=yes
14222      hardcode_minus_L_F77=yes
14223      hardcode_shlibpath_var_F77=no
14224      ;;
14225
14226    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14227    freebsd* | kfreebsd*-gnu)
14228      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14229      hardcode_libdir_flag_spec_F77='-R$libdir'
14230      hardcode_direct_F77=yes
14231      hardcode_shlibpath_var_F77=no
14232      ;;
14233
14234    hpux9*)
14235      if test "$GCC" = yes; then
14236	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'
14237      else
14238	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'
14239      fi
14240      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14241      hardcode_libdir_separator_F77=:
14242      hardcode_direct_F77=yes
14243
14244      # hardcode_minus_L: Not really in the search PATH,
14245      # but as the default location of the library.
14246      hardcode_minus_L_F77=yes
14247      export_dynamic_flag_spec_F77='${wl}-E'
14248      ;;
14249
14250    hpux10* | hpux11*)
14251      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14252	case "$host_cpu" in
14253	hppa*64*|ia64*)
14254	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14255	  ;;
14256	*)
14257	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14258	  ;;
14259	esac
14260      else
14261	case "$host_cpu" in
14262	hppa*64*|ia64*)
14263	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14264	  ;;
14265	*)
14266	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14267	  ;;
14268	esac
14269      fi
14270      if test "$with_gnu_ld" = no; then
14271	case "$host_cpu" in
14272	hppa*64*)
14273	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14274	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14275	  hardcode_libdir_separator_F77=:
14276	  hardcode_direct_F77=no
14277	  hardcode_shlibpath_var_F77=no
14278	  ;;
14279	ia64*)
14280	  hardcode_libdir_flag_spec_F77='-L$libdir'
14281	  hardcode_direct_F77=no
14282	  hardcode_shlibpath_var_F77=no
14283
14284	  # hardcode_minus_L: Not really in the search PATH,
14285	  # but as the default location of the library.
14286	  hardcode_minus_L_F77=yes
14287	  ;;
14288	*)
14289	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14290	  hardcode_libdir_separator_F77=:
14291	  hardcode_direct_F77=yes
14292	  export_dynamic_flag_spec_F77='${wl}-E'
14293
14294	  # hardcode_minus_L: Not really in the search PATH,
14295	  # but as the default location of the library.
14296	  hardcode_minus_L_F77=yes
14297	  ;;
14298	esac
14299      fi
14300      ;;
14301
14302    irix5* | irix6* | nonstopux*)
14303      if test "$GCC" = yes; then
14304	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'
14305      else
14306	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'
14307	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14308      fi
14309      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14310      hardcode_libdir_separator_F77=:
14311      link_all_deplibs_F77=yes
14312      ;;
14313
14314    netbsd*)
14315      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14316	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14317      else
14318	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14319      fi
14320      hardcode_libdir_flag_spec_F77='-R$libdir'
14321      hardcode_direct_F77=yes
14322      hardcode_shlibpath_var_F77=no
14323      ;;
14324
14325    newsos6)
14326      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327      hardcode_direct_F77=yes
14328      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14329      hardcode_libdir_separator_F77=:
14330      hardcode_shlibpath_var_F77=no
14331      ;;
14332
14333    openbsd*)
14334      hardcode_direct_F77=yes
14335      hardcode_shlibpath_var_F77=no
14336      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14337	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14338	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14339	export_dynamic_flag_spec_F77='${wl}-E'
14340      else
14341       case $host_os in
14342	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14343	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14344	   hardcode_libdir_flag_spec_F77='-R$libdir'
14345	   ;;
14346	 *)
14347	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14348	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14349	   ;;
14350       esac
14351      fi
14352      ;;
14353
14354    os2*)
14355      hardcode_libdir_flag_spec_F77='-L$libdir'
14356      hardcode_minus_L_F77=yes
14357      allow_undefined_flag_F77=unsupported
14358      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'
14359      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14360      ;;
14361
14362    osf3*)
14363      if test "$GCC" = yes; then
14364	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14365	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'
14366      else
14367	allow_undefined_flag_F77=' -expect_unresolved \*'
14368	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'
14369      fi
14370      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14371      hardcode_libdir_separator_F77=:
14372      ;;
14373
14374    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14375      if test "$GCC" = yes; then
14376	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14377	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'
14378	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14379      else
14380	allow_undefined_flag_F77=' -expect_unresolved \*'
14381	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'
14382	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~
14383	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14384
14385	# Both c and cxx compiler support -rpath directly
14386	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14387      fi
14388      hardcode_libdir_separator_F77=:
14389      ;;
14390
14391    sco3.2v5*)
14392      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14393      hardcode_shlibpath_var_F77=no
14394      export_dynamic_flag_spec_F77='${wl}-Bexport'
14395      runpath_var=LD_RUN_PATH
14396      hardcode_runpath_var=yes
14397      ;;
14398
14399    solaris*)
14400      no_undefined_flag_F77=' -z text'
14401      if test "$GCC" = yes; then
14402	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14404	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14405      else
14406	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14408  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14409      fi
14410      hardcode_libdir_flag_spec_F77='-R$libdir'
14411      hardcode_shlibpath_var_F77=no
14412      case $host_os in
14413      solaris2.[0-5] | solaris2.[0-5].*) ;;
14414      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14415	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14416      esac
14417      link_all_deplibs_F77=yes
14418      ;;
14419
14420    sunos4*)
14421      if test "x$host_vendor" = xsequent; then
14422	# Use $CC to link under sequent, because it throws in some extra .o
14423	# files that make .init and .fini sections work.
14424	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14425      else
14426	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14427      fi
14428      hardcode_libdir_flag_spec_F77='-L$libdir'
14429      hardcode_direct_F77=yes
14430      hardcode_minus_L_F77=yes
14431      hardcode_shlibpath_var_F77=no
14432      ;;
14433
14434    sysv4)
14435      case $host_vendor in
14436	sni)
14437	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438	  hardcode_direct_F77=yes # is this really true???
14439	;;
14440	siemens)
14441	  ## LD is ld it makes a PLAMLIB
14442	  ## CC just makes a GrossModule.
14443	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14444	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14445	  hardcode_direct_F77=no
14446        ;;
14447	motorola)
14448	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14450	;;
14451      esac
14452      runpath_var='LD_RUN_PATH'
14453      hardcode_shlibpath_var_F77=no
14454      ;;
14455
14456    sysv4.3*)
14457      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458      hardcode_shlibpath_var_F77=no
14459      export_dynamic_flag_spec_F77='-Bexport'
14460      ;;
14461
14462    sysv4*MP*)
14463      if test -d /usr/nec; then
14464	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14465	hardcode_shlibpath_var_F77=no
14466	runpath_var=LD_RUN_PATH
14467	hardcode_runpath_var=yes
14468	ld_shlibs_F77=yes
14469      fi
14470      ;;
14471
14472    sysv4.2uw2*)
14473      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14474      hardcode_direct_F77=yes
14475      hardcode_minus_L_F77=no
14476      hardcode_shlibpath_var_F77=no
14477      hardcode_runpath_var=yes
14478      runpath_var=LD_RUN_PATH
14479      ;;
14480
14481   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14482      no_undefined_flag_F77='${wl}-z ${wl}text'
14483      if test "$GCC" = yes; then
14484	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14485      else
14486	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14487      fi
14488      runpath_var='LD_RUN_PATH'
14489      hardcode_shlibpath_var_F77=no
14490      ;;
14491
14492    sysv5*)
14493      no_undefined_flag_F77=' -z text'
14494      # $CC -shared without GNU ld will not create a library from C++
14495      # object files and a static libstdc++, better avoid it by now
14496      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14498  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14499      hardcode_libdir_flag_spec_F77=
14500      hardcode_shlibpath_var_F77=no
14501      runpath_var='LD_RUN_PATH'
14502      ;;
14503
14504    uts4*)
14505      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14506      hardcode_libdir_flag_spec_F77='-L$libdir'
14507      hardcode_shlibpath_var_F77=no
14508      ;;
14509
14510    *)
14511      ld_shlibs_F77=no
14512      ;;
14513    esac
14514  fi
14515
14516{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14517echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14518test "$ld_shlibs_F77" = no && can_build_shared=no
14519
14520variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14521if test "$GCC" = yes; then
14522  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14523fi
14524
14525#
14526# Do we need to explicitly link libc?
14527#
14528case "x$archive_cmds_need_lc_F77" in
14529x|xyes)
14530  # Assume -lc should be added
14531  archive_cmds_need_lc_F77=yes
14532
14533  if test "$enable_shared" = yes && test "$GCC" = yes; then
14534    case $archive_cmds_F77 in
14535    *'~'*)
14536      # FIXME: we may have to deal with multi-command sequences.
14537      ;;
14538    '$CC '*)
14539      # Test whether the compiler implicitly links with -lc since on some
14540      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14541      # to ld, don't add -lc before -lgcc.
14542      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14543echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14544      $rm conftest*
14545      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14546
14547      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548  (eval $ac_compile) 2>&5
14549  ac_status=$?
14550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551  (exit $ac_status); } 2>conftest.err; then
14552        soname=conftest
14553        lib=conftest
14554        libobjs=conftest.$ac_objext
14555        deplibs=
14556        wl=$lt_prog_compiler_wl_F77
14557        compiler_flags=-v
14558        linker_flags=-v
14559        verstring=
14560        output_objdir=.
14561        libname=conftest
14562        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14563        allow_undefined_flag_F77=
14564        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14565  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14566  ac_status=$?
14567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568  (exit $ac_status); }
14569        then
14570	  archive_cmds_need_lc_F77=no
14571        else
14572	  archive_cmds_need_lc_F77=yes
14573        fi
14574        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14575      else
14576        cat conftest.err 1>&5
14577      fi
14578      $rm conftest*
14579      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14580echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14581      ;;
14582    esac
14583  fi
14584  ;;
14585esac
14586
14587{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14588echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14589library_names_spec=
14590libname_spec='lib$name'
14591soname_spec=
14592shrext=".so"
14593postinstall_cmds=
14594postuninstall_cmds=
14595finish_cmds=
14596finish_eval=
14597shlibpath_var=
14598shlibpath_overrides_runpath=unknown
14599version_type=none
14600dynamic_linker="$host_os ld.so"
14601sys_lib_dlsearch_path_spec="/lib /usr/lib"
14602if test "$GCC" = yes; then
14603  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14604  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14605    # if the path contains ";" then we assume it to be the separator
14606    # otherwise default to the standard path separator (i.e. ":") - it is
14607    # assumed that no part of a normal pathname contains ";" but that should
14608    # okay in the real world where ";" in dirpaths is itself problematic.
14609    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14610  else
14611    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14612  fi
14613else
14614  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14615fi
14616need_lib_prefix=unknown
14617hardcode_into_libs=no
14618
14619# when you set need_version to no, make sure it does not cause -set_version
14620# flags to be left without arguments
14621need_version=unknown
14622
14623case $host_os in
14624aix3*)
14625  version_type=linux
14626  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14627  shlibpath_var=LIBPATH
14628
14629  # AIX 3 has no versioning support, so we append a major version to the name.
14630  soname_spec='${libname}${release}${shared_ext}$major'
14631  ;;
14632
14633aix4* | aix5*)
14634  version_type=linux
14635  need_lib_prefix=no
14636  need_version=no
14637  hardcode_into_libs=yes
14638  if test "$host_cpu" = ia64; then
14639    # AIX 5 supports IA64
14640    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14641    shlibpath_var=LD_LIBRARY_PATH
14642  else
14643    # With GCC up to 2.95.x, collect2 would create an import file
14644    # for dependence libraries.  The import file would start with
14645    # the line `#! .'.  This would cause the generated library to
14646    # depend on `.', always an invalid library.  This was fixed in
14647    # development snapshots of GCC prior to 3.0.
14648    case $host_os in
14649      aix4 | aix4.[01] | aix4.[01].*)
14650      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14651	   echo ' yes '
14652	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14653	:
14654      else
14655	can_build_shared=no
14656      fi
14657      ;;
14658    esac
14659    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14660    # soname into executable. Probably we can add versioning support to
14661    # collect2, so additional links can be useful in future.
14662    if test "$aix_use_runtimelinking" = yes; then
14663      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14664      # instead of lib<name>.a to let people know that these are not
14665      # typical AIX shared libraries.
14666      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667    else
14668      # We preserve .a as extension for shared libraries through AIX4.2
14669      # and later when we are not doing run time linking.
14670      library_names_spec='${libname}${release}.a $libname.a'
14671      soname_spec='${libname}${release}${shared_ext}$major'
14672    fi
14673    shlibpath_var=LIBPATH
14674  fi
14675  ;;
14676
14677amigaos*)
14678  library_names_spec='$libname.ixlibrary $libname.a'
14679  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14680  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'
14681  ;;
14682
14683beos*)
14684  library_names_spec='${libname}${shared_ext}'
14685  dynamic_linker="$host_os ld.so"
14686  shlibpath_var=LIBRARY_PATH
14687  ;;
14688
14689bsdi4*)
14690  version_type=linux
14691  need_version=no
14692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693  soname_spec='${libname}${release}${shared_ext}$major'
14694  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14695  shlibpath_var=LD_LIBRARY_PATH
14696  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14697  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14698  # the default ld.so.conf also contains /usr/contrib/lib and
14699  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14700  # libtool to hard-code these into programs
14701  ;;
14702
14703cygwin* | mingw* | pw32*)
14704  version_type=windows
14705  shrext=".dll"
14706  need_version=no
14707  need_lib_prefix=no
14708
14709  case $GCC,$host_os in
14710  yes,cygwin* | yes,mingw* | yes,pw32*)
14711    library_names_spec='$libname.dll.a'
14712    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14713    postinstall_cmds='base_file=`basename \${file}`~
14714      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14715      dldir=$destdir/`dirname \$dlpath`~
14716      test -d \$dldir || mkdir -p \$dldir~
14717      $install_prog $dir/$dlname \$dldir/$dlname'
14718    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14719      dlpath=$dir/\$dldll~
14720       $rm \$dlpath'
14721    shlibpath_overrides_runpath=yes
14722
14723    case $host_os in
14724    cygwin*)
14725      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14726      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14727      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14728      ;;
14729    mingw*)
14730      # MinGW DLLs use traditional 'lib' prefix
14731      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14732      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14733      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14734        # It is most probably a Windows format PATH printed by
14735        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14736        # path with ; separators, and with drive letters. We can handle the
14737        # drive letters (cygwin fileutils understands them), so leave them,
14738        # especially as we might pass files found there to a mingw objdump,
14739        # which wouldn't understand a cygwinified path. Ahh.
14740        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14741      else
14742        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14743      fi
14744      ;;
14745    pw32*)
14746      # pw32 DLLs use 'pw' prefix rather than 'lib'
14747      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14748      ;;
14749    esac
14750    ;;
14751
14752  *)
14753    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14754    ;;
14755  esac
14756  dynamic_linker='Win32 ld.exe'
14757  # FIXME: first we should search . and the directory the executable is in
14758  shlibpath_var=PATH
14759  ;;
14760
14761darwin* | rhapsody*)
14762  dynamic_linker="$host_os dyld"
14763  version_type=darwin
14764  need_lib_prefix=no
14765  need_version=no
14766  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14767  soname_spec='${libname}${release}${major}$shared_ext'
14768  shlibpath_overrides_runpath=yes
14769  shlibpath_var=DYLD_LIBRARY_PATH
14770  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14771  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14772  if test "$GCC" = yes; then
14773    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"`
14774  else
14775    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14776  fi
14777  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14778  ;;
14779
14780dgux*)
14781  version_type=linux
14782  need_lib_prefix=no
14783  need_version=no
14784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14785  soname_spec='${libname}${release}${shared_ext}$major'
14786  shlibpath_var=LD_LIBRARY_PATH
14787  ;;
14788
14789freebsd1*)
14790  dynamic_linker=no
14791  ;;
14792
14793kfreebsd*-gnu)
14794  version_type=linux
14795  need_lib_prefix=no
14796  need_version=no
14797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798  soname_spec='${libname}${release}${shared_ext}$major'
14799  shlibpath_var=LD_LIBRARY_PATH
14800  shlibpath_overrides_runpath=no
14801  hardcode_into_libs=yes
14802  dynamic_linker='GNU ld.so'
14803  ;;
14804
14805freebsd*)
14806  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14807  version_type=freebsd-$objformat
14808  case $version_type in
14809    freebsd-elf*)
14810      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14811      need_version=no
14812      need_lib_prefix=no
14813      ;;
14814    freebsd-*)
14815      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14816      need_version=yes
14817      ;;
14818  esac
14819  shlibpath_var=LD_LIBRARY_PATH
14820  case $host_os in
14821  freebsd2*)
14822    shlibpath_overrides_runpath=yes
14823    ;;
14824  freebsd3.01* | freebsdelf3.01*)
14825    shlibpath_overrides_runpath=yes
14826    hardcode_into_libs=yes
14827    ;;
14828  *) # from 3.2 on
14829    shlibpath_overrides_runpath=no
14830    hardcode_into_libs=yes
14831    ;;
14832  esac
14833  ;;
14834
14835gnu*)
14836  version_type=linux
14837  need_lib_prefix=no
14838  need_version=no
14839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14840  soname_spec='${libname}${release}${shared_ext}$major'
14841  shlibpath_var=LD_LIBRARY_PATH
14842  hardcode_into_libs=yes
14843  ;;
14844
14845hpux9* | hpux10* | hpux11*)
14846  # Give a soname corresponding to the major version so that dld.sl refuses to
14847  # link against other versions.
14848  version_type=sunos
14849  need_lib_prefix=no
14850  need_version=no
14851  case "$host_cpu" in
14852  ia64*)
14853    shrext='.so'
14854    hardcode_into_libs=yes
14855    dynamic_linker="$host_os dld.so"
14856    shlibpath_var=LD_LIBRARY_PATH
14857    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859    soname_spec='${libname}${release}${shared_ext}$major'
14860    if test "X$HPUX_IA64_MODE" = X32; then
14861      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14862    else
14863      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14864    fi
14865    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14866    ;;
14867   hppa*64*)
14868     shrext='.sl'
14869     hardcode_into_libs=yes
14870     dynamic_linker="$host_os dld.sl"
14871     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14872     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874     soname_spec='${libname}${release}${shared_ext}$major'
14875     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14876     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14877     ;;
14878   *)
14879    shrext='.sl'
14880    dynamic_linker="$host_os dld.sl"
14881    shlibpath_var=SHLIB_PATH
14882    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14883    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884    soname_spec='${libname}${release}${shared_ext}$major'
14885    ;;
14886  esac
14887  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14888  postinstall_cmds='chmod 555 $lib'
14889  ;;
14890
14891irix5* | irix6* | nonstopux*)
14892  case $host_os in
14893    nonstopux*) version_type=nonstopux ;;
14894    *)
14895	if test "$lt_cv_prog_gnu_ld" = yes; then
14896		version_type=linux
14897	else
14898		version_type=irix
14899	fi ;;
14900  esac
14901  need_lib_prefix=no
14902  need_version=no
14903  soname_spec='${libname}${release}${shared_ext}$major'
14904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14905  case $host_os in
14906  irix5* | nonstopux*)
14907    libsuff= shlibsuff=
14908    ;;
14909  *)
14910    case $LD in # libtool.m4 will add one of these switches to LD
14911    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14912      libsuff= shlibsuff= libmagic=32-bit;;
14913    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14914      libsuff=32 shlibsuff=N32 libmagic=N32;;
14915    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14916      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14917    *) libsuff= shlibsuff= libmagic=never-match;;
14918    esac
14919    ;;
14920  esac
14921  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14922  shlibpath_overrides_runpath=no
14923  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14924  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14925  hardcode_into_libs=yes
14926  ;;
14927
14928# No shared lib support for Linux oldld, aout, or coff.
14929linux*oldld* | linux*aout* | linux*coff*)
14930  dynamic_linker=no
14931  ;;
14932
14933# This must be Linux ELF.
14934linux*)
14935  version_type=linux
14936  need_lib_prefix=no
14937  need_version=no
14938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939  soname_spec='${libname}${release}${shared_ext}$major'
14940  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14941  shlibpath_var=LD_LIBRARY_PATH
14942  shlibpath_overrides_runpath=no
14943  # This implies no fast_install, which is unacceptable.
14944  # Some rework will be needed to allow for fast_install
14945  # before this can be enabled.
14946  hardcode_into_libs=yes
14947
14948  # We used to test for /lib/ld.so.1 and disable shared libraries on
14949  # powerpc, because MkLinux only supported shared libraries with the
14950  # GNU dynamic linker.  Since this was broken with cross compilers,
14951  # most powerpc-linux boxes support dynamic linking these days and
14952  # people can always --disable-shared, the test was removed, and we
14953  # assume the GNU/Linux dynamic linker is in use.
14954  dynamic_linker='GNU/Linux ld.so'
14955  ;;
14956
14957netbsd*)
14958  version_type=sunos
14959  need_lib_prefix=no
14960  need_version=no
14961  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14962    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14963    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14964    dynamic_linker='NetBSD (a.out) ld.so'
14965  else
14966    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14967    soname_spec='${libname}${release}${shared_ext}$major'
14968    dynamic_linker='NetBSD ld.elf_so'
14969  fi
14970  shlibpath_var=LD_LIBRARY_PATH
14971  shlibpath_overrides_runpath=yes
14972  hardcode_into_libs=yes
14973  ;;
14974
14975newsos6)
14976  version_type=linux
14977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978  shlibpath_var=LD_LIBRARY_PATH
14979  shlibpath_overrides_runpath=yes
14980  ;;
14981
14982nto-qnx*)
14983  version_type=linux
14984  need_lib_prefix=no
14985  need_version=no
14986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987  soname_spec='${libname}${release}${shared_ext}$major'
14988  shlibpath_var=LD_LIBRARY_PATH
14989  shlibpath_overrides_runpath=yes
14990  ;;
14991
14992openbsd*)
14993  version_type=sunos
14994  need_lib_prefix=no
14995  need_version=no
14996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14997  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14998  shlibpath_var=LD_LIBRARY_PATH
14999  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15000    case $host_os in
15001      openbsd2.[89] | openbsd2.[89].*)
15002	shlibpath_overrides_runpath=no
15003	;;
15004      *)
15005	shlibpath_overrides_runpath=yes
15006	;;
15007      esac
15008  else
15009    shlibpath_overrides_runpath=yes
15010  fi
15011  ;;
15012
15013os2*)
15014  libname_spec='$name'
15015  shrext=".dll"
15016  need_lib_prefix=no
15017  library_names_spec='$libname${shared_ext} $libname.a'
15018  dynamic_linker='OS/2 ld.exe'
15019  shlibpath_var=LIBPATH
15020  ;;
15021
15022osf3* | osf4* | osf5*)
15023  version_type=osf
15024  need_lib_prefix=no
15025  need_version=no
15026  soname_spec='${libname}${release}${shared_ext}$major'
15027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028  shlibpath_var=LD_LIBRARY_PATH
15029  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15030  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15031  ;;
15032
15033sco3.2v5*)
15034  version_type=osf
15035  soname_spec='${libname}${release}${shared_ext}$major'
15036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037  shlibpath_var=LD_LIBRARY_PATH
15038  ;;
15039
15040solaris*)
15041  version_type=linux
15042  need_lib_prefix=no
15043  need_version=no
15044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15045  soname_spec='${libname}${release}${shared_ext}$major'
15046  shlibpath_var=LD_LIBRARY_PATH
15047  shlibpath_overrides_runpath=yes
15048  hardcode_into_libs=yes
15049  # ldd complains unless libraries are executable
15050  postinstall_cmds='chmod +x $lib'
15051  ;;
15052
15053sunos4*)
15054  version_type=sunos
15055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15056  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15057  shlibpath_var=LD_LIBRARY_PATH
15058  shlibpath_overrides_runpath=yes
15059  if test "$with_gnu_ld" = yes; then
15060    need_lib_prefix=no
15061  fi
15062  need_version=yes
15063  ;;
15064
15065sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15066  version_type=linux
15067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068  soname_spec='${libname}${release}${shared_ext}$major'
15069  shlibpath_var=LD_LIBRARY_PATH
15070  case $host_vendor in
15071    sni)
15072      shlibpath_overrides_runpath=no
15073      need_lib_prefix=no
15074      export_dynamic_flag_spec='${wl}-Blargedynsym'
15075      runpath_var=LD_RUN_PATH
15076      ;;
15077    siemens)
15078      need_lib_prefix=no
15079      ;;
15080    motorola)
15081      need_lib_prefix=no
15082      need_version=no
15083      shlibpath_overrides_runpath=no
15084      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15085      ;;
15086  esac
15087  ;;
15088
15089sysv4*MP*)
15090  if test -d /usr/nec ;then
15091    version_type=linux
15092    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15093    soname_spec='$libname${shared_ext}.$major'
15094    shlibpath_var=LD_LIBRARY_PATH
15095  fi
15096  ;;
15097
15098uts4*)
15099  version_type=linux
15100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101  soname_spec='${libname}${release}${shared_ext}$major'
15102  shlibpath_var=LD_LIBRARY_PATH
15103  ;;
15104
15105*)
15106  dynamic_linker=no
15107  ;;
15108esac
15109{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15110echo "${ECHO_T}$dynamic_linker" >&6; }
15111test "$dynamic_linker" = no && can_build_shared=no
15112
15113{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15114echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15115hardcode_action_F77=
15116if test -n "$hardcode_libdir_flag_spec_F77" || \
15117   test -n "$runpath_var F77" || \
15118   test "X$hardcode_automatic_F77"="Xyes" ; then
15119
15120  # We can hardcode non-existant directories.
15121  if test "$hardcode_direct_F77" != no &&
15122     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15123     # have to relink, otherwise we might link with an installed library
15124     # when we should be linking with a yet-to-be-installed one
15125     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15126     test "$hardcode_minus_L_F77" != no; then
15127    # Linking always hardcodes the temporary library directory.
15128    hardcode_action_F77=relink
15129  else
15130    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15131    hardcode_action_F77=immediate
15132  fi
15133else
15134  # We cannot hardcode anything, or else we can only hardcode existing
15135  # directories.
15136  hardcode_action_F77=unsupported
15137fi
15138{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15139echo "${ECHO_T}$hardcode_action_F77" >&6; }
15140
15141if test "$hardcode_action_F77" = relink; then
15142  # Fast installation is not supported
15143  enable_fast_install=no
15144elif test "$shlibpath_overrides_runpath" = yes ||
15145     test "$enable_shared" = no; then
15146  # Fast installation is not necessary
15147  enable_fast_install=needless
15148fi
15149
15150striplib=
15151old_striplib=
15152{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15153echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15154if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15155  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15156  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15157  { echo "$as_me:$LINENO: result: yes" >&5
15158echo "${ECHO_T}yes" >&6; }
15159else
15160# FIXME - insert some real tests, host_os isn't really good enough
15161  case $host_os in
15162   darwin*)
15163       if test -n "$STRIP" ; then
15164         striplib="$STRIP -x"
15165         { echo "$as_me:$LINENO: result: yes" >&5
15166echo "${ECHO_T}yes" >&6; }
15167       else
15168  { echo "$as_me:$LINENO: result: no" >&5
15169echo "${ECHO_T}no" >&6; }
15170fi
15171       ;;
15172   *)
15173  { echo "$as_me:$LINENO: result: no" >&5
15174echo "${ECHO_T}no" >&6; }
15175    ;;
15176  esac
15177fi
15178
15179
15180
15181# The else clause should only fire when bootstrapping the
15182# libtool distribution, otherwise you forgot to ship ltmain.sh
15183# with your package, and you will get complaints that there are
15184# no rules to generate ltmain.sh.
15185if test -f "$ltmain"; then
15186  # See if we are running on zsh, and set the options which allow our commands through
15187  # without removal of \ escapes.
15188  if test -n "${ZSH_VERSION+set}" ; then
15189    setopt NO_GLOB_SUBST
15190  fi
15191  # Now quote all the things that may contain metacharacters while being
15192  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15193  # variables and quote the copies for generation of the libtool script.
15194  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15195    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15196    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15197    deplibs_check_method reload_flag reload_cmds need_locks \
15198    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15199    lt_cv_sys_global_symbol_to_c_name_address \
15200    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15201    old_postinstall_cmds old_postuninstall_cmds \
15202    compiler_F77 \
15203    CC_F77 \
15204    LD_F77 \
15205    lt_prog_compiler_wl_F77 \
15206    lt_prog_compiler_pic_F77 \
15207    lt_prog_compiler_static_F77 \
15208    lt_prog_compiler_no_builtin_flag_F77 \
15209    export_dynamic_flag_spec_F77 \
15210    thread_safe_flag_spec_F77 \
15211    whole_archive_flag_spec_F77 \
15212    enable_shared_with_static_runtimes_F77 \
15213    old_archive_cmds_F77 \
15214    old_archive_from_new_cmds_F77 \
15215    predep_objects_F77 \
15216    postdep_objects_F77 \
15217    predeps_F77 \
15218    postdeps_F77 \
15219    compiler_lib_search_path_F77 \
15220    archive_cmds_F77 \
15221    archive_expsym_cmds_F77 \
15222    postinstall_cmds_F77 \
15223    postuninstall_cmds_F77 \
15224    old_archive_from_expsyms_cmds_F77 \
15225    allow_undefined_flag_F77 \
15226    no_undefined_flag_F77 \
15227    export_symbols_cmds_F77 \
15228    hardcode_libdir_flag_spec_F77 \
15229    hardcode_libdir_flag_spec_ld_F77 \
15230    hardcode_libdir_separator_F77 \
15231    hardcode_automatic_F77 \
15232    module_cmds_F77 \
15233    module_expsym_cmds_F77 \
15234    lt_cv_prog_compiler_c_o_F77 \
15235    exclude_expsyms_F77 \
15236    include_expsyms_F77; do
15237
15238    case $var in
15239    old_archive_cmds_F77 | \
15240    old_archive_from_new_cmds_F77 | \
15241    archive_cmds_F77 | \
15242    archive_expsym_cmds_F77 | \
15243    module_cmds_F77 | \
15244    module_expsym_cmds_F77 | \
15245    old_archive_from_expsyms_cmds_F77 | \
15246    export_symbols_cmds_F77 | \
15247    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15248    postinstall_cmds | postuninstall_cmds | \
15249    old_postinstall_cmds | old_postuninstall_cmds | \
15250    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15251      # Double-quote double-evaled strings.
15252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15253      ;;
15254    *)
15255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15256      ;;
15257    esac
15258  done
15259
15260  case $lt_echo in
15261  *'\$0 --fallback-echo"')
15262    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15263    ;;
15264  esac
15265
15266cfgfile="$ofile"
15267
15268  cat <<__EOF__ >> "$cfgfile"
15269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15270
15271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15272
15273# Shell to use when invoking shell scripts.
15274SHELL=$lt_SHELL
15275
15276# Whether or not to build shared libraries.
15277build_libtool_libs=$enable_shared
15278
15279# Whether or not to build static libraries.
15280build_old_libs=$enable_static
15281
15282# Whether or not to add -lc for building shared libraries.
15283build_libtool_need_lc=$archive_cmds_need_lc_F77
15284
15285# Whether or not to disallow shared libs when runtime libs are static
15286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15287
15288# Whether or not to optimize for fast installation.
15289fast_install=$enable_fast_install
15290
15291# The host system.
15292host_alias=$host_alias
15293host=$host
15294
15295# An echo program that does not interpret backslashes.
15296echo=$lt_echo
15297
15298# The archiver.
15299AR=$lt_AR
15300AR_FLAGS=$lt_AR_FLAGS
15301
15302# A C compiler.
15303LTCC=$lt_LTCC
15304
15305# A language-specific compiler.
15306CC=$lt_compiler_F77
15307
15308# Is the compiler the GNU C compiler?
15309with_gcc=$GCC_F77
15310
15311# An ERE matcher.
15312EGREP=$lt_EGREP
15313
15314# The linker used to build libraries.
15315LD=$lt_LD_F77
15316
15317# Whether we need hard or soft links.
15318LN_S=$lt_LN_S
15319
15320# A BSD-compatible nm program.
15321NM=$lt_NM
15322
15323# A symbol stripping program
15324STRIP="$STRIP"
15325
15326# Used to examine libraries when file_magic_cmd begins "file"
15327MAGIC_CMD=$MAGIC_CMD
15328
15329# Used on cygwin: DLL creation program.
15330DLLTOOL="$DLLTOOL"
15331
15332# Used on cygwin: object dumper.
15333OBJDUMP="$OBJDUMP"
15334
15335# Used on cygwin: assembler.
15336AS="$AS"
15337
15338# The name of the directory that contains temporary libtool files.
15339objdir=$objdir
15340
15341# How to create reloadable object files.
15342reload_flag=$lt_reload_flag
15343reload_cmds=$lt_reload_cmds
15344
15345# How to pass a linker flag through the compiler.
15346wl=$lt_lt_prog_compiler_wl_F77
15347
15348# Object file suffix (normally "o").
15349objext="$ac_objext"
15350
15351# Old archive suffix (normally "a").
15352libext="$libext"
15353
15354# Shared library suffix (normally ".so").
15355shrext='$shrext'
15356
15357# Executable file suffix (normally "").
15358exeext="$exeext"
15359
15360# Additional compiler flags for building library objects.
15361pic_flag=$lt_lt_prog_compiler_pic_F77
15362pic_mode=$pic_mode
15363
15364# What is the maximum length of a command?
15365max_cmd_len=$lt_cv_sys_max_cmd_len
15366
15367# Does compiler simultaneously support -c and -o options?
15368compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15369
15370# Must we lock files when doing compilation ?
15371need_locks=$lt_need_locks
15372
15373# Do we need the lib prefix for modules?
15374need_lib_prefix=$need_lib_prefix
15375
15376# Do we need a version for libraries?
15377need_version=$need_version
15378
15379# Whether dlopen is supported.
15380dlopen_support=$enable_dlopen
15381
15382# Whether dlopen of programs is supported.
15383dlopen_self=$enable_dlopen_self
15384
15385# Whether dlopen of statically linked programs is supported.
15386dlopen_self_static=$enable_dlopen_self_static
15387
15388# Compiler flag to prevent dynamic linking.
15389link_static_flag=$lt_lt_prog_compiler_static_F77
15390
15391# Compiler flag to turn off builtin functions.
15392no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15393
15394# Compiler flag to allow reflexive dlopens.
15395export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15396
15397# Compiler flag to generate shared objects directly from archives.
15398whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15399
15400# Compiler flag to generate thread-safe objects.
15401thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15402
15403# Library versioning type.
15404version_type=$version_type
15405
15406# Format of library name prefix.
15407libname_spec=$lt_libname_spec
15408
15409# List of archive names.  First name is the real one, the rest are links.
15410# The last name is the one that the linker finds with -lNAME.
15411library_names_spec=$lt_library_names_spec
15412
15413# The coded name of the library, if different from the real name.
15414soname_spec=$lt_soname_spec
15415
15416# Commands used to build and install an old-style archive.
15417RANLIB=$lt_RANLIB
15418old_archive_cmds=$lt_old_archive_cmds_F77
15419old_postinstall_cmds=$lt_old_postinstall_cmds
15420old_postuninstall_cmds=$lt_old_postuninstall_cmds
15421
15422# Create an old-style archive from a shared archive.
15423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15424
15425# Create a temporary old-style archive to link instead of a shared archive.
15426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15427
15428# Commands used to build and install a shared archive.
15429archive_cmds=$lt_archive_cmds_F77
15430archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15431postinstall_cmds=$lt_postinstall_cmds
15432postuninstall_cmds=$lt_postuninstall_cmds
15433
15434# Commands used to build a loadable module (assumed same as above if empty)
15435module_cmds=$lt_module_cmds_F77
15436module_expsym_cmds=$lt_module_expsym_cmds_F77
15437
15438# Commands to strip libraries.
15439old_striplib=$lt_old_striplib
15440striplib=$lt_striplib
15441
15442# Dependencies to place before the objects being linked to create a
15443# shared library.
15444predep_objects=$lt_predep_objects_F77
15445
15446# Dependencies to place after the objects being linked to create a
15447# shared library.
15448postdep_objects=$lt_postdep_objects_F77
15449
15450# Dependencies to place before the objects being linked to create a
15451# shared library.
15452predeps=$lt_predeps_F77
15453
15454# Dependencies to place after the objects being linked to create a
15455# shared library.
15456postdeps=$lt_postdeps_F77
15457
15458# The library search path used internally by the compiler when linking
15459# a shared library.
15460compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15461
15462# Method to check whether dependent libraries are shared objects.
15463deplibs_check_method=$lt_deplibs_check_method
15464
15465# Command to use when deplibs_check_method == file_magic.
15466file_magic_cmd=$lt_file_magic_cmd
15467
15468# Flag that allows shared libraries with undefined symbols to be built.
15469allow_undefined_flag=$lt_allow_undefined_flag_F77
15470
15471# Flag that forces no undefined symbols.
15472no_undefined_flag=$lt_no_undefined_flag_F77
15473
15474# Commands used to finish a libtool library installation in a directory.
15475finish_cmds=$lt_finish_cmds
15476
15477# Same as above, but a single script fragment to be evaled but not shown.
15478finish_eval=$lt_finish_eval
15479
15480# Take the output of nm and produce a listing of raw symbols and C names.
15481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15482
15483# Transform the output of nm in a proper C declaration
15484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15485
15486# Transform the output of nm in a C name address pair
15487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15488
15489# This is the shared library runtime path variable.
15490runpath_var=$runpath_var
15491
15492# This is the shared library path variable.
15493shlibpath_var=$shlibpath_var
15494
15495# Is shlibpath searched before the hard-coded library search path?
15496shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15497
15498# How to hardcode a shared library path into an executable.
15499hardcode_action=$hardcode_action_F77
15500
15501# Whether we should hardcode library paths into libraries.
15502hardcode_into_libs=$hardcode_into_libs
15503
15504# Flag to hardcode \$libdir into a binary during linking.
15505# This must work even if \$libdir does not exist.
15506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15507
15508# If ld is used when linking, flag to hardcode \$libdir into
15509# a binary during linking. This must work even if \$libdir does
15510# not exist.
15511hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15512
15513# Whether we need a single -rpath flag with a separated argument.
15514hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15515
15516# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15517# resulting binary.
15518hardcode_direct=$hardcode_direct_F77
15519
15520# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15521# resulting binary.
15522hardcode_minus_L=$hardcode_minus_L_F77
15523
15524# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15525# the resulting binary.
15526hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15527
15528# Set to yes if building a shared library automatically hardcodes DIR into the library
15529# and all subsequent libraries and executables linked against it.
15530hardcode_automatic=$hardcode_automatic_F77
15531
15532# Variables whose values should be saved in libtool wrapper scripts and
15533# restored at relink time.
15534variables_saved_for_relink="$variables_saved_for_relink"
15535
15536# Whether libtool must link a program against all its dependency libraries.
15537link_all_deplibs=$link_all_deplibs_F77
15538
15539# Compile-time system search path for libraries
15540sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15541
15542# Run-time system search path for libraries
15543sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15544
15545# Fix the shell variable \$srcfile for the compiler.
15546fix_srcfile_path="$fix_srcfile_path_F77"
15547
15548# Set to yes if exported symbols are required.
15549always_export_symbols=$always_export_symbols_F77
15550
15551# The commands to list exported symbols.
15552export_symbols_cmds=$lt_export_symbols_cmds_F77
15553
15554# The commands to extract the exported symbol list from a shared archive.
15555extract_expsyms_cmds=$lt_extract_expsyms_cmds
15556
15557# Symbols that should not be listed in the preloaded symbols.
15558exclude_expsyms=$lt_exclude_expsyms_F77
15559
15560# Symbols that must always be exported.
15561include_expsyms=$lt_include_expsyms_F77
15562
15563# ### END LIBTOOL TAG CONFIG: $tagname
15564
15565__EOF__
15566
15567
15568else
15569  # If there is no Makefile yet, we rely on a make rule to execute
15570  # `config.status --recheck' to rerun these tests and create the
15571  # libtool script then.
15572  test -f Makefile && make "$ltmain"
15573fi
15574
15575
15576ac_ext=c
15577ac_cpp='$CPP $CPPFLAGS'
15578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15580ac_compiler_gnu=$ac_cv_c_compiler_gnu
15581
15582CC="$lt_save_CC"
15583
15584	else
15585	  tagname=""
15586	fi
15587	;;
15588
15589      GCJ)
15590	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15591
15592
15593# Source file extension for Java test sources.
15594ac_ext=java
15595
15596# Object file extension for compiled Java test sources.
15597objext=o
15598objext_GCJ=$objext
15599
15600# Code to be used in simple compile tests
15601lt_simple_compile_test_code="class foo {}\n"
15602
15603# Code to be used in simple link tests
15604lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15605
15606# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15607
15608# If no C compiler was specified, use CC.
15609LTCC=${LTCC-"$CC"}
15610
15611# Allow CC to be a program name with arguments.
15612compiler=$CC
15613
15614
15615# Allow CC to be a program name with arguments.
15616lt_save_CC="$CC"
15617CC=${GCJ-"gcj"}
15618compiler=$CC
15619compiler_GCJ=$CC
15620
15621# GCJ did not exist at the time GCC didn't implicitly link libc in.
15622archive_cmds_need_lc_GCJ=no
15623
15624## CAVEAT EMPTOR:
15625## There is no encapsulation within the following macros, do not change
15626## the running order or otherwise move them around unless you know exactly
15627## what you are doing...
15628
15629lt_prog_compiler_no_builtin_flag_GCJ=
15630
15631if test "$GCC" = yes; then
15632  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15633
15634
15635{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15636echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15637if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15638  echo $ECHO_N "(cached) $ECHO_C" >&6
15639else
15640  lt_cv_prog_compiler_rtti_exceptions=no
15641  ac_outfile=conftest.$ac_objext
15642   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15643   lt_compiler_flag="-fno-rtti -fno-exceptions"
15644   # Insert the option either (1) after the last *FLAGS variable, or
15645   # (2) before a word containing "conftest.", or (3) at the end.
15646   # Note that $ac_compile itself does not contain backslashes and begins
15647   # with a dollar sign (not a hyphen), so the echo should work correctly.
15648   # The option is referenced via a variable to avoid confusing sed.
15649   lt_compile=`echo "$ac_compile" | $SED \
15650   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15651   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15652   -e 's:$: $lt_compiler_flag:'`
15653   (eval echo "\"\$as_me:15653: $lt_compile\"" >&5)
15654   (eval "$lt_compile" 2>conftest.err)
15655   ac_status=$?
15656   cat conftest.err >&5
15657   echo "$as_me:15657: \$? = $ac_status" >&5
15658   if (exit $ac_status) && test -s "$ac_outfile"; then
15659     # The compiler can only warn and ignore the option if not recognized
15660     # So say no if there are warnings
15661     if test ! -s conftest.err; then
15662       lt_cv_prog_compiler_rtti_exceptions=yes
15663     fi
15664   fi
15665   $rm conftest*
15666
15667fi
15668{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15669echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15670
15671if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15672    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15673else
15674    :
15675fi
15676
15677fi
15678
15679lt_prog_compiler_wl_GCJ=
15680lt_prog_compiler_pic_GCJ=
15681lt_prog_compiler_static_GCJ=
15682
15683{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15684echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15685
15686  if test "$GCC" = yes; then
15687    lt_prog_compiler_wl_GCJ='-Wl,'
15688    lt_prog_compiler_static_GCJ='-static'
15689
15690    case $host_os in
15691      aix*)
15692      # All AIX code is PIC.
15693      if test "$host_cpu" = ia64; then
15694	# AIX 5 now supports IA64 processor
15695	lt_prog_compiler_static_GCJ='-Bstatic'
15696      fi
15697      ;;
15698
15699    amigaos*)
15700      # FIXME: we need at least 68020 code to build shared libraries, but
15701      # adding the `-m68020' flag to GCC prevents building anything better,
15702      # like `-m68040'.
15703      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15704      ;;
15705
15706    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15707      # PIC is the default for these OSes.
15708      ;;
15709
15710    mingw* | pw32* | os2*)
15711      # This hack is so that the source file can tell whether it is being
15712      # built for inclusion in a dll (and should export symbols for example).
15713      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15714      ;;
15715
15716    darwin* | rhapsody*)
15717      # PIC is the default on this platform
15718      # Common symbols not allowed in MH_DYLIB files
15719      lt_prog_compiler_pic_GCJ='-fno-common'
15720      ;;
15721
15722    msdosdjgpp*)
15723      # Just because we use GCC doesn't mean we suddenly get shared libraries
15724      # on systems that don't support them.
15725      lt_prog_compiler_can_build_shared_GCJ=no
15726      enable_shared=no
15727      ;;
15728
15729    sysv4*MP*)
15730      if test -d /usr/nec; then
15731	lt_prog_compiler_pic_GCJ=-Kconform_pic
15732      fi
15733      ;;
15734
15735    hpux*)
15736      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15737      # not for PA HP-UX.
15738      case "$host_cpu" in
15739      hppa*64*|ia64*)
15740	# +Z the default
15741	;;
15742      *)
15743	lt_prog_compiler_pic_GCJ='-fPIC'
15744	;;
15745      esac
15746      ;;
15747
15748    *)
15749      lt_prog_compiler_pic_GCJ='-fPIC'
15750      ;;
15751    esac
15752  else
15753    # PORTME Check for flag to pass linker flags through the system compiler.
15754    case $host_os in
15755    aix*)
15756      lt_prog_compiler_wl_GCJ='-Wl,'
15757      if test "$host_cpu" = ia64; then
15758	# AIX 5 now supports IA64 processor
15759	lt_prog_compiler_static_GCJ='-Bstatic'
15760      else
15761	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15762      fi
15763      ;;
15764
15765    mingw* | pw32* | os2*)
15766      # This hack is so that the source file can tell whether it is being
15767      # built for inclusion in a dll (and should export symbols for example).
15768      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15769      ;;
15770
15771    hpux9* | hpux10* | hpux11*)
15772      lt_prog_compiler_wl_GCJ='-Wl,'
15773      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15774      # not for PA HP-UX.
15775      case "$host_cpu" in
15776      hppa*64*|ia64*)
15777	# +Z the default
15778	;;
15779      *)
15780	lt_prog_compiler_pic_GCJ='+Z'
15781	;;
15782      esac
15783      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15784      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15785      ;;
15786
15787    irix5* | irix6* | nonstopux*)
15788      lt_prog_compiler_wl_GCJ='-Wl,'
15789      # PIC (with -KPIC) is the default.
15790      lt_prog_compiler_static_GCJ='-non_shared'
15791      ;;
15792
15793    newsos6)
15794      lt_prog_compiler_pic_GCJ='-KPIC'
15795      lt_prog_compiler_static_GCJ='-Bstatic'
15796      ;;
15797
15798    linux*)
15799      case $CC in
15800      icc* | ecc*)
15801	lt_prog_compiler_wl_GCJ='-Wl,'
15802	lt_prog_compiler_pic_GCJ='-KPIC'
15803	lt_prog_compiler_static_GCJ='-static'
15804        ;;
15805      ccc*)
15806        lt_prog_compiler_wl_GCJ='-Wl,'
15807        # All Alpha code is PIC.
15808        lt_prog_compiler_static_GCJ='-non_shared'
15809        ;;
15810      esac
15811      ;;
15812
15813    osf3* | osf4* | osf5*)
15814      lt_prog_compiler_wl_GCJ='-Wl,'
15815      # All OSF/1 code is PIC.
15816      lt_prog_compiler_static_GCJ='-non_shared'
15817      ;;
15818
15819    sco3.2v5*)
15820      lt_prog_compiler_pic_GCJ='-Kpic'
15821      lt_prog_compiler_static_GCJ='-dn'
15822      ;;
15823
15824    solaris*)
15825      lt_prog_compiler_wl_GCJ='-Wl,'
15826      lt_prog_compiler_pic_GCJ='-KPIC'
15827      lt_prog_compiler_static_GCJ='-Bstatic'
15828      ;;
15829
15830    sunos4*)
15831      lt_prog_compiler_wl_GCJ='-Qoption ld '
15832      lt_prog_compiler_pic_GCJ='-PIC'
15833      lt_prog_compiler_static_GCJ='-Bstatic'
15834      ;;
15835
15836    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15837      lt_prog_compiler_wl_GCJ='-Wl,'
15838      lt_prog_compiler_pic_GCJ='-KPIC'
15839      lt_prog_compiler_static_GCJ='-Bstatic'
15840      ;;
15841
15842    sysv4*MP*)
15843      if test -d /usr/nec ;then
15844	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15845	lt_prog_compiler_static_GCJ='-Bstatic'
15846      fi
15847      ;;
15848
15849    uts4*)
15850      lt_prog_compiler_pic_GCJ='-pic'
15851      lt_prog_compiler_static_GCJ='-Bstatic'
15852      ;;
15853
15854    *)
15855      lt_prog_compiler_can_build_shared_GCJ=no
15856      ;;
15857    esac
15858  fi
15859
15860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15861echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15862
15863#
15864# Check to make sure the PIC flag actually works.
15865#
15866if test -n "$lt_prog_compiler_pic_GCJ"; then
15867
15868{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15869echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15870if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15871  echo $ECHO_N "(cached) $ECHO_C" >&6
15872else
15873  lt_prog_compiler_pic_works_GCJ=no
15874  ac_outfile=conftest.$ac_objext
15875   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15876   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15877   # Insert the option either (1) after the last *FLAGS variable, or
15878   # (2) before a word containing "conftest.", or (3) at the end.
15879   # Note that $ac_compile itself does not contain backslashes and begins
15880   # with a dollar sign (not a hyphen), so the echo should work correctly.
15881   # The option is referenced via a variable to avoid confusing sed.
15882   lt_compile=`echo "$ac_compile" | $SED \
15883   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15884   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15885   -e 's:$: $lt_compiler_flag:'`
15886   (eval echo "\"\$as_me:15886: $lt_compile\"" >&5)
15887   (eval "$lt_compile" 2>conftest.err)
15888   ac_status=$?
15889   cat conftest.err >&5
15890   echo "$as_me:15890: \$? = $ac_status" >&5
15891   if (exit $ac_status) && test -s "$ac_outfile"; then
15892     # The compiler can only warn and ignore the option if not recognized
15893     # So say no if there are warnings
15894     if test ! -s conftest.err; then
15895       lt_prog_compiler_pic_works_GCJ=yes
15896     fi
15897   fi
15898   $rm conftest*
15899
15900fi
15901{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15902echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15903
15904if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15905    case $lt_prog_compiler_pic_GCJ in
15906     "" | " "*) ;;
15907     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15908     esac
15909else
15910    lt_prog_compiler_pic_GCJ=
15911     lt_prog_compiler_can_build_shared_GCJ=no
15912fi
15913
15914fi
15915case "$host_os" in
15916  # For platforms which do not support PIC, -DPIC is meaningless:
15917  *djgpp*)
15918    lt_prog_compiler_pic_GCJ=
15919    ;;
15920  *)
15921    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15922    ;;
15923esac
15924
15925{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15926echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15927if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15928  echo $ECHO_N "(cached) $ECHO_C" >&6
15929else
15930  lt_cv_prog_compiler_c_o_GCJ=no
15931   $rm -r conftest 2>/dev/null
15932   mkdir conftest
15933   cd conftest
15934   mkdir out
15935   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936
15937   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15938   # that will create temporary files in the current directory regardless of
15939   # the output directory.  Thus, making CWD read-only will cause this test
15940   # to fail, enabling locking or at least warning the user not to do parallel
15941   # builds.
15942   chmod -w .
15943
15944   lt_compiler_flag="-o out/conftest2.$ac_objext"
15945   # Insert the option either (1) after the last *FLAGS variable, or
15946   # (2) before a word containing "conftest.", or (3) at the end.
15947   # Note that $ac_compile itself does not contain backslashes and begins
15948   # with a dollar sign (not a hyphen), so the echo should work correctly.
15949   lt_compile=`echo "$ac_compile" | $SED \
15950   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15952   -e 's:$: $lt_compiler_flag:'`
15953   (eval echo "\"\$as_me:15953: $lt_compile\"" >&5)
15954   (eval "$lt_compile" 2>out/conftest.err)
15955   ac_status=$?
15956   cat out/conftest.err >&5
15957   echo "$as_me:15957: \$? = $ac_status" >&5
15958   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15959   then
15960     # The compiler can only warn and ignore the option if not recognized
15961     # So say no if there are warnings
15962     if test ! -s out/conftest.err; then
15963       lt_cv_prog_compiler_c_o_GCJ=yes
15964     fi
15965   fi
15966   chmod u+w .
15967   $rm conftest*
15968   # SGI C++ compiler will create directory out/ii_files/ for
15969   # template instantiation
15970   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15971   $rm out/* && rmdir out
15972   cd ..
15973   rmdir conftest
15974   $rm conftest*
15975
15976fi
15977{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15978echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15979
15980
15981hard_links="nottested"
15982if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15983  # do not overwrite the value of need_locks provided by the user
15984  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15985echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15986  hard_links=yes
15987  $rm conftest*
15988  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15989  touch conftest.a
15990  ln conftest.a conftest.b 2>&5 || hard_links=no
15991  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15992  { echo "$as_me:$LINENO: result: $hard_links" >&5
15993echo "${ECHO_T}$hard_links" >&6; }
15994  if test "$hard_links" = no; then
15995    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15996echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15997    need_locks=warn
15998  fi
15999else
16000  need_locks=no
16001fi
16002
16003{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16004echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16005
16006  runpath_var=
16007  allow_undefined_flag_GCJ=
16008  enable_shared_with_static_runtimes_GCJ=no
16009  archive_cmds_GCJ=
16010  archive_expsym_cmds_GCJ=
16011  old_archive_From_new_cmds_GCJ=
16012  old_archive_from_expsyms_cmds_GCJ=
16013  export_dynamic_flag_spec_GCJ=
16014  whole_archive_flag_spec_GCJ=
16015  thread_safe_flag_spec_GCJ=
16016  hardcode_libdir_flag_spec_GCJ=
16017  hardcode_libdir_flag_spec_ld_GCJ=
16018  hardcode_libdir_separator_GCJ=
16019  hardcode_direct_GCJ=no
16020  hardcode_minus_L_GCJ=no
16021  hardcode_shlibpath_var_GCJ=unsupported
16022  link_all_deplibs_GCJ=unknown
16023  hardcode_automatic_GCJ=no
16024  module_cmds_GCJ=
16025  module_expsym_cmds_GCJ=
16026  always_export_symbols_GCJ=no
16027  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16028  # include_expsyms should be a list of space-separated symbols to be *always*
16029  # included in the symbol list
16030  include_expsyms_GCJ=
16031  # exclude_expsyms can be an extended regexp of symbols to exclude
16032  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16033  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16034  # as well as any symbol that contains `d'.
16035  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16036  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16037  # platforms (ab)use it in PIC code, but their linkers get confused if
16038  # the symbol is explicitly referenced.  Since portable code cannot
16039  # rely on this symbol name, it's probably fine to never include it in
16040  # preloaded symbol tables.
16041  extract_expsyms_cmds=
16042
16043  case $host_os in
16044  cygwin* | mingw* | pw32*)
16045    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16046    # When not using gcc, we currently assume that we are using
16047    # Microsoft Visual C++.
16048    if test "$GCC" != yes; then
16049      with_gnu_ld=no
16050    fi
16051    ;;
16052  openbsd*)
16053    with_gnu_ld=no
16054    ;;
16055  esac
16056
16057  ld_shlibs_GCJ=yes
16058  if test "$with_gnu_ld" = yes; then
16059    # If archive_cmds runs LD, not CC, wlarc should be empty
16060    wlarc='${wl}'
16061
16062    # See if GNU ld supports shared libraries.
16063    case $host_os in
16064    aix3* | aix4* | aix5*)
16065      # On AIX/PPC, the GNU linker is very broken
16066      if test "$host_cpu" != ia64; then
16067	ld_shlibs_GCJ=no
16068	cat <<EOF 1>&2
16069
16070*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16071*** to be unable to reliably create shared libraries on AIX.
16072*** Therefore, libtool is disabling shared libraries support.  If you
16073*** really care for shared libraries, you may want to modify your PATH
16074*** so that a non-GNU linker is found, and then restart.
16075
16076EOF
16077      fi
16078      ;;
16079
16080    amigaos*)
16081      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)'
16082      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083      hardcode_minus_L_GCJ=yes
16084
16085      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16086      # that the semantics of dynamic libraries on AmigaOS, at least up
16087      # to version 4, is to share data among multiple programs linked
16088      # with the same dynamic library.  Since this doesn't match the
16089      # behavior of shared libraries on other platforms, we can't use
16090      # them.
16091      ld_shlibs_GCJ=no
16092      ;;
16093
16094    beos*)
16095      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096	allow_undefined_flag_GCJ=unsupported
16097	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16098	# support --undefined.  This deserves some investigation.  FIXME
16099	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100      else
16101	ld_shlibs_GCJ=no
16102      fi
16103      ;;
16104
16105    cygwin* | mingw* | pw32*)
16106      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16107      # as there is no search path for DLLs.
16108      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16109      allow_undefined_flag_GCJ=unsupported
16110      always_export_symbols_GCJ=no
16111      enable_shared_with_static_runtimes_GCJ=yes
16112      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16113
16114      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16115        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16116	# If the export-symbols file already is a .def file (1st line
16117	# is EXPORTS), use it as is; otherwise, prepend...
16118	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16119	  cp $export_symbols $output_objdir/$soname.def;
16120	else
16121	  echo EXPORTS > $output_objdir/$soname.def;
16122	  cat $export_symbols >> $output_objdir/$soname.def;
16123	fi~
16124	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16125      else
16126	ld_shlibs=no
16127      fi
16128      ;;
16129
16130    netbsd*)
16131      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16132	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16133	wlarc=
16134      else
16135	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16137      fi
16138      ;;
16139
16140    solaris* | sysv5*)
16141      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16142	ld_shlibs_GCJ=no
16143	cat <<EOF 1>&2
16144
16145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16146*** create shared libraries on Solaris systems.  Therefore, libtool
16147*** is disabling shared libraries support.  We urge you to upgrade GNU
16148*** binutils to release 2.9.1 or newer.  Another option is to modify
16149*** your PATH or compiler configuration so that the native linker is
16150*** used, and then restart.
16151
16152EOF
16153      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16154	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16155	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16156      else
16157	ld_shlibs_GCJ=no
16158      fi
16159      ;;
16160
16161    sunos4*)
16162      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163      wlarc=
16164      hardcode_direct_GCJ=yes
16165      hardcode_shlibpath_var_GCJ=no
16166      ;;
16167
16168  linux*)
16169    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16170        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16171	archive_cmds_GCJ="$tmp_archive_cmds"
16172      supports_anon_versioning=no
16173      case `$LD -v 2>/dev/null` in
16174        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16175        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16176        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16177        *\ 2.11.*) ;; # other 2.11 versions
16178        *) supports_anon_versioning=yes ;;
16179      esac
16180      if test $supports_anon_versioning = yes; then
16181        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16182cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16183$echo "local: *; };" >> $output_objdir/$libname.ver~
16184        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16185      else
16186        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16187      fi
16188    else
16189      ld_shlibs_GCJ=no
16190    fi
16191    ;;
16192
16193    *)
16194      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16195	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16196	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16197      else
16198	ld_shlibs_GCJ=no
16199      fi
16200      ;;
16201    esac
16202
16203    if test "$ld_shlibs_GCJ" = yes; then
16204      runpath_var=LD_RUN_PATH
16205      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16206      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16207      # ancient GNU ld didn't support --whole-archive et. al.
16208      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16209 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16210      else
16211  	whole_archive_flag_spec_GCJ=
16212      fi
16213    fi
16214  else
16215    # PORTME fill in a description of your system's linker (not GNU ld)
16216    case $host_os in
16217    aix3*)
16218      allow_undefined_flag_GCJ=unsupported
16219      always_export_symbols_GCJ=yes
16220      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'
16221      # Note: this linker hardcodes the directories in LIBPATH if there
16222      # are no directories specified by -L.
16223      hardcode_minus_L_GCJ=yes
16224      if test "$GCC" = yes && test -z "$link_static_flag"; then
16225	# Neither direct hardcoding nor static linking is supported with a
16226	# broken collect2.
16227	hardcode_direct_GCJ=unsupported
16228      fi
16229      ;;
16230
16231    aix4* | aix5*)
16232      if test "$host_cpu" = ia64; then
16233	# On IA64, the linker does run time linking by default, so we don't
16234	# have to do anything special.
16235	aix_use_runtimelinking=no
16236	exp_sym_flag='-Bexport'
16237	no_entry_flag=""
16238      else
16239	# If we're using GNU nm, then we don't want the "-C" option.
16240	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16241	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16242	  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'
16243	else
16244	  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'
16245	fi
16246	aix_use_runtimelinking=no
16247
16248	# Test if we are trying to use run time linking or normal
16249	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16250	# need to do runtime linking.
16251	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16252	  for ld_flag in $LDFLAGS; do
16253  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16254  	    aix_use_runtimelinking=yes
16255  	    break
16256  	  fi
16257	  done
16258	esac
16259
16260	exp_sym_flag='-bexport'
16261	no_entry_flag='-bnoentry'
16262      fi
16263
16264      # When large executables or shared objects are built, AIX ld can
16265      # have problems creating the table of contents.  If linking a library
16266      # or program results in "error TOC overflow" add -mminimal-toc to
16267      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16268      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16269
16270      archive_cmds_GCJ=''
16271      hardcode_direct_GCJ=yes
16272      hardcode_libdir_separator_GCJ=':'
16273      link_all_deplibs_GCJ=yes
16274
16275      if test "$GCC" = yes; then
16276	case $host_os in aix4.012|aix4.012.*)
16277	# We only want to do this on AIX 4.2 and lower, the check
16278	# below for broken collect2 doesn't work under 4.3+
16279	  collect2name=`${CC} -print-prog-name=collect2`
16280	  if test -f "$collect2name" && \
16281  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16282	  then
16283  	  # We have reworked collect2
16284  	  hardcode_direct_GCJ=yes
16285	  else
16286  	  # We have old collect2
16287  	  hardcode_direct_GCJ=unsupported
16288  	  # It fails to find uninstalled libraries when the uninstalled
16289  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16290  	  # to unsupported forces relinking
16291  	  hardcode_minus_L_GCJ=yes
16292  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16293  	  hardcode_libdir_separator_GCJ=
16294	  fi
16295	esac
16296	shared_flag='-shared'
16297      else
16298	# not using gcc
16299	if test "$host_cpu" = ia64; then
16300  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16301  	# chokes on -Wl,-G. The following line is correct:
16302	  shared_flag='-G'
16303	else
16304  	if test "$aix_use_runtimelinking" = yes; then
16305	    shared_flag='${wl}-G'
16306	  else
16307	    shared_flag='${wl}-bM:SRE'
16308  	fi
16309	fi
16310      fi
16311
16312      # It seems that -bexpall does not export symbols beginning with
16313      # underscore (_), so it is better to generate a list of symbols to export.
16314      always_export_symbols_GCJ=yes
16315      if test "$aix_use_runtimelinking" = yes; then
16316	# Warning - without using the other runtime loading flags (-brtl),
16317	# -berok will link without error, but may produce a broken library.
16318	allow_undefined_flag_GCJ='-berok'
16319       # Determine the default libpath from the value encoded in an empty executable.
16320       cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h.  */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h.  */
16326
16327int
16328main ()
16329{
16330
16331  ;
16332  return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext conftest$ac_exeext
16336if { (ac_try="$ac_link"
16337case "(($ac_try" in
16338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339  *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342  (eval "$ac_link") 2>conftest.er1
16343  ac_status=$?
16344  grep -v '^ *+' conftest.er1 >conftest.err
16345  rm -f conftest.er1
16346  cat conftest.err >&5
16347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348  (exit $ac_status); } && {
16349	 test -z "$ac_c_werror_flag" ||
16350	 test ! -s conftest.err
16351       } && test -s conftest$ac_exeext &&
16352       $as_test_x conftest$ac_exeext; then
16353
16354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16355}'`
16356# Check for a 64-bit object if we didn't find anything.
16357if 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; }
16358}'`; fi
16359else
16360  echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363
16364fi
16365
16366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16367      conftest$ac_exeext conftest.$ac_ext
16368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16369
16370       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16371	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16372       else
16373	if test "$host_cpu" = ia64; then
16374	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16375	  allow_undefined_flag_GCJ="-z nodefs"
16376	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16377	else
16378	 # Determine the default libpath from the value encoded in an empty executable.
16379	 cat >conftest.$ac_ext <<_ACEOF
16380/* confdefs.h.  */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h.  */
16385
16386int
16387main ()
16388{
16389
16390  ;
16391  return 0;
16392}
16393_ACEOF
16394rm -f conftest.$ac_objext conftest$ac_exeext
16395if { (ac_try="$ac_link"
16396case "(($ac_try" in
16397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398  *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401  (eval "$ac_link") 2>conftest.er1
16402  ac_status=$?
16403  grep -v '^ *+' conftest.er1 >conftest.err
16404  rm -f conftest.er1
16405  cat conftest.err >&5
16406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407  (exit $ac_status); } && {
16408	 test -z "$ac_c_werror_flag" ||
16409	 test ! -s conftest.err
16410       } && test -s conftest$ac_exeext &&
16411       $as_test_x conftest$ac_exeext; then
16412
16413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16414}'`
16415# Check for a 64-bit object if we didn't find anything.
16416if 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; }
16417}'`; fi
16418else
16419  echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
16422
16423fi
16424
16425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426      conftest$ac_exeext conftest.$ac_ext
16427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16428
16429	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16430	  # Warning - without using the other run time loading flags,
16431	  # -berok will link without error, but may produce a broken library.
16432	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16433	  allow_undefined_flag_GCJ=' ${wl}-berok'
16434	  # -bexpall does not export symbols beginning with underscore (_)
16435	  always_export_symbols_GCJ=yes
16436	  # Exported symbols can be pulled into shared objects from archives
16437	  whole_archive_flag_spec_GCJ=' '
16438	  archive_cmds_need_lc_GCJ=yes
16439	  # This is similar to how AIX traditionally builds it's shared libraries.
16440	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16441	fi
16442      fi
16443      ;;
16444
16445    amigaos*)
16446      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)'
16447      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16448      hardcode_minus_L_GCJ=yes
16449      # see comment about different semantics on the GNU ld section
16450      ld_shlibs_GCJ=no
16451      ;;
16452
16453    bsdi4*)
16454      export_dynamic_flag_spec_GCJ=-rdynamic
16455      ;;
16456
16457    cygwin* | mingw* | pw32*)
16458      # When not using gcc, we currently assume that we are using
16459      # Microsoft Visual C++.
16460      # hardcode_libdir_flag_spec is actually meaningless, as there is
16461      # no search path for DLLs.
16462      hardcode_libdir_flag_spec_GCJ=' '
16463      allow_undefined_flag_GCJ=unsupported
16464      # Tell ltmain to make .lib files, not .a files.
16465      libext=lib
16466      # Tell ltmain to make .dll files, not .so files.
16467      shrext=".dll"
16468      # FIXME: Setting linknames here is a bad hack.
16469      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16470      # The linker will automatically build a .lib file if we build a DLL.
16471      old_archive_From_new_cmds_GCJ='true'
16472      # FIXME: Should let the user specify the lib program.
16473      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16474      fix_srcfile_path='`cygpath -w "$srcfile"`'
16475      enable_shared_with_static_runtimes_GCJ=yes
16476      ;;
16477
16478    darwin* | rhapsody*)
16479    if test "$GXX" = yes ; then
16480      archive_cmds_need_lc_GCJ=no
16481      case "$host_os" in
16482      rhapsody* | darwin1.[012])
16483	allow_undefined_flag_GCJ='-undefined suppress'
16484	;;
16485      *) # Darwin 1.3 on
16486      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16487      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16488      else
16489        case ${MACOSX_DEPLOYMENT_TARGET} in
16490          10.[012])
16491            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16492            ;;
16493          10.*)
16494            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16495            ;;
16496        esac
16497      fi
16498	;;
16499      esac
16500    	lt_int_apple_cc_single_mod=no
16501    	output_verbose_link_cmd='echo'
16502    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16503    	  lt_int_apple_cc_single_mod=yes
16504    	fi
16505    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16506    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16507    	else
16508        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16509      fi
16510      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16511      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16512        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16513          archive_expsym_cmds_GCJ='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}'
16514        else
16515          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16516        fi
16517          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}'
16518      hardcode_direct_GCJ=no
16519      hardcode_automatic_GCJ=yes
16520      hardcode_shlibpath_var_GCJ=unsupported
16521      whole_archive_flag_spec_GCJ='-all_load $convenience'
16522      link_all_deplibs_GCJ=yes
16523    else
16524      ld_shlibs_GCJ=no
16525    fi
16526      ;;
16527
16528    dgux*)
16529      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16531      hardcode_shlibpath_var_GCJ=no
16532      ;;
16533
16534    freebsd1*)
16535      ld_shlibs_GCJ=no
16536      ;;
16537
16538    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16539    # support.  Future versions do this automatically, but an explicit c++rt0.o
16540    # does not break anything, and helps significantly (at the cost of a little
16541    # extra space).
16542    freebsd2.2*)
16543      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16544      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16545      hardcode_direct_GCJ=yes
16546      hardcode_shlibpath_var_GCJ=no
16547      ;;
16548
16549    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16550    freebsd2*)
16551      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16552      hardcode_direct_GCJ=yes
16553      hardcode_minus_L_GCJ=yes
16554      hardcode_shlibpath_var_GCJ=no
16555      ;;
16556
16557    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16558    freebsd* | kfreebsd*-gnu)
16559      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16560      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16561      hardcode_direct_GCJ=yes
16562      hardcode_shlibpath_var_GCJ=no
16563      ;;
16564
16565    hpux9*)
16566      if test "$GCC" = yes; then
16567	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'
16568      else
16569	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'
16570      fi
16571      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16572      hardcode_libdir_separator_GCJ=:
16573      hardcode_direct_GCJ=yes
16574
16575      # hardcode_minus_L: Not really in the search PATH,
16576      # but as the default location of the library.
16577      hardcode_minus_L_GCJ=yes
16578      export_dynamic_flag_spec_GCJ='${wl}-E'
16579      ;;
16580
16581    hpux10* | hpux11*)
16582      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16583	case "$host_cpu" in
16584	hppa*64*|ia64*)
16585	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16586	  ;;
16587	*)
16588	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16589	  ;;
16590	esac
16591      else
16592	case "$host_cpu" in
16593	hppa*64*|ia64*)
16594	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16595	  ;;
16596	*)
16597	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16598	  ;;
16599	esac
16600      fi
16601      if test "$with_gnu_ld" = no; then
16602	case "$host_cpu" in
16603	hppa*64*)
16604	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16605	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16606	  hardcode_libdir_separator_GCJ=:
16607	  hardcode_direct_GCJ=no
16608	  hardcode_shlibpath_var_GCJ=no
16609	  ;;
16610	ia64*)
16611	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16612	  hardcode_direct_GCJ=no
16613	  hardcode_shlibpath_var_GCJ=no
16614
16615	  # hardcode_minus_L: Not really in the search PATH,
16616	  # but as the default location of the library.
16617	  hardcode_minus_L_GCJ=yes
16618	  ;;
16619	*)
16620	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16621	  hardcode_libdir_separator_GCJ=:
16622	  hardcode_direct_GCJ=yes
16623	  export_dynamic_flag_spec_GCJ='${wl}-E'
16624
16625	  # hardcode_minus_L: Not really in the search PATH,
16626	  # but as the default location of the library.
16627	  hardcode_minus_L_GCJ=yes
16628	  ;;
16629	esac
16630      fi
16631      ;;
16632
16633    irix5* | irix6* | nonstopux*)
16634      if test "$GCC" = yes; then
16635	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'
16636      else
16637	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'
16638	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16639      fi
16640      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16641      hardcode_libdir_separator_GCJ=:
16642      link_all_deplibs_GCJ=yes
16643      ;;
16644
16645    netbsd*)
16646      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16647	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16648      else
16649	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16650      fi
16651      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16652      hardcode_direct_GCJ=yes
16653      hardcode_shlibpath_var_GCJ=no
16654      ;;
16655
16656    newsos6)
16657      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658      hardcode_direct_GCJ=yes
16659      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16660      hardcode_libdir_separator_GCJ=:
16661      hardcode_shlibpath_var_GCJ=no
16662      ;;
16663
16664    openbsd*)
16665      hardcode_direct_GCJ=yes
16666      hardcode_shlibpath_var_GCJ=no
16667      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16668	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16669	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16670	export_dynamic_flag_spec_GCJ='${wl}-E'
16671      else
16672       case $host_os in
16673	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16674	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16675	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16676	   ;;
16677	 *)
16678	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16679	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16680	   ;;
16681       esac
16682      fi
16683      ;;
16684
16685    os2*)
16686      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16687      hardcode_minus_L_GCJ=yes
16688      allow_undefined_flag_GCJ=unsupported
16689      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'
16690      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16691      ;;
16692
16693    osf3*)
16694      if test "$GCC" = yes; then
16695	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16696	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'
16697      else
16698	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16699	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'
16700      fi
16701      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702      hardcode_libdir_separator_GCJ=:
16703      ;;
16704
16705    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16706      if test "$GCC" = yes; then
16707	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16708	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'
16709	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16710      else
16711	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16712	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'
16713	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~
16714	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16715
16716	# Both c and cxx compiler support -rpath directly
16717	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16718      fi
16719      hardcode_libdir_separator_GCJ=:
16720      ;;
16721
16722    sco3.2v5*)
16723      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724      hardcode_shlibpath_var_GCJ=no
16725      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16726      runpath_var=LD_RUN_PATH
16727      hardcode_runpath_var=yes
16728      ;;
16729
16730    solaris*)
16731      no_undefined_flag_GCJ=' -z text'
16732      if test "$GCC" = yes; then
16733	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16734	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16735	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16736      else
16737	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16739  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16740      fi
16741      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16742      hardcode_shlibpath_var_GCJ=no
16743      case $host_os in
16744      solaris2.[0-5] | solaris2.[0-5].*) ;;
16745      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16746	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16747      esac
16748      link_all_deplibs_GCJ=yes
16749      ;;
16750
16751    sunos4*)
16752      if test "x$host_vendor" = xsequent; then
16753	# Use $CC to link under sequent, because it throws in some extra .o
16754	# files that make .init and .fini sections work.
16755	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16756      else
16757	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16758      fi
16759      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760      hardcode_direct_GCJ=yes
16761      hardcode_minus_L_GCJ=yes
16762      hardcode_shlibpath_var_GCJ=no
16763      ;;
16764
16765    sysv4)
16766      case $host_vendor in
16767	sni)
16768	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769	  hardcode_direct_GCJ=yes # is this really true???
16770	;;
16771	siemens)
16772	  ## LD is ld it makes a PLAMLIB
16773	  ## CC just makes a GrossModule.
16774	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16775	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16776	  hardcode_direct_GCJ=no
16777        ;;
16778	motorola)
16779	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16781	;;
16782      esac
16783      runpath_var='LD_RUN_PATH'
16784      hardcode_shlibpath_var_GCJ=no
16785      ;;
16786
16787    sysv4.3*)
16788      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789      hardcode_shlibpath_var_GCJ=no
16790      export_dynamic_flag_spec_GCJ='-Bexport'
16791      ;;
16792
16793    sysv4*MP*)
16794      if test -d /usr/nec; then
16795	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16796	hardcode_shlibpath_var_GCJ=no
16797	runpath_var=LD_RUN_PATH
16798	hardcode_runpath_var=yes
16799	ld_shlibs_GCJ=yes
16800      fi
16801      ;;
16802
16803    sysv4.2uw2*)
16804      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16805      hardcode_direct_GCJ=yes
16806      hardcode_minus_L_GCJ=no
16807      hardcode_shlibpath_var_GCJ=no
16808      hardcode_runpath_var=yes
16809      runpath_var=LD_RUN_PATH
16810      ;;
16811
16812   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16813      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16814      if test "$GCC" = yes; then
16815	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816      else
16817	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818      fi
16819      runpath_var='LD_RUN_PATH'
16820      hardcode_shlibpath_var_GCJ=no
16821      ;;
16822
16823    sysv5*)
16824      no_undefined_flag_GCJ=' -z text'
16825      # $CC -shared without GNU ld will not create a library from C++
16826      # object files and a static libstdc++, better avoid it by now
16827      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16829  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16830      hardcode_libdir_flag_spec_GCJ=
16831      hardcode_shlibpath_var_GCJ=no
16832      runpath_var='LD_RUN_PATH'
16833      ;;
16834
16835    uts4*)
16836      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838      hardcode_shlibpath_var_GCJ=no
16839      ;;
16840
16841    *)
16842      ld_shlibs_GCJ=no
16843      ;;
16844    esac
16845  fi
16846
16847{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16848echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16849test "$ld_shlibs_GCJ" = no && can_build_shared=no
16850
16851variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16852if test "$GCC" = yes; then
16853  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16854fi
16855
16856#
16857# Do we need to explicitly link libc?
16858#
16859case "x$archive_cmds_need_lc_GCJ" in
16860x|xyes)
16861  # Assume -lc should be added
16862  archive_cmds_need_lc_GCJ=yes
16863
16864  if test "$enable_shared" = yes && test "$GCC" = yes; then
16865    case $archive_cmds_GCJ in
16866    *'~'*)
16867      # FIXME: we may have to deal with multi-command sequences.
16868      ;;
16869    '$CC '*)
16870      # Test whether the compiler implicitly links with -lc since on some
16871      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16872      # to ld, don't add -lc before -lgcc.
16873      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16875      $rm conftest*
16876      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16877
16878      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879  (eval $ac_compile) 2>&5
16880  ac_status=$?
16881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882  (exit $ac_status); } 2>conftest.err; then
16883        soname=conftest
16884        lib=conftest
16885        libobjs=conftest.$ac_objext
16886        deplibs=
16887        wl=$lt_prog_compiler_wl_GCJ
16888        compiler_flags=-v
16889        linker_flags=-v
16890        verstring=
16891        output_objdir=.
16892        libname=conftest
16893        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16894        allow_undefined_flag_GCJ=
16895        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16896  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16897  ac_status=$?
16898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899  (exit $ac_status); }
16900        then
16901	  archive_cmds_need_lc_GCJ=no
16902        else
16903	  archive_cmds_need_lc_GCJ=yes
16904        fi
16905        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16906      else
16907        cat conftest.err 1>&5
16908      fi
16909      $rm conftest*
16910      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16911echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16912      ;;
16913    esac
16914  fi
16915  ;;
16916esac
16917
16918{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16920library_names_spec=
16921libname_spec='lib$name'
16922soname_spec=
16923shrext=".so"
16924postinstall_cmds=
16925postuninstall_cmds=
16926finish_cmds=
16927finish_eval=
16928shlibpath_var=
16929shlibpath_overrides_runpath=unknown
16930version_type=none
16931dynamic_linker="$host_os ld.so"
16932sys_lib_dlsearch_path_spec="/lib /usr/lib"
16933if test "$GCC" = yes; then
16934  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16935  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16936    # if the path contains ";" then we assume it to be the separator
16937    # otherwise default to the standard path separator (i.e. ":") - it is
16938    # assumed that no part of a normal pathname contains ";" but that should
16939    # okay in the real world where ";" in dirpaths is itself problematic.
16940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16941  else
16942    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16943  fi
16944else
16945  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16946fi
16947need_lib_prefix=unknown
16948hardcode_into_libs=no
16949
16950# when you set need_version to no, make sure it does not cause -set_version
16951# flags to be left without arguments
16952need_version=unknown
16953
16954case $host_os in
16955aix3*)
16956  version_type=linux
16957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16958  shlibpath_var=LIBPATH
16959
16960  # AIX 3 has no versioning support, so we append a major version to the name.
16961  soname_spec='${libname}${release}${shared_ext}$major'
16962  ;;
16963
16964aix4* | aix5*)
16965  version_type=linux
16966  need_lib_prefix=no
16967  need_version=no
16968  hardcode_into_libs=yes
16969  if test "$host_cpu" = ia64; then
16970    # AIX 5 supports IA64
16971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16972    shlibpath_var=LD_LIBRARY_PATH
16973  else
16974    # With GCC up to 2.95.x, collect2 would create an import file
16975    # for dependence libraries.  The import file would start with
16976    # the line `#! .'.  This would cause the generated library to
16977    # depend on `.', always an invalid library.  This was fixed in
16978    # development snapshots of GCC prior to 3.0.
16979    case $host_os in
16980      aix4 | aix4.[01] | aix4.[01].*)
16981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16982	   echo ' yes '
16983	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16984	:
16985      else
16986	can_build_shared=no
16987      fi
16988      ;;
16989    esac
16990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16991    # soname into executable. Probably we can add versioning support to
16992    # collect2, so additional links can be useful in future.
16993    if test "$aix_use_runtimelinking" = yes; then
16994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16995      # instead of lib<name>.a to let people know that these are not
16996      # typical AIX shared libraries.
16997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998    else
16999      # We preserve .a as extension for shared libraries through AIX4.2
17000      # and later when we are not doing run time linking.
17001      library_names_spec='${libname}${release}.a $libname.a'
17002      soname_spec='${libname}${release}${shared_ext}$major'
17003    fi
17004    shlibpath_var=LIBPATH
17005  fi
17006  ;;
17007
17008amigaos*)
17009  library_names_spec='$libname.ixlibrary $libname.a'
17010  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17011  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'
17012  ;;
17013
17014beos*)
17015  library_names_spec='${libname}${shared_ext}'
17016  dynamic_linker="$host_os ld.so"
17017  shlibpath_var=LIBRARY_PATH
17018  ;;
17019
17020bsdi4*)
17021  version_type=linux
17022  need_version=no
17023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024  soname_spec='${libname}${release}${shared_ext}$major'
17025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17026  shlibpath_var=LD_LIBRARY_PATH
17027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17029  # the default ld.so.conf also contains /usr/contrib/lib and
17030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17031  # libtool to hard-code these into programs
17032  ;;
17033
17034cygwin* | mingw* | pw32*)
17035  version_type=windows
17036  shrext=".dll"
17037  need_version=no
17038  need_lib_prefix=no
17039
17040  case $GCC,$host_os in
17041  yes,cygwin* | yes,mingw* | yes,pw32*)
17042    library_names_spec='$libname.dll.a'
17043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17044    postinstall_cmds='base_file=`basename \${file}`~
17045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17046      dldir=$destdir/`dirname \$dlpath`~
17047      test -d \$dldir || mkdir -p \$dldir~
17048      $install_prog $dir/$dlname \$dldir/$dlname'
17049    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17050      dlpath=$dir/\$dldll~
17051       $rm \$dlpath'
17052    shlibpath_overrides_runpath=yes
17053
17054    case $host_os in
17055    cygwin*)
17056      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17057      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17058      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17059      ;;
17060    mingw*)
17061      # MinGW DLLs use traditional 'lib' prefix
17062      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17063      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17064      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17065        # It is most probably a Windows format PATH printed by
17066        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17067        # path with ; separators, and with drive letters. We can handle the
17068        # drive letters (cygwin fileutils understands them), so leave them,
17069        # especially as we might pass files found there to a mingw objdump,
17070        # which wouldn't understand a cygwinified path. Ahh.
17071        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17072      else
17073        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17074      fi
17075      ;;
17076    pw32*)
17077      # pw32 DLLs use 'pw' prefix rather than 'lib'
17078      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17079      ;;
17080    esac
17081    ;;
17082
17083  *)
17084    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17085    ;;
17086  esac
17087  dynamic_linker='Win32 ld.exe'
17088  # FIXME: first we should search . and the directory the executable is in
17089  shlibpath_var=PATH
17090  ;;
17091
17092darwin* | rhapsody*)
17093  dynamic_linker="$host_os dyld"
17094  version_type=darwin
17095  need_lib_prefix=no
17096  need_version=no
17097  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17098  soname_spec='${libname}${release}${major}$shared_ext'
17099  shlibpath_overrides_runpath=yes
17100  shlibpath_var=DYLD_LIBRARY_PATH
17101  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17102  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17103  if test "$GCC" = yes; then
17104    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"`
17105  else
17106    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17107  fi
17108  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17109  ;;
17110
17111dgux*)
17112  version_type=linux
17113  need_lib_prefix=no
17114  need_version=no
17115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17116  soname_spec='${libname}${release}${shared_ext}$major'
17117  shlibpath_var=LD_LIBRARY_PATH
17118  ;;
17119
17120freebsd1*)
17121  dynamic_linker=no
17122  ;;
17123
17124kfreebsd*-gnu)
17125  version_type=linux
17126  need_lib_prefix=no
17127  need_version=no
17128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17129  soname_spec='${libname}${release}${shared_ext}$major'
17130  shlibpath_var=LD_LIBRARY_PATH
17131  shlibpath_overrides_runpath=no
17132  hardcode_into_libs=yes
17133  dynamic_linker='GNU ld.so'
17134  ;;
17135
17136freebsd*)
17137  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17138  version_type=freebsd-$objformat
17139  case $version_type in
17140    freebsd-elf*)
17141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17142      need_version=no
17143      need_lib_prefix=no
17144      ;;
17145    freebsd-*)
17146      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17147      need_version=yes
17148      ;;
17149  esac
17150  shlibpath_var=LD_LIBRARY_PATH
17151  case $host_os in
17152  freebsd2*)
17153    shlibpath_overrides_runpath=yes
17154    ;;
17155  freebsd3.01* | freebsdelf3.01*)
17156    shlibpath_overrides_runpath=yes
17157    hardcode_into_libs=yes
17158    ;;
17159  *) # from 3.2 on
17160    shlibpath_overrides_runpath=no
17161    hardcode_into_libs=yes
17162    ;;
17163  esac
17164  ;;
17165
17166gnu*)
17167  version_type=linux
17168  need_lib_prefix=no
17169  need_version=no
17170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17171  soname_spec='${libname}${release}${shared_ext}$major'
17172  shlibpath_var=LD_LIBRARY_PATH
17173  hardcode_into_libs=yes
17174  ;;
17175
17176hpux9* | hpux10* | hpux11*)
17177  # Give a soname corresponding to the major version so that dld.sl refuses to
17178  # link against other versions.
17179  version_type=sunos
17180  need_lib_prefix=no
17181  need_version=no
17182  case "$host_cpu" in
17183  ia64*)
17184    shrext='.so'
17185    hardcode_into_libs=yes
17186    dynamic_linker="$host_os dld.so"
17187    shlibpath_var=LD_LIBRARY_PATH
17188    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190    soname_spec='${libname}${release}${shared_ext}$major'
17191    if test "X$HPUX_IA64_MODE" = X32; then
17192      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17193    else
17194      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17195    fi
17196    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17197    ;;
17198   hppa*64*)
17199     shrext='.sl'
17200     hardcode_into_libs=yes
17201     dynamic_linker="$host_os dld.sl"
17202     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17203     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205     soname_spec='${libname}${release}${shared_ext}$major'
17206     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17208     ;;
17209   *)
17210    shrext='.sl'
17211    dynamic_linker="$host_os dld.sl"
17212    shlibpath_var=SHLIB_PATH
17213    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17214    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215    soname_spec='${libname}${release}${shared_ext}$major'
17216    ;;
17217  esac
17218  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17219  postinstall_cmds='chmod 555 $lib'
17220  ;;
17221
17222irix5* | irix6* | nonstopux*)
17223  case $host_os in
17224    nonstopux*) version_type=nonstopux ;;
17225    *)
17226	if test "$lt_cv_prog_gnu_ld" = yes; then
17227		version_type=linux
17228	else
17229		version_type=irix
17230	fi ;;
17231  esac
17232  need_lib_prefix=no
17233  need_version=no
17234  soname_spec='${libname}${release}${shared_ext}$major'
17235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17236  case $host_os in
17237  irix5* | nonstopux*)
17238    libsuff= shlibsuff=
17239    ;;
17240  *)
17241    case $LD in # libtool.m4 will add one of these switches to LD
17242    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17243      libsuff= shlibsuff= libmagic=32-bit;;
17244    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17245      libsuff=32 shlibsuff=N32 libmagic=N32;;
17246    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17247      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17248    *) libsuff= shlibsuff= libmagic=never-match;;
17249    esac
17250    ;;
17251  esac
17252  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17253  shlibpath_overrides_runpath=no
17254  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17255  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17256  hardcode_into_libs=yes
17257  ;;
17258
17259# No shared lib support for Linux oldld, aout, or coff.
17260linux*oldld* | linux*aout* | linux*coff*)
17261  dynamic_linker=no
17262  ;;
17263
17264# This must be Linux ELF.
17265linux*)
17266  version_type=linux
17267  need_lib_prefix=no
17268  need_version=no
17269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270  soname_spec='${libname}${release}${shared_ext}$major'
17271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17272  shlibpath_var=LD_LIBRARY_PATH
17273  shlibpath_overrides_runpath=no
17274  # This implies no fast_install, which is unacceptable.
17275  # Some rework will be needed to allow for fast_install
17276  # before this can be enabled.
17277  hardcode_into_libs=yes
17278
17279  # We used to test for /lib/ld.so.1 and disable shared libraries on
17280  # powerpc, because MkLinux only supported shared libraries with the
17281  # GNU dynamic linker.  Since this was broken with cross compilers,
17282  # most powerpc-linux boxes support dynamic linking these days and
17283  # people can always --disable-shared, the test was removed, and we
17284  # assume the GNU/Linux dynamic linker is in use.
17285  dynamic_linker='GNU/Linux ld.so'
17286  ;;
17287
17288netbsd*)
17289  version_type=sunos
17290  need_lib_prefix=no
17291  need_version=no
17292  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295    dynamic_linker='NetBSD (a.out) ld.so'
17296  else
17297    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17298    soname_spec='${libname}${release}${shared_ext}$major'
17299    dynamic_linker='NetBSD ld.elf_so'
17300  fi
17301  shlibpath_var=LD_LIBRARY_PATH
17302  shlibpath_overrides_runpath=yes
17303  hardcode_into_libs=yes
17304  ;;
17305
17306newsos6)
17307  version_type=linux
17308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309  shlibpath_var=LD_LIBRARY_PATH
17310  shlibpath_overrides_runpath=yes
17311  ;;
17312
17313nto-qnx*)
17314  version_type=linux
17315  need_lib_prefix=no
17316  need_version=no
17317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318  soname_spec='${libname}${release}${shared_ext}$major'
17319  shlibpath_var=LD_LIBRARY_PATH
17320  shlibpath_overrides_runpath=yes
17321  ;;
17322
17323openbsd*)
17324  version_type=sunos
17325  need_lib_prefix=no
17326  need_version=no
17327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17329  shlibpath_var=LD_LIBRARY_PATH
17330  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17331    case $host_os in
17332      openbsd2.[89] | openbsd2.[89].*)
17333	shlibpath_overrides_runpath=no
17334	;;
17335      *)
17336	shlibpath_overrides_runpath=yes
17337	;;
17338      esac
17339  else
17340    shlibpath_overrides_runpath=yes
17341  fi
17342  ;;
17343
17344os2*)
17345  libname_spec='$name'
17346  shrext=".dll"
17347  need_lib_prefix=no
17348  library_names_spec='$libname${shared_ext} $libname.a'
17349  dynamic_linker='OS/2 ld.exe'
17350  shlibpath_var=LIBPATH
17351  ;;
17352
17353osf3* | osf4* | osf5*)
17354  version_type=osf
17355  need_lib_prefix=no
17356  need_version=no
17357  soname_spec='${libname}${release}${shared_ext}$major'
17358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359  shlibpath_var=LD_LIBRARY_PATH
17360  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17361  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17362  ;;
17363
17364sco3.2v5*)
17365  version_type=osf
17366  soname_spec='${libname}${release}${shared_ext}$major'
17367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368  shlibpath_var=LD_LIBRARY_PATH
17369  ;;
17370
17371solaris*)
17372  version_type=linux
17373  need_lib_prefix=no
17374  need_version=no
17375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376  soname_spec='${libname}${release}${shared_ext}$major'
17377  shlibpath_var=LD_LIBRARY_PATH
17378  shlibpath_overrides_runpath=yes
17379  hardcode_into_libs=yes
17380  # ldd complains unless libraries are executable
17381  postinstall_cmds='chmod +x $lib'
17382  ;;
17383
17384sunos4*)
17385  version_type=sunos
17386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17387  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17388  shlibpath_var=LD_LIBRARY_PATH
17389  shlibpath_overrides_runpath=yes
17390  if test "$with_gnu_ld" = yes; then
17391    need_lib_prefix=no
17392  fi
17393  need_version=yes
17394  ;;
17395
17396sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17397  version_type=linux
17398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399  soname_spec='${libname}${release}${shared_ext}$major'
17400  shlibpath_var=LD_LIBRARY_PATH
17401  case $host_vendor in
17402    sni)
17403      shlibpath_overrides_runpath=no
17404      need_lib_prefix=no
17405      export_dynamic_flag_spec='${wl}-Blargedynsym'
17406      runpath_var=LD_RUN_PATH
17407      ;;
17408    siemens)
17409      need_lib_prefix=no
17410      ;;
17411    motorola)
17412      need_lib_prefix=no
17413      need_version=no
17414      shlibpath_overrides_runpath=no
17415      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17416      ;;
17417  esac
17418  ;;
17419
17420sysv4*MP*)
17421  if test -d /usr/nec ;then
17422    version_type=linux
17423    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17424    soname_spec='$libname${shared_ext}.$major'
17425    shlibpath_var=LD_LIBRARY_PATH
17426  fi
17427  ;;
17428
17429uts4*)
17430  version_type=linux
17431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432  soname_spec='${libname}${release}${shared_ext}$major'
17433  shlibpath_var=LD_LIBRARY_PATH
17434  ;;
17435
17436*)
17437  dynamic_linker=no
17438  ;;
17439esac
17440{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17441echo "${ECHO_T}$dynamic_linker" >&6; }
17442test "$dynamic_linker" = no && can_build_shared=no
17443
17444{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17445echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17446hardcode_action_GCJ=
17447if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17448   test -n "$runpath_var GCJ" || \
17449   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17450
17451  # We can hardcode non-existant directories.
17452  if test "$hardcode_direct_GCJ" != no &&
17453     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17454     # have to relink, otherwise we might link with an installed library
17455     # when we should be linking with a yet-to-be-installed one
17456     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17457     test "$hardcode_minus_L_GCJ" != no; then
17458    # Linking always hardcodes the temporary library directory.
17459    hardcode_action_GCJ=relink
17460  else
17461    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17462    hardcode_action_GCJ=immediate
17463  fi
17464else
17465  # We cannot hardcode anything, or else we can only hardcode existing
17466  # directories.
17467  hardcode_action_GCJ=unsupported
17468fi
17469{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17470echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17471
17472if test "$hardcode_action_GCJ" = relink; then
17473  # Fast installation is not supported
17474  enable_fast_install=no
17475elif test "$shlibpath_overrides_runpath" = yes ||
17476     test "$enable_shared" = no; then
17477  # Fast installation is not necessary
17478  enable_fast_install=needless
17479fi
17480
17481striplib=
17482old_striplib=
17483{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17484echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17485if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17486  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17487  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17488  { echo "$as_me:$LINENO: result: yes" >&5
17489echo "${ECHO_T}yes" >&6; }
17490else
17491# FIXME - insert some real tests, host_os isn't really good enough
17492  case $host_os in
17493   darwin*)
17494       if test -n "$STRIP" ; then
17495         striplib="$STRIP -x"
17496         { echo "$as_me:$LINENO: result: yes" >&5
17497echo "${ECHO_T}yes" >&6; }
17498       else
17499  { echo "$as_me:$LINENO: result: no" >&5
17500echo "${ECHO_T}no" >&6; }
17501fi
17502       ;;
17503   *)
17504  { echo "$as_me:$LINENO: result: no" >&5
17505echo "${ECHO_T}no" >&6; }
17506    ;;
17507  esac
17508fi
17509
17510if test "x$enable_dlopen" != xyes; then
17511  enable_dlopen=unknown
17512  enable_dlopen_self=unknown
17513  enable_dlopen_self_static=unknown
17514else
17515  lt_cv_dlopen=no
17516  lt_cv_dlopen_libs=
17517
17518  case $host_os in
17519  beos*)
17520    lt_cv_dlopen="load_add_on"
17521    lt_cv_dlopen_libs=
17522    lt_cv_dlopen_self=yes
17523    ;;
17524
17525  mingw* | pw32*)
17526    lt_cv_dlopen="LoadLibrary"
17527    lt_cv_dlopen_libs=
17528   ;;
17529
17530  cygwin*)
17531    lt_cv_dlopen="dlopen"
17532    lt_cv_dlopen_libs=
17533   ;;
17534
17535  darwin*)
17536  # if libdl is installed we need to link against it
17537    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17538echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17539if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17540  echo $ECHO_N "(cached) $ECHO_C" >&6
17541else
17542  ac_check_lib_save_LIBS=$LIBS
17543LIBS="-ldl  $LIBS"
17544cat >conftest.$ac_ext <<_ACEOF
17545/* confdefs.h.  */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h.  */
17550
17551/* Override any GCC internal prototype to avoid an error.
17552   Use char because int might match the return type of a GCC
17553   builtin and then its argument prototype would still apply.  */
17554#ifdef __cplusplus
17555extern "C"
17556#endif
17557char dlopen ();
17558int
17559main ()
17560{
17561return dlopen ();
17562  ;
17563  return 0;
17564}
17565_ACEOF
17566rm -f conftest.$ac_objext conftest$ac_exeext
17567if { (ac_try="$ac_link"
17568case "(($ac_try" in
17569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570  *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573  (eval "$ac_link") 2>conftest.er1
17574  ac_status=$?
17575  grep -v '^ *+' conftest.er1 >conftest.err
17576  rm -f conftest.er1
17577  cat conftest.err >&5
17578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579  (exit $ac_status); } && {
17580	 test -z "$ac_c_werror_flag" ||
17581	 test ! -s conftest.err
17582       } && test -s conftest$ac_exeext &&
17583       $as_test_x conftest$ac_exeext; then
17584  ac_cv_lib_dl_dlopen=yes
17585else
17586  echo "$as_me: failed program was:" >&5
17587sed 's/^/| /' conftest.$ac_ext >&5
17588
17589	ac_cv_lib_dl_dlopen=no
17590fi
17591
17592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593      conftest$ac_exeext conftest.$ac_ext
17594LIBS=$ac_check_lib_save_LIBS
17595fi
17596{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17598if test $ac_cv_lib_dl_dlopen = yes; then
17599  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17600else
17601
17602    lt_cv_dlopen="dyld"
17603    lt_cv_dlopen_libs=
17604    lt_cv_dlopen_self=yes
17605
17606fi
17607
17608   ;;
17609
17610  *)
17611    { echo "$as_me:$LINENO: checking for shl_load" >&5
17612echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17613if test "${ac_cv_func_shl_load+set}" = set; then
17614  echo $ECHO_N "(cached) $ECHO_C" >&6
17615else
17616  cat >conftest.$ac_ext <<_ACEOF
17617/* confdefs.h.  */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h.  */
17622/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17624#define shl_load innocuous_shl_load
17625
17626/* System header to define __stub macros and hopefully few prototypes,
17627    which can conflict with char shl_load (); below.
17628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629    <limits.h> exists even on freestanding compilers.  */
17630
17631#ifdef __STDC__
17632# include <limits.h>
17633#else
17634# include <assert.h>
17635#endif
17636
17637#undef shl_load
17638
17639/* Override any GCC internal prototype to avoid an error.
17640   Use char because int might match the return type of a GCC
17641   builtin and then its argument prototype would still apply.  */
17642#ifdef __cplusplus
17643extern "C"
17644#endif
17645char shl_load ();
17646/* The GNU C library defines this for functions which it implements
17647    to always fail with ENOSYS.  Some functions are actually named
17648    something starting with __ and the normal name is an alias.  */
17649#if defined __stub_shl_load || defined __stub___shl_load
17650choke me
17651#endif
17652
17653int
17654main ()
17655{
17656return shl_load ();
17657  ;
17658  return 0;
17659}
17660_ACEOF
17661rm -f conftest.$ac_objext conftest$ac_exeext
17662if { (ac_try="$ac_link"
17663case "(($ac_try" in
17664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665  *) ac_try_echo=$ac_try;;
17666esac
17667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668  (eval "$ac_link") 2>conftest.er1
17669  ac_status=$?
17670  grep -v '^ *+' conftest.er1 >conftest.err
17671  rm -f conftest.er1
17672  cat conftest.err >&5
17673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674  (exit $ac_status); } && {
17675	 test -z "$ac_c_werror_flag" ||
17676	 test ! -s conftest.err
17677       } && test -s conftest$ac_exeext &&
17678       $as_test_x conftest$ac_exeext; then
17679  ac_cv_func_shl_load=yes
17680else
17681  echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684	ac_cv_func_shl_load=no
17685fi
17686
17687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688      conftest$ac_exeext conftest.$ac_ext
17689fi
17690{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17691echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17692if test $ac_cv_func_shl_load = yes; then
17693  lt_cv_dlopen="shl_load"
17694else
17695  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17696echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17697if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17698  echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700  ac_check_lib_save_LIBS=$LIBS
17701LIBS="-ldld  $LIBS"
17702cat >conftest.$ac_ext <<_ACEOF
17703/* confdefs.h.  */
17704_ACEOF
17705cat confdefs.h >>conftest.$ac_ext
17706cat >>conftest.$ac_ext <<_ACEOF
17707/* end confdefs.h.  */
17708
17709/* Override any GCC internal prototype to avoid an error.
17710   Use char because int might match the return type of a GCC
17711   builtin and then its argument prototype would still apply.  */
17712#ifdef __cplusplus
17713extern "C"
17714#endif
17715char shl_load ();
17716int
17717main ()
17718{
17719return shl_load ();
17720  ;
17721  return 0;
17722}
17723_ACEOF
17724rm -f conftest.$ac_objext conftest$ac_exeext
17725if { (ac_try="$ac_link"
17726case "(($ac_try" in
17727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728  *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731  (eval "$ac_link") 2>conftest.er1
17732  ac_status=$?
17733  grep -v '^ *+' conftest.er1 >conftest.err
17734  rm -f conftest.er1
17735  cat conftest.err >&5
17736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737  (exit $ac_status); } && {
17738	 test -z "$ac_c_werror_flag" ||
17739	 test ! -s conftest.err
17740       } && test -s conftest$ac_exeext &&
17741       $as_test_x conftest$ac_exeext; then
17742  ac_cv_lib_dld_shl_load=yes
17743else
17744  echo "$as_me: failed program was:" >&5
17745sed 's/^/| /' conftest.$ac_ext >&5
17746
17747	ac_cv_lib_dld_shl_load=no
17748fi
17749
17750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17751      conftest$ac_exeext conftest.$ac_ext
17752LIBS=$ac_check_lib_save_LIBS
17753fi
17754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17755echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17756if test $ac_cv_lib_dld_shl_load = yes; then
17757  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17758else
17759  { echo "$as_me:$LINENO: checking for dlopen" >&5
17760echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17761if test "${ac_cv_func_dlopen+set}" = set; then
17762  echo $ECHO_N "(cached) $ECHO_C" >&6
17763else
17764  cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h.  */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h.  */
17770/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17772#define dlopen innocuous_dlopen
17773
17774/* System header to define __stub macros and hopefully few prototypes,
17775    which can conflict with char dlopen (); below.
17776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777    <limits.h> exists even on freestanding compilers.  */
17778
17779#ifdef __STDC__
17780# include <limits.h>
17781#else
17782# include <assert.h>
17783#endif
17784
17785#undef dlopen
17786
17787/* Override any GCC internal prototype to avoid an error.
17788   Use char because int might match the return type of a GCC
17789   builtin and then its argument prototype would still apply.  */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793char dlopen ();
17794/* The GNU C library defines this for functions which it implements
17795    to always fail with ENOSYS.  Some functions are actually named
17796    something starting with __ and the normal name is an alias.  */
17797#if defined __stub_dlopen || defined __stub___dlopen
17798choke me
17799#endif
17800
17801int
17802main ()
17803{
17804return dlopen ();
17805  ;
17806  return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext conftest$ac_exeext
17810if { (ac_try="$ac_link"
17811case "(($ac_try" in
17812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813  *) ac_try_echo=$ac_try;;
17814esac
17815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816  (eval "$ac_link") 2>conftest.er1
17817  ac_status=$?
17818  grep -v '^ *+' conftest.er1 >conftest.err
17819  rm -f conftest.er1
17820  cat conftest.err >&5
17821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822  (exit $ac_status); } && {
17823	 test -z "$ac_c_werror_flag" ||
17824	 test ! -s conftest.err
17825       } && test -s conftest$ac_exeext &&
17826       $as_test_x conftest$ac_exeext; then
17827  ac_cv_func_dlopen=yes
17828else
17829  echo "$as_me: failed program was:" >&5
17830sed 's/^/| /' conftest.$ac_ext >&5
17831
17832	ac_cv_func_dlopen=no
17833fi
17834
17835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17836      conftest$ac_exeext conftest.$ac_ext
17837fi
17838{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17839echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17840if test $ac_cv_func_dlopen = yes; then
17841  lt_cv_dlopen="dlopen"
17842else
17843  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17844echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17845if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17846  echo $ECHO_N "(cached) $ECHO_C" >&6
17847else
17848  ac_check_lib_save_LIBS=$LIBS
17849LIBS="-ldl  $LIBS"
17850cat >conftest.$ac_ext <<_ACEOF
17851/* confdefs.h.  */
17852_ACEOF
17853cat confdefs.h >>conftest.$ac_ext
17854cat >>conftest.$ac_ext <<_ACEOF
17855/* end confdefs.h.  */
17856
17857/* Override any GCC internal prototype to avoid an error.
17858   Use char because int might match the return type of a GCC
17859   builtin and then its argument prototype would still apply.  */
17860#ifdef __cplusplus
17861extern "C"
17862#endif
17863char dlopen ();
17864int
17865main ()
17866{
17867return dlopen ();
17868  ;
17869  return 0;
17870}
17871_ACEOF
17872rm -f conftest.$ac_objext conftest$ac_exeext
17873if { (ac_try="$ac_link"
17874case "(($ac_try" in
17875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876  *) ac_try_echo=$ac_try;;
17877esac
17878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879  (eval "$ac_link") 2>conftest.er1
17880  ac_status=$?
17881  grep -v '^ *+' conftest.er1 >conftest.err
17882  rm -f conftest.er1
17883  cat conftest.err >&5
17884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885  (exit $ac_status); } && {
17886	 test -z "$ac_c_werror_flag" ||
17887	 test ! -s conftest.err
17888       } && test -s conftest$ac_exeext &&
17889       $as_test_x conftest$ac_exeext; then
17890  ac_cv_lib_dl_dlopen=yes
17891else
17892  echo "$as_me: failed program was:" >&5
17893sed 's/^/| /' conftest.$ac_ext >&5
17894
17895	ac_cv_lib_dl_dlopen=no
17896fi
17897
17898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17899      conftest$ac_exeext conftest.$ac_ext
17900LIBS=$ac_check_lib_save_LIBS
17901fi
17902{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17903echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17904if test $ac_cv_lib_dl_dlopen = yes; then
17905  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17906else
17907  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17908echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17909if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17910  echo $ECHO_N "(cached) $ECHO_C" >&6
17911else
17912  ac_check_lib_save_LIBS=$LIBS
17913LIBS="-lsvld  $LIBS"
17914cat >conftest.$ac_ext <<_ACEOF
17915/* confdefs.h.  */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h.  */
17920
17921/* Override any GCC internal prototype to avoid an error.
17922   Use char because int might match the return type of a GCC
17923   builtin and then its argument prototype would still apply.  */
17924#ifdef __cplusplus
17925extern "C"
17926#endif
17927char dlopen ();
17928int
17929main ()
17930{
17931return dlopen ();
17932  ;
17933  return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext conftest$ac_exeext
17937if { (ac_try="$ac_link"
17938case "(($ac_try" in
17939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940  *) ac_try_echo=$ac_try;;
17941esac
17942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943  (eval "$ac_link") 2>conftest.er1
17944  ac_status=$?
17945  grep -v '^ *+' conftest.er1 >conftest.err
17946  rm -f conftest.er1
17947  cat conftest.err >&5
17948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949  (exit $ac_status); } && {
17950	 test -z "$ac_c_werror_flag" ||
17951	 test ! -s conftest.err
17952       } && test -s conftest$ac_exeext &&
17953       $as_test_x conftest$ac_exeext; then
17954  ac_cv_lib_svld_dlopen=yes
17955else
17956  echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959	ac_cv_lib_svld_dlopen=no
17960fi
17961
17962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963      conftest$ac_exeext conftest.$ac_ext
17964LIBS=$ac_check_lib_save_LIBS
17965fi
17966{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17967echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17968if test $ac_cv_lib_svld_dlopen = yes; then
17969  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17970else
17971  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17972echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17973if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17974  echo $ECHO_N "(cached) $ECHO_C" >&6
17975else
17976  ac_check_lib_save_LIBS=$LIBS
17977LIBS="-ldld  $LIBS"
17978cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h.  */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h.  */
17984
17985/* Override any GCC internal prototype to avoid an error.
17986   Use char because int might match the return type of a GCC
17987   builtin and then its argument prototype would still apply.  */
17988#ifdef __cplusplus
17989extern "C"
17990#endif
17991char dld_link ();
17992int
17993main ()
17994{
17995return dld_link ();
17996  ;
17997  return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext conftest$ac_exeext
18001if { (ac_try="$ac_link"
18002case "(($ac_try" in
18003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004  *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007  (eval "$ac_link") 2>conftest.er1
18008  ac_status=$?
18009  grep -v '^ *+' conftest.er1 >conftest.err
18010  rm -f conftest.er1
18011  cat conftest.err >&5
18012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013  (exit $ac_status); } && {
18014	 test -z "$ac_c_werror_flag" ||
18015	 test ! -s conftest.err
18016       } && test -s conftest$ac_exeext &&
18017       $as_test_x conftest$ac_exeext; then
18018  ac_cv_lib_dld_dld_link=yes
18019else
18020  echo "$as_me: failed program was:" >&5
18021sed 's/^/| /' conftest.$ac_ext >&5
18022
18023	ac_cv_lib_dld_dld_link=no
18024fi
18025
18026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027      conftest$ac_exeext conftest.$ac_ext
18028LIBS=$ac_check_lib_save_LIBS
18029fi
18030{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18031echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18032if test $ac_cv_lib_dld_dld_link = yes; then
18033  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18034fi
18035
18036
18037fi
18038
18039
18040fi
18041
18042
18043fi
18044
18045
18046fi
18047
18048
18049fi
18050
18051    ;;
18052  esac
18053
18054  if test "x$lt_cv_dlopen" != xno; then
18055    enable_dlopen=yes
18056  else
18057    enable_dlopen=no
18058  fi
18059
18060  case $lt_cv_dlopen in
18061  dlopen)
18062    save_CPPFLAGS="$CPPFLAGS"
18063    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18064
18065    save_LDFLAGS="$LDFLAGS"
18066    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18067
18068    save_LIBS="$LIBS"
18069    LIBS="$lt_cv_dlopen_libs $LIBS"
18070
18071    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18072echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18073if test "${lt_cv_dlopen_self+set}" = set; then
18074  echo $ECHO_N "(cached) $ECHO_C" >&6
18075else
18076  	  if test "$cross_compiling" = yes; then :
18077  lt_cv_dlopen_self=cross
18078else
18079  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18080  lt_status=$lt_dlunknown
18081  cat > conftest.$ac_ext <<EOF
18082#line 18082 "configure"
18083#include "confdefs.h"
18084
18085#if HAVE_DLFCN_H
18086#include <dlfcn.h>
18087#endif
18088
18089#include <stdio.h>
18090
18091#ifdef RTLD_GLOBAL
18092#  define LT_DLGLOBAL		RTLD_GLOBAL
18093#else
18094#  ifdef DL_GLOBAL
18095#    define LT_DLGLOBAL		DL_GLOBAL
18096#  else
18097#    define LT_DLGLOBAL		0
18098#  endif
18099#endif
18100
18101/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18102   find out it does not work in some platform. */
18103#ifndef LT_DLLAZY_OR_NOW
18104#  ifdef RTLD_LAZY
18105#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18106#  else
18107#    ifdef DL_LAZY
18108#      define LT_DLLAZY_OR_NOW		DL_LAZY
18109#    else
18110#      ifdef RTLD_NOW
18111#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18112#      else
18113#        ifdef DL_NOW
18114#          define LT_DLLAZY_OR_NOW	DL_NOW
18115#        else
18116#          define LT_DLLAZY_OR_NOW	0
18117#        endif
18118#      endif
18119#    endif
18120#  endif
18121#endif
18122
18123#ifdef __cplusplus
18124extern "C" void exit (int);
18125#endif
18126
18127void fnord() { int i=42;}
18128int main ()
18129{
18130  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131  int status = $lt_dlunknown;
18132
18133  if (self)
18134    {
18135      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18136      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18137      /* dlclose (self); */
18138    }
18139
18140    exit (status);
18141}
18142EOF
18143  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18144  (eval $ac_link) 2>&5
18145  ac_status=$?
18146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18148    (./conftest; exit; ) 2>/dev/null
18149    lt_status=$?
18150    case x$lt_status in
18151      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18152      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18153      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18154    esac
18155  else :
18156    # compilation failed
18157    lt_cv_dlopen_self=no
18158  fi
18159fi
18160rm -fr conftest*
18161
18162
18163fi
18164{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18165echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18166
18167    if test "x$lt_cv_dlopen_self" = xyes; then
18168      LDFLAGS="$LDFLAGS $link_static_flag"
18169      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18170echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18171if test "${lt_cv_dlopen_self_static+set}" = set; then
18172  echo $ECHO_N "(cached) $ECHO_C" >&6
18173else
18174  	  if test "$cross_compiling" = yes; then :
18175  lt_cv_dlopen_self_static=cross
18176else
18177  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18178  lt_status=$lt_dlunknown
18179  cat > conftest.$ac_ext <<EOF
18180#line 18180 "configure"
18181#include "confdefs.h"
18182
18183#if HAVE_DLFCN_H
18184#include <dlfcn.h>
18185#endif
18186
18187#include <stdio.h>
18188
18189#ifdef RTLD_GLOBAL
18190#  define LT_DLGLOBAL		RTLD_GLOBAL
18191#else
18192#  ifdef DL_GLOBAL
18193#    define LT_DLGLOBAL		DL_GLOBAL
18194#  else
18195#    define LT_DLGLOBAL		0
18196#  endif
18197#endif
18198
18199/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18200   find out it does not work in some platform. */
18201#ifndef LT_DLLAZY_OR_NOW
18202#  ifdef RTLD_LAZY
18203#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18204#  else
18205#    ifdef DL_LAZY
18206#      define LT_DLLAZY_OR_NOW		DL_LAZY
18207#    else
18208#      ifdef RTLD_NOW
18209#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18210#      else
18211#        ifdef DL_NOW
18212#          define LT_DLLAZY_OR_NOW	DL_NOW
18213#        else
18214#          define LT_DLLAZY_OR_NOW	0
18215#        endif
18216#      endif
18217#    endif
18218#  endif
18219#endif
18220
18221#ifdef __cplusplus
18222extern "C" void exit (int);
18223#endif
18224
18225void fnord() { int i=42;}
18226int main ()
18227{
18228  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18229  int status = $lt_dlunknown;
18230
18231  if (self)
18232    {
18233      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18234      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18235      /* dlclose (self); */
18236    }
18237
18238    exit (status);
18239}
18240EOF
18241  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242  (eval $ac_link) 2>&5
18243  ac_status=$?
18244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18246    (./conftest; exit; ) 2>/dev/null
18247    lt_status=$?
18248    case x$lt_status in
18249      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18250      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18251      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18252    esac
18253  else :
18254    # compilation failed
18255    lt_cv_dlopen_self_static=no
18256  fi
18257fi
18258rm -fr conftest*
18259
18260
18261fi
18262{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18263echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18264    fi
18265
18266    CPPFLAGS="$save_CPPFLAGS"
18267    LDFLAGS="$save_LDFLAGS"
18268    LIBS="$save_LIBS"
18269    ;;
18270  esac
18271
18272  case $lt_cv_dlopen_self in
18273  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18274  *) enable_dlopen_self=unknown ;;
18275  esac
18276
18277  case $lt_cv_dlopen_self_static in
18278  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18279  *) enable_dlopen_self_static=unknown ;;
18280  esac
18281fi
18282
18283
18284# The else clause should only fire when bootstrapping the
18285# libtool distribution, otherwise you forgot to ship ltmain.sh
18286# with your package, and you will get complaints that there are
18287# no rules to generate ltmain.sh.
18288if test -f "$ltmain"; then
18289  # See if we are running on zsh, and set the options which allow our commands through
18290  # without removal of \ escapes.
18291  if test -n "${ZSH_VERSION+set}" ; then
18292    setopt NO_GLOB_SUBST
18293  fi
18294  # Now quote all the things that may contain metacharacters while being
18295  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18296  # variables and quote the copies for generation of the libtool script.
18297  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18298    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18299    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18300    deplibs_check_method reload_flag reload_cmds need_locks \
18301    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18302    lt_cv_sys_global_symbol_to_c_name_address \
18303    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18304    old_postinstall_cmds old_postuninstall_cmds \
18305    compiler_GCJ \
18306    CC_GCJ \
18307    LD_GCJ \
18308    lt_prog_compiler_wl_GCJ \
18309    lt_prog_compiler_pic_GCJ \
18310    lt_prog_compiler_static_GCJ \
18311    lt_prog_compiler_no_builtin_flag_GCJ \
18312    export_dynamic_flag_spec_GCJ \
18313    thread_safe_flag_spec_GCJ \
18314    whole_archive_flag_spec_GCJ \
18315    enable_shared_with_static_runtimes_GCJ \
18316    old_archive_cmds_GCJ \
18317    old_archive_from_new_cmds_GCJ \
18318    predep_objects_GCJ \
18319    postdep_objects_GCJ \
18320    predeps_GCJ \
18321    postdeps_GCJ \
18322    compiler_lib_search_path_GCJ \
18323    archive_cmds_GCJ \
18324    archive_expsym_cmds_GCJ \
18325    postinstall_cmds_GCJ \
18326    postuninstall_cmds_GCJ \
18327    old_archive_from_expsyms_cmds_GCJ \
18328    allow_undefined_flag_GCJ \
18329    no_undefined_flag_GCJ \
18330    export_symbols_cmds_GCJ \
18331    hardcode_libdir_flag_spec_GCJ \
18332    hardcode_libdir_flag_spec_ld_GCJ \
18333    hardcode_libdir_separator_GCJ \
18334    hardcode_automatic_GCJ \
18335    module_cmds_GCJ \
18336    module_expsym_cmds_GCJ \
18337    lt_cv_prog_compiler_c_o_GCJ \
18338    exclude_expsyms_GCJ \
18339    include_expsyms_GCJ; do
18340
18341    case $var in
18342    old_archive_cmds_GCJ | \
18343    old_archive_from_new_cmds_GCJ | \
18344    archive_cmds_GCJ | \
18345    archive_expsym_cmds_GCJ | \
18346    module_cmds_GCJ | \
18347    module_expsym_cmds_GCJ | \
18348    old_archive_from_expsyms_cmds_GCJ | \
18349    export_symbols_cmds_GCJ | \
18350    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18351    postinstall_cmds | postuninstall_cmds | \
18352    old_postinstall_cmds | old_postuninstall_cmds | \
18353    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18354      # Double-quote double-evaled strings.
18355      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18356      ;;
18357    *)
18358      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18359      ;;
18360    esac
18361  done
18362
18363  case $lt_echo in
18364  *'\$0 --fallback-echo"')
18365    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18366    ;;
18367  esac
18368
18369cfgfile="$ofile"
18370
18371  cat <<__EOF__ >> "$cfgfile"
18372# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18373
18374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18375
18376# Shell to use when invoking shell scripts.
18377SHELL=$lt_SHELL
18378
18379# Whether or not to build shared libraries.
18380build_libtool_libs=$enable_shared
18381
18382# Whether or not to build static libraries.
18383build_old_libs=$enable_static
18384
18385# Whether or not to add -lc for building shared libraries.
18386build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18387
18388# Whether or not to disallow shared libs when runtime libs are static
18389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18390
18391# Whether or not to optimize for fast installation.
18392fast_install=$enable_fast_install
18393
18394# The host system.
18395host_alias=$host_alias
18396host=$host
18397
18398# An echo program that does not interpret backslashes.
18399echo=$lt_echo
18400
18401# The archiver.
18402AR=$lt_AR
18403AR_FLAGS=$lt_AR_FLAGS
18404
18405# A C compiler.
18406LTCC=$lt_LTCC
18407
18408# A language-specific compiler.
18409CC=$lt_compiler_GCJ
18410
18411# Is the compiler the GNU C compiler?
18412with_gcc=$GCC_GCJ
18413
18414# An ERE matcher.
18415EGREP=$lt_EGREP
18416
18417# The linker used to build libraries.
18418LD=$lt_LD_GCJ
18419
18420# Whether we need hard or soft links.
18421LN_S=$lt_LN_S
18422
18423# A BSD-compatible nm program.
18424NM=$lt_NM
18425
18426# A symbol stripping program
18427STRIP="$STRIP"
18428
18429# Used to examine libraries when file_magic_cmd begins "file"
18430MAGIC_CMD=$MAGIC_CMD
18431
18432# Used on cygwin: DLL creation program.
18433DLLTOOL="$DLLTOOL"
18434
18435# Used on cygwin: object dumper.
18436OBJDUMP="$OBJDUMP"
18437
18438# Used on cygwin: assembler.
18439AS="$AS"
18440
18441# The name of the directory that contains temporary libtool files.
18442objdir=$objdir
18443
18444# How to create reloadable object files.
18445reload_flag=$lt_reload_flag
18446reload_cmds=$lt_reload_cmds
18447
18448# How to pass a linker flag through the compiler.
18449wl=$lt_lt_prog_compiler_wl_GCJ
18450
18451# Object file suffix (normally "o").
18452objext="$ac_objext"
18453
18454# Old archive suffix (normally "a").
18455libext="$libext"
18456
18457# Shared library suffix (normally ".so").
18458shrext='$shrext'
18459
18460# Executable file suffix (normally "").
18461exeext="$exeext"
18462
18463# Additional compiler flags for building library objects.
18464pic_flag=$lt_lt_prog_compiler_pic_GCJ
18465pic_mode=$pic_mode
18466
18467# What is the maximum length of a command?
18468max_cmd_len=$lt_cv_sys_max_cmd_len
18469
18470# Does compiler simultaneously support -c and -o options?
18471compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18472
18473# Must we lock files when doing compilation ?
18474need_locks=$lt_need_locks
18475
18476# Do we need the lib prefix for modules?
18477need_lib_prefix=$need_lib_prefix
18478
18479# Do we need a version for libraries?
18480need_version=$need_version
18481
18482# Whether dlopen is supported.
18483dlopen_support=$enable_dlopen
18484
18485# Whether dlopen of programs is supported.
18486dlopen_self=$enable_dlopen_self
18487
18488# Whether dlopen of statically linked programs is supported.
18489dlopen_self_static=$enable_dlopen_self_static
18490
18491# Compiler flag to prevent dynamic linking.
18492link_static_flag=$lt_lt_prog_compiler_static_GCJ
18493
18494# Compiler flag to turn off builtin functions.
18495no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18496
18497# Compiler flag to allow reflexive dlopens.
18498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18499
18500# Compiler flag to generate shared objects directly from archives.
18501whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18502
18503# Compiler flag to generate thread-safe objects.
18504thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18505
18506# Library versioning type.
18507version_type=$version_type
18508
18509# Format of library name prefix.
18510libname_spec=$lt_libname_spec
18511
18512# List of archive names.  First name is the real one, the rest are links.
18513# The last name is the one that the linker finds with -lNAME.
18514library_names_spec=$lt_library_names_spec
18515
18516# The coded name of the library, if different from the real name.
18517soname_spec=$lt_soname_spec
18518
18519# Commands used to build and install an old-style archive.
18520RANLIB=$lt_RANLIB
18521old_archive_cmds=$lt_old_archive_cmds_GCJ
18522old_postinstall_cmds=$lt_old_postinstall_cmds
18523old_postuninstall_cmds=$lt_old_postuninstall_cmds
18524
18525# Create an old-style archive from a shared archive.
18526old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18527
18528# Create a temporary old-style archive to link instead of a shared archive.
18529old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18530
18531# Commands used to build and install a shared archive.
18532archive_cmds=$lt_archive_cmds_GCJ
18533archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18534postinstall_cmds=$lt_postinstall_cmds
18535postuninstall_cmds=$lt_postuninstall_cmds
18536
18537# Commands used to build a loadable module (assumed same as above if empty)
18538module_cmds=$lt_module_cmds_GCJ
18539module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18540
18541# Commands to strip libraries.
18542old_striplib=$lt_old_striplib
18543striplib=$lt_striplib
18544
18545# Dependencies to place before the objects being linked to create a
18546# shared library.
18547predep_objects=$lt_predep_objects_GCJ
18548
18549# Dependencies to place after the objects being linked to create a
18550# shared library.
18551postdep_objects=$lt_postdep_objects_GCJ
18552
18553# Dependencies to place before the objects being linked to create a
18554# shared library.
18555predeps=$lt_predeps_GCJ
18556
18557# Dependencies to place after the objects being linked to create a
18558# shared library.
18559postdeps=$lt_postdeps_GCJ
18560
18561# The library search path used internally by the compiler when linking
18562# a shared library.
18563compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18564
18565# Method to check whether dependent libraries are shared objects.
18566deplibs_check_method=$lt_deplibs_check_method
18567
18568# Command to use when deplibs_check_method == file_magic.
18569file_magic_cmd=$lt_file_magic_cmd
18570
18571# Flag that allows shared libraries with undefined symbols to be built.
18572allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18573
18574# Flag that forces no undefined symbols.
18575no_undefined_flag=$lt_no_undefined_flag_GCJ
18576
18577# Commands used to finish a libtool library installation in a directory.
18578finish_cmds=$lt_finish_cmds
18579
18580# Same as above, but a single script fragment to be evaled but not shown.
18581finish_eval=$lt_finish_eval
18582
18583# Take the output of nm and produce a listing of raw symbols and C names.
18584global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18585
18586# Transform the output of nm in a proper C declaration
18587global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18588
18589# Transform the output of nm in a C name address pair
18590global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18591
18592# This is the shared library runtime path variable.
18593runpath_var=$runpath_var
18594
18595# This is the shared library path variable.
18596shlibpath_var=$shlibpath_var
18597
18598# Is shlibpath searched before the hard-coded library search path?
18599shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18600
18601# How to hardcode a shared library path into an executable.
18602hardcode_action=$hardcode_action_GCJ
18603
18604# Whether we should hardcode library paths into libraries.
18605hardcode_into_libs=$hardcode_into_libs
18606
18607# Flag to hardcode \$libdir into a binary during linking.
18608# This must work even if \$libdir does not exist.
18609hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18610
18611# If ld is used when linking, flag to hardcode \$libdir into
18612# a binary during linking. This must work even if \$libdir does
18613# not exist.
18614hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18615
18616# Whether we need a single -rpath flag with a separated argument.
18617hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18618
18619# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18620# resulting binary.
18621hardcode_direct=$hardcode_direct_GCJ
18622
18623# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18624# resulting binary.
18625hardcode_minus_L=$hardcode_minus_L_GCJ
18626
18627# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18628# the resulting binary.
18629hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18630
18631# Set to yes if building a shared library automatically hardcodes DIR into the library
18632# and all subsequent libraries and executables linked against it.
18633hardcode_automatic=$hardcode_automatic_GCJ
18634
18635# Variables whose values should be saved in libtool wrapper scripts and
18636# restored at relink time.
18637variables_saved_for_relink="$variables_saved_for_relink"
18638
18639# Whether libtool must link a program against all its dependency libraries.
18640link_all_deplibs=$link_all_deplibs_GCJ
18641
18642# Compile-time system search path for libraries
18643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18644
18645# Run-time system search path for libraries
18646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18647
18648# Fix the shell variable \$srcfile for the compiler.
18649fix_srcfile_path="$fix_srcfile_path_GCJ"
18650
18651# Set to yes if exported symbols are required.
18652always_export_symbols=$always_export_symbols_GCJ
18653
18654# The commands to list exported symbols.
18655export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18656
18657# The commands to extract the exported symbol list from a shared archive.
18658extract_expsyms_cmds=$lt_extract_expsyms_cmds
18659
18660# Symbols that should not be listed in the preloaded symbols.
18661exclude_expsyms=$lt_exclude_expsyms_GCJ
18662
18663# Symbols that must always be exported.
18664include_expsyms=$lt_include_expsyms_GCJ
18665
18666# ### END LIBTOOL TAG CONFIG: $tagname
18667
18668__EOF__
18669
18670
18671else
18672  # If there is no Makefile yet, we rely on a make rule to execute
18673  # `config.status --recheck' to rerun these tests and create the
18674  # libtool script then.
18675  test -f Makefile && make "$ltmain"
18676fi
18677
18678
18679ac_ext=c
18680ac_cpp='$CPP $CPPFLAGS'
18681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683ac_compiler_gnu=$ac_cv_c_compiler_gnu
18684
18685CC="$lt_save_CC"
18686
18687	else
18688	  tagname=""
18689	fi
18690	;;
18691
18692      RC)
18693
18694
18695# Source file extension for RC test sources.
18696ac_ext=rc
18697
18698# Object file extension for compiled RC test sources.
18699objext=o
18700objext_RC=$objext
18701
18702# Code to be used in simple compile tests
18703lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18704
18705# Code to be used in simple link tests
18706lt_simple_link_test_code="$lt_simple_compile_test_code"
18707
18708# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18709
18710# If no C compiler was specified, use CC.
18711LTCC=${LTCC-"$CC"}
18712
18713# Allow CC to be a program name with arguments.
18714compiler=$CC
18715
18716
18717# Allow CC to be a program name with arguments.
18718lt_save_CC="$CC"
18719CC=${RC-"windres"}
18720compiler=$CC
18721compiler_RC=$CC
18722lt_cv_prog_compiler_c_o_RC=yes
18723
18724# The else clause should only fire when bootstrapping the
18725# libtool distribution, otherwise you forgot to ship ltmain.sh
18726# with your package, and you will get complaints that there are
18727# no rules to generate ltmain.sh.
18728if test -f "$ltmain"; then
18729  # See if we are running on zsh, and set the options which allow our commands through
18730  # without removal of \ escapes.
18731  if test -n "${ZSH_VERSION+set}" ; then
18732    setopt NO_GLOB_SUBST
18733  fi
18734  # Now quote all the things that may contain metacharacters while being
18735  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18736  # variables and quote the copies for generation of the libtool script.
18737  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18738    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18739    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18740    deplibs_check_method reload_flag reload_cmds need_locks \
18741    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18742    lt_cv_sys_global_symbol_to_c_name_address \
18743    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18744    old_postinstall_cmds old_postuninstall_cmds \
18745    compiler_RC \
18746    CC_RC \
18747    LD_RC \
18748    lt_prog_compiler_wl_RC \
18749    lt_prog_compiler_pic_RC \
18750    lt_prog_compiler_static_RC \
18751    lt_prog_compiler_no_builtin_flag_RC \
18752    export_dynamic_flag_spec_RC \
18753    thread_safe_flag_spec_RC \
18754    whole_archive_flag_spec_RC \
18755    enable_shared_with_static_runtimes_RC \
18756    old_archive_cmds_RC \
18757    old_archive_from_new_cmds_RC \
18758    predep_objects_RC \
18759    postdep_objects_RC \
18760    predeps_RC \
18761    postdeps_RC \
18762    compiler_lib_search_path_RC \
18763    archive_cmds_RC \
18764    archive_expsym_cmds_RC \
18765    postinstall_cmds_RC \
18766    postuninstall_cmds_RC \
18767    old_archive_from_expsyms_cmds_RC \
18768    allow_undefined_flag_RC \
18769    no_undefined_flag_RC \
18770    export_symbols_cmds_RC \
18771    hardcode_libdir_flag_spec_RC \
18772    hardcode_libdir_flag_spec_ld_RC \
18773    hardcode_libdir_separator_RC \
18774    hardcode_automatic_RC \
18775    module_cmds_RC \
18776    module_expsym_cmds_RC \
18777    lt_cv_prog_compiler_c_o_RC \
18778    exclude_expsyms_RC \
18779    include_expsyms_RC; do
18780
18781    case $var in
18782    old_archive_cmds_RC | \
18783    old_archive_from_new_cmds_RC | \
18784    archive_cmds_RC | \
18785    archive_expsym_cmds_RC | \
18786    module_cmds_RC | \
18787    module_expsym_cmds_RC | \
18788    old_archive_from_expsyms_cmds_RC | \
18789    export_symbols_cmds_RC | \
18790    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18791    postinstall_cmds | postuninstall_cmds | \
18792    old_postinstall_cmds | old_postuninstall_cmds | \
18793    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18794      # Double-quote double-evaled strings.
18795      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18796      ;;
18797    *)
18798      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18799      ;;
18800    esac
18801  done
18802
18803  case $lt_echo in
18804  *'\$0 --fallback-echo"')
18805    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18806    ;;
18807  esac
18808
18809cfgfile="$ofile"
18810
18811  cat <<__EOF__ >> "$cfgfile"
18812# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18813
18814# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18815
18816# Shell to use when invoking shell scripts.
18817SHELL=$lt_SHELL
18818
18819# Whether or not to build shared libraries.
18820build_libtool_libs=$enable_shared
18821
18822# Whether or not to build static libraries.
18823build_old_libs=$enable_static
18824
18825# Whether or not to add -lc for building shared libraries.
18826build_libtool_need_lc=$archive_cmds_need_lc_RC
18827
18828# Whether or not to disallow shared libs when runtime libs are static
18829allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18830
18831# Whether or not to optimize for fast installation.
18832fast_install=$enable_fast_install
18833
18834# The host system.
18835host_alias=$host_alias
18836host=$host
18837
18838# An echo program that does not interpret backslashes.
18839echo=$lt_echo
18840
18841# The archiver.
18842AR=$lt_AR
18843AR_FLAGS=$lt_AR_FLAGS
18844
18845# A C compiler.
18846LTCC=$lt_LTCC
18847
18848# A language-specific compiler.
18849CC=$lt_compiler_RC
18850
18851# Is the compiler the GNU C compiler?
18852with_gcc=$GCC_RC
18853
18854# An ERE matcher.
18855EGREP=$lt_EGREP
18856
18857# The linker used to build libraries.
18858LD=$lt_LD_RC
18859
18860# Whether we need hard or soft links.
18861LN_S=$lt_LN_S
18862
18863# A BSD-compatible nm program.
18864NM=$lt_NM
18865
18866# A symbol stripping program
18867STRIP="$STRIP"
18868
18869# Used to examine libraries when file_magic_cmd begins "file"
18870MAGIC_CMD=$MAGIC_CMD
18871
18872# Used on cygwin: DLL creation program.
18873DLLTOOL="$DLLTOOL"
18874
18875# Used on cygwin: object dumper.
18876OBJDUMP="$OBJDUMP"
18877
18878# Used on cygwin: assembler.
18879AS="$AS"
18880
18881# The name of the directory that contains temporary libtool files.
18882objdir=$objdir
18883
18884# How to create reloadable object files.
18885reload_flag=$lt_reload_flag
18886reload_cmds=$lt_reload_cmds
18887
18888# How to pass a linker flag through the compiler.
18889wl=$lt_lt_prog_compiler_wl_RC
18890
18891# Object file suffix (normally "o").
18892objext="$ac_objext"
18893
18894# Old archive suffix (normally "a").
18895libext="$libext"
18896
18897# Shared library suffix (normally ".so").
18898shrext='$shrext'
18899
18900# Executable file suffix (normally "").
18901exeext="$exeext"
18902
18903# Additional compiler flags for building library objects.
18904pic_flag=$lt_lt_prog_compiler_pic_RC
18905pic_mode=$pic_mode
18906
18907# What is the maximum length of a command?
18908max_cmd_len=$lt_cv_sys_max_cmd_len
18909
18910# Does compiler simultaneously support -c and -o options?
18911compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18912
18913# Must we lock files when doing compilation ?
18914need_locks=$lt_need_locks
18915
18916# Do we need the lib prefix for modules?
18917need_lib_prefix=$need_lib_prefix
18918
18919# Do we need a version for libraries?
18920need_version=$need_version
18921
18922# Whether dlopen is supported.
18923dlopen_support=$enable_dlopen
18924
18925# Whether dlopen of programs is supported.
18926dlopen_self=$enable_dlopen_self
18927
18928# Whether dlopen of statically linked programs is supported.
18929dlopen_self_static=$enable_dlopen_self_static
18930
18931# Compiler flag to prevent dynamic linking.
18932link_static_flag=$lt_lt_prog_compiler_static_RC
18933
18934# Compiler flag to turn off builtin functions.
18935no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18936
18937# Compiler flag to allow reflexive dlopens.
18938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18939
18940# Compiler flag to generate shared objects directly from archives.
18941whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18942
18943# Compiler flag to generate thread-safe objects.
18944thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18945
18946# Library versioning type.
18947version_type=$version_type
18948
18949# Format of library name prefix.
18950libname_spec=$lt_libname_spec
18951
18952# List of archive names.  First name is the real one, the rest are links.
18953# The last name is the one that the linker finds with -lNAME.
18954library_names_spec=$lt_library_names_spec
18955
18956# The coded name of the library, if different from the real name.
18957soname_spec=$lt_soname_spec
18958
18959# Commands used to build and install an old-style archive.
18960RANLIB=$lt_RANLIB
18961old_archive_cmds=$lt_old_archive_cmds_RC
18962old_postinstall_cmds=$lt_old_postinstall_cmds
18963old_postuninstall_cmds=$lt_old_postuninstall_cmds
18964
18965# Create an old-style archive from a shared archive.
18966old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18967
18968# Create a temporary old-style archive to link instead of a shared archive.
18969old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18970
18971# Commands used to build and install a shared archive.
18972archive_cmds=$lt_archive_cmds_RC
18973archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18974postinstall_cmds=$lt_postinstall_cmds
18975postuninstall_cmds=$lt_postuninstall_cmds
18976
18977# Commands used to build a loadable module (assumed same as above if empty)
18978module_cmds=$lt_module_cmds_RC
18979module_expsym_cmds=$lt_module_expsym_cmds_RC
18980
18981# Commands to strip libraries.
18982old_striplib=$lt_old_striplib
18983striplib=$lt_striplib
18984
18985# Dependencies to place before the objects being linked to create a
18986# shared library.
18987predep_objects=$lt_predep_objects_RC
18988
18989# Dependencies to place after the objects being linked to create a
18990# shared library.
18991postdep_objects=$lt_postdep_objects_RC
18992
18993# Dependencies to place before the objects being linked to create a
18994# shared library.
18995predeps=$lt_predeps_RC
18996
18997# Dependencies to place after the objects being linked to create a
18998# shared library.
18999postdeps=$lt_postdeps_RC
19000
19001# The library search path used internally by the compiler when linking
19002# a shared library.
19003compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19004
19005# Method to check whether dependent libraries are shared objects.
19006deplibs_check_method=$lt_deplibs_check_method
19007
19008# Command to use when deplibs_check_method == file_magic.
19009file_magic_cmd=$lt_file_magic_cmd
19010
19011# Flag that allows shared libraries with undefined symbols to be built.
19012allow_undefined_flag=$lt_allow_undefined_flag_RC
19013
19014# Flag that forces no undefined symbols.
19015no_undefined_flag=$lt_no_undefined_flag_RC
19016
19017# Commands used to finish a libtool library installation in a directory.
19018finish_cmds=$lt_finish_cmds
19019
19020# Same as above, but a single script fragment to be evaled but not shown.
19021finish_eval=$lt_finish_eval
19022
19023# Take the output of nm and produce a listing of raw symbols and C names.
19024global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19025
19026# Transform the output of nm in a proper C declaration
19027global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19028
19029# Transform the output of nm in a C name address pair
19030global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19031
19032# This is the shared library runtime path variable.
19033runpath_var=$runpath_var
19034
19035# This is the shared library path variable.
19036shlibpath_var=$shlibpath_var
19037
19038# Is shlibpath searched before the hard-coded library search path?
19039shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19040
19041# How to hardcode a shared library path into an executable.
19042hardcode_action=$hardcode_action_RC
19043
19044# Whether we should hardcode library paths into libraries.
19045hardcode_into_libs=$hardcode_into_libs
19046
19047# Flag to hardcode \$libdir into a binary during linking.
19048# This must work even if \$libdir does not exist.
19049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19050
19051# If ld is used when linking, flag to hardcode \$libdir into
19052# a binary during linking. This must work even if \$libdir does
19053# not exist.
19054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19055
19056# Whether we need a single -rpath flag with a separated argument.
19057hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19058
19059# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19060# resulting binary.
19061hardcode_direct=$hardcode_direct_RC
19062
19063# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19064# resulting binary.
19065hardcode_minus_L=$hardcode_minus_L_RC
19066
19067# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19068# the resulting binary.
19069hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19070
19071# Set to yes if building a shared library automatically hardcodes DIR into the library
19072# and all subsequent libraries and executables linked against it.
19073hardcode_automatic=$hardcode_automatic_RC
19074
19075# Variables whose values should be saved in libtool wrapper scripts and
19076# restored at relink time.
19077variables_saved_for_relink="$variables_saved_for_relink"
19078
19079# Whether libtool must link a program against all its dependency libraries.
19080link_all_deplibs=$link_all_deplibs_RC
19081
19082# Compile-time system search path for libraries
19083sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19084
19085# Run-time system search path for libraries
19086sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19087
19088# Fix the shell variable \$srcfile for the compiler.
19089fix_srcfile_path="$fix_srcfile_path_RC"
19090
19091# Set to yes if exported symbols are required.
19092always_export_symbols=$always_export_symbols_RC
19093
19094# The commands to list exported symbols.
19095export_symbols_cmds=$lt_export_symbols_cmds_RC
19096
19097# The commands to extract the exported symbol list from a shared archive.
19098extract_expsyms_cmds=$lt_extract_expsyms_cmds
19099
19100# Symbols that should not be listed in the preloaded symbols.
19101exclude_expsyms=$lt_exclude_expsyms_RC
19102
19103# Symbols that must always be exported.
19104include_expsyms=$lt_include_expsyms_RC
19105
19106# ### END LIBTOOL TAG CONFIG: $tagname
19107
19108__EOF__
19109
19110
19111else
19112  # If there is no Makefile yet, we rely on a make rule to execute
19113  # `config.status --recheck' to rerun these tests and create the
19114  # libtool script then.
19115  test -f Makefile && make "$ltmain"
19116fi
19117
19118
19119ac_ext=c
19120ac_cpp='$CPP $CPPFLAGS'
19121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123ac_compiler_gnu=$ac_cv_c_compiler_gnu
19124
19125CC="$lt_save_CC"
19126
19127	;;
19128
19129      *)
19130	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19131echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19132   { (exit 1); exit 1; }; }
19133	;;
19134      esac
19135
19136      # Append the new tag name to the list of available tags.
19137      if test -n "$tagname" ; then
19138      available_tags="$available_tags $tagname"
19139    fi
19140    fi
19141  done
19142  IFS="$lt_save_ifs"
19143
19144  # Now substitute the updated list of available tags.
19145  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19146    mv "${ofile}T" "$ofile"
19147    chmod +x "$ofile"
19148  else
19149    rm -f "${ofile}T"
19150    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19151echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19152   { (exit 1); exit 1; }; }
19153  fi
19154fi
19155
19156
19157
19158# This can be used to rebuild libtool when needed
19159LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19160
19161# Always use our own libtool.
19162LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19163
19164# Prevent multiple expansion
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19186echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19187if test "${ac_cv_c_const+set}" = set; then
19188  echo $ECHO_N "(cached) $ECHO_C" >&6
19189else
19190  cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h.  */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h.  */
19196
19197int
19198main ()
19199{
19200/* FIXME: Include the comments suggested by Paul. */
19201#ifndef __cplusplus
19202  /* Ultrix mips cc rejects this.  */
19203  typedef int charset[2];
19204  const charset cs;
19205  /* SunOS 4.1.1 cc rejects this.  */
19206  char const *const *pcpcc;
19207  char **ppc;
19208  /* NEC SVR4.0.2 mips cc rejects this.  */
19209  struct point {int x, y;};
19210  static struct point const zero = {0,0};
19211  /* AIX XL C 1.02.0.0 rejects this.
19212     It does not let you subtract one const X* pointer from another in
19213     an arm of an if-expression whose if-part is not a constant
19214     expression */
19215  const char *g = "string";
19216  pcpcc = &g + (g ? g-g : 0);
19217  /* HPUX 7.0 cc rejects these. */
19218  ++pcpcc;
19219  ppc = (char**) pcpcc;
19220  pcpcc = (char const *const *) ppc;
19221  { /* SCO 3.2v4 cc rejects this.  */
19222    char *t;
19223    char const *s = 0 ? (char *) 0 : (char const *) 0;
19224
19225    *t++ = 0;
19226    if (s) return 0;
19227  }
19228  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19229    int x[] = {25, 17};
19230    const int *foo = &x[0];
19231    ++foo;
19232  }
19233  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19234    typedef const int *iptr;
19235    iptr p = 0;
19236    ++p;
19237  }
19238  { /* AIX XL C 1.02.0.0 rejects this saying
19239       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19240    struct s { int j; const int *ap[3]; };
19241    struct s *b; b->j = 5;
19242  }
19243  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19244    const int foo = 10;
19245    if (!foo) return 0;
19246  }
19247  return !cs[0] && !zero.x;
19248#endif
19249
19250  ;
19251  return 0;
19252}
19253_ACEOF
19254rm -f conftest.$ac_objext
19255if { (ac_try="$ac_compile"
19256case "(($ac_try" in
19257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258  *) ac_try_echo=$ac_try;;
19259esac
19260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261  (eval "$ac_compile") 2>conftest.er1
19262  ac_status=$?
19263  grep -v '^ *+' conftest.er1 >conftest.err
19264  rm -f conftest.er1
19265  cat conftest.err >&5
19266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267  (exit $ac_status); } && {
19268	 test -z "$ac_c_werror_flag" ||
19269	 test ! -s conftest.err
19270       } && test -s conftest.$ac_objext; then
19271  ac_cv_c_const=yes
19272else
19273  echo "$as_me: failed program was:" >&5
19274sed 's/^/| /' conftest.$ac_ext >&5
19275
19276	ac_cv_c_const=no
19277fi
19278
19279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280fi
19281{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19282echo "${ECHO_T}$ac_cv_c_const" >&6; }
19283if test $ac_cv_c_const = no; then
19284
19285cat >>confdefs.h <<\_ACEOF
19286#define const
19287_ACEOF
19288
19289fi
19290
19291
19292
19293
19294
19295
19296ac_header_dirent=no
19297for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19298  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19299{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19300echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19302  echo $ECHO_N "(cached) $ECHO_C" >&6
19303else
19304  cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h.  */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
19309/* end confdefs.h.  */
19310#include <sys/types.h>
19311#include <$ac_hdr>
19312
19313int
19314main ()
19315{
19316if ((DIR *) 0)
19317return 0;
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext
19323if { (ac_try="$ac_compile"
19324case "(($ac_try" in
19325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326  *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329  (eval "$ac_compile") 2>conftest.er1
19330  ac_status=$?
19331  grep -v '^ *+' conftest.er1 >conftest.err
19332  rm -f conftest.er1
19333  cat conftest.err >&5
19334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335  (exit $ac_status); } && {
19336	 test -z "$ac_c_werror_flag" ||
19337	 test ! -s conftest.err
19338       } && test -s conftest.$ac_objext; then
19339  eval "$as_ac_Header=yes"
19340else
19341  echo "$as_me: failed program was:" >&5
19342sed 's/^/| /' conftest.$ac_ext >&5
19343
19344	eval "$as_ac_Header=no"
19345fi
19346
19347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348fi
19349ac_res=`eval echo '${'$as_ac_Header'}'`
19350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19351echo "${ECHO_T}$ac_res" >&6; }
19352if test `eval echo '${'$as_ac_Header'}'` = yes; then
19353  cat >>confdefs.h <<_ACEOF
19354#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19355_ACEOF
19356
19357ac_header_dirent=$ac_hdr; break
19358fi
19359
19360done
19361# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19362if test $ac_header_dirent = dirent.h; then
19363  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19364echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19365if test "${ac_cv_search_opendir+set}" = set; then
19366  echo $ECHO_N "(cached) $ECHO_C" >&6
19367else
19368  ac_func_search_save_LIBS=$LIBS
19369cat >conftest.$ac_ext <<_ACEOF
19370/* confdefs.h.  */
19371_ACEOF
19372cat confdefs.h >>conftest.$ac_ext
19373cat >>conftest.$ac_ext <<_ACEOF
19374/* end confdefs.h.  */
19375
19376/* Override any GCC internal prototype to avoid an error.
19377   Use char because int might match the return type of a GCC
19378   builtin and then its argument prototype would still apply.  */
19379#ifdef __cplusplus
19380extern "C"
19381#endif
19382char opendir ();
19383int
19384main ()
19385{
19386return opendir ();
19387  ;
19388  return 0;
19389}
19390_ACEOF
19391for ac_lib in '' dir; do
19392  if test -z "$ac_lib"; then
19393    ac_res="none required"
19394  else
19395    ac_res=-l$ac_lib
19396    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19397  fi
19398  rm -f conftest.$ac_objext conftest$ac_exeext
19399if { (ac_try="$ac_link"
19400case "(($ac_try" in
19401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402  *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405  (eval "$ac_link") 2>conftest.er1
19406  ac_status=$?
19407  grep -v '^ *+' conftest.er1 >conftest.err
19408  rm -f conftest.er1
19409  cat conftest.err >&5
19410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411  (exit $ac_status); } && {
19412	 test -z "$ac_c_werror_flag" ||
19413	 test ! -s conftest.err
19414       } && test -s conftest$ac_exeext &&
19415       $as_test_x conftest$ac_exeext; then
19416  ac_cv_search_opendir=$ac_res
19417else
19418  echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421
19422fi
19423
19424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19425      conftest$ac_exeext
19426  if test "${ac_cv_search_opendir+set}" = set; then
19427  break
19428fi
19429done
19430if test "${ac_cv_search_opendir+set}" = set; then
19431  :
19432else
19433  ac_cv_search_opendir=no
19434fi
19435rm conftest.$ac_ext
19436LIBS=$ac_func_search_save_LIBS
19437fi
19438{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19439echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19440ac_res=$ac_cv_search_opendir
19441if test "$ac_res" != no; then
19442  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19443
19444fi
19445
19446else
19447  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19448echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19449if test "${ac_cv_search_opendir+set}" = set; then
19450  echo $ECHO_N "(cached) $ECHO_C" >&6
19451else
19452  ac_func_search_save_LIBS=$LIBS
19453cat >conftest.$ac_ext <<_ACEOF
19454/* confdefs.h.  */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
19458/* end confdefs.h.  */
19459
19460/* Override any GCC internal prototype to avoid an error.
19461   Use char because int might match the return type of a GCC
19462   builtin and then its argument prototype would still apply.  */
19463#ifdef __cplusplus
19464extern "C"
19465#endif
19466char opendir ();
19467int
19468main ()
19469{
19470return opendir ();
19471  ;
19472  return 0;
19473}
19474_ACEOF
19475for ac_lib in '' x; do
19476  if test -z "$ac_lib"; then
19477    ac_res="none required"
19478  else
19479    ac_res=-l$ac_lib
19480    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19481  fi
19482  rm -f conftest.$ac_objext conftest$ac_exeext
19483if { (ac_try="$ac_link"
19484case "(($ac_try" in
19485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486  *) ac_try_echo=$ac_try;;
19487esac
19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489  (eval "$ac_link") 2>conftest.er1
19490  ac_status=$?
19491  grep -v '^ *+' conftest.er1 >conftest.err
19492  rm -f conftest.er1
19493  cat conftest.err >&5
19494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495  (exit $ac_status); } && {
19496	 test -z "$ac_c_werror_flag" ||
19497	 test ! -s conftest.err
19498       } && test -s conftest$ac_exeext &&
19499       $as_test_x conftest$ac_exeext; then
19500  ac_cv_search_opendir=$ac_res
19501else
19502  echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505
19506fi
19507
19508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509      conftest$ac_exeext
19510  if test "${ac_cv_search_opendir+set}" = set; then
19511  break
19512fi
19513done
19514if test "${ac_cv_search_opendir+set}" = set; then
19515  :
19516else
19517  ac_cv_search_opendir=no
19518fi
19519rm conftest.$ac_ext
19520LIBS=$ac_func_search_save_LIBS
19521fi
19522{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19523echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19524ac_res=$ac_cv_search_opendir
19525if test "$ac_res" != no; then
19526  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19527
19528fi
19529
19530fi
19531
19532# Check whether --enable-ltdl-install was given.
19533if test "${enable_ltdl_install+set}" = set; then
19534  enableval=$enable_ltdl_install;
19535fi
19536
19537
19538if test x"${enable_ltdl_install-no}" != xno; then
19539  cat >>confdefs.h <<\_ACEOF
19540#define INSTALL_LTDL 1
19541_ACEOF
19542
19543fi
19544if test x"${enable_ltdl_convenience-no}" != xno; then
19545  cat >>confdefs.h <<\_ACEOF
19546#define CONVENIENCE_LTDL 1
19547_ACEOF
19548
19549fi
19550
19551
19552{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19553echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
19554if test "${libltdl_cv_shlibext+set}" = set; then
19555  echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557
19558module=yes
19559eval libltdl_cv_shlibext=$shrext
19560
19561fi
19562{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19563echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19564if test -n "$libltdl_cv_shlibext"; then
19565
19566cat >>confdefs.h <<_ACEOF
19567#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19568_ACEOF
19569
19570fi
19571
19572
19573{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19574echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
19575if test "${libltdl_cv_shlibpath_var+set}" = set; then
19576  echo $ECHO_N "(cached) $ECHO_C" >&6
19577else
19578  libltdl_cv_shlibpath_var="$shlibpath_var"
19579fi
19580{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19581echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19582if test -n "$libltdl_cv_shlibpath_var"; then
19583
19584cat >>confdefs.h <<_ACEOF
19585#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19586_ACEOF
19587
19588fi
19589
19590
19591{ echo "$as_me:$LINENO: checking for the default library search path" >&5
19592echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
19593if test "${libltdl_cv_sys_search_path+set}" = set; then
19594  echo $ECHO_N "(cached) $ECHO_C" >&6
19595else
19596  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19597fi
19598{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19599echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19600if test -n "$libltdl_cv_sys_search_path"; then
19601  sys_search_path=
19602  for dir in $libltdl_cv_sys_search_path; do
19603    if test -z "$sys_search_path"; then
19604      sys_search_path="$dir"
19605    else
19606      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19607    fi
19608  done
19609
19610cat >>confdefs.h <<_ACEOF
19611#define LTDL_SYSSEARCHPATH "$sys_search_path"
19612_ACEOF
19613
19614fi
19615
19616{ echo "$as_me:$LINENO: checking for objdir" >&5
19617echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
19618if test "${libltdl_cv_objdir+set}" = set; then
19619  echo $ECHO_N "(cached) $ECHO_C" >&6
19620else
19621  libltdl_cv_objdir="$objdir"
19622  if test -n "$objdir"; then
19623    :
19624  else
19625    rm -f .libs 2>/dev/null
19626    mkdir .libs 2>/dev/null
19627    if test -d .libs; then
19628      libltdl_cv_objdir=.libs
19629    else
19630      # MS-DOS does not allow filenames that begin with a dot.
19631      libltdl_cv_objdir=_libs
19632    fi
19633  rmdir .libs 2>/dev/null
19634  fi
19635
19636fi
19637{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19638echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19639
19640cat >>confdefs.h <<_ACEOF
19641#define LTDL_OBJDIR "$libltdl_cv_objdir/"
19642_ACEOF
19643
19644
19645
19646{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19647echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
19648if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19649  echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651  if test -n "$lt_cv_sys_global_symbol_pipe"; then
19652    libltdl_cv_preloaded_symbols=yes
19653  else
19654    libltdl_cv_preloaded_symbols=no
19655  fi
19656
19657fi
19658{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19659echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19660if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19661
19662cat >>confdefs.h <<\_ACEOF
19663#define HAVE_PRELOADED_SYMBOLS 1
19664_ACEOF
19665
19666fi
19667
19668LIBADD_DL=
19669
19670ac_ext=c
19671ac_cpp='$CPP $CPPFLAGS'
19672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675
19676
19677{ echo "$as_me:$LINENO: checking for shl_load" >&5
19678echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
19679if test "${ac_cv_func_shl_load+set}" = set; then
19680  echo $ECHO_N "(cached) $ECHO_C" >&6
19681else
19682  cat >conftest.$ac_ext <<_ACEOF
19683/* confdefs.h.  */
19684_ACEOF
19685cat confdefs.h >>conftest.$ac_ext
19686cat >>conftest.$ac_ext <<_ACEOF
19687/* end confdefs.h.  */
19688/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19689   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19690#define shl_load innocuous_shl_load
19691
19692/* System header to define __stub macros and hopefully few prototypes,
19693    which can conflict with char shl_load (); below.
19694    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19695    <limits.h> exists even on freestanding compilers.  */
19696
19697#ifdef __STDC__
19698# include <limits.h>
19699#else
19700# include <assert.h>
19701#endif
19702
19703#undef shl_load
19704
19705/* Override any GCC internal prototype to avoid an error.
19706   Use char because int might match the return type of a GCC
19707   builtin and then its argument prototype would still apply.  */
19708#ifdef __cplusplus
19709extern "C"
19710#endif
19711char shl_load ();
19712/* The GNU C library defines this for functions which it implements
19713    to always fail with ENOSYS.  Some functions are actually named
19714    something starting with __ and the normal name is an alias.  */
19715#if defined __stub_shl_load || defined __stub___shl_load
19716choke me
19717#endif
19718
19719int
19720main ()
19721{
19722return shl_load ();
19723  ;
19724  return 0;
19725}
19726_ACEOF
19727rm -f conftest.$ac_objext conftest$ac_exeext
19728if { (ac_try="$ac_link"
19729case "(($ac_try" in
19730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731  *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734  (eval "$ac_link") 2>conftest.er1
19735  ac_status=$?
19736  grep -v '^ *+' conftest.er1 >conftest.err
19737  rm -f conftest.er1
19738  cat conftest.err >&5
19739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740  (exit $ac_status); } && {
19741	 test -z "$ac_c_werror_flag" ||
19742	 test ! -s conftest.err
19743       } && test -s conftest$ac_exeext &&
19744       $as_test_x conftest$ac_exeext; then
19745  ac_cv_func_shl_load=yes
19746else
19747  echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750	ac_cv_func_shl_load=no
19751fi
19752
19753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19754      conftest$ac_exeext conftest.$ac_ext
19755fi
19756{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19757echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19758if test $ac_cv_func_shl_load = yes; then
19759
19760cat >>confdefs.h <<\_ACEOF
19761#define HAVE_SHL_LOAD 1
19762_ACEOF
19763
19764else
19765  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19766echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
19767if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19768  echo $ECHO_N "(cached) $ECHO_C" >&6
19769else
19770  ac_check_lib_save_LIBS=$LIBS
19771LIBS="-ldld  $LIBS"
19772cat >conftest.$ac_ext <<_ACEOF
19773/* confdefs.h.  */
19774_ACEOF
19775cat confdefs.h >>conftest.$ac_ext
19776cat >>conftest.$ac_ext <<_ACEOF
19777/* end confdefs.h.  */
19778
19779/* Override any GCC internal prototype to avoid an error.
19780   Use char because int might match the return type of a GCC
19781   builtin and then its argument prototype would still apply.  */
19782#ifdef __cplusplus
19783extern "C"
19784#endif
19785char shl_load ();
19786int
19787main ()
19788{
19789return shl_load ();
19790  ;
19791  return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext conftest$ac_exeext
19795if { (ac_try="$ac_link"
19796case "(($ac_try" in
19797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798  *) ac_try_echo=$ac_try;;
19799esac
19800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801  (eval "$ac_link") 2>conftest.er1
19802  ac_status=$?
19803  grep -v '^ *+' conftest.er1 >conftest.err
19804  rm -f conftest.er1
19805  cat conftest.err >&5
19806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807  (exit $ac_status); } && {
19808	 test -z "$ac_c_werror_flag" ||
19809	 test ! -s conftest.err
19810       } && test -s conftest$ac_exeext &&
19811       $as_test_x conftest$ac_exeext; then
19812  ac_cv_lib_dld_shl_load=yes
19813else
19814  echo "$as_me: failed program was:" >&5
19815sed 's/^/| /' conftest.$ac_ext >&5
19816
19817	ac_cv_lib_dld_shl_load=no
19818fi
19819
19820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821      conftest$ac_exeext conftest.$ac_ext
19822LIBS=$ac_check_lib_save_LIBS
19823fi
19824{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19825echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19826if test $ac_cv_lib_dld_shl_load = yes; then
19827
19828cat >>confdefs.h <<\_ACEOF
19829#define HAVE_SHL_LOAD 1
19830_ACEOF
19831
19832	LIBADD_DL="$LIBADD_DL -ldld"
19833else
19834  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19835echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19836if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19837  echo $ECHO_N "(cached) $ECHO_C" >&6
19838else
19839  ac_check_lib_save_LIBS=$LIBS
19840LIBS="-ldl  $LIBS"
19841cat >conftest.$ac_ext <<_ACEOF
19842/* confdefs.h.  */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h.  */
19847
19848/* Override any GCC internal prototype to avoid an error.
19849   Use char because int might match the return type of a GCC
19850   builtin and then its argument prototype would still apply.  */
19851#ifdef __cplusplus
19852extern "C"
19853#endif
19854char dlopen ();
19855int
19856main ()
19857{
19858return dlopen ();
19859  ;
19860  return 0;
19861}
19862_ACEOF
19863rm -f conftest.$ac_objext conftest$ac_exeext
19864if { (ac_try="$ac_link"
19865case "(($ac_try" in
19866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867  *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870  (eval "$ac_link") 2>conftest.er1
19871  ac_status=$?
19872  grep -v '^ *+' conftest.er1 >conftest.err
19873  rm -f conftest.er1
19874  cat conftest.err >&5
19875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876  (exit $ac_status); } && {
19877	 test -z "$ac_c_werror_flag" ||
19878	 test ! -s conftest.err
19879       } && test -s conftest$ac_exeext &&
19880       $as_test_x conftest$ac_exeext; then
19881  ac_cv_lib_dl_dlopen=yes
19882else
19883  echo "$as_me: failed program was:" >&5
19884sed 's/^/| /' conftest.$ac_ext >&5
19885
19886	ac_cv_lib_dl_dlopen=no
19887fi
19888
19889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19890      conftest$ac_exeext conftest.$ac_ext
19891LIBS=$ac_check_lib_save_LIBS
19892fi
19893{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19894echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19895if test $ac_cv_lib_dl_dlopen = yes; then
19896
19897cat >>confdefs.h <<\_ACEOF
19898#define HAVE_LIBDL 1
19899_ACEOF
19900
19901	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19902else
19903  cat >conftest.$ac_ext <<_ACEOF
19904/* confdefs.h.  */
19905_ACEOF
19906cat confdefs.h >>conftest.$ac_ext
19907cat >>conftest.$ac_ext <<_ACEOF
19908/* end confdefs.h.  */
19909#if HAVE_DLFCN_H
19910#  include <dlfcn.h>
19911#endif
19912
19913int
19914main ()
19915{
19916dlopen(0, 0);
19917  ;
19918  return 0;
19919}
19920_ACEOF
19921rm -f conftest.$ac_objext conftest$ac_exeext
19922if { (ac_try="$ac_link"
19923case "(($ac_try" in
19924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925  *) ac_try_echo=$ac_try;;
19926esac
19927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928  (eval "$ac_link") 2>conftest.er1
19929  ac_status=$?
19930  grep -v '^ *+' conftest.er1 >conftest.err
19931  rm -f conftest.er1
19932  cat conftest.err >&5
19933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934  (exit $ac_status); } && {
19935	 test -z "$ac_c_werror_flag" ||
19936	 test ! -s conftest.err
19937       } && test -s conftest$ac_exeext &&
19938       $as_test_x conftest$ac_exeext; then
19939
19940cat >>confdefs.h <<\_ACEOF
19941#define HAVE_LIBDL 1
19942_ACEOF
19943 libltdl_cv_func_dlopen="yes"
19944else
19945  echo "$as_me: failed program was:" >&5
19946sed 's/^/| /' conftest.$ac_ext >&5
19947
19948	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19949echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19950if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19951  echo $ECHO_N "(cached) $ECHO_C" >&6
19952else
19953  ac_check_lib_save_LIBS=$LIBS
19954LIBS="-lsvld  $LIBS"
19955cat >conftest.$ac_ext <<_ACEOF
19956/* confdefs.h.  */
19957_ACEOF
19958cat confdefs.h >>conftest.$ac_ext
19959cat >>conftest.$ac_ext <<_ACEOF
19960/* end confdefs.h.  */
19961
19962/* Override any GCC internal prototype to avoid an error.
19963   Use char because int might match the return type of a GCC
19964   builtin and then its argument prototype would still apply.  */
19965#ifdef __cplusplus
19966extern "C"
19967#endif
19968char dlopen ();
19969int
19970main ()
19971{
19972return dlopen ();
19973  ;
19974  return 0;
19975}
19976_ACEOF
19977rm -f conftest.$ac_objext conftest$ac_exeext
19978if { (ac_try="$ac_link"
19979case "(($ac_try" in
19980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981  *) ac_try_echo=$ac_try;;
19982esac
19983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984  (eval "$ac_link") 2>conftest.er1
19985  ac_status=$?
19986  grep -v '^ *+' conftest.er1 >conftest.err
19987  rm -f conftest.er1
19988  cat conftest.err >&5
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); } && {
19991	 test -z "$ac_c_werror_flag" ||
19992	 test ! -s conftest.err
19993       } && test -s conftest$ac_exeext &&
19994       $as_test_x conftest$ac_exeext; then
19995  ac_cv_lib_svld_dlopen=yes
19996else
19997  echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000	ac_cv_lib_svld_dlopen=no
20001fi
20002
20003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004      conftest$ac_exeext conftest.$ac_ext
20005LIBS=$ac_check_lib_save_LIBS
20006fi
20007{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20008echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20009if test $ac_cv_lib_svld_dlopen = yes; then
20010
20011cat >>confdefs.h <<\_ACEOF
20012#define HAVE_LIBDL 1
20013_ACEOF
20014
20015	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20016else
20017  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20018echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20019if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20020  echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022  ac_check_lib_save_LIBS=$LIBS
20023LIBS="-ldld  $LIBS"
20024cat >conftest.$ac_ext <<_ACEOF
20025/* confdefs.h.  */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h.  */
20030
20031/* Override any GCC internal prototype to avoid an error.
20032   Use char because int might match the return type of a GCC
20033   builtin and then its argument prototype would still apply.  */
20034#ifdef __cplusplus
20035extern "C"
20036#endif
20037char dld_link ();
20038int
20039main ()
20040{
20041return dld_link ();
20042  ;
20043  return 0;
20044}
20045_ACEOF
20046rm -f conftest.$ac_objext conftest$ac_exeext
20047if { (ac_try="$ac_link"
20048case "(($ac_try" in
20049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050  *) ac_try_echo=$ac_try;;
20051esac
20052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053  (eval "$ac_link") 2>conftest.er1
20054  ac_status=$?
20055  grep -v '^ *+' conftest.er1 >conftest.err
20056  rm -f conftest.er1
20057  cat conftest.err >&5
20058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059  (exit $ac_status); } && {
20060	 test -z "$ac_c_werror_flag" ||
20061	 test ! -s conftest.err
20062       } && test -s conftest$ac_exeext &&
20063       $as_test_x conftest$ac_exeext; then
20064  ac_cv_lib_dld_dld_link=yes
20065else
20066  echo "$as_me: failed program was:" >&5
20067sed 's/^/| /' conftest.$ac_ext >&5
20068
20069	ac_cv_lib_dld_dld_link=no
20070fi
20071
20072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20073      conftest$ac_exeext conftest.$ac_ext
20074LIBS=$ac_check_lib_save_LIBS
20075fi
20076{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20077echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20078if test $ac_cv_lib_dld_dld_link = yes; then
20079
20080cat >>confdefs.h <<\_ACEOF
20081#define HAVE_DLD 1
20082_ACEOF
20083
20084	 	LIBADD_DL="$LIBADD_DL -ldld"
20085else
20086  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20087echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20088if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20089  echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091  cat >conftest.$ac_ext <<_ACEOF
20092/* confdefs.h.  */
20093_ACEOF
20094cat confdefs.h >>conftest.$ac_ext
20095cat >>conftest.$ac_ext <<_ACEOF
20096/* end confdefs.h.  */
20097/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20098   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20099#define _dyld_func_lookup innocuous__dyld_func_lookup
20100
20101/* System header to define __stub macros and hopefully few prototypes,
20102    which can conflict with char _dyld_func_lookup (); below.
20103    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104    <limits.h> exists even on freestanding compilers.  */
20105
20106#ifdef __STDC__
20107# include <limits.h>
20108#else
20109# include <assert.h>
20110#endif
20111
20112#undef _dyld_func_lookup
20113
20114/* Override any GCC internal prototype to avoid an error.
20115   Use char because int might match the return type of a GCC
20116   builtin and then its argument prototype would still apply.  */
20117#ifdef __cplusplus
20118extern "C"
20119#endif
20120char _dyld_func_lookup ();
20121/* The GNU C library defines this for functions which it implements
20122    to always fail with ENOSYS.  Some functions are actually named
20123    something starting with __ and the normal name is an alias.  */
20124#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20125choke me
20126#endif
20127
20128int
20129main ()
20130{
20131return _dyld_func_lookup ();
20132  ;
20133  return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext conftest$ac_exeext
20137if { (ac_try="$ac_link"
20138case "(($ac_try" in
20139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140  *) ac_try_echo=$ac_try;;
20141esac
20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143  (eval "$ac_link") 2>conftest.er1
20144  ac_status=$?
20145  grep -v '^ *+' conftest.er1 >conftest.err
20146  rm -f conftest.er1
20147  cat conftest.err >&5
20148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149  (exit $ac_status); } && {
20150	 test -z "$ac_c_werror_flag" ||
20151	 test ! -s conftest.err
20152       } && test -s conftest$ac_exeext &&
20153       $as_test_x conftest$ac_exeext; then
20154  ac_cv_func__dyld_func_lookup=yes
20155else
20156  echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159	ac_cv_func__dyld_func_lookup=no
20160fi
20161
20162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163      conftest$ac_exeext conftest.$ac_ext
20164fi
20165{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20166echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20167if test $ac_cv_func__dyld_func_lookup = yes; then
20168
20169cat >>confdefs.h <<\_ACEOF
20170#define HAVE_DYLD 1
20171_ACEOF
20172
20173fi
20174
20175
20176fi
20177
20178
20179fi
20180
20181
20182fi
20183
20184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20185      conftest$ac_exeext conftest.$ac_ext
20186
20187fi
20188
20189
20190fi
20191
20192
20193fi
20194
20195
20196if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20197then
20198  lt_save_LIBS="$LIBS"
20199  LIBS="$LIBS $LIBADD_DL"
20200
20201for ac_func in dlerror
20202do
20203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20207  echo $ECHO_N "(cached) $ECHO_C" >&6
20208else
20209  cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h.  */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h.  */
20215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20216   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20217#define $ac_func innocuous_$ac_func
20218
20219/* System header to define __stub macros and hopefully few prototypes,
20220    which can conflict with char $ac_func (); below.
20221    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222    <limits.h> exists even on freestanding compilers.  */
20223
20224#ifdef __STDC__
20225# include <limits.h>
20226#else
20227# include <assert.h>
20228#endif
20229
20230#undef $ac_func
20231
20232/* Override any GCC internal prototype to avoid an error.
20233   Use char because int might match the return type of a GCC
20234   builtin and then its argument prototype would still apply.  */
20235#ifdef __cplusplus
20236extern "C"
20237#endif
20238char $ac_func ();
20239/* The GNU C library defines this for functions which it implements
20240    to always fail with ENOSYS.  Some functions are actually named
20241    something starting with __ and the normal name is an alias.  */
20242#if defined __stub_$ac_func || defined __stub___$ac_func
20243choke me
20244#endif
20245
20246int
20247main ()
20248{
20249return $ac_func ();
20250  ;
20251  return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext conftest$ac_exeext
20255if { (ac_try="$ac_link"
20256case "(($ac_try" in
20257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258  *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261  (eval "$ac_link") 2>conftest.er1
20262  ac_status=$?
20263  grep -v '^ *+' conftest.er1 >conftest.err
20264  rm -f conftest.er1
20265  cat conftest.err >&5
20266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267  (exit $ac_status); } && {
20268	 test -z "$ac_c_werror_flag" ||
20269	 test ! -s conftest.err
20270       } && test -s conftest$ac_exeext &&
20271       $as_test_x conftest$ac_exeext; then
20272  eval "$as_ac_var=yes"
20273else
20274  echo "$as_me: failed program was:" >&5
20275sed 's/^/| /' conftest.$ac_ext >&5
20276
20277	eval "$as_ac_var=no"
20278fi
20279
20280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281      conftest$ac_exeext conftest.$ac_ext
20282fi
20283ac_res=`eval echo '${'$as_ac_var'}'`
20284	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20285echo "${ECHO_T}$ac_res" >&6; }
20286if test `eval echo '${'$as_ac_var'}'` = yes; then
20287  cat >>confdefs.h <<_ACEOF
20288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20289_ACEOF
20290
20291fi
20292done
20293
20294  LIBS="$lt_save_LIBS"
20295fi
20296ac_ext=c
20297ac_cpp='$CPP $CPPFLAGS'
20298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301
20302
20303
20304{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20305echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20306if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20307  echo $ECHO_N "(cached) $ECHO_C" >&6
20308else
20309  ac_cv_sys_symbol_underscore=no
20310  cat > conftest.$ac_ext <<EOF
20311void nm_test_func(){}
20312int main(){nm_test_func;return 0;}
20313EOF
20314  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315  (eval $ac_compile) 2>&5
20316  ac_status=$?
20317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318  (exit $ac_status); }; then
20319    # Now try to grab the symbols.
20320    ac_nlist=conftest.nm
20321    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20322  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20323  ac_status=$?
20324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325  (exit $ac_status); } && test -s "$ac_nlist"; then
20326      # See whether the symbols have a leading underscore.
20327      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20328        ac_cv_sys_symbol_underscore=yes
20329      else
20330        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20331	  :
20332        else
20333	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20334        fi
20335      fi
20336    else
20337      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20338    fi
20339  else
20340    echo "configure: failed program was:" >&5
20341    cat conftest.c >&5
20342  fi
20343  rm -rf conftest*
20344
20345fi
20346{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20347echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20348
20349
20350if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20351  if test x"$libltdl_cv_func_dlopen" = xyes ||
20352     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20353	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20354echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20355if test "${libltdl_cv_need_uscore+set}" = set; then
20356  echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358  libltdl_cv_need_uscore=unknown
20359          save_LIBS="$LIBS"
20360          LIBS="$LIBS $LIBADD_DL"
20361	  if test "$cross_compiling" = yes; then :
20362  libltdl_cv_need_uscore=cross
20363else
20364  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20365  lt_status=$lt_dlunknown
20366  cat > conftest.$ac_ext <<EOF
20367#line 20367 "configure"
20368#include "confdefs.h"
20369
20370#if HAVE_DLFCN_H
20371#include <dlfcn.h>
20372#endif
20373
20374#include <stdio.h>
20375
20376#ifdef RTLD_GLOBAL
20377#  define LT_DLGLOBAL		RTLD_GLOBAL
20378#else
20379#  ifdef DL_GLOBAL
20380#    define LT_DLGLOBAL		DL_GLOBAL
20381#  else
20382#    define LT_DLGLOBAL		0
20383#  endif
20384#endif
20385
20386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20387   find out it does not work in some platform. */
20388#ifndef LT_DLLAZY_OR_NOW
20389#  ifdef RTLD_LAZY
20390#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20391#  else
20392#    ifdef DL_LAZY
20393#      define LT_DLLAZY_OR_NOW		DL_LAZY
20394#    else
20395#      ifdef RTLD_NOW
20396#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20397#      else
20398#        ifdef DL_NOW
20399#          define LT_DLLAZY_OR_NOW	DL_NOW
20400#        else
20401#          define LT_DLLAZY_OR_NOW	0
20402#        endif
20403#      endif
20404#    endif
20405#  endif
20406#endif
20407
20408#ifdef __cplusplus
20409extern "C" void exit (int);
20410#endif
20411
20412void fnord() { int i=42;}
20413int main ()
20414{
20415  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20416  int status = $lt_dlunknown;
20417
20418  if (self)
20419    {
20420      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20421      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20422      /* dlclose (self); */
20423    }
20424
20425    exit (status);
20426}
20427EOF
20428  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20429  (eval $ac_link) 2>&5
20430  ac_status=$?
20431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20433    (./conftest; exit; ) 2>/dev/null
20434    lt_status=$?
20435    case x$lt_status in
20436      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20437      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20438      x$lt_unknown|x*)  ;;
20439    esac
20440  else :
20441    # compilation failed
20442
20443  fi
20444fi
20445rm -fr conftest*
20446
20447	  LIBS="$save_LIBS"
20448
20449fi
20450{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20451echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20452  fi
20453fi
20454
20455if test x"$libltdl_cv_need_uscore" = xyes; then
20456
20457cat >>confdefs.h <<\_ACEOF
20458#define NEED_USCORE 1
20459_ACEOF
20460
20461fi
20462
20463
20464{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20465echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20466if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20467  echo $ECHO_N "(cached) $ECHO_C" >&6
20468else
20469  # PORTME does your system automatically load deplibs for dlopen?
20470  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20471  # For now, we just catch OSes we know something about -- in the
20472  # future, we'll try test this programmatically.
20473  libltdl_cv_sys_dlopen_deplibs=unknown
20474  case "$host_os" in
20475  aix3*|aix4.1.*|aix4.2.*)
20476    # Unknown whether this is true for these versions of AIX, but
20477    # we want this `case' here to explicitly catch those versions.
20478    libltdl_cv_sys_dlopen_deplibs=unknown
20479    ;;
20480  aix[45]*)
20481    libltdl_cv_sys_dlopen_deplibs=yes
20482    ;;
20483  darwin*)
20484    # Assuming the user has installed a libdl from somewhere, this is true
20485    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20486    libltdl_cv_sys_dlopen_deplibs=yes
20487    ;;
20488  kfreebsd*-gnu)
20489    libltdl_cv_sys_dlopen_deplibs=yes
20490    ;;
20491  gnu*)
20492    libltdl_cv_sys_dlopen_deplibs=yes
20493    ;;
20494  hpux10*|hpux11*)
20495    libltdl_cv_sys_dlopen_deplibs=yes
20496    ;;
20497  irix[12345]*|irix6.[01]*)
20498    # Catch all versions of IRIX before 6.2, and indicate that we don't
20499    # know how it worked for any of those versions.
20500    libltdl_cv_sys_dlopen_deplibs=unknown
20501    ;;
20502  irix*)
20503    # The case above catches anything before 6.2, and it's known that
20504    # at 6.2 and later dlopen does load deplibs.
20505    libltdl_cv_sys_dlopen_deplibs=yes
20506    ;;
20507  linux*)
20508    libltdl_cv_sys_dlopen_deplibs=yes
20509    ;;
20510  netbsd*)
20511    libltdl_cv_sys_dlopen_deplibs=yes
20512    ;;
20513  openbsd*)
20514    libltdl_cv_sys_dlopen_deplibs=yes
20515    ;;
20516  osf[1234]*)
20517    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20518    # it did *not* use an RPATH in a shared library to find objects the
20519    # library depends on, so we explictly say `no'.
20520    libltdl_cv_sys_dlopen_deplibs=no
20521    ;;
20522  osf5.0|osf5.0a|osf5.1)
20523    # dlopen *does* load deplibs and with the right loader patch applied
20524    # it even uses RPATH in a shared library to search for shared objects
20525    # that the library depends on, but there's no easy way to know if that
20526    # patch is installed.  Since this is the case, all we can really
20527    # say is unknown -- it depends on the patch being installed.  If
20528    # it is, this changes to `yes'.  Without it, it would be `no'.
20529    libltdl_cv_sys_dlopen_deplibs=unknown
20530    ;;
20531  osf*)
20532    # the two cases above should catch all versions of osf <= 5.1.  Read
20533    # the comments above for what we know about them.
20534    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20535    # is used to find them so we can finally say `yes'.
20536    libltdl_cv_sys_dlopen_deplibs=yes
20537    ;;
20538  solaris*)
20539    libltdl_cv_sys_dlopen_deplibs=yes
20540    ;;
20541  esac
20542
20543fi
20544{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20545echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20546if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20547
20548cat >>confdefs.h <<\_ACEOF
20549#define LTDL_DLOPEN_DEPLIBS 1
20550_ACEOF
20551
20552fi
20553
20554
20555for ac_header in argz.h
20556do
20557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20559  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20562  echo $ECHO_N "(cached) $ECHO_C" >&6
20563fi
20564ac_res=`eval echo '${'$as_ac_Header'}'`
20565	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20566echo "${ECHO_T}$ac_res" >&6; }
20567else
20568  # Is the header compilable?
20569{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20571cat >conftest.$ac_ext <<_ACEOF
20572/* confdefs.h.  */
20573_ACEOF
20574cat confdefs.h >>conftest.$ac_ext
20575cat >>conftest.$ac_ext <<_ACEOF
20576/* end confdefs.h.  */
20577$ac_includes_default
20578#include <$ac_header>
20579_ACEOF
20580rm -f conftest.$ac_objext
20581if { (ac_try="$ac_compile"
20582case "(($ac_try" in
20583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584  *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587  (eval "$ac_compile") 2>conftest.er1
20588  ac_status=$?
20589  grep -v '^ *+' conftest.er1 >conftest.err
20590  rm -f conftest.er1
20591  cat conftest.err >&5
20592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593  (exit $ac_status); } && {
20594	 test -z "$ac_c_werror_flag" ||
20595	 test ! -s conftest.err
20596       } && test -s conftest.$ac_objext; then
20597  ac_header_compiler=yes
20598else
20599  echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602	ac_header_compiler=no
20603fi
20604
20605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20607echo "${ECHO_T}$ac_header_compiler" >&6; }
20608
20609# Is the header present?
20610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20612cat >conftest.$ac_ext <<_ACEOF
20613/* confdefs.h.  */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h.  */
20618#include <$ac_header>
20619_ACEOF
20620if { (ac_try="$ac_cpp conftest.$ac_ext"
20621case "(($ac_try" in
20622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623  *) ac_try_echo=$ac_try;;
20624esac
20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20627  ac_status=$?
20628  grep -v '^ *+' conftest.er1 >conftest.err
20629  rm -f conftest.er1
20630  cat conftest.err >&5
20631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632  (exit $ac_status); } >/dev/null && {
20633	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20634	 test ! -s conftest.err
20635       }; then
20636  ac_header_preproc=yes
20637else
20638  echo "$as_me: failed program was:" >&5
20639sed 's/^/| /' conftest.$ac_ext >&5
20640
20641  ac_header_preproc=no
20642fi
20643
20644rm -f conftest.err conftest.$ac_ext
20645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20646echo "${ECHO_T}$ac_header_preproc" >&6; }
20647
20648# So?  What about this header?
20649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20650  yes:no: )
20651    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20655    ac_header_preproc=yes
20656    ;;
20657  no:yes:* )
20658    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20660    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20661echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20662    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20664    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20665echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20666    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20668    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20670
20671    ;;
20672esac
20673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20676  echo $ECHO_N "(cached) $ECHO_C" >&6
20677else
20678  eval "$as_ac_Header=\$ac_header_preproc"
20679fi
20680ac_res=`eval echo '${'$as_ac_Header'}'`
20681	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20682echo "${ECHO_T}$ac_res" >&6; }
20683
20684fi
20685if test `eval echo '${'$as_ac_Header'}'` = yes; then
20686  cat >>confdefs.h <<_ACEOF
20687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20688_ACEOF
20689
20690fi
20691
20692done
20693
20694
20695{ echo "$as_me:$LINENO: checking for error_t" >&5
20696echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
20697if test "${ac_cv_type_error_t+set}" = set; then
20698  echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700  cat >conftest.$ac_ext <<_ACEOF
20701/* confdefs.h.  */
20702_ACEOF
20703cat confdefs.h >>conftest.$ac_ext
20704cat >>conftest.$ac_ext <<_ACEOF
20705/* end confdefs.h.  */
20706#if HAVE_ARGZ_H
20707#  include <argz.h>
20708#endif
20709
20710typedef error_t ac__type_new_;
20711int
20712main ()
20713{
20714if ((ac__type_new_ *) 0)
20715  return 0;
20716if (sizeof (ac__type_new_))
20717  return 0;
20718  ;
20719  return 0;
20720}
20721_ACEOF
20722rm -f conftest.$ac_objext
20723if { (ac_try="$ac_compile"
20724case "(($ac_try" in
20725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726  *) ac_try_echo=$ac_try;;
20727esac
20728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729  (eval "$ac_compile") 2>conftest.er1
20730  ac_status=$?
20731  grep -v '^ *+' conftest.er1 >conftest.err
20732  rm -f conftest.er1
20733  cat conftest.err >&5
20734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735  (exit $ac_status); } && {
20736	 test -z "$ac_c_werror_flag" ||
20737	 test ! -s conftest.err
20738       } && test -s conftest.$ac_objext; then
20739  ac_cv_type_error_t=yes
20740else
20741  echo "$as_me: failed program was:" >&5
20742sed 's/^/| /' conftest.$ac_ext >&5
20743
20744	ac_cv_type_error_t=no
20745fi
20746
20747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748fi
20749{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20750echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
20751if test $ac_cv_type_error_t = yes; then
20752
20753cat >>confdefs.h <<_ACEOF
20754#define HAVE_ERROR_T 1
20755_ACEOF
20756
20757
20758else
20759
20760cat >>confdefs.h <<\_ACEOF
20761#define error_t int
20762_ACEOF
20763
20764fi
20765
20766
20767
20768
20769
20770
20771
20772for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20773do
20774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20775{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20778  echo $ECHO_N "(cached) $ECHO_C" >&6
20779else
20780  cat >conftest.$ac_ext <<_ACEOF
20781/* confdefs.h.  */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h.  */
20786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20788#define $ac_func innocuous_$ac_func
20789
20790/* System header to define __stub macros and hopefully few prototypes,
20791    which can conflict with char $ac_func (); below.
20792    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20793    <limits.h> exists even on freestanding compilers.  */
20794
20795#ifdef __STDC__
20796# include <limits.h>
20797#else
20798# include <assert.h>
20799#endif
20800
20801#undef $ac_func
20802
20803/* Override any GCC internal prototype to avoid an error.
20804   Use char because int might match the return type of a GCC
20805   builtin and then its argument prototype would still apply.  */
20806#ifdef __cplusplus
20807extern "C"
20808#endif
20809char $ac_func ();
20810/* The GNU C library defines this for functions which it implements
20811    to always fail with ENOSYS.  Some functions are actually named
20812    something starting with __ and the normal name is an alias.  */
20813#if defined __stub_$ac_func || defined __stub___$ac_func
20814choke me
20815#endif
20816
20817int
20818main ()
20819{
20820return $ac_func ();
20821  ;
20822  return 0;
20823}
20824_ACEOF
20825rm -f conftest.$ac_objext conftest$ac_exeext
20826if { (ac_try="$ac_link"
20827case "(($ac_try" in
20828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829  *) ac_try_echo=$ac_try;;
20830esac
20831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832  (eval "$ac_link") 2>conftest.er1
20833  ac_status=$?
20834  grep -v '^ *+' conftest.er1 >conftest.err
20835  rm -f conftest.er1
20836  cat conftest.err >&5
20837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838  (exit $ac_status); } && {
20839	 test -z "$ac_c_werror_flag" ||
20840	 test ! -s conftest.err
20841       } && test -s conftest$ac_exeext &&
20842       $as_test_x conftest$ac_exeext; then
20843  eval "$as_ac_var=yes"
20844else
20845  echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848	eval "$as_ac_var=no"
20849fi
20850
20851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20852      conftest$ac_exeext conftest.$ac_ext
20853fi
20854ac_res=`eval echo '${'$as_ac_var'}'`
20855	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20856echo "${ECHO_T}$ac_res" >&6; }
20857if test `eval echo '${'$as_ac_var'}'` = yes; then
20858  cat >>confdefs.h <<_ACEOF
20859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20860_ACEOF
20861
20862fi
20863done
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20893		  stdio.h unistd.h
20894do
20895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20900  echo $ECHO_N "(cached) $ECHO_C" >&6
20901fi
20902ac_res=`eval echo '${'$as_ac_Header'}'`
20903	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20904echo "${ECHO_T}$ac_res" >&6; }
20905else
20906  # Is the header compilable?
20907{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20909cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h.  */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h.  */
20915$ac_includes_default
20916#include <$ac_header>
20917_ACEOF
20918rm -f conftest.$ac_objext
20919if { (ac_try="$ac_compile"
20920case "(($ac_try" in
20921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922  *) ac_try_echo=$ac_try;;
20923esac
20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925  (eval "$ac_compile") 2>conftest.er1
20926  ac_status=$?
20927  grep -v '^ *+' conftest.er1 >conftest.err
20928  rm -f conftest.er1
20929  cat conftest.err >&5
20930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931  (exit $ac_status); } && {
20932	 test -z "$ac_c_werror_flag" ||
20933	 test ! -s conftest.err
20934       } && test -s conftest.$ac_objext; then
20935  ac_header_compiler=yes
20936else
20937  echo "$as_me: failed program was:" >&5
20938sed 's/^/| /' conftest.$ac_ext >&5
20939
20940	ac_header_compiler=no
20941fi
20942
20943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20945echo "${ECHO_T}$ac_header_compiler" >&6; }
20946
20947# Is the header present?
20948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20950cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h.  */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h.  */
20956#include <$ac_header>
20957_ACEOF
20958if { (ac_try="$ac_cpp conftest.$ac_ext"
20959case "(($ac_try" in
20960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961  *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20965  ac_status=$?
20966  grep -v '^ *+' conftest.er1 >conftest.err
20967  rm -f conftest.er1
20968  cat conftest.err >&5
20969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970  (exit $ac_status); } >/dev/null && {
20971	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20972	 test ! -s conftest.err
20973       }; then
20974  ac_header_preproc=yes
20975else
20976  echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
20979  ac_header_preproc=no
20980fi
20981
20982rm -f conftest.err conftest.$ac_ext
20983{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20984echo "${ECHO_T}$ac_header_preproc" >&6; }
20985
20986# So?  What about this header?
20987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20988  yes:no: )
20989    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20991    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20993    ac_header_preproc=yes
20994    ;;
20995  no:yes:* )
20996    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20998    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20999echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21000    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21002    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21003echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21006    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21008
21009    ;;
21010esac
21011{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21014  echo $ECHO_N "(cached) $ECHO_C" >&6
21015else
21016  eval "$as_ac_Header=\$ac_header_preproc"
21017fi
21018ac_res=`eval echo '${'$as_ac_Header'}'`
21019	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21020echo "${ECHO_T}$ac_res" >&6; }
21021
21022fi
21023if test `eval echo '${'$as_ac_Header'}'` = yes; then
21024  cat >>confdefs.h <<_ACEOF
21025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21026_ACEOF
21027
21028fi
21029
21030done
21031
21032
21033
21034
21035
21036for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21037do
21038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21043  echo $ECHO_N "(cached) $ECHO_C" >&6
21044fi
21045ac_res=`eval echo '${'$as_ac_Header'}'`
21046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21047echo "${ECHO_T}$ac_res" >&6; }
21048else
21049  # Is the header compilable?
21050{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21052cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h.  */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
21057/* end confdefs.h.  */
21058$ac_includes_default
21059#include <$ac_header>
21060_ACEOF
21061rm -f conftest.$ac_objext
21062if { (ac_try="$ac_compile"
21063case "(($ac_try" in
21064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065  *) ac_try_echo=$ac_try;;
21066esac
21067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068  (eval "$ac_compile") 2>conftest.er1
21069  ac_status=$?
21070  grep -v '^ *+' conftest.er1 >conftest.err
21071  rm -f conftest.er1
21072  cat conftest.err >&5
21073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074  (exit $ac_status); } && {
21075	 test -z "$ac_c_werror_flag" ||
21076	 test ! -s conftest.err
21077       } && test -s conftest.$ac_objext; then
21078  ac_header_compiler=yes
21079else
21080  echo "$as_me: failed program was:" >&5
21081sed 's/^/| /' conftest.$ac_ext >&5
21082
21083	ac_header_compiler=no
21084fi
21085
21086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21088echo "${ECHO_T}$ac_header_compiler" >&6; }
21089
21090# Is the header present?
21091{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21093cat >conftest.$ac_ext <<_ACEOF
21094/* confdefs.h.  */
21095_ACEOF
21096cat confdefs.h >>conftest.$ac_ext
21097cat >>conftest.$ac_ext <<_ACEOF
21098/* end confdefs.h.  */
21099#include <$ac_header>
21100_ACEOF
21101if { (ac_try="$ac_cpp conftest.$ac_ext"
21102case "(($ac_try" in
21103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104  *) ac_try_echo=$ac_try;;
21105esac
21106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21108  ac_status=$?
21109  grep -v '^ *+' conftest.er1 >conftest.err
21110  rm -f conftest.er1
21111  cat conftest.err >&5
21112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113  (exit $ac_status); } >/dev/null && {
21114	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21115	 test ! -s conftest.err
21116       }; then
21117  ac_header_preproc=yes
21118else
21119  echo "$as_me: failed program was:" >&5
21120sed 's/^/| /' conftest.$ac_ext >&5
21121
21122  ac_header_preproc=no
21123fi
21124
21125rm -f conftest.err conftest.$ac_ext
21126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21127echo "${ECHO_T}$ac_header_preproc" >&6; }
21128
21129# So?  What about this header?
21130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131  yes:no: )
21132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21136    ac_header_preproc=yes
21137    ;;
21138  no:yes:* )
21139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21151
21152    ;;
21153esac
21154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157  echo $ECHO_N "(cached) $ECHO_C" >&6
21158else
21159  eval "$as_ac_Header=\$ac_header_preproc"
21160fi
21161ac_res=`eval echo '${'$as_ac_Header'}'`
21162	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21163echo "${ECHO_T}$ac_res" >&6; }
21164
21165fi
21166if test `eval echo '${'$as_ac_Header'}'` = yes; then
21167  cat >>confdefs.h <<_ACEOF
21168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21169_ACEOF
21170
21171fi
21172
21173done
21174
21175
21176
21177for ac_header in string.h strings.h
21178do
21179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21181  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21184  echo $ECHO_N "(cached) $ECHO_C" >&6
21185fi
21186ac_res=`eval echo '${'$as_ac_Header'}'`
21187	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21188echo "${ECHO_T}$ac_res" >&6; }
21189else
21190  # Is the header compilable?
21191{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21193cat >conftest.$ac_ext <<_ACEOF
21194/* confdefs.h.  */
21195_ACEOF
21196cat confdefs.h >>conftest.$ac_ext
21197cat >>conftest.$ac_ext <<_ACEOF
21198/* end confdefs.h.  */
21199$ac_includes_default
21200#include <$ac_header>
21201_ACEOF
21202rm -f conftest.$ac_objext
21203if { (ac_try="$ac_compile"
21204case "(($ac_try" in
21205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206  *) ac_try_echo=$ac_try;;
21207esac
21208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209  (eval "$ac_compile") 2>conftest.er1
21210  ac_status=$?
21211  grep -v '^ *+' conftest.er1 >conftest.err
21212  rm -f conftest.er1
21213  cat conftest.err >&5
21214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215  (exit $ac_status); } && {
21216	 test -z "$ac_c_werror_flag" ||
21217	 test ! -s conftest.err
21218       } && test -s conftest.$ac_objext; then
21219  ac_header_compiler=yes
21220else
21221  echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224	ac_header_compiler=no
21225fi
21226
21227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21229echo "${ECHO_T}$ac_header_compiler" >&6; }
21230
21231# Is the header present?
21232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21234cat >conftest.$ac_ext <<_ACEOF
21235/* confdefs.h.  */
21236_ACEOF
21237cat confdefs.h >>conftest.$ac_ext
21238cat >>conftest.$ac_ext <<_ACEOF
21239/* end confdefs.h.  */
21240#include <$ac_header>
21241_ACEOF
21242if { (ac_try="$ac_cpp conftest.$ac_ext"
21243case "(($ac_try" in
21244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245  *) ac_try_echo=$ac_try;;
21246esac
21247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21249  ac_status=$?
21250  grep -v '^ *+' conftest.er1 >conftest.err
21251  rm -f conftest.er1
21252  cat conftest.err >&5
21253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254  (exit $ac_status); } >/dev/null && {
21255	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21256	 test ! -s conftest.err
21257       }; then
21258  ac_header_preproc=yes
21259else
21260  echo "$as_me: failed program was:" >&5
21261sed 's/^/| /' conftest.$ac_ext >&5
21262
21263  ac_header_preproc=no
21264fi
21265
21266rm -f conftest.err conftest.$ac_ext
21267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21268echo "${ECHO_T}$ac_header_preproc" >&6; }
21269
21270# So?  What about this header?
21271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21272  yes:no: )
21273    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21275    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21277    ac_header_preproc=yes
21278    ;;
21279  no:yes:* )
21280    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21282    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21283echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21284    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21286    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21287echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21288    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21290    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21292
21293    ;;
21294esac
21295{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21298  echo $ECHO_N "(cached) $ECHO_C" >&6
21299else
21300  eval "$as_ac_Header=\$ac_header_preproc"
21301fi
21302ac_res=`eval echo '${'$as_ac_Header'}'`
21303	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21304echo "${ECHO_T}$ac_res" >&6; }
21305
21306fi
21307if test `eval echo '${'$as_ac_Header'}'` = yes; then
21308  cat >>confdefs.h <<_ACEOF
21309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21310_ACEOF
21311 break
21312fi
21313
21314done
21315
21316
21317
21318
21319for ac_func in strchr index
21320do
21321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21325  echo $ECHO_N "(cached) $ECHO_C" >&6
21326else
21327  cat >conftest.$ac_ext <<_ACEOF
21328/* confdefs.h.  */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h.  */
21333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21334   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21335#define $ac_func innocuous_$ac_func
21336
21337/* System header to define __stub macros and hopefully few prototypes,
21338    which can conflict with char $ac_func (); below.
21339    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21340    <limits.h> exists even on freestanding compilers.  */
21341
21342#ifdef __STDC__
21343# include <limits.h>
21344#else
21345# include <assert.h>
21346#endif
21347
21348#undef $ac_func
21349
21350/* Override any GCC internal prototype to avoid an error.
21351   Use char because int might match the return type of a GCC
21352   builtin and then its argument prototype would still apply.  */
21353#ifdef __cplusplus
21354extern "C"
21355#endif
21356char $ac_func ();
21357/* The GNU C library defines this for functions which it implements
21358    to always fail with ENOSYS.  Some functions are actually named
21359    something starting with __ and the normal name is an alias.  */
21360#if defined __stub_$ac_func || defined __stub___$ac_func
21361choke me
21362#endif
21363
21364int
21365main ()
21366{
21367return $ac_func ();
21368  ;
21369  return 0;
21370}
21371_ACEOF
21372rm -f conftest.$ac_objext conftest$ac_exeext
21373if { (ac_try="$ac_link"
21374case "(($ac_try" in
21375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376  *) ac_try_echo=$ac_try;;
21377esac
21378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379  (eval "$ac_link") 2>conftest.er1
21380  ac_status=$?
21381  grep -v '^ *+' conftest.er1 >conftest.err
21382  rm -f conftest.er1
21383  cat conftest.err >&5
21384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385  (exit $ac_status); } && {
21386	 test -z "$ac_c_werror_flag" ||
21387	 test ! -s conftest.err
21388       } && test -s conftest$ac_exeext &&
21389       $as_test_x conftest$ac_exeext; then
21390  eval "$as_ac_var=yes"
21391else
21392  echo "$as_me: failed program was:" >&5
21393sed 's/^/| /' conftest.$ac_ext >&5
21394
21395	eval "$as_ac_var=no"
21396fi
21397
21398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21399      conftest$ac_exeext conftest.$ac_ext
21400fi
21401ac_res=`eval echo '${'$as_ac_var'}'`
21402	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21403echo "${ECHO_T}$ac_res" >&6; }
21404if test `eval echo '${'$as_ac_var'}'` = yes; then
21405  cat >>confdefs.h <<_ACEOF
21406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21407_ACEOF
21408 break
21409fi
21410done
21411
21412
21413
21414for ac_func in strrchr rindex
21415do
21416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21420  echo $ECHO_N "(cached) $ECHO_C" >&6
21421else
21422  cat >conftest.$ac_ext <<_ACEOF
21423/* confdefs.h.  */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h.  */
21428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21429   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21430#define $ac_func innocuous_$ac_func
21431
21432/* System header to define __stub macros and hopefully few prototypes,
21433    which can conflict with char $ac_func (); below.
21434    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435    <limits.h> exists even on freestanding compilers.  */
21436
21437#ifdef __STDC__
21438# include <limits.h>
21439#else
21440# include <assert.h>
21441#endif
21442
21443#undef $ac_func
21444
21445/* Override any GCC internal prototype to avoid an error.
21446   Use char because int might match the return type of a GCC
21447   builtin and then its argument prototype would still apply.  */
21448#ifdef __cplusplus
21449extern "C"
21450#endif
21451char $ac_func ();
21452/* The GNU C library defines this for functions which it implements
21453    to always fail with ENOSYS.  Some functions are actually named
21454    something starting with __ and the normal name is an alias.  */
21455#if defined __stub_$ac_func || defined __stub___$ac_func
21456choke me
21457#endif
21458
21459int
21460main ()
21461{
21462return $ac_func ();
21463  ;
21464  return 0;
21465}
21466_ACEOF
21467rm -f conftest.$ac_objext conftest$ac_exeext
21468if { (ac_try="$ac_link"
21469case "(($ac_try" in
21470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471  *) ac_try_echo=$ac_try;;
21472esac
21473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474  (eval "$ac_link") 2>conftest.er1
21475  ac_status=$?
21476  grep -v '^ *+' conftest.er1 >conftest.err
21477  rm -f conftest.er1
21478  cat conftest.err >&5
21479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480  (exit $ac_status); } && {
21481	 test -z "$ac_c_werror_flag" ||
21482	 test ! -s conftest.err
21483       } && test -s conftest$ac_exeext &&
21484       $as_test_x conftest$ac_exeext; then
21485  eval "$as_ac_var=yes"
21486else
21487  echo "$as_me: failed program was:" >&5
21488sed 's/^/| /' conftest.$ac_ext >&5
21489
21490	eval "$as_ac_var=no"
21491fi
21492
21493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494      conftest$ac_exeext conftest.$ac_ext
21495fi
21496ac_res=`eval echo '${'$as_ac_var'}'`
21497	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21498echo "${ECHO_T}$ac_res" >&6; }
21499if test `eval echo '${'$as_ac_var'}'` = yes; then
21500  cat >>confdefs.h <<_ACEOF
21501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21502_ACEOF
21503 break
21504fi
21505done
21506
21507
21508
21509for ac_func in memcpy bcopy
21510do
21511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21512{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21514if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21515  echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517  cat >conftest.$ac_ext <<_ACEOF
21518/* confdefs.h.  */
21519_ACEOF
21520cat confdefs.h >>conftest.$ac_ext
21521cat >>conftest.$ac_ext <<_ACEOF
21522/* end confdefs.h.  */
21523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21524   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21525#define $ac_func innocuous_$ac_func
21526
21527/* System header to define __stub macros and hopefully few prototypes,
21528    which can conflict with char $ac_func (); below.
21529    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21530    <limits.h> exists even on freestanding compilers.  */
21531
21532#ifdef __STDC__
21533# include <limits.h>
21534#else
21535# include <assert.h>
21536#endif
21537
21538#undef $ac_func
21539
21540/* Override any GCC internal prototype to avoid an error.
21541   Use char because int might match the return type of a GCC
21542   builtin and then its argument prototype would still apply.  */
21543#ifdef __cplusplus
21544extern "C"
21545#endif
21546char $ac_func ();
21547/* The GNU C library defines this for functions which it implements
21548    to always fail with ENOSYS.  Some functions are actually named
21549    something starting with __ and the normal name is an alias.  */
21550#if defined __stub_$ac_func || defined __stub___$ac_func
21551choke me
21552#endif
21553
21554int
21555main ()
21556{
21557return $ac_func ();
21558  ;
21559  return 0;
21560}
21561_ACEOF
21562rm -f conftest.$ac_objext conftest$ac_exeext
21563if { (ac_try="$ac_link"
21564case "(($ac_try" in
21565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566  *) ac_try_echo=$ac_try;;
21567esac
21568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569  (eval "$ac_link") 2>conftest.er1
21570  ac_status=$?
21571  grep -v '^ *+' conftest.er1 >conftest.err
21572  rm -f conftest.er1
21573  cat conftest.err >&5
21574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575  (exit $ac_status); } && {
21576	 test -z "$ac_c_werror_flag" ||
21577	 test ! -s conftest.err
21578       } && test -s conftest$ac_exeext &&
21579       $as_test_x conftest$ac_exeext; then
21580  eval "$as_ac_var=yes"
21581else
21582  echo "$as_me: failed program was:" >&5
21583sed 's/^/| /' conftest.$ac_ext >&5
21584
21585	eval "$as_ac_var=no"
21586fi
21587
21588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21589      conftest$ac_exeext conftest.$ac_ext
21590fi
21591ac_res=`eval echo '${'$as_ac_var'}'`
21592	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21593echo "${ECHO_T}$ac_res" >&6; }
21594if test `eval echo '${'$as_ac_var'}'` = yes; then
21595  cat >>confdefs.h <<_ACEOF
21596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21597_ACEOF
21598 break
21599fi
21600done
21601
21602
21603
21604for ac_func in memmove strcmp
21605do
21606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21610  echo $ECHO_N "(cached) $ECHO_C" >&6
21611else
21612  cat >conftest.$ac_ext <<_ACEOF
21613/* confdefs.h.  */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h.  */
21618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21619   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21620#define $ac_func innocuous_$ac_func
21621
21622/* System header to define __stub macros and hopefully few prototypes,
21623    which can conflict with char $ac_func (); below.
21624    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21625    <limits.h> exists even on freestanding compilers.  */
21626
21627#ifdef __STDC__
21628# include <limits.h>
21629#else
21630# include <assert.h>
21631#endif
21632
21633#undef $ac_func
21634
21635/* Override any GCC internal prototype to avoid an error.
21636   Use char because int might match the return type of a GCC
21637   builtin and then its argument prototype would still apply.  */
21638#ifdef __cplusplus
21639extern "C"
21640#endif
21641char $ac_func ();
21642/* The GNU C library defines this for functions which it implements
21643    to always fail with ENOSYS.  Some functions are actually named
21644    something starting with __ and the normal name is an alias.  */
21645#if defined __stub_$ac_func || defined __stub___$ac_func
21646choke me
21647#endif
21648
21649int
21650main ()
21651{
21652return $ac_func ();
21653  ;
21654  return 0;
21655}
21656_ACEOF
21657rm -f conftest.$ac_objext conftest$ac_exeext
21658if { (ac_try="$ac_link"
21659case "(($ac_try" in
21660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661  *) ac_try_echo=$ac_try;;
21662esac
21663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664  (eval "$ac_link") 2>conftest.er1
21665  ac_status=$?
21666  grep -v '^ *+' conftest.er1 >conftest.err
21667  rm -f conftest.er1
21668  cat conftest.err >&5
21669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670  (exit $ac_status); } && {
21671	 test -z "$ac_c_werror_flag" ||
21672	 test ! -s conftest.err
21673       } && test -s conftest$ac_exeext &&
21674       $as_test_x conftest$ac_exeext; then
21675  eval "$as_ac_var=yes"
21676else
21677  echo "$as_me: failed program was:" >&5
21678sed 's/^/| /' conftest.$ac_ext >&5
21679
21680	eval "$as_ac_var=no"
21681fi
21682
21683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21684      conftest$ac_exeext conftest.$ac_ext
21685fi
21686ac_res=`eval echo '${'$as_ac_var'}'`
21687	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21688echo "${ECHO_T}$ac_res" >&6; }
21689if test `eval echo '${'$as_ac_var'}'` = yes; then
21690  cat >>confdefs.h <<_ACEOF
21691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21692_ACEOF
21693
21694fi
21695done
21696
21697
21698
21699
21700for ac_func in closedir opendir readdir
21701do
21702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21705if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21706  echo $ECHO_N "(cached) $ECHO_C" >&6
21707else
21708  cat >conftest.$ac_ext <<_ACEOF
21709/* confdefs.h.  */
21710_ACEOF
21711cat confdefs.h >>conftest.$ac_ext
21712cat >>conftest.$ac_ext <<_ACEOF
21713/* end confdefs.h.  */
21714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21716#define $ac_func innocuous_$ac_func
21717
21718/* System header to define __stub macros and hopefully few prototypes,
21719    which can conflict with char $ac_func (); below.
21720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21721    <limits.h> exists even on freestanding compilers.  */
21722
21723#ifdef __STDC__
21724# include <limits.h>
21725#else
21726# include <assert.h>
21727#endif
21728
21729#undef $ac_func
21730
21731/* Override any GCC internal prototype to avoid an error.
21732   Use char because int might match the return type of a GCC
21733   builtin and then its argument prototype would still apply.  */
21734#ifdef __cplusplus
21735extern "C"
21736#endif
21737char $ac_func ();
21738/* The GNU C library defines this for functions which it implements
21739    to always fail with ENOSYS.  Some functions are actually named
21740    something starting with __ and the normal name is an alias.  */
21741#if defined __stub_$ac_func || defined __stub___$ac_func
21742choke me
21743#endif
21744
21745int
21746main ()
21747{
21748return $ac_func ();
21749  ;
21750  return 0;
21751}
21752_ACEOF
21753rm -f conftest.$ac_objext conftest$ac_exeext
21754if { (ac_try="$ac_link"
21755case "(($ac_try" in
21756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757  *) ac_try_echo=$ac_try;;
21758esac
21759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760  (eval "$ac_link") 2>conftest.er1
21761  ac_status=$?
21762  grep -v '^ *+' conftest.er1 >conftest.err
21763  rm -f conftest.er1
21764  cat conftest.err >&5
21765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766  (exit $ac_status); } && {
21767	 test -z "$ac_c_werror_flag" ||
21768	 test ! -s conftest.err
21769       } && test -s conftest$ac_exeext &&
21770       $as_test_x conftest$ac_exeext; then
21771  eval "$as_ac_var=yes"
21772else
21773  echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776	eval "$as_ac_var=no"
21777fi
21778
21779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21780      conftest$ac_exeext conftest.$ac_ext
21781fi
21782ac_res=`eval echo '${'$as_ac_var'}'`
21783	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21784echo "${ECHO_T}$ac_res" >&6; }
21785if test `eval echo '${'$as_ac_var'}'` = yes; then
21786  cat >>confdefs.h <<_ACEOF
21787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21788_ACEOF
21789
21790fi
21791done
21792
21793
21794
21795{ echo "$as_me:$LINENO: checking for X" >&5
21796echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21797
21798
21799# Check whether --with-x was given.
21800if test "${with_x+set}" = set; then
21801  withval=$with_x;
21802fi
21803
21804# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21805if test "x$with_x" = xno; then
21806  # The user explicitly disabled X.
21807  have_x=disabled
21808else
21809  case $x_includes,$x_libraries in #(
21810    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21811echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21812   { (exit 1); exit 1; }; };; #(
21813    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21814  echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816  # One or both of the vars are not set, and there is no cached value.
21817ac_x_includes=no ac_x_libraries=no
21818rm -f -r conftest.dir
21819if mkdir conftest.dir; then
21820  cd conftest.dir
21821  cat >Imakefile <<'_ACEOF'
21822incroot:
21823	@echo incroot='${INCROOT}'
21824usrlibdir:
21825	@echo usrlibdir='${USRLIBDIR}'
21826libdir:
21827	@echo libdir='${LIBDIR}'
21828_ACEOF
21829  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21830    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21831    for ac_var in incroot usrlibdir libdir; do
21832      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21833    done
21834    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21835    for ac_extension in a so sl; do
21836      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21837	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21838	ac_im_usrlibdir=$ac_im_libdir; break
21839      fi
21840    done
21841    # Screen out bogus values from the imake configuration.  They are
21842    # bogus both because they are the default anyway, and because
21843    # using them would break gcc on systems where it needs fixed includes.
21844    case $ac_im_incroot in
21845	/usr/include) ac_x_includes= ;;
21846	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21847    esac
21848    case $ac_im_usrlibdir in
21849	/usr/lib | /lib) ;;
21850	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21851    esac
21852  fi
21853  cd ..
21854  rm -f -r conftest.dir
21855fi
21856
21857# Standard set of common directories for X headers.
21858# Check X11 before X11Rn because it is often a symlink to the current release.
21859ac_x_header_dirs='
21860/usr/X11/include
21861/usr/X11R6/include
21862/usr/X11R5/include
21863/usr/X11R4/include
21864
21865/usr/include/X11
21866/usr/include/X11R6
21867/usr/include/X11R5
21868/usr/include/X11R4
21869
21870/usr/local/X11/include
21871/usr/local/X11R6/include
21872/usr/local/X11R5/include
21873/usr/local/X11R4/include
21874
21875/usr/local/include/X11
21876/usr/local/include/X11R6
21877/usr/local/include/X11R5
21878/usr/local/include/X11R4
21879
21880/usr/X386/include
21881/usr/x386/include
21882/usr/XFree86/include/X11
21883
21884/usr/include
21885/usr/local/include
21886/usr/unsupported/include
21887/usr/athena/include
21888/usr/local/x11r5/include
21889/usr/lpp/Xamples/include
21890
21891/usr/openwin/include
21892/usr/openwin/share/include'
21893
21894if test "$ac_x_includes" = no; then
21895  # Guess where to find include files, by looking for Xlib.h.
21896  # First, try using that file with no special directory specified.
21897  cat >conftest.$ac_ext <<_ACEOF
21898/* confdefs.h.  */
21899_ACEOF
21900cat confdefs.h >>conftest.$ac_ext
21901cat >>conftest.$ac_ext <<_ACEOF
21902/* end confdefs.h.  */
21903#include <X11/Xlib.h>
21904_ACEOF
21905if { (ac_try="$ac_cpp conftest.$ac_ext"
21906case "(($ac_try" in
21907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908  *) ac_try_echo=$ac_try;;
21909esac
21910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21912  ac_status=$?
21913  grep -v '^ *+' conftest.er1 >conftest.err
21914  rm -f conftest.er1
21915  cat conftest.err >&5
21916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917  (exit $ac_status); } >/dev/null && {
21918	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21919	 test ! -s conftest.err
21920       }; then
21921  # We can compile using X headers with no special include directory.
21922ac_x_includes=
21923else
21924  echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927  for ac_dir in $ac_x_header_dirs; do
21928  if test -r "$ac_dir/X11/Xlib.h"; then
21929    ac_x_includes=$ac_dir
21930    break
21931  fi
21932done
21933fi
21934
21935rm -f conftest.err conftest.$ac_ext
21936fi # $ac_x_includes = no
21937
21938if test "$ac_x_libraries" = no; then
21939  # Check for the libraries.
21940  # See if we find them without any special options.
21941  # Don't add to $LIBS permanently.
21942  ac_save_LIBS=$LIBS
21943  LIBS="-lX11 $LIBS"
21944  cat >conftest.$ac_ext <<_ACEOF
21945/* confdefs.h.  */
21946_ACEOF
21947cat confdefs.h >>conftest.$ac_ext
21948cat >>conftest.$ac_ext <<_ACEOF
21949/* end confdefs.h.  */
21950#include <X11/Xlib.h>
21951int
21952main ()
21953{
21954XrmInitialize ()
21955  ;
21956  return 0;
21957}
21958_ACEOF
21959rm -f conftest.$ac_objext conftest$ac_exeext
21960if { (ac_try="$ac_link"
21961case "(($ac_try" in
21962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963  *) ac_try_echo=$ac_try;;
21964esac
21965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966  (eval "$ac_link") 2>conftest.er1
21967  ac_status=$?
21968  grep -v '^ *+' conftest.er1 >conftest.err
21969  rm -f conftest.er1
21970  cat conftest.err >&5
21971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972  (exit $ac_status); } && {
21973	 test -z "$ac_c_werror_flag" ||
21974	 test ! -s conftest.err
21975       } && test -s conftest$ac_exeext &&
21976       $as_test_x conftest$ac_exeext; then
21977  LIBS=$ac_save_LIBS
21978# We can link X programs with no special library path.
21979ac_x_libraries=
21980else
21981  echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984	LIBS=$ac_save_LIBS
21985for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21986do
21987  # Don't even attempt the hair of trying to link an X program!
21988  for ac_extension in a so sl; do
21989    if test -r "$ac_dir/libX11.$ac_extension"; then
21990      ac_x_libraries=$ac_dir
21991      break 2
21992    fi
21993  done
21994done
21995fi
21996
21997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21998      conftest$ac_exeext conftest.$ac_ext
21999fi # $ac_x_libraries = no
22000
22001case $ac_x_includes,$ac_x_libraries in #(
22002  no,* | *,no | *\'*)
22003    # Didn't find X, or a directory has "'" in its name.
22004    ac_cv_have_x="have_x=no";; #(
22005  *)
22006    # Record where we found X for the cache.
22007    ac_cv_have_x="have_x=yes\
22008	ac_x_includes='$ac_x_includes'\
22009	ac_x_libraries='$ac_x_libraries'"
22010esac
22011fi
22012;; #(
22013    *) have_x=yes;;
22014  esac
22015  eval "$ac_cv_have_x"
22016fi # $with_x != no
22017
22018if test "$have_x" != yes; then
22019  { echo "$as_me:$LINENO: result: $have_x" >&5
22020echo "${ECHO_T}$have_x" >&6; }
22021  no_x=yes
22022else
22023  # If each of the values was on the command line, it overrides each guess.
22024  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22025  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22026  # Update the cache value to reflect the command line values.
22027  ac_cv_have_x="have_x=yes\
22028	ac_x_includes='$x_includes'\
22029	ac_x_libraries='$x_libraries'"
22030  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22031echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22032fi
22033
22034if test "$no_x" = yes; then
22035  # Not all programs may use this symbol, but it does not hurt to define it.
22036
22037cat >>confdefs.h <<\_ACEOF
22038#define X_DISPLAY_MISSING 1
22039_ACEOF
22040
22041  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22042else
22043  if test -n "$x_includes"; then
22044    X_CFLAGS="$X_CFLAGS -I$x_includes"
22045  fi
22046
22047  # It would also be nice to do this for all -L options, not just this one.
22048  if test -n "$x_libraries"; then
22049    X_LIBS="$X_LIBS -L$x_libraries"
22050    # For Solaris; some versions of Sun CC require a space after -R and
22051    # others require no space.  Words are not sufficient . . . .
22052    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22053echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22054    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22055    ac_xsave_c_werror_flag=$ac_c_werror_flag
22056    ac_c_werror_flag=yes
22057    cat >conftest.$ac_ext <<_ACEOF
22058/* confdefs.h.  */
22059_ACEOF
22060cat confdefs.h >>conftest.$ac_ext
22061cat >>conftest.$ac_ext <<_ACEOF
22062/* end confdefs.h.  */
22063
22064int
22065main ()
22066{
22067
22068  ;
22069  return 0;
22070}
22071_ACEOF
22072rm -f conftest.$ac_objext conftest$ac_exeext
22073if { (ac_try="$ac_link"
22074case "(($ac_try" in
22075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076  *) ac_try_echo=$ac_try;;
22077esac
22078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079  (eval "$ac_link") 2>conftest.er1
22080  ac_status=$?
22081  grep -v '^ *+' conftest.er1 >conftest.err
22082  rm -f conftest.er1
22083  cat conftest.err >&5
22084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085  (exit $ac_status); } && {
22086	 test -z "$ac_c_werror_flag" ||
22087	 test ! -s conftest.err
22088       } && test -s conftest$ac_exeext &&
22089       $as_test_x conftest$ac_exeext; then
22090  { echo "$as_me:$LINENO: result: no" >&5
22091echo "${ECHO_T}no" >&6; }
22092       X_LIBS="$X_LIBS -R$x_libraries"
22093else
22094  echo "$as_me: failed program was:" >&5
22095sed 's/^/| /' conftest.$ac_ext >&5
22096
22097	LIBS="$ac_xsave_LIBS -R $x_libraries"
22098       cat >conftest.$ac_ext <<_ACEOF
22099/* confdefs.h.  */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h.  */
22104
22105int
22106main ()
22107{
22108
22109  ;
22110  return 0;
22111}
22112_ACEOF
22113rm -f conftest.$ac_objext conftest$ac_exeext
22114if { (ac_try="$ac_link"
22115case "(($ac_try" in
22116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117  *) ac_try_echo=$ac_try;;
22118esac
22119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120  (eval "$ac_link") 2>conftest.er1
22121  ac_status=$?
22122  grep -v '^ *+' conftest.er1 >conftest.err
22123  rm -f conftest.er1
22124  cat conftest.err >&5
22125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126  (exit $ac_status); } && {
22127	 test -z "$ac_c_werror_flag" ||
22128	 test ! -s conftest.err
22129       } && test -s conftest$ac_exeext &&
22130       $as_test_x conftest$ac_exeext; then
22131  { echo "$as_me:$LINENO: result: yes" >&5
22132echo "${ECHO_T}yes" >&6; }
22133	  X_LIBS="$X_LIBS -R $x_libraries"
22134else
22135  echo "$as_me: failed program was:" >&5
22136sed 's/^/| /' conftest.$ac_ext >&5
22137
22138	{ echo "$as_me:$LINENO: result: neither works" >&5
22139echo "${ECHO_T}neither works" >&6; }
22140fi
22141
22142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22143      conftest$ac_exeext conftest.$ac_ext
22144fi
22145
22146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147      conftest$ac_exeext conftest.$ac_ext
22148    ac_c_werror_flag=$ac_xsave_c_werror_flag
22149    LIBS=$ac_xsave_LIBS
22150  fi
22151
22152  # Check for system-dependent libraries X programs must link with.
22153  # Do this before checking for the system-independent R6 libraries
22154  # (-lICE), since we may need -lsocket or whatever for X linking.
22155
22156  if test "$ISC" = yes; then
22157    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22158  else
22159    # Martyn Johnson says this is needed for Ultrix, if the X
22160    # libraries were built with DECnet support.  And Karl Berry says
22161    # the Alpha needs dnet_stub (dnet does not exist).
22162    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22163    cat >conftest.$ac_ext <<_ACEOF
22164/* confdefs.h.  */
22165_ACEOF
22166cat confdefs.h >>conftest.$ac_ext
22167cat >>conftest.$ac_ext <<_ACEOF
22168/* end confdefs.h.  */
22169
22170/* Override any GCC internal prototype to avoid an error.
22171   Use char because int might match the return type of a GCC
22172   builtin and then its argument prototype would still apply.  */
22173#ifdef __cplusplus
22174extern "C"
22175#endif
22176char XOpenDisplay ();
22177int
22178main ()
22179{
22180return XOpenDisplay ();
22181  ;
22182  return 0;
22183}
22184_ACEOF
22185rm -f conftest.$ac_objext conftest$ac_exeext
22186if { (ac_try="$ac_link"
22187case "(($ac_try" in
22188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189  *) ac_try_echo=$ac_try;;
22190esac
22191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192  (eval "$ac_link") 2>conftest.er1
22193  ac_status=$?
22194  grep -v '^ *+' conftest.er1 >conftest.err
22195  rm -f conftest.er1
22196  cat conftest.err >&5
22197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198  (exit $ac_status); } && {
22199	 test -z "$ac_c_werror_flag" ||
22200	 test ! -s conftest.err
22201       } && test -s conftest$ac_exeext &&
22202       $as_test_x conftest$ac_exeext; then
22203  :
22204else
22205  echo "$as_me: failed program was:" >&5
22206sed 's/^/| /' conftest.$ac_ext >&5
22207
22208	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22209echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22210if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22211  echo $ECHO_N "(cached) $ECHO_C" >&6
22212else
22213  ac_check_lib_save_LIBS=$LIBS
22214LIBS="-ldnet  $LIBS"
22215cat >conftest.$ac_ext <<_ACEOF
22216/* confdefs.h.  */
22217_ACEOF
22218cat confdefs.h >>conftest.$ac_ext
22219cat >>conftest.$ac_ext <<_ACEOF
22220/* end confdefs.h.  */
22221
22222/* Override any GCC internal prototype to avoid an error.
22223   Use char because int might match the return type of a GCC
22224   builtin and then its argument prototype would still apply.  */
22225#ifdef __cplusplus
22226extern "C"
22227#endif
22228char dnet_ntoa ();
22229int
22230main ()
22231{
22232return dnet_ntoa ();
22233  ;
22234  return 0;
22235}
22236_ACEOF
22237rm -f conftest.$ac_objext conftest$ac_exeext
22238if { (ac_try="$ac_link"
22239case "(($ac_try" in
22240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241  *) ac_try_echo=$ac_try;;
22242esac
22243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244  (eval "$ac_link") 2>conftest.er1
22245  ac_status=$?
22246  grep -v '^ *+' conftest.er1 >conftest.err
22247  rm -f conftest.er1
22248  cat conftest.err >&5
22249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250  (exit $ac_status); } && {
22251	 test -z "$ac_c_werror_flag" ||
22252	 test ! -s conftest.err
22253       } && test -s conftest$ac_exeext &&
22254       $as_test_x conftest$ac_exeext; then
22255  ac_cv_lib_dnet_dnet_ntoa=yes
22256else
22257  echo "$as_me: failed program was:" >&5
22258sed 's/^/| /' conftest.$ac_ext >&5
22259
22260	ac_cv_lib_dnet_dnet_ntoa=no
22261fi
22262
22263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264      conftest$ac_exeext conftest.$ac_ext
22265LIBS=$ac_check_lib_save_LIBS
22266fi
22267{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22268echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22269if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22270  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22271fi
22272
22273    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22274      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22275echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22276if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22277  echo $ECHO_N "(cached) $ECHO_C" >&6
22278else
22279  ac_check_lib_save_LIBS=$LIBS
22280LIBS="-ldnet_stub  $LIBS"
22281cat >conftest.$ac_ext <<_ACEOF
22282/* confdefs.h.  */
22283_ACEOF
22284cat confdefs.h >>conftest.$ac_ext
22285cat >>conftest.$ac_ext <<_ACEOF
22286/* end confdefs.h.  */
22287
22288/* Override any GCC internal prototype to avoid an error.
22289   Use char because int might match the return type of a GCC
22290   builtin and then its argument prototype would still apply.  */
22291#ifdef __cplusplus
22292extern "C"
22293#endif
22294char dnet_ntoa ();
22295int
22296main ()
22297{
22298return dnet_ntoa ();
22299  ;
22300  return 0;
22301}
22302_ACEOF
22303rm -f conftest.$ac_objext conftest$ac_exeext
22304if { (ac_try="$ac_link"
22305case "(($ac_try" in
22306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307  *) ac_try_echo=$ac_try;;
22308esac
22309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310  (eval "$ac_link") 2>conftest.er1
22311  ac_status=$?
22312  grep -v '^ *+' conftest.er1 >conftest.err
22313  rm -f conftest.er1
22314  cat conftest.err >&5
22315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316  (exit $ac_status); } && {
22317	 test -z "$ac_c_werror_flag" ||
22318	 test ! -s conftest.err
22319       } && test -s conftest$ac_exeext &&
22320       $as_test_x conftest$ac_exeext; then
22321  ac_cv_lib_dnet_stub_dnet_ntoa=yes
22322else
22323  echo "$as_me: failed program was:" >&5
22324sed 's/^/| /' conftest.$ac_ext >&5
22325
22326	ac_cv_lib_dnet_stub_dnet_ntoa=no
22327fi
22328
22329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22330      conftest$ac_exeext conftest.$ac_ext
22331LIBS=$ac_check_lib_save_LIBS
22332fi
22333{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22334echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22335if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22336  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22337fi
22338
22339    fi
22340fi
22341
22342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22343      conftest$ac_exeext conftest.$ac_ext
22344    LIBS="$ac_xsave_LIBS"
22345
22346    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22347    # to get the SysV transport functions.
22348    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22349    # needs -lnsl.
22350    # The nsl library prevents programs from opening the X display
22351    # on Irix 5.2, according to T.E. Dickey.
22352    # The functions gethostbyname, getservbyname, and inet_addr are
22353    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22354    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22355echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22356if test "${ac_cv_func_gethostbyname+set}" = set; then
22357  echo $ECHO_N "(cached) $ECHO_C" >&6
22358else
22359  cat >conftest.$ac_ext <<_ACEOF
22360/* confdefs.h.  */
22361_ACEOF
22362cat confdefs.h >>conftest.$ac_ext
22363cat >>conftest.$ac_ext <<_ACEOF
22364/* end confdefs.h.  */
22365/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22366   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22367#define gethostbyname innocuous_gethostbyname
22368
22369/* System header to define __stub macros and hopefully few prototypes,
22370    which can conflict with char gethostbyname (); below.
22371    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22372    <limits.h> exists even on freestanding compilers.  */
22373
22374#ifdef __STDC__
22375# include <limits.h>
22376#else
22377# include <assert.h>
22378#endif
22379
22380#undef gethostbyname
22381
22382/* Override any GCC internal prototype to avoid an error.
22383   Use char because int might match the return type of a GCC
22384   builtin and then its argument prototype would still apply.  */
22385#ifdef __cplusplus
22386extern "C"
22387#endif
22388char gethostbyname ();
22389/* The GNU C library defines this for functions which it implements
22390    to always fail with ENOSYS.  Some functions are actually named
22391    something starting with __ and the normal name is an alias.  */
22392#if defined __stub_gethostbyname || defined __stub___gethostbyname
22393choke me
22394#endif
22395
22396int
22397main ()
22398{
22399return gethostbyname ();
22400  ;
22401  return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext conftest$ac_exeext
22405if { (ac_try="$ac_link"
22406case "(($ac_try" in
22407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408  *) ac_try_echo=$ac_try;;
22409esac
22410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411  (eval "$ac_link") 2>conftest.er1
22412  ac_status=$?
22413  grep -v '^ *+' conftest.er1 >conftest.err
22414  rm -f conftest.er1
22415  cat conftest.err >&5
22416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417  (exit $ac_status); } && {
22418	 test -z "$ac_c_werror_flag" ||
22419	 test ! -s conftest.err
22420       } && test -s conftest$ac_exeext &&
22421       $as_test_x conftest$ac_exeext; then
22422  ac_cv_func_gethostbyname=yes
22423else
22424  echo "$as_me: failed program was:" >&5
22425sed 's/^/| /' conftest.$ac_ext >&5
22426
22427	ac_cv_func_gethostbyname=no
22428fi
22429
22430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431      conftest$ac_exeext conftest.$ac_ext
22432fi
22433{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22434echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22435
22436    if test $ac_cv_func_gethostbyname = no; then
22437      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22438echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22439if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22440  echo $ECHO_N "(cached) $ECHO_C" >&6
22441else
22442  ac_check_lib_save_LIBS=$LIBS
22443LIBS="-lnsl  $LIBS"
22444cat >conftest.$ac_ext <<_ACEOF
22445/* confdefs.h.  */
22446_ACEOF
22447cat confdefs.h >>conftest.$ac_ext
22448cat >>conftest.$ac_ext <<_ACEOF
22449/* end confdefs.h.  */
22450
22451/* Override any GCC internal prototype to avoid an error.
22452   Use char because int might match the return type of a GCC
22453   builtin and then its argument prototype would still apply.  */
22454#ifdef __cplusplus
22455extern "C"
22456#endif
22457char gethostbyname ();
22458int
22459main ()
22460{
22461return gethostbyname ();
22462  ;
22463  return 0;
22464}
22465_ACEOF
22466rm -f conftest.$ac_objext conftest$ac_exeext
22467if { (ac_try="$ac_link"
22468case "(($ac_try" in
22469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470  *) ac_try_echo=$ac_try;;
22471esac
22472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22473  (eval "$ac_link") 2>conftest.er1
22474  ac_status=$?
22475  grep -v '^ *+' conftest.er1 >conftest.err
22476  rm -f conftest.er1
22477  cat conftest.err >&5
22478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479  (exit $ac_status); } && {
22480	 test -z "$ac_c_werror_flag" ||
22481	 test ! -s conftest.err
22482       } && test -s conftest$ac_exeext &&
22483       $as_test_x conftest$ac_exeext; then
22484  ac_cv_lib_nsl_gethostbyname=yes
22485else
22486  echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489	ac_cv_lib_nsl_gethostbyname=no
22490fi
22491
22492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22493      conftest$ac_exeext conftest.$ac_ext
22494LIBS=$ac_check_lib_save_LIBS
22495fi
22496{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22497echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22498if test $ac_cv_lib_nsl_gethostbyname = yes; then
22499  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22500fi
22501
22502      if test $ac_cv_lib_nsl_gethostbyname = no; then
22503	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22504echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22505if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22506  echo $ECHO_N "(cached) $ECHO_C" >&6
22507else
22508  ac_check_lib_save_LIBS=$LIBS
22509LIBS="-lbsd  $LIBS"
22510cat >conftest.$ac_ext <<_ACEOF
22511/* confdefs.h.  */
22512_ACEOF
22513cat confdefs.h >>conftest.$ac_ext
22514cat >>conftest.$ac_ext <<_ACEOF
22515/* end confdefs.h.  */
22516
22517/* Override any GCC internal prototype to avoid an error.
22518   Use char because int might match the return type of a GCC
22519   builtin and then its argument prototype would still apply.  */
22520#ifdef __cplusplus
22521extern "C"
22522#endif
22523char gethostbyname ();
22524int
22525main ()
22526{
22527return gethostbyname ();
22528  ;
22529  return 0;
22530}
22531_ACEOF
22532rm -f conftest.$ac_objext conftest$ac_exeext
22533if { (ac_try="$ac_link"
22534case "(($ac_try" in
22535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536  *) ac_try_echo=$ac_try;;
22537esac
22538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539  (eval "$ac_link") 2>conftest.er1
22540  ac_status=$?
22541  grep -v '^ *+' conftest.er1 >conftest.err
22542  rm -f conftest.er1
22543  cat conftest.err >&5
22544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545  (exit $ac_status); } && {
22546	 test -z "$ac_c_werror_flag" ||
22547	 test ! -s conftest.err
22548       } && test -s conftest$ac_exeext &&
22549       $as_test_x conftest$ac_exeext; then
22550  ac_cv_lib_bsd_gethostbyname=yes
22551else
22552  echo "$as_me: failed program was:" >&5
22553sed 's/^/| /' conftest.$ac_ext >&5
22554
22555	ac_cv_lib_bsd_gethostbyname=no
22556fi
22557
22558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22559      conftest$ac_exeext conftest.$ac_ext
22560LIBS=$ac_check_lib_save_LIBS
22561fi
22562{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22563echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22564if test $ac_cv_lib_bsd_gethostbyname = yes; then
22565  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22566fi
22567
22568      fi
22569    fi
22570
22571    # lieder@skyler.mavd.honeywell.com says without -lsocket,
22572    # socket/setsockopt and other routines are undefined under SCO ODT
22573    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
22574    # on later versions), says Simon Leinen: it contains gethostby*
22575    # variants that don't use the name server (or something).  -lsocket
22576    # must be given before -lnsl if both are needed.  We assume that
22577    # if connect needs -lnsl, so does gethostbyname.
22578    { echo "$as_me:$LINENO: checking for connect" >&5
22579echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22580if test "${ac_cv_func_connect+set}" = set; then
22581  echo $ECHO_N "(cached) $ECHO_C" >&6
22582else
22583  cat >conftest.$ac_ext <<_ACEOF
22584/* confdefs.h.  */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h.  */
22589/* Define connect to an innocuous variant, in case <limits.h> declares connect.
22590   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22591#define connect innocuous_connect
22592
22593/* System header to define __stub macros and hopefully few prototypes,
22594    which can conflict with char connect (); below.
22595    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22596    <limits.h> exists even on freestanding compilers.  */
22597
22598#ifdef __STDC__
22599# include <limits.h>
22600#else
22601# include <assert.h>
22602#endif
22603
22604#undef connect
22605
22606/* Override any GCC internal prototype to avoid an error.
22607   Use char because int might match the return type of a GCC
22608   builtin and then its argument prototype would still apply.  */
22609#ifdef __cplusplus
22610extern "C"
22611#endif
22612char connect ();
22613/* The GNU C library defines this for functions which it implements
22614    to always fail with ENOSYS.  Some functions are actually named
22615    something starting with __ and the normal name is an alias.  */
22616#if defined __stub_connect || defined __stub___connect
22617choke me
22618#endif
22619
22620int
22621main ()
22622{
22623return connect ();
22624  ;
22625  return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext conftest$ac_exeext
22629if { (ac_try="$ac_link"
22630case "(($ac_try" in
22631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632  *) ac_try_echo=$ac_try;;
22633esac
22634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635  (eval "$ac_link") 2>conftest.er1
22636  ac_status=$?
22637  grep -v '^ *+' conftest.er1 >conftest.err
22638  rm -f conftest.er1
22639  cat conftest.err >&5
22640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641  (exit $ac_status); } && {
22642	 test -z "$ac_c_werror_flag" ||
22643	 test ! -s conftest.err
22644       } && test -s conftest$ac_exeext &&
22645       $as_test_x conftest$ac_exeext; then
22646  ac_cv_func_connect=yes
22647else
22648  echo "$as_me: failed program was:" >&5
22649sed 's/^/| /' conftest.$ac_ext >&5
22650
22651	ac_cv_func_connect=no
22652fi
22653
22654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22655      conftest$ac_exeext conftest.$ac_ext
22656fi
22657{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22658echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22659
22660    if test $ac_cv_func_connect = no; then
22661      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22662echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22663if test "${ac_cv_lib_socket_connect+set}" = set; then
22664  echo $ECHO_N "(cached) $ECHO_C" >&6
22665else
22666  ac_check_lib_save_LIBS=$LIBS
22667LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22668cat >conftest.$ac_ext <<_ACEOF
22669/* confdefs.h.  */
22670_ACEOF
22671cat confdefs.h >>conftest.$ac_ext
22672cat >>conftest.$ac_ext <<_ACEOF
22673/* end confdefs.h.  */
22674
22675/* Override any GCC internal prototype to avoid an error.
22676   Use char because int might match the return type of a GCC
22677   builtin and then its argument prototype would still apply.  */
22678#ifdef __cplusplus
22679extern "C"
22680#endif
22681char connect ();
22682int
22683main ()
22684{
22685return connect ();
22686  ;
22687  return 0;
22688}
22689_ACEOF
22690rm -f conftest.$ac_objext conftest$ac_exeext
22691if { (ac_try="$ac_link"
22692case "(($ac_try" in
22693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694  *) ac_try_echo=$ac_try;;
22695esac
22696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697  (eval "$ac_link") 2>conftest.er1
22698  ac_status=$?
22699  grep -v '^ *+' conftest.er1 >conftest.err
22700  rm -f conftest.er1
22701  cat conftest.err >&5
22702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703  (exit $ac_status); } && {
22704	 test -z "$ac_c_werror_flag" ||
22705	 test ! -s conftest.err
22706       } && test -s conftest$ac_exeext &&
22707       $as_test_x conftest$ac_exeext; then
22708  ac_cv_lib_socket_connect=yes
22709else
22710  echo "$as_me: failed program was:" >&5
22711sed 's/^/| /' conftest.$ac_ext >&5
22712
22713	ac_cv_lib_socket_connect=no
22714fi
22715
22716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22717      conftest$ac_exeext conftest.$ac_ext
22718LIBS=$ac_check_lib_save_LIBS
22719fi
22720{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22721echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22722if test $ac_cv_lib_socket_connect = yes; then
22723  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22724fi
22725
22726    fi
22727
22728    # Guillermo Gomez says -lposix is necessary on A/UX.
22729    { echo "$as_me:$LINENO: checking for remove" >&5
22730echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22731if test "${ac_cv_func_remove+set}" = set; then
22732  echo $ECHO_N "(cached) $ECHO_C" >&6
22733else
22734  cat >conftest.$ac_ext <<_ACEOF
22735/* confdefs.h.  */
22736_ACEOF
22737cat confdefs.h >>conftest.$ac_ext
22738cat >>conftest.$ac_ext <<_ACEOF
22739/* end confdefs.h.  */
22740/* Define remove to an innocuous variant, in case <limits.h> declares remove.
22741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22742#define remove innocuous_remove
22743
22744/* System header to define __stub macros and hopefully few prototypes,
22745    which can conflict with char remove (); below.
22746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22747    <limits.h> exists even on freestanding compilers.  */
22748
22749#ifdef __STDC__
22750# include <limits.h>
22751#else
22752# include <assert.h>
22753#endif
22754
22755#undef remove
22756
22757/* Override any GCC internal prototype to avoid an error.
22758   Use char because int might match the return type of a GCC
22759   builtin and then its argument prototype would still apply.  */
22760#ifdef __cplusplus
22761extern "C"
22762#endif
22763char remove ();
22764/* The GNU C library defines this for functions which it implements
22765    to always fail with ENOSYS.  Some functions are actually named
22766    something starting with __ and the normal name is an alias.  */
22767#if defined __stub_remove || defined __stub___remove
22768choke me
22769#endif
22770
22771int
22772main ()
22773{
22774return remove ();
22775  ;
22776  return 0;
22777}
22778_ACEOF
22779rm -f conftest.$ac_objext conftest$ac_exeext
22780if { (ac_try="$ac_link"
22781case "(($ac_try" in
22782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783  *) ac_try_echo=$ac_try;;
22784esac
22785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786  (eval "$ac_link") 2>conftest.er1
22787  ac_status=$?
22788  grep -v '^ *+' conftest.er1 >conftest.err
22789  rm -f conftest.er1
22790  cat conftest.err >&5
22791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792  (exit $ac_status); } && {
22793	 test -z "$ac_c_werror_flag" ||
22794	 test ! -s conftest.err
22795       } && test -s conftest$ac_exeext &&
22796       $as_test_x conftest$ac_exeext; then
22797  ac_cv_func_remove=yes
22798else
22799  echo "$as_me: failed program was:" >&5
22800sed 's/^/| /' conftest.$ac_ext >&5
22801
22802	ac_cv_func_remove=no
22803fi
22804
22805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22806      conftest$ac_exeext conftest.$ac_ext
22807fi
22808{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22809echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22810
22811    if test $ac_cv_func_remove = no; then
22812      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22813echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22814if test "${ac_cv_lib_posix_remove+set}" = set; then
22815  echo $ECHO_N "(cached) $ECHO_C" >&6
22816else
22817  ac_check_lib_save_LIBS=$LIBS
22818LIBS="-lposix  $LIBS"
22819cat >conftest.$ac_ext <<_ACEOF
22820/* confdefs.h.  */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h.  */
22825
22826/* Override any GCC internal prototype to avoid an error.
22827   Use char because int might match the return type of a GCC
22828   builtin and then its argument prototype would still apply.  */
22829#ifdef __cplusplus
22830extern "C"
22831#endif
22832char remove ();
22833int
22834main ()
22835{
22836return remove ();
22837  ;
22838  return 0;
22839}
22840_ACEOF
22841rm -f conftest.$ac_objext conftest$ac_exeext
22842if { (ac_try="$ac_link"
22843case "(($ac_try" in
22844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845  *) ac_try_echo=$ac_try;;
22846esac
22847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848  (eval "$ac_link") 2>conftest.er1
22849  ac_status=$?
22850  grep -v '^ *+' conftest.er1 >conftest.err
22851  rm -f conftest.er1
22852  cat conftest.err >&5
22853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854  (exit $ac_status); } && {
22855	 test -z "$ac_c_werror_flag" ||
22856	 test ! -s conftest.err
22857       } && test -s conftest$ac_exeext &&
22858       $as_test_x conftest$ac_exeext; then
22859  ac_cv_lib_posix_remove=yes
22860else
22861  echo "$as_me: failed program was:" >&5
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
22864	ac_cv_lib_posix_remove=no
22865fi
22866
22867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22868      conftest$ac_exeext conftest.$ac_ext
22869LIBS=$ac_check_lib_save_LIBS
22870fi
22871{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22872echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22873if test $ac_cv_lib_posix_remove = yes; then
22874  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22875fi
22876
22877    fi
22878
22879    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22880    { echo "$as_me:$LINENO: checking for shmat" >&5
22881echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22882if test "${ac_cv_func_shmat+set}" = set; then
22883  echo $ECHO_N "(cached) $ECHO_C" >&6
22884else
22885  cat >conftest.$ac_ext <<_ACEOF
22886/* confdefs.h.  */
22887_ACEOF
22888cat confdefs.h >>conftest.$ac_ext
22889cat >>conftest.$ac_ext <<_ACEOF
22890/* end confdefs.h.  */
22891/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22892   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22893#define shmat innocuous_shmat
22894
22895/* System header to define __stub macros and hopefully few prototypes,
22896    which can conflict with char shmat (); below.
22897    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22898    <limits.h> exists even on freestanding compilers.  */
22899
22900#ifdef __STDC__
22901# include <limits.h>
22902#else
22903# include <assert.h>
22904#endif
22905
22906#undef shmat
22907
22908/* Override any GCC internal prototype to avoid an error.
22909   Use char because int might match the return type of a GCC
22910   builtin and then its argument prototype would still apply.  */
22911#ifdef __cplusplus
22912extern "C"
22913#endif
22914char shmat ();
22915/* The GNU C library defines this for functions which it implements
22916    to always fail with ENOSYS.  Some functions are actually named
22917    something starting with __ and the normal name is an alias.  */
22918#if defined __stub_shmat || defined __stub___shmat
22919choke me
22920#endif
22921
22922int
22923main ()
22924{
22925return shmat ();
22926  ;
22927  return 0;
22928}
22929_ACEOF
22930rm -f conftest.$ac_objext conftest$ac_exeext
22931if { (ac_try="$ac_link"
22932case "(($ac_try" in
22933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934  *) ac_try_echo=$ac_try;;
22935esac
22936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937  (eval "$ac_link") 2>conftest.er1
22938  ac_status=$?
22939  grep -v '^ *+' conftest.er1 >conftest.err
22940  rm -f conftest.er1
22941  cat conftest.err >&5
22942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943  (exit $ac_status); } && {
22944	 test -z "$ac_c_werror_flag" ||
22945	 test ! -s conftest.err
22946       } && test -s conftest$ac_exeext &&
22947       $as_test_x conftest$ac_exeext; then
22948  ac_cv_func_shmat=yes
22949else
22950  echo "$as_me: failed program was:" >&5
22951sed 's/^/| /' conftest.$ac_ext >&5
22952
22953	ac_cv_func_shmat=no
22954fi
22955
22956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22957      conftest$ac_exeext conftest.$ac_ext
22958fi
22959{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22960echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22961
22962    if test $ac_cv_func_shmat = no; then
22963      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22964echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22965if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22966  echo $ECHO_N "(cached) $ECHO_C" >&6
22967else
22968  ac_check_lib_save_LIBS=$LIBS
22969LIBS="-lipc  $LIBS"
22970cat >conftest.$ac_ext <<_ACEOF
22971/* confdefs.h.  */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h.  */
22976
22977/* Override any GCC internal prototype to avoid an error.
22978   Use char because int might match the return type of a GCC
22979   builtin and then its argument prototype would still apply.  */
22980#ifdef __cplusplus
22981extern "C"
22982#endif
22983char shmat ();
22984int
22985main ()
22986{
22987return shmat ();
22988  ;
22989  return 0;
22990}
22991_ACEOF
22992rm -f conftest.$ac_objext conftest$ac_exeext
22993if { (ac_try="$ac_link"
22994case "(($ac_try" in
22995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996  *) ac_try_echo=$ac_try;;
22997esac
22998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999  (eval "$ac_link") 2>conftest.er1
23000  ac_status=$?
23001  grep -v '^ *+' conftest.er1 >conftest.err
23002  rm -f conftest.er1
23003  cat conftest.err >&5
23004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005  (exit $ac_status); } && {
23006	 test -z "$ac_c_werror_flag" ||
23007	 test ! -s conftest.err
23008       } && test -s conftest$ac_exeext &&
23009       $as_test_x conftest$ac_exeext; then
23010  ac_cv_lib_ipc_shmat=yes
23011else
23012  echo "$as_me: failed program was:" >&5
23013sed 's/^/| /' conftest.$ac_ext >&5
23014
23015	ac_cv_lib_ipc_shmat=no
23016fi
23017
23018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23019      conftest$ac_exeext conftest.$ac_ext
23020LIBS=$ac_check_lib_save_LIBS
23021fi
23022{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23023echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23024if test $ac_cv_lib_ipc_shmat = yes; then
23025  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23026fi
23027
23028    fi
23029  fi
23030
23031  # Check for libraries that X11R6 Xt/Xaw programs need.
23032  ac_save_LDFLAGS=$LDFLAGS
23033  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23034  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23035  # check for ICE first), but we must link in the order -lSM -lICE or
23036  # we get undefined symbols.  So assume we have SM if we have ICE.
23037  # These have to be linked with before -lX11, unlike the other
23038  # libraries we check for below, so use a different variable.
23039  # John Interrante, Karl Berry
23040  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23041echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23042if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23043  echo $ECHO_N "(cached) $ECHO_C" >&6
23044else
23045  ac_check_lib_save_LIBS=$LIBS
23046LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23047cat >conftest.$ac_ext <<_ACEOF
23048/* confdefs.h.  */
23049_ACEOF
23050cat confdefs.h >>conftest.$ac_ext
23051cat >>conftest.$ac_ext <<_ACEOF
23052/* end confdefs.h.  */
23053
23054/* Override any GCC internal prototype to avoid an error.
23055   Use char because int might match the return type of a GCC
23056   builtin and then its argument prototype would still apply.  */
23057#ifdef __cplusplus
23058extern "C"
23059#endif
23060char IceConnectionNumber ();
23061int
23062main ()
23063{
23064return IceConnectionNumber ();
23065  ;
23066  return 0;
23067}
23068_ACEOF
23069rm -f conftest.$ac_objext conftest$ac_exeext
23070if { (ac_try="$ac_link"
23071case "(($ac_try" in
23072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073  *) ac_try_echo=$ac_try;;
23074esac
23075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076  (eval "$ac_link") 2>conftest.er1
23077  ac_status=$?
23078  grep -v '^ *+' conftest.er1 >conftest.err
23079  rm -f conftest.er1
23080  cat conftest.err >&5
23081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082  (exit $ac_status); } && {
23083	 test -z "$ac_c_werror_flag" ||
23084	 test ! -s conftest.err
23085       } && test -s conftest$ac_exeext &&
23086       $as_test_x conftest$ac_exeext; then
23087  ac_cv_lib_ICE_IceConnectionNumber=yes
23088else
23089  echo "$as_me: failed program was:" >&5
23090sed 's/^/| /' conftest.$ac_ext >&5
23091
23092	ac_cv_lib_ICE_IceConnectionNumber=no
23093fi
23094
23095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23096      conftest$ac_exeext conftest.$ac_ext
23097LIBS=$ac_check_lib_save_LIBS
23098fi
23099{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23100echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23101if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23102  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23103fi
23104
23105  LDFLAGS=$ac_save_LDFLAGS
23106
23107fi
23108
23109
23110{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23111echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23112if test "${ac_cv_c_bigendian+set}" = set; then
23113  echo $ECHO_N "(cached) $ECHO_C" >&6
23114else
23115  # See if sys/param.h defines the BYTE_ORDER macro.
23116cat >conftest.$ac_ext <<_ACEOF
23117/* confdefs.h.  */
23118_ACEOF
23119cat confdefs.h >>conftest.$ac_ext
23120cat >>conftest.$ac_ext <<_ACEOF
23121/* end confdefs.h.  */
23122#include <sys/types.h>
23123#include <sys/param.h>
23124
23125int
23126main ()
23127{
23128#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23129	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23130 bogus endian macros
23131#endif
23132
23133  ;
23134  return 0;
23135}
23136_ACEOF
23137rm -f conftest.$ac_objext
23138if { (ac_try="$ac_compile"
23139case "(($ac_try" in
23140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141  *) ac_try_echo=$ac_try;;
23142esac
23143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144  (eval "$ac_compile") 2>conftest.er1
23145  ac_status=$?
23146  grep -v '^ *+' conftest.er1 >conftest.err
23147  rm -f conftest.er1
23148  cat conftest.err >&5
23149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150  (exit $ac_status); } && {
23151	 test -z "$ac_c_werror_flag" ||
23152	 test ! -s conftest.err
23153       } && test -s conftest.$ac_objext; then
23154  # It does; now see whether it defined to BIG_ENDIAN or not.
23155cat >conftest.$ac_ext <<_ACEOF
23156/* confdefs.h.  */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h.  */
23161#include <sys/types.h>
23162#include <sys/param.h>
23163
23164int
23165main ()
23166{
23167#if BYTE_ORDER != BIG_ENDIAN
23168 not big endian
23169#endif
23170
23171  ;
23172  return 0;
23173}
23174_ACEOF
23175rm -f conftest.$ac_objext
23176if { (ac_try="$ac_compile"
23177case "(($ac_try" in
23178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179  *) ac_try_echo=$ac_try;;
23180esac
23181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182  (eval "$ac_compile") 2>conftest.er1
23183  ac_status=$?
23184  grep -v '^ *+' conftest.er1 >conftest.err
23185  rm -f conftest.er1
23186  cat conftest.err >&5
23187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188  (exit $ac_status); } && {
23189	 test -z "$ac_c_werror_flag" ||
23190	 test ! -s conftest.err
23191       } && test -s conftest.$ac_objext; then
23192  ac_cv_c_bigendian=yes
23193else
23194  echo "$as_me: failed program was:" >&5
23195sed 's/^/| /' conftest.$ac_ext >&5
23196
23197	ac_cv_c_bigendian=no
23198fi
23199
23200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201else
23202  echo "$as_me: failed program was:" >&5
23203sed 's/^/| /' conftest.$ac_ext >&5
23204
23205	# It does not; compile a test program.
23206if test "$cross_compiling" = yes; then
23207  # try to guess the endianness by grepping values into an object file
23208  ac_cv_c_bigendian=unknown
23209  cat >conftest.$ac_ext <<_ACEOF
23210/* confdefs.h.  */
23211_ACEOF
23212cat confdefs.h >>conftest.$ac_ext
23213cat >>conftest.$ac_ext <<_ACEOF
23214/* end confdefs.h.  */
23215short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23216short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23217void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23218short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23219short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23220void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23221int
23222main ()
23223{
23224 _ascii (); _ebcdic ();
23225  ;
23226  return 0;
23227}
23228_ACEOF
23229rm -f conftest.$ac_objext
23230if { (ac_try="$ac_compile"
23231case "(($ac_try" in
23232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233  *) ac_try_echo=$ac_try;;
23234esac
23235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236  (eval "$ac_compile") 2>conftest.er1
23237  ac_status=$?
23238  grep -v '^ *+' conftest.er1 >conftest.err
23239  rm -f conftest.er1
23240  cat conftest.err >&5
23241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242  (exit $ac_status); } && {
23243	 test -z "$ac_c_werror_flag" ||
23244	 test ! -s conftest.err
23245       } && test -s conftest.$ac_objext; then
23246  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23247  ac_cv_c_bigendian=yes
23248fi
23249if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23250  if test "$ac_cv_c_bigendian" = unknown; then
23251    ac_cv_c_bigendian=no
23252  else
23253    # finding both strings is unlikely to happen, but who knows?
23254    ac_cv_c_bigendian=unknown
23255  fi
23256fi
23257else
23258  echo "$as_me: failed program was:" >&5
23259sed 's/^/| /' conftest.$ac_ext >&5
23260
23261
23262fi
23263
23264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265else
23266  cat >conftest.$ac_ext <<_ACEOF
23267/* confdefs.h.  */
23268_ACEOF
23269cat confdefs.h >>conftest.$ac_ext
23270cat >>conftest.$ac_ext <<_ACEOF
23271/* end confdefs.h.  */
23272$ac_includes_default
23273int
23274main ()
23275{
23276
23277  /* Are we little or big endian?  From Harbison&Steele.  */
23278  union
23279  {
23280    long int l;
23281    char c[sizeof (long int)];
23282  } u;
23283  u.l = 1;
23284  return u.c[sizeof (long int) - 1] == 1;
23285
23286  ;
23287  return 0;
23288}
23289_ACEOF
23290rm -f conftest$ac_exeext
23291if { (ac_try="$ac_link"
23292case "(($ac_try" in
23293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294  *) ac_try_echo=$ac_try;;
23295esac
23296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297  (eval "$ac_link") 2>&5
23298  ac_status=$?
23299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23301  { (case "(($ac_try" in
23302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303  *) ac_try_echo=$ac_try;;
23304esac
23305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306  (eval "$ac_try") 2>&5
23307  ac_status=$?
23308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309  (exit $ac_status); }; }; then
23310  ac_cv_c_bigendian=no
23311else
23312  echo "$as_me: program exited with status $ac_status" >&5
23313echo "$as_me: failed program was:" >&5
23314sed 's/^/| /' conftest.$ac_ext >&5
23315
23316( exit $ac_status )
23317ac_cv_c_bigendian=yes
23318fi
23319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23320fi
23321
23322
23323fi
23324
23325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326fi
23327{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23328echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23329case $ac_cv_c_bigendian in
23330  yes)
23331
23332cat >>confdefs.h <<\_ACEOF
23333#define WORDS_BIGENDIAN 1
23334_ACEOF
23335 ;;
23336  no)
23337     ;;
23338  *)
23339    { { echo "$as_me:$LINENO: error: unknown endianness
23340presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23341echo "$as_me: error: unknown endianness
23342presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23343   { (exit 1); exit 1; }; } ;;
23344esac
23345
23346{ echo "$as_me:$LINENO: checking for inline" >&5
23347echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23348if test "${ac_cv_c_inline+set}" = set; then
23349  echo $ECHO_N "(cached) $ECHO_C" >&6
23350else
23351  ac_cv_c_inline=no
23352for ac_kw in inline __inline__ __inline; do
23353  cat >conftest.$ac_ext <<_ACEOF
23354/* confdefs.h.  */
23355_ACEOF
23356cat confdefs.h >>conftest.$ac_ext
23357cat >>conftest.$ac_ext <<_ACEOF
23358/* end confdefs.h.  */
23359#ifndef __cplusplus
23360typedef int foo_t;
23361static $ac_kw foo_t static_foo () {return 0; }
23362$ac_kw foo_t foo () {return 0; }
23363#endif
23364
23365_ACEOF
23366rm -f conftest.$ac_objext
23367if { (ac_try="$ac_compile"
23368case "(($ac_try" in
23369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370  *) ac_try_echo=$ac_try;;
23371esac
23372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373  (eval "$ac_compile") 2>conftest.er1
23374  ac_status=$?
23375  grep -v '^ *+' conftest.er1 >conftest.err
23376  rm -f conftest.er1
23377  cat conftest.err >&5
23378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379  (exit $ac_status); } && {
23380	 test -z "$ac_c_werror_flag" ||
23381	 test ! -s conftest.err
23382       } && test -s conftest.$ac_objext; then
23383  ac_cv_c_inline=$ac_kw
23384else
23385  echo "$as_me: failed program was:" >&5
23386sed 's/^/| /' conftest.$ac_ext >&5
23387
23388
23389fi
23390
23391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392  test "$ac_cv_c_inline" != no && break
23393done
23394
23395fi
23396{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23397echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23398
23399
23400case $ac_cv_c_inline in
23401  inline | yes) ;;
23402  *)
23403    case $ac_cv_c_inline in
23404      no) ac_val=;;
23405      *) ac_val=$ac_cv_c_inline;;
23406    esac
23407    cat >>confdefs.h <<_ACEOF
23408#ifndef __cplusplus
23409#define inline $ac_val
23410#endif
23411_ACEOF
23412    ;;
23413esac
23414
23415{ echo "$as_me:$LINENO: checking for unsigned char" >&5
23416echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23417if test "${ac_cv_type_unsigned_char+set}" = set; then
23418  echo $ECHO_N "(cached) $ECHO_C" >&6
23419else
23420  cat >conftest.$ac_ext <<_ACEOF
23421/* confdefs.h.  */
23422_ACEOF
23423cat confdefs.h >>conftest.$ac_ext
23424cat >>conftest.$ac_ext <<_ACEOF
23425/* end confdefs.h.  */
23426$ac_includes_default
23427typedef unsigned char ac__type_new_;
23428int
23429main ()
23430{
23431if ((ac__type_new_ *) 0)
23432  return 0;
23433if (sizeof (ac__type_new_))
23434  return 0;
23435  ;
23436  return 0;
23437}
23438_ACEOF
23439rm -f conftest.$ac_objext
23440if { (ac_try="$ac_compile"
23441case "(($ac_try" in
23442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443  *) ac_try_echo=$ac_try;;
23444esac
23445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446  (eval "$ac_compile") 2>conftest.er1
23447  ac_status=$?
23448  grep -v '^ *+' conftest.er1 >conftest.err
23449  rm -f conftest.er1
23450  cat conftest.err >&5
23451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452  (exit $ac_status); } && {
23453	 test -z "$ac_c_werror_flag" ||
23454	 test ! -s conftest.err
23455       } && test -s conftest.$ac_objext; then
23456  ac_cv_type_unsigned_char=yes
23457else
23458  echo "$as_me: failed program was:" >&5
23459sed 's/^/| /' conftest.$ac_ext >&5
23460
23461	ac_cv_type_unsigned_char=no
23462fi
23463
23464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23465fi
23466{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23467echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23468
23469# The cast to long int works around a bug in the HP C Compiler
23470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23472# This bug is HP SR number 8606223364.
23473{ echo "$as_me:$LINENO: checking size of unsigned char" >&5
23474echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23475if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23476  echo $ECHO_N "(cached) $ECHO_C" >&6
23477else
23478  if test "$cross_compiling" = yes; then
23479  # Depending upon the size, compute the lo and hi bounds.
23480cat >conftest.$ac_ext <<_ACEOF
23481/* confdefs.h.  */
23482_ACEOF
23483cat confdefs.h >>conftest.$ac_ext
23484cat >>conftest.$ac_ext <<_ACEOF
23485/* end confdefs.h.  */
23486$ac_includes_default
23487   typedef unsigned char ac__type_sizeof_;
23488int
23489main ()
23490{
23491static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23492test_array [0] = 0
23493
23494  ;
23495  return 0;
23496}
23497_ACEOF
23498rm -f conftest.$ac_objext
23499if { (ac_try="$ac_compile"
23500case "(($ac_try" in
23501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502  *) ac_try_echo=$ac_try;;
23503esac
23504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505  (eval "$ac_compile") 2>conftest.er1
23506  ac_status=$?
23507  grep -v '^ *+' conftest.er1 >conftest.err
23508  rm -f conftest.er1
23509  cat conftest.err >&5
23510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511  (exit $ac_status); } && {
23512	 test -z "$ac_c_werror_flag" ||
23513	 test ! -s conftest.err
23514       } && test -s conftest.$ac_objext; then
23515  ac_lo=0 ac_mid=0
23516  while :; do
23517    cat >conftest.$ac_ext <<_ACEOF
23518/* confdefs.h.  */
23519_ACEOF
23520cat confdefs.h >>conftest.$ac_ext
23521cat >>conftest.$ac_ext <<_ACEOF
23522/* end confdefs.h.  */
23523$ac_includes_default
23524   typedef unsigned char ac__type_sizeof_;
23525int
23526main ()
23527{
23528static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23529test_array [0] = 0
23530
23531  ;
23532  return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext
23536if { (ac_try="$ac_compile"
23537case "(($ac_try" in
23538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539  *) ac_try_echo=$ac_try;;
23540esac
23541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542  (eval "$ac_compile") 2>conftest.er1
23543  ac_status=$?
23544  grep -v '^ *+' conftest.er1 >conftest.err
23545  rm -f conftest.er1
23546  cat conftest.err >&5
23547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548  (exit $ac_status); } && {
23549	 test -z "$ac_c_werror_flag" ||
23550	 test ! -s conftest.err
23551       } && test -s conftest.$ac_objext; then
23552  ac_hi=$ac_mid; break
23553else
23554  echo "$as_me: failed program was:" >&5
23555sed 's/^/| /' conftest.$ac_ext >&5
23556
23557	ac_lo=`expr $ac_mid + 1`
23558			if test $ac_lo -le $ac_mid; then
23559			  ac_lo= ac_hi=
23560			  break
23561			fi
23562			ac_mid=`expr 2 '*' $ac_mid + 1`
23563fi
23564
23565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23566  done
23567else
23568  echo "$as_me: failed program was:" >&5
23569sed 's/^/| /' conftest.$ac_ext >&5
23570
23571	cat >conftest.$ac_ext <<_ACEOF
23572/* confdefs.h.  */
23573_ACEOF
23574cat confdefs.h >>conftest.$ac_ext
23575cat >>conftest.$ac_ext <<_ACEOF
23576/* end confdefs.h.  */
23577$ac_includes_default
23578   typedef unsigned char ac__type_sizeof_;
23579int
23580main ()
23581{
23582static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23583test_array [0] = 0
23584
23585  ;
23586  return 0;
23587}
23588_ACEOF
23589rm -f conftest.$ac_objext
23590if { (ac_try="$ac_compile"
23591case "(($ac_try" in
23592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593  *) ac_try_echo=$ac_try;;
23594esac
23595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596  (eval "$ac_compile") 2>conftest.er1
23597  ac_status=$?
23598  grep -v '^ *+' conftest.er1 >conftest.err
23599  rm -f conftest.er1
23600  cat conftest.err >&5
23601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602  (exit $ac_status); } && {
23603	 test -z "$ac_c_werror_flag" ||
23604	 test ! -s conftest.err
23605       } && test -s conftest.$ac_objext; then
23606  ac_hi=-1 ac_mid=-1
23607  while :; do
23608    cat >conftest.$ac_ext <<_ACEOF
23609/* confdefs.h.  */
23610_ACEOF
23611cat confdefs.h >>conftest.$ac_ext
23612cat >>conftest.$ac_ext <<_ACEOF
23613/* end confdefs.h.  */
23614$ac_includes_default
23615   typedef unsigned char ac__type_sizeof_;
23616int
23617main ()
23618{
23619static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23620test_array [0] = 0
23621
23622  ;
23623  return 0;
23624}
23625_ACEOF
23626rm -f conftest.$ac_objext
23627if { (ac_try="$ac_compile"
23628case "(($ac_try" in
23629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630  *) ac_try_echo=$ac_try;;
23631esac
23632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633  (eval "$ac_compile") 2>conftest.er1
23634  ac_status=$?
23635  grep -v '^ *+' conftest.er1 >conftest.err
23636  rm -f conftest.er1
23637  cat conftest.err >&5
23638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639  (exit $ac_status); } && {
23640	 test -z "$ac_c_werror_flag" ||
23641	 test ! -s conftest.err
23642       } && test -s conftest.$ac_objext; then
23643  ac_lo=$ac_mid; break
23644else
23645  echo "$as_me: failed program was:" >&5
23646sed 's/^/| /' conftest.$ac_ext >&5
23647
23648	ac_hi=`expr '(' $ac_mid ')' - 1`
23649			if test $ac_mid -le $ac_hi; then
23650			  ac_lo= ac_hi=
23651			  break
23652			fi
23653			ac_mid=`expr 2 '*' $ac_mid`
23654fi
23655
23656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657  done
23658else
23659  echo "$as_me: failed program was:" >&5
23660sed 's/^/| /' conftest.$ac_ext >&5
23661
23662	ac_lo= ac_hi=
23663fi
23664
23665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666fi
23667
23668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669# Binary search between lo and hi bounds.
23670while test "x$ac_lo" != "x$ac_hi"; do
23671  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23672  cat >conftest.$ac_ext <<_ACEOF
23673/* confdefs.h.  */
23674_ACEOF
23675cat confdefs.h >>conftest.$ac_ext
23676cat >>conftest.$ac_ext <<_ACEOF
23677/* end confdefs.h.  */
23678$ac_includes_default
23679   typedef unsigned char ac__type_sizeof_;
23680int
23681main ()
23682{
23683static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23684test_array [0] = 0
23685
23686  ;
23687  return 0;
23688}
23689_ACEOF
23690rm -f conftest.$ac_objext
23691if { (ac_try="$ac_compile"
23692case "(($ac_try" in
23693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694  *) ac_try_echo=$ac_try;;
23695esac
23696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697  (eval "$ac_compile") 2>conftest.er1
23698  ac_status=$?
23699  grep -v '^ *+' conftest.er1 >conftest.err
23700  rm -f conftest.er1
23701  cat conftest.err >&5
23702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703  (exit $ac_status); } && {
23704	 test -z "$ac_c_werror_flag" ||
23705	 test ! -s conftest.err
23706       } && test -s conftest.$ac_objext; then
23707  ac_hi=$ac_mid
23708else
23709  echo "$as_me: failed program was:" >&5
23710sed 's/^/| /' conftest.$ac_ext >&5
23711
23712	ac_lo=`expr '(' $ac_mid ')' + 1`
23713fi
23714
23715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23716done
23717case $ac_lo in
23718?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23719'') if test "$ac_cv_type_unsigned_char" = yes; then
23720     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23721See \`config.log' for more details." >&5
23722echo "$as_me: error: cannot compute sizeof (unsigned char)
23723See \`config.log' for more details." >&2;}
23724   { (exit 77); exit 77; }; }
23725   else
23726     ac_cv_sizeof_unsigned_char=0
23727   fi ;;
23728esac
23729else
23730  cat >conftest.$ac_ext <<_ACEOF
23731/* confdefs.h.  */
23732_ACEOF
23733cat confdefs.h >>conftest.$ac_ext
23734cat >>conftest.$ac_ext <<_ACEOF
23735/* end confdefs.h.  */
23736$ac_includes_default
23737   typedef unsigned char ac__type_sizeof_;
23738static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23739static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23740#include <stdio.h>
23741#include <stdlib.h>
23742int
23743main ()
23744{
23745
23746  FILE *f = fopen ("conftest.val", "w");
23747  if (! f)
23748    return 1;
23749  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23750    {
23751      long int i = longval ();
23752      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23753	return 1;
23754      fprintf (f, "%ld\n", i);
23755    }
23756  else
23757    {
23758      unsigned long int i = ulongval ();
23759      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23760	return 1;
23761      fprintf (f, "%lu\n", i);
23762    }
23763  return ferror (f) || fclose (f) != 0;
23764
23765  ;
23766  return 0;
23767}
23768_ACEOF
23769rm -f conftest$ac_exeext
23770if { (ac_try="$ac_link"
23771case "(($ac_try" in
23772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773  *) ac_try_echo=$ac_try;;
23774esac
23775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776  (eval "$ac_link") 2>&5
23777  ac_status=$?
23778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23780  { (case "(($ac_try" in
23781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782  *) ac_try_echo=$ac_try;;
23783esac
23784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785  (eval "$ac_try") 2>&5
23786  ac_status=$?
23787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788  (exit $ac_status); }; }; then
23789  ac_cv_sizeof_unsigned_char=`cat conftest.val`
23790else
23791  echo "$as_me: program exited with status $ac_status" >&5
23792echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795( exit $ac_status )
23796if test "$ac_cv_type_unsigned_char" = yes; then
23797     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23798See \`config.log' for more details." >&5
23799echo "$as_me: error: cannot compute sizeof (unsigned char)
23800See \`config.log' for more details." >&2;}
23801   { (exit 77); exit 77; }; }
23802   else
23803     ac_cv_sizeof_unsigned_char=0
23804   fi
23805fi
23806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23807fi
23808rm -f conftest.val
23809fi
23810{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23811echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23812
23813
23814
23815cat >>confdefs.h <<_ACEOF
23816#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23817_ACEOF
23818
23819
23820{ echo "$as_me:$LINENO: checking for unsigned short" >&5
23821echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23822if test "${ac_cv_type_unsigned_short+set}" = set; then
23823  echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825  cat >conftest.$ac_ext <<_ACEOF
23826/* confdefs.h.  */
23827_ACEOF
23828cat confdefs.h >>conftest.$ac_ext
23829cat >>conftest.$ac_ext <<_ACEOF
23830/* end confdefs.h.  */
23831$ac_includes_default
23832typedef unsigned short ac__type_new_;
23833int
23834main ()
23835{
23836if ((ac__type_new_ *) 0)
23837  return 0;
23838if (sizeof (ac__type_new_))
23839  return 0;
23840  ;
23841  return 0;
23842}
23843_ACEOF
23844rm -f conftest.$ac_objext
23845if { (ac_try="$ac_compile"
23846case "(($ac_try" in
23847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848  *) ac_try_echo=$ac_try;;
23849esac
23850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851  (eval "$ac_compile") 2>conftest.er1
23852  ac_status=$?
23853  grep -v '^ *+' conftest.er1 >conftest.err
23854  rm -f conftest.er1
23855  cat conftest.err >&5
23856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857  (exit $ac_status); } && {
23858	 test -z "$ac_c_werror_flag" ||
23859	 test ! -s conftest.err
23860       } && test -s conftest.$ac_objext; then
23861  ac_cv_type_unsigned_short=yes
23862else
23863  echo "$as_me: failed program was:" >&5
23864sed 's/^/| /' conftest.$ac_ext >&5
23865
23866	ac_cv_type_unsigned_short=no
23867fi
23868
23869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870fi
23871{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23872echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23873
23874# The cast to long int works around a bug in the HP C Compiler
23875# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23876# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23877# This bug is HP SR number 8606223364.
23878{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
23879echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23880if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23881  echo $ECHO_N "(cached) $ECHO_C" >&6
23882else
23883  if test "$cross_compiling" = yes; then
23884  # Depending upon the size, compute the lo and hi bounds.
23885cat >conftest.$ac_ext <<_ACEOF
23886/* confdefs.h.  */
23887_ACEOF
23888cat confdefs.h >>conftest.$ac_ext
23889cat >>conftest.$ac_ext <<_ACEOF
23890/* end confdefs.h.  */
23891$ac_includes_default
23892   typedef unsigned short ac__type_sizeof_;
23893int
23894main ()
23895{
23896static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23897test_array [0] = 0
23898
23899  ;
23900  return 0;
23901}
23902_ACEOF
23903rm -f conftest.$ac_objext
23904if { (ac_try="$ac_compile"
23905case "(($ac_try" in
23906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907  *) ac_try_echo=$ac_try;;
23908esac
23909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910  (eval "$ac_compile") 2>conftest.er1
23911  ac_status=$?
23912  grep -v '^ *+' conftest.er1 >conftest.err
23913  rm -f conftest.er1
23914  cat conftest.err >&5
23915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916  (exit $ac_status); } && {
23917	 test -z "$ac_c_werror_flag" ||
23918	 test ! -s conftest.err
23919       } && test -s conftest.$ac_objext; then
23920  ac_lo=0 ac_mid=0
23921  while :; do
23922    cat >conftest.$ac_ext <<_ACEOF
23923/* confdefs.h.  */
23924_ACEOF
23925cat confdefs.h >>conftest.$ac_ext
23926cat >>conftest.$ac_ext <<_ACEOF
23927/* end confdefs.h.  */
23928$ac_includes_default
23929   typedef unsigned short ac__type_sizeof_;
23930int
23931main ()
23932{
23933static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23934test_array [0] = 0
23935
23936  ;
23937  return 0;
23938}
23939_ACEOF
23940rm -f conftest.$ac_objext
23941if { (ac_try="$ac_compile"
23942case "(($ac_try" in
23943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944  *) ac_try_echo=$ac_try;;
23945esac
23946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947  (eval "$ac_compile") 2>conftest.er1
23948  ac_status=$?
23949  grep -v '^ *+' conftest.er1 >conftest.err
23950  rm -f conftest.er1
23951  cat conftest.err >&5
23952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953  (exit $ac_status); } && {
23954	 test -z "$ac_c_werror_flag" ||
23955	 test ! -s conftest.err
23956       } && test -s conftest.$ac_objext; then
23957  ac_hi=$ac_mid; break
23958else
23959  echo "$as_me: failed program was:" >&5
23960sed 's/^/| /' conftest.$ac_ext >&5
23961
23962	ac_lo=`expr $ac_mid + 1`
23963			if test $ac_lo -le $ac_mid; then
23964			  ac_lo= ac_hi=
23965			  break
23966			fi
23967			ac_mid=`expr 2 '*' $ac_mid + 1`
23968fi
23969
23970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23971  done
23972else
23973  echo "$as_me: failed program was:" >&5
23974sed 's/^/| /' conftest.$ac_ext >&5
23975
23976	cat >conftest.$ac_ext <<_ACEOF
23977/* confdefs.h.  */
23978_ACEOF
23979cat confdefs.h >>conftest.$ac_ext
23980cat >>conftest.$ac_ext <<_ACEOF
23981/* end confdefs.h.  */
23982$ac_includes_default
23983   typedef unsigned short ac__type_sizeof_;
23984int
23985main ()
23986{
23987static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23988test_array [0] = 0
23989
23990  ;
23991  return 0;
23992}
23993_ACEOF
23994rm -f conftest.$ac_objext
23995if { (ac_try="$ac_compile"
23996case "(($ac_try" in
23997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998  *) ac_try_echo=$ac_try;;
23999esac
24000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001  (eval "$ac_compile") 2>conftest.er1
24002  ac_status=$?
24003  grep -v '^ *+' conftest.er1 >conftest.err
24004  rm -f conftest.er1
24005  cat conftest.err >&5
24006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007  (exit $ac_status); } && {
24008	 test -z "$ac_c_werror_flag" ||
24009	 test ! -s conftest.err
24010       } && test -s conftest.$ac_objext; then
24011  ac_hi=-1 ac_mid=-1
24012  while :; do
24013    cat >conftest.$ac_ext <<_ACEOF
24014/* confdefs.h.  */
24015_ACEOF
24016cat confdefs.h >>conftest.$ac_ext
24017cat >>conftest.$ac_ext <<_ACEOF
24018/* end confdefs.h.  */
24019$ac_includes_default
24020   typedef unsigned short ac__type_sizeof_;
24021int
24022main ()
24023{
24024static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24025test_array [0] = 0
24026
24027  ;
24028  return 0;
24029}
24030_ACEOF
24031rm -f conftest.$ac_objext
24032if { (ac_try="$ac_compile"
24033case "(($ac_try" in
24034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035  *) ac_try_echo=$ac_try;;
24036esac
24037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038  (eval "$ac_compile") 2>conftest.er1
24039  ac_status=$?
24040  grep -v '^ *+' conftest.er1 >conftest.err
24041  rm -f conftest.er1
24042  cat conftest.err >&5
24043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044  (exit $ac_status); } && {
24045	 test -z "$ac_c_werror_flag" ||
24046	 test ! -s conftest.err
24047       } && test -s conftest.$ac_objext; then
24048  ac_lo=$ac_mid; break
24049else
24050  echo "$as_me: failed program was:" >&5
24051sed 's/^/| /' conftest.$ac_ext >&5
24052
24053	ac_hi=`expr '(' $ac_mid ')' - 1`
24054			if test $ac_mid -le $ac_hi; then
24055			  ac_lo= ac_hi=
24056			  break
24057			fi
24058			ac_mid=`expr 2 '*' $ac_mid`
24059fi
24060
24061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062  done
24063else
24064  echo "$as_me: failed program was:" >&5
24065sed 's/^/| /' conftest.$ac_ext >&5
24066
24067	ac_lo= ac_hi=
24068fi
24069
24070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071fi
24072
24073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074# Binary search between lo and hi bounds.
24075while test "x$ac_lo" != "x$ac_hi"; do
24076  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24077  cat >conftest.$ac_ext <<_ACEOF
24078/* confdefs.h.  */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h.  */
24083$ac_includes_default
24084   typedef unsigned short ac__type_sizeof_;
24085int
24086main ()
24087{
24088static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24089test_array [0] = 0
24090
24091  ;
24092  return 0;
24093}
24094_ACEOF
24095rm -f conftest.$ac_objext
24096if { (ac_try="$ac_compile"
24097case "(($ac_try" in
24098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099  *) ac_try_echo=$ac_try;;
24100esac
24101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102  (eval "$ac_compile") 2>conftest.er1
24103  ac_status=$?
24104  grep -v '^ *+' conftest.er1 >conftest.err
24105  rm -f conftest.er1
24106  cat conftest.err >&5
24107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108  (exit $ac_status); } && {
24109	 test -z "$ac_c_werror_flag" ||
24110	 test ! -s conftest.err
24111       } && test -s conftest.$ac_objext; then
24112  ac_hi=$ac_mid
24113else
24114  echo "$as_me: failed program was:" >&5
24115sed 's/^/| /' conftest.$ac_ext >&5
24116
24117	ac_lo=`expr '(' $ac_mid ')' + 1`
24118fi
24119
24120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121done
24122case $ac_lo in
24123?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24124'') if test "$ac_cv_type_unsigned_short" = yes; then
24125     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24126See \`config.log' for more details." >&5
24127echo "$as_me: error: cannot compute sizeof (unsigned short)
24128See \`config.log' for more details." >&2;}
24129   { (exit 77); exit 77; }; }
24130   else
24131     ac_cv_sizeof_unsigned_short=0
24132   fi ;;
24133esac
24134else
24135  cat >conftest.$ac_ext <<_ACEOF
24136/* confdefs.h.  */
24137_ACEOF
24138cat confdefs.h >>conftest.$ac_ext
24139cat >>conftest.$ac_ext <<_ACEOF
24140/* end confdefs.h.  */
24141$ac_includes_default
24142   typedef unsigned short ac__type_sizeof_;
24143static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24144static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24145#include <stdio.h>
24146#include <stdlib.h>
24147int
24148main ()
24149{
24150
24151  FILE *f = fopen ("conftest.val", "w");
24152  if (! f)
24153    return 1;
24154  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24155    {
24156      long int i = longval ();
24157      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24158	return 1;
24159      fprintf (f, "%ld\n", i);
24160    }
24161  else
24162    {
24163      unsigned long int i = ulongval ();
24164      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24165	return 1;
24166      fprintf (f, "%lu\n", i);
24167    }
24168  return ferror (f) || fclose (f) != 0;
24169
24170  ;
24171  return 0;
24172}
24173_ACEOF
24174rm -f conftest$ac_exeext
24175if { (ac_try="$ac_link"
24176case "(($ac_try" in
24177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178  *) ac_try_echo=$ac_try;;
24179esac
24180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181  (eval "$ac_link") 2>&5
24182  ac_status=$?
24183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24185  { (case "(($ac_try" in
24186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187  *) ac_try_echo=$ac_try;;
24188esac
24189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190  (eval "$ac_try") 2>&5
24191  ac_status=$?
24192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193  (exit $ac_status); }; }; then
24194  ac_cv_sizeof_unsigned_short=`cat conftest.val`
24195else
24196  echo "$as_me: program exited with status $ac_status" >&5
24197echo "$as_me: failed program was:" >&5
24198sed 's/^/| /' conftest.$ac_ext >&5
24199
24200( exit $ac_status )
24201if test "$ac_cv_type_unsigned_short" = yes; then
24202     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24203See \`config.log' for more details." >&5
24204echo "$as_me: error: cannot compute sizeof (unsigned short)
24205See \`config.log' for more details." >&2;}
24206   { (exit 77); exit 77; }; }
24207   else
24208     ac_cv_sizeof_unsigned_short=0
24209   fi
24210fi
24211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24212fi
24213rm -f conftest.val
24214fi
24215{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24216echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24217
24218
24219
24220cat >>confdefs.h <<_ACEOF
24221#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24222_ACEOF
24223
24224
24225{ echo "$as_me:$LINENO: checking for unsigned int" >&5
24226echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24227if test "${ac_cv_type_unsigned_int+set}" = set; then
24228  echo $ECHO_N "(cached) $ECHO_C" >&6
24229else
24230  cat >conftest.$ac_ext <<_ACEOF
24231/* confdefs.h.  */
24232_ACEOF
24233cat confdefs.h >>conftest.$ac_ext
24234cat >>conftest.$ac_ext <<_ACEOF
24235/* end confdefs.h.  */
24236$ac_includes_default
24237typedef unsigned int ac__type_new_;
24238int
24239main ()
24240{
24241if ((ac__type_new_ *) 0)
24242  return 0;
24243if (sizeof (ac__type_new_))
24244  return 0;
24245  ;
24246  return 0;
24247}
24248_ACEOF
24249rm -f conftest.$ac_objext
24250if { (ac_try="$ac_compile"
24251case "(($ac_try" in
24252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253  *) ac_try_echo=$ac_try;;
24254esac
24255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256  (eval "$ac_compile") 2>conftest.er1
24257  ac_status=$?
24258  grep -v '^ *+' conftest.er1 >conftest.err
24259  rm -f conftest.er1
24260  cat conftest.err >&5
24261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262  (exit $ac_status); } && {
24263	 test -z "$ac_c_werror_flag" ||
24264	 test ! -s conftest.err
24265       } && test -s conftest.$ac_objext; then
24266  ac_cv_type_unsigned_int=yes
24267else
24268  echo "$as_me: failed program was:" >&5
24269sed 's/^/| /' conftest.$ac_ext >&5
24270
24271	ac_cv_type_unsigned_int=no
24272fi
24273
24274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24275fi
24276{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24277echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24278
24279# The cast to long int works around a bug in the HP C Compiler
24280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24282# This bug is HP SR number 8606223364.
24283{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
24284echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24285if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24286  echo $ECHO_N "(cached) $ECHO_C" >&6
24287else
24288  if test "$cross_compiling" = yes; then
24289  # Depending upon the size, compute the lo and hi bounds.
24290cat >conftest.$ac_ext <<_ACEOF
24291/* confdefs.h.  */
24292_ACEOF
24293cat confdefs.h >>conftest.$ac_ext
24294cat >>conftest.$ac_ext <<_ACEOF
24295/* end confdefs.h.  */
24296$ac_includes_default
24297   typedef unsigned int ac__type_sizeof_;
24298int
24299main ()
24300{
24301static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24302test_array [0] = 0
24303
24304  ;
24305  return 0;
24306}
24307_ACEOF
24308rm -f conftest.$ac_objext
24309if { (ac_try="$ac_compile"
24310case "(($ac_try" in
24311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312  *) ac_try_echo=$ac_try;;
24313esac
24314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315  (eval "$ac_compile") 2>conftest.er1
24316  ac_status=$?
24317  grep -v '^ *+' conftest.er1 >conftest.err
24318  rm -f conftest.er1
24319  cat conftest.err >&5
24320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321  (exit $ac_status); } && {
24322	 test -z "$ac_c_werror_flag" ||
24323	 test ! -s conftest.err
24324       } && test -s conftest.$ac_objext; then
24325  ac_lo=0 ac_mid=0
24326  while :; do
24327    cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h.  */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h.  */
24333$ac_includes_default
24334   typedef unsigned int ac__type_sizeof_;
24335int
24336main ()
24337{
24338static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24339test_array [0] = 0
24340
24341  ;
24342  return 0;
24343}
24344_ACEOF
24345rm -f conftest.$ac_objext
24346if { (ac_try="$ac_compile"
24347case "(($ac_try" in
24348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349  *) ac_try_echo=$ac_try;;
24350esac
24351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24352  (eval "$ac_compile") 2>conftest.er1
24353  ac_status=$?
24354  grep -v '^ *+' conftest.er1 >conftest.err
24355  rm -f conftest.er1
24356  cat conftest.err >&5
24357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358  (exit $ac_status); } && {
24359	 test -z "$ac_c_werror_flag" ||
24360	 test ! -s conftest.err
24361       } && test -s conftest.$ac_objext; then
24362  ac_hi=$ac_mid; break
24363else
24364  echo "$as_me: failed program was:" >&5
24365sed 's/^/| /' conftest.$ac_ext >&5
24366
24367	ac_lo=`expr $ac_mid + 1`
24368			if test $ac_lo -le $ac_mid; then
24369			  ac_lo= ac_hi=
24370			  break
24371			fi
24372			ac_mid=`expr 2 '*' $ac_mid + 1`
24373fi
24374
24375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376  done
24377else
24378  echo "$as_me: failed program was:" >&5
24379sed 's/^/| /' conftest.$ac_ext >&5
24380
24381	cat >conftest.$ac_ext <<_ACEOF
24382/* confdefs.h.  */
24383_ACEOF
24384cat confdefs.h >>conftest.$ac_ext
24385cat >>conftest.$ac_ext <<_ACEOF
24386/* end confdefs.h.  */
24387$ac_includes_default
24388   typedef unsigned int ac__type_sizeof_;
24389int
24390main ()
24391{
24392static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24393test_array [0] = 0
24394
24395  ;
24396  return 0;
24397}
24398_ACEOF
24399rm -f conftest.$ac_objext
24400if { (ac_try="$ac_compile"
24401case "(($ac_try" in
24402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403  *) ac_try_echo=$ac_try;;
24404esac
24405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406  (eval "$ac_compile") 2>conftest.er1
24407  ac_status=$?
24408  grep -v '^ *+' conftest.er1 >conftest.err
24409  rm -f conftest.er1
24410  cat conftest.err >&5
24411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412  (exit $ac_status); } && {
24413	 test -z "$ac_c_werror_flag" ||
24414	 test ! -s conftest.err
24415       } && test -s conftest.$ac_objext; then
24416  ac_hi=-1 ac_mid=-1
24417  while :; do
24418    cat >conftest.$ac_ext <<_ACEOF
24419/* confdefs.h.  */
24420_ACEOF
24421cat confdefs.h >>conftest.$ac_ext
24422cat >>conftest.$ac_ext <<_ACEOF
24423/* end confdefs.h.  */
24424$ac_includes_default
24425   typedef unsigned int ac__type_sizeof_;
24426int
24427main ()
24428{
24429static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24430test_array [0] = 0
24431
24432  ;
24433  return 0;
24434}
24435_ACEOF
24436rm -f conftest.$ac_objext
24437if { (ac_try="$ac_compile"
24438case "(($ac_try" in
24439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440  *) ac_try_echo=$ac_try;;
24441esac
24442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443  (eval "$ac_compile") 2>conftest.er1
24444  ac_status=$?
24445  grep -v '^ *+' conftest.er1 >conftest.err
24446  rm -f conftest.er1
24447  cat conftest.err >&5
24448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449  (exit $ac_status); } && {
24450	 test -z "$ac_c_werror_flag" ||
24451	 test ! -s conftest.err
24452       } && test -s conftest.$ac_objext; then
24453  ac_lo=$ac_mid; break
24454else
24455  echo "$as_me: failed program was:" >&5
24456sed 's/^/| /' conftest.$ac_ext >&5
24457
24458	ac_hi=`expr '(' $ac_mid ')' - 1`
24459			if test $ac_mid -le $ac_hi; then
24460			  ac_lo= ac_hi=
24461			  break
24462			fi
24463			ac_mid=`expr 2 '*' $ac_mid`
24464fi
24465
24466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467  done
24468else
24469  echo "$as_me: failed program was:" >&5
24470sed 's/^/| /' conftest.$ac_ext >&5
24471
24472	ac_lo= ac_hi=
24473fi
24474
24475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476fi
24477
24478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24479# Binary search between lo and hi bounds.
24480while test "x$ac_lo" != "x$ac_hi"; do
24481  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24482  cat >conftest.$ac_ext <<_ACEOF
24483/* confdefs.h.  */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
24487/* end confdefs.h.  */
24488$ac_includes_default
24489   typedef unsigned int ac__type_sizeof_;
24490int
24491main ()
24492{
24493static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24494test_array [0] = 0
24495
24496  ;
24497  return 0;
24498}
24499_ACEOF
24500rm -f conftest.$ac_objext
24501if { (ac_try="$ac_compile"
24502case "(($ac_try" in
24503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504  *) ac_try_echo=$ac_try;;
24505esac
24506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507  (eval "$ac_compile") 2>conftest.er1
24508  ac_status=$?
24509  grep -v '^ *+' conftest.er1 >conftest.err
24510  rm -f conftest.er1
24511  cat conftest.err >&5
24512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513  (exit $ac_status); } && {
24514	 test -z "$ac_c_werror_flag" ||
24515	 test ! -s conftest.err
24516       } && test -s conftest.$ac_objext; then
24517  ac_hi=$ac_mid
24518else
24519  echo "$as_me: failed program was:" >&5
24520sed 's/^/| /' conftest.$ac_ext >&5
24521
24522	ac_lo=`expr '(' $ac_mid ')' + 1`
24523fi
24524
24525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526done
24527case $ac_lo in
24528?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24529'') if test "$ac_cv_type_unsigned_int" = yes; then
24530     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24531See \`config.log' for more details." >&5
24532echo "$as_me: error: cannot compute sizeof (unsigned int)
24533See \`config.log' for more details." >&2;}
24534   { (exit 77); exit 77; }; }
24535   else
24536     ac_cv_sizeof_unsigned_int=0
24537   fi ;;
24538esac
24539else
24540  cat >conftest.$ac_ext <<_ACEOF
24541/* confdefs.h.  */
24542_ACEOF
24543cat confdefs.h >>conftest.$ac_ext
24544cat >>conftest.$ac_ext <<_ACEOF
24545/* end confdefs.h.  */
24546$ac_includes_default
24547   typedef unsigned int ac__type_sizeof_;
24548static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24549static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24550#include <stdio.h>
24551#include <stdlib.h>
24552int
24553main ()
24554{
24555
24556  FILE *f = fopen ("conftest.val", "w");
24557  if (! f)
24558    return 1;
24559  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24560    {
24561      long int i = longval ();
24562      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24563	return 1;
24564      fprintf (f, "%ld\n", i);
24565    }
24566  else
24567    {
24568      unsigned long int i = ulongval ();
24569      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24570	return 1;
24571      fprintf (f, "%lu\n", i);
24572    }
24573  return ferror (f) || fclose (f) != 0;
24574
24575  ;
24576  return 0;
24577}
24578_ACEOF
24579rm -f conftest$ac_exeext
24580if { (ac_try="$ac_link"
24581case "(($ac_try" in
24582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583  *) ac_try_echo=$ac_try;;
24584esac
24585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586  (eval "$ac_link") 2>&5
24587  ac_status=$?
24588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24590  { (case "(($ac_try" in
24591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24592  *) ac_try_echo=$ac_try;;
24593esac
24594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24595  (eval "$ac_try") 2>&5
24596  ac_status=$?
24597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598  (exit $ac_status); }; }; then
24599  ac_cv_sizeof_unsigned_int=`cat conftest.val`
24600else
24601  echo "$as_me: program exited with status $ac_status" >&5
24602echo "$as_me: failed program was:" >&5
24603sed 's/^/| /' conftest.$ac_ext >&5
24604
24605( exit $ac_status )
24606if test "$ac_cv_type_unsigned_int" = yes; then
24607     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24608See \`config.log' for more details." >&5
24609echo "$as_me: error: cannot compute sizeof (unsigned int)
24610See \`config.log' for more details." >&2;}
24611   { (exit 77); exit 77; }; }
24612   else
24613     ac_cv_sizeof_unsigned_int=0
24614   fi
24615fi
24616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24617fi
24618rm -f conftest.val
24619fi
24620{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24621echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24622
24623
24624
24625cat >>confdefs.h <<_ACEOF
24626#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24627_ACEOF
24628
24629
24630{ echo "$as_me:$LINENO: checking for unsigned long" >&5
24631echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24632if test "${ac_cv_type_unsigned_long+set}" = set; then
24633  echo $ECHO_N "(cached) $ECHO_C" >&6
24634else
24635  cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h.  */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h.  */
24641$ac_includes_default
24642typedef unsigned long ac__type_new_;
24643int
24644main ()
24645{
24646if ((ac__type_new_ *) 0)
24647  return 0;
24648if (sizeof (ac__type_new_))
24649  return 0;
24650  ;
24651  return 0;
24652}
24653_ACEOF
24654rm -f conftest.$ac_objext
24655if { (ac_try="$ac_compile"
24656case "(($ac_try" in
24657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658  *) ac_try_echo=$ac_try;;
24659esac
24660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661  (eval "$ac_compile") 2>conftest.er1
24662  ac_status=$?
24663  grep -v '^ *+' conftest.er1 >conftest.err
24664  rm -f conftest.er1
24665  cat conftest.err >&5
24666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667  (exit $ac_status); } && {
24668	 test -z "$ac_c_werror_flag" ||
24669	 test ! -s conftest.err
24670       } && test -s conftest.$ac_objext; then
24671  ac_cv_type_unsigned_long=yes
24672else
24673  echo "$as_me: failed program was:" >&5
24674sed 's/^/| /' conftest.$ac_ext >&5
24675
24676	ac_cv_type_unsigned_long=no
24677fi
24678
24679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24680fi
24681{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24682echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24683
24684# The cast to long int works around a bug in the HP C Compiler
24685# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24686# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24687# This bug is HP SR number 8606223364.
24688{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
24689echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24690if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24691  echo $ECHO_N "(cached) $ECHO_C" >&6
24692else
24693  if test "$cross_compiling" = yes; then
24694  # Depending upon the size, compute the lo and hi bounds.
24695cat >conftest.$ac_ext <<_ACEOF
24696/* confdefs.h.  */
24697_ACEOF
24698cat confdefs.h >>conftest.$ac_ext
24699cat >>conftest.$ac_ext <<_ACEOF
24700/* end confdefs.h.  */
24701$ac_includes_default
24702   typedef unsigned long ac__type_sizeof_;
24703int
24704main ()
24705{
24706static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24707test_array [0] = 0
24708
24709  ;
24710  return 0;
24711}
24712_ACEOF
24713rm -f conftest.$ac_objext
24714if { (ac_try="$ac_compile"
24715case "(($ac_try" in
24716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717  *) ac_try_echo=$ac_try;;
24718esac
24719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720  (eval "$ac_compile") 2>conftest.er1
24721  ac_status=$?
24722  grep -v '^ *+' conftest.er1 >conftest.err
24723  rm -f conftest.er1
24724  cat conftest.err >&5
24725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726  (exit $ac_status); } && {
24727	 test -z "$ac_c_werror_flag" ||
24728	 test ! -s conftest.err
24729       } && test -s conftest.$ac_objext; then
24730  ac_lo=0 ac_mid=0
24731  while :; do
24732    cat >conftest.$ac_ext <<_ACEOF
24733/* confdefs.h.  */
24734_ACEOF
24735cat confdefs.h >>conftest.$ac_ext
24736cat >>conftest.$ac_ext <<_ACEOF
24737/* end confdefs.h.  */
24738$ac_includes_default
24739   typedef unsigned long ac__type_sizeof_;
24740int
24741main ()
24742{
24743static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24744test_array [0] = 0
24745
24746  ;
24747  return 0;
24748}
24749_ACEOF
24750rm -f conftest.$ac_objext
24751if { (ac_try="$ac_compile"
24752case "(($ac_try" in
24753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754  *) ac_try_echo=$ac_try;;
24755esac
24756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757  (eval "$ac_compile") 2>conftest.er1
24758  ac_status=$?
24759  grep -v '^ *+' conftest.er1 >conftest.err
24760  rm -f conftest.er1
24761  cat conftest.err >&5
24762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763  (exit $ac_status); } && {
24764	 test -z "$ac_c_werror_flag" ||
24765	 test ! -s conftest.err
24766       } && test -s conftest.$ac_objext; then
24767  ac_hi=$ac_mid; break
24768else
24769  echo "$as_me: failed program was:" >&5
24770sed 's/^/| /' conftest.$ac_ext >&5
24771
24772	ac_lo=`expr $ac_mid + 1`
24773			if test $ac_lo -le $ac_mid; then
24774			  ac_lo= ac_hi=
24775			  break
24776			fi
24777			ac_mid=`expr 2 '*' $ac_mid + 1`
24778fi
24779
24780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781  done
24782else
24783  echo "$as_me: failed program was:" >&5
24784sed 's/^/| /' conftest.$ac_ext >&5
24785
24786	cat >conftest.$ac_ext <<_ACEOF
24787/* confdefs.h.  */
24788_ACEOF
24789cat confdefs.h >>conftest.$ac_ext
24790cat >>conftest.$ac_ext <<_ACEOF
24791/* end confdefs.h.  */
24792$ac_includes_default
24793   typedef unsigned long ac__type_sizeof_;
24794int
24795main ()
24796{
24797static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24798test_array [0] = 0
24799
24800  ;
24801  return 0;
24802}
24803_ACEOF
24804rm -f conftest.$ac_objext
24805if { (ac_try="$ac_compile"
24806case "(($ac_try" in
24807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808  *) ac_try_echo=$ac_try;;
24809esac
24810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811  (eval "$ac_compile") 2>conftest.er1
24812  ac_status=$?
24813  grep -v '^ *+' conftest.er1 >conftest.err
24814  rm -f conftest.er1
24815  cat conftest.err >&5
24816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817  (exit $ac_status); } && {
24818	 test -z "$ac_c_werror_flag" ||
24819	 test ! -s conftest.err
24820       } && test -s conftest.$ac_objext; then
24821  ac_hi=-1 ac_mid=-1
24822  while :; do
24823    cat >conftest.$ac_ext <<_ACEOF
24824/* confdefs.h.  */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h.  */
24829$ac_includes_default
24830   typedef unsigned long ac__type_sizeof_;
24831int
24832main ()
24833{
24834static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24835test_array [0] = 0
24836
24837  ;
24838  return 0;
24839}
24840_ACEOF
24841rm -f conftest.$ac_objext
24842if { (ac_try="$ac_compile"
24843case "(($ac_try" in
24844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845  *) ac_try_echo=$ac_try;;
24846esac
24847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848  (eval "$ac_compile") 2>conftest.er1
24849  ac_status=$?
24850  grep -v '^ *+' conftest.er1 >conftest.err
24851  rm -f conftest.er1
24852  cat conftest.err >&5
24853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854  (exit $ac_status); } && {
24855	 test -z "$ac_c_werror_flag" ||
24856	 test ! -s conftest.err
24857       } && test -s conftest.$ac_objext; then
24858  ac_lo=$ac_mid; break
24859else
24860  echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863	ac_hi=`expr '(' $ac_mid ')' - 1`
24864			if test $ac_mid -le $ac_hi; then
24865			  ac_lo= ac_hi=
24866			  break
24867			fi
24868			ac_mid=`expr 2 '*' $ac_mid`
24869fi
24870
24871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872  done
24873else
24874  echo "$as_me: failed program was:" >&5
24875sed 's/^/| /' conftest.$ac_ext >&5
24876
24877	ac_lo= ac_hi=
24878fi
24879
24880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24881fi
24882
24883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884# Binary search between lo and hi bounds.
24885while test "x$ac_lo" != "x$ac_hi"; do
24886  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24887  cat >conftest.$ac_ext <<_ACEOF
24888/* confdefs.h.  */
24889_ACEOF
24890cat confdefs.h >>conftest.$ac_ext
24891cat >>conftest.$ac_ext <<_ACEOF
24892/* end confdefs.h.  */
24893$ac_includes_default
24894   typedef unsigned long ac__type_sizeof_;
24895int
24896main ()
24897{
24898static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24899test_array [0] = 0
24900
24901  ;
24902  return 0;
24903}
24904_ACEOF
24905rm -f conftest.$ac_objext
24906if { (ac_try="$ac_compile"
24907case "(($ac_try" in
24908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909  *) ac_try_echo=$ac_try;;
24910esac
24911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912  (eval "$ac_compile") 2>conftest.er1
24913  ac_status=$?
24914  grep -v '^ *+' conftest.er1 >conftest.err
24915  rm -f conftest.er1
24916  cat conftest.err >&5
24917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918  (exit $ac_status); } && {
24919	 test -z "$ac_c_werror_flag" ||
24920	 test ! -s conftest.err
24921       } && test -s conftest.$ac_objext; then
24922  ac_hi=$ac_mid
24923else
24924  echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
24927	ac_lo=`expr '(' $ac_mid ')' + 1`
24928fi
24929
24930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24931done
24932case $ac_lo in
24933?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24934'') if test "$ac_cv_type_unsigned_long" = yes; then
24935     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24936See \`config.log' for more details." >&5
24937echo "$as_me: error: cannot compute sizeof (unsigned long)
24938See \`config.log' for more details." >&2;}
24939   { (exit 77); exit 77; }; }
24940   else
24941     ac_cv_sizeof_unsigned_long=0
24942   fi ;;
24943esac
24944else
24945  cat >conftest.$ac_ext <<_ACEOF
24946/* confdefs.h.  */
24947_ACEOF
24948cat confdefs.h >>conftest.$ac_ext
24949cat >>conftest.$ac_ext <<_ACEOF
24950/* end confdefs.h.  */
24951$ac_includes_default
24952   typedef unsigned long ac__type_sizeof_;
24953static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24954static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24955#include <stdio.h>
24956#include <stdlib.h>
24957int
24958main ()
24959{
24960
24961  FILE *f = fopen ("conftest.val", "w");
24962  if (! f)
24963    return 1;
24964  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24965    {
24966      long int i = longval ();
24967      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24968	return 1;
24969      fprintf (f, "%ld\n", i);
24970    }
24971  else
24972    {
24973      unsigned long int i = ulongval ();
24974      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24975	return 1;
24976      fprintf (f, "%lu\n", i);
24977    }
24978  return ferror (f) || fclose (f) != 0;
24979
24980  ;
24981  return 0;
24982}
24983_ACEOF
24984rm -f conftest$ac_exeext
24985if { (ac_try="$ac_link"
24986case "(($ac_try" in
24987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988  *) ac_try_echo=$ac_try;;
24989esac
24990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991  (eval "$ac_link") 2>&5
24992  ac_status=$?
24993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24995  { (case "(($ac_try" in
24996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997  *) ac_try_echo=$ac_try;;
24998esac
24999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000  (eval "$ac_try") 2>&5
25001  ac_status=$?
25002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003  (exit $ac_status); }; }; then
25004  ac_cv_sizeof_unsigned_long=`cat conftest.val`
25005else
25006  echo "$as_me: program exited with status $ac_status" >&5
25007echo "$as_me: failed program was:" >&5
25008sed 's/^/| /' conftest.$ac_ext >&5
25009
25010( exit $ac_status )
25011if test "$ac_cv_type_unsigned_long" = yes; then
25012     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
25013See \`config.log' for more details." >&5
25014echo "$as_me: error: cannot compute sizeof (unsigned long)
25015See \`config.log' for more details." >&2;}
25016   { (exit 77); exit 77; }; }
25017   else
25018     ac_cv_sizeof_unsigned_long=0
25019   fi
25020fi
25021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25022fi
25023rm -f conftest.val
25024fi
25025{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25026echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25027
25028
25029
25030cat >>confdefs.h <<_ACEOF
25031#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25032_ACEOF
25033
25034
25035{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
25036echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25037if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25038  echo $ECHO_N "(cached) $ECHO_C" >&6
25039else
25040  cat >conftest.$ac_ext <<_ACEOF
25041/* confdefs.h.  */
25042_ACEOF
25043cat confdefs.h >>conftest.$ac_ext
25044cat >>conftest.$ac_ext <<_ACEOF
25045/* end confdefs.h.  */
25046$ac_includes_default
25047typedef unsigned long long ac__type_new_;
25048int
25049main ()
25050{
25051if ((ac__type_new_ *) 0)
25052  return 0;
25053if (sizeof (ac__type_new_))
25054  return 0;
25055  ;
25056  return 0;
25057}
25058_ACEOF
25059rm -f conftest.$ac_objext
25060if { (ac_try="$ac_compile"
25061case "(($ac_try" in
25062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063  *) ac_try_echo=$ac_try;;
25064esac
25065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066  (eval "$ac_compile") 2>conftest.er1
25067  ac_status=$?
25068  grep -v '^ *+' conftest.er1 >conftest.err
25069  rm -f conftest.er1
25070  cat conftest.err >&5
25071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072  (exit $ac_status); } && {
25073	 test -z "$ac_c_werror_flag" ||
25074	 test ! -s conftest.err
25075       } && test -s conftest.$ac_objext; then
25076  ac_cv_type_unsigned_long_long=yes
25077else
25078  echo "$as_me: failed program was:" >&5
25079sed 's/^/| /' conftest.$ac_ext >&5
25080
25081	ac_cv_type_unsigned_long_long=no
25082fi
25083
25084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25085fi
25086{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25087echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25088
25089# The cast to long int works around a bug in the HP C Compiler
25090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25092# This bug is HP SR number 8606223364.
25093{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25094echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25095if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25096  echo $ECHO_N "(cached) $ECHO_C" >&6
25097else
25098  if test "$cross_compiling" = yes; then
25099  # Depending upon the size, compute the lo and hi bounds.
25100cat >conftest.$ac_ext <<_ACEOF
25101/* confdefs.h.  */
25102_ACEOF
25103cat confdefs.h >>conftest.$ac_ext
25104cat >>conftest.$ac_ext <<_ACEOF
25105/* end confdefs.h.  */
25106$ac_includes_default
25107   typedef unsigned long long ac__type_sizeof_;
25108int
25109main ()
25110{
25111static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25112test_array [0] = 0
25113
25114  ;
25115  return 0;
25116}
25117_ACEOF
25118rm -f conftest.$ac_objext
25119if { (ac_try="$ac_compile"
25120case "(($ac_try" in
25121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122  *) ac_try_echo=$ac_try;;
25123esac
25124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125  (eval "$ac_compile") 2>conftest.er1
25126  ac_status=$?
25127  grep -v '^ *+' conftest.er1 >conftest.err
25128  rm -f conftest.er1
25129  cat conftest.err >&5
25130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131  (exit $ac_status); } && {
25132	 test -z "$ac_c_werror_flag" ||
25133	 test ! -s conftest.err
25134       } && test -s conftest.$ac_objext; then
25135  ac_lo=0 ac_mid=0
25136  while :; do
25137    cat >conftest.$ac_ext <<_ACEOF
25138/* confdefs.h.  */
25139_ACEOF
25140cat confdefs.h >>conftest.$ac_ext
25141cat >>conftest.$ac_ext <<_ACEOF
25142/* end confdefs.h.  */
25143$ac_includes_default
25144   typedef unsigned long long ac__type_sizeof_;
25145int
25146main ()
25147{
25148static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25149test_array [0] = 0
25150
25151  ;
25152  return 0;
25153}
25154_ACEOF
25155rm -f conftest.$ac_objext
25156if { (ac_try="$ac_compile"
25157case "(($ac_try" in
25158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159  *) ac_try_echo=$ac_try;;
25160esac
25161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162  (eval "$ac_compile") 2>conftest.er1
25163  ac_status=$?
25164  grep -v '^ *+' conftest.er1 >conftest.err
25165  rm -f conftest.er1
25166  cat conftest.err >&5
25167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168  (exit $ac_status); } && {
25169	 test -z "$ac_c_werror_flag" ||
25170	 test ! -s conftest.err
25171       } && test -s conftest.$ac_objext; then
25172  ac_hi=$ac_mid; break
25173else
25174  echo "$as_me: failed program was:" >&5
25175sed 's/^/| /' conftest.$ac_ext >&5
25176
25177	ac_lo=`expr $ac_mid + 1`
25178			if test $ac_lo -le $ac_mid; then
25179			  ac_lo= ac_hi=
25180			  break
25181			fi
25182			ac_mid=`expr 2 '*' $ac_mid + 1`
25183fi
25184
25185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186  done
25187else
25188  echo "$as_me: failed program was:" >&5
25189sed 's/^/| /' conftest.$ac_ext >&5
25190
25191	cat >conftest.$ac_ext <<_ACEOF
25192/* confdefs.h.  */
25193_ACEOF
25194cat confdefs.h >>conftest.$ac_ext
25195cat >>conftest.$ac_ext <<_ACEOF
25196/* end confdefs.h.  */
25197$ac_includes_default
25198   typedef unsigned long long ac__type_sizeof_;
25199int
25200main ()
25201{
25202static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25203test_array [0] = 0
25204
25205  ;
25206  return 0;
25207}
25208_ACEOF
25209rm -f conftest.$ac_objext
25210if { (ac_try="$ac_compile"
25211case "(($ac_try" in
25212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213  *) ac_try_echo=$ac_try;;
25214esac
25215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216  (eval "$ac_compile") 2>conftest.er1
25217  ac_status=$?
25218  grep -v '^ *+' conftest.er1 >conftest.err
25219  rm -f conftest.er1
25220  cat conftest.err >&5
25221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222  (exit $ac_status); } && {
25223	 test -z "$ac_c_werror_flag" ||
25224	 test ! -s conftest.err
25225       } && test -s conftest.$ac_objext; then
25226  ac_hi=-1 ac_mid=-1
25227  while :; do
25228    cat >conftest.$ac_ext <<_ACEOF
25229/* confdefs.h.  */
25230_ACEOF
25231cat confdefs.h >>conftest.$ac_ext
25232cat >>conftest.$ac_ext <<_ACEOF
25233/* end confdefs.h.  */
25234$ac_includes_default
25235   typedef unsigned long long ac__type_sizeof_;
25236int
25237main ()
25238{
25239static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25240test_array [0] = 0
25241
25242  ;
25243  return 0;
25244}
25245_ACEOF
25246rm -f conftest.$ac_objext
25247if { (ac_try="$ac_compile"
25248case "(($ac_try" in
25249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250  *) ac_try_echo=$ac_try;;
25251esac
25252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253  (eval "$ac_compile") 2>conftest.er1
25254  ac_status=$?
25255  grep -v '^ *+' conftest.er1 >conftest.err
25256  rm -f conftest.er1
25257  cat conftest.err >&5
25258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259  (exit $ac_status); } && {
25260	 test -z "$ac_c_werror_flag" ||
25261	 test ! -s conftest.err
25262       } && test -s conftest.$ac_objext; then
25263  ac_lo=$ac_mid; break
25264else
25265  echo "$as_me: failed program was:" >&5
25266sed 's/^/| /' conftest.$ac_ext >&5
25267
25268	ac_hi=`expr '(' $ac_mid ')' - 1`
25269			if test $ac_mid -le $ac_hi; then
25270			  ac_lo= ac_hi=
25271			  break
25272			fi
25273			ac_mid=`expr 2 '*' $ac_mid`
25274fi
25275
25276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277  done
25278else
25279  echo "$as_me: failed program was:" >&5
25280sed 's/^/| /' conftest.$ac_ext >&5
25281
25282	ac_lo= ac_hi=
25283fi
25284
25285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286fi
25287
25288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25289# Binary search between lo and hi bounds.
25290while test "x$ac_lo" != "x$ac_hi"; do
25291  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25292  cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h.  */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h.  */
25298$ac_includes_default
25299   typedef unsigned long long ac__type_sizeof_;
25300int
25301main ()
25302{
25303static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25304test_array [0] = 0
25305
25306  ;
25307  return 0;
25308}
25309_ACEOF
25310rm -f conftest.$ac_objext
25311if { (ac_try="$ac_compile"
25312case "(($ac_try" in
25313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314  *) ac_try_echo=$ac_try;;
25315esac
25316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317  (eval "$ac_compile") 2>conftest.er1
25318  ac_status=$?
25319  grep -v '^ *+' conftest.er1 >conftest.err
25320  rm -f conftest.er1
25321  cat conftest.err >&5
25322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323  (exit $ac_status); } && {
25324	 test -z "$ac_c_werror_flag" ||
25325	 test ! -s conftest.err
25326       } && test -s conftest.$ac_objext; then
25327  ac_hi=$ac_mid
25328else
25329  echo "$as_me: failed program was:" >&5
25330sed 's/^/| /' conftest.$ac_ext >&5
25331
25332	ac_lo=`expr '(' $ac_mid ')' + 1`
25333fi
25334
25335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336done
25337case $ac_lo in
25338?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25339'') if test "$ac_cv_type_unsigned_long_long" = yes; then
25340     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25341See \`config.log' for more details." >&5
25342echo "$as_me: error: cannot compute sizeof (unsigned long long)
25343See \`config.log' for more details." >&2;}
25344   { (exit 77); exit 77; }; }
25345   else
25346     ac_cv_sizeof_unsigned_long_long=0
25347   fi ;;
25348esac
25349else
25350  cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h.  */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h.  */
25356$ac_includes_default
25357   typedef unsigned long long ac__type_sizeof_;
25358static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25359static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25360#include <stdio.h>
25361#include <stdlib.h>
25362int
25363main ()
25364{
25365
25366  FILE *f = fopen ("conftest.val", "w");
25367  if (! f)
25368    return 1;
25369  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25370    {
25371      long int i = longval ();
25372      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25373	return 1;
25374      fprintf (f, "%ld\n", i);
25375    }
25376  else
25377    {
25378      unsigned long int i = ulongval ();
25379      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25380	return 1;
25381      fprintf (f, "%lu\n", i);
25382    }
25383  return ferror (f) || fclose (f) != 0;
25384
25385  ;
25386  return 0;
25387}
25388_ACEOF
25389rm -f conftest$ac_exeext
25390if { (ac_try="$ac_link"
25391case "(($ac_try" in
25392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393  *) ac_try_echo=$ac_try;;
25394esac
25395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25396  (eval "$ac_link") 2>&5
25397  ac_status=$?
25398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25400  { (case "(($ac_try" in
25401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402  *) ac_try_echo=$ac_try;;
25403esac
25404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405  (eval "$ac_try") 2>&5
25406  ac_status=$?
25407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408  (exit $ac_status); }; }; then
25409  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25410else
25411  echo "$as_me: program exited with status $ac_status" >&5
25412echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415( exit $ac_status )
25416if test "$ac_cv_type_unsigned_long_long" = yes; then
25417     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25418See \`config.log' for more details." >&5
25419echo "$as_me: error: cannot compute sizeof (unsigned long long)
25420See \`config.log' for more details." >&2;}
25421   { (exit 77); exit 77; }; }
25422   else
25423     ac_cv_sizeof_unsigned_long_long=0
25424   fi
25425fi
25426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25427fi
25428rm -f conftest.val
25429fi
25430{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25431echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25432
25433
25434
25435cat >>confdefs.h <<_ACEOF
25436#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25437_ACEOF
25438
25439
25440{ echo "$as_me:$LINENO: checking for int *" >&5
25441echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25442if test "${ac_cv_type_int_p+set}" = set; then
25443  echo $ECHO_N "(cached) $ECHO_C" >&6
25444else
25445  cat >conftest.$ac_ext <<_ACEOF
25446/* confdefs.h.  */
25447_ACEOF
25448cat confdefs.h >>conftest.$ac_ext
25449cat >>conftest.$ac_ext <<_ACEOF
25450/* end confdefs.h.  */
25451$ac_includes_default
25452typedef int * ac__type_new_;
25453int
25454main ()
25455{
25456if ((ac__type_new_ *) 0)
25457  return 0;
25458if (sizeof (ac__type_new_))
25459  return 0;
25460  ;
25461  return 0;
25462}
25463_ACEOF
25464rm -f conftest.$ac_objext
25465if { (ac_try="$ac_compile"
25466case "(($ac_try" in
25467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468  *) ac_try_echo=$ac_try;;
25469esac
25470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471  (eval "$ac_compile") 2>conftest.er1
25472  ac_status=$?
25473  grep -v '^ *+' conftest.er1 >conftest.err
25474  rm -f conftest.er1
25475  cat conftest.err >&5
25476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477  (exit $ac_status); } && {
25478	 test -z "$ac_c_werror_flag" ||
25479	 test ! -s conftest.err
25480       } && test -s conftest.$ac_objext; then
25481  ac_cv_type_int_p=yes
25482else
25483  echo "$as_me: failed program was:" >&5
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486	ac_cv_type_int_p=no
25487fi
25488
25489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490fi
25491{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25492echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25493
25494# The cast to long int works around a bug in the HP C Compiler
25495# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25496# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25497# This bug is HP SR number 8606223364.
25498{ echo "$as_me:$LINENO: checking size of int *" >&5
25499echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25500if test "${ac_cv_sizeof_int_p+set}" = set; then
25501  echo $ECHO_N "(cached) $ECHO_C" >&6
25502else
25503  if test "$cross_compiling" = yes; then
25504  # Depending upon the size, compute the lo and hi bounds.
25505cat >conftest.$ac_ext <<_ACEOF
25506/* confdefs.h.  */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h.  */
25511$ac_includes_default
25512   typedef int * ac__type_sizeof_;
25513int
25514main ()
25515{
25516static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25517test_array [0] = 0
25518
25519  ;
25520  return 0;
25521}
25522_ACEOF
25523rm -f conftest.$ac_objext
25524if { (ac_try="$ac_compile"
25525case "(($ac_try" in
25526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527  *) ac_try_echo=$ac_try;;
25528esac
25529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530  (eval "$ac_compile") 2>conftest.er1
25531  ac_status=$?
25532  grep -v '^ *+' conftest.er1 >conftest.err
25533  rm -f conftest.er1
25534  cat conftest.err >&5
25535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536  (exit $ac_status); } && {
25537	 test -z "$ac_c_werror_flag" ||
25538	 test ! -s conftest.err
25539       } && test -s conftest.$ac_objext; then
25540  ac_lo=0 ac_mid=0
25541  while :; do
25542    cat >conftest.$ac_ext <<_ACEOF
25543/* confdefs.h.  */
25544_ACEOF
25545cat confdefs.h >>conftest.$ac_ext
25546cat >>conftest.$ac_ext <<_ACEOF
25547/* end confdefs.h.  */
25548$ac_includes_default
25549   typedef int * ac__type_sizeof_;
25550int
25551main ()
25552{
25553static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25554test_array [0] = 0
25555
25556  ;
25557  return 0;
25558}
25559_ACEOF
25560rm -f conftest.$ac_objext
25561if { (ac_try="$ac_compile"
25562case "(($ac_try" in
25563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564  *) ac_try_echo=$ac_try;;
25565esac
25566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567  (eval "$ac_compile") 2>conftest.er1
25568  ac_status=$?
25569  grep -v '^ *+' conftest.er1 >conftest.err
25570  rm -f conftest.er1
25571  cat conftest.err >&5
25572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573  (exit $ac_status); } && {
25574	 test -z "$ac_c_werror_flag" ||
25575	 test ! -s conftest.err
25576       } && test -s conftest.$ac_objext; then
25577  ac_hi=$ac_mid; break
25578else
25579  echo "$as_me: failed program was:" >&5
25580sed 's/^/| /' conftest.$ac_ext >&5
25581
25582	ac_lo=`expr $ac_mid + 1`
25583			if test $ac_lo -le $ac_mid; then
25584			  ac_lo= ac_hi=
25585			  break
25586			fi
25587			ac_mid=`expr 2 '*' $ac_mid + 1`
25588fi
25589
25590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591  done
25592else
25593  echo "$as_me: failed program was:" >&5
25594sed 's/^/| /' conftest.$ac_ext >&5
25595
25596	cat >conftest.$ac_ext <<_ACEOF
25597/* confdefs.h.  */
25598_ACEOF
25599cat confdefs.h >>conftest.$ac_ext
25600cat >>conftest.$ac_ext <<_ACEOF
25601/* end confdefs.h.  */
25602$ac_includes_default
25603   typedef int * ac__type_sizeof_;
25604int
25605main ()
25606{
25607static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25608test_array [0] = 0
25609
25610  ;
25611  return 0;
25612}
25613_ACEOF
25614rm -f conftest.$ac_objext
25615if { (ac_try="$ac_compile"
25616case "(($ac_try" in
25617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618  *) ac_try_echo=$ac_try;;
25619esac
25620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621  (eval "$ac_compile") 2>conftest.er1
25622  ac_status=$?
25623  grep -v '^ *+' conftest.er1 >conftest.err
25624  rm -f conftest.er1
25625  cat conftest.err >&5
25626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627  (exit $ac_status); } && {
25628	 test -z "$ac_c_werror_flag" ||
25629	 test ! -s conftest.err
25630       } && test -s conftest.$ac_objext; then
25631  ac_hi=-1 ac_mid=-1
25632  while :; do
25633    cat >conftest.$ac_ext <<_ACEOF
25634/* confdefs.h.  */
25635_ACEOF
25636cat confdefs.h >>conftest.$ac_ext
25637cat >>conftest.$ac_ext <<_ACEOF
25638/* end confdefs.h.  */
25639$ac_includes_default
25640   typedef int * ac__type_sizeof_;
25641int
25642main ()
25643{
25644static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25645test_array [0] = 0
25646
25647  ;
25648  return 0;
25649}
25650_ACEOF
25651rm -f conftest.$ac_objext
25652if { (ac_try="$ac_compile"
25653case "(($ac_try" in
25654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655  *) ac_try_echo=$ac_try;;
25656esac
25657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658  (eval "$ac_compile") 2>conftest.er1
25659  ac_status=$?
25660  grep -v '^ *+' conftest.er1 >conftest.err
25661  rm -f conftest.er1
25662  cat conftest.err >&5
25663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664  (exit $ac_status); } && {
25665	 test -z "$ac_c_werror_flag" ||
25666	 test ! -s conftest.err
25667       } && test -s conftest.$ac_objext; then
25668  ac_lo=$ac_mid; break
25669else
25670  echo "$as_me: failed program was:" >&5
25671sed 's/^/| /' conftest.$ac_ext >&5
25672
25673	ac_hi=`expr '(' $ac_mid ')' - 1`
25674			if test $ac_mid -le $ac_hi; then
25675			  ac_lo= ac_hi=
25676			  break
25677			fi
25678			ac_mid=`expr 2 '*' $ac_mid`
25679fi
25680
25681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25682  done
25683else
25684  echo "$as_me: failed program was:" >&5
25685sed 's/^/| /' conftest.$ac_ext >&5
25686
25687	ac_lo= ac_hi=
25688fi
25689
25690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691fi
25692
25693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694# Binary search between lo and hi bounds.
25695while test "x$ac_lo" != "x$ac_hi"; do
25696  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25697  cat >conftest.$ac_ext <<_ACEOF
25698/* confdefs.h.  */
25699_ACEOF
25700cat confdefs.h >>conftest.$ac_ext
25701cat >>conftest.$ac_ext <<_ACEOF
25702/* end confdefs.h.  */
25703$ac_includes_default
25704   typedef int * ac__type_sizeof_;
25705int
25706main ()
25707{
25708static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25709test_array [0] = 0
25710
25711  ;
25712  return 0;
25713}
25714_ACEOF
25715rm -f conftest.$ac_objext
25716if { (ac_try="$ac_compile"
25717case "(($ac_try" in
25718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719  *) ac_try_echo=$ac_try;;
25720esac
25721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722  (eval "$ac_compile") 2>conftest.er1
25723  ac_status=$?
25724  grep -v '^ *+' conftest.er1 >conftest.err
25725  rm -f conftest.er1
25726  cat conftest.err >&5
25727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728  (exit $ac_status); } && {
25729	 test -z "$ac_c_werror_flag" ||
25730	 test ! -s conftest.err
25731       } && test -s conftest.$ac_objext; then
25732  ac_hi=$ac_mid
25733else
25734  echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
25737	ac_lo=`expr '(' $ac_mid ')' + 1`
25738fi
25739
25740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741done
25742case $ac_lo in
25743?*) ac_cv_sizeof_int_p=$ac_lo;;
25744'') if test "$ac_cv_type_int_p" = yes; then
25745     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25746See \`config.log' for more details." >&5
25747echo "$as_me: error: cannot compute sizeof (int *)
25748See \`config.log' for more details." >&2;}
25749   { (exit 77); exit 77; }; }
25750   else
25751     ac_cv_sizeof_int_p=0
25752   fi ;;
25753esac
25754else
25755  cat >conftest.$ac_ext <<_ACEOF
25756/* confdefs.h.  */
25757_ACEOF
25758cat confdefs.h >>conftest.$ac_ext
25759cat >>conftest.$ac_ext <<_ACEOF
25760/* end confdefs.h.  */
25761$ac_includes_default
25762   typedef int * ac__type_sizeof_;
25763static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25764static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25765#include <stdio.h>
25766#include <stdlib.h>
25767int
25768main ()
25769{
25770
25771  FILE *f = fopen ("conftest.val", "w");
25772  if (! f)
25773    return 1;
25774  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25775    {
25776      long int i = longval ();
25777      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25778	return 1;
25779      fprintf (f, "%ld\n", i);
25780    }
25781  else
25782    {
25783      unsigned long int i = ulongval ();
25784      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25785	return 1;
25786      fprintf (f, "%lu\n", i);
25787    }
25788  return ferror (f) || fclose (f) != 0;
25789
25790  ;
25791  return 0;
25792}
25793_ACEOF
25794rm -f conftest$ac_exeext
25795if { (ac_try="$ac_link"
25796case "(($ac_try" in
25797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798  *) ac_try_echo=$ac_try;;
25799esac
25800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801  (eval "$ac_link") 2>&5
25802  ac_status=$?
25803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25805  { (case "(($ac_try" in
25806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807  *) ac_try_echo=$ac_try;;
25808esac
25809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810  (eval "$ac_try") 2>&5
25811  ac_status=$?
25812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813  (exit $ac_status); }; }; then
25814  ac_cv_sizeof_int_p=`cat conftest.val`
25815else
25816  echo "$as_me: program exited with status $ac_status" >&5
25817echo "$as_me: failed program was:" >&5
25818sed 's/^/| /' conftest.$ac_ext >&5
25819
25820( exit $ac_status )
25821if test "$ac_cv_type_int_p" = yes; then
25822     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25823See \`config.log' for more details." >&5
25824echo "$as_me: error: cannot compute sizeof (int *)
25825See \`config.log' for more details." >&2;}
25826   { (exit 77); exit 77; }; }
25827   else
25828     ac_cv_sizeof_int_p=0
25829   fi
25830fi
25831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25832fi
25833rm -f conftest.val
25834fi
25835{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25836echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25837
25838
25839
25840cat >>confdefs.h <<_ACEOF
25841#define SIZEOF_INT_P $ac_cv_sizeof_int_p
25842_ACEOF
25843
25844
25845
25846for ac_func in getenv
25847do
25848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25852  echo $ECHO_N "(cached) $ECHO_C" >&6
25853else
25854  cat >conftest.$ac_ext <<_ACEOF
25855/* confdefs.h.  */
25856_ACEOF
25857cat confdefs.h >>conftest.$ac_ext
25858cat >>conftest.$ac_ext <<_ACEOF
25859/* end confdefs.h.  */
25860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25862#define $ac_func innocuous_$ac_func
25863
25864/* System header to define __stub macros and hopefully few prototypes,
25865    which can conflict with char $ac_func (); below.
25866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25867    <limits.h> exists even on freestanding compilers.  */
25868
25869#ifdef __STDC__
25870# include <limits.h>
25871#else
25872# include <assert.h>
25873#endif
25874
25875#undef $ac_func
25876
25877/* Override any GCC internal prototype to avoid an error.
25878   Use char because int might match the return type of a GCC
25879   builtin and then its argument prototype would still apply.  */
25880#ifdef __cplusplus
25881extern "C"
25882#endif
25883char $ac_func ();
25884/* The GNU C library defines this for functions which it implements
25885    to always fail with ENOSYS.  Some functions are actually named
25886    something starting with __ and the normal name is an alias.  */
25887#if defined __stub_$ac_func || defined __stub___$ac_func
25888choke me
25889#endif
25890
25891int
25892main ()
25893{
25894return $ac_func ();
25895  ;
25896  return 0;
25897}
25898_ACEOF
25899rm -f conftest.$ac_objext conftest$ac_exeext
25900if { (ac_try="$ac_link"
25901case "(($ac_try" in
25902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903  *) ac_try_echo=$ac_try;;
25904esac
25905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906  (eval "$ac_link") 2>conftest.er1
25907  ac_status=$?
25908  grep -v '^ *+' conftest.er1 >conftest.err
25909  rm -f conftest.er1
25910  cat conftest.err >&5
25911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912  (exit $ac_status); } && {
25913	 test -z "$ac_c_werror_flag" ||
25914	 test ! -s conftest.err
25915       } && test -s conftest$ac_exeext &&
25916       $as_test_x conftest$ac_exeext; then
25917  eval "$as_ac_var=yes"
25918else
25919  echo "$as_me: failed program was:" >&5
25920sed 's/^/| /' conftest.$ac_ext >&5
25921
25922	eval "$as_ac_var=no"
25923fi
25924
25925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25926      conftest$ac_exeext conftest.$ac_ext
25927fi
25928ac_res=`eval echo '${'$as_ac_var'}'`
25929	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25930echo "${ECHO_T}$ac_res" >&6; }
25931if test `eval echo '${'$as_ac_var'}'` = yes; then
25932  cat >>confdefs.h <<_ACEOF
25933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25934_ACEOF
25935 cat >>confdefs.h <<\_ACEOF
25936#define BX_HAVE_GETENV 1
25937_ACEOF
25938
25939fi
25940done
25941
25942
25943for ac_func in setenv
25944do
25945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25949  echo $ECHO_N "(cached) $ECHO_C" >&6
25950else
25951  cat >conftest.$ac_ext <<_ACEOF
25952/* confdefs.h.  */
25953_ACEOF
25954cat confdefs.h >>conftest.$ac_ext
25955cat >>conftest.$ac_ext <<_ACEOF
25956/* end confdefs.h.  */
25957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25958   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25959#define $ac_func innocuous_$ac_func
25960
25961/* System header to define __stub macros and hopefully few prototypes,
25962    which can conflict with char $ac_func (); below.
25963    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25964    <limits.h> exists even on freestanding compilers.  */
25965
25966#ifdef __STDC__
25967# include <limits.h>
25968#else
25969# include <assert.h>
25970#endif
25971
25972#undef $ac_func
25973
25974/* Override any GCC internal prototype to avoid an error.
25975   Use char because int might match the return type of a GCC
25976   builtin and then its argument prototype would still apply.  */
25977#ifdef __cplusplus
25978extern "C"
25979#endif
25980char $ac_func ();
25981/* The GNU C library defines this for functions which it implements
25982    to always fail with ENOSYS.  Some functions are actually named
25983    something starting with __ and the normal name is an alias.  */
25984#if defined __stub_$ac_func || defined __stub___$ac_func
25985choke me
25986#endif
25987
25988int
25989main ()
25990{
25991return $ac_func ();
25992  ;
25993  return 0;
25994}
25995_ACEOF
25996rm -f conftest.$ac_objext conftest$ac_exeext
25997if { (ac_try="$ac_link"
25998case "(($ac_try" in
25999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000  *) ac_try_echo=$ac_try;;
26001esac
26002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003  (eval "$ac_link") 2>conftest.er1
26004  ac_status=$?
26005  grep -v '^ *+' conftest.er1 >conftest.err
26006  rm -f conftest.er1
26007  cat conftest.err >&5
26008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009  (exit $ac_status); } && {
26010	 test -z "$ac_c_werror_flag" ||
26011	 test ! -s conftest.err
26012       } && test -s conftest$ac_exeext &&
26013       $as_test_x conftest$ac_exeext; then
26014  eval "$as_ac_var=yes"
26015else
26016  echo "$as_me: failed program was:" >&5
26017sed 's/^/| /' conftest.$ac_ext >&5
26018
26019	eval "$as_ac_var=no"
26020fi
26021
26022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26023      conftest$ac_exeext conftest.$ac_ext
26024fi
26025ac_res=`eval echo '${'$as_ac_var'}'`
26026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26027echo "${ECHO_T}$ac_res" >&6; }
26028if test `eval echo '${'$as_ac_var'}'` = yes; then
26029  cat >>confdefs.h <<_ACEOF
26030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26031_ACEOF
26032 cat >>confdefs.h <<\_ACEOF
26033#define BX_HAVE_SETENV 1
26034_ACEOF
26035
26036fi
26037done
26038
26039
26040for ac_func in select
26041do
26042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26046  echo $ECHO_N "(cached) $ECHO_C" >&6
26047else
26048  cat >conftest.$ac_ext <<_ACEOF
26049/* confdefs.h.  */
26050_ACEOF
26051cat confdefs.h >>conftest.$ac_ext
26052cat >>conftest.$ac_ext <<_ACEOF
26053/* end confdefs.h.  */
26054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26056#define $ac_func innocuous_$ac_func
26057
26058/* System header to define __stub macros and hopefully few prototypes,
26059    which can conflict with char $ac_func (); below.
26060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26061    <limits.h> exists even on freestanding compilers.  */
26062
26063#ifdef __STDC__
26064# include <limits.h>
26065#else
26066# include <assert.h>
26067#endif
26068
26069#undef $ac_func
26070
26071/* Override any GCC internal prototype to avoid an error.
26072   Use char because int might match the return type of a GCC
26073   builtin and then its argument prototype would still apply.  */
26074#ifdef __cplusplus
26075extern "C"
26076#endif
26077char $ac_func ();
26078/* The GNU C library defines this for functions which it implements
26079    to always fail with ENOSYS.  Some functions are actually named
26080    something starting with __ and the normal name is an alias.  */
26081#if defined __stub_$ac_func || defined __stub___$ac_func
26082choke me
26083#endif
26084
26085int
26086main ()
26087{
26088return $ac_func ();
26089  ;
26090  return 0;
26091}
26092_ACEOF
26093rm -f conftest.$ac_objext conftest$ac_exeext
26094if { (ac_try="$ac_link"
26095case "(($ac_try" in
26096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26097  *) ac_try_echo=$ac_try;;
26098esac
26099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26100  (eval "$ac_link") 2>conftest.er1
26101  ac_status=$?
26102  grep -v '^ *+' conftest.er1 >conftest.err
26103  rm -f conftest.er1
26104  cat conftest.err >&5
26105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106  (exit $ac_status); } && {
26107	 test -z "$ac_c_werror_flag" ||
26108	 test ! -s conftest.err
26109       } && test -s conftest$ac_exeext &&
26110       $as_test_x conftest$ac_exeext; then
26111  eval "$as_ac_var=yes"
26112else
26113  echo "$as_me: failed program was:" >&5
26114sed 's/^/| /' conftest.$ac_ext >&5
26115
26116	eval "$as_ac_var=no"
26117fi
26118
26119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26120      conftest$ac_exeext conftest.$ac_ext
26121fi
26122ac_res=`eval echo '${'$as_ac_var'}'`
26123	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26124echo "${ECHO_T}$ac_res" >&6; }
26125if test `eval echo '${'$as_ac_var'}'` = yes; then
26126  cat >>confdefs.h <<_ACEOF
26127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26128_ACEOF
26129 cat >>confdefs.h <<\_ACEOF
26130#define BX_HAVE_SELECT 1
26131_ACEOF
26132
26133fi
26134done
26135
26136
26137for ac_func in snprintf
26138do
26139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26140{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26142if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26143  echo $ECHO_N "(cached) $ECHO_C" >&6
26144else
26145  cat >conftest.$ac_ext <<_ACEOF
26146/* confdefs.h.  */
26147_ACEOF
26148cat confdefs.h >>conftest.$ac_ext
26149cat >>conftest.$ac_ext <<_ACEOF
26150/* end confdefs.h.  */
26151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26152   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26153#define $ac_func innocuous_$ac_func
26154
26155/* System header to define __stub macros and hopefully few prototypes,
26156    which can conflict with char $ac_func (); below.
26157    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26158    <limits.h> exists even on freestanding compilers.  */
26159
26160#ifdef __STDC__
26161# include <limits.h>
26162#else
26163# include <assert.h>
26164#endif
26165
26166#undef $ac_func
26167
26168/* Override any GCC internal prototype to avoid an error.
26169   Use char because int might match the return type of a GCC
26170   builtin and then its argument prototype would still apply.  */
26171#ifdef __cplusplus
26172extern "C"
26173#endif
26174char $ac_func ();
26175/* The GNU C library defines this for functions which it implements
26176    to always fail with ENOSYS.  Some functions are actually named
26177    something starting with __ and the normal name is an alias.  */
26178#if defined __stub_$ac_func || defined __stub___$ac_func
26179choke me
26180#endif
26181
26182int
26183main ()
26184{
26185return $ac_func ();
26186  ;
26187  return 0;
26188}
26189_ACEOF
26190rm -f conftest.$ac_objext conftest$ac_exeext
26191if { (ac_try="$ac_link"
26192case "(($ac_try" in
26193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194  *) ac_try_echo=$ac_try;;
26195esac
26196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197  (eval "$ac_link") 2>conftest.er1
26198  ac_status=$?
26199  grep -v '^ *+' conftest.er1 >conftest.err
26200  rm -f conftest.er1
26201  cat conftest.err >&5
26202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203  (exit $ac_status); } && {
26204	 test -z "$ac_c_werror_flag" ||
26205	 test ! -s conftest.err
26206       } && test -s conftest$ac_exeext &&
26207       $as_test_x conftest$ac_exeext; then
26208  eval "$as_ac_var=yes"
26209else
26210  echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
26213	eval "$as_ac_var=no"
26214fi
26215
26216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217      conftest$ac_exeext conftest.$ac_ext
26218fi
26219ac_res=`eval echo '${'$as_ac_var'}'`
26220	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26221echo "${ECHO_T}$ac_res" >&6; }
26222if test `eval echo '${'$as_ac_var'}'` = yes; then
26223  cat >>confdefs.h <<_ACEOF
26224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26225_ACEOF
26226 cat >>confdefs.h <<\_ACEOF
26227#define BX_HAVE_SNPRINTF 1
26228_ACEOF
26229
26230fi
26231done
26232
26233
26234for ac_func in vsnprintf
26235do
26236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26240  echo $ECHO_N "(cached) $ECHO_C" >&6
26241else
26242  cat >conftest.$ac_ext <<_ACEOF
26243/* confdefs.h.  */
26244_ACEOF
26245cat confdefs.h >>conftest.$ac_ext
26246cat >>conftest.$ac_ext <<_ACEOF
26247/* end confdefs.h.  */
26248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26249   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26250#define $ac_func innocuous_$ac_func
26251
26252/* System header to define __stub macros and hopefully few prototypes,
26253    which can conflict with char $ac_func (); below.
26254    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26255    <limits.h> exists even on freestanding compilers.  */
26256
26257#ifdef __STDC__
26258# include <limits.h>
26259#else
26260# include <assert.h>
26261#endif
26262
26263#undef $ac_func
26264
26265/* Override any GCC internal prototype to avoid an error.
26266   Use char because int might match the return type of a GCC
26267   builtin and then its argument prototype would still apply.  */
26268#ifdef __cplusplus
26269extern "C"
26270#endif
26271char $ac_func ();
26272/* The GNU C library defines this for functions which it implements
26273    to always fail with ENOSYS.  Some functions are actually named
26274    something starting with __ and the normal name is an alias.  */
26275#if defined __stub_$ac_func || defined __stub___$ac_func
26276choke me
26277#endif
26278
26279int
26280main ()
26281{
26282return $ac_func ();
26283  ;
26284  return 0;
26285}
26286_ACEOF
26287rm -f conftest.$ac_objext conftest$ac_exeext
26288if { (ac_try="$ac_link"
26289case "(($ac_try" in
26290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26291  *) ac_try_echo=$ac_try;;
26292esac
26293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26294  (eval "$ac_link") 2>conftest.er1
26295  ac_status=$?
26296  grep -v '^ *+' conftest.er1 >conftest.err
26297  rm -f conftest.er1
26298  cat conftest.err >&5
26299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300  (exit $ac_status); } && {
26301	 test -z "$ac_c_werror_flag" ||
26302	 test ! -s conftest.err
26303       } && test -s conftest$ac_exeext &&
26304       $as_test_x conftest$ac_exeext; then
26305  eval "$as_ac_var=yes"
26306else
26307  echo "$as_me: failed program was:" >&5
26308sed 's/^/| /' conftest.$ac_ext >&5
26309
26310	eval "$as_ac_var=no"
26311fi
26312
26313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26314      conftest$ac_exeext conftest.$ac_ext
26315fi
26316ac_res=`eval echo '${'$as_ac_var'}'`
26317	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26318echo "${ECHO_T}$ac_res" >&6; }
26319if test `eval echo '${'$as_ac_var'}'` = yes; then
26320  cat >>confdefs.h <<_ACEOF
26321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26322_ACEOF
26323 cat >>confdefs.h <<\_ACEOF
26324#define BX_HAVE_VSNPRINTF 1
26325_ACEOF
26326
26327fi
26328done
26329
26330
26331for ac_func in strtoull
26332do
26333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26334{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26337  echo $ECHO_N "(cached) $ECHO_C" >&6
26338else
26339  cat >conftest.$ac_ext <<_ACEOF
26340/* confdefs.h.  */
26341_ACEOF
26342cat confdefs.h >>conftest.$ac_ext
26343cat >>conftest.$ac_ext <<_ACEOF
26344/* end confdefs.h.  */
26345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26346   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26347#define $ac_func innocuous_$ac_func
26348
26349/* System header to define __stub macros and hopefully few prototypes,
26350    which can conflict with char $ac_func (); below.
26351    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26352    <limits.h> exists even on freestanding compilers.  */
26353
26354#ifdef __STDC__
26355# include <limits.h>
26356#else
26357# include <assert.h>
26358#endif
26359
26360#undef $ac_func
26361
26362/* Override any GCC internal prototype to avoid an error.
26363   Use char because int might match the return type of a GCC
26364   builtin and then its argument prototype would still apply.  */
26365#ifdef __cplusplus
26366extern "C"
26367#endif
26368char $ac_func ();
26369/* The GNU C library defines this for functions which it implements
26370    to always fail with ENOSYS.  Some functions are actually named
26371    something starting with __ and the normal name is an alias.  */
26372#if defined __stub_$ac_func || defined __stub___$ac_func
26373choke me
26374#endif
26375
26376int
26377main ()
26378{
26379return $ac_func ();
26380  ;
26381  return 0;
26382}
26383_ACEOF
26384rm -f conftest.$ac_objext conftest$ac_exeext
26385if { (ac_try="$ac_link"
26386case "(($ac_try" in
26387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388  *) ac_try_echo=$ac_try;;
26389esac
26390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26391  (eval "$ac_link") 2>conftest.er1
26392  ac_status=$?
26393  grep -v '^ *+' conftest.er1 >conftest.err
26394  rm -f conftest.er1
26395  cat conftest.err >&5
26396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397  (exit $ac_status); } && {
26398	 test -z "$ac_c_werror_flag" ||
26399	 test ! -s conftest.err
26400       } && test -s conftest$ac_exeext &&
26401       $as_test_x conftest$ac_exeext; then
26402  eval "$as_ac_var=yes"
26403else
26404  echo "$as_me: failed program was:" >&5
26405sed 's/^/| /' conftest.$ac_ext >&5
26406
26407	eval "$as_ac_var=no"
26408fi
26409
26410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26411      conftest$ac_exeext conftest.$ac_ext
26412fi
26413ac_res=`eval echo '${'$as_ac_var'}'`
26414	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26415echo "${ECHO_T}$ac_res" >&6; }
26416if test `eval echo '${'$as_ac_var'}'` = yes; then
26417  cat >>confdefs.h <<_ACEOF
26418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26419_ACEOF
26420 cat >>confdefs.h <<\_ACEOF
26421#define BX_HAVE_STRTOULL 1
26422_ACEOF
26423
26424fi
26425done
26426
26427
26428for ac_func in strtouq
26429do
26430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26434  echo $ECHO_N "(cached) $ECHO_C" >&6
26435else
26436  cat >conftest.$ac_ext <<_ACEOF
26437/* confdefs.h.  */
26438_ACEOF
26439cat confdefs.h >>conftest.$ac_ext
26440cat >>conftest.$ac_ext <<_ACEOF
26441/* end confdefs.h.  */
26442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26443   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26444#define $ac_func innocuous_$ac_func
26445
26446/* System header to define __stub macros and hopefully few prototypes,
26447    which can conflict with char $ac_func (); below.
26448    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26449    <limits.h> exists even on freestanding compilers.  */
26450
26451#ifdef __STDC__
26452# include <limits.h>
26453#else
26454# include <assert.h>
26455#endif
26456
26457#undef $ac_func
26458
26459/* Override any GCC internal prototype to avoid an error.
26460   Use char because int might match the return type of a GCC
26461   builtin and then its argument prototype would still apply.  */
26462#ifdef __cplusplus
26463extern "C"
26464#endif
26465char $ac_func ();
26466/* The GNU C library defines this for functions which it implements
26467    to always fail with ENOSYS.  Some functions are actually named
26468    something starting with __ and the normal name is an alias.  */
26469#if defined __stub_$ac_func || defined __stub___$ac_func
26470choke me
26471#endif
26472
26473int
26474main ()
26475{
26476return $ac_func ();
26477  ;
26478  return 0;
26479}
26480_ACEOF
26481rm -f conftest.$ac_objext conftest$ac_exeext
26482if { (ac_try="$ac_link"
26483case "(($ac_try" in
26484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485  *) ac_try_echo=$ac_try;;
26486esac
26487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488  (eval "$ac_link") 2>conftest.er1
26489  ac_status=$?
26490  grep -v '^ *+' conftest.er1 >conftest.err
26491  rm -f conftest.er1
26492  cat conftest.err >&5
26493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494  (exit $ac_status); } && {
26495	 test -z "$ac_c_werror_flag" ||
26496	 test ! -s conftest.err
26497       } && test -s conftest$ac_exeext &&
26498       $as_test_x conftest$ac_exeext; then
26499  eval "$as_ac_var=yes"
26500else
26501  echo "$as_me: failed program was:" >&5
26502sed 's/^/| /' conftest.$ac_ext >&5
26503
26504	eval "$as_ac_var=no"
26505fi
26506
26507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26508      conftest$ac_exeext conftest.$ac_ext
26509fi
26510ac_res=`eval echo '${'$as_ac_var'}'`
26511	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26512echo "${ECHO_T}$ac_res" >&6; }
26513if test `eval echo '${'$as_ac_var'}'` = yes; then
26514  cat >>confdefs.h <<_ACEOF
26515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26516_ACEOF
26517 cat >>confdefs.h <<\_ACEOF
26518#define BX_HAVE_STRTOUQ 1
26519_ACEOF
26520
26521fi
26522done
26523
26524
26525for ac_func in strdup
26526do
26527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26528{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26531  echo $ECHO_N "(cached) $ECHO_C" >&6
26532else
26533  cat >conftest.$ac_ext <<_ACEOF
26534/* confdefs.h.  */
26535_ACEOF
26536cat confdefs.h >>conftest.$ac_ext
26537cat >>conftest.$ac_ext <<_ACEOF
26538/* end confdefs.h.  */
26539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26540   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26541#define $ac_func innocuous_$ac_func
26542
26543/* System header to define __stub macros and hopefully few prototypes,
26544    which can conflict with char $ac_func (); below.
26545    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26546    <limits.h> exists even on freestanding compilers.  */
26547
26548#ifdef __STDC__
26549# include <limits.h>
26550#else
26551# include <assert.h>
26552#endif
26553
26554#undef $ac_func
26555
26556/* Override any GCC internal prototype to avoid an error.
26557   Use char because int might match the return type of a GCC
26558   builtin and then its argument prototype would still apply.  */
26559#ifdef __cplusplus
26560extern "C"
26561#endif
26562char $ac_func ();
26563/* The GNU C library defines this for functions which it implements
26564    to always fail with ENOSYS.  Some functions are actually named
26565    something starting with __ and the normal name is an alias.  */
26566#if defined __stub_$ac_func || defined __stub___$ac_func
26567choke me
26568#endif
26569
26570int
26571main ()
26572{
26573return $ac_func ();
26574  ;
26575  return 0;
26576}
26577_ACEOF
26578rm -f conftest.$ac_objext conftest$ac_exeext
26579if { (ac_try="$ac_link"
26580case "(($ac_try" in
26581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582  *) ac_try_echo=$ac_try;;
26583esac
26584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585  (eval "$ac_link") 2>conftest.er1
26586  ac_status=$?
26587  grep -v '^ *+' conftest.er1 >conftest.err
26588  rm -f conftest.er1
26589  cat conftest.err >&5
26590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591  (exit $ac_status); } && {
26592	 test -z "$ac_c_werror_flag" ||
26593	 test ! -s conftest.err
26594       } && test -s conftest$ac_exeext &&
26595       $as_test_x conftest$ac_exeext; then
26596  eval "$as_ac_var=yes"
26597else
26598  echo "$as_me: failed program was:" >&5
26599sed 's/^/| /' conftest.$ac_ext >&5
26600
26601	eval "$as_ac_var=no"
26602fi
26603
26604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26605      conftest$ac_exeext conftest.$ac_ext
26606fi
26607ac_res=`eval echo '${'$as_ac_var'}'`
26608	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26609echo "${ECHO_T}$ac_res" >&6; }
26610if test `eval echo '${'$as_ac_var'}'` = yes; then
26611  cat >>confdefs.h <<_ACEOF
26612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26613_ACEOF
26614 cat >>confdefs.h <<\_ACEOF
26615#define BX_HAVE_STRDUP 1
26616_ACEOF
26617
26618fi
26619done
26620
26621
26622for ac_func in strrev
26623do
26624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26625{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26627if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26628  echo $ECHO_N "(cached) $ECHO_C" >&6
26629else
26630  cat >conftest.$ac_ext <<_ACEOF
26631/* confdefs.h.  */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h.  */
26636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26637   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26638#define $ac_func innocuous_$ac_func
26639
26640/* System header to define __stub macros and hopefully few prototypes,
26641    which can conflict with char $ac_func (); below.
26642    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26643    <limits.h> exists even on freestanding compilers.  */
26644
26645#ifdef __STDC__
26646# include <limits.h>
26647#else
26648# include <assert.h>
26649#endif
26650
26651#undef $ac_func
26652
26653/* Override any GCC internal prototype to avoid an error.
26654   Use char because int might match the return type of a GCC
26655   builtin and then its argument prototype would still apply.  */
26656#ifdef __cplusplus
26657extern "C"
26658#endif
26659char $ac_func ();
26660/* The GNU C library defines this for functions which it implements
26661    to always fail with ENOSYS.  Some functions are actually named
26662    something starting with __ and the normal name is an alias.  */
26663#if defined __stub_$ac_func || defined __stub___$ac_func
26664choke me
26665#endif
26666
26667int
26668main ()
26669{
26670return $ac_func ();
26671  ;
26672  return 0;
26673}
26674_ACEOF
26675rm -f conftest.$ac_objext conftest$ac_exeext
26676if { (ac_try="$ac_link"
26677case "(($ac_try" in
26678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679  *) ac_try_echo=$ac_try;;
26680esac
26681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682  (eval "$ac_link") 2>conftest.er1
26683  ac_status=$?
26684  grep -v '^ *+' conftest.er1 >conftest.err
26685  rm -f conftest.er1
26686  cat conftest.err >&5
26687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688  (exit $ac_status); } && {
26689	 test -z "$ac_c_werror_flag" ||
26690	 test ! -s conftest.err
26691       } && test -s conftest$ac_exeext &&
26692       $as_test_x conftest$ac_exeext; then
26693  eval "$as_ac_var=yes"
26694else
26695  echo "$as_me: failed program was:" >&5
26696sed 's/^/| /' conftest.$ac_ext >&5
26697
26698	eval "$as_ac_var=no"
26699fi
26700
26701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26702      conftest$ac_exeext conftest.$ac_ext
26703fi
26704ac_res=`eval echo '${'$as_ac_var'}'`
26705	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26706echo "${ECHO_T}$ac_res" >&6; }
26707if test `eval echo '${'$as_ac_var'}'` = yes; then
26708  cat >>confdefs.h <<_ACEOF
26709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26710_ACEOF
26711 cat >>confdefs.h <<\_ACEOF
26712#define BX_HAVE_STRREV 1
26713_ACEOF
26714
26715fi
26716done
26717
26718
26719for ac_func in stricmp
26720do
26721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26725  echo $ECHO_N "(cached) $ECHO_C" >&6
26726else
26727  cat >conftest.$ac_ext <<_ACEOF
26728/* confdefs.h.  */
26729_ACEOF
26730cat confdefs.h >>conftest.$ac_ext
26731cat >>conftest.$ac_ext <<_ACEOF
26732/* end confdefs.h.  */
26733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26735#define $ac_func innocuous_$ac_func
26736
26737/* System header to define __stub macros and hopefully few prototypes,
26738    which can conflict with char $ac_func (); below.
26739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26740    <limits.h> exists even on freestanding compilers.  */
26741
26742#ifdef __STDC__
26743# include <limits.h>
26744#else
26745# include <assert.h>
26746#endif
26747
26748#undef $ac_func
26749
26750/* Override any GCC internal prototype to avoid an error.
26751   Use char because int might match the return type of a GCC
26752   builtin and then its argument prototype would still apply.  */
26753#ifdef __cplusplus
26754extern "C"
26755#endif
26756char $ac_func ();
26757/* The GNU C library defines this for functions which it implements
26758    to always fail with ENOSYS.  Some functions are actually named
26759    something starting with __ and the normal name is an alias.  */
26760#if defined __stub_$ac_func || defined __stub___$ac_func
26761choke me
26762#endif
26763
26764int
26765main ()
26766{
26767return $ac_func ();
26768  ;
26769  return 0;
26770}
26771_ACEOF
26772rm -f conftest.$ac_objext conftest$ac_exeext
26773if { (ac_try="$ac_link"
26774case "(($ac_try" in
26775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776  *) ac_try_echo=$ac_try;;
26777esac
26778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779  (eval "$ac_link") 2>conftest.er1
26780  ac_status=$?
26781  grep -v '^ *+' conftest.er1 >conftest.err
26782  rm -f conftest.er1
26783  cat conftest.err >&5
26784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785  (exit $ac_status); } && {
26786	 test -z "$ac_c_werror_flag" ||
26787	 test ! -s conftest.err
26788       } && test -s conftest$ac_exeext &&
26789       $as_test_x conftest$ac_exeext; then
26790  eval "$as_ac_var=yes"
26791else
26792  echo "$as_me: failed program was:" >&5
26793sed 's/^/| /' conftest.$ac_ext >&5
26794
26795	eval "$as_ac_var=no"
26796fi
26797
26798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26799      conftest$ac_exeext conftest.$ac_ext
26800fi
26801ac_res=`eval echo '${'$as_ac_var'}'`
26802	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26803echo "${ECHO_T}$ac_res" >&6; }
26804if test `eval echo '${'$as_ac_var'}'` = yes; then
26805  cat >>confdefs.h <<_ACEOF
26806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26807_ACEOF
26808 cat >>confdefs.h <<\_ACEOF
26809#define BX_HAVE_STRICMP 1
26810_ACEOF
26811
26812fi
26813done
26814
26815
26816for ac_func in strcasecmp
26817do
26818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26819{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26822  echo $ECHO_N "(cached) $ECHO_C" >&6
26823else
26824  cat >conftest.$ac_ext <<_ACEOF
26825/* confdefs.h.  */
26826_ACEOF
26827cat confdefs.h >>conftest.$ac_ext
26828cat >>conftest.$ac_ext <<_ACEOF
26829/* end confdefs.h.  */
26830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26832#define $ac_func innocuous_$ac_func
26833
26834/* System header to define __stub macros and hopefully few prototypes,
26835    which can conflict with char $ac_func (); below.
26836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26837    <limits.h> exists even on freestanding compilers.  */
26838
26839#ifdef __STDC__
26840# include <limits.h>
26841#else
26842# include <assert.h>
26843#endif
26844
26845#undef $ac_func
26846
26847/* Override any GCC internal prototype to avoid an error.
26848   Use char because int might match the return type of a GCC
26849   builtin and then its argument prototype would still apply.  */
26850#ifdef __cplusplus
26851extern "C"
26852#endif
26853char $ac_func ();
26854/* The GNU C library defines this for functions which it implements
26855    to always fail with ENOSYS.  Some functions are actually named
26856    something starting with __ and the normal name is an alias.  */
26857#if defined __stub_$ac_func || defined __stub___$ac_func
26858choke me
26859#endif
26860
26861int
26862main ()
26863{
26864return $ac_func ();
26865  ;
26866  return 0;
26867}
26868_ACEOF
26869rm -f conftest.$ac_objext conftest$ac_exeext
26870if { (ac_try="$ac_link"
26871case "(($ac_try" in
26872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873  *) ac_try_echo=$ac_try;;
26874esac
26875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876  (eval "$ac_link") 2>conftest.er1
26877  ac_status=$?
26878  grep -v '^ *+' conftest.er1 >conftest.err
26879  rm -f conftest.er1
26880  cat conftest.err >&5
26881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882  (exit $ac_status); } && {
26883	 test -z "$ac_c_werror_flag" ||
26884	 test ! -s conftest.err
26885       } && test -s conftest$ac_exeext &&
26886       $as_test_x conftest$ac_exeext; then
26887  eval "$as_ac_var=yes"
26888else
26889  echo "$as_me: failed program was:" >&5
26890sed 's/^/| /' conftest.$ac_ext >&5
26891
26892	eval "$as_ac_var=no"
26893fi
26894
26895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26896      conftest$ac_exeext conftest.$ac_ext
26897fi
26898ac_res=`eval echo '${'$as_ac_var'}'`
26899	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26900echo "${ECHO_T}$ac_res" >&6; }
26901if test `eval echo '${'$as_ac_var'}'` = yes; then
26902  cat >>confdefs.h <<_ACEOF
26903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26904_ACEOF
26905 cat >>confdefs.h <<\_ACEOF
26906#define BX_HAVE_STRCASECMP 1
26907_ACEOF
26908
26909fi
26910done
26911
26912
26913for ac_func in sleep
26914do
26915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26919  echo $ECHO_N "(cached) $ECHO_C" >&6
26920else
26921  cat >conftest.$ac_ext <<_ACEOF
26922/* confdefs.h.  */
26923_ACEOF
26924cat confdefs.h >>conftest.$ac_ext
26925cat >>conftest.$ac_ext <<_ACEOF
26926/* end confdefs.h.  */
26927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26928   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26929#define $ac_func innocuous_$ac_func
26930
26931/* System header to define __stub macros and hopefully few prototypes,
26932    which can conflict with char $ac_func (); below.
26933    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26934    <limits.h> exists even on freestanding compilers.  */
26935
26936#ifdef __STDC__
26937# include <limits.h>
26938#else
26939# include <assert.h>
26940#endif
26941
26942#undef $ac_func
26943
26944/* Override any GCC internal prototype to avoid an error.
26945   Use char because int might match the return type of a GCC
26946   builtin and then its argument prototype would still apply.  */
26947#ifdef __cplusplus
26948extern "C"
26949#endif
26950char $ac_func ();
26951/* The GNU C library defines this for functions which it implements
26952    to always fail with ENOSYS.  Some functions are actually named
26953    something starting with __ and the normal name is an alias.  */
26954#if defined __stub_$ac_func || defined __stub___$ac_func
26955choke me
26956#endif
26957
26958int
26959main ()
26960{
26961return $ac_func ();
26962  ;
26963  return 0;
26964}
26965_ACEOF
26966rm -f conftest.$ac_objext conftest$ac_exeext
26967if { (ac_try="$ac_link"
26968case "(($ac_try" in
26969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970  *) ac_try_echo=$ac_try;;
26971esac
26972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973  (eval "$ac_link") 2>conftest.er1
26974  ac_status=$?
26975  grep -v '^ *+' conftest.er1 >conftest.err
26976  rm -f conftest.er1
26977  cat conftest.err >&5
26978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979  (exit $ac_status); } && {
26980	 test -z "$ac_c_werror_flag" ||
26981	 test ! -s conftest.err
26982       } && test -s conftest$ac_exeext &&
26983       $as_test_x conftest$ac_exeext; then
26984  eval "$as_ac_var=yes"
26985else
26986  echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989	eval "$as_ac_var=no"
26990fi
26991
26992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26993      conftest$ac_exeext conftest.$ac_ext
26994fi
26995ac_res=`eval echo '${'$as_ac_var'}'`
26996	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26997echo "${ECHO_T}$ac_res" >&6; }
26998if test `eval echo '${'$as_ac_var'}'` = yes; then
26999  cat >>confdefs.h <<_ACEOF
27000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27001_ACEOF
27002 cat >>confdefs.h <<\_ACEOF
27003#define BX_HAVE_SLEEP 1
27004_ACEOF
27005
27006fi
27007done
27008
27009
27010for ac_func in usleep
27011do
27012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27016  echo $ECHO_N "(cached) $ECHO_C" >&6
27017else
27018  cat >conftest.$ac_ext <<_ACEOF
27019/* confdefs.h.  */
27020_ACEOF
27021cat confdefs.h >>conftest.$ac_ext
27022cat >>conftest.$ac_ext <<_ACEOF
27023/* end confdefs.h.  */
27024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27026#define $ac_func innocuous_$ac_func
27027
27028/* System header to define __stub macros and hopefully few prototypes,
27029    which can conflict with char $ac_func (); below.
27030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031    <limits.h> exists even on freestanding compilers.  */
27032
27033#ifdef __STDC__
27034# include <limits.h>
27035#else
27036# include <assert.h>
27037#endif
27038
27039#undef $ac_func
27040
27041/* Override any GCC internal prototype to avoid an error.
27042   Use char because int might match the return type of a GCC
27043   builtin and then its argument prototype would still apply.  */
27044#ifdef __cplusplus
27045extern "C"
27046#endif
27047char $ac_func ();
27048/* The GNU C library defines this for functions which it implements
27049    to always fail with ENOSYS.  Some functions are actually named
27050    something starting with __ and the normal name is an alias.  */
27051#if defined __stub_$ac_func || defined __stub___$ac_func
27052choke me
27053#endif
27054
27055int
27056main ()
27057{
27058return $ac_func ();
27059  ;
27060  return 0;
27061}
27062_ACEOF
27063rm -f conftest.$ac_objext conftest$ac_exeext
27064if { (ac_try="$ac_link"
27065case "(($ac_try" in
27066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067  *) ac_try_echo=$ac_try;;
27068esac
27069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070  (eval "$ac_link") 2>conftest.er1
27071  ac_status=$?
27072  grep -v '^ *+' conftest.er1 >conftest.err
27073  rm -f conftest.er1
27074  cat conftest.err >&5
27075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076  (exit $ac_status); } && {
27077	 test -z "$ac_c_werror_flag" ||
27078	 test ! -s conftest.err
27079       } && test -s conftest$ac_exeext &&
27080       $as_test_x conftest$ac_exeext; then
27081  eval "$as_ac_var=yes"
27082else
27083  echo "$as_me: failed program was:" >&5
27084sed 's/^/| /' conftest.$ac_ext >&5
27085
27086	eval "$as_ac_var=no"
27087fi
27088
27089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27090      conftest$ac_exeext conftest.$ac_ext
27091fi
27092ac_res=`eval echo '${'$as_ac_var'}'`
27093	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27094echo "${ECHO_T}$ac_res" >&6; }
27095if test `eval echo '${'$as_ac_var'}'` = yes; then
27096  cat >>confdefs.h <<_ACEOF
27097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27098_ACEOF
27099 cat >>confdefs.h <<\_ACEOF
27100#define BX_HAVE_USLEEP 1
27101_ACEOF
27102
27103fi
27104done
27105
27106
27107for ac_func in nanosleep
27108do
27109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27113  echo $ECHO_N "(cached) $ECHO_C" >&6
27114else
27115  cat >conftest.$ac_ext <<_ACEOF
27116/* confdefs.h.  */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h.  */
27121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27123#define $ac_func innocuous_$ac_func
27124
27125/* System header to define __stub macros and hopefully few prototypes,
27126    which can conflict with char $ac_func (); below.
27127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27128    <limits.h> exists even on freestanding compilers.  */
27129
27130#ifdef __STDC__
27131# include <limits.h>
27132#else
27133# include <assert.h>
27134#endif
27135
27136#undef $ac_func
27137
27138/* Override any GCC internal prototype to avoid an error.
27139   Use char because int might match the return type of a GCC
27140   builtin and then its argument prototype would still apply.  */
27141#ifdef __cplusplus
27142extern "C"
27143#endif
27144char $ac_func ();
27145/* The GNU C library defines this for functions which it implements
27146    to always fail with ENOSYS.  Some functions are actually named
27147    something starting with __ and the normal name is an alias.  */
27148#if defined __stub_$ac_func || defined __stub___$ac_func
27149choke me
27150#endif
27151
27152int
27153main ()
27154{
27155return $ac_func ();
27156  ;
27157  return 0;
27158}
27159_ACEOF
27160rm -f conftest.$ac_objext conftest$ac_exeext
27161if { (ac_try="$ac_link"
27162case "(($ac_try" in
27163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164  *) ac_try_echo=$ac_try;;
27165esac
27166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167  (eval "$ac_link") 2>conftest.er1
27168  ac_status=$?
27169  grep -v '^ *+' conftest.er1 >conftest.err
27170  rm -f conftest.er1
27171  cat conftest.err >&5
27172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173  (exit $ac_status); } && {
27174	 test -z "$ac_c_werror_flag" ||
27175	 test ! -s conftest.err
27176       } && test -s conftest$ac_exeext &&
27177       $as_test_x conftest$ac_exeext; then
27178  eval "$as_ac_var=yes"
27179else
27180  echo "$as_me: failed program was:" >&5
27181sed 's/^/| /' conftest.$ac_ext >&5
27182
27183	eval "$as_ac_var=no"
27184fi
27185
27186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27187      conftest$ac_exeext conftest.$ac_ext
27188fi
27189ac_res=`eval echo '${'$as_ac_var'}'`
27190	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27191echo "${ECHO_T}$ac_res" >&6; }
27192if test `eval echo '${'$as_ac_var'}'` = yes; then
27193  cat >>confdefs.h <<_ACEOF
27194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27195_ACEOF
27196 cat >>confdefs.h <<\_ACEOF
27197#define BX_HAVE_NANOSLEEP 1
27198_ACEOF
27199
27200fi
27201done
27202
27203
27204for ac_func in abort
27205do
27206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27207{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27209if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27210  echo $ECHO_N "(cached) $ECHO_C" >&6
27211else
27212  cat >conftest.$ac_ext <<_ACEOF
27213/* confdefs.h.  */
27214_ACEOF
27215cat confdefs.h >>conftest.$ac_ext
27216cat >>conftest.$ac_ext <<_ACEOF
27217/* end confdefs.h.  */
27218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27219   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27220#define $ac_func innocuous_$ac_func
27221
27222/* System header to define __stub macros and hopefully few prototypes,
27223    which can conflict with char $ac_func (); below.
27224    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27225    <limits.h> exists even on freestanding compilers.  */
27226
27227#ifdef __STDC__
27228# include <limits.h>
27229#else
27230# include <assert.h>
27231#endif
27232
27233#undef $ac_func
27234
27235/* Override any GCC internal prototype to avoid an error.
27236   Use char because int might match the return type of a GCC
27237   builtin and then its argument prototype would still apply.  */
27238#ifdef __cplusplus
27239extern "C"
27240#endif
27241char $ac_func ();
27242/* The GNU C library defines this for functions which it implements
27243    to always fail with ENOSYS.  Some functions are actually named
27244    something starting with __ and the normal name is an alias.  */
27245#if defined __stub_$ac_func || defined __stub___$ac_func
27246choke me
27247#endif
27248
27249int
27250main ()
27251{
27252return $ac_func ();
27253  ;
27254  return 0;
27255}
27256_ACEOF
27257rm -f conftest.$ac_objext conftest$ac_exeext
27258if { (ac_try="$ac_link"
27259case "(($ac_try" in
27260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261  *) ac_try_echo=$ac_try;;
27262esac
27263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264  (eval "$ac_link") 2>conftest.er1
27265  ac_status=$?
27266  grep -v '^ *+' conftest.er1 >conftest.err
27267  rm -f conftest.er1
27268  cat conftest.err >&5
27269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270  (exit $ac_status); } && {
27271	 test -z "$ac_c_werror_flag" ||
27272	 test ! -s conftest.err
27273       } && test -s conftest$ac_exeext &&
27274       $as_test_x conftest$ac_exeext; then
27275  eval "$as_ac_var=yes"
27276else
27277  echo "$as_me: failed program was:" >&5
27278sed 's/^/| /' conftest.$ac_ext >&5
27279
27280	eval "$as_ac_var=no"
27281fi
27282
27283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27284      conftest$ac_exeext conftest.$ac_ext
27285fi
27286ac_res=`eval echo '${'$as_ac_var'}'`
27287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27288echo "${ECHO_T}$ac_res" >&6; }
27289if test `eval echo '${'$as_ac_var'}'` = yes; then
27290  cat >>confdefs.h <<_ACEOF
27291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27292_ACEOF
27293 cat >>confdefs.h <<\_ACEOF
27294#define BX_HAVE_ABORT 1
27295_ACEOF
27296
27297fi
27298done
27299
27300
27301for ac_func in gettimeofday
27302do
27303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27307  echo $ECHO_N "(cached) $ECHO_C" >&6
27308else
27309  cat >conftest.$ac_ext <<_ACEOF
27310/* confdefs.h.  */
27311_ACEOF
27312cat confdefs.h >>conftest.$ac_ext
27313cat >>conftest.$ac_ext <<_ACEOF
27314/* end confdefs.h.  */
27315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27316   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27317#define $ac_func innocuous_$ac_func
27318
27319/* System header to define __stub macros and hopefully few prototypes,
27320    which can conflict with char $ac_func (); below.
27321    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27322    <limits.h> exists even on freestanding compilers.  */
27323
27324#ifdef __STDC__
27325# include <limits.h>
27326#else
27327# include <assert.h>
27328#endif
27329
27330#undef $ac_func
27331
27332/* Override any GCC internal prototype to avoid an error.
27333   Use char because int might match the return type of a GCC
27334   builtin and then its argument prototype would still apply.  */
27335#ifdef __cplusplus
27336extern "C"
27337#endif
27338char $ac_func ();
27339/* The GNU C library defines this for functions which it implements
27340    to always fail with ENOSYS.  Some functions are actually named
27341    something starting with __ and the normal name is an alias.  */
27342#if defined __stub_$ac_func || defined __stub___$ac_func
27343choke me
27344#endif
27345
27346int
27347main ()
27348{
27349return $ac_func ();
27350  ;
27351  return 0;
27352}
27353_ACEOF
27354rm -f conftest.$ac_objext conftest$ac_exeext
27355if { (ac_try="$ac_link"
27356case "(($ac_try" in
27357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358  *) ac_try_echo=$ac_try;;
27359esac
27360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361  (eval "$ac_link") 2>conftest.er1
27362  ac_status=$?
27363  grep -v '^ *+' conftest.er1 >conftest.err
27364  rm -f conftest.er1
27365  cat conftest.err >&5
27366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367  (exit $ac_status); } && {
27368	 test -z "$ac_c_werror_flag" ||
27369	 test ! -s conftest.err
27370       } && test -s conftest$ac_exeext &&
27371       $as_test_x conftest$ac_exeext; then
27372  eval "$as_ac_var=yes"
27373else
27374  echo "$as_me: failed program was:" >&5
27375sed 's/^/| /' conftest.$ac_ext >&5
27376
27377	eval "$as_ac_var=no"
27378fi
27379
27380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27381      conftest$ac_exeext conftest.$ac_ext
27382fi
27383ac_res=`eval echo '${'$as_ac_var'}'`
27384	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27385echo "${ECHO_T}$ac_res" >&6; }
27386if test `eval echo '${'$as_ac_var'}'` = yes; then
27387  cat >>confdefs.h <<_ACEOF
27388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27389_ACEOF
27390 cat >>confdefs.h <<\_ACEOF
27391#define BX_HAVE_GETTIMEOFDAY 1
27392_ACEOF
27393
27394fi
27395done
27396
27397{ echo "$as_me:$LINENO: checking for socklen_t" >&5
27398echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27399if test "${ac_cv_type_socklen_t+set}" = set; then
27400  echo $ECHO_N "(cached) $ECHO_C" >&6
27401else
27402  cat >conftest.$ac_ext <<_ACEOF
27403/* confdefs.h.  */
27404_ACEOF
27405cat confdefs.h >>conftest.$ac_ext
27406cat >>conftest.$ac_ext <<_ACEOF
27407/* end confdefs.h.  */
27408#include <sys/types.h>
27409#include <sys/socket.h>
27410
27411typedef socklen_t ac__type_new_;
27412int
27413main ()
27414{
27415if ((ac__type_new_ *) 0)
27416  return 0;
27417if (sizeof (ac__type_new_))
27418  return 0;
27419  ;
27420  return 0;
27421}
27422_ACEOF
27423rm -f conftest.$ac_objext
27424if { (ac_try="$ac_compile"
27425case "(($ac_try" in
27426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427  *) ac_try_echo=$ac_try;;
27428esac
27429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430  (eval "$ac_compile") 2>conftest.er1
27431  ac_status=$?
27432  grep -v '^ *+' conftest.er1 >conftest.err
27433  rm -f conftest.er1
27434  cat conftest.err >&5
27435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436  (exit $ac_status); } && {
27437	 test -z "$ac_c_werror_flag" ||
27438	 test ! -s conftest.err
27439       } && test -s conftest.$ac_objext; then
27440  ac_cv_type_socklen_t=yes
27441else
27442  echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
27445	ac_cv_type_socklen_t=no
27446fi
27447
27448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27449fi
27450{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27451echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27452if test $ac_cv_type_socklen_t = yes; then
27453  cat >>confdefs.h <<\_ACEOF
27454#define BX_HAVE_SOCKLEN_T 1
27455_ACEOF
27456
27457fi
27458
27459{ echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27460echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27461if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27462  echo $ECHO_N "(cached) $ECHO_C" >&6
27463else
27464  cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h.  */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h.  */
27470#include <sys/socket.h>
27471#include <netinet/in.h>
27472
27473int
27474main ()
27475{
27476static struct sockaddr_in ac_aggr;
27477if (ac_aggr.sin_len)
27478return 0;
27479  ;
27480  return 0;
27481}
27482_ACEOF
27483rm -f conftest.$ac_objext
27484if { (ac_try="$ac_compile"
27485case "(($ac_try" in
27486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487  *) ac_try_echo=$ac_try;;
27488esac
27489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490  (eval "$ac_compile") 2>conftest.er1
27491  ac_status=$?
27492  grep -v '^ *+' conftest.er1 >conftest.err
27493  rm -f conftest.er1
27494  cat conftest.err >&5
27495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496  (exit $ac_status); } && {
27497	 test -z "$ac_c_werror_flag" ||
27498	 test ! -s conftest.err
27499       } && test -s conftest.$ac_objext; then
27500  ac_cv_member_struct_sockaddr_in_sin_len=yes
27501else
27502  echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
27505	cat >conftest.$ac_ext <<_ACEOF
27506/* confdefs.h.  */
27507_ACEOF
27508cat confdefs.h >>conftest.$ac_ext
27509cat >>conftest.$ac_ext <<_ACEOF
27510/* end confdefs.h.  */
27511#include <sys/socket.h>
27512#include <netinet/in.h>
27513
27514int
27515main ()
27516{
27517static struct sockaddr_in ac_aggr;
27518if (sizeof ac_aggr.sin_len)
27519return 0;
27520  ;
27521  return 0;
27522}
27523_ACEOF
27524rm -f conftest.$ac_objext
27525if { (ac_try="$ac_compile"
27526case "(($ac_try" in
27527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528  *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531  (eval "$ac_compile") 2>conftest.er1
27532  ac_status=$?
27533  grep -v '^ *+' conftest.er1 >conftest.err
27534  rm -f conftest.er1
27535  cat conftest.err >&5
27536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537  (exit $ac_status); } && {
27538	 test -z "$ac_c_werror_flag" ||
27539	 test ! -s conftest.err
27540       } && test -s conftest.$ac_objext; then
27541  ac_cv_member_struct_sockaddr_in_sin_len=yes
27542else
27543  echo "$as_me: failed program was:" >&5
27544sed 's/^/| /' conftest.$ac_ext >&5
27545
27546	ac_cv_member_struct_sockaddr_in_sin_len=no
27547fi
27548
27549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27550fi
27551
27552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27553fi
27554{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27555echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27556if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27557  cat >>confdefs.h <<\_ACEOF
27558#define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
27559_ACEOF
27560
27561fi
27562
27563
27564for ac_func in mkstemp
27565do
27566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27567{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27569if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27570  echo $ECHO_N "(cached) $ECHO_C" >&6
27571else
27572  cat >conftest.$ac_ext <<_ACEOF
27573/* confdefs.h.  */
27574_ACEOF
27575cat confdefs.h >>conftest.$ac_ext
27576cat >>conftest.$ac_ext <<_ACEOF
27577/* end confdefs.h.  */
27578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27579   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27580#define $ac_func innocuous_$ac_func
27581
27582/* System header to define __stub macros and hopefully few prototypes,
27583    which can conflict with char $ac_func (); below.
27584    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27585    <limits.h> exists even on freestanding compilers.  */
27586
27587#ifdef __STDC__
27588# include <limits.h>
27589#else
27590# include <assert.h>
27591#endif
27592
27593#undef $ac_func
27594
27595/* Override any GCC internal prototype to avoid an error.
27596   Use char because int might match the return type of a GCC
27597   builtin and then its argument prototype would still apply.  */
27598#ifdef __cplusplus
27599extern "C"
27600#endif
27601char $ac_func ();
27602/* The GNU C library defines this for functions which it implements
27603    to always fail with ENOSYS.  Some functions are actually named
27604    something starting with __ and the normal name is an alias.  */
27605#if defined __stub_$ac_func || defined __stub___$ac_func
27606choke me
27607#endif
27608
27609int
27610main ()
27611{
27612return $ac_func ();
27613  ;
27614  return 0;
27615}
27616_ACEOF
27617rm -f conftest.$ac_objext conftest$ac_exeext
27618if { (ac_try="$ac_link"
27619case "(($ac_try" in
27620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621  *) ac_try_echo=$ac_try;;
27622esac
27623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624  (eval "$ac_link") 2>conftest.er1
27625  ac_status=$?
27626  grep -v '^ *+' conftest.er1 >conftest.err
27627  rm -f conftest.er1
27628  cat conftest.err >&5
27629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630  (exit $ac_status); } && {
27631	 test -z "$ac_c_werror_flag" ||
27632	 test ! -s conftest.err
27633       } && test -s conftest$ac_exeext &&
27634       $as_test_x conftest$ac_exeext; then
27635  eval "$as_ac_var=yes"
27636else
27637  echo "$as_me: failed program was:" >&5
27638sed 's/^/| /' conftest.$ac_ext >&5
27639
27640	eval "$as_ac_var=no"
27641fi
27642
27643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27644      conftest$ac_exeext conftest.$ac_ext
27645fi
27646ac_res=`eval echo '${'$as_ac_var'}'`
27647	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27648echo "${ECHO_T}$ac_res" >&6; }
27649if test `eval echo '${'$as_ac_var'}'` = yes; then
27650  cat >>confdefs.h <<_ACEOF
27651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27652_ACEOF
27653 cat >>confdefs.h <<\_ACEOF
27654#define BX_HAVE_MKSTEMP 1
27655_ACEOF
27656
27657fi
27658done
27659
27660if test "${ac_cv_header_sys_mman_h+set}" = set; then
27661  { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27662echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27663if test "${ac_cv_header_sys_mman_h+set}" = set; then
27664  echo $ECHO_N "(cached) $ECHO_C" >&6
27665fi
27666{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27667echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27668else
27669  # Is the header compilable?
27670{ echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
27671echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
27672cat >conftest.$ac_ext <<_ACEOF
27673/* confdefs.h.  */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h.  */
27678$ac_includes_default
27679#include <sys/mman.h>
27680_ACEOF
27681rm -f conftest.$ac_objext
27682if { (ac_try="$ac_compile"
27683case "(($ac_try" in
27684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685  *) ac_try_echo=$ac_try;;
27686esac
27687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688  (eval "$ac_compile") 2>conftest.er1
27689  ac_status=$?
27690  grep -v '^ *+' conftest.er1 >conftest.err
27691  rm -f conftest.er1
27692  cat conftest.err >&5
27693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694  (exit $ac_status); } && {
27695	 test -z "$ac_c_werror_flag" ||
27696	 test ! -s conftest.err
27697       } && test -s conftest.$ac_objext; then
27698  ac_header_compiler=yes
27699else
27700  echo "$as_me: failed program was:" >&5
27701sed 's/^/| /' conftest.$ac_ext >&5
27702
27703	ac_header_compiler=no
27704fi
27705
27706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27708echo "${ECHO_T}$ac_header_compiler" >&6; }
27709
27710# Is the header present?
27711{ echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
27712echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
27713cat >conftest.$ac_ext <<_ACEOF
27714/* confdefs.h.  */
27715_ACEOF
27716cat confdefs.h >>conftest.$ac_ext
27717cat >>conftest.$ac_ext <<_ACEOF
27718/* end confdefs.h.  */
27719#include <sys/mman.h>
27720_ACEOF
27721if { (ac_try="$ac_cpp conftest.$ac_ext"
27722case "(($ac_try" in
27723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724  *) ac_try_echo=$ac_try;;
27725esac
27726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27728  ac_status=$?
27729  grep -v '^ *+' conftest.er1 >conftest.err
27730  rm -f conftest.er1
27731  cat conftest.err >&5
27732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733  (exit $ac_status); } >/dev/null && {
27734	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27735	 test ! -s conftest.err
27736       }; then
27737  ac_header_preproc=yes
27738else
27739  echo "$as_me: failed program was:" >&5
27740sed 's/^/| /' conftest.$ac_ext >&5
27741
27742  ac_header_preproc=no
27743fi
27744
27745rm -f conftest.err conftest.$ac_ext
27746{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27747echo "${ECHO_T}$ac_header_preproc" >&6; }
27748
27749# So?  What about this header?
27750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27751  yes:no: )
27752    { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
27753echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27754    { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
27755echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
27756    ac_header_preproc=yes
27757    ;;
27758  no:yes:* )
27759    { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
27760echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
27761    { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
27762echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
27763    { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
27764echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
27765    { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
27766echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27767    { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
27768echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
27769    { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
27770echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
27771
27772    ;;
27773esac
27774{ echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27775echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27776if test "${ac_cv_header_sys_mman_h+set}" = set; then
27777  echo $ECHO_N "(cached) $ECHO_C" >&6
27778else
27779  ac_cv_header_sys_mman_h=$ac_header_preproc
27780fi
27781{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27782echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27783
27784fi
27785if test $ac_cv_header_sys_mman_h = yes; then
27786  cat >>confdefs.h <<\_ACEOF
27787#define BX_HAVE_SYS_MMAN_H 1
27788_ACEOF
27789
27790fi
27791
27792
27793
27794for ac_func in timelocal
27795do
27796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27797{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27799if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27800  echo $ECHO_N "(cached) $ECHO_C" >&6
27801else
27802  cat >conftest.$ac_ext <<_ACEOF
27803/* confdefs.h.  */
27804_ACEOF
27805cat confdefs.h >>conftest.$ac_ext
27806cat >>conftest.$ac_ext <<_ACEOF
27807/* end confdefs.h.  */
27808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27809   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27810#define $ac_func innocuous_$ac_func
27811
27812/* System header to define __stub macros and hopefully few prototypes,
27813    which can conflict with char $ac_func (); below.
27814    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27815    <limits.h> exists even on freestanding compilers.  */
27816
27817#ifdef __STDC__
27818# include <limits.h>
27819#else
27820# include <assert.h>
27821#endif
27822
27823#undef $ac_func
27824
27825/* Override any GCC internal prototype to avoid an error.
27826   Use char because int might match the return type of a GCC
27827   builtin and then its argument prototype would still apply.  */
27828#ifdef __cplusplus
27829extern "C"
27830#endif
27831char $ac_func ();
27832/* The GNU C library defines this for functions which it implements
27833    to always fail with ENOSYS.  Some functions are actually named
27834    something starting with __ and the normal name is an alias.  */
27835#if defined __stub_$ac_func || defined __stub___$ac_func
27836choke me
27837#endif
27838
27839int
27840main ()
27841{
27842return $ac_func ();
27843  ;
27844  return 0;
27845}
27846_ACEOF
27847rm -f conftest.$ac_objext conftest$ac_exeext
27848if { (ac_try="$ac_link"
27849case "(($ac_try" in
27850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851  *) ac_try_echo=$ac_try;;
27852esac
27853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854  (eval "$ac_link") 2>conftest.er1
27855  ac_status=$?
27856  grep -v '^ *+' conftest.er1 >conftest.err
27857  rm -f conftest.er1
27858  cat conftest.err >&5
27859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860  (exit $ac_status); } && {
27861	 test -z "$ac_c_werror_flag" ||
27862	 test ! -s conftest.err
27863       } && test -s conftest$ac_exeext &&
27864       $as_test_x conftest$ac_exeext; then
27865  eval "$as_ac_var=yes"
27866else
27867  echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
27870	eval "$as_ac_var=no"
27871fi
27872
27873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27874      conftest$ac_exeext conftest.$ac_ext
27875fi
27876ac_res=`eval echo '${'$as_ac_var'}'`
27877	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27878echo "${ECHO_T}$ac_res" >&6; }
27879if test `eval echo '${'$as_ac_var'}'` = yes; then
27880  cat >>confdefs.h <<_ACEOF
27881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27882_ACEOF
27883 cat >>confdefs.h <<\_ACEOF
27884#define BX_HAVE_TIMELOCAL 1
27885_ACEOF
27886
27887fi
27888done
27889
27890
27891for ac_func in gmtime
27892do
27893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27897  echo $ECHO_N "(cached) $ECHO_C" >&6
27898else
27899  cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h.  */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h.  */
27905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27906   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27907#define $ac_func innocuous_$ac_func
27908
27909/* System header to define __stub macros and hopefully few prototypes,
27910    which can conflict with char $ac_func (); below.
27911    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27912    <limits.h> exists even on freestanding compilers.  */
27913
27914#ifdef __STDC__
27915# include <limits.h>
27916#else
27917# include <assert.h>
27918#endif
27919
27920#undef $ac_func
27921
27922/* Override any GCC internal prototype to avoid an error.
27923   Use char because int might match the return type of a GCC
27924   builtin and then its argument prototype would still apply.  */
27925#ifdef __cplusplus
27926extern "C"
27927#endif
27928char $ac_func ();
27929/* The GNU C library defines this for functions which it implements
27930    to always fail with ENOSYS.  Some functions are actually named
27931    something starting with __ and the normal name is an alias.  */
27932#if defined __stub_$ac_func || defined __stub___$ac_func
27933choke me
27934#endif
27935
27936int
27937main ()
27938{
27939return $ac_func ();
27940  ;
27941  return 0;
27942}
27943_ACEOF
27944rm -f conftest.$ac_objext conftest$ac_exeext
27945if { (ac_try="$ac_link"
27946case "(($ac_try" in
27947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948  *) ac_try_echo=$ac_try;;
27949esac
27950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951  (eval "$ac_link") 2>conftest.er1
27952  ac_status=$?
27953  grep -v '^ *+' conftest.er1 >conftest.err
27954  rm -f conftest.er1
27955  cat conftest.err >&5
27956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957  (exit $ac_status); } && {
27958	 test -z "$ac_c_werror_flag" ||
27959	 test ! -s conftest.err
27960       } && test -s conftest$ac_exeext &&
27961       $as_test_x conftest$ac_exeext; then
27962  eval "$as_ac_var=yes"
27963else
27964  echo "$as_me: failed program was:" >&5
27965sed 's/^/| /' conftest.$ac_ext >&5
27966
27967	eval "$as_ac_var=no"
27968fi
27969
27970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27971      conftest$ac_exeext conftest.$ac_ext
27972fi
27973ac_res=`eval echo '${'$as_ac_var'}'`
27974	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27975echo "${ECHO_T}$ac_res" >&6; }
27976if test `eval echo '${'$as_ac_var'}'` = yes; then
27977  cat >>confdefs.h <<_ACEOF
27978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27979_ACEOF
27980 cat >>confdefs.h <<\_ACEOF
27981#define BX_HAVE_GMTIME 1
27982_ACEOF
27983
27984fi
27985done
27986
27987
27988for ac_func in mktime
27989do
27990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27991{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27993if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27994  echo $ECHO_N "(cached) $ECHO_C" >&6
27995else
27996  cat >conftest.$ac_ext <<_ACEOF
27997/* confdefs.h.  */
27998_ACEOF
27999cat confdefs.h >>conftest.$ac_ext
28000cat >>conftest.$ac_ext <<_ACEOF
28001/* end confdefs.h.  */
28002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28003   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28004#define $ac_func innocuous_$ac_func
28005
28006/* System header to define __stub macros and hopefully few prototypes,
28007    which can conflict with char $ac_func (); below.
28008    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28009    <limits.h> exists even on freestanding compilers.  */
28010
28011#ifdef __STDC__
28012# include <limits.h>
28013#else
28014# include <assert.h>
28015#endif
28016
28017#undef $ac_func
28018
28019/* Override any GCC internal prototype to avoid an error.
28020   Use char because int might match the return type of a GCC
28021   builtin and then its argument prototype would still apply.  */
28022#ifdef __cplusplus
28023extern "C"
28024#endif
28025char $ac_func ();
28026/* The GNU C library defines this for functions which it implements
28027    to always fail with ENOSYS.  Some functions are actually named
28028    something starting with __ and the normal name is an alias.  */
28029#if defined __stub_$ac_func || defined __stub___$ac_func
28030choke me
28031#endif
28032
28033int
28034main ()
28035{
28036return $ac_func ();
28037  ;
28038  return 0;
28039}
28040_ACEOF
28041rm -f conftest.$ac_objext conftest$ac_exeext
28042if { (ac_try="$ac_link"
28043case "(($ac_try" in
28044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045  *) ac_try_echo=$ac_try;;
28046esac
28047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048  (eval "$ac_link") 2>conftest.er1
28049  ac_status=$?
28050  grep -v '^ *+' conftest.er1 >conftest.err
28051  rm -f conftest.er1
28052  cat conftest.err >&5
28053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054  (exit $ac_status); } && {
28055	 test -z "$ac_c_werror_flag" ||
28056	 test ! -s conftest.err
28057       } && test -s conftest$ac_exeext &&
28058       $as_test_x conftest$ac_exeext; then
28059  eval "$as_ac_var=yes"
28060else
28061  echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
28064	eval "$as_ac_var=no"
28065fi
28066
28067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28068      conftest$ac_exeext conftest.$ac_ext
28069fi
28070ac_res=`eval echo '${'$as_ac_var'}'`
28071	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28072echo "${ECHO_T}$ac_res" >&6; }
28073if test `eval echo '${'$as_ac_var'}'` = yes; then
28074  cat >>confdefs.h <<_ACEOF
28075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28076_ACEOF
28077 cat >>confdefs.h <<\_ACEOF
28078#define BX_HAVE_MKTIME 1
28079_ACEOF
28080
28081fi
28082done
28083
28084
28085# Check whether --enable-largefile was given.
28086if test "${enable_largefile+set}" = set; then
28087  enableval=$enable_largefile;
28088fi
28089
28090if test "$enable_largefile" != no; then
28091            wx_largefile=no
28092
28093    { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
28094echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
28095if test "${ac_cv_sys_file_offset_bits+set}" = set; then
28096  echo $ECHO_N "(cached) $ECHO_C" >&6
28097else
28098
28099          cat >conftest.$ac_ext <<_ACEOF
28100/* confdefs.h.  */
28101_ACEOF
28102cat confdefs.h >>conftest.$ac_ext
28103cat >>conftest.$ac_ext <<_ACEOF
28104/* end confdefs.h.  */
28105#define _FILE_OFFSET_BITS 64
28106                          #include <sys/types.h>
28107int
28108main ()
28109{
28110typedef struct {
28111    unsigned int field: sizeof(off_t) == 8;
28112} wxlf;
28113
28114  ;
28115  return 0;
28116}
28117_ACEOF
28118rm -f conftest.$ac_objext
28119if { (ac_try="$ac_compile"
28120case "(($ac_try" in
28121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122  *) ac_try_echo=$ac_try;;
28123esac
28124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125  (eval "$ac_compile") 2>conftest.er1
28126  ac_status=$?
28127  grep -v '^ *+' conftest.er1 >conftest.err
28128  rm -f conftest.er1
28129  cat conftest.err >&5
28130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131  (exit $ac_status); } && {
28132	 test -z "$ac_c_werror_flag" ||
28133	 test ! -s conftest.err
28134       } && test -s conftest.$ac_objext; then
28135  ac_cv_sys_file_offset_bits=64
28136else
28137  echo "$as_me: failed program was:" >&5
28138sed 's/^/| /' conftest.$ac_ext >&5
28139
28140	ac_cv_sys_file_offset_bits=no
28141fi
28142
28143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144
28145
28146fi
28147{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
28148echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
28149
28150    if test "$ac_cv_sys_file_offset_bits" != no; then
28151        wx_largefile=yes
28152        cat >>confdefs.h <<_ACEOF
28153#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
28154_ACEOF
28155
28156    fi
28157
28158    if test "x$wx_largefile" != "xyes"; then
28159
28160    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
28161echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
28162if test "${ac_cv_sys_large_files+set}" = set; then
28163  echo $ECHO_N "(cached) $ECHO_C" >&6
28164else
28165
28166          cat >conftest.$ac_ext <<_ACEOF
28167/* confdefs.h.  */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h.  */
28172#define _LARGE_FILES 1
28173                          #include <sys/types.h>
28174int
28175main ()
28176{
28177typedef struct {
28178    unsigned int field: sizeof(off_t) == 8;
28179} wxlf;
28180
28181  ;
28182  return 0;
28183}
28184_ACEOF
28185rm -f conftest.$ac_objext
28186if { (ac_try="$ac_compile"
28187case "(($ac_try" in
28188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189  *) ac_try_echo=$ac_try;;
28190esac
28191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192  (eval "$ac_compile") 2>conftest.er1
28193  ac_status=$?
28194  grep -v '^ *+' conftest.er1 >conftest.err
28195  rm -f conftest.er1
28196  cat conftest.err >&5
28197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198  (exit $ac_status); } && {
28199	 test -z "$ac_c_werror_flag" ||
28200	 test ! -s conftest.err
28201       } && test -s conftest.$ac_objext; then
28202  ac_cv_sys_large_files=1
28203else
28204  echo "$as_me: failed program was:" >&5
28205sed 's/^/| /' conftest.$ac_ext >&5
28206
28207	ac_cv_sys_large_files=no
28208fi
28209
28210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28211
28212
28213fi
28214{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
28215echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
28216
28217    if test "$ac_cv_sys_large_files" != no; then
28218        wx_largefile=yes
28219        cat >>confdefs.h <<_ACEOF
28220#define _LARGE_FILES $ac_cv_sys_large_files
28221_ACEOF
28222
28223    fi
28224
28225    fi
28226
28227    { echo "$as_me:$LINENO: checking if large file support is available" >&5
28228echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
28229    if test "x$wx_largefile" = "xyes"; then
28230        cat >>confdefs.h <<\_ACEOF
28231#define HAVE_LARGEFILE_SUPPORT 1
28232_ACEOF
28233
28234    fi
28235    { echo "$as_me:$LINENO: result: $wx_largefile" >&5
28236echo "${ECHO_T}$wx_largefile" >&6; }
28237fi
28238
28239
28240if test "x$wx_largefile" = "xyes"; then
28241    if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
28242        BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
28243    else
28244        BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
28245    fi
28246    CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
28247    CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
28248    CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
28249fi
28250
28251have_cos=0
28252have_floor=0
28253
28254for ac_func in cos
28255do
28256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28257{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28260  echo $ECHO_N "(cached) $ECHO_C" >&6
28261else
28262  cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h.  */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h.  */
28268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28269   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28270#define $ac_func innocuous_$ac_func
28271
28272/* System header to define __stub macros and hopefully few prototypes,
28273    which can conflict with char $ac_func (); below.
28274    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28275    <limits.h> exists even on freestanding compilers.  */
28276
28277#ifdef __STDC__
28278# include <limits.h>
28279#else
28280# include <assert.h>
28281#endif
28282
28283#undef $ac_func
28284
28285/* Override any GCC internal prototype to avoid an error.
28286   Use char because int might match the return type of a GCC
28287   builtin and then its argument prototype would still apply.  */
28288#ifdef __cplusplus
28289extern "C"
28290#endif
28291char $ac_func ();
28292/* The GNU C library defines this for functions which it implements
28293    to always fail with ENOSYS.  Some functions are actually named
28294    something starting with __ and the normal name is an alias.  */
28295#if defined __stub_$ac_func || defined __stub___$ac_func
28296choke me
28297#endif
28298
28299int
28300main ()
28301{
28302return $ac_func ();
28303  ;
28304  return 0;
28305}
28306_ACEOF
28307rm -f conftest.$ac_objext conftest$ac_exeext
28308if { (ac_try="$ac_link"
28309case "(($ac_try" in
28310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311  *) ac_try_echo=$ac_try;;
28312esac
28313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314  (eval "$ac_link") 2>conftest.er1
28315  ac_status=$?
28316  grep -v '^ *+' conftest.er1 >conftest.err
28317  rm -f conftest.er1
28318  cat conftest.err >&5
28319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320  (exit $ac_status); } && {
28321	 test -z "$ac_c_werror_flag" ||
28322	 test ! -s conftest.err
28323       } && test -s conftest$ac_exeext &&
28324       $as_test_x conftest$ac_exeext; then
28325  eval "$as_ac_var=yes"
28326else
28327  echo "$as_me: failed program was:" >&5
28328sed 's/^/| /' conftest.$ac_ext >&5
28329
28330	eval "$as_ac_var=no"
28331fi
28332
28333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28334      conftest$ac_exeext conftest.$ac_ext
28335fi
28336ac_res=`eval echo '${'$as_ac_var'}'`
28337	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28338echo "${ECHO_T}$ac_res" >&6; }
28339if test `eval echo '${'$as_ac_var'}'` = yes; then
28340  cat >>confdefs.h <<_ACEOF
28341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28342_ACEOF
28343 have_cos=1
28344fi
28345done
28346
28347
28348for ac_func in floor
28349do
28350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28354  echo $ECHO_N "(cached) $ECHO_C" >&6
28355else
28356  cat >conftest.$ac_ext <<_ACEOF
28357/* confdefs.h.  */
28358_ACEOF
28359cat confdefs.h >>conftest.$ac_ext
28360cat >>conftest.$ac_ext <<_ACEOF
28361/* end confdefs.h.  */
28362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28363   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28364#define $ac_func innocuous_$ac_func
28365
28366/* System header to define __stub macros and hopefully few prototypes,
28367    which can conflict with char $ac_func (); below.
28368    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28369    <limits.h> exists even on freestanding compilers.  */
28370
28371#ifdef __STDC__
28372# include <limits.h>
28373#else
28374# include <assert.h>
28375#endif
28376
28377#undef $ac_func
28378
28379/* Override any GCC internal prototype to avoid an error.
28380   Use char because int might match the return type of a GCC
28381   builtin and then its argument prototype would still apply.  */
28382#ifdef __cplusplus
28383extern "C"
28384#endif
28385char $ac_func ();
28386/* The GNU C library defines this for functions which it implements
28387    to always fail with ENOSYS.  Some functions are actually named
28388    something starting with __ and the normal name is an alias.  */
28389#if defined __stub_$ac_func || defined __stub___$ac_func
28390choke me
28391#endif
28392
28393int
28394main ()
28395{
28396return $ac_func ();
28397  ;
28398  return 0;
28399}
28400_ACEOF
28401rm -f conftest.$ac_objext conftest$ac_exeext
28402if { (ac_try="$ac_link"
28403case "(($ac_try" in
28404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405  *) ac_try_echo=$ac_try;;
28406esac
28407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408  (eval "$ac_link") 2>conftest.er1
28409  ac_status=$?
28410  grep -v '^ *+' conftest.er1 >conftest.err
28411  rm -f conftest.er1
28412  cat conftest.err >&5
28413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414  (exit $ac_status); } && {
28415	 test -z "$ac_c_werror_flag" ||
28416	 test ! -s conftest.err
28417       } && test -s conftest$ac_exeext &&
28418       $as_test_x conftest$ac_exeext; then
28419  eval "$as_ac_var=yes"
28420else
28421  echo "$as_me: failed program was:" >&5
28422sed 's/^/| /' conftest.$ac_ext >&5
28423
28424	eval "$as_ac_var=no"
28425fi
28426
28427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28428      conftest$ac_exeext conftest.$ac_ext
28429fi
28430ac_res=`eval echo '${'$as_ac_var'}'`
28431	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28432echo "${ECHO_T}$ac_res" >&6; }
28433if test `eval echo '${'$as_ac_var'}'` = yes; then
28434  cat >>confdefs.h <<_ACEOF
28435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436_ACEOF
28437 have_floor=1
28438fi
28439done
28440
28441{ echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
28442echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
28443if test "$have_cos" = 1 -a "$have_floor" = 1; then
28444    { echo "$as_me:$LINENO: result: yes" >&5
28445echo "${ECHO_T}yes" >&6; }
28446else
28447    { echo "$as_me:$LINENO: result: no" >&5
28448echo "${ECHO_T}no" >&6; }
28449    LIBS="$LIBS -lm"
28450    # use different functions to bypass configure caching
28451    have_sin=0
28452    have_ceil=0
28453
28454for ac_func in sin
28455do
28456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28460  echo $ECHO_N "(cached) $ECHO_C" >&6
28461else
28462  cat >conftest.$ac_ext <<_ACEOF
28463/* confdefs.h.  */
28464_ACEOF
28465cat confdefs.h >>conftest.$ac_ext
28466cat >>conftest.$ac_ext <<_ACEOF
28467/* end confdefs.h.  */
28468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28469   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28470#define $ac_func innocuous_$ac_func
28471
28472/* System header to define __stub macros and hopefully few prototypes,
28473    which can conflict with char $ac_func (); below.
28474    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28475    <limits.h> exists even on freestanding compilers.  */
28476
28477#ifdef __STDC__
28478# include <limits.h>
28479#else
28480# include <assert.h>
28481#endif
28482
28483#undef $ac_func
28484
28485/* Override any GCC internal prototype to avoid an error.
28486   Use char because int might match the return type of a GCC
28487   builtin and then its argument prototype would still apply.  */
28488#ifdef __cplusplus
28489extern "C"
28490#endif
28491char $ac_func ();
28492/* The GNU C library defines this for functions which it implements
28493    to always fail with ENOSYS.  Some functions are actually named
28494    something starting with __ and the normal name is an alias.  */
28495#if defined __stub_$ac_func || defined __stub___$ac_func
28496choke me
28497#endif
28498
28499int
28500main ()
28501{
28502return $ac_func ();
28503  ;
28504  return 0;
28505}
28506_ACEOF
28507rm -f conftest.$ac_objext conftest$ac_exeext
28508if { (ac_try="$ac_link"
28509case "(($ac_try" in
28510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511  *) ac_try_echo=$ac_try;;
28512esac
28513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514  (eval "$ac_link") 2>conftest.er1
28515  ac_status=$?
28516  grep -v '^ *+' conftest.er1 >conftest.err
28517  rm -f conftest.er1
28518  cat conftest.err >&5
28519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520  (exit $ac_status); } && {
28521	 test -z "$ac_c_werror_flag" ||
28522	 test ! -s conftest.err
28523       } && test -s conftest$ac_exeext &&
28524       $as_test_x conftest$ac_exeext; then
28525  eval "$as_ac_var=yes"
28526else
28527  echo "$as_me: failed program was:" >&5
28528sed 's/^/| /' conftest.$ac_ext >&5
28529
28530	eval "$as_ac_var=no"
28531fi
28532
28533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28534      conftest$ac_exeext conftest.$ac_ext
28535fi
28536ac_res=`eval echo '${'$as_ac_var'}'`
28537	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28538echo "${ECHO_T}$ac_res" >&6; }
28539if test `eval echo '${'$as_ac_var'}'` = yes; then
28540  cat >>confdefs.h <<_ACEOF
28541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28542_ACEOF
28543 have_sin=1
28544fi
28545done
28546
28547
28548for ac_func in ceil
28549do
28550as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28551{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28553if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28554  echo $ECHO_N "(cached) $ECHO_C" >&6
28555else
28556  cat >conftest.$ac_ext <<_ACEOF
28557/* confdefs.h.  */
28558_ACEOF
28559cat confdefs.h >>conftest.$ac_ext
28560cat >>conftest.$ac_ext <<_ACEOF
28561/* end confdefs.h.  */
28562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28563   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28564#define $ac_func innocuous_$ac_func
28565
28566/* System header to define __stub macros and hopefully few prototypes,
28567    which can conflict with char $ac_func (); below.
28568    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28569    <limits.h> exists even on freestanding compilers.  */
28570
28571#ifdef __STDC__
28572# include <limits.h>
28573#else
28574# include <assert.h>
28575#endif
28576
28577#undef $ac_func
28578
28579/* Override any GCC internal prototype to avoid an error.
28580   Use char because int might match the return type of a GCC
28581   builtin and then its argument prototype would still apply.  */
28582#ifdef __cplusplus
28583extern "C"
28584#endif
28585char $ac_func ();
28586/* The GNU C library defines this for functions which it implements
28587    to always fail with ENOSYS.  Some functions are actually named
28588    something starting with __ and the normal name is an alias.  */
28589#if defined __stub_$ac_func || defined __stub___$ac_func
28590choke me
28591#endif
28592
28593int
28594main ()
28595{
28596return $ac_func ();
28597  ;
28598  return 0;
28599}
28600_ACEOF
28601rm -f conftest.$ac_objext conftest$ac_exeext
28602if { (ac_try="$ac_link"
28603case "(($ac_try" in
28604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605  *) ac_try_echo=$ac_try;;
28606esac
28607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608  (eval "$ac_link") 2>conftest.er1
28609  ac_status=$?
28610  grep -v '^ *+' conftest.er1 >conftest.err
28611  rm -f conftest.er1
28612  cat conftest.err >&5
28613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614  (exit $ac_status); } && {
28615	 test -z "$ac_c_werror_flag" ||
28616	 test ! -s conftest.err
28617       } && test -s conftest$ac_exeext &&
28618       $as_test_x conftest$ac_exeext; then
28619  eval "$as_ac_var=yes"
28620else
28621  echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624	eval "$as_ac_var=no"
28625fi
28626
28627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28628      conftest$ac_exeext conftest.$ac_ext
28629fi
28630ac_res=`eval echo '${'$as_ac_var'}'`
28631	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28632echo "${ECHO_T}$ac_res" >&6; }
28633if test `eval echo '${'$as_ac_var'}'` = yes; then
28634  cat >>confdefs.h <<_ACEOF
28635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28636_ACEOF
28637 have_ceil=1
28638fi
28639done
28640
28641    { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
28642echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
28643    if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28644        { echo "$as_me:$LINENO: result: yes" >&5
28645echo "${ECHO_T}yes" >&6; }
28646    else
28647        { echo "$as_me:$LINENO: result: no" >&5
28648echo "${ECHO_T}no" >&6; }
28649        # not sure we should warn the user, crash, etc.
28650	# expect link failure
28651    fi
28652fi
28653
28654{ echo "$as_me:$LINENO: checking for struct timeval" >&5
28655echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28656cat >conftest.$ac_ext <<_ACEOF
28657/* confdefs.h.  */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h.  */
28662#include <sys/time.h>
28663int
28664main ()
28665{
28666struct timeval x;
28667  ;
28668  return 0;
28669}
28670_ACEOF
28671rm -f conftest.$ac_objext
28672if { (ac_try="$ac_compile"
28673case "(($ac_try" in
28674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675  *) ac_try_echo=$ac_try;;
28676esac
28677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678  (eval "$ac_compile") 2>conftest.er1
28679  ac_status=$?
28680  grep -v '^ *+' conftest.er1 >conftest.err
28681  rm -f conftest.er1
28682  cat conftest.err >&5
28683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684  (exit $ac_status); } && {
28685	 test -z "$ac_c_werror_flag" ||
28686	 test ! -s conftest.err
28687       } && test -s conftest.$ac_objext; then
28688
28689      { echo "$as_me:$LINENO: result: yes" >&5
28690echo "${ECHO_T}yes" >&6; }
28691      cat >>confdefs.h <<\_ACEOF
28692#define BX_HAVE_STRUCT_TIMEVAL 1
28693_ACEOF
28694
28695
28696else
28697  echo "$as_me: failed program was:" >&5
28698sed 's/^/| /' conftest.$ac_ext >&5
28699
28700	{ echo "$as_me:$LINENO: result: no" >&5
28701echo "${ECHO_T}no" >&6; }
28702fi
28703
28704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28705
28706{ echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
28707echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
28708cat >conftest.$ac_ext <<_ACEOF
28709/* confdefs.h.  */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
28713/* end confdefs.h.  */
28714
28715int
28716main ()
28717{
28718typedef struct { } junk;
28719  ;
28720  return 0;
28721}
28722_ACEOF
28723rm -f conftest.$ac_objext
28724if { (ac_try="$ac_compile"
28725case "(($ac_try" in
28726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727  *) ac_try_echo=$ac_try;;
28728esac
28729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730  (eval "$ac_compile") 2>conftest.er1
28731  ac_status=$?
28732  grep -v '^ *+' conftest.er1 >conftest.err
28733  rm -f conftest.er1
28734  cat conftest.err >&5
28735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736  (exit $ac_status); } && {
28737	 test -z "$ac_c_werror_flag" ||
28738	 test ! -s conftest.err
28739       } && test -s conftest.$ac_objext; then
28740  { echo "$as_me:$LINENO: result: yes" >&5
28741echo "${ECHO_T}yes" >&6; }
28742else
28743  echo "$as_me: failed program was:" >&5
28744sed 's/^/| /' conftest.$ac_ext >&5
28745
28746
28747      cat >>confdefs.h <<\_ACEOF
28748#define BX_NO_EMPTY_STRUCTS 1
28749_ACEOF
28750
28751      { echo "$as_me:$LINENO: result: no" >&5
28752echo "${ECHO_T}no" >&6; }
28753
28754fi
28755
28756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28757
28758{ echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
28759echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
28760cat >conftest.$ac_ext <<_ACEOF
28761/* confdefs.h.  */
28762_ACEOF
28763cat confdefs.h >>conftest.$ac_ext
28764cat >>conftest.$ac_ext <<_ACEOF
28765/* end confdefs.h.  */
28766
28767int
28768main ()
28769{
28770typedef struct { } __attribute__ ((packed)) junk;
28771  ;
28772  return 0;
28773}
28774_ACEOF
28775rm -f conftest.$ac_objext
28776if { (ac_try="$ac_compile"
28777case "(($ac_try" in
28778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779  *) ac_try_echo=$ac_try;;
28780esac
28781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782  (eval "$ac_compile") 2>conftest.er1
28783  ac_status=$?
28784  grep -v '^ *+' conftest.er1 >conftest.err
28785  rm -f conftest.er1
28786  cat conftest.err >&5
28787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788  (exit $ac_status); } && {
28789	 test -z "$ac_c_werror_flag" ||
28790	 test ! -s conftest.err
28791       } && test -s conftest.$ac_objext; then
28792  { echo "$as_me:$LINENO: result: yes" >&5
28793echo "${ECHO_T}yes" >&6; }
28794else
28795  echo "$as_me: failed program was:" >&5
28796sed 's/^/| /' conftest.$ac_ext >&5
28797
28798
28799      { echo "$as_me:$LINENO: result: no" >&5
28800echo "${ECHO_T}no" >&6; }
28801      cat >>confdefs.h <<\_ACEOF
28802#define BX_NO_ATTRIBUTES 1
28803_ACEOF
28804
28805
28806fi
28807
28808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28809
28810
28811ac_ext=cpp
28812ac_cpp='$CXXCPP $CPPFLAGS'
28813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28816
28817{ echo "$as_me:$LINENO: checking for hash_map" >&5
28818echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
28819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h.  */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h.  */
28825#include <hash_map>
28826int
28827main ()
28828{
28829
28830  ;
28831  return 0;
28832}
28833_ACEOF
28834rm -f conftest.$ac_objext
28835if { (ac_try="$ac_compile"
28836case "(($ac_try" in
28837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838  *) ac_try_echo=$ac_try;;
28839esac
28840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841  (eval "$ac_compile") 2>conftest.er1
28842  ac_status=$?
28843  grep -v '^ *+' conftest.er1 >conftest.err
28844  rm -f conftest.er1
28845  cat conftest.err >&5
28846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847  (exit $ac_status); } && {
28848	 test -z "$ac_cxx_werror_flag" ||
28849	 test ! -s conftest.err
28850       } && test -s conftest.$ac_objext; then
28851
28852     { echo "$as_me:$LINENO: result: yes" >&5
28853echo "${ECHO_T}yes" >&6; }
28854     cat >>confdefs.h <<\_ACEOF
28855#define BX_HAVE_HASH_MAP 1
28856_ACEOF
28857
28858
28859else
28860  echo "$as_me: failed program was:" >&5
28861sed 's/^/| /' conftest.$ac_ext >&5
28862
28863	{ echo "$as_me:$LINENO: result: no" >&5
28864echo "${ECHO_T}no" >&6; }
28865fi
28866
28867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868{ echo "$as_me:$LINENO: checking for hash_map.h" >&5
28869echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
28870cat >conftest.$ac_ext <<_ACEOF
28871/* confdefs.h.  */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h.  */
28876#include <hash_map.h>
28877int
28878main ()
28879{
28880
28881  ;
28882  return 0;
28883}
28884_ACEOF
28885rm -f conftest.$ac_objext
28886if { (ac_try="$ac_compile"
28887case "(($ac_try" in
28888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889  *) ac_try_echo=$ac_try;;
28890esac
28891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892  (eval "$ac_compile") 2>conftest.er1
28893  ac_status=$?
28894  grep -v '^ *+' conftest.er1 >conftest.err
28895  rm -f conftest.er1
28896  cat conftest.err >&5
28897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898  (exit $ac_status); } && {
28899	 test -z "$ac_cxx_werror_flag" ||
28900	 test ! -s conftest.err
28901       } && test -s conftest.$ac_objext; then
28902
28903     { echo "$as_me:$LINENO: result: yes" >&5
28904echo "${ECHO_T}yes" >&6; }
28905     cat >>confdefs.h <<\_ACEOF
28906#define BX_HAVE_HASH_MAP_H 1
28907_ACEOF
28908
28909
28910else
28911  echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
28914	{ echo "$as_me:$LINENO: result: no" >&5
28915echo "${ECHO_T}no" >&6; }
28916fi
28917
28918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28919{ echo "$as_me:$LINENO: checking for set" >&5
28920echo $ECHO_N "checking for set... $ECHO_C" >&6; }
28921cat >conftest.$ac_ext <<_ACEOF
28922/* confdefs.h.  */
28923_ACEOF
28924cat confdefs.h >>conftest.$ac_ext
28925cat >>conftest.$ac_ext <<_ACEOF
28926/* end confdefs.h.  */
28927#include <set>
28928int
28929main ()
28930{
28931
28932  ;
28933  return 0;
28934}
28935_ACEOF
28936rm -f conftest.$ac_objext
28937if { (ac_try="$ac_compile"
28938case "(($ac_try" in
28939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940  *) ac_try_echo=$ac_try;;
28941esac
28942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943  (eval "$ac_compile") 2>conftest.er1
28944  ac_status=$?
28945  grep -v '^ *+' conftest.er1 >conftest.err
28946  rm -f conftest.er1
28947  cat conftest.err >&5
28948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949  (exit $ac_status); } && {
28950	 test -z "$ac_cxx_werror_flag" ||
28951	 test ! -s conftest.err
28952       } && test -s conftest.$ac_objext; then
28953
28954     { echo "$as_me:$LINENO: result: yes" >&5
28955echo "${ECHO_T}yes" >&6; }
28956     cat >>confdefs.h <<\_ACEOF
28957#define BX_HAVE_SET 1
28958_ACEOF
28959
28960
28961else
28962  echo "$as_me: failed program was:" >&5
28963sed 's/^/| /' conftest.$ac_ext >&5
28964
28965	{ echo "$as_me:$LINENO: result: no" >&5
28966echo "${ECHO_T}no" >&6; }
28967fi
28968
28969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28970{ echo "$as_me:$LINENO: checking for set.h" >&5
28971echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
28972cat >conftest.$ac_ext <<_ACEOF
28973/* confdefs.h.  */
28974_ACEOF
28975cat confdefs.h >>conftest.$ac_ext
28976cat >>conftest.$ac_ext <<_ACEOF
28977/* end confdefs.h.  */
28978#include <set.h>
28979int
28980main ()
28981{
28982
28983  ;
28984  return 0;
28985}
28986_ACEOF
28987rm -f conftest.$ac_objext
28988if { (ac_try="$ac_compile"
28989case "(($ac_try" in
28990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991  *) ac_try_echo=$ac_try;;
28992esac
28993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994  (eval "$ac_compile") 2>conftest.er1
28995  ac_status=$?
28996  grep -v '^ *+' conftest.er1 >conftest.err
28997  rm -f conftest.er1
28998  cat conftest.err >&5
28999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000  (exit $ac_status); } && {
29001	 test -z "$ac_cxx_werror_flag" ||
29002	 test ! -s conftest.err
29003       } && test -s conftest.$ac_objext; then
29004
29005     { echo "$as_me:$LINENO: result: yes" >&5
29006echo "${ECHO_T}yes" >&6; }
29007     cat >>confdefs.h <<\_ACEOF
29008#define BX_HAVE_SET_H 1
29009_ACEOF
29010
29011
29012else
29013  echo "$as_me: failed program was:" >&5
29014sed 's/^/| /' conftest.$ac_ext >&5
29015
29016	{ echo "$as_me:$LINENO: result: no" >&5
29017echo "${ECHO_T}no" >&6; }
29018fi
29019
29020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021ac_ext=c
29022ac_cpp='$CPP $CPPFLAGS'
29023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29025ac_compiler_gnu=$ac_cv_c_compiler_gnu
29026
29027
29028if test "$with_all_libs" = yes; then
29029  if test "$cross_configure" = 1; then
29030    { echo "$as_me:$LINENO: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want.  You should specify the --with-* args yourself." >&5
29031echo "$as_me: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want.  You should specify the --with-* args yourself." >&2;}
29032  fi
29033  if test "$with_beos" != yes; then
29034    can_compile_beos=1
29035    if test "${ac_cv_header_app_Application_h+set}" = set; then
29036  { echo "$as_me:$LINENO: checking for app/Application.h" >&5
29037echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
29038if test "${ac_cv_header_app_Application_h+set}" = set; then
29039  echo $ECHO_N "(cached) $ECHO_C" >&6
29040fi
29041{ echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
29042echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
29043else
29044  # Is the header compilable?
29045{ echo "$as_me:$LINENO: checking app/Application.h usability" >&5
29046echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
29047cat >conftest.$ac_ext <<_ACEOF
29048/* confdefs.h.  */
29049_ACEOF
29050cat confdefs.h >>conftest.$ac_ext
29051cat >>conftest.$ac_ext <<_ACEOF
29052/* end confdefs.h.  */
29053$ac_includes_default
29054#include <app/Application.h>
29055_ACEOF
29056rm -f conftest.$ac_objext
29057if { (ac_try="$ac_compile"
29058case "(($ac_try" in
29059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060  *) ac_try_echo=$ac_try;;
29061esac
29062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063  (eval "$ac_compile") 2>conftest.er1
29064  ac_status=$?
29065  grep -v '^ *+' conftest.er1 >conftest.err
29066  rm -f conftest.er1
29067  cat conftest.err >&5
29068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069  (exit $ac_status); } && {
29070	 test -z "$ac_c_werror_flag" ||
29071	 test ! -s conftest.err
29072       } && test -s conftest.$ac_objext; then
29073  ac_header_compiler=yes
29074else
29075  echo "$as_me: failed program was:" >&5
29076sed 's/^/| /' conftest.$ac_ext >&5
29077
29078	ac_header_compiler=no
29079fi
29080
29081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29083echo "${ECHO_T}$ac_header_compiler" >&6; }
29084
29085# Is the header present?
29086{ echo "$as_me:$LINENO: checking app/Application.h presence" >&5
29087echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
29088cat >conftest.$ac_ext <<_ACEOF
29089/* confdefs.h.  */
29090_ACEOF
29091cat confdefs.h >>conftest.$ac_ext
29092cat >>conftest.$ac_ext <<_ACEOF
29093/* end confdefs.h.  */
29094#include <app/Application.h>
29095_ACEOF
29096if { (ac_try="$ac_cpp conftest.$ac_ext"
29097case "(($ac_try" in
29098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099  *) ac_try_echo=$ac_try;;
29100esac
29101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29103  ac_status=$?
29104  grep -v '^ *+' conftest.er1 >conftest.err
29105  rm -f conftest.er1
29106  cat conftest.err >&5
29107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108  (exit $ac_status); } >/dev/null && {
29109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29110	 test ! -s conftest.err
29111       }; then
29112  ac_header_preproc=yes
29113else
29114  echo "$as_me: failed program was:" >&5
29115sed 's/^/| /' conftest.$ac_ext >&5
29116
29117  ac_header_preproc=no
29118fi
29119
29120rm -f conftest.err conftest.$ac_ext
29121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29122echo "${ECHO_T}$ac_header_preproc" >&6; }
29123
29124# So?  What about this header?
29125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29126  yes:no: )
29127    { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
29128echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29129    { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
29130echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
29131    ac_header_preproc=yes
29132    ;;
29133  no:yes:* )
29134    { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
29135echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
29136    { echo "$as_me:$LINENO: WARNING: app/Application.h:     check for missing prerequisite headers?" >&5
29137echo "$as_me: WARNING: app/Application.h:     check for missing prerequisite headers?" >&2;}
29138    { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
29139echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
29140    { echo "$as_me:$LINENO: WARNING: app/Application.h:     section \"Present But Cannot Be Compiled\"" >&5
29141echo "$as_me: WARNING: app/Application.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29142    { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
29143echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
29144    { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
29145echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
29146
29147    ;;
29148esac
29149{ echo "$as_me:$LINENO: checking for app/Application.h" >&5
29150echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
29151if test "${ac_cv_header_app_Application_h+set}" = set; then
29152  echo $ECHO_N "(cached) $ECHO_C" >&6
29153else
29154  ac_cv_header_app_Application_h=$ac_header_preproc
29155fi
29156{ echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
29157echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
29158
29159fi
29160if test $ac_cv_header_app_Application_h = yes; then
29161  :
29162else
29163   can_compile_beos=0
29164fi
29165
29166
29167    if test "${ac_cv_header_interface_Window_h+set}" = set; then
29168  { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29169echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29170if test "${ac_cv_header_interface_Window_h+set}" = set; then
29171  echo $ECHO_N "(cached) $ECHO_C" >&6
29172fi
29173{ echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29174echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29175else
29176  # Is the header compilable?
29177{ echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
29178echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
29179cat >conftest.$ac_ext <<_ACEOF
29180/* confdefs.h.  */
29181_ACEOF
29182cat confdefs.h >>conftest.$ac_ext
29183cat >>conftest.$ac_ext <<_ACEOF
29184/* end confdefs.h.  */
29185$ac_includes_default
29186#include <interface/Window.h>
29187_ACEOF
29188rm -f conftest.$ac_objext
29189if { (ac_try="$ac_compile"
29190case "(($ac_try" in
29191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29192  *) ac_try_echo=$ac_try;;
29193esac
29194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29195  (eval "$ac_compile") 2>conftest.er1
29196  ac_status=$?
29197  grep -v '^ *+' conftest.er1 >conftest.err
29198  rm -f conftest.er1
29199  cat conftest.err >&5
29200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201  (exit $ac_status); } && {
29202	 test -z "$ac_c_werror_flag" ||
29203	 test ! -s conftest.err
29204       } && test -s conftest.$ac_objext; then
29205  ac_header_compiler=yes
29206else
29207  echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210	ac_header_compiler=no
29211fi
29212
29213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29215echo "${ECHO_T}$ac_header_compiler" >&6; }
29216
29217# Is the header present?
29218{ echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
29219echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
29220cat >conftest.$ac_ext <<_ACEOF
29221/* confdefs.h.  */
29222_ACEOF
29223cat confdefs.h >>conftest.$ac_ext
29224cat >>conftest.$ac_ext <<_ACEOF
29225/* end confdefs.h.  */
29226#include <interface/Window.h>
29227_ACEOF
29228if { (ac_try="$ac_cpp conftest.$ac_ext"
29229case "(($ac_try" in
29230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231  *) ac_try_echo=$ac_try;;
29232esac
29233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29235  ac_status=$?
29236  grep -v '^ *+' conftest.er1 >conftest.err
29237  rm -f conftest.er1
29238  cat conftest.err >&5
29239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240  (exit $ac_status); } >/dev/null && {
29241	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29242	 test ! -s conftest.err
29243       }; then
29244  ac_header_preproc=yes
29245else
29246  echo "$as_me: failed program was:" >&5
29247sed 's/^/| /' conftest.$ac_ext >&5
29248
29249  ac_header_preproc=no
29250fi
29251
29252rm -f conftest.err conftest.$ac_ext
29253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29254echo "${ECHO_T}$ac_header_preproc" >&6; }
29255
29256# So?  What about this header?
29257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29258  yes:no: )
29259    { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
29260echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29261    { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
29262echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
29263    ac_header_preproc=yes
29264    ;;
29265  no:yes:* )
29266    { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
29267echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
29268    { echo "$as_me:$LINENO: WARNING: interface/Window.h:     check for missing prerequisite headers?" >&5
29269echo "$as_me: WARNING: interface/Window.h:     check for missing prerequisite headers?" >&2;}
29270    { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
29271echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
29272    { echo "$as_me:$LINENO: WARNING: interface/Window.h:     section \"Present But Cannot Be Compiled\"" >&5
29273echo "$as_me: WARNING: interface/Window.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29274    { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
29275echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
29276    { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
29277echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
29278
29279    ;;
29280esac
29281{ echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29282echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29283if test "${ac_cv_header_interface_Window_h+set}" = set; then
29284  echo $ECHO_N "(cached) $ECHO_C" >&6
29285else
29286  ac_cv_header_interface_Window_h=$ac_header_preproc
29287fi
29288{ echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29289echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29290
29291fi
29292if test $ac_cv_header_interface_Window_h = yes; then
29293  :
29294else
29295   can_compile_beos=0
29296fi
29297
29298
29299    if test "${ac_cv_header_interface_View_h+set}" = set; then
29300  { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29301echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29302if test "${ac_cv_header_interface_View_h+set}" = set; then
29303  echo $ECHO_N "(cached) $ECHO_C" >&6
29304fi
29305{ echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29306echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29307else
29308  # Is the header compilable?
29309{ echo "$as_me:$LINENO: checking interface/View.h usability" >&5
29310echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
29311cat >conftest.$ac_ext <<_ACEOF
29312/* confdefs.h.  */
29313_ACEOF
29314cat confdefs.h >>conftest.$ac_ext
29315cat >>conftest.$ac_ext <<_ACEOF
29316/* end confdefs.h.  */
29317$ac_includes_default
29318#include <interface/View.h>
29319_ACEOF
29320rm -f conftest.$ac_objext
29321if { (ac_try="$ac_compile"
29322case "(($ac_try" in
29323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324  *) ac_try_echo=$ac_try;;
29325esac
29326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327  (eval "$ac_compile") 2>conftest.er1
29328  ac_status=$?
29329  grep -v '^ *+' conftest.er1 >conftest.err
29330  rm -f conftest.er1
29331  cat conftest.err >&5
29332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333  (exit $ac_status); } && {
29334	 test -z "$ac_c_werror_flag" ||
29335	 test ! -s conftest.err
29336       } && test -s conftest.$ac_objext; then
29337  ac_header_compiler=yes
29338else
29339  echo "$as_me: failed program was:" >&5
29340sed 's/^/| /' conftest.$ac_ext >&5
29341
29342	ac_header_compiler=no
29343fi
29344
29345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29346{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29347echo "${ECHO_T}$ac_header_compiler" >&6; }
29348
29349# Is the header present?
29350{ echo "$as_me:$LINENO: checking interface/View.h presence" >&5
29351echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
29352cat >conftest.$ac_ext <<_ACEOF
29353/* confdefs.h.  */
29354_ACEOF
29355cat confdefs.h >>conftest.$ac_ext
29356cat >>conftest.$ac_ext <<_ACEOF
29357/* end confdefs.h.  */
29358#include <interface/View.h>
29359_ACEOF
29360if { (ac_try="$ac_cpp conftest.$ac_ext"
29361case "(($ac_try" in
29362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363  *) ac_try_echo=$ac_try;;
29364esac
29365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29367  ac_status=$?
29368  grep -v '^ *+' conftest.er1 >conftest.err
29369  rm -f conftest.er1
29370  cat conftest.err >&5
29371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372  (exit $ac_status); } >/dev/null && {
29373	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29374	 test ! -s conftest.err
29375       }; then
29376  ac_header_preproc=yes
29377else
29378  echo "$as_me: failed program was:" >&5
29379sed 's/^/| /' conftest.$ac_ext >&5
29380
29381  ac_header_preproc=no
29382fi
29383
29384rm -f conftest.err conftest.$ac_ext
29385{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29386echo "${ECHO_T}$ac_header_preproc" >&6; }
29387
29388# So?  What about this header?
29389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29390  yes:no: )
29391    { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
29392echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29393    { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
29394echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
29395    ac_header_preproc=yes
29396    ;;
29397  no:yes:* )
29398    { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
29399echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
29400    { echo "$as_me:$LINENO: WARNING: interface/View.h:     check for missing prerequisite headers?" >&5
29401echo "$as_me: WARNING: interface/View.h:     check for missing prerequisite headers?" >&2;}
29402    { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
29403echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
29404    { echo "$as_me:$LINENO: WARNING: interface/View.h:     section \"Present But Cannot Be Compiled\"" >&5
29405echo "$as_me: WARNING: interface/View.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29406    { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
29407echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
29408    { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
29409echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
29410
29411    ;;
29412esac
29413{ echo "$as_me:$LINENO: checking for interface/View.h" >&5
29414echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29415if test "${ac_cv_header_interface_View_h+set}" = set; then
29416  echo $ECHO_N "(cached) $ECHO_C" >&6
29417else
29418  ac_cv_header_interface_View_h=$ac_header_preproc
29419fi
29420{ echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29421echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29422
29423fi
29424if test $ac_cv_header_interface_View_h = yes; then
29425  :
29426else
29427   can_compile_beos=0
29428fi
29429
29430
29431    if test $can_compile_beos = 1; then
29432      with_beos=yes
29433    fi
29434  fi
29435
29436  if test "$with_amigaos" != yes; then
29437    can_compile_amigaos=1
29438    if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29439  { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29440echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29441if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29442  echo $ECHO_N "(cached) $ECHO_C" >&6
29443fi
29444{ echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29445echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29446else
29447  # Is the header compilable?
29448{ echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
29449echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
29450cat >conftest.$ac_ext <<_ACEOF
29451/* confdefs.h.  */
29452_ACEOF
29453cat confdefs.h >>conftest.$ac_ext
29454cat >>conftest.$ac_ext <<_ACEOF
29455/* end confdefs.h.  */
29456$ac_includes_default
29457#include <proto/intuition.h>
29458_ACEOF
29459rm -f conftest.$ac_objext
29460if { (ac_try="$ac_compile"
29461case "(($ac_try" in
29462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463  *) ac_try_echo=$ac_try;;
29464esac
29465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466  (eval "$ac_compile") 2>conftest.er1
29467  ac_status=$?
29468  grep -v '^ *+' conftest.er1 >conftest.err
29469  rm -f conftest.er1
29470  cat conftest.err >&5
29471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472  (exit $ac_status); } && {
29473	 test -z "$ac_c_werror_flag" ||
29474	 test ! -s conftest.err
29475       } && test -s conftest.$ac_objext; then
29476  ac_header_compiler=yes
29477else
29478  echo "$as_me: failed program was:" >&5
29479sed 's/^/| /' conftest.$ac_ext >&5
29480
29481	ac_header_compiler=no
29482fi
29483
29484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486echo "${ECHO_T}$ac_header_compiler" >&6; }
29487
29488# Is the header present?
29489{ echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
29490echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
29491cat >conftest.$ac_ext <<_ACEOF
29492/* confdefs.h.  */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h.  */
29497#include <proto/intuition.h>
29498_ACEOF
29499if { (ac_try="$ac_cpp conftest.$ac_ext"
29500case "(($ac_try" in
29501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502  *) ac_try_echo=$ac_try;;
29503esac
29504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29506  ac_status=$?
29507  grep -v '^ *+' conftest.er1 >conftest.err
29508  rm -f conftest.er1
29509  cat conftest.err >&5
29510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511  (exit $ac_status); } >/dev/null && {
29512	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29513	 test ! -s conftest.err
29514       }; then
29515  ac_header_preproc=yes
29516else
29517  echo "$as_me: failed program was:" >&5
29518sed 's/^/| /' conftest.$ac_ext >&5
29519
29520  ac_header_preproc=no
29521fi
29522
29523rm -f conftest.err conftest.$ac_ext
29524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29525echo "${ECHO_T}$ac_header_preproc" >&6; }
29526
29527# So?  What about this header?
29528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29529  yes:no: )
29530    { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
29531echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29532    { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
29533echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
29534    ac_header_preproc=yes
29535    ;;
29536  no:yes:* )
29537    { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
29538echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
29539    { echo "$as_me:$LINENO: WARNING: proto/intuition.h:     check for missing prerequisite headers?" >&5
29540echo "$as_me: WARNING: proto/intuition.h:     check for missing prerequisite headers?" >&2;}
29541    { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
29542echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
29543    { echo "$as_me:$LINENO: WARNING: proto/intuition.h:     section \"Present But Cannot Be Compiled\"" >&5
29544echo "$as_me: WARNING: proto/intuition.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29545    { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
29546echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
29547    { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
29548echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
29549
29550    ;;
29551esac
29552{ echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29553echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29554if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29555  echo $ECHO_N "(cached) $ECHO_C" >&6
29556else
29557  ac_cv_header_proto_intuition_h=$ac_header_preproc
29558fi
29559{ echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29560echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29561
29562fi
29563if test $ac_cv_header_proto_intuition_h = yes; then
29564  :
29565else
29566   can_compile_amigaos=0
29567fi
29568
29569
29570    if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29571  { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29572echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29573if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29574  echo $ECHO_N "(cached) $ECHO_C" >&6
29575fi
29576{ echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29577echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29578else
29579  # Is the header compilable?
29580{ echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
29581echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
29582cat >conftest.$ac_ext <<_ACEOF
29583/* confdefs.h.  */
29584_ACEOF
29585cat confdefs.h >>conftest.$ac_ext
29586cat >>conftest.$ac_ext <<_ACEOF
29587/* end confdefs.h.  */
29588$ac_includes_default
29589#include <intuition/intuitionbase.h>
29590_ACEOF
29591rm -f conftest.$ac_objext
29592if { (ac_try="$ac_compile"
29593case "(($ac_try" in
29594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595  *) ac_try_echo=$ac_try;;
29596esac
29597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598  (eval "$ac_compile") 2>conftest.er1
29599  ac_status=$?
29600  grep -v '^ *+' conftest.er1 >conftest.err
29601  rm -f conftest.er1
29602  cat conftest.err >&5
29603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604  (exit $ac_status); } && {
29605	 test -z "$ac_c_werror_flag" ||
29606	 test ! -s conftest.err
29607       } && test -s conftest.$ac_objext; then
29608  ac_header_compiler=yes
29609else
29610  echo "$as_me: failed program was:" >&5
29611sed 's/^/| /' conftest.$ac_ext >&5
29612
29613	ac_header_compiler=no
29614fi
29615
29616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29617{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29618echo "${ECHO_T}$ac_header_compiler" >&6; }
29619
29620# Is the header present?
29621{ echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
29622echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
29623cat >conftest.$ac_ext <<_ACEOF
29624/* confdefs.h.  */
29625_ACEOF
29626cat confdefs.h >>conftest.$ac_ext
29627cat >>conftest.$ac_ext <<_ACEOF
29628/* end confdefs.h.  */
29629#include <intuition/intuitionbase.h>
29630_ACEOF
29631if { (ac_try="$ac_cpp conftest.$ac_ext"
29632case "(($ac_try" in
29633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634  *) ac_try_echo=$ac_try;;
29635esac
29636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29638  ac_status=$?
29639  grep -v '^ *+' conftest.er1 >conftest.err
29640  rm -f conftest.er1
29641  cat conftest.err >&5
29642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643  (exit $ac_status); } >/dev/null && {
29644	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29645	 test ! -s conftest.err
29646       }; then
29647  ac_header_preproc=yes
29648else
29649  echo "$as_me: failed program was:" >&5
29650sed 's/^/| /' conftest.$ac_ext >&5
29651
29652  ac_header_preproc=no
29653fi
29654
29655rm -f conftest.err conftest.$ac_ext
29656{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29657echo "${ECHO_T}$ac_header_preproc" >&6; }
29658
29659# So?  What about this header?
29660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29661  yes:no: )
29662    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
29663echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29664    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
29665echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
29666    ac_header_preproc=yes
29667    ;;
29668  no:yes:* )
29669    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
29670echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
29671    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h:     check for missing prerequisite headers?" >&5
29672echo "$as_me: WARNING: intuition/intuitionbase.h:     check for missing prerequisite headers?" >&2;}
29673    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
29674echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
29675    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h:     section \"Present But Cannot Be Compiled\"" >&5
29676echo "$as_me: WARNING: intuition/intuitionbase.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29677    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
29678echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
29679    { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
29680echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
29681
29682    ;;
29683esac
29684{ echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29685echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29686if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29687  echo $ECHO_N "(cached) $ECHO_C" >&6
29688else
29689  ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
29690fi
29691{ echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29692echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29693
29694fi
29695if test $ac_cv_header_intuition_intuitionbase_h = yes; then
29696  :
29697else
29698   can_compile_amigaos=0
29699fi
29700
29701
29702    if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29703  { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29704echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29705if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29706  echo $ECHO_N "(cached) $ECHO_C" >&6
29707fi
29708{ echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29709echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29710else
29711  # Is the header compilable?
29712{ echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
29713echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
29714cat >conftest.$ac_ext <<_ACEOF
29715/* confdefs.h.  */
29716_ACEOF
29717cat confdefs.h >>conftest.$ac_ext
29718cat >>conftest.$ac_ext <<_ACEOF
29719/* end confdefs.h.  */
29720$ac_includes_default
29721#include <cybergraphx/cybergraphics.h>
29722_ACEOF
29723rm -f conftest.$ac_objext
29724if { (ac_try="$ac_compile"
29725case "(($ac_try" in
29726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727  *) ac_try_echo=$ac_try;;
29728esac
29729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730  (eval "$ac_compile") 2>conftest.er1
29731  ac_status=$?
29732  grep -v '^ *+' conftest.er1 >conftest.err
29733  rm -f conftest.er1
29734  cat conftest.err >&5
29735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736  (exit $ac_status); } && {
29737	 test -z "$ac_c_werror_flag" ||
29738	 test ! -s conftest.err
29739       } && test -s conftest.$ac_objext; then
29740  ac_header_compiler=yes
29741else
29742  echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745	ac_header_compiler=no
29746fi
29747
29748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29750echo "${ECHO_T}$ac_header_compiler" >&6; }
29751
29752# Is the header present?
29753{ echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
29754echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
29755cat >conftest.$ac_ext <<_ACEOF
29756/* confdefs.h.  */
29757_ACEOF
29758cat confdefs.h >>conftest.$ac_ext
29759cat >>conftest.$ac_ext <<_ACEOF
29760/* end confdefs.h.  */
29761#include <cybergraphx/cybergraphics.h>
29762_ACEOF
29763if { (ac_try="$ac_cpp conftest.$ac_ext"
29764case "(($ac_try" in
29765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29766  *) ac_try_echo=$ac_try;;
29767esac
29768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29769  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29770  ac_status=$?
29771  grep -v '^ *+' conftest.er1 >conftest.err
29772  rm -f conftest.er1
29773  cat conftest.err >&5
29774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775  (exit $ac_status); } >/dev/null && {
29776	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29777	 test ! -s conftest.err
29778       }; then
29779  ac_header_preproc=yes
29780else
29781  echo "$as_me: failed program was:" >&5
29782sed 's/^/| /' conftest.$ac_ext >&5
29783
29784  ac_header_preproc=no
29785fi
29786
29787rm -f conftest.err conftest.$ac_ext
29788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29789echo "${ECHO_T}$ac_header_preproc" >&6; }
29790
29791# So?  What about this header?
29792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29793  yes:no: )
29794    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
29795echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29796    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
29797echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
29798    ac_header_preproc=yes
29799    ;;
29800  no:yes:* )
29801    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
29802echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
29803    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h:     check for missing prerequisite headers?" >&5
29804echo "$as_me: WARNING: cybergraphx/cybergraphics.h:     check for missing prerequisite headers?" >&2;}
29805    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
29806echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
29807    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h:     section \"Present But Cannot Be Compiled\"" >&5
29808echo "$as_me: WARNING: cybergraphx/cybergraphics.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29809    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
29810echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
29811    { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
29812echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
29813
29814    ;;
29815esac
29816{ echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29817echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29818if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29819  echo $ECHO_N "(cached) $ECHO_C" >&6
29820else
29821  ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
29822fi
29823{ echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29824echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29825
29826fi
29827if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
29828  :
29829else
29830   can_compile_amigaos=0
29831fi
29832
29833
29834    if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29835  { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29836echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29837if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29838  echo $ECHO_N "(cached) $ECHO_C" >&6
29839fi
29840{ echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29841echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29842else
29843  # Is the header compilable?
29844{ echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
29845echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
29846cat >conftest.$ac_ext <<_ACEOF
29847/* confdefs.h.  */
29848_ACEOF
29849cat confdefs.h >>conftest.$ac_ext
29850cat >>conftest.$ac_ext <<_ACEOF
29851/* end confdefs.h.  */
29852$ac_includes_default
29853#include <devices/trackdisk.h>
29854_ACEOF
29855rm -f conftest.$ac_objext
29856if { (ac_try="$ac_compile"
29857case "(($ac_try" in
29858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859  *) ac_try_echo=$ac_try;;
29860esac
29861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862  (eval "$ac_compile") 2>conftest.er1
29863  ac_status=$?
29864  grep -v '^ *+' conftest.er1 >conftest.err
29865  rm -f conftest.er1
29866  cat conftest.err >&5
29867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868  (exit $ac_status); } && {
29869	 test -z "$ac_c_werror_flag" ||
29870	 test ! -s conftest.err
29871       } && test -s conftest.$ac_objext; then
29872  ac_header_compiler=yes
29873else
29874  echo "$as_me: failed program was:" >&5
29875sed 's/^/| /' conftest.$ac_ext >&5
29876
29877	ac_header_compiler=no
29878fi
29879
29880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29882echo "${ECHO_T}$ac_header_compiler" >&6; }
29883
29884# Is the header present?
29885{ echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
29886echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
29887cat >conftest.$ac_ext <<_ACEOF
29888/* confdefs.h.  */
29889_ACEOF
29890cat confdefs.h >>conftest.$ac_ext
29891cat >>conftest.$ac_ext <<_ACEOF
29892/* end confdefs.h.  */
29893#include <devices/trackdisk.h>
29894_ACEOF
29895if { (ac_try="$ac_cpp conftest.$ac_ext"
29896case "(($ac_try" in
29897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898  *) ac_try_echo=$ac_try;;
29899esac
29900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29902  ac_status=$?
29903  grep -v '^ *+' conftest.er1 >conftest.err
29904  rm -f conftest.er1
29905  cat conftest.err >&5
29906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907  (exit $ac_status); } >/dev/null && {
29908	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29909	 test ! -s conftest.err
29910       }; then
29911  ac_header_preproc=yes
29912else
29913  echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916  ac_header_preproc=no
29917fi
29918
29919rm -f conftest.err conftest.$ac_ext
29920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29921echo "${ECHO_T}$ac_header_preproc" >&6; }
29922
29923# So?  What about this header?
29924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29925  yes:no: )
29926    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
29927echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29928    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
29929echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
29930    ac_header_preproc=yes
29931    ;;
29932  no:yes:* )
29933    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
29934echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
29935    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h:     check for missing prerequisite headers?" >&5
29936echo "$as_me: WARNING: devices/trackdisk.h:     check for missing prerequisite headers?" >&2;}
29937    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
29938echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
29939    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h:     section \"Present But Cannot Be Compiled\"" >&5
29940echo "$as_me: WARNING: devices/trackdisk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29941    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
29942echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
29943    { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
29944echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
29945
29946    ;;
29947esac
29948{ echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29949echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29950if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29951  echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953  ac_cv_header_devices_trackdisk_h=$ac_header_preproc
29954fi
29955{ echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29956echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29957
29958fi
29959if test $ac_cv_header_devices_trackdisk_h = yes; then
29960  :
29961else
29962   can_compile_amigaos=0
29963fi
29964
29965
29966    if test $can_compile_amigaos = 1; then
29967      with_amigaos=yes
29968    fi
29969  fi
29970
29971  if test "$with_macos" != yes; then
29972    can_compile_macos=1
29973    if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29974  { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29975echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29976if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29977  echo $ECHO_N "(cached) $ECHO_C" >&6
29978fi
29979{ echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29980echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29981else
29982  # Is the header compilable?
29983{ echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
29984echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
29985cat >conftest.$ac_ext <<_ACEOF
29986/* confdefs.h.  */
29987_ACEOF
29988cat confdefs.h >>conftest.$ac_ext
29989cat >>conftest.$ac_ext <<_ACEOF
29990/* end confdefs.h.  */
29991$ac_includes_default
29992#include <Quickdraw.h>
29993_ACEOF
29994rm -f conftest.$ac_objext
29995if { (ac_try="$ac_compile"
29996case "(($ac_try" in
29997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29998  *) ac_try_echo=$ac_try;;
29999esac
30000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30001  (eval "$ac_compile") 2>conftest.er1
30002  ac_status=$?
30003  grep -v '^ *+' conftest.er1 >conftest.err
30004  rm -f conftest.er1
30005  cat conftest.err >&5
30006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007  (exit $ac_status); } && {
30008	 test -z "$ac_c_werror_flag" ||
30009	 test ! -s conftest.err
30010       } && test -s conftest.$ac_objext; then
30011  ac_header_compiler=yes
30012else
30013  echo "$as_me: failed program was:" >&5
30014sed 's/^/| /' conftest.$ac_ext >&5
30015
30016	ac_header_compiler=no
30017fi
30018
30019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30021echo "${ECHO_T}$ac_header_compiler" >&6; }
30022
30023# Is the header present?
30024{ echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
30025echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
30026cat >conftest.$ac_ext <<_ACEOF
30027/* confdefs.h.  */
30028_ACEOF
30029cat confdefs.h >>conftest.$ac_ext
30030cat >>conftest.$ac_ext <<_ACEOF
30031/* end confdefs.h.  */
30032#include <Quickdraw.h>
30033_ACEOF
30034if { (ac_try="$ac_cpp conftest.$ac_ext"
30035case "(($ac_try" in
30036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037  *) ac_try_echo=$ac_try;;
30038esac
30039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30041  ac_status=$?
30042  grep -v '^ *+' conftest.er1 >conftest.err
30043  rm -f conftest.er1
30044  cat conftest.err >&5
30045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046  (exit $ac_status); } >/dev/null && {
30047	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30048	 test ! -s conftest.err
30049       }; then
30050  ac_header_preproc=yes
30051else
30052  echo "$as_me: failed program was:" >&5
30053sed 's/^/| /' conftest.$ac_ext >&5
30054
30055  ac_header_preproc=no
30056fi
30057
30058rm -f conftest.err conftest.$ac_ext
30059{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30060echo "${ECHO_T}$ac_header_preproc" >&6; }
30061
30062# So?  What about this header?
30063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30064  yes:no: )
30065    { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
30066echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30067    { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
30068echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
30069    ac_header_preproc=yes
30070    ;;
30071  no:yes:* )
30072    { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
30073echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
30074    { echo "$as_me:$LINENO: WARNING: Quickdraw.h:     check for missing prerequisite headers?" >&5
30075echo "$as_me: WARNING: Quickdraw.h:     check for missing prerequisite headers?" >&2;}
30076    { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
30077echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
30078    { echo "$as_me:$LINENO: WARNING: Quickdraw.h:     section \"Present But Cannot Be Compiled\"" >&5
30079echo "$as_me: WARNING: Quickdraw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30080    { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
30081echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
30082    { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
30083echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
30084
30085    ;;
30086esac
30087{ echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
30088echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
30089if test "${ac_cv_header_Quickdraw_h+set}" = set; then
30090  echo $ECHO_N "(cached) $ECHO_C" >&6
30091else
30092  ac_cv_header_Quickdraw_h=$ac_header_preproc
30093fi
30094{ echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
30095echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
30096
30097fi
30098if test $ac_cv_header_Quickdraw_h = yes; then
30099  :
30100else
30101   can_compile_macos=0
30102fi
30103
30104
30105    if test "${ac_cv_header_Dialogs_h+set}" = set; then
30106  { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30107echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30108if test "${ac_cv_header_Dialogs_h+set}" = set; then
30109  echo $ECHO_N "(cached) $ECHO_C" >&6
30110fi
30111{ echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30112echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30113else
30114  # Is the header compilable?
30115{ echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
30116echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
30117cat >conftest.$ac_ext <<_ACEOF
30118/* confdefs.h.  */
30119_ACEOF
30120cat confdefs.h >>conftest.$ac_ext
30121cat >>conftest.$ac_ext <<_ACEOF
30122/* end confdefs.h.  */
30123$ac_includes_default
30124#include <Dialogs.h>
30125_ACEOF
30126rm -f conftest.$ac_objext
30127if { (ac_try="$ac_compile"
30128case "(($ac_try" in
30129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30130  *) ac_try_echo=$ac_try;;
30131esac
30132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30133  (eval "$ac_compile") 2>conftest.er1
30134  ac_status=$?
30135  grep -v '^ *+' conftest.er1 >conftest.err
30136  rm -f conftest.er1
30137  cat conftest.err >&5
30138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139  (exit $ac_status); } && {
30140	 test -z "$ac_c_werror_flag" ||
30141	 test ! -s conftest.err
30142       } && test -s conftest.$ac_objext; then
30143  ac_header_compiler=yes
30144else
30145  echo "$as_me: failed program was:" >&5
30146sed 's/^/| /' conftest.$ac_ext >&5
30147
30148	ac_header_compiler=no
30149fi
30150
30151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30153echo "${ECHO_T}$ac_header_compiler" >&6; }
30154
30155# Is the header present?
30156{ echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
30157echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
30158cat >conftest.$ac_ext <<_ACEOF
30159/* confdefs.h.  */
30160_ACEOF
30161cat confdefs.h >>conftest.$ac_ext
30162cat >>conftest.$ac_ext <<_ACEOF
30163/* end confdefs.h.  */
30164#include <Dialogs.h>
30165_ACEOF
30166if { (ac_try="$ac_cpp conftest.$ac_ext"
30167case "(($ac_try" in
30168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30169  *) ac_try_echo=$ac_try;;
30170esac
30171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30172  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30173  ac_status=$?
30174  grep -v '^ *+' conftest.er1 >conftest.err
30175  rm -f conftest.er1
30176  cat conftest.err >&5
30177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178  (exit $ac_status); } >/dev/null && {
30179	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30180	 test ! -s conftest.err
30181       }; then
30182  ac_header_preproc=yes
30183else
30184  echo "$as_me: failed program was:" >&5
30185sed 's/^/| /' conftest.$ac_ext >&5
30186
30187  ac_header_preproc=no
30188fi
30189
30190rm -f conftest.err conftest.$ac_ext
30191{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30192echo "${ECHO_T}$ac_header_preproc" >&6; }
30193
30194# So?  What about this header?
30195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30196  yes:no: )
30197    { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
30198echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30199    { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
30200echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
30201    ac_header_preproc=yes
30202    ;;
30203  no:yes:* )
30204    { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
30205echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
30206    { echo "$as_me:$LINENO: WARNING: Dialogs.h:     check for missing prerequisite headers?" >&5
30207echo "$as_me: WARNING: Dialogs.h:     check for missing prerequisite headers?" >&2;}
30208    { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
30209echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
30210    { echo "$as_me:$LINENO: WARNING: Dialogs.h:     section \"Present But Cannot Be Compiled\"" >&5
30211echo "$as_me: WARNING: Dialogs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30212    { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
30213echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
30214    { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
30215echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
30216
30217    ;;
30218esac
30219{ echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30220echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30221if test "${ac_cv_header_Dialogs_h+set}" = set; then
30222  echo $ECHO_N "(cached) $ECHO_C" >&6
30223else
30224  ac_cv_header_Dialogs_h=$ac_header_preproc
30225fi
30226{ echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30227echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30228
30229fi
30230if test $ac_cv_header_Dialogs_h = yes; then
30231  :
30232else
30233   can_compile_macos=0
30234fi
30235
30236
30237    if test $can_compile_macos = 1; then
30238      with_macos=yes
30239    fi
30240  fi
30241
30242  if test "$with_carbon" != yes; then
30243    can_compile_carbon=1
30244    if test "${ac_cv_header_Carbon_h+set}" = set; then
30245  { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30246echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30247if test "${ac_cv_header_Carbon_h+set}" = set; then
30248  echo $ECHO_N "(cached) $ECHO_C" >&6
30249fi
30250{ echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30251echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30252else
30253  # Is the header compilable?
30254{ echo "$as_me:$LINENO: checking Carbon.h usability" >&5
30255echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
30256cat >conftest.$ac_ext <<_ACEOF
30257/* confdefs.h.  */
30258_ACEOF
30259cat confdefs.h >>conftest.$ac_ext
30260cat >>conftest.$ac_ext <<_ACEOF
30261/* end confdefs.h.  */
30262$ac_includes_default
30263#include <Carbon.h>
30264_ACEOF
30265rm -f conftest.$ac_objext
30266if { (ac_try="$ac_compile"
30267case "(($ac_try" in
30268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269  *) ac_try_echo=$ac_try;;
30270esac
30271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272  (eval "$ac_compile") 2>conftest.er1
30273  ac_status=$?
30274  grep -v '^ *+' conftest.er1 >conftest.err
30275  rm -f conftest.er1
30276  cat conftest.err >&5
30277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278  (exit $ac_status); } && {
30279	 test -z "$ac_c_werror_flag" ||
30280	 test ! -s conftest.err
30281       } && test -s conftest.$ac_objext; then
30282  ac_header_compiler=yes
30283else
30284  echo "$as_me: failed program was:" >&5
30285sed 's/^/| /' conftest.$ac_ext >&5
30286
30287	ac_header_compiler=no
30288fi
30289
30290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30292echo "${ECHO_T}$ac_header_compiler" >&6; }
30293
30294# Is the header present?
30295{ echo "$as_me:$LINENO: checking Carbon.h presence" >&5
30296echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
30297cat >conftest.$ac_ext <<_ACEOF
30298/* confdefs.h.  */
30299_ACEOF
30300cat confdefs.h >>conftest.$ac_ext
30301cat >>conftest.$ac_ext <<_ACEOF
30302/* end confdefs.h.  */
30303#include <Carbon.h>
30304_ACEOF
30305if { (ac_try="$ac_cpp conftest.$ac_ext"
30306case "(($ac_try" in
30307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308  *) ac_try_echo=$ac_try;;
30309esac
30310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30312  ac_status=$?
30313  grep -v '^ *+' conftest.er1 >conftest.err
30314  rm -f conftest.er1
30315  cat conftest.err >&5
30316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317  (exit $ac_status); } >/dev/null && {
30318	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30319	 test ! -s conftest.err
30320       }; then
30321  ac_header_preproc=yes
30322else
30323  echo "$as_me: failed program was:" >&5
30324sed 's/^/| /' conftest.$ac_ext >&5
30325
30326  ac_header_preproc=no
30327fi
30328
30329rm -f conftest.err conftest.$ac_ext
30330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30331echo "${ECHO_T}$ac_header_preproc" >&6; }
30332
30333# So?  What about this header?
30334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30335  yes:no: )
30336    { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
30337echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30338    { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
30339echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
30340    ac_header_preproc=yes
30341    ;;
30342  no:yes:* )
30343    { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
30344echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
30345    { echo "$as_me:$LINENO: WARNING: Carbon.h:     check for missing prerequisite headers?" >&5
30346echo "$as_me: WARNING: Carbon.h:     check for missing prerequisite headers?" >&2;}
30347    { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
30348echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
30349    { echo "$as_me:$LINENO: WARNING: Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
30350echo "$as_me: WARNING: Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30351    { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
30352echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
30353    { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
30354echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
30355
30356    ;;
30357esac
30358{ echo "$as_me:$LINENO: checking for Carbon.h" >&5
30359echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30360if test "${ac_cv_header_Carbon_h+set}" = set; then
30361  echo $ECHO_N "(cached) $ECHO_C" >&6
30362else
30363  ac_cv_header_Carbon_h=$ac_header_preproc
30364fi
30365{ echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30366echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30367
30368fi
30369if test $ac_cv_header_Carbon_h = yes; then
30370  :
30371else
30372   can_compile_carbon=0
30373fi
30374
30375
30376    if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30377  { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30378echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30379if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30380  echo $ECHO_N "(cached) $ECHO_C" >&6
30381fi
30382{ echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30383echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30384else
30385  # Is the header compilable?
30386{ echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
30387echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
30388cat >conftest.$ac_ext <<_ACEOF
30389/* confdefs.h.  */
30390_ACEOF
30391cat confdefs.h >>conftest.$ac_ext
30392cat >>conftest.$ac_ext <<_ACEOF
30393/* end confdefs.h.  */
30394$ac_includes_default
30395#include <ApplicationServices/ApplicationServices.h>
30396_ACEOF
30397rm -f conftest.$ac_objext
30398if { (ac_try="$ac_compile"
30399case "(($ac_try" in
30400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30401  *) ac_try_echo=$ac_try;;
30402esac
30403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30404  (eval "$ac_compile") 2>conftest.er1
30405  ac_status=$?
30406  grep -v '^ *+' conftest.er1 >conftest.err
30407  rm -f conftest.er1
30408  cat conftest.err >&5
30409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410  (exit $ac_status); } && {
30411	 test -z "$ac_c_werror_flag" ||
30412	 test ! -s conftest.err
30413       } && test -s conftest.$ac_objext; then
30414  ac_header_compiler=yes
30415else
30416  echo "$as_me: failed program was:" >&5
30417sed 's/^/| /' conftest.$ac_ext >&5
30418
30419	ac_header_compiler=no
30420fi
30421
30422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30423{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30424echo "${ECHO_T}$ac_header_compiler" >&6; }
30425
30426# Is the header present?
30427{ echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
30428echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
30429cat >conftest.$ac_ext <<_ACEOF
30430/* confdefs.h.  */
30431_ACEOF
30432cat confdefs.h >>conftest.$ac_ext
30433cat >>conftest.$ac_ext <<_ACEOF
30434/* end confdefs.h.  */
30435#include <ApplicationServices/ApplicationServices.h>
30436_ACEOF
30437if { (ac_try="$ac_cpp conftest.$ac_ext"
30438case "(($ac_try" in
30439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440  *) ac_try_echo=$ac_try;;
30441esac
30442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30444  ac_status=$?
30445  grep -v '^ *+' conftest.er1 >conftest.err
30446  rm -f conftest.er1
30447  cat conftest.err >&5
30448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449  (exit $ac_status); } >/dev/null && {
30450	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30451	 test ! -s conftest.err
30452       }; then
30453  ac_header_preproc=yes
30454else
30455  echo "$as_me: failed program was:" >&5
30456sed 's/^/| /' conftest.$ac_ext >&5
30457
30458  ac_header_preproc=no
30459fi
30460
30461rm -f conftest.err conftest.$ac_ext
30462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30463echo "${ECHO_T}$ac_header_preproc" >&6; }
30464
30465# So?  What about this header?
30466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30467  yes:no: )
30468    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
30469echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30470    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
30471echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
30472    ac_header_preproc=yes
30473    ;;
30474  no:yes:* )
30475    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
30476echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
30477    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&5
30478echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     check for missing prerequisite headers?" >&2;}
30479    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
30480echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
30481    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&5
30482echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30483    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
30484echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
30485    { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
30486echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
30487
30488    ;;
30489esac
30490{ echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30491echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30492if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30493  echo $ECHO_N "(cached) $ECHO_C" >&6
30494else
30495  ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
30496fi
30497{ echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30498echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30499
30500fi
30501if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
30502  :
30503else
30504   can_compile_carbon=0
30505fi
30506
30507
30508    if test $can_compile_carbon = 1; then
30509      with_carbon=yes
30510    fi
30511  fi
30512
30513  if test "$with_win32" != yes; then
30514    can_compile_win32=1
30515    if test "${ac_cv_header_windows_h+set}" = set; then
30516  { echo "$as_me:$LINENO: checking for windows.h" >&5
30517echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30518if test "${ac_cv_header_windows_h+set}" = set; then
30519  echo $ECHO_N "(cached) $ECHO_C" >&6
30520fi
30521{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30522echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30523else
30524  # Is the header compilable?
30525{ echo "$as_me:$LINENO: checking windows.h usability" >&5
30526echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
30527cat >conftest.$ac_ext <<_ACEOF
30528/* confdefs.h.  */
30529_ACEOF
30530cat confdefs.h >>conftest.$ac_ext
30531cat >>conftest.$ac_ext <<_ACEOF
30532/* end confdefs.h.  */
30533$ac_includes_default
30534#include <windows.h>
30535_ACEOF
30536rm -f conftest.$ac_objext
30537if { (ac_try="$ac_compile"
30538case "(($ac_try" in
30539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540  *) ac_try_echo=$ac_try;;
30541esac
30542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543  (eval "$ac_compile") 2>conftest.er1
30544  ac_status=$?
30545  grep -v '^ *+' conftest.er1 >conftest.err
30546  rm -f conftest.er1
30547  cat conftest.err >&5
30548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549  (exit $ac_status); } && {
30550	 test -z "$ac_c_werror_flag" ||
30551	 test ! -s conftest.err
30552       } && test -s conftest.$ac_objext; then
30553  ac_header_compiler=yes
30554else
30555  echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
30558	ac_header_compiler=no
30559fi
30560
30561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30563echo "${ECHO_T}$ac_header_compiler" >&6; }
30564
30565# Is the header present?
30566{ echo "$as_me:$LINENO: checking windows.h presence" >&5
30567echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
30568cat >conftest.$ac_ext <<_ACEOF
30569/* confdefs.h.  */
30570_ACEOF
30571cat confdefs.h >>conftest.$ac_ext
30572cat >>conftest.$ac_ext <<_ACEOF
30573/* end confdefs.h.  */
30574#include <windows.h>
30575_ACEOF
30576if { (ac_try="$ac_cpp conftest.$ac_ext"
30577case "(($ac_try" in
30578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579  *) ac_try_echo=$ac_try;;
30580esac
30581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30583  ac_status=$?
30584  grep -v '^ *+' conftest.er1 >conftest.err
30585  rm -f conftest.er1
30586  cat conftest.err >&5
30587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588  (exit $ac_status); } >/dev/null && {
30589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30590	 test ! -s conftest.err
30591       }; then
30592  ac_header_preproc=yes
30593else
30594  echo "$as_me: failed program was:" >&5
30595sed 's/^/| /' conftest.$ac_ext >&5
30596
30597  ac_header_preproc=no
30598fi
30599
30600rm -f conftest.err conftest.$ac_ext
30601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30602echo "${ECHO_T}$ac_header_preproc" >&6; }
30603
30604# So?  What about this header?
30605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30606  yes:no: )
30607    { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
30608echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30609    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
30610echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
30611    ac_header_preproc=yes
30612    ;;
30613  no:yes:* )
30614    { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
30615echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
30616    { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
30617echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
30618    { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
30619echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
30620    { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
30621echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30622    { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
30623echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
30624    { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
30625echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
30626
30627    ;;
30628esac
30629{ echo "$as_me:$LINENO: checking for windows.h" >&5
30630echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30631if test "${ac_cv_header_windows_h+set}" = set; then
30632  echo $ECHO_N "(cached) $ECHO_C" >&6
30633else
30634  ac_cv_header_windows_h=$ac_header_preproc
30635fi
30636{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30637echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30638
30639fi
30640if test $ac_cv_header_windows_h = yes; then
30641  :
30642else
30643   can_compile_win32=0
30644fi
30645
30646
30647    if test "${ac_cv_header_commctrl_h+set}" = set; then
30648  { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30649echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30650if test "${ac_cv_header_commctrl_h+set}" = set; then
30651  echo $ECHO_N "(cached) $ECHO_C" >&6
30652fi
30653{ echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30654echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30655else
30656  # Is the header compilable?
30657{ echo "$as_me:$LINENO: checking commctrl.h usability" >&5
30658echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
30659cat >conftest.$ac_ext <<_ACEOF
30660/* confdefs.h.  */
30661_ACEOF
30662cat confdefs.h >>conftest.$ac_ext
30663cat >>conftest.$ac_ext <<_ACEOF
30664/* end confdefs.h.  */
30665$ac_includes_default
30666#include <commctrl.h>
30667_ACEOF
30668rm -f conftest.$ac_objext
30669if { (ac_try="$ac_compile"
30670case "(($ac_try" in
30671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672  *) ac_try_echo=$ac_try;;
30673esac
30674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675  (eval "$ac_compile") 2>conftest.er1
30676  ac_status=$?
30677  grep -v '^ *+' conftest.er1 >conftest.err
30678  rm -f conftest.er1
30679  cat conftest.err >&5
30680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681  (exit $ac_status); } && {
30682	 test -z "$ac_c_werror_flag" ||
30683	 test ! -s conftest.err
30684       } && test -s conftest.$ac_objext; then
30685  ac_header_compiler=yes
30686else
30687  echo "$as_me: failed program was:" >&5
30688sed 's/^/| /' conftest.$ac_ext >&5
30689
30690	ac_header_compiler=no
30691fi
30692
30693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30694{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30695echo "${ECHO_T}$ac_header_compiler" >&6; }
30696
30697# Is the header present?
30698{ echo "$as_me:$LINENO: checking commctrl.h presence" >&5
30699echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
30700cat >conftest.$ac_ext <<_ACEOF
30701/* confdefs.h.  */
30702_ACEOF
30703cat confdefs.h >>conftest.$ac_ext
30704cat >>conftest.$ac_ext <<_ACEOF
30705/* end confdefs.h.  */
30706#include <commctrl.h>
30707_ACEOF
30708if { (ac_try="$ac_cpp conftest.$ac_ext"
30709case "(($ac_try" in
30710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711  *) ac_try_echo=$ac_try;;
30712esac
30713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30715  ac_status=$?
30716  grep -v '^ *+' conftest.er1 >conftest.err
30717  rm -f conftest.er1
30718  cat conftest.err >&5
30719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720  (exit $ac_status); } >/dev/null && {
30721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30722	 test ! -s conftest.err
30723       }; then
30724  ac_header_preproc=yes
30725else
30726  echo "$as_me: failed program was:" >&5
30727sed 's/^/| /' conftest.$ac_ext >&5
30728
30729  ac_header_preproc=no
30730fi
30731
30732rm -f conftest.err conftest.$ac_ext
30733{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30734echo "${ECHO_T}$ac_header_preproc" >&6; }
30735
30736# So?  What about this header?
30737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30738  yes:no: )
30739    { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30740echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30741    { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
30742echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
30743    ac_header_preproc=yes
30744    ;;
30745  no:yes:* )
30746    { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
30747echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
30748    { echo "$as_me:$LINENO: WARNING: commctrl.h:     check for missing prerequisite headers?" >&5
30749echo "$as_me: WARNING: commctrl.h:     check for missing prerequisite headers?" >&2;}
30750    { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
30751echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
30752    { echo "$as_me:$LINENO: WARNING: commctrl.h:     section \"Present But Cannot Be Compiled\"" >&5
30753echo "$as_me: WARNING: commctrl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30754    { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
30755echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
30756    { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
30757echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
30758
30759    ;;
30760esac
30761{ echo "$as_me:$LINENO: checking for commctrl.h" >&5
30762echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30763if test "${ac_cv_header_commctrl_h+set}" = set; then
30764  echo $ECHO_N "(cached) $ECHO_C" >&6
30765else
30766  ac_cv_header_commctrl_h=$ac_header_preproc
30767fi
30768{ echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30769echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30770
30771fi
30772if test $ac_cv_header_commctrl_h = yes; then
30773  :
30774else
30775   can_compile_win32=0
30776fi
30777
30778
30779    if test $can_compile_win32 = 1; then
30780      with_win32=yes
30781    fi
30782  fi
30783
30784  if test "$with_sdl" != yes; then
30785    can_compile_sdl=1
30786    if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30787  { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30788echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30789if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30790  echo $ECHO_N "(cached) $ECHO_C" >&6
30791fi
30792{ echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30793echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30794else
30795  # Is the header compilable?
30796{ echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
30797echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
30798cat >conftest.$ac_ext <<_ACEOF
30799/* confdefs.h.  */
30800_ACEOF
30801cat confdefs.h >>conftest.$ac_ext
30802cat >>conftest.$ac_ext <<_ACEOF
30803/* end confdefs.h.  */
30804$ac_includes_default
30805#include <SDL/SDL.h>
30806_ACEOF
30807rm -f conftest.$ac_objext
30808if { (ac_try="$ac_compile"
30809case "(($ac_try" in
30810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811  *) ac_try_echo=$ac_try;;
30812esac
30813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814  (eval "$ac_compile") 2>conftest.er1
30815  ac_status=$?
30816  grep -v '^ *+' conftest.er1 >conftest.err
30817  rm -f conftest.er1
30818  cat conftest.err >&5
30819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820  (exit $ac_status); } && {
30821	 test -z "$ac_c_werror_flag" ||
30822	 test ! -s conftest.err
30823       } && test -s conftest.$ac_objext; then
30824  ac_header_compiler=yes
30825else
30826  echo "$as_me: failed program was:" >&5
30827sed 's/^/| /' conftest.$ac_ext >&5
30828
30829	ac_header_compiler=no
30830fi
30831
30832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30833{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30834echo "${ECHO_T}$ac_header_compiler" >&6; }
30835
30836# Is the header present?
30837{ echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
30838echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
30839cat >conftest.$ac_ext <<_ACEOF
30840/* confdefs.h.  */
30841_ACEOF
30842cat confdefs.h >>conftest.$ac_ext
30843cat >>conftest.$ac_ext <<_ACEOF
30844/* end confdefs.h.  */
30845#include <SDL/SDL.h>
30846_ACEOF
30847if { (ac_try="$ac_cpp conftest.$ac_ext"
30848case "(($ac_try" in
30849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850  *) ac_try_echo=$ac_try;;
30851esac
30852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30854  ac_status=$?
30855  grep -v '^ *+' conftest.er1 >conftest.err
30856  rm -f conftest.er1
30857  cat conftest.err >&5
30858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859  (exit $ac_status); } >/dev/null && {
30860	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30861	 test ! -s conftest.err
30862       }; then
30863  ac_header_preproc=yes
30864else
30865  echo "$as_me: failed program was:" >&5
30866sed 's/^/| /' conftest.$ac_ext >&5
30867
30868  ac_header_preproc=no
30869fi
30870
30871rm -f conftest.err conftest.$ac_ext
30872{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30873echo "${ECHO_T}$ac_header_preproc" >&6; }
30874
30875# So?  What about this header?
30876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30877  yes:no: )
30878    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
30879echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30880    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
30881echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
30882    ac_header_preproc=yes
30883    ;;
30884  no:yes:* )
30885    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
30886echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
30887    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h:     check for missing prerequisite headers?" >&5
30888echo "$as_me: WARNING: SDL/SDL.h:     check for missing prerequisite headers?" >&2;}
30889    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
30890echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
30891    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h:     section \"Present But Cannot Be Compiled\"" >&5
30892echo "$as_me: WARNING: SDL/SDL.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30893    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
30894echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
30895    { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
30896echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
30897
30898    ;;
30899esac
30900{ echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30901echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30902if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30903  echo $ECHO_N "(cached) $ECHO_C" >&6
30904else
30905  ac_cv_header_SDL_SDL_h=$ac_header_preproc
30906fi
30907{ echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30908echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30909
30910fi
30911if test $ac_cv_header_SDL_SDL_h = yes; then
30912  :
30913else
30914   can_compile_sdl=0
30915fi
30916
30917
30918    if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30919  { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30920echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30921if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30922  echo $ECHO_N "(cached) $ECHO_C" >&6
30923fi
30924{ echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30925echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30926else
30927  # Is the header compilable?
30928{ echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
30929echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
30930cat >conftest.$ac_ext <<_ACEOF
30931/* confdefs.h.  */
30932_ACEOF
30933cat confdefs.h >>conftest.$ac_ext
30934cat >>conftest.$ac_ext <<_ACEOF
30935/* end confdefs.h.  */
30936$ac_includes_default
30937#include <SDL/SDL_main.h>
30938_ACEOF
30939rm -f conftest.$ac_objext
30940if { (ac_try="$ac_compile"
30941case "(($ac_try" in
30942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943  *) ac_try_echo=$ac_try;;
30944esac
30945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946  (eval "$ac_compile") 2>conftest.er1
30947  ac_status=$?
30948  grep -v '^ *+' conftest.er1 >conftest.err
30949  rm -f conftest.er1
30950  cat conftest.err >&5
30951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952  (exit $ac_status); } && {
30953	 test -z "$ac_c_werror_flag" ||
30954	 test ! -s conftest.err
30955       } && test -s conftest.$ac_objext; then
30956  ac_header_compiler=yes
30957else
30958  echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
30961	ac_header_compiler=no
30962fi
30963
30964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30965{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30966echo "${ECHO_T}$ac_header_compiler" >&6; }
30967
30968# Is the header present?
30969{ echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
30970echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
30971cat >conftest.$ac_ext <<_ACEOF
30972/* confdefs.h.  */
30973_ACEOF
30974cat confdefs.h >>conftest.$ac_ext
30975cat >>conftest.$ac_ext <<_ACEOF
30976/* end confdefs.h.  */
30977#include <SDL/SDL_main.h>
30978_ACEOF
30979if { (ac_try="$ac_cpp conftest.$ac_ext"
30980case "(($ac_try" in
30981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30982  *) ac_try_echo=$ac_try;;
30983esac
30984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30985  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30986  ac_status=$?
30987  grep -v '^ *+' conftest.er1 >conftest.err
30988  rm -f conftest.er1
30989  cat conftest.err >&5
30990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991  (exit $ac_status); } >/dev/null && {
30992	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30993	 test ! -s conftest.err
30994       }; then
30995  ac_header_preproc=yes
30996else
30997  echo "$as_me: failed program was:" >&5
30998sed 's/^/| /' conftest.$ac_ext >&5
30999
31000  ac_header_preproc=no
31001fi
31002
31003rm -f conftest.err conftest.$ac_ext
31004{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31005echo "${ECHO_T}$ac_header_preproc" >&6; }
31006
31007# So?  What about this header?
31008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31009  yes:no: )
31010    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
31011echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31012    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
31013echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
31014    ac_header_preproc=yes
31015    ;;
31016  no:yes:* )
31017    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
31018echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
31019    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h:     check for missing prerequisite headers?" >&5
31020echo "$as_me: WARNING: SDL/SDL_main.h:     check for missing prerequisite headers?" >&2;}
31021    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
31022echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
31023    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h:     section \"Present But Cannot Be Compiled\"" >&5
31024echo "$as_me: WARNING: SDL/SDL_main.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31025    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
31026echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
31027    { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
31028echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
31029
31030    ;;
31031esac
31032{ echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
31033echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
31034if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
31035  echo $ECHO_N "(cached) $ECHO_C" >&6
31036else
31037  ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
31038fi
31039{ echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
31040echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
31041
31042fi
31043if test $ac_cv_header_SDL_SDL_main_h = yes; then
31044  :
31045else
31046   can_compile_sdl=0
31047fi
31048
31049
31050    if test $can_compile_sdl = 1; then
31051      with_sdl=yes
31052    fi
31053  fi
31054
31055  if test "$with_svga" != yes; then
31056    can_compile_svga=1
31057    if test "${ac_cv_header_vga_h+set}" = set; then
31058  { echo "$as_me:$LINENO: checking for vga.h" >&5
31059echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
31060if test "${ac_cv_header_vga_h+set}" = set; then
31061  echo $ECHO_N "(cached) $ECHO_C" >&6
31062fi
31063{ echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
31064echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
31065else
31066  # Is the header compilable?
31067{ echo "$as_me:$LINENO: checking vga.h usability" >&5
31068echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
31069cat >conftest.$ac_ext <<_ACEOF
31070/* confdefs.h.  */
31071_ACEOF
31072cat confdefs.h >>conftest.$ac_ext
31073cat >>conftest.$ac_ext <<_ACEOF
31074/* end confdefs.h.  */
31075$ac_includes_default
31076#include <vga.h>
31077_ACEOF
31078rm -f conftest.$ac_objext
31079if { (ac_try="$ac_compile"
31080case "(($ac_try" in
31081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082  *) ac_try_echo=$ac_try;;
31083esac
31084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085  (eval "$ac_compile") 2>conftest.er1
31086  ac_status=$?
31087  grep -v '^ *+' conftest.er1 >conftest.err
31088  rm -f conftest.er1
31089  cat conftest.err >&5
31090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091  (exit $ac_status); } && {
31092	 test -z "$ac_c_werror_flag" ||
31093	 test ! -s conftest.err
31094       } && test -s conftest.$ac_objext; then
31095  ac_header_compiler=yes
31096else
31097  echo "$as_me: failed program was:" >&5
31098sed 's/^/| /' conftest.$ac_ext >&5
31099
31100	ac_header_compiler=no
31101fi
31102
31103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31104{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31105echo "${ECHO_T}$ac_header_compiler" >&6; }
31106
31107# Is the header present?
31108{ echo "$as_me:$LINENO: checking vga.h presence" >&5
31109echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
31110cat >conftest.$ac_ext <<_ACEOF
31111/* confdefs.h.  */
31112_ACEOF
31113cat confdefs.h >>conftest.$ac_ext
31114cat >>conftest.$ac_ext <<_ACEOF
31115/* end confdefs.h.  */
31116#include <vga.h>
31117_ACEOF
31118if { (ac_try="$ac_cpp conftest.$ac_ext"
31119case "(($ac_try" in
31120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31121  *) ac_try_echo=$ac_try;;
31122esac
31123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31124  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31125  ac_status=$?
31126  grep -v '^ *+' conftest.er1 >conftest.err
31127  rm -f conftest.er1
31128  cat conftest.err >&5
31129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130  (exit $ac_status); } >/dev/null && {
31131	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31132	 test ! -s conftest.err
31133       }; then
31134  ac_header_preproc=yes
31135else
31136  echo "$as_me: failed program was:" >&5
31137sed 's/^/| /' conftest.$ac_ext >&5
31138
31139  ac_header_preproc=no
31140fi
31141
31142rm -f conftest.err conftest.$ac_ext
31143{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31144echo "${ECHO_T}$ac_header_preproc" >&6; }
31145
31146# So?  What about this header?
31147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31148  yes:no: )
31149    { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
31150echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31151    { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
31152echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
31153    ac_header_preproc=yes
31154    ;;
31155  no:yes:* )
31156    { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
31157echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
31158    { echo "$as_me:$LINENO: WARNING: vga.h:     check for missing prerequisite headers?" >&5
31159echo "$as_me: WARNING: vga.h:     check for missing prerequisite headers?" >&2;}
31160    { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
31161echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
31162    { echo "$as_me:$LINENO: WARNING: vga.h:     section \"Present But Cannot Be Compiled\"" >&5
31163echo "$as_me: WARNING: vga.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31164    { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
31165echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
31166    { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
31167echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
31168
31169    ;;
31170esac
31171{ echo "$as_me:$LINENO: checking for vga.h" >&5
31172echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
31173if test "${ac_cv_header_vga_h+set}" = set; then
31174  echo $ECHO_N "(cached) $ECHO_C" >&6
31175else
31176  ac_cv_header_vga_h=$ac_header_preproc
31177fi
31178{ echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
31179echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
31180
31181fi
31182if test $ac_cv_header_vga_h = yes; then
31183  :
31184else
31185   can_compile_svga=0
31186fi
31187
31188
31189    if test "${ac_cv_header_vgagl_h+set}" = set; then
31190  { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31191echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31192if test "${ac_cv_header_vgagl_h+set}" = set; then
31193  echo $ECHO_N "(cached) $ECHO_C" >&6
31194fi
31195{ echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31196echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31197else
31198  # Is the header compilable?
31199{ echo "$as_me:$LINENO: checking vgagl.h usability" >&5
31200echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
31201cat >conftest.$ac_ext <<_ACEOF
31202/* confdefs.h.  */
31203_ACEOF
31204cat confdefs.h >>conftest.$ac_ext
31205cat >>conftest.$ac_ext <<_ACEOF
31206/* end confdefs.h.  */
31207$ac_includes_default
31208#include <vgagl.h>
31209_ACEOF
31210rm -f conftest.$ac_objext
31211if { (ac_try="$ac_compile"
31212case "(($ac_try" in
31213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214  *) ac_try_echo=$ac_try;;
31215esac
31216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217  (eval "$ac_compile") 2>conftest.er1
31218  ac_status=$?
31219  grep -v '^ *+' conftest.er1 >conftest.err
31220  rm -f conftest.er1
31221  cat conftest.err >&5
31222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223  (exit $ac_status); } && {
31224	 test -z "$ac_c_werror_flag" ||
31225	 test ! -s conftest.err
31226       } && test -s conftest.$ac_objext; then
31227  ac_header_compiler=yes
31228else
31229  echo "$as_me: failed program was:" >&5
31230sed 's/^/| /' conftest.$ac_ext >&5
31231
31232	ac_header_compiler=no
31233fi
31234
31235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31236{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31237echo "${ECHO_T}$ac_header_compiler" >&6; }
31238
31239# Is the header present?
31240{ echo "$as_me:$LINENO: checking vgagl.h presence" >&5
31241echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
31242cat >conftest.$ac_ext <<_ACEOF
31243/* confdefs.h.  */
31244_ACEOF
31245cat confdefs.h >>conftest.$ac_ext
31246cat >>conftest.$ac_ext <<_ACEOF
31247/* end confdefs.h.  */
31248#include <vgagl.h>
31249_ACEOF
31250if { (ac_try="$ac_cpp conftest.$ac_ext"
31251case "(($ac_try" in
31252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253  *) ac_try_echo=$ac_try;;
31254esac
31255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31257  ac_status=$?
31258  grep -v '^ *+' conftest.er1 >conftest.err
31259  rm -f conftest.er1
31260  cat conftest.err >&5
31261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262  (exit $ac_status); } >/dev/null && {
31263	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31264	 test ! -s conftest.err
31265       }; then
31266  ac_header_preproc=yes
31267else
31268  echo "$as_me: failed program was:" >&5
31269sed 's/^/| /' conftest.$ac_ext >&5
31270
31271  ac_header_preproc=no
31272fi
31273
31274rm -f conftest.err conftest.$ac_ext
31275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31276echo "${ECHO_T}$ac_header_preproc" >&6; }
31277
31278# So?  What about this header?
31279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31280  yes:no: )
31281    { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31282echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31283    { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
31284echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
31285    ac_header_preproc=yes
31286    ;;
31287  no:yes:* )
31288    { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
31289echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
31290    { echo "$as_me:$LINENO: WARNING: vgagl.h:     check for missing prerequisite headers?" >&5
31291echo "$as_me: WARNING: vgagl.h:     check for missing prerequisite headers?" >&2;}
31292    { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
31293echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
31294    { echo "$as_me:$LINENO: WARNING: vgagl.h:     section \"Present But Cannot Be Compiled\"" >&5
31295echo "$as_me: WARNING: vgagl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31296    { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
31297echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
31298    { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
31299echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
31300
31301    ;;
31302esac
31303{ echo "$as_me:$LINENO: checking for vgagl.h" >&5
31304echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31305if test "${ac_cv_header_vgagl_h+set}" = set; then
31306  echo $ECHO_N "(cached) $ECHO_C" >&6
31307else
31308  ac_cv_header_vgagl_h=$ac_header_preproc
31309fi
31310{ echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31311echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31312
31313fi
31314if test $ac_cv_header_vgagl_h = yes; then
31315  :
31316else
31317   can_compile_svga=0
31318fi
31319
31320
31321    if test $can_compile_svga = 1; then
31322      with_svga=yes
31323    fi
31324  fi
31325
31326  if test "$with_x11" != yes; then
31327    can_compile_x11=1
31328    if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31329  { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31330echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31331if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31332  echo $ECHO_N "(cached) $ECHO_C" >&6
31333fi
31334{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31335echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31336else
31337  # Is the header compilable?
31338{ echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
31339echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
31340cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h.  */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h.  */
31346$ac_includes_default
31347#include <X11/Xlib.h>
31348_ACEOF
31349rm -f conftest.$ac_objext
31350if { (ac_try="$ac_compile"
31351case "(($ac_try" in
31352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353  *) ac_try_echo=$ac_try;;
31354esac
31355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356  (eval "$ac_compile") 2>conftest.er1
31357  ac_status=$?
31358  grep -v '^ *+' conftest.er1 >conftest.err
31359  rm -f conftest.er1
31360  cat conftest.err >&5
31361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362  (exit $ac_status); } && {
31363	 test -z "$ac_c_werror_flag" ||
31364	 test ! -s conftest.err
31365       } && test -s conftest.$ac_objext; then
31366  ac_header_compiler=yes
31367else
31368  echo "$as_me: failed program was:" >&5
31369sed 's/^/| /' conftest.$ac_ext >&5
31370
31371	ac_header_compiler=no
31372fi
31373
31374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31376echo "${ECHO_T}$ac_header_compiler" >&6; }
31377
31378# Is the header present?
31379{ echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
31380echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
31381cat >conftest.$ac_ext <<_ACEOF
31382/* confdefs.h.  */
31383_ACEOF
31384cat confdefs.h >>conftest.$ac_ext
31385cat >>conftest.$ac_ext <<_ACEOF
31386/* end confdefs.h.  */
31387#include <X11/Xlib.h>
31388_ACEOF
31389if { (ac_try="$ac_cpp conftest.$ac_ext"
31390case "(($ac_try" in
31391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392  *) ac_try_echo=$ac_try;;
31393esac
31394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31396  ac_status=$?
31397  grep -v '^ *+' conftest.er1 >conftest.err
31398  rm -f conftest.er1
31399  cat conftest.err >&5
31400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401  (exit $ac_status); } >/dev/null && {
31402	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31403	 test ! -s conftest.err
31404       }; then
31405  ac_header_preproc=yes
31406else
31407  echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410  ac_header_preproc=no
31411fi
31412
31413rm -f conftest.err conftest.$ac_ext
31414{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31415echo "${ECHO_T}$ac_header_preproc" >&6; }
31416
31417# So?  What about this header?
31418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31419  yes:no: )
31420    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31421echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31422    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
31423echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
31424    ac_header_preproc=yes
31425    ;;
31426  no:yes:* )
31427    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
31428echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
31429    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h:     check for missing prerequisite headers?" >&5
31430echo "$as_me: WARNING: X11/Xlib.h:     check for missing prerequisite headers?" >&2;}
31431    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
31432echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
31433    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h:     section \"Present But Cannot Be Compiled\"" >&5
31434echo "$as_me: WARNING: X11/Xlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31435    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
31436echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
31437    { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
31438echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
31439
31440    ;;
31441esac
31442{ echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31443echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31444if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31445  echo $ECHO_N "(cached) $ECHO_C" >&6
31446else
31447  ac_cv_header_X11_Xlib_h=$ac_header_preproc
31448fi
31449{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31450echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31451
31452fi
31453if test $ac_cv_header_X11_Xlib_h = yes; then
31454  :
31455else
31456   can_compile_x11=0
31457fi
31458
31459
31460    if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31461  { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31462echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31463if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31464  echo $ECHO_N "(cached) $ECHO_C" >&6
31465fi
31466{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31467echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31468else
31469  # Is the header compilable?
31470{ echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
31471echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
31472cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h.  */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h.  */
31478$ac_includes_default
31479#include <X11/Xutil.h>
31480_ACEOF
31481rm -f conftest.$ac_objext
31482if { (ac_try="$ac_compile"
31483case "(($ac_try" in
31484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31485  *) ac_try_echo=$ac_try;;
31486esac
31487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31488  (eval "$ac_compile") 2>conftest.er1
31489  ac_status=$?
31490  grep -v '^ *+' conftest.er1 >conftest.err
31491  rm -f conftest.er1
31492  cat conftest.err >&5
31493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494  (exit $ac_status); } && {
31495	 test -z "$ac_c_werror_flag" ||
31496	 test ! -s conftest.err
31497       } && test -s conftest.$ac_objext; then
31498  ac_header_compiler=yes
31499else
31500  echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503	ac_header_compiler=no
31504fi
31505
31506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31508echo "${ECHO_T}$ac_header_compiler" >&6; }
31509
31510# Is the header present?
31511{ echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
31512echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
31513cat >conftest.$ac_ext <<_ACEOF
31514/* confdefs.h.  */
31515_ACEOF
31516cat confdefs.h >>conftest.$ac_ext
31517cat >>conftest.$ac_ext <<_ACEOF
31518/* end confdefs.h.  */
31519#include <X11/Xutil.h>
31520_ACEOF
31521if { (ac_try="$ac_cpp conftest.$ac_ext"
31522case "(($ac_try" in
31523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524  *) ac_try_echo=$ac_try;;
31525esac
31526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31528  ac_status=$?
31529  grep -v '^ *+' conftest.er1 >conftest.err
31530  rm -f conftest.er1
31531  cat conftest.err >&5
31532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533  (exit $ac_status); } >/dev/null && {
31534	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31535	 test ! -s conftest.err
31536       }; then
31537  ac_header_preproc=yes
31538else
31539  echo "$as_me: failed program was:" >&5
31540sed 's/^/| /' conftest.$ac_ext >&5
31541
31542  ac_header_preproc=no
31543fi
31544
31545rm -f conftest.err conftest.$ac_ext
31546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31547echo "${ECHO_T}$ac_header_preproc" >&6; }
31548
31549# So?  What about this header?
31550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31551  yes:no: )
31552    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
31553echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31554    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
31555echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
31556    ac_header_preproc=yes
31557    ;;
31558  no:yes:* )
31559    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
31560echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
31561    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h:     check for missing prerequisite headers?" >&5
31562echo "$as_me: WARNING: X11/Xutil.h:     check for missing prerequisite headers?" >&2;}
31563    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
31564echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
31565    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h:     section \"Present But Cannot Be Compiled\"" >&5
31566echo "$as_me: WARNING: X11/Xutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31567    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
31568echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
31569    { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
31570echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
31571
31572    ;;
31573esac
31574{ echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31575echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31576if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31577  echo $ECHO_N "(cached) $ECHO_C" >&6
31578else
31579  ac_cv_header_X11_Xutil_h=$ac_header_preproc
31580fi
31581{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31582echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31583
31584fi
31585if test $ac_cv_header_X11_Xutil_h = yes; then
31586  :
31587else
31588   can_compile_x11=0
31589fi
31590
31591
31592    if test $can_compile_x11 = 1; then
31593      with_x11=yes
31594    fi
31595  fi
31596
31597  if test "$with_rfb" != yes; then
31598    can_compile_rfb=1
31599    case $target in
31600      *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
31601	if test "${ac_cv_header_winsock_h+set}" = set; then
31602  { echo "$as_me:$LINENO: checking for winsock.h" >&5
31603echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31604if test "${ac_cv_header_winsock_h+set}" = set; then
31605  echo $ECHO_N "(cached) $ECHO_C" >&6
31606fi
31607{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31608echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31609else
31610  # Is the header compilable?
31611{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
31612echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
31613cat >conftest.$ac_ext <<_ACEOF
31614/* confdefs.h.  */
31615_ACEOF
31616cat confdefs.h >>conftest.$ac_ext
31617cat >>conftest.$ac_ext <<_ACEOF
31618/* end confdefs.h.  */
31619$ac_includes_default
31620#include <winsock.h>
31621_ACEOF
31622rm -f conftest.$ac_objext
31623if { (ac_try="$ac_compile"
31624case "(($ac_try" in
31625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626  *) ac_try_echo=$ac_try;;
31627esac
31628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629  (eval "$ac_compile") 2>conftest.er1
31630  ac_status=$?
31631  grep -v '^ *+' conftest.er1 >conftest.err
31632  rm -f conftest.er1
31633  cat conftest.err >&5
31634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635  (exit $ac_status); } && {
31636	 test -z "$ac_c_werror_flag" ||
31637	 test ! -s conftest.err
31638       } && test -s conftest.$ac_objext; then
31639  ac_header_compiler=yes
31640else
31641  echo "$as_me: failed program was:" >&5
31642sed 's/^/| /' conftest.$ac_ext >&5
31643
31644	ac_header_compiler=no
31645fi
31646
31647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31649echo "${ECHO_T}$ac_header_compiler" >&6; }
31650
31651# Is the header present?
31652{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
31653echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
31654cat >conftest.$ac_ext <<_ACEOF
31655/* confdefs.h.  */
31656_ACEOF
31657cat confdefs.h >>conftest.$ac_ext
31658cat >>conftest.$ac_ext <<_ACEOF
31659/* end confdefs.h.  */
31660#include <winsock.h>
31661_ACEOF
31662if { (ac_try="$ac_cpp conftest.$ac_ext"
31663case "(($ac_try" in
31664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665  *) ac_try_echo=$ac_try;;
31666esac
31667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31669  ac_status=$?
31670  grep -v '^ *+' conftest.er1 >conftest.err
31671  rm -f conftest.er1
31672  cat conftest.err >&5
31673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674  (exit $ac_status); } >/dev/null && {
31675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31676	 test ! -s conftest.err
31677       }; then
31678  ac_header_preproc=yes
31679else
31680  echo "$as_me: failed program was:" >&5
31681sed 's/^/| /' conftest.$ac_ext >&5
31682
31683  ac_header_preproc=no
31684fi
31685
31686rm -f conftest.err conftest.$ac_ext
31687{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31688echo "${ECHO_T}$ac_header_preproc" >&6; }
31689
31690# So?  What about this header?
31691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31692  yes:no: )
31693    { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
31694echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31695    { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
31696echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
31697    ac_header_preproc=yes
31698    ;;
31699  no:yes:* )
31700    { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
31701echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
31702    { echo "$as_me:$LINENO: WARNING: winsock.h:     check for missing prerequisite headers?" >&5
31703echo "$as_me: WARNING: winsock.h:     check for missing prerequisite headers?" >&2;}
31704    { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
31705echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
31706    { echo "$as_me:$LINENO: WARNING: winsock.h:     section \"Present But Cannot Be Compiled\"" >&5
31707echo "$as_me: WARNING: winsock.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31708    { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
31709echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
31710    { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
31711echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
31712
31713    ;;
31714esac
31715{ echo "$as_me:$LINENO: checking for winsock.h" >&5
31716echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31717if test "${ac_cv_header_winsock_h+set}" = set; then
31718  echo $ECHO_N "(cached) $ECHO_C" >&6
31719else
31720  ac_cv_header_winsock_h=$ac_header_preproc
31721fi
31722{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31723echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31724
31725fi
31726if test $ac_cv_header_winsock_h = yes; then
31727  :
31728else
31729   can_compile_rfb=0
31730fi
31731
31732
31733	if test "${ac_cv_header_process_h+set}" = set; then
31734  { echo "$as_me:$LINENO: checking for process.h" >&5
31735echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31736if test "${ac_cv_header_process_h+set}" = set; then
31737  echo $ECHO_N "(cached) $ECHO_C" >&6
31738fi
31739{ echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31740echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31741else
31742  # Is the header compilable?
31743{ echo "$as_me:$LINENO: checking process.h usability" >&5
31744echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
31745cat >conftest.$ac_ext <<_ACEOF
31746/* confdefs.h.  */
31747_ACEOF
31748cat confdefs.h >>conftest.$ac_ext
31749cat >>conftest.$ac_ext <<_ACEOF
31750/* end confdefs.h.  */
31751$ac_includes_default
31752#include <process.h>
31753_ACEOF
31754rm -f conftest.$ac_objext
31755if { (ac_try="$ac_compile"
31756case "(($ac_try" in
31757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758  *) ac_try_echo=$ac_try;;
31759esac
31760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761  (eval "$ac_compile") 2>conftest.er1
31762  ac_status=$?
31763  grep -v '^ *+' conftest.er1 >conftest.err
31764  rm -f conftest.er1
31765  cat conftest.err >&5
31766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767  (exit $ac_status); } && {
31768	 test -z "$ac_c_werror_flag" ||
31769	 test ! -s conftest.err
31770       } && test -s conftest.$ac_objext; then
31771  ac_header_compiler=yes
31772else
31773  echo "$as_me: failed program was:" >&5
31774sed 's/^/| /' conftest.$ac_ext >&5
31775
31776	ac_header_compiler=no
31777fi
31778
31779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31781echo "${ECHO_T}$ac_header_compiler" >&6; }
31782
31783# Is the header present?
31784{ echo "$as_me:$LINENO: checking process.h presence" >&5
31785echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
31786cat >conftest.$ac_ext <<_ACEOF
31787/* confdefs.h.  */
31788_ACEOF
31789cat confdefs.h >>conftest.$ac_ext
31790cat >>conftest.$ac_ext <<_ACEOF
31791/* end confdefs.h.  */
31792#include <process.h>
31793_ACEOF
31794if { (ac_try="$ac_cpp conftest.$ac_ext"
31795case "(($ac_try" in
31796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797  *) ac_try_echo=$ac_try;;
31798esac
31799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31800  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31801  ac_status=$?
31802  grep -v '^ *+' conftest.er1 >conftest.err
31803  rm -f conftest.er1
31804  cat conftest.err >&5
31805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806  (exit $ac_status); } >/dev/null && {
31807	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31808	 test ! -s conftest.err
31809       }; then
31810  ac_header_preproc=yes
31811else
31812  echo "$as_me: failed program was:" >&5
31813sed 's/^/| /' conftest.$ac_ext >&5
31814
31815  ac_header_preproc=no
31816fi
31817
31818rm -f conftest.err conftest.$ac_ext
31819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31820echo "${ECHO_T}$ac_header_preproc" >&6; }
31821
31822# So?  What about this header?
31823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31824  yes:no: )
31825    { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
31826echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31827    { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
31828echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
31829    ac_header_preproc=yes
31830    ;;
31831  no:yes:* )
31832    { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
31833echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
31834    { echo "$as_me:$LINENO: WARNING: process.h:     check for missing prerequisite headers?" >&5
31835echo "$as_me: WARNING: process.h:     check for missing prerequisite headers?" >&2;}
31836    { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
31837echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
31838    { echo "$as_me:$LINENO: WARNING: process.h:     section \"Present But Cannot Be Compiled\"" >&5
31839echo "$as_me: WARNING: process.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31840    { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
31841echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
31842    { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
31843echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
31844
31845    ;;
31846esac
31847{ echo "$as_me:$LINENO: checking for process.h" >&5
31848echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31849if test "${ac_cv_header_process_h+set}" = set; then
31850  echo $ECHO_N "(cached) $ECHO_C" >&6
31851else
31852  ac_cv_header_process_h=$ac_header_preproc
31853fi
31854{ echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31855echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31856
31857fi
31858if test $ac_cv_header_process_h = yes; then
31859  :
31860else
31861   can_compile_rfb=0
31862fi
31863
31864
31865        ;;
31866      *)
31867	if test "${ac_cv_header_sys_socket_h+set}" = set; then
31868  { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31869echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31870if test "${ac_cv_header_sys_socket_h+set}" = set; then
31871  echo $ECHO_N "(cached) $ECHO_C" >&6
31872fi
31873{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31874echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31875else
31876  # Is the header compilable?
31877{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
31878echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
31879cat >conftest.$ac_ext <<_ACEOF
31880/* confdefs.h.  */
31881_ACEOF
31882cat confdefs.h >>conftest.$ac_ext
31883cat >>conftest.$ac_ext <<_ACEOF
31884/* end confdefs.h.  */
31885$ac_includes_default
31886#include <sys/socket.h>
31887_ACEOF
31888rm -f conftest.$ac_objext
31889if { (ac_try="$ac_compile"
31890case "(($ac_try" in
31891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892  *) ac_try_echo=$ac_try;;
31893esac
31894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895  (eval "$ac_compile") 2>conftest.er1
31896  ac_status=$?
31897  grep -v '^ *+' conftest.er1 >conftest.err
31898  rm -f conftest.er1
31899  cat conftest.err >&5
31900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901  (exit $ac_status); } && {
31902	 test -z "$ac_c_werror_flag" ||
31903	 test ! -s conftest.err
31904       } && test -s conftest.$ac_objext; then
31905  ac_header_compiler=yes
31906else
31907  echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
31910	ac_header_compiler=no
31911fi
31912
31913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31914{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31915echo "${ECHO_T}$ac_header_compiler" >&6; }
31916
31917# Is the header present?
31918{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
31919echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
31920cat >conftest.$ac_ext <<_ACEOF
31921/* confdefs.h.  */
31922_ACEOF
31923cat confdefs.h >>conftest.$ac_ext
31924cat >>conftest.$ac_ext <<_ACEOF
31925/* end confdefs.h.  */
31926#include <sys/socket.h>
31927_ACEOF
31928if { (ac_try="$ac_cpp conftest.$ac_ext"
31929case "(($ac_try" in
31930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31931  *) ac_try_echo=$ac_try;;
31932esac
31933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31934  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31935  ac_status=$?
31936  grep -v '^ *+' conftest.er1 >conftest.err
31937  rm -f conftest.er1
31938  cat conftest.err >&5
31939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940  (exit $ac_status); } >/dev/null && {
31941	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31942	 test ! -s conftest.err
31943       }; then
31944  ac_header_preproc=yes
31945else
31946  echo "$as_me: failed program was:" >&5
31947sed 's/^/| /' conftest.$ac_ext >&5
31948
31949  ac_header_preproc=no
31950fi
31951
31952rm -f conftest.err conftest.$ac_ext
31953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31954echo "${ECHO_T}$ac_header_preproc" >&6; }
31955
31956# So?  What about this header?
31957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31958  yes:no: )
31959    { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
31960echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31961    { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
31962echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
31963    ac_header_preproc=yes
31964    ;;
31965  no:yes:* )
31966    { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
31967echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
31968    { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
31969echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
31970    { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
31971echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
31972    { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
31973echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31974    { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
31975echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
31976    { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
31977echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
31978
31979    ;;
31980esac
31981{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31982echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31983if test "${ac_cv_header_sys_socket_h+set}" = set; then
31984  echo $ECHO_N "(cached) $ECHO_C" >&6
31985else
31986  ac_cv_header_sys_socket_h=$ac_header_preproc
31987fi
31988{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31989echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31990
31991fi
31992if test $ac_cv_header_sys_socket_h = yes; then
31993  :
31994else
31995   can_compile_rfb=0
31996fi
31997
31998
31999	if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
32000  { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
32001echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
32002if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
32003  echo $ECHO_N "(cached) $ECHO_C" >&6
32004fi
32005{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
32006echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
32007else
32008  # Is the header compilable?
32009{ echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
32010echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
32011cat >conftest.$ac_ext <<_ACEOF
32012/* confdefs.h.  */
32013_ACEOF
32014cat confdefs.h >>conftest.$ac_ext
32015cat >>conftest.$ac_ext <<_ACEOF
32016/* end confdefs.h.  */
32017$ac_includes_default
32018#include <netinet/tcp.h>
32019_ACEOF
32020rm -f conftest.$ac_objext
32021if { (ac_try="$ac_compile"
32022case "(($ac_try" in
32023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024  *) ac_try_echo=$ac_try;;
32025esac
32026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027  (eval "$ac_compile") 2>conftest.er1
32028  ac_status=$?
32029  grep -v '^ *+' conftest.er1 >conftest.err
32030  rm -f conftest.er1
32031  cat conftest.err >&5
32032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033  (exit $ac_status); } && {
32034	 test -z "$ac_c_werror_flag" ||
32035	 test ! -s conftest.err
32036       } && test -s conftest.$ac_objext; then
32037  ac_header_compiler=yes
32038else
32039  echo "$as_me: failed program was:" >&5
32040sed 's/^/| /' conftest.$ac_ext >&5
32041
32042	ac_header_compiler=no
32043fi
32044
32045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32046{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32047echo "${ECHO_T}$ac_header_compiler" >&6; }
32048
32049# Is the header present?
32050{ echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
32051echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
32052cat >conftest.$ac_ext <<_ACEOF
32053/* confdefs.h.  */
32054_ACEOF
32055cat confdefs.h >>conftest.$ac_ext
32056cat >>conftest.$ac_ext <<_ACEOF
32057/* end confdefs.h.  */
32058#include <netinet/tcp.h>
32059_ACEOF
32060if { (ac_try="$ac_cpp conftest.$ac_ext"
32061case "(($ac_try" in
32062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063  *) ac_try_echo=$ac_try;;
32064esac
32065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32067  ac_status=$?
32068  grep -v '^ *+' conftest.er1 >conftest.err
32069  rm -f conftest.er1
32070  cat conftest.err >&5
32071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072  (exit $ac_status); } >/dev/null && {
32073	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32074	 test ! -s conftest.err
32075       }; then
32076  ac_header_preproc=yes
32077else
32078  echo "$as_me: failed program was:" >&5
32079sed 's/^/| /' conftest.$ac_ext >&5
32080
32081  ac_header_preproc=no
32082fi
32083
32084rm -f conftest.err conftest.$ac_ext
32085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32086echo "${ECHO_T}$ac_header_preproc" >&6; }
32087
32088# So?  What about this header?
32089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32090  yes:no: )
32091    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
32092echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32093    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
32094echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
32095    ac_header_preproc=yes
32096    ;;
32097  no:yes:* )
32098    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
32099echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
32100    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h:     check for missing prerequisite headers?" >&5
32101echo "$as_me: WARNING: netinet/tcp.h:     check for missing prerequisite headers?" >&2;}
32102    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
32103echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
32104    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h:     section \"Present But Cannot Be Compiled\"" >&5
32105echo "$as_me: WARNING: netinet/tcp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32106    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
32107echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
32108    { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
32109echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
32110
32111    ;;
32112esac
32113{ echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
32114echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
32115if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
32116  echo $ECHO_N "(cached) $ECHO_C" >&6
32117else
32118  ac_cv_header_netinet_tcp_h=$ac_header_preproc
32119fi
32120{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
32121echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
32122
32123fi
32124if test $ac_cv_header_netinet_tcp_h = yes; then
32125  :
32126else
32127   can_compile_rfb=0
32128fi
32129
32130
32131	if test "${ac_cv_header_pthread_h+set}" = set; then
32132  { echo "$as_me:$LINENO: checking for pthread.h" >&5
32133echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32134if test "${ac_cv_header_pthread_h+set}" = set; then
32135  echo $ECHO_N "(cached) $ECHO_C" >&6
32136fi
32137{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32138echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32139else
32140  # Is the header compilable?
32141{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
32142echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
32143cat >conftest.$ac_ext <<_ACEOF
32144/* confdefs.h.  */
32145_ACEOF
32146cat confdefs.h >>conftest.$ac_ext
32147cat >>conftest.$ac_ext <<_ACEOF
32148/* end confdefs.h.  */
32149$ac_includes_default
32150#include <pthread.h>
32151_ACEOF
32152rm -f conftest.$ac_objext
32153if { (ac_try="$ac_compile"
32154case "(($ac_try" in
32155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156  *) ac_try_echo=$ac_try;;
32157esac
32158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159  (eval "$ac_compile") 2>conftest.er1
32160  ac_status=$?
32161  grep -v '^ *+' conftest.er1 >conftest.err
32162  rm -f conftest.er1
32163  cat conftest.err >&5
32164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165  (exit $ac_status); } && {
32166	 test -z "$ac_c_werror_flag" ||
32167	 test ! -s conftest.err
32168       } && test -s conftest.$ac_objext; then
32169  ac_header_compiler=yes
32170else
32171  echo "$as_me: failed program was:" >&5
32172sed 's/^/| /' conftest.$ac_ext >&5
32173
32174	ac_header_compiler=no
32175fi
32176
32177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32179echo "${ECHO_T}$ac_header_compiler" >&6; }
32180
32181# Is the header present?
32182{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
32183echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
32184cat >conftest.$ac_ext <<_ACEOF
32185/* confdefs.h.  */
32186_ACEOF
32187cat confdefs.h >>conftest.$ac_ext
32188cat >>conftest.$ac_ext <<_ACEOF
32189/* end confdefs.h.  */
32190#include <pthread.h>
32191_ACEOF
32192if { (ac_try="$ac_cpp conftest.$ac_ext"
32193case "(($ac_try" in
32194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195  *) ac_try_echo=$ac_try;;
32196esac
32197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32199  ac_status=$?
32200  grep -v '^ *+' conftest.er1 >conftest.err
32201  rm -f conftest.er1
32202  cat conftest.err >&5
32203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204  (exit $ac_status); } >/dev/null && {
32205	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32206	 test ! -s conftest.err
32207       }; then
32208  ac_header_preproc=yes
32209else
32210  echo "$as_me: failed program was:" >&5
32211sed 's/^/| /' conftest.$ac_ext >&5
32212
32213  ac_header_preproc=no
32214fi
32215
32216rm -f conftest.err conftest.$ac_ext
32217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32218echo "${ECHO_T}$ac_header_preproc" >&6; }
32219
32220# So?  What about this header?
32221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32222  yes:no: )
32223    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
32224echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32225    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
32226echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
32227    ac_header_preproc=yes
32228    ;;
32229  no:yes:* )
32230    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
32231echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
32232    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
32233echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
32234    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
32235echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
32236    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
32237echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32238    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
32239echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
32240    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
32241echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
32242
32243    ;;
32244esac
32245{ echo "$as_me:$LINENO: checking for pthread.h" >&5
32246echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32247if test "${ac_cv_header_pthread_h+set}" = set; then
32248  echo $ECHO_N "(cached) $ECHO_C" >&6
32249else
32250  ac_cv_header_pthread_h=$ac_header_preproc
32251fi
32252{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32253echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32254
32255fi
32256if test $ac_cv_header_pthread_h = yes; then
32257  :
32258else
32259   can_compile_rfb=0
32260fi
32261
32262
32263	;;
32264    esac
32265    if test $can_compile_rfb = 1; then
32266      with_rfb=yes
32267    fi
32268  fi
32269
32270  if test "$with_term" != yes; then
32271    can_compile_term=1
32272    if test "${ac_cv_header_curses_h+set}" = set; then
32273  { echo "$as_me:$LINENO: checking for curses.h" >&5
32274echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32275if test "${ac_cv_header_curses_h+set}" = set; then
32276  echo $ECHO_N "(cached) $ECHO_C" >&6
32277fi
32278{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32279echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32280else
32281  # Is the header compilable?
32282{ echo "$as_me:$LINENO: checking curses.h usability" >&5
32283echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
32284cat >conftest.$ac_ext <<_ACEOF
32285/* confdefs.h.  */
32286_ACEOF
32287cat confdefs.h >>conftest.$ac_ext
32288cat >>conftest.$ac_ext <<_ACEOF
32289/* end confdefs.h.  */
32290$ac_includes_default
32291#include <curses.h>
32292_ACEOF
32293rm -f conftest.$ac_objext
32294if { (ac_try="$ac_compile"
32295case "(($ac_try" in
32296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297  *) ac_try_echo=$ac_try;;
32298esac
32299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300  (eval "$ac_compile") 2>conftest.er1
32301  ac_status=$?
32302  grep -v '^ *+' conftest.er1 >conftest.err
32303  rm -f conftest.er1
32304  cat conftest.err >&5
32305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306  (exit $ac_status); } && {
32307	 test -z "$ac_c_werror_flag" ||
32308	 test ! -s conftest.err
32309       } && test -s conftest.$ac_objext; then
32310  ac_header_compiler=yes
32311else
32312  echo "$as_me: failed program was:" >&5
32313sed 's/^/| /' conftest.$ac_ext >&5
32314
32315	ac_header_compiler=no
32316fi
32317
32318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32320echo "${ECHO_T}$ac_header_compiler" >&6; }
32321
32322# Is the header present?
32323{ echo "$as_me:$LINENO: checking curses.h presence" >&5
32324echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
32325cat >conftest.$ac_ext <<_ACEOF
32326/* confdefs.h.  */
32327_ACEOF
32328cat confdefs.h >>conftest.$ac_ext
32329cat >>conftest.$ac_ext <<_ACEOF
32330/* end confdefs.h.  */
32331#include <curses.h>
32332_ACEOF
32333if { (ac_try="$ac_cpp conftest.$ac_ext"
32334case "(($ac_try" in
32335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336  *) ac_try_echo=$ac_try;;
32337esac
32338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32340  ac_status=$?
32341  grep -v '^ *+' conftest.er1 >conftest.err
32342  rm -f conftest.er1
32343  cat conftest.err >&5
32344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345  (exit $ac_status); } >/dev/null && {
32346	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32347	 test ! -s conftest.err
32348       }; then
32349  ac_header_preproc=yes
32350else
32351  echo "$as_me: failed program was:" >&5
32352sed 's/^/| /' conftest.$ac_ext >&5
32353
32354  ac_header_preproc=no
32355fi
32356
32357rm -f conftest.err conftest.$ac_ext
32358{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32359echo "${ECHO_T}$ac_header_preproc" >&6; }
32360
32361# So?  What about this header?
32362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32363  yes:no: )
32364    { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
32365echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32366    { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
32367echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
32368    ac_header_preproc=yes
32369    ;;
32370  no:yes:* )
32371    { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
32372echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
32373    { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
32374echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
32375    { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
32376echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
32377    { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
32378echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32379    { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
32380echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
32381    { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
32382echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
32383
32384    ;;
32385esac
32386{ echo "$as_me:$LINENO: checking for curses.h" >&5
32387echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32388if test "${ac_cv_header_curses_h+set}" = set; then
32389  echo $ECHO_N "(cached) $ECHO_C" >&6
32390else
32391  ac_cv_header_curses_h=$ac_header_preproc
32392fi
32393{ echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32394echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32395
32396fi
32397if test $ac_cv_header_curses_h = yes; then
32398  :
32399else
32400   can_compile_term=0
32401fi
32402
32403
32404    if test "${ac_cv_header_signal_h+set}" = set; then
32405  { echo "$as_me:$LINENO: checking for signal.h" >&5
32406echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32407if test "${ac_cv_header_signal_h+set}" = set; then
32408  echo $ECHO_N "(cached) $ECHO_C" >&6
32409fi
32410{ echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32411echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32412else
32413  # Is the header compilable?
32414{ echo "$as_me:$LINENO: checking signal.h usability" >&5
32415echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
32416cat >conftest.$ac_ext <<_ACEOF
32417/* confdefs.h.  */
32418_ACEOF
32419cat confdefs.h >>conftest.$ac_ext
32420cat >>conftest.$ac_ext <<_ACEOF
32421/* end confdefs.h.  */
32422$ac_includes_default
32423#include <signal.h>
32424_ACEOF
32425rm -f conftest.$ac_objext
32426if { (ac_try="$ac_compile"
32427case "(($ac_try" in
32428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429  *) ac_try_echo=$ac_try;;
32430esac
32431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432  (eval "$ac_compile") 2>conftest.er1
32433  ac_status=$?
32434  grep -v '^ *+' conftest.er1 >conftest.err
32435  rm -f conftest.er1
32436  cat conftest.err >&5
32437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438  (exit $ac_status); } && {
32439	 test -z "$ac_c_werror_flag" ||
32440	 test ! -s conftest.err
32441       } && test -s conftest.$ac_objext; then
32442  ac_header_compiler=yes
32443else
32444  echo "$as_me: failed program was:" >&5
32445sed 's/^/| /' conftest.$ac_ext >&5
32446
32447	ac_header_compiler=no
32448fi
32449
32450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32451{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32452echo "${ECHO_T}$ac_header_compiler" >&6; }
32453
32454# Is the header present?
32455{ echo "$as_me:$LINENO: checking signal.h presence" >&5
32456echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
32457cat >conftest.$ac_ext <<_ACEOF
32458/* confdefs.h.  */
32459_ACEOF
32460cat confdefs.h >>conftest.$ac_ext
32461cat >>conftest.$ac_ext <<_ACEOF
32462/* end confdefs.h.  */
32463#include <signal.h>
32464_ACEOF
32465if { (ac_try="$ac_cpp conftest.$ac_ext"
32466case "(($ac_try" in
32467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468  *) ac_try_echo=$ac_try;;
32469esac
32470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32472  ac_status=$?
32473  grep -v '^ *+' conftest.er1 >conftest.err
32474  rm -f conftest.er1
32475  cat conftest.err >&5
32476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477  (exit $ac_status); } >/dev/null && {
32478	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32479	 test ! -s conftest.err
32480       }; then
32481  ac_header_preproc=yes
32482else
32483  echo "$as_me: failed program was:" >&5
32484sed 's/^/| /' conftest.$ac_ext >&5
32485
32486  ac_header_preproc=no
32487fi
32488
32489rm -f conftest.err conftest.$ac_ext
32490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32491echo "${ECHO_T}$ac_header_preproc" >&6; }
32492
32493# So?  What about this header?
32494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32495  yes:no: )
32496    { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
32497echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32498    { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
32499echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
32500    ac_header_preproc=yes
32501    ;;
32502  no:yes:* )
32503    { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
32504echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
32505    { echo "$as_me:$LINENO: WARNING: signal.h:     check for missing prerequisite headers?" >&5
32506echo "$as_me: WARNING: signal.h:     check for missing prerequisite headers?" >&2;}
32507    { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
32508echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
32509    { echo "$as_me:$LINENO: WARNING: signal.h:     section \"Present But Cannot Be Compiled\"" >&5
32510echo "$as_me: WARNING: signal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32511    { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
32512echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
32513    { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
32514echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
32515
32516    ;;
32517esac
32518{ echo "$as_me:$LINENO: checking for signal.h" >&5
32519echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32520if test "${ac_cv_header_signal_h+set}" = set; then
32521  echo $ECHO_N "(cached) $ECHO_C" >&6
32522else
32523  ac_cv_header_signal_h=$ac_header_preproc
32524fi
32525{ echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32526echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32527
32528fi
32529if test $ac_cv_header_signal_h = yes; then
32530  :
32531else
32532   can_compile_term=0
32533fi
32534
32535
32536    if test $can_compile_term = 1; then
32537      with_term=yes
32538    fi
32539  fi
32540
32541  if test "$with_nogui" != yes; then
32542    with_nogui=yes
32543  fi
32544fi    # end of if $with_all_libs = yes
32545
32546{ echo "$as_me:$LINENO: checking for idle hack" >&5
32547echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
32548# Check whether --enable-idle-hack was given.
32549if test "${enable_idle_hack+set}" = set; then
32550  enableval=$enable_idle_hack; if test "$enableval" = yes; then
32551    { echo "$as_me:$LINENO: result: yes" >&5
32552echo "${ECHO_T}yes" >&6; }
32553    cat >>confdefs.h <<\_ACEOF
32554#define BX_USE_IDLE_HACK 1
32555_ACEOF
32556
32557   else
32558    { echo "$as_me:$LINENO: result: no" >&5
32559echo "${ECHO_T}no" >&6; }
32560    cat >>confdefs.h <<\_ACEOF
32561#define BX_USE_IDLE_HACK 0
32562_ACEOF
32563
32564   fi
32565else
32566
32567    { echo "$as_me:$LINENO: result: no" >&5
32568echo "${ECHO_T}no" >&6; }
32569    cat >>confdefs.h <<\_ACEOF
32570#define BX_USE_IDLE_HACK 0
32571_ACEOF
32572
32573
32574
32575fi
32576
32577
32578
32579if test "${ac_cv_header_dlfcn_h+set}" = set; then
32580  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32581echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32582if test "${ac_cv_header_dlfcn_h+set}" = set; then
32583  echo $ECHO_N "(cached) $ECHO_C" >&6
32584fi
32585{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32586echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32587else
32588  # Is the header compilable?
32589{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
32590echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
32591cat >conftest.$ac_ext <<_ACEOF
32592/* confdefs.h.  */
32593_ACEOF
32594cat confdefs.h >>conftest.$ac_ext
32595cat >>conftest.$ac_ext <<_ACEOF
32596/* end confdefs.h.  */
32597$ac_includes_default
32598#include <dlfcn.h>
32599_ACEOF
32600rm -f conftest.$ac_objext
32601if { (ac_try="$ac_compile"
32602case "(($ac_try" in
32603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604  *) ac_try_echo=$ac_try;;
32605esac
32606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607  (eval "$ac_compile") 2>conftest.er1
32608  ac_status=$?
32609  grep -v '^ *+' conftest.er1 >conftest.err
32610  rm -f conftest.er1
32611  cat conftest.err >&5
32612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613  (exit $ac_status); } && {
32614	 test -z "$ac_c_werror_flag" ||
32615	 test ! -s conftest.err
32616       } && test -s conftest.$ac_objext; then
32617  ac_header_compiler=yes
32618else
32619  echo "$as_me: failed program was:" >&5
32620sed 's/^/| /' conftest.$ac_ext >&5
32621
32622	ac_header_compiler=no
32623fi
32624
32625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32627echo "${ECHO_T}$ac_header_compiler" >&6; }
32628
32629# Is the header present?
32630{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
32631echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
32632cat >conftest.$ac_ext <<_ACEOF
32633/* confdefs.h.  */
32634_ACEOF
32635cat confdefs.h >>conftest.$ac_ext
32636cat >>conftest.$ac_ext <<_ACEOF
32637/* end confdefs.h.  */
32638#include <dlfcn.h>
32639_ACEOF
32640if { (ac_try="$ac_cpp conftest.$ac_ext"
32641case "(($ac_try" in
32642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643  *) ac_try_echo=$ac_try;;
32644esac
32645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32647  ac_status=$?
32648  grep -v '^ *+' conftest.er1 >conftest.err
32649  rm -f conftest.er1
32650  cat conftest.err >&5
32651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652  (exit $ac_status); } >/dev/null && {
32653	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32654	 test ! -s conftest.err
32655       }; then
32656  ac_header_preproc=yes
32657else
32658  echo "$as_me: failed program was:" >&5
32659sed 's/^/| /' conftest.$ac_ext >&5
32660
32661  ac_header_preproc=no
32662fi
32663
32664rm -f conftest.err conftest.$ac_ext
32665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32666echo "${ECHO_T}$ac_header_preproc" >&6; }
32667
32668# So?  What about this header?
32669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32670  yes:no: )
32671    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
32672echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32673    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
32674echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
32675    ac_header_preproc=yes
32676    ;;
32677  no:yes:* )
32678    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
32679echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
32680    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
32681echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
32682    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
32683echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
32684    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
32685echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32686    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
32687echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
32688    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
32689echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
32690
32691    ;;
32692esac
32693{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32694echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32695if test "${ac_cv_header_dlfcn_h+set}" = set; then
32696  echo $ECHO_N "(cached) $ECHO_C" >&6
32697else
32698  ac_cv_header_dlfcn_h=$ac_header_preproc
32699fi
32700{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32701echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32702
32703fi
32704if test $ac_cv_header_dlfcn_h = yes; then
32705  cat >>confdefs.h <<\_ACEOF
32706#define BX_HAVE_DLFCN_H 1
32707_ACEOF
32708
32709fi
32710
32711
32712if test "${ac_cv_header_assert_h+set}" = set; then
32713  { echo "$as_me:$LINENO: checking for assert.h" >&5
32714echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32715if test "${ac_cv_header_assert_h+set}" = set; then
32716  echo $ECHO_N "(cached) $ECHO_C" >&6
32717fi
32718{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32719echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32720else
32721  # Is the header compilable?
32722{ echo "$as_me:$LINENO: checking assert.h usability" >&5
32723echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
32724cat >conftest.$ac_ext <<_ACEOF
32725/* confdefs.h.  */
32726_ACEOF
32727cat confdefs.h >>conftest.$ac_ext
32728cat >>conftest.$ac_ext <<_ACEOF
32729/* end confdefs.h.  */
32730$ac_includes_default
32731#include <assert.h>
32732_ACEOF
32733rm -f conftest.$ac_objext
32734if { (ac_try="$ac_compile"
32735case "(($ac_try" in
32736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737  *) ac_try_echo=$ac_try;;
32738esac
32739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740  (eval "$ac_compile") 2>conftest.er1
32741  ac_status=$?
32742  grep -v '^ *+' conftest.er1 >conftest.err
32743  rm -f conftest.er1
32744  cat conftest.err >&5
32745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746  (exit $ac_status); } && {
32747	 test -z "$ac_c_werror_flag" ||
32748	 test ! -s conftest.err
32749       } && test -s conftest.$ac_objext; then
32750  ac_header_compiler=yes
32751else
32752  echo "$as_me: failed program was:" >&5
32753sed 's/^/| /' conftest.$ac_ext >&5
32754
32755	ac_header_compiler=no
32756fi
32757
32758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32760echo "${ECHO_T}$ac_header_compiler" >&6; }
32761
32762# Is the header present?
32763{ echo "$as_me:$LINENO: checking assert.h presence" >&5
32764echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
32765cat >conftest.$ac_ext <<_ACEOF
32766/* confdefs.h.  */
32767_ACEOF
32768cat confdefs.h >>conftest.$ac_ext
32769cat >>conftest.$ac_ext <<_ACEOF
32770/* end confdefs.h.  */
32771#include <assert.h>
32772_ACEOF
32773if { (ac_try="$ac_cpp conftest.$ac_ext"
32774case "(($ac_try" in
32775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776  *) ac_try_echo=$ac_try;;
32777esac
32778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32780  ac_status=$?
32781  grep -v '^ *+' conftest.er1 >conftest.err
32782  rm -f conftest.er1
32783  cat conftest.err >&5
32784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785  (exit $ac_status); } >/dev/null && {
32786	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32787	 test ! -s conftest.err
32788       }; then
32789  ac_header_preproc=yes
32790else
32791  echo "$as_me: failed program was:" >&5
32792sed 's/^/| /' conftest.$ac_ext >&5
32793
32794  ac_header_preproc=no
32795fi
32796
32797rm -f conftest.err conftest.$ac_ext
32798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32799echo "${ECHO_T}$ac_header_preproc" >&6; }
32800
32801# So?  What about this header?
32802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32803  yes:no: )
32804    { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
32805echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32806    { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
32807echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
32808    ac_header_preproc=yes
32809    ;;
32810  no:yes:* )
32811    { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
32812echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
32813    { echo "$as_me:$LINENO: WARNING: assert.h:     check for missing prerequisite headers?" >&5
32814echo "$as_me: WARNING: assert.h:     check for missing prerequisite headers?" >&2;}
32815    { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
32816echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
32817    { echo "$as_me:$LINENO: WARNING: assert.h:     section \"Present But Cannot Be Compiled\"" >&5
32818echo "$as_me: WARNING: assert.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32819    { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
32820echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
32821    { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
32822echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
32823
32824    ;;
32825esac
32826{ echo "$as_me:$LINENO: checking for assert.h" >&5
32827echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32828if test "${ac_cv_header_assert_h+set}" = set; then
32829  echo $ECHO_N "(cached) $ECHO_C" >&6
32830else
32831  ac_cv_header_assert_h=$ac_header_preproc
32832fi
32833{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32834echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32835
32836fi
32837if test $ac_cv_header_assert_h = yes; then
32838  cat >>confdefs.h <<\_ACEOF
32839#define HAVE_ASSERT_H 1
32840_ACEOF
32841
32842fi
32843
32844
32845
32846{ echo "$as_me:$LINENO: checking for plugins support" >&5
32847echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
32848# Check whether --enable-plugins was given.
32849if test "${enable_plugins+set}" = set; then
32850  enableval=$enable_plugins; if test "$enableval" = yes; then
32851     bx_plugins=1
32852   else
32853     bx_plugins=0
32854   fi
32855else
32856
32857    bx_plugins=0
32858
32859
32860fi
32861
32862
32863if test "$bx_plugins" = 1; then
32864  { echo "$as_me:$LINENO: result: yes" >&5
32865echo "${ECHO_T}yes" >&6; }
32866  cat >>confdefs.h <<\_ACEOF
32867#define BX_PLUGINS 1
32868_ACEOF
32869
32870  GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
32871  GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
32872  DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
32873  # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
32874  # by special link rules for the plugins that they support.
32875  LIBS="$LIBS $LIBADD_DL"
32876  PLUGIN_VAR='ltdl.o'
32877  PLUGIN_TARGET=bochs_plugins
32878  INSTALL_PLUGINS_VAR=install_libtool_plugins
32879  NONPLUGIN_GUI_LINK_OPTS=''
32880else
32881  { echo "$as_me:$LINENO: result: no" >&5
32882echo "${ECHO_T}no" >&6; }
32883  bx_plugins=0
32884  cat >>confdefs.h <<\_ACEOF
32885#define BX_PLUGINS 0
32886_ACEOF
32887
32888  GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
32889  GUI_PLUGIN_OBJS=''
32890  NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
32891fi
32892
32893
32894
32895# copy gui variables into iodev variables.  Later, we will add to the gui
32896# objs list, according to which display libraries are enabled.
32897IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
32898IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
32899
32900# on MacOSX if they enabled plugins, make sure that dlopen() was found.
32901# It is provided by a library called dlcompat.
32902if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
32903  have_dlopen=0
32904  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32905echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32906if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32907  echo $ECHO_N "(cached) $ECHO_C" >&6
32908else
32909  ac_check_lib_save_LIBS=$LIBS
32910LIBS="-ldl  $LIBS"
32911cat >conftest.$ac_ext <<_ACEOF
32912/* confdefs.h.  */
32913_ACEOF
32914cat confdefs.h >>conftest.$ac_ext
32915cat >>conftest.$ac_ext <<_ACEOF
32916/* end confdefs.h.  */
32917
32918/* Override any GCC internal prototype to avoid an error.
32919   Use char because int might match the return type of a GCC
32920   builtin and then its argument prototype would still apply.  */
32921#ifdef __cplusplus
32922extern "C"
32923#endif
32924char dlopen ();
32925int
32926main ()
32927{
32928return dlopen ();
32929  ;
32930  return 0;
32931}
32932_ACEOF
32933rm -f conftest.$ac_objext conftest$ac_exeext
32934if { (ac_try="$ac_link"
32935case "(($ac_try" in
32936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937  *) ac_try_echo=$ac_try;;
32938esac
32939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940  (eval "$ac_link") 2>conftest.er1
32941  ac_status=$?
32942  grep -v '^ *+' conftest.er1 >conftest.err
32943  rm -f conftest.er1
32944  cat conftest.err >&5
32945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946  (exit $ac_status); } && {
32947	 test -z "$ac_c_werror_flag" ||
32948	 test ! -s conftest.err
32949       } && test -s conftest$ac_exeext &&
32950       $as_test_x conftest$ac_exeext; then
32951  ac_cv_lib_dl_dlopen=yes
32952else
32953  echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
32956	ac_cv_lib_dl_dlopen=no
32957fi
32958
32959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32960      conftest$ac_exeext conftest.$ac_ext
32961LIBS=$ac_check_lib_save_LIBS
32962fi
32963{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32964echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32965if test $ac_cv_lib_dl_dlopen = yes; then
32966  have_dlopen=1
32967fi
32968
32969  { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
32970echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
32971  if test "$have_dlopen" = 0; then
32972    { echo "$as_me:$LINENO: result: no" >&5
32973echo "${ECHO_T}no" >&6; }
32974    { { echo "$as_me:$LINENO: error: To use plugins on MacOSX you must use a library called dlcompat.  The configure script was not able to find dlcompat.  If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx.  If you cannot resolve this, you should turn off plugins." >&5
32975echo "$as_me: error: To use plugins on MacOSX you must use a library called dlcompat.  The configure script was not able to find dlcompat.  If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx.  If you cannot resolve this, you should turn off plugins." >&2;}
32976   { (exit 1); exit 1; }; }
32977  else
32978    { echo "$as_me:$LINENO: result: yes" >&5
32979echo "${ECHO_T}yes" >&6; }
32980  fi
32981fi
32982
32983{ echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
32984echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
32985cat >conftest.$ac_ext <<_ACEOF
32986/* confdefs.h.  */
32987_ACEOF
32988cat confdefs.h >>conftest.$ac_ext
32989cat >>conftest.$ac_ext <<_ACEOF
32990/* end confdefs.h.  */
32991
32992int
32993main ()
32994{
32995 { label1: }
32996  ;
32997  return 0;
32998}
32999_ACEOF
33000rm -f conftest.$ac_objext
33001if { (ac_try="$ac_compile"
33002case "(($ac_try" in
33003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004  *) ac_try_echo=$ac_try;;
33005esac
33006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007  (eval "$ac_compile") 2>conftest.er1
33008  ac_status=$?
33009  grep -v '^ *+' conftest.er1 >conftest.err
33010  rm -f conftest.er1
33011  cat conftest.err >&5
33012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013  (exit $ac_status); } && {
33014	 test -z "$ac_c_werror_flag" ||
33015	 test ! -s conftest.err
33016       } && test -s conftest.$ac_objext; then
33017  { echo "$as_me:$LINENO: result: yes" >&5
33018echo "${ECHO_T}yes" >&6; }
33019else
33020  echo "$as_me: failed program was:" >&5
33021sed 's/^/| /' conftest.$ac_ext >&5
33022
33023
33024      { echo "$as_me:$LINENO: result: no" >&5
33025echo "${ECHO_T}no" >&6; }
33026      cat >>confdefs.h <<\_ACEOF
33027#define BX_NO_BLANK_LABELS 1
33028_ACEOF
33029
33030
33031fi
33032
33033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33034
33035{ echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
33036echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
33037cat >conftest.$ac_ext <<_ACEOF
33038/* confdefs.h.  */
33039_ACEOF
33040cat confdefs.h >>conftest.$ac_ext
33041cat >>conftest.$ac_ext <<_ACEOF
33042/* end confdefs.h.  */
33043
33044int
33045main ()
33046{
33047 { 42LL; }
33048  ;
33049  return 0;
33050}
33051_ACEOF
33052rm -f conftest.$ac_objext
33053if { (ac_try="$ac_compile"
33054case "(($ac_try" in
33055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056  *) ac_try_echo=$ac_try;;
33057esac
33058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059  (eval "$ac_compile") 2>conftest.er1
33060  ac_status=$?
33061  grep -v '^ *+' conftest.er1 >conftest.err
33062  rm -f conftest.er1
33063  cat conftest.err >&5
33064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065  (exit $ac_status); } && {
33066	 test -z "$ac_c_werror_flag" ||
33067	 test ! -s conftest.err
33068       } && test -s conftest.$ac_objext; then
33069  { echo "$as_me:$LINENO: result: yes" >&5
33070echo "${ECHO_T}yes" >&6; }
33071else
33072  echo "$as_me: failed program was:" >&5
33073sed 's/^/| /' conftest.$ac_ext >&5
33074
33075
33076      { echo "$as_me:$LINENO: result: no" >&5
33077echo "${ECHO_T}no" >&6; }
33078      cat >>confdefs.h <<\_ACEOF
33079#define BX_64BIT_CONSTANTS_USE_LL 0
33080_ACEOF
33081
33082
33083fi
33084
33085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33086
33087use_x86_64=0
33088{ echo "$as_me:$LINENO: checking for x86-64 support" >&5
33089echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
33090# Check whether --enable-x86-64 was given.
33091if test "${enable_x86_64+set}" = set; then
33092  enableval=$enable_x86_64; if test "$enableval" = yes; then
33093    { echo "$as_me:$LINENO: result: yes" >&5
33094echo "${ECHO_T}yes" >&6; }
33095    OBJS64='$(OBJS64)'
33096    cat >>confdefs.h <<\_ACEOF
33097#define BX_SUPPORT_X86_64 1
33098_ACEOF
33099
33100    use_x86_64=1
33101   else
33102    { echo "$as_me:$LINENO: result: no" >&5
33103echo "${ECHO_T}no" >&6; }
33104    OBJS64=''
33105    cat >>confdefs.h <<\_ACEOF
33106#define BX_SUPPORT_X86_64 0
33107_ACEOF
33108
33109   fi
33110
33111else
33112
33113    { echo "$as_me:$LINENO: result: no" >&5
33114echo "${ECHO_T}no" >&6; }
33115    OBJS64=''
33116    cat >>confdefs.h <<\_ACEOF
33117#define BX_SUPPORT_X86_64 0
33118_ACEOF
33119
33120
33121
33122fi
33123
33124
33125
33126use_smp=0
33127{ echo "$as_me:$LINENO: checking for SMP support" >&5
33128echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
33129# Check whether --enable-smp was given.
33130if test "${enable_smp+set}" = set; then
33131  enableval=$enable_smp; if test "$enableval" = yes; then
33132    { echo "$as_me:$LINENO: result: yes" >&5
33133echo "${ECHO_T}yes" >&6; }
33134    cat >>confdefs.h <<\_ACEOF
33135#define BX_SUPPORT_SMP 1
33136_ACEOF
33137
33138    cat >>confdefs.h <<\_ACEOF
33139#define BX_USE_CPU_SMF 0
33140_ACEOF
33141
33142    use_smp=1
33143   else
33144    { echo "$as_me:$LINENO: result: no" >&5
33145echo "${ECHO_T}no" >&6; }
33146    cat >>confdefs.h <<\_ACEOF
33147#define BX_SUPPORT_SMP 0
33148_ACEOF
33149
33150   fi
33151
33152else
33153
33154    { echo "$as_me:$LINENO: result: no" >&5
33155echo "${ECHO_T}no" >&6; }
33156    cat >>confdefs.h <<\_ACEOF
33157#define BX_SUPPORT_SMP 0
33158_ACEOF
33159
33160
33161
33162fi
33163
33164
33165{ echo "$as_me:$LINENO: checking for cpu level" >&5
33166echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
33167# Check whether --enable-cpu-level was given.
33168if test "${enable_cpu_level+set}" = set; then
33169  enableval=$enable_cpu_level; case "$enableval" in
33170     3)
33171       { echo "$as_me:$LINENO: result: 3" >&5
33172echo "${ECHO_T}3" >&6; }
33173       cat >>confdefs.h <<\_ACEOF
33174#define BX_CPU_LEVEL 3
33175_ACEOF
33176
33177       cat >>confdefs.h <<\_ACEOF
33178#define BX_CPU_LEVEL_HACKED 3
33179_ACEOF
33180
33181       ;;
33182     4)
33183       { echo "$as_me:$LINENO: result: 4" >&5
33184echo "${ECHO_T}4" >&6; }
33185       cat >>confdefs.h <<\_ACEOF
33186#define BX_CPU_LEVEL 4
33187_ACEOF
33188
33189       cat >>confdefs.h <<\_ACEOF
33190#define BX_CPU_LEVEL_HACKED 4
33191_ACEOF
33192
33193       ;;
33194     5)
33195       { echo "$as_me:$LINENO: result: 5" >&5
33196echo "${ECHO_T}5" >&6; }
33197       cat >>confdefs.h <<\_ACEOF
33198#define BX_CPU_LEVEL 5
33199_ACEOF
33200
33201       cat >>confdefs.h <<\_ACEOF
33202#define BX_CPU_LEVEL_HACKED 5
33203_ACEOF
33204
33205       ;;
33206     6)
33207       { echo "$as_me:$LINENO: result: 6" >&5
33208echo "${ECHO_T}6" >&6; }
33209       cat >>confdefs.h <<\_ACEOF
33210#define BX_CPU_LEVEL 6
33211_ACEOF
33212
33213       cat >>confdefs.h <<\_ACEOF
33214#define BX_CPU_LEVEL_HACKED 6
33215_ACEOF
33216
33217       ;;
33218     *)
33219       echo " "
33220       echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33221       exit 1
33222       ;;
33223   esac
33224   bx_cpu_level=$enableval
33225   if test "$use_smp" = 1 -a "$enableval" -lt 6; then
33226     echo "ERROR: with >1 processor, use --enable-cpu-level=6"
33227     exit 1
33228   fi
33229
33230else
33231
33232    # for multiprocessors or x86-64, cpu level must be 6
33233    if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
33234      { echo "$as_me:$LINENO: result: 6" >&5
33235echo "${ECHO_T}6" >&6; }
33236      cat >>confdefs.h <<\_ACEOF
33237#define BX_CPU_LEVEL 6
33238_ACEOF
33239
33240      cat >>confdefs.h <<\_ACEOF
33241#define BX_CPU_LEVEL_HACKED 6
33242_ACEOF
33243
33244      bx_cpu_level=6
33245    else
33246      { echo "$as_me:$LINENO: result: 5" >&5
33247echo "${ECHO_T}5" >&6; }
33248      cat >>confdefs.h <<\_ACEOF
33249#define BX_CPU_LEVEL 5
33250_ACEOF
33251
33252      cat >>confdefs.h <<\_ACEOF
33253#define BX_CPU_LEVEL_HACKED 5
33254_ACEOF
33255
33256      bx_cpu_level=5
33257    fi
33258
33259
33260fi
33261
33262
33263
33264{ echo "$as_me:$LINENO: checking for APIC support" >&5
33265echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
33266# Check whether --enable-apic was given.
33267if test "${enable_apic+set}" = set; then
33268  enableval=$enable_apic; if test "$enableval" = yes; then
33269    { echo "$as_me:$LINENO: result: yes" >&5
33270echo "${ECHO_T}yes" >&6; }
33271    cat >>confdefs.h <<\_ACEOF
33272#define BX_SUPPORT_APIC 1
33273_ACEOF
33274
33275    IOAPIC_OBJS='ioapic.o'
33276   else
33277    { echo "$as_me:$LINENO: result: no" >&5
33278echo "${ECHO_T}no" >&6; }
33279    if test "$use_smp" = 1; then
33280      echo "ERROR: With SMP configuration you must use --enable-apic"
33281      exit 1
33282    fi
33283    cat >>confdefs.h <<\_ACEOF
33284#define BX_SUPPORT_APIC 0
33285_ACEOF
33286
33287    IOAPIC_OBJS=''
33288   fi
33289
33290else
33291
33292    if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
33293      # enable APIC by default, if SMP configuration or if cpulevel>5
33294      { echo "$as_me:$LINENO: result: yes" >&5
33295echo "${ECHO_T}yes" >&6; }
33296      cat >>confdefs.h <<\_ACEOF
33297#define BX_SUPPORT_APIC 1
33298_ACEOF
33299
33300      IOAPIC_OBJS='ioapic.o'
33301    else
33302      { echo "$as_me:$LINENO: result: no" >&5
33303echo "${ECHO_T}no" >&6; }
33304      cat >>confdefs.h <<\_ACEOF
33305#define BX_SUPPORT_APIC 0
33306_ACEOF
33307
33308      IOAPIC_OBJS=''
33309     fi
33310
33311
33312fi
33313
33314
33315
33316if test "${ac_cv_header_zlib_h+set}" = set; then
33317  { echo "$as_me:$LINENO: checking for zlib.h" >&5
33318echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33319if test "${ac_cv_header_zlib_h+set}" = set; then
33320  echo $ECHO_N "(cached) $ECHO_C" >&6
33321fi
33322{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33323echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33324else
33325  # Is the header compilable?
33326{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
33327echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33328cat >conftest.$ac_ext <<_ACEOF
33329/* confdefs.h.  */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h.  */
33334$ac_includes_default
33335#include <zlib.h>
33336_ACEOF
33337rm -f conftest.$ac_objext
33338if { (ac_try="$ac_compile"
33339case "(($ac_try" in
33340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33341  *) ac_try_echo=$ac_try;;
33342esac
33343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33344  (eval "$ac_compile") 2>conftest.er1
33345  ac_status=$?
33346  grep -v '^ *+' conftest.er1 >conftest.err
33347  rm -f conftest.er1
33348  cat conftest.err >&5
33349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350  (exit $ac_status); } && {
33351	 test -z "$ac_c_werror_flag" ||
33352	 test ! -s conftest.err
33353       } && test -s conftest.$ac_objext; then
33354  ac_header_compiler=yes
33355else
33356  echo "$as_me: failed program was:" >&5
33357sed 's/^/| /' conftest.$ac_ext >&5
33358
33359	ac_header_compiler=no
33360fi
33361
33362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33364echo "${ECHO_T}$ac_header_compiler" >&6; }
33365
33366# Is the header present?
33367{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
33368echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33369cat >conftest.$ac_ext <<_ACEOF
33370/* confdefs.h.  */
33371_ACEOF
33372cat confdefs.h >>conftest.$ac_ext
33373cat >>conftest.$ac_ext <<_ACEOF
33374/* end confdefs.h.  */
33375#include <zlib.h>
33376_ACEOF
33377if { (ac_try="$ac_cpp conftest.$ac_ext"
33378case "(($ac_try" in
33379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380  *) ac_try_echo=$ac_try;;
33381esac
33382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33384  ac_status=$?
33385  grep -v '^ *+' conftest.er1 >conftest.err
33386  rm -f conftest.er1
33387  cat conftest.err >&5
33388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389  (exit $ac_status); } >/dev/null && {
33390	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33391	 test ! -s conftest.err
33392       }; then
33393  ac_header_preproc=yes
33394else
33395  echo "$as_me: failed program was:" >&5
33396sed 's/^/| /' conftest.$ac_ext >&5
33397
33398  ac_header_preproc=no
33399fi
33400
33401rm -f conftest.err conftest.$ac_ext
33402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33403echo "${ECHO_T}$ac_header_preproc" >&6; }
33404
33405# So?  What about this header?
33406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33407  yes:no: )
33408    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33409echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33410    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33411echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33412    ac_header_preproc=yes
33413    ;;
33414  no:yes:* )
33415    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33416echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33417    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
33418echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
33419    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33420echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33421    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
33422echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33423    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33424echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33425    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33426echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33427
33428    ;;
33429esac
33430{ echo "$as_me:$LINENO: checking for zlib.h" >&5
33431echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33432if test "${ac_cv_header_zlib_h+set}" = set; then
33433  echo $ECHO_N "(cached) $ECHO_C" >&6
33434else
33435  ac_cv_header_zlib_h=$ac_header_preproc
33436fi
33437{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33438echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33439
33440fi
33441if test $ac_cv_header_zlib_h = yes; then
33442  { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
33443echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
33444if test "${ac_cv_lib_z_gzopen+set}" = set; then
33445  echo $ECHO_N "(cached) $ECHO_C" >&6
33446else
33447  ac_check_lib_save_LIBS=$LIBS
33448LIBS="-lz  $LIBS"
33449cat >conftest.$ac_ext <<_ACEOF
33450/* confdefs.h.  */
33451_ACEOF
33452cat confdefs.h >>conftest.$ac_ext
33453cat >>conftest.$ac_ext <<_ACEOF
33454/* end confdefs.h.  */
33455
33456/* Override any GCC internal prototype to avoid an error.
33457   Use char because int might match the return type of a GCC
33458   builtin and then its argument prototype would still apply.  */
33459#ifdef __cplusplus
33460extern "C"
33461#endif
33462char gzopen ();
33463int
33464main ()
33465{
33466return gzopen ();
33467  ;
33468  return 0;
33469}
33470_ACEOF
33471rm -f conftest.$ac_objext conftest$ac_exeext
33472if { (ac_try="$ac_link"
33473case "(($ac_try" in
33474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33475  *) ac_try_echo=$ac_try;;
33476esac
33477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33478  (eval "$ac_link") 2>conftest.er1
33479  ac_status=$?
33480  grep -v '^ *+' conftest.er1 >conftest.err
33481  rm -f conftest.er1
33482  cat conftest.err >&5
33483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484  (exit $ac_status); } && {
33485	 test -z "$ac_c_werror_flag" ||
33486	 test ! -s conftest.err
33487       } && test -s conftest$ac_exeext &&
33488       $as_test_x conftest$ac_exeext; then
33489  ac_cv_lib_z_gzopen=yes
33490else
33491  echo "$as_me: failed program was:" >&5
33492sed 's/^/| /' conftest.$ac_ext >&5
33493
33494	ac_cv_lib_z_gzopen=no
33495fi
33496
33497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33498      conftest$ac_exeext conftest.$ac_ext
33499LIBS=$ac_check_lib_save_LIBS
33500fi
33501{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
33502echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
33503if test $ac_cv_lib_z_gzopen = yes; then
33504  cat >>confdefs.h <<\_ACEOF
33505#define BX_HAVE_ZLIB 1
33506_ACEOF
33507
33508fi
33509
33510fi
33511
33512
33513
33514{ echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
33515echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
33516# Check whether --enable-compressed-hd was given.
33517if test "${enable_compressed_hd+set}" = set; then
33518  enableval=$enable_compressed_hd; if test "$enableval" = yes; then
33519    { echo "$as_me:$LINENO: result: yes" >&5
33520echo "${ECHO_T}yes" >&6; }
33521    cat >>confdefs.h <<\_ACEOF
33522#define BX_COMPRESSED_HD_SUPPORT 1
33523_ACEOF
33524
33525    LIBS="$LIBS -lz"
33526   else
33527    { echo "$as_me:$LINENO: result: no" >&5
33528echo "${ECHO_T}no" >&6; }
33529    cat >>confdefs.h <<\_ACEOF
33530#define BX_COMPRESSED_HD_SUPPORT 0
33531_ACEOF
33532
33533   fi
33534else
33535
33536    { echo "$as_me:$LINENO: result: no" >&5
33537echo "${ECHO_T}no" >&6; }
33538    cat >>confdefs.h <<\_ACEOF
33539#define BX_COMPRESSED_HD_SUPPORT 0
33540_ACEOF
33541
33542
33543
33544fi
33545
33546
33547
33548{ echo "$as_me:$LINENO: checking for NE2000 support" >&5
33549echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
33550# Check whether --enable-ne2000 was given.
33551if test "${enable_ne2000+set}" = set; then
33552  enableval=$enable_ne2000; if test "$enableval" = yes; then
33553    { echo "$as_me:$LINENO: result: yes" >&5
33554echo "${ECHO_T}yes" >&6; }
33555    cat >>confdefs.h <<\_ACEOF
33556#define BX_SUPPORT_NE2K 1
33557_ACEOF
33558
33559    NE2K_OBJS='ne2k.o'
33560    networking=yes
33561   else
33562    { echo "$as_me:$LINENO: result: no" >&5
33563echo "${ECHO_T}no" >&6; }
33564    cat >>confdefs.h <<\_ACEOF
33565#define BX_SUPPORT_NE2K 0
33566_ACEOF
33567
33568    NE2K_OBJS=''
33569    networking=no
33570   fi
33571else
33572
33573    { echo "$as_me:$LINENO: result: no" >&5
33574echo "${ECHO_T}no" >&6; }
33575    cat >>confdefs.h <<\_ACEOF
33576#define BX_SUPPORT_NE2K 0
33577_ACEOF
33578
33579    NE2K_OBJS=''
33580    networking=no
33581
33582
33583fi
33584
33585
33586
33587{ echo "$as_me:$LINENO: checking for ACPI support" >&5
33588echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
33589# Check whether --enable-acpi was given.
33590if test "${enable_acpi+set}" = set; then
33591  enableval=$enable_acpi; if test "$enableval" = yes; then
33592    { echo "$as_me:$LINENO: result: yes" >&5
33593echo "${ECHO_T}yes" >&6; }
33594    cat >>confdefs.h <<\_ACEOF
33595#define BX_SUPPORT_ACPI 1
33596_ACEOF
33597
33598   else
33599    { echo "$as_me:$LINENO: result: no" >&5
33600echo "${ECHO_T}no" >&6; }
33601    cat >>confdefs.h <<\_ACEOF
33602#define BX_SUPPORT_ACPI 0
33603_ACEOF
33604
33605   fi
33606else
33607
33608    { echo "$as_me:$LINENO: result: no" >&5
33609echo "${ECHO_T}no" >&6; }
33610    cat >>confdefs.h <<\_ACEOF
33611#define BX_SUPPORT_ACPI 0
33612_ACEOF
33613
33614
33615
33616fi
33617
33618
33619
33620{ echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
33621echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
33622# Check whether --enable-pci was given.
33623if test "${enable_pci+set}" = set; then
33624  enableval=$enable_pci; if test "$enableval" = yes; then
33625    { echo "$as_me:$LINENO: result: yes" >&5
33626echo "${ECHO_T}yes" >&6; }
33627    cat >>confdefs.h <<\_ACEOF
33628#define BX_SUPPORT_PCI 1
33629_ACEOF
33630
33631    pci=1
33632    PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
33633   else
33634    { echo "$as_me:$LINENO: result: no" >&5
33635echo "${ECHO_T}no" >&6; }
33636    cat >>confdefs.h <<\_ACEOF
33637#define BX_SUPPORT_PCI 0
33638_ACEOF
33639
33640    pci=0
33641    PCI_OBJ=''
33642   fi
33643else
33644
33645    { echo "$as_me:$LINENO: result: no" >&5
33646echo "${ECHO_T}no" >&6; }
33647    cat >>confdefs.h <<\_ACEOF
33648#define BX_SUPPORT_PCI 0
33649_ACEOF
33650
33651    pci=0
33652    PCI_OBJ=''
33653
33654
33655fi
33656
33657
33658
33659#
33660# PCI host device support
33661#
33662{ echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
33663echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
33664# Check whether --enable-pcidev was given.
33665if test "${enable_pcidev+set}" = set; then
33666  enableval=$enable_pcidev;
33667    if test "$enableval" = "yes"; then
33668      { echo "$as_me:$LINENO: result: yes" >&5
33669echo "${ECHO_T}yes" >&6; }
33670      if test "$pci" != "1"; then
33671        { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
33672echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
33673   { (exit 1); exit 1; }; }
33674      fi
33675      case "$target" in
33676        *-linux*)
33677          { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
33678echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
33679          linux_version=`uname -r`
33680	  case "$linux_version" in
33681		2.4*)
33682	  		PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33683			KERNEL_MODULE_SUFFIX="o"
33684          	;;
33685		2.6*)
33686	  		PCIDEV_MODULE_MAKE_ALL="all-kernel26"
33687			KERNEL_MODULE_SUFFIX="ko"
33688		;;
33689		*)
33690			{ { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
33691echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
33692   { (exit 1); exit 1; }; }
33693		;;
33694	  esac
33695	  KERNELDIR="/lib/modules/$linux_version/build"
33696	  LSMOD="lsmod"
33697	  INSMOD="insmod"
33698	  RMMOD="rmmod"
33699	  DEPMOD="depmod"
33700
33701
33702
33703
33704
33705
33706
33707        ;;
33708        *)
33709          { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
33710echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
33711   { (exit 1); exit 1; }; }
33712        ;;
33713      esac
33714      cat >>confdefs.h <<\_ACEOF
33715#define BX_SUPPORT_PCIDEV 1
33716_ACEOF
33717
33718      PCI_OBJ="$PCI_OBJ pcidev.o"
33719    else
33720      { echo "$as_me:$LINENO: result: no" >&5
33721echo "${ECHO_T}no" >&6; }
33722      cat >>confdefs.h <<\_ACEOF
33723#define BX_SUPPORT_PCIDEV 0
33724_ACEOF
33725
33726    fi
33727
33728else
33729
33730    { echo "$as_me:$LINENO: result: no" >&5
33731echo "${ECHO_T}no" >&6; }
33732    cat >>confdefs.h <<\_ACEOF
33733#define BX_SUPPORT_PCIDEV 0
33734_ACEOF
33735
33736
33737
33738fi
33739
33740
33741use_usb=0
33742{ echo "$as_me:$LINENO: checking for limited USB UHCI support" >&5
33743echo $ECHO_N "checking for limited USB UHCI support... $ECHO_C" >&6; }
33744# Check whether --enable-usb was given.
33745if test "${enable_usb+set}" = set; then
33746  enableval=$enable_usb; if test "$enableval" = yes; then
33747    { echo "$as_me:$LINENO: result: yes" >&5
33748echo "${ECHO_T}yes" >&6; }
33749    cat >>confdefs.h <<\_ACEOF
33750#define BX_SUPPORT_USB_UHCI 1
33751_ACEOF
33752
33753    PCI_OBJ="$PCI_OBJ usb_uhci.o"
33754    use_usb=1
33755   else
33756    { echo "$as_me:$LINENO: result: no" >&5
33757echo "${ECHO_T}no" >&6; }
33758    cat >>confdefs.h <<\_ACEOF
33759#define BX_SUPPORT_USB_UHCI 0
33760_ACEOF
33761
33762   fi
33763else
33764
33765    { echo "$as_me:$LINENO: result: no" >&5
33766echo "${ECHO_T}no" >&6; }
33767    cat >>confdefs.h <<\_ACEOF
33768#define BX_SUPPORT_USB_UHCI 0
33769_ACEOF
33770
33771
33772
33773fi
33774
33775
33776{ echo "$as_me:$LINENO: checking for limited USB OHCI support" >&5
33777echo $ECHO_N "checking for limited USB OHCI support... $ECHO_C" >&6; }
33778# Check whether --enable-usb-ohci was given.
33779if test "${enable_usb_ohci+set}" = set; then
33780  enableval=$enable_usb_ohci; if test "$enableval" = yes; then
33781    { echo "$as_me:$LINENO: result: yes" >&5
33782echo "${ECHO_T}yes" >&6; }
33783    cat >>confdefs.h <<\_ACEOF
33784#define BX_SUPPORT_USB_OHCI 1
33785_ACEOF
33786
33787    PCI_OBJ="$PCI_OBJ usb_ohci.o"
33788    use_usb=1
33789   else
33790    { echo "$as_me:$LINENO: result: no" >&5
33791echo "${ECHO_T}no" >&6; }
33792    cat >>confdefs.h <<\_ACEOF
33793#define BX_SUPPORT_USB_OHCI 0
33794_ACEOF
33795
33796   fi
33797else
33798
33799    { echo "$as_me:$LINENO: result: no" >&5
33800echo "${ECHO_T}no" >&6; }
33801    cat >>confdefs.h <<\_ACEOF
33802#define BX_SUPPORT_USB_OHCI 0
33803_ACEOF
33804
33805
33806
33807fi
33808
33809
33810if test "$use_usb" = 1; then
33811  USBDEV_OBJS="usb_common.o usb_hid.o usb_msd.o"
33812  SCSI_OBJS="scsi_device.o"
33813
33814
33815fi
33816
33817{ echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
33818echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
33819# Check whether --enable-pnic was given.
33820if test "${enable_pnic+set}" = set; then
33821  enableval=$enable_pnic; if test "$enableval" = yes; then
33822    { echo "$as_me:$LINENO: result: yes" >&5
33823echo "${ECHO_T}yes" >&6; }
33824    cat >>confdefs.h <<\_ACEOF
33825#define BX_SUPPORT_PCIPNIC 1
33826_ACEOF
33827
33828    PCI_OBJ="$PCI_OBJ pcipnic.o"
33829    networking=yes
33830   else
33831    { echo "$as_me:$LINENO: result: no" >&5
33832echo "${ECHO_T}no" >&6; }
33833    cat >>confdefs.h <<\_ACEOF
33834#define BX_SUPPORT_PCIPNIC 0
33835_ACEOF
33836
33837   fi
33838else
33839
33840    { echo "$as_me:$LINENO: result: no" >&5
33841echo "${ECHO_T}no" >&6; }
33842    cat >>confdefs.h <<\_ACEOF
33843#define BX_SUPPORT_PCIPNIC 0
33844_ACEOF
33845
33846
33847
33848fi
33849
33850
33851NETLOW_OBJS=''
33852if test "$networking" = yes; then
33853  NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
33854  if test "${ac_cv_header_net_bpf_h+set}" = set; then
33855  { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33856echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33857if test "${ac_cv_header_net_bpf_h+set}" = set; then
33858  echo $ECHO_N "(cached) $ECHO_C" >&6
33859fi
33860{ echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33861echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33862else
33863  # Is the header compilable?
33864{ echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
33865echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
33866cat >conftest.$ac_ext <<_ACEOF
33867/* confdefs.h.  */
33868_ACEOF
33869cat confdefs.h >>conftest.$ac_ext
33870cat >>conftest.$ac_ext <<_ACEOF
33871/* end confdefs.h.  */
33872$ac_includes_default
33873#include <net/bpf.h>
33874_ACEOF
33875rm -f conftest.$ac_objext
33876if { (ac_try="$ac_compile"
33877case "(($ac_try" in
33878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33879  *) ac_try_echo=$ac_try;;
33880esac
33881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882  (eval "$ac_compile") 2>conftest.er1
33883  ac_status=$?
33884  grep -v '^ *+' conftest.er1 >conftest.err
33885  rm -f conftest.er1
33886  cat conftest.err >&5
33887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888  (exit $ac_status); } && {
33889	 test -z "$ac_c_werror_flag" ||
33890	 test ! -s conftest.err
33891       } && test -s conftest.$ac_objext; then
33892  ac_header_compiler=yes
33893else
33894  echo "$as_me: failed program was:" >&5
33895sed 's/^/| /' conftest.$ac_ext >&5
33896
33897	ac_header_compiler=no
33898fi
33899
33900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33902echo "${ECHO_T}$ac_header_compiler" >&6; }
33903
33904# Is the header present?
33905{ echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
33906echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
33907cat >conftest.$ac_ext <<_ACEOF
33908/* confdefs.h.  */
33909_ACEOF
33910cat confdefs.h >>conftest.$ac_ext
33911cat >>conftest.$ac_ext <<_ACEOF
33912/* end confdefs.h.  */
33913#include <net/bpf.h>
33914_ACEOF
33915if { (ac_try="$ac_cpp conftest.$ac_ext"
33916case "(($ac_try" in
33917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918  *) ac_try_echo=$ac_try;;
33919esac
33920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33922  ac_status=$?
33923  grep -v '^ *+' conftest.er1 >conftest.err
33924  rm -f conftest.er1
33925  cat conftest.err >&5
33926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927  (exit $ac_status); } >/dev/null && {
33928	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33929	 test ! -s conftest.err
33930       }; then
33931  ac_header_preproc=yes
33932else
33933  echo "$as_me: failed program was:" >&5
33934sed 's/^/| /' conftest.$ac_ext >&5
33935
33936  ac_header_preproc=no
33937fi
33938
33939rm -f conftest.err conftest.$ac_ext
33940{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33941echo "${ECHO_T}$ac_header_preproc" >&6; }
33942
33943# So?  What about this header?
33944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33945  yes:no: )
33946    { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
33947echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33948    { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
33949echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
33950    ac_header_preproc=yes
33951    ;;
33952  no:yes:* )
33953    { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
33954echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
33955    { echo "$as_me:$LINENO: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&5
33956echo "$as_me: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&2;}
33957    { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
33958echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
33959    { echo "$as_me:$LINENO: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&5
33960echo "$as_me: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33961    { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
33962echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
33963    { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
33964echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
33965
33966    ;;
33967esac
33968{ echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33969echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33970if test "${ac_cv_header_net_bpf_h+set}" = set; then
33971  echo $ECHO_N "(cached) $ECHO_C" >&6
33972else
33973  ac_cv_header_net_bpf_h=$ac_header_preproc
33974fi
33975{ echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33976echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33977
33978fi
33979if test $ac_cv_header_net_bpf_h = yes; then
33980  NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
33981fi
33982
33983
33984  if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33985  { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33986echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33987if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33988  echo $ECHO_N "(cached) $ECHO_C" >&6
33989fi
33990{ echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33991echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33992else
33993  # Is the header compilable?
33994{ echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
33995echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
33996cat >conftest.$ac_ext <<_ACEOF
33997/* confdefs.h.  */
33998_ACEOF
33999cat confdefs.h >>conftest.$ac_ext
34000cat >>conftest.$ac_ext <<_ACEOF
34001/* end confdefs.h.  */
34002$ac_includes_default
34003#include <netpacket/packet.h>
34004_ACEOF
34005rm -f conftest.$ac_objext
34006if { (ac_try="$ac_compile"
34007case "(($ac_try" in
34008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34009  *) ac_try_echo=$ac_try;;
34010esac
34011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34012  (eval "$ac_compile") 2>conftest.er1
34013  ac_status=$?
34014  grep -v '^ *+' conftest.er1 >conftest.err
34015  rm -f conftest.er1
34016  cat conftest.err >&5
34017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018  (exit $ac_status); } && {
34019	 test -z "$ac_c_werror_flag" ||
34020	 test ! -s conftest.err
34021       } && test -s conftest.$ac_objext; then
34022  ac_header_compiler=yes
34023else
34024  echo "$as_me: failed program was:" >&5
34025sed 's/^/| /' conftest.$ac_ext >&5
34026
34027	ac_header_compiler=no
34028fi
34029
34030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34032echo "${ECHO_T}$ac_header_compiler" >&6; }
34033
34034# Is the header present?
34035{ echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
34036echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
34037cat >conftest.$ac_ext <<_ACEOF
34038/* confdefs.h.  */
34039_ACEOF
34040cat confdefs.h >>conftest.$ac_ext
34041cat >>conftest.$ac_ext <<_ACEOF
34042/* end confdefs.h.  */
34043#include <netpacket/packet.h>
34044_ACEOF
34045if { (ac_try="$ac_cpp conftest.$ac_ext"
34046case "(($ac_try" in
34047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048  *) ac_try_echo=$ac_try;;
34049esac
34050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34052  ac_status=$?
34053  grep -v '^ *+' conftest.er1 >conftest.err
34054  rm -f conftest.er1
34055  cat conftest.err >&5
34056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057  (exit $ac_status); } >/dev/null && {
34058	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34059	 test ! -s conftest.err
34060       }; then
34061  ac_header_preproc=yes
34062else
34063  echo "$as_me: failed program was:" >&5
34064sed 's/^/| /' conftest.$ac_ext >&5
34065
34066  ac_header_preproc=no
34067fi
34068
34069rm -f conftest.err conftest.$ac_ext
34070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34071echo "${ECHO_T}$ac_header_preproc" >&6; }
34072
34073# So?  What about this header?
34074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34075  yes:no: )
34076    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
34077echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34078    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
34079echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
34080    ac_header_preproc=yes
34081    ;;
34082  no:yes:* )
34083    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
34084echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
34085    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h:     check for missing prerequisite headers?" >&5
34086echo "$as_me: WARNING: netpacket/packet.h:     check for missing prerequisite headers?" >&2;}
34087    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
34088echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
34089    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h:     section \"Present But Cannot Be Compiled\"" >&5
34090echo "$as_me: WARNING: netpacket/packet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34091    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
34092echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
34093    { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
34094echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
34095
34096    ;;
34097esac
34098{ echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
34099echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
34100if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
34101  echo $ECHO_N "(cached) $ECHO_C" >&6
34102else
34103  ac_cv_header_netpacket_packet_h=$ac_header_preproc
34104fi
34105{ echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
34106echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
34107
34108fi
34109if test $ac_cv_header_netpacket_packet_h = yes; then
34110  NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
34111fi
34112
34113
34114  case "$target" in
34115    *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
34116    NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
34117    ;;
34118    *-macosx* | *-darwin*)
34119    NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34120    cat >>confdefs.h <<\_ACEOF
34121#define HAVE_TUNTAP 1
34122_ACEOF
34123
34124    ;;
34125    *)
34126    { echo "$as_me:$LINENO: checking for net/if.h" >&5
34127echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
34128if test "${ac_cv_header_net_if_h+set}" = set; then
34129  echo $ECHO_N "(cached) $ECHO_C" >&6
34130else
34131  cat >conftest.$ac_ext <<_ACEOF
34132/* confdefs.h.  */
34133_ACEOF
34134cat confdefs.h >>conftest.$ac_ext
34135cat >>conftest.$ac_ext <<_ACEOF
34136/* end confdefs.h.  */
34137
34138      #include <sys/types.h>
34139      #include <sys/socket.h>
34140
34141
34142#include <net/if.h>
34143_ACEOF
34144rm -f conftest.$ac_objext
34145if { (ac_try="$ac_compile"
34146case "(($ac_try" in
34147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148  *) ac_try_echo=$ac_try;;
34149esac
34150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151  (eval "$ac_compile") 2>conftest.er1
34152  ac_status=$?
34153  grep -v '^ *+' conftest.er1 >conftest.err
34154  rm -f conftest.er1
34155  cat conftest.err >&5
34156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157  (exit $ac_status); } && {
34158	 test -z "$ac_c_werror_flag" ||
34159	 test ! -s conftest.err
34160       } && test -s conftest.$ac_objext; then
34161  ac_cv_header_net_if_h=yes
34162else
34163  echo "$as_me: failed program was:" >&5
34164sed 's/^/| /' conftest.$ac_ext >&5
34165
34166	ac_cv_header_net_if_h=no
34167fi
34168
34169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34170fi
34171{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
34172echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
34173if test $ac_cv_header_net_if_h = yes; then
34174
34175        use_ethertap=yes
34176        cat >>confdefs.h <<\_ACEOF
34177#define BX_HAVE_NET_IF_H 1
34178_ACEOF
34179
34180
34181fi
34182
34183
34184    { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
34185echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
34186if test "${ac_cv_header_linux_netlink_h+set}" = set; then
34187  echo $ECHO_N "(cached) $ECHO_C" >&6
34188else
34189  cat >conftest.$ac_ext <<_ACEOF
34190/* confdefs.h.  */
34191_ACEOF
34192cat confdefs.h >>conftest.$ac_ext
34193cat >>conftest.$ac_ext <<_ACEOF
34194/* end confdefs.h.  */
34195
34196      #include <asm/types.h>
34197      #include <sys/socket.h>
34198
34199
34200#include <linux/netlink.h>
34201_ACEOF
34202rm -f conftest.$ac_objext
34203if { (ac_try="$ac_compile"
34204case "(($ac_try" in
34205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206  *) ac_try_echo=$ac_try;;
34207esac
34208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34209  (eval "$ac_compile") 2>conftest.er1
34210  ac_status=$?
34211  grep -v '^ *+' conftest.er1 >conftest.err
34212  rm -f conftest.er1
34213  cat conftest.err >&5
34214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215  (exit $ac_status); } && {
34216	 test -z "$ac_c_werror_flag" ||
34217	 test ! -s conftest.err
34218       } && test -s conftest.$ac_objext; then
34219  ac_cv_header_linux_netlink_h=yes
34220else
34221  echo "$as_me: failed program was:" >&5
34222sed 's/^/| /' conftest.$ac_ext >&5
34223
34224	ac_cv_header_linux_netlink_h=no
34225fi
34226
34227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34228fi
34229{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
34230echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
34231if test $ac_cv_header_linux_netlink_h = yes; then
34232
34233        use_ethertap=yes
34234
34235fi
34236
34237
34238
34239    if test "$use_ethertap" = yes; then
34240      NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
34241      cat >>confdefs.h <<\_ACEOF
34242#define HAVE_ETHERTAP 1
34243_ACEOF
34244
34245      cat >>confdefs.h <<\_ACEOF
34246#define HAVE_VDE 1
34247_ACEOF
34248
34249    fi
34250
34251    { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
34252echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
34253if test "${ac_cv_header_net_if_tun_h+set}" = set; then
34254  echo $ECHO_N "(cached) $ECHO_C" >&6
34255else
34256  cat >conftest.$ac_ext <<_ACEOF
34257/* confdefs.h.  */
34258_ACEOF
34259cat confdefs.h >>conftest.$ac_ext
34260cat >>conftest.$ac_ext <<_ACEOF
34261/* end confdefs.h.  */
34262
34263      #include <sys/types.h>
34264      #include <sys/socket.h>
34265      #include <net/if.h>
34266
34267
34268#include <net/if_tun.h>
34269_ACEOF
34270rm -f conftest.$ac_objext
34271if { (ac_try="$ac_compile"
34272case "(($ac_try" in
34273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34274  *) ac_try_echo=$ac_try;;
34275esac
34276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34277  (eval "$ac_compile") 2>conftest.er1
34278  ac_status=$?
34279  grep -v '^ *+' conftest.er1 >conftest.err
34280  rm -f conftest.er1
34281  cat conftest.err >&5
34282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283  (exit $ac_status); } && {
34284	 test -z "$ac_c_werror_flag" ||
34285	 test ! -s conftest.err
34286       } && test -s conftest.$ac_objext; then
34287  ac_cv_header_net_if_tun_h=yes
34288else
34289  echo "$as_me: failed program was:" >&5
34290sed 's/^/| /' conftest.$ac_ext >&5
34291
34292	ac_cv_header_net_if_tun_h=no
34293fi
34294
34295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34296fi
34297{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
34298echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
34299if test $ac_cv_header_net_if_tun_h = yes; then
34300
34301        use_tuntap=yes
34302
34303fi
34304
34305
34306    { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
34307echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
34308if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
34309  echo $ECHO_N "(cached) $ECHO_C" >&6
34310else
34311  cat >conftest.$ac_ext <<_ACEOF
34312/* confdefs.h.  */
34313_ACEOF
34314cat confdefs.h >>conftest.$ac_ext
34315cat >>conftest.$ac_ext <<_ACEOF
34316/* end confdefs.h.  */
34317
34318      #include <asm/types.h>
34319      #include <sys/socket.h>
34320
34321
34322#include <linux/if_tun.h>
34323_ACEOF
34324rm -f conftest.$ac_objext
34325if { (ac_try="$ac_compile"
34326case "(($ac_try" in
34327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328  *) ac_try_echo=$ac_try;;
34329esac
34330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331  (eval "$ac_compile") 2>conftest.er1
34332  ac_status=$?
34333  grep -v '^ *+' conftest.er1 >conftest.err
34334  rm -f conftest.er1
34335  cat conftest.err >&5
34336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337  (exit $ac_status); } && {
34338	 test -z "$ac_c_werror_flag" ||
34339	 test ! -s conftest.err
34340       } && test -s conftest.$ac_objext; then
34341  ac_cv_header_linux_if_tun_h=yes
34342else
34343  echo "$as_me: failed program was:" >&5
34344sed 's/^/| /' conftest.$ac_ext >&5
34345
34346	ac_cv_header_linux_if_tun_h=no
34347fi
34348
34349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34350fi
34351{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
34352echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
34353if test $ac_cv_header_linux_if_tun_h = yes; then
34354
34355        use_tuntap=yes
34356
34357fi
34358
34359
34360    if test "$use_tuntap" = yes; then
34361      NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34362      cat >>confdefs.h <<\_ACEOF
34363#define HAVE_TUNTAP 1
34364_ACEOF
34365
34366    fi
34367
34368    ;;
34369  esac
34370  cat >>confdefs.h <<\_ACEOF
34371#define BX_NETWORKING 1
34372_ACEOF
34373
34374else
34375  cat >>confdefs.h <<\_ACEOF
34376#define BX_NETWORKING 0
34377_ACEOF
34378
34379fi
34380
34381
34382
34383
34384{ echo "$as_me:$LINENO: checking for large pages support" >&5
34385echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
34386# Check whether --enable-large-pages was given.
34387if test "${enable_large_pages+set}" = set; then
34388  enableval=$enable_large_pages; if test "$enableval" = yes; then
34389    { echo "$as_me:$LINENO: result: yes" >&5
34390echo "${ECHO_T}yes" >&6; }
34391    cat >>confdefs.h <<\_ACEOF
34392#define BX_SUPPORT_LARGE_PAGES 1
34393_ACEOF
34394
34395    support_large_pages=1
34396   else
34397    { echo "$as_me:$LINENO: result: no" >&5
34398echo "${ECHO_T}no" >&6; }
34399    cat >>confdefs.h <<\_ACEOF
34400#define BX_SUPPORT_LARGE_PAGES 0
34401_ACEOF
34402
34403    support_large_pages=0
34404   fi
34405else
34406
34407    if test "$bx_cpu_level" -gt 4; then
34408      { echo "$as_me:$LINENO: result: yes" >&5
34409echo "${ECHO_T}yes" >&6; }
34410      cat >>confdefs.h <<\_ACEOF
34411#define BX_SUPPORT_LARGE_PAGES 1
34412_ACEOF
34413
34414      support_large_pages=1
34415    else
34416      { echo "$as_me:$LINENO: result: no" >&5
34417echo "${ECHO_T}no" >&6; }
34418      cat >>confdefs.h <<\_ACEOF
34419#define BX_SUPPORT_LARGE_PAGES 0
34420_ACEOF
34421
34422      support_large_pages=0
34423    fi
34424
34425
34426fi
34427
34428
34429
34430{ echo "$as_me:$LINENO: checking for PAE support" >&5
34431echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
34432# Check whether --enable-pae was given.
34433if test "${enable_pae+set}" = set; then
34434  enableval=$enable_pae; if test "$enableval" = yes; then
34435    { echo "$as_me:$LINENO: result: yes" >&5
34436echo "${ECHO_T}yes" >&6; }
34437    cat >>confdefs.h <<\_ACEOF
34438#define BX_SUPPORT_PAE 1
34439_ACEOF
34440
34441    support_pae=1
34442   else
34443    { echo "$as_me:$LINENO: result: no" >&5
34444echo "${ECHO_T}no" >&6; }
34445    cat >>confdefs.h <<\_ACEOF
34446#define BX_SUPPORT_PAE 0
34447_ACEOF
34448
34449    support_pae=0
34450   fi
34451else
34452
34453    if test "$bx_cpu_level" -gt 5; then
34454      { echo "$as_me:$LINENO: result: yes" >&5
34455echo "${ECHO_T}yes" >&6; }
34456      cat >>confdefs.h <<\_ACEOF
34457#define BX_SUPPORT_PAE 1
34458_ACEOF
34459
34460      support_pae=1
34461    else
34462      { echo "$as_me:$LINENO: result: no" >&5
34463echo "${ECHO_T}no" >&6; }
34464      cat >>confdefs.h <<\_ACEOF
34465#define BX_SUPPORT_PAE 0
34466_ACEOF
34467
34468      support_pae=0
34469    fi
34470
34471
34472fi
34473
34474
34475{ echo "$as_me:$LINENO: checking for global pages support" >&5
34476echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
34477# Check whether --enable-global-pages was given.
34478if test "${enable_global_pages+set}" = set; then
34479  enableval=$enable_global_pages; if test "$enableval" = yes; then
34480    { echo "$as_me:$LINENO: result: yes" >&5
34481echo "${ECHO_T}yes" >&6; }
34482    cat >>confdefs.h <<\_ACEOF
34483#define BX_SUPPORT_GLOBAL_PAGES 1
34484_ACEOF
34485
34486    support_global_pages=1
34487   else
34488    { echo "$as_me:$LINENO: result: no" >&5
34489echo "${ECHO_T}no" >&6; }
34490    cat >>confdefs.h <<\_ACEOF
34491#define BX_SUPPORT_GLOBAL_PAGES 0
34492_ACEOF
34493
34494    support_global_pages=0
34495   fi
34496else
34497
34498    if test "$bx_cpu_level" -gt 5; then
34499      # enable by default
34500      { echo "$as_me:$LINENO: result: yes" >&5
34501echo "${ECHO_T}yes" >&6; }
34502      cat >>confdefs.h <<\_ACEOF
34503#define BX_SUPPORT_GLOBAL_PAGES 1
34504_ACEOF
34505
34506      support_global_pages=1
34507    else
34508      { echo "$as_me:$LINENO: result: no" >&5
34509echo "${ECHO_T}no" >&6; }
34510      cat >>confdefs.h <<\_ACEOF
34511#define BX_SUPPORT_GLOBAL_PAGES 0
34512_ACEOF
34513
34514      support_global_pages=0
34515    fi
34516
34517
34518fi
34519
34520
34521{ echo "$as_me:$LINENO: checking for long mode 1G pages support" >&5
34522echo $ECHO_N "checking for long mode 1G pages support... $ECHO_C" >&6; }
34523# Check whether --enable-1g-pages was given.
34524if test "${enable_1g_pages+set}" = set; then
34525  enableval=$enable_1g_pages; if test "$enableval" = yes; then
34526    { echo "$as_me:$LINENO: result: yes" >&5
34527echo "${ECHO_T}yes" >&6; }
34528    cat >>confdefs.h <<\_ACEOF
34529#define BX_SUPPORT_1G_PAGES 1
34530_ACEOF
34531
34532    support_1g_pages=1
34533   else
34534    { echo "$as_me:$LINENO: result: no" >&5
34535echo "${ECHO_T}no" >&6; }
34536    cat >>confdefs.h <<\_ACEOF
34537#define BX_SUPPORT_1G_PAGES 0
34538_ACEOF
34539
34540    support_1g_pages=0
34541   fi
34542else
34543
34544    { echo "$as_me:$LINENO: result: no" >&5
34545echo "${ECHO_T}no" >&6; }
34546    cat >>confdefs.h <<\_ACEOF
34547#define BX_SUPPORT_1G_PAGES 0
34548_ACEOF
34549
34550    support_1g_pages=0
34551
34552
34553fi
34554
34555
34556if test "$support_1g_pages" = 1 -a "$use_x86_64" = 0; then
34557  { { echo "$as_me:$LINENO: error: x86-64 mode is required for 1G pages support" >&5
34558echo "$as_me: error: x86-64 mode is required for 1G pages support" >&2;}
34559   { (exit 1); exit 1; }; }
34560fi
34561
34562if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
34563  { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
34564echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
34565   { (exit 1); exit 1; }; }
34566fi
34567
34568if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
34569  { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
34570echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
34571   { (exit 1); exit 1; }; }
34572fi
34573
34574if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
34575  { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
34576echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
34577   { (exit 1); exit 1; }; }
34578fi
34579
34580{ echo "$as_me:$LINENO: checking for MTRRs support" >&5
34581echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
34582# Check whether --enable-mtrr was given.
34583if test "${enable_mtrr+set}" = set; then
34584  enableval=$enable_mtrr; if test "$enableval" = yes; then
34585    { echo "$as_me:$LINENO: result: yes" >&5
34586echo "${ECHO_T}yes" >&6; }
34587    cat >>confdefs.h <<\_ACEOF
34588#define BX_SUPPORT_MTRR 1
34589_ACEOF
34590
34591   else
34592    { echo "$as_me:$LINENO: result: no" >&5
34593echo "${ECHO_T}no" >&6; }
34594    cat >>confdefs.h <<\_ACEOF
34595#define BX_SUPPORT_MTRR 0
34596_ACEOF
34597
34598   fi
34599else
34600
34601    if test "$bx_cpu_level" -gt 5; then
34602      # enable by default
34603      { echo "$as_me:$LINENO: result: yes" >&5
34604echo "${ECHO_T}yes" >&6; }
34605      cat >>confdefs.h <<\_ACEOF
34606#define BX_SUPPORT_MTRR 1
34607_ACEOF
34608
34609    else
34610      { echo "$as_me:$LINENO: result: no" >&5
34611echo "${ECHO_T}no" >&6; }
34612      cat >>confdefs.h <<\_ACEOF
34613#define BX_SUPPORT_MTRR 0
34614_ACEOF
34615
34616    fi
34617
34618
34619fi
34620
34621
34622{ echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
34623echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
34624# Check whether --enable-repeat-speedups was given.
34625if test "${enable_repeat_speedups+set}" = set; then
34626  enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
34627    { echo "$as_me:$LINENO: result: yes" >&5
34628echo "${ECHO_T}yes" >&6; }
34629    speedup_repeat=1
34630   else
34631    { echo "$as_me:$LINENO: result: no" >&5
34632echo "${ECHO_T}no" >&6; }
34633    speedup_repeat=0
34634   fi
34635else
34636
34637    { echo "$as_me:$LINENO: result: no" >&5
34638echo "${ECHO_T}no" >&6; }
34639    speedup_repeat=0
34640
34641
34642fi
34643
34644
34645{ echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
34646echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
34647# Check whether --enable-trace-cache was given.
34648if test "${enable_trace_cache+set}" = set; then
34649  enableval=$enable_trace_cache; if test "$enableval" = yes; then
34650    { echo "$as_me:$LINENO: result: yes" >&5
34651echo "${ECHO_T}yes" >&6; }
34652    speedup_TraceCache=1
34653   else
34654    { echo "$as_me:$LINENO: result: no" >&5
34655echo "${ECHO_T}no" >&6; }
34656    speedup_TraceCache=0
34657   fi
34658else
34659
34660    if test "$speedup_TraceCache " = 1; then
34661      { echo "$as_me:$LINENO: result: yes" >&5
34662echo "${ECHO_T}yes" >&6; }
34663      speedup_TraceCache=1
34664    else
34665      { echo "$as_me:$LINENO: result: no" >&5
34666echo "${ECHO_T}no" >&6; }
34667      speedup_TraceCache=0
34668    fi
34669
34670
34671fi
34672
34673
34674{ echo "$as_me:$LINENO: checking for instruction cache support" >&5
34675echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
34676# Check whether --enable-icache was given.
34677if test "${enable_icache+set}" = set; then
34678  enableval=$enable_icache; if test "$enableval" = yes; then
34679    { echo "$as_me:$LINENO: result: yes" >&5
34680echo "${ECHO_T}yes" >&6; }
34681    speedup_iCache=1
34682   else
34683    { echo "$as_me:$LINENO: result: no" >&5
34684echo "${ECHO_T}no" >&6; }
34685    speedup_iCache=0
34686   fi
34687else
34688
34689    { echo "$as_me:$LINENO: result: no" >&5
34690echo "${ECHO_T}no" >&6; }
34691    speedup_iCache=0
34692
34693
34694fi
34695
34696
34697{ echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
34698echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
34699# Check whether --enable-fast-function-calls was given.
34700if test "${enable_fast_function_calls+set}" = set; then
34701  enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
34702    { echo "$as_me:$LINENO: result: yes" >&5
34703echo "${ECHO_T}yes" >&6; }
34704    speedup_fastcall=1
34705   else
34706    { echo "$as_me:$LINENO: result: no" >&5
34707echo "${ECHO_T}no" >&6; }
34708    speedup_fastcall=0
34709   fi
34710else
34711
34712    { echo "$as_me:$LINENO: result: no" >&5
34713echo "${ECHO_T}no" >&6; }
34714    speedup_fastcall=0
34715
34716
34717fi
34718
34719
34720{ echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
34721echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
34722# Check whether --enable-host-specific-asms was given.
34723if test "${enable_host_specific_asms+set}" = set; then
34724  enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
34725    { echo "$as_me:$LINENO: result: yes" >&5
34726echo "${ECHO_T}yes" >&6; }
34727    speedup_host_specific_asms=1
34728   else
34729    { echo "$as_me:$LINENO: result: no" >&5
34730echo "${ECHO_T}no" >&6; }
34731    speedup_host_specific_asms=0
34732   fi
34733else
34734
34735    { echo "$as_me:$LINENO: result: no" >&5
34736echo "${ECHO_T}no" >&6; }
34737    speedup_host_specific_asms=0
34738
34739
34740fi
34741
34742
34743{ echo "$as_me:$LINENO: checking support for configurable MSR registers" >&5
34744echo $ECHO_N "checking support for configurable MSR registers... $ECHO_C" >&6; }
34745# Check whether --enable-configurable-msrs was given.
34746if test "${enable_configurable_msrs+set}" = set; then
34747  enableval=$enable_configurable_msrs; if test "$enableval" = yes; then
34748    { echo "$as_me:$LINENO: result: yes" >&5
34749echo "${ECHO_T}yes" >&6; }
34750    cat >>confdefs.h <<\_ACEOF
34751#define BX_CONFIGURE_MSRS 1
34752_ACEOF
34753
34754   else
34755    { echo "$as_me:$LINENO: result: no" >&5
34756echo "${ECHO_T}no" >&6; }
34757    cat >>confdefs.h <<\_ACEOF
34758#define BX_CONFIGURE_MSRS 0
34759_ACEOF
34760
34761   fi
34762else
34763
34764    if test "$bx_cpu_level" -ge 5; then
34765      { echo "$as_me:$LINENO: result: yes" >&5
34766echo "${ECHO_T}yes" >&6; }
34767      cat >>confdefs.h <<\_ACEOF
34768#define BX_CONFIGURE_MSRS 1
34769_ACEOF
34770
34771    else
34772      { echo "$as_me:$LINENO: result: no" >&5
34773echo "${ECHO_T}no" >&6; }
34774      cat >>confdefs.h <<\_ACEOF
34775#define BX_CONFIGURE_MSRS 0
34776_ACEOF
34777
34778    fi
34779
34780
34781fi
34782
34783
34784{ echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
34785echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
34786# Check whether --enable-ignore-bad-msr was given.
34787if test "${enable_ignore_bad_msr+set}" = set; then
34788  enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
34789    { echo "$as_me:$LINENO: result: yes" >&5
34790echo "${ECHO_T}yes" >&6; }
34791    cat >>confdefs.h <<\_ACEOF
34792#define BX_IGNORE_BAD_MSR 1
34793_ACEOF
34794
34795   else
34796    { echo "$as_me:$LINENO: result: no" >&5
34797echo "${ECHO_T}no" >&6; }
34798    cat >>confdefs.h <<\_ACEOF
34799#define BX_IGNORE_BAD_MSR 0
34800_ACEOF
34801
34802   fi
34803else
34804
34805    { echo "$as_me:$LINENO: result: yes" >&5
34806echo "${ECHO_T}yes" >&6; }
34807    cat >>confdefs.h <<\_ACEOF
34808#define BX_IGNORE_BAD_MSR 1
34809_ACEOF
34810
34811
34812
34813fi
34814
34815
34816{ echo "$as_me:$LINENO: checking for port e9 hack" >&5
34817echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
34818# Check whether --enable-port-e9-hack was given.
34819if test "${enable_port_e9_hack+set}" = set; then
34820  enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
34821    { echo "$as_me:$LINENO: result: yes" >&5
34822echo "${ECHO_T}yes" >&6; }
34823    cat >>confdefs.h <<\_ACEOF
34824#define BX_PORT_E9_HACK 1
34825_ACEOF
34826
34827   else
34828    { echo "$as_me:$LINENO: result: no" >&5
34829echo "${ECHO_T}no" >&6; }
34830    cat >>confdefs.h <<\_ACEOF
34831#define BX_PORT_E9_HACK 0
34832_ACEOF
34833
34834   fi
34835else
34836
34837    { echo "$as_me:$LINENO: result: yes" >&5
34838echo "${ECHO_T}yes" >&6; }
34839    cat >>confdefs.h <<\_ACEOF
34840#define BX_PORT_E9_HACK 1
34841_ACEOF
34842
34843
34844
34845fi
34846
34847
34848{ echo "$as_me:$LINENO: checking show IPS" >&5
34849echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
34850# Check whether --enable-show-ips was given.
34851if test "${enable_show_ips+set}" = set; then
34852  enableval=$enable_show_ips; if test "$enableval" = yes; then
34853    { echo "$as_me:$LINENO: result: yes" >&5
34854echo "${ECHO_T}yes" >&6; }
34855    cat >>confdefs.h <<\_ACEOF
34856#define BX_SHOW_IPS 1
34857_ACEOF
34858
34859   else
34860    { echo "$as_me:$LINENO: result: no" >&5
34861echo "${ECHO_T}no" >&6; }
34862    cat >>confdefs.h <<\_ACEOF
34863#define BX_SHOW_IPS 0
34864_ACEOF
34865
34866   fi
34867else
34868
34869    { echo "$as_me:$LINENO: result: no" >&5
34870echo "${ECHO_T}no" >&6; }
34871    cat >>confdefs.h <<\_ACEOF
34872#define BX_SHOW_IPS 0
34873_ACEOF
34874
34875
34876
34877fi
34878
34879
34880{ echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
34881echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
34882# Check whether --enable-cpp was given.
34883if test "${enable_cpp+set}" = set; then
34884  enableval=$enable_cpp; if test "$enableval" = yes; then
34885    { echo "$as_me:$LINENO: result: yes" >&5
34886echo "${ECHO_T}yes" >&6; }
34887    SUFFIX_LINE='.SUFFIXES: .cpp'
34888    CPP_SUFFIX='cpp'
34889   else
34890    { echo "$as_me:$LINENO: result: no" >&5
34891echo "${ECHO_T}no" >&6; }
34892    SUFFIX_LINE='.SUFFIXES: .cc'
34893    CPP_SUFFIX='cc'
34894   fi
34895else
34896
34897    { echo "$as_me:$LINENO: result: no" >&5
34898echo "${ECHO_T}no" >&6; }
34899    SUFFIX_LINE='.SUFFIXES: .cc'
34900    CPP_SUFFIX='cc'
34901
34902
34903fi
34904
34905
34906
34907
34908if test "$enable_cpp" = yes; then
34909  echo "moving .cc source files to .cpp"
34910  sourcefiles=`find . -name "*.cc" -print`
34911  if test "$sourcefiles" != ""; then
34912    for ccname in $sourcefiles
34913    do
34914      cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
34915      echo "mv $ccname $cppname"
34916      mv   $ccname $cppname
34917    done
34918  else
34919    echo "no more .cc source files to rename"
34920  fi
34921fi
34922
34923
34924
34925{ echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
34926echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
34927# Check whether --enable-debugger was given.
34928if test "${enable_debugger+set}" = set; then
34929  enableval=$enable_debugger; if test "$enableval" = yes; then
34930    { echo "$as_me:$LINENO: result: yes" >&5
34931echo "${ECHO_T}yes" >&6; }
34932    cat >>confdefs.h <<\_ACEOF
34933#define BX_DEBUGGER 1
34934_ACEOF
34935
34936    DEBUGGER_VAR='$(DEBUGGER_LIB)'
34937    bx_debugger=1
34938   else
34939    { echo "$as_me:$LINENO: result: no" >&5
34940echo "${ECHO_T}no" >&6; }
34941    cat >>confdefs.h <<\_ACEOF
34942#define BX_DEBUGGER 0
34943_ACEOF
34944
34945    DEBUGGER_VAR=''
34946    bx_debugger=0
34947   fi
34948
34949else
34950
34951    { echo "$as_me:$LINENO: result: no" >&5
34952echo "${ECHO_T}no" >&6; }
34953    cat >>confdefs.h <<\_ACEOF
34954#define BX_DEBUGGER 0
34955_ACEOF
34956
34957    DEBUGGER_VAR=''
34958    bx_debugger=0
34959
34960
34961fi
34962
34963
34964
34965{ echo "$as_me:$LINENO: checking for disassembler support" >&5
34966echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
34967# Check whether --enable-disasm was given.
34968if test "${enable_disasm+set}" = set; then
34969  enableval=$enable_disasm; if test "$enableval" = yes; then
34970    { echo "$as_me:$LINENO: result: yes" >&5
34971echo "${ECHO_T}yes" >&6; }
34972    cat >>confdefs.h <<\_ACEOF
34973#define BX_DISASM 1
34974_ACEOF
34975
34976    DISASM_VAR='$(DISASM_LIB)'
34977   else
34978    { echo "$as_me:$LINENO: result: no" >&5
34979echo "${ECHO_T}no" >&6; }
34980    if test "$bx_debugger" = 1; then
34981      echo "ERROR: debugger is enabled, so --enable-disasm is required"
34982      exit 1
34983    fi
34984    cat >>confdefs.h <<\_ACEOF
34985#define BX_DISASM 0
34986_ACEOF
34987
34988    DISASM_VAR=''
34989   fi
34990else
34991
34992    { echo "$as_me:$LINENO: result: yes" >&5
34993echo "${ECHO_T}yes" >&6; }
34994    cat >>confdefs.h <<\_ACEOF
34995#define BX_DISASM 1
34996_ACEOF
34997
34998    DISASM_VAR='$(DISASM_LIB)'
34999
35000fi
35001
35002
35003
35004{ echo "$as_me:$LINENO: checking enable Bochs internal debugger GUI" >&5
35005echo $ECHO_N "checking enable Bochs internal debugger GUI... $ECHO_C" >&6; }
35006# Check whether --enable-debugger-gui was given.
35007if test "${enable_debugger_gui+set}" = set; then
35008  enableval=$enable_debugger_gui; if test "$enableval" = yes; then
35009    { echo "$as_me:$LINENO: result: yes" >&5
35010echo "${ECHO_T}yes" >&6; }
35011    cat >>confdefs.h <<\_ACEOF
35012#define BX_DEBUGGER_GUI 1
35013_ACEOF
35014
35015    gui_debugger=1
35016   else
35017    { echo "$as_me:$LINENO: result: no" >&5
35018echo "${ECHO_T}no" >&6; }
35019    cat >>confdefs.h <<\_ACEOF
35020#define BX_DEBUGGER_GUI 0
35021_ACEOF
35022
35023    gui_debugger=0
35024   fi
35025else
35026
35027    if test "$bx_debugger" = 1; then
35028      { echo "$as_me:$LINENO: result: yes" >&5
35029echo "${ECHO_T}yes" >&6; }
35030      cat >>confdefs.h <<\_ACEOF
35031#define BX_DEBUGGER_GUI 1
35032_ACEOF
35033
35034      gui_debugger=1
35035    else
35036      { echo "$as_me:$LINENO: result: no" >&5
35037echo "${ECHO_T}no" >&6; }
35038      cat >>confdefs.h <<\_ACEOF
35039#define BX_DEBUGGER_GUI 0
35040_ACEOF
35041
35042      gui_debugger=0
35043    fi
35044
35045
35046fi
35047
35048
35049
35050{ echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
35051echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
35052# Check whether --enable-all-optimizations was given.
35053if test "${enable_all_optimizations+set}" = set; then
35054  enableval=$enable_all_optimizations; if test "$enableval" = yes; then
35055    { echo "$as_me:$LINENO: result: yes" >&5
35056echo "${ECHO_T}yes" >&6; }
35057    speedups_all=1
35058   else
35059    { echo "$as_me:$LINENO: result: no" >&5
35060echo "${ECHO_T}no" >&6; }
35061    speedups_all=0
35062   fi
35063
35064else
35065
35066    { echo "$as_me:$LINENO: result: no" >&5
35067echo "${ECHO_T}no" >&6; }
35068    speedups_all=0
35069
35070
35071fi
35072
35073
35074#
35075# Optimizations section.  Decide what the status of various optimizations
35076# should be based on configure choices and other factors.
35077#
35078
35079if test "$speedups_all" = 1; then
35080  # Configure requested to force all options enabled.
35081  speedup_repeat=1
35082  speedup_iCache=1
35083  speedup_TraceCache=1
35084  speedup_fastcall=1
35085fi
35086
35087if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
35088  { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
35089echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
35090   { (exit 1); exit 1; }; }
35091fi
35092
35093if test "$speedup_repeat" = 1; then
35094  cat >>confdefs.h <<\_ACEOF
35095#define BX_SupportRepeatSpeedups 1
35096_ACEOF
35097
35098else
35099  cat >>confdefs.h <<\_ACEOF
35100#define BX_SupportRepeatSpeedups 0
35101_ACEOF
35102
35103fi
35104
35105if test "$speedup_iCache" = 1; then
35106  cat >>confdefs.h <<\_ACEOF
35107#define BX_SUPPORT_ICACHE 1
35108_ACEOF
35109
35110else
35111  cat >>confdefs.h <<\_ACEOF
35112#define BX_SUPPORT_ICACHE 0
35113_ACEOF
35114
35115fi
35116
35117if test "$speedup_host_specific_asms" = 1; then
35118  cat >>confdefs.h <<\_ACEOF
35119#define BX_SupportHostAsms 1
35120_ACEOF
35121
35122else
35123  cat >>confdefs.h <<\_ACEOF
35124#define BX_SupportHostAsms 0
35125_ACEOF
35126
35127fi
35128
35129if test "$speedup_fastcall" = 1; then
35130  cat >>confdefs.h <<\_ACEOF
35131#define BX_FAST_FUNC_CALL 1
35132_ACEOF
35133
35134else
35135  cat >>confdefs.h <<\_ACEOF
35136#define BX_FAST_FUNC_CALL 0
35137_ACEOF
35138
35139fi
35140
35141if test "$speedup_TraceCache" = 1; then
35142  cat >>confdefs.h <<\_ACEOF
35143#define BX_SUPPORT_TRACE_CACHE 1
35144_ACEOF
35145
35146else
35147  cat >>confdefs.h <<\_ACEOF
35148#define BX_SUPPORT_TRACE_CACHE 0
35149_ACEOF
35150
35151fi
35152
35153
35154READLINE_LIB=""
35155rl_without_curses_ok=no
35156rl_with_curses_ok=no
35157
35158{ echo "$as_me:$LINENO: checking whether user wants readline" >&5
35159echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
35160# Check whether --enable-readline was given.
35161if test "${enable_readline+set}" = set; then
35162  enableval=$enable_readline; if test "$enableval" = yes; then
35163    { echo "$as_me:$LINENO: result: yes" >&5
35164echo "${ECHO_T}yes" >&6; }
35165     want_readline=yes
35166   else
35167     { echo "$as_me:$LINENO: result: no" >&5
35168echo "${ECHO_T}no" >&6; }
35169     want_readline=no
35170   fi
35171else
35172
35173    { echo "$as_me:$LINENO: result: yes" >&5
35174echo "${ECHO_T}yes" >&6; }
35175    want_readline=yes
35176
35177
35178fi
35179
35180
35181use_readline=0
35182{ echo "$as_me:$LINENO: checking whether to use readline" >&5
35183echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
35184if test "$want_readline" = yes; then
35185  if test "$bx_debugger" = 1; then
35186
35187    { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
35188echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
35189    OLD_LIBS=$LIBS
35190    LIBS="$LIBS -lreadline"
35191    if test "$cross_compiling" = yes; then
35192  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35193See \`config.log' for more details." >&5
35194echo "$as_me: error: cannot run test program while cross compiling
35195See \`config.log' for more details." >&2;}
35196   { (exit 1); exit 1; }; }
35197else
35198  cat >conftest.$ac_ext <<_ACEOF
35199/* confdefs.h.  */
35200_ACEOF
35201cat confdefs.h >>conftest.$ac_ext
35202cat >>conftest.$ac_ext <<_ACEOF
35203/* end confdefs.h.  */
35204
35205      #include <stdio.h>
35206      #include <readline/readline.h>
35207      int main() { rl_initialize(); exit(0); }
35208
35209_ACEOF
35210rm -f conftest$ac_exeext
35211if { (ac_try="$ac_link"
35212case "(($ac_try" in
35213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35214  *) ac_try_echo=$ac_try;;
35215esac
35216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35217  (eval "$ac_link") 2>&5
35218  ac_status=$?
35219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35221  { (case "(($ac_try" in
35222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35223  *) ac_try_echo=$ac_try;;
35224esac
35225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35226  (eval "$ac_try") 2>&5
35227  ac_status=$?
35228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229  (exit $ac_status); }; }; then
35230   { echo "$as_me:$LINENO: result: yes" >&5
35231echo "${ECHO_T}yes" >&6; }
35232        rl_without_curses_ok=yes
35233else
35234  echo "$as_me: program exited with status $ac_status" >&5
35235echo "$as_me: failed program was:" >&5
35236sed 's/^/| /' conftest.$ac_ext >&5
35237
35238( exit $ac_status )
35239 { echo "$as_me:$LINENO: result: no" >&5
35240echo "${ECHO_T}no" >&6; }
35241
35242fi
35243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35244fi
35245
35246
35247    { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
35248echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
35249    LIBS="$LIBS -lcurses"
35250    if test "$cross_compiling" = yes; then
35251  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35252See \`config.log' for more details." >&5
35253echo "$as_me: error: cannot run test program while cross compiling
35254See \`config.log' for more details." >&2;}
35255   { (exit 1); exit 1; }; }
35256else
35257  cat >conftest.$ac_ext <<_ACEOF
35258/* confdefs.h.  */
35259_ACEOF
35260cat confdefs.h >>conftest.$ac_ext
35261cat >>conftest.$ac_ext <<_ACEOF
35262/* end confdefs.h.  */
35263
35264      #include <stdio.h>
35265      #include <readline/readline.h>
35266      int main() { rl_initialize(); exit(0); }
35267
35268_ACEOF
35269rm -f conftest$ac_exeext
35270if { (ac_try="$ac_link"
35271case "(($ac_try" in
35272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35273  *) ac_try_echo=$ac_try;;
35274esac
35275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35276  (eval "$ac_link") 2>&5
35277  ac_status=$?
35278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35280  { (case "(($ac_try" in
35281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35282  *) ac_try_echo=$ac_try;;
35283esac
35284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35285  (eval "$ac_try") 2>&5
35286  ac_status=$?
35287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288  (exit $ac_status); }; }; then
35289  { echo "$as_me:$LINENO: result: yes" >&5
35290echo "${ECHO_T}yes" >&6; }
35291       rl_with_curses_ok=yes
35292else
35293  echo "$as_me: program exited with status $ac_status" >&5
35294echo "$as_me: failed program was:" >&5
35295sed 's/^/| /' conftest.$ac_ext >&5
35296
35297( exit $ac_status )
35298 { echo "$as_me:$LINENO: result: no" >&5
35299echo "${ECHO_T}no" >&6; }
35300
35301fi
35302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35303fi
35304
35305
35306    LIBS=$OLD_LIBS
35307
35308    if test "$rl_without_curses_ok" = yes; then
35309      { echo "$as_me:$LINENO: result: yes" >&5
35310echo "${ECHO_T}yes" >&6; }
35311      cat >>confdefs.h <<\_ACEOF
35312#define HAVE_LIBREADLINE 1
35313_ACEOF
35314
35315      READLINE_LIB="-lreadline"
35316      use_readline=1
35317    elif test "$rl_with_curses_ok" = yes; then
35318      { echo "$as_me:$LINENO: result: yes" >&5
35319echo "${ECHO_T}yes" >&6; }
35320      cat >>confdefs.h <<\_ACEOF
35321#define HAVE_LIBREADLINE 1
35322_ACEOF
35323
35324      READLINE_LIB="-lreadline -lcurses"
35325      use_readline=1
35326    else
35327      { echo "$as_me:$LINENO: result: no" >&5
35328echo "${ECHO_T}no" >&6; }
35329      echo WARNING: The readline library was disabled because it was not found.
35330    fi
35331  else
35332    { echo "$as_me:$LINENO: result: no" >&5
35333echo "${ECHO_T}no" >&6; }
35334  fi
35335else
35336  { echo "$as_me:$LINENO: result: no" >&5
35337echo "${ECHO_T}no" >&6; }
35338fi
35339
35340
35341if test "${ac_cv_header_readline_history_h+set}" = set; then
35342  { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35343echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35344if test "${ac_cv_header_readline_history_h+set}" = set; then
35345  echo $ECHO_N "(cached) $ECHO_C" >&6
35346fi
35347{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35348echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35349else
35350  # Is the header compilable?
35351{ echo "$as_me:$LINENO: checking readline/history.h usability" >&5
35352echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
35353cat >conftest.$ac_ext <<_ACEOF
35354/* confdefs.h.  */
35355_ACEOF
35356cat confdefs.h >>conftest.$ac_ext
35357cat >>conftest.$ac_ext <<_ACEOF
35358/* end confdefs.h.  */
35359$ac_includes_default
35360#include <readline/history.h>
35361_ACEOF
35362rm -f conftest.$ac_objext
35363if { (ac_try="$ac_compile"
35364case "(($ac_try" in
35365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35366  *) ac_try_echo=$ac_try;;
35367esac
35368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35369  (eval "$ac_compile") 2>conftest.er1
35370  ac_status=$?
35371  grep -v '^ *+' conftest.er1 >conftest.err
35372  rm -f conftest.er1
35373  cat conftest.err >&5
35374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375  (exit $ac_status); } && {
35376	 test -z "$ac_c_werror_flag" ||
35377	 test ! -s conftest.err
35378       } && test -s conftest.$ac_objext; then
35379  ac_header_compiler=yes
35380else
35381  echo "$as_me: failed program was:" >&5
35382sed 's/^/| /' conftest.$ac_ext >&5
35383
35384	ac_header_compiler=no
35385fi
35386
35387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35388{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35389echo "${ECHO_T}$ac_header_compiler" >&6; }
35390
35391# Is the header present?
35392{ echo "$as_me:$LINENO: checking readline/history.h presence" >&5
35393echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
35394cat >conftest.$ac_ext <<_ACEOF
35395/* confdefs.h.  */
35396_ACEOF
35397cat confdefs.h >>conftest.$ac_ext
35398cat >>conftest.$ac_ext <<_ACEOF
35399/* end confdefs.h.  */
35400#include <readline/history.h>
35401_ACEOF
35402if { (ac_try="$ac_cpp conftest.$ac_ext"
35403case "(($ac_try" in
35404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35405  *) ac_try_echo=$ac_try;;
35406esac
35407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35408  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35409  ac_status=$?
35410  grep -v '^ *+' conftest.er1 >conftest.err
35411  rm -f conftest.er1
35412  cat conftest.err >&5
35413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414  (exit $ac_status); } >/dev/null && {
35415	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35416	 test ! -s conftest.err
35417       }; then
35418  ac_header_preproc=yes
35419else
35420  echo "$as_me: failed program was:" >&5
35421sed 's/^/| /' conftest.$ac_ext >&5
35422
35423  ac_header_preproc=no
35424fi
35425
35426rm -f conftest.err conftest.$ac_ext
35427{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35428echo "${ECHO_T}$ac_header_preproc" >&6; }
35429
35430# So?  What about this header?
35431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35432  yes:no: )
35433    { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
35434echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35435    { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
35436echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
35437    ac_header_preproc=yes
35438    ;;
35439  no:yes:* )
35440    { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
35441echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
35442    { echo "$as_me:$LINENO: WARNING: readline/history.h:     check for missing prerequisite headers?" >&5
35443echo "$as_me: WARNING: readline/history.h:     check for missing prerequisite headers?" >&2;}
35444    { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
35445echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
35446    { echo "$as_me:$LINENO: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&5
35447echo "$as_me: WARNING: readline/history.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35448    { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
35449echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
35450    { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
35451echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
35452
35453    ;;
35454esac
35455{ echo "$as_me:$LINENO: checking for readline/history.h" >&5
35456echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35457if test "${ac_cv_header_readline_history_h+set}" = set; then
35458  echo $ECHO_N "(cached) $ECHO_C" >&6
35459else
35460  ac_cv_header_readline_history_h=$ac_header_preproc
35461fi
35462{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35463echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35464
35465fi
35466if test $ac_cv_header_readline_history_h = yes; then
35467  cat >>confdefs.h <<\_ACEOF
35468#define HAVE_READLINE_HISTORY_H 1
35469_ACEOF
35470
35471
35472fi
35473
35474
35475
35476INSTRUMENT_DIR='instrument/stubs'
35477
35478{ echo "$as_me:$LINENO: checking for instrumentation support" >&5
35479echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
35480# Check whether --enable-instrumentation was given.
35481if test "${enable_instrumentation+set}" = set; then
35482  enableval=$enable_instrumentation; if test "$enableval" = yes; then
35483    { echo "$as_me:$LINENO: result: yes" >&5
35484echo "${ECHO_T}yes" >&6; }
35485    cat >>confdefs.h <<\_ACEOF
35486#define BX_INSTRUMENTATION 1
35487_ACEOF
35488
35489    INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35490   elif test "$enableval" = no; then
35491    { echo "$as_me:$LINENO: result: no" >&5
35492echo "${ECHO_T}no" >&6; }
35493    cat >>confdefs.h <<\_ACEOF
35494#define BX_INSTRUMENTATION 0
35495_ACEOF
35496
35497    INSTRUMENT_VAR=''
35498   else
35499    { echo "$as_me:$LINENO: result: yes" >&5
35500echo "${ECHO_T}yes" >&6; }
35501    cat >>confdefs.h <<\_ACEOF
35502#define BX_INSTRUMENTATION 1
35503_ACEOF
35504
35505    INSTRUMENT_DIR=$enableval
35506    INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35507   fi
35508else
35509
35510    { echo "$as_me:$LINENO: result: no" >&5
35511echo "${ECHO_T}no" >&6; }
35512    cat >>confdefs.h <<\_ACEOF
35513#define BX_INSTRUMENTATION 0
35514_ACEOF
35515
35516    INSTRUMENT_VAR=''
35517
35518
35519fi
35520
35521
35522
35523
35524if test "$bx_plugins" = 0; then
35525  case $target in
35526    *-pc-windows*)
35527      DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
35528      ;;
35529    *-cygwin* | *-mingw32*)
35530      DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35531      ;;
35532  esac
35533fi
35534
35535{ echo "$as_me:$LINENO: checking enable logging" >&5
35536echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
35537# Check whether --enable-logging was given.
35538if test "${enable_logging+set}" = set; then
35539  enableval=$enable_logging; if test "$enableval" = yes; then
35540    { echo "$as_me:$LINENO: result: yes" >&5
35541echo "${ECHO_T}yes" >&6; }
35542    cat >>confdefs.h <<\_ACEOF
35543#define BX_NO_LOGGING 0
35544_ACEOF
35545
35546   else
35547    { echo "$as_me:$LINENO: result: no" >&5
35548echo "${ECHO_T}no" >&6; }
35549    cat >>confdefs.h <<\_ACEOF
35550#define BX_NO_LOGGING 1
35551_ACEOF
35552
35553   fi
35554else
35555
35556    { echo "$as_me:$LINENO: result: yes" >&5
35557echo "${ECHO_T}yes" >&6; }
35558    cat >>confdefs.h <<\_ACEOF
35559#define BX_NO_LOGGING 0
35560_ACEOF
35561
35562
35563
35564fi
35565
35566
35567{ echo "$as_me:$LINENO: checking enable assert checks" >&5
35568echo $ECHO_N "checking enable assert checks... $ECHO_C" >&6; }
35569# Check whether --enable-assert-checks was given.
35570if test "${enable_assert_checks+set}" = set; then
35571  enableval=$enable_assert_checks; if test "$enableval" = yes; then
35572    { echo "$as_me:$LINENO: result: yes" >&5
35573echo "${ECHO_T}yes" >&6; }
35574    cat >>confdefs.h <<\_ACEOF
35575#define BX_ASSERT_ENABLE 1
35576_ACEOF
35577
35578   else
35579    { echo "$as_me:$LINENO: result: no" >&5
35580echo "${ECHO_T}no" >&6; }
35581    cat >>confdefs.h <<\_ACEOF
35582#define BX_ASSERT_ENABLE 0
35583_ACEOF
35584
35585   fi
35586else
35587
35588    if test "$bx_debugger" = 1; then
35589      { echo "$as_me:$LINENO: result: yes" >&5
35590echo "${ECHO_T}yes" >&6; }
35591      cat >>confdefs.h <<\_ACEOF
35592#define BX_ASSERT_ENABLE 1
35593_ACEOF
35594
35595    else
35596      { echo "$as_me:$LINENO: result: no" >&5
35597echo "${ECHO_T}no" >&6; }
35598      cat >>confdefs.h <<\_ACEOF
35599#define BX_ASSERT_ENABLE 0
35600_ACEOF
35601
35602    fi
35603
35604
35605fi
35606
35607
35608{ echo "$as_me:$LINENO: checking for raw serial support" >&5
35609echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
35610# Check whether --enable-raw-serial was given.
35611if test "${enable_raw_serial+set}" = set; then
35612  enableval=$enable_raw_serial; if test "$enableval" = yes; then
35613    { echo "$as_me:$LINENO: result: yes" >&5
35614echo "${ECHO_T}yes" >&6; }
35615    cat >>confdefs.h <<\_ACEOF
35616#define USE_RAW_SERIAL 1
35617_ACEOF
35618
35619   else
35620    { echo "$as_me:$LINENO: result: no" >&5
35621echo "${ECHO_T}no" >&6; }
35622    cat >>confdefs.h <<\_ACEOF
35623#define USE_RAW_SERIAL 0
35624_ACEOF
35625
35626   fi
35627else
35628
35629    { echo "$as_me:$LINENO: result: no" >&5
35630echo "${ECHO_T}no" >&6; }
35631    cat >>confdefs.h <<\_ACEOF
35632#define USE_RAW_SERIAL 0
35633_ACEOF
35634
35635
35636
35637fi
35638
35639
35640{ echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
35641echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
35642# Check whether --enable-vbe was given.
35643if test "${enable_vbe+set}" = set; then
35644  enableval=$enable_vbe; if test "$enableval" = yes; then
35645    { echo "$as_me:$LINENO: result: yes" >&5
35646echo "${ECHO_T}yes" >&6; }
35647    cat >>confdefs.h <<\_ACEOF
35648#define BX_SUPPORT_VBE 1
35649_ACEOF
35650
35651    if test "$pci" = 1; then
35652      cat >>confdefs.h <<\_ACEOF
35653#define BX_SUPPORT_PCIVGA 1
35654_ACEOF
35655
35656    fi
35657   else
35658    { echo "$as_me:$LINENO: result: no" >&5
35659echo "${ECHO_T}no" >&6; }
35660    cat >>confdefs.h <<\_ACEOF
35661#define BX_SUPPORT_VBE 0
35662_ACEOF
35663
35664   fi
35665else
35666
35667    { echo "$as_me:$LINENO: result: yes" >&5
35668echo "${ECHO_T}yes" >&6; }
35669    cat >>confdefs.h <<\_ACEOF
35670#define BX_SUPPORT_VBE 1
35671_ACEOF
35672
35673    if test "$pci" = 1; then
35674      cat >>confdefs.h <<\_ACEOF
35675#define BX_SUPPORT_PCIVGA 1
35676_ACEOF
35677
35678    fi
35679
35680
35681fi
35682
35683
35684{ echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
35685echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
35686# Check whether --enable-clgd54xx was given.
35687if test "${enable_clgd54xx+set}" = set; then
35688  enableval=$enable_clgd54xx; if test "$enableval" = yes; then
35689    { echo "$as_me:$LINENO: result: yes" >&5
35690echo "${ECHO_T}yes" >&6; }
35691    cat >>confdefs.h <<\_ACEOF
35692#define BX_SUPPORT_CLGD54XX 1
35693_ACEOF
35694
35695   else
35696    { echo "$as_me:$LINENO: result: no" >&5
35697echo "${ECHO_T}no" >&6; }
35698    cat >>confdefs.h <<\_ACEOF
35699#define BX_SUPPORT_CLGD54XX 0
35700_ACEOF
35701
35702   fi
35703else
35704
35705    { echo "$as_me:$LINENO: result: no" >&5
35706echo "${ECHO_T}no" >&6; }
35707    cat >>confdefs.h <<\_ACEOF
35708#define BX_SUPPORT_CLGD54XX 0
35709_ACEOF
35710
35711
35712
35713fi
35714
35715
35716support_fpu=1
35717{ echo "$as_me:$LINENO: checking for FPU emulation" >&5
35718echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
35719FPU_VAR=''
35720# Check whether --enable-fpu was given.
35721if test "${enable_fpu+set}" = set; then
35722  enableval=$enable_fpu; if test "$enableval" = yes; then
35723    { echo "$as_me:$LINENO: result: yes" >&5
35724echo "${ECHO_T}yes" >&6; }
35725    cat >>confdefs.h <<\_ACEOF
35726#define BX_SUPPORT_FPU 1
35727_ACEOF
35728
35729    FPU_VAR='$(FPU_LIB)'
35730   elif test "$enableval" = no; then
35731    { echo "$as_me:$LINENO: result: no" >&5
35732echo "${ECHO_T}no" >&6; }
35733    cat >>confdefs.h <<\_ACEOF
35734#define BX_SUPPORT_FPU 0
35735_ACEOF
35736
35737    support_fpu=0
35738   else
35739    echo " "
35740    echo "ERROR: --enable-fpu does not accept a path"
35741    exit 1
35742   fi
35743
35744else
35745
35746    { echo "$as_me:$LINENO: result: yes" >&5
35747echo "${ECHO_T}yes" >&6; }
35748    cat >>confdefs.h <<\_ACEOF
35749#define BX_SUPPORT_FPU 1
35750_ACEOF
35751
35752    FPU_VAR='$(FPU_LIB)'
35753
35754
35755fi
35756
35757
35758
35759{ echo "$as_me:$LINENO: checking for VME support" >&5
35760echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
35761# Check whether --enable-vme was given.
35762if test "${enable_vme+set}" = set; then
35763  enableval=$enable_vme; if test "$enableval" = yes; then
35764    { echo "$as_me:$LINENO: result: yes" >&5
35765echo "${ECHO_T}yes" >&6; }
35766    cat >>confdefs.h <<\_ACEOF
35767#define BX_SUPPORT_VME 1
35768_ACEOF
35769
35770   elif test "$enableval" = no; then
35771    { echo "$as_me:$LINENO: result: no" >&5
35772echo "${ECHO_T}no" >&6; }
35773    cat >>confdefs.h <<\_ACEOF
35774#define BX_SUPPORT_VME 0
35775_ACEOF
35776
35777   fi
35778
35779else
35780
35781    if test "$bx_cpu_level" -ge 5; then
35782      { echo "$as_me:$LINENO: result: yes" >&5
35783echo "${ECHO_T}yes" >&6; }
35784      cat >>confdefs.h <<\_ACEOF
35785#define BX_SUPPORT_VME 1
35786_ACEOF
35787
35788    else
35789      { echo "$as_me:$LINENO: result: no" >&5
35790echo "${ECHO_T}no" >&6; }
35791      cat >>confdefs.h <<\_ACEOF
35792#define BX_SUPPORT_VME 0
35793_ACEOF
35794
35795    fi
35796
35797
35798fi
35799
35800
35801{ echo "$as_me:$LINENO: checking for VMX support" >&5
35802echo $ECHO_N "checking for VMX support... $ECHO_C" >&6; }
35803# Check whether --enable-vmx was given.
35804if test "${enable_vmx+set}" = set; then
35805  enableval=$enable_vmx; if test "$enableval" = yes; then
35806    { echo "$as_me:$LINENO: result: yes" >&5
35807echo "${ECHO_T}yes" >&6; }
35808    cat >>confdefs.h <<\_ACEOF
35809#define BX_SUPPORT_VMX 1
35810_ACEOF
35811
35812   elif test "$enableval" = no; then
35813    { echo "$as_me:$LINENO: result: no" >&5
35814echo "${ECHO_T}no" >&6; }
35815    cat >>confdefs.h <<\_ACEOF
35816#define BX_SUPPORT_VMX 0
35817_ACEOF
35818
35819   fi
35820
35821else
35822
35823    { echo "$as_me:$LINENO: result: no" >&5
35824echo "${ECHO_T}no" >&6; }
35825    cat >>confdefs.h <<\_ACEOF
35826#define BX_SUPPORT_VMX 0
35827_ACEOF
35828
35829
35830
35831fi
35832
35833
35834support_mmx=1
35835{ echo "$as_me:$LINENO: checking for MMX support" >&5
35836echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
35837# Check whether --enable-mmx was given.
35838if test "${enable_mmx+set}" = set; then
35839  enableval=$enable_mmx; if test "$enableval" = yes; then
35840    { echo "$as_me:$LINENO: result: yes" >&5
35841echo "${ECHO_T}yes" >&6; }
35842    cat >>confdefs.h <<\_ACEOF
35843#define BX_SUPPORT_MMX 1
35844_ACEOF
35845
35846   elif test "$enableval" = no; then
35847    { echo "$as_me:$LINENO: result: no" >&5
35848echo "${ECHO_T}no" >&6; }
35849    cat >>confdefs.h <<\_ACEOF
35850#define BX_SUPPORT_MMX 0
35851_ACEOF
35852
35853    support_mmx=0
35854   fi
35855
35856else
35857
35858    if test "$bx_cpu_level" -ge 5; then
35859      { echo "$as_me:$LINENO: result: yes" >&5
35860echo "${ECHO_T}yes" >&6; }
35861      cat >>confdefs.h <<\_ACEOF
35862#define BX_SUPPORT_MMX 1
35863_ACEOF
35864
35865    else
35866      { echo "$as_me:$LINENO: result: no" >&5
35867echo "${ECHO_T}no" >&6; }
35868      cat >>confdefs.h <<\_ACEOF
35869#define BX_SUPPORT_MMX 0
35870_ACEOF
35871
35872    fi
35873
35874
35875fi
35876
35877
35878{ echo "$as_me:$LINENO: checking for 3DNow! support" >&5
35879echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
35880# Check whether --enable-3dnow was given.
35881if test "${enable_3dnow+set}" = set; then
35882  enableval=$enable_3dnow; if test "$enableval" = yes; then
35883    { echo "$as_me:$LINENO: result: yes" >&5
35884echo "${ECHO_T}yes" >&6; }
35885    cat >>confdefs.h <<\_ACEOF
35886#define BX_SUPPORT_3DNOW 1
35887_ACEOF
35888
35889   elif test "$enableval" = no; then
35890    { echo "$as_me:$LINENO: result: no" >&5
35891echo "${ECHO_T}no" >&6; }
35892    cat >>confdefs.h <<\_ACEOF
35893#define BX_SUPPORT_3DNOW 0
35894_ACEOF
35895
35896   fi
35897
35898else
35899
35900    { echo "$as_me:$LINENO: result: no" >&5
35901echo "${ECHO_T}no" >&6; }
35902    cat >>confdefs.h <<\_ACEOF
35903#define BX_SUPPORT_3DNOW 0
35904_ACEOF
35905
35906
35907
35908fi
35909
35910
35911support_sse=0
35912{ echo "$as_me:$LINENO: checking for SSE support" >&5
35913echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
35914# Check whether --enable-sse was given.
35915if test "${enable_sse+set}" = set; then
35916  enableval=$enable_sse; case "$enableval" in
35917    no | 0)
35918      support_sse=0
35919      { echo "$as_me:$LINENO: result: no" >&5
35920echo "${ECHO_T}no" >&6; }
35921      ;;
35922    yes | 1)
35923      support_sse=1
35924      { echo "$as_me:$LINENO: result: SSE1" >&5
35925echo "${ECHO_T}SSE1" >&6; }
35926      ;;
35927    2)
35928      support_sse=2
35929      { echo "$as_me:$LINENO: result: SSE2" >&5
35930echo "${ECHO_T}SSE2" >&6; }
35931      ;;
35932    3)
35933      support_sse=3
35934      { echo "$as_me:$LINENO: result: SSE3" >&5
35935echo "${ECHO_T}SSE3" >&6; }
35936      ;;
35937    4)
35938      support_sse=4
35939      { echo "$as_me:$LINENO: result: SSE4" >&5
35940echo "${ECHO_T}SSE4" >&6; }
35941      ;;
35942    *)
35943      echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
35944      exit 1
35945      ;;
35946   esac
35947
35948else
35949
35950    if test "$use_x86_64" = 1; then
35951      support_sse=2
35952      { echo "$as_me:$LINENO: result: SSE2" >&5
35953echo "${ECHO_T}SSE2" >&6; }
35954    else
35955      { echo "$as_me:$LINENO: result: no" >&5
35956echo "${ECHO_T}no" >&6; }
35957    fi
35958
35959
35960fi
35961
35962
35963if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
35964  { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
35965echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
35966   { (exit 1); exit 1; }; }
35967fi
35968
35969if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
35970  { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
35971echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
35972   { (exit 1); exit 1; }; }
35973fi
35974
35975if test "$support_sse" = 4; then
35976  cat >>confdefs.h <<\_ACEOF
35977#define BX_SUPPORT_SSE 4
35978_ACEOF
35979
35980elif test "$support_sse" = 3; then
35981  cat >>confdefs.h <<\_ACEOF
35982#define BX_SUPPORT_SSE 3
35983_ACEOF
35984
35985elif test "$support_sse" = 2; then
35986  cat >>confdefs.h <<\_ACEOF
35987#define BX_SUPPORT_SSE 2
35988_ACEOF
35989
35990elif test "$support_sse" = 1; then
35991  cat >>confdefs.h <<\_ACEOF
35992#define BX_SUPPORT_SSE 1
35993_ACEOF
35994
35995else
35996  cat >>confdefs.h <<\_ACEOF
35997#define BX_SUPPORT_SSE 0
35998_ACEOF
35999
36000fi
36001
36002support_sse_extensions=0
36003{ echo "$as_me:$LINENO: checking for SSE extensions support" >&5
36004echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
36005# Check whether --enable-sse-extension was given.
36006if test "${enable_sse_extension+set}" = set; then
36007  enableval=$enable_sse_extension; if test "$enableval" = yes; then
36008    { echo "$as_me:$LINENO: result: yes" >&5
36009echo "${ECHO_T}yes" >&6; }
36010    cat >>confdefs.h <<\_ACEOF
36011#define BX_SUPPORT_SSE_EXTENSION 1
36012_ACEOF
36013
36014    support_sse_extensions=1
36015   elif test "$enableval" = no; then
36016    { echo "$as_me:$LINENO: result: no" >&5
36017echo "${ECHO_T}no" >&6; }
36018    cat >>confdefs.h <<\_ACEOF
36019#define BX_SUPPORT_SSE_EXTENSION 0
36020_ACEOF
36021
36022   fi
36023
36024else
36025
36026    { echo "$as_me:$LINENO: result: no" >&5
36027echo "${ECHO_T}no" >&6; }
36028    cat >>confdefs.h <<\_ACEOF
36029#define BX_SUPPORT_SSE_EXTENSION 0
36030_ACEOF
36031
36032
36033
36034fi
36035
36036
36037{ echo "$as_me:$LINENO: checking for DAZ support" >&5
36038echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
36039# Check whether --enable-daz was given.
36040if test "${enable_daz+set}" = set; then
36041  enableval=$enable_daz; if test "$enableval" = yes; then
36042    { echo "$as_me:$LINENO: result: yes" >&5
36043echo "${ECHO_T}yes" >&6; }
36044    cat >>confdefs.h <<\_ACEOF
36045#define BX_SUPPORT_DAZ 1
36046_ACEOF
36047
36048   elif test "$enableval" = no; then
36049    { echo "$as_me:$LINENO: result: no" >&5
36050echo "${ECHO_T}no" >&6; }
36051    cat >>confdefs.h <<\_ACEOF
36052#define BX_SUPPORT_DAZ 0
36053_ACEOF
36054
36055   fi
36056
36057else
36058
36059    if test "$support_sse" -ge 2; then
36060      { echo "$as_me:$LINENO: result: yes" >&5
36061echo "${ECHO_T}yes" >&6; }
36062      cat >>confdefs.h <<\_ACEOF
36063#define BX_SUPPORT_DAZ 1
36064_ACEOF
36065
36066    else
36067      { echo "$as_me:$LINENO: result: no" >&5
36068echo "${ECHO_T}no" >&6; }
36069      cat >>confdefs.h <<\_ACEOF
36070#define BX_SUPPORT_DAZ 0
36071_ACEOF
36072
36073    fi
36074
36075
36076fi
36077
36078
36079use_xsave=0
36080{ echo "$as_me:$LINENO: checking for XSAVE/XRSTOR support" >&5
36081echo $ECHO_N "checking for XSAVE/XRSTOR support... $ECHO_C" >&6; }
36082# Check whether --enable-xsave was given.
36083if test "${enable_xsave+set}" = set; then
36084  enableval=$enable_xsave; if test "$enableval" = yes; then
36085    { echo "$as_me:$LINENO: result: yes" >&5
36086echo "${ECHO_T}yes" >&6; }
36087    cat >>confdefs.h <<\_ACEOF
36088#define BX_SUPPORT_XSAVE 1
36089_ACEOF
36090
36091    use_xsave=1
36092   elif test "$enableval" = no; then
36093    { echo "$as_me:$LINENO: result: no" >&5
36094echo "${ECHO_T}no" >&6; }
36095    cat >>confdefs.h <<\_ACEOF
36096#define BX_SUPPORT_XSAVE 0
36097_ACEOF
36098
36099   fi
36100
36101else
36102
36103    { echo "$as_me:$LINENO: result: no" >&5
36104echo "${ECHO_T}no" >&6; }
36105    cat >>confdefs.h <<\_ACEOF
36106#define BX_SUPPORT_XSAVE 0
36107_ACEOF
36108
36109
36110
36111fi
36112
36113
36114if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
36115  { { echo "$as_me:$LINENO: error: XSAVE requires SSE support!" >&5
36116echo "$as_me: error: XSAVE requires SSE support!" >&2;}
36117   { (exit 1); exit 1; }; }
36118fi
36119
36120use_aes=0
36121{ echo "$as_me:$LINENO: checking for AES instructions support" >&5
36122echo $ECHO_N "checking for AES instructions support... $ECHO_C" >&6; }
36123# Check whether --enable-aes was given.
36124if test "${enable_aes+set}" = set; then
36125  enableval=$enable_aes; if test "$enableval" = yes; then
36126    { echo "$as_me:$LINENO: result: yes" >&5
36127echo "${ECHO_T}yes" >&6; }
36128    cat >>confdefs.h <<\_ACEOF
36129#define BX_SUPPORT_AES 1
36130_ACEOF
36131
36132    use_aes=1
36133   elif test "$enableval" = no; then
36134    { echo "$as_me:$LINENO: result: no" >&5
36135echo "${ECHO_T}no" >&6; }
36136    cat >>confdefs.h <<\_ACEOF
36137#define BX_SUPPORT_AES 0
36138_ACEOF
36139
36140   fi
36141
36142else
36143
36144    { echo "$as_me:$LINENO: result: no" >&5
36145echo "${ECHO_T}no" >&6; }
36146    cat >>confdefs.h <<\_ACEOF
36147#define BX_SUPPORT_AES 0
36148_ACEOF
36149
36150
36151
36152fi
36153
36154
36155if test "$support_sse" -lt 1 -a "$use_aes" = 1; then
36156  { { echo "$as_me:$LINENO: error: AES requires SSE support!" >&5
36157echo "$as_me: error: AES requires SSE support!" >&2;}
36158   { (exit 1); exit 1; }; }
36159fi
36160
36161{ echo "$as_me:$LINENO: checking for alignment check support" >&5
36162echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
36163# Check whether --enable-alignment-check was given.
36164if test "${enable_alignment_check+set}" = set; then
36165  enableval=$enable_alignment_check; if test "$enableval" = yes; then
36166    { echo "$as_me:$LINENO: result: yes" >&5
36167echo "${ECHO_T}yes" >&6; }
36168    cat >>confdefs.h <<\_ACEOF
36169#define BX_SUPPORT_ALIGNMENT_CHECK 1
36170_ACEOF
36171
36172   elif test "$enableval" = no; then
36173    { echo "$as_me:$LINENO: result: no" >&5
36174echo "${ECHO_T}no" >&6; }
36175    cat >>confdefs.h <<\_ACEOF
36176#define BX_SUPPORT_ALIGNMENT_CHECK 0
36177_ACEOF
36178
36179   fi
36180
36181else
36182
36183    if test "$bx_cpu_level" -gt 3; then
36184      { echo "$as_me:$LINENO: result: yes" >&5
36185echo "${ECHO_T}yes" >&6; }
36186      cat >>confdefs.h <<\_ACEOF
36187#define BX_SUPPORT_ALIGNMENT_CHECK 1
36188_ACEOF
36189
36190    else
36191      { echo "$as_me:$LINENO: result: no" >&5
36192echo "${ECHO_T}no" >&6; }
36193      cat >>confdefs.h <<\_ACEOF
36194#define BX_SUPPORT_ALIGNMENT_CHECK 0
36195_ACEOF
36196
36197    fi
36198
36199
36200fi
36201
36202
36203{ echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
36204echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
36205# Check whether --enable-misaligned-sse was given.
36206if test "${enable_misaligned_sse+set}" = set; then
36207  enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
36208    { echo "$as_me:$LINENO: result: yes" >&5
36209echo "${ECHO_T}yes" >&6; }
36210    cat >>confdefs.h <<\_ACEOF
36211#define BX_SUPPORT_MISALIGNED_SSE 1
36212_ACEOF
36213
36214   elif test "$enableval" = no; then
36215    { echo "$as_me:$LINENO: result: no" >&5
36216echo "${ECHO_T}no" >&6; }
36217    cat >>confdefs.h <<\_ACEOF
36218#define BX_SUPPORT_MISALIGNED_SSE 0
36219_ACEOF
36220
36221   fi
36222
36223else
36224
36225    { echo "$as_me:$LINENO: result: no" >&5
36226echo "${ECHO_T}no" >&6; }
36227    cat >>confdefs.h <<\_ACEOF
36228#define BX_SUPPORT_MISALIGNED_SSE 0
36229_ACEOF
36230
36231
36232
36233fi
36234
36235
36236{ echo "$as_me:$LINENO: checking for SEP support" >&5
36237echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
36238# Check whether --enable-sep was given.
36239if test "${enable_sep+set}" = set; then
36240  enableval=$enable_sep; if test "$enableval" = yes; then
36241    { echo "$as_me:$LINENO: result: yes" >&5
36242echo "${ECHO_T}yes" >&6; }
36243    cat >>confdefs.h <<\_ACEOF
36244#define BX_SUPPORT_SEP 1
36245_ACEOF
36246
36247   elif test "$enableval" = no; then
36248    { echo "$as_me:$LINENO: result: no" >&5
36249echo "${ECHO_T}no" >&6; }
36250    cat >>confdefs.h <<\_ACEOF
36251#define BX_SUPPORT_SEP 0
36252_ACEOF
36253
36254   fi
36255
36256else
36257
36258    if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
36259      { echo "$as_me:$LINENO: result: yes" >&5
36260echo "${ECHO_T}yes" >&6; }
36261      cat >>confdefs.h <<\_ACEOF
36262#define BX_SUPPORT_SEP 1
36263_ACEOF
36264
36265    else
36266      { echo "$as_me:$LINENO: result: no" >&5
36267echo "${ECHO_T}no" >&6; }
36268      cat >>confdefs.h <<\_ACEOF
36269#define BX_SUPPORT_SEP 0
36270_ACEOF
36271
36272    fi
36273
36274
36275fi
36276
36277
36278{ echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
36279echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
36280# Check whether --enable-popcnt was given.
36281if test "${enable_popcnt+set}" = set; then
36282  enableval=$enable_popcnt; if test "$enableval" = yes; then
36283    { echo "$as_me:$LINENO: result: yes" >&5
36284echo "${ECHO_T}yes" >&6; }
36285    cat >>confdefs.h <<\_ACEOF
36286#define BX_SUPPORT_POPCNT 1
36287_ACEOF
36288
36289   elif test "$enableval" = no; then
36290    { echo "$as_me:$LINENO: result: no" >&5
36291echo "${ECHO_T}no" >&6; }
36292    cat >>confdefs.h <<\_ACEOF
36293#define BX_SUPPORT_POPCNT 0
36294_ACEOF
36295
36296   fi
36297
36298else
36299
36300    if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
36301      { echo "$as_me:$LINENO: result: yes" >&5
36302echo "${ECHO_T}yes" >&6; }
36303      cat >>confdefs.h <<\_ACEOF
36304#define BX_SUPPORT_POPCNT 1
36305_ACEOF
36306
36307    else
36308      { echo "$as_me:$LINENO: result: no" >&5
36309echo "${ECHO_T}no" >&6; }
36310      cat >>confdefs.h <<\_ACEOF
36311#define BX_SUPPORT_POPCNT 0
36312_ACEOF
36313
36314    fi
36315
36316
36317fi
36318
36319
36320{ echo "$as_me:$LINENO: checking for MOVBE instruction support" >&5
36321echo $ECHO_N "checking for MOVBE instruction support... $ECHO_C" >&6; }
36322# Check whether --enable-movbe was given.
36323if test "${enable_movbe+set}" = set; then
36324  enableval=$enable_movbe; if test "$enableval" = yes; then
36325    { echo "$as_me:$LINENO: result: yes" >&5
36326echo "${ECHO_T}yes" >&6; }
36327    cat >>confdefs.h <<\_ACEOF
36328#define BX_SUPPORT_MOVBE 1
36329_ACEOF
36330
36331   elif test "$enableval" = no; then
36332    { echo "$as_me:$LINENO: result: no" >&5
36333echo "${ECHO_T}no" >&6; }
36334    cat >>confdefs.h <<\_ACEOF
36335#define BX_SUPPORT_MOVBE 0
36336_ACEOF
36337
36338   fi
36339
36340else
36341
36342    { echo "$as_me:$LINENO: result: no" >&5
36343echo "${ECHO_T}no" >&6; }
36344    cat >>confdefs.h <<\_ACEOF
36345#define BX_SUPPORT_MOVBE 0
36346_ACEOF
36347
36348
36349
36350fi
36351
36352
36353{ echo "$as_me:$LINENO: checking for MONITOR/MWAIT instructions support (experimental)" >&5
36354echo $ECHO_N "checking for MONITOR/MWAIT instructions support (experimental)... $ECHO_C" >&6; }
36355# Check whether --enable-monitor_mwait was given.
36356if test "${enable_monitor_mwait+set}" = set; then
36357  enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
36358    { echo "$as_me:$LINENO: result: yes" >&5
36359echo "${ECHO_T}yes" >&6; }
36360    cat >>confdefs.h <<\_ACEOF
36361#define BX_SUPPORT_MONITOR_MWAIT 1
36362_ACEOF
36363
36364   elif test "$enableval" = no; then
36365    { echo "$as_me:$LINENO: result: no" >&5
36366echo "${ECHO_T}no" >&6; }
36367    cat >>confdefs.h <<\_ACEOF
36368#define BX_SUPPORT_MONITOR_MWAIT 0
36369_ACEOF
36370
36371   fi
36372
36373else
36374
36375    { echo "$as_me:$LINENO: result: no" >&5
36376echo "${ECHO_T}no" >&6; }
36377    cat >>confdefs.h <<\_ACEOF
36378#define BX_SUPPORT_MONITOR_MWAIT 0
36379_ACEOF
36380
36381
36382
36383fi
36384
36385
36386{ echo "$as_me:$LINENO: checking for x86 debugger support" >&5
36387echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6; }
36388# Check whether --enable-x86-debugger was given.
36389if test "${enable_x86_debugger+set}" = set; then
36390  enableval=$enable_x86_debugger; if test "$enableval" = yes; then
36391    { echo "$as_me:$LINENO: result: yes" >&5
36392echo "${ECHO_T}yes" >&6; }
36393    cat >>confdefs.h <<\_ACEOF
36394#define BX_X86_DEBUGGER 1
36395_ACEOF
36396
36397   elif test "$enableval" = no; then
36398    { echo "$as_me:$LINENO: result: no" >&5
36399echo "${ECHO_T}no" >&6; }
36400    cat >>confdefs.h <<\_ACEOF
36401#define BX_X86_DEBUGGER 0
36402_ACEOF
36403
36404   fi
36405
36406else
36407
36408    { echo "$as_me:$LINENO: result: no" >&5
36409echo "${ECHO_T}no" >&6; }
36410    cat >>confdefs.h <<\_ACEOF
36411#define BX_X86_DEBUGGER 0
36412_ACEOF
36413
36414
36415
36416fi
36417
36418
36419if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36420  { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
36421echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
36422if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36423  echo $ECHO_N "(cached) $ECHO_C" >&6
36424fi
36425{ echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36426echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36427else
36428  # Is the header compilable?
36429{ echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h usability" >&5
36430echo $ECHO_N "checking IOKit/storage/IOCDMedia.h usability... $ECHO_C" >&6; }
36431cat >conftest.$ac_ext <<_ACEOF
36432/* confdefs.h.  */
36433_ACEOF
36434cat confdefs.h >>conftest.$ac_ext
36435cat >>conftest.$ac_ext <<_ACEOF
36436/* end confdefs.h.  */
36437$ac_includes_default
36438#include <IOKit/storage/IOCDMedia.h>
36439_ACEOF
36440rm -f conftest.$ac_objext
36441if { (ac_try="$ac_compile"
36442case "(($ac_try" in
36443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36444  *) ac_try_echo=$ac_try;;
36445esac
36446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36447  (eval "$ac_compile") 2>conftest.er1
36448  ac_status=$?
36449  grep -v '^ *+' conftest.er1 >conftest.err
36450  rm -f conftest.er1
36451  cat conftest.err >&5
36452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453  (exit $ac_status); } && {
36454	 test -z "$ac_c_werror_flag" ||
36455	 test ! -s conftest.err
36456       } && test -s conftest.$ac_objext; then
36457  ac_header_compiler=yes
36458else
36459  echo "$as_me: failed program was:" >&5
36460sed 's/^/| /' conftest.$ac_ext >&5
36461
36462	ac_header_compiler=no
36463fi
36464
36465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36466{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36467echo "${ECHO_T}$ac_header_compiler" >&6; }
36468
36469# Is the header present?
36470{ echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h presence" >&5
36471echo $ECHO_N "checking IOKit/storage/IOCDMedia.h presence... $ECHO_C" >&6; }
36472cat >conftest.$ac_ext <<_ACEOF
36473/* confdefs.h.  */
36474_ACEOF
36475cat confdefs.h >>conftest.$ac_ext
36476cat >>conftest.$ac_ext <<_ACEOF
36477/* end confdefs.h.  */
36478#include <IOKit/storage/IOCDMedia.h>
36479_ACEOF
36480if { (ac_try="$ac_cpp conftest.$ac_ext"
36481case "(($ac_try" in
36482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36483  *) ac_try_echo=$ac_try;;
36484esac
36485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36486  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36487  ac_status=$?
36488  grep -v '^ *+' conftest.er1 >conftest.err
36489  rm -f conftest.er1
36490  cat conftest.err >&5
36491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492  (exit $ac_status); } >/dev/null && {
36493	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36494	 test ! -s conftest.err
36495       }; then
36496  ac_header_preproc=yes
36497else
36498  echo "$as_me: failed program was:" >&5
36499sed 's/^/| /' conftest.$ac_ext >&5
36500
36501  ac_header_preproc=no
36502fi
36503
36504rm -f conftest.err conftest.$ac_ext
36505{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36506echo "${ECHO_T}$ac_header_preproc" >&6; }
36507
36508# So?  What about this header?
36509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36510  yes:no: )
36511    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&5
36512echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36513    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&5
36514echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&2;}
36515    ac_header_preproc=yes
36516    ;;
36517  no:yes:* )
36518    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&5
36519echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&2;}
36520    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h:     check for missing prerequisite headers?" >&5
36521echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h:     check for missing prerequisite headers?" >&2;}
36522    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&5
36523echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&2;}
36524    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h:     section \"Present But Cannot Be Compiled\"" >&5
36525echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h:     section \"Present But Cannot Be Compiled\"" >&2;}
36526    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&5
36527echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&2;}
36528    { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&5
36529echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&2;}
36530
36531    ;;
36532esac
36533{ echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
36534echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
36535if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36536  echo $ECHO_N "(cached) $ECHO_C" >&6
36537else
36538  ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
36539fi
36540{ echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36541echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36542
36543fi
36544if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
36545  can_use_osx_cdrom=yes
36546
36547fi
36548
36549
36550
36551{ echo "$as_me:$LINENO: checking for CDROM support" >&5
36552echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6; }
36553# Check whether --enable-cdrom was given.
36554if test "${enable_cdrom+set}" = set; then
36555  enableval=$enable_cdrom; if test "$enableval" = no; then
36556     bx_cdrom=0
36557   else
36558     bx_cdrom=1
36559   fi
36560else
36561   bx_cdrom=1
36562
36563fi
36564
36565
36566if test "$bx_cdrom" = 1; then
36567    { echo "$as_me:$LINENO: result: yes" >&5
36568echo "${ECHO_T}yes" >&6; }
36569    CDROM_OBJS='cdrom.o'
36570    if test "$with_amigaos" = yes; then
36571      # use the amiga cdrom file instead.
36572      CDROM_OBJS="cdrom_amigaos.o"
36573    elif test "$can_use_osx_cdrom" = yes; then
36574      # use cdrom_osx
36575      { echo "$as_me:$LINENO: result: Using OSX IOKit CD Interface" >&5
36576echo "${ECHO_T}Using OSX IOKit CD Interface" >&6; }
36577      CDROM_OBJS="cdrom.o"
36578      EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit -framework CoreFoundation "'$(GUI_LINK_OPTS)'
36579    fi
36580    case $target in
36581      *-beos*)
36582	# use the beos cdrom file instead
36583	CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
36584    esac
36585    cat >>confdefs.h <<\_ACEOF
36586#define BX_SUPPORT_CDROM 1
36587_ACEOF
36588
36589else
36590    { echo "$as_me:$LINENO: result: no" >&5
36591echo "${ECHO_T}no" >&6; }
36592    CDROM_OBJS=''
36593    cat >>confdefs.h <<\_ACEOF
36594#define BX_SUPPORT_CDROM 0
36595_ACEOF
36596
36597fi
36598
36599
36600
36601
36602bx_have_alsa=0
36603if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36604  { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
36605echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
36606if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36607  echo $ECHO_N "(cached) $ECHO_C" >&6
36608fi
36609{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
36610echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36611else
36612  # Is the header compilable?
36613{ echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
36614echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
36615cat >conftest.$ac_ext <<_ACEOF
36616/* confdefs.h.  */
36617_ACEOF
36618cat confdefs.h >>conftest.$ac_ext
36619cat >>conftest.$ac_ext <<_ACEOF
36620/* end confdefs.h.  */
36621$ac_includes_default
36622#include <alsa/asoundlib.h>
36623_ACEOF
36624rm -f conftest.$ac_objext
36625if { (ac_try="$ac_compile"
36626case "(($ac_try" in
36627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36628  *) ac_try_echo=$ac_try;;
36629esac
36630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36631  (eval "$ac_compile") 2>conftest.er1
36632  ac_status=$?
36633  grep -v '^ *+' conftest.er1 >conftest.err
36634  rm -f conftest.er1
36635  cat conftest.err >&5
36636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637  (exit $ac_status); } && {
36638	 test -z "$ac_c_werror_flag" ||
36639	 test ! -s conftest.err
36640       } && test -s conftest.$ac_objext; then
36641  ac_header_compiler=yes
36642else
36643  echo "$as_me: failed program was:" >&5
36644sed 's/^/| /' conftest.$ac_ext >&5
36645
36646	ac_header_compiler=no
36647fi
36648
36649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36651echo "${ECHO_T}$ac_header_compiler" >&6; }
36652
36653# Is the header present?
36654{ echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
36655echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
36656cat >conftest.$ac_ext <<_ACEOF
36657/* confdefs.h.  */
36658_ACEOF
36659cat confdefs.h >>conftest.$ac_ext
36660cat >>conftest.$ac_ext <<_ACEOF
36661/* end confdefs.h.  */
36662#include <alsa/asoundlib.h>
36663_ACEOF
36664if { (ac_try="$ac_cpp conftest.$ac_ext"
36665case "(($ac_try" in
36666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36667  *) ac_try_echo=$ac_try;;
36668esac
36669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36671  ac_status=$?
36672  grep -v '^ *+' conftest.er1 >conftest.err
36673  rm -f conftest.er1
36674  cat conftest.err >&5
36675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676  (exit $ac_status); } >/dev/null && {
36677	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36678	 test ! -s conftest.err
36679       }; then
36680  ac_header_preproc=yes
36681else
36682  echo "$as_me: failed program was:" >&5
36683sed 's/^/| /' conftest.$ac_ext >&5
36684
36685  ac_header_preproc=no
36686fi
36687
36688rm -f conftest.err conftest.$ac_ext
36689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36690echo "${ECHO_T}$ac_header_preproc" >&6; }
36691
36692# So?  What about this header?
36693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36694  yes:no: )
36695    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36696echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36697    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
36698echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
36699    ac_header_preproc=yes
36700    ;;
36701  no:yes:* )
36702    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
36703echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
36704    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&5
36705echo "$as_me: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&2;}
36706    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
36707echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
36708    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&5
36709echo "$as_me: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
36710    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
36711echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
36712    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
36713echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
36714
36715    ;;
36716esac
36717{ echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
36718echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
36719if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36720  echo $ECHO_N "(cached) $ECHO_C" >&6
36721else
36722  ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
36723fi
36724{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
36725echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36726
36727fi
36728if test $ac_cv_header_alsa_asoundlib_h = yes; then
36729  bx_have_alsa=1
36730fi
36731
36732
36733
36734{ echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
36735echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
36736SB16_OBJS=''
36737SOUNDLOW_OBJS=''
36738GAME_OBJS=''
36739gameport_present=0
36740# Check whether --enable-sb16 was given.
36741if test "${enable_sb16+set}" = set; then
36742  enableval=$enable_sb16; if test "$enableval" = no; then
36743     { echo "$as_me:$LINENO: result: no" >&5
36744echo "${ECHO_T}no" >&6; }
36745     cat >>confdefs.h <<\_ACEOF
36746#define BX_SUPPORT_SB16 0
36747_ACEOF
36748
36749   else
36750     case "$enableval" in
36751       dummy)
36752         SOUNDLOW_OBJS=''
36753         cat >>confdefs.h <<\_ACEOF
36754#define BX_SOUND_OUTPUT_C bx_sound_output_c
36755_ACEOF
36756
36757         { echo "$as_me:$LINENO: result: dummy" >&5
36758echo "${ECHO_T}dummy" >&6; }
36759         ;;
36760       freebsd|linux)
36761         SOUNDLOW_OBJS='soundlnx.o'
36762         cat >>confdefs.h <<\_ACEOF
36763#define BX_SOUND_OUTPUT_C bx_sound_linux_c
36764_ACEOF
36765
36766         if test "$bx_have_alsa" = 1; then
36767           cat >>confdefs.h <<\_ACEOF
36768#define BX_HAVE_ALSASOUND 1
36769_ACEOF
36770
36771           if test "$bx_plugins" = 1; then
36772             SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36773           else
36774             DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36775           fi
36776         fi
36777         { echo "$as_me:$LINENO: result: linux" >&5
36778echo "${ECHO_T}linux" >&6; }
36779         ;;
36780       win)
36781         SOUNDLOW_OBJS='soundwin.o'
36782         cat >>confdefs.h <<\_ACEOF
36783#define BX_SOUND_OUTPUT_C bx_sound_windows_c
36784_ACEOF
36785
36786         { echo "$as_me:$LINENO: result: win" >&5
36787echo "${ECHO_T}win" >&6; }
36788         case $target in
36789           *-pc-windows*)
36790             DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36791             ;;
36792           *)
36793             DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36794             ;;
36795         esac
36796         ;;
36797       osx)
36798         SOUNDLOW_OBJS='soundosx.o'
36799         cat >>confdefs.h <<\_ACEOF
36800#define BX_SOUND_OUTPUT_C bx_sound_osx_c
36801_ACEOF
36802
36803         { echo "$as_me:$LINENO: result: osx" >&5
36804echo "${ECHO_T}osx" >&6; }
36805         DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36806         ;;
36807       yes)
36808         case "$target" in
36809           *-linux* | *-freebsd*)
36810             SOUNDLOW_OBJS='soundlnx.o'
36811             cat >>confdefs.h <<\_ACEOF
36812#define BX_SOUND_OUTPUT_C bx_sound_linux_c
36813_ACEOF
36814
36815             if test "$bx_have_alsa" = 1; then
36816               cat >>confdefs.h <<\_ACEOF
36817#define BX_HAVE_ALSASOUND 1
36818_ACEOF
36819
36820               if test "$bx_plugins" = 1; then
36821                 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36822               else
36823                 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36824               fi
36825             fi
36826             { echo "$as_me:$LINENO: result: linux" >&5
36827echo "${ECHO_T}linux" >&6; }
36828             ;;
36829           *-pc-windows*)
36830             SOUNDLOW_OBJS='soundwin.o'
36831             cat >>confdefs.h <<\_ACEOF
36832#define BX_SOUND_OUTPUT_C bx_sound_windows_c
36833_ACEOF
36834
36835             { echo "$as_me:$LINENO: result: win" >&5
36836echo "${ECHO_T}win" >&6; }
36837             DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36838             ;;
36839           *-cygwin* | *-mingw32*)
36840             SOUNDLOW_OBJS='soundwin.o'
36841             cat >>confdefs.h <<\_ACEOF
36842#define BX_SOUND_OUTPUT_C bx_sound_windows_c
36843_ACEOF
36844
36845             { echo "$as_me:$LINENO: result: win" >&5
36846echo "${ECHO_T}win" >&6; }
36847             DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36848             ;;
36849           *-macosx* | *-macos*)
36850             SOUNDLOW_OBJS='soundosx.o'
36851             cat >>confdefs.h <<\_ACEOF
36852#define BX_SOUND_OUTPUT_C bx_sound_osx_c
36853_ACEOF
36854
36855             { echo "$as_me:$LINENO: result: osx" >&5
36856echo "${ECHO_T}osx" >&6; }
36857             DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36858             ;;
36859           *)
36860             SOUNDLOW_OBJS=''
36861             cat >>confdefs.h <<\_ACEOF
36862#define BX_SOUND_OUTPUT_C bx_sound_output_c
36863_ACEOF
36864
36865             { echo "$as_me:$LINENO: result: dummy" >&5
36866echo "${ECHO_T}dummy" >&6; }
36867             ;;
36868         esac
36869         ;;
36870       *)
36871         echo " "
36872         echo \!\!\!Error\!\!\!
36873         echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
36874         exit 1 ;;
36875     esac
36876     SB16_OBJS='sb16.o'
36877     cat >>confdefs.h <<\_ACEOF
36878#define BX_SUPPORT_SB16 1
36879_ACEOF
36880
36881     GAME_OBJS='gameport.o'
36882     gameport_present=1
36883   fi
36884else
36885
36886    { echo "$as_me:$LINENO: result: no" >&5
36887echo "${ECHO_T}no" >&6; }
36888    cat >>confdefs.h <<\_ACEOF
36889#define BX_SUPPORT_SB16 0
36890_ACEOF
36891
36892
36893
36894fi
36895
36896
36897
36898
36899
36900
36901{ echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
36902echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
36903# Check whether --enable-gameport was given.
36904if test "${enable_gameport+set}" = set; then
36905  enableval=$enable_gameport; if test "$enableval" = yes; then
36906    { echo "$as_me:$LINENO: result: yes" >&5
36907echo "${ECHO_T}yes" >&6; }
36908    cat >>confdefs.h <<\_ACEOF
36909#define BX_SUPPORT_GAMEPORT 1
36910_ACEOF
36911
36912    if test "$gameport_present" = 0; then
36913      GAME_OBJS='gameport.o'
36914      case $target in
36915        *-cygwin* | *-mingw32*)
36916           DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36917           ;;
36918      esac
36919    fi
36920   else
36921    { echo "$as_me:$LINENO: result: no" >&5
36922echo "${ECHO_T}no" >&6; }
36923    GAME_OBJS=''
36924    cat >>confdefs.h <<\_ACEOF
36925#define BX_SUPPORT_GAMEPORT 0
36926_ACEOF
36927
36928   fi
36929else
36930
36931    if test "$gameport_present" = 1; then
36932      cat >>confdefs.h <<\_ACEOF
36933#define BX_SUPPORT_GAMEPORT 1
36934_ACEOF
36935
36936      { echo "$as_me:$LINENO: result: yes" >&5
36937echo "${ECHO_T}yes" >&6; }
36938    else
36939      cat >>confdefs.h <<\_ACEOF
36940#define BX_SUPPORT_GAMEPORT 0
36941_ACEOF
36942
36943      { echo "$as_me:$LINENO: result: no" >&5
36944echo "${ECHO_T}no" >&6; }
36945    fi
36946
36947fi
36948
36949
36950
36951
36952{ echo "$as_me:$LINENO: checking for gdb stub enable" >&5
36953echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
36954# Check whether --enable-gdb-stub was given.
36955if test "${enable_gdb_stub+set}" = set; then
36956  enableval=$enable_gdb_stub; if test "$enableval" = yes; then
36957    { echo "$as_me:$LINENO: result: yes" >&5
36958echo "${ECHO_T}yes" >&6; }
36959    cat >>confdefs.h <<\_ACEOF
36960#define BX_GDBSTUB 1
36961_ACEOF
36962
36963    GDBSTUB_VAR='$(GDBSTUB_OBJS)'
36964    if test "$bx_debugger" = 1; then
36965      { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
36966echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
36967   { (exit 1); exit 1; }; }
36968    fi
36969   else
36970    { echo "$as_me:$LINENO: result: no" >&5
36971echo "${ECHO_T}no" >&6; }
36972    cat >>confdefs.h <<\_ACEOF
36973#define BX_GDBSTUB 0
36974_ACEOF
36975
36976    GDBSTUB_VAR=''
36977   fi
36978else
36979
36980    { echo "$as_me:$LINENO: result: no" >&5
36981echo "${ECHO_T}no" >&6; }
36982    cat >>confdefs.h <<\_ACEOF
36983#define BX_GDBSTUB 0
36984_ACEOF
36985
36986    GDBSTUB_VAR=''
36987
36988
36989fi
36990
36991
36992
36993
36994{ echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
36995echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
36996IODEBUG_OBJS=''
36997# Check whether --enable-iodebug was given.
36998if test "${enable_iodebug+set}" = set; then
36999  enableval=$enable_iodebug; if test "$enableval" = yes; then
37000    { echo "$as_me:$LINENO: result: yes" >&5
37001echo "${ECHO_T}yes" >&6; }
37002    cat >>confdefs.h <<\_ACEOF
37003#define BX_SUPPORT_IODEBUG 1
37004_ACEOF
37005
37006    IODEBUG_OBJS='iodebug.o'
37007   else
37008    { echo "$as_me:$LINENO: result: no" >&5
37009echo "${ECHO_T}no" >&6; }
37010    cat >>confdefs.h <<\_ACEOF
37011#define BX_SUPPORT_IODEBUG 0
37012_ACEOF
37013
37014   fi
37015
37016else
37017
37018    if test "" = 1; then
37019      # enable by default if debugger is on
37020      { echo "$as_me:$LINENO: result: yes" >&5
37021echo "${ECHO_T}yes" >&6; }
37022      cat >>confdefs.h <<\_ACEOF
37023#define BX_SUPPORT_IODEBUG 1
37024_ACEOF
37025
37026      IODEBUG_OBJS='iodebug.o'
37027    else
37028      { echo "$as_me:$LINENO: result: no" >&5
37029echo "${ECHO_T}no" >&6; }
37030    fi
37031
37032
37033fi
37034
37035
37036
37037
37038# Extract the first word of "docbook2html", so it can be a program name with args.
37039set dummy docbook2html; ac_word=$2
37040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
37041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37042if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
37043  echo $ECHO_N "(cached) $ECHO_C" >&6
37044else
37045  case $DOCBOOK2HTML in
37046  [\\/]* | ?:[\\/]*)
37047  ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
37048  ;;
37049  *)
37050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37051for as_dir in $PATH
37052do
37053  IFS=$as_save_IFS
37054  test -z "$as_dir" && as_dir=.
37055  for ac_exec_ext in '' $ac_executable_extensions; do
37056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37057    ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
37058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37059    break 2
37060  fi
37061done
37062done
37063IFS=$as_save_IFS
37064
37065  test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
37066  ;;
37067esac
37068fi
37069DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
37070if test -n "$DOCBOOK2HTML"; then
37071  { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
37072echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
37073else
37074  { echo "$as_me:$LINENO: result: no" >&5
37075echo "${ECHO_T}no" >&6; }
37076fi
37077
37078
37079{ echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
37080echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
37081build_docbook=0
37082# Check whether --enable-docbook was given.
37083if test "${enable_docbook+set}" = set; then
37084  enableval=$enable_docbook;
37085    if test "$enableval" = yes; then build_docbook=1; fi
37086
37087else
37088
37089        if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
37090
37091
37092fi
37093
37094
37095if test $build_docbook = 1; then
37096  { echo "$as_me:$LINENO: result: yes" >&5
37097echo "${ECHO_T}yes" >&6; }
37098  BUILD_DOCBOOK_VAR=build_docbook
37099  INSTALL_DOCBOOK_VAR=install_docbook
37100  if test "$DOCBOOK2HTML" = not_found; then
37101    echo "ERROR: docbook2html must be installed to build the documentation"
37102    exit 1
37103  fi
37104else
37105  { echo "$as_me:$LINENO: result: no" >&5
37106echo "${ECHO_T}no" >&6; }
37107fi
37108
37109
37110
37111
37112PRIMARY_TARGET='bochs'
37113PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
37114
37115cat >>confdefs.h <<\_ACEOF
37116#define BX_PROVIDE_DEVICE_MODELS 1
37117_ACEOF
37118
37119IODEV_LIB_VAR='iodev/libiodev.a'
37120cat >>confdefs.h <<\_ACEOF
37121#define BX_PROVIDE_CPU_MEMORY 1
37122_ACEOF
37123
37124NONINLINE_VAR='$(NONINLINE_OBJS)'
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135# Check whether --with-x11 was given.
37136if test "${with_x11+set}" = set; then
37137  withval=$with_x11;
37138fi
37139
37140
37141
37142# Check whether --with-beos was given.
37143if test "${with_beos+set}" = set; then
37144  withval=$with_beos;
37145fi
37146
37147
37148
37149# Check whether --with-win32 was given.
37150if test "${with_win32+set}" = set; then
37151  withval=$with_win32;
37152fi
37153
37154
37155
37156# Check whether --with-macos was given.
37157if test "${with_macos+set}" = set; then
37158  withval=$with_macos;
37159fi
37160
37161
37162
37163# Check whether --with-carbon was given.
37164if test "${with_carbon+set}" = set; then
37165  withval=$with_carbon;
37166fi
37167
37168
37169
37170# Check whether --with-nogui was given.
37171if test "${with_nogui+set}" = set; then
37172  withval=$with_nogui;
37173fi
37174
37175
37176
37177# Check whether --with-term was given.
37178if test "${with_term+set}" = set; then
37179  withval=$with_term;
37180fi
37181
37182
37183
37184# Check whether --with-rfb was given.
37185if test "${with_rfb+set}" = set; then
37186  withval=$with_rfb;
37187fi
37188
37189
37190
37191# Check whether --with-amigaos was given.
37192if test "${with_amigaos+set}" = set; then
37193  withval=$with_amigaos;
37194fi
37195
37196
37197
37198# Check whether --with-sdl was given.
37199if test "${with_sdl+set}" = set; then
37200  withval=$with_sdl;
37201fi
37202
37203
37204
37205# Check whether --with-svga was given.
37206if test "${with_svga+set}" = set; then
37207  withval=$with_svga;
37208fi
37209
37210
37211
37212# Check whether --with-wx was given.
37213if test "${with_wx+set}" = set; then
37214  withval=$with_wx;
37215fi
37216
37217
37218
37219# Check whether --with-all-libs was given.
37220if test "${with_all_libs+set}" = set; then
37221  withval=$with_all_libs;
37222fi
37223
37224
37225DASH="-"
37226SLASH="/"
37227CXXFP=""
37228CFP=""
37229OFP="-o "
37230MAKELIB="ar rv \$@"
37231RMCOMMAND="rm -f "
37232# first define link variables without libtool
37233LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
37234LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
37235# unless NO_LT is set, add libtool to the front of the link command
37236if test "$NO_LT" != 1; then
37237  LINK="\$(LIBTOOL) --mode=link $LINK"
37238  LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
37239fi
37240EXE=""
37241COMMAND_SEPARATOR="&& \\"
37242CD_UP_ONE="echo done"
37243CD_UP_TWO="echo done"
37244CD_UP_THREE="echo done"
37245
37246INSTALL_TARGET=install_unix
37247INSTALL_LIST_FOR_PLATFORM=
37248
37249# check for existence of and usable version of wxWidgets.  This comes
37250# early so that it could affect which one gets chosen.
37251if test x$WX_CONFIG = x; then
37252  # Extract the first word of " wx-config --version ", so it can be a program name with args.
37253set dummy  wx-config --version ; ac_word=$2
37254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
37255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37256if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
37257  echo $ECHO_N "(cached) $ECHO_C" >&6
37258else
37259  if test -n "$WX_CONFIG"; then
37260  ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
37261else
37262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37263for as_dir in $PATH
37264do
37265  IFS=$as_save_IFS
37266  test -z "$as_dir" && as_dir=.
37267  for ac_exec_ext in '' $ac_executable_extensions; do
37268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37269    ac_cv_prog_WX_CONFIG="wx-config"
37270    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37271    break 2
37272  fi
37273done
37274done
37275IFS=$as_save_IFS
37276
37277  test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
37278fi
37279fi
37280WX_CONFIG=$ac_cv_prog_WX_CONFIG
37281if test -n "$WX_CONFIG"; then
37282  { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
37283echo "${ECHO_T}$WX_CONFIG" >&6; }
37284else
37285  { echo "$as_me:$LINENO: result: no" >&5
37286echo "${ECHO_T}no" >&6; }
37287fi
37288
37289
37290fi
37291{ echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
37292echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
37293{ echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
37294echo "${ECHO_T}$WX_CONFIG" >&6; }
37295
37296ok_wx_version=0
37297wx_multi_lib=0
37298needs_gtk2=0
37299wx_needs_gtk2=0
37300{ echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
37301echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
37302if test x$WX_CONFIG != xnot_found; then
37303  WX_VERSION=`$WX_CONFIG --version`
37304  WX_BASENAME=`$WX_CONFIG --basename`
37305
37306  # test that version >= 2.3.2.  Anybody have a better way to do this? Yuck.
37307  case x$WX_VERSION in
37308    x2.[012]*) ;; # less than version 2.3.x
37309    x2.3.[01]) ;; # less than version 2.3.2
37310    x2.3.[2-4]*) ok_wx_version=1 ;;  # 2.3.2 or greater
37311    x2.[4-5]*) ok_wx_version=1 ;;  # version 2.4 / 2.5
37312    x2.[6-9]*)  # version 2.6 or greater
37313      ok_wx_version=1
37314      wx_multi_lib=1
37315      case x$WX_BASENAME in
37316        xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
37317        *) ;;
37318      esac
37319      ;;
37320    x[3-9]*) ok_wx_version=1 ;;  # version 3 or greater
37321    *) ;; # who knows?
37322  esac
37323
37324fi
37325{ echo "$as_me:$LINENO: result: $WX_VERSION" >&5
37326echo "${ECHO_T}$WX_VERSION" >&6; }
37327if test "$cross_configure" = 0; then
37328  if test "$ok_wx_version" = 1; then
37329    # detected a usable version
37330    if test "$with_all_libs" = yes; then
37331      with_wx=yes
37332    fi
37333    if test "$with_wx" = yes; then
37334      needs_gtk2=$wx_needs_gtk2
37335    fi
37336  else
37337    if test "$with_wx" = yes; then
37338      { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
37339echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
37340    fi
37341    with_wx=no
37342  fi
37343fi
37344
37345{ echo "$as_me:$LINENO: checking for default gui on this platform" >&5
37346echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
37347{ echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
37348echo "${ECHO_T}$DEFAULT_GUI" >&6; }
37349
37350display_libs=""
37351
37352# the $with_* variable tells the gui library to use, but does NOT necessarily
37353# indicate the platform.  Settings that depend on the platform should be
37354# handled later.
37355
37356XPM_LIB=''
37357if test "$with_x11" = yes; then
37358  display_libs="$display_libs X11"
37359  if test "$no_x" = yes; then
37360    echo ERROR: X windows gui was selected, but X windows libraries were not found.
37361    exit 1
37362  fi
37363  cat >>confdefs.h <<\_ACEOF
37364#define BX_WITH_X11 1
37365_ACEOF
37366
37367  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
37368  GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
37369  GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
37370  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
37371  # The enhanced X debugger depends on GTK2
37372  if test "$gui_debugger" = 1; then
37373    needs_gtk2=1
37374  fi
37375  check_xpm=0
37376  { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
37377echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
37378  # Check whether --enable-xpm was given.
37379if test "${enable_xpm+set}" = set; then
37380  enableval=$enable_xpm; if test "$enableval" = yes; then
37381      check_xpm=0
37382      { echo "$as_me:$LINENO: result: yes" >&5
37383echo "${ECHO_T}yes" >&6; }
37384      check_xpm=1
37385     else
37386      { echo "$as_me:$LINENO: result: no" >&5
37387echo "${ECHO_T}no" >&6; }
37388      check_xpm=0
37389     fi
37390else
37391
37392      { echo "$as_me:$LINENO: result: yes" >&5
37393echo "${ECHO_T}yes" >&6; }
37394      check_xpm=1
37395
37396
37397fi
37398
37399  if test $check_xpm = 1; then
37400    if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37401  { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37402echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
37403if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37404  echo $ECHO_N "(cached) $ECHO_C" >&6
37405fi
37406{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37407echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37408else
37409  # Is the header compilable?
37410{ echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
37411echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
37412cat >conftest.$ac_ext <<_ACEOF
37413/* confdefs.h.  */
37414_ACEOF
37415cat confdefs.h >>conftest.$ac_ext
37416cat >>conftest.$ac_ext <<_ACEOF
37417/* end confdefs.h.  */
37418$ac_includes_default
37419#include <X11/xpm.h>
37420_ACEOF
37421rm -f conftest.$ac_objext
37422if { (ac_try="$ac_compile"
37423case "(($ac_try" in
37424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37425  *) ac_try_echo=$ac_try;;
37426esac
37427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37428  (eval "$ac_compile") 2>conftest.er1
37429  ac_status=$?
37430  grep -v '^ *+' conftest.er1 >conftest.err
37431  rm -f conftest.er1
37432  cat conftest.err >&5
37433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434  (exit $ac_status); } && {
37435	 test -z "$ac_c_werror_flag" ||
37436	 test ! -s conftest.err
37437       } && test -s conftest.$ac_objext; then
37438  ac_header_compiler=yes
37439else
37440  echo "$as_me: failed program was:" >&5
37441sed 's/^/| /' conftest.$ac_ext >&5
37442
37443	ac_header_compiler=no
37444fi
37445
37446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37447{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37448echo "${ECHO_T}$ac_header_compiler" >&6; }
37449
37450# Is the header present?
37451{ echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
37452echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
37453cat >conftest.$ac_ext <<_ACEOF
37454/* confdefs.h.  */
37455_ACEOF
37456cat confdefs.h >>conftest.$ac_ext
37457cat >>conftest.$ac_ext <<_ACEOF
37458/* end confdefs.h.  */
37459#include <X11/xpm.h>
37460_ACEOF
37461if { (ac_try="$ac_cpp conftest.$ac_ext"
37462case "(($ac_try" in
37463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37464  *) ac_try_echo=$ac_try;;
37465esac
37466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37467  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37468  ac_status=$?
37469  grep -v '^ *+' conftest.er1 >conftest.err
37470  rm -f conftest.er1
37471  cat conftest.err >&5
37472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473  (exit $ac_status); } >/dev/null && {
37474	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37475	 test ! -s conftest.err
37476       }; then
37477  ac_header_preproc=yes
37478else
37479  echo "$as_me: failed program was:" >&5
37480sed 's/^/| /' conftest.$ac_ext >&5
37481
37482  ac_header_preproc=no
37483fi
37484
37485rm -f conftest.err conftest.$ac_ext
37486{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37487echo "${ECHO_T}$ac_header_preproc" >&6; }
37488
37489# So?  What about this header?
37490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37491  yes:no: )
37492    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
37493echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37494    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
37495echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
37496    ac_header_preproc=yes
37497    ;;
37498  no:yes:* )
37499    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
37500echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
37501    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
37502echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
37503    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
37504echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
37505    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
37506echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37507    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
37508echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
37509    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
37510echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
37511
37512    ;;
37513esac
37514{ echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37515echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
37516if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37517  echo $ECHO_N "(cached) $ECHO_C" >&6
37518else
37519  ac_cv_header_X11_xpm_h=$ac_header_preproc
37520fi
37521{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37522echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37523
37524fi
37525if test $ac_cv_header_X11_xpm_h = yes; then
37526
37527        cat >>confdefs.h <<\_ACEOF
37528#define BX_HAVE_XPM_H 1
37529_ACEOF
37530
37531        XPM_LIB='-lXpm'
37532
37533fi
37534
37535
37536  fi
37537fi
37538
37539
37540if test "$with_beos" = yes; then
37541  display_libs="$display_libs beos"
37542  cat >>confdefs.h <<\_ACEOF
37543#define BX_WITH_BEOS 1
37544_ACEOF
37545
37546  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
37547  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
37548fi
37549
37550if test "$with_sdl" = yes; then
37551  display_libs="$display_libs sdl"
37552  cat >>confdefs.h <<\_ACEOF
37553#define BX_WITH_SDL 1
37554_ACEOF
37555
37556  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
37557  # GUI_*FLAGS are added to the compilation of every bochs file, not just
37558  # the files in gui/*.cc.
37559  SDL_CFLAGS=`sdl-config --cflags`
37560  GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
37561  GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
37562  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
37563  # The enhanced X debugger depends on GTK2
37564  if test "$gui_debugger" = 1 -a "$DEFAULT_GUI" != win32; then
37565    needs_gtk2=1
37566  fi
37567  if test "$with_win32" != yes -a "$with_wx" != yes; then
37568    case $target in
37569      *-pc-windows*)
37570         RC_CMD="rc /fo"
37571         EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37572         ;;
37573      *-cygwin* | *-mingw32*)
37574         RC_CMD="windres -o "
37575         EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37576         ;;
37577    esac
37578  fi
37579fi
37580
37581if test "$with_svga" = yes; then
37582  display_libs="$display_libs svga"
37583  cat >>confdefs.h <<\_ACEOF
37584#define BX_WITH_SVGA 1
37585_ACEOF
37586
37587  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
37588  # GUI_*FLAGS are added to the compilation of every bochs file, not just
37589  # the files in gui/*.cc.
37590  GUI_CFLAGS="$GUI_CFLAGS"
37591  GUI_CXXFLAGS="$GUI_CXXFLAGS"
37592  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
37593fi
37594
37595if test "$with_rfb" = yes; then
37596  display_libs="$display_libs rfb"
37597  cat >>confdefs.h <<\_ACEOF
37598#define BX_WITH_RFB 1
37599_ACEOF
37600
37601  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
37602  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
37603fi
37604
37605if test "$with_amigaos" = yes; then
37606  display_libs="$display_libs amigaos"
37607  cat >>confdefs.h <<\_ACEOF
37608#define BX_WITH_AMIGAOS 1
37609_ACEOF
37610
37611  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
37612  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
37613fi
37614
37615if test "$with_win32" = yes; then
37616  display_libs="$display_libs win32"
37617  cat >>confdefs.h <<\_ACEOF
37618#define BX_WITH_WIN32 1
37619_ACEOF
37620
37621  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
37622  case $target in
37623    *-pc-windows*)
37624       if test "$with_wx" != yes; then
37625         RC_CMD="rc /fo"
37626         EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37627       fi
37628       GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
37629       ;;
37630    *-cygwin* | *-mingw32*)
37631       if test "$with_wx" != yes; then
37632         RC_CMD="windres -o "
37633         EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37634       fi
37635       GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
37636       ;;
37637    *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
37638       ;;
37639  esac
37640fi
37641
37642if test "$with_macos" = yes; then
37643  display_libs="$display_libs macos"
37644  cat >>confdefs.h <<\_ACEOF
37645#define BX_WITH_MACOS 1
37646_ACEOF
37647
37648  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
37649  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
37650fi
37651
37652if test "$with_carbon" = yes; then
37653  display_libs="$display_libs carbon"
37654  cat >>confdefs.h <<\_ACEOF
37655#define BX_WITH_CARBON 1
37656_ACEOF
37657
37658  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
37659  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
37660  if test "$bx_plugins" = 1; then
37661    PRIMARY_TARGET=bochs.app/.build_plugins   # only for carbon application
37662  else
37663    PRIMARY_TARGET=bochs.app/.build   # only for carbon application
37664  fi
37665  INSTALL_TARGET='install_macosx'
37666fi
37667
37668if test "$with_term" = yes; then
37669  display_libs="$display_libs term"
37670  cat >>confdefs.h <<\_ACEOF
37671#define BX_WITH_TERM 1
37672_ACEOF
37673
37674  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
37675  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
37676  use_curses=yes
37677fi
37678
37679if test "$with_wx" = yes; then
37680  display_libs="$display_libs wxWidgets"
37681  if test "$cross_configure" = 1; then
37682    true  # do not insist, if configuring for another machine
37683  else
37684    if test x$ok_wx_version != x1; then
37685      echo ERROR: A usable version of wxWidgets was not found.
37686      echo Upgrade the library or choose another gui.
37687      exit 1
37688    fi
37689  fi
37690  cat >>confdefs.h <<\_ACEOF
37691#define BX_WITH_WX 1
37692_ACEOF
37693
37694  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
37695  SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
37696  WX_CFLAGS="`$WX_CONFIG --cflags`"
37697  WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
37698  if test "$wx_multi_lib" = 1; then
37699    GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
37700  else
37701    GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
37702  fi
37703  # GUI_C*FLAGS are added to the compilation of every bochs file, not just
37704  # the files in gui/*.cc.  They are not used when building other things
37705  # such as bximage.
37706  GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
37707  GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
37708  GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
37709  # using debugger with readline is failing due to thread/signal handler
37710  # problems.
37711  case $target in
37712    *-pc-windows* | *-cygwin* | *-mingw32*)
37713       EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
37714	   GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
37715       ;;
37716  esac
37717fi
37718
37719if test "$with_nogui" = yes; then
37720  display_libs="$display_libs nogui"
37721  cat >>confdefs.h <<\_ACEOF
37722#define BX_WITH_NOGUI 1
37723_ACEOF
37724
37725  SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
37726fi
37727
37728{ echo "$as_me:$LINENO: checking for display libraries" >&5
37729echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
37730{ echo "$as_me:$LINENO: result: $display_libs" >&5
37731echo "${ECHO_T}$display_libs" >&6; }
37732
37733if test "$display_libs" = ""; then
37734  echo "No display libraries were selected. Use --with-* options to enable"
37735  echo "individual display libraries, or --with-all-libs to detect the ones"
37736  echo "that Bochs supports."
37737  exit 1
37738fi
37739
37740# some display libraries and the enhanced debugger may depend on the GTK+ software package
37741if test "$needs_gtk2" = 1; then
37742  # if pkg-config exists, then add it to the /gui cflags.
37743  gtkconf=`pkg-config --cflags gtk+-2.0`
37744  if test $? = 0; then
37745    # pkg-config was found and returned 0, so it must return valid output
37746    TOOLKIT_CXXFLAGS="$gtkconf"
37747    LIBS="$LIBS `pkg-config --libs gtk+-2.0`"
37748  else
37749    echo "ERROR: pkg-config was not found, or unable to access the gtk+-2.0 package."
37750    echo "Install pkg-config and the gtk+ development package,"
37751    echo "or disable the gui debugger, or the wxWidgets display library (whichever is being used)."
37752    exit 1
37753  fi
37754fi
37755
37756if test "$display_libs" = " wxWidgets"; then
37757  { echo "$as_me:$LINENO: checking for default configuration interface" >&5
37758echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
37759  { echo "$as_me:$LINENO: result: wxWidgets" >&5
37760echo "${ECHO_T}wxWidgets" >&6; }
37761  { echo "$as_me:$LINENO: checking for default display library" >&5
37762echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
37763  { echo "$as_me:$LINENO: result: wxWidgets" >&5
37764echo "${ECHO_T}wxWidgets" >&6; }
37765  cat >>confdefs.h <<\_ACEOF
37766#define BX_DEFAULT_CONFIG_INTERFACE "wx"
37767_ACEOF
37768
37769  cat >>confdefs.h <<\_ACEOF
37770#define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37771_ACEOF
37772
37773  cat >>confdefs.h <<\_ACEOF
37774#define BX_USE_TEXTCONFIG 0
37775_ACEOF
37776
37777else
37778  cat >>confdefs.h <<\_ACEOF
37779#define BX_USE_TEXTCONFIG 1
37780_ACEOF
37781
37782fi
37783
37784if test "$bx_plugins" = 1; then
37785  # every item in this list will be compiled as a plugin. Do not include
37786  # support objs; they will be mentioned in plugin-specific makefile rules.
37787  GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
37788else
37789  # include support objs
37790  GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
37791fi
37792
37793
37794
37795
37796
37797
37798
37799
37800for ac_prog in wget curl fetch
37801do
37802  # Extract the first word of "$ac_prog", so it can be a program name with args.
37803set dummy $ac_prog; ac_word=$2
37804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
37805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37806if test "${ac_cv_prog_WGET+set}" = set; then
37807  echo $ECHO_N "(cached) $ECHO_C" >&6
37808else
37809  if test -n "$WGET"; then
37810  ac_cv_prog_WGET="$WGET" # Let the user override the test.
37811else
37812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37813for as_dir in $PATH
37814do
37815  IFS=$as_save_IFS
37816  test -z "$as_dir" && as_dir=.
37817  for ac_exec_ext in '' $ac_executable_extensions; do
37818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37819    ac_cv_prog_WGET="$ac_prog"
37820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37821    break 2
37822  fi
37823done
37824done
37825IFS=$as_save_IFS
37826
37827fi
37828fi
37829WGET=$ac_cv_prog_WGET
37830if test -n "$WGET"; then
37831  { echo "$as_me:$LINENO: result: $WGET" >&5
37832echo "${ECHO_T}$WGET" >&6; }
37833else
37834  { echo "$as_me:$LINENO: result: no" >&5
37835echo "${ECHO_T}no" >&6; }
37836fi
37837
37838
37839  test -n "$WGET" && break
37840done
37841test -n "$WGET" || WGET="not_found"
37842
37843if test "$WGET" = not_found; then
37844  { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
37845echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
37846fi
37847# everybody has to re-invent the wheel. differently.
37848test "${WGET}" = "curl" && WGET="curl -O"
37849
37850# modify settings based on target platform
37851case "$target" in
37852  *-macosx*)
37853    cat >>confdefs.h <<\_ACEOF
37854#define BX_HAVE_STRDUP 0
37855_ACEOF
37856
37857    ;;
37858  *-macos*)
37859    cat >>confdefs.h <<\_ACEOF
37860#define BX_HAVE_STRDUP 0
37861_ACEOF
37862
37863    cat >>confdefs.h <<\_ACEOF
37864#define BX_PLUGINS 0
37865_ACEOF
37866
37867    cat >>confdefs.h <<\_ACEOF
37868#define BX_HAVE_DLFCN_H 0
37869_ACEOF
37870
37871    cat >>confdefs.h <<\_ACEOF
37872#define BX_HAVE_SOCKLEN_T 0
37873_ACEOF
37874
37875    cat >>confdefs.h <<\_ACEOF
37876#define BX_HAVE_SELECT 0
37877_ACEOF
37878
37879    cat >>confdefs.h <<\_ACEOF
37880#define BX_HAVE_GETTIMEOFDAY 0
37881_ACEOF
37882
37883    cat >>confdefs.h <<\_ACEOF
37884#define BX_NO_ATTRIBUTES 1
37885_ACEOF
37886
37887    cat >>confdefs.h <<\_ACEOF
37888#define HAVE_TUNTAP 0
37889_ACEOF
37890
37891    cat >>confdefs.h <<\_ACEOF
37892#define HAVE_ETHERTAP 0
37893_ACEOF
37894
37895    cat >>confdefs.h <<\_ACEOF
37896#define BX_HAVE_HASH_MAP 0
37897_ACEOF
37898
37899    ;;
37900  *-pc-windows*)
37901    INSTALL_TARGET='install_win32'
37902    CC="cl"
37903    CXX="$CC"
37904    #C_OPT="/Zi"   # for debugging
37905    C_OPT="/Ox"   # optimize for speed
37906    CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
37907    CXXFLAGS="$CFLAGS"
37908    DASH="/"
37909    SLASH="\\"
37910    CXXFP="/Tp"
37911    CFP="/Tc"
37912    OFP="/Fo"
37913    MAKE=nmake
37914    MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37915    RMCOMMAND="-del"
37916    RANLIB="echo"
37917    #L_OPT="/debug"    # for debugging
37918    L_OPT=""           # no debug info
37919    LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37920    LINK_CONSOLE=$LINK
37921    EXE=".exe"
37922    PRIMARY_TARGET="bochs.exe"
37923    BXIMAGE_LINK_OPTS="user32.lib"
37924    # also compile niclist if networking is on
37925    if test "$networking" = yes; then
37926      PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37927    fi
37928    COMMAND_SEPARATOR=""
37929    CD_UP_ONE="cd .."
37930    CD_UP_TWO="cd ..\.."
37931    CD_UP_THREE="cd ..\..\.."
37932    have_gettimeofday=0  # even though it may exist in build environment
37933    cat >>confdefs.h <<\_ACEOF
37934#define BX_64BIT_CONSTANTS_USE_LL 0
37935_ACEOF
37936
37937    cat >>confdefs.h <<\_ACEOF
37938#define inline __inline
37939_ACEOF
37940
37941    cat >>confdefs.h <<\_ACEOF
37942#define BX_NO_EMPTY_STRUCTS 1
37943_ACEOF
37944
37945    cat >>confdefs.h <<\_ACEOF
37946#define BX_NO_ATTRIBUTES 1
37947_ACEOF
37948
37949    cat >>confdefs.h <<\_ACEOF
37950#define BX_HAVE_HASH_MAP 0
37951_ACEOF
37952
37953    cat >>confdefs.h <<\_ACEOF
37954#define BX_HAVE_HASH_MAP_H 0
37955_ACEOF
37956
37957    cat >>confdefs.h <<\_ACEOF
37958#define BX_HAVE_STRTOULL 0
37959_ACEOF
37960
37961    cat >>confdefs.h <<\_ACEOF
37962#define BX_HAVE_STRTOUQ 0
37963_ACEOF
37964
37965    cat >>confdefs.h <<\_ACEOF
37966#define HAVE_LIBREADLINE 0
37967_ACEOF
37968
37969    cat >>confdefs.h <<\_ACEOF
37970#define BX_HAVE_GETTIMEOFDAY 0
37971_ACEOF
37972
37973    cat >>confdefs.h <<\_ACEOF
37974#define BX_HAVE_DLFCN_H 0
37975_ACEOF
37976
37977    cat >>confdefs.h <<\_ACEOF
37978#define BX_HAVE_MKSTEMP 0
37979_ACEOF
37980
37981    cat >>confdefs.h <<\_ACEOF
37982#define BX_HAVE_SYS_MMAN_H 0
37983_ACEOF
37984
37985    cat >>confdefs.h <<\_ACEOF
37986#define BX_HAVE_USLEEP 0
37987_ACEOF
37988
37989    cat >>confdefs.h <<\_ACEOF
37990#define HAVE_ETHERTAP 0
37991_ACEOF
37992
37993    cat >>confdefs.h <<\_ACEOF
37994#define BX_HAVE_SELECT 1
37995_ACEOF
37996
37997    cat >>confdefs.h <<\_ACEOF
37998#define BX_HAVE_SOCKLEN_T 0
37999_ACEOF
38000
38001    ;;
38002  *-pc-cygwin*)
38003    EXE=".exe"
38004    PRIMARY_TARGET="bochs.exe"
38005    BXIMAGE_LINK_OPTS="-luser32"
38006    if test "$networking" = yes; then
38007      PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
38008    fi
38009    cat >>confdefs.h <<\_ACEOF
38010#define BX_HAVE_SELECT 1
38011_ACEOF
38012
38013    ;;
38014  *-pc-mingw*)
38015    BXIMAGE_LINK_OPTS="-luser32"
38016    if test "$networking" = yes; then
38017      PRIMARY_TARGET="$PRIMARY_TARGET niclist"
38018    fi
38019    cat >>confdefs.h <<\_ACEOF
38020#define BX_HAVE_SELECT 1
38021_ACEOF
38022
38023    ;;
38024  *-beos*)
38025    PRIMARY_TARGET=.bochs_beos_target
38026    ;;
38027esac
38028
38029ENH_DBG_OBJS=""
38030if test "$gui_debugger" = 1; then
38031  if test "$needs_gtk2" = 1; then
38032     ENH_DBG_OBJS="gtk_enh_dbg_osdep.o"
38033  elif test "$with_win32" = yes; then
38034     ENH_DBG_OBJS="win32_enh_dbg_osdep.o"
38035  fi
38036fi
38037
38038
38039DIALOG_OBJS=""
38040EXPORT_DYNAMIC="-export-dynamic"
38041case $target in
38042  *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
38043    if test "$bx_plugins" = 1; then
38044      { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
38045echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
38046if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
38047  echo $ECHO_N "(cached) $ECHO_C" >&6
38048else
38049  ac_check_lib_save_LIBS=$LIBS
38050LIBS="-lmingwex  $LIBS"
38051cat >conftest.$ac_ext <<_ACEOF
38052/* confdefs.h.  */
38053_ACEOF
38054cat confdefs.h >>conftest.$ac_ext
38055cat >>conftest.$ac_ext <<_ACEOF
38056/* end confdefs.h.  */
38057
38058/* Override any GCC internal prototype to avoid an error.
38059   Use char because int might match the return type of a GCC
38060   builtin and then its argument prototype would still apply.  */
38061#ifdef __cplusplus
38062extern "C"
38063#endif
38064char opendir ();
38065int
38066main ()
38067{
38068return opendir ();
38069  ;
38070  return 0;
38071}
38072_ACEOF
38073rm -f conftest.$ac_objext conftest$ac_exeext
38074if { (ac_try="$ac_link"
38075case "(($ac_try" in
38076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38077  *) ac_try_echo=$ac_try;;
38078esac
38079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38080  (eval "$ac_link") 2>conftest.er1
38081  ac_status=$?
38082  grep -v '^ *+' conftest.er1 >conftest.err
38083  rm -f conftest.er1
38084  cat conftest.err >&5
38085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38086  (exit $ac_status); } && {
38087	 test -z "$ac_c_werror_flag" ||
38088	 test ! -s conftest.err
38089       } && test -s conftest$ac_exeext &&
38090       $as_test_x conftest$ac_exeext; then
38091  ac_cv_lib_mingwex_opendir=yes
38092else
38093  echo "$as_me: failed program was:" >&5
38094sed 's/^/| /' conftest.$ac_ext >&5
38095
38096	ac_cv_lib_mingwex_opendir=no
38097fi
38098
38099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38100      conftest$ac_exeext conftest.$ac_ext
38101LIBS=$ac_check_lib_save_LIBS
38102fi
38103{ echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
38104echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
38105if test $ac_cv_lib_mingwex_opendir = yes; then
38106  LIBS="$LIBS -lmingwex"
38107fi
38108
38109      # set variables for building DLL plugins
38110      PRIMARY_TARGET=".win32_dll_plugin_target"
38111      PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
38112      INSTALL_PLUGINS_VAR=install_dll_plugins
38113    else
38114      if test "$with_win32" != yes; then
38115        LIBS="$LIBS -lcomctl32"
38116      fi
38117    fi
38118    DIALOG_OBJS="win32dialog.o"
38119    EXPORT_DYNAMIC=""
38120    ;;
38121esac
38122
38123
38124
38125if test "$use_curses" = yes -a "$cross_configure" = 0; then
38126  { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
38127echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
38128if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
38129  echo $ECHO_N "(cached) $ECHO_C" >&6
38130else
38131  ac_check_lib_save_LIBS=$LIBS
38132LIBS="-lcurses  $LIBS"
38133cat >conftest.$ac_ext <<_ACEOF
38134/* confdefs.h.  */
38135_ACEOF
38136cat confdefs.h >>conftest.$ac_ext
38137cat >>conftest.$ac_ext <<_ACEOF
38138/* end confdefs.h.  */
38139
38140/* Override any GCC internal prototype to avoid an error.
38141   Use char because int might match the return type of a GCC
38142   builtin and then its argument prototype would still apply.  */
38143#ifdef __cplusplus
38144extern "C"
38145#endif
38146char mvaddch ();
38147int
38148main ()
38149{
38150return mvaddch ();
38151  ;
38152  return 0;
38153}
38154_ACEOF
38155rm -f conftest.$ac_objext conftest$ac_exeext
38156if { (ac_try="$ac_link"
38157case "(($ac_try" in
38158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38159  *) ac_try_echo=$ac_try;;
38160esac
38161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38162  (eval "$ac_link") 2>conftest.er1
38163  ac_status=$?
38164  grep -v '^ *+' conftest.er1 >conftest.err
38165  rm -f conftest.er1
38166  cat conftest.err >&5
38167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168  (exit $ac_status); } && {
38169	 test -z "$ac_c_werror_flag" ||
38170	 test ! -s conftest.err
38171       } && test -s conftest$ac_exeext &&
38172       $as_test_x conftest$ac_exeext; then
38173  ac_cv_lib_curses_mvaddch=yes
38174else
38175  echo "$as_me: failed program was:" >&5
38176sed 's/^/| /' conftest.$ac_ext >&5
38177
38178	ac_cv_lib_curses_mvaddch=no
38179fi
38180
38181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38182      conftest$ac_exeext conftest.$ac_ext
38183LIBS=$ac_check_lib_save_LIBS
38184fi
38185{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
38186echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
38187if test $ac_cv_lib_curses_mvaddch = yes; then
38188  GUI_LINK_OPTS_TERM='-lcurses'
38189fi
38190
38191  { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
38192echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
38193if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
38194  echo $ECHO_N "(cached) $ECHO_C" >&6
38195else
38196  ac_check_lib_save_LIBS=$LIBS
38197LIBS="-lncurses  $LIBS"
38198cat >conftest.$ac_ext <<_ACEOF
38199/* confdefs.h.  */
38200_ACEOF
38201cat confdefs.h >>conftest.$ac_ext
38202cat >>conftest.$ac_ext <<_ACEOF
38203/* end confdefs.h.  */
38204
38205/* Override any GCC internal prototype to avoid an error.
38206   Use char because int might match the return type of a GCC
38207   builtin and then its argument prototype would still apply.  */
38208#ifdef __cplusplus
38209extern "C"
38210#endif
38211char mvaddch ();
38212int
38213main ()
38214{
38215return mvaddch ();
38216  ;
38217  return 0;
38218}
38219_ACEOF
38220rm -f conftest.$ac_objext conftest$ac_exeext
38221if { (ac_try="$ac_link"
38222case "(($ac_try" in
38223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38224  *) ac_try_echo=$ac_try;;
38225esac
38226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38227  (eval "$ac_link") 2>conftest.er1
38228  ac_status=$?
38229  grep -v '^ *+' conftest.er1 >conftest.err
38230  rm -f conftest.er1
38231  cat conftest.err >&5
38232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233  (exit $ac_status); } && {
38234	 test -z "$ac_c_werror_flag" ||
38235	 test ! -s conftest.err
38236       } && test -s conftest$ac_exeext &&
38237       $as_test_x conftest$ac_exeext; then
38238  ac_cv_lib_ncurses_mvaddch=yes
38239else
38240  echo "$as_me: failed program was:" >&5
38241sed 's/^/| /' conftest.$ac_ext >&5
38242
38243	ac_cv_lib_ncurses_mvaddch=no
38244fi
38245
38246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38247      conftest$ac_exeext conftest.$ac_ext
38248LIBS=$ac_check_lib_save_LIBS
38249fi
38250{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
38251echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
38252if test $ac_cv_lib_ncurses_mvaddch = yes; then
38253  GUI_LINK_OPTS_TERM='-lncurses'
38254fi
38255
38256  { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
38257echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
38258if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
38259  echo $ECHO_N "(cached) $ECHO_C" >&6
38260else
38261  ac_check_lib_save_LIBS=$LIBS
38262LIBS="-ltermlib  $LIBS"
38263cat >conftest.$ac_ext <<_ACEOF
38264/* confdefs.h.  */
38265_ACEOF
38266cat confdefs.h >>conftest.$ac_ext
38267cat >>conftest.$ac_ext <<_ACEOF
38268/* end confdefs.h.  */
38269
38270/* Override any GCC internal prototype to avoid an error.
38271   Use char because int might match the return type of a GCC
38272   builtin and then its argument prototype would still apply.  */
38273#ifdef __cplusplus
38274extern "C"
38275#endif
38276char mvaddch ();
38277int
38278main ()
38279{
38280return mvaddch ();
38281  ;
38282  return 0;
38283}
38284_ACEOF
38285rm -f conftest.$ac_objext conftest$ac_exeext
38286if { (ac_try="$ac_link"
38287case "(($ac_try" in
38288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289  *) ac_try_echo=$ac_try;;
38290esac
38291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292  (eval "$ac_link") 2>conftest.er1
38293  ac_status=$?
38294  grep -v '^ *+' conftest.er1 >conftest.err
38295  rm -f conftest.er1
38296  cat conftest.err >&5
38297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298  (exit $ac_status); } && {
38299	 test -z "$ac_c_werror_flag" ||
38300	 test ! -s conftest.err
38301       } && test -s conftest$ac_exeext &&
38302       $as_test_x conftest$ac_exeext; then
38303  ac_cv_lib_termlib_mvaddch=yes
38304else
38305  echo "$as_me: failed program was:" >&5
38306sed 's/^/| /' conftest.$ac_ext >&5
38307
38308	ac_cv_lib_termlib_mvaddch=no
38309fi
38310
38311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38312      conftest$ac_exeext conftest.$ac_ext
38313LIBS=$ac_check_lib_save_LIBS
38314fi
38315{ echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
38316echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
38317if test $ac_cv_lib_termlib_mvaddch = yes; then
38318  GUI_LINK_OPTS_TERM='-ltermlib'
38319fi
38320
38321  { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
38322echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
38323if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
38324  echo $ECHO_N "(cached) $ECHO_C" >&6
38325else
38326  ac_check_lib_save_LIBS=$LIBS
38327LIBS="-lpdcurses  $LIBS"
38328cat >conftest.$ac_ext <<_ACEOF
38329/* confdefs.h.  */
38330_ACEOF
38331cat confdefs.h >>conftest.$ac_ext
38332cat >>conftest.$ac_ext <<_ACEOF
38333/* end confdefs.h.  */
38334
38335/* Override any GCC internal prototype to avoid an error.
38336   Use char because int might match the return type of a GCC
38337   builtin and then its argument prototype would still apply.  */
38338#ifdef __cplusplus
38339extern "C"
38340#endif
38341char mvaddch ();
38342int
38343main ()
38344{
38345return mvaddch ();
38346  ;
38347  return 0;
38348}
38349_ACEOF
38350rm -f conftest.$ac_objext conftest$ac_exeext
38351if { (ac_try="$ac_link"
38352case "(($ac_try" in
38353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38354  *) ac_try_echo=$ac_try;;
38355esac
38356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38357  (eval "$ac_link") 2>conftest.er1
38358  ac_status=$?
38359  grep -v '^ *+' conftest.er1 >conftest.err
38360  rm -f conftest.er1
38361  cat conftest.err >&5
38362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363  (exit $ac_status); } && {
38364	 test -z "$ac_c_werror_flag" ||
38365	 test ! -s conftest.err
38366       } && test -s conftest$ac_exeext &&
38367       $as_test_x conftest$ac_exeext; then
38368  ac_cv_lib_pdcurses_mvaddch=yes
38369else
38370  echo "$as_me: failed program was:" >&5
38371sed 's/^/| /' conftest.$ac_ext >&5
38372
38373	ac_cv_lib_pdcurses_mvaddch=no
38374fi
38375
38376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38377      conftest$ac_exeext conftest.$ac_ext
38378LIBS=$ac_check_lib_save_LIBS
38379fi
38380{ echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
38381echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
38382if test $ac_cv_lib_pdcurses_mvaddch = yes; then
38383  GUI_LINK_OPTS_TERM='-lpdcurses'
38384fi
38385
38386  if test "$GUI_LINK_OPTS_TERM" = ""; then
38387    echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
38388    exit 1
38389  fi
38390fi
38391
38392if test "$with_term" = yes; then
38393  old_LIBS="$LIBS"
38394  LIBS="$LIBS $GUI_LINK_OPTS_TERM"
38395
38396for ac_func in color_set
38397do
38398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38399{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38402  echo $ECHO_N "(cached) $ECHO_C" >&6
38403else
38404  cat >conftest.$ac_ext <<_ACEOF
38405/* confdefs.h.  */
38406_ACEOF
38407cat confdefs.h >>conftest.$ac_ext
38408cat >>conftest.$ac_ext <<_ACEOF
38409/* end confdefs.h.  */
38410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38411   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38412#define $ac_func innocuous_$ac_func
38413
38414/* System header to define __stub macros and hopefully few prototypes,
38415    which can conflict with char $ac_func (); below.
38416    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38417    <limits.h> exists even on freestanding compilers.  */
38418
38419#ifdef __STDC__
38420# include <limits.h>
38421#else
38422# include <assert.h>
38423#endif
38424
38425#undef $ac_func
38426
38427/* Override any GCC internal prototype to avoid an error.
38428   Use char because int might match the return type of a GCC
38429   builtin and then its argument prototype would still apply.  */
38430#ifdef __cplusplus
38431extern "C"
38432#endif
38433char $ac_func ();
38434/* The GNU C library defines this for functions which it implements
38435    to always fail with ENOSYS.  Some functions are actually named
38436    something starting with __ and the normal name is an alias.  */
38437#if defined __stub_$ac_func || defined __stub___$ac_func
38438choke me
38439#endif
38440
38441int
38442main ()
38443{
38444return $ac_func ();
38445  ;
38446  return 0;
38447}
38448_ACEOF
38449rm -f conftest.$ac_objext conftest$ac_exeext
38450if { (ac_try="$ac_link"
38451case "(($ac_try" in
38452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38453  *) ac_try_echo=$ac_try;;
38454esac
38455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38456  (eval "$ac_link") 2>conftest.er1
38457  ac_status=$?
38458  grep -v '^ *+' conftest.er1 >conftest.err
38459  rm -f conftest.er1
38460  cat conftest.err >&5
38461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38462  (exit $ac_status); } && {
38463	 test -z "$ac_c_werror_flag" ||
38464	 test ! -s conftest.err
38465       } && test -s conftest$ac_exeext &&
38466       $as_test_x conftest$ac_exeext; then
38467  eval "$as_ac_var=yes"
38468else
38469  echo "$as_me: failed program was:" >&5
38470sed 's/^/| /' conftest.$ac_ext >&5
38471
38472	eval "$as_ac_var=no"
38473fi
38474
38475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38476      conftest$ac_exeext conftest.$ac_ext
38477fi
38478ac_res=`eval echo '${'$as_ac_var'}'`
38479	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38480echo "${ECHO_T}$ac_res" >&6; }
38481if test `eval echo '${'$as_ac_var'}'` = yes; then
38482  cat >>confdefs.h <<_ACEOF
38483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38484_ACEOF
38485 cat >>confdefs.h <<\_ACEOF
38486#define BX_HAVE_COLOR_SET 1
38487_ACEOF
38488
38489fi
38490done
38491
38492
38493for ac_func in mvhline
38494do
38495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38499  echo $ECHO_N "(cached) $ECHO_C" >&6
38500else
38501  cat >conftest.$ac_ext <<_ACEOF
38502/* confdefs.h.  */
38503_ACEOF
38504cat confdefs.h >>conftest.$ac_ext
38505cat >>conftest.$ac_ext <<_ACEOF
38506/* end confdefs.h.  */
38507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38508   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38509#define $ac_func innocuous_$ac_func
38510
38511/* System header to define __stub macros and hopefully few prototypes,
38512    which can conflict with char $ac_func (); below.
38513    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38514    <limits.h> exists even on freestanding compilers.  */
38515
38516#ifdef __STDC__
38517# include <limits.h>
38518#else
38519# include <assert.h>
38520#endif
38521
38522#undef $ac_func
38523
38524/* Override any GCC internal prototype to avoid an error.
38525   Use char because int might match the return type of a GCC
38526   builtin and then its argument prototype would still apply.  */
38527#ifdef __cplusplus
38528extern "C"
38529#endif
38530char $ac_func ();
38531/* The GNU C library defines this for functions which it implements
38532    to always fail with ENOSYS.  Some functions are actually named
38533    something starting with __ and the normal name is an alias.  */
38534#if defined __stub_$ac_func || defined __stub___$ac_func
38535choke me
38536#endif
38537
38538int
38539main ()
38540{
38541return $ac_func ();
38542  ;
38543  return 0;
38544}
38545_ACEOF
38546rm -f conftest.$ac_objext conftest$ac_exeext
38547if { (ac_try="$ac_link"
38548case "(($ac_try" in
38549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38550  *) ac_try_echo=$ac_try;;
38551esac
38552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38553  (eval "$ac_link") 2>conftest.er1
38554  ac_status=$?
38555  grep -v '^ *+' conftest.er1 >conftest.err
38556  rm -f conftest.er1
38557  cat conftest.err >&5
38558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559  (exit $ac_status); } && {
38560	 test -z "$ac_c_werror_flag" ||
38561	 test ! -s conftest.err
38562       } && test -s conftest$ac_exeext &&
38563       $as_test_x conftest$ac_exeext; then
38564  eval "$as_ac_var=yes"
38565else
38566  echo "$as_me: failed program was:" >&5
38567sed 's/^/| /' conftest.$ac_ext >&5
38568
38569	eval "$as_ac_var=no"
38570fi
38571
38572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38573      conftest$ac_exeext conftest.$ac_ext
38574fi
38575ac_res=`eval echo '${'$as_ac_var'}'`
38576	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38577echo "${ECHO_T}$ac_res" >&6; }
38578if test `eval echo '${'$as_ac_var'}'` = yes; then
38579  cat >>confdefs.h <<_ACEOF
38580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38581_ACEOF
38582 cat >>confdefs.h <<\_ACEOF
38583#define BX_HAVE_MVHLINE 1
38584_ACEOF
38585
38586fi
38587done
38588
38589
38590for ac_func in mvvline
38591do
38592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38593{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38595if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38596  echo $ECHO_N "(cached) $ECHO_C" >&6
38597else
38598  cat >conftest.$ac_ext <<_ACEOF
38599/* confdefs.h.  */
38600_ACEOF
38601cat confdefs.h >>conftest.$ac_ext
38602cat >>conftest.$ac_ext <<_ACEOF
38603/* end confdefs.h.  */
38604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38605   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38606#define $ac_func innocuous_$ac_func
38607
38608/* System header to define __stub macros and hopefully few prototypes,
38609    which can conflict with char $ac_func (); below.
38610    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38611    <limits.h> exists even on freestanding compilers.  */
38612
38613#ifdef __STDC__
38614# include <limits.h>
38615#else
38616# include <assert.h>
38617#endif
38618
38619#undef $ac_func
38620
38621/* Override any GCC internal prototype to avoid an error.
38622   Use char because int might match the return type of a GCC
38623   builtin and then its argument prototype would still apply.  */
38624#ifdef __cplusplus
38625extern "C"
38626#endif
38627char $ac_func ();
38628/* The GNU C library defines this for functions which it implements
38629    to always fail with ENOSYS.  Some functions are actually named
38630    something starting with __ and the normal name is an alias.  */
38631#if defined __stub_$ac_func || defined __stub___$ac_func
38632choke me
38633#endif
38634
38635int
38636main ()
38637{
38638return $ac_func ();
38639  ;
38640  return 0;
38641}
38642_ACEOF
38643rm -f conftest.$ac_objext conftest$ac_exeext
38644if { (ac_try="$ac_link"
38645case "(($ac_try" in
38646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38647  *) ac_try_echo=$ac_try;;
38648esac
38649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38650  (eval "$ac_link") 2>conftest.er1
38651  ac_status=$?
38652  grep -v '^ *+' conftest.er1 >conftest.err
38653  rm -f conftest.er1
38654  cat conftest.err >&5
38655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656  (exit $ac_status); } && {
38657	 test -z "$ac_c_werror_flag" ||
38658	 test ! -s conftest.err
38659       } && test -s conftest$ac_exeext &&
38660       $as_test_x conftest$ac_exeext; then
38661  eval "$as_ac_var=yes"
38662else
38663  echo "$as_me: failed program was:" >&5
38664sed 's/^/| /' conftest.$ac_ext >&5
38665
38666	eval "$as_ac_var=no"
38667fi
38668
38669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38670      conftest$ac_exeext conftest.$ac_ext
38671fi
38672ac_res=`eval echo '${'$as_ac_var'}'`
38673	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38674echo "${ECHO_T}$ac_res" >&6; }
38675if test `eval echo '${'$as_ac_var'}'` = yes; then
38676  cat >>confdefs.h <<_ACEOF
38677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38678_ACEOF
38679 cat >>confdefs.h <<\_ACEOF
38680#define BX_HAVE_MVVLINE 1
38681_ACEOF
38682
38683fi
38684done
38685
38686  LIBS="$old_LIBS"
38687fi
38688
38689if test "$with_rfb" = yes; then
38690  # we need the socket function
38691  case $target in
38692    *-pc-windows*)
38693      # is this okay without a check ?
38694      RFB_LIBS="$RFB_LIBS wsock32.lib"
38695      have_socket=yes
38696      ;;
38697    *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38698      # is this okay without a check ?
38699      RFB_LIBS="$RFB_LIBS -lwsock32"
38700      have_socket=yes
38701      ;;
38702    *)
38703
38704for ac_func in socket
38705do
38706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38707{ echo "$as_me:$LINENO: checking for $ac_func" >&5
38708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38709if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38710  echo $ECHO_N "(cached) $ECHO_C" >&6
38711else
38712  cat >conftest.$ac_ext <<_ACEOF
38713/* confdefs.h.  */
38714_ACEOF
38715cat confdefs.h >>conftest.$ac_ext
38716cat >>conftest.$ac_ext <<_ACEOF
38717/* end confdefs.h.  */
38718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38719   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38720#define $ac_func innocuous_$ac_func
38721
38722/* System header to define __stub macros and hopefully few prototypes,
38723    which can conflict with char $ac_func (); below.
38724    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38725    <limits.h> exists even on freestanding compilers.  */
38726
38727#ifdef __STDC__
38728# include <limits.h>
38729#else
38730# include <assert.h>
38731#endif
38732
38733#undef $ac_func
38734
38735/* Override any GCC internal prototype to avoid an error.
38736   Use char because int might match the return type of a GCC
38737   builtin and then its argument prototype would still apply.  */
38738#ifdef __cplusplus
38739extern "C"
38740#endif
38741char $ac_func ();
38742/* The GNU C library defines this for functions which it implements
38743    to always fail with ENOSYS.  Some functions are actually named
38744    something starting with __ and the normal name is an alias.  */
38745#if defined __stub_$ac_func || defined __stub___$ac_func
38746choke me
38747#endif
38748
38749int
38750main ()
38751{
38752return $ac_func ();
38753  ;
38754  return 0;
38755}
38756_ACEOF
38757rm -f conftest.$ac_objext conftest$ac_exeext
38758if { (ac_try="$ac_link"
38759case "(($ac_try" in
38760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38761  *) ac_try_echo=$ac_try;;
38762esac
38763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38764  (eval "$ac_link") 2>conftest.er1
38765  ac_status=$?
38766  grep -v '^ *+' conftest.er1 >conftest.err
38767  rm -f conftest.er1
38768  cat conftest.err >&5
38769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770  (exit $ac_status); } && {
38771	 test -z "$ac_c_werror_flag" ||
38772	 test ! -s conftest.err
38773       } && test -s conftest$ac_exeext &&
38774       $as_test_x conftest$ac_exeext; then
38775  eval "$as_ac_var=yes"
38776else
38777  echo "$as_me: failed program was:" >&5
38778sed 's/^/| /' conftest.$ac_ext >&5
38779
38780	eval "$as_ac_var=no"
38781fi
38782
38783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38784      conftest$ac_exeext conftest.$ac_ext
38785fi
38786ac_res=`eval echo '${'$as_ac_var'}'`
38787	       { echo "$as_me:$LINENO: result: $ac_res" >&5
38788echo "${ECHO_T}$ac_res" >&6; }
38789if test `eval echo '${'$as_ac_var'}'` = yes; then
38790  cat >>confdefs.h <<_ACEOF
38791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38792_ACEOF
38793 have_socket=yes
38794fi
38795done
38796
38797      if test "$have_socket" != yes; then
38798        { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38799echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
38800if test "${ac_cv_lib_socket_socket+set}" = set; then
38801  echo $ECHO_N "(cached) $ECHO_C" >&6
38802else
38803  ac_check_lib_save_LIBS=$LIBS
38804LIBS="-lsocket  $LIBS"
38805cat >conftest.$ac_ext <<_ACEOF
38806/* confdefs.h.  */
38807_ACEOF
38808cat confdefs.h >>conftest.$ac_ext
38809cat >>conftest.$ac_ext <<_ACEOF
38810/* end confdefs.h.  */
38811
38812/* Override any GCC internal prototype to avoid an error.
38813   Use char because int might match the return type of a GCC
38814   builtin and then its argument prototype would still apply.  */
38815#ifdef __cplusplus
38816extern "C"
38817#endif
38818char socket ();
38819int
38820main ()
38821{
38822return socket ();
38823  ;
38824  return 0;
38825}
38826_ACEOF
38827rm -f conftest.$ac_objext conftest$ac_exeext
38828if { (ac_try="$ac_link"
38829case "(($ac_try" in
38830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38831  *) ac_try_echo=$ac_try;;
38832esac
38833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38834  (eval "$ac_link") 2>conftest.er1
38835  ac_status=$?
38836  grep -v '^ *+' conftest.er1 >conftest.err
38837  rm -f conftest.er1
38838  cat conftest.err >&5
38839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840  (exit $ac_status); } && {
38841	 test -z "$ac_c_werror_flag" ||
38842	 test ! -s conftest.err
38843       } && test -s conftest$ac_exeext &&
38844       $as_test_x conftest$ac_exeext; then
38845  ac_cv_lib_socket_socket=yes
38846else
38847  echo "$as_me: failed program was:" >&5
38848sed 's/^/| /' conftest.$ac_ext >&5
38849
38850	ac_cv_lib_socket_socket=no
38851fi
38852
38853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38854      conftest$ac_exeext conftest.$ac_ext
38855LIBS=$ac_check_lib_save_LIBS
38856fi
38857{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38858echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
38859if test $ac_cv_lib_socket_socket = yes; then
38860
38861            RFB_LIBS="$RFB_LIBS -lsocket"
38862            have_socket=yes
38863
38864fi
38865
38866      fi
38867      ;;
38868  esac
38869  if test "$have_socket" != yes; then
38870    echo 'ERROR: socket function required for RFB compile'
38871    exit 1
38872  fi
38873fi
38874
38875# The ACX_PTHREAD function was written by
38876# Steven G. Johnson <stevenj@alum.mit.edu> and
38877# Alejandro Forero Cuervo <bachue@bachue.com>
38878# I found it in the ac-archive project on Source Forge.
38879
38880
38881pthread_ok=no
38882
38883
38884acx_pthread_ok=no
38885
38886# First, check if the POSIX threads header, pthread.h, is available.
38887# If it isn't, don't bother looking for the threads libraries.
38888if test "${ac_cv_header_pthread_h+set}" = set; then
38889  { echo "$as_me:$LINENO: checking for pthread.h" >&5
38890echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38891if test "${ac_cv_header_pthread_h+set}" = set; then
38892  echo $ECHO_N "(cached) $ECHO_C" >&6
38893fi
38894{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38895echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38896else
38897  # Is the header compilable?
38898{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
38899echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
38900cat >conftest.$ac_ext <<_ACEOF
38901/* confdefs.h.  */
38902_ACEOF
38903cat confdefs.h >>conftest.$ac_ext
38904cat >>conftest.$ac_ext <<_ACEOF
38905/* end confdefs.h.  */
38906$ac_includes_default
38907#include <pthread.h>
38908_ACEOF
38909rm -f conftest.$ac_objext
38910if { (ac_try="$ac_compile"
38911case "(($ac_try" in
38912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38913  *) ac_try_echo=$ac_try;;
38914esac
38915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38916  (eval "$ac_compile") 2>conftest.er1
38917  ac_status=$?
38918  grep -v '^ *+' conftest.er1 >conftest.err
38919  rm -f conftest.er1
38920  cat conftest.err >&5
38921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922  (exit $ac_status); } && {
38923	 test -z "$ac_c_werror_flag" ||
38924	 test ! -s conftest.err
38925       } && test -s conftest.$ac_objext; then
38926  ac_header_compiler=yes
38927else
38928  echo "$as_me: failed program was:" >&5
38929sed 's/^/| /' conftest.$ac_ext >&5
38930
38931	ac_header_compiler=no
38932fi
38933
38934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38935{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38936echo "${ECHO_T}$ac_header_compiler" >&6; }
38937
38938# Is the header present?
38939{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
38940echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
38941cat >conftest.$ac_ext <<_ACEOF
38942/* confdefs.h.  */
38943_ACEOF
38944cat confdefs.h >>conftest.$ac_ext
38945cat >>conftest.$ac_ext <<_ACEOF
38946/* end confdefs.h.  */
38947#include <pthread.h>
38948_ACEOF
38949if { (ac_try="$ac_cpp conftest.$ac_ext"
38950case "(($ac_try" in
38951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38952  *) ac_try_echo=$ac_try;;
38953esac
38954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38955  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38956  ac_status=$?
38957  grep -v '^ *+' conftest.er1 >conftest.err
38958  rm -f conftest.er1
38959  cat conftest.err >&5
38960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961  (exit $ac_status); } >/dev/null && {
38962	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38963	 test ! -s conftest.err
38964       }; then
38965  ac_header_preproc=yes
38966else
38967  echo "$as_me: failed program was:" >&5
38968sed 's/^/| /' conftest.$ac_ext >&5
38969
38970  ac_header_preproc=no
38971fi
38972
38973rm -f conftest.err conftest.$ac_ext
38974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38975echo "${ECHO_T}$ac_header_preproc" >&6; }
38976
38977# So?  What about this header?
38978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38979  yes:no: )
38980    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
38981echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38982    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
38983echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
38984    ac_header_preproc=yes
38985    ;;
38986  no:yes:* )
38987    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
38988echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
38989    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
38990echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
38991    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
38992echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
38993    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
38994echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38995    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
38996echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
38997    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
38998echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
38999
39000    ;;
39001esac
39002{ echo "$as_me:$LINENO: checking for pthread.h" >&5
39003echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
39004if test "${ac_cv_header_pthread_h+set}" = set; then
39005  echo $ECHO_N "(cached) $ECHO_C" >&6
39006else
39007  ac_cv_header_pthread_h=$ac_header_preproc
39008fi
39009{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
39010echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
39011
39012fi
39013if test $ac_cv_header_pthread_h = yes; then
39014  :
39015else
39016  acx_pthread_ok=noheader
39017fi
39018
39019
39020
39021# We must check for the threads library under a number of different
39022# names; the ordering is very important because some systems
39023# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
39024# libraries is broken (non-POSIX).
39025
39026# First of all, check if the user has set any of the PTHREAD_LIBS,
39027# etcetera environment variables, and if threads linking works using
39028# them:
39029if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
39030	save_CFLAGS="$CFLAGS"
39031	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39032	CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39033	save_LIBS="$LIBS"
39034	LIBS="$PTHREAD_LIBS $LIBS"
39035	{ echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
39036echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
39037	cat >conftest.$ac_ext <<_ACEOF
39038/* confdefs.h.  */
39039_ACEOF
39040cat confdefs.h >>conftest.$ac_ext
39041cat >>conftest.$ac_ext <<_ACEOF
39042/* end confdefs.h.  */
39043
39044/* Override any GCC internal prototype to avoid an error.
39045   Use char because int might match the return type of a GCC
39046   builtin and then its argument prototype would still apply.  */
39047#ifdef __cplusplus
39048extern "C"
39049#endif
39050char pthread_join ();
39051int
39052main ()
39053{
39054return pthread_join ();
39055  ;
39056  return 0;
39057}
39058_ACEOF
39059rm -f conftest.$ac_objext conftest$ac_exeext
39060if { (ac_try="$ac_link"
39061case "(($ac_try" in
39062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39063  *) ac_try_echo=$ac_try;;
39064esac
39065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39066  (eval "$ac_link") 2>conftest.er1
39067  ac_status=$?
39068  grep -v '^ *+' conftest.er1 >conftest.err
39069  rm -f conftest.er1
39070  cat conftest.err >&5
39071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072  (exit $ac_status); } && {
39073	 test -z "$ac_c_werror_flag" ||
39074	 test ! -s conftest.err
39075       } && test -s conftest$ac_exeext &&
39076       $as_test_x conftest$ac_exeext; then
39077  acx_pthread_ok=yes
39078else
39079  echo "$as_me: failed program was:" >&5
39080sed 's/^/| /' conftest.$ac_ext >&5
39081
39082
39083fi
39084
39085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39086      conftest$ac_exeext conftest.$ac_ext
39087	{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
39088echo "${ECHO_T}$acx_pthread_ok" >&6; }
39089	if test x"$acx_pthread_ok" = xno; then
39090		PTHREAD_LIBS=""
39091		PTHREAD_CFLAGS=""
39092	fi
39093	LIBS="$save_LIBS"
39094	CFLAGS="$save_CFLAGS"
39095fi
39096
39097# Create a list of thread flags to try.  Items starting with a "-" are
39098# C compiler flags, and other items are library names, except for "none"
39099# which indicates that we try without any flags at all.
39100
39101acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
39102
39103# The ordering *is* (sometimes) important.  Some notes on the
39104# individual items follow:
39105
39106# pthreads: AIX (must check this before -lpthread)
39107# none: in case threads are in libc; should be tried before -Kthread and
39108#       other compiler flags to prevent continual compiler warnings
39109# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
39110# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
39111# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
39112# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
39113# -pthreads: Solaris/gcc
39114# -mthreads: Mingw32/gcc, Lynx/gcc
39115# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
39116#      doesn't hurt to check since this sometimes defines pthreads too;
39117#      also defines -D_REENTRANT)
39118# pthread: Linux, etcetera
39119# --thread-safe: KAI C++
39120
39121case "${host_cpu}-${host_os}" in
39122	*solaris*)
39123
39124	# On Solaris (at least, for some versions), libc contains stubbed
39125	# (non-functional) versions of the pthreads routines, so link-based
39126	# tests will erroneously succeed.  (We need to link with -pthread or
39127	# -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
39128	# a function called by this macro, so we could check for that, but
39129	# who knows whether they'll stub that too in a future libc.)  So,
39130	# we'll just look for -pthreads and -lpthread first:
39131
39132	acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
39133	;;
39134esac
39135
39136if test x"$acx_pthread_ok" = xno; then
39137for flag in $acx_pthread_flags; do
39138
39139	case $flag in
39140		none)
39141		{ echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39142echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39143		;;
39144
39145		-*)
39146		{ echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39147echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39148		PTHREAD_CFLAGS="$flag"
39149		;;
39150
39151		*)
39152		{ echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39153echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39154		PTHREAD_LIBS="-l$flag"
39155		;;
39156	esac
39157
39158	save_LIBS="$LIBS"
39159	save_CFLAGS="$CFLAGS"
39160	LIBS="$PTHREAD_LIBS $LIBS"
39161	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39162
39163	# Check for various functions.  We must include pthread.h,
39164	# since some functions may be macros.  (On the Sequent, we
39165	# need a special flag -Kthread to make this header compile.)
39166	# We check for pthread_join because it is in -lpthread on IRIX
39167	# while pthread_create is in libc.  We check for pthread_attr_init
39168	# due to DEC craziness with -lpthreads.  We check for
39169	# pthread_cleanup_push because it is one of the few pthread
39170	# functions on Solaris that doesn't have a non-functional libc stub.
39171	# We try pthread_create on general principles.
39172	cat >conftest.$ac_ext <<_ACEOF
39173/* confdefs.h.  */
39174_ACEOF
39175cat confdefs.h >>conftest.$ac_ext
39176cat >>conftest.$ac_ext <<_ACEOF
39177/* end confdefs.h.  */
39178#include <pthread.h>
39179int
39180main ()
39181{
39182pthread_t th; pthread_join(th, 0);
39183		     pthread_attr_init(0); pthread_cleanup_push(0, 0);
39184		     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
39185  ;
39186  return 0;
39187}
39188_ACEOF
39189rm -f conftest.$ac_objext conftest$ac_exeext
39190if { (ac_try="$ac_link"
39191case "(($ac_try" in
39192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39193  *) ac_try_echo=$ac_try;;
39194esac
39195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39196  (eval "$ac_link") 2>conftest.er1
39197  ac_status=$?
39198  grep -v '^ *+' conftest.er1 >conftest.err
39199  rm -f conftest.er1
39200  cat conftest.err >&5
39201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202  (exit $ac_status); } && {
39203	 test -z "$ac_c_werror_flag" ||
39204	 test ! -s conftest.err
39205       } && test -s conftest$ac_exeext &&
39206       $as_test_x conftest$ac_exeext; then
39207  acx_pthread_ok=yes
39208else
39209  echo "$as_me: failed program was:" >&5
39210sed 's/^/| /' conftest.$ac_ext >&5
39211
39212
39213fi
39214
39215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39216      conftest$ac_exeext conftest.$ac_ext
39217
39218	LIBS="$save_LIBS"
39219	CFLAGS="$save_CFLAGS"
39220
39221	{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
39222echo "${ECHO_T}$acx_pthread_ok" >&6; }
39223	if test "x$acx_pthread_ok" = xyes; then
39224		break;
39225	fi
39226
39227	PTHREAD_LIBS=""
39228	PTHREAD_CFLAGS=""
39229done
39230fi
39231
39232# Various other checks:
39233if test "x$acx_pthread_ok" = xyes; then
39234	save_LIBS="$LIBS"
39235	LIBS="$PTHREAD_LIBS $LIBS"
39236	save_CFLAGS="$CFLAGS"
39237	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39238
39239	# Detect AIX lossage: threads are created detached by default
39240	# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
39241	{ echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
39242echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
39243	cat >conftest.$ac_ext <<_ACEOF
39244/* confdefs.h.  */
39245_ACEOF
39246cat confdefs.h >>conftest.$ac_ext
39247cat >>conftest.$ac_ext <<_ACEOF
39248/* end confdefs.h.  */
39249#include <pthread.h>
39250int
39251main ()
39252{
39253int attr=PTHREAD_CREATE_JOINABLE;
39254  ;
39255  return 0;
39256}
39257_ACEOF
39258rm -f conftest.$ac_objext conftest$ac_exeext
39259if { (ac_try="$ac_link"
39260case "(($ac_try" in
39261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39262  *) ac_try_echo=$ac_try;;
39263esac
39264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39265  (eval "$ac_link") 2>conftest.er1
39266  ac_status=$?
39267  grep -v '^ *+' conftest.er1 >conftest.err
39268  rm -f conftest.er1
39269  cat conftest.err >&5
39270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271  (exit $ac_status); } && {
39272	 test -z "$ac_c_werror_flag" ||
39273	 test ! -s conftest.err
39274       } && test -s conftest$ac_exeext &&
39275       $as_test_x conftest$ac_exeext; then
39276  ok=PTHREAD_CREATE_JOINABLE
39277else
39278  echo "$as_me: failed program was:" >&5
39279sed 's/^/| /' conftest.$ac_ext >&5
39280
39281	ok=unknown
39282fi
39283
39284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39285      conftest$ac_exeext conftest.$ac_ext
39286	if test x"$ok" = xunknown; then
39287		cat >conftest.$ac_ext <<_ACEOF
39288/* confdefs.h.  */
39289_ACEOF
39290cat confdefs.h >>conftest.$ac_ext
39291cat >>conftest.$ac_ext <<_ACEOF
39292/* end confdefs.h.  */
39293#include <pthread.h>
39294int
39295main ()
39296{
39297int attr=PTHREAD_CREATE_UNDETACHED;
39298  ;
39299  return 0;
39300}
39301_ACEOF
39302rm -f conftest.$ac_objext conftest$ac_exeext
39303if { (ac_try="$ac_link"
39304case "(($ac_try" in
39305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39306  *) ac_try_echo=$ac_try;;
39307esac
39308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39309  (eval "$ac_link") 2>conftest.er1
39310  ac_status=$?
39311  grep -v '^ *+' conftest.er1 >conftest.err
39312  rm -f conftest.er1
39313  cat conftest.err >&5
39314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315  (exit $ac_status); } && {
39316	 test -z "$ac_c_werror_flag" ||
39317	 test ! -s conftest.err
39318       } && test -s conftest$ac_exeext &&
39319       $as_test_x conftest$ac_exeext; then
39320  ok=PTHREAD_CREATE_UNDETACHED
39321else
39322  echo "$as_me: failed program was:" >&5
39323sed 's/^/| /' conftest.$ac_ext >&5
39324
39325	ok=unknown
39326fi
39327
39328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39329      conftest$ac_exeext conftest.$ac_ext
39330	fi
39331	if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
39332
39333cat >>confdefs.h <<\_ACEOF
39334#define PTHREAD_CREATE_JOINABLE $ok
39335_ACEOF
39336
39337	fi
39338	{ echo "$as_me:$LINENO: result: ${ok}" >&5
39339echo "${ECHO_T}${ok}" >&6; }
39340	if test x"$ok" = xunknown; then
39341		{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
39342echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
39343	fi
39344
39345	{ echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39346echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39347	flag=no
39348	case "${host_cpu}-${host_os}" in
39349		*-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
39350		*solaris* | alpha*-osf*) flag="-D_REENTRANT";;
39351	esac
39352	{ echo "$as_me:$LINENO: result: ${flag}" >&5
39353echo "${ECHO_T}${flag}" >&6; }
39354	if test "x$flag" != xno; then
39355		PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
39356	fi
39357
39358	LIBS="$save_LIBS"
39359	CFLAGS="$save_CFLAGS"
39360
39361	# More AIX lossage: must compile with cc_r
39362	# Extract the first word of "cc_r", so it can be a program name with args.
39363set dummy cc_r; ac_word=$2
39364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
39365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39366if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
39367  echo $ECHO_N "(cached) $ECHO_C" >&6
39368else
39369  if test -n "$PTHREAD_CC"; then
39370  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
39371else
39372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39373for as_dir in $PATH
39374do
39375  IFS=$as_save_IFS
39376  test -z "$as_dir" && as_dir=.
39377  for ac_exec_ext in '' $ac_executable_extensions; do
39378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39379    ac_cv_prog_PTHREAD_CC="cc_r"
39380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39381    break 2
39382  fi
39383done
39384done
39385IFS=$as_save_IFS
39386
39387  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
39388fi
39389fi
39390PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
39391if test -n "$PTHREAD_CC"; then
39392  { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
39393echo "${ECHO_T}$PTHREAD_CC" >&6; }
39394else
39395  { echo "$as_me:$LINENO: result: no" >&5
39396echo "${ECHO_T}no" >&6; }
39397fi
39398
39399
39400else
39401	PTHREAD_CC="$CC"
39402fi
39403
39404
39405
39406
39407
39408# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39409if test x"$acx_pthread_ok" = xyes; then
39410
39411  pthread_ok=yes
39412  #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39413  #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39414  #echo Using PTHREAD_CC=$PTHREAD_CC
39415
39416	:
39417else
39418	acx_pthread_ok=no
39419
39420fi
39421
39422
39423
39424
39425# since RFB (usually) needs pthread library, check that it was found.
39426# But on win32 platforms, the pthread library is not needed.
39427if test "$with_rfb" = yes -a "$cross_configure" = 0; then
39428  if test "$pthread_ok" = yes; then
39429    RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
39430    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39431    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39432    CC="$PTHREAD_CC"
39433  else
39434    case "$target" in
39435	  *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
39436	    # pthread not needed for win32 platform
39437		;;
39438	  *)
39439    echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
39440    esac
39441  fi
39442fi
39443
39444
39445{ echo "$as_me:$LINENO: checking for guest to host TLB support (deprecated)" >&5
39446echo $ECHO_N "checking for guest to host TLB support (deprecated)... $ECHO_C" >&6; }
39447# Check whether --enable-guest2host-tlb was given.
39448if test "${enable_guest2host_tlb+set}" = set; then
39449  enableval=$enable_guest2host_tlb; { echo "$as_me:$LINENO: result: $enableval" >&5
39450echo "${ECHO_T}$enableval" >&6; }
39451   { { echo "$as_me:$LINENO: error: DEPRECATED - ALWAYS ON" >&5
39452echo "$as_me: error: DEPRECATED - ALWAYS ON" >&2;}
39453   { (exit 1); exit 1; }; }
39454
39455else
39456
39457   { echo "$as_me:$LINENO: result: no" >&5
39458echo "${ECHO_T}no" >&6; }
39459
39460fi
39461
39462
39463{ echo "$as_me:$LINENO: checking for external debugger interface (deprecated)" >&5
39464echo $ECHO_N "checking for external debugger interface (deprecated)... $ECHO_C" >&6; }
39465# Check whether --enable-external-debugger was given.
39466if test "${enable_external_debugger+set}" = set; then
39467  enableval=$enable_external_debugger; { echo "$as_me:$LINENO: result: $enableval" >&5
39468echo "${ECHO_T}$enableval" >&6; }
39469   { { echo "$as_me:$LINENO: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&5
39470echo "$as_me: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&2;}
39471   { (exit 1); exit 1; }; }
39472
39473else
39474
39475   { echo "$as_me:$LINENO: result: no" >&5
39476echo "${ECHO_T}no" >&6; }
39477
39478fi
39479
39480
39481{ echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
39482echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
39483# Check whether --enable-magic-breakpoints was given.
39484if test "${enable_magic_breakpoints+set}" = set; then
39485  enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
39486echo "${ECHO_T}$enableval" >&6; }
39487   { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
39488echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
39489   { (exit 1); exit 1; }; }
39490
39491else
39492
39493   { echo "$as_me:$LINENO: result: no" >&5
39494echo "${ECHO_T}no" >&6; }
39495
39496fi
39497
39498
39499{ echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
39500echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
39501# Check whether --enable-save-restore was given.
39502if test "${enable_save_restore+set}" = set; then
39503  enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
39504echo "${ECHO_T}$enableval" >&6; }
39505   { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
39506echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
39507   { (exit 1); exit 1; }; }
39508
39509else
39510
39511   { echo "$as_me:$LINENO: result: no" >&5
39512echo "${ECHO_T}no" >&6; }
39513
39514fi
39515
39516
39517# Create some subdirectories for when you run configure from some other
39518# directory.
39519if test ! -d instrument; then mkdir instrument; fi
39520if test ! -d build; then mkdir build; fi
39521if test ! -d build/linux; then mkdir build/linux; fi
39522if test ! -d build/win32; then mkdir build/win32; fi
39523if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
39540
39541
39542
39543
39544
39545
39546
39547
39548
39549
39550
39551
39552
39553
39554
39555
39556
39557
39558
39559
39560
39561
39562
39563# Extract the first word of "gzip", so it can be a program name with args.
39564set dummy gzip; ac_word=$2
39565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
39566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39567if test "${ac_cv_path_GZIP+set}" = set; then
39568  echo $ECHO_N "(cached) $ECHO_C" >&6
39569else
39570  case $GZIP in
39571  [\\/]* | ?:[\\/]*)
39572  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
39573  ;;
39574  *)
39575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39576for as_dir in $PATH
39577do
39578  IFS=$as_save_IFS
39579  test -z "$as_dir" && as_dir=.
39580  for ac_exec_ext in '' $ac_executable_extensions; do
39581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39582    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
39583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39584    break 2
39585  fi
39586done
39587done
39588IFS=$as_save_IFS
39589
39590  ;;
39591esac
39592fi
39593GZIP=$ac_cv_path_GZIP
39594if test -n "$GZIP"; then
39595  { echo "$as_me:$LINENO: result: $GZIP" >&5
39596echo "${ECHO_T}$GZIP" >&6; }
39597else
39598  { echo "$as_me:$LINENO: result: no" >&5
39599echo "${ECHO_T}no" >&6; }
39600fi
39601
39602
39603# Extract the first word of "tar", so it can be a program name with args.
39604set dummy tar; ac_word=$2
39605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
39606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39607if test "${ac_cv_path_TAR+set}" = set; then
39608  echo $ECHO_N "(cached) $ECHO_C" >&6
39609else
39610  case $TAR in
39611  [\\/]* | ?:[\\/]*)
39612  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
39613  ;;
39614  *)
39615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39616for as_dir in $PATH
39617do
39618  IFS=$as_save_IFS
39619  test -z "$as_dir" && as_dir=.
39620  for ac_exec_ext in '' $ac_executable_extensions; do
39621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39622    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
39623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39624    break 2
39625  fi
39626done
39627done
39628IFS=$as_save_IFS
39629
39630  ;;
39631esac
39632fi
39633TAR=$ac_cv_path_TAR
39634if test -n "$TAR"; then
39635  { echo "$as_me:$LINENO: result: $TAR" >&5
39636echo "${ECHO_T}$TAR" >&6; }
39637else
39638  { echo "$as_me:$LINENO: result: no" >&5
39639echo "${ECHO_T}no" >&6; }
39640fi
39641
39642
39643
39644ac_config_files="$ac_config_files Makefile bios/Makefile"
39645
39646cat >confcache <<\_ACEOF
39647# This file is a shell script that caches the results of configure
39648# tests run on this system so they can be shared between configure
39649# scripts and configure runs, see configure's option --config-cache.
39650# It is not useful on other systems.  If it contains results you don't
39651# want to keep, you may remove or edit it.
39652#
39653# config.status only pays attention to the cache file if you give it
39654# the --recheck option to rerun configure.
39655#
39656# `ac_cv_env_foo' variables (set or unset) will be overridden when
39657# loading this file, other *unset* `ac_cv_foo' will be assigned the
39658# following values.
39659
39660_ACEOF
39661
39662# The following way of writing the cache mishandles newlines in values,
39663# but we know of no workaround that is simple, portable, and efficient.
39664# So, we kill variables containing newlines.
39665# Ultrix sh set writes to stderr and can't be redirected directly,
39666# and sets the high bit in the cache file unless we assign to the vars.
39667(
39668  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39669    eval ac_val=\$$ac_var
39670    case $ac_val in #(
39671    *${as_nl}*)
39672      case $ac_var in #(
39673      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39675      esac
39676      case $ac_var in #(
39677      _ | IFS | as_nl) ;; #(
39678      *) $as_unset $ac_var ;;
39679      esac ;;
39680    esac
39681  done
39682
39683  (set) 2>&1 |
39684    case $as_nl`(ac_space=' '; set) 2>&1` in #(
39685    *${as_nl}ac_space=\ *)
39686      # `set' does not quote correctly, so add quotes (double-quote
39687      # substitution turns \\\\ into \\, and sed turns \\ into \).
39688      sed -n \
39689	"s/'/'\\\\''/g;
39690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39691      ;; #(
39692    *)
39693      # `set' quotes correctly as required by POSIX, so do not add quotes.
39694      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39695      ;;
39696    esac |
39697    sort
39698) |
39699  sed '
39700     /^ac_cv_env_/b end
39701     t clear
39702     :clear
39703     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39704     t end
39705     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39706     :end' >>confcache
39707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39708  if test -w "$cache_file"; then
39709    test "x$cache_file" != "x/dev/null" &&
39710      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39711echo "$as_me: updating cache $cache_file" >&6;}
39712    cat confcache >$cache_file
39713  else
39714    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39715echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39716  fi
39717fi
39718rm -f confcache
39719
39720test "x$prefix" = xNONE && prefix=$ac_default_prefix
39721# Let make expand exec_prefix.
39722test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39723
39724DEFS=-DHAVE_CONFIG_H
39725
39726ac_libobjs=
39727ac_ltlibobjs=
39728for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39729  # 1. Remove the extension, and $U if already installed.
39730  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39731  ac_i=`echo "$ac_i" | sed "$ac_script"`
39732  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39733  #    will be set to the directory where LIBOBJS objects are built.
39734  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39735  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39736done
39737LIBOBJS=$ac_libobjs
39738
39739LTLIBOBJS=$ac_ltlibobjs
39740
39741
39742
39743: ${CONFIG_STATUS=./config.status}
39744ac_clean_files_save=$ac_clean_files
39745ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39746{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39747echo "$as_me: creating $CONFIG_STATUS" >&6;}
39748cat >$CONFIG_STATUS <<_ACEOF
39749#! $SHELL
39750# Generated by $as_me.
39751# Run this file to recreate the current configuration.
39752# Compiler output produced by configure, useful for debugging
39753# configure, is in config.log if it exists.
39754
39755debug=false
39756ac_cs_recheck=false
39757ac_cs_silent=false
39758SHELL=\${CONFIG_SHELL-$SHELL}
39759_ACEOF
39760
39761cat >>$CONFIG_STATUS <<\_ACEOF
39762## --------------------- ##
39763## M4sh Initialization.  ##
39764## --------------------- ##
39765
39766# Be more Bourne compatible
39767DUALCASE=1; export DUALCASE # for MKS sh
39768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39769  emulate sh
39770  NULLCMD=:
39771  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39772  # is contrary to our usage.  Disable this feature.
39773  alias -g '${1+"$@"}'='"$@"'
39774  setopt NO_GLOB_SUBST
39775else
39776  case `(set -o) 2>/dev/null` in
39777  *posix*) set -o posix ;;
39778esac
39779
39780fi
39781
39782
39783
39784
39785# PATH needs CR
39786# Avoid depending upon Character Ranges.
39787as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39788as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39789as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39790as_cr_digits='0123456789'
39791as_cr_alnum=$as_cr_Letters$as_cr_digits
39792
39793# The user is always right.
39794if test "${PATH_SEPARATOR+set}" != set; then
39795  echo "#! /bin/sh" >conf$$.sh
39796  echo  "exit 0"   >>conf$$.sh
39797  chmod +x conf$$.sh
39798  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39799    PATH_SEPARATOR=';'
39800  else
39801    PATH_SEPARATOR=:
39802  fi
39803  rm -f conf$$.sh
39804fi
39805
39806# Support unset when possible.
39807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39808  as_unset=unset
39809else
39810  as_unset=false
39811fi
39812
39813
39814# IFS
39815# We need space, tab and new line, in precisely that order.  Quoting is
39816# there to prevent editors from complaining about space-tab.
39817# (If _AS_PATH_WALK were called with IFS unset, it would disable word
39818# splitting by setting IFS to empty value.)
39819as_nl='
39820'
39821IFS=" ""	$as_nl"
39822
39823# Find who we are.  Look in the path if we contain no directory separator.
39824case $0 in
39825  *[\\/]* ) as_myself=$0 ;;
39826  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39827for as_dir in $PATH
39828do
39829  IFS=$as_save_IFS
39830  test -z "$as_dir" && as_dir=.
39831  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39832done
39833IFS=$as_save_IFS
39834
39835     ;;
39836esac
39837# We did not find ourselves, most probably we were run as `sh COMMAND'
39838# in which case we are not to be found in the path.
39839if test "x$as_myself" = x; then
39840  as_myself=$0
39841fi
39842if test ! -f "$as_myself"; then
39843  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39844  { (exit 1); exit 1; }
39845fi
39846
39847# Work around bugs in pre-3.0 UWIN ksh.
39848for as_var in ENV MAIL MAILPATH
39849do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39850done
39851PS1='$ '
39852PS2='> '
39853PS4='+ '
39854
39855# NLS nuisances.
39856for as_var in \
39857  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39858  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39859  LC_TELEPHONE LC_TIME
39860do
39861  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39862    eval $as_var=C; export $as_var
39863  else
39864    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39865  fi
39866done
39867
39868# Required to use basename.
39869if expr a : '\(a\)' >/dev/null 2>&1 &&
39870   test "X`expr 00001 : '.*\(...\)'`" = X001; then
39871  as_expr=expr
39872else
39873  as_expr=false
39874fi
39875
39876if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39877  as_basename=basename
39878else
39879  as_basename=false
39880fi
39881
39882
39883# Name of the executable.
39884as_me=`$as_basename -- "$0" ||
39885$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39886	 X"$0" : 'X\(//\)$' \| \
39887	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39888echo X/"$0" |
39889    sed '/^.*\/\([^/][^/]*\)\/*$/{
39890	    s//\1/
39891	    q
39892	  }
39893	  /^X\/\(\/\/\)$/{
39894	    s//\1/
39895	    q
39896	  }
39897	  /^X\/\(\/\).*/{
39898	    s//\1/
39899	    q
39900	  }
39901	  s/.*/./; q'`
39902
39903# CDPATH.
39904$as_unset CDPATH
39905
39906
39907
39908  as_lineno_1=$LINENO
39909  as_lineno_2=$LINENO
39910  test "x$as_lineno_1" != "x$as_lineno_2" &&
39911  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39912
39913  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39914  # uniformly replaced by the line number.  The first 'sed' inserts a
39915  # line-number line after each line using $LINENO; the second 'sed'
39916  # does the real work.  The second script uses 'N' to pair each
39917  # line-number line with the line containing $LINENO, and appends
39918  # trailing '-' during substitution so that $LINENO is not a special
39919  # case at line end.
39920  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39921  # scripts with optimization help from Paolo Bonzini.  Blame Lee
39922  # E. McMahon (1931-1989) for sed's syntax.  :-)
39923  sed -n '
39924    p
39925    /[$]LINENO/=
39926  ' <$as_myself |
39927    sed '
39928      s/[$]LINENO.*/&-/
39929      t lineno
39930      b
39931      :lineno
39932      N
39933      :loop
39934      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39935      t loop
39936      s/-\n.*//
39937    ' >$as_me.lineno &&
39938  chmod +x "$as_me.lineno" ||
39939    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39940   { (exit 1); exit 1; }; }
39941
39942  # Don't try to exec as it changes $[0], causing all sort of problems
39943  # (the dirname of $[0] is not the place where we might find the
39944  # original and so on.  Autoconf is especially sensitive to this).
39945  . "./$as_me.lineno"
39946  # Exit status is that of the last command.
39947  exit
39948}
39949
39950
39951if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39952  as_dirname=dirname
39953else
39954  as_dirname=false
39955fi
39956
39957ECHO_C= ECHO_N= ECHO_T=
39958case `echo -n x` in
39959-n*)
39960  case `echo 'x\c'` in
39961  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
39962  *)   ECHO_C='\c';;
39963  esac;;
39964*)
39965  ECHO_N='-n';;
39966esac
39967
39968if expr a : '\(a\)' >/dev/null 2>&1 &&
39969   test "X`expr 00001 : '.*\(...\)'`" = X001; then
39970  as_expr=expr
39971else
39972  as_expr=false
39973fi
39974
39975rm -f conf$$ conf$$.exe conf$$.file
39976if test -d conf$$.dir; then
39977  rm -f conf$$.dir/conf$$.file
39978else
39979  rm -f conf$$.dir
39980  mkdir conf$$.dir
39981fi
39982echo >conf$$.file
39983if ln -s conf$$.file conf$$ 2>/dev/null; then
39984  as_ln_s='ln -s'
39985  # ... but there are two gotchas:
39986  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39987  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39988  # In both cases, we have to default to `cp -p'.
39989  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39990    as_ln_s='cp -p'
39991elif ln conf$$.file conf$$ 2>/dev/null; then
39992  as_ln_s=ln
39993else
39994  as_ln_s='cp -p'
39995fi
39996rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39997rmdir conf$$.dir 2>/dev/null
39998
39999if mkdir -p . 2>/dev/null; then
40000  as_mkdir_p=:
40001else
40002  test -d ./-p && rmdir ./-p
40003  as_mkdir_p=false
40004fi
40005
40006if test -x / >/dev/null 2>&1; then
40007  as_test_x='test -x'
40008else
40009  if ls -dL / >/dev/null 2>&1; then
40010    as_ls_L_option=L
40011  else
40012    as_ls_L_option=
40013  fi
40014  as_test_x='
40015    eval sh -c '\''
40016      if test -d "$1"; then
40017        test -d "$1/.";
40018      else
40019	case $1 in
40020        -*)set "./$1";;
40021	esac;
40022	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
40023	???[sx]*):;;*)false;;esac;fi
40024    '\'' sh
40025  '
40026fi
40027as_executable_p=$as_test_x
40028
40029# Sed expression to map a string onto a valid CPP name.
40030as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40031
40032# Sed expression to map a string onto a valid variable name.
40033as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40034
40035
40036exec 6>&1
40037
40038# Save the log message, to keep $[0] and so on meaningful, and to
40039# report actual input values of CONFIG_FILES etc. instead of their
40040# values after options handling.
40041ac_log="
40042This file was extended by $as_me, which was
40043generated by GNU Autoconf 2.61.  Invocation command line was
40044
40045  CONFIG_FILES    = $CONFIG_FILES
40046  CONFIG_HEADERS  = $CONFIG_HEADERS
40047  CONFIG_LINKS    = $CONFIG_LINKS
40048  CONFIG_COMMANDS = $CONFIG_COMMANDS
40049  $ $0 $@
40050
40051on `(hostname || uname -n) 2>/dev/null | sed 1q`
40052"
40053
40054_ACEOF
40055
40056cat >>$CONFIG_STATUS <<_ACEOF
40057# Files that config.status was made for.
40058config_files="$ac_config_files"
40059config_headers="$ac_config_headers"
40060
40061_ACEOF
40062
40063cat >>$CONFIG_STATUS <<\_ACEOF
40064ac_cs_usage="\
40065\`$as_me' instantiates files from templates according to the
40066current configuration.
40067
40068Usage: $0 [OPTIONS] [FILE]...
40069
40070  -h, --help       print this help, then exit
40071  -V, --version    print version number and configuration settings, then exit
40072  -q, --quiet      do not print progress messages
40073  -d, --debug      don't remove temporary files
40074      --recheck    update $as_me by reconfiguring in the same conditions
40075  --file=FILE[:TEMPLATE]
40076		   instantiate the configuration file FILE
40077  --header=FILE[:TEMPLATE]
40078		   instantiate the configuration header FILE
40079
40080Configuration files:
40081$config_files
40082
40083Configuration headers:
40084$config_headers
40085
40086Report bugs to <bug-autoconf@gnu.org>."
40087
40088_ACEOF
40089cat >>$CONFIG_STATUS <<_ACEOF
40090ac_cs_version="\\
40091config.status
40092configured by $0, generated by GNU Autoconf 2.61,
40093  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
40094
40095Copyright (C) 2006 Free Software Foundation, Inc.
40096This config.status script is free software; the Free Software Foundation
40097gives unlimited permission to copy, distribute and modify it."
40098
40099ac_pwd='$ac_pwd'
40100srcdir='$srcdir'
40101_ACEOF
40102
40103cat >>$CONFIG_STATUS <<\_ACEOF
40104# If no file are specified by the user, then we need to provide default
40105# value.  By we need to know if files were specified by the user.
40106ac_need_defaults=:
40107while test $# != 0
40108do
40109  case $1 in
40110  --*=*)
40111    ac_option=`expr "X$1" : 'X\([^=]*\)='`
40112    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40113    ac_shift=:
40114    ;;
40115  *)
40116    ac_option=$1
40117    ac_optarg=$2
40118    ac_shift=shift
40119    ;;
40120  esac
40121
40122  case $ac_option in
40123  # Handling of the options.
40124  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40125    ac_cs_recheck=: ;;
40126  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40127    echo "$ac_cs_version"; exit ;;
40128  --debug | --debu | --deb | --de | --d | -d )
40129    debug=: ;;
40130  --file | --fil | --fi | --f )
40131    $ac_shift
40132    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40133    ac_need_defaults=false;;
40134  --header | --heade | --head | --hea )
40135    $ac_shift
40136    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40137    ac_need_defaults=false;;
40138  --he | --h)
40139    # Conflict between --help and --header
40140    { echo "$as_me: error: ambiguous option: $1
40141Try \`$0 --help' for more information." >&2
40142   { (exit 1); exit 1; }; };;
40143  --help | --hel | -h )
40144    echo "$ac_cs_usage"; exit ;;
40145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40146  | -silent | --silent | --silen | --sile | --sil | --si | --s)
40147    ac_cs_silent=: ;;
40148
40149  # This is an error.
40150  -*) { echo "$as_me: error: unrecognized option: $1
40151Try \`$0 --help' for more information." >&2
40152   { (exit 1); exit 1; }; } ;;
40153
40154  *) ac_config_targets="$ac_config_targets $1"
40155     ac_need_defaults=false ;;
40156
40157  esac
40158  shift
40159done
40160
40161ac_configure_extra_args=
40162
40163if $ac_cs_silent; then
40164  exec 6>/dev/null
40165  ac_configure_extra_args="$ac_configure_extra_args --silent"
40166fi
40167
40168_ACEOF
40169cat >>$CONFIG_STATUS <<_ACEOF
40170if \$ac_cs_recheck; then
40171  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40172  CONFIG_SHELL=$SHELL
40173  export CONFIG_SHELL
40174  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40175fi
40176
40177_ACEOF
40178cat >>$CONFIG_STATUS <<\_ACEOF
40179exec 5>>config.log
40180{
40181  echo
40182  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40183## Running $as_me. ##
40184_ASBOX
40185  echo "$ac_log"
40186} >&5
40187
40188_ACEOF
40189cat >>$CONFIG_STATUS <<_ACEOF
40190_ACEOF
40191
40192cat >>$CONFIG_STATUS <<\_ACEOF
40193
40194# Handling of arguments.
40195for ac_config_target in $ac_config_targets
40196do
40197  case $ac_config_target in
40198    "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
40199
40200  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40201echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40202   { (exit 1); exit 1; }; };;
40203  esac
40204done
40205
40206
40207# If the user did not use the arguments to specify the items to instantiate,
40208# then the envvar interface is used.  Set only those that are not.
40209# We use the long form for the default assignment because of an extremely
40210# bizarre bug on SunOS 4.1.3.
40211if $ac_need_defaults; then
40212  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40213  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40214fi
40215
40216# Have a temporary directory for convenience.  Make it in the build tree
40217# simply because there is no reason against having it here, and in addition,
40218# creating and moving files from /tmp can sometimes cause problems.
40219# Hook for its removal unless debugging.
40220# Note that there is a small window in which the directory will not be cleaned:
40221# after its creation but before its name has been assigned to `$tmp'.
40222$debug ||
40223{
40224  tmp=
40225  trap 'exit_status=$?
40226  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40227' 0
40228  trap '{ (exit 1); exit 1; }' 1 2 13 15
40229}
40230# Create a (secure) tmp directory for tmp files.
40231
40232{
40233  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40234  test -n "$tmp" && test -d "$tmp"
40235}  ||
40236{
40237  tmp=./conf$$-$RANDOM
40238  (umask 077 && mkdir "$tmp")
40239} ||
40240{
40241   echo "$me: cannot create a temporary directory in ." >&2
40242   { (exit 1); exit 1; }
40243}
40244
40245#
40246# Set up the sed scripts for CONFIG_FILES section.
40247#
40248
40249# No need to generate the scripts if there are no CONFIG_FILES.
40250# This happens for instance when ./config.status config.h
40251if test -n "$CONFIG_FILES"; then
40252
40253_ACEOF
40254
40255
40256
40257ac_delim='%!_!# '
40258for ac_last_try in false false false false false :; do
40259  cat >conf$$subs.sed <<_ACEOF
40260SHELL!$SHELL$ac_delim
40261PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40262PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40263PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40264PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40265PACKAGE_STRING!$PACKAGE_STRING$ac_delim
40266PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
40267exec_prefix!$exec_prefix$ac_delim
40268prefix!$prefix$ac_delim
40269program_transform_name!$program_transform_name$ac_delim
40270bindir!$bindir$ac_delim
40271sbindir!$sbindir$ac_delim
40272libexecdir!$libexecdir$ac_delim
40273datarootdir!$datarootdir$ac_delim
40274datadir!$datadir$ac_delim
40275sysconfdir!$sysconfdir$ac_delim
40276sharedstatedir!$sharedstatedir$ac_delim
40277localstatedir!$localstatedir$ac_delim
40278includedir!$includedir$ac_delim
40279oldincludedir!$oldincludedir$ac_delim
40280docdir!$docdir$ac_delim
40281infodir!$infodir$ac_delim
40282htmldir!$htmldir$ac_delim
40283dvidir!$dvidir$ac_delim
40284pdfdir!$pdfdir$ac_delim
40285psdir!$psdir$ac_delim
40286libdir!$libdir$ac_delim
40287localedir!$localedir$ac_delim
40288mandir!$mandir$ac_delim
40289DEFS!$DEFS$ac_delim
40290ECHO_C!$ECHO_C$ac_delim
40291ECHO_N!$ECHO_N$ac_delim
40292ECHO_T!$ECHO_T$ac_delim
40293LIBS!$LIBS$ac_delim
40294build_alias!$build_alias$ac_delim
40295host_alias!$host_alias$ac_delim
40296target_alias!$target_alias$ac_delim
40297build!$build$ac_delim
40298build_cpu!$build_cpu$ac_delim
40299build_vendor!$build_vendor$ac_delim
40300build_os!$build_os$ac_delim
40301host!$host$ac_delim
40302host_cpu!$host_cpu$ac_delim
40303host_vendor!$host_vendor$ac_delim
40304host_os!$host_os$ac_delim
40305target!$target$ac_delim
40306target_cpu!$target_cpu$ac_delim
40307target_vendor!$target_vendor$ac_delim
40308target_os!$target_os$ac_delim
40309CC!$CC$ac_delim
40310CFLAGS!$CFLAGS$ac_delim
40311LDFLAGS!$LDFLAGS$ac_delim
40312CPPFLAGS!$CPPFLAGS$ac_delim
40313ac_ct_CC!$ac_ct_CC$ac_delim
40314EXEEXT!$EXEEXT$ac_delim
40315OBJEXT!$OBJEXT$ac_delim
40316CXX!$CXX$ac_delim
40317CXXFLAGS!$CXXFLAGS$ac_delim
40318ac_ct_CXX!$ac_ct_CXX$ac_delim
40319SET_MAKE!$SET_MAKE$ac_delim
40320GREP!$GREP$ac_delim
40321EGREP!$EGREP$ac_delim
40322LN_S!$LN_S$ac_delim
40323ECHO!$ECHO$ac_delim
40324AR!$AR$ac_delim
40325RANLIB!$RANLIB$ac_delim
40326STRIP!$STRIP$ac_delim
40327CPP!$CPP$ac_delim
40328CXXCPP!$CXXCPP$ac_delim
40329F77!$F77$ac_delim
40330FFLAGS!$FFLAGS$ac_delim
40331ac_ct_F77!$ac_ct_F77$ac_delim
40332LIBTOOL!$LIBTOOL$ac_delim
40333LIBADD_DL!$LIBADD_DL$ac_delim
40334XMKMF!$XMKMF$ac_delim
40335X_CFLAGS!$X_CFLAGS$ac_delim
40336X_PRE_LIBS!$X_PRE_LIBS$ac_delim
40337X_LIBS!$X_LIBS$ac_delim
40338X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
40339BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
40340DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
40341NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
40342OBJS64!$OBJS64$ac_delim
40343IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
40344BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
40345NE2K_OBJS!$NE2K_OBJS$ac_delim
40346BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
40347PCI_OBJ!$PCI_OBJ$ac_delim
40348KERNELDIR!$KERNELDIR$ac_delim
40349LSMOD!$LSMOD$ac_delim
40350INSMOD!$INSMOD$ac_delim
40351RMMOD!$RMMOD$ac_delim
40352DEPMOD!$DEPMOD$ac_delim
40353PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
40354KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
40355USBDEV_OBJS!$USBDEV_OBJS$ac_delim
40356SCSI_OBJS!$SCSI_OBJS$ac_delim
40357_ACEOF
40358
40359  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40360    break
40361  elif $ac_last_try; then
40362    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40363echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40364   { (exit 1); exit 1; }; }
40365  else
40366    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40367  fi
40368done
40369
40370ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40371if test -n "$ac_eof"; then
40372  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40373  ac_eof=`expr $ac_eof + 1`
40374fi
40375
40376cat >>$CONFIG_STATUS <<_ACEOF
40377cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40378/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40379_ACEOF
40380sed '
40381s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40382s/^/s,@/; s/!/@,|#_!!_#|/
40383:n
40384t n
40385s/'"$ac_delim"'$/,g/; t
40386s/$/\\/; p
40387N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40388' >>$CONFIG_STATUS <conf$$subs.sed
40389rm -f conf$$subs.sed
40390cat >>$CONFIG_STATUS <<_ACEOF
40391CEOF$ac_eof
40392_ACEOF
40393
40394
40395ac_delim='%!_!# '
40396for ac_last_try in false false false false false :; do
40397  cat >conf$$subs.sed <<_ACEOF
40398NETLOW_OBJS!$NETLOW_OBJS$ac_delim
40399SUFFIX_LINE!$SUFFIX_LINE$ac_delim
40400CPP_SUFFIX!$CPP_SUFFIX$ac_delim
40401DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
40402DISASM_VAR!$DISASM_VAR$ac_delim
40403READLINE_LIB!$READLINE_LIB$ac_delim
40404INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
40405INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
40406FPU_VAR!$FPU_VAR$ac_delim
40407CDROM_OBJS!$CDROM_OBJS$ac_delim
40408SB16_OBJS!$SB16_OBJS$ac_delim
40409SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
40410SOUND_LINK_OPTS!$SOUND_LINK_OPTS$ac_delim
40411GAME_OBJS!$GAME_OBJS$ac_delim
40412GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
40413IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
40414DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
40415BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
40416INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
40417IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
40418EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
40419NONINLINE_VAR!$NONINLINE_VAR$ac_delim
40420INLINE_VAR!$INLINE_VAR$ac_delim
40421EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
40422RC_CMD!$RC_CMD$ac_delim
40423WX_CONFIG!$WX_CONFIG$ac_delim
40424XPM_LIB!$XPM_LIB$ac_delim
40425GUI_CFLAGS!$GUI_CFLAGS$ac_delim
40426GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
40427WX_CFLAGS!$WX_CFLAGS$ac_delim
40428WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
40429TOOLKIT_CXXFLAGS!$TOOLKIT_CXXFLAGS$ac_delim
40430WGET!$WGET$ac_delim
40431ENH_DBG_OBJS!$ENH_DBG_OBJS$ac_delim
40432DIALOG_OBJS!$DIALOG_OBJS$ac_delim
40433EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
40434PTHREAD_CC!$PTHREAD_CC$ac_delim
40435PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
40436PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
40437INSTALL_TARGET!$INSTALL_TARGET$ac_delim
40438INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
40439RFB_LIBS!$RFB_LIBS$ac_delim
40440GUI_OBJS!$GUI_OBJS$ac_delim
40441DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
40442GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
40443GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
40444GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
40445BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
40446DASH!$DASH$ac_delim
40447SLASH!$SLASH$ac_delim
40448CXXFP!$CXXFP$ac_delim
40449CFP!$CFP$ac_delim
40450OFP!$OFP$ac_delim
40451MAKELIB!$MAKELIB$ac_delim
40452RMCOMMAND!$RMCOMMAND$ac_delim
40453LINK!$LINK$ac_delim
40454LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40455EXE!$EXE$ac_delim
40456PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
40457PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
40458COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
40459CD_UP_ONE!$CD_UP_ONE$ac_delim
40460CD_UP_TWO!$CD_UP_TWO$ac_delim
40461CD_UP_THREE!$CD_UP_THREE$ac_delim
40462VERSION!$VERSION$ac_delim
40463VER_STRING!$VER_STRING$ac_delim
40464WIN_VER_STRING!$WIN_VER_STRING$ac_delim
40465REL_STRING!$REL_STRING$ac_delim
40466EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
40467GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
40468GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
40469IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
40470IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
40471PLUGIN_VAR!$PLUGIN_VAR$ac_delim
40472PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
40473INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
40474GZIP!$GZIP$ac_delim
40475TAR!$TAR$ac_delim
40476LIBOBJS!$LIBOBJS$ac_delim
40477LTLIBOBJS!$LTLIBOBJS$ac_delim
40478_ACEOF
40479
40480  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
40481    break
40482  elif $ac_last_try; then
40483    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40484echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40485   { (exit 1); exit 1; }; }
40486  else
40487    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40488  fi
40489done
40490
40491ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40492if test -n "$ac_eof"; then
40493  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40494  ac_eof=`expr $ac_eof + 1`
40495fi
40496
40497cat >>$CONFIG_STATUS <<_ACEOF
40498cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40500_ACEOF
40501sed '
40502s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40503s/^/s,@/; s/!/@,|#_!!_#|/
40504:n
40505t n
40506s/'"$ac_delim"'$/,g/; t
40507s/$/\\/; p
40508N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40509' >>$CONFIG_STATUS <conf$$subs.sed
40510rm -f conf$$subs.sed
40511cat >>$CONFIG_STATUS <<_ACEOF
40512:end
40513s/|#_!!_#|//g
40514CEOF$ac_eof
40515_ACEOF
40516
40517
40518# VPATH may cause trouble with some makes, so we remove $(srcdir),
40519# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40520# trailing colons and then remove the whole line if VPATH becomes empty
40521# (actually we leave an empty line to preserve line numbers).
40522if test "x$srcdir" = x.; then
40523  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
40524s/:*\$(srcdir):*/:/
40525s/:*\${srcdir}:*/:/
40526s/:*@srcdir@:*/:/
40527s/^\([^=]*=[	 ]*\):*/\1/
40528s/:*$//
40529s/^[^=]*=[	 ]*$//
40530}'
40531fi
40532
40533cat >>$CONFIG_STATUS <<\_ACEOF
40534fi # test -n "$CONFIG_FILES"
40535
40536
40537for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
40538do
40539  case $ac_tag in
40540  :[FHLC]) ac_mode=$ac_tag; continue;;
40541  esac
40542  case $ac_mode$ac_tag in
40543  :[FHL]*:*);;
40544  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40545echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40546   { (exit 1); exit 1; }; };;
40547  :[FH]-) ac_tag=-:-;;
40548  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40549  esac
40550  ac_save_IFS=$IFS
40551  IFS=:
40552  set x $ac_tag
40553  IFS=$ac_save_IFS
40554  shift
40555  ac_file=$1
40556  shift
40557
40558  case $ac_mode in
40559  :L) ac_source=$1;;
40560  :[FH])
40561    ac_file_inputs=
40562    for ac_f
40563    do
40564      case $ac_f in
40565      -) ac_f="$tmp/stdin";;
40566      *) # Look for the file first in the build tree, then in the source tree
40567	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
40568	 # because $ac_f cannot contain `:'.
40569	 test -f "$ac_f" ||
40570	   case $ac_f in
40571	   [\\/$]*) false;;
40572	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40573	   esac ||
40574	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40575echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40576   { (exit 1); exit 1; }; };;
40577      esac
40578      ac_file_inputs="$ac_file_inputs $ac_f"
40579    done
40580
40581    # Let's still pretend it is `configure' which instantiates (i.e., don't
40582    # use $as_me), people would be surprised to read:
40583    #    /* config.h.  Generated by config.status.  */
40584    configure_input="Generated from "`IFS=:
40585	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40586    if test x"$ac_file" != x-; then
40587      configure_input="$ac_file.  $configure_input"
40588      { echo "$as_me:$LINENO: creating $ac_file" >&5
40589echo "$as_me: creating $ac_file" >&6;}
40590    fi
40591
40592    case $ac_tag in
40593    *:-:* | *:-) cat >"$tmp/stdin";;
40594    esac
40595    ;;
40596  esac
40597
40598  ac_dir=`$as_dirname -- "$ac_file" ||
40599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40600	 X"$ac_file" : 'X\(//\)[^/]' \| \
40601	 X"$ac_file" : 'X\(//\)$' \| \
40602	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40603echo X"$ac_file" |
40604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40605	    s//\1/
40606	    q
40607	  }
40608	  /^X\(\/\/\)[^/].*/{
40609	    s//\1/
40610	    q
40611	  }
40612	  /^X\(\/\/\)$/{
40613	    s//\1/
40614	    q
40615	  }
40616	  /^X\(\/\).*/{
40617	    s//\1/
40618	    q
40619	  }
40620	  s/.*/./; q'`
40621  { as_dir="$ac_dir"
40622  case $as_dir in #(
40623  -*) as_dir=./$as_dir;;
40624  esac
40625  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40626    as_dirs=
40627    while :; do
40628      case $as_dir in #(
40629      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40630      *) as_qdir=$as_dir;;
40631      esac
40632      as_dirs="'$as_qdir' $as_dirs"
40633      as_dir=`$as_dirname -- "$as_dir" ||
40634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40635	 X"$as_dir" : 'X\(//\)[^/]' \| \
40636	 X"$as_dir" : 'X\(//\)$' \| \
40637	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40638echo X"$as_dir" |
40639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40640	    s//\1/
40641	    q
40642	  }
40643	  /^X\(\/\/\)[^/].*/{
40644	    s//\1/
40645	    q
40646	  }
40647	  /^X\(\/\/\)$/{
40648	    s//\1/
40649	    q
40650	  }
40651	  /^X\(\/\).*/{
40652	    s//\1/
40653	    q
40654	  }
40655	  s/.*/./; q'`
40656      test -d "$as_dir" && break
40657    done
40658    test -z "$as_dirs" || eval "mkdir $as_dirs"
40659  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40660echo "$as_me: error: cannot create directory $as_dir" >&2;}
40661   { (exit 1); exit 1; }; }; }
40662  ac_builddir=.
40663
40664case "$ac_dir" in
40665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40666*)
40667  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40668  # A ".." for each directory in $ac_dir_suffix.
40669  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40670  case $ac_top_builddir_sub in
40671  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40672  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40673  esac ;;
40674esac
40675ac_abs_top_builddir=$ac_pwd
40676ac_abs_builddir=$ac_pwd$ac_dir_suffix
40677# for backward compatibility:
40678ac_top_builddir=$ac_top_build_prefix
40679
40680case $srcdir in
40681  .)  # We are building in place.
40682    ac_srcdir=.
40683    ac_top_srcdir=$ac_top_builddir_sub
40684    ac_abs_top_srcdir=$ac_pwd ;;
40685  [\\/]* | ?:[\\/]* )  # Absolute name.
40686    ac_srcdir=$srcdir$ac_dir_suffix;
40687    ac_top_srcdir=$srcdir
40688    ac_abs_top_srcdir=$srcdir ;;
40689  *) # Relative name.
40690    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40691    ac_top_srcdir=$ac_top_build_prefix$srcdir
40692    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40693esac
40694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40695
40696
40697  case $ac_mode in
40698  :F)
40699  #
40700  # CONFIG_FILE
40701  #
40702
40703_ACEOF
40704
40705cat >>$CONFIG_STATUS <<\_ACEOF
40706# If the template does not know about datarootdir, expand it.
40707# FIXME: This hack should be removed a few years after 2.60.
40708ac_datarootdir_hack=; ac_datarootdir_seen=
40709
40710case `sed -n '/datarootdir/ {
40711  p
40712  q
40713}
40714/@datadir@/p
40715/@docdir@/p
40716/@infodir@/p
40717/@localedir@/p
40718/@mandir@/p
40719' $ac_file_inputs` in
40720*datarootdir*) ac_datarootdir_seen=yes;;
40721*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40722  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40723echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40724_ACEOF
40725cat >>$CONFIG_STATUS <<_ACEOF
40726  ac_datarootdir_hack='
40727  s&@datadir@&$datadir&g
40728  s&@docdir@&$docdir&g
40729  s&@infodir@&$infodir&g
40730  s&@localedir@&$localedir&g
40731  s&@mandir@&$mandir&g
40732    s&\\\${datarootdir}&$datarootdir&g' ;;
40733esac
40734_ACEOF
40735
40736# Neutralize VPATH when `$srcdir' = `.'.
40737# Shell code in configure.ac might set extrasub.
40738# FIXME: do we really want to maintain this feature?
40739cat >>$CONFIG_STATUS <<_ACEOF
40740  sed "$ac_vpsub
40741$extrasub
40742_ACEOF
40743cat >>$CONFIG_STATUS <<\_ACEOF
40744:t
40745/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40746s&@configure_input@&$configure_input&;t t
40747s&@top_builddir@&$ac_top_builddir_sub&;t t
40748s&@srcdir@&$ac_srcdir&;t t
40749s&@abs_srcdir@&$ac_abs_srcdir&;t t
40750s&@top_srcdir@&$ac_top_srcdir&;t t
40751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40752s&@builddir@&$ac_builddir&;t t
40753s&@abs_builddir@&$ac_abs_builddir&;t t
40754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40755$ac_datarootdir_hack
40756" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40757
40758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40759  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40760  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40761  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40762which seems to be undefined.  Please make sure it is defined." >&5
40763echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40764which seems to be undefined.  Please make sure it is defined." >&2;}
40765
40766  rm -f "$tmp/stdin"
40767  case $ac_file in
40768  -) cat "$tmp/out"; rm -f "$tmp/out";;
40769  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40770  esac
40771 ;;
40772  :H)
40773  #
40774  # CONFIG_HEADER
40775  #
40776_ACEOF
40777
40778# Transform confdefs.h into a sed script `conftest.defines', that
40779# substitutes the proper values into config.h.in to produce config.h.
40780rm -f conftest.defines conftest.tail
40781# First, append a space to every undef/define line, to ease matching.
40782echo 's/$/ /' >conftest.defines
40783# Then, protect against being on the right side of a sed subst, or in
40784# an unquoted here document, in config.status.  If some macros were
40785# called several times there might be several #defines for the same
40786# symbol, which is useless.  But do not sort them, since the last
40787# AC_DEFINE must be honored.
40788ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40789# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40790# NAME is the cpp macro being defined, VALUE is the value it is being given.
40791# PARAMS is the parameter list in the macro definition--in most cases, it's
40792# just an empty string.
40793ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
40794ac_dB='\\)[	 (].*,\\1define\\2'
40795ac_dC=' '
40796ac_dD=' ,'
40797
40798uniq confdefs.h |
40799  sed -n '
40800	t rset
40801	:rset
40802	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
40803	t ok
40804	d
40805	:ok
40806	s/[\\&,]/\\&/g
40807	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40808	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40809  ' >>conftest.defines
40810
40811# Remove the space that was appended to ease matching.
40812# Then replace #undef with comments.  This is necessary, for
40813# example, in the case of _POSIX_SOURCE, which is predefined and required
40814# on some systems where configure will not decide to define it.
40815# (The regexp can be short, since the line contains either #define or #undef.)
40816echo 's/ $//
40817s,^[	 #]*u.*,/* & */,' >>conftest.defines
40818
40819# Break up conftest.defines:
40820ac_max_sed_lines=50
40821
40822# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40823# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40824# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40825# et cetera.
40826ac_in='$ac_file_inputs'
40827ac_out='"$tmp/out1"'
40828ac_nxt='"$tmp/out2"'
40829
40830while :
40831do
40832  # Write a here document:
40833    cat >>$CONFIG_STATUS <<_ACEOF
40834    # First, check the format of the line:
40835    cat >"\$tmp/defines.sed" <<\\CEOF
40836/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
40837/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
40838b
40839:def
40840_ACEOF
40841  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40842  echo 'CEOF
40843    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40844  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40845  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40846  grep . conftest.tail >/dev/null || break
40847  rm -f conftest.defines
40848  mv conftest.tail conftest.defines
40849done
40850rm -f conftest.defines conftest.tail
40851
40852echo "ac_result=$ac_in" >>$CONFIG_STATUS
40853cat >>$CONFIG_STATUS <<\_ACEOF
40854  if test x"$ac_file" != x-; then
40855    echo "/* $configure_input  */" >"$tmp/config.h"
40856    cat "$ac_result" >>"$tmp/config.h"
40857    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40858      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40859echo "$as_me: $ac_file is unchanged" >&6;}
40860    else
40861      rm -f $ac_file
40862      mv "$tmp/config.h" $ac_file
40863    fi
40864  else
40865    echo "/* $configure_input  */"
40866    cat "$ac_result"
40867  fi
40868  rm -f "$tmp/out12"
40869 ;;
40870
40871
40872  esac
40873
40874done # for ac_tag
40875
40876
40877{ (exit 0); exit 0; }
40878_ACEOF
40879chmod +x $CONFIG_STATUS
40880ac_clean_files=$ac_clean_files_save
40881
40882
40883# configure is writing to config.log, and then calls config.status.
40884# config.status does its own redirection, appending to config.log.
40885# Unfortunately, on DOS this fails, as config.log is still kept open
40886# by configure, so config.status won't be able to write to it; its
40887# output is simply discarded.  So we exec the FD to /dev/null,
40888# effectively closing config.log, so it can be properly (re)opened and
40889# appended to by config.status.  When coming back to configure, we
40890# need to make the FD available again.
40891if test "$no_create" != yes; then
40892  ac_cs_success=:
40893  ac_config_status_args=
40894  test "$silent" = yes &&
40895    ac_config_status_args="$ac_config_status_args --quiet"
40896  exec 5>/dev/null
40897  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40898  exec 5>>config.log
40899  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40900  # would make configure fail if this is the last instruction.
40901  $ac_cs_success || { (exit 1); exit 1; }
40902fi
40903
40904