1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for beecrypt 4.2.1.
4#
5# Report bugs to <bob.deblier@telenet.be>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='beecrypt'
747PACKAGE_TARNAME='beecrypt'
748PACKAGE_VERSION='4.2.1'
749PACKAGE_STRING='beecrypt 4.2.1'
750PACKAGE_BUGREPORT='bob.deblier@telenet.be'
751
752ac_unique_file="include/beecrypt/beecrypt.h"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792MP_WBITS
793TYPEDEF_UINT64_T
794TYPEDEF_UINT32_T
795TYPEDEF_UINT16_T
796TYPEDEF_UINT8_T
797TYPEDEF_INT64_T
798TYPEDEF_INT32_T
799TYPEDEF_INT16_T
800TYPEDEF_INT8_T
801INCLUDE_STDINT_H
802INCLUDE_INTTYPES_H
803TYPEDEF_SIZE_T
804ASM_ALIGN
805ASM_LSYM_PREFIX
806ASM_GSYM_PREFIX
807ASM_GLOBL
808ASM_TEXTSEG
809ASM_GNU_STACK
810ASM_BIGENDIAN
811ASM_ARCH
812ASM_CPU
813ASM_OS
814PYTHONLIB
815PYTHONINC
816WITH_PYTHON_FALSE
817WITH_PYTHON_TRUE
818PYTHON
819WITH_JAVA_FALSE
820WITH_JAVA_TRUE
821ac_cv_have_javah
822ac_cv_have_javac
823ac_cv_have_java
824javac
825ac_cv_have_gcjh
826ac_cv_have_gcj
827WITH_CPLUSPLUS_FALSE
828WITH_CPLUSPLUS_TRUE
829LIBOBJS
830TYPEDEF_BC_THREADID_T
831TYPEDEF_BC_THREAD_T
832TYPEDEF_BC_MUTEX_T
833TYPEDEF_BC_COND_T
834INCLUDE_SCHED_H
835INCLUDE_SEMAPHORE_H
836INCLUDE_PTHREAD_H
837INCLUDE_THREAD_H
838INCLUDE_SYNCH_H
839INCLUDE_DLFCN_H
840INCLUDE_UNISTD_H
841INCLUDE_STRING_H
842INCLUDE_MALLOC_H
843INCLUDE_STDLIB_H
844INCLUDE_STDIO_H
845OPENMP_LIBS
846OPENMP_CXXFLAGS
847OPENMP_CFLAGS
848OTOOL64
849OTOOL
850LIPO
851NMEDIT
852DSYMUTIL
853lt_ECHO
854RANLIB
855AR
856OBJDUMP
857NM
858ac_ct_DUMPBIN
859DUMPBIN
860LIBTOOL
861LN_S
862LD
863FGREP
864SED
865am__fastdepCCAS_FALSE
866am__fastdepCCAS_TRUE
867CCASDEPMODE
868CCASFLAGS
869CCAS
870CXXCPP
871am__fastdepCXX_FALSE
872am__fastdepCXX_TRUE
873CXXDEPMODE
874ac_ct_CXX
875CXXFLAGS
876CXX
877EGREP
878GREP
879CPP
880am__fastdepCC_FALSE
881am__fastdepCC_TRUE
882CCDEPMODE
883AMDEPBACKSLASH
884AMDEP_FALSE
885AMDEP_TRUE
886am__quote
887am__include
888DEPDIR
889OBJEXT
890EXEEXT
891ac_ct_CC
892CPPFLAGS
893LDFLAGS
894CFLAGS
895CC
896am__untar
897am__tar
898AMTAR
899am__leading_dot
900SET_MAKE
901AWK
902mkdir_p
903MKDIR_P
904INSTALL_STRIP_PROGRAM
905STRIP
906install_sh
907MAKEINFO
908AUTOHEADER
909AUTOMAKE
910AUTOCONF
911ACLOCAL
912VERSION
913PACKAGE
914CYGPATH_W
915am__isrc
916INSTALL_DATA
917INSTALL_SCRIPT
918INSTALL_PROGRAM
919target_os
920target_vendor
921target_cpu
922target
923host_os
924host_vendor
925host_cpu
926host
927build_os
928build_vendor
929build_cpu
930build
931target_alias
932host_alias
933build_alias
934LIBS
935ECHO_T
936ECHO_N
937ECHO_C
938DEFS
939mandir
940localedir
941libdir
942psdir
943pdfdir
944dvidir
945htmldir
946infodir
947docdir
948oldincludedir
949includedir
950localstatedir
951sharedstatedir
952sysconfdir
953datadir
954datarootdir
955libexecdir
956sbindir
957bindir
958program_transform_name
959prefix
960exec_prefix
961PACKAGE_BUGREPORT
962PACKAGE_STRING
963PACKAGE_VERSION
964PACKAGE_TARNAME
965PACKAGE_NAME
966PATH_SEPARATOR
967SHELL'
968ac_subst_files=''
969ac_user_opts='
970enable_option_checking
971enable_expert_mode
972enable_debug
973with_cpu
974with_arch
975enable_threads
976enable_aio
977with_mtmalloc
978with_cplusplus
979with_java
980with_python
981enable_dependency_tracking
982with_gnu_ld
983enable_shared
984enable_static
985with_pic
986enable_fast_install
987enable_libtool_lock
988enable_openmp
989'
990      ac_precious_vars='build_alias
991host_alias
992target_alias
993CC
994CFLAGS
995LDFLAGS
996LIBS
997CPPFLAGS
998CPP
999CXX
1000CXXFLAGS
1001CCC
1002CXXCPP
1003CCAS
1004CCASFLAGS'
1005
1006
1007# Initialize some variables set by options.
1008ac_init_help=
1009ac_init_version=false
1010ac_unrecognized_opts=
1011ac_unrecognized_sep=
1012# The variables have the same names as the options, with
1013# dashes changed to underlines.
1014cache_file=/dev/null
1015exec_prefix=NONE
1016no_create=
1017no_recursion=
1018prefix=NONE
1019program_prefix=NONE
1020program_suffix=NONE
1021program_transform_name=s,x,x,
1022silent=
1023site=
1024srcdir=
1025verbose=
1026x_includes=NONE
1027x_libraries=NONE
1028
1029# Installation directory options.
1030# These are left unexpanded so users can "make install exec_prefix=/foo"
1031# and all the variables that are supposed to be based on exec_prefix
1032# by default will actually change.
1033# Use braces instead of parens because sh, perl, etc. also accept them.
1034# (The list follows the same order as the GNU Coding Standards.)
1035bindir='${exec_prefix}/bin'
1036sbindir='${exec_prefix}/sbin'
1037libexecdir='${exec_prefix}/libexec'
1038datarootdir='${prefix}/share'
1039datadir='${datarootdir}'
1040sysconfdir='${prefix}/etc'
1041sharedstatedir='${prefix}/com'
1042localstatedir='${prefix}/var'
1043includedir='${prefix}/include'
1044oldincludedir='/usr/include'
1045docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1046infodir='${datarootdir}/info'
1047htmldir='${docdir}'
1048dvidir='${docdir}'
1049pdfdir='${docdir}'
1050psdir='${docdir}'
1051libdir='${exec_prefix}/lib'
1052localedir='${datarootdir}/locale'
1053mandir='${datarootdir}/man'
1054
1055ac_prev=
1056ac_dashdash=
1057for ac_option
1058do
1059  # If the previous option needs an argument, assign it.
1060  if test -n "$ac_prev"; then
1061    eval $ac_prev=\$ac_option
1062    ac_prev=
1063    continue
1064  fi
1065
1066  case $ac_option in
1067  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068  *)	ac_optarg=yes ;;
1069  esac
1070
1071  # Accept the important Cygnus configure options, so we can diagnose typos.
1072
1073  case $ac_dashdash$ac_option in
1074  --)
1075    ac_dashdash=yes ;;
1076
1077  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078    ac_prev=bindir ;;
1079  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1080    bindir=$ac_optarg ;;
1081
1082  -build | --build | --buil | --bui | --bu)
1083    ac_prev=build_alias ;;
1084  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1085    build_alias=$ac_optarg ;;
1086
1087  -cache-file | --cache-file | --cache-fil | --cache-fi \
1088  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1089    ac_prev=cache_file ;;
1090  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1091  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1092    cache_file=$ac_optarg ;;
1093
1094  --config-cache | -C)
1095    cache_file=config.cache ;;
1096
1097  -datadir | --datadir | --datadi | --datad)
1098    ac_prev=datadir ;;
1099  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1100    datadir=$ac_optarg ;;
1101
1102  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1103  | --dataroo | --dataro | --datar)
1104    ac_prev=datarootdir ;;
1105  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1106  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1107    datarootdir=$ac_optarg ;;
1108
1109  -disable-* | --disable-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1114   { (exit 1); exit 1; }; }
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"enable_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval enable_$ac_useropt=no ;;
1125
1126  -docdir | --docdir | --docdi | --doc | --do)
1127    ac_prev=docdir ;;
1128  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129    docdir=$ac_optarg ;;
1130
1131  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1132    ac_prev=dvidir ;;
1133  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134    dvidir=$ac_optarg ;;
1135
1136  -enable-* | --enable-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1141   { (exit 1); exit 1; }; }
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"enable_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval enable_$ac_useropt=\$ac_optarg ;;
1152
1153  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155  | --exec | --exe | --ex)
1156    ac_prev=exec_prefix ;;
1157  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159  | --exec=* | --exe=* | --ex=*)
1160    exec_prefix=$ac_optarg ;;
1161
1162  -gas | --gas | --ga | --g)
1163    # Obsolete; use --with-gas.
1164    with_gas=yes ;;
1165
1166  -help | --help | --hel | --he | -h)
1167    ac_init_help=long ;;
1168  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169    ac_init_help=recursive ;;
1170  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171    ac_init_help=short ;;
1172
1173  -host | --host | --hos | --ho)
1174    ac_prev=host_alias ;;
1175  -host=* | --host=* | --hos=* | --ho=*)
1176    host_alias=$ac_optarg ;;
1177
1178  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179    ac_prev=htmldir ;;
1180  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181  | --ht=*)
1182    htmldir=$ac_optarg ;;
1183
1184  -includedir | --includedir | --includedi | --included | --include \
1185  | --includ | --inclu | --incl | --inc)
1186    ac_prev=includedir ;;
1187  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188  | --includ=* | --inclu=* | --incl=* | --inc=*)
1189    includedir=$ac_optarg ;;
1190
1191  -infodir | --infodir | --infodi | --infod | --info | --inf)
1192    ac_prev=infodir ;;
1193  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194    infodir=$ac_optarg ;;
1195
1196  -libdir | --libdir | --libdi | --libd)
1197    ac_prev=libdir ;;
1198  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199    libdir=$ac_optarg ;;
1200
1201  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202  | --libexe | --libex | --libe)
1203    ac_prev=libexecdir ;;
1204  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205  | --libexe=* | --libex=* | --libe=*)
1206    libexecdir=$ac_optarg ;;
1207
1208  -localedir | --localedir | --localedi | --localed | --locale)
1209    ac_prev=localedir ;;
1210  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211    localedir=$ac_optarg ;;
1212
1213  -localstatedir | --localstatedir | --localstatedi | --localstated \
1214  | --localstate | --localstat | --localsta | --localst | --locals)
1215    ac_prev=localstatedir ;;
1216  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218    localstatedir=$ac_optarg ;;
1219
1220  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221    ac_prev=mandir ;;
1222  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223    mandir=$ac_optarg ;;
1224
1225  -nfp | --nfp | --nf)
1226    # Obsolete; use --without-fp.
1227    with_fp=no ;;
1228
1229  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230  | --no-cr | --no-c | -n)
1231    no_create=yes ;;
1232
1233  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235    no_recursion=yes ;;
1236
1237  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239  | --oldin | --oldi | --old | --ol | --o)
1240    ac_prev=oldincludedir ;;
1241  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244    oldincludedir=$ac_optarg ;;
1245
1246  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247    ac_prev=prefix ;;
1248  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249    prefix=$ac_optarg ;;
1250
1251  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252  | --program-pre | --program-pr | --program-p)
1253    ac_prev=program_prefix ;;
1254  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256    program_prefix=$ac_optarg ;;
1257
1258  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259  | --program-suf | --program-su | --program-s)
1260    ac_prev=program_suffix ;;
1261  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263    program_suffix=$ac_optarg ;;
1264
1265  -program-transform-name | --program-transform-name \
1266  | --program-transform-nam | --program-transform-na \
1267  | --program-transform-n | --program-transform- \
1268  | --program-transform | --program-transfor \
1269  | --program-transfo | --program-transf \
1270  | --program-trans | --program-tran \
1271  | --progr-tra | --program-tr | --program-t)
1272    ac_prev=program_transform_name ;;
1273  -program-transform-name=* | --program-transform-name=* \
1274  | --program-transform-nam=* | --program-transform-na=* \
1275  | --program-transform-n=* | --program-transform-=* \
1276  | --program-transform=* | --program-transfor=* \
1277  | --program-transfo=* | --program-transf=* \
1278  | --program-trans=* | --program-tran=* \
1279  | --progr-tra=* | --program-tr=* | --program-t=*)
1280    program_transform_name=$ac_optarg ;;
1281
1282  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283    ac_prev=pdfdir ;;
1284  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285    pdfdir=$ac_optarg ;;
1286
1287  -psdir | --psdir | --psdi | --psd | --ps)
1288    ac_prev=psdir ;;
1289  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290    psdir=$ac_optarg ;;
1291
1292  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293  | -silent | --silent | --silen | --sile | --sil)
1294    silent=yes ;;
1295
1296  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297    ac_prev=sbindir ;;
1298  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299  | --sbi=* | --sb=*)
1300    sbindir=$ac_optarg ;;
1301
1302  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1303  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1304  | --sharedst | --shareds | --shared | --share | --shar \
1305  | --sha | --sh)
1306    ac_prev=sharedstatedir ;;
1307  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1308  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1309  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310  | --sha=* | --sh=*)
1311    sharedstatedir=$ac_optarg ;;
1312
1313  -site | --site | --sit)
1314    ac_prev=site ;;
1315  -site=* | --site=* | --sit=*)
1316    site=$ac_optarg ;;
1317
1318  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319    ac_prev=srcdir ;;
1320  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1321    srcdir=$ac_optarg ;;
1322
1323  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1324  | --syscon | --sysco | --sysc | --sys | --sy)
1325    ac_prev=sysconfdir ;;
1326  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1327  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1328    sysconfdir=$ac_optarg ;;
1329
1330  -target | --target | --targe | --targ | --tar | --ta | --t)
1331    ac_prev=target_alias ;;
1332  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1333    target_alias=$ac_optarg ;;
1334
1335  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1336    verbose=yes ;;
1337
1338  -version | --version | --versio | --versi | --vers | -V)
1339    ac_init_version=: ;;
1340
1341  -with-* | --with-*)
1342    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343    # Reject names that are not valid shell variable names.
1344    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1346   { (exit 1); exit 1; }; }
1347    ac_useropt_orig=$ac_useropt
1348    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349    case $ac_user_opts in
1350      *"
1351"with_$ac_useropt"
1352"*) ;;
1353      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1354	 ac_unrecognized_sep=', ';;
1355    esac
1356    eval with_$ac_useropt=\$ac_optarg ;;
1357
1358  -without-* | --without-*)
1359    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1360    # Reject names that are not valid shell variable names.
1361    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1363   { (exit 1); exit 1; }; }
1364    ac_useropt_orig=$ac_useropt
1365    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366    case $ac_user_opts in
1367      *"
1368"with_$ac_useropt"
1369"*) ;;
1370      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371	 ac_unrecognized_sep=', ';;
1372    esac
1373    eval with_$ac_useropt=no ;;
1374
1375  --x)
1376    # Obsolete; use --with-x.
1377    with_x=yes ;;
1378
1379  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380  | --x-incl | --x-inc | --x-in | --x-i)
1381    ac_prev=x_includes ;;
1382  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384    x_includes=$ac_optarg ;;
1385
1386  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388    ac_prev=x_libraries ;;
1389  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391    x_libraries=$ac_optarg ;;
1392
1393  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1394Try \`$0 --help' for more information." >&2
1395   { (exit 1); exit 1; }; }
1396    ;;
1397
1398  *=*)
1399    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400    # Reject names that are not valid shell variable names.
1401    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1402      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1403   { (exit 1); exit 1; }; }
1404    eval $ac_envvar=\$ac_optarg
1405    export $ac_envvar ;;
1406
1407  *)
1408    # FIXME: should be removed in autoconf 3.0.
1409    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1410    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1412    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1413    ;;
1414
1415  esac
1416done
1417
1418if test -n "$ac_prev"; then
1419  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1421   { (exit 1); exit 1; }; }
1422fi
1423
1424if test -n "$ac_unrecognized_opts"; then
1425  case $enable_option_checking in
1426    no) ;;
1427    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1428   { (exit 1); exit 1; }; } ;;
1429    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1430  esac
1431fi
1432
1433# Check all directory arguments for consistency.
1434for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435		datadir sysconfdir sharedstatedir localstatedir includedir \
1436		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437		libdir localedir mandir
1438do
1439  eval ac_val=\$$ac_var
1440  # Remove trailing slashes.
1441  case $ac_val in
1442    */ )
1443      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1444      eval $ac_var=\$ac_val;;
1445  esac
1446  # Be sure to have absolute directory names.
1447  case $ac_val in
1448    [\\/$]* | ?:[\\/]* )  continue;;
1449    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450  esac
1451  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1452   { (exit 1); exit 1; }; }
1453done
1454
1455# There might be people who depend on the old broken behavior: `$host'
1456# used to hold the argument of --host etc.
1457# FIXME: To remove some day.
1458build=$build_alias
1459host=$host_alias
1460target=$target_alias
1461
1462# FIXME: To remove some day.
1463if test "x$host_alias" != x; then
1464  if test "x$build_alias" = x; then
1465    cross_compiling=maybe
1466    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1467    If a cross compiler is detected then cross compile mode will be used." >&2
1468  elif test "x$build_alias" != "x$host_alias"; then
1469    cross_compiling=yes
1470  fi
1471fi
1472
1473ac_tool_prefix=
1474test -n "$host_alias" && ac_tool_prefix=$host_alias-
1475
1476test "$silent" = yes && exec 6>/dev/null
1477
1478
1479ac_pwd=`pwd` && test -n "$ac_pwd" &&
1480ac_ls_di=`ls -di .` &&
1481ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1482  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1483   { (exit 1); exit 1; }; }
1484test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1485  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1486   { (exit 1); exit 1; }; }
1487
1488
1489# Find the source files, if location was not specified.
1490if test -z "$srcdir"; then
1491  ac_srcdir_defaulted=yes
1492  # Try the directory containing this script, then the parent directory.
1493  ac_confdir=`$as_dirname -- "$as_myself" ||
1494$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495	 X"$as_myself" : 'X\(//\)[^/]' \| \
1496	 X"$as_myself" : 'X\(//\)$' \| \
1497	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498$as_echo X"$as_myself" |
1499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500	    s//\1/
1501	    q
1502	  }
1503	  /^X\(\/\/\)[^/].*/{
1504	    s//\1/
1505	    q
1506	  }
1507	  /^X\(\/\/\)$/{
1508	    s//\1/
1509	    q
1510	  }
1511	  /^X\(\/\).*/{
1512	    s//\1/
1513	    q
1514	  }
1515	  s/.*/./; q'`
1516  srcdir=$ac_confdir
1517  if test ! -r "$srcdir/$ac_unique_file"; then
1518    srcdir=..
1519  fi
1520else
1521  ac_srcdir_defaulted=no
1522fi
1523if test ! -r "$srcdir/$ac_unique_file"; then
1524  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1526   { (exit 1); exit 1; }; }
1527fi
1528ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529ac_abs_confdir=`(
1530	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1531   { (exit 1); exit 1; }; }
1532	pwd)`
1533# When building in place, set srcdir=.
1534if test "$ac_abs_confdir" = "$ac_pwd"; then
1535  srcdir=.
1536fi
1537# Remove unnecessary trailing slashes from srcdir.
1538# Double slashes in file names in object file debugging info
1539# mess up M-x gdb in Emacs.
1540case $srcdir in
1541*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1542esac
1543for ac_var in $ac_precious_vars; do
1544  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1545  eval ac_env_${ac_var}_value=\$${ac_var}
1546  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1547  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1548done
1549
1550#
1551# Report the --help message.
1552#
1553if test "$ac_init_help" = "long"; then
1554  # Omit some internal or obsolete options to make the list less imposing.
1555  # This message is too long to be a string in the A/UX 3.1 sh.
1556  cat <<_ACEOF
1557\`configure' configures beecrypt 4.2.1 to adapt to many kinds of systems.
1558
1559Usage: $0 [OPTION]... [VAR=VALUE]...
1560
1561To assign environment variables (e.g., CC, CFLAGS...), specify them as
1562VAR=VALUE.  See below for descriptions of some of the useful variables.
1563
1564Defaults for the options are specified in brackets.
1565
1566Configuration:
1567  -h, --help              display this help and exit
1568      --help=short        display options specific to this package
1569      --help=recursive    display the short help of all the included packages
1570  -V, --version           display version information and exit
1571  -q, --quiet, --silent   do not print \`checking...' messages
1572      --cache-file=FILE   cache test results in FILE [disabled]
1573  -C, --config-cache      alias for \`--cache-file=config.cache'
1574  -n, --no-create         do not create output files
1575      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1576
1577Installation directories:
1578  --prefix=PREFIX         install architecture-independent files in PREFIX
1579                          [$ac_default_prefix]
1580  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1581                          [PREFIX]
1582
1583By default, \`make install' will install all the files in
1584\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1585an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1586for instance \`--prefix=\$HOME'.
1587
1588For better control, use the options below.
1589
1590Fine tuning of the installation directories:
1591  --bindir=DIR            user executables [EPREFIX/bin]
1592  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1593  --libexecdir=DIR        program executables [EPREFIX/libexec]
1594  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1595  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1596  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1597  --libdir=DIR            object code libraries [EPREFIX/lib]
1598  --includedir=DIR        C header files [PREFIX/include]
1599  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1600  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1601  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1602  --infodir=DIR           info documentation [DATAROOTDIR/info]
1603  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1604  --mandir=DIR            man documentation [DATAROOTDIR/man]
1605  --docdir=DIR            documentation root [DATAROOTDIR/doc/beecrypt]
1606  --htmldir=DIR           html documentation [DOCDIR]
1607  --dvidir=DIR            dvi documentation [DOCDIR]
1608  --pdfdir=DIR            pdf documentation [DOCDIR]
1609  --psdir=DIR             ps documentation [DOCDIR]
1610_ACEOF
1611
1612  cat <<\_ACEOF
1613
1614Program names:
1615  --program-prefix=PREFIX            prepend PREFIX to installed program names
1616  --program-suffix=SUFFIX            append SUFFIX to installed program names
1617  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1618
1619System types:
1620  --build=BUILD     configure for building on BUILD [guessed]
1621  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1622  --target=TARGET   configure for building compilers for TARGET [HOST]
1623_ACEOF
1624fi
1625
1626if test -n "$ac_init_help"; then
1627  case $ac_init_help in
1628     short | recursive ) echo "Configuration of beecrypt 4.2.1:";;
1629   esac
1630  cat <<\_ACEOF
1631
1632Optional Features:
1633  --disable-option-checking  ignore unrecognized --enable/--with options
1634  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636  --enable-expert-mode      follow user-defined CFLAGS settings [default=no]
1637  --enable-debug          creates debugging code [default=no]
1638  --enable-threads        enables multithread support [default=yes]
1639  --enable-aio            enables asynchronous i/o for entropy gathering [default=yes]
1640  --disable-dependency-tracking  speeds up one-time build
1641  --enable-dependency-tracking   do not reject slow dependency extractors
1642  --enable-shared[=PKGS]  build shared libraries [default=yes]
1643  --enable-static[=PKGS]  build static libraries [default=yes]
1644  --enable-fast-install[=PKGS]
1645                          optimize for fast installation [default=yes]
1646  --disable-libtool-lock  avoid locking (might break parallel builds)
1647  --disable-openmp        do not use OpenMP
1648
1649Optional Packages:
1650  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1651  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1652  --with-cpu              optimize for specific cpu
1653  --with-arch             optimize for specific architecture (may not run on other cpus of same family)
1654  --with-mtmalloc         links against the mtmalloc library [default=no]
1655  --with-cplusplus        creates the C++ API code [default=yes]
1656  --with-java             creates the Java glue code [default=yes]
1657  --with-python[=ARG]     creates the Python module [default=yes]; you can optionally specify the python executable
1658  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1659  --with-pic              try to use only PIC/non-PIC objects [default=use
1660                          both]
1661
1662Some influential environment variables:
1663  CC          C compiler command
1664  CFLAGS      C compiler flags
1665  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1666              nonstandard directory <lib dir>
1667  LIBS        libraries to pass to the linker, e.g. -l<library>
1668  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1669              you have headers in a nonstandard directory <include dir>
1670  CPP         C preprocessor
1671  CXX         C++ compiler command
1672  CXXFLAGS    C++ compiler flags
1673  CXXCPP      C++ preprocessor
1674  CCAS        assembler compiler command (defaults to CC)
1675  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
1680Report bugs to <bob.deblier@telenet.be>.
1681_ACEOF
1682ac_status=$?
1683fi
1684
1685if test "$ac_init_help" = "recursive"; then
1686  # If there are subdirs, report their specific --help.
1687  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688    test -d "$ac_dir" ||
1689      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690      continue
1691    ac_builddir=.
1692
1693case "$ac_dir" in
1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695*)
1696  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697  # A ".." for each directory in $ac_dir_suffix.
1698  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699  case $ac_top_builddir_sub in
1700  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702  esac ;;
1703esac
1704ac_abs_top_builddir=$ac_pwd
1705ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706# for backward compatibility:
1707ac_top_builddir=$ac_top_build_prefix
1708
1709case $srcdir in
1710  .)  # We are building in place.
1711    ac_srcdir=.
1712    ac_top_srcdir=$ac_top_builddir_sub
1713    ac_abs_top_srcdir=$ac_pwd ;;
1714  [\\/]* | ?:[\\/]* )  # Absolute name.
1715    ac_srcdir=$srcdir$ac_dir_suffix;
1716    ac_top_srcdir=$srcdir
1717    ac_abs_top_srcdir=$srcdir ;;
1718  *) # Relative name.
1719    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720    ac_top_srcdir=$ac_top_build_prefix$srcdir
1721    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722esac
1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725    cd "$ac_dir" || { ac_status=$?; continue; }
1726    # Check for guested configure.
1727    if test -f "$ac_srcdir/configure.gnu"; then
1728      echo &&
1729      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730    elif test -f "$ac_srcdir/configure"; then
1731      echo &&
1732      $SHELL "$ac_srcdir/configure" --help=recursive
1733    else
1734      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735    fi || ac_status=$?
1736    cd "$ac_pwd" || { ac_status=$?; break; }
1737  done
1738fi
1739
1740test -n "$ac_init_help" && exit $ac_status
1741if $ac_init_version; then
1742  cat <<\_ACEOF
1743beecrypt configure 4.2.1
1744generated by GNU Autoconf 2.63
1745
1746Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17472002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1748This configure script is free software; the Free Software Foundation
1749gives unlimited permission to copy, distribute and modify it.
1750_ACEOF
1751  exit
1752fi
1753cat >config.log <<_ACEOF
1754This file contains any messages produced by compilers while
1755running configure, to aid debugging if configure makes a mistake.
1756
1757It was created by beecrypt $as_me 4.2.1, which was
1758generated by GNU Autoconf 2.63.  Invocation command line was
1759
1760  $ $0 $@
1761
1762_ACEOF
1763exec 5>>config.log
1764{
1765cat <<_ASUNAME
1766## --------- ##
1767## Platform. ##
1768## --------- ##
1769
1770hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774uname -v = `(uname -v) 2>/dev/null || echo unknown`
1775
1776/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1778
1779/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1780/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1781/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1783/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1784/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1785/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1786
1787_ASUNAME
1788
1789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790for as_dir in $PATH
1791do
1792  IFS=$as_save_IFS
1793  test -z "$as_dir" && as_dir=.
1794  $as_echo "PATH: $as_dir"
1795done
1796IFS=$as_save_IFS
1797
1798} >&5
1799
1800cat >&5 <<_ACEOF
1801
1802
1803## ----------- ##
1804## Core tests. ##
1805## ----------- ##
1806
1807_ACEOF
1808
1809
1810# Keep a trace of the command line.
1811# Strip out --no-create and --no-recursion so they do not pile up.
1812# Strip out --silent because we don't want to record it for future runs.
1813# Also quote any args containing shell meta-characters.
1814# Make two passes to allow for proper duplicate-argument suppression.
1815ac_configure_args=
1816ac_configure_args0=
1817ac_configure_args1=
1818ac_must_keep_next=false
1819for ac_pass in 1 2
1820do
1821  for ac_arg
1822  do
1823    case $ac_arg in
1824    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826    | -silent | --silent | --silen | --sile | --sil)
1827      continue ;;
1828    *\'*)
1829      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830    esac
1831    case $ac_pass in
1832    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1833    2)
1834      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1835      if test $ac_must_keep_next = true; then
1836	ac_must_keep_next=false # Got value, back to normal.
1837      else
1838	case $ac_arg in
1839	  *=* | --config-cache | -C | -disable-* | --disable-* \
1840	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842	  | -with-* | --with-* | -without-* | --without-* | --x)
1843	    case "$ac_configure_args0 " in
1844	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845	    esac
1846	    ;;
1847	  -* ) ac_must_keep_next=true ;;
1848	esac
1849      fi
1850      ac_configure_args="$ac_configure_args '$ac_arg'"
1851      ;;
1852    esac
1853  done
1854done
1855$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1856$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1857
1858# When interrupted or exit'd, cleanup temporary files, and complete
1859# config.log.  We remove comments because anyway the quotes in there
1860# would cause problems or look ugly.
1861# WARNING: Use '\'' to represent an apostrophe within the trap.
1862# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863trap 'exit_status=$?
1864  # Save into config.log some information that might help in debugging.
1865  {
1866    echo
1867
1868    cat <<\_ASBOX
1869## ---------------- ##
1870## Cache variables. ##
1871## ---------------- ##
1872_ASBOX
1873    echo
1874    # The following way of writing the cache mishandles newlines in values,
1875(
1876  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877    eval ac_val=\$$ac_var
1878    case $ac_val in #(
1879    *${as_nl}*)
1880      case $ac_var in #(
1881      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883      esac
1884      case $ac_var in #(
1885      _ | IFS | as_nl) ;; #(
1886      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887      *) $as_unset $ac_var ;;
1888      esac ;;
1889    esac
1890  done
1891  (set) 2>&1 |
1892    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893    *${as_nl}ac_space=\ *)
1894      sed -n \
1895	"s/'\''/'\''\\\\'\'''\''/g;
1896	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897      ;; #(
1898    *)
1899      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1900      ;;
1901    esac |
1902    sort
1903)
1904    echo
1905
1906    cat <<\_ASBOX
1907## ----------------- ##
1908## Output variables. ##
1909## ----------------- ##
1910_ASBOX
1911    echo
1912    for ac_var in $ac_subst_vars
1913    do
1914      eval ac_val=\$$ac_var
1915      case $ac_val in
1916      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917      esac
1918      $as_echo "$ac_var='\''$ac_val'\''"
1919    done | sort
1920    echo
1921
1922    if test -n "$ac_subst_files"; then
1923      cat <<\_ASBOX
1924## ------------------- ##
1925## File substitutions. ##
1926## ------------------- ##
1927_ASBOX
1928      echo
1929      for ac_var in $ac_subst_files
1930      do
1931	eval ac_val=\$$ac_var
1932	case $ac_val in
1933	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934	esac
1935	$as_echo "$ac_var='\''$ac_val'\''"
1936      done | sort
1937      echo
1938    fi
1939
1940    if test -s confdefs.h; then
1941      cat <<\_ASBOX
1942## ----------- ##
1943## confdefs.h. ##
1944## ----------- ##
1945_ASBOX
1946      echo
1947      cat confdefs.h
1948      echo
1949    fi
1950    test "$ac_signal" != 0 &&
1951      $as_echo "$as_me: caught signal $ac_signal"
1952    $as_echo "$as_me: exit $exit_status"
1953  } >&5
1954  rm -f core *.core core.conftest.* &&
1955    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1956    exit $exit_status
1957' 0
1958for ac_signal in 1 2 13 15; do
1959  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1960done
1961ac_signal=0
1962
1963# confdefs.h avoids OS command line length limits that DEFS can exceed.
1964rm -f -r conftest* confdefs.h
1965
1966# Predefined preprocessor variables.
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_NAME "$PACKAGE_NAME"
1970_ACEOF
1971
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1975_ACEOF
1976
1977
1978cat >>confdefs.h <<_ACEOF
1979#define PACKAGE_VERSION "$PACKAGE_VERSION"
1980_ACEOF
1981
1982
1983cat >>confdefs.h <<_ACEOF
1984#define PACKAGE_STRING "$PACKAGE_STRING"
1985_ACEOF
1986
1987
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1990_ACEOF
1991
1992
1993# Let the site file select an alternate cache file if it wants to.
1994# Prefer an explicitly selected file to automatically selected ones.
1995ac_site_file1=NONE
1996ac_site_file2=NONE
1997if test -n "$CONFIG_SITE"; then
1998  ac_site_file1=$CONFIG_SITE
1999elif test "x$prefix" != xNONE; then
2000  ac_site_file1=$prefix/share/config.site
2001  ac_site_file2=$prefix/etc/config.site
2002else
2003  ac_site_file1=$ac_default_prefix/share/config.site
2004  ac_site_file2=$ac_default_prefix/etc/config.site
2005fi
2006for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2007do
2008  test "x$ac_site_file" = xNONE && continue
2009  if test -r "$ac_site_file"; then
2010    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2011$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2012    sed 's/^/| /' "$ac_site_file" >&5
2013    . "$ac_site_file"
2014  fi
2015done
2016
2017if test -r "$cache_file"; then
2018  # Some versions of bash will fail to source /dev/null (special
2019  # files actually), so we avoid doing that.
2020  if test -f "$cache_file"; then
2021    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2022$as_echo "$as_me: loading cache $cache_file" >&6;}
2023    case $cache_file in
2024      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2025      *)                      . "./$cache_file";;
2026    esac
2027  fi
2028else
2029  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2030$as_echo "$as_me: creating cache $cache_file" >&6;}
2031  >$cache_file
2032fi
2033
2034# Check that the precious variables saved in the cache have kept the same
2035# value.
2036ac_cache_corrupted=false
2037for ac_var in $ac_precious_vars; do
2038  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2039  eval ac_new_set=\$ac_env_${ac_var}_set
2040  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2041  eval ac_new_val=\$ac_env_${ac_var}_value
2042  case $ac_old_set,$ac_new_set in
2043    set,)
2044      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2045$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2046      ac_cache_corrupted=: ;;
2047    ,set)
2048      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2049$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2050      ac_cache_corrupted=: ;;
2051    ,);;
2052    *)
2053      if test "x$ac_old_val" != "x$ac_new_val"; then
2054	# differences in whitespace do not lead to failure.
2055	ac_old_val_w=`echo x $ac_old_val`
2056	ac_new_val_w=`echo x $ac_new_val`
2057	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2058	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2059$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2060	  ac_cache_corrupted=:
2061	else
2062	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2063$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2064	  eval $ac_var=\$ac_old_val
2065	fi
2066	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2067$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2068	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2069$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2070      fi;;
2071  esac
2072  # Pass precious variables to config.status.
2073  if test "$ac_new_set" = set; then
2074    case $ac_new_val in
2075    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2076    *) ac_arg=$ac_var=$ac_new_val ;;
2077    esac
2078    case " $ac_configure_args " in
2079      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2080      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2081    esac
2082  fi
2083done
2084if $ac_cache_corrupted; then
2085  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2088$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2089  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2090$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2091   { (exit 1); exit 1; }; }
2092fi
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118ac_ext=c
2119ac_cpp='$CPP $CPPFLAGS'
2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
2124
2125ac_aux_dir=
2126for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2127  if test -f "$ac_dir/install-sh"; then
2128    ac_aux_dir=$ac_dir
2129    ac_install_sh="$ac_aux_dir/install-sh -c"
2130    break
2131  elif test -f "$ac_dir/install.sh"; then
2132    ac_aux_dir=$ac_dir
2133    ac_install_sh="$ac_aux_dir/install.sh -c"
2134    break
2135  elif test -f "$ac_dir/shtool"; then
2136    ac_aux_dir=$ac_dir
2137    ac_install_sh="$ac_aux_dir/shtool install -c"
2138    break
2139  fi
2140done
2141if test -z "$ac_aux_dir"; then
2142  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2143$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2144   { (exit 1); exit 1; }; }
2145fi
2146
2147# These three variables are undocumented and unsupported,
2148# and are intended to be withdrawn in a future Autoconf release.
2149# They can cause serious problems if a builder's source tree is in a directory
2150# whose full name contains unusual characters.
2151ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2152ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2153ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2154
2155
2156# Make sure we can run config.sub.
2157$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2158  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2159$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2160   { (exit 1); exit 1; }; }
2161
2162{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2163$as_echo_n "checking build system type... " >&6; }
2164if test "${ac_cv_build+set}" = set; then
2165  $as_echo_n "(cached) " >&6
2166else
2167  ac_build_alias=$build_alias
2168test "x$ac_build_alias" = x &&
2169  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2170test "x$ac_build_alias" = x &&
2171  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173   { (exit 1); exit 1; }; }
2174ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2175  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2176$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2177   { (exit 1); exit 1; }; }
2178
2179fi
2180{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181$as_echo "$ac_cv_build" >&6; }
2182case $ac_cv_build in
2183*-*-*) ;;
2184*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2185$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2186   { (exit 1); exit 1; }; };;
2187esac
2188build=$ac_cv_build
2189ac_save_IFS=$IFS; IFS='-'
2190set x $ac_cv_build
2191shift
2192build_cpu=$1
2193build_vendor=$2
2194shift; shift
2195# Remember, the first character of IFS is used to create $*,
2196# except with old shells:
2197build_os=$*
2198IFS=$ac_save_IFS
2199case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2200
2201
2202{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2203$as_echo_n "checking host system type... " >&6; }
2204if test "${ac_cv_host+set}" = set; then
2205  $as_echo_n "(cached) " >&6
2206else
2207  if test "x$host_alias" = x; then
2208  ac_cv_host=$ac_cv_build
2209else
2210  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2211    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2212$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2213   { (exit 1); exit 1; }; }
2214fi
2215
2216fi
2217{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2218$as_echo "$ac_cv_host" >&6; }
2219case $ac_cv_host in
2220*-*-*) ;;
2221*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2222$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2223   { (exit 1); exit 1; }; };;
2224esac
2225host=$ac_cv_host
2226ac_save_IFS=$IFS; IFS='-'
2227set x $ac_cv_host
2228shift
2229host_cpu=$1
2230host_vendor=$2
2231shift; shift
2232# Remember, the first character of IFS is used to create $*,
2233# except with old shells:
2234host_os=$*
2235IFS=$ac_save_IFS
2236case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2237
2238
2239{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2240$as_echo_n "checking target system type... " >&6; }
2241if test "${ac_cv_target+set}" = set; then
2242  $as_echo_n "(cached) " >&6
2243else
2244  if test "x$target_alias" = x; then
2245  ac_cv_target=$ac_cv_host
2246else
2247  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2248    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2249$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2250   { (exit 1); exit 1; }; }
2251fi
2252
2253fi
2254{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2255$as_echo "$ac_cv_target" >&6; }
2256case $ac_cv_target in
2257*-*-*) ;;
2258*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2259$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2260   { (exit 1); exit 1; }; };;
2261esac
2262target=$ac_cv_target
2263ac_save_IFS=$IFS; IFS='-'
2264set x $ac_cv_target
2265shift
2266target_cpu=$1
2267target_vendor=$2
2268shift; shift
2269# Remember, the first character of IFS is used to create $*,
2270# except with old shells:
2271target_os=$*
2272IFS=$ac_save_IFS
2273case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2274
2275
2276# The aliases save the names the user supplied, while $host etc.
2277# will get canonicalized.
2278test -n "$target_alias" &&
2279  test "$program_prefix$program_suffix$program_transform_name" = \
2280    NONENONEs,x,x, &&
2281  program_prefix=${target_alias}-
2282
2283ac_config_headers="$ac_config_headers config.h"
2284
2285am__api_version='1.11'
2286
2287# Find a good install program.  We prefer a C program (faster),
2288# so one script is as good as another.  But avoid the broken or
2289# incompatible versions:
2290# SysV /etc/install, /usr/sbin/install
2291# SunOS /usr/etc/install
2292# IRIX /sbin/install
2293# AIX /bin/install
2294# AmigaOS /C/install, which installs bootblocks on floppy discs
2295# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298# OS/2's system install, which has a completely different semantic
2299# ./install, which can be erroneously created by make from ./install.sh.
2300# Reject install programs that cannot install multiple files.
2301{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2302$as_echo_n "checking for a BSD-compatible install... " >&6; }
2303if test -z "$INSTALL"; then
2304if test "${ac_cv_path_install+set}" = set; then
2305  $as_echo_n "(cached) " >&6
2306else
2307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310  IFS=$as_save_IFS
2311  test -z "$as_dir" && as_dir=.
2312  # Account for people who put trailing slashes in PATH elements.
2313case $as_dir/ in
2314  ./ | .// | /cC/* | \
2315  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2317  /usr/ucb/* ) ;;
2318  *)
2319    # OSF1 and SCO ODT 3.0 have their own names for install.
2320    # Don't use installbsd from OSF since it installs stuff as root
2321    # by default.
2322    for ac_prog in ginstall scoinst install; do
2323      for ac_exec_ext in '' $ac_executable_extensions; do
2324	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2325	  if test $ac_prog = install &&
2326	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327	    # AIX install.  It has an incompatible calling convention.
2328	    :
2329	  elif test $ac_prog = install &&
2330	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331	    # program-specific install script used by HP pwplus--don't use.
2332	    :
2333	  else
2334	    rm -rf conftest.one conftest.two conftest.dir
2335	    echo one > conftest.one
2336	    echo two > conftest.two
2337	    mkdir conftest.dir
2338	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2339	      test -s conftest.one && test -s conftest.two &&
2340	      test -s conftest.dir/conftest.one &&
2341	      test -s conftest.dir/conftest.two
2342	    then
2343	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344	      break 3
2345	    fi
2346	  fi
2347	fi
2348      done
2349    done
2350    ;;
2351esac
2352
2353done
2354IFS=$as_save_IFS
2355
2356rm -rf conftest.one conftest.two conftest.dir
2357
2358fi
2359  if test "${ac_cv_path_install+set}" = set; then
2360    INSTALL=$ac_cv_path_install
2361  else
2362    # As a last resort, use the slow shell script.  Don't cache a
2363    # value for INSTALL within a source directory, because that will
2364    # break other packages using the cache if that directory is
2365    # removed, or if the value is a relative name.
2366    INSTALL=$ac_install_sh
2367  fi
2368fi
2369{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2370$as_echo "$INSTALL" >&6; }
2371
2372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373# It thinks the first close brace ends the variable substitution.
2374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375
2376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377
2378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379
2380{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2381$as_echo_n "checking whether build environment is sane... " >&6; }
2382# Just in case
2383sleep 1
2384echo timestamp > conftest.file
2385# Reject unsafe characters in $srcdir or the absolute working directory
2386# name.  Accept space and tab only in the latter.
2387am_lf='
2388'
2389case `pwd` in
2390  *[\\\"\#\$\&\'\`$am_lf]*)
2391    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2392$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2393   { (exit 1); exit 1; }; };;
2394esac
2395case $srcdir in
2396  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2397    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2398$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2399   { (exit 1); exit 1; }; };;
2400esac
2401
2402# Do `set' in a subshell so we don't clobber the current shell's
2403# arguments.  Must try -L first in case configure is actually a
2404# symlink; some systems play weird games with the mod time of symlinks
2405# (eg FreeBSD returns the mod time of the symlink's containing
2406# directory).
2407if (
2408   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409   if test "$*" = "X"; then
2410      # -L didn't work.
2411      set X `ls -t "$srcdir/configure" conftest.file`
2412   fi
2413   rm -f conftest.file
2414   if test "$*" != "X $srcdir/configure conftest.file" \
2415      && test "$*" != "X conftest.file $srcdir/configure"; then
2416
2417      # If neither matched, then we have a broken ls.  This can happen
2418      # if, for instance, CONFIG_SHELL is bash and it inherits a
2419      # broken ls alias from the environment.  This has actually
2420      # happened.  Such a system could not be considered "sane".
2421      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2422alias in your environment" >&5
2423$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2424alias in your environment" >&2;}
2425   { (exit 1); exit 1; }; }
2426   fi
2427
2428   test "$2" = conftest.file
2429   )
2430then
2431   # Ok.
2432   :
2433else
2434   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2435Check your system clock" >&5
2436$as_echo "$as_me: error: newly created file is older than distributed files!
2437Check your system clock" >&2;}
2438   { (exit 1); exit 1; }; }
2439fi
2440{ $as_echo "$as_me:$LINENO: result: yes" >&5
2441$as_echo "yes" >&6; }
2442test "$program_prefix" != NONE &&
2443  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2444# Use a double $ so make ignores it.
2445test "$program_suffix" != NONE &&
2446  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2447# Double any \ or $.
2448# By default was `s,x,x', remove it if useless.
2449ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2450program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2451
2452# expand $ac_aux_dir to an absolute path
2453am_aux_dir=`cd $ac_aux_dir && pwd`
2454
2455if test x"${MISSING+set}" != xset; then
2456  case $am_aux_dir in
2457  *\ * | *\	*)
2458    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2459  *)
2460    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2461  esac
2462fi
2463# Use eval to expand $SHELL
2464if eval "$MISSING --run true"; then
2465  am_missing_run="$MISSING --run "
2466else
2467  am_missing_run=
2468  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2469$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2470fi
2471
2472if test x"${install_sh}" != xset; then
2473  case $am_aux_dir in
2474  *\ * | *\	*)
2475    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2476  *)
2477    install_sh="\${SHELL} $am_aux_dir/install-sh"
2478  esac
2479fi
2480
2481# Installed binaries are usually stripped using `strip' when the user
2482# run `make install-strip'.  However `strip' might not be the right
2483# tool to use in cross-compilation environments, therefore Automake
2484# will honor the `STRIP' environment variable to overrule this program.
2485if test "$cross_compiling" != no; then
2486  if test -n "$ac_tool_prefix"; then
2487  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2488set dummy ${ac_tool_prefix}strip; ac_word=$2
2489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2490$as_echo_n "checking for $ac_word... " >&6; }
2491if test "${ac_cv_prog_STRIP+set}" = set; then
2492  $as_echo_n "(cached) " >&6
2493else
2494  if test -n "$STRIP"; then
2495  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500  IFS=$as_save_IFS
2501  test -z "$as_dir" && as_dir=.
2502  for ac_exec_ext in '' $ac_executable_extensions; do
2503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2505    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506    break 2
2507  fi
2508done
2509done
2510IFS=$as_save_IFS
2511
2512fi
2513fi
2514STRIP=$ac_cv_prog_STRIP
2515if test -n "$STRIP"; then
2516  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2517$as_echo "$STRIP" >&6; }
2518else
2519  { $as_echo "$as_me:$LINENO: result: no" >&5
2520$as_echo "no" >&6; }
2521fi
2522
2523
2524fi
2525if test -z "$ac_cv_prog_STRIP"; then
2526  ac_ct_STRIP=$STRIP
2527  # Extract the first word of "strip", so it can be a program name with args.
2528set dummy strip; ac_word=$2
2529{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2532  $as_echo_n "(cached) " >&6
2533else
2534  if test -n "$ac_ct_STRIP"; then
2535  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542  for ac_exec_ext in '' $ac_executable_extensions; do
2543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544    ac_cv_prog_ac_ct_STRIP="strip"
2545    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546    break 2
2547  fi
2548done
2549done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2555if test -n "$ac_ct_STRIP"; then
2556  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2557$as_echo "$ac_ct_STRIP" >&6; }
2558else
2559  { $as_echo "$as_me:$LINENO: result: no" >&5
2560$as_echo "no" >&6; }
2561fi
2562
2563  if test "x$ac_ct_STRIP" = x; then
2564    STRIP=":"
2565  else
2566    case $cross_compiling:$ac_tool_warned in
2567yes:)
2568{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2570ac_tool_warned=yes ;;
2571esac
2572    STRIP=$ac_ct_STRIP
2573  fi
2574else
2575  STRIP="$ac_cv_prog_STRIP"
2576fi
2577
2578fi
2579INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2580
2581{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2582$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2583if test -z "$MKDIR_P"; then
2584  if test "${ac_cv_path_mkdir+set}" = set; then
2585  $as_echo_n "(cached) " >&6
2586else
2587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592  for ac_prog in mkdir gmkdir; do
2593	 for ac_exec_ext in '' $ac_executable_extensions; do
2594	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2595	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2596	     'mkdir (GNU coreutils) '* | \
2597	     'mkdir (coreutils) '* | \
2598	     'mkdir (fileutils) '4.1*)
2599	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2600	       break 3;;
2601	   esac
2602	 done
2603       done
2604done
2605IFS=$as_save_IFS
2606
2607fi
2608
2609  if test "${ac_cv_path_mkdir+set}" = set; then
2610    MKDIR_P="$ac_cv_path_mkdir -p"
2611  else
2612    # As a last resort, use the slow shell script.  Don't cache a
2613    # value for MKDIR_P within a source directory, because that will
2614    # break other packages using the cache if that directory is
2615    # removed, or if the value is a relative name.
2616    test -d ./--version && rmdir ./--version
2617    MKDIR_P="$ac_install_sh -d"
2618  fi
2619fi
2620{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2621$as_echo "$MKDIR_P" >&6; }
2622
2623mkdir_p="$MKDIR_P"
2624case $mkdir_p in
2625  [\\/$]* | ?:[\\/]*) ;;
2626  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2627esac
2628
2629for ac_prog in gawk mawk nawk awk
2630do
2631  # Extract the first word of "$ac_prog", so it can be a program name with args.
2632set dummy $ac_prog; ac_word=$2
2633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if test "${ac_cv_prog_AWK+set}" = set; then
2636  $as_echo_n "(cached) " >&6
2637else
2638  if test -n "$AWK"; then
2639  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644  IFS=$as_save_IFS
2645  test -z "$as_dir" && as_dir=.
2646  for ac_exec_ext in '' $ac_executable_extensions; do
2647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648    ac_cv_prog_AWK="$ac_prog"
2649    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650    break 2
2651  fi
2652done
2653done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658AWK=$ac_cv_prog_AWK
2659if test -n "$AWK"; then
2660  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2661$as_echo "$AWK" >&6; }
2662else
2663  { $as_echo "$as_me:$LINENO: result: no" >&5
2664$as_echo "no" >&6; }
2665fi
2666
2667
2668  test -n "$AWK" && break
2669done
2670
2671{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2672$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2673set x ${MAKE-make}
2674ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2675if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2676  $as_echo_n "(cached) " >&6
2677else
2678  cat >conftest.make <<\_ACEOF
2679SHELL = /bin/sh
2680all:
2681	@echo '@@@%%%=$(MAKE)=@@@%%%'
2682_ACEOF
2683# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2684case `${MAKE-make} -f conftest.make 2>/dev/null` in
2685  *@@@%%%=?*=@@@%%%*)
2686    eval ac_cv_prog_make_${ac_make}_set=yes;;
2687  *)
2688    eval ac_cv_prog_make_${ac_make}_set=no;;
2689esac
2690rm -f conftest.make
2691fi
2692if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2693  { $as_echo "$as_me:$LINENO: result: yes" >&5
2694$as_echo "yes" >&6; }
2695  SET_MAKE=
2696else
2697  { $as_echo "$as_me:$LINENO: result: no" >&5
2698$as_echo "no" >&6; }
2699  SET_MAKE="MAKE=${MAKE-make}"
2700fi
2701
2702rm -rf .tst 2>/dev/null
2703mkdir .tst 2>/dev/null
2704if test -d .tst; then
2705  am__leading_dot=.
2706else
2707  am__leading_dot=_
2708fi
2709rmdir .tst 2>/dev/null
2710
2711if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713  # is not polluted with repeated "-I."
2714  am__isrc=' -I$(srcdir)'
2715  # test to see if srcdir already configured
2716  if test -f $srcdir/config.status; then
2717    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2718$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2719   { (exit 1); exit 1; }; }
2720  fi
2721fi
2722
2723# test whether we have cygpath
2724if test -z "$CYGPATH_W"; then
2725  if (cygpath --version) >/dev/null 2>/dev/null; then
2726    CYGPATH_W='cygpath -w'
2727  else
2728    CYGPATH_W=echo
2729  fi
2730fi
2731
2732
2733# Define the identity of the package.
2734 PACKAGE='beecrypt'
2735 VERSION='4.2.1'
2736
2737
2738cat >>confdefs.h <<_ACEOF
2739#define PACKAGE "$PACKAGE"
2740_ACEOF
2741
2742
2743cat >>confdefs.h <<_ACEOF
2744#define VERSION "$VERSION"
2745_ACEOF
2746
2747# Some tools Automake needs.
2748
2749ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763# We need awk for the "check" target.  The system "awk" is bad on
2764# some platforms.
2765# Always define AMTAR for backward compatibility.
2766
2767AMTAR=${AMTAR-"${am_missing_run}tar"}
2768
2769am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2770
2771
2772
2773
2774
2775
2776# Checks for AWK - used by expert mode
2777for ac_prog in gawk mawk nawk awk
2778do
2779  # Extract the first word of "$ac_prog", so it can be a program name with args.
2780set dummy $ac_prog; ac_word=$2
2781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if test "${ac_cv_prog_AWK+set}" = set; then
2784  $as_echo_n "(cached) " >&6
2785else
2786  if test -n "$AWK"; then
2787  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792  IFS=$as_save_IFS
2793  test -z "$as_dir" && as_dir=.
2794  for ac_exec_ext in '' $ac_executable_extensions; do
2795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796    ac_cv_prog_AWK="$ac_prog"
2797    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798    break 2
2799  fi
2800done
2801done
2802IFS=$as_save_IFS
2803
2804fi
2805fi
2806AWK=$ac_cv_prog_AWK
2807if test -n "$AWK"; then
2808  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2809$as_echo "$AWK" >&6; }
2810else
2811  { $as_echo "$as_me:$LINENO: result: no" >&5
2812$as_echo "no" >&6; }
2813fi
2814
2815
2816  test -n "$AWK" && break
2817done
2818
2819
2820# Checks for package options
2821# Check whether --enable-expert-mode was given.
2822if test "${enable_expert_mode+set}" = set; then
2823  enableval=$enable_expert_mode;
2824  ac_enable_expert_mode=yes
2825
2826else
2827
2828  if test "X$CFLAGS" != "X"; then
2829    echo "enabling expert mode"
2830    ac_enable_expert_mode=yes
2831  else
2832    ac_enable_expert_mode=no
2833  fi
2834
2835fi
2836
2837
2838# Check whether --enable-debug was given.
2839if test "${enable_debug+set}" = set; then
2840  enableval=$enable_debug;
2841  if test "$ac_enable_expert_mode" = yes; then
2842    { { $as_echo "$as_me:$LINENO: error: --enable-debug cannot be used in conjunction with --enable-expert-mode" >&5
2843$as_echo "$as_me: error: --enable-debug cannot be used in conjunction with --enable-expert-mode" >&2;}
2844   { (exit 1); exit 1; }; }
2845  fi
2846  ac_enable_debug=yes
2847
2848else
2849
2850  ac_enable_debug=no
2851
2852fi
2853
2854
2855
2856# Check whether --with-cpu was given.
2857if test "${with_cpu+set}" = set; then
2858  withval=$with_cpu; A
2859  if test "$ac_enable_expert_mode" = yes; then
2860    { { $as_echo "$as_me:$LINENO: error: --with-cpu cannot be used in conjunction with --enable-expert-mode" >&5
2861$as_echo "$as_me: error: --with-cpu cannot be used in conjunction with --enable-expert-mode" >&2;}
2862   { (exit 1); exit 1; }; }
2863  fi
2864
2865  ac_with_cpu=yes
2866  bc_target_cpu=$withval
2867  case $target_cpu in
2868  i[3456]86)
2869    case $withval in
2870    i[3456]86 | \
2871    pentium | pentium-m | pentium-mmx | pentiumpro | pentium[234] | \
2872    athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp | athlon-fx | athlon64 | k8)
2873      ;;
2874    *)
2875      { $as_echo "$as_me:$LINENO: WARNING: invalid cpu type" >&5
2876$as_echo "$as_me: WARNING: invalid cpu type" >&2;}
2877      bc_target_cpu=$target_cpu
2878      ;;
2879    esac
2880    ;;
2881  powerpc | powerpc64)
2882    case $withval in
2883    403 | 505 | \
2884    60[1234] | 60[34]e | 6[23]0 | \
2885    7[45]0 | 74[05]0 | \
2886    801 | 82[13] | 860 | \
2887    power | power2 | powerpc | powerpc64)
2888      ;;
2889    *)
2890      { $as_echo "$as_me:$LINENO: WARNING: invalid cpu type" >&5
2891$as_echo "$as_me: WARNING: invalid cpu type" >&2;}
2892      bc_target_cpu=$target_cpu
2893      ;;
2894    esac
2895    ;;
2896  sparc | sparc64)
2897    case $withval in
2898    sparcv8 | sparcv8plus | sparcv8plusa | sparcv9 | sparcv9a)
2899      ;;
2900    *)
2901      { $as_echo "$as_me:$LINENO: WARNING: invalid cpu type" >&5
2902$as_echo "$as_me: WARNING: invalid cpu type" >&2;}
2903      bc_target_cpu=$target_cpu
2904      ;;
2905    esac
2906    ;;
2907  x86) # QNX Neutrino doesn't list the exact cpu type
2908    case $withval in
2909    i[3456]86)
2910      ;;
2911    *)
2912      { $as_echo "$as_me:$LINENO: WARNING: unsupported or invalid cpu type" >&5
2913$as_echo "$as_me: WARNING: unsupported or invalid cpu type" >&2;}
2914      bc_target_cpu=$target_cpu
2915      ;;
2916    esac
2917    ;;
2918  *)
2919    { $as_echo "$as_me:$LINENO: WARNING: unsupported or invalid cpu type" >&5
2920$as_echo "$as_me: WARNING: unsupported or invalid cpu type" >&2;}
2921    bc_target_cpu=$target_cpu
2922    ;;
2923  esac
2924
2925
2926else
2927
2928
2929  ac_with_cpu=no
2930  bc_target_cpu=$target_cpu
2931
2932
2933fi
2934
2935
2936
2937# Check whether --with-arch was given.
2938if test "${with_arch+set}" = set; then
2939  withval=$with_arch;
2940  if test "$ac_enable_expert_mode" = yes; then
2941    { { $as_echo "$as_me:$LINENO: error: --with-arch cannot be used in conjunction with --enable-expert-mode" >&5
2942$as_echo "$as_me: error: --with-arch cannot be used in conjunction with --enable-expert-mode" >&2;}
2943   { (exit 1); exit 1; }; }
2944  fi
2945
2946  ac_with_arch=yes
2947  bc_target_arch=$withval
2948  case $target_cpu in
2949  i[3456]86)
2950    case $withval in
2951    em64t | \
2952    i[3456]86 | \
2953    pentium | pentium-m | pentium-mmx | pentiumpro | pentium[234] | \
2954    athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp | athlon64 | k8)
2955      if test "$ac_with_cpu" != yes; then
2956        bc_target_arch=$withval
2957      fi
2958      ;;
2959    esac
2960    ;;
2961  powerpc*)
2962    case $withval in
2963    powerpc)
2964      ;;
2965    powerpc64)
2966      ;;
2967    *)
2968      { $as_echo "$as_me:$LINENO: WARNING: unsupported on invalid arch type" >&5
2969$as_echo "$as_me: WARNING: unsupported on invalid arch type" >&2;}
2970      bc_target_arch=powerpc
2971      ;;
2972    esac
2973    ;;
2974  esac
2975
2976
2977else
2978
2979
2980  # if bc_target_arch hasn't been set (i.e. by expert mode)
2981  if test "X$bc_target_arch" = "X"; then
2982    ac_with_arch=no
2983    case $target_cpu in
2984    alpha*)
2985      bc_target_arch=alpha
2986      ;;
2987    arm*)
2988      bc_target_arch=arm
2989      ;;
2990    i[3456]86)
2991      bc_target_arch=i386
2992      ;;
2993    ia64)
2994      bc_target_arch=ia64
2995      ;;
2996    m68k)
2997      bc_target_arch=m68k
2998      ;;
2999    powerpc)
3000      bc_target_arch=powerpc
3001      ;;
3002    powerpc64)
3003      bc_target_arch=powerpc64
3004      ;;
3005    s390x)
3006      bc_target_arch=s390x
3007      ;;
3008    sparc*)
3009      bc_target_arch=sparc
3010      ;;
3011    x86_64|amd64)
3012      bc_target_arch=x86_64
3013      ;;
3014    esac
3015  fi
3016
3017
3018fi
3019
3020
3021# Check whether --enable-threads was given.
3022if test "${enable_threads+set}" = set; then
3023  enableval=$enable_threads;
3024  if test "$enableval" = no; then
3025    ac_enable_threads=no
3026  else
3027    ac_enable_threads=yes
3028  fi
3029
3030else
3031  ac_enable_threads=yes
3032fi
3033
3034
3035# Check whether --enable-aio was given.
3036if test "${enable_aio+set}" = set; then
3037  enableval=$enable_aio;
3038  if test "$enableval" = no; then
3039    ac_enable_aio=no
3040  else
3041    ac_enable_aio=yes
3042  fi
3043
3044else
3045  ac_enable_aio=yes
3046fi
3047
3048
3049
3050
3051
3052
3053# Check whether --with-mtmalloc was given.
3054if test "${with_mtmalloc+set}" = set; then
3055  withval=$with_mtmalloc;
3056  if test "$withval" = no; then
3057    ac_with_mtmalloc=no
3058  else
3059    ac_with_mtmalloc=yes
3060  fi
3061
3062else
3063  ac_with_mtmalloc=no
3064fi
3065
3066
3067
3068# Check whether --with-cplusplus was given.
3069if test "${with_cplusplus+set}" = set; then
3070  withval=$with_cplusplus;
3071  if test "$withval" = no; then
3072    ac_with_cplusplus=no
3073  else
3074    ac_with_cplusplus=yes
3075  fi
3076
3077else
3078  ac_with_cplusplus=yes
3079fi
3080
3081
3082
3083# Check whether --with-java was given.
3084if test "${with_java+set}" = set; then
3085  withval=$with_java;
3086  if test "$withval" = no; then
3087    ac_with_java=no
3088  else
3089    ac_with_java=yes
3090  fi
3091
3092else
3093  ac_with_java=yes
3094fi
3095
3096
3097
3098# Check whether --with-python was given.
3099if test "${with_python+set}" = set; then
3100  withval=$with_python;
3101  if test "$withval" = no; then
3102    ac_with_python=no
3103  else
3104    ac_with_python=yes
3105    ac_with_python_val=$withval
3106  fi
3107
3108else
3109
3110  ac_with_python_val=`which python`
3111  if test "X$ac_with_python_val" = "X"; then
3112    ac_with_python=no
3113  else
3114    ac_with_python=yes
3115  fi
3116
3117fi
3118
3119
3120# Check for expert mode
3121if test "$ac_enable_expert_mode" = yes; then
3122  # examine the other flags
3123  for flag in `echo $CFLAGS`
3124  do
3125    case $flag in
3126    -mmmx)
3127       CPPFLAGS="$CPPFLAGS -DOPTIMIZE_MMX"
3128       ;;
3129    -msse)
3130       CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SSE"
3131       ;;
3132    -msse2)
3133       CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SSE2"
3134       ;;
3135    -msse3)
3136       CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SSE3"
3137       ;;
3138     esac
3139  done
3140
3141fi
3142
3143# Check for aggressive optimization
3144
3145  if test "$CFLAGS" = ""; then
3146    bc_cv_c_aggressive_opt=yes
3147  else
3148    bc_cv_c_aggressive_opt=no
3149  fi
3150  if test "$CXXFLAGS" = ""; then
3151    bc_cv_cxx_aggressive_opt=yes
3152  else
3153    bc_cv_cxx_aggressive_opt=no
3154  fi
3155
3156
3157# Check for Unix variants
3158DEPDIR="${am__leading_dot}deps"
3159
3160ac_config_commands="$ac_config_commands depfiles"
3161
3162
3163am_make=${MAKE-make}
3164cat > confinc << 'END'
3165am__doit:
3166	@echo this is the am__doit target
3167.PHONY: am__doit
3168END
3169# If we don't find an include directive, just comment out the code.
3170{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3171$as_echo_n "checking for style of include used by $am_make... " >&6; }
3172am__include="#"
3173am__quote=
3174_am_result=none
3175# First try GNU make style include.
3176echo "include confinc" > confmf
3177# Ignore all kinds of additional output from `make'.
3178case `$am_make -s -f confmf 2> /dev/null` in #(
3179*the\ am__doit\ target*)
3180  am__include=include
3181  am__quote=
3182  _am_result=GNU
3183  ;;
3184esac
3185# Now try BSD make style include.
3186if test "$am__include" = "#"; then
3187   echo '.include "confinc"' > confmf
3188   case `$am_make -s -f confmf 2> /dev/null` in #(
3189   *the\ am__doit\ target*)
3190     am__include=.include
3191     am__quote="\""
3192     _am_result=BSD
3193     ;;
3194   esac
3195fi
3196
3197
3198{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3199$as_echo "$_am_result" >&6; }
3200rm -f confinc confmf
3201
3202# Check whether --enable-dependency-tracking was given.
3203if test "${enable_dependency_tracking+set}" = set; then
3204  enableval=$enable_dependency_tracking;
3205fi
3206
3207if test "x$enable_dependency_tracking" != xno; then
3208  am_depcomp="$ac_aux_dir/depcomp"
3209  AMDEPBACKSLASH='\'
3210fi
3211 if test "x$enable_dependency_tracking" != xno; then
3212  AMDEP_TRUE=
3213  AMDEP_FALSE='#'
3214else
3215  AMDEP_TRUE='#'
3216  AMDEP_FALSE=
3217fi
3218
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225if test -n "$ac_tool_prefix"; then
3226  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if test "${ac_cv_prog_CC+set}" = set; then
3231  $as_echo_n "(cached) " >&6
3232else
3233  if test -n "$CC"; then
3234  ac_cv_prog_CC="$CC" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241  for ac_exec_ext in '' $ac_executable_extensions; do
3242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248done
3249IFS=$as_save_IFS
3250
3251fi
3252fi
3253CC=$ac_cv_prog_CC
3254if test -n "$CC"; then
3255  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256$as_echo "$CC" >&6; }
3257else
3258  { $as_echo "$as_me:$LINENO: result: no" >&5
3259$as_echo "no" >&6; }
3260fi
3261
3262
3263fi
3264if test -z "$ac_cv_prog_CC"; then
3265  ac_ct_CC=$CC
3266  # Extract the first word of "gcc", so it can be a program name with args.
3267set dummy gcc; ac_word=$2
3268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3271  $as_echo_n "(cached) " >&6
3272else
3273  if test -n "$ac_ct_CC"; then
3274  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281  for ac_exec_ext in '' $ac_executable_extensions; do
3282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283    ac_cv_prog_ac_ct_CC="gcc"
3284    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294if test -n "$ac_ct_CC"; then
3295  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3296$as_echo "$ac_ct_CC" >&6; }
3297else
3298  { $as_echo "$as_me:$LINENO: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302  if test "x$ac_ct_CC" = x; then
3303    CC=""
3304  else
3305    case $cross_compiling:$ac_tool_warned in
3306yes:)
3307{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309ac_tool_warned=yes ;;
3310esac
3311    CC=$ac_ct_CC
3312  fi
3313else
3314  CC="$ac_cv_prog_CC"
3315fi
3316
3317if test -z "$CC"; then
3318          if test -n "$ac_tool_prefix"; then
3319    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320set dummy ${ac_tool_prefix}cc; ac_word=$2
3321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3322$as_echo_n "checking for $ac_word... " >&6; }
3323if test "${ac_cv_prog_CC+set}" = set; then
3324  $as_echo_n "(cached) " >&6
3325else
3326  if test -n "$CC"; then
3327  ac_cv_prog_CC="$CC" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334  for ac_exec_ext in '' $ac_executable_extensions; do
3335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336    ac_cv_prog_CC="${ac_tool_prefix}cc"
3337    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341done
3342IFS=$as_save_IFS
3343
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351  { $as_echo "$as_me:$LINENO: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356  fi
3357fi
3358if test -z "$CC"; then
3359  # Extract the first word of "cc", so it can be a program name with args.
3360set dummy cc; ac_word=$2
3361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if test "${ac_cv_prog_CC+set}" = set; then
3364  $as_echo_n "(cached) " >&6
3365else
3366  if test -n "$CC"; then
3367  ac_cv_prog_CC="$CC" # Let the user override the test.
3368else
3369  ac_prog_rejected=no
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375  for ac_exec_ext in '' $ac_executable_extensions; do
3376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378       ac_prog_rejected=yes
3379       continue
3380     fi
3381    ac_cv_prog_CC="cc"
3382    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386done
3387IFS=$as_save_IFS
3388
3389if test $ac_prog_rejected = yes; then
3390  # We found a bogon in the path, so make sure we never use it.
3391  set dummy $ac_cv_prog_CC
3392  shift
3393  if test $# != 0; then
3394    # We chose a different compiler from the bogus one.
3395    # However, it has the same basename, so the bogon will be chosen
3396    # first if we set CC to just the basename; use the full file name.
3397    shift
3398    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3399  fi
3400fi
3401fi
3402fi
3403CC=$ac_cv_prog_CC
3404if test -n "$CC"; then
3405  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3406$as_echo "$CC" >&6; }
3407else
3408  { $as_echo "$as_me:$LINENO: result: no" >&5
3409$as_echo "no" >&6; }
3410fi
3411
3412
3413fi
3414if test -z "$CC"; then
3415  if test -n "$ac_tool_prefix"; then
3416  for ac_prog in cl.exe
3417  do
3418    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3421$as_echo_n "checking for $ac_word... " >&6; }
3422if test "${ac_cv_prog_CC+set}" = set; then
3423  $as_echo_n "(cached) " >&6
3424else
3425  if test -n "$CC"; then
3426  ac_cv_prog_CC="$CC" # Let the user override the test.
3427else
3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431  IFS=$as_save_IFS
3432  test -z "$as_dir" && as_dir=.
3433  for ac_exec_ext in '' $ac_executable_extensions; do
3434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437    break 2
3438  fi
3439done
3440done
3441IFS=$as_save_IFS
3442
3443fi
3444fi
3445CC=$ac_cv_prog_CC
3446if test -n "$CC"; then
3447  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3448$as_echo "$CC" >&6; }
3449else
3450  { $as_echo "$as_me:$LINENO: result: no" >&5
3451$as_echo "no" >&6; }
3452fi
3453
3454
3455    test -n "$CC" && break
3456  done
3457fi
3458if test -z "$CC"; then
3459  ac_ct_CC=$CC
3460  for ac_prog in cl.exe
3461do
3462  # Extract the first word of "$ac_prog", so it can be a program name with args.
3463set dummy $ac_prog; ac_word=$2
3464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3467  $as_echo_n "(cached) " >&6
3468else
3469  if test -n "$ac_ct_CC"; then
3470  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475  IFS=$as_save_IFS
3476  test -z "$as_dir" && as_dir=.
3477  for ac_exec_ext in '' $ac_executable_extensions; do
3478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479    ac_cv_prog_ac_ct_CC="$ac_prog"
3480    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481    break 2
3482  fi
3483done
3484done
3485IFS=$as_save_IFS
3486
3487fi
3488fi
3489ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490if test -n "$ac_ct_CC"; then
3491  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3492$as_echo "$ac_ct_CC" >&6; }
3493else
3494  { $as_echo "$as_me:$LINENO: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498
3499  test -n "$ac_ct_CC" && break
3500done
3501
3502  if test "x$ac_ct_CC" = x; then
3503    CC=""
3504  else
3505    case $cross_compiling:$ac_tool_warned in
3506yes:)
3507{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509ac_tool_warned=yes ;;
3510esac
3511    CC=$ac_ct_CC
3512  fi
3513fi
3514
3515fi
3516
3517
3518test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3521See \`config.log' for more details." >&5
3522$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3523See \`config.log' for more details." >&2;}
3524   { (exit 1); exit 1; }; }; }
3525
3526# Provide some information about the compiler.
3527$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3528set X $ac_compile
3529ac_compiler=$2
3530{ (ac_try="$ac_compiler --version >&5"
3531case "(($ac_try" in
3532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533  *) ac_try_echo=$ac_try;;
3534esac
3535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536$as_echo "$ac_try_echo") >&5
3537  (eval "$ac_compiler --version >&5") 2>&5
3538  ac_status=$?
3539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }
3541{ (ac_try="$ac_compiler -v >&5"
3542case "(($ac_try" in
3543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544  *) ac_try_echo=$ac_try;;
3545esac
3546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547$as_echo "$ac_try_echo") >&5
3548  (eval "$ac_compiler -v >&5") 2>&5
3549  ac_status=$?
3550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }
3552{ (ac_try="$ac_compiler -V >&5"
3553case "(($ac_try" in
3554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555  *) ac_try_echo=$ac_try;;
3556esac
3557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558$as_echo "$ac_try_echo") >&5
3559  (eval "$ac_compiler -V >&5") 2>&5
3560  ac_status=$?
3561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); }
3563
3564cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h.  */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h.  */
3570
3571int
3572main ()
3573{
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579ac_clean_files_save=$ac_clean_files
3580ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3581# Try to create an executable without -o first, disregard a.out.
3582# It will help us diagnose broken compilers, and finding out an intuition
3583# of exeext.
3584{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3585$as_echo_n "checking for C compiler default output file name... " >&6; }
3586ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3587
3588# The possible output files:
3589ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3590
3591ac_rmfiles=
3592for ac_file in $ac_files
3593do
3594  case $ac_file in
3595    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3597  esac
3598done
3599rm -f $ac_rmfiles
3600
3601if { (ac_try="$ac_link_default"
3602case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607$as_echo "$ac_try_echo") >&5
3608  (eval "$ac_link_default") 2>&5
3609  ac_status=$?
3610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); }; then
3612  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3613# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3614# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3615# so that the user can short-circuit this test for compilers unknown to
3616# Autoconf.
3617for ac_file in $ac_files ''
3618do
3619  test -f "$ac_file" || continue
3620  case $ac_file in
3621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3622	;;
3623    [ab].out )
3624	# We found the default executable, but exeext='' is most
3625	# certainly right.
3626	break;;
3627    *.* )
3628        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3629	then :; else
3630	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631	fi
3632	# We set ac_cv_exeext here because the later test for it is not
3633	# safe: cross compilers may not add the suffix if given an `-o'
3634	# argument, so we may need to know it at that point already.
3635	# Even if this section looks crufty: it has the advantage of
3636	# actually working.
3637	break;;
3638    * )
3639	break;;
3640  esac
3641done
3642test "$ac_cv_exeext" = no && ac_cv_exeext=
3643
3644else
3645  ac_file=''
3646fi
3647
3648{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3649$as_echo "$ac_file" >&6; }
3650if test -z "$ac_file"; then
3651  $as_echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3657See \`config.log' for more details." >&5
3658$as_echo "$as_me: error: C compiler cannot create executables
3659See \`config.log' for more details." >&2;}
3660   { (exit 77); exit 77; }; }; }
3661fi
3662
3663ac_exeext=$ac_cv_exeext
3664
3665# Check that the compiler produces executables we can run.  If not, either
3666# the compiler is broken, or we cross compile.
3667{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3668$as_echo_n "checking whether the C compiler works... " >&6; }
3669# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3670# If not cross compiling, check that we can run a simple program.
3671if test "$cross_compiling" != yes; then
3672  if { ac_try='./$ac_file'
3673  { (case "(($ac_try" in
3674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675  *) ac_try_echo=$ac_try;;
3676esac
3677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3678$as_echo "$ac_try_echo") >&5
3679  (eval "$ac_try") 2>&5
3680  ac_status=$?
3681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); }; }; then
3683    cross_compiling=no
3684  else
3685    if test "$cross_compiling" = maybe; then
3686	cross_compiling=yes
3687    else
3688	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3691If you meant to cross compile, use \`--host'.
3692See \`config.log' for more details." >&5
3693$as_echo "$as_me: error: cannot run C compiled programs.
3694If you meant to cross compile, use \`--host'.
3695See \`config.log' for more details." >&2;}
3696   { (exit 1); exit 1; }; }; }
3697    fi
3698  fi
3699fi
3700{ $as_echo "$as_me:$LINENO: result: yes" >&5
3701$as_echo "yes" >&6; }
3702
3703rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3704ac_clean_files=$ac_clean_files_save
3705# Check that the compiler produces executables we can run.  If not, either
3706# the compiler is broken, or we cross compile.
3707{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3708$as_echo_n "checking whether we are cross compiling... " >&6; }
3709{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3710$as_echo "$cross_compiling" >&6; }
3711
3712{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3713$as_echo_n "checking for suffix of executables... " >&6; }
3714if { (ac_try="$ac_link"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720$as_echo "$ac_try_echo") >&5
3721  (eval "$ac_link") 2>&5
3722  ac_status=$?
3723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; then
3725  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3726# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3727# work properly (i.e., refer to `conftest.exe'), while it won't with
3728# `rm'.
3729for ac_file in conftest.exe conftest conftest.*; do
3730  test -f "$ac_file" || continue
3731  case $ac_file in
3732    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3733    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3734	  break;;
3735    * ) break;;
3736  esac
3737done
3738else
3739  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3742See \`config.log' for more details." >&5
3743$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3744See \`config.log' for more details." >&2;}
3745   { (exit 1); exit 1; }; }; }
3746fi
3747
3748rm -f conftest$ac_cv_exeext
3749{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3750$as_echo "$ac_cv_exeext" >&6; }
3751
3752rm -f conftest.$ac_ext
3753EXEEXT=$ac_cv_exeext
3754ac_exeext=$EXEEXT
3755{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3756$as_echo_n "checking for suffix of object files... " >&6; }
3757if test "${ac_cv_objext+set}" = set; then
3758  $as_echo_n "(cached) " >&6
3759else
3760  cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h.  */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775rm -f conftest.o conftest.obj
3776if { (ac_try="$ac_compile"
3777case "(($ac_try" in
3778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779  *) ac_try_echo=$ac_try;;
3780esac
3781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782$as_echo "$ac_try_echo") >&5
3783  (eval "$ac_compile") 2>&5
3784  ac_status=$?
3785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); }; then
3787  for ac_file in conftest.o conftest.obj conftest.*; do
3788  test -f "$ac_file" || continue;
3789  case $ac_file in
3790    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3791    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3792       break;;
3793  esac
3794done
3795else
3796  $as_echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3802See \`config.log' for more details." >&5
3803$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3804See \`config.log' for more details." >&2;}
3805   { (exit 1); exit 1; }; }; }
3806fi
3807
3808rm -f conftest.$ac_cv_objext conftest.$ac_ext
3809fi
3810{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3811$as_echo "$ac_cv_objext" >&6; }
3812OBJEXT=$ac_cv_objext
3813ac_objext=$OBJEXT
3814{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3815$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3816if test "${ac_cv_c_compiler_gnu+set}" = set; then
3817  $as_echo_n "(cached) " >&6
3818else
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825
3826int
3827main ()
3828{
3829#ifndef __GNUC__
3830       choke me
3831#endif
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837rm -f conftest.$ac_objext
3838if { (ac_try="$ac_compile"
3839case "(($ac_try" in
3840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841  *) ac_try_echo=$ac_try;;
3842esac
3843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3844$as_echo "$ac_try_echo") >&5
3845  (eval "$ac_compile") 2>conftest.er1
3846  ac_status=$?
3847  grep -v '^ *+' conftest.er1 >conftest.err
3848  rm -f conftest.er1
3849  cat conftest.err >&5
3850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); } && {
3852	 test -z "$ac_c_werror_flag" ||
3853	 test ! -s conftest.err
3854       } && test -s conftest.$ac_objext; then
3855  ac_compiler_gnu=yes
3856else
3857  $as_echo "$as_me: failed program was:" >&5
3858sed 's/^/| /' conftest.$ac_ext >&5
3859
3860	ac_compiler_gnu=no
3861fi
3862
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864ac_cv_c_compiler_gnu=$ac_compiler_gnu
3865
3866fi
3867{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3868$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3869if test $ac_compiler_gnu = yes; then
3870  GCC=yes
3871else
3872  GCC=
3873fi
3874ac_test_CFLAGS=${CFLAGS+set}
3875ac_save_CFLAGS=$CFLAGS
3876{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3877$as_echo_n "checking whether $CC accepts -g... " >&6; }
3878if test "${ac_cv_prog_cc_g+set}" = set; then
3879  $as_echo_n "(cached) " >&6
3880else
3881  ac_save_c_werror_flag=$ac_c_werror_flag
3882   ac_c_werror_flag=yes
3883   ac_cv_prog_cc_g=no
3884   CFLAGS="-g"
3885   cat >conftest.$ac_ext <<_ACEOF
3886/* confdefs.h.  */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900rm -f conftest.$ac_objext
3901if { (ac_try="$ac_compile"
3902case "(($ac_try" in
3903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904  *) ac_try_echo=$ac_try;;
3905esac
3906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907$as_echo "$ac_try_echo") >&5
3908  (eval "$ac_compile") 2>conftest.er1
3909  ac_status=$?
3910  grep -v '^ *+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); } && {
3915	 test -z "$ac_c_werror_flag" ||
3916	 test ! -s conftest.err
3917       } && test -s conftest.$ac_objext; then
3918  ac_cv_prog_cc_g=yes
3919else
3920  $as_echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923	CFLAGS=""
3924      cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930
3931int
3932main ()
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
3940if { (ac_try="$ac_compile"
3941case "(($ac_try" in
3942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943  *) ac_try_echo=$ac_try;;
3944esac
3945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946$as_echo "$ac_try_echo") >&5
3947  (eval "$ac_compile") 2>conftest.er1
3948  ac_status=$?
3949  grep -v '^ *+' conftest.er1 >conftest.err
3950  rm -f conftest.er1
3951  cat conftest.err >&5
3952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); } && {
3954	 test -z "$ac_c_werror_flag" ||
3955	 test ! -s conftest.err
3956       } && test -s conftest.$ac_objext; then
3957  :
3958else
3959  $as_echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962	ac_c_werror_flag=$ac_save_c_werror_flag
3963	 CFLAGS="-g"
3964	 cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h.  */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext
3980if { (ac_try="$ac_compile"
3981case "(($ac_try" in
3982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983  *) ac_try_echo=$ac_try;;
3984esac
3985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986$as_echo "$ac_try_echo") >&5
3987  (eval "$ac_compile") 2>conftest.er1
3988  ac_status=$?
3989  grep -v '^ *+' conftest.er1 >conftest.err
3990  rm -f conftest.er1
3991  cat conftest.err >&5
3992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); } && {
3994	 test -z "$ac_c_werror_flag" ||
3995	 test ! -s conftest.err
3996       } && test -s conftest.$ac_objext; then
3997  ac_cv_prog_cc_g=yes
3998else
3999  $as_echo "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
4001
4002
4003fi
4004
4005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006fi
4007
4008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009fi
4010
4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012   ac_c_werror_flag=$ac_save_c_werror_flag
4013fi
4014{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4015$as_echo "$ac_cv_prog_cc_g" >&6; }
4016if test "$ac_test_CFLAGS" = set; then
4017  CFLAGS=$ac_save_CFLAGS
4018elif test $ac_cv_prog_cc_g = yes; then
4019  if test "$GCC" = yes; then
4020    CFLAGS="-g -O2"
4021  else
4022    CFLAGS="-g"
4023  fi
4024else
4025  if test "$GCC" = yes; then
4026    CFLAGS="-O2"
4027  else
4028    CFLAGS=
4029  fi
4030fi
4031{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4033if test "${ac_cv_prog_cc_c89+set}" = set; then
4034  $as_echo_n "(cached) " >&6
4035else
4036  ac_cv_prog_cc_c89=no
4037ac_save_CC=$CC
4038cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h.  */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h.  */
4044#include <stdarg.h>
4045#include <stdio.h>
4046#include <sys/types.h>
4047#include <sys/stat.h>
4048/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4049struct buf { int x; };
4050FILE * (*rcsopen) (struct buf *, struct stat *, int);
4051static char *e (p, i)
4052     char **p;
4053     int i;
4054{
4055  return p[i];
4056}
4057static char *f (char * (*g) (char **, int), char **p, ...)
4058{
4059  char *s;
4060  va_list v;
4061  va_start (v,p);
4062  s = g (p, va_arg (v,int));
4063  va_end (v);
4064  return s;
4065}
4066
4067/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4068   function prototypes and stuff, but not '\xHH' hex character constants.
4069   These don't provoke an error unfortunately, instead are silently treated
4070   as 'x'.  The following induces an error, until -std is added to get
4071   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4072   array size at least.  It's necessary to write '\x00'==0 to get something
4073   that's true only with -std.  */
4074int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4075
4076/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4077   inside strings and character constants.  */
4078#define FOO(x) 'x'
4079int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4080
4081int test (int i, double x);
4082struct s1 {int (*f) (int a);};
4083struct s2 {int (*f) (double a);};
4084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4085int argc;
4086char **argv;
4087int
4088main ()
4089{
4090return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4096	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4097do
4098  CC="$ac_save_CC $ac_arg"
4099  rm -f conftest.$ac_objext
4100if { (ac_try="$ac_compile"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106$as_echo "$ac_try_echo") >&5
4107  (eval "$ac_compile") 2>conftest.er1
4108  ac_status=$?
4109  grep -v '^ *+' conftest.er1 >conftest.err
4110  rm -f conftest.er1
4111  cat conftest.err >&5
4112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113  (exit $ac_status); } && {
4114	 test -z "$ac_c_werror_flag" ||
4115	 test ! -s conftest.err
4116       } && test -s conftest.$ac_objext; then
4117  ac_cv_prog_cc_c89=$ac_arg
4118else
4119  $as_echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122
4123fi
4124
4125rm -f core conftest.err conftest.$ac_objext
4126  test "x$ac_cv_prog_cc_c89" != "xno" && break
4127done
4128rm -f conftest.$ac_ext
4129CC=$ac_save_CC
4130
4131fi
4132# AC_CACHE_VAL
4133case "x$ac_cv_prog_cc_c89" in
4134  x)
4135    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4136$as_echo "none needed" >&6; } ;;
4137  xno)
4138    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4139$as_echo "unsupported" >&6; } ;;
4140  *)
4141    CC="$CC $ac_cv_prog_cc_c89"
4142    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4143$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4144esac
4145
4146
4147ac_ext=c
4148ac_cpp='$CPP $CPPFLAGS'
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153depcc="$CC"   am_compiler_list=
4154
4155{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4156$as_echo_n "checking dependency style of $depcc... " >&6; }
4157if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4158  $as_echo_n "(cached) " >&6
4159else
4160  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4161  # We make a subdir and do the tests there.  Otherwise we can end up
4162  # making bogus files that we don't know about and never remove.  For
4163  # instance it was reported that on HP-UX the gcc test will end up
4164  # making a dummy file named `D' -- because `-MD' means `put the output
4165  # in D'.
4166  mkdir conftest.dir
4167  # Copy depcomp to subdir because otherwise we won't find it if we're
4168  # using a relative directory.
4169  cp "$am_depcomp" conftest.dir
4170  cd conftest.dir
4171  # We will build objects and dependencies in a subdirectory because
4172  # it helps to detect inapplicable dependency modes.  For instance
4173  # both Tru64's cc and ICC support -MD to output dependencies as a
4174  # side effect of compilation, but ICC will put the dependencies in
4175  # the current directory while Tru64 will put them in the object
4176  # directory.
4177  mkdir sub
4178
4179  am_cv_CC_dependencies_compiler_type=none
4180  if test "$am_compiler_list" = ""; then
4181     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4182  fi
4183  am__universal=false
4184  case " $depcc " in #(
4185     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4186     esac
4187
4188  for depmode in $am_compiler_list; do
4189    # Setup a source with many dependencies, because some compilers
4190    # like to wrap large dependency lists on column 80 (with \), and
4191    # we should not choose a depcomp mode which is confused by this.
4192    #
4193    # We need to recreate these files for each test, as the compiler may
4194    # overwrite some of them when testing with obscure command lines.
4195    # This happens at least with the AIX C compiler.
4196    : > sub/conftest.c
4197    for i in 1 2 3 4 5 6; do
4198      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4199      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4200      # Solaris 8's {/usr,}/bin/sh.
4201      touch sub/conftst$i.h
4202    done
4203    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4204
4205    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4206    # mode.  It turns out that the SunPro C++ compiler does not properly
4207    # handle `-M -o', and we need to detect this.  Also, some Intel
4208    # versions had trouble with output in subdirs
4209    am__obj=sub/conftest.${OBJEXT-o}
4210    am__minus_obj="-o $am__obj"
4211    case $depmode in
4212    gcc)
4213      # This depmode causes a compiler race in universal mode.
4214      test "$am__universal" = false || continue
4215      ;;
4216    nosideeffect)
4217      # after this tag, mechanisms are not by side-effect, so they'll
4218      # only be used when explicitly requested
4219      if test "x$enable_dependency_tracking" = xyes; then
4220	continue
4221      else
4222	break
4223      fi
4224      ;;
4225    msvisualcpp | msvcmsys)
4226      # This compiler won't grok `-c -o', but also, the minuso test has
4227      # not run yet.  These depmodes are late enough in the game, and
4228      # so weak that their functioning should not be impacted.
4229      am__obj=conftest.${OBJEXT-o}
4230      am__minus_obj=
4231      ;;
4232    none) break ;;
4233    esac
4234    if depmode=$depmode \
4235       source=sub/conftest.c object=$am__obj \
4236       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4237       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4238         >/dev/null 2>conftest.err &&
4239       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4240       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4241       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4242       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4243      # icc doesn't choke on unknown options, it will just issue warnings
4244      # or remarks (even with -Werror).  So we grep stderr for any message
4245      # that says an option was ignored or not supported.
4246      # When given -MP, icc 7.0 and 7.1 complain thusly:
4247      #   icc: Command line warning: ignoring option '-M'; no argument required
4248      # The diagnosis changed in icc 8.0:
4249      #   icc: Command line remark: option '-MP' not supported
4250      if (grep 'ignoring option' conftest.err ||
4251          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4252        am_cv_CC_dependencies_compiler_type=$depmode
4253        break
4254      fi
4255    fi
4256  done
4257
4258  cd ..
4259  rm -rf conftest.dir
4260else
4261  am_cv_CC_dependencies_compiler_type=none
4262fi
4263
4264fi
4265{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4266$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4267CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4268
4269 if
4270  test "x$enable_dependency_tracking" != xno \
4271  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4272  am__fastdepCC_TRUE=
4273  am__fastdepCC_FALSE='#'
4274else
4275  am__fastdepCC_TRUE='#'
4276  am__fastdepCC_FALSE=
4277fi
4278
4279
4280
4281ac_ext=c
4282ac_cpp='$CPP $CPPFLAGS'
4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4287$as_echo_n "checking how to run the C preprocessor... " >&6; }
4288# On Suns, sometimes $CPP names a directory.
4289if test -n "$CPP" && test -d "$CPP"; then
4290  CPP=
4291fi
4292if test -z "$CPP"; then
4293  if test "${ac_cv_prog_CPP+set}" = set; then
4294  $as_echo_n "(cached) " >&6
4295else
4296      # Double quotes because CPP needs to be expanded
4297    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4298    do
4299      ac_preproc_ok=false
4300for ac_c_preproc_warn_flag in '' yes
4301do
4302  # Use a header file that comes with gcc, so configuring glibc
4303  # with a fresh cross-compiler works.
4304  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305  # <limits.h> exists even on freestanding compilers.
4306  # On the NeXT, cc -E runs the code through the compiler's parser,
4307  # not just through cpp. "Syntax error" is here to catch this case.
4308  cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h.  */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h.  */
4314#ifdef __STDC__
4315# include <limits.h>
4316#else
4317# include <assert.h>
4318#endif
4319		     Syntax error
4320_ACEOF
4321if { (ac_try="$ac_cpp conftest.$ac_ext"
4322case "(($ac_try" in
4323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324  *) ac_try_echo=$ac_try;;
4325esac
4326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4327$as_echo "$ac_try_echo") >&5
4328  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329  ac_status=$?
4330  grep -v '^ *+' conftest.er1 >conftest.err
4331  rm -f conftest.er1
4332  cat conftest.err >&5
4333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); } >/dev/null && {
4335	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336	 test ! -s conftest.err
4337       }; then
4338  :
4339else
4340  $as_echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343  # Broken: fails on valid input.
4344continue
4345fi
4346
4347rm -f conftest.err conftest.$ac_ext
4348
4349  # OK, works on sane cases.  Now check whether nonexistent headers
4350  # can be detected and how.
4351  cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h.  */
4353_ACEOF
4354cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF
4356/* end confdefs.h.  */
4357#include <ac_nonexistent.h>
4358_ACEOF
4359if { (ac_try="$ac_cpp conftest.$ac_ext"
4360case "(($ac_try" in
4361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362  *) ac_try_echo=$ac_try;;
4363esac
4364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4365$as_echo "$ac_try_echo") >&5
4366  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4367  ac_status=$?
4368  grep -v '^ *+' conftest.er1 >conftest.err
4369  rm -f conftest.er1
4370  cat conftest.err >&5
4371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); } >/dev/null && {
4373	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4374	 test ! -s conftest.err
4375       }; then
4376  # Broken: success on invalid input.
4377continue
4378else
4379  $as_echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382  # Passes both tests.
4383ac_preproc_ok=:
4384break
4385fi
4386
4387rm -f conftest.err conftest.$ac_ext
4388
4389done
4390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4391rm -f conftest.err conftest.$ac_ext
4392if $ac_preproc_ok; then
4393  break
4394fi
4395
4396    done
4397    ac_cv_prog_CPP=$CPP
4398
4399fi
4400  CPP=$ac_cv_prog_CPP
4401else
4402  ac_cv_prog_CPP=$CPP
4403fi
4404{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4405$as_echo "$CPP" >&6; }
4406ac_preproc_ok=false
4407for ac_c_preproc_warn_flag in '' yes
4408do
4409  # Use a header file that comes with gcc, so configuring glibc
4410  # with a fresh cross-compiler works.
4411  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4412  # <limits.h> exists even on freestanding compilers.
4413  # On the NeXT, cc -E runs the code through the compiler's parser,
4414  # not just through cpp. "Syntax error" is here to catch this case.
4415  cat >conftest.$ac_ext <<_ACEOF
4416/* confdefs.h.  */
4417_ACEOF
4418cat confdefs.h >>conftest.$ac_ext
4419cat >>conftest.$ac_ext <<_ACEOF
4420/* end confdefs.h.  */
4421#ifdef __STDC__
4422# include <limits.h>
4423#else
4424# include <assert.h>
4425#endif
4426		     Syntax error
4427_ACEOF
4428if { (ac_try="$ac_cpp conftest.$ac_ext"
4429case "(($ac_try" in
4430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431  *) ac_try_echo=$ac_try;;
4432esac
4433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4434$as_echo "$ac_try_echo") >&5
4435  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436  ac_status=$?
4437  grep -v '^ *+' conftest.er1 >conftest.err
4438  rm -f conftest.er1
4439  cat conftest.err >&5
4440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); } >/dev/null && {
4442	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4443	 test ! -s conftest.err
4444       }; then
4445  :
4446else
4447  $as_echo "$as_me: failed program was:" >&5
4448sed 's/^/| /' conftest.$ac_ext >&5
4449
4450  # Broken: fails on valid input.
4451continue
4452fi
4453
4454rm -f conftest.err conftest.$ac_ext
4455
4456  # OK, works on sane cases.  Now check whether nonexistent headers
4457  # can be detected and how.
4458  cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h.  */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h.  */
4464#include <ac_nonexistent.h>
4465_ACEOF
4466if { (ac_try="$ac_cpp conftest.$ac_ext"
4467case "(($ac_try" in
4468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469  *) ac_try_echo=$ac_try;;
4470esac
4471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4472$as_echo "$ac_try_echo") >&5
4473  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4474  ac_status=$?
4475  grep -v '^ *+' conftest.er1 >conftest.err
4476  rm -f conftest.er1
4477  cat conftest.err >&5
4478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479  (exit $ac_status); } >/dev/null && {
4480	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481	 test ! -s conftest.err
4482       }; then
4483  # Broken: success on invalid input.
4484continue
4485else
4486  $as_echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489  # Passes both tests.
4490ac_preproc_ok=:
4491break
4492fi
4493
4494rm -f conftest.err conftest.$ac_ext
4495
4496done
4497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498rm -f conftest.err conftest.$ac_ext
4499if $ac_preproc_ok; then
4500  :
4501else
4502  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4505See \`config.log' for more details." >&5
4506$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4507See \`config.log' for more details." >&2;}
4508   { (exit 1); exit 1; }; }; }
4509fi
4510
4511ac_ext=c
4512ac_cpp='$CPP $CPPFLAGS'
4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516
4517
4518{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4519$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4520if test "${ac_cv_path_GREP+set}" = set; then
4521  $as_echo_n "(cached) " >&6
4522else
4523  if test -z "$GREP"; then
4524  ac_path_GREP_found=false
4525  # Loop through the user's path and test for each of PROGNAME-LIST
4526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528do
4529  IFS=$as_save_IFS
4530  test -z "$as_dir" && as_dir=.
4531  for ac_prog in grep ggrep; do
4532    for ac_exec_ext in '' $ac_executable_extensions; do
4533      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4535# Check for GNU ac_path_GREP and select it if it is found.
4536  # Check for GNU $ac_path_GREP
4537case `"$ac_path_GREP" --version 2>&1` in
4538*GNU*)
4539  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4540*)
4541  ac_count=0
4542  $as_echo_n 0123456789 >"conftest.in"
4543  while :
4544  do
4545    cat "conftest.in" "conftest.in" >"conftest.tmp"
4546    mv "conftest.tmp" "conftest.in"
4547    cp "conftest.in" "conftest.nl"
4548    $as_echo 'GREP' >> "conftest.nl"
4549    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551    ac_count=`expr $ac_count + 1`
4552    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553      # Best one so far, save it but keep looking for a better one
4554      ac_cv_path_GREP="$ac_path_GREP"
4555      ac_path_GREP_max=$ac_count
4556    fi
4557    # 10*(2^10) chars as input seems more than enough
4558    test $ac_count -gt 10 && break
4559  done
4560  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561esac
4562
4563      $ac_path_GREP_found && break 3
4564    done
4565  done
4566done
4567IFS=$as_save_IFS
4568  if test -z "$ac_cv_path_GREP"; then
4569    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4570$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4571   { (exit 1); exit 1; }; }
4572  fi
4573else
4574  ac_cv_path_GREP=$GREP
4575fi
4576
4577fi
4578{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4579$as_echo "$ac_cv_path_GREP" >&6; }
4580 GREP="$ac_cv_path_GREP"
4581
4582
4583{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4584$as_echo_n "checking for egrep... " >&6; }
4585if test "${ac_cv_path_EGREP+set}" = set; then
4586  $as_echo_n "(cached) " >&6
4587else
4588  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4589   then ac_cv_path_EGREP="$GREP -E"
4590   else
4591     if test -z "$EGREP"; then
4592  ac_path_EGREP_found=false
4593  # Loop through the user's path and test for each of PROGNAME-LIST
4594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596do
4597  IFS=$as_save_IFS
4598  test -z "$as_dir" && as_dir=.
4599  for ac_prog in egrep; do
4600    for ac_exec_ext in '' $ac_executable_extensions; do
4601      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4602      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4603# Check for GNU ac_path_EGREP and select it if it is found.
4604  # Check for GNU $ac_path_EGREP
4605case `"$ac_path_EGREP" --version 2>&1` in
4606*GNU*)
4607  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4608*)
4609  ac_count=0
4610  $as_echo_n 0123456789 >"conftest.in"
4611  while :
4612  do
4613    cat "conftest.in" "conftest.in" >"conftest.tmp"
4614    mv "conftest.tmp" "conftest.in"
4615    cp "conftest.in" "conftest.nl"
4616    $as_echo 'EGREP' >> "conftest.nl"
4617    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619    ac_count=`expr $ac_count + 1`
4620    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4621      # Best one so far, save it but keep looking for a better one
4622      ac_cv_path_EGREP="$ac_path_EGREP"
4623      ac_path_EGREP_max=$ac_count
4624    fi
4625    # 10*(2^10) chars as input seems more than enough
4626    test $ac_count -gt 10 && break
4627  done
4628  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629esac
4630
4631      $ac_path_EGREP_found && break 3
4632    done
4633  done
4634done
4635IFS=$as_save_IFS
4636  if test -z "$ac_cv_path_EGREP"; then
4637    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4638$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4639   { (exit 1); exit 1; }; }
4640  fi
4641else
4642  ac_cv_path_EGREP=$EGREP
4643fi
4644
4645   fi
4646fi
4647{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4648$as_echo "$ac_cv_path_EGREP" >&6; }
4649 EGREP="$ac_cv_path_EGREP"
4650
4651
4652{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4653$as_echo_n "checking for ANSI C header files... " >&6; }
4654if test "${ac_cv_header_stdc+set}" = set; then
4655  $as_echo_n "(cached) " >&6
4656else
4657  cat >conftest.$ac_ext <<_ACEOF
4658/* confdefs.h.  */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h.  */
4663#include <stdlib.h>
4664#include <stdarg.h>
4665#include <string.h>
4666#include <float.h>
4667
4668int
4669main ()
4670{
4671
4672  ;
4673  return 0;
4674}
4675_ACEOF
4676rm -f conftest.$ac_objext
4677if { (ac_try="$ac_compile"
4678case "(($ac_try" in
4679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680  *) ac_try_echo=$ac_try;;
4681esac
4682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683$as_echo "$ac_try_echo") >&5
4684  (eval "$ac_compile") 2>conftest.er1
4685  ac_status=$?
4686  grep -v '^ *+' conftest.er1 >conftest.err
4687  rm -f conftest.er1
4688  cat conftest.err >&5
4689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); } && {
4691	 test -z "$ac_c_werror_flag" ||
4692	 test ! -s conftest.err
4693       } && test -s conftest.$ac_objext; then
4694  ac_cv_header_stdc=yes
4695else
4696  $as_echo "$as_me: failed program was:" >&5
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
4699	ac_cv_header_stdc=no
4700fi
4701
4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703
4704if test $ac_cv_header_stdc = yes; then
4705  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
4713
4714_ACEOF
4715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716  $EGREP "memchr" >/dev/null 2>&1; then
4717  :
4718else
4719  ac_cv_header_stdc=no
4720fi
4721rm -f conftest*
4722
4723fi
4724
4725if test $ac_cv_header_stdc = yes; then
4726  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4727  cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h.  */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h.  */
4733#include <stdlib.h>
4734
4735_ACEOF
4736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737  $EGREP "free" >/dev/null 2>&1; then
4738  :
4739else
4740  ac_cv_header_stdc=no
4741fi
4742rm -f conftest*
4743
4744fi
4745
4746if test $ac_cv_header_stdc = yes; then
4747  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4748  if test "$cross_compiling" = yes; then
4749  :
4750else
4751  cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h.  */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h.  */
4757#include <ctype.h>
4758#include <stdlib.h>
4759#if ((' ' & 0x0FF) == 0x020)
4760# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4761# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4762#else
4763# define ISLOWER(c) \
4764		   (('a' <= (c) && (c) <= 'i') \
4765		     || ('j' <= (c) && (c) <= 'r') \
4766		     || ('s' <= (c) && (c) <= 'z'))
4767# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4768#endif
4769
4770#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4771int
4772main ()
4773{
4774  int i;
4775  for (i = 0; i < 256; i++)
4776    if (XOR (islower (i), ISLOWER (i))
4777	|| toupper (i) != TOUPPER (i))
4778      return 2;
4779  return 0;
4780}
4781_ACEOF
4782rm -f conftest$ac_exeext
4783if { (ac_try="$ac_link"
4784case "(($ac_try" in
4785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786  *) ac_try_echo=$ac_try;;
4787esac
4788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789$as_echo "$ac_try_echo") >&5
4790  (eval "$ac_link") 2>&5
4791  ac_status=$?
4792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4794  { (case "(($ac_try" in
4795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796  *) ac_try_echo=$ac_try;;
4797esac
4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799$as_echo "$ac_try_echo") >&5
4800  (eval "$ac_try") 2>&5
4801  ac_status=$?
4802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; }; then
4804  :
4805else
4806  $as_echo "$as_me: program exited with status $ac_status" >&5
4807$as_echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810( exit $ac_status )
4811ac_cv_header_stdc=no
4812fi
4813rm -rf conftest.dSYM
4814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4815fi
4816
4817
4818fi
4819fi
4820{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4821$as_echo "$ac_cv_header_stdc" >&6; }
4822if test $ac_cv_header_stdc = yes; then
4823
4824cat >>confdefs.h <<\_ACEOF
4825#define STDC_HEADERS 1
4826_ACEOF
4827
4828fi
4829
4830# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4841		  inttypes.h stdint.h unistd.h
4842do
4843as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4844{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4845$as_echo_n "checking for $ac_header... " >&6; }
4846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4847  $as_echo_n "(cached) " >&6
4848else
4849  cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855$ac_includes_default
4856
4857#include <$ac_header>
4858_ACEOF
4859rm -f conftest.$ac_objext
4860if { (ac_try="$ac_compile"
4861case "(($ac_try" in
4862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863  *) ac_try_echo=$ac_try;;
4864esac
4865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866$as_echo "$ac_try_echo") >&5
4867  (eval "$ac_compile") 2>conftest.er1
4868  ac_status=$?
4869  grep -v '^ *+' conftest.er1 >conftest.err
4870  rm -f conftest.er1
4871  cat conftest.err >&5
4872  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); } && {
4874	 test -z "$ac_c_werror_flag" ||
4875	 test ! -s conftest.err
4876       } && test -s conftest.$ac_objext; then
4877  eval "$as_ac_Header=yes"
4878else
4879  $as_echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882	eval "$as_ac_Header=no"
4883fi
4884
4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
4887ac_res=`eval 'as_val=${'$as_ac_Header'}
4888		 $as_echo "$as_val"'`
4889	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4890$as_echo "$ac_res" >&6; }
4891as_val=`eval 'as_val=${'$as_ac_Header'}
4892		 $as_echo "$as_val"'`
4893   if test "x$as_val" = x""yes; then
4894  cat >>confdefs.h <<_ACEOF
4895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4896_ACEOF
4897
4898fi
4899
4900done
4901
4902
4903
4904  if test "${ac_cv_header_minix_config_h+set}" = set; then
4905  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4906$as_echo_n "checking for minix/config.h... " >&6; }
4907if test "${ac_cv_header_minix_config_h+set}" = set; then
4908  $as_echo_n "(cached) " >&6
4909fi
4910{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4911$as_echo "$ac_cv_header_minix_config_h" >&6; }
4912else
4913  # Is the header compilable?
4914{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4915$as_echo_n "checking minix/config.h usability... " >&6; }
4916cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922$ac_includes_default
4923#include <minix/config.h>
4924_ACEOF
4925rm -f conftest.$ac_objext
4926if { (ac_try="$ac_compile"
4927case "(($ac_try" in
4928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929  *) ac_try_echo=$ac_try;;
4930esac
4931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4932$as_echo "$ac_try_echo") >&5
4933  (eval "$ac_compile") 2>conftest.er1
4934  ac_status=$?
4935  grep -v '^ *+' conftest.er1 >conftest.err
4936  rm -f conftest.er1
4937  cat conftest.err >&5
4938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); } && {
4940	 test -z "$ac_c_werror_flag" ||
4941	 test ! -s conftest.err
4942       } && test -s conftest.$ac_objext; then
4943  ac_header_compiler=yes
4944else
4945  $as_echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948	ac_header_compiler=no
4949fi
4950
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4953$as_echo "$ac_header_compiler" >&6; }
4954
4955# Is the header present?
4956{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4957$as_echo_n "checking minix/config.h presence... " >&6; }
4958cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <minix/config.h>
4965_ACEOF
4966if { (ac_try="$ac_cpp conftest.$ac_ext"
4967case "(($ac_try" in
4968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969  *) ac_try_echo=$ac_try;;
4970esac
4971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972$as_echo "$ac_try_echo") >&5
4973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974  ac_status=$?
4975  grep -v '^ *+' conftest.er1 >conftest.err
4976  rm -f conftest.er1
4977  cat conftest.err >&5
4978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); } >/dev/null && {
4980	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981	 test ! -s conftest.err
4982       }; then
4983  ac_header_preproc=yes
4984else
4985  $as_echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988  ac_header_preproc=no
4989fi
4990
4991rm -f conftest.err conftest.$ac_ext
4992{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4993$as_echo "$ac_header_preproc" >&6; }
4994
4995# So?  What about this header?
4996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4997  yes:no: )
4998    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4999$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5000    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5001$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5002    ac_header_preproc=yes
5003    ;;
5004  no:yes:* )
5005    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5006$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5007    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5008$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5009    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5010$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5011    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5012$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5013    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5014$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5015    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5016$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5017    ( cat <<\_ASBOX
5018## ------------------------------------- ##
5019## Report this to bob.deblier@telenet.be ##
5020## ------------------------------------- ##
5021_ASBOX
5022     ) | sed "s/^/$as_me: WARNING:     /" >&2
5023    ;;
5024esac
5025{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5026$as_echo_n "checking for minix/config.h... " >&6; }
5027if test "${ac_cv_header_minix_config_h+set}" = set; then
5028  $as_echo_n "(cached) " >&6
5029else
5030  ac_cv_header_minix_config_h=$ac_header_preproc
5031fi
5032{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5033$as_echo "$ac_cv_header_minix_config_h" >&6; }
5034
5035fi
5036if test "x$ac_cv_header_minix_config_h" = x""yes; then
5037  MINIX=yes
5038else
5039  MINIX=
5040fi
5041
5042
5043  if test "$MINIX" = yes; then
5044
5045cat >>confdefs.h <<\_ACEOF
5046#define _POSIX_SOURCE 1
5047_ACEOF
5048
5049
5050cat >>confdefs.h <<\_ACEOF
5051#define _POSIX_1_SOURCE 2
5052_ACEOF
5053
5054
5055cat >>confdefs.h <<\_ACEOF
5056#define _MINIX 1
5057_ACEOF
5058
5059  fi
5060
5061
5062
5063  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5064$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5065if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5066  $as_echo_n "(cached) " >&6
5067else
5068  cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074
5075#	  define __EXTENSIONS__ 1
5076	  $ac_includes_default
5077int
5078main ()
5079{
5080
5081  ;
5082  return 0;
5083}
5084_ACEOF
5085rm -f conftest.$ac_objext
5086if { (ac_try="$ac_compile"
5087case "(($ac_try" in
5088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089  *) ac_try_echo=$ac_try;;
5090esac
5091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092$as_echo "$ac_try_echo") >&5
5093  (eval "$ac_compile") 2>conftest.er1
5094  ac_status=$?
5095  grep -v '^ *+' conftest.er1 >conftest.err
5096  rm -f conftest.er1
5097  cat conftest.err >&5
5098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099  (exit $ac_status); } && {
5100	 test -z "$ac_c_werror_flag" ||
5101	 test ! -s conftest.err
5102       } && test -s conftest.$ac_objext; then
5103  ac_cv_safe_to_define___extensions__=yes
5104else
5105  $as_echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108	ac_cv_safe_to_define___extensions__=no
5109fi
5110
5111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112fi
5113{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5114$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5115  test $ac_cv_safe_to_define___extensions__ = yes &&
5116    cat >>confdefs.h <<\_ACEOF
5117#define __EXTENSIONS__ 1
5118_ACEOF
5119
5120  cat >>confdefs.h <<\_ACEOF
5121#define _ALL_SOURCE 1
5122_ACEOF
5123
5124  cat >>confdefs.h <<\_ACEOF
5125#define _GNU_SOURCE 1
5126_ACEOF
5127
5128  cat >>confdefs.h <<\_ACEOF
5129#define _POSIX_PTHREAD_SEMANTICS 1
5130_ACEOF
5131
5132  cat >>confdefs.h <<\_ACEOF
5133#define _TANDEM_SOURCE 1
5134_ACEOF
5135
5136
5137
5138# Checks for C compiler and preprocessor
5139ac_ext=c
5140ac_cpp='$CPP $CPPFLAGS'
5141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144if test -n "$ac_tool_prefix"; then
5145  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5146set dummy ${ac_tool_prefix}gcc; ac_word=$2
5147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
5149if test "${ac_cv_prog_CC+set}" = set; then
5150  $as_echo_n "(cached) " >&6
5151else
5152  if test -n "$CC"; then
5153  ac_cv_prog_CC="$CC" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158  IFS=$as_save_IFS
5159  test -z "$as_dir" && as_dir=.
5160  for ac_exec_ext in '' $ac_executable_extensions; do
5161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5163    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164    break 2
5165  fi
5166done
5167done
5168IFS=$as_save_IFS
5169
5170fi
5171fi
5172CC=$ac_cv_prog_CC
5173if test -n "$CC"; then
5174  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5175$as_echo "$CC" >&6; }
5176else
5177  { $as_echo "$as_me:$LINENO: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
5180
5181
5182fi
5183if test -z "$ac_cv_prog_CC"; then
5184  ac_ct_CC=$CC
5185  # Extract the first word of "gcc", so it can be a program name with args.
5186set dummy gcc; ac_word=$2
5187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5190  $as_echo_n "(cached) " >&6
5191else
5192  if test -n "$ac_ct_CC"; then
5193  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200  for ac_exec_ext in '' $ac_executable_extensions; do
5201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202    ac_cv_prog_ac_ct_CC="gcc"
5203    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212ac_ct_CC=$ac_cv_prog_ac_ct_CC
5213if test -n "$ac_ct_CC"; then
5214  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5215$as_echo "$ac_ct_CC" >&6; }
5216else
5217  { $as_echo "$as_me:$LINENO: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221  if test "x$ac_ct_CC" = x; then
5222    CC=""
5223  else
5224    case $cross_compiling:$ac_tool_warned in
5225yes:)
5226{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228ac_tool_warned=yes ;;
5229esac
5230    CC=$ac_ct_CC
5231  fi
5232else
5233  CC="$ac_cv_prog_CC"
5234fi
5235
5236if test -z "$CC"; then
5237          if test -n "$ac_tool_prefix"; then
5238    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5239set dummy ${ac_tool_prefix}cc; ac_word=$2
5240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if test "${ac_cv_prog_CC+set}" = set; then
5243  $as_echo_n "(cached) " >&6
5244else
5245  if test -n "$CC"; then
5246  ac_cv_prog_CC="$CC" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251  IFS=$as_save_IFS
5252  test -z "$as_dir" && as_dir=.
5253  for ac_exec_ext in '' $ac_executable_extensions; do
5254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255    ac_cv_prog_CC="${ac_tool_prefix}cc"
5256    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257    break 2
5258  fi
5259done
5260done
5261IFS=$as_save_IFS
5262
5263fi
5264fi
5265CC=$ac_cv_prog_CC
5266if test -n "$CC"; then
5267  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5268$as_echo "$CC" >&6; }
5269else
5270  { $as_echo "$as_me:$LINENO: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274
5275  fi
5276fi
5277if test -z "$CC"; then
5278  # Extract the first word of "cc", so it can be a program name with args.
5279set dummy cc; ac_word=$2
5280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if test "${ac_cv_prog_CC+set}" = set; then
5283  $as_echo_n "(cached) " >&6
5284else
5285  if test -n "$CC"; then
5286  ac_cv_prog_CC="$CC" # Let the user override the test.
5287else
5288  ac_prog_rejected=no
5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292  IFS=$as_save_IFS
5293  test -z "$as_dir" && as_dir=.
5294  for ac_exec_ext in '' $ac_executable_extensions; do
5295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5297       ac_prog_rejected=yes
5298       continue
5299     fi
5300    ac_cv_prog_CC="cc"
5301    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302    break 2
5303  fi
5304done
5305done
5306IFS=$as_save_IFS
5307
5308if test $ac_prog_rejected = yes; then
5309  # We found a bogon in the path, so make sure we never use it.
5310  set dummy $ac_cv_prog_CC
5311  shift
5312  if test $# != 0; then
5313    # We chose a different compiler from the bogus one.
5314    # However, it has the same basename, so the bogon will be chosen
5315    # first if we set CC to just the basename; use the full file name.
5316    shift
5317    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5318  fi
5319fi
5320fi
5321fi
5322CC=$ac_cv_prog_CC
5323if test -n "$CC"; then
5324  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5325$as_echo "$CC" >&6; }
5326else
5327  { $as_echo "$as_me:$LINENO: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330
5331
5332fi
5333if test -z "$CC"; then
5334  if test -n "$ac_tool_prefix"; then
5335  for ac_prog in cl.exe
5336  do
5337    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340$as_echo_n "checking for $ac_word... " >&6; }
5341if test "${ac_cv_prog_CC+set}" = set; then
5342  $as_echo_n "(cached) " >&6
5343else
5344  if test -n "$CC"; then
5345  ac_cv_prog_CC="$CC" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352  for ac_exec_ext in '' $ac_executable_extensions; do
5353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5355    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356    break 2
5357  fi
5358done
5359done
5360IFS=$as_save_IFS
5361
5362fi
5363fi
5364CC=$ac_cv_prog_CC
5365if test -n "$CC"; then
5366  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5367$as_echo "$CC" >&6; }
5368else
5369  { $as_echo "$as_me:$LINENO: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374    test -n "$CC" && break
5375  done
5376fi
5377if test -z "$CC"; then
5378  ac_ct_CC=$CC
5379  for ac_prog in cl.exe
5380do
5381  # Extract the first word of "$ac_prog", so it can be a program name with args.
5382set dummy $ac_prog; ac_word=$2
5383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5384$as_echo_n "checking for $ac_word... " >&6; }
5385if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5386  $as_echo_n "(cached) " >&6
5387else
5388  if test -n "$ac_ct_CC"; then
5389  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394  IFS=$as_save_IFS
5395  test -z "$as_dir" && as_dir=.
5396  for ac_exec_ext in '' $ac_executable_extensions; do
5397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398    ac_cv_prog_ac_ct_CC="$ac_prog"
5399    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400    break 2
5401  fi
5402done
5403done
5404IFS=$as_save_IFS
5405
5406fi
5407fi
5408ac_ct_CC=$ac_cv_prog_ac_ct_CC
5409if test -n "$ac_ct_CC"; then
5410  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5411$as_echo "$ac_ct_CC" >&6; }
5412else
5413  { $as_echo "$as_me:$LINENO: result: no" >&5
5414$as_echo "no" >&6; }
5415fi
5416
5417
5418  test -n "$ac_ct_CC" && break
5419done
5420
5421  if test "x$ac_ct_CC" = x; then
5422    CC=""
5423  else
5424    case $cross_compiling:$ac_tool_warned in
5425yes:)
5426{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428ac_tool_warned=yes ;;
5429esac
5430    CC=$ac_ct_CC
5431  fi
5432fi
5433
5434fi
5435
5436
5437test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5439{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5440See \`config.log' for more details." >&5
5441$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5442See \`config.log' for more details." >&2;}
5443   { (exit 1); exit 1; }; }; }
5444
5445# Provide some information about the compiler.
5446$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5447set X $ac_compile
5448ac_compiler=$2
5449{ (ac_try="$ac_compiler --version >&5"
5450case "(($ac_try" in
5451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452  *) ac_try_echo=$ac_try;;
5453esac
5454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455$as_echo "$ac_try_echo") >&5
5456  (eval "$ac_compiler --version >&5") 2>&5
5457  ac_status=$?
5458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); }
5460{ (ac_try="$ac_compiler -v >&5"
5461case "(($ac_try" in
5462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463  *) ac_try_echo=$ac_try;;
5464esac
5465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5466$as_echo "$ac_try_echo") >&5
5467  (eval "$ac_compiler -v >&5") 2>&5
5468  ac_status=$?
5469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }
5471{ (ac_try="$ac_compiler -V >&5"
5472case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477$as_echo "$ac_try_echo") >&5
5478  (eval "$ac_compiler -V >&5") 2>&5
5479  ac_status=$?
5480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); }
5482
5483{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5484$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5485if test "${ac_cv_c_compiler_gnu+set}" = set; then
5486  $as_echo_n "(cached) " >&6
5487else
5488  cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h.  */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h.  */
5494
5495int
5496main ()
5497{
5498#ifndef __GNUC__
5499       choke me
5500#endif
5501
5502  ;
5503  return 0;
5504}
5505_ACEOF
5506rm -f conftest.$ac_objext
5507if { (ac_try="$ac_compile"
5508case "(($ac_try" in
5509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510  *) ac_try_echo=$ac_try;;
5511esac
5512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5513$as_echo "$ac_try_echo") >&5
5514  (eval "$ac_compile") 2>conftest.er1
5515  ac_status=$?
5516  grep -v '^ *+' conftest.er1 >conftest.err
5517  rm -f conftest.er1
5518  cat conftest.err >&5
5519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); } && {
5521	 test -z "$ac_c_werror_flag" ||
5522	 test ! -s conftest.err
5523       } && test -s conftest.$ac_objext; then
5524  ac_compiler_gnu=yes
5525else
5526  $as_echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529	ac_compiler_gnu=no
5530fi
5531
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533ac_cv_c_compiler_gnu=$ac_compiler_gnu
5534
5535fi
5536{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5537$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5538if test $ac_compiler_gnu = yes; then
5539  GCC=yes
5540else
5541  GCC=
5542fi
5543ac_test_CFLAGS=${CFLAGS+set}
5544ac_save_CFLAGS=$CFLAGS
5545{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5546$as_echo_n "checking whether $CC accepts -g... " >&6; }
5547if test "${ac_cv_prog_cc_g+set}" = set; then
5548  $as_echo_n "(cached) " >&6
5549else
5550  ac_save_c_werror_flag=$ac_c_werror_flag
5551   ac_c_werror_flag=yes
5552   ac_cv_prog_cc_g=no
5553   CFLAGS="-g"
5554   cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h.  */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h.  */
5560
5561int
5562main ()
5563{
5564
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
5570if { (ac_try="$ac_compile"
5571case "(($ac_try" in
5572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573  *) ac_try_echo=$ac_try;;
5574esac
5575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576$as_echo "$ac_try_echo") >&5
5577  (eval "$ac_compile") 2>conftest.er1
5578  ac_status=$?
5579  grep -v '^ *+' conftest.er1 >conftest.err
5580  rm -f conftest.er1
5581  cat conftest.err >&5
5582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); } && {
5584	 test -z "$ac_c_werror_flag" ||
5585	 test ! -s conftest.err
5586       } && test -s conftest.$ac_objext; then
5587  ac_cv_prog_cc_g=yes
5588else
5589  $as_echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
5592	CFLAGS=""
5593      cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h.  */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h.  */
5599
5600int
5601main ()
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612  *) ac_try_echo=$ac_try;;
5613esac
5614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615$as_echo "$ac_try_echo") >&5
5616  (eval "$ac_compile") 2>conftest.er1
5617  ac_status=$?
5618  grep -v '^ *+' conftest.er1 >conftest.err
5619  rm -f conftest.er1
5620  cat conftest.err >&5
5621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); } && {
5623	 test -z "$ac_c_werror_flag" ||
5624	 test ! -s conftest.err
5625       } && test -s conftest.$ac_objext; then
5626  :
5627else
5628  $as_echo "$as_me: failed program was:" >&5
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
5631	ac_c_werror_flag=$ac_save_c_werror_flag
5632	 CFLAGS="-g"
5633	 cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639
5640int
5641main ()
5642{
5643
5644  ;
5645  return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext
5649if { (ac_try="$ac_compile"
5650case "(($ac_try" in
5651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652  *) ac_try_echo=$ac_try;;
5653esac
5654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5655$as_echo "$ac_try_echo") >&5
5656  (eval "$ac_compile") 2>conftest.er1
5657  ac_status=$?
5658  grep -v '^ *+' conftest.er1 >conftest.err
5659  rm -f conftest.er1
5660  cat conftest.err >&5
5661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } && {
5663	 test -z "$ac_c_werror_flag" ||
5664	 test ! -s conftest.err
5665       } && test -s conftest.$ac_objext; then
5666  ac_cv_prog_cc_g=yes
5667else
5668  $as_echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671
5672fi
5673
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675fi
5676
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681   ac_c_werror_flag=$ac_save_c_werror_flag
5682fi
5683{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5684$as_echo "$ac_cv_prog_cc_g" >&6; }
5685if test "$ac_test_CFLAGS" = set; then
5686  CFLAGS=$ac_save_CFLAGS
5687elif test $ac_cv_prog_cc_g = yes; then
5688  if test "$GCC" = yes; then
5689    CFLAGS="-g -O2"
5690  else
5691    CFLAGS="-g"
5692  fi
5693else
5694  if test "$GCC" = yes; then
5695    CFLAGS="-O2"
5696  else
5697    CFLAGS=
5698  fi
5699fi
5700{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5702if test "${ac_cv_prog_cc_c89+set}" = set; then
5703  $as_echo_n "(cached) " >&6
5704else
5705  ac_cv_prog_cc_c89=no
5706ac_save_CC=$CC
5707cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h.  */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h.  */
5713#include <stdarg.h>
5714#include <stdio.h>
5715#include <sys/types.h>
5716#include <sys/stat.h>
5717/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5718struct buf { int x; };
5719FILE * (*rcsopen) (struct buf *, struct stat *, int);
5720static char *e (p, i)
5721     char **p;
5722     int i;
5723{
5724  return p[i];
5725}
5726static char *f (char * (*g) (char **, int), char **p, ...)
5727{
5728  char *s;
5729  va_list v;
5730  va_start (v,p);
5731  s = g (p, va_arg (v,int));
5732  va_end (v);
5733  return s;
5734}
5735
5736/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5737   function prototypes and stuff, but not '\xHH' hex character constants.
5738   These don't provoke an error unfortunately, instead are silently treated
5739   as 'x'.  The following induces an error, until -std is added to get
5740   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5741   array size at least.  It's necessary to write '\x00'==0 to get something
5742   that's true only with -std.  */
5743int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5744
5745/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5746   inside strings and character constants.  */
5747#define FOO(x) 'x'
5748int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5749
5750int test (int i, double x);
5751struct s1 {int (*f) (int a);};
5752struct s2 {int (*f) (double a);};
5753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5754int argc;
5755char **argv;
5756int
5757main ()
5758{
5759return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5765	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5766do
5767  CC="$ac_save_CC $ac_arg"
5768  rm -f conftest.$ac_objext
5769if { (ac_try="$ac_compile"
5770case "(($ac_try" in
5771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772  *) ac_try_echo=$ac_try;;
5773esac
5774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5775$as_echo "$ac_try_echo") >&5
5776  (eval "$ac_compile") 2>conftest.er1
5777  ac_status=$?
5778  grep -v '^ *+' conftest.er1 >conftest.err
5779  rm -f conftest.er1
5780  cat conftest.err >&5
5781  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); } && {
5783	 test -z "$ac_c_werror_flag" ||
5784	 test ! -s conftest.err
5785       } && test -s conftest.$ac_objext; then
5786  ac_cv_prog_cc_c89=$ac_arg
5787else
5788  $as_echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791
5792fi
5793
5794rm -f core conftest.err conftest.$ac_objext
5795  test "x$ac_cv_prog_cc_c89" != "xno" && break
5796done
5797rm -f conftest.$ac_ext
5798CC=$ac_save_CC
5799
5800fi
5801# AC_CACHE_VAL
5802case "x$ac_cv_prog_cc_c89" in
5803  x)
5804    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5805$as_echo "none needed" >&6; } ;;
5806  xno)
5807    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5808$as_echo "unsupported" >&6; } ;;
5809  *)
5810    CC="$CC $ac_cv_prog_cc_c89"
5811    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5813esac
5814
5815
5816ac_ext=c
5817ac_cpp='$CPP $CPPFLAGS'
5818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821
5822depcc="$CC"   am_compiler_list=
5823
5824{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5825$as_echo_n "checking dependency style of $depcc... " >&6; }
5826if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5827  $as_echo_n "(cached) " >&6
5828else
5829  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5830  # We make a subdir and do the tests there.  Otherwise we can end up
5831  # making bogus files that we don't know about and never remove.  For
5832  # instance it was reported that on HP-UX the gcc test will end up
5833  # making a dummy file named `D' -- because `-MD' means `put the output
5834  # in D'.
5835  mkdir conftest.dir
5836  # Copy depcomp to subdir because otherwise we won't find it if we're
5837  # using a relative directory.
5838  cp "$am_depcomp" conftest.dir
5839  cd conftest.dir
5840  # We will build objects and dependencies in a subdirectory because
5841  # it helps to detect inapplicable dependency modes.  For instance
5842  # both Tru64's cc and ICC support -MD to output dependencies as a
5843  # side effect of compilation, but ICC will put the dependencies in
5844  # the current directory while Tru64 will put them in the object
5845  # directory.
5846  mkdir sub
5847
5848  am_cv_CC_dependencies_compiler_type=none
5849  if test "$am_compiler_list" = ""; then
5850     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5851  fi
5852  am__universal=false
5853  case " $depcc " in #(
5854     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5855     esac
5856
5857  for depmode in $am_compiler_list; do
5858    # Setup a source with many dependencies, because some compilers
5859    # like to wrap large dependency lists on column 80 (with \), and
5860    # we should not choose a depcomp mode which is confused by this.
5861    #
5862    # We need to recreate these files for each test, as the compiler may
5863    # overwrite some of them when testing with obscure command lines.
5864    # This happens at least with the AIX C compiler.
5865    : > sub/conftest.c
5866    for i in 1 2 3 4 5 6; do
5867      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5868      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5869      # Solaris 8's {/usr,}/bin/sh.
5870      touch sub/conftst$i.h
5871    done
5872    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5873
5874    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5875    # mode.  It turns out that the SunPro C++ compiler does not properly
5876    # handle `-M -o', and we need to detect this.  Also, some Intel
5877    # versions had trouble with output in subdirs
5878    am__obj=sub/conftest.${OBJEXT-o}
5879    am__minus_obj="-o $am__obj"
5880    case $depmode in
5881    gcc)
5882      # This depmode causes a compiler race in universal mode.
5883      test "$am__universal" = false || continue
5884      ;;
5885    nosideeffect)
5886      # after this tag, mechanisms are not by side-effect, so they'll
5887      # only be used when explicitly requested
5888      if test "x$enable_dependency_tracking" = xyes; then
5889	continue
5890      else
5891	break
5892      fi
5893      ;;
5894    msvisualcpp | msvcmsys)
5895      # This compiler won't grok `-c -o', but also, the minuso test has
5896      # not run yet.  These depmodes are late enough in the game, and
5897      # so weak that their functioning should not be impacted.
5898      am__obj=conftest.${OBJEXT-o}
5899      am__minus_obj=
5900      ;;
5901    none) break ;;
5902    esac
5903    if depmode=$depmode \
5904       source=sub/conftest.c object=$am__obj \
5905       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5906       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5907         >/dev/null 2>conftest.err &&
5908       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5909       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5910       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5911       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5912      # icc doesn't choke on unknown options, it will just issue warnings
5913      # or remarks (even with -Werror).  So we grep stderr for any message
5914      # that says an option was ignored or not supported.
5915      # When given -MP, icc 7.0 and 7.1 complain thusly:
5916      #   icc: Command line warning: ignoring option '-M'; no argument required
5917      # The diagnosis changed in icc 8.0:
5918      #   icc: Command line remark: option '-MP' not supported
5919      if (grep 'ignoring option' conftest.err ||
5920          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5921        am_cv_CC_dependencies_compiler_type=$depmode
5922        break
5923      fi
5924    fi
5925  done
5926
5927  cd ..
5928  rm -rf conftest.dir
5929else
5930  am_cv_CC_dependencies_compiler_type=none
5931fi
5932
5933fi
5934{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5935$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5936CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5937
5938 if
5939  test "x$enable_dependency_tracking" != xno \
5940  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5941  am__fastdepCC_TRUE=
5942  am__fastdepCC_FALSE='#'
5943else
5944  am__fastdepCC_TRUE='#'
5945  am__fastdepCC_FALSE=
5946fi
5947
5948
5949ac_ext=c
5950ac_cpp='$CPP $CPPFLAGS'
5951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5955$as_echo_n "checking how to run the C preprocessor... " >&6; }
5956# On Suns, sometimes $CPP names a directory.
5957if test -n "$CPP" && test -d "$CPP"; then
5958  CPP=
5959fi
5960if test -z "$CPP"; then
5961  if test "${ac_cv_prog_CPP+set}" = set; then
5962  $as_echo_n "(cached) " >&6
5963else
5964      # Double quotes because CPP needs to be expanded
5965    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5966    do
5967      ac_preproc_ok=false
5968for ac_c_preproc_warn_flag in '' yes
5969do
5970  # Use a header file that comes with gcc, so configuring glibc
5971  # with a fresh cross-compiler works.
5972  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5973  # <limits.h> exists even on freestanding compilers.
5974  # On the NeXT, cc -E runs the code through the compiler's parser,
5975  # not just through cpp. "Syntax error" is here to catch this case.
5976  cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h.  */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h.  */
5982#ifdef __STDC__
5983# include <limits.h>
5984#else
5985# include <assert.h>
5986#endif
5987		     Syntax error
5988_ACEOF
5989if { (ac_try="$ac_cpp conftest.$ac_ext"
5990case "(($ac_try" in
5991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992  *) ac_try_echo=$ac_try;;
5993esac
5994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995$as_echo "$ac_try_echo") >&5
5996  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5997  ac_status=$?
5998  grep -v '^ *+' conftest.er1 >conftest.err
5999  rm -f conftest.er1
6000  cat conftest.err >&5
6001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); } >/dev/null && {
6003	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6004	 test ! -s conftest.err
6005       }; then
6006  :
6007else
6008  $as_echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011  # Broken: fails on valid input.
6012continue
6013fi
6014
6015rm -f conftest.err conftest.$ac_ext
6016
6017  # OK, works on sane cases.  Now check whether nonexistent headers
6018  # can be detected and how.
6019  cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h.  */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h.  */
6025#include <ac_nonexistent.h>
6026_ACEOF
6027if { (ac_try="$ac_cpp conftest.$ac_ext"
6028case "(($ac_try" in
6029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030  *) ac_try_echo=$ac_try;;
6031esac
6032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6033$as_echo "$ac_try_echo") >&5
6034  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6035  ac_status=$?
6036  grep -v '^ *+' conftest.er1 >conftest.err
6037  rm -f conftest.er1
6038  cat conftest.err >&5
6039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); } >/dev/null && {
6041	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6042	 test ! -s conftest.err
6043       }; then
6044  # Broken: success on invalid input.
6045continue
6046else
6047  $as_echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050  # Passes both tests.
6051ac_preproc_ok=:
6052break
6053fi
6054
6055rm -f conftest.err conftest.$ac_ext
6056
6057done
6058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6059rm -f conftest.err conftest.$ac_ext
6060if $ac_preproc_ok; then
6061  break
6062fi
6063
6064    done
6065    ac_cv_prog_CPP=$CPP
6066
6067fi
6068  CPP=$ac_cv_prog_CPP
6069else
6070  ac_cv_prog_CPP=$CPP
6071fi
6072{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6073$as_echo "$CPP" >&6; }
6074ac_preproc_ok=false
6075for ac_c_preproc_warn_flag in '' yes
6076do
6077  # Use a header file that comes with gcc, so configuring glibc
6078  # with a fresh cross-compiler works.
6079  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080  # <limits.h> exists even on freestanding compilers.
6081  # On the NeXT, cc -E runs the code through the compiler's parser,
6082  # not just through cpp. "Syntax error" is here to catch this case.
6083  cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h.  */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h.  */
6089#ifdef __STDC__
6090# include <limits.h>
6091#else
6092# include <assert.h>
6093#endif
6094		     Syntax error
6095_ACEOF
6096if { (ac_try="$ac_cpp conftest.$ac_ext"
6097case "(($ac_try" in
6098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099  *) ac_try_echo=$ac_try;;
6100esac
6101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102$as_echo "$ac_try_echo") >&5
6103  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } >/dev/null && {
6110	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6111	 test ! -s conftest.err
6112       }; then
6113  :
6114else
6115  $as_echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118  # Broken: fails on valid input.
6119continue
6120fi
6121
6122rm -f conftest.err conftest.$ac_ext
6123
6124  # OK, works on sane cases.  Now check whether nonexistent headers
6125  # can be detected and how.
6126  cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h.  */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h.  */
6132#include <ac_nonexistent.h>
6133_ACEOF
6134if { (ac_try="$ac_cpp conftest.$ac_ext"
6135case "(($ac_try" in
6136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137  *) ac_try_echo=$ac_try;;
6138esac
6139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140$as_echo "$ac_try_echo") >&5
6141  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6142  ac_status=$?
6143  grep -v '^ *+' conftest.er1 >conftest.err
6144  rm -f conftest.er1
6145  cat conftest.err >&5
6146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147  (exit $ac_status); } >/dev/null && {
6148	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6149	 test ! -s conftest.err
6150       }; then
6151  # Broken: success on invalid input.
6152continue
6153else
6154  $as_echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157  # Passes both tests.
6158ac_preproc_ok=:
6159break
6160fi
6161
6162rm -f conftest.err conftest.$ac_ext
6163
6164done
6165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166rm -f conftest.err conftest.$ac_ext
6167if $ac_preproc_ok; then
6168  :
6169else
6170  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6172{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6173See \`config.log' for more details." >&5
6174$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6175See \`config.log' for more details." >&2;}
6176   { (exit 1); exit 1; }; }; }
6177fi
6178
6179ac_ext=c
6180ac_cpp='$CPP $CPPFLAGS'
6181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183ac_compiler_gnu=$ac_cv_c_compiler_gnu
6184
6185ac_ext=cpp
6186ac_cpp='$CXXCPP $CPPFLAGS'
6187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6190if test -z "$CXX"; then
6191  if test -n "$CCC"; then
6192    CXX=$CCC
6193  else
6194    if test -n "$ac_tool_prefix"; then
6195  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6196  do
6197    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6200$as_echo_n "checking for $ac_word... " >&6; }
6201if test "${ac_cv_prog_CXX+set}" = set; then
6202  $as_echo_n "(cached) " >&6
6203else
6204  if test -n "$CXX"; then
6205  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6206else
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210  IFS=$as_save_IFS
6211  test -z "$as_dir" && as_dir=.
6212  for ac_exec_ext in '' $ac_executable_extensions; do
6213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6215    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216    break 2
6217  fi
6218done
6219done
6220IFS=$as_save_IFS
6221
6222fi
6223fi
6224CXX=$ac_cv_prog_CXX
6225if test -n "$CXX"; then
6226  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
6227$as_echo "$CXX" >&6; }
6228else
6229  { $as_echo "$as_me:$LINENO: result: no" >&5
6230$as_echo "no" >&6; }
6231fi
6232
6233
6234    test -n "$CXX" && break
6235  done
6236fi
6237if test -z "$CXX"; then
6238  ac_ct_CXX=$CXX
6239  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6240do
6241  # Extract the first word of "$ac_prog", so it can be a program name with args.
6242set dummy $ac_prog; ac_word=$2
6243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6246  $as_echo_n "(cached) " >&6
6247else
6248  if test -n "$ac_ct_CXX"; then
6249  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254  IFS=$as_save_IFS
6255  test -z "$as_dir" && as_dir=.
6256  for ac_exec_ext in '' $ac_executable_extensions; do
6257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258    ac_cv_prog_ac_ct_CXX="$ac_prog"
6259    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260    break 2
6261  fi
6262done
6263done
6264IFS=$as_save_IFS
6265
6266fi
6267fi
6268ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6269if test -n "$ac_ct_CXX"; then
6270  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6271$as_echo "$ac_ct_CXX" >&6; }
6272else
6273  { $as_echo "$as_me:$LINENO: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
6276
6277
6278  test -n "$ac_ct_CXX" && break
6279done
6280
6281  if test "x$ac_ct_CXX" = x; then
6282    CXX="g++"
6283  else
6284    case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288ac_tool_warned=yes ;;
6289esac
6290    CXX=$ac_ct_CXX
6291  fi
6292fi
6293
6294  fi
6295fi
6296# Provide some information about the compiler.
6297$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6298set X $ac_compile
6299ac_compiler=$2
6300{ (ac_try="$ac_compiler --version >&5"
6301case "(($ac_try" in
6302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303  *) ac_try_echo=$ac_try;;
6304esac
6305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306$as_echo "$ac_try_echo") >&5
6307  (eval "$ac_compiler --version >&5") 2>&5
6308  ac_status=$?
6309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }
6311{ (ac_try="$ac_compiler -v >&5"
6312case "(($ac_try" in
6313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314  *) ac_try_echo=$ac_try;;
6315esac
6316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317$as_echo "$ac_try_echo") >&5
6318  (eval "$ac_compiler -v >&5") 2>&5
6319  ac_status=$?
6320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); }
6322{ (ac_try="$ac_compiler -V >&5"
6323case "(($ac_try" in
6324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325  *) ac_try_echo=$ac_try;;
6326esac
6327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328$as_echo "$ac_try_echo") >&5
6329  (eval "$ac_compiler -V >&5") 2>&5
6330  ac_status=$?
6331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); }
6333
6334{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6335$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6336if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6337  $as_echo_n "(cached) " >&6
6338else
6339  cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h.  */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h.  */
6345
6346int
6347main ()
6348{
6349#ifndef __GNUC__
6350       choke me
6351#endif
6352
6353  ;
6354  return 0;
6355}
6356_ACEOF
6357rm -f conftest.$ac_objext
6358if { (ac_try="$ac_compile"
6359case "(($ac_try" in
6360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361  *) ac_try_echo=$ac_try;;
6362esac
6363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364$as_echo "$ac_try_echo") >&5
6365  (eval "$ac_compile") 2>conftest.er1
6366  ac_status=$?
6367  grep -v '^ *+' conftest.er1 >conftest.err
6368  rm -f conftest.er1
6369  cat conftest.err >&5
6370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); } && {
6372	 test -z "$ac_cxx_werror_flag" ||
6373	 test ! -s conftest.err
6374       } && test -s conftest.$ac_objext; then
6375  ac_compiler_gnu=yes
6376else
6377  $as_echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380	ac_compiler_gnu=no
6381fi
6382
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6385
6386fi
6387{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6388$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6389if test $ac_compiler_gnu = yes; then
6390  GXX=yes
6391else
6392  GXX=
6393fi
6394ac_test_CXXFLAGS=${CXXFLAGS+set}
6395ac_save_CXXFLAGS=$CXXFLAGS
6396{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6397$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6398if test "${ac_cv_prog_cxx_g+set}" = set; then
6399  $as_echo_n "(cached) " >&6
6400else
6401  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6402   ac_cxx_werror_flag=yes
6403   ac_cv_prog_cxx_g=no
6404   CXXFLAGS="-g"
6405   cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411
6412int
6413main ()
6414{
6415
6416  ;
6417  return 0;
6418}
6419_ACEOF
6420rm -f conftest.$ac_objext
6421if { (ac_try="$ac_compile"
6422case "(($ac_try" in
6423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424  *) ac_try_echo=$ac_try;;
6425esac
6426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6427$as_echo "$ac_try_echo") >&5
6428  (eval "$ac_compile") 2>conftest.er1
6429  ac_status=$?
6430  grep -v '^ *+' conftest.er1 >conftest.err
6431  rm -f conftest.er1
6432  cat conftest.err >&5
6433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); } && {
6435	 test -z "$ac_cxx_werror_flag" ||
6436	 test ! -s conftest.err
6437       } && test -s conftest.$ac_objext; then
6438  ac_cv_prog_cxx_g=yes
6439else
6440  $as_echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443	CXXFLAGS=""
6444      cat >conftest.$ac_ext <<_ACEOF
6445/* confdefs.h.  */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h.  */
6450
6451int
6452main ()
6453{
6454
6455  ;
6456  return 0;
6457}
6458_ACEOF
6459rm -f conftest.$ac_objext
6460if { (ac_try="$ac_compile"
6461case "(($ac_try" in
6462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463  *) ac_try_echo=$ac_try;;
6464esac
6465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6466$as_echo "$ac_try_echo") >&5
6467  (eval "$ac_compile") 2>conftest.er1
6468  ac_status=$?
6469  grep -v '^ *+' conftest.er1 >conftest.err
6470  rm -f conftest.er1
6471  cat conftest.err >&5
6472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); } && {
6474	 test -z "$ac_cxx_werror_flag" ||
6475	 test ! -s conftest.err
6476       } && test -s conftest.$ac_objext; then
6477  :
6478else
6479  $as_echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6483	 CXXFLAGS="-g"
6484	 cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h.  */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h.  */
6490
6491int
6492main ()
6493{
6494
6495  ;
6496  return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext
6500if { (ac_try="$ac_compile"
6501case "(($ac_try" in
6502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503  *) ac_try_echo=$ac_try;;
6504esac
6505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506$as_echo "$ac_try_echo") >&5
6507  (eval "$ac_compile") 2>conftest.er1
6508  ac_status=$?
6509  grep -v '^ *+' conftest.er1 >conftest.err
6510  rm -f conftest.er1
6511  cat conftest.err >&5
6512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513  (exit $ac_status); } && {
6514	 test -z "$ac_cxx_werror_flag" ||
6515	 test ! -s conftest.err
6516       } && test -s conftest.$ac_objext; then
6517  ac_cv_prog_cxx_g=yes
6518else
6519  $as_echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522
6523fi
6524
6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526fi
6527
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529fi
6530
6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533fi
6534{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6535$as_echo "$ac_cv_prog_cxx_g" >&6; }
6536if test "$ac_test_CXXFLAGS" = set; then
6537  CXXFLAGS=$ac_save_CXXFLAGS
6538elif test $ac_cv_prog_cxx_g = yes; then
6539  if test "$GXX" = yes; then
6540    CXXFLAGS="-g -O2"
6541  else
6542    CXXFLAGS="-g"
6543  fi
6544else
6545  if test "$GXX" = yes; then
6546    CXXFLAGS="-O2"
6547  else
6548    CXXFLAGS=
6549  fi
6550fi
6551ac_ext=c
6552ac_cpp='$CPP $CPPFLAGS'
6553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
6557depcc="$CXX"  am_compiler_list=
6558
6559{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6560$as_echo_n "checking dependency style of $depcc... " >&6; }
6561if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6565  # We make a subdir and do the tests there.  Otherwise we can end up
6566  # making bogus files that we don't know about and never remove.  For
6567  # instance it was reported that on HP-UX the gcc test will end up
6568  # making a dummy file named `D' -- because `-MD' means `put the output
6569  # in D'.
6570  mkdir conftest.dir
6571  # Copy depcomp to subdir because otherwise we won't find it if we're
6572  # using a relative directory.
6573  cp "$am_depcomp" conftest.dir
6574  cd conftest.dir
6575  # We will build objects and dependencies in a subdirectory because
6576  # it helps to detect inapplicable dependency modes.  For instance
6577  # both Tru64's cc and ICC support -MD to output dependencies as a
6578  # side effect of compilation, but ICC will put the dependencies in
6579  # the current directory while Tru64 will put them in the object
6580  # directory.
6581  mkdir sub
6582
6583  am_cv_CXX_dependencies_compiler_type=none
6584  if test "$am_compiler_list" = ""; then
6585     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6586  fi
6587  am__universal=false
6588  case " $depcc " in #(
6589     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6590     esac
6591
6592  for depmode in $am_compiler_list; do
6593    # Setup a source with many dependencies, because some compilers
6594    # like to wrap large dependency lists on column 80 (with \), and
6595    # we should not choose a depcomp mode which is confused by this.
6596    #
6597    # We need to recreate these files for each test, as the compiler may
6598    # overwrite some of them when testing with obscure command lines.
6599    # This happens at least with the AIX C compiler.
6600    : > sub/conftest.c
6601    for i in 1 2 3 4 5 6; do
6602      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6603      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6604      # Solaris 8's {/usr,}/bin/sh.
6605      touch sub/conftst$i.h
6606    done
6607    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6608
6609    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6610    # mode.  It turns out that the SunPro C++ compiler does not properly
6611    # handle `-M -o', and we need to detect this.  Also, some Intel
6612    # versions had trouble with output in subdirs
6613    am__obj=sub/conftest.${OBJEXT-o}
6614    am__minus_obj="-o $am__obj"
6615    case $depmode in
6616    gcc)
6617      # This depmode causes a compiler race in universal mode.
6618      test "$am__universal" = false || continue
6619      ;;
6620    nosideeffect)
6621      # after this tag, mechanisms are not by side-effect, so they'll
6622      # only be used when explicitly requested
6623      if test "x$enable_dependency_tracking" = xyes; then
6624	continue
6625      else
6626	break
6627      fi
6628      ;;
6629    msvisualcpp | msvcmsys)
6630      # This compiler won't grok `-c -o', but also, the minuso test has
6631      # not run yet.  These depmodes are late enough in the game, and
6632      # so weak that their functioning should not be impacted.
6633      am__obj=conftest.${OBJEXT-o}
6634      am__minus_obj=
6635      ;;
6636    none) break ;;
6637    esac
6638    if depmode=$depmode \
6639       source=sub/conftest.c object=$am__obj \
6640       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6641       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6642         >/dev/null 2>conftest.err &&
6643       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6644       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6645       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6646       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6647      # icc doesn't choke on unknown options, it will just issue warnings
6648      # or remarks (even with -Werror).  So we grep stderr for any message
6649      # that says an option was ignored or not supported.
6650      # When given -MP, icc 7.0 and 7.1 complain thusly:
6651      #   icc: Command line warning: ignoring option '-M'; no argument required
6652      # The diagnosis changed in icc 8.0:
6653      #   icc: Command line remark: option '-MP' not supported
6654      if (grep 'ignoring option' conftest.err ||
6655          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6656        am_cv_CXX_dependencies_compiler_type=$depmode
6657        break
6658      fi
6659    fi
6660  done
6661
6662  cd ..
6663  rm -rf conftest.dir
6664else
6665  am_cv_CXX_dependencies_compiler_type=none
6666fi
6667
6668fi
6669{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6670$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6671CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6672
6673 if
6674  test "x$enable_dependency_tracking" != xno \
6675  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6676  am__fastdepCXX_TRUE=
6677  am__fastdepCXX_FALSE='#'
6678else
6679  am__fastdepCXX_TRUE='#'
6680  am__fastdepCXX_FALSE=
6681fi
6682
6683
6684ac_ext=cpp
6685ac_cpp='$CXXCPP $CPPFLAGS'
6686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6689{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6690$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6691if test -z "$CXXCPP"; then
6692  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6693  $as_echo_n "(cached) " >&6
6694else
6695      # Double quotes because CXXCPP needs to be expanded
6696    for CXXCPP in "$CXX -E" "/lib/cpp"
6697    do
6698      ac_preproc_ok=false
6699for ac_cxx_preproc_warn_flag in '' yes
6700do
6701  # Use a header file that comes with gcc, so configuring glibc
6702  # with a fresh cross-compiler works.
6703  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6704  # <limits.h> exists even on freestanding compilers.
6705  # On the NeXT, cc -E runs the code through the compiler's parser,
6706  # not just through cpp. "Syntax error" is here to catch this case.
6707  cat >conftest.$ac_ext <<_ACEOF
6708/* confdefs.h.  */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h.  */
6713#ifdef __STDC__
6714# include <limits.h>
6715#else
6716# include <assert.h>
6717#endif
6718		     Syntax error
6719_ACEOF
6720if { (ac_try="$ac_cpp conftest.$ac_ext"
6721case "(($ac_try" in
6722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723  *) ac_try_echo=$ac_try;;
6724esac
6725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726$as_echo "$ac_try_echo") >&5
6727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } >/dev/null && {
6734	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6735	 test ! -s conftest.err
6736       }; then
6737  :
6738else
6739  $as_echo "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742  # Broken: fails on valid input.
6743continue
6744fi
6745
6746rm -f conftest.err conftest.$ac_ext
6747
6748  # OK, works on sane cases.  Now check whether nonexistent headers
6749  # can be detected and how.
6750  cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756#include <ac_nonexistent.h>
6757_ACEOF
6758if { (ac_try="$ac_cpp conftest.$ac_ext"
6759case "(($ac_try" in
6760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761  *) ac_try_echo=$ac_try;;
6762esac
6763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764$as_echo "$ac_try_echo") >&5
6765  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6766  ac_status=$?
6767  grep -v '^ *+' conftest.er1 >conftest.err
6768  rm -f conftest.er1
6769  cat conftest.err >&5
6770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); } >/dev/null && {
6772	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6773	 test ! -s conftest.err
6774       }; then
6775  # Broken: success on invalid input.
6776continue
6777else
6778  $as_echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781  # Passes both tests.
6782ac_preproc_ok=:
6783break
6784fi
6785
6786rm -f conftest.err conftest.$ac_ext
6787
6788done
6789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6790rm -f conftest.err conftest.$ac_ext
6791if $ac_preproc_ok; then
6792  break
6793fi
6794
6795    done
6796    ac_cv_prog_CXXCPP=$CXXCPP
6797
6798fi
6799  CXXCPP=$ac_cv_prog_CXXCPP
6800else
6801  ac_cv_prog_CXXCPP=$CXXCPP
6802fi
6803{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6804$as_echo "$CXXCPP" >&6; }
6805ac_preproc_ok=false
6806for ac_cxx_preproc_warn_flag in '' yes
6807do
6808  # Use a header file that comes with gcc, so configuring glibc
6809  # with a fresh cross-compiler works.
6810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6811  # <limits.h> exists even on freestanding compilers.
6812  # On the NeXT, cc -E runs the code through the compiler's parser,
6813  # not just through cpp. "Syntax error" is here to catch this case.
6814  cat >conftest.$ac_ext <<_ACEOF
6815/* confdefs.h.  */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h.  */
6820#ifdef __STDC__
6821# include <limits.h>
6822#else
6823# include <assert.h>
6824#endif
6825		     Syntax error
6826_ACEOF
6827if { (ac_try="$ac_cpp conftest.$ac_ext"
6828case "(($ac_try" in
6829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830  *) ac_try_echo=$ac_try;;
6831esac
6832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6833$as_echo "$ac_try_echo") >&5
6834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6835  ac_status=$?
6836  grep -v '^ *+' conftest.er1 >conftest.err
6837  rm -f conftest.er1
6838  cat conftest.err >&5
6839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); } >/dev/null && {
6841	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6842	 test ! -s conftest.err
6843       }; then
6844  :
6845else
6846  $as_echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849  # Broken: fails on valid input.
6850continue
6851fi
6852
6853rm -f conftest.err conftest.$ac_ext
6854
6855  # OK, works on sane cases.  Now check whether nonexistent headers
6856  # can be detected and how.
6857  cat >conftest.$ac_ext <<_ACEOF
6858/* confdefs.h.  */
6859_ACEOF
6860cat confdefs.h >>conftest.$ac_ext
6861cat >>conftest.$ac_ext <<_ACEOF
6862/* end confdefs.h.  */
6863#include <ac_nonexistent.h>
6864_ACEOF
6865if { (ac_try="$ac_cpp conftest.$ac_ext"
6866case "(($ac_try" in
6867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6868  *) ac_try_echo=$ac_try;;
6869esac
6870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6871$as_echo "$ac_try_echo") >&5
6872  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6873  ac_status=$?
6874  grep -v '^ *+' conftest.er1 >conftest.err
6875  rm -f conftest.er1
6876  cat conftest.err >&5
6877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); } >/dev/null && {
6879	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6880	 test ! -s conftest.err
6881       }; then
6882  # Broken: success on invalid input.
6883continue
6884else
6885  $as_echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888  # Passes both tests.
6889ac_preproc_ok=:
6890break
6891fi
6892
6893rm -f conftest.err conftest.$ac_ext
6894
6895done
6896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6897rm -f conftest.err conftest.$ac_ext
6898if $ac_preproc_ok; then
6899  :
6900else
6901  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6903{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6904See \`config.log' for more details." >&5
6905$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6906See \`config.log' for more details." >&2;}
6907   { (exit 1); exit 1; }; }; }
6908fi
6909
6910ac_ext=c
6911ac_cpp='$CPP $CPPFLAGS'
6912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916# By default we simply use the C compiler to build assembly code.
6917
6918test "${CCAS+set}" = set || CCAS=$CC
6919test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6920
6921
6922
6923depcc="$CCAS"   am_compiler_list=
6924
6925{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6926$as_echo_n "checking dependency style of $depcc... " >&6; }
6927if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
6928  $as_echo_n "(cached) " >&6
6929else
6930  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6931  # We make a subdir and do the tests there.  Otherwise we can end up
6932  # making bogus files that we don't know about and never remove.  For
6933  # instance it was reported that on HP-UX the gcc test will end up
6934  # making a dummy file named `D' -- because `-MD' means `put the output
6935  # in D'.
6936  mkdir conftest.dir
6937  # Copy depcomp to subdir because otherwise we won't find it if we're
6938  # using a relative directory.
6939  cp "$am_depcomp" conftest.dir
6940  cd conftest.dir
6941  # We will build objects and dependencies in a subdirectory because
6942  # it helps to detect inapplicable dependency modes.  For instance
6943  # both Tru64's cc and ICC support -MD to output dependencies as a
6944  # side effect of compilation, but ICC will put the dependencies in
6945  # the current directory while Tru64 will put them in the object
6946  # directory.
6947  mkdir sub
6948
6949  am_cv_CCAS_dependencies_compiler_type=none
6950  if test "$am_compiler_list" = ""; then
6951     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6952  fi
6953  am__universal=false
6954
6955
6956  for depmode in $am_compiler_list; do
6957    # Setup a source with many dependencies, because some compilers
6958    # like to wrap large dependency lists on column 80 (with \), and
6959    # we should not choose a depcomp mode which is confused by this.
6960    #
6961    # We need to recreate these files for each test, as the compiler may
6962    # overwrite some of them when testing with obscure command lines.
6963    # This happens at least with the AIX C compiler.
6964    : > sub/conftest.c
6965    for i in 1 2 3 4 5 6; do
6966      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6967      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6968      # Solaris 8's {/usr,}/bin/sh.
6969      touch sub/conftst$i.h
6970    done
6971    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6972
6973    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6974    # mode.  It turns out that the SunPro C++ compiler does not properly
6975    # handle `-M -o', and we need to detect this.  Also, some Intel
6976    # versions had trouble with output in subdirs
6977    am__obj=sub/conftest.${OBJEXT-o}
6978    am__minus_obj="-o $am__obj"
6979    case $depmode in
6980    gcc)
6981      # This depmode causes a compiler race in universal mode.
6982      test "$am__universal" = false || continue
6983      ;;
6984    nosideeffect)
6985      # after this tag, mechanisms are not by side-effect, so they'll
6986      # only be used when explicitly requested
6987      if test "x$enable_dependency_tracking" = xyes; then
6988	continue
6989      else
6990	break
6991      fi
6992      ;;
6993    msvisualcpp | msvcmsys)
6994      # This compiler won't grok `-c -o', but also, the minuso test has
6995      # not run yet.  These depmodes are late enough in the game, and
6996      # so weak that their functioning should not be impacted.
6997      am__obj=conftest.${OBJEXT-o}
6998      am__minus_obj=
6999      ;;
7000    none) break ;;
7001    esac
7002    if depmode=$depmode \
7003       source=sub/conftest.c object=$am__obj \
7004       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7005       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7006         >/dev/null 2>conftest.err &&
7007       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7008       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7009       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7010       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7011      # icc doesn't choke on unknown options, it will just issue warnings
7012      # or remarks (even with -Werror).  So we grep stderr for any message
7013      # that says an option was ignored or not supported.
7014      # When given -MP, icc 7.0 and 7.1 complain thusly:
7015      #   icc: Command line warning: ignoring option '-M'; no argument required
7016      # The diagnosis changed in icc 8.0:
7017      #   icc: Command line remark: option '-MP' not supported
7018      if (grep 'ignoring option' conftest.err ||
7019          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7020        am_cv_CCAS_dependencies_compiler_type=$depmode
7021        break
7022      fi
7023    fi
7024  done
7025
7026  cd ..
7027  rm -rf conftest.dir
7028else
7029  am_cv_CCAS_dependencies_compiler_type=none
7030fi
7031
7032fi
7033{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7034$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7035CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7036
7037 if
7038  test "x$enable_dependency_tracking" != xno \
7039  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7040  am__fastdepCCAS_TRUE=
7041  am__fastdepCCAS_FALSE='#'
7042else
7043  am__fastdepCCAS_TRUE='#'
7044  am__fastdepCCAS_FALSE=
7045fi
7046
7047
7048{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7049$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7050if test "${ac_cv_path_SED+set}" = set; then
7051  $as_echo_n "(cached) " >&6
7052else
7053            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7054     for ac_i in 1 2 3 4 5 6 7; do
7055       ac_script="$ac_script$as_nl$ac_script"
7056     done
7057     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7058     $as_unset ac_script || ac_script=
7059     if test -z "$SED"; then
7060  ac_path_SED_found=false
7061  # Loop through the user's path and test for each of PROGNAME-LIST
7062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065  IFS=$as_save_IFS
7066  test -z "$as_dir" && as_dir=.
7067  for ac_prog in sed gsed; do
7068    for ac_exec_ext in '' $ac_executable_extensions; do
7069      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7070      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7071# Check for GNU ac_path_SED and select it if it is found.
7072  # Check for GNU $ac_path_SED
7073case `"$ac_path_SED" --version 2>&1` in
7074*GNU*)
7075  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7076*)
7077  ac_count=0
7078  $as_echo_n 0123456789 >"conftest.in"
7079  while :
7080  do
7081    cat "conftest.in" "conftest.in" >"conftest.tmp"
7082    mv "conftest.tmp" "conftest.in"
7083    cp "conftest.in" "conftest.nl"
7084    $as_echo '' >> "conftest.nl"
7085    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7086    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7087    ac_count=`expr $ac_count + 1`
7088    if test $ac_count -gt ${ac_path_SED_max-0}; then
7089      # Best one so far, save it but keep looking for a better one
7090      ac_cv_path_SED="$ac_path_SED"
7091      ac_path_SED_max=$ac_count
7092    fi
7093    # 10*(2^10) chars as input seems more than enough
7094    test $ac_count -gt 10 && break
7095  done
7096  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7097esac
7098
7099      $ac_path_SED_found && break 3
7100    done
7101  done
7102done
7103IFS=$as_save_IFS
7104  if test -z "$ac_cv_path_SED"; then
7105    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7106$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7107   { (exit 1); exit 1; }; }
7108  fi
7109else
7110  ac_cv_path_SED=$SED
7111fi
7112
7113fi
7114{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7115$as_echo "$ac_cv_path_SED" >&6; }
7116 SED="$ac_cv_path_SED"
7117  rm -f conftest.sed
7118
7119test -z "$SED" && SED=sed
7120Xsed="$SED -e 1s/^X//"
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7133$as_echo_n "checking for fgrep... " >&6; }
7134if test "${ac_cv_path_FGREP+set}" = set; then
7135  $as_echo_n "(cached) " >&6
7136else
7137  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7138   then ac_cv_path_FGREP="$GREP -F"
7139   else
7140     if test -z "$FGREP"; then
7141  ac_path_FGREP_found=false
7142  # Loop through the user's path and test for each of PROGNAME-LIST
7143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148  for ac_prog in fgrep; do
7149    for ac_exec_ext in '' $ac_executable_extensions; do
7150      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7151      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7152# Check for GNU ac_path_FGREP and select it if it is found.
7153  # Check for GNU $ac_path_FGREP
7154case `"$ac_path_FGREP" --version 2>&1` in
7155*GNU*)
7156  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7157*)
7158  ac_count=0
7159  $as_echo_n 0123456789 >"conftest.in"
7160  while :
7161  do
7162    cat "conftest.in" "conftest.in" >"conftest.tmp"
7163    mv "conftest.tmp" "conftest.in"
7164    cp "conftest.in" "conftest.nl"
7165    $as_echo 'FGREP' >> "conftest.nl"
7166    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7167    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7168    ac_count=`expr $ac_count + 1`
7169    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7170      # Best one so far, save it but keep looking for a better one
7171      ac_cv_path_FGREP="$ac_path_FGREP"
7172      ac_path_FGREP_max=$ac_count
7173    fi
7174    # 10*(2^10) chars as input seems more than enough
7175    test $ac_count -gt 10 && break
7176  done
7177  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7178esac
7179
7180      $ac_path_FGREP_found && break 3
7181    done
7182  done
7183done
7184IFS=$as_save_IFS
7185  if test -z "$ac_cv_path_FGREP"; then
7186    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7187$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7188   { (exit 1); exit 1; }; }
7189  fi
7190else
7191  ac_cv_path_FGREP=$FGREP
7192fi
7193
7194   fi
7195fi
7196{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7197$as_echo "$ac_cv_path_FGREP" >&6; }
7198 FGREP="$ac_cv_path_FGREP"
7199
7200
7201test -z "$GREP" && GREP=grep
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221# Check whether --with-gnu-ld was given.
7222if test "${with_gnu_ld+set}" = set; then
7223  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7224else
7225  with_gnu_ld=no
7226fi
7227
7228ac_prog=ld
7229if test "$GCC" = yes; then
7230  # Check if gcc -print-prog-name=ld gives a path.
7231  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7232$as_echo_n "checking for ld used by $CC... " >&6; }
7233  case $host in
7234  *-*-mingw*)
7235    # gcc leaves a trailing carriage return which upsets mingw
7236    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7237  *)
7238    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7239  esac
7240  case $ac_prog in
7241    # Accept absolute paths.
7242    [\\/]* | ?:[\\/]*)
7243      re_direlt='/[^/][^/]*/\.\./'
7244      # Canonicalize the pathname of ld
7245      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7246      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7247	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7248      done
7249      test -z "$LD" && LD="$ac_prog"
7250      ;;
7251  "")
7252    # If it fails, then pretend we aren't using GCC.
7253    ac_prog=ld
7254    ;;
7255  *)
7256    # If it is relative, then search for the first ld in PATH.
7257    with_gnu_ld=unknown
7258    ;;
7259  esac
7260elif test "$with_gnu_ld" = yes; then
7261  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7262$as_echo_n "checking for GNU ld... " >&6; }
7263else
7264  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7265$as_echo_n "checking for non-GNU ld... " >&6; }
7266fi
7267if test "${lt_cv_path_LD+set}" = set; then
7268  $as_echo_n "(cached) " >&6
7269else
7270  if test -z "$LD"; then
7271  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7272  for ac_dir in $PATH; do
7273    IFS="$lt_save_ifs"
7274    test -z "$ac_dir" && ac_dir=.
7275    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7276      lt_cv_path_LD="$ac_dir/$ac_prog"
7277      # Check to see if the program is GNU ld.  I'd rather use --version,
7278      # but apparently some variants of GNU ld only accept -v.
7279      # Break only if it was the GNU/non-GNU ld that we prefer.
7280      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7281      *GNU* | *'with BFD'*)
7282	test "$with_gnu_ld" != no && break
7283	;;
7284      *)
7285	test "$with_gnu_ld" != yes && break
7286	;;
7287      esac
7288    fi
7289  done
7290  IFS="$lt_save_ifs"
7291else
7292  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7293fi
7294fi
7295
7296LD="$lt_cv_path_LD"
7297if test -n "$LD"; then
7298  { $as_echo "$as_me:$LINENO: result: $LD" >&5
7299$as_echo "$LD" >&6; }
7300else
7301  { $as_echo "$as_me:$LINENO: result: no" >&5
7302$as_echo "no" >&6; }
7303fi
7304test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7305$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7306   { (exit 1); exit 1; }; }
7307{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7308$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7309if test "${lt_cv_prog_gnu_ld+set}" = set; then
7310  $as_echo_n "(cached) " >&6
7311else
7312  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7313case `$LD -v 2>&1 </dev/null` in
7314*GNU* | *'with BFD'*)
7315  lt_cv_prog_gnu_ld=yes
7316  ;;
7317*)
7318  lt_cv_prog_gnu_ld=no
7319  ;;
7320esac
7321fi
7322{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7323$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7324with_gnu_ld=$lt_cv_prog_gnu_ld
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7335$as_echo_n "checking whether ln -s works... " >&6; }
7336LN_S=$as_ln_s
7337if test "$LN_S" = "ln -s"; then
7338  { $as_echo "$as_me:$LINENO: result: yes" >&5
7339$as_echo "yes" >&6; }
7340else
7341  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7342$as_echo "no, using $LN_S" >&6; }
7343fi
7344
7345{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
7346$as_echo_n "checking for egrep... " >&6; }
7347if test "${ac_cv_path_EGREP+set}" = set; then
7348  $as_echo_n "(cached) " >&6
7349else
7350  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7351   then ac_cv_path_EGREP="$GREP -E"
7352   else
7353     if test -z "$EGREP"; then
7354  ac_path_EGREP_found=false
7355  # Loop through the user's path and test for each of PROGNAME-LIST
7356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7358do
7359  IFS=$as_save_IFS
7360  test -z "$as_dir" && as_dir=.
7361  for ac_prog in egrep; do
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7364      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7365# Check for GNU ac_path_EGREP and select it if it is found.
7366  # Check for GNU $ac_path_EGREP
7367case `"$ac_path_EGREP" --version 2>&1` in
7368*GNU*)
7369  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7370*)
7371  ac_count=0
7372  $as_echo_n 0123456789 >"conftest.in"
7373  while :
7374  do
7375    cat "conftest.in" "conftest.in" >"conftest.tmp"
7376    mv "conftest.tmp" "conftest.in"
7377    cp "conftest.in" "conftest.nl"
7378    $as_echo 'EGREP' >> "conftest.nl"
7379    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7381    ac_count=`expr $ac_count + 1`
7382    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7383      # Best one so far, save it but keep looking for a better one
7384      ac_cv_path_EGREP="$ac_path_EGREP"
7385      ac_path_EGREP_max=$ac_count
7386    fi
7387    # 10*(2^10) chars as input seems more than enough
7388    test $ac_count -gt 10 && break
7389  done
7390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7391esac
7392
7393      $ac_path_EGREP_found && break 3
7394    done
7395  done
7396done
7397IFS=$as_save_IFS
7398  if test -z "$ac_cv_path_EGREP"; then
7399    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7400$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7401   { (exit 1); exit 1; }; }
7402  fi
7403else
7404  ac_cv_path_EGREP=$EGREP
7405fi
7406
7407   fi
7408fi
7409{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7410$as_echo "$ac_cv_path_EGREP" >&6; }
7411 EGREP="$ac_cv_path_EGREP"
7412
7413
7414# Find a good install program.  We prefer a C program (faster),
7415# so one script is as good as another.  But avoid the broken or
7416# incompatible versions:
7417# SysV /etc/install, /usr/sbin/install
7418# SunOS /usr/etc/install
7419# IRIX /sbin/install
7420# AIX /bin/install
7421# AmigaOS /C/install, which installs bootblocks on floppy discs
7422# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7423# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7424# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7425# OS/2's system install, which has a completely different semantic
7426# ./install, which can be erroneously created by make from ./install.sh.
7427# Reject install programs that cannot install multiple files.
7428{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7429$as_echo_n "checking for a BSD-compatible install... " >&6; }
7430if test -z "$INSTALL"; then
7431if test "${ac_cv_path_install+set}" = set; then
7432  $as_echo_n "(cached) " >&6
7433else
7434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439  # Account for people who put trailing slashes in PATH elements.
7440case $as_dir/ in
7441  ./ | .// | /cC/* | \
7442  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7443  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7444  /usr/ucb/* ) ;;
7445  *)
7446    # OSF1 and SCO ODT 3.0 have their own names for install.
7447    # Don't use installbsd from OSF since it installs stuff as root
7448    # by default.
7449    for ac_prog in ginstall scoinst install; do
7450      for ac_exec_ext in '' $ac_executable_extensions; do
7451	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7452	  if test $ac_prog = install &&
7453	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7454	    # AIX install.  It has an incompatible calling convention.
7455	    :
7456	  elif test $ac_prog = install &&
7457	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7458	    # program-specific install script used by HP pwplus--don't use.
7459	    :
7460	  else
7461	    rm -rf conftest.one conftest.two conftest.dir
7462	    echo one > conftest.one
7463	    echo two > conftest.two
7464	    mkdir conftest.dir
7465	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7466	      test -s conftest.one && test -s conftest.two &&
7467	      test -s conftest.dir/conftest.one &&
7468	      test -s conftest.dir/conftest.two
7469	    then
7470	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7471	      break 3
7472	    fi
7473	  fi
7474	fi
7475      done
7476    done
7477    ;;
7478esac
7479
7480done
7481IFS=$as_save_IFS
7482
7483rm -rf conftest.one conftest.two conftest.dir
7484
7485fi
7486  if test "${ac_cv_path_install+set}" = set; then
7487    INSTALL=$ac_cv_path_install
7488  else
7489    # As a last resort, use the slow shell script.  Don't cache a
7490    # value for INSTALL within a source directory, because that will
7491    # break other packages using the cache if that directory is
7492    # removed, or if the value is a relative name.
7493    INSTALL=$ac_install_sh
7494  fi
7495fi
7496{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7497$as_echo "$INSTALL" >&6; }
7498
7499# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7500# It thinks the first close brace ends the variable substitution.
7501test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7502
7503test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7504
7505test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7506
7507case `pwd` in
7508  *\ * | *\	*)
7509    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7510$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7511esac
7512
7513
7514
7515macro_version='2.2.6'
7516macro_revision='1.3012'
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530ltmain="$ac_aux_dir/ltmain.sh"
7531
7532{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7533$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7534if test "${lt_cv_path_NM+set}" = set; then
7535  $as_echo_n "(cached) " >&6
7536else
7537  if test -n "$NM"; then
7538  # Let the user override the test.
7539  lt_cv_path_NM="$NM"
7540else
7541  lt_nm_to_check="${ac_tool_prefix}nm"
7542  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7543    lt_nm_to_check="$lt_nm_to_check nm"
7544  fi
7545  for lt_tmp_nm in $lt_nm_to_check; do
7546    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7547    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7548      IFS="$lt_save_ifs"
7549      test -z "$ac_dir" && ac_dir=.
7550      tmp_nm="$ac_dir/$lt_tmp_nm"
7551      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7552	# Check to see if the nm accepts a BSD-compat flag.
7553	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7554	#   nm: unknown option "B" ignored
7555	# Tru64's nm complains that /dev/null is an invalid object file
7556	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7557	*/dev/null* | *'Invalid file or object type'*)
7558	  lt_cv_path_NM="$tmp_nm -B"
7559	  break
7560	  ;;
7561	*)
7562	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7563	  */dev/null*)
7564	    lt_cv_path_NM="$tmp_nm -p"
7565	    break
7566	    ;;
7567	  *)
7568	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7569	    continue # so that we can try to find one that supports BSD flags
7570	    ;;
7571	  esac
7572	  ;;
7573	esac
7574      fi
7575    done
7576    IFS="$lt_save_ifs"
7577  done
7578  : ${lt_cv_path_NM=no}
7579fi
7580fi
7581{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7582$as_echo "$lt_cv_path_NM" >&6; }
7583if test "$lt_cv_path_NM" != "no"; then
7584  NM="$lt_cv_path_NM"
7585else
7586  # Didn't find any BSD compatible name lister, look for dumpbin.
7587  if test -n "$ac_tool_prefix"; then
7588  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7589  do
7590    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7592{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7593$as_echo_n "checking for $ac_word... " >&6; }
7594if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7595  $as_echo_n "(cached) " >&6
7596else
7597  if test -n "$DUMPBIN"; then
7598  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603  IFS=$as_save_IFS
7604  test -z "$as_dir" && as_dir=.
7605  for ac_exec_ext in '' $ac_executable_extensions; do
7606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7608    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609    break 2
7610  fi
7611done
7612done
7613IFS=$as_save_IFS
7614
7615fi
7616fi
7617DUMPBIN=$ac_cv_prog_DUMPBIN
7618if test -n "$DUMPBIN"; then
7619  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7620$as_echo "$DUMPBIN" >&6; }
7621else
7622  { $as_echo "$as_me:$LINENO: result: no" >&5
7623$as_echo "no" >&6; }
7624fi
7625
7626
7627    test -n "$DUMPBIN" && break
7628  done
7629fi
7630if test -z "$DUMPBIN"; then
7631  ac_ct_DUMPBIN=$DUMPBIN
7632  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7633do
7634  # Extract the first word of "$ac_prog", so it can be a program name with args.
7635set dummy $ac_prog; ac_word=$2
7636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7639  $as_echo_n "(cached) " >&6
7640else
7641  if test -n "$ac_ct_DUMPBIN"; then
7642  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649  for ac_exec_ext in '' $ac_executable_extensions; do
7650  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7652    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656done
7657IFS=$as_save_IFS
7658
7659fi
7660fi
7661ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7662if test -n "$ac_ct_DUMPBIN"; then
7663  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7664$as_echo "$ac_ct_DUMPBIN" >&6; }
7665else
7666  { $as_echo "$as_me:$LINENO: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670
7671  test -n "$ac_ct_DUMPBIN" && break
7672done
7673
7674  if test "x$ac_ct_DUMPBIN" = x; then
7675    DUMPBIN=":"
7676  else
7677    case $cross_compiling:$ac_tool_warned in
7678yes:)
7679{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681ac_tool_warned=yes ;;
7682esac
7683    DUMPBIN=$ac_ct_DUMPBIN
7684  fi
7685fi
7686
7687
7688  if test "$DUMPBIN" != ":"; then
7689    NM="$DUMPBIN"
7690  fi
7691fi
7692test -z "$NM" && NM=nm
7693
7694
7695
7696
7697
7698
7699{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7700$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7701if test "${lt_cv_nm_interface+set}" = set; then
7702  $as_echo_n "(cached) " >&6
7703else
7704  lt_cv_nm_interface="BSD nm"
7705  echo "int some_variable = 0;" > conftest.$ac_ext
7706  (eval echo "\"\$as_me:7709: $ac_compile\"" >&5)
7707  (eval "$ac_compile" 2>conftest.err)
7708  cat conftest.err >&5
7709  (eval echo "\"\$as_me:7712: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7710  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7711  cat conftest.err >&5
7712  (eval echo "\"\$as_me:7715: output\"" >&5)
7713  cat conftest.out >&5
7714  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7715    lt_cv_nm_interface="MS dumpbin"
7716  fi
7717  rm -f conftest*
7718fi
7719{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7720$as_echo "$lt_cv_nm_interface" >&6; }
7721
7722# find the maximum length of command line arguments
7723{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7724$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7725if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7726  $as_echo_n "(cached) " >&6
7727else
7728    i=0
7729  teststring="ABCD"
7730
7731  case $build_os in
7732  msdosdjgpp*)
7733    # On DJGPP, this test can blow up pretty badly due to problems in libc
7734    # (any single argument exceeding 2000 bytes causes a buffer overrun
7735    # during glob expansion).  Even if it were fixed, the result of this
7736    # check would be larger than it should be.
7737    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7738    ;;
7739
7740  gnu*)
7741    # Under GNU Hurd, this test is not required because there is
7742    # no limit to the length of command line arguments.
7743    # Libtool will interpret -1 as no limit whatsoever
7744    lt_cv_sys_max_cmd_len=-1;
7745    ;;
7746
7747  cygwin* | mingw* | cegcc*)
7748    # On Win9x/ME, this test blows up -- it succeeds, but takes
7749    # about 5 minutes as the teststring grows exponentially.
7750    # Worse, since 9x/ME are not pre-emptively multitasking,
7751    # you end up with a "frozen" computer, even though with patience
7752    # the test eventually succeeds (with a max line length of 256k).
7753    # Instead, let's just punt: use the minimum linelength reported by
7754    # all of the supported platforms: 8192 (on NT/2K/XP).
7755    lt_cv_sys_max_cmd_len=8192;
7756    ;;
7757
7758  amigaos*)
7759    # On AmigaOS with pdksh, this test takes hours, literally.
7760    # So we just punt and use a minimum line length of 8192.
7761    lt_cv_sys_max_cmd_len=8192;
7762    ;;
7763
7764  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7765    # This has been around since 386BSD, at least.  Likely further.
7766    if test -x /sbin/sysctl; then
7767      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7768    elif test -x /usr/sbin/sysctl; then
7769      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7770    else
7771      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7772    fi
7773    # And add a safety zone
7774    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7775    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7776    ;;
7777
7778  interix*)
7779    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7780    lt_cv_sys_max_cmd_len=196608
7781    ;;
7782
7783  osf*)
7784    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7785    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7786    # nice to cause kernel panics so lets avoid the loop below.
7787    # First set a reasonable default.
7788    lt_cv_sys_max_cmd_len=16384
7789    #
7790    if test -x /sbin/sysconfig; then
7791      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7792        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7793      esac
7794    fi
7795    ;;
7796  sco3.2v5*)
7797    lt_cv_sys_max_cmd_len=102400
7798    ;;
7799  sysv5* | sco5v6* | sysv4.2uw2*)
7800    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7801    if test -n "$kargmax"; then
7802      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7803    else
7804      lt_cv_sys_max_cmd_len=32768
7805    fi
7806    ;;
7807  *)
7808    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7809    if test -n "$lt_cv_sys_max_cmd_len"; then
7810      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7812    else
7813      # Make teststring a little bigger before we do anything with it.
7814      # a 1K string should be a reasonable start.
7815      for i in 1 2 3 4 5 6 7 8 ; do
7816        teststring=$teststring$teststring
7817      done
7818      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7819      # If test is not a shell built-in, we'll probably end up computing a
7820      # maximum length that is only half of the actual maximum length, but
7821      # we can't tell.
7822      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7823	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7824	      test $i != 17 # 1/2 MB should be enough
7825      do
7826        i=`expr $i + 1`
7827        teststring=$teststring$teststring
7828      done
7829      # Only check the string length outside the loop.
7830      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7831      teststring=
7832      # Add a significant safety factor because C++ compilers can tack on
7833      # massive amounts of additional arguments before passing them to the
7834      # linker.  It appears as though 1/2 is a usable value.
7835      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7836    fi
7837    ;;
7838  esac
7839
7840fi
7841
7842if test -n $lt_cv_sys_max_cmd_len ; then
7843  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7844$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7845else
7846  { $as_echo "$as_me:$LINENO: result: none" >&5
7847$as_echo "none" >&6; }
7848fi
7849max_cmd_len=$lt_cv_sys_max_cmd_len
7850
7851
7852
7853
7854
7855
7856: ${CP="cp -f"}
7857: ${MV="mv -f"}
7858: ${RM="rm -f"}
7859
7860{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7861$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7862# Try some XSI features
7863xsi_shell=no
7864( _lt_dummy="a/b/c"
7865  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7866      = c,a/b,, \
7867    && eval 'test $(( 1 + 1 )) -eq 2 \
7868    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7869  && xsi_shell=yes
7870{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7871$as_echo "$xsi_shell" >&6; }
7872
7873
7874{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7875$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7876lt_shell_append=no
7877( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7878    >/dev/null 2>&1 \
7879  && lt_shell_append=yes
7880{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7881$as_echo "$lt_shell_append" >&6; }
7882
7883
7884if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7885  lt_unset=unset
7886else
7887  lt_unset=false
7888fi
7889
7890
7891
7892
7893
7894# test EBCDIC or ASCII
7895case `echo X|tr X '\101'` in
7896 A) # ASCII based system
7897    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7898  lt_SP2NL='tr \040 \012'
7899  lt_NL2SP='tr \015\012 \040\040'
7900  ;;
7901 *) # EBCDIC based system
7902  lt_SP2NL='tr \100 \n'
7903  lt_NL2SP='tr \r\n \100\100'
7904  ;;
7905esac
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7916$as_echo_n "checking for $LD option to reload object files... " >&6; }
7917if test "${lt_cv_ld_reload_flag+set}" = set; then
7918  $as_echo_n "(cached) " >&6
7919else
7920  lt_cv_ld_reload_flag='-r'
7921fi
7922{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7923$as_echo "$lt_cv_ld_reload_flag" >&6; }
7924reload_flag=$lt_cv_ld_reload_flag
7925case $reload_flag in
7926"" | " "*) ;;
7927*) reload_flag=" $reload_flag" ;;
7928esac
7929reload_cmds='$LD$reload_flag -o $output$reload_objs'
7930case $host_os in
7931  darwin*)
7932    if test "$GCC" = yes; then
7933      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7934    else
7935      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7936    fi
7937    ;;
7938esac
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948if test -n "$ac_tool_prefix"; then
7949  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7950set dummy ${ac_tool_prefix}objdump; ac_word=$2
7951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7952$as_echo_n "checking for $ac_word... " >&6; }
7953if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7954  $as_echo_n "(cached) " >&6
7955else
7956  if test -n "$OBJDUMP"; then
7957  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7958else
7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962  IFS=$as_save_IFS
7963  test -z "$as_dir" && as_dir=.
7964  for ac_exec_ext in '' $ac_executable_extensions; do
7965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7967    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968    break 2
7969  fi
7970done
7971done
7972IFS=$as_save_IFS
7973
7974fi
7975fi
7976OBJDUMP=$ac_cv_prog_OBJDUMP
7977if test -n "$OBJDUMP"; then
7978  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7979$as_echo "$OBJDUMP" >&6; }
7980else
7981  { $as_echo "$as_me:$LINENO: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986fi
7987if test -z "$ac_cv_prog_OBJDUMP"; then
7988  ac_ct_OBJDUMP=$OBJDUMP
7989  # Extract the first word of "objdump", so it can be a program name with args.
7990set dummy objdump; ac_word=$2
7991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7992$as_echo_n "checking for $ac_word... " >&6; }
7993if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7994  $as_echo_n "(cached) " >&6
7995else
7996  if test -n "$ac_ct_OBJDUMP"; then
7997  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7998else
7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002  IFS=$as_save_IFS
8003  test -z "$as_dir" && as_dir=.
8004  for ac_exec_ext in '' $ac_executable_extensions; do
8005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8007    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008    break 2
8009  fi
8010done
8011done
8012IFS=$as_save_IFS
8013
8014fi
8015fi
8016ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8017if test -n "$ac_ct_OBJDUMP"; then
8018  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8019$as_echo "$ac_ct_OBJDUMP" >&6; }
8020else
8021  { $as_echo "$as_me:$LINENO: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
8024
8025  if test "x$ac_ct_OBJDUMP" = x; then
8026    OBJDUMP="false"
8027  else
8028    case $cross_compiling:$ac_tool_warned in
8029yes:)
8030{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032ac_tool_warned=yes ;;
8033esac
8034    OBJDUMP=$ac_ct_OBJDUMP
8035  fi
8036else
8037  OBJDUMP="$ac_cv_prog_OBJDUMP"
8038fi
8039
8040test -z "$OBJDUMP" && OBJDUMP=objdump
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8051$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8052if test "${lt_cv_deplibs_check_method+set}" = set; then
8053  $as_echo_n "(cached) " >&6
8054else
8055  lt_cv_file_magic_cmd='$MAGIC_CMD'
8056lt_cv_file_magic_test_file=
8057lt_cv_deplibs_check_method='unknown'
8058# Need to set the preceding variable on all platforms that support
8059# interlibrary dependencies.
8060# 'none' -- dependencies not supported.
8061# `unknown' -- same as none, but documents that we really don't know.
8062# 'pass_all' -- all dependencies passed with no checks.
8063# 'test_compile' -- check by making test program.
8064# 'file_magic [[regex]]' -- check by looking for files in library path
8065# which responds to the $file_magic_cmd with a given extended regex.
8066# If you have `file' or equivalent on your system and you're not sure
8067# whether `pass_all' will *always* work, you probably want this one.
8068
8069case $host_os in
8070aix[4-9]*)
8071  lt_cv_deplibs_check_method=pass_all
8072  ;;
8073
8074beos*)
8075  lt_cv_deplibs_check_method=pass_all
8076  ;;
8077
8078bsdi[45]*)
8079  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8080  lt_cv_file_magic_cmd='/usr/bin/file -L'
8081  lt_cv_file_magic_test_file=/shlib/libc.so
8082  ;;
8083
8084cygwin*)
8085  # func_win32_libid is a shell function defined in ltmain.sh
8086  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8087  lt_cv_file_magic_cmd='func_win32_libid'
8088  ;;
8089
8090mingw* | pw32*)
8091  # Base MSYS/MinGW do not provide the 'file' command needed by
8092  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8093  # unless we find 'file', for example because we are cross-compiling.
8094  if ( file / ) >/dev/null 2>&1; then
8095    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8096    lt_cv_file_magic_cmd='func_win32_libid'
8097  else
8098    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8099    lt_cv_file_magic_cmd='$OBJDUMP -f'
8100  fi
8101  ;;
8102
8103cegcc)
8104  # use the weaker test based on 'objdump'. See mingw*.
8105  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8106  lt_cv_file_magic_cmd='$OBJDUMP -f'
8107  ;;
8108
8109darwin* | rhapsody*)
8110  lt_cv_deplibs_check_method=pass_all
8111  ;;
8112
8113freebsd* | dragonfly*)
8114  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8115    case $host_cpu in
8116    i*86 )
8117      # Not sure whether the presence of OpenBSD here was a mistake.
8118      # Let's accept both of them until this is cleared up.
8119      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8120      lt_cv_file_magic_cmd=/usr/bin/file
8121      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8122      ;;
8123    esac
8124  else
8125    lt_cv_deplibs_check_method=pass_all
8126  fi
8127  ;;
8128
8129gnu*)
8130  lt_cv_deplibs_check_method=pass_all
8131  ;;
8132
8133hpux10.20* | hpux11*)
8134  lt_cv_file_magic_cmd=/usr/bin/file
8135  case $host_cpu in
8136  ia64*)
8137    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8138    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8139    ;;
8140  hppa*64*)
8141    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]'
8142    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8143    ;;
8144  *)
8145    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8146    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8147    ;;
8148  esac
8149  ;;
8150
8151interix[3-9]*)
8152  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8153  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8154  ;;
8155
8156irix5* | irix6* | nonstopux*)
8157  case $LD in
8158  *-32|*"-32 ") libmagic=32-bit;;
8159  *-n32|*"-n32 ") libmagic=N32;;
8160  *-64|*"-64 ") libmagic=64-bit;;
8161  *) libmagic=never-match;;
8162  esac
8163  lt_cv_deplibs_check_method=pass_all
8164  ;;
8165
8166# This must be Linux ELF.
8167linux* | k*bsd*-gnu)
8168  lt_cv_deplibs_check_method=pass_all
8169  ;;
8170
8171netbsd*)
8172  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8173    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8174  else
8175    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8176  fi
8177  ;;
8178
8179newos6*)
8180  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8181  lt_cv_file_magic_cmd=/usr/bin/file
8182  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8183  ;;
8184
8185*nto* | *qnx*)
8186  lt_cv_deplibs_check_method=pass_all
8187  ;;
8188
8189openbsd*)
8190  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8191    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8192  else
8193    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8194  fi
8195  ;;
8196
8197osf3* | osf4* | osf5*)
8198  lt_cv_deplibs_check_method=pass_all
8199  ;;
8200
8201rdos*)
8202  lt_cv_deplibs_check_method=pass_all
8203  ;;
8204
8205solaris*)
8206  lt_cv_deplibs_check_method=pass_all
8207  ;;
8208
8209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8210  lt_cv_deplibs_check_method=pass_all
8211  ;;
8212
8213sysv4 | sysv4.3*)
8214  case $host_vendor in
8215  motorola)
8216    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]'
8217    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8218    ;;
8219  ncr)
8220    lt_cv_deplibs_check_method=pass_all
8221    ;;
8222  sequent)
8223    lt_cv_file_magic_cmd='/bin/file'
8224    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8225    ;;
8226  sni)
8227    lt_cv_file_magic_cmd='/bin/file'
8228    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8229    lt_cv_file_magic_test_file=/lib/libc.so
8230    ;;
8231  siemens)
8232    lt_cv_deplibs_check_method=pass_all
8233    ;;
8234  pc)
8235    lt_cv_deplibs_check_method=pass_all
8236    ;;
8237  esac
8238  ;;
8239
8240tpf*)
8241  lt_cv_deplibs_check_method=pass_all
8242  ;;
8243esac
8244
8245fi
8246{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8247$as_echo "$lt_cv_deplibs_check_method" >&6; }
8248file_magic_cmd=$lt_cv_file_magic_cmd
8249deplibs_check_method=$lt_cv_deplibs_check_method
8250test -z "$deplibs_check_method" && deplibs_check_method=unknown
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263if test -n "$ac_tool_prefix"; then
8264  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8265set dummy ${ac_tool_prefix}ar; ac_word=$2
8266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if test "${ac_cv_prog_AR+set}" = set; then
8269  $as_echo_n "(cached) " >&6
8270else
8271  if test -n "$AR"; then
8272  ac_cv_prog_AR="$AR" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277  IFS=$as_save_IFS
8278  test -z "$as_dir" && as_dir=.
8279  for ac_exec_ext in '' $ac_executable_extensions; do
8280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281    ac_cv_prog_AR="${ac_tool_prefix}ar"
8282    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283    break 2
8284  fi
8285done
8286done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
8291AR=$ac_cv_prog_AR
8292if test -n "$AR"; then
8293  { $as_echo "$as_me:$LINENO: result: $AR" >&5
8294$as_echo "$AR" >&6; }
8295else
8296  { $as_echo "$as_me:$LINENO: result: no" >&5
8297$as_echo "no" >&6; }
8298fi
8299
8300
8301fi
8302if test -z "$ac_cv_prog_AR"; then
8303  ac_ct_AR=$AR
8304  # Extract the first word of "ar", so it can be a program name with args.
8305set dummy ar; ac_word=$2
8306{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8307$as_echo_n "checking for $ac_word... " >&6; }
8308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8309  $as_echo_n "(cached) " >&6
8310else
8311  if test -n "$ac_ct_AR"; then
8312  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8313else
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317  IFS=$as_save_IFS
8318  test -z "$as_dir" && as_dir=.
8319  for ac_exec_ext in '' $ac_executable_extensions; do
8320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321    ac_cv_prog_ac_ct_AR="ar"
8322    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323    break 2
8324  fi
8325done
8326done
8327IFS=$as_save_IFS
8328
8329fi
8330fi
8331ac_ct_AR=$ac_cv_prog_ac_ct_AR
8332if test -n "$ac_ct_AR"; then
8333  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8334$as_echo "$ac_ct_AR" >&6; }
8335else
8336  { $as_echo "$as_me:$LINENO: result: no" >&5
8337$as_echo "no" >&6; }
8338fi
8339
8340  if test "x$ac_ct_AR" = x; then
8341    AR="false"
8342  else
8343    case $cross_compiling:$ac_tool_warned in
8344yes:)
8345{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347ac_tool_warned=yes ;;
8348esac
8349    AR=$ac_ct_AR
8350  fi
8351else
8352  AR="$ac_cv_prog_AR"
8353fi
8354
8355test -z "$AR" && AR=ar
8356test -z "$AR_FLAGS" && AR_FLAGS=cru
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368if test -n "$ac_tool_prefix"; then
8369  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8370set dummy ${ac_tool_prefix}strip; ac_word=$2
8371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8372$as_echo_n "checking for $ac_word... " >&6; }
8373if test "${ac_cv_prog_STRIP+set}" = set; then
8374  $as_echo_n "(cached) " >&6
8375else
8376  if test -n "$STRIP"; then
8377  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8378else
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382  IFS=$as_save_IFS
8383  test -z "$as_dir" && as_dir=.
8384  for ac_exec_ext in '' $ac_executable_extensions; do
8385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8386    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8387    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388    break 2
8389  fi
8390done
8391done
8392IFS=$as_save_IFS
8393
8394fi
8395fi
8396STRIP=$ac_cv_prog_STRIP
8397if test -n "$STRIP"; then
8398  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8399$as_echo "$STRIP" >&6; }
8400else
8401  { $as_echo "$as_me:$LINENO: result: no" >&5
8402$as_echo "no" >&6; }
8403fi
8404
8405
8406fi
8407if test -z "$ac_cv_prog_STRIP"; then
8408  ac_ct_STRIP=$STRIP
8409  # Extract the first word of "strip", so it can be a program name with args.
8410set dummy strip; ac_word=$2
8411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8414  $as_echo_n "(cached) " >&6
8415else
8416  if test -n "$ac_ct_STRIP"; then
8417  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422  IFS=$as_save_IFS
8423  test -z "$as_dir" && as_dir=.
8424  for ac_exec_ext in '' $ac_executable_extensions; do
8425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426    ac_cv_prog_ac_ct_STRIP="strip"
8427    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428    break 2
8429  fi
8430done
8431done
8432IFS=$as_save_IFS
8433
8434fi
8435fi
8436ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8437if test -n "$ac_ct_STRIP"; then
8438  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8439$as_echo "$ac_ct_STRIP" >&6; }
8440else
8441  { $as_echo "$as_me:$LINENO: result: no" >&5
8442$as_echo "no" >&6; }
8443fi
8444
8445  if test "x$ac_ct_STRIP" = x; then
8446    STRIP=":"
8447  else
8448    case $cross_compiling:$ac_tool_warned in
8449yes:)
8450{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8452ac_tool_warned=yes ;;
8453esac
8454    STRIP=$ac_ct_STRIP
8455  fi
8456else
8457  STRIP="$ac_cv_prog_STRIP"
8458fi
8459
8460test -z "$STRIP" && STRIP=:
8461
8462
8463
8464
8465
8466
8467if test -n "$ac_tool_prefix"; then
8468  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8469set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if test "${ac_cv_prog_RANLIB+set}" = set; then
8473  $as_echo_n "(cached) " >&6
8474else
8475  if test -n "$RANLIB"; then
8476  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481  IFS=$as_save_IFS
8482  test -z "$as_dir" && as_dir=.
8483  for ac_exec_ext in '' $ac_executable_extensions; do
8484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8486    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487    break 2
8488  fi
8489done
8490done
8491IFS=$as_save_IFS
8492
8493fi
8494fi
8495RANLIB=$ac_cv_prog_RANLIB
8496if test -n "$RANLIB"; then
8497  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8498$as_echo "$RANLIB" >&6; }
8499else
8500  { $as_echo "$as_me:$LINENO: result: no" >&5
8501$as_echo "no" >&6; }
8502fi
8503
8504
8505fi
8506if test -z "$ac_cv_prog_RANLIB"; then
8507  ac_ct_RANLIB=$RANLIB
8508  # Extract the first word of "ranlib", so it can be a program name with args.
8509set dummy ranlib; ac_word=$2
8510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8513  $as_echo_n "(cached) " >&6
8514else
8515  if test -n "$ac_ct_RANLIB"; then
8516  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521  IFS=$as_save_IFS
8522  test -z "$as_dir" && as_dir=.
8523  for ac_exec_ext in '' $ac_executable_extensions; do
8524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525    ac_cv_prog_ac_ct_RANLIB="ranlib"
8526    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527    break 2
8528  fi
8529done
8530done
8531IFS=$as_save_IFS
8532
8533fi
8534fi
8535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8536if test -n "$ac_ct_RANLIB"; then
8537  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8538$as_echo "$ac_ct_RANLIB" >&6; }
8539else
8540  { $as_echo "$as_me:$LINENO: result: no" >&5
8541$as_echo "no" >&6; }
8542fi
8543
8544  if test "x$ac_ct_RANLIB" = x; then
8545    RANLIB=":"
8546  else
8547    case $cross_compiling:$ac_tool_warned in
8548yes:)
8549{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8551ac_tool_warned=yes ;;
8552esac
8553    RANLIB=$ac_ct_RANLIB
8554  fi
8555else
8556  RANLIB="$ac_cv_prog_RANLIB"
8557fi
8558
8559test -z "$RANLIB" && RANLIB=:
8560
8561
8562
8563
8564
8565
8566# Determine commands to create old-style static archives.
8567old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8568old_postinstall_cmds='chmod 644 $oldlib'
8569old_postuninstall_cmds=
8570
8571if test -n "$RANLIB"; then
8572  case $host_os in
8573  openbsd*)
8574    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8575    ;;
8576  *)
8577    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8578    ;;
8579  esac
8580  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8581fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616# If no C compiler was specified, use CC.
8617LTCC=${LTCC-"$CC"}
8618
8619# If no C compiler flags were specified, use CFLAGS.
8620LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8621
8622# Allow CC to be a program name with arguments.
8623compiler=$CC
8624
8625
8626# Check for command to grab the raw symbol name followed by C symbol from nm.
8627{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8628$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8629if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8630  $as_echo_n "(cached) " >&6
8631else
8632
8633# These are sane defaults that work on at least a few old systems.
8634# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8635
8636# Character class describing NM global symbol codes.
8637symcode='[BCDEGRST]'
8638
8639# Regexp to match symbols that can be accessed directly from C.
8640sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8641
8642# Define system-specific variables.
8643case $host_os in
8644aix*)
8645  symcode='[BCDT]'
8646  ;;
8647cygwin* | mingw* | pw32* | cegcc*)
8648  symcode='[ABCDGISTW]'
8649  ;;
8650hpux*)
8651  if test "$host_cpu" = ia64; then
8652    symcode='[ABCDEGRST]'
8653  fi
8654  ;;
8655irix* | nonstopux*)
8656  symcode='[BCDEGRST]'
8657  ;;
8658osf*)
8659  symcode='[BCDEGQRST]'
8660  ;;
8661solaris*)
8662  symcode='[BDRT]'
8663  ;;
8664sco3.2v5*)
8665  symcode='[DT]'
8666  ;;
8667sysv4.2uw2*)
8668  symcode='[DT]'
8669  ;;
8670sysv5* | sco5v6* | unixware* | OpenUNIX*)
8671  symcode='[ABDT]'
8672  ;;
8673sysv4)
8674  symcode='[DFNSTU]'
8675  ;;
8676esac
8677
8678# If we're using GNU nm, then use its standard symbol codes.
8679case `$NM -V 2>&1` in
8680*GNU* | *'with BFD'*)
8681  symcode='[ABCDGIRSTW]' ;;
8682esac
8683
8684# Transform an extracted symbol line into a proper C declaration.
8685# Some systems (esp. on ia64) link data and code symbols differently,
8686# so use this general approach.
8687lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8688
8689# Transform an extracted symbol line into symbol name and symbol address
8690lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8691lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8692
8693# Handle CRLF in mingw tool chain
8694opt_cr=
8695case $build_os in
8696mingw*)
8697  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8698  ;;
8699esac
8700
8701# Try without a prefix underscore, then with it.
8702for ac_symprfx in "" "_"; do
8703
8704  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8705  symxfrm="\\1 $ac_symprfx\\2 \\2"
8706
8707  # Write the raw and C identifiers.
8708  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8709    # Fake it for dumpbin and say T for any non-static function
8710    # and D for any global variable.
8711    # Also find C++ and __fastcall symbols from MSVC++,
8712    # which start with @ or ?.
8713    lt_cv_sys_global_symbol_pipe="$AWK '"\
8714"     {last_section=section; section=\$ 3};"\
8715"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8716"     \$ 0!~/External *\|/{next};"\
8717"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8718"     {if(hide[section]) next};"\
8719"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8720"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8721"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8722"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8723"     ' prfx=^$ac_symprfx"
8724  else
8725    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8726  fi
8727
8728  # Check to see that the pipe works correctly.
8729  pipe_works=no
8730
8731  rm -f conftest*
8732  cat > conftest.$ac_ext <<_LT_EOF
8733#ifdef __cplusplus
8734extern "C" {
8735#endif
8736char nm_test_var;
8737void nm_test_func(void);
8738void nm_test_func(void){}
8739#ifdef __cplusplus
8740}
8741#endif
8742int main(){nm_test_var='a';nm_test_func();return(0);}
8743_LT_EOF
8744
8745  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8746  (eval $ac_compile) 2>&5
8747  ac_status=$?
8748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); }; then
8750    # Now try to grab the symbols.
8751    nlist=conftest.nm
8752    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8753  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8754  ac_status=$?
8755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756  (exit $ac_status); } && test -s "$nlist"; then
8757      # Try sorting and uniquifying the output.
8758      if sort "$nlist" | uniq > "$nlist"T; then
8759	mv -f "$nlist"T "$nlist"
8760      else
8761	rm -f "$nlist"T
8762      fi
8763
8764      # Make sure that we snagged all the symbols we need.
8765      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8766	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8767	  cat <<_LT_EOF > conftest.$ac_ext
8768#ifdef __cplusplus
8769extern "C" {
8770#endif
8771
8772_LT_EOF
8773	  # Now generate the symbol file.
8774	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8775
8776	  cat <<_LT_EOF >> conftest.$ac_ext
8777
8778/* The mapping between symbol names and symbols.  */
8779const struct {
8780  const char *name;
8781  void       *address;
8782}
8783lt__PROGRAM__LTX_preloaded_symbols[] =
8784{
8785  { "@PROGRAM@", (void *) 0 },
8786_LT_EOF
8787	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8788	  cat <<\_LT_EOF >> conftest.$ac_ext
8789  {0, (void *) 0}
8790};
8791
8792/* This works around a problem in FreeBSD linker */
8793#ifdef FREEBSD_WORKAROUND
8794static const void *lt_preloaded_setup() {
8795  return lt__PROGRAM__LTX_preloaded_symbols;
8796}
8797#endif
8798
8799#ifdef __cplusplus
8800}
8801#endif
8802_LT_EOF
8803	  # Now try linking the two files.
8804	  mv conftest.$ac_objext conftstm.$ac_objext
8805	  lt_save_LIBS="$LIBS"
8806	  lt_save_CFLAGS="$CFLAGS"
8807	  LIBS="conftstm.$ac_objext"
8808	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8809	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810  (eval $ac_link) 2>&5
8811  ac_status=$?
8812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8814	    pipe_works=yes
8815	  fi
8816	  LIBS="$lt_save_LIBS"
8817	  CFLAGS="$lt_save_CFLAGS"
8818	else
8819	  echo "cannot find nm_test_func in $nlist" >&5
8820	fi
8821      else
8822	echo "cannot find nm_test_var in $nlist" >&5
8823      fi
8824    else
8825      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8826    fi
8827  else
8828    echo "$progname: failed program was:" >&5
8829    cat conftest.$ac_ext >&5
8830  fi
8831  rm -rf conftest* conftst*
8832
8833  # Do not use the global_symbol_pipe unless it works.
8834  if test "$pipe_works" = yes; then
8835    break
8836  else
8837    lt_cv_sys_global_symbol_pipe=
8838  fi
8839done
8840
8841fi
8842
8843if test -z "$lt_cv_sys_global_symbol_pipe"; then
8844  lt_cv_sys_global_symbol_to_cdecl=
8845fi
8846if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8847  { $as_echo "$as_me:$LINENO: result: failed" >&5
8848$as_echo "failed" >&6; }
8849else
8850  { $as_echo "$as_me:$LINENO: result: ok" >&5
8851$as_echo "ok" >&6; }
8852fi
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875# Check whether --enable-libtool-lock was given.
8876if test "${enable_libtool_lock+set}" = set; then
8877  enableval=$enable_libtool_lock;
8878fi
8879
8880test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8881
8882# Some flags need to be propagated to the compiler or linker for good
8883# libtool support.
8884case $host in
8885ia64-*-hpux*)
8886  # Find out which ABI we are using.
8887  echo 'int i;' > conftest.$ac_ext
8888  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8889  (eval $ac_compile) 2>&5
8890  ac_status=$?
8891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892  (exit $ac_status); }; then
8893    case `/usr/bin/file conftest.$ac_objext` in
8894      *ELF-32*)
8895	HPUX_IA64_MODE="32"
8896	;;
8897      *ELF-64*)
8898	HPUX_IA64_MODE="64"
8899	;;
8900    esac
8901  fi
8902  rm -rf conftest*
8903  ;;
8904*-*-irix6*)
8905  # Find out which ABI we are using.
8906  echo '#line 8909 "configure"' > conftest.$ac_ext
8907  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908  (eval $ac_compile) 2>&5
8909  ac_status=$?
8910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); }; then
8912    if test "$lt_cv_prog_gnu_ld" = yes; then
8913      case `/usr/bin/file conftest.$ac_objext` in
8914	*32-bit*)
8915	  LD="${LD-ld} -melf32bsmip"
8916	  ;;
8917	*N32*)
8918	  LD="${LD-ld} -melf32bmipn32"
8919	  ;;
8920	*64-bit*)
8921	  LD="${LD-ld} -melf64bmip"
8922	;;
8923      esac
8924    else
8925      case `/usr/bin/file conftest.$ac_objext` in
8926	*32-bit*)
8927	  LD="${LD-ld} -32"
8928	  ;;
8929	*N32*)
8930	  LD="${LD-ld} -n32"
8931	  ;;
8932	*64-bit*)
8933	  LD="${LD-ld} -64"
8934	  ;;
8935      esac
8936    fi
8937  fi
8938  rm -rf conftest*
8939  ;;
8940
8941x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8942s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8943  # Find out which ABI we are using.
8944  echo 'int i;' > conftest.$ac_ext
8945  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8946  (eval $ac_compile) 2>&5
8947  ac_status=$?
8948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); }; then
8950    case `/usr/bin/file conftest.o` in
8951      *32-bit*)
8952	case $host in
8953	  x86_64-*kfreebsd*-gnu)
8954	    LD="${LD-ld} -m elf_i386_fbsd"
8955	    ;;
8956	  x86_64-*linux*)
8957	    LD="${LD-ld} -m elf_i386"
8958	    ;;
8959	  ppc64-*linux*|powerpc64-*linux*)
8960	    LD="${LD-ld} -m elf32ppclinux"
8961	    ;;
8962	  s390x-*linux*)
8963	    LD="${LD-ld} -m elf_s390"
8964	    ;;
8965	  sparc64-*linux*)
8966	    LD="${LD-ld} -m elf32_sparc"
8967	    ;;
8968	esac
8969	;;
8970      *64-bit*)
8971	case $host in
8972	  x86_64-*kfreebsd*-gnu)
8973	    LD="${LD-ld} -m elf_x86_64_fbsd"
8974	    ;;
8975	  x86_64-*linux*)
8976	    LD="${LD-ld} -m elf_x86_64"
8977	    ;;
8978	  ppc*-*linux*|powerpc*-*linux*)
8979	    LD="${LD-ld} -m elf64ppc"
8980	    ;;
8981	  s390*-*linux*|s390*-*tpf*)
8982	    LD="${LD-ld} -m elf64_s390"
8983	    ;;
8984	  sparc*-*linux*)
8985	    LD="${LD-ld} -m elf64_sparc"
8986	    ;;
8987	esac
8988	;;
8989    esac
8990  fi
8991  rm -rf conftest*
8992  ;;
8993
8994*-*-sco3.2v5*)
8995  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8996  SAVE_CFLAGS="$CFLAGS"
8997  CFLAGS="$CFLAGS -belf"
8998  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8999$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9000if test "${lt_cv_cc_needs_belf+set}" = set; then
9001  $as_echo_n "(cached) " >&6
9002else
9003  ac_ext=c
9004ac_cpp='$CPP $CPPFLAGS'
9005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009     cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h.  */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h.  */
9015
9016int
9017main ()
9018{
9019
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024rm -f conftest.$ac_objext conftest$ac_exeext
9025if { (ac_try="$ac_link"
9026case "(($ac_try" in
9027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028  *) ac_try_echo=$ac_try;;
9029esac
9030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9031$as_echo "$ac_try_echo") >&5
9032  (eval "$ac_link") 2>conftest.er1
9033  ac_status=$?
9034  grep -v '^ *+' conftest.er1 >conftest.err
9035  rm -f conftest.er1
9036  cat conftest.err >&5
9037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038  (exit $ac_status); } && {
9039	 test -z "$ac_c_werror_flag" ||
9040	 test ! -s conftest.err
9041       } && test -s conftest$ac_exeext && {
9042	 test "$cross_compiling" = yes ||
9043	 $as_test_x conftest$ac_exeext
9044       }; then
9045  lt_cv_cc_needs_belf=yes
9046else
9047  $as_echo "$as_me: failed program was:" >&5
9048sed 's/^/| /' conftest.$ac_ext >&5
9049
9050	lt_cv_cc_needs_belf=no
9051fi
9052
9053rm -rf conftest.dSYM
9054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9055      conftest$ac_exeext conftest.$ac_ext
9056     ac_ext=c
9057ac_cpp='$CPP $CPPFLAGS'
9058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9060ac_compiler_gnu=$ac_cv_c_compiler_gnu
9061
9062fi
9063{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9064$as_echo "$lt_cv_cc_needs_belf" >&6; }
9065  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9066    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9067    CFLAGS="$SAVE_CFLAGS"
9068  fi
9069  ;;
9070sparc*-*solaris*)
9071  # Find out which ABI we are using.
9072  echo 'int i;' > conftest.$ac_ext
9073  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074  (eval $ac_compile) 2>&5
9075  ac_status=$?
9076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077  (exit $ac_status); }; then
9078    case `/usr/bin/file conftest.o` in
9079    *64-bit*)
9080      case $lt_cv_prog_gnu_ld in
9081      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9082      *)
9083	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9084	  LD="${LD-ld} -64"
9085	fi
9086	;;
9087      esac
9088      ;;
9089    esac
9090  fi
9091  rm -rf conftest*
9092  ;;
9093esac
9094
9095need_locks="$enable_libtool_lock"
9096
9097
9098  case $host_os in
9099    rhapsody* | darwin*)
9100    if test -n "$ac_tool_prefix"; then
9101  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9102set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9103{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9104$as_echo_n "checking for $ac_word... " >&6; }
9105if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9106  $as_echo_n "(cached) " >&6
9107else
9108  if test -n "$DSYMUTIL"; then
9109  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9110else
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114  IFS=$as_save_IFS
9115  test -z "$as_dir" && as_dir=.
9116  for ac_exec_ext in '' $ac_executable_extensions; do
9117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9119    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9120    break 2
9121  fi
9122done
9123done
9124IFS=$as_save_IFS
9125
9126fi
9127fi
9128DSYMUTIL=$ac_cv_prog_DSYMUTIL
9129if test -n "$DSYMUTIL"; then
9130  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9131$as_echo "$DSYMUTIL" >&6; }
9132else
9133  { $as_echo "$as_me:$LINENO: result: no" >&5
9134$as_echo "no" >&6; }
9135fi
9136
9137
9138fi
9139if test -z "$ac_cv_prog_DSYMUTIL"; then
9140  ac_ct_DSYMUTIL=$DSYMUTIL
9141  # Extract the first word of "dsymutil", so it can be a program name with args.
9142set dummy dsymutil; ac_word=$2
9143{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9144$as_echo_n "checking for $ac_word... " >&6; }
9145if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9146  $as_echo_n "(cached) " >&6
9147else
9148  if test -n "$ac_ct_DSYMUTIL"; then
9149  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9150else
9151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152for as_dir in $PATH
9153do
9154  IFS=$as_save_IFS
9155  test -z "$as_dir" && as_dir=.
9156  for ac_exec_ext in '' $ac_executable_extensions; do
9157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9158    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9159    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9160    break 2
9161  fi
9162done
9163done
9164IFS=$as_save_IFS
9165
9166fi
9167fi
9168ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9169if test -n "$ac_ct_DSYMUTIL"; then
9170  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9171$as_echo "$ac_ct_DSYMUTIL" >&6; }
9172else
9173  { $as_echo "$as_me:$LINENO: result: no" >&5
9174$as_echo "no" >&6; }
9175fi
9176
9177  if test "x$ac_ct_DSYMUTIL" = x; then
9178    DSYMUTIL=":"
9179  else
9180    case $cross_compiling:$ac_tool_warned in
9181yes:)
9182{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9184ac_tool_warned=yes ;;
9185esac
9186    DSYMUTIL=$ac_ct_DSYMUTIL
9187  fi
9188else
9189  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9190fi
9191
9192    if test -n "$ac_tool_prefix"; then
9193  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9194set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_prog_NMEDIT+set}" = set; then
9198  $as_echo_n "(cached) " >&6
9199else
9200  if test -n "$NMEDIT"; then
9201  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9202else
9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206  IFS=$as_save_IFS
9207  test -z "$as_dir" && as_dir=.
9208  for ac_exec_ext in '' $ac_executable_extensions; do
9209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9211    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9212    break 2
9213  fi
9214done
9215done
9216IFS=$as_save_IFS
9217
9218fi
9219fi
9220NMEDIT=$ac_cv_prog_NMEDIT
9221if test -n "$NMEDIT"; then
9222  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9223$as_echo "$NMEDIT" >&6; }
9224else
9225  { $as_echo "$as_me:$LINENO: result: no" >&5
9226$as_echo "no" >&6; }
9227fi
9228
9229
9230fi
9231if test -z "$ac_cv_prog_NMEDIT"; then
9232  ac_ct_NMEDIT=$NMEDIT
9233  # Extract the first word of "nmedit", so it can be a program name with args.
9234set dummy nmedit; ac_word=$2
9235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9236$as_echo_n "checking for $ac_word... " >&6; }
9237if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9238  $as_echo_n "(cached) " >&6
9239else
9240  if test -n "$ac_ct_NMEDIT"; then
9241  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9242else
9243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244for as_dir in $PATH
9245do
9246  IFS=$as_save_IFS
9247  test -z "$as_dir" && as_dir=.
9248  for ac_exec_ext in '' $ac_executable_extensions; do
9249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9251    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9252    break 2
9253  fi
9254done
9255done
9256IFS=$as_save_IFS
9257
9258fi
9259fi
9260ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9261if test -n "$ac_ct_NMEDIT"; then
9262  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9263$as_echo "$ac_ct_NMEDIT" >&6; }
9264else
9265  { $as_echo "$as_me:$LINENO: result: no" >&5
9266$as_echo "no" >&6; }
9267fi
9268
9269  if test "x$ac_ct_NMEDIT" = x; then
9270    NMEDIT=":"
9271  else
9272    case $cross_compiling:$ac_tool_warned in
9273yes:)
9274{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9276ac_tool_warned=yes ;;
9277esac
9278    NMEDIT=$ac_ct_NMEDIT
9279  fi
9280else
9281  NMEDIT="$ac_cv_prog_NMEDIT"
9282fi
9283
9284    if test -n "$ac_tool_prefix"; then
9285  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9286set dummy ${ac_tool_prefix}lipo; ac_word=$2
9287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9288$as_echo_n "checking for $ac_word... " >&6; }
9289if test "${ac_cv_prog_LIPO+set}" = set; then
9290  $as_echo_n "(cached) " >&6
9291else
9292  if test -n "$LIPO"; then
9293  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298  IFS=$as_save_IFS
9299  test -z "$as_dir" && as_dir=.
9300  for ac_exec_ext in '' $ac_executable_extensions; do
9301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9303    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304    break 2
9305  fi
9306done
9307done
9308IFS=$as_save_IFS
9309
9310fi
9311fi
9312LIPO=$ac_cv_prog_LIPO
9313if test -n "$LIPO"; then
9314  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9315$as_echo "$LIPO" >&6; }
9316else
9317  { $as_echo "$as_me:$LINENO: result: no" >&5
9318$as_echo "no" >&6; }
9319fi
9320
9321
9322fi
9323if test -z "$ac_cv_prog_LIPO"; then
9324  ac_ct_LIPO=$LIPO
9325  # Extract the first word of "lipo", so it can be a program name with args.
9326set dummy lipo; ac_word=$2
9327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9328$as_echo_n "checking for $ac_word... " >&6; }
9329if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9330  $as_echo_n "(cached) " >&6
9331else
9332  if test -n "$ac_ct_LIPO"; then
9333  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9334else
9335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336for as_dir in $PATH
9337do
9338  IFS=$as_save_IFS
9339  test -z "$as_dir" && as_dir=.
9340  for ac_exec_ext in '' $ac_executable_extensions; do
9341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342    ac_cv_prog_ac_ct_LIPO="lipo"
9343    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9344    break 2
9345  fi
9346done
9347done
9348IFS=$as_save_IFS
9349
9350fi
9351fi
9352ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9353if test -n "$ac_ct_LIPO"; then
9354  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9355$as_echo "$ac_ct_LIPO" >&6; }
9356else
9357  { $as_echo "$as_me:$LINENO: result: no" >&5
9358$as_echo "no" >&6; }
9359fi
9360
9361  if test "x$ac_ct_LIPO" = x; then
9362    LIPO=":"
9363  else
9364    case $cross_compiling:$ac_tool_warned in
9365yes:)
9366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9368ac_tool_warned=yes ;;
9369esac
9370    LIPO=$ac_ct_LIPO
9371  fi
9372else
9373  LIPO="$ac_cv_prog_LIPO"
9374fi
9375
9376    if test -n "$ac_tool_prefix"; then
9377  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9378set dummy ${ac_tool_prefix}otool; ac_word=$2
9379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9380$as_echo_n "checking for $ac_word... " >&6; }
9381if test "${ac_cv_prog_OTOOL+set}" = set; then
9382  $as_echo_n "(cached) " >&6
9383else
9384  if test -n "$OTOOL"; then
9385  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9386else
9387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388for as_dir in $PATH
9389do
9390  IFS=$as_save_IFS
9391  test -z "$as_dir" && as_dir=.
9392  for ac_exec_ext in '' $ac_executable_extensions; do
9393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9394    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9395    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9396    break 2
9397  fi
9398done
9399done
9400IFS=$as_save_IFS
9401
9402fi
9403fi
9404OTOOL=$ac_cv_prog_OTOOL
9405if test -n "$OTOOL"; then
9406  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9407$as_echo "$OTOOL" >&6; }
9408else
9409  { $as_echo "$as_me:$LINENO: result: no" >&5
9410$as_echo "no" >&6; }
9411fi
9412
9413
9414fi
9415if test -z "$ac_cv_prog_OTOOL"; then
9416  ac_ct_OTOOL=$OTOOL
9417  # Extract the first word of "otool", so it can be a program name with args.
9418set dummy otool; ac_word=$2
9419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9420$as_echo_n "checking for $ac_word... " >&6; }
9421if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9422  $as_echo_n "(cached) " >&6
9423else
9424  if test -n "$ac_ct_OTOOL"; then
9425  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9426else
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430  IFS=$as_save_IFS
9431  test -z "$as_dir" && as_dir=.
9432  for ac_exec_ext in '' $ac_executable_extensions; do
9433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434    ac_cv_prog_ac_ct_OTOOL="otool"
9435    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9436    break 2
9437  fi
9438done
9439done
9440IFS=$as_save_IFS
9441
9442fi
9443fi
9444ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9445if test -n "$ac_ct_OTOOL"; then
9446  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9447$as_echo "$ac_ct_OTOOL" >&6; }
9448else
9449  { $as_echo "$as_me:$LINENO: result: no" >&5
9450$as_echo "no" >&6; }
9451fi
9452
9453  if test "x$ac_ct_OTOOL" = x; then
9454    OTOOL=":"
9455  else
9456    case $cross_compiling:$ac_tool_warned in
9457yes:)
9458{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9460ac_tool_warned=yes ;;
9461esac
9462    OTOOL=$ac_ct_OTOOL
9463  fi
9464else
9465  OTOOL="$ac_cv_prog_OTOOL"
9466fi
9467
9468    if test -n "$ac_tool_prefix"; then
9469  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9470set dummy ${ac_tool_prefix}otool64; ac_word=$2
9471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9472$as_echo_n "checking for $ac_word... " >&6; }
9473if test "${ac_cv_prog_OTOOL64+set}" = set; then
9474  $as_echo_n "(cached) " >&6
9475else
9476  if test -n "$OTOOL64"; then
9477  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9478else
9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480for as_dir in $PATH
9481do
9482  IFS=$as_save_IFS
9483  test -z "$as_dir" && as_dir=.
9484  for ac_exec_ext in '' $ac_executable_extensions; do
9485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9487    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488    break 2
9489  fi
9490done
9491done
9492IFS=$as_save_IFS
9493
9494fi
9495fi
9496OTOOL64=$ac_cv_prog_OTOOL64
9497if test -n "$OTOOL64"; then
9498  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9499$as_echo "$OTOOL64" >&6; }
9500else
9501  { $as_echo "$as_me:$LINENO: result: no" >&5
9502$as_echo "no" >&6; }
9503fi
9504
9505
9506fi
9507if test -z "$ac_cv_prog_OTOOL64"; then
9508  ac_ct_OTOOL64=$OTOOL64
9509  # Extract the first word of "otool64", so it can be a program name with args.
9510set dummy otool64; ac_word=$2
9511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9512$as_echo_n "checking for $ac_word... " >&6; }
9513if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9514  $as_echo_n "(cached) " >&6
9515else
9516  if test -n "$ac_ct_OTOOL64"; then
9517  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9518else
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522  IFS=$as_save_IFS
9523  test -z "$as_dir" && as_dir=.
9524  for ac_exec_ext in '' $ac_executable_extensions; do
9525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526    ac_cv_prog_ac_ct_OTOOL64="otool64"
9527    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9528    break 2
9529  fi
9530done
9531done
9532IFS=$as_save_IFS
9533
9534fi
9535fi
9536ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9537if test -n "$ac_ct_OTOOL64"; then
9538  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9539$as_echo "$ac_ct_OTOOL64" >&6; }
9540else
9541  { $as_echo "$as_me:$LINENO: result: no" >&5
9542$as_echo "no" >&6; }
9543fi
9544
9545  if test "x$ac_ct_OTOOL64" = x; then
9546    OTOOL64=":"
9547  else
9548    case $cross_compiling:$ac_tool_warned in
9549yes:)
9550{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9552ac_tool_warned=yes ;;
9553esac
9554    OTOOL64=$ac_ct_OTOOL64
9555  fi
9556else
9557  OTOOL64="$ac_cv_prog_OTOOL64"
9558fi
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9587$as_echo_n "checking for -single_module linker flag... " >&6; }
9588if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9589  $as_echo_n "(cached) " >&6
9590else
9591  lt_cv_apple_cc_single_mod=no
9592      if test -z "${LT_MULTI_MODULE}"; then
9593	# By default we will add the -single_module flag. You can override
9594	# by either setting the environment variable LT_MULTI_MODULE
9595	# non-empty at configure time, or by adding -multi_module to the
9596	# link flags.
9597	rm -rf libconftest.dylib*
9598	echo "int foo(void){return 1;}" > conftest.c
9599	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9600-dynamiclib -Wl,-single_module conftest.c" >&5
9601	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9602	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9603        _lt_result=$?
9604	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9605	  lt_cv_apple_cc_single_mod=yes
9606	else
9607	  cat conftest.err >&5
9608	fi
9609	rm -rf libconftest.dylib*
9610	rm -f conftest.*
9611      fi
9612fi
9613{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9614$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9615    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9616$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9617if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9618  $as_echo_n "(cached) " >&6
9619else
9620  lt_cv_ld_exported_symbols_list=no
9621      save_LDFLAGS=$LDFLAGS
9622      echo "_main" > conftest.sym
9623      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9624      cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h.  */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h.  */
9630
9631int
9632main ()
9633{
9634
9635  ;
9636  return 0;
9637}
9638_ACEOF
9639rm -f conftest.$ac_objext conftest$ac_exeext
9640if { (ac_try="$ac_link"
9641case "(($ac_try" in
9642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643  *) ac_try_echo=$ac_try;;
9644esac
9645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9646$as_echo "$ac_try_echo") >&5
9647  (eval "$ac_link") 2>conftest.er1
9648  ac_status=$?
9649  grep -v '^ *+' conftest.er1 >conftest.err
9650  rm -f conftest.er1
9651  cat conftest.err >&5
9652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653  (exit $ac_status); } && {
9654	 test -z "$ac_c_werror_flag" ||
9655	 test ! -s conftest.err
9656       } && test -s conftest$ac_exeext && {
9657	 test "$cross_compiling" = yes ||
9658	 $as_test_x conftest$ac_exeext
9659       }; then
9660  lt_cv_ld_exported_symbols_list=yes
9661else
9662  $as_echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665	lt_cv_ld_exported_symbols_list=no
9666fi
9667
9668rm -rf conftest.dSYM
9669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9670      conftest$ac_exeext conftest.$ac_ext
9671	LDFLAGS="$save_LDFLAGS"
9672
9673fi
9674{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9675$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9676    case $host_os in
9677    rhapsody* | darwin1.[012])
9678      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9679    darwin1.*)
9680      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9681    darwin*) # darwin 5.x on
9682      # if running on 10.5 or later, the deployment target defaults
9683      # to the OS version, if on x86, and 10.4, the deployment
9684      # target defaults to 10.4. Don't you love it?
9685      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9686	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9687	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9688	10.[012]*)
9689	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9690	10.*)
9691	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9692      esac
9693    ;;
9694  esac
9695    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9696      _lt_dar_single_mod='$single_module'
9697    fi
9698    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9699      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9700    else
9701      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9702    fi
9703    if test "$DSYMUTIL" != ":"; then
9704      _lt_dsymutil='~$DSYMUTIL $lib || :'
9705    else
9706      _lt_dsymutil=
9707    fi
9708    ;;
9709  esac
9710
9711
9712for ac_header in dlfcn.h
9713do
9714as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9716$as_echo_n "checking for $ac_header... " >&6; }
9717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9718  $as_echo_n "(cached) " >&6
9719else
9720  cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h.  */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h.  */
9726$ac_includes_default
9727
9728#include <$ac_header>
9729_ACEOF
9730rm -f conftest.$ac_objext
9731if { (ac_try="$ac_compile"
9732case "(($ac_try" in
9733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734  *) ac_try_echo=$ac_try;;
9735esac
9736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737$as_echo "$ac_try_echo") >&5
9738  (eval "$ac_compile") 2>conftest.er1
9739  ac_status=$?
9740  grep -v '^ *+' conftest.er1 >conftest.err
9741  rm -f conftest.er1
9742  cat conftest.err >&5
9743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744  (exit $ac_status); } && {
9745	 test -z "$ac_c_werror_flag" ||
9746	 test ! -s conftest.err
9747       } && test -s conftest.$ac_objext; then
9748  eval "$as_ac_Header=yes"
9749else
9750  $as_echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
9752
9753	eval "$as_ac_Header=no"
9754fi
9755
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757fi
9758ac_res=`eval 'as_val=${'$as_ac_Header'}
9759		 $as_echo "$as_val"'`
9760	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9761$as_echo "$ac_res" >&6; }
9762as_val=`eval 'as_val=${'$as_ac_Header'}
9763		 $as_echo "$as_val"'`
9764   if test "x$as_val" = x""yes; then
9765  cat >>confdefs.h <<_ACEOF
9766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9767_ACEOF
9768
9769fi
9770
9771done
9772
9773
9774
9775ac_ext=cpp
9776ac_cpp='$CXXCPP $CPPFLAGS'
9777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9780if test -z "$CXX"; then
9781  if test -n "$CCC"; then
9782    CXX=$CCC
9783  else
9784    if test -n "$ac_tool_prefix"; then
9785  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9786  do
9787    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9790$as_echo_n "checking for $ac_word... " >&6; }
9791if test "${ac_cv_prog_CXX+set}" = set; then
9792  $as_echo_n "(cached) " >&6
9793else
9794  if test -n "$CXX"; then
9795  ac_cv_prog_CXX="$CXX" # Let the user override the test.
9796else
9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798for as_dir in $PATH
9799do
9800  IFS=$as_save_IFS
9801  test -z "$as_dir" && as_dir=.
9802  for ac_exec_ext in '' $ac_executable_extensions; do
9803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9805    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9806    break 2
9807  fi
9808done
9809done
9810IFS=$as_save_IFS
9811
9812fi
9813fi
9814CXX=$ac_cv_prog_CXX
9815if test -n "$CXX"; then
9816  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9817$as_echo "$CXX" >&6; }
9818else
9819  { $as_echo "$as_me:$LINENO: result: no" >&5
9820$as_echo "no" >&6; }
9821fi
9822
9823
9824    test -n "$CXX" && break
9825  done
9826fi
9827if test -z "$CXX"; then
9828  ac_ct_CXX=$CXX
9829  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9830do
9831  # Extract the first word of "$ac_prog", so it can be a program name with args.
9832set dummy $ac_prog; ac_word=$2
9833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9834$as_echo_n "checking for $ac_word... " >&6; }
9835if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9836  $as_echo_n "(cached) " >&6
9837else
9838  if test -n "$ac_ct_CXX"; then
9839  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9840else
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844  IFS=$as_save_IFS
9845  test -z "$as_dir" && as_dir=.
9846  for ac_exec_ext in '' $ac_executable_extensions; do
9847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9848    ac_cv_prog_ac_ct_CXX="$ac_prog"
9849    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850    break 2
9851  fi
9852done
9853done
9854IFS=$as_save_IFS
9855
9856fi
9857fi
9858ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9859if test -n "$ac_ct_CXX"; then
9860  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9861$as_echo "$ac_ct_CXX" >&6; }
9862else
9863  { $as_echo "$as_me:$LINENO: result: no" >&5
9864$as_echo "no" >&6; }
9865fi
9866
9867
9868  test -n "$ac_ct_CXX" && break
9869done
9870
9871  if test "x$ac_ct_CXX" = x; then
9872    CXX="g++"
9873  else
9874    case $cross_compiling:$ac_tool_warned in
9875yes:)
9876{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9878ac_tool_warned=yes ;;
9879esac
9880    CXX=$ac_ct_CXX
9881  fi
9882fi
9883
9884  fi
9885fi
9886# Provide some information about the compiler.
9887$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9888set X $ac_compile
9889ac_compiler=$2
9890{ (ac_try="$ac_compiler --version >&5"
9891case "(($ac_try" in
9892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893  *) ac_try_echo=$ac_try;;
9894esac
9895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9896$as_echo "$ac_try_echo") >&5
9897  (eval "$ac_compiler --version >&5") 2>&5
9898  ac_status=$?
9899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); }
9901{ (ac_try="$ac_compiler -v >&5"
9902case "(($ac_try" in
9903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904  *) ac_try_echo=$ac_try;;
9905esac
9906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9907$as_echo "$ac_try_echo") >&5
9908  (eval "$ac_compiler -v >&5") 2>&5
9909  ac_status=$?
9910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911  (exit $ac_status); }
9912{ (ac_try="$ac_compiler -V >&5"
9913case "(($ac_try" in
9914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915  *) ac_try_echo=$ac_try;;
9916esac
9917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9918$as_echo "$ac_try_echo") >&5
9919  (eval "$ac_compiler -V >&5") 2>&5
9920  ac_status=$?
9921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922  (exit $ac_status); }
9923
9924{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9925$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9926if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9927  $as_echo_n "(cached) " >&6
9928else
9929  cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h.  */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h.  */
9935
9936int
9937main ()
9938{
9939#ifndef __GNUC__
9940       choke me
9941#endif
9942
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext
9948if { (ac_try="$ac_compile"
9949case "(($ac_try" in
9950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951  *) ac_try_echo=$ac_try;;
9952esac
9953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9954$as_echo "$ac_try_echo") >&5
9955  (eval "$ac_compile") 2>conftest.er1
9956  ac_status=$?
9957  grep -v '^ *+' conftest.er1 >conftest.err
9958  rm -f conftest.er1
9959  cat conftest.err >&5
9960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); } && {
9962	 test -z "$ac_cxx_werror_flag" ||
9963	 test ! -s conftest.err
9964       } && test -s conftest.$ac_objext; then
9965  ac_compiler_gnu=yes
9966else
9967  $as_echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970	ac_compiler_gnu=no
9971fi
9972
9973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9975
9976fi
9977{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9978$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9979if test $ac_compiler_gnu = yes; then
9980  GXX=yes
9981else
9982  GXX=
9983fi
9984ac_test_CXXFLAGS=${CXXFLAGS+set}
9985ac_save_CXXFLAGS=$CXXFLAGS
9986{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9987$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9988if test "${ac_cv_prog_cxx_g+set}" = set; then
9989  $as_echo_n "(cached) " >&6
9990else
9991  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9992   ac_cxx_werror_flag=yes
9993   ac_cv_prog_cxx_g=no
9994   CXXFLAGS="-g"
9995   cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h.  */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h.  */
10001
10002int
10003main ()
10004{
10005
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010rm -f conftest.$ac_objext
10011if { (ac_try="$ac_compile"
10012case "(($ac_try" in
10013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014  *) ac_try_echo=$ac_try;;
10015esac
10016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10017$as_echo "$ac_try_echo") >&5
10018  (eval "$ac_compile") 2>conftest.er1
10019  ac_status=$?
10020  grep -v '^ *+' conftest.er1 >conftest.err
10021  rm -f conftest.er1
10022  cat conftest.err >&5
10023  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); } && {
10025	 test -z "$ac_cxx_werror_flag" ||
10026	 test ! -s conftest.err
10027       } && test -s conftest.$ac_objext; then
10028  ac_cv_prog_cxx_g=yes
10029else
10030  $as_echo "$as_me: failed program was:" >&5
10031sed 's/^/| /' conftest.$ac_ext >&5
10032
10033	CXXFLAGS=""
10034      cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h.  */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h.  */
10040
10041int
10042main ()
10043{
10044
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext
10050if { (ac_try="$ac_compile"
10051case "(($ac_try" in
10052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053  *) ac_try_echo=$ac_try;;
10054esac
10055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10056$as_echo "$ac_try_echo") >&5
10057  (eval "$ac_compile") 2>conftest.er1
10058  ac_status=$?
10059  grep -v '^ *+' conftest.er1 >conftest.err
10060  rm -f conftest.er1
10061  cat conftest.err >&5
10062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063  (exit $ac_status); } && {
10064	 test -z "$ac_cxx_werror_flag" ||
10065	 test ! -s conftest.err
10066       } && test -s conftest.$ac_objext; then
10067  :
10068else
10069  $as_echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10073	 CXXFLAGS="-g"
10074	 cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h.  */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h.  */
10080
10081int
10082main ()
10083{
10084
10085  ;
10086  return 0;
10087}
10088_ACEOF
10089rm -f conftest.$ac_objext
10090if { (ac_try="$ac_compile"
10091case "(($ac_try" in
10092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093  *) ac_try_echo=$ac_try;;
10094esac
10095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10096$as_echo "$ac_try_echo") >&5
10097  (eval "$ac_compile") 2>conftest.er1
10098  ac_status=$?
10099  grep -v '^ *+' conftest.er1 >conftest.err
10100  rm -f conftest.er1
10101  cat conftest.err >&5
10102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103  (exit $ac_status); } && {
10104	 test -z "$ac_cxx_werror_flag" ||
10105	 test ! -s conftest.err
10106       } && test -s conftest.$ac_objext; then
10107  ac_cv_prog_cxx_g=yes
10108else
10109  $as_echo "$as_me: failed program was:" >&5
10110sed 's/^/| /' conftest.$ac_ext >&5
10111
10112
10113fi
10114
10115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116fi
10117
10118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119fi
10120
10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10123fi
10124{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10125$as_echo "$ac_cv_prog_cxx_g" >&6; }
10126if test "$ac_test_CXXFLAGS" = set; then
10127  CXXFLAGS=$ac_save_CXXFLAGS
10128elif test $ac_cv_prog_cxx_g = yes; then
10129  if test "$GXX" = yes; then
10130    CXXFLAGS="-g -O2"
10131  else
10132    CXXFLAGS="-g"
10133  fi
10134else
10135  if test "$GXX" = yes; then
10136    CXXFLAGS="-O2"
10137  else
10138    CXXFLAGS=
10139  fi
10140fi
10141ac_ext=c
10142ac_cpp='$CPP $CPPFLAGS'
10143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10145ac_compiler_gnu=$ac_cv_c_compiler_gnu
10146
10147depcc="$CXX"  am_compiler_list=
10148
10149{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10150$as_echo_n "checking dependency style of $depcc... " >&6; }
10151if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10152  $as_echo_n "(cached) " >&6
10153else
10154  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10155  # We make a subdir and do the tests there.  Otherwise we can end up
10156  # making bogus files that we don't know about and never remove.  For
10157  # instance it was reported that on HP-UX the gcc test will end up
10158  # making a dummy file named `D' -- because `-MD' means `put the output
10159  # in D'.
10160  mkdir conftest.dir
10161  # Copy depcomp to subdir because otherwise we won't find it if we're
10162  # using a relative directory.
10163  cp "$am_depcomp" conftest.dir
10164  cd conftest.dir
10165  # We will build objects and dependencies in a subdirectory because
10166  # it helps to detect inapplicable dependency modes.  For instance
10167  # both Tru64's cc and ICC support -MD to output dependencies as a
10168  # side effect of compilation, but ICC will put the dependencies in
10169  # the current directory while Tru64 will put them in the object
10170  # directory.
10171  mkdir sub
10172
10173  am_cv_CXX_dependencies_compiler_type=none
10174  if test "$am_compiler_list" = ""; then
10175     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10176  fi
10177  am__universal=false
10178  case " $depcc " in #(
10179     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10180     esac
10181
10182  for depmode in $am_compiler_list; do
10183    # Setup a source with many dependencies, because some compilers
10184    # like to wrap large dependency lists on column 80 (with \), and
10185    # we should not choose a depcomp mode which is confused by this.
10186    #
10187    # We need to recreate these files for each test, as the compiler may
10188    # overwrite some of them when testing with obscure command lines.
10189    # This happens at least with the AIX C compiler.
10190    : > sub/conftest.c
10191    for i in 1 2 3 4 5 6; do
10192      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10193      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10194      # Solaris 8's {/usr,}/bin/sh.
10195      touch sub/conftst$i.h
10196    done
10197    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10198
10199    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10200    # mode.  It turns out that the SunPro C++ compiler does not properly
10201    # handle `-M -o', and we need to detect this.  Also, some Intel
10202    # versions had trouble with output in subdirs
10203    am__obj=sub/conftest.${OBJEXT-o}
10204    am__minus_obj="-o $am__obj"
10205    case $depmode in
10206    gcc)
10207      # This depmode causes a compiler race in universal mode.
10208      test "$am__universal" = false || continue
10209      ;;
10210    nosideeffect)
10211      # after this tag, mechanisms are not by side-effect, so they'll
10212      # only be used when explicitly requested
10213      if test "x$enable_dependency_tracking" = xyes; then
10214	continue
10215      else
10216	break
10217      fi
10218      ;;
10219    msvisualcpp | msvcmsys)
10220      # This compiler won't grok `-c -o', but also, the minuso test has
10221      # not run yet.  These depmodes are late enough in the game, and
10222      # so weak that their functioning should not be impacted.
10223      am__obj=conftest.${OBJEXT-o}
10224      am__minus_obj=
10225      ;;
10226    none) break ;;
10227    esac
10228    if depmode=$depmode \
10229       source=sub/conftest.c object=$am__obj \
10230       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10231       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10232         >/dev/null 2>conftest.err &&
10233       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10234       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10235       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10236       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10237      # icc doesn't choke on unknown options, it will just issue warnings
10238      # or remarks (even with -Werror).  So we grep stderr for any message
10239      # that says an option was ignored or not supported.
10240      # When given -MP, icc 7.0 and 7.1 complain thusly:
10241      #   icc: Command line warning: ignoring option '-M'; no argument required
10242      # The diagnosis changed in icc 8.0:
10243      #   icc: Command line remark: option '-MP' not supported
10244      if (grep 'ignoring option' conftest.err ||
10245          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10246        am_cv_CXX_dependencies_compiler_type=$depmode
10247        break
10248      fi
10249    fi
10250  done
10251
10252  cd ..
10253  rm -rf conftest.dir
10254else
10255  am_cv_CXX_dependencies_compiler_type=none
10256fi
10257
10258fi
10259{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10260$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10261CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10262
10263 if
10264  test "x$enable_dependency_tracking" != xno \
10265  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10266  am__fastdepCXX_TRUE=
10267  am__fastdepCXX_FALSE='#'
10268else
10269  am__fastdepCXX_TRUE='#'
10270  am__fastdepCXX_FALSE=
10271fi
10272
10273
10274if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10275    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10276    (test "X$CXX" != "Xg++"))) ; then
10277  ac_ext=cpp
10278ac_cpp='$CXXCPP $CPPFLAGS'
10279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10282{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10283$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10284if test -z "$CXXCPP"; then
10285  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10286  $as_echo_n "(cached) " >&6
10287else
10288      # Double quotes because CXXCPP needs to be expanded
10289    for CXXCPP in "$CXX -E" "/lib/cpp"
10290    do
10291      ac_preproc_ok=false
10292for ac_cxx_preproc_warn_flag in '' yes
10293do
10294  # Use a header file that comes with gcc, so configuring glibc
10295  # with a fresh cross-compiler works.
10296  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297  # <limits.h> exists even on freestanding compilers.
10298  # On the NeXT, cc -E runs the code through the compiler's parser,
10299  # not just through cpp. "Syntax error" is here to catch this case.
10300  cat >conftest.$ac_ext <<_ACEOF
10301/* confdefs.h.  */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h.  */
10306#ifdef __STDC__
10307# include <limits.h>
10308#else
10309# include <assert.h>
10310#endif
10311		     Syntax error
10312_ACEOF
10313if { (ac_try="$ac_cpp conftest.$ac_ext"
10314case "(($ac_try" in
10315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316  *) ac_try_echo=$ac_try;;
10317esac
10318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10319$as_echo "$ac_try_echo") >&5
10320  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10321  ac_status=$?
10322  grep -v '^ *+' conftest.er1 >conftest.err
10323  rm -f conftest.er1
10324  cat conftest.err >&5
10325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326  (exit $ac_status); } >/dev/null && {
10327	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10328	 test ! -s conftest.err
10329       }; then
10330  :
10331else
10332  $as_echo "$as_me: failed program was:" >&5
10333sed 's/^/| /' conftest.$ac_ext >&5
10334
10335  # Broken: fails on valid input.
10336continue
10337fi
10338
10339rm -f conftest.err conftest.$ac_ext
10340
10341  # OK, works on sane cases.  Now check whether nonexistent headers
10342  # can be detected and how.
10343  cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349#include <ac_nonexistent.h>
10350_ACEOF
10351if { (ac_try="$ac_cpp conftest.$ac_ext"
10352case "(($ac_try" in
10353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354  *) ac_try_echo=$ac_try;;
10355esac
10356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10357$as_echo "$ac_try_echo") >&5
10358  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10359  ac_status=$?
10360  grep -v '^ *+' conftest.er1 >conftest.err
10361  rm -f conftest.er1
10362  cat conftest.err >&5
10363  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); } >/dev/null && {
10365	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10366	 test ! -s conftest.err
10367       }; then
10368  # Broken: success on invalid input.
10369continue
10370else
10371  $as_echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374  # Passes both tests.
10375ac_preproc_ok=:
10376break
10377fi
10378
10379rm -f conftest.err conftest.$ac_ext
10380
10381done
10382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10383rm -f conftest.err conftest.$ac_ext
10384if $ac_preproc_ok; then
10385  break
10386fi
10387
10388    done
10389    ac_cv_prog_CXXCPP=$CXXCPP
10390
10391fi
10392  CXXCPP=$ac_cv_prog_CXXCPP
10393else
10394  ac_cv_prog_CXXCPP=$CXXCPP
10395fi
10396{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10397$as_echo "$CXXCPP" >&6; }
10398ac_preproc_ok=false
10399for ac_cxx_preproc_warn_flag in '' yes
10400do
10401  # Use a header file that comes with gcc, so configuring glibc
10402  # with a fresh cross-compiler works.
10403  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10404  # <limits.h> exists even on freestanding compilers.
10405  # On the NeXT, cc -E runs the code through the compiler's parser,
10406  # not just through cpp. "Syntax error" is here to catch this case.
10407  cat >conftest.$ac_ext <<_ACEOF
10408/* confdefs.h.  */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h.  */
10413#ifdef __STDC__
10414# include <limits.h>
10415#else
10416# include <assert.h>
10417#endif
10418		     Syntax error
10419_ACEOF
10420if { (ac_try="$ac_cpp conftest.$ac_ext"
10421case "(($ac_try" in
10422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423  *) ac_try_echo=$ac_try;;
10424esac
10425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10426$as_echo "$ac_try_echo") >&5
10427  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } >/dev/null && {
10434	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10435	 test ! -s conftest.err
10436       }; then
10437  :
10438else
10439  $as_echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442  # Broken: fails on valid input.
10443continue
10444fi
10445
10446rm -f conftest.err conftest.$ac_ext
10447
10448  # OK, works on sane cases.  Now check whether nonexistent headers
10449  # can be detected and how.
10450  cat >conftest.$ac_ext <<_ACEOF
10451/* confdefs.h.  */
10452_ACEOF
10453cat confdefs.h >>conftest.$ac_ext
10454cat >>conftest.$ac_ext <<_ACEOF
10455/* end confdefs.h.  */
10456#include <ac_nonexistent.h>
10457_ACEOF
10458if { (ac_try="$ac_cpp conftest.$ac_ext"
10459case "(($ac_try" in
10460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461  *) ac_try_echo=$ac_try;;
10462esac
10463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10464$as_echo "$ac_try_echo") >&5
10465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10466  ac_status=$?
10467  grep -v '^ *+' conftest.er1 >conftest.err
10468  rm -f conftest.er1
10469  cat conftest.err >&5
10470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); } >/dev/null && {
10472	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10473	 test ! -s conftest.err
10474       }; then
10475  # Broken: success on invalid input.
10476continue
10477else
10478  $as_echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481  # Passes both tests.
10482ac_preproc_ok=:
10483break
10484fi
10485
10486rm -f conftest.err conftest.$ac_ext
10487
10488done
10489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10490rm -f conftest.err conftest.$ac_ext
10491if $ac_preproc_ok; then
10492  :
10493else
10494  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10496_lt_caught_CXX_error=yes; }
10497fi
10498
10499ac_ext=c
10500ac_cpp='$CPP $CPPFLAGS'
10501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503ac_compiler_gnu=$ac_cv_c_compiler_gnu
10504
10505else
10506  _lt_caught_CXX_error=yes
10507fi
10508
10509
10510
10511
10512
10513# Set options
10514
10515
10516
10517        enable_dlopen=no
10518
10519
10520  enable_win32_dll=no
10521
10522
10523            # Check whether --enable-shared was given.
10524if test "${enable_shared+set}" = set; then
10525  enableval=$enable_shared; p=${PACKAGE-default}
10526    case $enableval in
10527    yes) enable_shared=yes ;;
10528    no) enable_shared=no ;;
10529    *)
10530      enable_shared=no
10531      # Look at the argument we got.  We use all the common list separators.
10532      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10533      for pkg in $enableval; do
10534	IFS="$lt_save_ifs"
10535	if test "X$pkg" = "X$p"; then
10536	  enable_shared=yes
10537	fi
10538      done
10539      IFS="$lt_save_ifs"
10540      ;;
10541    esac
10542else
10543  enable_shared=yes
10544fi
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554  # Check whether --enable-static was given.
10555if test "${enable_static+set}" = set; then
10556  enableval=$enable_static; p=${PACKAGE-default}
10557    case $enableval in
10558    yes) enable_static=yes ;;
10559    no) enable_static=no ;;
10560    *)
10561     enable_static=no
10562      # Look at the argument we got.  We use all the common list separators.
10563      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10564      for pkg in $enableval; do
10565	IFS="$lt_save_ifs"
10566	if test "X$pkg" = "X$p"; then
10567	  enable_static=yes
10568	fi
10569      done
10570      IFS="$lt_save_ifs"
10571      ;;
10572    esac
10573else
10574  enable_static=yes
10575fi
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586# Check whether --with-pic was given.
10587if test "${with_pic+set}" = set; then
10588  withval=$with_pic; pic_mode="$withval"
10589else
10590  pic_mode=default
10591fi
10592
10593
10594test -z "$pic_mode" && pic_mode=default
10595
10596
10597
10598
10599
10600
10601
10602  # Check whether --enable-fast-install was given.
10603if test "${enable_fast_install+set}" = set; then
10604  enableval=$enable_fast_install; p=${PACKAGE-default}
10605    case $enableval in
10606    yes) enable_fast_install=yes ;;
10607    no) enable_fast_install=no ;;
10608    *)
10609      enable_fast_install=no
10610      # Look at the argument we got.  We use all the common list separators.
10611      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10612      for pkg in $enableval; do
10613	IFS="$lt_save_ifs"
10614	if test "X$pkg" = "X$p"; then
10615	  enable_fast_install=yes
10616	fi
10617      done
10618      IFS="$lt_save_ifs"
10619      ;;
10620    esac
10621else
10622  enable_fast_install=yes
10623fi
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635# This can be used to rebuild libtool when needed
10636LIBTOOL_DEPS="$ltmain"
10637
10638# Always use our own libtool.
10639LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665test -z "$LN_S" && LN_S="ln -s"
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680if test -n "${ZSH_VERSION+set}" ; then
10681   setopt NO_GLOB_SUBST
10682fi
10683
10684{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10685$as_echo_n "checking for objdir... " >&6; }
10686if test "${lt_cv_objdir+set}" = set; then
10687  $as_echo_n "(cached) " >&6
10688else
10689  rm -f .libs 2>/dev/null
10690mkdir .libs 2>/dev/null
10691if test -d .libs; then
10692  lt_cv_objdir=.libs
10693else
10694  # MS-DOS does not allow filenames that begin with a dot.
10695  lt_cv_objdir=_libs
10696fi
10697rmdir .libs 2>/dev/null
10698fi
10699{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10700$as_echo "$lt_cv_objdir" >&6; }
10701objdir=$lt_cv_objdir
10702
10703
10704
10705
10706
10707cat >>confdefs.h <<_ACEOF
10708#define LT_OBJDIR "$lt_cv_objdir/"
10709_ACEOF
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727case $host_os in
10728aix3*)
10729  # AIX sometimes has problems with the GCC collect2 program.  For some
10730  # reason, if we set the COLLECT_NAMES environment variable, the problems
10731  # vanish in a puff of smoke.
10732  if test "X${COLLECT_NAMES+set}" != Xset; then
10733    COLLECT_NAMES=
10734    export COLLECT_NAMES
10735  fi
10736  ;;
10737esac
10738
10739# Sed substitution that helps us do robust quoting.  It backslashifies
10740# metacharacters that are still active within double-quoted strings.
10741sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10742
10743# Same as above, but do not quote variable references.
10744double_quote_subst='s/\(["`\\]\)/\\\1/g'
10745
10746# Sed substitution to delay expansion of an escaped shell variable in a
10747# double_quote_subst'ed string.
10748delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10749
10750# Sed substitution to delay expansion of an escaped single quote.
10751delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10752
10753# Sed substitution to avoid accidental globbing in evaled expressions
10754no_glob_subst='s/\*/\\\*/g'
10755
10756# Global variables:
10757ofile=libtool
10758can_build_shared=yes
10759
10760# All known linkers require a `.a' archive for static linking (except MSVC,
10761# which needs '.lib').
10762libext=a
10763
10764with_gnu_ld="$lt_cv_prog_gnu_ld"
10765
10766old_CC="$CC"
10767old_CFLAGS="$CFLAGS"
10768
10769# Set sane defaults for various variables
10770test -z "$CC" && CC=cc
10771test -z "$LTCC" && LTCC=$CC
10772test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10773test -z "$LD" && LD=ld
10774test -z "$ac_objext" && ac_objext=o
10775
10776for cc_temp in $compiler""; do
10777  case $cc_temp in
10778    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10779    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10780    \-*) ;;
10781    *) break;;
10782  esac
10783done
10784cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10785
10786
10787# Only perform the check for file, if the check method requires it
10788test -z "$MAGIC_CMD" && MAGIC_CMD=file
10789case $deplibs_check_method in
10790file_magic*)
10791  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10792    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10793$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10795  $as_echo_n "(cached) " >&6
10796else
10797  case $MAGIC_CMD in
10798[\\/*] |  ?:[\\/]*)
10799  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10800  ;;
10801*)
10802  lt_save_MAGIC_CMD="$MAGIC_CMD"
10803  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10804  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10805  for ac_dir in $ac_dummy; do
10806    IFS="$lt_save_ifs"
10807    test -z "$ac_dir" && ac_dir=.
10808    if test -f $ac_dir/${ac_tool_prefix}file; then
10809      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10810      if test -n "$file_magic_test_file"; then
10811	case $deplibs_check_method in
10812	"file_magic "*)
10813	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10814	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10815	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10816	    $EGREP "$file_magic_regex" > /dev/null; then
10817	    :
10818	  else
10819	    cat <<_LT_EOF 1>&2
10820
10821*** Warning: the command libtool uses to detect shared libraries,
10822*** $file_magic_cmd, produces output that libtool cannot recognize.
10823*** The result is that libtool may fail to recognize shared libraries
10824*** as such.  This will affect the creation of libtool libraries that
10825*** depend on shared libraries, but programs linked with such libtool
10826*** libraries will work regardless of this problem.  Nevertheless, you
10827*** may want to report the problem to your system manager and/or to
10828*** bug-libtool@gnu.org
10829
10830_LT_EOF
10831	  fi ;;
10832	esac
10833      fi
10834      break
10835    fi
10836  done
10837  IFS="$lt_save_ifs"
10838  MAGIC_CMD="$lt_save_MAGIC_CMD"
10839  ;;
10840esac
10841fi
10842
10843MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10844if test -n "$MAGIC_CMD"; then
10845  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10846$as_echo "$MAGIC_CMD" >&6; }
10847else
10848  { $as_echo "$as_me:$LINENO: result: no" >&5
10849$as_echo "no" >&6; }
10850fi
10851
10852
10853
10854
10855
10856if test -z "$lt_cv_path_MAGIC_CMD"; then
10857  if test -n "$ac_tool_prefix"; then
10858    { $as_echo "$as_me:$LINENO: checking for file" >&5
10859$as_echo_n "checking for file... " >&6; }
10860if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10861  $as_echo_n "(cached) " >&6
10862else
10863  case $MAGIC_CMD in
10864[\\/*] |  ?:[\\/]*)
10865  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10866  ;;
10867*)
10868  lt_save_MAGIC_CMD="$MAGIC_CMD"
10869  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10870  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10871  for ac_dir in $ac_dummy; do
10872    IFS="$lt_save_ifs"
10873    test -z "$ac_dir" && ac_dir=.
10874    if test -f $ac_dir/file; then
10875      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10876      if test -n "$file_magic_test_file"; then
10877	case $deplibs_check_method in
10878	"file_magic "*)
10879	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10880	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10881	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10882	    $EGREP "$file_magic_regex" > /dev/null; then
10883	    :
10884	  else
10885	    cat <<_LT_EOF 1>&2
10886
10887*** Warning: the command libtool uses to detect shared libraries,
10888*** $file_magic_cmd, produces output that libtool cannot recognize.
10889*** The result is that libtool may fail to recognize shared libraries
10890*** as such.  This will affect the creation of libtool libraries that
10891*** depend on shared libraries, but programs linked with such libtool
10892*** libraries will work regardless of this problem.  Nevertheless, you
10893*** may want to report the problem to your system manager and/or to
10894*** bug-libtool@gnu.org
10895
10896_LT_EOF
10897	  fi ;;
10898	esac
10899      fi
10900      break
10901    fi
10902  done
10903  IFS="$lt_save_ifs"
10904  MAGIC_CMD="$lt_save_MAGIC_CMD"
10905  ;;
10906esac
10907fi
10908
10909MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10910if test -n "$MAGIC_CMD"; then
10911  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10912$as_echo "$MAGIC_CMD" >&6; }
10913else
10914  { $as_echo "$as_me:$LINENO: result: no" >&5
10915$as_echo "no" >&6; }
10916fi
10917
10918
10919  else
10920    MAGIC_CMD=:
10921  fi
10922fi
10923
10924  fi
10925  ;;
10926esac
10927
10928# Use C for the default configuration in the libtool script
10929
10930lt_save_CC="$CC"
10931ac_ext=c
10932ac_cpp='$CPP $CPPFLAGS'
10933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935ac_compiler_gnu=$ac_cv_c_compiler_gnu
10936
10937
10938# Source file extension for C test sources.
10939ac_ext=c
10940
10941# Object file extension for compiled C test sources.
10942objext=o
10943objext=$objext
10944
10945# Code to be used in simple compile tests
10946lt_simple_compile_test_code="int some_variable = 0;"
10947
10948# Code to be used in simple link tests
10949lt_simple_link_test_code='int main(){return(0);}'
10950
10951
10952
10953
10954
10955
10956
10957# If no C compiler was specified, use CC.
10958LTCC=${LTCC-"$CC"}
10959
10960# If no C compiler flags were specified, use CFLAGS.
10961LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10962
10963# Allow CC to be a program name with arguments.
10964compiler=$CC
10965
10966# Save the default compiler, since it gets overwritten when the other
10967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10968compiler_DEFAULT=$CC
10969
10970# save warnings/boilerplate of simple test code
10971ac_outfile=conftest.$ac_objext
10972echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10974_lt_compiler_boilerplate=`cat conftest.err`
10975$RM conftest*
10976
10977ac_outfile=conftest.$ac_objext
10978echo "$lt_simple_link_test_code" >conftest.$ac_ext
10979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10980_lt_linker_boilerplate=`cat conftest.err`
10981$RM -r conftest*
10982
10983
10984if test -n "$compiler"; then
10985
10986lt_prog_compiler_no_builtin_flag=
10987
10988if test "$GCC" = yes; then
10989  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10990
10991  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10992$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10993if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10994  $as_echo_n "(cached) " >&6
10995else
10996  lt_cv_prog_compiler_rtti_exceptions=no
10997   ac_outfile=conftest.$ac_objext
10998   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10999   lt_compiler_flag="-fno-rtti -fno-exceptions"
11000   # Insert the option either (1) after the last *FLAGS variable, or
11001   # (2) before a word containing "conftest.", or (3) at the end.
11002   # Note that $ac_compile itself does not contain backslashes and begins
11003   # with a dollar sign (not a hyphen), so the echo should work correctly.
11004   # The option is referenced via a variable to avoid confusing sed.
11005   lt_compile=`echo "$ac_compile" | $SED \
11006   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11007   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11008   -e 's:$: $lt_compiler_flag:'`
11009   (eval echo "\"\$as_me:11012: $lt_compile\"" >&5)
11010   (eval "$lt_compile" 2>conftest.err)
11011   ac_status=$?
11012   cat conftest.err >&5
11013   echo "$as_me:11016: \$? = $ac_status" >&5
11014   if (exit $ac_status) && test -s "$ac_outfile"; then
11015     # The compiler can only warn and ignore the option if not recognized
11016     # So say no if there are warnings other than the usual output.
11017     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11018     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11019     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11020       lt_cv_prog_compiler_rtti_exceptions=yes
11021     fi
11022   fi
11023   $RM conftest*
11024
11025fi
11026{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11027$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11028
11029if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11030    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11031else
11032    :
11033fi
11034
11035fi
11036
11037
11038
11039
11040
11041
11042  lt_prog_compiler_wl=
11043lt_prog_compiler_pic=
11044lt_prog_compiler_static=
11045
11046{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11047$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11048
11049  if test "$GCC" = yes; then
11050    lt_prog_compiler_wl='-Wl,'
11051    lt_prog_compiler_static='-static'
11052
11053    case $host_os in
11054      aix*)
11055      # All AIX code is PIC.
11056      if test "$host_cpu" = ia64; then
11057	# AIX 5 now supports IA64 processor
11058	lt_prog_compiler_static='-Bstatic'
11059      fi
11060      ;;
11061
11062    amigaos*)
11063      case $host_cpu in
11064      powerpc)
11065            # see comment about AmigaOS4 .so support
11066            lt_prog_compiler_pic='-fPIC'
11067        ;;
11068      m68k)
11069            # FIXME: we need at least 68020 code to build shared libraries, but
11070            # adding the `-m68020' flag to GCC prevents building anything better,
11071            # like `-m68040'.
11072            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11073        ;;
11074      esac
11075      ;;
11076
11077    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11078      # PIC is the default for these OSes.
11079      ;;
11080
11081    mingw* | cygwin* | pw32* | os2* | cegcc*)
11082      # This hack is so that the source file can tell whether it is being
11083      # built for inclusion in a dll (and should export symbols for example).
11084      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11085      # (--disable-auto-import) libraries
11086      lt_prog_compiler_pic='-DDLL_EXPORT'
11087      ;;
11088
11089    darwin* | rhapsody*)
11090      # PIC is the default on this platform
11091      # Common symbols not allowed in MH_DYLIB files
11092      lt_prog_compiler_pic='-fno-common'
11093      ;;
11094
11095    hpux*)
11096      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11097      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11098      # sets the default TLS model and affects inlining.
11099      case $host_cpu in
11100      hppa*64*)
11101	# +Z the default
11102	;;
11103      *)
11104	lt_prog_compiler_pic='-fPIC'
11105	;;
11106      esac
11107      ;;
11108
11109    interix[3-9]*)
11110      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11111      # Instead, we relocate shared libraries at runtime.
11112      ;;
11113
11114    msdosdjgpp*)
11115      # Just because we use GCC doesn't mean we suddenly get shared libraries
11116      # on systems that don't support them.
11117      lt_prog_compiler_can_build_shared=no
11118      enable_shared=no
11119      ;;
11120
11121    *nto* | *qnx*)
11122      # QNX uses GNU C++, but need to define -shared option too, otherwise
11123      # it will coredump.
11124      lt_prog_compiler_pic='-fPIC -shared'
11125      ;;
11126
11127    sysv4*MP*)
11128      if test -d /usr/nec; then
11129	lt_prog_compiler_pic=-Kconform_pic
11130      fi
11131      ;;
11132
11133    *)
11134      lt_prog_compiler_pic='-fPIC'
11135      ;;
11136    esac
11137  else
11138    # PORTME Check for flag to pass linker flags through the system compiler.
11139    case $host_os in
11140    aix*)
11141      lt_prog_compiler_wl='-Wl,'
11142      if test "$host_cpu" = ia64; then
11143	# AIX 5 now supports IA64 processor
11144	lt_prog_compiler_static='-Bstatic'
11145      else
11146	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11147      fi
11148      ;;
11149
11150    mingw* | cygwin* | pw32* | os2* | cegcc*)
11151      # This hack is so that the source file can tell whether it is being
11152      # built for inclusion in a dll (and should export symbols for example).
11153      lt_prog_compiler_pic='-DDLL_EXPORT'
11154      ;;
11155
11156    hpux9* | hpux10* | hpux11*)
11157      lt_prog_compiler_wl='-Wl,'
11158      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11159      # not for PA HP-UX.
11160      case $host_cpu in
11161      hppa*64*|ia64*)
11162	# +Z the default
11163	;;
11164      *)
11165	lt_prog_compiler_pic='+Z'
11166	;;
11167      esac
11168      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11169      lt_prog_compiler_static='${wl}-a ${wl}archive'
11170      ;;
11171
11172    irix5* | irix6* | nonstopux*)
11173      lt_prog_compiler_wl='-Wl,'
11174      # PIC (with -KPIC) is the default.
11175      lt_prog_compiler_static='-non_shared'
11176      ;;
11177
11178    linux* | k*bsd*-gnu)
11179      case $cc_basename in
11180      # old Intel for x86_64 which still supported -KPIC.
11181      ecc*)
11182	lt_prog_compiler_wl='-Wl,'
11183	lt_prog_compiler_pic='-KPIC'
11184	lt_prog_compiler_static='-static'
11185        ;;
11186      # icc used to be incompatible with GCC.
11187      # ICC 10 doesn't accept -KPIC any more.
11188      icc* | ifort*)
11189	lt_prog_compiler_wl='-Wl,'
11190	lt_prog_compiler_pic='-fPIC'
11191	lt_prog_compiler_static='-static'
11192        ;;
11193      # Lahey Fortran 8.1.
11194      lf95*)
11195	lt_prog_compiler_wl='-Wl,'
11196	lt_prog_compiler_pic='--shared'
11197	lt_prog_compiler_static='--static'
11198	;;
11199      pgcc* | pgf77* | pgf90* | pgf95*)
11200        # Portland Group compilers (*not* the Pentium gcc compiler,
11201	# which looks to be a dead project)
11202	lt_prog_compiler_wl='-Wl,'
11203	lt_prog_compiler_pic='-fpic'
11204	lt_prog_compiler_static='-Bstatic'
11205        ;;
11206      ccc*)
11207        lt_prog_compiler_wl='-Wl,'
11208        # All Alpha code is PIC.
11209        lt_prog_compiler_static='-non_shared'
11210        ;;
11211      xl*)
11212	# IBM XL C 8.0/Fortran 10.1 on PPC
11213	lt_prog_compiler_wl='-Wl,'
11214	lt_prog_compiler_pic='-qpic'
11215	lt_prog_compiler_static='-qstaticlink'
11216	;;
11217      *)
11218	case `$CC -V 2>&1 | sed 5q` in
11219	*Sun\ C*)
11220	  # Sun C 5.9
11221	  lt_prog_compiler_pic='-KPIC'
11222	  lt_prog_compiler_static='-Bstatic'
11223	  lt_prog_compiler_wl='-Wl,'
11224	  ;;
11225	*Sun\ F*)
11226	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11227	  lt_prog_compiler_pic='-KPIC'
11228	  lt_prog_compiler_static='-Bstatic'
11229	  lt_prog_compiler_wl=''
11230	  ;;
11231	esac
11232	;;
11233      esac
11234      ;;
11235
11236    newsos6)
11237      lt_prog_compiler_pic='-KPIC'
11238      lt_prog_compiler_static='-Bstatic'
11239      ;;
11240
11241    *nto* | *qnx*)
11242      # QNX uses GNU C++, but need to define -shared option too, otherwise
11243      # it will coredump.
11244      lt_prog_compiler_pic='-fPIC -shared'
11245      ;;
11246
11247    osf3* | osf4* | osf5*)
11248      lt_prog_compiler_wl='-Wl,'
11249      # All OSF/1 code is PIC.
11250      lt_prog_compiler_static='-non_shared'
11251      ;;
11252
11253    rdos*)
11254      lt_prog_compiler_static='-non_shared'
11255      ;;
11256
11257    solaris*)
11258      lt_prog_compiler_pic='-KPIC'
11259      lt_prog_compiler_static='-Bstatic'
11260      case $cc_basename in
11261      f77* | f90* | f95*)
11262	lt_prog_compiler_wl='-Qoption ld ';;
11263      *)
11264	lt_prog_compiler_wl='-Wl,';;
11265      esac
11266      ;;
11267
11268    sunos4*)
11269      lt_prog_compiler_wl='-Qoption ld '
11270      lt_prog_compiler_pic='-PIC'
11271      lt_prog_compiler_static='-Bstatic'
11272      ;;
11273
11274    sysv4 | sysv4.2uw2* | sysv4.3*)
11275      lt_prog_compiler_wl='-Wl,'
11276      lt_prog_compiler_pic='-KPIC'
11277      lt_prog_compiler_static='-Bstatic'
11278      ;;
11279
11280    sysv4*MP*)
11281      if test -d /usr/nec ;then
11282	lt_prog_compiler_pic='-Kconform_pic'
11283	lt_prog_compiler_static='-Bstatic'
11284      fi
11285      ;;
11286
11287    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11288      lt_prog_compiler_wl='-Wl,'
11289      lt_prog_compiler_pic='-KPIC'
11290      lt_prog_compiler_static='-Bstatic'
11291      ;;
11292
11293    unicos*)
11294      lt_prog_compiler_wl='-Wl,'
11295      lt_prog_compiler_can_build_shared=no
11296      ;;
11297
11298    uts4*)
11299      lt_prog_compiler_pic='-pic'
11300      lt_prog_compiler_static='-Bstatic'
11301      ;;
11302
11303    *)
11304      lt_prog_compiler_can_build_shared=no
11305      ;;
11306    esac
11307  fi
11308
11309case $host_os in
11310  # For platforms which do not support PIC, -DPIC is meaningless:
11311  *djgpp*)
11312    lt_prog_compiler_pic=
11313    ;;
11314  *)
11315    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11316    ;;
11317esac
11318{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11319$as_echo "$lt_prog_compiler_pic" >&6; }
11320
11321
11322
11323
11324
11325
11326#
11327# Check to make sure the PIC flag actually works.
11328#
11329if test -n "$lt_prog_compiler_pic"; then
11330  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11331$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11332if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11333  $as_echo_n "(cached) " >&6
11334else
11335  lt_cv_prog_compiler_pic_works=no
11336   ac_outfile=conftest.$ac_objext
11337   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11338   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11339   # Insert the option either (1) after the last *FLAGS variable, or
11340   # (2) before a word containing "conftest.", or (3) at the end.
11341   # Note that $ac_compile itself does not contain backslashes and begins
11342   # with a dollar sign (not a hyphen), so the echo should work correctly.
11343   # The option is referenced via a variable to avoid confusing sed.
11344   lt_compile=`echo "$ac_compile" | $SED \
11345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11347   -e 's:$: $lt_compiler_flag:'`
11348   (eval echo "\"\$as_me:11351: $lt_compile\"" >&5)
11349   (eval "$lt_compile" 2>conftest.err)
11350   ac_status=$?
11351   cat conftest.err >&5
11352   echo "$as_me:11355: \$? = $ac_status" >&5
11353   if (exit $ac_status) && test -s "$ac_outfile"; then
11354     # The compiler can only warn and ignore the option if not recognized
11355     # So say no if there are warnings other than the usual output.
11356     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11357     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11358     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11359       lt_cv_prog_compiler_pic_works=yes
11360     fi
11361   fi
11362   $RM conftest*
11363
11364fi
11365{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11366$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11367
11368if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11369    case $lt_prog_compiler_pic in
11370     "" | " "*) ;;
11371     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11372     esac
11373else
11374    lt_prog_compiler_pic=
11375     lt_prog_compiler_can_build_shared=no
11376fi
11377
11378fi
11379
11380
11381
11382
11383
11384
11385#
11386# Check to make sure the static flag actually works.
11387#
11388wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11389{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11390$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11391if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11392  $as_echo_n "(cached) " >&6
11393else
11394  lt_cv_prog_compiler_static_works=no
11395   save_LDFLAGS="$LDFLAGS"
11396   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11397   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11398   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11399     # The linker can only warn and ignore the option if not recognized
11400     # So say no if there are warnings
11401     if test -s conftest.err; then
11402       # Append any errors to the config.log.
11403       cat conftest.err 1>&5
11404       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11405       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11406       if diff conftest.exp conftest.er2 >/dev/null; then
11407         lt_cv_prog_compiler_static_works=yes
11408       fi
11409     else
11410       lt_cv_prog_compiler_static_works=yes
11411     fi
11412   fi
11413   $RM -r conftest*
11414   LDFLAGS="$save_LDFLAGS"
11415
11416fi
11417{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11418$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11419
11420if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11421    :
11422else
11423    lt_prog_compiler_static=
11424fi
11425
11426
11427
11428
11429
11430
11431
11432  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11433$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11434if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11435  $as_echo_n "(cached) " >&6
11436else
11437  lt_cv_prog_compiler_c_o=no
11438   $RM -r conftest 2>/dev/null
11439   mkdir conftest
11440   cd conftest
11441   mkdir out
11442   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11443
11444   lt_compiler_flag="-o out/conftest2.$ac_objext"
11445   # Insert the option either (1) after the last *FLAGS variable, or
11446   # (2) before a word containing "conftest.", or (3) at the end.
11447   # Note that $ac_compile itself does not contain backslashes and begins
11448   # with a dollar sign (not a hyphen), so the echo should work correctly.
11449   lt_compile=`echo "$ac_compile" | $SED \
11450   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11451   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11452   -e 's:$: $lt_compiler_flag:'`
11453   (eval echo "\"\$as_me:11456: $lt_compile\"" >&5)
11454   (eval "$lt_compile" 2>out/conftest.err)
11455   ac_status=$?
11456   cat out/conftest.err >&5
11457   echo "$as_me:11460: \$? = $ac_status" >&5
11458   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11459   then
11460     # The compiler can only warn and ignore the option if not recognized
11461     # So say no if there are warnings
11462     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11463     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11464     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11465       lt_cv_prog_compiler_c_o=yes
11466     fi
11467   fi
11468   chmod u+w . 2>&5
11469   $RM conftest*
11470   # SGI C++ compiler will create directory out/ii_files/ for
11471   # template instantiation
11472   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11473   $RM out/* && rmdir out
11474   cd ..
11475   $RM -r conftest
11476   $RM conftest*
11477
11478fi
11479{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11480$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11481
11482
11483
11484
11485
11486
11487  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11488$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11489if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11490  $as_echo_n "(cached) " >&6
11491else
11492  lt_cv_prog_compiler_c_o=no
11493   $RM -r conftest 2>/dev/null
11494   mkdir conftest
11495   cd conftest
11496   mkdir out
11497   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11498
11499   lt_compiler_flag="-o out/conftest2.$ac_objext"
11500   # Insert the option either (1) after the last *FLAGS variable, or
11501   # (2) before a word containing "conftest.", or (3) at the end.
11502   # Note that $ac_compile itself does not contain backslashes and begins
11503   # with a dollar sign (not a hyphen), so the echo should work correctly.
11504   lt_compile=`echo "$ac_compile" | $SED \
11505   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11506   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11507   -e 's:$: $lt_compiler_flag:'`
11508   (eval echo "\"\$as_me:11511: $lt_compile\"" >&5)
11509   (eval "$lt_compile" 2>out/conftest.err)
11510   ac_status=$?
11511   cat out/conftest.err >&5
11512   echo "$as_me:11515: \$? = $ac_status" >&5
11513   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11514   then
11515     # The compiler can only warn and ignore the option if not recognized
11516     # So say no if there are warnings
11517     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11518     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11519     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11520       lt_cv_prog_compiler_c_o=yes
11521     fi
11522   fi
11523   chmod u+w . 2>&5
11524   $RM conftest*
11525   # SGI C++ compiler will create directory out/ii_files/ for
11526   # template instantiation
11527   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11528   $RM out/* && rmdir out
11529   cd ..
11530   $RM -r conftest
11531   $RM conftest*
11532
11533fi
11534{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11535$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11536
11537
11538
11539
11540hard_links="nottested"
11541if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11542  # do not overwrite the value of need_locks provided by the user
11543  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11544$as_echo_n "checking if we can lock with hard links... " >&6; }
11545  hard_links=yes
11546  $RM conftest*
11547  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11548  touch conftest.a
11549  ln conftest.a conftest.b 2>&5 || hard_links=no
11550  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11551  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11552$as_echo "$hard_links" >&6; }
11553  if test "$hard_links" = no; then
11554    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11555$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11556    need_locks=warn
11557  fi
11558else
11559  need_locks=no
11560fi
11561
11562
11563
11564
11565
11566
11567  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11568$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11569
11570  runpath_var=
11571  allow_undefined_flag=
11572  always_export_symbols=no
11573  archive_cmds=
11574  archive_expsym_cmds=
11575  compiler_needs_object=no
11576  enable_shared_with_static_runtimes=no
11577  export_dynamic_flag_spec=
11578  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11579  hardcode_automatic=no
11580  hardcode_direct=no
11581  hardcode_direct_absolute=no
11582  hardcode_libdir_flag_spec=
11583  hardcode_libdir_flag_spec_ld=
11584  hardcode_libdir_separator=
11585  hardcode_minus_L=no
11586  hardcode_shlibpath_var=unsupported
11587  inherit_rpath=no
11588  link_all_deplibs=unknown
11589  module_cmds=
11590  module_expsym_cmds=
11591  old_archive_from_new_cmds=
11592  old_archive_from_expsyms_cmds=
11593  thread_safe_flag_spec=
11594  whole_archive_flag_spec=
11595  # include_expsyms should be a list of space-separated symbols to be *always*
11596  # included in the symbol list
11597  include_expsyms=
11598  # exclude_expsyms can be an extended regexp of symbols to exclude
11599  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11600  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11601  # as well as any symbol that contains `d'.
11602  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11603  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11604  # platforms (ab)use it in PIC code, but their linkers get confused if
11605  # the symbol is explicitly referenced.  Since portable code cannot
11606  # rely on this symbol name, it's probably fine to never include it in
11607  # preloaded symbol tables.
11608  # Exclude shared library initialization/finalization symbols.
11609  extract_expsyms_cmds=
11610
11611  case $host_os in
11612  cygwin* | mingw* | pw32* | cegcc*)
11613    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11614    # When not using gcc, we currently assume that we are using
11615    # Microsoft Visual C++.
11616    if test "$GCC" != yes; then
11617      with_gnu_ld=no
11618    fi
11619    ;;
11620  interix*)
11621    # we just hope/assume this is gcc and not c89 (= MSVC++)
11622    with_gnu_ld=yes
11623    ;;
11624  openbsd*)
11625    with_gnu_ld=no
11626    ;;
11627  esac
11628
11629  ld_shlibs=yes
11630  if test "$with_gnu_ld" = yes; then
11631    # If archive_cmds runs LD, not CC, wlarc should be empty
11632    wlarc='${wl}'
11633
11634    # Set some defaults for GNU ld with shared library support. These
11635    # are reset later if shared libraries are not supported. Putting them
11636    # here allows them to be overridden if necessary.
11637    runpath_var=LD_RUN_PATH
11638    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11639    export_dynamic_flag_spec='${wl}--export-dynamic'
11640    # ancient GNU ld didn't support --whole-archive et. al.
11641    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11642      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11643    else
11644      whole_archive_flag_spec=
11645    fi
11646    supports_anon_versioning=no
11647    case `$LD -v 2>&1` in
11648      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11649      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11650      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11651      *\ 2.11.*) ;; # other 2.11 versions
11652      *) supports_anon_versioning=yes ;;
11653    esac
11654
11655    # See if GNU ld supports shared libraries.
11656    case $host_os in
11657    aix[3-9]*)
11658      # On AIX/PPC, the GNU linker is very broken
11659      if test "$host_cpu" != ia64; then
11660	ld_shlibs=no
11661	cat <<_LT_EOF 1>&2
11662
11663*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11664*** to be unable to reliably create shared libraries on AIX.
11665*** Therefore, libtool is disabling shared libraries support.  If you
11666*** really care for shared libraries, you may want to modify your PATH
11667*** so that a non-GNU linker is found, and then restart.
11668
11669_LT_EOF
11670      fi
11671      ;;
11672
11673    amigaos*)
11674      case $host_cpu in
11675      powerpc)
11676            # see comment about AmigaOS4 .so support
11677            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11678            archive_expsym_cmds=''
11679        ;;
11680      m68k)
11681            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)'
11682            hardcode_libdir_flag_spec='-L$libdir'
11683            hardcode_minus_L=yes
11684        ;;
11685      esac
11686      ;;
11687
11688    beos*)
11689      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11690	allow_undefined_flag=unsupported
11691	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11692	# support --undefined.  This deserves some investigation.  FIXME
11693	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11694      else
11695	ld_shlibs=no
11696      fi
11697      ;;
11698
11699    cygwin* | mingw* | pw32* | cegcc*)
11700      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11701      # as there is no search path for DLLs.
11702      hardcode_libdir_flag_spec='-L$libdir'
11703      allow_undefined_flag=unsupported
11704      always_export_symbols=no
11705      enable_shared_with_static_runtimes=yes
11706      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11707
11708      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11709        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11710	# If the export-symbols file already is a .def file (1st line
11711	# is EXPORTS), use it as is; otherwise, prepend...
11712	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11713	  cp $export_symbols $output_objdir/$soname.def;
11714	else
11715	  echo EXPORTS > $output_objdir/$soname.def;
11716	  cat $export_symbols >> $output_objdir/$soname.def;
11717	fi~
11718	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11719      else
11720	ld_shlibs=no
11721      fi
11722      ;;
11723
11724    interix[3-9]*)
11725      hardcode_direct=no
11726      hardcode_shlibpath_var=no
11727      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11728      export_dynamic_flag_spec='${wl}-E'
11729      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11730      # Instead, shared libraries are loaded at an image base (0x10000000 by
11731      # default) and relocated if they conflict, which is a slow very memory
11732      # consuming and fragmenting process.  To avoid this, we pick a random,
11733      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11734      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11735      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11736      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11737      ;;
11738
11739    gnu* | linux* | tpf* | k*bsd*-gnu)
11740      tmp_diet=no
11741      if test "$host_os" = linux-dietlibc; then
11742	case $cc_basename in
11743	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11744	esac
11745      fi
11746      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11747	 && test "$tmp_diet" = no
11748      then
11749	tmp_addflag=
11750	tmp_sharedflag='-shared'
11751	case $cc_basename,$host_cpu in
11752        pgcc*)				# Portland Group C compiler
11753	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11754	  tmp_addflag=' $pic_flag'
11755	  ;;
11756	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11757	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11758	  tmp_addflag=' $pic_flag -Mnomain' ;;
11759	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11760	  tmp_addflag=' -i_dynamic' ;;
11761	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11762	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11763	ifc* | ifort*)			# Intel Fortran compiler
11764	  tmp_addflag=' -nofor_main' ;;
11765	lf95*)				# Lahey Fortran 8.1
11766	  whole_archive_flag_spec=
11767	  tmp_sharedflag='--shared' ;;
11768	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
11769	  tmp_sharedflag='-qmkshrobj'
11770	  tmp_addflag= ;;
11771	esac
11772	case `$CC -V 2>&1 | sed 5q` in
11773	*Sun\ C*)			# Sun C 5.9
11774	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11775	  compiler_needs_object=yes
11776	  tmp_sharedflag='-G' ;;
11777	*Sun\ F*)			# Sun Fortran 8.3
11778	  tmp_sharedflag='-G' ;;
11779	esac
11780	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11781
11782        if test "x$supports_anon_versioning" = xyes; then
11783          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11784	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11785	    echo "local: *; };" >> $output_objdir/$libname.ver~
11786	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11787        fi
11788
11789	case $cc_basename in
11790	xlf*)
11791	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11792	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11793	  hardcode_libdir_flag_spec=
11794	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11795	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11796	  if test "x$supports_anon_versioning" = xyes; then
11797	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11798	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11799	      echo "local: *; };" >> $output_objdir/$libname.ver~
11800	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11801	  fi
11802	  ;;
11803	esac
11804      else
11805        ld_shlibs=no
11806      fi
11807      ;;
11808
11809    netbsd*)
11810      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11811	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11812	wlarc=
11813      else
11814	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11816      fi
11817      ;;
11818
11819    solaris*)
11820      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11821	ld_shlibs=no
11822	cat <<_LT_EOF 1>&2
11823
11824*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11825*** create shared libraries on Solaris systems.  Therefore, libtool
11826*** is disabling shared libraries support.  We urge you to upgrade GNU
11827*** binutils to release 2.9.1 or newer.  Another option is to modify
11828*** your PATH or compiler configuration so that the native linker is
11829*** used, and then restart.
11830
11831_LT_EOF
11832      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11833	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11835      else
11836	ld_shlibs=no
11837      fi
11838      ;;
11839
11840    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11841      case `$LD -v 2>&1` in
11842        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11843	ld_shlibs=no
11844	cat <<_LT_EOF 1>&2
11845
11846*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11847*** reliably create shared libraries on SCO systems.  Therefore, libtool
11848*** is disabling shared libraries support.  We urge you to upgrade GNU
11849*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11850*** your PATH or compiler configuration so that the native linker is
11851*** used, and then restart.
11852
11853_LT_EOF
11854	;;
11855	*)
11856	  # For security reasons, it is highly recommended that you always
11857	  # use absolute paths for naming shared libraries, and exclude the
11858	  # DT_RUNPATH tag from executables and libraries.  But doing so
11859	  # requires that you compile everything twice, which is a pain.
11860	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11861	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11862	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11863	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11864	  else
11865	    ld_shlibs=no
11866	  fi
11867	;;
11868      esac
11869      ;;
11870
11871    sunos4*)
11872      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11873      wlarc=
11874      hardcode_direct=yes
11875      hardcode_shlibpath_var=no
11876      ;;
11877
11878    *)
11879      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11880	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11881	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11882      else
11883	ld_shlibs=no
11884      fi
11885      ;;
11886    esac
11887
11888    if test "$ld_shlibs" = no; then
11889      runpath_var=
11890      hardcode_libdir_flag_spec=
11891      export_dynamic_flag_spec=
11892      whole_archive_flag_spec=
11893    fi
11894  else
11895    # PORTME fill in a description of your system's linker (not GNU ld)
11896    case $host_os in
11897    aix3*)
11898      allow_undefined_flag=unsupported
11899      always_export_symbols=yes
11900      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'
11901      # Note: this linker hardcodes the directories in LIBPATH if there
11902      # are no directories specified by -L.
11903      hardcode_minus_L=yes
11904      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11905	# Neither direct hardcoding nor static linking is supported with a
11906	# broken collect2.
11907	hardcode_direct=unsupported
11908      fi
11909      ;;
11910
11911    aix[4-9]*)
11912      if test "$host_cpu" = ia64; then
11913	# On IA64, the linker does run time linking by default, so we don't
11914	# have to do anything special.
11915	aix_use_runtimelinking=no
11916	exp_sym_flag='-Bexport'
11917	no_entry_flag=""
11918      else
11919	# If we're using GNU nm, then we don't want the "-C" option.
11920	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11921	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11922	  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'
11923	else
11924	  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'
11925	fi
11926	aix_use_runtimelinking=no
11927
11928	# Test if we are trying to use run time linking or normal
11929	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11930	# need to do runtime linking.
11931	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11932	  for ld_flag in $LDFLAGS; do
11933	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11934	    aix_use_runtimelinking=yes
11935	    break
11936	  fi
11937	  done
11938	  ;;
11939	esac
11940
11941	exp_sym_flag='-bexport'
11942	no_entry_flag='-bnoentry'
11943      fi
11944
11945      # When large executables or shared objects are built, AIX ld can
11946      # have problems creating the table of contents.  If linking a library
11947      # or program results in "error TOC overflow" add -mminimal-toc to
11948      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11949      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11950
11951      archive_cmds=''
11952      hardcode_direct=yes
11953      hardcode_direct_absolute=yes
11954      hardcode_libdir_separator=':'
11955      link_all_deplibs=yes
11956      file_list_spec='${wl}-f,'
11957
11958      if test "$GCC" = yes; then
11959	case $host_os in aix4.[012]|aix4.[012].*)
11960	# We only want to do this on AIX 4.2 and lower, the check
11961	# below for broken collect2 doesn't work under 4.3+
11962	  collect2name=`${CC} -print-prog-name=collect2`
11963	  if test -f "$collect2name" &&
11964	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11965	  then
11966	  # We have reworked collect2
11967	  :
11968	  else
11969	  # We have old collect2
11970	  hardcode_direct=unsupported
11971	  # It fails to find uninstalled libraries when the uninstalled
11972	  # path is not listed in the libpath.  Setting hardcode_minus_L
11973	  # to unsupported forces relinking
11974	  hardcode_minus_L=yes
11975	  hardcode_libdir_flag_spec='-L$libdir'
11976	  hardcode_libdir_separator=
11977	  fi
11978	  ;;
11979	esac
11980	shared_flag='-shared'
11981	if test "$aix_use_runtimelinking" = yes; then
11982	  shared_flag="$shared_flag "'${wl}-G'
11983	fi
11984      else
11985	# not using gcc
11986	if test "$host_cpu" = ia64; then
11987	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11988	# chokes on -Wl,-G. The following line is correct:
11989	  shared_flag='-G'
11990	else
11991	  if test "$aix_use_runtimelinking" = yes; then
11992	    shared_flag='${wl}-G'
11993	  else
11994	    shared_flag='${wl}-bM:SRE'
11995	  fi
11996	fi
11997      fi
11998
11999      export_dynamic_flag_spec='${wl}-bexpall'
12000      # It seems that -bexpall does not export symbols beginning with
12001      # underscore (_), so it is better to generate a list of symbols to export.
12002      always_export_symbols=yes
12003      if test "$aix_use_runtimelinking" = yes; then
12004	# Warning - without using the other runtime loading flags (-brtl),
12005	# -berok will link without error, but may produce a broken library.
12006	allow_undefined_flag='-berok'
12007        # Determine the default libpath from the value encoded in an
12008        # empty executable.
12009        cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h.  */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h.  */
12015
12016int
12017main ()
12018{
12019
12020  ;
12021  return 0;
12022}
12023_ACEOF
12024rm -f conftest.$ac_objext conftest$ac_exeext
12025if { (ac_try="$ac_link"
12026case "(($ac_try" in
12027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028  *) ac_try_echo=$ac_try;;
12029esac
12030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12031$as_echo "$ac_try_echo") >&5
12032  (eval "$ac_link") 2>conftest.er1
12033  ac_status=$?
12034  grep -v '^ *+' conftest.er1 >conftest.err
12035  rm -f conftest.er1
12036  cat conftest.err >&5
12037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038  (exit $ac_status); } && {
12039	 test -z "$ac_c_werror_flag" ||
12040	 test ! -s conftest.err
12041       } && test -s conftest$ac_exeext && {
12042	 test "$cross_compiling" = yes ||
12043	 $as_test_x conftest$ac_exeext
12044       }; then
12045
12046lt_aix_libpath_sed='
12047    /Import File Strings/,/^$/ {
12048	/^0/ {
12049	    s/^0  *\(.*\)$/\1/
12050	    p
12051	}
12052    }'
12053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12054# Check for a 64-bit object if we didn't find anything.
12055if test -z "$aix_libpath"; then
12056  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12057fi
12058else
12059  $as_echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062
12063fi
12064
12065rm -rf conftest.dSYM
12066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12067      conftest$ac_exeext conftest.$ac_ext
12068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12069
12070        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12071        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12072      else
12073	if test "$host_cpu" = ia64; then
12074	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12075	  allow_undefined_flag="-z nodefs"
12076	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12077	else
12078	 # Determine the default libpath from the value encoded in an
12079	 # empty executable.
12080	 cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h.  */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h.  */
12086
12087int
12088main ()
12089{
12090
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext conftest$ac_exeext
12096if { (ac_try="$ac_link"
12097case "(($ac_try" in
12098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099  *) ac_try_echo=$ac_try;;
12100esac
12101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12102$as_echo "$ac_try_echo") >&5
12103  (eval "$ac_link") 2>conftest.er1
12104  ac_status=$?
12105  grep -v '^ *+' conftest.er1 >conftest.err
12106  rm -f conftest.er1
12107  cat conftest.err >&5
12108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109  (exit $ac_status); } && {
12110	 test -z "$ac_c_werror_flag" ||
12111	 test ! -s conftest.err
12112       } && test -s conftest$ac_exeext && {
12113	 test "$cross_compiling" = yes ||
12114	 $as_test_x conftest$ac_exeext
12115       }; then
12116
12117lt_aix_libpath_sed='
12118    /Import File Strings/,/^$/ {
12119	/^0/ {
12120	    s/^0  *\(.*\)$/\1/
12121	    p
12122	}
12123    }'
12124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12125# Check for a 64-bit object if we didn't find anything.
12126if test -z "$aix_libpath"; then
12127  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12128fi
12129else
12130  $as_echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133
12134fi
12135
12136rm -rf conftest.dSYM
12137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12138      conftest$ac_exeext conftest.$ac_ext
12139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12140
12141	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12142	  # Warning - without using the other run time loading flags,
12143	  # -berok will link without error, but may produce a broken library.
12144	  no_undefined_flag=' ${wl}-bernotok'
12145	  allow_undefined_flag=' ${wl}-berok'
12146	  # Exported symbols can be pulled into shared objects from archives
12147	  whole_archive_flag_spec='$convenience'
12148	  archive_cmds_need_lc=yes
12149	  # This is similar to how AIX traditionally builds its shared libraries.
12150	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12151	fi
12152      fi
12153      ;;
12154
12155    amigaos*)
12156      case $host_cpu in
12157      powerpc)
12158            # see comment about AmigaOS4 .so support
12159            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12160            archive_expsym_cmds=''
12161        ;;
12162      m68k)
12163            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)'
12164            hardcode_libdir_flag_spec='-L$libdir'
12165            hardcode_minus_L=yes
12166        ;;
12167      esac
12168      ;;
12169
12170    bsdi[45]*)
12171      export_dynamic_flag_spec=-rdynamic
12172      ;;
12173
12174    cygwin* | mingw* | pw32* | cegcc*)
12175      # When not using gcc, we currently assume that we are using
12176      # Microsoft Visual C++.
12177      # hardcode_libdir_flag_spec is actually meaningless, as there is
12178      # no search path for DLLs.
12179      hardcode_libdir_flag_spec=' '
12180      allow_undefined_flag=unsupported
12181      # Tell ltmain to make .lib files, not .a files.
12182      libext=lib
12183      # Tell ltmain to make .dll files, not .so files.
12184      shrext_cmds=".dll"
12185      # FIXME: Setting linknames here is a bad hack.
12186      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12187      # The linker will automatically build a .lib file if we build a DLL.
12188      old_archive_from_new_cmds='true'
12189      # FIXME: Should let the user specify the lib program.
12190      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12191      fix_srcfile_path='`cygpath -w "$srcfile"`'
12192      enable_shared_with_static_runtimes=yes
12193      ;;
12194
12195    darwin* | rhapsody*)
12196
12197
12198  archive_cmds_need_lc=no
12199  hardcode_direct=no
12200  hardcode_automatic=yes
12201  hardcode_shlibpath_var=unsupported
12202  whole_archive_flag_spec=''
12203  link_all_deplibs=yes
12204  allow_undefined_flag="$_lt_dar_allow_undefined"
12205  case $cc_basename in
12206     ifort*) _lt_dar_can_shared=yes ;;
12207     *) _lt_dar_can_shared=$GCC ;;
12208  esac
12209  if test "$_lt_dar_can_shared" = "yes"; then
12210    output_verbose_link_cmd=echo
12211    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12212    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12213    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12214    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12215
12216  else
12217  ld_shlibs=no
12218  fi
12219
12220      ;;
12221
12222    dgux*)
12223      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12224      hardcode_libdir_flag_spec='-L$libdir'
12225      hardcode_shlibpath_var=no
12226      ;;
12227
12228    freebsd1*)
12229      ld_shlibs=no
12230      ;;
12231
12232    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12233    # support.  Future versions do this automatically, but an explicit c++rt0.o
12234    # does not break anything, and helps significantly (at the cost of a little
12235    # extra space).
12236    freebsd2.2*)
12237      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12238      hardcode_libdir_flag_spec='-R$libdir'
12239      hardcode_direct=yes
12240      hardcode_shlibpath_var=no
12241      ;;
12242
12243    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12244    freebsd2*)
12245      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12246      hardcode_direct=yes
12247      hardcode_minus_L=yes
12248      hardcode_shlibpath_var=no
12249      ;;
12250
12251    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12252    freebsd* | dragonfly*)
12253      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12254      hardcode_libdir_flag_spec='-R$libdir'
12255      hardcode_direct=yes
12256      hardcode_shlibpath_var=no
12257      ;;
12258
12259    hpux9*)
12260      if test "$GCC" = yes; then
12261	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'
12262      else
12263	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'
12264      fi
12265      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12266      hardcode_libdir_separator=:
12267      hardcode_direct=yes
12268
12269      # hardcode_minus_L: Not really in the search PATH,
12270      # but as the default location of the library.
12271      hardcode_minus_L=yes
12272      export_dynamic_flag_spec='${wl}-E'
12273      ;;
12274
12275    hpux10*)
12276      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12277	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12278      else
12279	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12280      fi
12281      if test "$with_gnu_ld" = no; then
12282	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12283	hardcode_libdir_flag_spec_ld='+b $libdir'
12284	hardcode_libdir_separator=:
12285	hardcode_direct=yes
12286	hardcode_direct_absolute=yes
12287	export_dynamic_flag_spec='${wl}-E'
12288	# hardcode_minus_L: Not really in the search PATH,
12289	# but as the default location of the library.
12290	hardcode_minus_L=yes
12291      fi
12292      ;;
12293
12294    hpux11*)
12295      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12296	case $host_cpu in
12297	hppa*64*)
12298	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12299	  ;;
12300	ia64*)
12301	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12302	  ;;
12303	*)
12304	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12305	  ;;
12306	esac
12307      else
12308	case $host_cpu in
12309	hppa*64*)
12310	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12311	  ;;
12312	ia64*)
12313	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12314	  ;;
12315	*)
12316	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12317	  ;;
12318	esac
12319      fi
12320      if test "$with_gnu_ld" = no; then
12321	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12322	hardcode_libdir_separator=:
12323
12324	case $host_cpu in
12325	hppa*64*|ia64*)
12326	  hardcode_direct=no
12327	  hardcode_shlibpath_var=no
12328	  ;;
12329	*)
12330	  hardcode_direct=yes
12331	  hardcode_direct_absolute=yes
12332	  export_dynamic_flag_spec='${wl}-E'
12333
12334	  # hardcode_minus_L: Not really in the search PATH,
12335	  # but as the default location of the library.
12336	  hardcode_minus_L=yes
12337	  ;;
12338	esac
12339      fi
12340      ;;
12341
12342    irix5* | irix6* | nonstopux*)
12343      if test "$GCC" = yes; then
12344	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12345	# Try to use the -exported_symbol ld option, if it does not
12346	# work, assume that -exports_file does not work either and
12347	# implicitly export all symbols.
12348        save_LDFLAGS="$LDFLAGS"
12349        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12350        cat >conftest.$ac_ext <<_ACEOF
12351int foo(void) {}
12352_ACEOF
12353rm -f conftest.$ac_objext conftest$ac_exeext
12354if { (ac_try="$ac_link"
12355case "(($ac_try" in
12356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357  *) ac_try_echo=$ac_try;;
12358esac
12359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360$as_echo "$ac_try_echo") >&5
12361  (eval "$ac_link") 2>conftest.er1
12362  ac_status=$?
12363  grep -v '^ *+' conftest.er1 >conftest.err
12364  rm -f conftest.er1
12365  cat conftest.err >&5
12366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); } && {
12368	 test -z "$ac_c_werror_flag" ||
12369	 test ! -s conftest.err
12370       } && test -s conftest$ac_exeext && {
12371	 test "$cross_compiling" = yes ||
12372	 $as_test_x conftest$ac_exeext
12373       }; then
12374  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12375
12376else
12377  $as_echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380
12381fi
12382
12383rm -rf conftest.dSYM
12384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385      conftest$ac_exeext conftest.$ac_ext
12386        LDFLAGS="$save_LDFLAGS"
12387      else
12388	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12389	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12390      fi
12391      archive_cmds_need_lc='no'
12392      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12393      hardcode_libdir_separator=:
12394      inherit_rpath=yes
12395      link_all_deplibs=yes
12396      ;;
12397
12398    netbsd*)
12399      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12400	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12401      else
12402	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12403      fi
12404      hardcode_libdir_flag_spec='-R$libdir'
12405      hardcode_direct=yes
12406      hardcode_shlibpath_var=no
12407      ;;
12408
12409    newsos6)
12410      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12411      hardcode_direct=yes
12412      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12413      hardcode_libdir_separator=:
12414      hardcode_shlibpath_var=no
12415      ;;
12416
12417    *nto* | *qnx*)
12418      ;;
12419
12420    openbsd*)
12421      if test -f /usr/libexec/ld.so; then
12422	hardcode_direct=yes
12423	hardcode_shlibpath_var=no
12424	hardcode_direct_absolute=yes
12425	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12426	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12427	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12428	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12429	  export_dynamic_flag_spec='${wl}-E'
12430	else
12431	  case $host_os in
12432	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12433	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12434	     hardcode_libdir_flag_spec='-R$libdir'
12435	     ;;
12436	   *)
12437	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12438	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12439	     ;;
12440	  esac
12441	fi
12442      else
12443	ld_shlibs=no
12444      fi
12445      ;;
12446
12447    os2*)
12448      hardcode_libdir_flag_spec='-L$libdir'
12449      hardcode_minus_L=yes
12450      allow_undefined_flag=unsupported
12451      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'
12452      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12453      ;;
12454
12455    osf3*)
12456      if test "$GCC" = yes; then
12457	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12458	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12459      else
12460	allow_undefined_flag=' -expect_unresolved \*'
12461	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12462      fi
12463      archive_cmds_need_lc='no'
12464      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12465      hardcode_libdir_separator=:
12466      ;;
12467
12468    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12469      if test "$GCC" = yes; then
12470	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12471	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12472	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12473      else
12474	allow_undefined_flag=' -expect_unresolved \*'
12475	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12476	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12477	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12478
12479	# Both c and cxx compiler support -rpath directly
12480	hardcode_libdir_flag_spec='-rpath $libdir'
12481      fi
12482      archive_cmds_need_lc='no'
12483      hardcode_libdir_separator=:
12484      ;;
12485
12486    solaris*)
12487      no_undefined_flag=' -z defs'
12488      if test "$GCC" = yes; then
12489	wlarc='${wl}'
12490	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12491	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12492	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12493      else
12494	case `$CC -V 2>&1` in
12495	*"Compilers 5.0"*)
12496	  wlarc=''
12497	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12498	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12499	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12500	  ;;
12501	*)
12502	  wlarc='${wl}'
12503	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12504	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12505	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12506	  ;;
12507	esac
12508      fi
12509      hardcode_libdir_flag_spec='-R$libdir'
12510      hardcode_shlibpath_var=no
12511      case $host_os in
12512      solaris2.[0-5] | solaris2.[0-5].*) ;;
12513      *)
12514	# The compiler driver will combine and reorder linker options,
12515	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12516	# but is careful enough not to reorder.
12517	# Supported since Solaris 2.6 (maybe 2.5.1?)
12518	if test "$GCC" = yes; then
12519	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12520	else
12521	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12522	fi
12523	;;
12524      esac
12525      link_all_deplibs=yes
12526      ;;
12527
12528    sunos4*)
12529      if test "x$host_vendor" = xsequent; then
12530	# Use $CC to link under sequent, because it throws in some extra .o
12531	# files that make .init and .fini sections work.
12532	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12533      else
12534	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12535      fi
12536      hardcode_libdir_flag_spec='-L$libdir'
12537      hardcode_direct=yes
12538      hardcode_minus_L=yes
12539      hardcode_shlibpath_var=no
12540      ;;
12541
12542    sysv4)
12543      case $host_vendor in
12544	sni)
12545	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12546	  hardcode_direct=yes # is this really true???
12547	;;
12548	siemens)
12549	  ## LD is ld it makes a PLAMLIB
12550	  ## CC just makes a GrossModule.
12551	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12552	  reload_cmds='$CC -r -o $output$reload_objs'
12553	  hardcode_direct=no
12554        ;;
12555	motorola)
12556	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12557	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12558	;;
12559      esac
12560      runpath_var='LD_RUN_PATH'
12561      hardcode_shlibpath_var=no
12562      ;;
12563
12564    sysv4.3*)
12565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12566      hardcode_shlibpath_var=no
12567      export_dynamic_flag_spec='-Bexport'
12568      ;;
12569
12570    sysv4*MP*)
12571      if test -d /usr/nec; then
12572	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12573	hardcode_shlibpath_var=no
12574	runpath_var=LD_RUN_PATH
12575	hardcode_runpath_var=yes
12576	ld_shlibs=yes
12577      fi
12578      ;;
12579
12580    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12581      no_undefined_flag='${wl}-z,text'
12582      archive_cmds_need_lc=no
12583      hardcode_shlibpath_var=no
12584      runpath_var='LD_RUN_PATH'
12585
12586      if test "$GCC" = yes; then
12587	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12588	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12589      else
12590	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12591	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12592      fi
12593      ;;
12594
12595    sysv5* | sco3.2v5* | sco5v6*)
12596      # Note: We can NOT use -z defs as we might desire, because we do not
12597      # link with -lc, and that would cause any symbols used from libc to
12598      # always be unresolved, which means just about no library would
12599      # ever link correctly.  If we're not using GNU ld we use -z text
12600      # though, which does catch some bad symbols but isn't as heavy-handed
12601      # as -z defs.
12602      no_undefined_flag='${wl}-z,text'
12603      allow_undefined_flag='${wl}-z,nodefs'
12604      archive_cmds_need_lc=no
12605      hardcode_shlibpath_var=no
12606      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12607      hardcode_libdir_separator=':'
12608      link_all_deplibs=yes
12609      export_dynamic_flag_spec='${wl}-Bexport'
12610      runpath_var='LD_RUN_PATH'
12611
12612      if test "$GCC" = yes; then
12613	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12614	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615      else
12616	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12617	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12618      fi
12619      ;;
12620
12621    uts4*)
12622      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12623      hardcode_libdir_flag_spec='-L$libdir'
12624      hardcode_shlibpath_var=no
12625      ;;
12626
12627    *)
12628      ld_shlibs=no
12629      ;;
12630    esac
12631
12632    if test x$host_vendor = xsni; then
12633      case $host in
12634      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12635	export_dynamic_flag_spec='${wl}-Blargedynsym'
12636	;;
12637      esac
12638    fi
12639  fi
12640
12641{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12642$as_echo "$ld_shlibs" >&6; }
12643test "$ld_shlibs" = no && can_build_shared=no
12644
12645with_gnu_ld=$with_gnu_ld
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661#
12662# Do we need to explicitly link libc?
12663#
12664case "x$archive_cmds_need_lc" in
12665x|xyes)
12666  # Assume -lc should be added
12667  archive_cmds_need_lc=yes
12668
12669  if test "$enable_shared" = yes && test "$GCC" = yes; then
12670    case $archive_cmds in
12671    *'~'*)
12672      # FIXME: we may have to deal with multi-command sequences.
12673      ;;
12674    '$CC '*)
12675      # Test whether the compiler implicitly links with -lc since on some
12676      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12677      # to ld, don't add -lc before -lgcc.
12678      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12679$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12680      $RM conftest*
12681      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12682
12683      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684  (eval $ac_compile) 2>&5
12685  ac_status=$?
12686  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687  (exit $ac_status); } 2>conftest.err; then
12688        soname=conftest
12689        lib=conftest
12690        libobjs=conftest.$ac_objext
12691        deplibs=
12692        wl=$lt_prog_compiler_wl
12693	pic_flag=$lt_prog_compiler_pic
12694        compiler_flags=-v
12695        linker_flags=-v
12696        verstring=
12697        output_objdir=.
12698        libname=conftest
12699        lt_save_allow_undefined_flag=$allow_undefined_flag
12700        allow_undefined_flag=
12701        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12702  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12703  ac_status=$?
12704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705  (exit $ac_status); }
12706        then
12707	  archive_cmds_need_lc=no
12708        else
12709	  archive_cmds_need_lc=yes
12710        fi
12711        allow_undefined_flag=$lt_save_allow_undefined_flag
12712      else
12713        cat conftest.err 1>&5
12714      fi
12715      $RM conftest*
12716      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12717$as_echo "$archive_cmds_need_lc" >&6; }
12718      ;;
12719    esac
12720  fi
12721  ;;
12722esac
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12881$as_echo_n "checking dynamic linker characteristics... " >&6; }
12882
12883if test "$GCC" = yes; then
12884  case $host_os in
12885    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12886    *) lt_awk_arg="/^libraries:/" ;;
12887  esac
12888  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12889  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12890    # if the path contains ";" then we assume it to be the separator
12891    # otherwise default to the standard path separator (i.e. ":") - it is
12892    # assumed that no part of a normal pathname contains ";" but that should
12893    # okay in the real world where ";" in dirpaths is itself problematic.
12894    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12895  else
12896    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12897  fi
12898  # Ok, now we have the path, separated by spaces, we can step through it
12899  # and add multilib dir if necessary.
12900  lt_tmp_lt_search_path_spec=
12901  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12902  for lt_sys_path in $lt_search_path_spec; do
12903    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12904      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12905    else
12906      test -d "$lt_sys_path" && \
12907	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12908    fi
12909  done
12910  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12911BEGIN {RS=" "; FS="/|\n";} {
12912  lt_foo="";
12913  lt_count=0;
12914  for (lt_i = NF; lt_i > 0; lt_i--) {
12915    if ($lt_i != "" && $lt_i != ".") {
12916      if ($lt_i == "..") {
12917        lt_count++;
12918      } else {
12919        if (lt_count == 0) {
12920          lt_foo="/" $lt_i lt_foo;
12921        } else {
12922          lt_count--;
12923        }
12924      }
12925    }
12926  }
12927  if (lt_foo != "") { lt_freq[lt_foo]++; }
12928  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12929}'`
12930  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12931else
12932  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12933fi
12934library_names_spec=
12935libname_spec='lib$name'
12936soname_spec=
12937shrext_cmds=".so"
12938postinstall_cmds=
12939postuninstall_cmds=
12940finish_cmds=
12941finish_eval=
12942shlibpath_var=
12943shlibpath_overrides_runpath=unknown
12944version_type=none
12945dynamic_linker="$host_os ld.so"
12946sys_lib_dlsearch_path_spec="/lib /usr/lib"
12947need_lib_prefix=unknown
12948hardcode_into_libs=no
12949
12950# when you set need_version to no, make sure it does not cause -set_version
12951# flags to be left without arguments
12952need_version=unknown
12953
12954case $host_os in
12955aix3*)
12956  version_type=linux
12957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12958  shlibpath_var=LIBPATH
12959
12960  # AIX 3 has no versioning support, so we append a major version to the name.
12961  soname_spec='${libname}${release}${shared_ext}$major'
12962  ;;
12963
12964aix[4-9]*)
12965  version_type=linux
12966  need_lib_prefix=no
12967  need_version=no
12968  hardcode_into_libs=yes
12969  if test "$host_cpu" = ia64; then
12970    # AIX 5 supports IA64
12971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12972    shlibpath_var=LD_LIBRARY_PATH
12973  else
12974    # With GCC up to 2.95.x, collect2 would create an import file
12975    # for dependence libraries.  The import file would start with
12976    # the line `#! .'.  This would cause the generated library to
12977    # depend on `.', always an invalid library.  This was fixed in
12978    # development snapshots of GCC prior to 3.0.
12979    case $host_os in
12980      aix4 | aix4.[01] | aix4.[01].*)
12981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12982	   echo ' yes '
12983	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12984	:
12985      else
12986	can_build_shared=no
12987      fi
12988      ;;
12989    esac
12990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12991    # soname into executable. Probably we can add versioning support to
12992    # collect2, so additional links can be useful in future.
12993    if test "$aix_use_runtimelinking" = yes; then
12994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12995      # instead of lib<name>.a to let people know that these are not
12996      # typical AIX shared libraries.
12997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998    else
12999      # We preserve .a as extension for shared libraries through AIX4.2
13000      # and later when we are not doing run time linking.
13001      library_names_spec='${libname}${release}.a $libname.a'
13002      soname_spec='${libname}${release}${shared_ext}$major'
13003    fi
13004    shlibpath_var=LIBPATH
13005  fi
13006  ;;
13007
13008amigaos*)
13009  case $host_cpu in
13010  powerpc)
13011    # Since July 2007 AmigaOS4 officially supports .so libraries.
13012    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13013    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014    ;;
13015  m68k)
13016    library_names_spec='$libname.ixlibrary $libname.a'
13017    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13018    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'
13019    ;;
13020  esac
13021  ;;
13022
13023beos*)
13024  library_names_spec='${libname}${shared_ext}'
13025  dynamic_linker="$host_os ld.so"
13026  shlibpath_var=LIBRARY_PATH
13027  ;;
13028
13029bsdi[45]*)
13030  version_type=linux
13031  need_version=no
13032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033  soname_spec='${libname}${release}${shared_ext}$major'
13034  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13035  shlibpath_var=LD_LIBRARY_PATH
13036  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13037  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13038  # the default ld.so.conf also contains /usr/contrib/lib and
13039  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13040  # libtool to hard-code these into programs
13041  ;;
13042
13043cygwin* | mingw* | pw32* | cegcc*)
13044  version_type=windows
13045  shrext_cmds=".dll"
13046  need_version=no
13047  need_lib_prefix=no
13048
13049  case $GCC,$host_os in
13050  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13051    library_names_spec='$libname.dll.a'
13052    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13053    postinstall_cmds='base_file=`basename \${file}`~
13054      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13055      dldir=$destdir/`dirname \$dlpath`~
13056      test -d \$dldir || mkdir -p \$dldir~
13057      $install_prog $dir/$dlname \$dldir/$dlname~
13058      chmod a+x \$dldir/$dlname~
13059      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13060        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13061      fi'
13062    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13063      dlpath=$dir/\$dldll~
13064       $RM \$dlpath'
13065    shlibpath_overrides_runpath=yes
13066
13067    case $host_os in
13068    cygwin*)
13069      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13070      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13071      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13072      ;;
13073    mingw* | cegcc*)
13074      # MinGW DLLs use traditional 'lib' prefix
13075      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13076      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13077      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13078        # It is most probably a Windows format PATH printed by
13079        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13080        # path with ; separators, and with drive letters. We can handle the
13081        # drive letters (cygwin fileutils understands them), so leave them,
13082        # especially as we might pass files found there to a mingw objdump,
13083        # which wouldn't understand a cygwinified path. Ahh.
13084        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13085      else
13086        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13087      fi
13088      ;;
13089    pw32*)
13090      # pw32 DLLs use 'pw' prefix rather than 'lib'
13091      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13092      ;;
13093    esac
13094    ;;
13095
13096  *)
13097    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13098    ;;
13099  esac
13100  dynamic_linker='Win32 ld.exe'
13101  # FIXME: first we should search . and the directory the executable is in
13102  shlibpath_var=PATH
13103  ;;
13104
13105darwin* | rhapsody*)
13106  dynamic_linker="$host_os dyld"
13107  version_type=darwin
13108  need_lib_prefix=no
13109  need_version=no
13110  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13111  soname_spec='${libname}${release}${major}$shared_ext'
13112  shlibpath_overrides_runpath=yes
13113  shlibpath_var=DYLD_LIBRARY_PATH
13114  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13115
13116  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13117  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13118  ;;
13119
13120dgux*)
13121  version_type=linux
13122  need_lib_prefix=no
13123  need_version=no
13124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13125  soname_spec='${libname}${release}${shared_ext}$major'
13126  shlibpath_var=LD_LIBRARY_PATH
13127  ;;
13128
13129freebsd1*)
13130  dynamic_linker=no
13131  ;;
13132
13133freebsd* | dragonfly*)
13134  # DragonFly does not have aout.  When/if they implement a new
13135  # versioning mechanism, adjust this.
13136  if test -x /usr/bin/objformat; then
13137    objformat=`/usr/bin/objformat`
13138  else
13139    case $host_os in
13140    freebsd[123]*) objformat=aout ;;
13141    *) objformat=elf ;;
13142    esac
13143  fi
13144  # Handle Gentoo/FreeBSD as it was Linux
13145  case $host_vendor in
13146    gentoo)
13147      version_type=linux ;;
13148    *)
13149      version_type=freebsd-$objformat ;;
13150  esac
13151
13152  case $version_type in
13153    freebsd-elf*)
13154      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13155      need_version=no
13156      need_lib_prefix=no
13157      ;;
13158    freebsd-*)
13159      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13160      need_version=yes
13161      ;;
13162    linux)
13163      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13164      soname_spec='${libname}${release}${shared_ext}$major'
13165      need_lib_prefix=no
13166      need_version=no
13167      ;;
13168  esac
13169  shlibpath_var=LD_LIBRARY_PATH
13170  case $host_os in
13171  freebsd2*)
13172    shlibpath_overrides_runpath=yes
13173    ;;
13174  freebsd3.[01]* | freebsdelf3.[01]*)
13175    shlibpath_overrides_runpath=yes
13176    hardcode_into_libs=yes
13177    ;;
13178  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13179  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13180    shlibpath_overrides_runpath=no
13181    hardcode_into_libs=yes
13182    ;;
13183  *) # from 4.6 on, and DragonFly
13184    shlibpath_overrides_runpath=yes
13185    hardcode_into_libs=yes
13186    ;;
13187  esac
13188  ;;
13189
13190gnu*)
13191  version_type=linux
13192  need_lib_prefix=no
13193  need_version=no
13194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13195  soname_spec='${libname}${release}${shared_ext}$major'
13196  shlibpath_var=LD_LIBRARY_PATH
13197  hardcode_into_libs=yes
13198  ;;
13199
13200hpux9* | hpux10* | hpux11*)
13201  # Give a soname corresponding to the major version so that dld.sl refuses to
13202  # link against other versions.
13203  version_type=sunos
13204  need_lib_prefix=no
13205  need_version=no
13206  case $host_cpu in
13207  ia64*)
13208    shrext_cmds='.so'
13209    hardcode_into_libs=yes
13210    dynamic_linker="$host_os dld.so"
13211    shlibpath_var=LD_LIBRARY_PATH
13212    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214    soname_spec='${libname}${release}${shared_ext}$major'
13215    if test "X$HPUX_IA64_MODE" = X32; then
13216      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13217    else
13218      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13219    fi
13220    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221    ;;
13222  hppa*64*)
13223    shrext_cmds='.sl'
13224    hardcode_into_libs=yes
13225    dynamic_linker="$host_os dld.sl"
13226    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229    soname_spec='${libname}${release}${shared_ext}$major'
13230    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13231    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13232    ;;
13233  *)
13234    shrext_cmds='.sl'
13235    dynamic_linker="$host_os dld.sl"
13236    shlibpath_var=SHLIB_PATH
13237    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13238    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239    soname_spec='${libname}${release}${shared_ext}$major'
13240    ;;
13241  esac
13242  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13243  postinstall_cmds='chmod 555 $lib'
13244  ;;
13245
13246interix[3-9]*)
13247  version_type=linux
13248  need_lib_prefix=no
13249  need_version=no
13250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13251  soname_spec='${libname}${release}${shared_ext}$major'
13252  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13253  shlibpath_var=LD_LIBRARY_PATH
13254  shlibpath_overrides_runpath=no
13255  hardcode_into_libs=yes
13256  ;;
13257
13258irix5* | irix6* | nonstopux*)
13259  case $host_os in
13260    nonstopux*) version_type=nonstopux ;;
13261    *)
13262	if test "$lt_cv_prog_gnu_ld" = yes; then
13263		version_type=linux
13264	else
13265		version_type=irix
13266	fi ;;
13267  esac
13268  need_lib_prefix=no
13269  need_version=no
13270  soname_spec='${libname}${release}${shared_ext}$major'
13271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13272  case $host_os in
13273  irix5* | nonstopux*)
13274    libsuff= shlibsuff=
13275    ;;
13276  *)
13277    case $LD in # libtool.m4 will add one of these switches to LD
13278    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13279      libsuff= shlibsuff= libmagic=32-bit;;
13280    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13281      libsuff=32 shlibsuff=N32 libmagic=N32;;
13282    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13283      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13284    *) libsuff= shlibsuff= libmagic=never-match;;
13285    esac
13286    ;;
13287  esac
13288  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13289  shlibpath_overrides_runpath=no
13290  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13291  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13292  hardcode_into_libs=yes
13293  ;;
13294
13295# No shared lib support for Linux oldld, aout, or coff.
13296linux*oldld* | linux*aout* | linux*coff*)
13297  dynamic_linker=no
13298  ;;
13299
13300# This must be Linux ELF.
13301linux* | k*bsd*-gnu)
13302  version_type=linux
13303  need_lib_prefix=no
13304  need_version=no
13305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306  soname_spec='${libname}${release}${shared_ext}$major'
13307  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13308  shlibpath_var=LD_LIBRARY_PATH
13309  shlibpath_overrides_runpath=no
13310  # Some binutils ld are patched to set DT_RUNPATH
13311  save_LDFLAGS=$LDFLAGS
13312  save_libdir=$libdir
13313  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13314       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13315  cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h.  */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h.  */
13321
13322int
13323main ()
13324{
13325
13326  ;
13327  return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext conftest$ac_exeext
13331if { (ac_try="$ac_link"
13332case "(($ac_try" in
13333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334  *) ac_try_echo=$ac_try;;
13335esac
13336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13337$as_echo "$ac_try_echo") >&5
13338  (eval "$ac_link") 2>conftest.er1
13339  ac_status=$?
13340  grep -v '^ *+' conftest.er1 >conftest.err
13341  rm -f conftest.er1
13342  cat conftest.err >&5
13343  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344  (exit $ac_status); } && {
13345	 test -z "$ac_c_werror_flag" ||
13346	 test ! -s conftest.err
13347       } && test -s conftest$ac_exeext && {
13348	 test "$cross_compiling" = yes ||
13349	 $as_test_x conftest$ac_exeext
13350       }; then
13351  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13352  shlibpath_overrides_runpath=yes
13353fi
13354
13355else
13356  $as_echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
13360fi
13361
13362rm -rf conftest.dSYM
13363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13364      conftest$ac_exeext conftest.$ac_ext
13365  LDFLAGS=$save_LDFLAGS
13366  libdir=$save_libdir
13367
13368  # This implies no fast_install, which is unacceptable.
13369  # Some rework will be needed to allow for fast_install
13370  # before this can be enabled.
13371  hardcode_into_libs=yes
13372
13373  # Append ld.so.conf contents to the search path
13374  if test -f /etc/ld.so.conf; then
13375    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13376    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13377  fi
13378
13379  # We used to test for /lib/ld.so.1 and disable shared libraries on
13380  # powerpc, because MkLinux only supported shared libraries with the
13381  # GNU dynamic linker.  Since this was broken with cross compilers,
13382  # most powerpc-linux boxes support dynamic linking these days and
13383  # people can always --disable-shared, the test was removed, and we
13384  # assume the GNU/Linux dynamic linker is in use.
13385  dynamic_linker='GNU/Linux ld.so'
13386  ;;
13387
13388netbsd*)
13389  version_type=sunos
13390  need_lib_prefix=no
13391  need_version=no
13392  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13394    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13395    dynamic_linker='NetBSD (a.out) ld.so'
13396  else
13397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13398    soname_spec='${libname}${release}${shared_ext}$major'
13399    dynamic_linker='NetBSD ld.elf_so'
13400  fi
13401  shlibpath_var=LD_LIBRARY_PATH
13402  shlibpath_overrides_runpath=yes
13403  hardcode_into_libs=yes
13404  ;;
13405
13406newsos6)
13407  version_type=linux
13408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409  shlibpath_var=LD_LIBRARY_PATH
13410  shlibpath_overrides_runpath=yes
13411  ;;
13412
13413*nto* | *qnx*)
13414  version_type=qnx
13415  need_lib_prefix=no
13416  need_version=no
13417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418  soname_spec='${libname}${release}${shared_ext}$major'
13419  shlibpath_var=LD_LIBRARY_PATH
13420  shlibpath_overrides_runpath=no
13421  hardcode_into_libs=yes
13422  dynamic_linker='ldqnx.so'
13423  ;;
13424
13425openbsd*)
13426  version_type=sunos
13427  sys_lib_dlsearch_path_spec="/usr/lib"
13428  need_lib_prefix=no
13429  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13430  case $host_os in
13431    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13432    *)				need_version=no  ;;
13433  esac
13434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436  shlibpath_var=LD_LIBRARY_PATH
13437  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13438    case $host_os in
13439      openbsd2.[89] | openbsd2.[89].*)
13440	shlibpath_overrides_runpath=no
13441	;;
13442      *)
13443	shlibpath_overrides_runpath=yes
13444	;;
13445      esac
13446  else
13447    shlibpath_overrides_runpath=yes
13448  fi
13449  ;;
13450
13451os2*)
13452  libname_spec='$name'
13453  shrext_cmds=".dll"
13454  need_lib_prefix=no
13455  library_names_spec='$libname${shared_ext} $libname.a'
13456  dynamic_linker='OS/2 ld.exe'
13457  shlibpath_var=LIBPATH
13458  ;;
13459
13460osf3* | osf4* | osf5*)
13461  version_type=osf
13462  need_lib_prefix=no
13463  need_version=no
13464  soname_spec='${libname}${release}${shared_ext}$major'
13465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466  shlibpath_var=LD_LIBRARY_PATH
13467  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13468  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13469  ;;
13470
13471rdos*)
13472  dynamic_linker=no
13473  ;;
13474
13475solaris*)
13476  version_type=linux
13477  need_lib_prefix=no
13478  need_version=no
13479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480  soname_spec='${libname}${release}${shared_ext}$major'
13481  shlibpath_var=LD_LIBRARY_PATH
13482  shlibpath_overrides_runpath=yes
13483  hardcode_into_libs=yes
13484  # ldd complains unless libraries are executable
13485  postinstall_cmds='chmod +x $lib'
13486  ;;
13487
13488sunos4*)
13489  version_type=sunos
13490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13491  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13492  shlibpath_var=LD_LIBRARY_PATH
13493  shlibpath_overrides_runpath=yes
13494  if test "$with_gnu_ld" = yes; then
13495    need_lib_prefix=no
13496  fi
13497  need_version=yes
13498  ;;
13499
13500sysv4 | sysv4.3*)
13501  version_type=linux
13502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503  soname_spec='${libname}${release}${shared_ext}$major'
13504  shlibpath_var=LD_LIBRARY_PATH
13505  case $host_vendor in
13506    sni)
13507      shlibpath_overrides_runpath=no
13508      need_lib_prefix=no
13509      runpath_var=LD_RUN_PATH
13510      ;;
13511    siemens)
13512      need_lib_prefix=no
13513      ;;
13514    motorola)
13515      need_lib_prefix=no
13516      need_version=no
13517      shlibpath_overrides_runpath=no
13518      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13519      ;;
13520  esac
13521  ;;
13522
13523sysv4*MP*)
13524  if test -d /usr/nec ;then
13525    version_type=linux
13526    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13527    soname_spec='$libname${shared_ext}.$major'
13528    shlibpath_var=LD_LIBRARY_PATH
13529  fi
13530  ;;
13531
13532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13533  version_type=freebsd-elf
13534  need_lib_prefix=no
13535  need_version=no
13536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13537  soname_spec='${libname}${release}${shared_ext}$major'
13538  shlibpath_var=LD_LIBRARY_PATH
13539  shlibpath_overrides_runpath=yes
13540  hardcode_into_libs=yes
13541  if test "$with_gnu_ld" = yes; then
13542    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13543  else
13544    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13545    case $host_os in
13546      sco3.2v5*)
13547        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13548	;;
13549    esac
13550  fi
13551  sys_lib_dlsearch_path_spec='/usr/lib'
13552  ;;
13553
13554tpf*)
13555  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13556  version_type=linux
13557  need_lib_prefix=no
13558  need_version=no
13559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560  shlibpath_var=LD_LIBRARY_PATH
13561  shlibpath_overrides_runpath=no
13562  hardcode_into_libs=yes
13563  ;;
13564
13565uts4*)
13566  version_type=linux
13567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568  soname_spec='${libname}${release}${shared_ext}$major'
13569  shlibpath_var=LD_LIBRARY_PATH
13570  ;;
13571
13572*)
13573  dynamic_linker=no
13574  ;;
13575esac
13576{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13577$as_echo "$dynamic_linker" >&6; }
13578test "$dynamic_linker" = no && can_build_shared=no
13579
13580variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13581if test "$GCC" = yes; then
13582  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13583fi
13584
13585if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13586  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13587fi
13588if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13589  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13590fi
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13679$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13680hardcode_action=
13681if test -n "$hardcode_libdir_flag_spec" ||
13682   test -n "$runpath_var" ||
13683   test "X$hardcode_automatic" = "Xyes" ; then
13684
13685  # We can hardcode non-existent directories.
13686  if test "$hardcode_direct" != no &&
13687     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13688     # have to relink, otherwise we might link with an installed library
13689     # when we should be linking with a yet-to-be-installed one
13690     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13691     test "$hardcode_minus_L" != no; then
13692    # Linking always hardcodes the temporary library directory.
13693    hardcode_action=relink
13694  else
13695    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13696    hardcode_action=immediate
13697  fi
13698else
13699  # We cannot hardcode anything, or else we can only hardcode existing
13700  # directories.
13701  hardcode_action=unsupported
13702fi
13703{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13704$as_echo "$hardcode_action" >&6; }
13705
13706if test "$hardcode_action" = relink ||
13707   test "$inherit_rpath" = yes; then
13708  # Fast installation is not supported
13709  enable_fast_install=no
13710elif test "$shlibpath_overrides_runpath" = yes ||
13711     test "$enable_shared" = no; then
13712  # Fast installation is not necessary
13713  enable_fast_install=needless
13714fi
13715
13716
13717
13718
13719
13720
13721  if test "x$enable_dlopen" != xyes; then
13722  enable_dlopen=unknown
13723  enable_dlopen_self=unknown
13724  enable_dlopen_self_static=unknown
13725else
13726  lt_cv_dlopen=no
13727  lt_cv_dlopen_libs=
13728
13729  case $host_os in
13730  beos*)
13731    lt_cv_dlopen="load_add_on"
13732    lt_cv_dlopen_libs=
13733    lt_cv_dlopen_self=yes
13734    ;;
13735
13736  mingw* | pw32* | cegcc*)
13737    lt_cv_dlopen="LoadLibrary"
13738    lt_cv_dlopen_libs=
13739    ;;
13740
13741  cygwin*)
13742    lt_cv_dlopen="dlopen"
13743    lt_cv_dlopen_libs=
13744    ;;
13745
13746  darwin*)
13747  # if libdl is installed we need to link against it
13748    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13749$as_echo_n "checking for dlopen in -ldl... " >&6; }
13750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13751  $as_echo_n "(cached) " >&6
13752else
13753  ac_check_lib_save_LIBS=$LIBS
13754LIBS="-ldl  $LIBS"
13755cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h.  */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h.  */
13761
13762/* Override any GCC internal prototype to avoid an error.
13763   Use char because int might match the return type of a GCC
13764   builtin and then its argument prototype would still apply.  */
13765#ifdef __cplusplus
13766extern "C"
13767#endif
13768char dlopen ();
13769int
13770main ()
13771{
13772return dlopen ();
13773  ;
13774  return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext conftest$ac_exeext
13778if { (ac_try="$ac_link"
13779case "(($ac_try" in
13780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781  *) ac_try_echo=$ac_try;;
13782esac
13783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784$as_echo "$ac_try_echo") >&5
13785  (eval "$ac_link") 2>conftest.er1
13786  ac_status=$?
13787  grep -v '^ *+' conftest.er1 >conftest.err
13788  rm -f conftest.er1
13789  cat conftest.err >&5
13790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791  (exit $ac_status); } && {
13792	 test -z "$ac_c_werror_flag" ||
13793	 test ! -s conftest.err
13794       } && test -s conftest$ac_exeext && {
13795	 test "$cross_compiling" = yes ||
13796	 $as_test_x conftest$ac_exeext
13797       }; then
13798  ac_cv_lib_dl_dlopen=yes
13799else
13800  $as_echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
13803	ac_cv_lib_dl_dlopen=no
13804fi
13805
13806rm -rf conftest.dSYM
13807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13808      conftest$ac_exeext conftest.$ac_ext
13809LIBS=$ac_check_lib_save_LIBS
13810fi
13811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13812$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13813if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13814  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13815else
13816
13817    lt_cv_dlopen="dyld"
13818    lt_cv_dlopen_libs=
13819    lt_cv_dlopen_self=yes
13820
13821fi
13822
13823    ;;
13824
13825  *)
13826    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13827$as_echo_n "checking for shl_load... " >&6; }
13828if test "${ac_cv_func_shl_load+set}" = set; then
13829  $as_echo_n "(cached) " >&6
13830else
13831  cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h.  */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h.  */
13837/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13839#define shl_load innocuous_shl_load
13840
13841/* System header to define __stub macros and hopefully few prototypes,
13842    which can conflict with char shl_load (); below.
13843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13844    <limits.h> exists even on freestanding compilers.  */
13845
13846#ifdef __STDC__
13847# include <limits.h>
13848#else
13849# include <assert.h>
13850#endif
13851
13852#undef shl_load
13853
13854/* Override any GCC internal prototype to avoid an error.
13855   Use char because int might match the return type of a GCC
13856   builtin and then its argument prototype would still apply.  */
13857#ifdef __cplusplus
13858extern "C"
13859#endif
13860char shl_load ();
13861/* The GNU C library defines this for functions which it implements
13862    to always fail with ENOSYS.  Some functions are actually named
13863    something starting with __ and the normal name is an alias.  */
13864#if defined __stub_shl_load || defined __stub___shl_load
13865choke me
13866#endif
13867
13868int
13869main ()
13870{
13871return shl_load ();
13872  ;
13873  return 0;
13874}
13875_ACEOF
13876rm -f conftest.$ac_objext conftest$ac_exeext
13877if { (ac_try="$ac_link"
13878case "(($ac_try" in
13879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880  *) ac_try_echo=$ac_try;;
13881esac
13882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13883$as_echo "$ac_try_echo") >&5
13884  (eval "$ac_link") 2>conftest.er1
13885  ac_status=$?
13886  grep -v '^ *+' conftest.er1 >conftest.err
13887  rm -f conftest.er1
13888  cat conftest.err >&5
13889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890  (exit $ac_status); } && {
13891	 test -z "$ac_c_werror_flag" ||
13892	 test ! -s conftest.err
13893       } && test -s conftest$ac_exeext && {
13894	 test "$cross_compiling" = yes ||
13895	 $as_test_x conftest$ac_exeext
13896       }; then
13897  ac_cv_func_shl_load=yes
13898else
13899  $as_echo "$as_me: failed program was:" >&5
13900sed 's/^/| /' conftest.$ac_ext >&5
13901
13902	ac_cv_func_shl_load=no
13903fi
13904
13905rm -rf conftest.dSYM
13906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13907      conftest$ac_exeext conftest.$ac_ext
13908fi
13909{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13910$as_echo "$ac_cv_func_shl_load" >&6; }
13911if test "x$ac_cv_func_shl_load" = x""yes; then
13912  lt_cv_dlopen="shl_load"
13913else
13914  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13915$as_echo_n "checking for shl_load in -ldld... " >&6; }
13916if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13917  $as_echo_n "(cached) " >&6
13918else
13919  ac_check_lib_save_LIBS=$LIBS
13920LIBS="-ldld  $LIBS"
13921cat >conftest.$ac_ext <<_ACEOF
13922/* confdefs.h.  */
13923_ACEOF
13924cat confdefs.h >>conftest.$ac_ext
13925cat >>conftest.$ac_ext <<_ACEOF
13926/* end confdefs.h.  */
13927
13928/* Override any GCC internal prototype to avoid an error.
13929   Use char because int might match the return type of a GCC
13930   builtin and then its argument prototype would still apply.  */
13931#ifdef __cplusplus
13932extern "C"
13933#endif
13934char shl_load ();
13935int
13936main ()
13937{
13938return shl_load ();
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943rm -f conftest.$ac_objext conftest$ac_exeext
13944if { (ac_try="$ac_link"
13945case "(($ac_try" in
13946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947  *) ac_try_echo=$ac_try;;
13948esac
13949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13950$as_echo "$ac_try_echo") >&5
13951  (eval "$ac_link") 2>conftest.er1
13952  ac_status=$?
13953  grep -v '^ *+' conftest.er1 >conftest.err
13954  rm -f conftest.er1
13955  cat conftest.err >&5
13956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); } && {
13958	 test -z "$ac_c_werror_flag" ||
13959	 test ! -s conftest.err
13960       } && test -s conftest$ac_exeext && {
13961	 test "$cross_compiling" = yes ||
13962	 $as_test_x conftest$ac_exeext
13963       }; then
13964  ac_cv_lib_dld_shl_load=yes
13965else
13966  $as_echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969	ac_cv_lib_dld_shl_load=no
13970fi
13971
13972rm -rf conftest.dSYM
13973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13974      conftest$ac_exeext conftest.$ac_ext
13975LIBS=$ac_check_lib_save_LIBS
13976fi
13977{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13978$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13979if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13980  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13981else
13982  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13983$as_echo_n "checking for dlopen... " >&6; }
13984if test "${ac_cv_func_dlopen+set}" = set; then
13985  $as_echo_n "(cached) " >&6
13986else
13987  cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h.  */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h.  */
13993/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13994   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13995#define dlopen innocuous_dlopen
13996
13997/* System header to define __stub macros and hopefully few prototypes,
13998    which can conflict with char dlopen (); below.
13999    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14000    <limits.h> exists even on freestanding compilers.  */
14001
14002#ifdef __STDC__
14003# include <limits.h>
14004#else
14005# include <assert.h>
14006#endif
14007
14008#undef dlopen
14009
14010/* Override any GCC internal prototype to avoid an error.
14011   Use char because int might match the return type of a GCC
14012   builtin and then its argument prototype would still apply.  */
14013#ifdef __cplusplus
14014extern "C"
14015#endif
14016char dlopen ();
14017/* The GNU C library defines this for functions which it implements
14018    to always fail with ENOSYS.  Some functions are actually named
14019    something starting with __ and the normal name is an alias.  */
14020#if defined __stub_dlopen || defined __stub___dlopen
14021choke me
14022#endif
14023
14024int
14025main ()
14026{
14027return dlopen ();
14028  ;
14029  return 0;
14030}
14031_ACEOF
14032rm -f conftest.$ac_objext conftest$ac_exeext
14033if { (ac_try="$ac_link"
14034case "(($ac_try" in
14035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036  *) ac_try_echo=$ac_try;;
14037esac
14038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039$as_echo "$ac_try_echo") >&5
14040  (eval "$ac_link") 2>conftest.er1
14041  ac_status=$?
14042  grep -v '^ *+' conftest.er1 >conftest.err
14043  rm -f conftest.er1
14044  cat conftest.err >&5
14045  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046  (exit $ac_status); } && {
14047	 test -z "$ac_c_werror_flag" ||
14048	 test ! -s conftest.err
14049       } && test -s conftest$ac_exeext && {
14050	 test "$cross_compiling" = yes ||
14051	 $as_test_x conftest$ac_exeext
14052       }; then
14053  ac_cv_func_dlopen=yes
14054else
14055  $as_echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058	ac_cv_func_dlopen=no
14059fi
14060
14061rm -rf conftest.dSYM
14062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14063      conftest$ac_exeext conftest.$ac_ext
14064fi
14065{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14066$as_echo "$ac_cv_func_dlopen" >&6; }
14067if test "x$ac_cv_func_dlopen" = x""yes; then
14068  lt_cv_dlopen="dlopen"
14069else
14070  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14071$as_echo_n "checking for dlopen in -ldl... " >&6; }
14072if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14073  $as_echo_n "(cached) " >&6
14074else
14075  ac_check_lib_save_LIBS=$LIBS
14076LIBS="-ldl  $LIBS"
14077cat >conftest.$ac_ext <<_ACEOF
14078/* confdefs.h.  */
14079_ACEOF
14080cat confdefs.h >>conftest.$ac_ext
14081cat >>conftest.$ac_ext <<_ACEOF
14082/* end confdefs.h.  */
14083
14084/* Override any GCC internal prototype to avoid an error.
14085   Use char because int might match the return type of a GCC
14086   builtin and then its argument prototype would still apply.  */
14087#ifdef __cplusplus
14088extern "C"
14089#endif
14090char dlopen ();
14091int
14092main ()
14093{
14094return dlopen ();
14095  ;
14096  return 0;
14097}
14098_ACEOF
14099rm -f conftest.$ac_objext conftest$ac_exeext
14100if { (ac_try="$ac_link"
14101case "(($ac_try" in
14102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103  *) ac_try_echo=$ac_try;;
14104esac
14105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14106$as_echo "$ac_try_echo") >&5
14107  (eval "$ac_link") 2>conftest.er1
14108  ac_status=$?
14109  grep -v '^ *+' conftest.er1 >conftest.err
14110  rm -f conftest.er1
14111  cat conftest.err >&5
14112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113  (exit $ac_status); } && {
14114	 test -z "$ac_c_werror_flag" ||
14115	 test ! -s conftest.err
14116       } && test -s conftest$ac_exeext && {
14117	 test "$cross_compiling" = yes ||
14118	 $as_test_x conftest$ac_exeext
14119       }; then
14120  ac_cv_lib_dl_dlopen=yes
14121else
14122  $as_echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125	ac_cv_lib_dl_dlopen=no
14126fi
14127
14128rm -rf conftest.dSYM
14129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14130      conftest$ac_exeext conftest.$ac_ext
14131LIBS=$ac_check_lib_save_LIBS
14132fi
14133{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14134$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14135if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14136  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14137else
14138  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14139$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14140if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14141  $as_echo_n "(cached) " >&6
14142else
14143  ac_check_lib_save_LIBS=$LIBS
14144LIBS="-lsvld  $LIBS"
14145cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h.  */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h.  */
14151
14152/* Override any GCC internal prototype to avoid an error.
14153   Use char because int might match the return type of a GCC
14154   builtin and then its argument prototype would still apply.  */
14155#ifdef __cplusplus
14156extern "C"
14157#endif
14158char dlopen ();
14159int
14160main ()
14161{
14162return dlopen ();
14163  ;
14164  return 0;
14165}
14166_ACEOF
14167rm -f conftest.$ac_objext conftest$ac_exeext
14168if { (ac_try="$ac_link"
14169case "(($ac_try" in
14170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171  *) ac_try_echo=$ac_try;;
14172esac
14173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14174$as_echo "$ac_try_echo") >&5
14175  (eval "$ac_link") 2>conftest.er1
14176  ac_status=$?
14177  grep -v '^ *+' conftest.er1 >conftest.err
14178  rm -f conftest.er1
14179  cat conftest.err >&5
14180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181  (exit $ac_status); } && {
14182	 test -z "$ac_c_werror_flag" ||
14183	 test ! -s conftest.err
14184       } && test -s conftest$ac_exeext && {
14185	 test "$cross_compiling" = yes ||
14186	 $as_test_x conftest$ac_exeext
14187       }; then
14188  ac_cv_lib_svld_dlopen=yes
14189else
14190  $as_echo "$as_me: failed program was:" >&5
14191sed 's/^/| /' conftest.$ac_ext >&5
14192
14193	ac_cv_lib_svld_dlopen=no
14194fi
14195
14196rm -rf conftest.dSYM
14197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198      conftest$ac_exeext conftest.$ac_ext
14199LIBS=$ac_check_lib_save_LIBS
14200fi
14201{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14202$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14203if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14204  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14205else
14206  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14207$as_echo_n "checking for dld_link in -ldld... " >&6; }
14208if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14209  $as_echo_n "(cached) " >&6
14210else
14211  ac_check_lib_save_LIBS=$LIBS
14212LIBS="-ldld  $LIBS"
14213cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h.  */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h.  */
14219
14220/* Override any GCC internal prototype to avoid an error.
14221   Use char because int might match the return type of a GCC
14222   builtin and then its argument prototype would still apply.  */
14223#ifdef __cplusplus
14224extern "C"
14225#endif
14226char dld_link ();
14227int
14228main ()
14229{
14230return dld_link ();
14231  ;
14232  return 0;
14233}
14234_ACEOF
14235rm -f conftest.$ac_objext conftest$ac_exeext
14236if { (ac_try="$ac_link"
14237case "(($ac_try" in
14238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239  *) ac_try_echo=$ac_try;;
14240esac
14241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14242$as_echo "$ac_try_echo") >&5
14243  (eval "$ac_link") 2>conftest.er1
14244  ac_status=$?
14245  grep -v '^ *+' conftest.er1 >conftest.err
14246  rm -f conftest.er1
14247  cat conftest.err >&5
14248  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249  (exit $ac_status); } && {
14250	 test -z "$ac_c_werror_flag" ||
14251	 test ! -s conftest.err
14252       } && test -s conftest$ac_exeext && {
14253	 test "$cross_compiling" = yes ||
14254	 $as_test_x conftest$ac_exeext
14255       }; then
14256  ac_cv_lib_dld_dld_link=yes
14257else
14258  $as_echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261	ac_cv_lib_dld_dld_link=no
14262fi
14263
14264rm -rf conftest.dSYM
14265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266      conftest$ac_exeext conftest.$ac_ext
14267LIBS=$ac_check_lib_save_LIBS
14268fi
14269{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14270$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14271if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14272  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14273fi
14274
14275
14276fi
14277
14278
14279fi
14280
14281
14282fi
14283
14284
14285fi
14286
14287
14288fi
14289
14290    ;;
14291  esac
14292
14293  if test "x$lt_cv_dlopen" != xno; then
14294    enable_dlopen=yes
14295  else
14296    enable_dlopen=no
14297  fi
14298
14299  case $lt_cv_dlopen in
14300  dlopen)
14301    save_CPPFLAGS="$CPPFLAGS"
14302    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14303
14304    save_LDFLAGS="$LDFLAGS"
14305    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14306
14307    save_LIBS="$LIBS"
14308    LIBS="$lt_cv_dlopen_libs $LIBS"
14309
14310    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14311$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14312if test "${lt_cv_dlopen_self+set}" = set; then
14313  $as_echo_n "(cached) " >&6
14314else
14315  	  if test "$cross_compiling" = yes; then :
14316  lt_cv_dlopen_self=cross
14317else
14318  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14319  lt_status=$lt_dlunknown
14320  cat > conftest.$ac_ext <<_LT_EOF
14321#line 14324 "configure"
14322#include "confdefs.h"
14323
14324#if HAVE_DLFCN_H
14325#include <dlfcn.h>
14326#endif
14327
14328#include <stdio.h>
14329
14330#ifdef RTLD_GLOBAL
14331#  define LT_DLGLOBAL		RTLD_GLOBAL
14332#else
14333#  ifdef DL_GLOBAL
14334#    define LT_DLGLOBAL		DL_GLOBAL
14335#  else
14336#    define LT_DLGLOBAL		0
14337#  endif
14338#endif
14339
14340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14341   find out it does not work in some platform. */
14342#ifndef LT_DLLAZY_OR_NOW
14343#  ifdef RTLD_LAZY
14344#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14345#  else
14346#    ifdef DL_LAZY
14347#      define LT_DLLAZY_OR_NOW		DL_LAZY
14348#    else
14349#      ifdef RTLD_NOW
14350#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14351#      else
14352#        ifdef DL_NOW
14353#          define LT_DLLAZY_OR_NOW	DL_NOW
14354#        else
14355#          define LT_DLLAZY_OR_NOW	0
14356#        endif
14357#      endif
14358#    endif
14359#  endif
14360#endif
14361
14362void fnord() { int i=42;}
14363int main ()
14364{
14365  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14366  int status = $lt_dlunknown;
14367
14368  if (self)
14369    {
14370      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14371      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14372      /* dlclose (self); */
14373    }
14374  else
14375    puts (dlerror ());
14376
14377  return status;
14378}
14379_LT_EOF
14380  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381  (eval $ac_link) 2>&5
14382  ac_status=$?
14383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14385    (./conftest; exit; ) >&5 2>/dev/null
14386    lt_status=$?
14387    case x$lt_status in
14388      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14389      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14390      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14391    esac
14392  else :
14393    # compilation failed
14394    lt_cv_dlopen_self=no
14395  fi
14396fi
14397rm -fr conftest*
14398
14399
14400fi
14401{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14402$as_echo "$lt_cv_dlopen_self" >&6; }
14403
14404    if test "x$lt_cv_dlopen_self" = xyes; then
14405      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14406      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14407$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14408if test "${lt_cv_dlopen_self_static+set}" = set; then
14409  $as_echo_n "(cached) " >&6
14410else
14411  	  if test "$cross_compiling" = yes; then :
14412  lt_cv_dlopen_self_static=cross
14413else
14414  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14415  lt_status=$lt_dlunknown
14416  cat > conftest.$ac_ext <<_LT_EOF
14417#line 14420 "configure"
14418#include "confdefs.h"
14419
14420#if HAVE_DLFCN_H
14421#include <dlfcn.h>
14422#endif
14423
14424#include <stdio.h>
14425
14426#ifdef RTLD_GLOBAL
14427#  define LT_DLGLOBAL		RTLD_GLOBAL
14428#else
14429#  ifdef DL_GLOBAL
14430#    define LT_DLGLOBAL		DL_GLOBAL
14431#  else
14432#    define LT_DLGLOBAL		0
14433#  endif
14434#endif
14435
14436/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14437   find out it does not work in some platform. */
14438#ifndef LT_DLLAZY_OR_NOW
14439#  ifdef RTLD_LAZY
14440#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14441#  else
14442#    ifdef DL_LAZY
14443#      define LT_DLLAZY_OR_NOW		DL_LAZY
14444#    else
14445#      ifdef RTLD_NOW
14446#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14447#      else
14448#        ifdef DL_NOW
14449#          define LT_DLLAZY_OR_NOW	DL_NOW
14450#        else
14451#          define LT_DLLAZY_OR_NOW	0
14452#        endif
14453#      endif
14454#    endif
14455#  endif
14456#endif
14457
14458void fnord() { int i=42;}
14459int main ()
14460{
14461  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14462  int status = $lt_dlunknown;
14463
14464  if (self)
14465    {
14466      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14467      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14468      /* dlclose (self); */
14469    }
14470  else
14471    puts (dlerror ());
14472
14473  return status;
14474}
14475_LT_EOF
14476  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477  (eval $ac_link) 2>&5
14478  ac_status=$?
14479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14481    (./conftest; exit; ) >&5 2>/dev/null
14482    lt_status=$?
14483    case x$lt_status in
14484      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14485      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14486      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14487    esac
14488  else :
14489    # compilation failed
14490    lt_cv_dlopen_self_static=no
14491  fi
14492fi
14493rm -fr conftest*
14494
14495
14496fi
14497{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14498$as_echo "$lt_cv_dlopen_self_static" >&6; }
14499    fi
14500
14501    CPPFLAGS="$save_CPPFLAGS"
14502    LDFLAGS="$save_LDFLAGS"
14503    LIBS="$save_LIBS"
14504    ;;
14505  esac
14506
14507  case $lt_cv_dlopen_self in
14508  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14509  *) enable_dlopen_self=unknown ;;
14510  esac
14511
14512  case $lt_cv_dlopen_self_static in
14513  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14514  *) enable_dlopen_self_static=unknown ;;
14515  esac
14516fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534striplib=
14535old_striplib=
14536{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14537$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14538if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14539  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14540  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14541  { $as_echo "$as_me:$LINENO: result: yes" >&5
14542$as_echo "yes" >&6; }
14543else
14544# FIXME - insert some real tests, host_os isn't really good enough
14545  case $host_os in
14546  darwin*)
14547    if test -n "$STRIP" ; then
14548      striplib="$STRIP -x"
14549      old_striplib="$STRIP -S"
14550      { $as_echo "$as_me:$LINENO: result: yes" >&5
14551$as_echo "yes" >&6; }
14552    else
14553      { $as_echo "$as_me:$LINENO: result: no" >&5
14554$as_echo "no" >&6; }
14555    fi
14556    ;;
14557  *)
14558    { $as_echo "$as_me:$LINENO: result: no" >&5
14559$as_echo "no" >&6; }
14560    ;;
14561  esac
14562fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575  # Report which library types will actually be built
14576  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14577$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14578  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14579$as_echo "$can_build_shared" >&6; }
14580
14581  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14582$as_echo_n "checking whether to build shared libraries... " >&6; }
14583  test "$can_build_shared" = "no" && enable_shared=no
14584
14585  # On AIX, shared libraries and static libraries use the same namespace, and
14586  # are all built from PIC.
14587  case $host_os in
14588  aix3*)
14589    test "$enable_shared" = yes && enable_static=no
14590    if test -n "$RANLIB"; then
14591      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14592      postinstall_cmds='$RANLIB $lib'
14593    fi
14594    ;;
14595
14596  aix[4-9]*)
14597    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14598      test "$enable_shared" = yes && enable_static=no
14599    fi
14600    ;;
14601  esac
14602  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14603$as_echo "$enable_shared" >&6; }
14604
14605  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14606$as_echo_n "checking whether to build static libraries... " >&6; }
14607  # Make sure either enable_shared or enable_static is yes.
14608  test "$enable_shared" = yes || enable_static=yes
14609  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14610$as_echo "$enable_static" >&6; }
14611
14612
14613
14614
14615fi
14616ac_ext=c
14617ac_cpp='$CPP $CPPFLAGS'
14618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14620ac_compiler_gnu=$ac_cv_c_compiler_gnu
14621
14622CC="$lt_save_CC"
14623
14624
14625ac_ext=cpp
14626ac_cpp='$CXXCPP $CPPFLAGS'
14627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14630
14631archive_cmds_need_lc_CXX=no
14632allow_undefined_flag_CXX=
14633always_export_symbols_CXX=no
14634archive_expsym_cmds_CXX=
14635compiler_needs_object_CXX=no
14636export_dynamic_flag_spec_CXX=
14637hardcode_direct_CXX=no
14638hardcode_direct_absolute_CXX=no
14639hardcode_libdir_flag_spec_CXX=
14640hardcode_libdir_flag_spec_ld_CXX=
14641hardcode_libdir_separator_CXX=
14642hardcode_minus_L_CXX=no
14643hardcode_shlibpath_var_CXX=unsupported
14644hardcode_automatic_CXX=no
14645inherit_rpath_CXX=no
14646module_cmds_CXX=
14647module_expsym_cmds_CXX=
14648link_all_deplibs_CXX=unknown
14649old_archive_cmds_CXX=$old_archive_cmds
14650no_undefined_flag_CXX=
14651whole_archive_flag_spec_CXX=
14652enable_shared_with_static_runtimes_CXX=no
14653
14654# Source file extension for C++ test sources.
14655ac_ext=cpp
14656
14657# Object file extension for compiled C++ test sources.
14658objext=o
14659objext_CXX=$objext
14660
14661# No sense in running all these tests if we already determined that
14662# the CXX compiler isn't working.  Some variables (like enable_shared)
14663# are currently assumed to apply to all compilers on this platform,
14664# and will be corrupted by setting them based on a non-working compiler.
14665if test "$_lt_caught_CXX_error" != yes; then
14666  # Code to be used in simple compile tests
14667  lt_simple_compile_test_code="int some_variable = 0;"
14668
14669  # Code to be used in simple link tests
14670  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14671
14672  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14673
14674
14675
14676
14677
14678
14679# If no C compiler was specified, use CC.
14680LTCC=${LTCC-"$CC"}
14681
14682# If no C compiler flags were specified, use CFLAGS.
14683LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14684
14685# Allow CC to be a program name with arguments.
14686compiler=$CC
14687
14688
14689  # save warnings/boilerplate of simple test code
14690  ac_outfile=conftest.$ac_objext
14691echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14692eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14693_lt_compiler_boilerplate=`cat conftest.err`
14694$RM conftest*
14695
14696  ac_outfile=conftest.$ac_objext
14697echo "$lt_simple_link_test_code" >conftest.$ac_ext
14698eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14699_lt_linker_boilerplate=`cat conftest.err`
14700$RM -r conftest*
14701
14702
14703  # Allow CC to be a program name with arguments.
14704  lt_save_CC=$CC
14705  lt_save_LD=$LD
14706  lt_save_GCC=$GCC
14707  GCC=$GXX
14708  lt_save_with_gnu_ld=$with_gnu_ld
14709  lt_save_path_LD=$lt_cv_path_LD
14710  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14711    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14712  else
14713    $as_unset lt_cv_prog_gnu_ld
14714  fi
14715  if test -n "${lt_cv_path_LDCXX+set}"; then
14716    lt_cv_path_LD=$lt_cv_path_LDCXX
14717  else
14718    $as_unset lt_cv_path_LD
14719  fi
14720  test -z "${LDCXX+set}" || LD=$LDCXX
14721  CC=${CXX-"c++"}
14722  compiler=$CC
14723  compiler_CXX=$CC
14724  for cc_temp in $compiler""; do
14725  case $cc_temp in
14726    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14727    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14728    \-*) ;;
14729    *) break;;
14730  esac
14731done
14732cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14733
14734
14735  if test -n "$compiler"; then
14736    # We don't want -fno-exception when compiling C++ code, so set the
14737    # no_builtin_flag separately
14738    if test "$GXX" = yes; then
14739      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14740    else
14741      lt_prog_compiler_no_builtin_flag_CXX=
14742    fi
14743
14744    if test "$GXX" = yes; then
14745      # Set up default GNU C++ configuration
14746
14747
14748
14749# Check whether --with-gnu-ld was given.
14750if test "${with_gnu_ld+set}" = set; then
14751  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14752else
14753  with_gnu_ld=no
14754fi
14755
14756ac_prog=ld
14757if test "$GCC" = yes; then
14758  # Check if gcc -print-prog-name=ld gives a path.
14759  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14760$as_echo_n "checking for ld used by $CC... " >&6; }
14761  case $host in
14762  *-*-mingw*)
14763    # gcc leaves a trailing carriage return which upsets mingw
14764    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14765  *)
14766    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14767  esac
14768  case $ac_prog in
14769    # Accept absolute paths.
14770    [\\/]* | ?:[\\/]*)
14771      re_direlt='/[^/][^/]*/\.\./'
14772      # Canonicalize the pathname of ld
14773      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14774      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14775	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14776      done
14777      test -z "$LD" && LD="$ac_prog"
14778      ;;
14779  "")
14780    # If it fails, then pretend we aren't using GCC.
14781    ac_prog=ld
14782    ;;
14783  *)
14784    # If it is relative, then search for the first ld in PATH.
14785    with_gnu_ld=unknown
14786    ;;
14787  esac
14788elif test "$with_gnu_ld" = yes; then
14789  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14790$as_echo_n "checking for GNU ld... " >&6; }
14791else
14792  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14793$as_echo_n "checking for non-GNU ld... " >&6; }
14794fi
14795if test "${lt_cv_path_LD+set}" = set; then
14796  $as_echo_n "(cached) " >&6
14797else
14798  if test -z "$LD"; then
14799  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14800  for ac_dir in $PATH; do
14801    IFS="$lt_save_ifs"
14802    test -z "$ac_dir" && ac_dir=.
14803    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14804      lt_cv_path_LD="$ac_dir/$ac_prog"
14805      # Check to see if the program is GNU ld.  I'd rather use --version,
14806      # but apparently some variants of GNU ld only accept -v.
14807      # Break only if it was the GNU/non-GNU ld that we prefer.
14808      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14809      *GNU* | *'with BFD'*)
14810	test "$with_gnu_ld" != no && break
14811	;;
14812      *)
14813	test "$with_gnu_ld" != yes && break
14814	;;
14815      esac
14816    fi
14817  done
14818  IFS="$lt_save_ifs"
14819else
14820  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14821fi
14822fi
14823
14824LD="$lt_cv_path_LD"
14825if test -n "$LD"; then
14826  { $as_echo "$as_me:$LINENO: result: $LD" >&5
14827$as_echo "$LD" >&6; }
14828else
14829  { $as_echo "$as_me:$LINENO: result: no" >&5
14830$as_echo "no" >&6; }
14831fi
14832test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14833$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14834   { (exit 1); exit 1; }; }
14835{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14836$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14837if test "${lt_cv_prog_gnu_ld+set}" = set; then
14838  $as_echo_n "(cached) " >&6
14839else
14840  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14841case `$LD -v 2>&1 </dev/null` in
14842*GNU* | *'with BFD'*)
14843  lt_cv_prog_gnu_ld=yes
14844  ;;
14845*)
14846  lt_cv_prog_gnu_ld=no
14847  ;;
14848esac
14849fi
14850{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14851$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14852with_gnu_ld=$lt_cv_prog_gnu_ld
14853
14854
14855
14856
14857
14858
14859
14860      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14861      # archiving commands below assume that GNU ld is being used.
14862      if test "$with_gnu_ld" = yes; then
14863        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864        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'
14865
14866        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14867        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14868
14869        # If archive_cmds runs LD, not CC, wlarc should be empty
14870        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14871        #     investigate it a little bit more. (MM)
14872        wlarc='${wl}'
14873
14874        # ancient GNU ld didn't support --whole-archive et. al.
14875        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14876	  $GREP 'no-whole-archive' > /dev/null; then
14877          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14878        else
14879          whole_archive_flag_spec_CXX=
14880        fi
14881      else
14882        with_gnu_ld=no
14883        wlarc=
14884
14885        # A generic and very simple default shared library creation
14886        # command for GNU C++ for the case where it uses the native
14887        # linker, instead of GNU ld.  If possible, this setting should
14888        # overridden to take advantage of the native linker features on
14889        # the platform it is being used on.
14890        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14891      fi
14892
14893      # Commands to make compiler produce verbose output that lists
14894      # what "hidden" libraries, object files and flags are used when
14895      # linking a shared library.
14896      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14897
14898    else
14899      GXX=no
14900      with_gnu_ld=no
14901      wlarc=
14902    fi
14903
14904    # PORTME: fill in a description of your system's C++ link characteristics
14905    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14907    ld_shlibs_CXX=yes
14908    case $host_os in
14909      aix3*)
14910        # FIXME: insert proper C++ library support
14911        ld_shlibs_CXX=no
14912        ;;
14913      aix[4-9]*)
14914        if test "$host_cpu" = ia64; then
14915          # On IA64, the linker does run time linking by default, so we don't
14916          # have to do anything special.
14917          aix_use_runtimelinking=no
14918          exp_sym_flag='-Bexport'
14919          no_entry_flag=""
14920        else
14921          aix_use_runtimelinking=no
14922
14923          # Test if we are trying to use run time linking or normal
14924          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14925          # need to do runtime linking.
14926          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14927	    for ld_flag in $LDFLAGS; do
14928	      case $ld_flag in
14929	      *-brtl*)
14930	        aix_use_runtimelinking=yes
14931	        break
14932	        ;;
14933	      esac
14934	    done
14935	    ;;
14936          esac
14937
14938          exp_sym_flag='-bexport'
14939          no_entry_flag='-bnoentry'
14940        fi
14941
14942        # When large executables or shared objects are built, AIX ld can
14943        # have problems creating the table of contents.  If linking a library
14944        # or program results in "error TOC overflow" add -mminimal-toc to
14945        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14946        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14947
14948        archive_cmds_CXX=''
14949        hardcode_direct_CXX=yes
14950        hardcode_direct_absolute_CXX=yes
14951        hardcode_libdir_separator_CXX=':'
14952        link_all_deplibs_CXX=yes
14953        file_list_spec_CXX='${wl}-f,'
14954
14955        if test "$GXX" = yes; then
14956          case $host_os in aix4.[012]|aix4.[012].*)
14957          # We only want to do this on AIX 4.2 and lower, the check
14958          # below for broken collect2 doesn't work under 4.3+
14959	  collect2name=`${CC} -print-prog-name=collect2`
14960	  if test -f "$collect2name" &&
14961	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14962	  then
14963	    # We have reworked collect2
14964	    :
14965	  else
14966	    # We have old collect2
14967	    hardcode_direct_CXX=unsupported
14968	    # It fails to find uninstalled libraries when the uninstalled
14969	    # path is not listed in the libpath.  Setting hardcode_minus_L
14970	    # to unsupported forces relinking
14971	    hardcode_minus_L_CXX=yes
14972	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14973	    hardcode_libdir_separator_CXX=
14974	  fi
14975          esac
14976          shared_flag='-shared'
14977	  if test "$aix_use_runtimelinking" = yes; then
14978	    shared_flag="$shared_flag "'${wl}-G'
14979	  fi
14980        else
14981          # not using gcc
14982          if test "$host_cpu" = ia64; then
14983	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14984	  # chokes on -Wl,-G. The following line is correct:
14985	  shared_flag='-G'
14986          else
14987	    if test "$aix_use_runtimelinking" = yes; then
14988	      shared_flag='${wl}-G'
14989	    else
14990	      shared_flag='${wl}-bM:SRE'
14991	    fi
14992          fi
14993        fi
14994
14995        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14996        # It seems that -bexpall does not export symbols beginning with
14997        # underscore (_), so it is better to generate a list of symbols to
14998	# export.
14999        always_export_symbols_CXX=yes
15000        if test "$aix_use_runtimelinking" = yes; then
15001          # Warning - without using the other runtime loading flags (-brtl),
15002          # -berok will link without error, but may produce a broken library.
15003          allow_undefined_flag_CXX='-berok'
15004          # Determine the default libpath from the value encoded in an empty
15005          # executable.
15006          cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h.  */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h.  */
15012
15013int
15014main ()
15015{
15016
15017  ;
15018  return 0;
15019}
15020_ACEOF
15021rm -f conftest.$ac_objext conftest$ac_exeext
15022if { (ac_try="$ac_link"
15023case "(($ac_try" in
15024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025  *) ac_try_echo=$ac_try;;
15026esac
15027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028$as_echo "$ac_try_echo") >&5
15029  (eval "$ac_link") 2>conftest.er1
15030  ac_status=$?
15031  grep -v '^ *+' conftest.er1 >conftest.err
15032  rm -f conftest.er1
15033  cat conftest.err >&5
15034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035  (exit $ac_status); } && {
15036	 test -z "$ac_cxx_werror_flag" ||
15037	 test ! -s conftest.err
15038       } && test -s conftest$ac_exeext && {
15039	 test "$cross_compiling" = yes ||
15040	 $as_test_x conftest$ac_exeext
15041       }; then
15042
15043lt_aix_libpath_sed='
15044    /Import File Strings/,/^$/ {
15045	/^0/ {
15046	    s/^0  *\(.*\)$/\1/
15047	    p
15048	}
15049    }'
15050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051# Check for a 64-bit object if we didn't find anything.
15052if test -z "$aix_libpath"; then
15053  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15054fi
15055else
15056  $as_echo "$as_me: failed program was:" >&5
15057sed 's/^/| /' conftest.$ac_ext >&5
15058
15059
15060fi
15061
15062rm -rf conftest.dSYM
15063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15064      conftest$ac_exeext conftest.$ac_ext
15065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15066
15067          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15068
15069          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15070        else
15071          if test "$host_cpu" = ia64; then
15072	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15073	    allow_undefined_flag_CXX="-z nodefs"
15074	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15075          else
15076	    # Determine the default libpath from the value encoded in an
15077	    # empty executable.
15078	    cat >conftest.$ac_ext <<_ACEOF
15079/* confdefs.h.  */
15080_ACEOF
15081cat confdefs.h >>conftest.$ac_ext
15082cat >>conftest.$ac_ext <<_ACEOF
15083/* end confdefs.h.  */
15084
15085int
15086main ()
15087{
15088
15089  ;
15090  return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext conftest$ac_exeext
15094if { (ac_try="$ac_link"
15095case "(($ac_try" in
15096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097  *) ac_try_echo=$ac_try;;
15098esac
15099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15100$as_echo "$ac_try_echo") >&5
15101  (eval "$ac_link") 2>conftest.er1
15102  ac_status=$?
15103  grep -v '^ *+' conftest.er1 >conftest.err
15104  rm -f conftest.er1
15105  cat conftest.err >&5
15106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107  (exit $ac_status); } && {
15108	 test -z "$ac_cxx_werror_flag" ||
15109	 test ! -s conftest.err
15110       } && test -s conftest$ac_exeext && {
15111	 test "$cross_compiling" = yes ||
15112	 $as_test_x conftest$ac_exeext
15113       }; then
15114
15115lt_aix_libpath_sed='
15116    /Import File Strings/,/^$/ {
15117	/^0/ {
15118	    s/^0  *\(.*\)$/\1/
15119	    p
15120	}
15121    }'
15122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15123# Check for a 64-bit object if we didn't find anything.
15124if test -z "$aix_libpath"; then
15125  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15126fi
15127else
15128  $as_echo "$as_me: failed program was:" >&5
15129sed 's/^/| /' conftest.$ac_ext >&5
15130
15131
15132fi
15133
15134rm -rf conftest.dSYM
15135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15136      conftest$ac_exeext conftest.$ac_ext
15137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15138
15139	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15140	    # Warning - without using the other run time loading flags,
15141	    # -berok will link without error, but may produce a broken library.
15142	    no_undefined_flag_CXX=' ${wl}-bernotok'
15143	    allow_undefined_flag_CXX=' ${wl}-berok'
15144	    # Exported symbols can be pulled into shared objects from archives
15145	    whole_archive_flag_spec_CXX='$convenience'
15146	    archive_cmds_need_lc_CXX=yes
15147	    # This is similar to how AIX traditionally builds its shared
15148	    # libraries.
15149	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15150          fi
15151        fi
15152        ;;
15153
15154      beos*)
15155	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15156	  allow_undefined_flag_CXX=unsupported
15157	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15158	  # support --undefined.  This deserves some investigation.  FIXME
15159	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160	else
15161	  ld_shlibs_CXX=no
15162	fi
15163	;;
15164
15165      chorus*)
15166        case $cc_basename in
15167          *)
15168	  # FIXME: insert proper C++ library support
15169	  ld_shlibs_CXX=no
15170	  ;;
15171        esac
15172        ;;
15173
15174      cygwin* | mingw* | pw32* | cegcc*)
15175        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15176        # as there is no search path for DLLs.
15177        hardcode_libdir_flag_spec_CXX='-L$libdir'
15178        allow_undefined_flag_CXX=unsupported
15179        always_export_symbols_CXX=no
15180        enable_shared_with_static_runtimes_CXX=yes
15181
15182        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15183          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15184          # If the export-symbols file already is a .def file (1st line
15185          # is EXPORTS), use it as is; otherwise, prepend...
15186          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15187	    cp $export_symbols $output_objdir/$soname.def;
15188          else
15189	    echo EXPORTS > $output_objdir/$soname.def;
15190	    cat $export_symbols >> $output_objdir/$soname.def;
15191          fi~
15192          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15193        else
15194          ld_shlibs_CXX=no
15195        fi
15196        ;;
15197      darwin* | rhapsody*)
15198
15199
15200  archive_cmds_need_lc_CXX=no
15201  hardcode_direct_CXX=no
15202  hardcode_automatic_CXX=yes
15203  hardcode_shlibpath_var_CXX=unsupported
15204  whole_archive_flag_spec_CXX=''
15205  link_all_deplibs_CXX=yes
15206  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15207  case $cc_basename in
15208     ifort*) _lt_dar_can_shared=yes ;;
15209     *) _lt_dar_can_shared=$GCC ;;
15210  esac
15211  if test "$_lt_dar_can_shared" = "yes"; then
15212    output_verbose_link_cmd=echo
15213    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15214    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15215    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15216    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15217       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15218      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15219      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15220    fi
15221
15222  else
15223  ld_shlibs_CXX=no
15224  fi
15225
15226	;;
15227
15228      dgux*)
15229        case $cc_basename in
15230          ec++*)
15231	    # FIXME: insert proper C++ library support
15232	    ld_shlibs_CXX=no
15233	    ;;
15234          ghcx*)
15235	    # Green Hills C++ Compiler
15236	    # FIXME: insert proper C++ library support
15237	    ld_shlibs_CXX=no
15238	    ;;
15239          *)
15240	    # FIXME: insert proper C++ library support
15241	    ld_shlibs_CXX=no
15242	    ;;
15243        esac
15244        ;;
15245
15246      freebsd[12]*)
15247        # C++ shared libraries reported to be fairly broken before
15248	# switch to ELF
15249        ld_shlibs_CXX=no
15250        ;;
15251
15252      freebsd-elf*)
15253        archive_cmds_need_lc_CXX=no
15254        ;;
15255
15256      freebsd* | dragonfly*)
15257        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15258        # conventions
15259        ld_shlibs_CXX=yes
15260        ;;
15261
15262      gnu*)
15263        ;;
15264
15265      hpux9*)
15266        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15267        hardcode_libdir_separator_CXX=:
15268        export_dynamic_flag_spec_CXX='${wl}-E'
15269        hardcode_direct_CXX=yes
15270        hardcode_minus_L_CXX=yes # Not in the search PATH,
15271				             # but as the default
15272				             # location of the library.
15273
15274        case $cc_basename in
15275          CC*)
15276            # FIXME: insert proper C++ library support
15277            ld_shlibs_CXX=no
15278            ;;
15279          aCC*)
15280            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'
15281            # Commands to make compiler produce verbose output that lists
15282            # what "hidden" libraries, object files and flags are used when
15283            # linking a shared library.
15284            #
15285            # There doesn't appear to be a way to prevent this compiler from
15286            # explicitly linking system object files so we need to strip them
15287            # from the output so that they don't get included in the library
15288            # dependencies.
15289            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 "X$list" | $Xsed'
15290            ;;
15291          *)
15292            if test "$GXX" = yes; then
15293              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'
15294            else
15295              # FIXME: insert proper C++ library support
15296              ld_shlibs_CXX=no
15297            fi
15298            ;;
15299        esac
15300        ;;
15301
15302      hpux10*|hpux11*)
15303        if test $with_gnu_ld = no; then
15304	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15305	  hardcode_libdir_separator_CXX=:
15306
15307          case $host_cpu in
15308            hppa*64*|ia64*)
15309              ;;
15310            *)
15311	      export_dynamic_flag_spec_CXX='${wl}-E'
15312              ;;
15313          esac
15314        fi
15315        case $host_cpu in
15316          hppa*64*|ia64*)
15317            hardcode_direct_CXX=no
15318            hardcode_shlibpath_var_CXX=no
15319            ;;
15320          *)
15321            hardcode_direct_CXX=yes
15322            hardcode_direct_absolute_CXX=yes
15323            hardcode_minus_L_CXX=yes # Not in the search PATH,
15324					         # but as the default
15325					         # location of the library.
15326            ;;
15327        esac
15328
15329        case $cc_basename in
15330          CC*)
15331	    # FIXME: insert proper C++ library support
15332	    ld_shlibs_CXX=no
15333	    ;;
15334          aCC*)
15335	    case $host_cpu in
15336	      hppa*64*)
15337	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15338	        ;;
15339	      ia64*)
15340	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15341	        ;;
15342	      *)
15343	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15344	        ;;
15345	    esac
15346	    # Commands to make compiler produce verbose output that lists
15347	    # what "hidden" libraries, object files and flags are used when
15348	    # linking a shared library.
15349	    #
15350	    # There doesn't appear to be a way to prevent this compiler from
15351	    # explicitly linking system object files so we need to strip them
15352	    # from the output so that they don't get included in the library
15353	    # dependencies.
15354	    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 "X$list" | $Xsed'
15355	    ;;
15356          *)
15357	    if test "$GXX" = yes; then
15358	      if test $with_gnu_ld = no; then
15359	        case $host_cpu in
15360	          hppa*64*)
15361	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15362	            ;;
15363	          ia64*)
15364	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15365	            ;;
15366	          *)
15367	            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'
15368	            ;;
15369	        esac
15370	      fi
15371	    else
15372	      # FIXME: insert proper C++ library support
15373	      ld_shlibs_CXX=no
15374	    fi
15375	    ;;
15376        esac
15377        ;;
15378
15379      interix[3-9]*)
15380	hardcode_direct_CXX=no
15381	hardcode_shlibpath_var_CXX=no
15382	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15383	export_dynamic_flag_spec_CXX='${wl}-E'
15384	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15385	# Instead, shared libraries are loaded at an image base (0x10000000 by
15386	# default) and relocated if they conflict, which is a slow very memory
15387	# consuming and fragmenting process.  To avoid this, we pick a random,
15388	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15389	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15390	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15391	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15392	;;
15393      irix5* | irix6*)
15394        case $cc_basename in
15395          CC*)
15396	    # SGI C++
15397	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15398
15399	    # Archives containing C++ object files must be created using
15400	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15401	    # necessary to make sure instantiated templates are included
15402	    # in the archive.
15403	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15404	    ;;
15405          *)
15406	    if test "$GXX" = yes; then
15407	      if test "$with_gnu_ld" = no; then
15408	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15409	      else
15410	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15411	      fi
15412	    fi
15413	    link_all_deplibs_CXX=yes
15414	    ;;
15415        esac
15416        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15417        hardcode_libdir_separator_CXX=:
15418        inherit_rpath_CXX=yes
15419        ;;
15420
15421      linux* | k*bsd*-gnu)
15422        case $cc_basename in
15423          KCC*)
15424	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15425
15426	    # KCC will only create a shared library if the output file
15427	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15428	    # to its proper name (with version) after linking.
15429	    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'
15430	    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'
15431	    # Commands to make compiler produce verbose output that lists
15432	    # what "hidden" libraries, object files and flags are used when
15433	    # linking a shared library.
15434	    #
15435	    # There doesn't appear to be a way to prevent this compiler from
15436	    # explicitly linking system object files so we need to strip them
15437	    # from the output so that they don't get included in the library
15438	    # dependencies.
15439	    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 "X$list" | $Xsed'
15440
15441	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15442	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15443
15444	    # Archives containing C++ object files must be created using
15445	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15446	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15447	    ;;
15448	  icpc* | ecpc* )
15449	    # Intel C++
15450	    with_gnu_ld=yes
15451	    # version 8.0 and above of icpc choke on multiply defined symbols
15452	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15453	    # earlier do not add the objects themselves.
15454	    case `$CC -V 2>&1` in
15455	      *"Version 7."*)
15456	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457		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'
15458		;;
15459	      *)  # Version 8.0 or newer
15460	        tmp_idyn=
15461	        case $host_cpu in
15462		  ia64*) tmp_idyn=' -i_dynamic';;
15463		esac
15464	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15465		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15466		;;
15467	    esac
15468	    archive_cmds_need_lc_CXX=no
15469	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15470	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15471	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15472	    ;;
15473          pgCC* | pgcpp*)
15474            # Portland Group C++ compiler
15475	    case `$CC -V` in
15476	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15477	      prelink_cmds_CXX='tpldir=Template.dir~
15478		rm -rf $tpldir~
15479		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15480		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15481	      old_archive_cmds_CXX='tpldir=Template.dir~
15482		rm -rf $tpldir~
15483		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15484		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15485		$RANLIB $oldlib'
15486	      archive_cmds_CXX='tpldir=Template.dir~
15487		rm -rf $tpldir~
15488		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15489		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15490	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15491		rm -rf $tpldir~
15492		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15493		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15494	      ;;
15495	    *) # Version 6 will use weak symbols
15496	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15497	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15498	      ;;
15499	    esac
15500
15501	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15502	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15503	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15504            ;;
15505	  cxx*)
15506	    # Compaq C++
15507	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508	    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'
15509
15510	    runpath_var=LD_RUN_PATH
15511	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15512	    hardcode_libdir_separator_CXX=:
15513
15514	    # Commands to make compiler produce verbose output that lists
15515	    # what "hidden" libraries, object files and flags are used when
15516	    # linking a shared library.
15517	    #
15518	    # There doesn't appear to be a way to prevent this compiler from
15519	    # explicitly linking system object files so we need to strip them
15520	    # from the output so that they don't get included in the library
15521	    # dependencies.
15522	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15523	    ;;
15524	  xl*)
15525	    # IBM XL 8.0 on PPC, with GNU ld
15526	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15527	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15528	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529	    if test "x$supports_anon_versioning" = xyes; then
15530	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15531		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15532		echo "local: *; };" >> $output_objdir/$libname.ver~
15533		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15534	    fi
15535	    ;;
15536	  *)
15537	    case `$CC -V 2>&1 | sed 5q` in
15538	    *Sun\ C*)
15539	      # Sun C++ 5.9
15540	      no_undefined_flag_CXX=' -zdefs'
15541	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15542	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15543	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15544	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15545	      compiler_needs_object_CXX=yes
15546
15547	      # Not sure whether something based on
15548	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15549	      # would be better.
15550	      output_verbose_link_cmd='echo'
15551
15552	      # Archives containing C++ object files must be created using
15553	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15554	      # necessary to make sure instantiated templates are included
15555	      # in the archive.
15556	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15557	      ;;
15558	    esac
15559	    ;;
15560	esac
15561	;;
15562
15563      lynxos*)
15564        # FIXME: insert proper C++ library support
15565	ld_shlibs_CXX=no
15566	;;
15567
15568      m88k*)
15569        # FIXME: insert proper C++ library support
15570        ld_shlibs_CXX=no
15571	;;
15572
15573      mvs*)
15574        case $cc_basename in
15575          cxx*)
15576	    # FIXME: insert proper C++ library support
15577	    ld_shlibs_CXX=no
15578	    ;;
15579	  *)
15580	    # FIXME: insert proper C++ library support
15581	    ld_shlibs_CXX=no
15582	    ;;
15583	esac
15584	;;
15585
15586      netbsd*)
15587        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15588	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15589	  wlarc=
15590	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15591	  hardcode_direct_CXX=yes
15592	  hardcode_shlibpath_var_CXX=no
15593	fi
15594	# Workaround some broken pre-1.5 toolchains
15595	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15596	;;
15597
15598      *nto* | *qnx*)
15599        ld_shlibs_CXX=yes
15600	;;
15601
15602      openbsd2*)
15603        # C++ shared libraries are fairly broken
15604	ld_shlibs_CXX=no
15605	;;
15606
15607      openbsd*)
15608	if test -f /usr/libexec/ld.so; then
15609	  hardcode_direct_CXX=yes
15610	  hardcode_shlibpath_var_CXX=no
15611	  hardcode_direct_absolute_CXX=yes
15612	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15613	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15614	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15615	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15616	    export_dynamic_flag_spec_CXX='${wl}-E'
15617	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15618	  fi
15619	  output_verbose_link_cmd=echo
15620	else
15621	  ld_shlibs_CXX=no
15622	fi
15623	;;
15624
15625      osf3* | osf4* | osf5*)
15626        case $cc_basename in
15627          KCC*)
15628	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15629
15630	    # KCC will only create a shared library if the output file
15631	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15632	    # to its proper name (with version) after linking.
15633	    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'
15634
15635	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15636	    hardcode_libdir_separator_CXX=:
15637
15638	    # Archives containing C++ object files must be created using
15639	    # the KAI C++ compiler.
15640	    case $host in
15641	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15642	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15643	    esac
15644	    ;;
15645          RCC*)
15646	    # Rational C++ 2.4.1
15647	    # FIXME: insert proper C++ library support
15648	    ld_shlibs_CXX=no
15649	    ;;
15650          cxx*)
15651	    case $host in
15652	      osf3*)
15653	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15654	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15655	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15656		;;
15657	      *)
15658	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15659	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15660	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15661	          echo "-hidden">> $lib.exp~
15662	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15663	          $RM $lib.exp'
15664	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15665		;;
15666	    esac
15667
15668	    hardcode_libdir_separator_CXX=:
15669
15670	    # Commands to make compiler produce verbose output that lists
15671	    # what "hidden" libraries, object files and flags are used when
15672	    # linking a shared library.
15673	    #
15674	    # There doesn't appear to be a way to prevent this compiler from
15675	    # explicitly linking system object files so we need to strip them
15676	    # from the output so that they don't get included in the library
15677	    # dependencies.
15678	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15679	    ;;
15680	  *)
15681	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15682	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15683	      case $host in
15684	        osf3*)
15685	          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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15686		  ;;
15687	        *)
15688	          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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15689		  ;;
15690	      esac
15691
15692	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15693	      hardcode_libdir_separator_CXX=:
15694
15695	      # Commands to make compiler produce verbose output that lists
15696	      # what "hidden" libraries, object files and flags are used when
15697	      # linking a shared library.
15698	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15699
15700	    else
15701	      # FIXME: insert proper C++ library support
15702	      ld_shlibs_CXX=no
15703	    fi
15704	    ;;
15705        esac
15706        ;;
15707
15708      psos*)
15709        # FIXME: insert proper C++ library support
15710        ld_shlibs_CXX=no
15711        ;;
15712
15713      sunos4*)
15714        case $cc_basename in
15715          CC*)
15716	    # Sun C++ 4.x
15717	    # FIXME: insert proper C++ library support
15718	    ld_shlibs_CXX=no
15719	    ;;
15720          lcc*)
15721	    # Lucid
15722	    # FIXME: insert proper C++ library support
15723	    ld_shlibs_CXX=no
15724	    ;;
15725          *)
15726	    # FIXME: insert proper C++ library support
15727	    ld_shlibs_CXX=no
15728	    ;;
15729        esac
15730        ;;
15731
15732      solaris*)
15733        case $cc_basename in
15734          CC*)
15735	    # Sun C++ 4.2, 5.x and Centerline C++
15736            archive_cmds_need_lc_CXX=yes
15737	    no_undefined_flag_CXX=' -zdefs'
15738	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15739	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15740	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15741
15742	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15743	    hardcode_shlibpath_var_CXX=no
15744	    case $host_os in
15745	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15746	      *)
15747		# The compiler driver will combine and reorder linker options,
15748		# but understands `-z linker_flag'.
15749	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15750		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15751	        ;;
15752	    esac
15753	    link_all_deplibs_CXX=yes
15754
15755	    output_verbose_link_cmd='echo'
15756
15757	    # Archives containing C++ object files must be created using
15758	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15759	    # necessary to make sure instantiated templates are included
15760	    # in the archive.
15761	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15762	    ;;
15763          gcx*)
15764	    # Green Hills C++ Compiler
15765	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15766
15767	    # The C++ compiler must be used to create the archive.
15768	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15769	    ;;
15770          *)
15771	    # GNU C++ compiler with Solaris linker
15772	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15773	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15774	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15775	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15776	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15777		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15778
15779	        # Commands to make compiler produce verbose output that lists
15780	        # what "hidden" libraries, object files and flags are used when
15781	        # linking a shared library.
15782	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15783	      else
15784	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15785	        # platform.
15786	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15787	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15788		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15789
15790	        # Commands to make compiler produce verbose output that lists
15791	        # what "hidden" libraries, object files and flags are used when
15792	        # linking a shared library.
15793	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15794	      fi
15795
15796	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15797	      case $host_os in
15798		solaris2.[0-5] | solaris2.[0-5].*) ;;
15799		*)
15800		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15801		  ;;
15802	      esac
15803	    fi
15804	    ;;
15805        esac
15806        ;;
15807
15808    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15809      no_undefined_flag_CXX='${wl}-z,text'
15810      archive_cmds_need_lc_CXX=no
15811      hardcode_shlibpath_var_CXX=no
15812      runpath_var='LD_RUN_PATH'
15813
15814      case $cc_basename in
15815        CC*)
15816	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15818	  ;;
15819	*)
15820	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15821	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15822	  ;;
15823      esac
15824      ;;
15825
15826      sysv5* | sco3.2v5* | sco5v6*)
15827	# Note: We can NOT use -z defs as we might desire, because we do not
15828	# link with -lc, and that would cause any symbols used from libc to
15829	# always be unresolved, which means just about no library would
15830	# ever link correctly.  If we're not using GNU ld we use -z text
15831	# though, which does catch some bad symbols but isn't as heavy-handed
15832	# as -z defs.
15833	no_undefined_flag_CXX='${wl}-z,text'
15834	allow_undefined_flag_CXX='${wl}-z,nodefs'
15835	archive_cmds_need_lc_CXX=no
15836	hardcode_shlibpath_var_CXX=no
15837	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15838	hardcode_libdir_separator_CXX=':'
15839	link_all_deplibs_CXX=yes
15840	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15841	runpath_var='LD_RUN_PATH'
15842
15843	case $cc_basename in
15844          CC*)
15845	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15846	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15847	    ;;
15848	  *)
15849	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15850	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15851	    ;;
15852	esac
15853      ;;
15854
15855      tandem*)
15856        case $cc_basename in
15857          NCC*)
15858	    # NonStop-UX NCC 3.20
15859	    # FIXME: insert proper C++ library support
15860	    ld_shlibs_CXX=no
15861	    ;;
15862          *)
15863	    # FIXME: insert proper C++ library support
15864	    ld_shlibs_CXX=no
15865	    ;;
15866        esac
15867        ;;
15868
15869      vxworks*)
15870        # FIXME: insert proper C++ library support
15871        ld_shlibs_CXX=no
15872        ;;
15873
15874      *)
15875        # FIXME: insert proper C++ library support
15876        ld_shlibs_CXX=no
15877        ;;
15878    esac
15879
15880    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15881$as_echo "$ld_shlibs_CXX" >&6; }
15882    test "$ld_shlibs_CXX" = no && can_build_shared=no
15883
15884    GCC_CXX="$GXX"
15885    LD_CXX="$LD"
15886
15887    ## CAVEAT EMPTOR:
15888    ## There is no encapsulation within the following macros, do not change
15889    ## the running order or otherwise move them around unless you know exactly
15890    ## what you are doing...
15891    # Dependencies to place before and after the object being linked:
15892predep_objects_CXX=
15893postdep_objects_CXX=
15894predeps_CXX=
15895postdeps_CXX=
15896compiler_lib_search_path_CXX=
15897
15898cat > conftest.$ac_ext <<_LT_EOF
15899class Foo
15900{
15901public:
15902  Foo (void) { a = 0; }
15903private:
15904  int a;
15905};
15906_LT_EOF
15907
15908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909  (eval $ac_compile) 2>&5
15910  ac_status=$?
15911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912  (exit $ac_status); }; then
15913  # Parse the compiler output and extract the necessary
15914  # objects, libraries and library flags.
15915
15916  # Sentinel used to keep track of whether or not we are before
15917  # the conftest object file.
15918  pre_test_object_deps_done=no
15919
15920  for p in `eval "$output_verbose_link_cmd"`; do
15921    case $p in
15922
15923    -L* | -R* | -l*)
15924       # Some compilers place space between "-{L,R}" and the path.
15925       # Remove the space.
15926       if test $p = "-L" ||
15927          test $p = "-R"; then
15928	 prev=$p
15929	 continue
15930       else
15931	 prev=
15932       fi
15933
15934       if test "$pre_test_object_deps_done" = no; then
15935	 case $p in
15936	 -L* | -R*)
15937	   # Internal compiler library paths should come after those
15938	   # provided the user.  The postdeps already come after the
15939	   # user supplied libs so there is no need to process them.
15940	   if test -z "$compiler_lib_search_path_CXX"; then
15941	     compiler_lib_search_path_CXX="${prev}${p}"
15942	   else
15943	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15944	   fi
15945	   ;;
15946	 # The "-l" case would never come before the object being
15947	 # linked, so don't bother handling this case.
15948	 esac
15949       else
15950	 if test -z "$postdeps_CXX"; then
15951	   postdeps_CXX="${prev}${p}"
15952	 else
15953	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15954	 fi
15955       fi
15956       ;;
15957
15958    *.$objext)
15959       # This assumes that the test object file only shows up
15960       # once in the compiler output.
15961       if test "$p" = "conftest.$objext"; then
15962	 pre_test_object_deps_done=yes
15963	 continue
15964       fi
15965
15966       if test "$pre_test_object_deps_done" = no; then
15967	 if test -z "$predep_objects_CXX"; then
15968	   predep_objects_CXX="$p"
15969	 else
15970	   predep_objects_CXX="$predep_objects_CXX $p"
15971	 fi
15972       else
15973	 if test -z "$postdep_objects_CXX"; then
15974	   postdep_objects_CXX="$p"
15975	 else
15976	   postdep_objects_CXX="$postdep_objects_CXX $p"
15977	 fi
15978       fi
15979       ;;
15980
15981    *) ;; # Ignore the rest.
15982
15983    esac
15984  done
15985
15986  # Clean up.
15987  rm -f a.out a.exe
15988else
15989  echo "libtool.m4: error: problem compiling CXX test program"
15990fi
15991
15992$RM -f confest.$objext
15993
15994# PORTME: override above test on systems where it is broken
15995case $host_os in
15996interix[3-9]*)
15997  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15998  # hack all around it, let's just trust "g++" to DTRT.
15999  predep_objects_CXX=
16000  postdep_objects_CXX=
16001  postdeps_CXX=
16002  ;;
16003
16004linux*)
16005  case `$CC -V 2>&1 | sed 5q` in
16006  *Sun\ C*)
16007    # Sun C++ 5.9
16008
16009    # The more standards-conforming stlport4 library is
16010    # incompatible with the Cstd library. Avoid specifying
16011    # it if it's in CXXFLAGS. Ignore libCrun as
16012    # -library=stlport4 depends on it.
16013    case " $CXX $CXXFLAGS " in
16014    *" -library=stlport4 "*)
16015      solaris_use_stlport4=yes
16016      ;;
16017    esac
16018
16019    if test "$solaris_use_stlport4" != yes; then
16020      postdeps_CXX='-library=Cstd -library=Crun'
16021    fi
16022    ;;
16023  esac
16024  ;;
16025
16026solaris*)
16027  case $cc_basename in
16028  CC*)
16029    # The more standards-conforming stlport4 library is
16030    # incompatible with the Cstd library. Avoid specifying
16031    # it if it's in CXXFLAGS. Ignore libCrun as
16032    # -library=stlport4 depends on it.
16033    case " $CXX $CXXFLAGS " in
16034    *" -library=stlport4 "*)
16035      solaris_use_stlport4=yes
16036      ;;
16037    esac
16038
16039    # Adding this requires a known-good setup of shared libraries for
16040    # Sun compiler versions before 5.6, else PIC objects from an old
16041    # archive will be linked into the output, leading to subtle bugs.
16042    if test "$solaris_use_stlport4" != yes; then
16043      postdeps_CXX='-library=Cstd -library=Crun'
16044    fi
16045    ;;
16046  esac
16047  ;;
16048esac
16049
16050
16051case " $postdeps_CXX " in
16052*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16053esac
16054 compiler_lib_search_dirs_CXX=
16055if test -n "${compiler_lib_search_path_CXX}"; then
16056 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16057fi
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089    lt_prog_compiler_wl_CXX=
16090lt_prog_compiler_pic_CXX=
16091lt_prog_compiler_static_CXX=
16092
16093{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16094$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16095
16096  # C++ specific cases for pic, static, wl, etc.
16097  if test "$GXX" = yes; then
16098    lt_prog_compiler_wl_CXX='-Wl,'
16099    lt_prog_compiler_static_CXX='-static'
16100
16101    case $host_os in
16102    aix*)
16103      # All AIX code is PIC.
16104      if test "$host_cpu" = ia64; then
16105	# AIX 5 now supports IA64 processor
16106	lt_prog_compiler_static_CXX='-Bstatic'
16107      fi
16108      ;;
16109
16110    amigaos*)
16111      case $host_cpu in
16112      powerpc)
16113            # see comment about AmigaOS4 .so support
16114            lt_prog_compiler_pic_CXX='-fPIC'
16115        ;;
16116      m68k)
16117            # FIXME: we need at least 68020 code to build shared libraries, but
16118            # adding the `-m68020' flag to GCC prevents building anything better,
16119            # like `-m68040'.
16120            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16121        ;;
16122      esac
16123      ;;
16124
16125    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16126      # PIC is the default for these OSes.
16127      ;;
16128    mingw* | cygwin* | os2* | pw32* | cegcc*)
16129      # This hack is so that the source file can tell whether it is being
16130      # built for inclusion in a dll (and should export symbols for example).
16131      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16132      # (--disable-auto-import) libraries
16133      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16134      ;;
16135    darwin* | rhapsody*)
16136      # PIC is the default on this platform
16137      # Common symbols not allowed in MH_DYLIB files
16138      lt_prog_compiler_pic_CXX='-fno-common'
16139      ;;
16140    *djgpp*)
16141      # DJGPP does not support shared libraries at all
16142      lt_prog_compiler_pic_CXX=
16143      ;;
16144    interix[3-9]*)
16145      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16146      # Instead, we relocate shared libraries at runtime.
16147      ;;
16148    sysv4*MP*)
16149      if test -d /usr/nec; then
16150	lt_prog_compiler_pic_CXX=-Kconform_pic
16151      fi
16152      ;;
16153    hpux*)
16154      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16155      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16156      # sets the default TLS model and affects inlining.
16157      case $host_cpu in
16158      hppa*64*)
16159	;;
16160      *)
16161	lt_prog_compiler_pic_CXX='-fPIC'
16162	;;
16163      esac
16164      ;;
16165    *qnx* | *nto*)
16166      # QNX uses GNU C++, but need to define -shared option too, otherwise
16167      # it will coredump.
16168      lt_prog_compiler_pic_CXX='-fPIC -shared'
16169      ;;
16170    *)
16171      lt_prog_compiler_pic_CXX='-fPIC'
16172      ;;
16173    esac
16174  else
16175    case $host_os in
16176      aix[4-9]*)
16177	# All AIX code is PIC.
16178	if test "$host_cpu" = ia64; then
16179	  # AIX 5 now supports IA64 processor
16180	  lt_prog_compiler_static_CXX='-Bstatic'
16181	else
16182	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16183	fi
16184	;;
16185      chorus*)
16186	case $cc_basename in
16187	cxch68*)
16188	  # Green Hills C++ Compiler
16189	  # _LT_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"
16190	  ;;
16191	esac
16192	;;
16193      dgux*)
16194	case $cc_basename in
16195	  ec++*)
16196	    lt_prog_compiler_pic_CXX='-KPIC'
16197	    ;;
16198	  ghcx*)
16199	    # Green Hills C++ Compiler
16200	    lt_prog_compiler_pic_CXX='-pic'
16201	    ;;
16202	  *)
16203	    ;;
16204	esac
16205	;;
16206      freebsd* | dragonfly*)
16207	# FreeBSD uses GNU C++
16208	;;
16209      hpux9* | hpux10* | hpux11*)
16210	case $cc_basename in
16211	  CC*)
16212	    lt_prog_compiler_wl_CXX='-Wl,'
16213	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16214	    if test "$host_cpu" != ia64; then
16215	      lt_prog_compiler_pic_CXX='+Z'
16216	    fi
16217	    ;;
16218	  aCC*)
16219	    lt_prog_compiler_wl_CXX='-Wl,'
16220	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16221	    case $host_cpu in
16222	    hppa*64*|ia64*)
16223	      # +Z the default
16224	      ;;
16225	    *)
16226	      lt_prog_compiler_pic_CXX='+Z'
16227	      ;;
16228	    esac
16229	    ;;
16230	  *)
16231	    ;;
16232	esac
16233	;;
16234      interix*)
16235	# This is c89, which is MS Visual C++ (no shared libs)
16236	# Anyone wants to do a port?
16237	;;
16238      irix5* | irix6* | nonstopux*)
16239	case $cc_basename in
16240	  CC*)
16241	    lt_prog_compiler_wl_CXX='-Wl,'
16242	    lt_prog_compiler_static_CXX='-non_shared'
16243	    # CC pic flag -KPIC is the default.
16244	    ;;
16245	  *)
16246	    ;;
16247	esac
16248	;;
16249      linux* | k*bsd*-gnu)
16250	case $cc_basename in
16251	  KCC*)
16252	    # KAI C++ Compiler
16253	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16254	    lt_prog_compiler_pic_CXX='-fPIC'
16255	    ;;
16256	  ecpc* )
16257	    # old Intel C++ for x86_64 which still supported -KPIC.
16258	    lt_prog_compiler_wl_CXX='-Wl,'
16259	    lt_prog_compiler_pic_CXX='-KPIC'
16260	    lt_prog_compiler_static_CXX='-static'
16261	    ;;
16262	  icpc* )
16263	    # Intel C++, used to be incompatible with GCC.
16264	    # ICC 10 doesn't accept -KPIC any more.
16265	    lt_prog_compiler_wl_CXX='-Wl,'
16266	    lt_prog_compiler_pic_CXX='-fPIC'
16267	    lt_prog_compiler_static_CXX='-static'
16268	    ;;
16269	  pgCC* | pgcpp*)
16270	    # Portland Group C++ compiler
16271	    lt_prog_compiler_wl_CXX='-Wl,'
16272	    lt_prog_compiler_pic_CXX='-fpic'
16273	    lt_prog_compiler_static_CXX='-Bstatic'
16274	    ;;
16275	  cxx*)
16276	    # Compaq C++
16277	    # Make sure the PIC flag is empty.  It appears that all Alpha
16278	    # Linux and Compaq Tru64 Unix objects are PIC.
16279	    lt_prog_compiler_pic_CXX=
16280	    lt_prog_compiler_static_CXX='-non_shared'
16281	    ;;
16282	  xlc* | xlC*)
16283	    # IBM XL 8.0 on PPC
16284	    lt_prog_compiler_wl_CXX='-Wl,'
16285	    lt_prog_compiler_pic_CXX='-qpic'
16286	    lt_prog_compiler_static_CXX='-qstaticlink'
16287	    ;;
16288	  *)
16289	    case `$CC -V 2>&1 | sed 5q` in
16290	    *Sun\ C*)
16291	      # Sun C++ 5.9
16292	      lt_prog_compiler_pic_CXX='-KPIC'
16293	      lt_prog_compiler_static_CXX='-Bstatic'
16294	      lt_prog_compiler_wl_CXX='-Qoption ld '
16295	      ;;
16296	    esac
16297	    ;;
16298	esac
16299	;;
16300      lynxos*)
16301	;;
16302      m88k*)
16303	;;
16304      mvs*)
16305	case $cc_basename in
16306	  cxx*)
16307	    lt_prog_compiler_pic_CXX='-W c,exportall'
16308	    ;;
16309	  *)
16310	    ;;
16311	esac
16312	;;
16313      netbsd*)
16314	;;
16315      *qnx* | *nto*)
16316        # QNX uses GNU C++, but need to define -shared option too, otherwise
16317        # it will coredump.
16318        lt_prog_compiler_pic_CXX='-fPIC -shared'
16319        ;;
16320      osf3* | osf4* | osf5*)
16321	case $cc_basename in
16322	  KCC*)
16323	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16324	    ;;
16325	  RCC*)
16326	    # Rational C++ 2.4.1
16327	    lt_prog_compiler_pic_CXX='-pic'
16328	    ;;
16329	  cxx*)
16330	    # Digital/Compaq C++
16331	    lt_prog_compiler_wl_CXX='-Wl,'
16332	    # Make sure the PIC flag is empty.  It appears that all Alpha
16333	    # Linux and Compaq Tru64 Unix objects are PIC.
16334	    lt_prog_compiler_pic_CXX=
16335	    lt_prog_compiler_static_CXX='-non_shared'
16336	    ;;
16337	  *)
16338	    ;;
16339	esac
16340	;;
16341      psos*)
16342	;;
16343      solaris*)
16344	case $cc_basename in
16345	  CC*)
16346	    # Sun C++ 4.2, 5.x and Centerline C++
16347	    lt_prog_compiler_pic_CXX='-KPIC'
16348	    lt_prog_compiler_static_CXX='-Bstatic'
16349	    lt_prog_compiler_wl_CXX='-Qoption ld '
16350	    ;;
16351	  gcx*)
16352	    # Green Hills C++ Compiler
16353	    lt_prog_compiler_pic_CXX='-PIC'
16354	    ;;
16355	  *)
16356	    ;;
16357	esac
16358	;;
16359      sunos4*)
16360	case $cc_basename in
16361	  CC*)
16362	    # Sun C++ 4.x
16363	    lt_prog_compiler_pic_CXX='-pic'
16364	    lt_prog_compiler_static_CXX='-Bstatic'
16365	    ;;
16366	  lcc*)
16367	    # Lucid
16368	    lt_prog_compiler_pic_CXX='-pic'
16369	    ;;
16370	  *)
16371	    ;;
16372	esac
16373	;;
16374      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16375	case $cc_basename in
16376	  CC*)
16377	    lt_prog_compiler_wl_CXX='-Wl,'
16378	    lt_prog_compiler_pic_CXX='-KPIC'
16379	    lt_prog_compiler_static_CXX='-Bstatic'
16380	    ;;
16381	esac
16382	;;
16383      tandem*)
16384	case $cc_basename in
16385	  NCC*)
16386	    # NonStop-UX NCC 3.20
16387	    lt_prog_compiler_pic_CXX='-KPIC'
16388	    ;;
16389	  *)
16390	    ;;
16391	esac
16392	;;
16393      vxworks*)
16394	;;
16395      *)
16396	lt_prog_compiler_can_build_shared_CXX=no
16397	;;
16398    esac
16399  fi
16400
16401case $host_os in
16402  # For platforms which do not support PIC, -DPIC is meaningless:
16403  *djgpp*)
16404    lt_prog_compiler_pic_CXX=
16405    ;;
16406  *)
16407    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16408    ;;
16409esac
16410{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16411$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16412
16413
16414
16415#
16416# Check to make sure the PIC flag actually works.
16417#
16418if test -n "$lt_prog_compiler_pic_CXX"; then
16419  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16420$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16421if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16422  $as_echo_n "(cached) " >&6
16423else
16424  lt_cv_prog_compiler_pic_works_CXX=no
16425   ac_outfile=conftest.$ac_objext
16426   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16427   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16428   # Insert the option either (1) after the last *FLAGS variable, or
16429   # (2) before a word containing "conftest.", or (3) at the end.
16430   # Note that $ac_compile itself does not contain backslashes and begins
16431   # with a dollar sign (not a hyphen), so the echo should work correctly.
16432   # The option is referenced via a variable to avoid confusing sed.
16433   lt_compile=`echo "$ac_compile" | $SED \
16434   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16435   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16436   -e 's:$: $lt_compiler_flag:'`
16437   (eval echo "\"\$as_me:16440: $lt_compile\"" >&5)
16438   (eval "$lt_compile" 2>conftest.err)
16439   ac_status=$?
16440   cat conftest.err >&5
16441   echo "$as_me:16444: \$? = $ac_status" >&5
16442   if (exit $ac_status) && test -s "$ac_outfile"; then
16443     # The compiler can only warn and ignore the option if not recognized
16444     # So say no if there are warnings other than the usual output.
16445     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16446     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16447     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16448       lt_cv_prog_compiler_pic_works_CXX=yes
16449     fi
16450   fi
16451   $RM conftest*
16452
16453fi
16454{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16455$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16456
16457if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16458    case $lt_prog_compiler_pic_CXX in
16459     "" | " "*) ;;
16460     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16461     esac
16462else
16463    lt_prog_compiler_pic_CXX=
16464     lt_prog_compiler_can_build_shared_CXX=no
16465fi
16466
16467fi
16468
16469
16470
16471#
16472# Check to make sure the static flag actually works.
16473#
16474wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16475{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16476$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16477if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16478  $as_echo_n "(cached) " >&6
16479else
16480  lt_cv_prog_compiler_static_works_CXX=no
16481   save_LDFLAGS="$LDFLAGS"
16482   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16483   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16484   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16485     # The linker can only warn and ignore the option if not recognized
16486     # So say no if there are warnings
16487     if test -s conftest.err; then
16488       # Append any errors to the config.log.
16489       cat conftest.err 1>&5
16490       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16491       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16492       if diff conftest.exp conftest.er2 >/dev/null; then
16493         lt_cv_prog_compiler_static_works_CXX=yes
16494       fi
16495     else
16496       lt_cv_prog_compiler_static_works_CXX=yes
16497     fi
16498   fi
16499   $RM -r conftest*
16500   LDFLAGS="$save_LDFLAGS"
16501
16502fi
16503{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16504$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16505
16506if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16507    :
16508else
16509    lt_prog_compiler_static_CXX=
16510fi
16511
16512
16513
16514
16515    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16517if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16518  $as_echo_n "(cached) " >&6
16519else
16520  lt_cv_prog_compiler_c_o_CXX=no
16521   $RM -r conftest 2>/dev/null
16522   mkdir conftest
16523   cd conftest
16524   mkdir out
16525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16526
16527   lt_compiler_flag="-o out/conftest2.$ac_objext"
16528   # Insert the option either (1) after the last *FLAGS variable, or
16529   # (2) before a word containing "conftest.", or (3) at the end.
16530   # Note that $ac_compile itself does not contain backslashes and begins
16531   # with a dollar sign (not a hyphen), so the echo should work correctly.
16532   lt_compile=`echo "$ac_compile" | $SED \
16533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16535   -e 's:$: $lt_compiler_flag:'`
16536   (eval echo "\"\$as_me:16539: $lt_compile\"" >&5)
16537   (eval "$lt_compile" 2>out/conftest.err)
16538   ac_status=$?
16539   cat out/conftest.err >&5
16540   echo "$as_me:16543: \$? = $ac_status" >&5
16541   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16542   then
16543     # The compiler can only warn and ignore the option if not recognized
16544     # So say no if there are warnings
16545     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16546     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16547     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16548       lt_cv_prog_compiler_c_o_CXX=yes
16549     fi
16550   fi
16551   chmod u+w . 2>&5
16552   $RM conftest*
16553   # SGI C++ compiler will create directory out/ii_files/ for
16554   # template instantiation
16555   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16556   $RM out/* && rmdir out
16557   cd ..
16558   $RM -r conftest
16559   $RM conftest*
16560
16561fi
16562{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16563$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16564
16565
16566
16567    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16568$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16569if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16570  $as_echo_n "(cached) " >&6
16571else
16572  lt_cv_prog_compiler_c_o_CXX=no
16573   $RM -r conftest 2>/dev/null
16574   mkdir conftest
16575   cd conftest
16576   mkdir out
16577   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16578
16579   lt_compiler_flag="-o out/conftest2.$ac_objext"
16580   # Insert the option either (1) after the last *FLAGS variable, or
16581   # (2) before a word containing "conftest.", or (3) at the end.
16582   # Note that $ac_compile itself does not contain backslashes and begins
16583   # with a dollar sign (not a hyphen), so the echo should work correctly.
16584   lt_compile=`echo "$ac_compile" | $SED \
16585   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16587   -e 's:$: $lt_compiler_flag:'`
16588   (eval echo "\"\$as_me:16591: $lt_compile\"" >&5)
16589   (eval "$lt_compile" 2>out/conftest.err)
16590   ac_status=$?
16591   cat out/conftest.err >&5
16592   echo "$as_me:16595: \$? = $ac_status" >&5
16593   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16594   then
16595     # The compiler can only warn and ignore the option if not recognized
16596     # So say no if there are warnings
16597     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16598     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16599     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16600       lt_cv_prog_compiler_c_o_CXX=yes
16601     fi
16602   fi
16603   chmod u+w . 2>&5
16604   $RM conftest*
16605   # SGI C++ compiler will create directory out/ii_files/ for
16606   # template instantiation
16607   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16608   $RM out/* && rmdir out
16609   cd ..
16610   $RM -r conftest
16611   $RM conftest*
16612
16613fi
16614{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16615$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16616
16617
16618
16619
16620hard_links="nottested"
16621if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16622  # do not overwrite the value of need_locks provided by the user
16623  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16624$as_echo_n "checking if we can lock with hard links... " >&6; }
16625  hard_links=yes
16626  $RM conftest*
16627  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16628  touch conftest.a
16629  ln conftest.a conftest.b 2>&5 || hard_links=no
16630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16632$as_echo "$hard_links" >&6; }
16633  if test "$hard_links" = no; then
16634    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16635$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16636    need_locks=warn
16637  fi
16638else
16639  need_locks=no
16640fi
16641
16642
16643
16644    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16645$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16646
16647  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16648  case $host_os in
16649  aix[4-9]*)
16650    # If we're using GNU nm, then we don't want the "-C" option.
16651    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16652    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16653      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'
16654    else
16655      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'
16656    fi
16657    ;;
16658  pw32*)
16659    export_symbols_cmds_CXX="$ltdll_cmds"
16660  ;;
16661  cygwin* | mingw* | cegcc*)
16662    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16663  ;;
16664  *)
16665    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16666  ;;
16667  esac
16668  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16669
16670{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16671$as_echo "$ld_shlibs_CXX" >&6; }
16672test "$ld_shlibs_CXX" = no && can_build_shared=no
16673
16674with_gnu_ld_CXX=$with_gnu_ld
16675
16676
16677
16678
16679
16680
16681#
16682# Do we need to explicitly link libc?
16683#
16684case "x$archive_cmds_need_lc_CXX" in
16685x|xyes)
16686  # Assume -lc should be added
16687  archive_cmds_need_lc_CXX=yes
16688
16689  if test "$enable_shared" = yes && test "$GCC" = yes; then
16690    case $archive_cmds_CXX in
16691    *'~'*)
16692      # FIXME: we may have to deal with multi-command sequences.
16693      ;;
16694    '$CC '*)
16695      # Test whether the compiler implicitly links with -lc since on some
16696      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16697      # to ld, don't add -lc before -lgcc.
16698      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16699$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16700      $RM conftest*
16701      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16702
16703      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704  (eval $ac_compile) 2>&5
16705  ac_status=$?
16706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707  (exit $ac_status); } 2>conftest.err; then
16708        soname=conftest
16709        lib=conftest
16710        libobjs=conftest.$ac_objext
16711        deplibs=
16712        wl=$lt_prog_compiler_wl_CXX
16713	pic_flag=$lt_prog_compiler_pic_CXX
16714        compiler_flags=-v
16715        linker_flags=-v
16716        verstring=
16717        output_objdir=.
16718        libname=conftest
16719        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16720        allow_undefined_flag_CXX=
16721        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16722  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16723  ac_status=$?
16724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725  (exit $ac_status); }
16726        then
16727	  archive_cmds_need_lc_CXX=no
16728        else
16729	  archive_cmds_need_lc_CXX=yes
16730        fi
16731        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16732      else
16733        cat conftest.err 1>&5
16734      fi
16735      $RM conftest*
16736      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16737$as_echo "$archive_cmds_need_lc_CXX" >&6; }
16738      ;;
16739    esac
16740  fi
16741  ;;
16742esac
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16808$as_echo_n "checking dynamic linker characteristics... " >&6; }
16809
16810library_names_spec=
16811libname_spec='lib$name'
16812soname_spec=
16813shrext_cmds=".so"
16814postinstall_cmds=
16815postuninstall_cmds=
16816finish_cmds=
16817finish_eval=
16818shlibpath_var=
16819shlibpath_overrides_runpath=unknown
16820version_type=none
16821dynamic_linker="$host_os ld.so"
16822sys_lib_dlsearch_path_spec="/lib /usr/lib"
16823need_lib_prefix=unknown
16824hardcode_into_libs=no
16825
16826# when you set need_version to no, make sure it does not cause -set_version
16827# flags to be left without arguments
16828need_version=unknown
16829
16830case $host_os in
16831aix3*)
16832  version_type=linux
16833  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16834  shlibpath_var=LIBPATH
16835
16836  # AIX 3 has no versioning support, so we append a major version to the name.
16837  soname_spec='${libname}${release}${shared_ext}$major'
16838  ;;
16839
16840aix[4-9]*)
16841  version_type=linux
16842  need_lib_prefix=no
16843  need_version=no
16844  hardcode_into_libs=yes
16845  if test "$host_cpu" = ia64; then
16846    # AIX 5 supports IA64
16847    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16848    shlibpath_var=LD_LIBRARY_PATH
16849  else
16850    # With GCC up to 2.95.x, collect2 would create an import file
16851    # for dependence libraries.  The import file would start with
16852    # the line `#! .'.  This would cause the generated library to
16853    # depend on `.', always an invalid library.  This was fixed in
16854    # development snapshots of GCC prior to 3.0.
16855    case $host_os in
16856      aix4 | aix4.[01] | aix4.[01].*)
16857      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16858	   echo ' yes '
16859	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16860	:
16861      else
16862	can_build_shared=no
16863      fi
16864      ;;
16865    esac
16866    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16867    # soname into executable. Probably we can add versioning support to
16868    # collect2, so additional links can be useful in future.
16869    if test "$aix_use_runtimelinking" = yes; then
16870      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16871      # instead of lib<name>.a to let people know that these are not
16872      # typical AIX shared libraries.
16873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874    else
16875      # We preserve .a as extension for shared libraries through AIX4.2
16876      # and later when we are not doing run time linking.
16877      library_names_spec='${libname}${release}.a $libname.a'
16878      soname_spec='${libname}${release}${shared_ext}$major'
16879    fi
16880    shlibpath_var=LIBPATH
16881  fi
16882  ;;
16883
16884amigaos*)
16885  case $host_cpu in
16886  powerpc)
16887    # Since July 2007 AmigaOS4 officially supports .so libraries.
16888    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890    ;;
16891  m68k)
16892    library_names_spec='$libname.ixlibrary $libname.a'
16893    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16894    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'
16895    ;;
16896  esac
16897  ;;
16898
16899beos*)
16900  library_names_spec='${libname}${shared_ext}'
16901  dynamic_linker="$host_os ld.so"
16902  shlibpath_var=LIBRARY_PATH
16903  ;;
16904
16905bsdi[45]*)
16906  version_type=linux
16907  need_version=no
16908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909  soname_spec='${libname}${release}${shared_ext}$major'
16910  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16911  shlibpath_var=LD_LIBRARY_PATH
16912  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16913  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16914  # the default ld.so.conf also contains /usr/contrib/lib and
16915  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16916  # libtool to hard-code these into programs
16917  ;;
16918
16919cygwin* | mingw* | pw32* | cegcc*)
16920  version_type=windows
16921  shrext_cmds=".dll"
16922  need_version=no
16923  need_lib_prefix=no
16924
16925  case $GCC,$host_os in
16926  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16927    library_names_spec='$libname.dll.a'
16928    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16929    postinstall_cmds='base_file=`basename \${file}`~
16930      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16931      dldir=$destdir/`dirname \$dlpath`~
16932      test -d \$dldir || mkdir -p \$dldir~
16933      $install_prog $dir/$dlname \$dldir/$dlname~
16934      chmod a+x \$dldir/$dlname~
16935      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16936        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16937      fi'
16938    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16939      dlpath=$dir/\$dldll~
16940       $RM \$dlpath'
16941    shlibpath_overrides_runpath=yes
16942
16943    case $host_os in
16944    cygwin*)
16945      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16946      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16947      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16948      ;;
16949    mingw* | cegcc*)
16950      # MinGW DLLs use traditional 'lib' prefix
16951      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16952      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16953      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16954        # It is most probably a Windows format PATH printed by
16955        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16956        # path with ; separators, and with drive letters. We can handle the
16957        # drive letters (cygwin fileutils understands them), so leave them,
16958        # especially as we might pass files found there to a mingw objdump,
16959        # which wouldn't understand a cygwinified path. Ahh.
16960        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16961      else
16962        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16963      fi
16964      ;;
16965    pw32*)
16966      # pw32 DLLs use 'pw' prefix rather than 'lib'
16967      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16968      ;;
16969    esac
16970    ;;
16971
16972  *)
16973    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16974    ;;
16975  esac
16976  dynamic_linker='Win32 ld.exe'
16977  # FIXME: first we should search . and the directory the executable is in
16978  shlibpath_var=PATH
16979  ;;
16980
16981darwin* | rhapsody*)
16982  dynamic_linker="$host_os dyld"
16983  version_type=darwin
16984  need_lib_prefix=no
16985  need_version=no
16986  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16987  soname_spec='${libname}${release}${major}$shared_ext'
16988  shlibpath_overrides_runpath=yes
16989  shlibpath_var=DYLD_LIBRARY_PATH
16990  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16991
16992  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16993  ;;
16994
16995dgux*)
16996  version_type=linux
16997  need_lib_prefix=no
16998  need_version=no
16999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17000  soname_spec='${libname}${release}${shared_ext}$major'
17001  shlibpath_var=LD_LIBRARY_PATH
17002  ;;
17003
17004freebsd1*)
17005  dynamic_linker=no
17006  ;;
17007
17008freebsd* | dragonfly*)
17009  # DragonFly does not have aout.  When/if they implement a new
17010  # versioning mechanism, adjust this.
17011  if test -x /usr/bin/objformat; then
17012    objformat=`/usr/bin/objformat`
17013  else
17014    case $host_os in
17015    freebsd[123]*) objformat=aout ;;
17016    *) objformat=elf ;;
17017    esac
17018  fi
17019  # Handle Gentoo/FreeBSD as it was Linux
17020  case $host_vendor in
17021    gentoo)
17022      version_type=linux ;;
17023    *)
17024      version_type=freebsd-$objformat ;;
17025  esac
17026
17027  case $version_type in
17028    freebsd-elf*)
17029      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17030      need_version=no
17031      need_lib_prefix=no
17032      ;;
17033    freebsd-*)
17034      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17035      need_version=yes
17036      ;;
17037    linux)
17038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17039      soname_spec='${libname}${release}${shared_ext}$major'
17040      need_lib_prefix=no
17041      need_version=no
17042      ;;
17043  esac
17044  shlibpath_var=LD_LIBRARY_PATH
17045  case $host_os in
17046  freebsd2*)
17047    shlibpath_overrides_runpath=yes
17048    ;;
17049  freebsd3.[01]* | freebsdelf3.[01]*)
17050    shlibpath_overrides_runpath=yes
17051    hardcode_into_libs=yes
17052    ;;
17053  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17054  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17055    shlibpath_overrides_runpath=no
17056    hardcode_into_libs=yes
17057    ;;
17058  *) # from 4.6 on, and DragonFly
17059    shlibpath_overrides_runpath=yes
17060    hardcode_into_libs=yes
17061    ;;
17062  esac
17063  ;;
17064
17065gnu*)
17066  version_type=linux
17067  need_lib_prefix=no
17068  need_version=no
17069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17070  soname_spec='${libname}${release}${shared_ext}$major'
17071  shlibpath_var=LD_LIBRARY_PATH
17072  hardcode_into_libs=yes
17073  ;;
17074
17075hpux9* | hpux10* | hpux11*)
17076  # Give a soname corresponding to the major version so that dld.sl refuses to
17077  # link against other versions.
17078  version_type=sunos
17079  need_lib_prefix=no
17080  need_version=no
17081  case $host_cpu in
17082  ia64*)
17083    shrext_cmds='.so'
17084    hardcode_into_libs=yes
17085    dynamic_linker="$host_os dld.so"
17086    shlibpath_var=LD_LIBRARY_PATH
17087    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089    soname_spec='${libname}${release}${shared_ext}$major'
17090    if test "X$HPUX_IA64_MODE" = X32; then
17091      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17092    else
17093      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17094    fi
17095    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17096    ;;
17097  hppa*64*)
17098    shrext_cmds='.sl'
17099    hardcode_into_libs=yes
17100    dynamic_linker="$host_os dld.sl"
17101    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17102    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17103    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104    soname_spec='${libname}${release}${shared_ext}$major'
17105    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17106    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17107    ;;
17108  *)
17109    shrext_cmds='.sl'
17110    dynamic_linker="$host_os dld.sl"
17111    shlibpath_var=SHLIB_PATH
17112    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114    soname_spec='${libname}${release}${shared_ext}$major'
17115    ;;
17116  esac
17117  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17118  postinstall_cmds='chmod 555 $lib'
17119  ;;
17120
17121interix[3-9]*)
17122  version_type=linux
17123  need_lib_prefix=no
17124  need_version=no
17125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17126  soname_spec='${libname}${release}${shared_ext}$major'
17127  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17128  shlibpath_var=LD_LIBRARY_PATH
17129  shlibpath_overrides_runpath=no
17130  hardcode_into_libs=yes
17131  ;;
17132
17133irix5* | irix6* | nonstopux*)
17134  case $host_os in
17135    nonstopux*) version_type=nonstopux ;;
17136    *)
17137	if test "$lt_cv_prog_gnu_ld" = yes; then
17138		version_type=linux
17139	else
17140		version_type=irix
17141	fi ;;
17142  esac
17143  need_lib_prefix=no
17144  need_version=no
17145  soname_spec='${libname}${release}${shared_ext}$major'
17146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17147  case $host_os in
17148  irix5* | nonstopux*)
17149    libsuff= shlibsuff=
17150    ;;
17151  *)
17152    case $LD in # libtool.m4 will add one of these switches to LD
17153    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17154      libsuff= shlibsuff= libmagic=32-bit;;
17155    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17156      libsuff=32 shlibsuff=N32 libmagic=N32;;
17157    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17158      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17159    *) libsuff= shlibsuff= libmagic=never-match;;
17160    esac
17161    ;;
17162  esac
17163  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17164  shlibpath_overrides_runpath=no
17165  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17166  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17167  hardcode_into_libs=yes
17168  ;;
17169
17170# No shared lib support for Linux oldld, aout, or coff.
17171linux*oldld* | linux*aout* | linux*coff*)
17172  dynamic_linker=no
17173  ;;
17174
17175# This must be Linux ELF.
17176linux* | k*bsd*-gnu)
17177  version_type=linux
17178  need_lib_prefix=no
17179  need_version=no
17180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181  soname_spec='${libname}${release}${shared_ext}$major'
17182  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17183  shlibpath_var=LD_LIBRARY_PATH
17184  shlibpath_overrides_runpath=no
17185  # Some binutils ld are patched to set DT_RUNPATH
17186  save_LDFLAGS=$LDFLAGS
17187  save_libdir=$libdir
17188  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17189       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17190  cat >conftest.$ac_ext <<_ACEOF
17191/* confdefs.h.  */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h.  */
17196
17197int
17198main ()
17199{
17200
17201  ;
17202  return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext conftest$ac_exeext
17206if { (ac_try="$ac_link"
17207case "(($ac_try" in
17208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209  *) ac_try_echo=$ac_try;;
17210esac
17211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212$as_echo "$ac_try_echo") >&5
17213  (eval "$ac_link") 2>conftest.er1
17214  ac_status=$?
17215  grep -v '^ *+' conftest.er1 >conftest.err
17216  rm -f conftest.er1
17217  cat conftest.err >&5
17218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219  (exit $ac_status); } && {
17220	 test -z "$ac_cxx_werror_flag" ||
17221	 test ! -s conftest.err
17222       } && test -s conftest$ac_exeext && {
17223	 test "$cross_compiling" = yes ||
17224	 $as_test_x conftest$ac_exeext
17225       }; then
17226  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17227  shlibpath_overrides_runpath=yes
17228fi
17229
17230else
17231  $as_echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234
17235fi
17236
17237rm -rf conftest.dSYM
17238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17239      conftest$ac_exeext conftest.$ac_ext
17240  LDFLAGS=$save_LDFLAGS
17241  libdir=$save_libdir
17242
17243  # This implies no fast_install, which is unacceptable.
17244  # Some rework will be needed to allow for fast_install
17245  # before this can be enabled.
17246  hardcode_into_libs=yes
17247
17248  # Append ld.so.conf contents to the search path
17249  if test -f /etc/ld.so.conf; then
17250    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17251    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17252  fi
17253
17254  # We used to test for /lib/ld.so.1 and disable shared libraries on
17255  # powerpc, because MkLinux only supported shared libraries with the
17256  # GNU dynamic linker.  Since this was broken with cross compilers,
17257  # most powerpc-linux boxes support dynamic linking these days and
17258  # people can always --disable-shared, the test was removed, and we
17259  # assume the GNU/Linux dynamic linker is in use.
17260  dynamic_linker='GNU/Linux ld.so'
17261  ;;
17262
17263netbsd*)
17264  version_type=sunos
17265  need_lib_prefix=no
17266  need_version=no
17267  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270    dynamic_linker='NetBSD (a.out) ld.so'
17271  else
17272    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273    soname_spec='${libname}${release}${shared_ext}$major'
17274    dynamic_linker='NetBSD ld.elf_so'
17275  fi
17276  shlibpath_var=LD_LIBRARY_PATH
17277  shlibpath_overrides_runpath=yes
17278  hardcode_into_libs=yes
17279  ;;
17280
17281newsos6)
17282  version_type=linux
17283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284  shlibpath_var=LD_LIBRARY_PATH
17285  shlibpath_overrides_runpath=yes
17286  ;;
17287
17288*nto* | *qnx*)
17289  version_type=qnx
17290  need_lib_prefix=no
17291  need_version=no
17292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293  soname_spec='${libname}${release}${shared_ext}$major'
17294  shlibpath_var=LD_LIBRARY_PATH
17295  shlibpath_overrides_runpath=no
17296  hardcode_into_libs=yes
17297  dynamic_linker='ldqnx.so'
17298  ;;
17299
17300openbsd*)
17301  version_type=sunos
17302  sys_lib_dlsearch_path_spec="/usr/lib"
17303  need_lib_prefix=no
17304  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17305  case $host_os in
17306    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17307    *)				need_version=no  ;;
17308  esac
17309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17310  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17311  shlibpath_var=LD_LIBRARY_PATH
17312  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313    case $host_os in
17314      openbsd2.[89] | openbsd2.[89].*)
17315	shlibpath_overrides_runpath=no
17316	;;
17317      *)
17318	shlibpath_overrides_runpath=yes
17319	;;
17320      esac
17321  else
17322    shlibpath_overrides_runpath=yes
17323  fi
17324  ;;
17325
17326os2*)
17327  libname_spec='$name'
17328  shrext_cmds=".dll"
17329  need_lib_prefix=no
17330  library_names_spec='$libname${shared_ext} $libname.a'
17331  dynamic_linker='OS/2 ld.exe'
17332  shlibpath_var=LIBPATH
17333  ;;
17334
17335osf3* | osf4* | osf5*)
17336  version_type=osf
17337  need_lib_prefix=no
17338  need_version=no
17339  soname_spec='${libname}${release}${shared_ext}$major'
17340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341  shlibpath_var=LD_LIBRARY_PATH
17342  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17343  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17344  ;;
17345
17346rdos*)
17347  dynamic_linker=no
17348  ;;
17349
17350solaris*)
17351  version_type=linux
17352  need_lib_prefix=no
17353  need_version=no
17354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355  soname_spec='${libname}${release}${shared_ext}$major'
17356  shlibpath_var=LD_LIBRARY_PATH
17357  shlibpath_overrides_runpath=yes
17358  hardcode_into_libs=yes
17359  # ldd complains unless libraries are executable
17360  postinstall_cmds='chmod +x $lib'
17361  ;;
17362
17363sunos4*)
17364  version_type=sunos
17365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17366  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17367  shlibpath_var=LD_LIBRARY_PATH
17368  shlibpath_overrides_runpath=yes
17369  if test "$with_gnu_ld" = yes; then
17370    need_lib_prefix=no
17371  fi
17372  need_version=yes
17373  ;;
17374
17375sysv4 | sysv4.3*)
17376  version_type=linux
17377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378  soname_spec='${libname}${release}${shared_ext}$major'
17379  shlibpath_var=LD_LIBRARY_PATH
17380  case $host_vendor in
17381    sni)
17382      shlibpath_overrides_runpath=no
17383      need_lib_prefix=no
17384      runpath_var=LD_RUN_PATH
17385      ;;
17386    siemens)
17387      need_lib_prefix=no
17388      ;;
17389    motorola)
17390      need_lib_prefix=no
17391      need_version=no
17392      shlibpath_overrides_runpath=no
17393      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17394      ;;
17395  esac
17396  ;;
17397
17398sysv4*MP*)
17399  if test -d /usr/nec ;then
17400    version_type=linux
17401    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17402    soname_spec='$libname${shared_ext}.$major'
17403    shlibpath_var=LD_LIBRARY_PATH
17404  fi
17405  ;;
17406
17407sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17408  version_type=freebsd-elf
17409  need_lib_prefix=no
17410  need_version=no
17411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412  soname_spec='${libname}${release}${shared_ext}$major'
17413  shlibpath_var=LD_LIBRARY_PATH
17414  shlibpath_overrides_runpath=yes
17415  hardcode_into_libs=yes
17416  if test "$with_gnu_ld" = yes; then
17417    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17418  else
17419    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17420    case $host_os in
17421      sco3.2v5*)
17422        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17423	;;
17424    esac
17425  fi
17426  sys_lib_dlsearch_path_spec='/usr/lib'
17427  ;;
17428
17429tpf*)
17430  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17431  version_type=linux
17432  need_lib_prefix=no
17433  need_version=no
17434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435  shlibpath_var=LD_LIBRARY_PATH
17436  shlibpath_overrides_runpath=no
17437  hardcode_into_libs=yes
17438  ;;
17439
17440uts4*)
17441  version_type=linux
17442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443  soname_spec='${libname}${release}${shared_ext}$major'
17444  shlibpath_var=LD_LIBRARY_PATH
17445  ;;
17446
17447*)
17448  dynamic_linker=no
17449  ;;
17450esac
17451{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17452$as_echo "$dynamic_linker" >&6; }
17453test "$dynamic_linker" = no && can_build_shared=no
17454
17455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17456if test "$GCC" = yes; then
17457  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17458fi
17459
17460if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17461  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17462fi
17463if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17464  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17465fi
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17503$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17504hardcode_action_CXX=
17505if test -n "$hardcode_libdir_flag_spec_CXX" ||
17506   test -n "$runpath_var_CXX" ||
17507   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17508
17509  # We can hardcode non-existent directories.
17510  if test "$hardcode_direct_CXX" != no &&
17511     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17512     # have to relink, otherwise we might link with an installed library
17513     # when we should be linking with a yet-to-be-installed one
17514     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17515     test "$hardcode_minus_L_CXX" != no; then
17516    # Linking always hardcodes the temporary library directory.
17517    hardcode_action_CXX=relink
17518  else
17519    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17520    hardcode_action_CXX=immediate
17521  fi
17522else
17523  # We cannot hardcode anything, or else we can only hardcode existing
17524  # directories.
17525  hardcode_action_CXX=unsupported
17526fi
17527{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17528$as_echo "$hardcode_action_CXX" >&6; }
17529
17530if test "$hardcode_action_CXX" = relink ||
17531   test "$inherit_rpath_CXX" = yes; then
17532  # Fast installation is not supported
17533  enable_fast_install=no
17534elif test "$shlibpath_overrides_runpath" = yes ||
17535     test "$enable_shared" = no; then
17536  # Fast installation is not necessary
17537  enable_fast_install=needless
17538fi
17539
17540
17541
17542
17543
17544
17545
17546  fi # test -n "$compiler"
17547
17548  CC=$lt_save_CC
17549  LDCXX=$LD
17550  LD=$lt_save_LD
17551  GCC=$lt_save_GCC
17552  with_gnu_ld=$lt_save_with_gnu_ld
17553  lt_cv_path_LDCXX=$lt_cv_path_LD
17554  lt_cv_path_LD=$lt_save_path_LD
17555  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17556  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17557fi # test "$_lt_caught_CXX_error" != yes
17558
17559ac_ext=c
17560ac_cpp='$CPP $CPPFLAGS'
17561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17563ac_compiler_gnu=$ac_cv_c_compiler_gnu
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577        ac_config_commands="$ac_config_commands libtool"
17578
17579
17580
17581
17582# Only expand once:
17583
17584
17585
17586# Checks for OpenMP support
17587ac_ext=c
17588ac_cpp='$CPP $CPPFLAGS'
17589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17591ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592
17593
17594  OPENMP_CFLAGS=
17595  # Check whether --enable-openmp was given.
17596if test "${enable_openmp+set}" = set; then
17597  enableval=$enable_openmp;
17598fi
17599
17600  if test "$enable_openmp" != no; then
17601    { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
17602$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
17603if test "${ac_cv_prog_c_openmp+set}" = set; then
17604  $as_echo_n "(cached) " >&6
17605else
17606  cat >conftest.$ac_ext <<_ACEOF
17607
17608#ifndef _OPENMP
17609 choke me
17610#endif
17611#include <omp.h>
17612int main () { return omp_get_num_threads (); }
17613
17614_ACEOF
17615rm -f conftest.$ac_objext conftest$ac_exeext
17616if { (ac_try="$ac_link"
17617case "(($ac_try" in
17618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619  *) ac_try_echo=$ac_try;;
17620esac
17621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17622$as_echo "$ac_try_echo") >&5
17623  (eval "$ac_link") 2>conftest.er1
17624  ac_status=$?
17625  grep -v '^ *+' conftest.er1 >conftest.err
17626  rm -f conftest.er1
17627  cat conftest.err >&5
17628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629  (exit $ac_status); } && {
17630	 test -z "$ac_c_werror_flag" ||
17631	 test ! -s conftest.err
17632       } && test -s conftest$ac_exeext && {
17633	 test "$cross_compiling" = yes ||
17634	 $as_test_x conftest$ac_exeext
17635       }; then
17636  ac_cv_prog_c_openmp='none needed'
17637else
17638  $as_echo "$as_me: failed program was:" >&5
17639sed 's/^/| /' conftest.$ac_ext >&5
17640
17641	ac_cv_prog_c_openmp='unsupported'
17642	  	  	  	  	  	  	  	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
17643	    ac_save_CFLAGS=$CFLAGS
17644	    CFLAGS="$CFLAGS $ac_option"
17645	    cat >conftest.$ac_ext <<_ACEOF
17646
17647#ifndef _OPENMP
17648 choke me
17649#endif
17650#include <omp.h>
17651int main () { return omp_get_num_threads (); }
17652
17653_ACEOF
17654rm -f conftest.$ac_objext conftest$ac_exeext
17655if { (ac_try="$ac_link"
17656case "(($ac_try" in
17657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658  *) ac_try_echo=$ac_try;;
17659esac
17660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17661$as_echo "$ac_try_echo") >&5
17662  (eval "$ac_link") 2>conftest.er1
17663  ac_status=$?
17664  grep -v '^ *+' conftest.er1 >conftest.err
17665  rm -f conftest.er1
17666  cat conftest.err >&5
17667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668  (exit $ac_status); } && {
17669	 test -z "$ac_c_werror_flag" ||
17670	 test ! -s conftest.err
17671       } && test -s conftest$ac_exeext && {
17672	 test "$cross_compiling" = yes ||
17673	 $as_test_x conftest$ac_exeext
17674       }; then
17675  ac_cv_prog_c_openmp=$ac_option
17676else
17677  $as_echo "$as_me: failed program was:" >&5
17678sed 's/^/| /' conftest.$ac_ext >&5
17679
17680
17681fi
17682
17683rm -rf conftest.dSYM
17684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17685      conftest$ac_exeext conftest.$ac_ext
17686	    CFLAGS=$ac_save_CFLAGS
17687	    if test "$ac_cv_prog_c_openmp" != unsupported; then
17688	      break
17689	    fi
17690	  done
17691fi
17692
17693rm -rf conftest.dSYM
17694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695      conftest$ac_exeext conftest.$ac_ext
17696fi
17697{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
17698$as_echo "$ac_cv_prog_c_openmp" >&6; }
17699    case $ac_cv_prog_c_openmp in #(
17700      "none needed" | unsupported)
17701        ;; #(
17702      *)
17703        OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
17704    esac
17705  fi
17706
17707
17708ac_ext=c
17709ac_cpp='$CPP $CPPFLAGS'
17710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17712ac_compiler_gnu=$ac_cv_c_compiler_gnu
17713
17714ac_ext=cpp
17715ac_cpp='$CXXCPP $CPPFLAGS'
17716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17719
17720
17721  OPENMP_CXXFLAGS=
17722  # Check whether --enable-openmp was given.
17723if test "${enable_openmp+set}" = set; then
17724  enableval=$enable_openmp;
17725fi
17726
17727  if test "$enable_openmp" != no; then
17728    { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
17729$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
17730if test "${ac_cv_prog_cxx_openmp+set}" = set; then
17731  $as_echo_n "(cached) " >&6
17732else
17733  cat >conftest.$ac_ext <<_ACEOF
17734
17735#ifndef _OPENMP
17736 choke me
17737#endif
17738#include <omp.h>
17739int main () { return omp_get_num_threads (); }
17740
17741_ACEOF
17742rm -f conftest.$ac_objext conftest$ac_exeext
17743if { (ac_try="$ac_link"
17744case "(($ac_try" in
17745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746  *) ac_try_echo=$ac_try;;
17747esac
17748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17749$as_echo "$ac_try_echo") >&5
17750  (eval "$ac_link") 2>conftest.er1
17751  ac_status=$?
17752  grep -v '^ *+' conftest.er1 >conftest.err
17753  rm -f conftest.er1
17754  cat conftest.err >&5
17755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756  (exit $ac_status); } && {
17757	 test -z "$ac_cxx_werror_flag" ||
17758	 test ! -s conftest.err
17759       } && test -s conftest$ac_exeext && {
17760	 test "$cross_compiling" = yes ||
17761	 $as_test_x conftest$ac_exeext
17762       }; then
17763  ac_cv_prog_cxx_openmp='none needed'
17764else
17765  $as_echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768	ac_cv_prog_cxx_openmp='unsupported'
17769	  	  	  	  	  	  	  	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
17770	    ac_save_CXXFLAGS=$CXXFLAGS
17771	    CXXFLAGS="$CXXFLAGS $ac_option"
17772	    cat >conftest.$ac_ext <<_ACEOF
17773
17774#ifndef _OPENMP
17775 choke me
17776#endif
17777#include <omp.h>
17778int main () { return omp_get_num_threads (); }
17779
17780_ACEOF
17781rm -f conftest.$ac_objext conftest$ac_exeext
17782if { (ac_try="$ac_link"
17783case "(($ac_try" in
17784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785  *) ac_try_echo=$ac_try;;
17786esac
17787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788$as_echo "$ac_try_echo") >&5
17789  (eval "$ac_link") 2>conftest.er1
17790  ac_status=$?
17791  grep -v '^ *+' conftest.er1 >conftest.err
17792  rm -f conftest.er1
17793  cat conftest.err >&5
17794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795  (exit $ac_status); } && {
17796	 test -z "$ac_cxx_werror_flag" ||
17797	 test ! -s conftest.err
17798       } && test -s conftest$ac_exeext && {
17799	 test "$cross_compiling" = yes ||
17800	 $as_test_x conftest$ac_exeext
17801       }; then
17802  ac_cv_prog_cxx_openmp=$ac_option
17803else
17804  $as_echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
17807
17808fi
17809
17810rm -rf conftest.dSYM
17811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17812      conftest$ac_exeext conftest.$ac_ext
17813	    CXXFLAGS=$ac_save_CXXFLAGS
17814	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
17815	      break
17816	    fi
17817	  done
17818fi
17819
17820rm -rf conftest.dSYM
17821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822      conftest$ac_exeext conftest.$ac_ext
17823fi
17824{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
17825$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
17826    case $ac_cv_prog_cxx_openmp in #(
17827      "none needed" | unsupported)
17828        ;; #(
17829      *)
17830        OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
17831    esac
17832  fi
17833
17834
17835ac_ext=c
17836ac_cpp='$CPP $CPPFLAGS'
17837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17839ac_compiler_gnu=$ac_cv_c_compiler_gnu
17840
17841
17842# Checks for compiler characteristics and flags
17843if test "$ac_enable_expert_mode" = no; then
17844
17845  # set flags for large file support
17846  case $target_os in
17847  linux* | solaris*)
17848    CPPFLAGS="$CPPFLAGS `getconf LFS_CFLAGS`"
17849    LDFLAGS="$LDFLAGS `getconf LFS_LDFLAGS`"
17850    ;;
17851  esac
17852  if test "$ac_cv_c_compiler_gnu" = yes; then
17853    # Intel's icc can be mistakenly identified as gcc
17854    case $target_os in
17855    linux*)
17856
17857
17858
17859  { $as_echo "$as_me:$LINENO: checking whether we are using Intel C" >&5
17860$as_echo_n "checking whether we are using Intel C... " >&6; }
17861if test "${bc_cv_prog_INTEL_CC+set}" = set; then
17862  $as_echo_n "(cached) " >&6
17863else
17864
17865    cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h.  */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h.  */
17871
17872      #ifdef __INTEL_COMPILER
17873        yes;
17874      #endif
17875
17876_ACEOF
17877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17878  $EGREP "yes" >/dev/null 2>&1; then
17879  bc_cv_prog_INTEL_CC=yes
17880else
17881  bc_cv_prog_INTEL_CC=no
17882fi
17883rm -f conftest*
17884
17885
17886fi
17887{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_INTEL_CC" >&5
17888$as_echo "$bc_cv_prog_INTEL_CC" >&6; }
17889  if test "$bc_cv_prog_INTEL_CC" = yes; then
17890    if test "$ac_enable_debug" != yes; then
17891
17892  if test "$CFLAGS" != ""; then
17893    CFLAGS_save=""
17894    for flag in $CFLAGS
17895    do
17896      if test "$flag" != "-g"; then
17897        CFLAGS_save="$CFLAGS_save $flag"
17898      fi
17899    done
17900    CFLAGS="$CFLAGS_save"
17901  fi
17902
17903      if test "$bc_cv_c_aggressive_opt" = yes; then
17904        case $bc_target_cpu in
17905        i586 | pentium | pentium-mmx)
17906          CFLAGS="$CFLAGS -mcpu=pentium"
17907          ;;
17908        i686 | pentiumpro | pentium[23])
17909          CFLAGS="$CFLAGS -mcpu=pentiumpro"
17910          ;;
17911        pentium4 | pentium-m)
17912          CFLAGS="$CFLAGS -mcpu=pentium4"
17913          ;;
17914        esac
17915        case $bc_target_arch in
17916        i586 | pentium | pentium-mmx)
17917          CFLAGS="$CFLAGS -tpp5"
17918          ;;
17919        i686 | pentiumpro)
17920          CFLAGS="$CFLAGS -tpp6 -march=pentiumpro"
17921          ;;
17922        pentium2)
17923          CFLAGS="$CFLAGS -tpp6 -march=pentiumii"
17924          ;;
17925        pentium3)
17926          CFLAGS="$CFLAGS -tpp6 -march=pentiumiii"
17927          ;;
17928        pentium4 | pentium-m)
17929          CFLAGS="$CFLAGS -tpp7 -march=pentium4"
17930          ;;
17931        esac
17932      fi
17933    fi
17934    { $as_echo "$as_me:$LINENO: checking for _rotl" >&5
17935$as_echo_n "checking for _rotl... " >&6; }
17936if test "${ac_cv_func__rotl+set}" = set; then
17937  $as_echo_n "(cached) " >&6
17938else
17939  cat >conftest.$ac_ext <<_ACEOF
17940/* confdefs.h.  */
17941_ACEOF
17942cat confdefs.h >>conftest.$ac_ext
17943cat >>conftest.$ac_ext <<_ACEOF
17944/* end confdefs.h.  */
17945/* Define _rotl to an innocuous variant, in case <limits.h> declares _rotl.
17946   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17947#define _rotl innocuous__rotl
17948
17949/* System header to define __stub macros and hopefully few prototypes,
17950    which can conflict with char _rotl (); below.
17951    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17952    <limits.h> exists even on freestanding compilers.  */
17953
17954#ifdef __STDC__
17955# include <limits.h>
17956#else
17957# include <assert.h>
17958#endif
17959
17960#undef _rotl
17961
17962/* Override any GCC internal prototype to avoid an error.
17963   Use char because int might match the return type of a GCC
17964   builtin and then its argument prototype would still apply.  */
17965#ifdef __cplusplus
17966extern "C"
17967#endif
17968char _rotl ();
17969/* The GNU C library defines this for functions which it implements
17970    to always fail with ENOSYS.  Some functions are actually named
17971    something starting with __ and the normal name is an alias.  */
17972#if defined __stub__rotl || defined __stub____rotl
17973choke me
17974#endif
17975
17976int
17977main ()
17978{
17979return _rotl ();
17980  ;
17981  return 0;
17982}
17983_ACEOF
17984rm -f conftest.$ac_objext conftest$ac_exeext
17985if { (ac_try="$ac_link"
17986case "(($ac_try" in
17987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988  *) ac_try_echo=$ac_try;;
17989esac
17990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17991$as_echo "$ac_try_echo") >&5
17992  (eval "$ac_link") 2>conftest.er1
17993  ac_status=$?
17994  grep -v '^ *+' conftest.er1 >conftest.err
17995  rm -f conftest.er1
17996  cat conftest.err >&5
17997  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998  (exit $ac_status); } && {
17999	 test -z "$ac_c_werror_flag" ||
18000	 test ! -s conftest.err
18001       } && test -s conftest$ac_exeext && {
18002	 test "$cross_compiling" = yes ||
18003	 $as_test_x conftest$ac_exeext
18004       }; then
18005  ac_cv_func__rotl=yes
18006else
18007  $as_echo "$as_me: failed program was:" >&5
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
18010	ac_cv_func__rotl=no
18011fi
18012
18013rm -rf conftest.dSYM
18014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18015      conftest$ac_exeext conftest.$ac_ext
18016fi
18017{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__rotl" >&5
18018$as_echo "$ac_cv_func__rotl" >&6; }
18019
18020    { $as_echo "$as_me:$LINENO: checking for _rotr" >&5
18021$as_echo_n "checking for _rotr... " >&6; }
18022if test "${ac_cv_func__rotr+set}" = set; then
18023  $as_echo_n "(cached) " >&6
18024else
18025  cat >conftest.$ac_ext <<_ACEOF
18026/* confdefs.h.  */
18027_ACEOF
18028cat confdefs.h >>conftest.$ac_ext
18029cat >>conftest.$ac_ext <<_ACEOF
18030/* end confdefs.h.  */
18031/* Define _rotr to an innocuous variant, in case <limits.h> declares _rotr.
18032   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18033#define _rotr innocuous__rotr
18034
18035/* System header to define __stub macros and hopefully few prototypes,
18036    which can conflict with char _rotr (); below.
18037    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18038    <limits.h> exists even on freestanding compilers.  */
18039
18040#ifdef __STDC__
18041# include <limits.h>
18042#else
18043# include <assert.h>
18044#endif
18045
18046#undef _rotr
18047
18048/* Override any GCC internal prototype to avoid an error.
18049   Use char because int might match the return type of a GCC
18050   builtin and then its argument prototype would still apply.  */
18051#ifdef __cplusplus
18052extern "C"
18053#endif
18054char _rotr ();
18055/* The GNU C library defines this for functions which it implements
18056    to always fail with ENOSYS.  Some functions are actually named
18057    something starting with __ and the normal name is an alias.  */
18058#if defined __stub__rotr || defined __stub____rotr
18059choke me
18060#endif
18061
18062int
18063main ()
18064{
18065return _rotr ();
18066  ;
18067  return 0;
18068}
18069_ACEOF
18070rm -f conftest.$ac_objext conftest$ac_exeext
18071if { (ac_try="$ac_link"
18072case "(($ac_try" in
18073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074  *) ac_try_echo=$ac_try;;
18075esac
18076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18077$as_echo "$ac_try_echo") >&5
18078  (eval "$ac_link") 2>conftest.er1
18079  ac_status=$?
18080  grep -v '^ *+' conftest.er1 >conftest.err
18081  rm -f conftest.er1
18082  cat conftest.err >&5
18083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084  (exit $ac_status); } && {
18085	 test -z "$ac_c_werror_flag" ||
18086	 test ! -s conftest.err
18087       } && test -s conftest$ac_exeext && {
18088	 test "$cross_compiling" = yes ||
18089	 $as_test_x conftest$ac_exeext
18090       }; then
18091  ac_cv_func__rotr=yes
18092else
18093  $as_echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
18096	ac_cv_func__rotr=no
18097fi
18098
18099rm -rf conftest.dSYM
18100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18101      conftest$ac_exeext conftest.$ac_ext
18102fi
18103{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__rotr" >&5
18104$as_echo "$ac_cv_func__rotr" >&6; }
18105
18106    if test "$OPENMP_CFLAGS" != ""; then
18107      OPENMP_LIBS="-liomp5"
18108
18109    fi
18110  fi
18111
18112      ;;
18113    esac
18114    if test "$bc_cv_prog_INTEL_CC" != yes; then
18115
18116
18117  if test "$OPENMP_CFLAGS" != ""; then
18118    OPENMP_LIBS="-lgomp"
18119
18120  fi
18121  case $bc_target_arch in
18122  x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona)
18123    CC="$CC -m64"
18124    ;;
18125  i[3456]86 | \
18126  pentium* | \
18127  athlon*)
18128    CC="$CC -m32"
18129    CCAS="$CCAS -m32"
18130    ;;
18131  ia64)
18132    case $target_os in
18133    # HP/UX on Itanium needs to be told that a long is 64-bit!
18134    hpux*)
18135      CFLAGS="$CFLAGS -mlp64"
18136      ;;
18137    esac
18138    ;;
18139  # PowerPC needs a signed char
18140  powerpc)
18141    CFLAGS="$CFLAGS -fsigned-char"
18142    ;;
18143  powerpc64)
18144    CFLAGS="$CFLAGS -fsigned-char"
18145    case $target_os in
18146    aix*)
18147      CC="$CC -maix64"
18148      ;;
18149    linux*)
18150      CC="$CC -m64"
18151      ;;
18152    esac
18153    ;;
18154  sparc | sparcv8*)
18155    CC="$CC -m32"
18156    ;;
18157  sparc64 | sparcv9*)
18158    CC="$CC -m64"
18159    ;;
18160  esac
18161  # Certain platforms needs special flags for multi-threaded code
18162  if test "$ac_enable_threads" = yes; then
18163    case $target_os in
18164    freebsd*)
18165      CFLAGS="$CFLAGS -pthread"
18166      CPPFLAGS="$CPPFLAGS -pthread"
18167      LDFLAGS="$LDFLAGS -pthread"
18168      ;;
18169    osf*)
18170      CFLAGS="$CFLAGS -pthread"
18171      CPPFLAGS="$CPPFLAGS -pthread"
18172      ;;
18173    esac
18174  fi
18175  if test "$ac_enable_debug" = yes; then
18176
18177  if test "$CFLAGS" != ""; then
18178    CFLAGS_save=""
18179    for flag in $CFLAGS
18180    do
18181      if test "$flag" != "-O2"; then
18182        CFLAGS_save="$CFLAGS_save $flag"
18183      fi
18184    done
18185    CFLAGS="$CFLAGS_save"
18186  fi
18187
18188    CFLAGS="$CFLAGS -Wall -pedantic"
18189  else
18190
18191
18192  case $bc_target_arch in
18193  i[3456]86 | \
18194  pentium | pentium-m | pentium-mmx | pentiumpro | pentium[234] | \
18195  athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp)
18196    { $as_echo "$as_me:$LINENO: checking if gcc supports -mtune option" >&5
18197$as_echo_n "checking if gcc supports -mtune option... " >&6; }
18198    ac_ext=c
18199ac_cpp='$CPP $CPPFLAGS'
18200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18202ac_compiler_gnu=$ac_cv_c_compiler_gnu
18203
18204    cat >conftest.$ac_ext <<_ACEOF
18205/* confdefs.h.  */
18206_ACEOF
18207cat confdefs.h >>conftest.$ac_ext
18208cat >>conftest.$ac_ext <<_ACEOF
18209/* end confdefs.h.  */
18210int x;
18211_ACEOF
18212rm -f conftest.$ac_objext
18213if { (ac_try="$ac_compile"
18214case "(($ac_try" in
18215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216  *) ac_try_echo=$ac_try;;
18217esac
18218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219$as_echo "$ac_try_echo") >&5
18220  (eval "$ac_compile") 2>conftest.er1
18221  ac_status=$?
18222  grep -v '^ *+' conftest.er1 >conftest.err
18223  rm -f conftest.er1
18224  cat conftest.err >&5
18225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226  (exit $ac_status); } && {
18227	 test -z "$ac_c_werror_flag" ||
18228	 test ! -s conftest.err
18229       } && test -s conftest.$ac_objext; then
18230
18231      bc_cv_gcc_mtune=yes
18232
18233else
18234  $as_echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237
18238      bc_cv_gcc_mtune=no
18239
18240fi
18241
18242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243    ac_ext=c
18244ac_cpp='$CPP $CPPFLAGS'
18245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248
18249    { $as_echo "$as_me:$LINENO: result: $bc_cv_gcc_mtune" >&5
18250$as_echo "$bc_cv_gcc_mtune" >&6; }
18251    ;;
18252  esac
18253
18254    # Generic optimizations, including cpu tuning
18255
18256  if test "$CFLAGS" != ""; then
18257    CFLAGS_save=""
18258    for flag in $CFLAGS
18259    do
18260      if test "$flag" != "-g"; then
18261        CFLAGS_save="$CFLAGS_save $flag"
18262      fi
18263    done
18264    CFLAGS="$CFLAGS_save"
18265  fi
18266
18267    CFLAGS="$CFLAGS -DNDEBUG"
18268    if test "$bc_cv_c_aggressive_opt" = yes; then
18269      case $bc_target_cpu in
18270      athlon64 | athlon-fx | k8 | opteron)
18271        # CFLAGS="$CFLAGS -mtune=k8"
18272        # -O3 degrades performance
18273        # -mcpu=athlon64 degrades performance
18274        ;;
18275      alpha*)
18276
18277  if test "$CFLAGS" != ""; then
18278    CFLAGS_save=""
18279    for flag in $CFLAGS
18280    do
18281      if test "$flag" != "-O2"; then
18282        CFLAGS_save="$CFLAGS_save $flag"
18283      fi
18284    done
18285    CFLAGS="$CFLAGS_save"
18286  fi
18287
18288        CFLAGS="$CFLAGS -O3"
18289        ;;
18290      athlon*)
18291
18292  if test "$CFLAGS" != ""; then
18293    CFLAGS_save=""
18294    for flag in $CFLAGS
18295    do
18296      if test "$flag" != "-O2"; then
18297        CFLAGS_save="$CFLAGS_save $flag"
18298      fi
18299    done
18300    CFLAGS="$CFLAGS_save"
18301  fi
18302
18303        if test "$bc_cv_gcc_mtune" = yes; then
18304          CFLAGS="$CFLAGS -O3 -mtune=pentiumpro"
18305        else
18306          CFLAGS="$CFLAGS -O3 -mcpu=pentiumpro"
18307        fi
18308        ;;
18309      i586)
18310
18311  if test "$CFLAGS" != ""; then
18312    CFLAGS_save=""
18313    for flag in $CFLAGS
18314    do
18315      if test "$flag" != "-O2"; then
18316        CFLAGS_save="$CFLAGS_save $flag"
18317      fi
18318    done
18319    CFLAGS="$CFLAGS_save"
18320  fi
18321
18322        if test "$bc_cv_gcc_mtune" = yes; then
18323          CFLAGS="$CFLAGS -O3 -mtune=pentium"
18324        else
18325          CFLAGS="$CFLAGS -O3 -mcpu=pentium"
18326        fi
18327        ;;
18328      i686)
18329
18330  if test "$CFLAGS" != ""; then
18331    CFLAGS_save=""
18332    for flag in $CFLAGS
18333    do
18334      if test "$flag" != "-O2"; then
18335        CFLAGS_save="$CFLAGS_save $flag"
18336      fi
18337    done
18338    CFLAGS="$CFLAGS_save"
18339  fi
18340
18341        if test "$bc_cv_gcc_mtune" = yes; then
18342          CFLAGS="$CFLAGS -O3 -mtune=pentiumpro"
18343        else
18344          CFLAGS="$CFLAGS -O3 -mcpu=pentiumpro"
18345        fi
18346        ;;
18347      ia64)
18348        # no -mcpu=... option on ia64
18349        ;;
18350      pentium*)
18351
18352  if test "$CFLAGS" != ""; then
18353    CFLAGS_save=""
18354    for flag in $CFLAGS
18355    do
18356      if test "$flag" != "-O2"; then
18357        CFLAGS_save="$CFLAGS_save $flag"
18358      fi
18359    done
18360    CFLAGS="$CFLAGS_save"
18361  fi
18362
18363        if test "$bc_cv_gcc_mtune" = yes; then
18364          CFLAGS="$CFLAGS -O3 -mtune=$bc_target_arch"
18365        else
18366          CFLAGS="$CFLAGS -O3 -mcpu=$bc_target_arch"
18367        fi
18368        ;;
18369      powerpc*)
18370        ;;
18371      esac
18372      # Architecture-specific optimizations
18373      case $bc_target_arch in
18374      athlon64)
18375        CFLAGS="$CFLAGS -march=k8"
18376        # -march=athlon64 degrades performance
18377        # -msse2 also doesn't help
18378        ;;
18379      athlon*)
18380        CFLAGS="$CFLAGS -march=$bc_target_arch -mmmx"
18381        ;;
18382      em64t)
18383        CFLAGS="$CFLAGS -march=em64t"
18384        ;;
18385      i586 | pentium)
18386        CFLAGS="$CFLAGS -march=pentium"
18387        ;;
18388      i686 | pentiumpro)
18389        CFLAGS="$CFLAGS -march=pentiumpro"
18390        ;;
18391      pentium-m)
18392        CFLAGS="$CFLAGS -march=pentium-m -msse2"
18393        ;;
18394      pentium-mmx)
18395        CFLAGS="$CFLAGS -march=pentium-mmx -mmmx"
18396        ;;
18397      pentium2)
18398        CFLAGS="$CFLAGS -march=pentium2 -mmmx"
18399        ;;
18400      pentium3)
18401        CFLAGS="$CFLAGS -march=pentium3 -msse"
18402        ;;
18403      pentium4)
18404        CFLAGS="$CFLAGS -march=pentium4 -msse2"
18405        ;;
18406      powerpc | powerpc64)
18407        CFLAGS="$CFLAGS -mcpu=$bc_target_arch"
18408        ;;
18409      sparcv8)
18410        CFLAGS="$CFLAGS -mcpu=v8"
18411        ;;
18412      sparcv8plus)
18413        CFLAGS="$CFLAGS -mcpu=v9"
18414        ;;
18415      sparcv8plusa | sparcv9 | sparcv9a)
18416        CFLAGS="$CFLAGS -mcpu=ultrasparc"
18417        ;;
18418      esac
18419    fi
18420  fi
18421
18422    fi
18423  else
18424    case $target_os in
18425    aix*)
18426
18427
18428
18429  { $as_echo "$as_me:$LINENO: checking whether we are using IBM C" >&5
18430$as_echo_n "checking whether we are using IBM C... " >&6; }
18431if test "${bc_cv_prog_IBM_CC+set}" = set; then
18432  $as_echo_n "(cached) " >&6
18433else
18434
18435    cat >conftest.$ac_ext <<_ACEOF
18436/* confdefs.h.  */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h.  */
18441
18442      #ifdef __IBMC__
18443        yes;
18444      #endif
18445
18446_ACEOF
18447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18448  $EGREP "yes" >/dev/null 2>&1; then
18449  bc_cv_prog_IBM_CC=yes
18450else
18451  bc_cv_prog_IBM_CC=no
18452fi
18453rm -f conftest*
18454
18455
18456fi
18457{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_IBM_CC" >&5
18458$as_echo "$bc_cv_prog_IBM_CC" >&6; }
18459  if test "$bc_cv_prog_IBM_CC" = yes; then
18460    case $bc_target_arch in
18461    powerpc)
18462      CC="$CC -q32 -qarch=ppc"
18463      ;;
18464    powerpc64)
18465      CC="$CC -q64 -qarch=ppc64"
18466      ;;
18467    esac
18468    if test "$ac_enable_debug" != yes; then
18469
18470  if test "$CFLAGS" != ""; then
18471    CFLAGS_save=""
18472    for flag in $CFLAGS
18473    do
18474      if test "$flag" != "-g"; then
18475        CFLAGS_save="$CFLAGS_save $flag"
18476      fi
18477    done
18478    CFLAGS="$CFLAGS_save"
18479  fi
18480
18481      if test "$bc_cv_c_aggressive_opt" = yes; then
18482        if test "$ac_with_arch" = yes; then
18483          CFLAGS="$CFLAGS -O5"
18484        else
18485          CFLAGS="$CFLAGS -O3"
18486        fi
18487      fi
18488    fi
18489    # Version 5.0 doesn't have this, but 6.0 does
18490    { $as_echo "$as_me:$LINENO: checking for __rotatel4" >&5
18491$as_echo_n "checking for __rotatel4... " >&6; }
18492if test "${ac_cv_func___rotatel4+set}" = set; then
18493  $as_echo_n "(cached) " >&6
18494else
18495  cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h.  */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h.  */
18501/* Define __rotatel4 to an innocuous variant, in case <limits.h> declares __rotatel4.
18502   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18503#define __rotatel4 innocuous___rotatel4
18504
18505/* System header to define __stub macros and hopefully few prototypes,
18506    which can conflict with char __rotatel4 (); below.
18507    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508    <limits.h> exists even on freestanding compilers.  */
18509
18510#ifdef __STDC__
18511# include <limits.h>
18512#else
18513# include <assert.h>
18514#endif
18515
18516#undef __rotatel4
18517
18518/* Override any GCC internal prototype to avoid an error.
18519   Use char because int might match the return type of a GCC
18520   builtin and then its argument prototype would still apply.  */
18521#ifdef __cplusplus
18522extern "C"
18523#endif
18524char __rotatel4 ();
18525/* The GNU C library defines this for functions which it implements
18526    to always fail with ENOSYS.  Some functions are actually named
18527    something starting with __ and the normal name is an alias.  */
18528#if defined __stub___rotatel4 || defined __stub_____rotatel4
18529choke me
18530#endif
18531
18532int
18533main ()
18534{
18535return __rotatel4 ();
18536  ;
18537  return 0;
18538}
18539_ACEOF
18540rm -f conftest.$ac_objext conftest$ac_exeext
18541if { (ac_try="$ac_link"
18542case "(($ac_try" in
18543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544  *) ac_try_echo=$ac_try;;
18545esac
18546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18547$as_echo "$ac_try_echo") >&5
18548  (eval "$ac_link") 2>conftest.er1
18549  ac_status=$?
18550  grep -v '^ *+' conftest.er1 >conftest.err
18551  rm -f conftest.er1
18552  cat conftest.err >&5
18553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554  (exit $ac_status); } && {
18555	 test -z "$ac_c_werror_flag" ||
18556	 test ! -s conftest.err
18557       } && test -s conftest$ac_exeext && {
18558	 test "$cross_compiling" = yes ||
18559	 $as_test_x conftest$ac_exeext
18560       }; then
18561  ac_cv_func___rotatel4=yes
18562else
18563  $as_echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566	ac_cv_func___rotatel4=no
18567fi
18568
18569rm -rf conftest.dSYM
18570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18571      conftest$ac_exeext conftest.$ac_ext
18572fi
18573{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___rotatel4" >&5
18574$as_echo "$ac_cv_func___rotatel4" >&6; }
18575
18576  fi
18577
18578      ;;
18579    hpux*)
18580
18581  if test "$ac_enable_debug" != yes; then
18582
18583  if test "$CFLAGS" != ""; then
18584    CFLAGS_save=""
18585    for flag in $CFLAGS
18586    do
18587      if test "$flag" != "-g"; then
18588        CFLAGS_save="$CFLAGS_save $flag"
18589      fi
18590    done
18591    CFLAGS="$CFLAGS_save"
18592  fi
18593
18594    if test "$bc_cv_c_aggressive_opt" = yes; then
18595      CFLAGS="$CFLAGS -fast"
18596    fi
18597  fi
18598
18599      ;;
18600    linux*)
18601
18602
18603
18604  { $as_echo "$as_me:$LINENO: checking whether we are using Intel C" >&5
18605$as_echo_n "checking whether we are using Intel C... " >&6; }
18606if test "${bc_cv_prog_INTEL_CC+set}" = set; then
18607  $as_echo_n "(cached) " >&6
18608else
18609
18610    cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h.  */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h.  */
18616
18617      #ifdef __INTEL_COMPILER
18618        yes;
18619      #endif
18620
18621_ACEOF
18622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18623  $EGREP "yes" >/dev/null 2>&1; then
18624  bc_cv_prog_INTEL_CC=yes
18625else
18626  bc_cv_prog_INTEL_CC=no
18627fi
18628rm -f conftest*
18629
18630
18631fi
18632{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_INTEL_CC" >&5
18633$as_echo "$bc_cv_prog_INTEL_CC" >&6; }
18634  if test "$bc_cv_prog_INTEL_CC" = yes; then
18635    if test "$ac_enable_debug" != yes; then
18636
18637  if test "$CFLAGS" != ""; then
18638    CFLAGS_save=""
18639    for flag in $CFLAGS
18640    do
18641      if test "$flag" != "-g"; then
18642        CFLAGS_save="$CFLAGS_save $flag"
18643      fi
18644    done
18645    CFLAGS="$CFLAGS_save"
18646  fi
18647
18648      if test "$bc_cv_c_aggressive_opt" = yes; then
18649        case $bc_target_cpu in
18650        i586 | pentium | pentium-mmx)
18651          CFLAGS="$CFLAGS -mcpu=pentium"
18652          ;;
18653        i686 | pentiumpro | pentium[23])
18654          CFLAGS="$CFLAGS -mcpu=pentiumpro"
18655          ;;
18656        pentium4 | pentium-m)
18657          CFLAGS="$CFLAGS -mcpu=pentium4"
18658          ;;
18659        esac
18660        case $bc_target_arch in
18661        i586 | pentium | pentium-mmx)
18662          CFLAGS="$CFLAGS -tpp5"
18663          ;;
18664        i686 | pentiumpro)
18665          CFLAGS="$CFLAGS -tpp6 -march=pentiumpro"
18666          ;;
18667        pentium2)
18668          CFLAGS="$CFLAGS -tpp6 -march=pentiumii"
18669          ;;
18670        pentium3)
18671          CFLAGS="$CFLAGS -tpp6 -march=pentiumiii"
18672          ;;
18673        pentium4 | pentium-m)
18674          CFLAGS="$CFLAGS -tpp7 -march=pentium4"
18675          ;;
18676        esac
18677      fi
18678    fi
18679    { $as_echo "$as_me:$LINENO: checking for _rotl" >&5
18680$as_echo_n "checking for _rotl... " >&6; }
18681if test "${ac_cv_func__rotl+set}" = set; then
18682  $as_echo_n "(cached) " >&6
18683else
18684  cat >conftest.$ac_ext <<_ACEOF
18685/* confdefs.h.  */
18686_ACEOF
18687cat confdefs.h >>conftest.$ac_ext
18688cat >>conftest.$ac_ext <<_ACEOF
18689/* end confdefs.h.  */
18690/* Define _rotl to an innocuous variant, in case <limits.h> declares _rotl.
18691   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18692#define _rotl innocuous__rotl
18693
18694/* System header to define __stub macros and hopefully few prototypes,
18695    which can conflict with char _rotl (); below.
18696    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18697    <limits.h> exists even on freestanding compilers.  */
18698
18699#ifdef __STDC__
18700# include <limits.h>
18701#else
18702# include <assert.h>
18703#endif
18704
18705#undef _rotl
18706
18707/* Override any GCC internal prototype to avoid an error.
18708   Use char because int might match the return type of a GCC
18709   builtin and then its argument prototype would still apply.  */
18710#ifdef __cplusplus
18711extern "C"
18712#endif
18713char _rotl ();
18714/* The GNU C library defines this for functions which it implements
18715    to always fail with ENOSYS.  Some functions are actually named
18716    something starting with __ and the normal name is an alias.  */
18717#if defined __stub__rotl || defined __stub____rotl
18718choke me
18719#endif
18720
18721int
18722main ()
18723{
18724return _rotl ();
18725  ;
18726  return 0;
18727}
18728_ACEOF
18729rm -f conftest.$ac_objext conftest$ac_exeext
18730if { (ac_try="$ac_link"
18731case "(($ac_try" in
18732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733  *) ac_try_echo=$ac_try;;
18734esac
18735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18736$as_echo "$ac_try_echo") >&5
18737  (eval "$ac_link") 2>conftest.er1
18738  ac_status=$?
18739  grep -v '^ *+' conftest.er1 >conftest.err
18740  rm -f conftest.er1
18741  cat conftest.err >&5
18742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743  (exit $ac_status); } && {
18744	 test -z "$ac_c_werror_flag" ||
18745	 test ! -s conftest.err
18746       } && test -s conftest$ac_exeext && {
18747	 test "$cross_compiling" = yes ||
18748	 $as_test_x conftest$ac_exeext
18749       }; then
18750  ac_cv_func__rotl=yes
18751else
18752  $as_echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755	ac_cv_func__rotl=no
18756fi
18757
18758rm -rf conftest.dSYM
18759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18760      conftest$ac_exeext conftest.$ac_ext
18761fi
18762{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__rotl" >&5
18763$as_echo "$ac_cv_func__rotl" >&6; }
18764
18765    { $as_echo "$as_me:$LINENO: checking for _rotr" >&5
18766$as_echo_n "checking for _rotr... " >&6; }
18767if test "${ac_cv_func__rotr+set}" = set; then
18768  $as_echo_n "(cached) " >&6
18769else
18770  cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h.  */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h.  */
18776/* Define _rotr to an innocuous variant, in case <limits.h> declares _rotr.
18777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18778#define _rotr innocuous__rotr
18779
18780/* System header to define __stub macros and hopefully few prototypes,
18781    which can conflict with char _rotr (); below.
18782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18783    <limits.h> exists even on freestanding compilers.  */
18784
18785#ifdef __STDC__
18786# include <limits.h>
18787#else
18788# include <assert.h>
18789#endif
18790
18791#undef _rotr
18792
18793/* Override any GCC internal prototype to avoid an error.
18794   Use char because int might match the return type of a GCC
18795   builtin and then its argument prototype would still apply.  */
18796#ifdef __cplusplus
18797extern "C"
18798#endif
18799char _rotr ();
18800/* The GNU C library defines this for functions which it implements
18801    to always fail with ENOSYS.  Some functions are actually named
18802    something starting with __ and the normal name is an alias.  */
18803#if defined __stub__rotr || defined __stub____rotr
18804choke me
18805#endif
18806
18807int
18808main ()
18809{
18810return _rotr ();
18811  ;
18812  return 0;
18813}
18814_ACEOF
18815rm -f conftest.$ac_objext conftest$ac_exeext
18816if { (ac_try="$ac_link"
18817case "(($ac_try" in
18818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819  *) ac_try_echo=$ac_try;;
18820esac
18821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18822$as_echo "$ac_try_echo") >&5
18823  (eval "$ac_link") 2>conftest.er1
18824  ac_status=$?
18825  grep -v '^ *+' conftest.er1 >conftest.err
18826  rm -f conftest.er1
18827  cat conftest.err >&5
18828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829  (exit $ac_status); } && {
18830	 test -z "$ac_c_werror_flag" ||
18831	 test ! -s conftest.err
18832       } && test -s conftest$ac_exeext && {
18833	 test "$cross_compiling" = yes ||
18834	 $as_test_x conftest$ac_exeext
18835       }; then
18836  ac_cv_func__rotr=yes
18837else
18838  $as_echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841	ac_cv_func__rotr=no
18842fi
18843
18844rm -rf conftest.dSYM
18845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846      conftest$ac_exeext conftest.$ac_ext
18847fi
18848{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__rotr" >&5
18849$as_echo "$ac_cv_func__rotr" >&6; }
18850
18851    if test "$OPENMP_CFLAGS" != ""; then
18852      OPENMP_LIBS="-liomp5"
18853
18854    fi
18855  fi
18856
18857      ;;
18858    solaris*)
18859
18860
18861
18862  { $as_echo "$as_me:$LINENO: checking whether we are using Sun Forte C" >&5
18863$as_echo_n "checking whether we are using Sun Forte C... " >&6; }
18864if test "${bc_cv_prog_SUN_FORTE_CC+set}" = set; then
18865  $as_echo_n "(cached) " >&6
18866else
18867
18868    ac_ext=c
18869ac_cpp='$CPP $CPPFLAGS'
18870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18872ac_compiler_gnu=$ac_cv_c_compiler_gnu
18873
18874    if test "$cross_compiling" = yes; then
18875  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18877{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18878See \`config.log' for more details." >&5
18879$as_echo "$as_me: error: cannot run test program while cross compiling
18880See \`config.log' for more details." >&2;}
18881   { (exit 1); exit 1; }; }; }
18882else
18883  cat >conftest.$ac_ext <<_ACEOF
18884
18885      /* confdefs.h.  */
18886_ACEOF
18887cat confdefs.h >>conftest.$ac_ext
18888cat >>conftest.$ac_ext <<_ACEOF
18889/* end confdefs.h.  */
18890
18891
18892int
18893main ()
18894{
18895
18896        #ifdef __SUNPRO_C
18897        return 0;
18898        #else
18899        return 1;
18900        #endif
18901
18902  ;
18903  return 0;
18904}
18905
18906_ACEOF
18907rm -f conftest$ac_exeext
18908if { (ac_try="$ac_link"
18909case "(($ac_try" in
18910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911  *) ac_try_echo=$ac_try;;
18912esac
18913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18914$as_echo "$ac_try_echo") >&5
18915  (eval "$ac_link") 2>&5
18916  ac_status=$?
18917  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18919  { (case "(($ac_try" in
18920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921  *) ac_try_echo=$ac_try;;
18922esac
18923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18924$as_echo "$ac_try_echo") >&5
18925  (eval "$ac_try") 2>&5
18926  ac_status=$?
18927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928  (exit $ac_status); }; }; then
18929  bc_cv_prog_SUN_FORTE_CC=yes
18930else
18931  $as_echo "$as_me: program exited with status $ac_status" >&5
18932$as_echo "$as_me: failed program was:" >&5
18933sed 's/^/| /' conftest.$ac_ext >&5
18934
18935( exit $ac_status )
18936bc_cv_prog_SUN_FORTE_CC=no
18937fi
18938rm -rf conftest.dSYM
18939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18940fi
18941
18942
18943    ac_ext=c
18944ac_cpp='$CPP $CPPFLAGS'
18945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18947ac_compiler_gnu=$ac_cv_c_compiler_gnu
18948
18949
18950fi
18951{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_SUN_FORTE_CC" >&5
18952$as_echo "$bc_cv_prog_SUN_FORTE_CC" >&6; }
18953  if test "$bc_cv_prog_SUN_FORTE_CC" = yes; then
18954    if test "$ac_enable_threads" = yes; then
18955      CFLAGS="$CFLAGS -mt"
18956    fi
18957    if test "$ac_enable_debug" != yes; then
18958
18959  if test "$CFLAGS" != ""; then
18960    CFLAGS_save=""
18961    for flag in $CFLAGS
18962    do
18963      if test "$flag" != "-g"; then
18964        CFLAGS_save="$CFLAGS_save $flag"
18965      fi
18966    done
18967    CFLAGS="$CFLAGS_save"
18968  fi
18969
18970      if test "$bc_cv_c_aggressive_opt" = yes; then
18971        CFLAGS="$CFLAGS -fast"
18972        case $bc_target_arch in
18973        sparc)
18974          CFLAGS="$CFLAGS -m32 -xarch=generic"
18975          ;;
18976        sparcv8)
18977          CFLAGS="$CFLAGS -m32 -xarch=v8"
18978          ;;
18979        sparcv8plus*)
18980          CFLAGS="$CFLAGS -m32 -xarch=v8plus"
18981          ;;
18982        sparcv9*)
18983          CFLAGS="$CFLAGS -m64 -xarch=generic"
18984          ;;
18985        esac
18986      fi
18987    fi
18988  fi
18989
18990      ;;
18991    osf*)
18992
18993
18994
18995  { $as_echo "$as_me:$LINENO: checking whether we are using Compaq's C compiler" >&5
18996$as_echo_n "checking whether we are using Compaq's C compiler... " >&6; }
18997if test "${bc_cv_prog_COMPAQ_CC+set}" = set; then
18998  $as_echo_n "(cached) " >&6
18999else
19000
19001    cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h.  */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h.  */
19007
19008      #ifdef __DECC
19009        yes;
19010      #endif
19011
19012_ACEOF
19013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19014  $EGREP "yes" >/dev/null 2>&1; then
19015  bc_cv_prog_COMPAQ_CC=yes
19016else
19017  bc_cv_prog_COMPAQ_CC=no
19018fi
19019rm -f conftest*
19020
19021
19022fi
19023{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_COMPAQ_CC" >&5
19024$as_echo "$bc_cv_prog_COMPAQ_CC" >&6; }
19025  if test "$bc_cv_prog_COMPAQ_CC" = yes; then
19026    if test "$ac_enable_threads" = yes; then
19027      CFLAGS="$CFLAGS -pthread"
19028      CPPFLAGS="$CPPFLAGS -pthread"
19029    fi
19030    if test "$ac_enable_debug" != yes; then
19031
19032  if test "$CFLAGS" != ""; then
19033    CFLAGS_save=""
19034    for flag in $CFLAGS
19035    do
19036      if test "$flag" != "-g"; then
19037        CFLAGS_save="$CFLAGS_save $flag"
19038      fi
19039    done
19040    CFLAGS="$CFLAGS_save"
19041  fi
19042
19043      if test "$bc_cv_c_aggressive_opt" = yes; then
19044        CFLAGS="$CFLAGS -fast"
19045      fi
19046    fi
19047  fi
19048
19049      ;;
19050    esac
19051  fi
19052
19053
19054  if test "$ac_cv_cxx_compiler_gnu" = yes; then
19055    # Intel's icc can be mistakenly identified as gcc
19056    case $target_os in
19057    linux*)
19058
19059
19060
19061  { $as_echo "$as_me:$LINENO: checking whether we are using Intel C++" >&5
19062$as_echo_n "checking whether we are using Intel C++... " >&6; }
19063if test "${bc_cv_prog_INTEL_CXX+set}" = set; then
19064  $as_echo_n "(cached) " >&6
19065else
19066
19067    cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h.  */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h.  */
19073
19074      #ifdef __INTEL_COMPILER
19075        yes;
19076      #endif
19077
19078_ACEOF
19079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19080  $EGREP "yes" >/dev/null 2>&1; then
19081  bc_cv_prog_INTEL_CXX=yes
19082else
19083  bc_cv_prog_INTEL_CXX=no
19084fi
19085rm -f conftest*
19086
19087
19088fi
19089{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_INTEL_CXX" >&5
19090$as_echo "$bc_cv_prog_INTEL_CXX" >&6; }
19091  if test "$bc_cv_prog_INTEL_CXX" = yes; then
19092    if test "$ac_enable_debug" != yes; then
19093
19094  if test "$CXXFLAGS" != ""; then
19095    CXXFLAGS_save=""
19096    for flag in $CXXFLAGS
19097    do
19098      if test "$flag" != "-g"; then
19099        CXXFLAGS_save="$CXXFLAGS_save $flag"
19100      fi
19101    done
19102    CXXFLAGS="$CXXFLAGS_save"
19103  fi
19104
19105      if test "$bc_cv_c_aggressive_opt" = yes; then
19106        case $bc_target_cpu in
19107        i586 | pentium | pentium-mmx)
19108          CXXFLAGS="$CXXFLAGS -mcpu=pentium"
19109          ;;
19110        i686 | pentiumpro | pentium[23])
19111          CXXFLAGS="$CXXFLAGS -mcpu=pentiumpro"
19112          ;;
19113        pentium4 | pentium-m)
19114          CXXFLAGS="$CXXFLAGS -mcpu=pentium4"
19115          ;;
19116        esac
19117        case $bc_target_arch in
19118        i586 | pentium | pentium-mmx)
19119          CXXFLAGS="$CXXFLAGS -tpp5"
19120          ;;
19121        i686 | pentiumpro)
19122          CXXFLAGS="$CXXFLAGS -tpp6 -march=pentiumpro"
19123          ;;
19124        pentium2)
19125          CXXFLAGS="$CXXFLAGS -tpp6 -march=pentiumii"
19126          ;;
19127        pentium3)
19128          CXXFLAGS="$CXXFLAGS -tpp6 -march=pentiumiii"
19129          ;;
19130        pentium4)
19131          CXXFLAGS="$CXXFLAGS -tpp7 -march=pentium4"
19132          ;;
19133        esac
19134      fi
19135    fi
19136  fi
19137
19138      ;;
19139    esac
19140    if test "$bc_cv_prog_INTEL_CXX" != yes; then
19141
19142
19143  case $bc_target_arch in
19144  x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2)
19145    CXX="$CXX -m64"
19146    ;;
19147  i[3456]86 | \
19148  pentium* | \
19149  athlon*)
19150    CXX="$CXX -m32"
19151    ;;
19152  ia64)
19153    case $target_os in
19154    # HP/UX on Itanium needs to be told that a long is 64-bit!
19155    hpux*)
19156      CXXFLAGS="$CXXFLAGS -mlp64"
19157      ;;
19158    esac
19159    ;;
19160  # PowerPC needs a signed char
19161  powerpc)
19162    CXXFLAGS="$CXXFLAGS -fsigned-char"
19163    ;;
19164  powerpc64)
19165    CXXFLAGS="$CXXFLAGS -fsigned-char"
19166    case $target_os in
19167    aix*)
19168      CXX="$CXX -maix64"
19169      ;;
19170    linux*)
19171      CXX="$CXX -m64"
19172      ;;
19173    esac
19174    ;;
19175  sparc | sparcv8*)
19176    CXX="$CXX -m32"
19177    ;;
19178  sparc64 | sparcv9*)
19179    CXX="$CXX -m64"
19180    ;;
19181  esac
19182  # Certain platforms needs special flags for multi-threaded code
19183  if test "$ac_enable_threads" = yes; then
19184    case $target_os in
19185    freebsd*)
19186      CXXFLAGS="$CXXFLAGS -pthread"
19187      LDFLAGS="$LDFLAGS -pthread"
19188      ;;
19189    osf*)
19190      CXXFLAGS="$CXXFLAGS -pthread"
19191      ;;
19192    esac
19193  fi
19194  if test "$ac_enable_debug" = yes; then
19195
19196  if test "$CXXFLAGS" != ""; then
19197    CXXFLAGS_save=""
19198    for flag in $CXXFLAGS
19199    do
19200      if test "$flag" != "-O2"; then
19201        CXXFLAGS_save="$CXXFLAGS_save $flag"
19202      fi
19203    done
19204    CXXFLAGS="$CXXFLAGS_save"
19205  fi
19206
19207    CXXFLAGS="$CXXFLAGS -Wall -pedantic"
19208  else
19209    # Generic optimizations, including cpu tuning
19210
19211
19212  case $bc_target_arch in
19213  em64t | \
19214  i[3456]86 | \
19215  pentium | pentium-m | pentium-mmx | pentiumpro | pentium[234] | \
19216  athlon | athlon-tbird | athlon-4 | athlon-xp | athlon-mp | athlon64 | k8)
19217    { $as_echo "$as_me:$LINENO: checking if g++ supports -mtune option" >&5
19218$as_echo_n "checking if g++ supports -mtune option... " >&6; }
19219    ac_ext=cpp
19220ac_cpp='$CXXCPP $CPPFLAGS'
19221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19224
19225    cat >conftest.$ac_ext <<_ACEOF
19226/* confdefs.h.  */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
19230/* end confdefs.h.  */
19231int x;
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (ac_try="$ac_compile"
19235case "(($ac_try" in
19236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237  *) ac_try_echo=$ac_try;;
19238esac
19239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19240$as_echo "$ac_try_echo") >&5
19241  (eval "$ac_compile") 2>conftest.er1
19242  ac_status=$?
19243  grep -v '^ *+' conftest.er1 >conftest.err
19244  rm -f conftest.er1
19245  cat conftest.err >&5
19246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247  (exit $ac_status); } && {
19248	 test -z "$ac_cxx_werror_flag" ||
19249	 test ! -s conftest.err
19250       } && test -s conftest.$ac_objext; then
19251
19252      bc_cv_gxx_mtune=yes
19253
19254else
19255  $as_echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258
19259      bc_cv_gxx_mtune=no
19260
19261fi
19262
19263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264    ac_ext=c
19265ac_cpp='$CPP $CPPFLAGS'
19266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269
19270    ;;
19271  esac
19272
19273
19274  if test "$CXXFLAGS" != ""; then
19275    CXXFLAGS_save=""
19276    for flag in $CXXFLAGS
19277    do
19278      if test "$flag" != "-g"; then
19279        CXXFLAGS_save="$CXXFLAGS_save $flag"
19280      fi
19281    done
19282    CXXFLAGS="$CXXFLAGS_save"
19283  fi
19284
19285    CXXFLAGS="$CXXFLAGS -DNDEBUG"
19286    if test "$bc_cv_c_aggressive_opt" = yes; then
19287      case $bc_target_cpu in
19288      athlon*)
19289        CXXFLAGS="$CXXFLAGS -mcpu=pentiumpro";
19290        ;;
19291      i586)
19292        CXXFLAGS="$CXXFLAGS -mcpu=pentium"
19293        ;;
19294      i686)
19295        CXXFLAGS="$CXXFLAGS -mcpu=pentiumpro"
19296        ;;
19297      ia64)
19298        # no -mcpu=... option on ia64
19299        ;;
19300      pentium*)
19301        CXXFLAGS="$CXXFLAGS -mcpu=$bc_target_arch"
19302        ;;
19303      esac
19304      # Architecture-specific optimizations
19305      case $bc_target_arch in
19306      athlon*)
19307        CXXFLAGS="$CXXFLAGS -march=$bc_target_arch"
19308        ;;
19309      i586)
19310        CXXFLAGS="$CXXFLAGS -march=pentium"
19311        ;;
19312      i686)
19313        CXXFLAGS="$CXXFLAGS -march=pentiumpro"
19314        ;;
19315      pentium*)
19316        CXXFLAGS="$CXXFLAGS -march=$bc_target_arch"
19317        ;;
19318      powerpc | powerpc64)
19319        CXXFLAGS="$CXXFLAGS -mcpu=$bc_target_arch"
19320        ;;
19321      sparcv8)
19322        CXXFLAGS="$CXXFLAGS -mcpu=v8"
19323        ;;
19324      sparcv8plus)
19325        CXXFLAGS="$CXXFLAGS -mcpu=v9"
19326        ;;
19327      esac
19328    fi
19329  fi
19330
19331    fi
19332  else
19333    case $target_os in
19334    aix*)
19335
19336
19337      ;;
19338    hpux*)
19339      BEE_HPUX_CXX
19340      ;;
19341    linux*)
19342
19343
19344
19345  { $as_echo "$as_me:$LINENO: checking whether we are using Intel C++" >&5
19346$as_echo_n "checking whether we are using Intel C++... " >&6; }
19347if test "${bc_cv_prog_INTEL_CXX+set}" = set; then
19348  $as_echo_n "(cached) " >&6
19349else
19350
19351    cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h.  */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h.  */
19357
19358      #ifdef __INTEL_COMPILER
19359        yes;
19360      #endif
19361
19362_ACEOF
19363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19364  $EGREP "yes" >/dev/null 2>&1; then
19365  bc_cv_prog_INTEL_CXX=yes
19366else
19367  bc_cv_prog_INTEL_CXX=no
19368fi
19369rm -f conftest*
19370
19371
19372fi
19373{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_INTEL_CXX" >&5
19374$as_echo "$bc_cv_prog_INTEL_CXX" >&6; }
19375  if test "$bc_cv_prog_INTEL_CXX" = yes; then
19376    if test "$ac_enable_debug" != yes; then
19377
19378  if test "$CXXFLAGS" != ""; then
19379    CXXFLAGS_save=""
19380    for flag in $CXXFLAGS
19381    do
19382      if test "$flag" != "-g"; then
19383        CXXFLAGS_save="$CXXFLAGS_save $flag"
19384      fi
19385    done
19386    CXXFLAGS="$CXXFLAGS_save"
19387  fi
19388
19389      if test "$bc_cv_c_aggressive_opt" = yes; then
19390        case $bc_target_cpu in
19391        i586 | pentium | pentium-mmx)
19392          CXXFLAGS="$CXXFLAGS -mcpu=pentium"
19393          ;;
19394        i686 | pentiumpro | pentium[23])
19395          CXXFLAGS="$CXXFLAGS -mcpu=pentiumpro"
19396          ;;
19397        pentium4 | pentium-m)
19398          CXXFLAGS="$CXXFLAGS -mcpu=pentium4"
19399          ;;
19400        esac
19401        case $bc_target_arch in
19402        i586 | pentium | pentium-mmx)
19403          CXXFLAGS="$CXXFLAGS -tpp5"
19404          ;;
19405        i686 | pentiumpro)
19406          CXXFLAGS="$CXXFLAGS -tpp6 -march=pentiumpro"
19407          ;;
19408        pentium2)
19409          CXXFLAGS="$CXXFLAGS -tpp6 -march=pentiumii"
19410          ;;
19411        pentium3)
19412          CXXFLAGS="$CXXFLAGS -tpp6 -march=pentiumiii"
19413          ;;
19414        pentium4)
19415          CXXFLAGS="$CXXFLAGS -tpp7 -march=pentium4"
19416          ;;
19417        esac
19418      fi
19419    fi
19420  fi
19421
19422      ;;
19423    solaris*)
19424
19425
19426
19427  { $as_echo "$as_me:$LINENO: checking whether we are using Sun Forte C++" >&5
19428$as_echo_n "checking whether we are using Sun Forte C++... " >&6; }
19429if test "${bc_cv_prog_SUN_FORTE_CXX+set}" = set; then
19430  $as_echo_n "(cached) " >&6
19431else
19432
19433    ac_ext=cpp
19434ac_cpp='$CXXCPP $CPPFLAGS'
19435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19438
19439    if test "$cross_compiling" = yes; then
19440  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19442{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19443See \`config.log' for more details." >&5
19444$as_echo "$as_me: error: cannot run test program while cross compiling
19445See \`config.log' for more details." >&2;}
19446   { (exit 1); exit 1; }; }; }
19447else
19448  cat >conftest.$ac_ext <<_ACEOF
19449
19450      /* confdefs.h.  */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h.  */
19455
19456
19457int
19458main ()
19459{
19460
19461        #ifdef __SUNPRO_CC
19462        return 0;
19463        #else
19464        return 1;
19465        #endif
19466
19467  ;
19468  return 0;
19469}
19470
19471_ACEOF
19472rm -f conftest$ac_exeext
19473if { (ac_try="$ac_link"
19474case "(($ac_try" in
19475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476  *) ac_try_echo=$ac_try;;
19477esac
19478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19479$as_echo "$ac_try_echo") >&5
19480  (eval "$ac_link") 2>&5
19481  ac_status=$?
19482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19484  { (case "(($ac_try" in
19485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486  *) ac_try_echo=$ac_try;;
19487esac
19488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19489$as_echo "$ac_try_echo") >&5
19490  (eval "$ac_try") 2>&5
19491  ac_status=$?
19492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493  (exit $ac_status); }; }; then
19494  bc_cv_prog_SUN_FORTE_CXX=yes
19495else
19496  $as_echo "$as_me: program exited with status $ac_status" >&5
19497$as_echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500( exit $ac_status )
19501bc_cv_prog_SUN_FORTE_CXX=no
19502fi
19503rm -rf conftest.dSYM
19504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19505fi
19506
19507
19508    ac_ext=c
19509ac_cpp='$CPP $CPPFLAGS'
19510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512ac_compiler_gnu=$ac_cv_c_compiler_gnu
19513
19514
19515fi
19516{ $as_echo "$as_me:$LINENO: result: $bc_cv_prog_SUN_FORTE_CXX" >&5
19517$as_echo "$bc_cv_prog_SUN_FORTE_CXX" >&6; }
19518  if test "$bc_cv_prog_SUN_FORTE_CXX" = yes; then
19519    if test "$ac_enable_threads" = yes; then
19520      CXXFLAGS="$CXXFLAGS -mt"
19521    fi
19522    if test "$ac_enable_debug" != yes; then
19523
19524  if test "$CFLAGS" != ""; then
19525    CFLAGS_save=""
19526    for flag in $CFLAGS
19527    do
19528      if test "$flag" != "-g"; then
19529        CFLAGS_save="$CFLAGS_save $flag"
19530      fi
19531    done
19532    CFLAGS="$CFLAGS_save"
19533  fi
19534
19535      if test "$bc_cv_c_aggressive_opt" = yes; then
19536        CXXFLAGS="$CXXFLAGS -fast"
19537        case $bc_target_arch in
19538        sparc)
19539          CXXFLAGS="$CXXFLAGS -m32 -xarch=generic"
19540          ;;
19541        sparcv8)
19542          CXXFLAGS="$CXXFLAGS -m32 -xarch=v8"
19543          ;;
19544        sparcv8plus*)
19545          CXXFLAGS="$CXXFLAGS -m32 -xarch=v8plus"
19546          ;;
19547        sparcv9*)
19548          CXXFLAGS="$CXXFLAGS -m64 -xarch=generic"
19549          ;;
19550        esac
19551      fi
19552    fi
19553  fi
19554
19555      ;;
19556    osf*)
19557
19558
19559      ;;
19560    esac
19561  fi
19562
19563fi
19564
19565# Check for stack protection
19566
19567  { $as_echo "$as_me:$LINENO: checking whether we can use noexecstack flag in C" >&5
19568$as_echo_n "checking whether we can use noexecstack flag in C... " >&6; }
19569if test "${bc_cv_cc_noexecstack+set}" = set; then
19570  $as_echo_n "(cached) " >&6
19571else
19572
19573    CFLAGS_save=$CFLAGS
19574    if test "$bc_cv_prog_INTEL_CC" = yes; then
19575      CFLAGS="$CFLAGS -Qoption,asm,--noexecstack"
19576    else
19577      CFLAGS="$CFLAGS -Wa,--noexecstack"
19578    fi
19579    ac_ext=c
19580ac_cpp='$CPP $CPPFLAGS'
19581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583ac_compiler_gnu=$ac_cv_c_compiler_gnu
19584
19585    # first try to compile it
19586    cat >conftest.$ac_ext <<_ACEOF
19587
19588      /* confdefs.h.  */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h.  */
19593
19594int
19595main ()
19596{
19597int x = 0
19598  ;
19599  return 0;
19600}
19601
19602_ACEOF
19603rm -f conftest.$ac_objext
19604if { (ac_try="$ac_compile"
19605case "(($ac_try" in
19606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607  *) ac_try_echo=$ac_try;;
19608esac
19609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19610$as_echo "$ac_try_echo") >&5
19611  (eval "$ac_compile") 2>conftest.er1
19612  ac_status=$?
19613  grep -v '^ *+' conftest.er1 >conftest.err
19614  rm -f conftest.er1
19615  cat conftest.err >&5
19616  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617  (exit $ac_status); } && {
19618	 test -z "$ac_c_werror_flag" ||
19619	 test ! -s conftest.err
19620       } && test -s conftest.$ac_objext; then
19621
19622      # did compile
19623      $CC -S $CFLAGS conftest.$ac_ext > /dev/null 2>&1
19624      $CC -o conftest$ac_exeext $CFLAGS conftest.s > /dev/null 2>&1
19625      if test $? -eq 0; then
19626        # did assemble
19627        bc_cv_cc_noexecstack=yes
19628        bc_gnu_stack=`$EGREP -e '\.section.*GNU-stack' conftest.s`
19629      else
19630        # didn't assemble
19631        CFLAGS=$CFLAGS_save
19632        bc_cv_cc_noexecstack=no
19633        bc_gnu_stack=''
19634      fi
19635
19636else
19637  $as_echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640
19641      # didn't compile
19642      CFLAGS=$CFLAGS_save
19643      bc_cv_cc_noexecstack=no
19644      bc_gnu_stack=''
19645
19646fi
19647
19648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649    ac_ext=c
19650ac_cpp='$CPP $CPPFLAGS'
19651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19653ac_compiler_gnu=$ac_cv_c_compiler_gnu
19654
19655
19656fi
19657{ $as_echo "$as_me:$LINENO: result: $bc_cv_cc_noexecstack" >&5
19658$as_echo "$bc_cv_cc_noexecstack" >&6; }
19659
19660
19661  { $as_echo "$as_me:$LINENO: checking whether we can use noexecstack flag in C++" >&5
19662$as_echo_n "checking whether we can use noexecstack flag in C++... " >&6; }
19663if test "${bc_cv_cxx_noexecstack+set}" = set; then
19664  $as_echo_n "(cached) " >&6
19665else
19666
19667    CXXFLAGS_save=$CXXFLAGS
19668    if test "$bc_cv_prog_INTEL_CXX" = yes; then
19669      CXXFLAGS="$CXXFLAGS -Qoption,asm,--noexecstack"
19670    else
19671      CXXFLAGS="$CXXFLAGS -Wa,--noexecstack"
19672    fi
19673    ac_ext=cpp
19674ac_cpp='$CXXCPP $CPPFLAGS'
19675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19678
19679    # first try to compile it
19680    cat >conftest.$ac_ext <<_ACEOF
19681
19682      /* confdefs.h.  */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h.  */
19687
19688int
19689main ()
19690{
19691int x = 0
19692  ;
19693  return 0;
19694}
19695
19696_ACEOF
19697rm -f conftest.$ac_objext
19698if { (ac_try="$ac_compile"
19699case "(($ac_try" in
19700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701  *) ac_try_echo=$ac_try;;
19702esac
19703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19704$as_echo "$ac_try_echo") >&5
19705  (eval "$ac_compile") 2>conftest.er1
19706  ac_status=$?
19707  grep -v '^ *+' conftest.er1 >conftest.err
19708  rm -f conftest.er1
19709  cat conftest.err >&5
19710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711  (exit $ac_status); } && {
19712	 test -z "$ac_cxx_werror_flag" ||
19713	 test ! -s conftest.err
19714       } && test -s conftest.$ac_objext; then
19715
19716      # did compile
19717      $CXX -S $CXXFLAGS conftest.$ac_ext > /dev/null 2>&1
19718      $CXX -o conftest$ac_exeext $CXXFLAGS conftest.s > /dev/null 2>&1
19719      if test $? -eq 0; then
19720        # did assemble
19721        bc_cv_cxx_noexecstack=yes
19722        bc_gnu_stack=`$EGREP -e '\.section.*GNU-stack' conftest.s`
19723      else
19724        # didn't assemble
19725        CXXFLAGS=$CXXFLAGS_save
19726        bc_cv_cxx_noexecstack=no
19727      fi
19728
19729else
19730  $as_echo "$as_me: failed program was:" >&5
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
19733
19734      # didn't compile
19735      CXXFLAGS=$CXXFLAGS_save
19736      bc_cv_cxx_noexecstack=no
19737
19738fi
19739
19740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19741    ac_ext=c
19742ac_cpp='$CPP $CPPFLAGS'
19743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745ac_compiler_gnu=$ac_cv_c_compiler_gnu
19746
19747
19748fi
19749{ $as_echo "$as_me:$LINENO: result: $bc_cv_cxx_noexecstack" >&5
19750$as_echo "$bc_cv_cxx_noexecstack" >&6; }
19751
19752
19753# Checks for program flags needed by libtool
19754
19755  case $target_os in
19756  aix*)
19757    case $bc_target_arch in
19758    powerpc64)
19759      AR="ar -X64"
19760      NM="/usr/bin/nm -B -X64"
19761      ;;
19762    esac
19763    ;;
19764  solaris*)
19765    case $bc_target_arch in
19766    sparcv9*)
19767      LD="/usr/ccs/bin/ld"
19768      LDFLAGS="$LDFLAGS -Wl,-64"
19769      ;;
19770    esac
19771    ;;
19772  esac
19773
19774
19775# Predefines for autoheader
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806  case $target_os in
19807    aix*)
19808      cat >>confdefs.h <<\_ACEOF
19809#define AIX 1
19810_ACEOF
19811
19812      ;;
19813    cygwin*)
19814      cat >>confdefs.h <<\_ACEOF
19815#define CYGWIN 1
19816_ACEOF
19817
19818      cat >>confdefs.h <<\_ACEOF
19819#define WIN32 1
19820_ACEOF
19821
19822      ;;
19823    darwin*)
19824      cat >>confdefs.h <<\_ACEOF
19825#define DARWIN 1
19826_ACEOF
19827
19828      ;;
19829    freebsd*)
19830      cat >>confdefs.h <<\_ACEOF
19831#define FREEBSD 1
19832_ACEOF
19833
19834      ;;
19835    hpux*)
19836      cat >>confdefs.h <<\_ACEOF
19837#define HPUX 1
19838_ACEOF
19839
19840      ;;
19841    linux*)
19842      cat >>confdefs.h <<\_ACEOF
19843#define LINUX 1
19844_ACEOF
19845
19846      ;;
19847    mingw*)
19848      cat >>confdefs.h <<\_ACEOF
19849#define MINGW 1
19850_ACEOF
19851
19852      cat >>confdefs.h <<\_ACEOF
19853#define WIN32 1
19854_ACEOF
19855
19856      ;;
19857    netbsd*)
19858      cat >>confdefs.h <<\_ACEOF
19859#define NETBSD 1
19860_ACEOF
19861
19862      ;;
19863    openbsd*)
19864      cat >>confdefs.h <<\_ACEOF
19865#define OPENBSD 1
19866_ACEOF
19867
19868      ;;
19869    osf*)
19870      cat >>confdefs.h <<\_ACEOF
19871#define OSF 1
19872_ACEOF
19873
19874      ;;
19875    *qnx)
19876      cat >>confdefs.h <<\_ACEOF
19877#define QNX 1
19878_ACEOF
19879
19880      ;;
19881    solaris*)
19882      cat >>confdefs.h <<\_ACEOF
19883#define SOLARIS 1
19884_ACEOF
19885
19886      ;;
19887    sysv*uv*)
19888      cat >>confdefs.h <<\_ACEOF
19889#define SCO_UNIX 1
19890_ACEOF
19891
19892      ;;
19893    *)
19894      { $as_echo "$as_me:$LINENO: WARNING: Operating system type $target_os currently not supported and/or tested" >&5
19895$as_echo "$as_me: WARNING: Operating system type $target_os currently not supported and/or tested" >&2;}
19896      ;;
19897  esac
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952# Checks for header files.
19953{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19954$as_echo_n "checking for ANSI C header files... " >&6; }
19955if test "${ac_cv_header_stdc+set}" = set; then
19956  $as_echo_n "(cached) " >&6
19957else
19958  cat >conftest.$ac_ext <<_ACEOF
19959/* confdefs.h.  */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h.  */
19964#include <stdlib.h>
19965#include <stdarg.h>
19966#include <string.h>
19967#include <float.h>
19968
19969int
19970main ()
19971{
19972
19973  ;
19974  return 0;
19975}
19976_ACEOF
19977rm -f conftest.$ac_objext
19978if { (ac_try="$ac_compile"
19979case "(($ac_try" in
19980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981  *) ac_try_echo=$ac_try;;
19982esac
19983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19984$as_echo "$ac_try_echo") >&5
19985  (eval "$ac_compile") 2>conftest.er1
19986  ac_status=$?
19987  grep -v '^ *+' conftest.er1 >conftest.err
19988  rm -f conftest.er1
19989  cat conftest.err >&5
19990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991  (exit $ac_status); } && {
19992	 test -z "$ac_c_werror_flag" ||
19993	 test ! -s conftest.err
19994       } && test -s conftest.$ac_objext; then
19995  ac_cv_header_stdc=yes
19996else
19997  $as_echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000	ac_cv_header_stdc=no
20001fi
20002
20003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004
20005if test $ac_cv_header_stdc = yes; then
20006  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20007  cat >conftest.$ac_ext <<_ACEOF
20008/* confdefs.h.  */
20009_ACEOF
20010cat confdefs.h >>conftest.$ac_ext
20011cat >>conftest.$ac_ext <<_ACEOF
20012/* end confdefs.h.  */
20013#include <string.h>
20014
20015_ACEOF
20016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20017  $EGREP "memchr" >/dev/null 2>&1; then
20018  :
20019else
20020  ac_cv_header_stdc=no
20021fi
20022rm -f conftest*
20023
20024fi
20025
20026if test $ac_cv_header_stdc = yes; then
20027  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20028  cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h.  */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h.  */
20034#include <stdlib.h>
20035
20036_ACEOF
20037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20038  $EGREP "free" >/dev/null 2>&1; then
20039  :
20040else
20041  ac_cv_header_stdc=no
20042fi
20043rm -f conftest*
20044
20045fi
20046
20047if test $ac_cv_header_stdc = yes; then
20048  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20049  if test "$cross_compiling" = yes; then
20050  :
20051else
20052  cat >conftest.$ac_ext <<_ACEOF
20053/* confdefs.h.  */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h.  */
20058#include <ctype.h>
20059#include <stdlib.h>
20060#if ((' ' & 0x0FF) == 0x020)
20061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20063#else
20064# define ISLOWER(c) \
20065		   (('a' <= (c) && (c) <= 'i') \
20066		     || ('j' <= (c) && (c) <= 'r') \
20067		     || ('s' <= (c) && (c) <= 'z'))
20068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20069#endif
20070
20071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20072int
20073main ()
20074{
20075  int i;
20076  for (i = 0; i < 256; i++)
20077    if (XOR (islower (i), ISLOWER (i))
20078	|| toupper (i) != TOUPPER (i))
20079      return 2;
20080  return 0;
20081}
20082_ACEOF
20083rm -f conftest$ac_exeext
20084if { (ac_try="$ac_link"
20085case "(($ac_try" in
20086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087  *) ac_try_echo=$ac_try;;
20088esac
20089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20090$as_echo "$ac_try_echo") >&5
20091  (eval "$ac_link") 2>&5
20092  ac_status=$?
20093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20095  { (case "(($ac_try" in
20096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097  *) ac_try_echo=$ac_try;;
20098esac
20099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20100$as_echo "$ac_try_echo") >&5
20101  (eval "$ac_try") 2>&5
20102  ac_status=$?
20103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104  (exit $ac_status); }; }; then
20105  :
20106else
20107  $as_echo "$as_me: program exited with status $ac_status" >&5
20108$as_echo "$as_me: failed program was:" >&5
20109sed 's/^/| /' conftest.$ac_ext >&5
20110
20111( exit $ac_status )
20112ac_cv_header_stdc=no
20113fi
20114rm -rf conftest.dSYM
20115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20116fi
20117
20118
20119fi
20120fi
20121{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20122$as_echo "$ac_cv_header_stdc" >&6; }
20123if test $ac_cv_header_stdc = yes; then
20124
20125cat >>confdefs.h <<\_ACEOF
20126#define STDC_HEADERS 1
20127_ACEOF
20128
20129fi
20130
20131
20132
20133for ac_header in time.h sys/time.h
20134do
20135as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20137  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20138$as_echo_n "checking for $ac_header... " >&6; }
20139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20140  $as_echo_n "(cached) " >&6
20141fi
20142ac_res=`eval 'as_val=${'$as_ac_Header'}
20143		 $as_echo "$as_val"'`
20144	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20145$as_echo "$ac_res" >&6; }
20146else
20147  # Is the header compilable?
20148{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20149$as_echo_n "checking $ac_header usability... " >&6; }
20150cat >conftest.$ac_ext <<_ACEOF
20151/* confdefs.h.  */
20152_ACEOF
20153cat confdefs.h >>conftest.$ac_ext
20154cat >>conftest.$ac_ext <<_ACEOF
20155/* end confdefs.h.  */
20156$ac_includes_default
20157#include <$ac_header>
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (ac_try="$ac_compile"
20161case "(($ac_try" in
20162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163  *) ac_try_echo=$ac_try;;
20164esac
20165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20166$as_echo "$ac_try_echo") >&5
20167  (eval "$ac_compile") 2>conftest.er1
20168  ac_status=$?
20169  grep -v '^ *+' conftest.er1 >conftest.err
20170  rm -f conftest.er1
20171  cat conftest.err >&5
20172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173  (exit $ac_status); } && {
20174	 test -z "$ac_c_werror_flag" ||
20175	 test ! -s conftest.err
20176       } && test -s conftest.$ac_objext; then
20177  ac_header_compiler=yes
20178else
20179  $as_echo "$as_me: failed program was:" >&5
20180sed 's/^/| /' conftest.$ac_ext >&5
20181
20182	ac_header_compiler=no
20183fi
20184
20185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20187$as_echo "$ac_header_compiler" >&6; }
20188
20189# Is the header present?
20190{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20191$as_echo_n "checking $ac_header presence... " >&6; }
20192cat >conftest.$ac_ext <<_ACEOF
20193/* confdefs.h.  */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h.  */
20198#include <$ac_header>
20199_ACEOF
20200if { (ac_try="$ac_cpp conftest.$ac_ext"
20201case "(($ac_try" in
20202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203  *) ac_try_echo=$ac_try;;
20204esac
20205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20206$as_echo "$ac_try_echo") >&5
20207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20208  ac_status=$?
20209  grep -v '^ *+' conftest.er1 >conftest.err
20210  rm -f conftest.er1
20211  cat conftest.err >&5
20212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213  (exit $ac_status); } >/dev/null && {
20214	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20215	 test ! -s conftest.err
20216       }; then
20217  ac_header_preproc=yes
20218else
20219  $as_echo "$as_me: failed program was:" >&5
20220sed 's/^/| /' conftest.$ac_ext >&5
20221
20222  ac_header_preproc=no
20223fi
20224
20225rm -f conftest.err conftest.$ac_ext
20226{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20227$as_echo "$ac_header_preproc" >&6; }
20228
20229# So?  What about this header?
20230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20231  yes:no: )
20232    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20233$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20235$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20236    ac_header_preproc=yes
20237    ;;
20238  no:yes:* )
20239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20240$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20242$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20244$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20246$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20248$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20250$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20251    ( cat <<\_ASBOX
20252## ------------------------------------- ##
20253## Report this to bob.deblier@telenet.be ##
20254## ------------------------------------- ##
20255_ASBOX
20256     ) | sed "s/^/$as_me: WARNING:     /" >&2
20257    ;;
20258esac
20259{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20260$as_echo_n "checking for $ac_header... " >&6; }
20261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20262  $as_echo_n "(cached) " >&6
20263else
20264  eval "$as_ac_Header=\$ac_header_preproc"
20265fi
20266ac_res=`eval 'as_val=${'$as_ac_Header'}
20267		 $as_echo "$as_val"'`
20268	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20269$as_echo "$ac_res" >&6; }
20270
20271fi
20272as_val=`eval 'as_val=${'$as_ac_Header'}
20273		 $as_echo "$as_val"'`
20274   if test "x$as_val" = x""yes; then
20275  cat >>confdefs.h <<_ACEOF
20276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20277_ACEOF
20278
20279fi
20280
20281done
20282
20283{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20284$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20285if test "${ac_cv_header_time+set}" = set; then
20286  $as_echo_n "(cached) " >&6
20287else
20288  cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h.  */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h.  */
20294#include <sys/types.h>
20295#include <sys/time.h>
20296#include <time.h>
20297
20298int
20299main ()
20300{
20301if ((struct tm *) 0)
20302return 0;
20303  ;
20304  return 0;
20305}
20306_ACEOF
20307rm -f conftest.$ac_objext
20308if { (ac_try="$ac_compile"
20309case "(($ac_try" in
20310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311  *) ac_try_echo=$ac_try;;
20312esac
20313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20314$as_echo "$ac_try_echo") >&5
20315  (eval "$ac_compile") 2>conftest.er1
20316  ac_status=$?
20317  grep -v '^ *+' conftest.er1 >conftest.err
20318  rm -f conftest.er1
20319  cat conftest.err >&5
20320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321  (exit $ac_status); } && {
20322	 test -z "$ac_c_werror_flag" ||
20323	 test ! -s conftest.err
20324       } && test -s conftest.$ac_objext; then
20325  ac_cv_header_time=yes
20326else
20327  $as_echo "$as_me: failed program was:" >&5
20328sed 's/^/| /' conftest.$ac_ext >&5
20329
20330	ac_cv_header_time=no
20331fi
20332
20333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334fi
20335{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20336$as_echo "$ac_cv_header_time" >&6; }
20337if test $ac_cv_header_time = yes; then
20338
20339cat >>confdefs.h <<\_ACEOF
20340#define TIME_WITH_SYS_TIME 1
20341_ACEOF
20342
20343fi
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353for ac_header in assert.h ctype.h errno.h fcntl.h malloc.h stdio.h termio.h termios.h
20354do
20355as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20357  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20358$as_echo_n "checking for $ac_header... " >&6; }
20359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20360  $as_echo_n "(cached) " >&6
20361fi
20362ac_res=`eval 'as_val=${'$as_ac_Header'}
20363		 $as_echo "$as_val"'`
20364	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20365$as_echo "$ac_res" >&6; }
20366else
20367  # Is the header compilable?
20368{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20369$as_echo_n "checking $ac_header usability... " >&6; }
20370cat >conftest.$ac_ext <<_ACEOF
20371/* confdefs.h.  */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h.  */
20376$ac_includes_default
20377#include <$ac_header>
20378_ACEOF
20379rm -f conftest.$ac_objext
20380if { (ac_try="$ac_compile"
20381case "(($ac_try" in
20382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383  *) ac_try_echo=$ac_try;;
20384esac
20385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20386$as_echo "$ac_try_echo") >&5
20387  (eval "$ac_compile") 2>conftest.er1
20388  ac_status=$?
20389  grep -v '^ *+' conftest.er1 >conftest.err
20390  rm -f conftest.er1
20391  cat conftest.err >&5
20392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393  (exit $ac_status); } && {
20394	 test -z "$ac_c_werror_flag" ||
20395	 test ! -s conftest.err
20396       } && test -s conftest.$ac_objext; then
20397  ac_header_compiler=yes
20398else
20399  $as_echo "$as_me: failed program was:" >&5
20400sed 's/^/| /' conftest.$ac_ext >&5
20401
20402	ac_header_compiler=no
20403fi
20404
20405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20407$as_echo "$ac_header_compiler" >&6; }
20408
20409# Is the header present?
20410{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20411$as_echo_n "checking $ac_header presence... " >&6; }
20412cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h.  */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h.  */
20418#include <$ac_header>
20419_ACEOF
20420if { (ac_try="$ac_cpp conftest.$ac_ext"
20421case "(($ac_try" in
20422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423  *) ac_try_echo=$ac_try;;
20424esac
20425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20426$as_echo "$ac_try_echo") >&5
20427  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20428  ac_status=$?
20429  grep -v '^ *+' conftest.er1 >conftest.err
20430  rm -f conftest.er1
20431  cat conftest.err >&5
20432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433  (exit $ac_status); } >/dev/null && {
20434	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20435	 test ! -s conftest.err
20436       }; then
20437  ac_header_preproc=yes
20438else
20439  $as_echo "$as_me: failed program was:" >&5
20440sed 's/^/| /' conftest.$ac_ext >&5
20441
20442  ac_header_preproc=no
20443fi
20444
20445rm -f conftest.err conftest.$ac_ext
20446{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20447$as_echo "$ac_header_preproc" >&6; }
20448
20449# So?  What about this header?
20450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20451  yes:no: )
20452    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20453$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20455$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20456    ac_header_preproc=yes
20457    ;;
20458  no:yes:* )
20459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20460$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20462$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20464$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20466$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20467    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20468$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20469    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20470$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20471    ( cat <<\_ASBOX
20472## ------------------------------------- ##
20473## Report this to bob.deblier@telenet.be ##
20474## ------------------------------------- ##
20475_ASBOX
20476     ) | sed "s/^/$as_me: WARNING:     /" >&2
20477    ;;
20478esac
20479{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20480$as_echo_n "checking for $ac_header... " >&6; }
20481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20482  $as_echo_n "(cached) " >&6
20483else
20484  eval "$as_ac_Header=\$ac_header_preproc"
20485fi
20486ac_res=`eval 'as_val=${'$as_ac_Header'}
20487		 $as_echo "$as_val"'`
20488	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20489$as_echo "$ac_res" >&6; }
20490
20491fi
20492as_val=`eval 'as_val=${'$as_ac_Header'}
20493		 $as_echo "$as_val"'`
20494   if test "x$as_val" = x""yes; then
20495  cat >>confdefs.h <<_ACEOF
20496#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20497_ACEOF
20498
20499fi
20500
20501done
20502
20503
20504
20505
20506
20507for ac_header in sys/ioctl.h sys/mman.h sys/audioio.h sys/soundcard.h
20508do
20509as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20511  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20512$as_echo_n "checking for $ac_header... " >&6; }
20513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20514  $as_echo_n "(cached) " >&6
20515fi
20516ac_res=`eval 'as_val=${'$as_ac_Header'}
20517		 $as_echo "$as_val"'`
20518	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20519$as_echo "$ac_res" >&6; }
20520else
20521  # Is the header compilable?
20522{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20523$as_echo_n "checking $ac_header usability... " >&6; }
20524cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h.  */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h.  */
20530$ac_includes_default
20531#include <$ac_header>
20532_ACEOF
20533rm -f conftest.$ac_objext
20534if { (ac_try="$ac_compile"
20535case "(($ac_try" in
20536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537  *) ac_try_echo=$ac_try;;
20538esac
20539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540$as_echo "$ac_try_echo") >&5
20541  (eval "$ac_compile") 2>conftest.er1
20542  ac_status=$?
20543  grep -v '^ *+' conftest.er1 >conftest.err
20544  rm -f conftest.er1
20545  cat conftest.err >&5
20546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547  (exit $ac_status); } && {
20548	 test -z "$ac_c_werror_flag" ||
20549	 test ! -s conftest.err
20550       } && test -s conftest.$ac_objext; then
20551  ac_header_compiler=yes
20552else
20553  $as_echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
20556	ac_header_compiler=no
20557fi
20558
20559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20561$as_echo "$ac_header_compiler" >&6; }
20562
20563# Is the header present?
20564{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20565$as_echo_n "checking $ac_header presence... " >&6; }
20566cat >conftest.$ac_ext <<_ACEOF
20567/* confdefs.h.  */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h.  */
20572#include <$ac_header>
20573_ACEOF
20574if { (ac_try="$ac_cpp conftest.$ac_ext"
20575case "(($ac_try" in
20576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577  *) ac_try_echo=$ac_try;;
20578esac
20579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20580$as_echo "$ac_try_echo") >&5
20581  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20582  ac_status=$?
20583  grep -v '^ *+' conftest.er1 >conftest.err
20584  rm -f conftest.er1
20585  cat conftest.err >&5
20586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587  (exit $ac_status); } >/dev/null && {
20588	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20589	 test ! -s conftest.err
20590       }; then
20591  ac_header_preproc=yes
20592else
20593  $as_echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596  ac_header_preproc=no
20597fi
20598
20599rm -f conftest.err conftest.$ac_ext
20600{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20601$as_echo "$ac_header_preproc" >&6; }
20602
20603# So?  What about this header?
20604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20605  yes:no: )
20606    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20607$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20608    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20609$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20610    ac_header_preproc=yes
20611    ;;
20612  no:yes:* )
20613    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20614$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20615    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20616$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20617    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20618$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20619    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20620$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20621    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20622$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20623    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20624$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20625    ( cat <<\_ASBOX
20626## ------------------------------------- ##
20627## Report this to bob.deblier@telenet.be ##
20628## ------------------------------------- ##
20629_ASBOX
20630     ) | sed "s/^/$as_me: WARNING:     /" >&2
20631    ;;
20632esac
20633{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20634$as_echo_n "checking for $ac_header... " >&6; }
20635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20636  $as_echo_n "(cached) " >&6
20637else
20638  eval "$as_ac_Header=\$ac_header_preproc"
20639fi
20640ac_res=`eval 'as_val=${'$as_ac_Header'}
20641		 $as_echo "$as_val"'`
20642	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20643$as_echo "$ac_res" >&6; }
20644
20645fi
20646as_val=`eval 'as_val=${'$as_ac_Header'}
20647		 $as_echo "$as_val"'`
20648   if test "x$as_val" = x""yes; then
20649  cat >>confdefs.h <<_ACEOF
20650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20651_ACEOF
20652
20653fi
20654
20655done
20656
20657
20658
20659
20660for ac_header in endian.h sys/endian.h asm/byteorder.h
20661do
20662as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20664  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20665$as_echo_n "checking for $ac_header... " >&6; }
20666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20667  $as_echo_n "(cached) " >&6
20668fi
20669ac_res=`eval 'as_val=${'$as_ac_Header'}
20670		 $as_echo "$as_val"'`
20671	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20672$as_echo "$ac_res" >&6; }
20673else
20674  # Is the header compilable?
20675{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20676$as_echo_n "checking $ac_header usability... " >&6; }
20677cat >conftest.$ac_ext <<_ACEOF
20678/* confdefs.h.  */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h.  */
20683$ac_includes_default
20684#include <$ac_header>
20685_ACEOF
20686rm -f conftest.$ac_objext
20687if { (ac_try="$ac_compile"
20688case "(($ac_try" in
20689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690  *) ac_try_echo=$ac_try;;
20691esac
20692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693$as_echo "$ac_try_echo") >&5
20694  (eval "$ac_compile") 2>conftest.er1
20695  ac_status=$?
20696  grep -v '^ *+' conftest.er1 >conftest.err
20697  rm -f conftest.er1
20698  cat conftest.err >&5
20699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700  (exit $ac_status); } && {
20701	 test -z "$ac_c_werror_flag" ||
20702	 test ! -s conftest.err
20703       } && test -s conftest.$ac_objext; then
20704  ac_header_compiler=yes
20705else
20706  $as_echo "$as_me: failed program was:" >&5
20707sed 's/^/| /' conftest.$ac_ext >&5
20708
20709	ac_header_compiler=no
20710fi
20711
20712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20714$as_echo "$ac_header_compiler" >&6; }
20715
20716# Is the header present?
20717{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20718$as_echo_n "checking $ac_header presence... " >&6; }
20719cat >conftest.$ac_ext <<_ACEOF
20720/* confdefs.h.  */
20721_ACEOF
20722cat confdefs.h >>conftest.$ac_ext
20723cat >>conftest.$ac_ext <<_ACEOF
20724/* end confdefs.h.  */
20725#include <$ac_header>
20726_ACEOF
20727if { (ac_try="$ac_cpp conftest.$ac_ext"
20728case "(($ac_try" in
20729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730  *) ac_try_echo=$ac_try;;
20731esac
20732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20733$as_echo "$ac_try_echo") >&5
20734  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20735  ac_status=$?
20736  grep -v '^ *+' conftest.er1 >conftest.err
20737  rm -f conftest.er1
20738  cat conftest.err >&5
20739  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740  (exit $ac_status); } >/dev/null && {
20741	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20742	 test ! -s conftest.err
20743       }; then
20744  ac_header_preproc=yes
20745else
20746  $as_echo "$as_me: failed program was:" >&5
20747sed 's/^/| /' conftest.$ac_ext >&5
20748
20749  ac_header_preproc=no
20750fi
20751
20752rm -f conftest.err conftest.$ac_ext
20753{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20754$as_echo "$ac_header_preproc" >&6; }
20755
20756# So?  What about this header?
20757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20758  yes:no: )
20759    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20760$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20761    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20762$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20763    ac_header_preproc=yes
20764    ;;
20765  no:yes:* )
20766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20767$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20769$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20770    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20771$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20772    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20773$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20774    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20775$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20776    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20777$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20778    ( cat <<\_ASBOX
20779## ------------------------------------- ##
20780## Report this to bob.deblier@telenet.be ##
20781## ------------------------------------- ##
20782_ASBOX
20783     ) | sed "s/^/$as_me: WARNING:     /" >&2
20784    ;;
20785esac
20786{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20787$as_echo_n "checking for $ac_header... " >&6; }
20788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20789  $as_echo_n "(cached) " >&6
20790else
20791  eval "$as_ac_Header=\$ac_header_preproc"
20792fi
20793ac_res=`eval 'as_val=${'$as_ac_Header'}
20794		 $as_echo "$as_val"'`
20795	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20796$as_echo "$ac_res" >&6; }
20797
20798fi
20799as_val=`eval 'as_val=${'$as_ac_Header'}
20800		 $as_echo "$as_val"'`
20801   if test "x$as_val" = x""yes; then
20802  cat >>confdefs.h <<_ACEOF
20803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20804_ACEOF
20805
20806fi
20807
20808done
20809
20810
20811bc_include_stdio_h=
20812bc_include_stdlib_h=
20813bc_include_malloc_h=
20814bc_include_string_h=
20815bc_include_unistd_h=
20816bc_include_dlfcn_h=
20817if test "$ac_cv_header_stdio_h" = yes; then
20818  bc_include_stdio_h="#include <stdio.h>"
20819fi
20820if test "$ac_cv_header_stdlib_h" = yes; then
20821  bc_include_stdlib_h="#include <stdlib.h>"
20822elif test "$ac_cv_header_malloc_h" = yes; then
20823  bc_include_malloc_h="#include <malloc.h>"
20824fi
20825if test "$ac_with_mtmalloc" = yes; then
20826
20827for ac_header in mtmalloc.h
20828do
20829as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20831  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20832$as_echo_n "checking for $ac_header... " >&6; }
20833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20834  $as_echo_n "(cached) " >&6
20835fi
20836ac_res=`eval 'as_val=${'$as_ac_Header'}
20837		 $as_echo "$as_val"'`
20838	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20839$as_echo "$ac_res" >&6; }
20840else
20841  # Is the header compilable?
20842{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20843$as_echo_n "checking $ac_header usability... " >&6; }
20844cat >conftest.$ac_ext <<_ACEOF
20845/* confdefs.h.  */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h.  */
20850$ac_includes_default
20851#include <$ac_header>
20852_ACEOF
20853rm -f conftest.$ac_objext
20854if { (ac_try="$ac_compile"
20855case "(($ac_try" in
20856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857  *) ac_try_echo=$ac_try;;
20858esac
20859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20860$as_echo "$ac_try_echo") >&5
20861  (eval "$ac_compile") 2>conftest.er1
20862  ac_status=$?
20863  grep -v '^ *+' conftest.er1 >conftest.err
20864  rm -f conftest.er1
20865  cat conftest.err >&5
20866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867  (exit $ac_status); } && {
20868	 test -z "$ac_c_werror_flag" ||
20869	 test ! -s conftest.err
20870       } && test -s conftest.$ac_objext; then
20871  ac_header_compiler=yes
20872else
20873  $as_echo "$as_me: failed program was:" >&5
20874sed 's/^/| /' conftest.$ac_ext >&5
20875
20876	ac_header_compiler=no
20877fi
20878
20879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20881$as_echo "$ac_header_compiler" >&6; }
20882
20883# Is the header present?
20884{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20885$as_echo_n "checking $ac_header presence... " >&6; }
20886cat >conftest.$ac_ext <<_ACEOF
20887/* confdefs.h.  */
20888_ACEOF
20889cat confdefs.h >>conftest.$ac_ext
20890cat >>conftest.$ac_ext <<_ACEOF
20891/* end confdefs.h.  */
20892#include <$ac_header>
20893_ACEOF
20894if { (ac_try="$ac_cpp conftest.$ac_ext"
20895case "(($ac_try" in
20896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897  *) ac_try_echo=$ac_try;;
20898esac
20899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900$as_echo "$ac_try_echo") >&5
20901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20902  ac_status=$?
20903  grep -v '^ *+' conftest.er1 >conftest.err
20904  rm -f conftest.er1
20905  cat conftest.err >&5
20906  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907  (exit $ac_status); } >/dev/null && {
20908	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20909	 test ! -s conftest.err
20910       }; then
20911  ac_header_preproc=yes
20912else
20913  $as_echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916  ac_header_preproc=no
20917fi
20918
20919rm -f conftest.err conftest.$ac_ext
20920{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20921$as_echo "$ac_header_preproc" >&6; }
20922
20923# So?  What about this header?
20924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20925  yes:no: )
20926    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20927$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20928    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20929$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20930    ac_header_preproc=yes
20931    ;;
20932  no:yes:* )
20933    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20934$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20935    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20936$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20937    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20938$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20939    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20940$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20941    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20942$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20943    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20944$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20945    ( cat <<\_ASBOX
20946## ------------------------------------- ##
20947## Report this to bob.deblier@telenet.be ##
20948## ------------------------------------- ##
20949_ASBOX
20950     ) | sed "s/^/$as_me: WARNING:     /" >&2
20951    ;;
20952esac
20953{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20954$as_echo_n "checking for $ac_header... " >&6; }
20955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20956  $as_echo_n "(cached) " >&6
20957else
20958  eval "$as_ac_Header=\$ac_header_preproc"
20959fi
20960ac_res=`eval 'as_val=${'$as_ac_Header'}
20961		 $as_echo "$as_val"'`
20962	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20963$as_echo "$ac_res" >&6; }
20964
20965fi
20966as_val=`eval 'as_val=${'$as_ac_Header'}
20967		 $as_echo "$as_val"'`
20968   if test "x$as_val" = x""yes; then
20969  cat >>confdefs.h <<_ACEOF
20970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20971_ACEOF
20972
20973fi
20974
20975done
20976
20977  if test "$ac_cv_header_mtmalloc_h" = yes; then
20978    bc_include_stdlib_h=
20979    bc_include_malloc_h="#include <mtmalloc.h>"
20980  fi
20981fi
20982if test "$ac_cv_header_string_h" = yes; then
20983  bc_include_string_h="#include <string.h>"
20984fi
20985if test "$ac_cv_header_unistd_h" = yes; then
20986  bc_include_unistd_h="#include <unistd.h>"
20987fi
20988if test "$ac_cv_header_dlfcn_h" = yes; then
20989  bc_include_dlfcn_h="#include <dlfcn.h>"
20990fi
20991INCLUDE_STDIO_H=$bc_include_stdio_h
20992
20993INCLUDE_STDLIB_H=$bc_include_stdlib_h
20994
20995INCLUDE_MALLOC_H=$bc_include_malloc_h
20996
20997INCLUDE_STRING_H=$bc_include_string_h
20998
20999INCLUDE_UNISTD_H=$bc_include_unistd_h
21000
21001INCLUDE_DLFCN_H=$bc_include_dlfcn_h
21002
21003
21004
21005
21006
21007
21008for ac_header in dlfcn.h
21009do
21010as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21012  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21013$as_echo_n "checking for $ac_header... " >&6; }
21014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21015  $as_echo_n "(cached) " >&6
21016fi
21017ac_res=`eval 'as_val=${'$as_ac_Header'}
21018		 $as_echo "$as_val"'`
21019	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21020$as_echo "$ac_res" >&6; }
21021else
21022  # Is the header compilable?
21023{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21024$as_echo_n "checking $ac_header usability... " >&6; }
21025cat >conftest.$ac_ext <<_ACEOF
21026/* confdefs.h.  */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h.  */
21031$ac_includes_default
21032#include <$ac_header>
21033_ACEOF
21034rm -f conftest.$ac_objext
21035if { (ac_try="$ac_compile"
21036case "(($ac_try" in
21037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038  *) ac_try_echo=$ac_try;;
21039esac
21040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21041$as_echo "$ac_try_echo") >&5
21042  (eval "$ac_compile") 2>conftest.er1
21043  ac_status=$?
21044  grep -v '^ *+' conftest.er1 >conftest.err
21045  rm -f conftest.er1
21046  cat conftest.err >&5
21047  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048  (exit $ac_status); } && {
21049	 test -z "$ac_c_werror_flag" ||
21050	 test ! -s conftest.err
21051       } && test -s conftest.$ac_objext; then
21052  ac_header_compiler=yes
21053else
21054  $as_echo "$as_me: failed program was:" >&5
21055sed 's/^/| /' conftest.$ac_ext >&5
21056
21057	ac_header_compiler=no
21058fi
21059
21060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21062$as_echo "$ac_header_compiler" >&6; }
21063
21064# Is the header present?
21065{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21066$as_echo_n "checking $ac_header presence... " >&6; }
21067cat >conftest.$ac_ext <<_ACEOF
21068/* confdefs.h.  */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h.  */
21073#include <$ac_header>
21074_ACEOF
21075if { (ac_try="$ac_cpp conftest.$ac_ext"
21076case "(($ac_try" in
21077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078  *) ac_try_echo=$ac_try;;
21079esac
21080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21081$as_echo "$ac_try_echo") >&5
21082  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21083  ac_status=$?
21084  grep -v '^ *+' conftest.er1 >conftest.err
21085  rm -f conftest.er1
21086  cat conftest.err >&5
21087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088  (exit $ac_status); } >/dev/null && {
21089	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21090	 test ! -s conftest.err
21091       }; then
21092  ac_header_preproc=yes
21093else
21094  $as_echo "$as_me: failed program was:" >&5
21095sed 's/^/| /' conftest.$ac_ext >&5
21096
21097  ac_header_preproc=no
21098fi
21099
21100rm -f conftest.err conftest.$ac_ext
21101{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102$as_echo "$ac_header_preproc" >&6; }
21103
21104# So?  What about this header?
21105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21106  yes:no: )
21107    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21108$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21109    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21110$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21111    ac_header_preproc=yes
21112    ;;
21113  no:yes:* )
21114    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21115$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21116    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21117$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21118    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21119$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21120    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21121$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21122    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21123$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21124    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21125$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21126    ( cat <<\_ASBOX
21127## ------------------------------------- ##
21128## Report this to bob.deblier@telenet.be ##
21129## ------------------------------------- ##
21130_ASBOX
21131     ) | sed "s/^/$as_me: WARNING:     /" >&2
21132    ;;
21133esac
21134{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21135$as_echo_n "checking for $ac_header... " >&6; }
21136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21137  $as_echo_n "(cached) " >&6
21138else
21139  eval "$as_ac_Header=\$ac_header_preproc"
21140fi
21141ac_res=`eval 'as_val=${'$as_ac_Header'}
21142		 $as_echo "$as_val"'`
21143	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21144$as_echo "$ac_res" >&6; }
21145
21146fi
21147as_val=`eval 'as_val=${'$as_ac_Header'}
21148		 $as_echo "$as_val"'`
21149   if test "x$as_val" = x""yes; then
21150  cat >>confdefs.h <<_ACEOF
21151#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21152_ACEOF
21153
21154fi
21155
21156done
21157
21158  if test "$ac_cv_header_dlfcn_h" = yes; then
21159    { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21160$as_echo_n "checking for library containing dlopen... " >&6; }
21161if test "${ac_cv_search_dlopen+set}" = set; then
21162  $as_echo_n "(cached) " >&6
21163else
21164  ac_func_search_save_LIBS=$LIBS
21165cat >conftest.$ac_ext <<_ACEOF
21166/* confdefs.h.  */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h.  */
21171
21172/* Override any GCC internal prototype to avoid an error.
21173   Use char because int might match the return type of a GCC
21174   builtin and then its argument prototype would still apply.  */
21175#ifdef __cplusplus
21176extern "C"
21177#endif
21178char dlopen ();
21179int
21180main ()
21181{
21182return dlopen ();
21183  ;
21184  return 0;
21185}
21186_ACEOF
21187for ac_lib in '' dl dld; do
21188  if test -z "$ac_lib"; then
21189    ac_res="none required"
21190  else
21191    ac_res=-l$ac_lib
21192    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21193  fi
21194  rm -f conftest.$ac_objext conftest$ac_exeext
21195if { (ac_try="$ac_link"
21196case "(($ac_try" in
21197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198  *) ac_try_echo=$ac_try;;
21199esac
21200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21201$as_echo "$ac_try_echo") >&5
21202  (eval "$ac_link") 2>conftest.er1
21203  ac_status=$?
21204  grep -v '^ *+' conftest.er1 >conftest.err
21205  rm -f conftest.er1
21206  cat conftest.err >&5
21207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208  (exit $ac_status); } && {
21209	 test -z "$ac_c_werror_flag" ||
21210	 test ! -s conftest.err
21211       } && test -s conftest$ac_exeext && {
21212	 test "$cross_compiling" = yes ||
21213	 $as_test_x conftest$ac_exeext
21214       }; then
21215  ac_cv_search_dlopen=$ac_res
21216else
21217  $as_echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220
21221fi
21222
21223rm -rf conftest.dSYM
21224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21225      conftest$ac_exeext
21226  if test "${ac_cv_search_dlopen+set}" = set; then
21227  break
21228fi
21229done
21230if test "${ac_cv_search_dlopen+set}" = set; then
21231  :
21232else
21233  ac_cv_search_dlopen=no
21234fi
21235rm conftest.$ac_ext
21236LIBS=$ac_func_search_save_LIBS
21237fi
21238{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21239$as_echo "$ac_cv_search_dlopen" >&6; }
21240ac_res=$ac_cv_search_dlopen
21241if test "$ac_res" != no; then
21242  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21243
21244
21245fi
21246
21247  fi
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263  if test "$ac_enable_threads" = yes; then
21264
21265
21266
21267
21268
21269for ac_header in synch.h thread.h pthread.h semaphore.h sched.h
21270do
21271as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21273  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21274$as_echo_n "checking for $ac_header... " >&6; }
21275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21276  $as_echo_n "(cached) " >&6
21277fi
21278ac_res=`eval 'as_val=${'$as_ac_Header'}
21279		 $as_echo "$as_val"'`
21280	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21281$as_echo "$ac_res" >&6; }
21282else
21283  # Is the header compilable?
21284{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21285$as_echo_n "checking $ac_header usability... " >&6; }
21286cat >conftest.$ac_ext <<_ACEOF
21287/* confdefs.h.  */
21288_ACEOF
21289cat confdefs.h >>conftest.$ac_ext
21290cat >>conftest.$ac_ext <<_ACEOF
21291/* end confdefs.h.  */
21292$ac_includes_default
21293#include <$ac_header>
21294_ACEOF
21295rm -f conftest.$ac_objext
21296if { (ac_try="$ac_compile"
21297case "(($ac_try" in
21298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299  *) ac_try_echo=$ac_try;;
21300esac
21301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21302$as_echo "$ac_try_echo") >&5
21303  (eval "$ac_compile") 2>conftest.er1
21304  ac_status=$?
21305  grep -v '^ *+' conftest.er1 >conftest.err
21306  rm -f conftest.er1
21307  cat conftest.err >&5
21308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309  (exit $ac_status); } && {
21310	 test -z "$ac_c_werror_flag" ||
21311	 test ! -s conftest.err
21312       } && test -s conftest.$ac_objext; then
21313  ac_header_compiler=yes
21314else
21315  $as_echo "$as_me: failed program was:" >&5
21316sed 's/^/| /' conftest.$ac_ext >&5
21317
21318	ac_header_compiler=no
21319fi
21320
21321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323$as_echo "$ac_header_compiler" >&6; }
21324
21325# Is the header present?
21326{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21327$as_echo_n "checking $ac_header presence... " >&6; }
21328cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h.  */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h.  */
21334#include <$ac_header>
21335_ACEOF
21336if { (ac_try="$ac_cpp conftest.$ac_ext"
21337case "(($ac_try" in
21338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339  *) ac_try_echo=$ac_try;;
21340esac
21341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21342$as_echo "$ac_try_echo") >&5
21343  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21344  ac_status=$?
21345  grep -v '^ *+' conftest.er1 >conftest.err
21346  rm -f conftest.er1
21347  cat conftest.err >&5
21348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349  (exit $ac_status); } >/dev/null && {
21350	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21351	 test ! -s conftest.err
21352       }; then
21353  ac_header_preproc=yes
21354else
21355  $as_echo "$as_me: failed program was:" >&5
21356sed 's/^/| /' conftest.$ac_ext >&5
21357
21358  ac_header_preproc=no
21359fi
21360
21361rm -f conftest.err conftest.$ac_ext
21362{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21363$as_echo "$ac_header_preproc" >&6; }
21364
21365# So?  What about this header?
21366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21367  yes:no: )
21368    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21369$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21370    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21371$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21372    ac_header_preproc=yes
21373    ;;
21374  no:yes:* )
21375    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21376$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21377    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21378$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21379    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21380$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21381    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21382$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21383    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21384$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21385    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21386$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21387    ( cat <<\_ASBOX
21388## ------------------------------------- ##
21389## Report this to bob.deblier@telenet.be ##
21390## ------------------------------------- ##
21391_ASBOX
21392     ) | sed "s/^/$as_me: WARNING:     /" >&2
21393    ;;
21394esac
21395{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21396$as_echo_n "checking for $ac_header... " >&6; }
21397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398  $as_echo_n "(cached) " >&6
21399else
21400  eval "$as_ac_Header=\$ac_header_preproc"
21401fi
21402ac_res=`eval 'as_val=${'$as_ac_Header'}
21403		 $as_echo "$as_val"'`
21404	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21405$as_echo "$ac_res" >&6; }
21406
21407fi
21408as_val=`eval 'as_val=${'$as_ac_Header'}
21409		 $as_echo "$as_val"'`
21410   if test "x$as_val" = x""yes; then
21411  cat >>confdefs.h <<_ACEOF
21412#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21413_ACEOF
21414
21415fi
21416
21417done
21418
21419  fi
21420
21421  bc_include_synch_h=
21422  bc_include_thread_h=
21423  bc_include_pthread_h=
21424  bc_include_semaphore_h=
21425  bc_include_sched_h=
21426  bc_typedef_bc_cond_t=
21427  bc_typedef_bc_mutex_t=
21428  bc_typedef_bc_sema_t=
21429  bc_typedef_bc_thread_t=
21430  bc_typedef_bc_threadid_t=
21431  if test "$ac_enable_threads" = yes; then
21432    if test "$ac_cv_header_thread_h" = yes -a "$ac_cv_header_synch_h" = yes; then
21433      bc_include_synch_h="#include <synch.h>"
21434      bc_include_thread_h="#include <thread.h>"
21435      bc_typedef_bc_cond_t="typedef cond_t bc_cond_t;"
21436      bc_typedef_bc_mutex_t="typedef mutex_t bc_mutex_t;"
21437      bc_typedef_bc_sema_t="typedef sema_t bc_sema_t;"
21438      bc_typedef_bc_thread_t="typedef thread_t bc_thread_t;"
21439      bc_typedef_bc_threadid_t="typedef thread_t bc_threadid_t;"
21440      { $as_echo "$as_me:$LINENO: checking for library containing mutex_lock" >&5
21441$as_echo_n "checking for library containing mutex_lock... " >&6; }
21442if test "${ac_cv_search_mutex_lock+set}" = set; then
21443  $as_echo_n "(cached) " >&6
21444else
21445  ac_func_search_save_LIBS=$LIBS
21446cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h.  */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h.  */
21452
21453/* Override any GCC internal prototype to avoid an error.
21454   Use char because int might match the return type of a GCC
21455   builtin and then its argument prototype would still apply.  */
21456#ifdef __cplusplus
21457extern "C"
21458#endif
21459char mutex_lock ();
21460int
21461main ()
21462{
21463return mutex_lock ();
21464  ;
21465  return 0;
21466}
21467_ACEOF
21468for ac_lib in '' thread; do
21469  if test -z "$ac_lib"; then
21470    ac_res="none required"
21471  else
21472    ac_res=-l$ac_lib
21473    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21474  fi
21475  rm -f conftest.$ac_objext conftest$ac_exeext
21476if { (ac_try="$ac_link"
21477case "(($ac_try" in
21478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479  *) ac_try_echo=$ac_try;;
21480esac
21481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21482$as_echo "$ac_try_echo") >&5
21483  (eval "$ac_link") 2>conftest.er1
21484  ac_status=$?
21485  grep -v '^ *+' conftest.er1 >conftest.err
21486  rm -f conftest.er1
21487  cat conftest.err >&5
21488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489  (exit $ac_status); } && {
21490	 test -z "$ac_c_werror_flag" ||
21491	 test ! -s conftest.err
21492       } && test -s conftest$ac_exeext && {
21493	 test "$cross_compiling" = yes ||
21494	 $as_test_x conftest$ac_exeext
21495       }; then
21496  ac_cv_search_mutex_lock=$ac_res
21497else
21498  $as_echo "$as_me: failed program was:" >&5
21499sed 's/^/| /' conftest.$ac_ext >&5
21500
21501
21502fi
21503
21504rm -rf conftest.dSYM
21505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21506      conftest$ac_exeext
21507  if test "${ac_cv_search_mutex_lock+set}" = set; then
21508  break
21509fi
21510done
21511if test "${ac_cv_search_mutex_lock+set}" = set; then
21512  :
21513else
21514  ac_cv_search_mutex_lock=no
21515fi
21516rm conftest.$ac_ext
21517LIBS=$ac_func_search_save_LIBS
21518fi
21519{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_mutex_lock" >&5
21520$as_echo "$ac_cv_search_mutex_lock" >&6; }
21521ac_res=$ac_cv_search_mutex_lock
21522if test "$ac_res" != no; then
21523  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21524
21525        cat >>confdefs.h <<\_ACEOF
21526#define ENABLE_THREADS 1
21527_ACEOF
21528
21529
21530fi
21531
21532    else
21533      if test "$ac_cv_header_semaphore_h" = yes; then
21534        bc_include_semaphore_h="#include <semaphore.h>"
21535        bc_typedef_bc_sema_t="typedef sem_t bc_sema_t;"
21536      fi
21537      if test "$ac_cv_header_sched_h" = yes; then
21538        bc_include_sched_h="#include <sched.h>"
21539      fi
21540      if test "$ac_cv_header_pthread_h" = yes; then
21541        bc_include_pthread_h="#include <pthread.h>"
21542        bc_typedef_bc_cond_t="typedef pthread_cond_t bc_cond_t;"
21543        bc_typedef_bc_mutex_t="typedef pthread_mutex_t bc_mutex_t;"
21544        bc_typedef_bc_thread_t="typedef pthread_t bc_thread_t;"
21545        bc_typedef_bc_threadid_t="typedef pthread_t bc_threadid_t;"
21546        # On most systems this tests will say 'none required', but that doesn't
21547        # mean that the linked code will work correctly!
21548        case $target_os in
21549        linux* | solaris* )
21550          cat >>confdefs.h <<\_ACEOF
21551#define ENABLE_THREADS 1
21552_ACEOF
21553
21554          LIBS="-lpthread $LIBS"
21555          ;;
21556        osf*)
21557          cat >>confdefs.h <<\_ACEOF
21558#define ENABLE_THREADS 1
21559_ACEOF
21560
21561          LIBS="-lpthread -lmach -lexc $LIBS"
21562          ;;
21563        *)
21564          { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21565$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
21566if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21567  $as_echo_n "(cached) " >&6
21568else
21569  ac_func_search_save_LIBS=$LIBS
21570cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h.  */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h.  */
21576
21577/* Override any GCC internal prototype to avoid an error.
21578   Use char because int might match the return type of a GCC
21579   builtin and then its argument prototype would still apply.  */
21580#ifdef __cplusplus
21581extern "C"
21582#endif
21583char pthread_mutex_lock ();
21584int
21585main ()
21586{
21587return pthread_mutex_lock ();
21588  ;
21589  return 0;
21590}
21591_ACEOF
21592for ac_lib in '' pthread; do
21593  if test -z "$ac_lib"; then
21594    ac_res="none required"
21595  else
21596    ac_res=-l$ac_lib
21597    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21598  fi
21599  rm -f conftest.$ac_objext conftest$ac_exeext
21600if { (ac_try="$ac_link"
21601case "(($ac_try" in
21602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603  *) ac_try_echo=$ac_try;;
21604esac
21605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21606$as_echo "$ac_try_echo") >&5
21607  (eval "$ac_link") 2>conftest.er1
21608  ac_status=$?
21609  grep -v '^ *+' conftest.er1 >conftest.err
21610  rm -f conftest.er1
21611  cat conftest.err >&5
21612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613  (exit $ac_status); } && {
21614	 test -z "$ac_c_werror_flag" ||
21615	 test ! -s conftest.err
21616       } && test -s conftest$ac_exeext && {
21617	 test "$cross_compiling" = yes ||
21618	 $as_test_x conftest$ac_exeext
21619       }; then
21620  ac_cv_search_pthread_mutex_lock=$ac_res
21621else
21622  $as_echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625
21626fi
21627
21628rm -rf conftest.dSYM
21629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21630      conftest$ac_exeext
21631  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21632  break
21633fi
21634done
21635if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21636  :
21637else
21638  ac_cv_search_pthread_mutex_lock=no
21639fi
21640rm conftest.$ac_ext
21641LIBS=$ac_func_search_save_LIBS
21642fi
21643{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21644$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
21645ac_res=$ac_cv_search_pthread_mutex_lock
21646if test "$ac_res" != no; then
21647  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21648
21649            cat >>confdefs.h <<\_ACEOF
21650#define ENABLE_THREADS 1
21651_ACEOF
21652
21653
21654fi
21655
21656          ;;
21657        esac
21658      else
21659        case $target_os in
21660        mingw*)
21661          bc_typedef_bc_cond_t="typedef HANDLE bc_cond_t;"
21662          bc_typedef_bc_mutex_t="typedef HANDLE bc_mutex_t;"
21663          bc_typedef_bc_thread_t="typedef HANDLE bc_thread_t;"
21664          bc_typedef_bc_threadid_t="typedef DWORD bc_threadid_t;"
21665          ;;
21666        *)
21667          { $as_echo "$as_me:$LINENO: WARNING: Don't know which thread library to check for" >&5
21668$as_echo "$as_me: WARNING: Don't know which thread library to check for" >&2;}
21669          ;;
21670        esac
21671      fi
21672    fi
21673  fi
21674  INCLUDE_SYNCH_H=$bc_include_synch_h
21675
21676  INCLUDE_THREAD_H=$bc_include_thread_h
21677
21678  INCLUDE_PTHREAD_H=$bc_include_pthread_h
21679
21680  INCLUDE_SEMAPHORE_H=$bc_include_semaphore_h
21681
21682  INCLUDE_SCHED_H=$bc_include_sched_h
21683
21684  TYPEDEF_BC_COND_T=$bc_typedef_bc_cond_t
21685
21686  TYPEDEF_BC_MUTEX_T=$bc_typedef_bc_mutex_t
21687
21688  TYPEDEF_BC_THREAD_T=$bc_typedef_bc_thread_t
21689
21690  TYPEDEF_BC_THREADID_T=$bc_typedef_bc_threadid_t
21691
21692
21693
21694
21695
21696  if test "$ac_enable_threads" = yes; then
21697    { $as_echo "$as_me:$LINENO: checking if your compiler supports thread-local-storage" >&5
21698$as_echo_n "checking if your compiler supports thread-local-storage... " >&6; }
21699    cat >conftest.$ac_ext <<_ACEOF
21700__thread int a = 0;
21701_ACEOF
21702rm -f conftest.$ac_objext
21703if { (ac_try="$ac_compile"
21704case "(($ac_try" in
21705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706  *) ac_try_echo=$ac_try;;
21707esac
21708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21709$as_echo "$ac_try_echo") >&5
21710  (eval "$ac_compile") 2>conftest.er1
21711  ac_status=$?
21712  grep -v '^ *+' conftest.er1 >conftest.err
21713  rm -f conftest.er1
21714  cat conftest.err >&5
21715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716  (exit $ac_status); } && {
21717	 test -z "$ac_c_werror_flag" ||
21718	 test ! -s conftest.err
21719       } && test -s conftest.$ac_objext; then
21720
21721      cat >>confdefs.h <<\_ACEOF
21722#define ENABLE_THREAD_LOCAL_STORAGE 1
21723_ACEOF
21724
21725      { $as_echo "$as_me:$LINENO: result: yes" >&5
21726$as_echo "yes" >&6; }
21727
21728else
21729  $as_echo "$as_me: failed program was:" >&5
21730sed 's/^/| /' conftest.$ac_ext >&5
21731
21732
21733      cat >>confdefs.h <<\_ACEOF
21734#define ENABLE_THREAD_LOCAL_STORAGE 0
21735_ACEOF
21736
21737      { $as_echo "$as_me:$LINENO: result: no" >&5
21738$as_echo "no" >&6; }
21739
21740fi
21741
21742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743  else
21744    cat >>confdefs.h <<\_ACEOF
21745#define ENABLE_THREAD_LOCAL_STORAGE 0
21746_ACEOF
21747
21748  fi
21749
21750
21751# Checks for libraries.
21752if test "$ac_enable_aio" = yes; then
21753
21754
21755for ac_header in aio.h
21756do
21757as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21759  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21760$as_echo_n "checking for $ac_header... " >&6; }
21761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21762  $as_echo_n "(cached) " >&6
21763fi
21764ac_res=`eval 'as_val=${'$as_ac_Header'}
21765		 $as_echo "$as_val"'`
21766	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21767$as_echo "$ac_res" >&6; }
21768else
21769  # Is the header compilable?
21770{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21771$as_echo_n "checking $ac_header usability... " >&6; }
21772cat >conftest.$ac_ext <<_ACEOF
21773/* confdefs.h.  */
21774_ACEOF
21775cat confdefs.h >>conftest.$ac_ext
21776cat >>conftest.$ac_ext <<_ACEOF
21777/* end confdefs.h.  */
21778$ac_includes_default
21779#include <$ac_header>
21780_ACEOF
21781rm -f conftest.$ac_objext
21782if { (ac_try="$ac_compile"
21783case "(($ac_try" in
21784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785  *) ac_try_echo=$ac_try;;
21786esac
21787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21788$as_echo "$ac_try_echo") >&5
21789  (eval "$ac_compile") 2>conftest.er1
21790  ac_status=$?
21791  grep -v '^ *+' conftest.er1 >conftest.err
21792  rm -f conftest.er1
21793  cat conftest.err >&5
21794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795  (exit $ac_status); } && {
21796	 test -z "$ac_c_werror_flag" ||
21797	 test ! -s conftest.err
21798       } && test -s conftest.$ac_objext; then
21799  ac_header_compiler=yes
21800else
21801  $as_echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
21804	ac_header_compiler=no
21805fi
21806
21807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21809$as_echo "$ac_header_compiler" >&6; }
21810
21811# Is the header present?
21812{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21813$as_echo_n "checking $ac_header presence... " >&6; }
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h.  */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h.  */
21820#include <$ac_header>
21821_ACEOF
21822if { (ac_try="$ac_cpp conftest.$ac_ext"
21823case "(($ac_try" in
21824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825  *) ac_try_echo=$ac_try;;
21826esac
21827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21828$as_echo "$ac_try_echo") >&5
21829  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21830  ac_status=$?
21831  grep -v '^ *+' conftest.er1 >conftest.err
21832  rm -f conftest.er1
21833  cat conftest.err >&5
21834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835  (exit $ac_status); } >/dev/null && {
21836	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21837	 test ! -s conftest.err
21838       }; then
21839  ac_header_preproc=yes
21840else
21841  $as_echo "$as_me: failed program was:" >&5
21842sed 's/^/| /' conftest.$ac_ext >&5
21843
21844  ac_header_preproc=no
21845fi
21846
21847rm -f conftest.err conftest.$ac_ext
21848{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21849$as_echo "$ac_header_preproc" >&6; }
21850
21851# So?  What about this header?
21852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21853  yes:no: )
21854    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21855$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21856    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21857$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21858    ac_header_preproc=yes
21859    ;;
21860  no:yes:* )
21861    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21862$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21863    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21864$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21865    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21866$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21867    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21868$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21869    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21870$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21871    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21872$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21873    ( cat <<\_ASBOX
21874## ------------------------------------- ##
21875## Report this to bob.deblier@telenet.be ##
21876## ------------------------------------- ##
21877_ASBOX
21878     ) | sed "s/^/$as_me: WARNING:     /" >&2
21879    ;;
21880esac
21881{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21882$as_echo_n "checking for $ac_header... " >&6; }
21883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21884  $as_echo_n "(cached) " >&6
21885else
21886  eval "$as_ac_Header=\$ac_header_preproc"
21887fi
21888ac_res=`eval 'as_val=${'$as_ac_Header'}
21889		 $as_echo "$as_val"'`
21890	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21891$as_echo "$ac_res" >&6; }
21892
21893fi
21894as_val=`eval 'as_val=${'$as_ac_Header'}
21895		 $as_echo "$as_val"'`
21896   if test "x$as_val" = x""yes; then
21897  cat >>confdefs.h <<_ACEOF
21898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21899_ACEOF
21900
21901fi
21902
21903done
21904
21905  if test "$ac_cv_header_aio_h" = yes; then
21906    { $as_echo "$as_me:$LINENO: checking for library containing aio_read" >&5
21907$as_echo_n "checking for library containing aio_read... " >&6; }
21908if test "${ac_cv_search_aio_read+set}" = set; then
21909  $as_echo_n "(cached) " >&6
21910else
21911  ac_func_search_save_LIBS=$LIBS
21912cat >conftest.$ac_ext <<_ACEOF
21913/* confdefs.h.  */
21914_ACEOF
21915cat confdefs.h >>conftest.$ac_ext
21916cat >>conftest.$ac_ext <<_ACEOF
21917/* end confdefs.h.  */
21918
21919/* Override any GCC internal prototype to avoid an error.
21920   Use char because int might match the return type of a GCC
21921   builtin and then its argument prototype would still apply.  */
21922#ifdef __cplusplus
21923extern "C"
21924#endif
21925char aio_read ();
21926int
21927main ()
21928{
21929return aio_read ();
21930  ;
21931  return 0;
21932}
21933_ACEOF
21934for ac_lib in '' c rt aio posix4; do
21935  if test -z "$ac_lib"; then
21936    ac_res="none required"
21937  else
21938    ac_res=-l$ac_lib
21939    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21940  fi
21941  rm -f conftest.$ac_objext conftest$ac_exeext
21942if { (ac_try="$ac_link"
21943case "(($ac_try" in
21944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945  *) ac_try_echo=$ac_try;;
21946esac
21947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21948$as_echo "$ac_try_echo") >&5
21949  (eval "$ac_link") 2>conftest.er1
21950  ac_status=$?
21951  grep -v '^ *+' conftest.er1 >conftest.err
21952  rm -f conftest.er1
21953  cat conftest.err >&5
21954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955  (exit $ac_status); } && {
21956	 test -z "$ac_c_werror_flag" ||
21957	 test ! -s conftest.err
21958       } && test -s conftest$ac_exeext && {
21959	 test "$cross_compiling" = yes ||
21960	 $as_test_x conftest$ac_exeext
21961       }; then
21962  ac_cv_search_aio_read=$ac_res
21963else
21964  $as_echo "$as_me: failed program was:" >&5
21965sed 's/^/| /' conftest.$ac_ext >&5
21966
21967
21968fi
21969
21970rm -rf conftest.dSYM
21971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21972      conftest$ac_exeext
21973  if test "${ac_cv_search_aio_read+set}" = set; then
21974  break
21975fi
21976done
21977if test "${ac_cv_search_aio_read+set}" = set; then
21978  :
21979else
21980  ac_cv_search_aio_read=no
21981fi
21982rm conftest.$ac_ext
21983LIBS=$ac_func_search_save_LIBS
21984fi
21985{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_aio_read" >&5
21986$as_echo "$ac_cv_search_aio_read" >&6; }
21987ac_res=$ac_cv_search_aio_read
21988if test "$ac_res" != no; then
21989  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21990
21991      { $as_echo "$as_me:$LINENO: checking whether aio works" >&5
21992$as_echo_n "checking whether aio works... " >&6; }
21993if test "${bc_cv_working_aio+set}" = set; then
21994  $as_echo_n "(cached) " >&6
21995else
21996
21997        cat > conftest.aio << EOF
21998The quick brown fox jumps over the lazy dog.
21999EOF
22000        ac_ext=c
22001ac_cpp='$CPP $CPPFLAGS'
22002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22004ac_compiler_gnu=$ac_cv_c_compiler_gnu
22005
22006        if test "$cross_compiling" = yes; then
22007
22008            case $target_os in
22009              linux* | solaris*)
22010                bc_cv_working_aio=yes ;;
22011              *)
22012                bc_cv_working_aio=no ;;
22013            esac
22014
22015else
22016  cat >conftest.$ac_ext <<_ACEOF
22017
22018          /* confdefs.h.  */
22019_ACEOF
22020cat confdefs.h >>conftest.$ac_ext
22021cat >>conftest.$ac_ext <<_ACEOF
22022/* end confdefs.h.  */
22023
22024            #if HAVE_ERRNO_H
22025            # include <errno.h>
22026            #endif
22027            #if HAVE_FCNTL_H
22028            # include <fcntl.h>
22029            #endif
22030            #if HAVE_STRING_H
22031            # include <string.h>
22032            #endif
22033            #if HAVE_UNISTD_H
22034            # include <unistd.h>
22035            #endif
22036            #include <stdio.h>
22037            #include <aio.h>
22038
22039int
22040main ()
22041{
22042
22043                    struct aiocb    a;
22044              const struct aiocb*   a_list = &a;
22045                    struct timespec a_timeout;
22046
22047              char buffer[32];
22048
22049              int i, rc, fd = open("conftest.aio", O_RDONLY);
22050
22051              if (fd < 0)
22052                exit(1);
22053
22054              memset(&a, 0, sizeof(struct aiocb));
22055
22056              a.aio_fildes = fd;
22057              a.aio_offset = 0;
22058              a.aio_reqprio = 0;
22059              a.aio_buf = buffer;
22060              a.aio_nbytes = sizeof(buffer);
22061              a.aio_sigevent.sigev_notify = SIGEV_NONE;
22062
22063              a_timeout.tv_sec = 1;
22064              a_timeout.tv_nsec = 0;
22065
22066              if (aio_read(&a) < 0)
22067              {
22068                perror("aio_read");
22069                exit(1);
22070              }
22071              if (aio_suspend(&a_list, 1, &a_timeout) < 0)
22072              {
22073                #if HAVE_ERRNO_H
22074                /* some linux systems don't await timeout and return instantly */
22075                if (errno == EAGAIN)
22076                {
22077                  nanosleep(&a_timeout, (struct timespec*) 0);
22078
22079                  if (aio_suspend(&a_list, 1, &a_timeout) < 0)
22080                  {
22081                    perror("aio_suspend");
22082                    exit(1);
22083                  }
22084                }
22085                else
22086                {
22087                  perror("aio_suspend");
22088                  exit(1);
22089                }
22090                #else
22091                exit(1);
22092                #endif
22093              }
22094              if (aio_error(&a) < 0)
22095                exit(1);
22096
22097              if (aio_return(&a) < 0)
22098                exit(1);
22099
22100              exit(0);
22101
22102  ;
22103  return 0;
22104}
22105_ACEOF
22106rm -f conftest$ac_exeext
22107if { (ac_try="$ac_link"
22108case "(($ac_try" in
22109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110  *) ac_try_echo=$ac_try;;
22111esac
22112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22113$as_echo "$ac_try_echo") >&5
22114  (eval "$ac_link") 2>&5
22115  ac_status=$?
22116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22118  { (case "(($ac_try" in
22119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120  *) ac_try_echo=$ac_try;;
22121esac
22122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123$as_echo "$ac_try_echo") >&5
22124  (eval "$ac_try") 2>&5
22125  ac_status=$?
22126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127  (exit $ac_status); }; }; then
22128  bc_cv_working_aio=yes
22129else
22130  $as_echo "$as_me: program exited with status $ac_status" >&5
22131$as_echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134( exit $ac_status )
22135bc_cv_working_aio=no
22136fi
22137rm -rf conftest.dSYM
22138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22139fi
22140
22141
22142
22143fi
22144{ $as_echo "$as_me:$LINENO: result: $bc_cv_working_aio" >&5
22145$as_echo "$bc_cv_working_aio" >&6; }
22146        ac_ext=c
22147ac_cpp='$CPP $CPPFLAGS'
22148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22150ac_compiler_gnu=$ac_cv_c_compiler_gnu
22151
22152
22153fi
22154
22155    rm -fr conftest.aio
22156  fi
22157
22158  if test "$bc_cv_aio_works" = yes; then
22159    cat >>confdefs.h <<\_ACEOF
22160#define ENABLE_AIO 1
22161_ACEOF
22162
22163  fi
22164fi
22165
22166if test "$ac_with_mtmalloc" = yes; then
22167  if test "$ac_cv_have_mtmalloc_h" = yes; then
22168
22169{ $as_echo "$as_me:$LINENO: checking for main in -lmtmalloc" >&5
22170$as_echo_n "checking for main in -lmtmalloc... " >&6; }
22171if test "${ac_cv_lib_mtmalloc_main+set}" = set; then
22172  $as_echo_n "(cached) " >&6
22173else
22174  ac_check_lib_save_LIBS=$LIBS
22175LIBS="-lmtmalloc  $LIBS"
22176cat >conftest.$ac_ext <<_ACEOF
22177/* confdefs.h.  */
22178_ACEOF
22179cat confdefs.h >>conftest.$ac_ext
22180cat >>conftest.$ac_ext <<_ACEOF
22181/* end confdefs.h.  */
22182
22183
22184int
22185main ()
22186{
22187return main ();
22188  ;
22189  return 0;
22190}
22191_ACEOF
22192rm -f conftest.$ac_objext conftest$ac_exeext
22193if { (ac_try="$ac_link"
22194case "(($ac_try" in
22195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196  *) ac_try_echo=$ac_try;;
22197esac
22198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22199$as_echo "$ac_try_echo") >&5
22200  (eval "$ac_link") 2>conftest.er1
22201  ac_status=$?
22202  grep -v '^ *+' conftest.er1 >conftest.err
22203  rm -f conftest.er1
22204  cat conftest.err >&5
22205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206  (exit $ac_status); } && {
22207	 test -z "$ac_c_werror_flag" ||
22208	 test ! -s conftest.err
22209       } && test -s conftest$ac_exeext && {
22210	 test "$cross_compiling" = yes ||
22211	 $as_test_x conftest$ac_exeext
22212       }; then
22213  ac_cv_lib_mtmalloc_main=yes
22214else
22215  $as_echo "$as_me: failed program was:" >&5
22216sed 's/^/| /' conftest.$ac_ext >&5
22217
22218	ac_cv_lib_mtmalloc_main=no
22219fi
22220
22221rm -rf conftest.dSYM
22222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22223      conftest$ac_exeext conftest.$ac_ext
22224LIBS=$ac_check_lib_save_LIBS
22225fi
22226{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtmalloc_main" >&5
22227$as_echo "$ac_cv_lib_mtmalloc_main" >&6; }
22228if test "x$ac_cv_lib_mtmalloc_main" = x""yes; then
22229  cat >>confdefs.h <<_ACEOF
22230#define HAVE_LIBMTMALLOC 1
22231_ACEOF
22232
22233  LIBS="-lmtmalloc $LIBS"
22234
22235fi
22236 ac_cv_lib_mtmalloc=ac_cv_lib_mtmalloc_main
22237
22238  fi
22239fi
22240
22241case $target_os in
22242  cygwin* | mingw*)
22243
22244{ $as_echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
22245$as_echo_n "checking for main in -lwinmm... " >&6; }
22246if test "${ac_cv_lib_winmm_main+set}" = set; then
22247  $as_echo_n "(cached) " >&6
22248else
22249  ac_check_lib_save_LIBS=$LIBS
22250LIBS="-lwinmm  $LIBS"
22251cat >conftest.$ac_ext <<_ACEOF
22252/* confdefs.h.  */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h.  */
22257
22258
22259int
22260main ()
22261{
22262return main ();
22263  ;
22264  return 0;
22265}
22266_ACEOF
22267rm -f conftest.$ac_objext conftest$ac_exeext
22268if { (ac_try="$ac_link"
22269case "(($ac_try" in
22270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271  *) ac_try_echo=$ac_try;;
22272esac
22273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22274$as_echo "$ac_try_echo") >&5
22275  (eval "$ac_link") 2>conftest.er1
22276  ac_status=$?
22277  grep -v '^ *+' conftest.er1 >conftest.err
22278  rm -f conftest.er1
22279  cat conftest.err >&5
22280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281  (exit $ac_status); } && {
22282	 test -z "$ac_c_werror_flag" ||
22283	 test ! -s conftest.err
22284       } && test -s conftest$ac_exeext && {
22285	 test "$cross_compiling" = yes ||
22286	 $as_test_x conftest$ac_exeext
22287       }; then
22288  ac_cv_lib_winmm_main=yes
22289else
22290  $as_echo "$as_me: failed program was:" >&5
22291sed 's/^/| /' conftest.$ac_ext >&5
22292
22293	ac_cv_lib_winmm_main=no
22294fi
22295
22296rm -rf conftest.dSYM
22297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22298      conftest$ac_exeext conftest.$ac_ext
22299LIBS=$ac_check_lib_save_LIBS
22300fi
22301{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
22302$as_echo "$ac_cv_lib_winmm_main" >&6; }
22303if test "x$ac_cv_lib_winmm_main" = x""yes; then
22304  cat >>confdefs.h <<_ACEOF
22305#define HAVE_LIBWINMM 1
22306_ACEOF
22307
22308  LIBS="-lwinmm $LIBS"
22309
22310fi
22311 ac_cv_lib_winmm=ac_cv_lib_winmm_main
22312    ;;
22313esac
22314
22315# Checks for typedefs, structures, and compiler characteristics.
22316
22317 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22318$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22319if test "${ac_cv_c_bigendian+set}" = set; then
22320  $as_echo_n "(cached) " >&6
22321else
22322  ac_cv_c_bigendian=unknown
22323    # See if we're dealing with a universal compiler.
22324    cat >conftest.$ac_ext <<_ACEOF
22325/* confdefs.h.  */
22326_ACEOF
22327cat confdefs.h >>conftest.$ac_ext
22328cat >>conftest.$ac_ext <<_ACEOF
22329/* end confdefs.h.  */
22330#ifndef __APPLE_CC__
22331	       not a universal capable compiler
22332	     #endif
22333	     typedef int dummy;
22334
22335_ACEOF
22336rm -f conftest.$ac_objext
22337if { (ac_try="$ac_compile"
22338case "(($ac_try" in
22339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340  *) ac_try_echo=$ac_try;;
22341esac
22342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22343$as_echo "$ac_try_echo") >&5
22344  (eval "$ac_compile") 2>conftest.er1
22345  ac_status=$?
22346  grep -v '^ *+' conftest.er1 >conftest.err
22347  rm -f conftest.er1
22348  cat conftest.err >&5
22349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350  (exit $ac_status); } && {
22351	 test -z "$ac_c_werror_flag" ||
22352	 test ! -s conftest.err
22353       } && test -s conftest.$ac_objext; then
22354
22355	# Check for potential -arch flags.  It is not universal unless
22356	# there are some -arch flags.  Note that *ppc* also matches
22357	# ppc64.  This check is also rather less than ideal.
22358	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
22359	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
22360	esac
22361else
22362  $as_echo "$as_me: failed program was:" >&5
22363sed 's/^/| /' conftest.$ac_ext >&5
22364
22365
22366fi
22367
22368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22369    if test $ac_cv_c_bigendian = unknown; then
22370      # See if sys/param.h defines the BYTE_ORDER macro.
22371      cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h.  */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h.  */
22377#include <sys/types.h>
22378	     #include <sys/param.h>
22379
22380int
22381main ()
22382{
22383#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22384		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22385		     && LITTLE_ENDIAN)
22386	      bogus endian macros
22387	     #endif
22388
22389  ;
22390  return 0;
22391}
22392_ACEOF
22393rm -f conftest.$ac_objext
22394if { (ac_try="$ac_compile"
22395case "(($ac_try" in
22396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397  *) ac_try_echo=$ac_try;;
22398esac
22399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400$as_echo "$ac_try_echo") >&5
22401  (eval "$ac_compile") 2>conftest.er1
22402  ac_status=$?
22403  grep -v '^ *+' conftest.er1 >conftest.err
22404  rm -f conftest.er1
22405  cat conftest.err >&5
22406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407  (exit $ac_status); } && {
22408	 test -z "$ac_c_werror_flag" ||
22409	 test ! -s conftest.err
22410       } && test -s conftest.$ac_objext; then
22411  # It does; now see whether it defined to BIG_ENDIAN or not.
22412	 cat >conftest.$ac_ext <<_ACEOF
22413/* confdefs.h.  */
22414_ACEOF
22415cat confdefs.h >>conftest.$ac_ext
22416cat >>conftest.$ac_ext <<_ACEOF
22417/* end confdefs.h.  */
22418#include <sys/types.h>
22419		#include <sys/param.h>
22420
22421int
22422main ()
22423{
22424#if BYTE_ORDER != BIG_ENDIAN
22425		 not big endian
22426		#endif
22427
22428  ;
22429  return 0;
22430}
22431_ACEOF
22432rm -f conftest.$ac_objext
22433if { (ac_try="$ac_compile"
22434case "(($ac_try" in
22435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436  *) ac_try_echo=$ac_try;;
22437esac
22438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22439$as_echo "$ac_try_echo") >&5
22440  (eval "$ac_compile") 2>conftest.er1
22441  ac_status=$?
22442  grep -v '^ *+' conftest.er1 >conftest.err
22443  rm -f conftest.er1
22444  cat conftest.err >&5
22445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446  (exit $ac_status); } && {
22447	 test -z "$ac_c_werror_flag" ||
22448	 test ! -s conftest.err
22449       } && test -s conftest.$ac_objext; then
22450  ac_cv_c_bigendian=yes
22451else
22452  $as_echo "$as_me: failed program was:" >&5
22453sed 's/^/| /' conftest.$ac_ext >&5
22454
22455	ac_cv_c_bigendian=no
22456fi
22457
22458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459else
22460  $as_echo "$as_me: failed program was:" >&5
22461sed 's/^/| /' conftest.$ac_ext >&5
22462
22463
22464fi
22465
22466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467    fi
22468    if test $ac_cv_c_bigendian = unknown; then
22469      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22470      cat >conftest.$ac_ext <<_ACEOF
22471/* confdefs.h.  */
22472_ACEOF
22473cat confdefs.h >>conftest.$ac_ext
22474cat >>conftest.$ac_ext <<_ACEOF
22475/* end confdefs.h.  */
22476#include <limits.h>
22477
22478int
22479main ()
22480{
22481#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22482	      bogus endian macros
22483	     #endif
22484
22485  ;
22486  return 0;
22487}
22488_ACEOF
22489rm -f conftest.$ac_objext
22490if { (ac_try="$ac_compile"
22491case "(($ac_try" in
22492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493  *) ac_try_echo=$ac_try;;
22494esac
22495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22496$as_echo "$ac_try_echo") >&5
22497  (eval "$ac_compile") 2>conftest.er1
22498  ac_status=$?
22499  grep -v '^ *+' conftest.er1 >conftest.err
22500  rm -f conftest.er1
22501  cat conftest.err >&5
22502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503  (exit $ac_status); } && {
22504	 test -z "$ac_c_werror_flag" ||
22505	 test ! -s conftest.err
22506       } && test -s conftest.$ac_objext; then
22507  # It does; now see whether it defined to _BIG_ENDIAN or not.
22508	 cat >conftest.$ac_ext <<_ACEOF
22509/* confdefs.h.  */
22510_ACEOF
22511cat confdefs.h >>conftest.$ac_ext
22512cat >>conftest.$ac_ext <<_ACEOF
22513/* end confdefs.h.  */
22514#include <limits.h>
22515
22516int
22517main ()
22518{
22519#ifndef _BIG_ENDIAN
22520		 not big endian
22521		#endif
22522
22523  ;
22524  return 0;
22525}
22526_ACEOF
22527rm -f conftest.$ac_objext
22528if { (ac_try="$ac_compile"
22529case "(($ac_try" in
22530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531  *) ac_try_echo=$ac_try;;
22532esac
22533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22534$as_echo "$ac_try_echo") >&5
22535  (eval "$ac_compile") 2>conftest.er1
22536  ac_status=$?
22537  grep -v '^ *+' conftest.er1 >conftest.err
22538  rm -f conftest.er1
22539  cat conftest.err >&5
22540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541  (exit $ac_status); } && {
22542	 test -z "$ac_c_werror_flag" ||
22543	 test ! -s conftest.err
22544       } && test -s conftest.$ac_objext; then
22545  ac_cv_c_bigendian=yes
22546else
22547  $as_echo "$as_me: failed program was:" >&5
22548sed 's/^/| /' conftest.$ac_ext >&5
22549
22550	ac_cv_c_bigendian=no
22551fi
22552
22553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554else
22555  $as_echo "$as_me: failed program was:" >&5
22556sed 's/^/| /' conftest.$ac_ext >&5
22557
22558
22559fi
22560
22561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562    fi
22563    if test $ac_cv_c_bigendian = unknown; then
22564      # Compile a test program.
22565      if test "$cross_compiling" = yes; then
22566  # Try to guess by grepping values from an object file.
22567	 cat >conftest.$ac_ext <<_ACEOF
22568/* confdefs.h.  */
22569_ACEOF
22570cat confdefs.h >>conftest.$ac_ext
22571cat >>conftest.$ac_ext <<_ACEOF
22572/* end confdefs.h.  */
22573short int ascii_mm[] =
22574		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22575		short int ascii_ii[] =
22576		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22577		int use_ascii (int i) {
22578		  return ascii_mm[i] + ascii_ii[i];
22579		}
22580		short int ebcdic_ii[] =
22581		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22582		short int ebcdic_mm[] =
22583		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22584		int use_ebcdic (int i) {
22585		  return ebcdic_mm[i] + ebcdic_ii[i];
22586		}
22587		extern int foo;
22588
22589int
22590main ()
22591{
22592return use_ascii (foo) == use_ebcdic (foo);
22593  ;
22594  return 0;
22595}
22596_ACEOF
22597rm -f conftest.$ac_objext
22598if { (ac_try="$ac_compile"
22599case "(($ac_try" in
22600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601  *) ac_try_echo=$ac_try;;
22602esac
22603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22604$as_echo "$ac_try_echo") >&5
22605  (eval "$ac_compile") 2>conftest.er1
22606  ac_status=$?
22607  grep -v '^ *+' conftest.er1 >conftest.err
22608  rm -f conftest.er1
22609  cat conftest.err >&5
22610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611  (exit $ac_status); } && {
22612	 test -z "$ac_c_werror_flag" ||
22613	 test ! -s conftest.err
22614       } && test -s conftest.$ac_objext; then
22615  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22616	      ac_cv_c_bigendian=yes
22617	    fi
22618	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22619	      if test "$ac_cv_c_bigendian" = unknown; then
22620		ac_cv_c_bigendian=no
22621	      else
22622		# finding both strings is unlikely to happen, but who knows?
22623		ac_cv_c_bigendian=unknown
22624	      fi
22625	    fi
22626else
22627  $as_echo "$as_me: failed program was:" >&5
22628sed 's/^/| /' conftest.$ac_ext >&5
22629
22630
22631fi
22632
22633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634else
22635  cat >conftest.$ac_ext <<_ACEOF
22636/* confdefs.h.  */
22637_ACEOF
22638cat confdefs.h >>conftest.$ac_ext
22639cat >>conftest.$ac_ext <<_ACEOF
22640/* end confdefs.h.  */
22641$ac_includes_default
22642int
22643main ()
22644{
22645
22646	     /* Are we little or big endian?  From Harbison&Steele.  */
22647	     union
22648	     {
22649	       long int l;
22650	       char c[sizeof (long int)];
22651	     } u;
22652	     u.l = 1;
22653	     return u.c[sizeof (long int) - 1] == 1;
22654
22655  ;
22656  return 0;
22657}
22658_ACEOF
22659rm -f conftest$ac_exeext
22660if { (ac_try="$ac_link"
22661case "(($ac_try" in
22662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663  *) ac_try_echo=$ac_try;;
22664esac
22665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22666$as_echo "$ac_try_echo") >&5
22667  (eval "$ac_link") 2>&5
22668  ac_status=$?
22669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22671  { (case "(($ac_try" in
22672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673  *) ac_try_echo=$ac_try;;
22674esac
22675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676$as_echo "$ac_try_echo") >&5
22677  (eval "$ac_try") 2>&5
22678  ac_status=$?
22679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680  (exit $ac_status); }; }; then
22681  ac_cv_c_bigendian=no
22682else
22683  $as_echo "$as_me: program exited with status $ac_status" >&5
22684$as_echo "$as_me: failed program was:" >&5
22685sed 's/^/| /' conftest.$ac_ext >&5
22686
22687( exit $ac_status )
22688ac_cv_c_bigendian=yes
22689fi
22690rm -rf conftest.dSYM
22691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22692fi
22693
22694
22695    fi
22696fi
22697{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22698$as_echo "$ac_cv_c_bigendian" >&6; }
22699 case $ac_cv_c_bigendian in #(
22700   yes)
22701     cat >>confdefs.h <<\_ACEOF
22702#define WORDS_BIGENDIAN 1
22703_ACEOF
22704;; #(
22705   no)
22706      ;; #(
22707   universal)
22708
22709cat >>confdefs.h <<\_ACEOF
22710#define AC_APPLE_UNIVERSAL_BUILD 1
22711_ACEOF
22712
22713     ;; #(
22714   *)
22715     { { $as_echo "$as_me:$LINENO: error: unknown endianness
22716 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22717$as_echo "$as_me: error: unknown endianness
22718 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22719   { (exit 1); exit 1; }; } ;;
22720 esac
22721
22722{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22723$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22724if test "${ac_cv_c_const+set}" = set; then
22725  $as_echo_n "(cached) " >&6
22726else
22727  cat >conftest.$ac_ext <<_ACEOF
22728/* confdefs.h.  */
22729_ACEOF
22730cat confdefs.h >>conftest.$ac_ext
22731cat >>conftest.$ac_ext <<_ACEOF
22732/* end confdefs.h.  */
22733
22734int
22735main ()
22736{
22737/* FIXME: Include the comments suggested by Paul. */
22738#ifndef __cplusplus
22739  /* Ultrix mips cc rejects this.  */
22740  typedef int charset[2];
22741  const charset cs;
22742  /* SunOS 4.1.1 cc rejects this.  */
22743  char const *const *pcpcc;
22744  char **ppc;
22745  /* NEC SVR4.0.2 mips cc rejects this.  */
22746  struct point {int x, y;};
22747  static struct point const zero = {0,0};
22748  /* AIX XL C 1.02.0.0 rejects this.
22749     It does not let you subtract one const X* pointer from another in
22750     an arm of an if-expression whose if-part is not a constant
22751     expression */
22752  const char *g = "string";
22753  pcpcc = &g + (g ? g-g : 0);
22754  /* HPUX 7.0 cc rejects these. */
22755  ++pcpcc;
22756  ppc = (char**) pcpcc;
22757  pcpcc = (char const *const *) ppc;
22758  { /* SCO 3.2v4 cc rejects this.  */
22759    char *t;
22760    char const *s = 0 ? (char *) 0 : (char const *) 0;
22761
22762    *t++ = 0;
22763    if (s) return 0;
22764  }
22765  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22766    int x[] = {25, 17};
22767    const int *foo = &x[0];
22768    ++foo;
22769  }
22770  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22771    typedef const int *iptr;
22772    iptr p = 0;
22773    ++p;
22774  }
22775  { /* AIX XL C 1.02.0.0 rejects this saying
22776       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22777    struct s { int j; const int *ap[3]; };
22778    struct s *b; b->j = 5;
22779  }
22780  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22781    const int foo = 10;
22782    if (!foo) return 0;
22783  }
22784  return !cs[0] && !zero.x;
22785#endif
22786
22787  ;
22788  return 0;
22789}
22790_ACEOF
22791rm -f conftest.$ac_objext
22792if { (ac_try="$ac_compile"
22793case "(($ac_try" in
22794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795  *) ac_try_echo=$ac_try;;
22796esac
22797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22798$as_echo "$ac_try_echo") >&5
22799  (eval "$ac_compile") 2>conftest.er1
22800  ac_status=$?
22801  grep -v '^ *+' conftest.er1 >conftest.err
22802  rm -f conftest.er1
22803  cat conftest.err >&5
22804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805  (exit $ac_status); } && {
22806	 test -z "$ac_c_werror_flag" ||
22807	 test ! -s conftest.err
22808       } && test -s conftest.$ac_objext; then
22809  ac_cv_c_const=yes
22810else
22811  $as_echo "$as_me: failed program was:" >&5
22812sed 's/^/| /' conftest.$ac_ext >&5
22813
22814	ac_cv_c_const=no
22815fi
22816
22817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22818fi
22819{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22820$as_echo "$ac_cv_c_const" >&6; }
22821if test $ac_cv_c_const = no; then
22822
22823cat >>confdefs.h <<\_ACEOF
22824#define const /**/
22825_ACEOF
22826
22827fi
22828
22829{ $as_echo "$as_me:$LINENO: checking for inline" >&5
22830$as_echo_n "checking for inline... " >&6; }
22831if test "${ac_cv_c_inline+set}" = set; then
22832  $as_echo_n "(cached) " >&6
22833else
22834  ac_cv_c_inline=no
22835for ac_kw in inline __inline__ __inline; do
22836  cat >conftest.$ac_ext <<_ACEOF
22837/* confdefs.h.  */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h.  */
22842#ifndef __cplusplus
22843typedef int foo_t;
22844static $ac_kw foo_t static_foo () {return 0; }
22845$ac_kw foo_t foo () {return 0; }
22846#endif
22847
22848_ACEOF
22849rm -f conftest.$ac_objext
22850if { (ac_try="$ac_compile"
22851case "(($ac_try" in
22852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853  *) ac_try_echo=$ac_try;;
22854esac
22855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22856$as_echo "$ac_try_echo") >&5
22857  (eval "$ac_compile") 2>conftest.er1
22858  ac_status=$?
22859  grep -v '^ *+' conftest.er1 >conftest.err
22860  rm -f conftest.er1
22861  cat conftest.err >&5
22862  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863  (exit $ac_status); } && {
22864	 test -z "$ac_c_werror_flag" ||
22865	 test ! -s conftest.err
22866       } && test -s conftest.$ac_objext; then
22867  ac_cv_c_inline=$ac_kw
22868else
22869  $as_echo "$as_me: failed program was:" >&5
22870sed 's/^/| /' conftest.$ac_ext >&5
22871
22872
22873fi
22874
22875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876  test "$ac_cv_c_inline" != no && break
22877done
22878
22879fi
22880{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22881$as_echo "$ac_cv_c_inline" >&6; }
22882
22883
22884case $ac_cv_c_inline in
22885  inline | yes) ;;
22886  *)
22887    case $ac_cv_c_inline in
22888      no) ac_val=;;
22889      *) ac_val=$ac_cv_c_inline;;
22890    esac
22891    cat >>confdefs.h <<_ACEOF
22892#ifndef __cplusplus
22893#define inline $ac_val
22894#endif
22895_ACEOF
22896    ;;
22897esac
22898
22899
22900
22901
22902if test "$ac_cv_c_inline" != no; then
22903  cat >>confdefs.h <<\_ACEOF
22904#define HAVE_INLINE 1
22905_ACEOF
22906
22907fi
22908
22909# Checks for library functions.
22910if test $ac_cv_c_compiler_gnu = yes; then
22911    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22912$as_echo_n "checking whether $CC needs -traditional... " >&6; }
22913if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22914  $as_echo_n "(cached) " >&6
22915else
22916    ac_pattern="Autoconf.*'x'"
22917  cat >conftest.$ac_ext <<_ACEOF
22918/* confdefs.h.  */
22919_ACEOF
22920cat confdefs.h >>conftest.$ac_ext
22921cat >>conftest.$ac_ext <<_ACEOF
22922/* end confdefs.h.  */
22923#include <sgtty.h>
22924Autoconf TIOCGETP
22925_ACEOF
22926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22927  $EGREP "$ac_pattern" >/dev/null 2>&1; then
22928  ac_cv_prog_gcc_traditional=yes
22929else
22930  ac_cv_prog_gcc_traditional=no
22931fi
22932rm -f conftest*
22933
22934
22935  if test $ac_cv_prog_gcc_traditional = no; then
22936    cat >conftest.$ac_ext <<_ACEOF
22937/* confdefs.h.  */
22938_ACEOF
22939cat confdefs.h >>conftest.$ac_ext
22940cat >>conftest.$ac_ext <<_ACEOF
22941/* end confdefs.h.  */
22942#include <termio.h>
22943Autoconf TCGETA
22944_ACEOF
22945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22946  $EGREP "$ac_pattern" >/dev/null 2>&1; then
22947  ac_cv_prog_gcc_traditional=yes
22948fi
22949rm -f conftest*
22950
22951  fi
22952fi
22953{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22954$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22955  if test $ac_cv_prog_gcc_traditional = yes; then
22956    CC="$CC -traditional"
22957  fi
22958fi
22959
22960{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
22961$as_echo_n "checking for working memcmp... " >&6; }
22962if test "${ac_cv_func_memcmp_working+set}" = set; then
22963  $as_echo_n "(cached) " >&6
22964else
22965  if test "$cross_compiling" = yes; then
22966  ac_cv_func_memcmp_working=no
22967else
22968  cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h.  */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h.  */
22974$ac_includes_default
22975int
22976main ()
22977{
22978
22979  /* Some versions of memcmp are not 8-bit clean.  */
22980  char c0 = '\100', c1 = '\200', c2 = '\201';
22981  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22982    return 1;
22983
22984  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22985     or more and with at least one buffer not starting on a 4-byte boundary.
22986     William Lewis provided this test program.   */
22987  {
22988    char foo[21];
22989    char bar[21];
22990    int i;
22991    for (i = 0; i < 4; i++)
22992      {
22993	char *a = foo + i;
22994	char *b = bar + i;
22995	strcpy (a, "--------01111111");
22996	strcpy (b, "--------10000000");
22997	if (memcmp (a, b, 16) >= 0)
22998	  return 1;
22999      }
23000    return 0;
23001  }
23002
23003  ;
23004  return 0;
23005}
23006_ACEOF
23007rm -f conftest$ac_exeext
23008if { (ac_try="$ac_link"
23009case "(($ac_try" in
23010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011  *) ac_try_echo=$ac_try;;
23012esac
23013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23014$as_echo "$ac_try_echo") >&5
23015  (eval "$ac_link") 2>&5
23016  ac_status=$?
23017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23019  { (case "(($ac_try" in
23020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021  *) ac_try_echo=$ac_try;;
23022esac
23023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23024$as_echo "$ac_try_echo") >&5
23025  (eval "$ac_try") 2>&5
23026  ac_status=$?
23027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028  (exit $ac_status); }; }; then
23029  ac_cv_func_memcmp_working=yes
23030else
23031  $as_echo "$as_me: program exited with status $ac_status" >&5
23032$as_echo "$as_me: failed program was:" >&5
23033sed 's/^/| /' conftest.$ac_ext >&5
23034
23035( exit $ac_status )
23036ac_cv_func_memcmp_working=no
23037fi
23038rm -rf conftest.dSYM
23039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23040fi
23041
23042
23043fi
23044{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23045$as_echo "$ac_cv_func_memcmp_working" >&6; }
23046test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23047  *" memcmp.$ac_objext "* ) ;;
23048  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23049 ;;
23050esac
23051
23052
23053{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23054$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
23055if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23056  $as_echo_n "(cached) " >&6
23057else
23058  rm -f conftest.sym conftest.file
23059echo >conftest.file
23060if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23061  if test "$cross_compiling" = yes; then
23062  ac_cv_func_lstat_dereferences_slashed_symlink=no
23063else
23064  cat >conftest.$ac_ext <<_ACEOF
23065/* confdefs.h.  */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h.  */
23070$ac_includes_default
23071int
23072main ()
23073{
23074struct stat sbuf;
23075     /* Linux will dereference the symlink and fail.
23076	That is better in the sense that it means we will not
23077	have to compile and use the lstat wrapper.  */
23078     return lstat ("conftest.sym/", &sbuf) == 0;
23079  ;
23080  return 0;
23081}
23082_ACEOF
23083rm -f conftest$ac_exeext
23084if { (ac_try="$ac_link"
23085case "(($ac_try" in
23086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087  *) ac_try_echo=$ac_try;;
23088esac
23089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23090$as_echo "$ac_try_echo") >&5
23091  (eval "$ac_link") 2>&5
23092  ac_status=$?
23093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23095  { (case "(($ac_try" in
23096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23097  *) ac_try_echo=$ac_try;;
23098esac
23099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23100$as_echo "$ac_try_echo") >&5
23101  (eval "$ac_try") 2>&5
23102  ac_status=$?
23103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104  (exit $ac_status); }; }; then
23105  ac_cv_func_lstat_dereferences_slashed_symlink=yes
23106else
23107  $as_echo "$as_me: program exited with status $ac_status" >&5
23108$as_echo "$as_me: failed program was:" >&5
23109sed 's/^/| /' conftest.$ac_ext >&5
23110
23111( exit $ac_status )
23112ac_cv_func_lstat_dereferences_slashed_symlink=no
23113fi
23114rm -rf conftest.dSYM
23115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23116fi
23117
23118
23119else
23120  # If the `ln -s' command failed, then we probably don't even
23121  # have an lstat function.
23122  ac_cv_func_lstat_dereferences_slashed_symlink=no
23123fi
23124rm -f conftest.sym conftest.file
23125
23126fi
23127{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23128$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23129
23130test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23131
23132cat >>confdefs.h <<_ACEOF
23133#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23134_ACEOF
23135
23136
23137if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23138  case " $LIBOBJS " in
23139  *" lstat.$ac_objext "* ) ;;
23140  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
23141 ;;
23142esac
23143
23144fi
23145
23146{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23147$as_echo_n "checking whether stat accepts an empty string... " >&6; }
23148if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23149  $as_echo_n "(cached) " >&6
23150else
23151  if test "$cross_compiling" = yes; then
23152  ac_cv_func_stat_empty_string_bug=yes
23153else
23154  cat >conftest.$ac_ext <<_ACEOF
23155/* confdefs.h.  */
23156_ACEOF
23157cat confdefs.h >>conftest.$ac_ext
23158cat >>conftest.$ac_ext <<_ACEOF
23159/* end confdefs.h.  */
23160$ac_includes_default
23161int
23162main ()
23163{
23164struct stat sbuf;
23165  return stat ("", &sbuf) == 0;
23166  ;
23167  return 0;
23168}
23169_ACEOF
23170rm -f conftest$ac_exeext
23171if { (ac_try="$ac_link"
23172case "(($ac_try" in
23173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174  *) ac_try_echo=$ac_try;;
23175esac
23176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23177$as_echo "$ac_try_echo") >&5
23178  (eval "$ac_link") 2>&5
23179  ac_status=$?
23180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23182  { (case "(($ac_try" in
23183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184  *) ac_try_echo=$ac_try;;
23185esac
23186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23187$as_echo "$ac_try_echo") >&5
23188  (eval "$ac_try") 2>&5
23189  ac_status=$?
23190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191  (exit $ac_status); }; }; then
23192  ac_cv_func_stat_empty_string_bug=no
23193else
23194  $as_echo "$as_me: program exited with status $ac_status" >&5
23195$as_echo "$as_me: failed program was:" >&5
23196sed 's/^/| /' conftest.$ac_ext >&5
23197
23198( exit $ac_status )
23199ac_cv_func_stat_empty_string_bug=yes
23200fi
23201rm -rf conftest.dSYM
23202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23203fi
23204
23205
23206fi
23207{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23208$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
23209if test $ac_cv_func_stat_empty_string_bug = yes; then
23210  case " $LIBOBJS " in
23211  *" stat.$ac_objext "* ) ;;
23212  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
23213 ;;
23214esac
23215
23216
23217cat >>confdefs.h <<_ACEOF
23218#define HAVE_STAT_EMPTY_STRING_BUG 1
23219_ACEOF
23220
23221fi
23222
23223
23224
23225
23226
23227
23228
23229for ac_func in memset memcmp memmove strcspn strerror strspn
23230do
23231as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23232{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23233$as_echo_n "checking for $ac_func... " >&6; }
23234if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23235  $as_echo_n "(cached) " >&6
23236else
23237  cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h.  */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h.  */
23243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23244   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23245#define $ac_func innocuous_$ac_func
23246
23247/* System header to define __stub macros and hopefully few prototypes,
23248    which can conflict with char $ac_func (); below.
23249    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23250    <limits.h> exists even on freestanding compilers.  */
23251
23252#ifdef __STDC__
23253# include <limits.h>
23254#else
23255# include <assert.h>
23256#endif
23257
23258#undef $ac_func
23259
23260/* Override any GCC internal prototype to avoid an error.
23261   Use char because int might match the return type of a GCC
23262   builtin and then its argument prototype would still apply.  */
23263#ifdef __cplusplus
23264extern "C"
23265#endif
23266char $ac_func ();
23267/* The GNU C library defines this for functions which it implements
23268    to always fail with ENOSYS.  Some functions are actually named
23269    something starting with __ and the normal name is an alias.  */
23270#if defined __stub_$ac_func || defined __stub___$ac_func
23271choke me
23272#endif
23273
23274int
23275main ()
23276{
23277return $ac_func ();
23278  ;
23279  return 0;
23280}
23281_ACEOF
23282rm -f conftest.$ac_objext conftest$ac_exeext
23283if { (ac_try="$ac_link"
23284case "(($ac_try" in
23285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286  *) ac_try_echo=$ac_try;;
23287esac
23288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23289$as_echo "$ac_try_echo") >&5
23290  (eval "$ac_link") 2>conftest.er1
23291  ac_status=$?
23292  grep -v '^ *+' conftest.er1 >conftest.err
23293  rm -f conftest.er1
23294  cat conftest.err >&5
23295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296  (exit $ac_status); } && {
23297	 test -z "$ac_c_werror_flag" ||
23298	 test ! -s conftest.err
23299       } && test -s conftest$ac_exeext && {
23300	 test "$cross_compiling" = yes ||
23301	 $as_test_x conftest$ac_exeext
23302       }; then
23303  eval "$as_ac_var=yes"
23304else
23305  $as_echo "$as_me: failed program was:" >&5
23306sed 's/^/| /' conftest.$ac_ext >&5
23307
23308	eval "$as_ac_var=no"
23309fi
23310
23311rm -rf conftest.dSYM
23312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23313      conftest$ac_exeext conftest.$ac_ext
23314fi
23315ac_res=`eval 'as_val=${'$as_ac_var'}
23316		 $as_echo "$as_val"'`
23317	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23318$as_echo "$ac_res" >&6; }
23319as_val=`eval 'as_val=${'$as_ac_var'}
23320		 $as_echo "$as_val"'`
23321   if test "x$as_val" = x""yes; then
23322  cat >>confdefs.h <<_ACEOF
23323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23324_ACEOF
23325
23326fi
23327done
23328
23329
23330
23331
23332
23333
23334
23335
23336if test "$ac_cv_header_sys_time_h" = yes; then
23337
23338for ac_func in nanosleep
23339do
23340as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23341{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23342$as_echo_n "checking for $ac_func... " >&6; }
23343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23344  $as_echo_n "(cached) " >&6
23345else
23346  cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h.  */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h.  */
23352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23353   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23354#define $ac_func innocuous_$ac_func
23355
23356/* System header to define __stub macros and hopefully few prototypes,
23357    which can conflict with char $ac_func (); below.
23358    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23359    <limits.h> exists even on freestanding compilers.  */
23360
23361#ifdef __STDC__
23362# include <limits.h>
23363#else
23364# include <assert.h>
23365#endif
23366
23367#undef $ac_func
23368
23369/* Override any GCC internal prototype to avoid an error.
23370   Use char because int might match the return type of a GCC
23371   builtin and then its argument prototype would still apply.  */
23372#ifdef __cplusplus
23373extern "C"
23374#endif
23375char $ac_func ();
23376/* The GNU C library defines this for functions which it implements
23377    to always fail with ENOSYS.  Some functions are actually named
23378    something starting with __ and the normal name is an alias.  */
23379#if defined __stub_$ac_func || defined __stub___$ac_func
23380choke me
23381#endif
23382
23383int
23384main ()
23385{
23386return $ac_func ();
23387  ;
23388  return 0;
23389}
23390_ACEOF
23391rm -f conftest.$ac_objext conftest$ac_exeext
23392if { (ac_try="$ac_link"
23393case "(($ac_try" in
23394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395  *) ac_try_echo=$ac_try;;
23396esac
23397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23398$as_echo "$ac_try_echo") >&5
23399  (eval "$ac_link") 2>conftest.er1
23400  ac_status=$?
23401  grep -v '^ *+' conftest.er1 >conftest.err
23402  rm -f conftest.er1
23403  cat conftest.err >&5
23404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405  (exit $ac_status); } && {
23406	 test -z "$ac_c_werror_flag" ||
23407	 test ! -s conftest.err
23408       } && test -s conftest$ac_exeext && {
23409	 test "$cross_compiling" = yes ||
23410	 $as_test_x conftest$ac_exeext
23411       }; then
23412  eval "$as_ac_var=yes"
23413else
23414  $as_echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
23417	eval "$as_ac_var=no"
23418fi
23419
23420rm -rf conftest.dSYM
23421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23422      conftest$ac_exeext conftest.$ac_ext
23423fi
23424ac_res=`eval 'as_val=${'$as_ac_var'}
23425		 $as_echo "$as_val"'`
23426	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23427$as_echo "$ac_res" >&6; }
23428as_val=`eval 'as_val=${'$as_ac_var'}
23429		 $as_echo "$as_val"'`
23430   if test "x$as_val" = x""yes; then
23431  cat >>confdefs.h <<_ACEOF
23432#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23433_ACEOF
23434
23435fi
23436done
23437
23438
23439for ac_func in gethrtime
23440do
23441as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23442{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23443$as_echo_n "checking for $ac_func... " >&6; }
23444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23445  $as_echo_n "(cached) " >&6
23446else
23447  cat >conftest.$ac_ext <<_ACEOF
23448/* confdefs.h.  */
23449_ACEOF
23450cat confdefs.h >>conftest.$ac_ext
23451cat >>conftest.$ac_ext <<_ACEOF
23452/* end confdefs.h.  */
23453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23454   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23455#define $ac_func innocuous_$ac_func
23456
23457/* System header to define __stub macros and hopefully few prototypes,
23458    which can conflict with char $ac_func (); below.
23459    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23460    <limits.h> exists even on freestanding compilers.  */
23461
23462#ifdef __STDC__
23463# include <limits.h>
23464#else
23465# include <assert.h>
23466#endif
23467
23468#undef $ac_func
23469
23470/* Override any GCC internal prototype to avoid an error.
23471   Use char because int might match the return type of a GCC
23472   builtin and then its argument prototype would still apply.  */
23473#ifdef __cplusplus
23474extern "C"
23475#endif
23476char $ac_func ();
23477/* The GNU C library defines this for functions which it implements
23478    to always fail with ENOSYS.  Some functions are actually named
23479    something starting with __ and the normal name is an alias.  */
23480#if defined __stub_$ac_func || defined __stub___$ac_func
23481choke me
23482#endif
23483
23484int
23485main ()
23486{
23487return $ac_func ();
23488  ;
23489  return 0;
23490}
23491_ACEOF
23492rm -f conftest.$ac_objext conftest$ac_exeext
23493if { (ac_try="$ac_link"
23494case "(($ac_try" in
23495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496  *) ac_try_echo=$ac_try;;
23497esac
23498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23499$as_echo "$ac_try_echo") >&5
23500  (eval "$ac_link") 2>conftest.er1
23501  ac_status=$?
23502  grep -v '^ *+' conftest.er1 >conftest.err
23503  rm -f conftest.er1
23504  cat conftest.err >&5
23505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506  (exit $ac_status); } && {
23507	 test -z "$ac_c_werror_flag" ||
23508	 test ! -s conftest.err
23509       } && test -s conftest$ac_exeext && {
23510	 test "$cross_compiling" = yes ||
23511	 $as_test_x conftest$ac_exeext
23512       }; then
23513  eval "$as_ac_var=yes"
23514else
23515  $as_echo "$as_me: failed program was:" >&5
23516sed 's/^/| /' conftest.$ac_ext >&5
23517
23518	eval "$as_ac_var=no"
23519fi
23520
23521rm -rf conftest.dSYM
23522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23523      conftest$ac_exeext conftest.$ac_ext
23524fi
23525ac_res=`eval 'as_val=${'$as_ac_var'}
23526		 $as_echo "$as_val"'`
23527	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23528$as_echo "$ac_res" >&6; }
23529as_val=`eval 'as_val=${'$as_ac_var'}
23530		 $as_echo "$as_val"'`
23531   if test "x$as_val" = x""yes; then
23532  cat >>confdefs.h <<_ACEOF
23533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23534_ACEOF
23535
23536fi
23537done
23538
23539  # gettimeofday detection fails on HP/UX!
23540  { $as_echo "$as_me:$LINENO: checking for gettimeofday" >&5
23541$as_echo_n "checking for gettimeofday... " >&6; }
23542  cat >conftest.$ac_ext <<_ACEOF
23543/* confdefs.h.  */
23544_ACEOF
23545cat confdefs.h >>conftest.$ac_ext
23546cat >>conftest.$ac_ext <<_ACEOF
23547/* end confdefs.h.  */
23548#include <sys/time.h>
23549int
23550main ()
23551{
23552
23553    struct timeval dummy;
23554    gettimeofday(&dummy, (void*) 0);
23555
23556  ;
23557  return 0;
23558}
23559_ACEOF
23560rm -f conftest.$ac_objext conftest$ac_exeext
23561if { (ac_try="$ac_link"
23562case "(($ac_try" in
23563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564  *) ac_try_echo=$ac_try;;
23565esac
23566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23567$as_echo "$ac_try_echo") >&5
23568  (eval "$ac_link") 2>conftest.er1
23569  ac_status=$?
23570  grep -v '^ *+' conftest.er1 >conftest.err
23571  rm -f conftest.er1
23572  cat conftest.err >&5
23573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574  (exit $ac_status); } && {
23575	 test -z "$ac_c_werror_flag" ||
23576	 test ! -s conftest.err
23577       } && test -s conftest$ac_exeext && {
23578	 test "$cross_compiling" = yes ||
23579	 $as_test_x conftest$ac_exeext
23580       }; then
23581
23582    { $as_echo "$as_me:$LINENO: result: yes" >&5
23583$as_echo "yes" >&6; }
23584    cat >>confdefs.h <<\_ACEOF
23585#define HAVE_GETTIMEOFDAY 1
23586_ACEOF
23587
23588    ac_cv_func_gettimeofday=yes
23589
23590else
23591  $as_echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594
23595    { $as_echo "$as_me:$LINENO: result: no" >&5
23596$as_echo "no" >&6; }
23597    cat >>confdefs.h <<\_ACEOF
23598#define HAVE_GETTIMEOFDAY 0
23599_ACEOF
23600
23601    ac_cv_func_gettimeofday=no
23602
23603fi
23604
23605rm -rf conftest.dSYM
23606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23607      conftest$ac_exeext conftest.$ac_ext
23608fi
23609
23610# Predefines and checks for C++ API support
23611
23612
23613
23614if test "$ac_with_cplusplus" = yes; then
23615  { $as_echo "$as_me:$LINENO: checking for IBM's ICU library version >= 2.8" >&5
23616$as_echo_n "checking for IBM's ICU library version >= 2.8... " >&6; }
23617  ac_ext=c
23618ac_cpp='$CPP $CPPFLAGS'
23619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23621ac_compiler_gnu=$ac_cv_c_compiler_gnu
23622
23623  if test "$cross_compiling" = yes; then
23624  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23626{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23627See \`config.log' for more details." >&5
23628$as_echo "$as_me: error: cannot run test program while cross compiling
23629See \`config.log' for more details." >&2;}
23630   { (exit 1); exit 1; }; }; }
23631else
23632  cat >conftest.$ac_ext <<_ACEOF
23633
23634    /* confdefs.h.  */
23635_ACEOF
23636cat confdefs.h >>conftest.$ac_ext
23637cat >>conftest.$ac_ext <<_ACEOF
23638/* end confdefs.h.  */
23639#include <unicode/uversion.h>
23640int
23641main ()
23642{
23643
23644      #if U_ICU_VERSION_MAJOR_NUM < 2
23645      exit(1);
23646      #elif U_ICU_VERSION_MAJOR_NUM == 2
23647      # if U_ICU_VERSION_MINOR_NUM < 8
23648      exit(1);
23649      # else
23650      exit(0);
23651      # endif
23652      #else
23653      exit(0);
23654      #endif
23655
23656  ;
23657  return 0;
23658}
23659_ACEOF
23660rm -f conftest$ac_exeext
23661if { (ac_try="$ac_link"
23662case "(($ac_try" in
23663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664  *) ac_try_echo=$ac_try;;
23665esac
23666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23667$as_echo "$ac_try_echo") >&5
23668  (eval "$ac_link") 2>&5
23669  ac_status=$?
23670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23672  { (case "(($ac_try" in
23673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674  *) ac_try_echo=$ac_try;;
23675esac
23676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23677$as_echo "$ac_try_echo") >&5
23678  (eval "$ac_try") 2>&5
23679  ac_status=$?
23680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681  (exit $ac_status); }; }; then
23682
23683    { $as_echo "$as_me:$LINENO: result: yes" >&5
23684$as_echo "yes" >&6; }
23685
23686else
23687  $as_echo "$as_me: program exited with status $ac_status" >&5
23688$as_echo "$as_me: failed program was:" >&5
23689sed 's/^/| /' conftest.$ac_ext >&5
23690
23691( exit $ac_status )
23692
23693    { $as_echo "$as_me:$LINENO: result: no" >&5
23694$as_echo "no" >&6; }
23695    { $as_echo "$as_me:$LINENO: WARNING: disabling cplusplus" >&5
23696$as_echo "$as_me: WARNING: disabling cplusplus" >&2;}
23697    ac_with_cplusplus=no
23698
23699fi
23700rm -rf conftest.dSYM
23701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23702fi
23703
23704
23705  ac_ext=c
23706ac_cpp='$CPP $CPPFLAGS'
23707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23709ac_compiler_gnu=$ac_cv_c_compiler_gnu
23710
23711fi
23712
23713 if test "$ac_with_cplusplus" = yes; then
23714  WITH_CPLUSPLUS_TRUE=
23715  WITH_CPLUSPLUS_FALSE='#'
23716else
23717  WITH_CPLUSPLUS_TRUE='#'
23718  WITH_CPLUSPLUS_FALSE=
23719fi
23720
23721
23722if test "$ac_with_cplusplus" = yes ; then
23723  cat >>confdefs.h <<\_ACEOF
23724#define CPPGLUE 1
23725_ACEOF
23726
23727fi
23728
23729
23730# Predefines and checks for Java API support
23731
23732
23733
23734if test "$ac_with_java" = yes ; then
23735  # Extract the first word of "gcj", so it can be a program name with args.
23736set dummy gcj; ac_word=$2
23737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23738$as_echo_n "checking for $ac_word... " >&6; }
23739if test "${ac_cv_prog_ac_cv_have_gcj+set}" = set; then
23740  $as_echo_n "(cached) " >&6
23741else
23742  if test -n "$ac_cv_have_gcj"; then
23743  ac_cv_prog_ac_cv_have_gcj="$ac_cv_have_gcj" # Let the user override the test.
23744else
23745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23746for as_dir in $PATH
23747do
23748  IFS=$as_save_IFS
23749  test -z "$as_dir" && as_dir=.
23750  for ac_exec_ext in '' $ac_executable_extensions; do
23751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23752    ac_cv_prog_ac_cv_have_gcj="yes"
23753    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23754    break 2
23755  fi
23756done
23757done
23758IFS=$as_save_IFS
23759
23760  test -z "$ac_cv_prog_ac_cv_have_gcj" && ac_cv_prog_ac_cv_have_gcj="no"
23761fi
23762fi
23763ac_cv_have_gcj=$ac_cv_prog_ac_cv_have_gcj
23764if test -n "$ac_cv_have_gcj"; then
23765  { $as_echo "$as_me:$LINENO: result: $ac_cv_have_gcj" >&5
23766$as_echo "$ac_cv_have_gcj" >&6; }
23767else
23768  { $as_echo "$as_me:$LINENO: result: no" >&5
23769$as_echo "no" >&6; }
23770fi
23771
23772
23773  # Extract the first word of "gcjh", so it can be a program name with args.
23774set dummy gcjh; ac_word=$2
23775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23776$as_echo_n "checking for $ac_word... " >&6; }
23777if test "${ac_cv_prog_ac_cv_have_gcjh+set}" = set; then
23778  $as_echo_n "(cached) " >&6
23779else
23780  if test -n "$ac_cv_have_gcjh"; then
23781  ac_cv_prog_ac_cv_have_gcjh="$ac_cv_have_gcjh" # Let the user override the test.
23782else
23783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23784for as_dir in $PATH
23785do
23786  IFS=$as_save_IFS
23787  test -z "$as_dir" && as_dir=.
23788  for ac_exec_ext in '' $ac_executable_extensions; do
23789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23790    ac_cv_prog_ac_cv_have_gcjh="yes"
23791    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23792    break 2
23793  fi
23794done
23795done
23796IFS=$as_save_IFS
23797
23798  test -z "$ac_cv_prog_ac_cv_have_gcjh" && ac_cv_prog_ac_cv_have_gcjh="no"
23799fi
23800fi
23801ac_cv_have_gcjh=$ac_cv_prog_ac_cv_have_gcjh
23802if test -n "$ac_cv_have_gcjh"; then
23803  { $as_echo "$as_me:$LINENO: result: $ac_cv_have_gcjh" >&5
23804$as_echo "$ac_cv_have_gcjh" >&6; }
23805else
23806  { $as_echo "$as_me:$LINENO: result: no" >&5
23807$as_echo "no" >&6; }
23808fi
23809
23810
23811  if test "$ac_cv_have_gcj" = yes; then
23812    javac=gcj
23813
23814    { $as_echo "$as_me:$LINENO: checking for java native interface headers" >&5
23815$as_echo_n "checking for java native interface headers... " >&6; }
23816if test "${ac_cv_java_include+set}" = set; then
23817  $as_echo_n "(cached) " >&6
23818else
23819
23820      cat > conftest.java << EOF
23821public class conftest
23822{
23823  public static void main(String[] argv)
23824  {
23825     System.out.println(System.getProperty("java.home"));
23826  }
23827}
23828EOF
23829      java_home="`gcj --main=conftest -o conftest conftest.java; ./conftest`"
23830      if test X"$java_home" = X; then
23831        java_home=/usr
23832      fi
23833      if test -d "$java_home" -a -d "$java_home/include"; then
23834        ac_cv_java_headers=yes
23835        ac_cv_java_include="-I$java_home/include"
23836        gcjpath="$java_home/lib/gcc-lib/`gcj -dumpmachine`/`gcj -dumpversion`"
23837        if test -d "$gcjpath" -a -d "$gcjpath/include"; then
23838          ac_cv_java_include="$ac_cv_java_include -I$gcjpath/include"
23839        fi
23840      else
23841        # we have a non-working gcj
23842        ac_cv_have_gcj=no
23843      fi
23844      rm -fr conftest*
23845
23846fi
23847{ $as_echo "$as_me:$LINENO: result: $ac_cv_java_include" >&5
23848$as_echo "$ac_cv_java_include" >&6; }
23849  fi
23850
23851  # gcj may have failed; in this case we want to try for a real java
23852  if test "$ac_cv_have_gcj" != yes; then
23853    # Extract the first word of "java", so it can be a program name with args.
23854set dummy java; ac_word=$2
23855{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23856$as_echo_n "checking for $ac_word... " >&6; }
23857if test "${ac_cv_prog_ac_cv_have_java+set}" = set; then
23858  $as_echo_n "(cached) " >&6
23859else
23860  if test -n "$ac_cv_have_java"; then
23861  ac_cv_prog_ac_cv_have_java="$ac_cv_have_java" # Let the user override the test.
23862else
23863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23864for as_dir in $PATH
23865do
23866  IFS=$as_save_IFS
23867  test -z "$as_dir" && as_dir=.
23868  for ac_exec_ext in '' $ac_executable_extensions; do
23869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23870    ac_cv_prog_ac_cv_have_java="yes"
23871    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23872    break 2
23873  fi
23874done
23875done
23876IFS=$as_save_IFS
23877
23878  test -z "$ac_cv_prog_ac_cv_have_java" && ac_cv_prog_ac_cv_have_java="no"
23879fi
23880fi
23881ac_cv_have_java=$ac_cv_prog_ac_cv_have_java
23882if test -n "$ac_cv_have_java"; then
23883  { $as_echo "$as_me:$LINENO: result: $ac_cv_have_java" >&5
23884$as_echo "$ac_cv_have_java" >&6; }
23885else
23886  { $as_echo "$as_me:$LINENO: result: no" >&5
23887$as_echo "no" >&6; }
23888fi
23889
23890
23891    if test "$ac_cv_have_java" = yes; then
23892      # Extract the first word of "javac", so it can be a program name with args.
23893set dummy javac; ac_word=$2
23894{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23895$as_echo_n "checking for $ac_word... " >&6; }
23896if test "${ac_cv_prog_ac_cv_have_javac+set}" = set; then
23897  $as_echo_n "(cached) " >&6
23898else
23899  if test -n "$ac_cv_have_javac"; then
23900  ac_cv_prog_ac_cv_have_javac="$ac_cv_have_javac" # Let the user override the test.
23901else
23902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23903for as_dir in $PATH
23904do
23905  IFS=$as_save_IFS
23906  test -z "$as_dir" && as_dir=.
23907  for ac_exec_ext in '' $ac_executable_extensions; do
23908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23909    ac_cv_prog_ac_cv_have_javac="yes"
23910    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23911    break 2
23912  fi
23913done
23914done
23915IFS=$as_save_IFS
23916
23917  test -z "$ac_cv_prog_ac_cv_have_javac" && ac_cv_prog_ac_cv_have_javac="no"
23918fi
23919fi
23920ac_cv_have_javac=$ac_cv_prog_ac_cv_have_javac
23921if test -n "$ac_cv_have_javac"; then
23922  { $as_echo "$as_me:$LINENO: result: $ac_cv_have_javac" >&5
23923$as_echo "$ac_cv_have_javac" >&6; }
23924else
23925  { $as_echo "$as_me:$LINENO: result: no" >&5
23926$as_echo "no" >&6; }
23927fi
23928
23929
23930      # Extract the first word of "javah", so it can be a program name with args.
23931set dummy javah; ac_word=$2
23932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23933$as_echo_n "checking for $ac_word... " >&6; }
23934if test "${ac_cv_prog_ac_cv_have_javah+set}" = set; then
23935  $as_echo_n "(cached) " >&6
23936else
23937  if test -n "$ac_cv_have_javah"; then
23938  ac_cv_prog_ac_cv_have_javah="$ac_cv_have_javah" # Let the user override the test.
23939else
23940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23941for as_dir in $PATH
23942do
23943  IFS=$as_save_IFS
23944  test -z "$as_dir" && as_dir=.
23945  for ac_exec_ext in '' $ac_executable_extensions; do
23946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23947    ac_cv_prog_ac_cv_have_javah="yes"
23948    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23949    break 2
23950  fi
23951done
23952done
23953IFS=$as_save_IFS
23954
23955  test -z "$ac_cv_prog_ac_cv_have_javah" && ac_cv_prog_ac_cv_have_javah="no"
23956fi
23957fi
23958ac_cv_have_javah=$ac_cv_prog_ac_cv_have_javah
23959if test -n "$ac_cv_have_javah"; then
23960  { $as_echo "$as_me:$LINENO: result: $ac_cv_have_javah" >&5
23961$as_echo "$ac_cv_have_javah" >&6; }
23962else
23963  { $as_echo "$as_me:$LINENO: result: no" >&5
23964$as_echo "no" >&6; }
23965fi
23966
23967
23968      if test "$ac_cv_have_javac" = yes; then
23969        javac=javac
23970
23971        { $as_echo "$as_me:$LINENO: checking for java native interface headers" >&5
23972$as_echo_n "checking for java native interface headers... " >&6; }
23973if test "${ac_cv_java_include+set}" = set; then
23974  $as_echo_n "(cached) " >&6
23975else
23976
23977          cat > conftest.java << EOF
23978public class conftest
23979{
23980  public static void main(String[] argv)
23981  {
23982     System.out.println(System.getProperty("java.home"));
23983  }
23984}
23985EOF
23986          java_home=`javac conftest.java; java -classpath . conftest`
23987          case $target_os in
23988          cygwin*)
23989            java_home=`cygpath -u -p "$java_home"` ;;
23990          esac
23991          if test -d "$java_home"; then
23992            case $target_os in
23993            darwin*)
23994              java_include="$java_home/../../../Headers" ;;
23995            *)
23996              java_include="$java_home"/../include ;;
23997            esac
23998            if test -d "$java_include"; then
23999              ac_cv_java_headers=yes
24000              ac_cv_java_include="-I$java_include"
24001              case $target_os in
24002              aix*)
24003                ac_cv_java_include="-I$java_include -I$java_include/aix" ;;
24004              cygwin*)
24005                ac_cv_java_include="-I$java_include -I$java_include/win32" ;;
24006              darwin*) ;;
24007              hpux*)
24008                ac_cv_java_include="-I$java_include -I$java_include/hpux" ;;
24009              linux*)
24010                ac_cv_java_include="-I$java_include -I$java_include/linux" ;;
24011              osf*)
24012                ac_cv_java_include="-I$java_include -I$java_include/osf" ;;
24013              solaris*)
24014                ac_cv_java_include="-I$java_include -I$java_include/solaris" ;;
24015              freebsd*)
24016                ac_cv_java_include="-I$java_include -I$java_include/freebsd" ;;
24017              *)
24018                { $as_echo "$as_me:$LINENO: WARNING: please add appropriate -I$java_include/<operating system> flag" >&5
24019$as_echo "$as_me: WARNING: please add appropriate -I$java_include/<operating system> flag" >&2;}
24020                ac_cv_java_include="-I$java_include" ;;
24021              esac
24022            else
24023              { $as_echo "$as_me:$LINENO: WARNING: java headers not found, disabling java" >&5
24024$as_echo "$as_me: WARNING: java headers not found, disabling java" >&2;}
24025              ac_cv_java_headers=no
24026              ac_cv_java_include=
24027              ac_with_java=no
24028            fi
24029          fi
24030          rm -fr conftest*
24031
24032fi
24033{ $as_echo "$as_me:$LINENO: result: $ac_cv_java_include" >&5
24034$as_echo "$ac_cv_java_include" >&6; }
24035      else
24036        { $as_echo "$as_me:$LINENO: WARNING: javac not found, disabling java" >&5
24037$as_echo "$as_me: WARNING: javac not found, disabling java" >&2;}
24038        ac_cv_java_headers=no
24039        ac_cv_java_include=
24040        ac_with_java=no
24041      fi
24042    else
24043      { $as_echo "$as_me:$LINENO: WARNING: java not found, disabling java" >&5
24044$as_echo "$as_me: WARNING: java not found, disabling java" >&2;}
24045      ac_cv_java_headers=no
24046      ac_with_java=no
24047    fi
24048  fi
24049fi
24050
24051 if test "$ac_with_java" = yes; then
24052  WITH_JAVA_TRUE=
24053  WITH_JAVA_FALSE='#'
24054else
24055  WITH_JAVA_TRUE='#'
24056  WITH_JAVA_FALSE=
24057fi
24058
24059
24060if test "$ac_with_java" = yes ; then
24061  cat >>confdefs.h <<\_ACEOF
24062#define JAVAGLUE 1
24063_ACEOF
24064
24065  CPPFLAGS="$CPPFLAGS $ac_cv_java_include"
24066fi
24067
24068
24069# Predefines and checks for Python API support
24070
24071
24072
24073if test "$ac_with_python" = yes ; then
24074  # Extract the first word of "`basename $ac_with_python_val`", so it can be a program name with args.
24075set dummy `basename $ac_with_python_val`; ac_word=$2
24076{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24077$as_echo_n "checking for $ac_word... " >&6; }
24078if test "${ac_cv_path_PYTHON+set}" = set; then
24079  $as_echo_n "(cached) " >&6
24080else
24081  case $PYTHON in
24082  [\\/]* | ?:[\\/]*)
24083  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24084  ;;
24085  *)
24086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24087as_dummy="`$as_dirname -- "$ac_with_python_val" ||
24088$as_expr X"$ac_with_python_val" : 'X\(.*^/\)//*^/^/*/*$' \| \
24089	 X"$ac_with_python_val" : 'X\(//\)^/' \| \
24090	 X"$ac_with_python_val" : 'X\(//\)$' \| \
24091	 X"$ac_with_python_val" : 'X\(/\)' \| . 2>/dev/null ||
24092$as_echo X"$ac_with_python_val" |
24093    sed '/^X\(.*^/\)\/\/*^/^/*\/*$/{
24094	    s//\1/
24095	    q
24096	  }
24097	  /^X\(\/\/\)^/.*/{
24098	    s//\1/
24099	    q
24100	  }
24101	  /^X\(\/\/\)$/{
24102	    s//\1/
24103	    q
24104	  }
24105	  /^X\(\/\).*/{
24106	    s//\1/
24107	    q
24108	  }
24109	  s/.*/./; q'`"
24110for as_dir in $as_dummy
24111do
24112  IFS=$as_save_IFS
24113  test -z "$as_dir" && as_dir=.
24114  for ac_exec_ext in '' $ac_executable_extensions; do
24115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24116    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24117    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24118    break 2
24119  fi
24120done
24121done
24122IFS=$as_save_IFS
24123
24124  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="no"
24125  ;;
24126esac
24127fi
24128PYTHON=$ac_cv_path_PYTHON
24129if test -n "$PYTHON"; then
24130  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
24131$as_echo "$PYTHON" >&6; }
24132else
24133  { $as_echo "$as_me:$LINENO: result: no" >&5
24134$as_echo "no" >&6; }
24135fi
24136
24137
24138  if test "$PYTHON" = no; then
24139    ac_with_python=no
24140  else
24141    { $as_echo "$as_me:$LINENO: checking for python headers" >&5
24142$as_echo_n "checking for python headers... " >&6; }
24143if test "${ac_cv_python_include+set}" = set; then
24144  $as_echo_n "(cached) " >&6
24145else
24146
24147      ac_cv_python_include="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()'`"
24148
24149fi
24150{ $as_echo "$as_me:$LINENO: result: $ac_cv_python_include" >&5
24151$as_echo "$ac_cv_python_include" >&6; }
24152    { $as_echo "$as_me:$LINENO: checking where to install python libraries" >&5
24153$as_echo_n "checking where to install python libraries... " >&6; }
24154if test "${ac_cv_python_libdir+set}" = set; then
24155  $as_echo_n "(cached) " >&6
24156else
24157
24158      ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'`
24159
24160fi
24161{ $as_echo "$as_me:$LINENO: result: $ac_cv_python_libdir" >&5
24162$as_echo "$ac_cv_python_libdir" >&6; }
24163  fi
24164fi
24165
24166 if test "$ac_with_python" = yes; then
24167  WITH_PYTHON_TRUE=
24168  WITH_PYTHON_FALSE='#'
24169else
24170  WITH_PYTHON_TRUE='#'
24171  WITH_PYTHON_FALSE=
24172fi
24173
24174
24175if test "$ac_with_python" = yes; then
24176  cat >>confdefs.h <<\_ACEOF
24177#define PYTHONGLUE 1
24178_ACEOF
24179
24180  PYTHONINC=$ac_cv_python_include
24181
24182  PYTHONLIB=$ac_cv_python_libdir
24183
24184fi
24185
24186
24187# Checks for entropy sources.
24188{ $as_echo "$as_me:$LINENO: checking for platform-specific entropy devices" >&5
24189$as_echo_n "checking for platform-specific entropy devices... " >&6; }
24190{ $as_echo "$as_me:$LINENO: result: " >&5
24191$as_echo "" >&6; }
24192case $target_os in
24193cygwin* | mingw*)
24194  { $as_echo "$as_me:$LINENO: checking for wavein" >&5
24195$as_echo_n "checking for wavein... " >&6; }
24196  { $as_echo "$as_me:$LINENO: result: yes" >&5
24197$as_echo "yes" >&6; }
24198  { $as_echo "$as_me:$LINENO: checking for wincrypt" >&5
24199$as_echo_n "checking for wincrypt... " >&6; }
24200  { $as_echo "$as_me:$LINENO: result: yes" >&5
24201$as_echo "yes" >&6; }
24202  { $as_echo "$as_me:$LINENO: checking for console" >&5
24203$as_echo_n "checking for console... " >&6; }
24204  { $as_echo "$as_me:$LINENO: result: yes" >&5
24205$as_echo "yes" >&6; }
24206  ;;
24207linux*)
24208  { $as_echo "$as_me:$LINENO: checking for /dev/dsp" >&5
24209$as_echo_n "checking for /dev/dsp... " >&6; }
24210if test "${ac_cv_have_dev_dsp+set}" = set; then
24211  $as_echo_n "(cached) " >&6
24212else
24213
24214    if test -r /dev/dsp; then
24215      ac_cv_have_dev_dsp=yes
24216    else
24217      ac_cv_have_dev_dsp=no
24218    fi
24219
24220fi
24221{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dev_dsp" >&5
24222$as_echo "$ac_cv_have_dev_dsp" >&6; }
24223  if test "$ac_cv_have_dev_dsp" = yes; then
24224    cat >>confdefs.h <<\_ACEOF
24225#define HAVE_DEV_DSP 1
24226_ACEOF
24227
24228  fi
24229  ;;
24230solaris*)
24231  { $as_echo "$as_me:$LINENO: checking for /dev/audio" >&5
24232$as_echo_n "checking for /dev/audio... " >&6; }
24233if test "${ac_cv_have_dev_audio+set}" = set; then
24234  $as_echo_n "(cached) " >&6
24235else
24236
24237    if test -r /dev/audio; then
24238      ac_cv_have_dev_audio=yes
24239    else
24240      ac_cv_have_dev_audio=no
24241    fi
24242
24243fi
24244{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dev_audio" >&5
24245$as_echo "$ac_cv_have_dev_audio" >&6; }
24246  if test "$ac_cv_have_dev_audio" = yes; then
24247    cat >>confdefs.h <<\_ACEOF
24248#define HAVE_DEV_AUDIO 1
24249_ACEOF
24250
24251  fi
24252  ;;
24253*)
24254  { $as_echo "$as_me:$LINENO: WARNING: no specific entropy devices present" >&5
24255$as_echo "$as_me: WARNING: no specific entropy devices present" >&2;}
24256  ;;
24257esac
24258
24259case $target_os in
24260cygwin* | mingw*)
24261  ;;
24262*)
24263  { $as_echo "$as_me:$LINENO: checking for generic entropy devices" >&5
24264$as_echo_n "checking for generic entropy devices... " >&6; }
24265  { $as_echo "$as_me:$LINENO: result: " >&5
24266$as_echo "" >&6; }
24267  { $as_echo "$as_me:$LINENO: checking for /dev/random" >&5
24268$as_echo_n "checking for /dev/random... " >&6; }
24269if test "${ac_cv_have_dev_random+set}" = set; then
24270  $as_echo_n "(cached) " >&6
24271else
24272
24273    if test -r /dev/random; then
24274      ac_cv_have_dev_random=yes
24275    else
24276      ac_cv_have_dev_random=no
24277    fi
24278
24279fi
24280{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dev_random" >&5
24281$as_echo "$ac_cv_have_dev_random" >&6; }
24282  { $as_echo "$as_me:$LINENO: checking for /dev/urandom" >&5
24283$as_echo_n "checking for /dev/urandom... " >&6; }
24284if test "${ac_cv_have_dev_urandom+set}" = set; then
24285  $as_echo_n "(cached) " >&6
24286else
24287
24288    if test -r /dev/urandom; then
24289      ac_cv_have_dev_urandom=yes
24290    else
24291      ac_cv_have_dev_urandom=no
24292    fi
24293
24294fi
24295{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dev_urandom" >&5
24296$as_echo "$ac_cv_have_dev_urandom" >&6; }
24297  { $as_echo "$as_me:$LINENO: checking for /dev/tty" >&5
24298$as_echo_n "checking for /dev/tty... " >&6; }
24299if test "${ac_cv_have_dev_tty+set}" = set; then
24300  $as_echo_n "(cached) " >&6
24301else
24302
24303    if test -r /dev/tty; then
24304      ac_cv_have_dev_tty=yes
24305    else
24306      ac_cv_have_dev_tty=no
24307    fi
24308
24309fi
24310{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dev_tty" >&5
24311$as_echo "$ac_cv_have_dev_tty" >&6; }
24312  ;;
24313esac
24314
24315if test "$ac_cv_have_dev_random" = yes; then
24316  cat >>confdefs.h <<\_ACEOF
24317#define HAVE_DEV_RANDOM 1
24318_ACEOF
24319
24320fi
24321if test "$ac_cv_have_dev_urandom" = yes; then
24322  cat >>confdefs.h <<\_ACEOF
24323#define HAVE_DEV_URANDOM 1
24324_ACEOF
24325
24326fi
24327if test "$ac_cv_have_dev_tty" = yes; then
24328  cat >>confdefs.h <<\_ACEOF
24329#define HAVE_DEV_TTY 1
24330_ACEOF
24331
24332fi
24333
24334# Figure out extra flags
24335if test "$ac_enable_debug" != yes; then
24336  case $bc_target_arch in
24337  alpha*)
24338    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_ALPHA"
24339    ;;
24340  arm*)
24341    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_ARM"
24342    ;;
24343  x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona)
24344    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_X86_64"
24345    ;;
24346  athlon*)
24347    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX"
24348    ;;
24349  i386)
24350    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I386"
24351    ;;
24352  i486)
24353    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I486"
24354    ;;
24355  i586)
24356    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I586"
24357    ;;
24358  i686)
24359    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686"
24360    ;;
24361  ia64)
24362    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_IA64"
24363    ;;
24364  m68k)
24365    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_M68K"
24366    ;;
24367  pentium)
24368    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I586"
24369    ;;
24370  pentium-m)
24371    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX -DOPTIMIZE_SSE -DOPTIMIZE_SSE2"
24372    ;;
24373  pentium-mmx)
24374    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I586 -DOPTIMIZE_MMX"
24375    ;;
24376  pentiumpro)
24377    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686"
24378    ;;
24379  pentium2)
24380    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX"
24381    ;;
24382  pentium3)
24383    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX -DOPTIMIZE_SSE"
24384    ;;
24385  pentium4)
24386    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_I686 -DOPTIMIZE_MMX -DOPTIMIZE_SSE -DOPTIMIZE_SSE2"
24387    ;;
24388  powerpc)
24389    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POWERPC"
24390    ;;
24391  powerpc64)
24392    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POWERPC64"
24393    ;;
24394  s390x)
24395    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_S390X"
24396    ;;
24397  sparcv8)
24398    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV8"
24399    ;;
24400  sparcv8plus*)
24401    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV8PLUS"
24402    ;;
24403  sparcv9*)
24404    CPPFLAGS="$CPPFLAGS -DOPTIMIZE_SPARCV9"
24405    ;;
24406  esac
24407fi
24408
24409if test "$ac_enable_debug" != yes; then
24410  # find out how to use assembler
24411
24412  ASM_OS=$target_os
24413
24414  ASM_CPU=$bc_target_cpu
24415
24416  ASM_ARCH=$bc_target_arch
24417
24418  ASM_BIGENDIAN=$ac_cv_c_bigendian
24419
24420  ASM_GNU_STACK=$bc_gnu_stack
24421
24422
24423
24424  { $as_echo "$as_me:$LINENO: checking how to switch to text segment" >&5
24425$as_echo_n "checking how to switch to text segment... " >&6; }
24426if test "${bc_cv_asm_textseg+set}" = set; then
24427  $as_echo_n "(cached) " >&6
24428else
24429
24430      case $target_os in
24431      aix*)
24432        bc_cv_asm_textseg=".csect .text[PR]" ;;
24433      hpux*)
24434        if test "$bc_target_arch" = ia64; then
24435          bc_cv_asm_textseg=".section .text"
24436        else
24437          bc_cv_asm_textseg=".code"
24438        fi
24439        ;;
24440      *)
24441        bc_cv_asm_textseg=".text" ;;
24442      esac
24443
24444fi
24445{ $as_echo "$as_me:$LINENO: result: $bc_cv_asm_textseg" >&5
24446$as_echo "$bc_cv_asm_textseg" >&6; }
24447  ASM_TEXTSEG=$bc_cv_asm_textseg
24448
24449
24450
24451  { $as_echo "$as_me:$LINENO: checking how to declare a global symbol" >&5
24452$as_echo_n "checking how to declare a global symbol... " >&6; }
24453if test "${bc_cv_asm_globl+set}" = set; then
24454  $as_echo_n "(cached) " >&6
24455else
24456
24457      case $target_os in
24458      hpux*)
24459        bc_cv_asm_globl=".export" ;;
24460      *)
24461        bc_cv_asm_globl=".globl" ;;
24462      esac
24463
24464fi
24465{ $as_echo "$as_me:$LINENO: result: $bc_cv_asm_globl" >&5
24466$as_echo "$bc_cv_asm_globl" >&6; }
24467  ASM_GLOBL=$bc_cv_asm_globl
24468
24469
24470
24471  { $as_echo "$as_me:$LINENO: checking if global symbols need leading underscore" >&5
24472$as_echo_n "checking if global symbols need leading underscore... " >&6; }
24473if test "${bc_cv_asm_gsym_prefix+set}" = set; then
24474  $as_echo_n "(cached) " >&6
24475else
24476
24477      case $target_os in
24478      cygwin* | mingw* | darwin*)
24479        bc_cv_asm_gsym_prefix="_" ;;
24480      *)
24481        bc_cv_asm_gsym_prefix="" ;;
24482      esac
24483
24484fi
24485{ $as_echo "$as_me:$LINENO: result: $bc_cv_asm_gsym_prefix" >&5
24486$as_echo "$bc_cv_asm_gsym_prefix" >&6; }
24487  ASM_GSYM_PREFIX=$bc_cv_asm_gsym_prefix
24488
24489
24490
24491  { $as_echo "$as_me:$LINENO: checking how to declare a local symbol" >&5
24492$as_echo_n "checking how to declare a local symbol... " >&6; }
24493if test "${bc_cv_asm_lsym_prefix+set}" = set; then
24494  $as_echo_n "(cached) " >&6
24495else
24496
24497      case $target_os in
24498      aix* | darwin*) bc_cv_asm_lsym_prefix="L" ;;
24499      hpux* | osf*)   bc_cv_asm_lsym_prefix="$" ;;
24500      linux*)
24501        case $target_cpu in
24502        alpha*)       bc_cv_asm_lsym_prefix="$" ;;
24503        *)            bc_cv_asm_lsym_prefix=".L" ;;
24504        esac
24505        ;;
24506      *)              bc_cv_asm_lsym_prefix=".L" ;;
24507      esac
24508
24509fi
24510{ $as_echo "$as_me:$LINENO: result: $bc_cv_asm_lsym_prefix" >&5
24511$as_echo "$bc_cv_asm_lsym_prefix" >&6; }
24512  ASM_LSYM_PREFIX=$bc_cv_asm_lsym_prefix
24513
24514
24515
24516  { $as_echo "$as_me:$LINENO: checking how to align symbols" >&5
24517$as_echo_n "checking how to align symbols... " >&6; }
24518if test "${bc_cv_asm_align+set}" = set; then
24519  $as_echo_n "(cached) " >&6
24520else
24521
24522      case $target_cpu in
24523      alpha*)
24524        bc_cv_asm_align=".align 5" ;;
24525      x86_64 | athlon64 | em64t | k8)
24526        bc_cv_asm_align=".align 16" ;;
24527      i[3456]86 | athlon*)
24528        bc_cv_asm_align=".align 4" ;;
24529      ia64)
24530        bc_cv_asm_align=".align 16" ;;
24531      powerpc*)
24532        bc_cv_asm_align=".align 2" ;;
24533      s390x)
24534        bc_cv_asm_align=".align 4" ;;
24535      sparc*)
24536        bc_cv_asm_align=".align 4" ;;
24537      esac
24538
24539fi
24540{ $as_echo "$as_me:$LINENO: result: $bc_cv_asm_align" >&5
24541$as_echo "$bc_cv_asm_align" >&6; }
24542  ASM_ALIGN=$bc_cv_asm_align
24543
24544
24545fi
24546
24547# generate assembler source files from m4 files
24548
24549  echo > mpopt.s
24550  echo > blowfishopt.s
24551  echo > sha1opt.s
24552  if test "$ac_enable_debug" != yes; then
24553    case $bc_target_arch in
24554    arm)
24555      ac_config_commands="$ac_config_commands mpopt.arm"
24556
24557      ;;
24558    alpha*)
24559      ac_config_commands="$ac_config_commands mpopt.alpha"
24560
24561      ;;
24562    x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2)
24563      ac_config_commands="$ac_config_commands mpopt.x86_64"
24564
24565      ;;
24566    i[3456]86 | pentium* | \
24567    athlon*)
24568      ac_config_commands="$ac_config_commands mpopt.x86"
24569
24570      ac_config_commands="$ac_config_commands sha1opt.x86"
24571
24572      ;;
24573    ia64)
24574      ac_config_commands="$ac_config_commands mpopt.ia64"
24575
24576      ;;
24577    m68k)
24578      ac_config_commands="$ac_config_commands mpopt.m68k"
24579
24580      ;;
24581    powerpc)
24582      ac_config_commands="$ac_config_commands mpopt.ppc"
24583
24584      ;;
24585    powerpc64)
24586      ac_config_commands="$ac_config_commands mpopt.ppc64"
24587
24588      ;;
24589    s390x)
24590      ac_config_commands="$ac_config_commands mpopt.s390x"
24591
24592      ;;
24593    sparcv8)
24594      ac_config_commands="$ac_config_commands mpopt.sparcv8"
24595
24596      ;;
24597    sparcv8plus)
24598      ac_config_commands="$ac_config_commands mpopt.sparcv8plus"
24599
24600      ;;
24601    esac
24602    case $bc_target_arch in
24603    x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2)
24604      ;;
24605    i[56]86 | pentium* | athlon*)
24606      ac_config_commands="$ac_config_commands blowfishopt.i586"
24607
24608      ;;
24609    powerpc)
24610      ac_config_commands="$ac_config_commands blowfishopt.ppc"
24611
24612      ;;
24613    esac
24614  fi
24615
24616
24617# Check for standard types and integers of specific sizes
24618
24619  { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24620$as_echo_n "checking for size_t... " >&6; }
24621if test "${ac_cv_type_size_t+set}" = set; then
24622  $as_echo_n "(cached) " >&6
24623else
24624  ac_cv_type_size_t=no
24625cat >conftest.$ac_ext <<_ACEOF
24626/* confdefs.h.  */
24627_ACEOF
24628cat confdefs.h >>conftest.$ac_ext
24629cat >>conftest.$ac_ext <<_ACEOF
24630/* end confdefs.h.  */
24631$ac_includes_default
24632int
24633main ()
24634{
24635if (sizeof (size_t))
24636       return 0;
24637  ;
24638  return 0;
24639}
24640_ACEOF
24641rm -f conftest.$ac_objext
24642if { (ac_try="$ac_compile"
24643case "(($ac_try" in
24644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645  *) ac_try_echo=$ac_try;;
24646esac
24647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24648$as_echo "$ac_try_echo") >&5
24649  (eval "$ac_compile") 2>conftest.er1
24650  ac_status=$?
24651  grep -v '^ *+' conftest.er1 >conftest.err
24652  rm -f conftest.er1
24653  cat conftest.err >&5
24654  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655  (exit $ac_status); } && {
24656	 test -z "$ac_c_werror_flag" ||
24657	 test ! -s conftest.err
24658       } && test -s conftest.$ac_objext; then
24659  cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h.  */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h.  */
24665$ac_includes_default
24666int
24667main ()
24668{
24669if (sizeof ((size_t)))
24670	  return 0;
24671  ;
24672  return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext
24676if { (ac_try="$ac_compile"
24677case "(($ac_try" in
24678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679  *) ac_try_echo=$ac_try;;
24680esac
24681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24682$as_echo "$ac_try_echo") >&5
24683  (eval "$ac_compile") 2>conftest.er1
24684  ac_status=$?
24685  grep -v '^ *+' conftest.er1 >conftest.err
24686  rm -f conftest.er1
24687  cat conftest.err >&5
24688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689  (exit $ac_status); } && {
24690	 test -z "$ac_c_werror_flag" ||
24691	 test ! -s conftest.err
24692       } && test -s conftest.$ac_objext; then
24693  :
24694else
24695  $as_echo "$as_me: failed program was:" >&5
24696sed 's/^/| /' conftest.$ac_ext >&5
24697
24698	ac_cv_type_size_t=yes
24699fi
24700
24701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24702else
24703  $as_echo "$as_me: failed program was:" >&5
24704sed 's/^/| /' conftest.$ac_ext >&5
24705
24706
24707fi
24708
24709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710fi
24711{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24712$as_echo "$ac_cv_type_size_t" >&6; }
24713if test "x$ac_cv_type_size_t" = x""yes; then
24714  :
24715else
24716
24717cat >>confdefs.h <<_ACEOF
24718#define size_t unsigned int
24719_ACEOF
24720
24721fi
24722
24723  bc_typedef_size_t=
24724  if test $ac_cv_type_size_t != yes; then
24725    bc_typedef_size_t="typedef unsigned size_t;"
24726  else
24727    # The cast to long int works around a bug in the HP C Compiler
24728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24730# This bug is HP SR number 8606223364.
24731{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24732$as_echo_n "checking size of size_t... " >&6; }
24733if test "${ac_cv_sizeof_size_t+set}" = set; then
24734  $as_echo_n "(cached) " >&6
24735else
24736  if test "$cross_compiling" = yes; then
24737  # Depending upon the size, compute the lo and hi bounds.
24738cat >conftest.$ac_ext <<_ACEOF
24739/* confdefs.h.  */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h.  */
24744$ac_includes_default
24745int
24746main ()
24747{
24748static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24749test_array [0] = 0
24750
24751  ;
24752  return 0;
24753}
24754_ACEOF
24755rm -f conftest.$ac_objext
24756if { (ac_try="$ac_compile"
24757case "(($ac_try" in
24758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759  *) ac_try_echo=$ac_try;;
24760esac
24761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24762$as_echo "$ac_try_echo") >&5
24763  (eval "$ac_compile") 2>conftest.er1
24764  ac_status=$?
24765  grep -v '^ *+' conftest.er1 >conftest.err
24766  rm -f conftest.er1
24767  cat conftest.err >&5
24768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769  (exit $ac_status); } && {
24770	 test -z "$ac_c_werror_flag" ||
24771	 test ! -s conftest.err
24772       } && test -s conftest.$ac_objext; then
24773  ac_lo=0 ac_mid=0
24774  while :; do
24775    cat >conftest.$ac_ext <<_ACEOF
24776/* confdefs.h.  */
24777_ACEOF
24778cat confdefs.h >>conftest.$ac_ext
24779cat >>conftest.$ac_ext <<_ACEOF
24780/* end confdefs.h.  */
24781$ac_includes_default
24782int
24783main ()
24784{
24785static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24786test_array [0] = 0
24787
24788  ;
24789  return 0;
24790}
24791_ACEOF
24792rm -f conftest.$ac_objext
24793if { (ac_try="$ac_compile"
24794case "(($ac_try" in
24795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796  *) ac_try_echo=$ac_try;;
24797esac
24798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24799$as_echo "$ac_try_echo") >&5
24800  (eval "$ac_compile") 2>conftest.er1
24801  ac_status=$?
24802  grep -v '^ *+' conftest.er1 >conftest.err
24803  rm -f conftest.er1
24804  cat conftest.err >&5
24805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806  (exit $ac_status); } && {
24807	 test -z "$ac_c_werror_flag" ||
24808	 test ! -s conftest.err
24809       } && test -s conftest.$ac_objext; then
24810  ac_hi=$ac_mid; break
24811else
24812  $as_echo "$as_me: failed program was:" >&5
24813sed 's/^/| /' conftest.$ac_ext >&5
24814
24815	ac_lo=`expr $ac_mid + 1`
24816			if test $ac_lo -le $ac_mid; then
24817			  ac_lo= ac_hi=
24818			  break
24819			fi
24820			ac_mid=`expr 2 '*' $ac_mid + 1`
24821fi
24822
24823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824  done
24825else
24826  $as_echo "$as_me: failed program was:" >&5
24827sed 's/^/| /' conftest.$ac_ext >&5
24828
24829	cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h.  */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h.  */
24835$ac_includes_default
24836int
24837main ()
24838{
24839static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24840test_array [0] = 0
24841
24842  ;
24843  return 0;
24844}
24845_ACEOF
24846rm -f conftest.$ac_objext
24847if { (ac_try="$ac_compile"
24848case "(($ac_try" in
24849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850  *) ac_try_echo=$ac_try;;
24851esac
24852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24853$as_echo "$ac_try_echo") >&5
24854  (eval "$ac_compile") 2>conftest.er1
24855  ac_status=$?
24856  grep -v '^ *+' conftest.er1 >conftest.err
24857  rm -f conftest.er1
24858  cat conftest.err >&5
24859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860  (exit $ac_status); } && {
24861	 test -z "$ac_c_werror_flag" ||
24862	 test ! -s conftest.err
24863       } && test -s conftest.$ac_objext; then
24864  ac_hi=-1 ac_mid=-1
24865  while :; do
24866    cat >conftest.$ac_ext <<_ACEOF
24867/* confdefs.h.  */
24868_ACEOF
24869cat confdefs.h >>conftest.$ac_ext
24870cat >>conftest.$ac_ext <<_ACEOF
24871/* end confdefs.h.  */
24872$ac_includes_default
24873int
24874main ()
24875{
24876static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24877test_array [0] = 0
24878
24879  ;
24880  return 0;
24881}
24882_ACEOF
24883rm -f conftest.$ac_objext
24884if { (ac_try="$ac_compile"
24885case "(($ac_try" in
24886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887  *) ac_try_echo=$ac_try;;
24888esac
24889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24890$as_echo "$ac_try_echo") >&5
24891  (eval "$ac_compile") 2>conftest.er1
24892  ac_status=$?
24893  grep -v '^ *+' conftest.er1 >conftest.err
24894  rm -f conftest.er1
24895  cat conftest.err >&5
24896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897  (exit $ac_status); } && {
24898	 test -z "$ac_c_werror_flag" ||
24899	 test ! -s conftest.err
24900       } && test -s conftest.$ac_objext; then
24901  ac_lo=$ac_mid; break
24902else
24903  $as_echo "$as_me: failed program was:" >&5
24904sed 's/^/| /' conftest.$ac_ext >&5
24905
24906	ac_hi=`expr '(' $ac_mid ')' - 1`
24907			if test $ac_mid -le $ac_hi; then
24908			  ac_lo= ac_hi=
24909			  break
24910			fi
24911			ac_mid=`expr 2 '*' $ac_mid`
24912fi
24913
24914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24915  done
24916else
24917  $as_echo "$as_me: failed program was:" >&5
24918sed 's/^/| /' conftest.$ac_ext >&5
24919
24920	ac_lo= ac_hi=
24921fi
24922
24923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924fi
24925
24926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24927# Binary search between lo and hi bounds.
24928while test "x$ac_lo" != "x$ac_hi"; do
24929  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24930  cat >conftest.$ac_ext <<_ACEOF
24931/* confdefs.h.  */
24932_ACEOF
24933cat confdefs.h >>conftest.$ac_ext
24934cat >>conftest.$ac_ext <<_ACEOF
24935/* end confdefs.h.  */
24936$ac_includes_default
24937int
24938main ()
24939{
24940static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24941test_array [0] = 0
24942
24943  ;
24944  return 0;
24945}
24946_ACEOF
24947rm -f conftest.$ac_objext
24948if { (ac_try="$ac_compile"
24949case "(($ac_try" in
24950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951  *) ac_try_echo=$ac_try;;
24952esac
24953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24954$as_echo "$ac_try_echo") >&5
24955  (eval "$ac_compile") 2>conftest.er1
24956  ac_status=$?
24957  grep -v '^ *+' conftest.er1 >conftest.err
24958  rm -f conftest.er1
24959  cat conftest.err >&5
24960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961  (exit $ac_status); } && {
24962	 test -z "$ac_c_werror_flag" ||
24963	 test ! -s conftest.err
24964       } && test -s conftest.$ac_objext; then
24965  ac_hi=$ac_mid
24966else
24967  $as_echo "$as_me: failed program was:" >&5
24968sed 's/^/| /' conftest.$ac_ext >&5
24969
24970	ac_lo=`expr '(' $ac_mid ')' + 1`
24971fi
24972
24973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974done
24975case $ac_lo in
24976?*) ac_cv_sizeof_size_t=$ac_lo;;
24977'') if test "$ac_cv_type_size_t" = yes; then
24978     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24980{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24981See \`config.log' for more details." >&5
24982$as_echo "$as_me: error: cannot compute sizeof (size_t)
24983See \`config.log' for more details." >&2;}
24984   { (exit 77); exit 77; }; }; }
24985   else
24986     ac_cv_sizeof_size_t=0
24987   fi ;;
24988esac
24989else
24990  cat >conftest.$ac_ext <<_ACEOF
24991/* confdefs.h.  */
24992_ACEOF
24993cat confdefs.h >>conftest.$ac_ext
24994cat >>conftest.$ac_ext <<_ACEOF
24995/* end confdefs.h.  */
24996$ac_includes_default
24997static long int longval () { return (long int) (sizeof (size_t)); }
24998static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24999#include <stdio.h>
25000#include <stdlib.h>
25001int
25002main ()
25003{
25004
25005  FILE *f = fopen ("conftest.val", "w");
25006  if (! f)
25007    return 1;
25008  if (((long int) (sizeof (size_t))) < 0)
25009    {
25010      long int i = longval ();
25011      if (i != ((long int) (sizeof (size_t))))
25012	return 1;
25013      fprintf (f, "%ld", i);
25014    }
25015  else
25016    {
25017      unsigned long int i = ulongval ();
25018      if (i != ((long int) (sizeof (size_t))))
25019	return 1;
25020      fprintf (f, "%lu", i);
25021    }
25022  /* Do not output a trailing newline, as this causes \r\n confusion
25023     on some platforms.  */
25024  return ferror (f) || fclose (f) != 0;
25025
25026  ;
25027  return 0;
25028}
25029_ACEOF
25030rm -f conftest$ac_exeext
25031if { (ac_try="$ac_link"
25032case "(($ac_try" in
25033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034  *) ac_try_echo=$ac_try;;
25035esac
25036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25037$as_echo "$ac_try_echo") >&5
25038  (eval "$ac_link") 2>&5
25039  ac_status=$?
25040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25042  { (case "(($ac_try" in
25043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044  *) ac_try_echo=$ac_try;;
25045esac
25046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25047$as_echo "$ac_try_echo") >&5
25048  (eval "$ac_try") 2>&5
25049  ac_status=$?
25050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051  (exit $ac_status); }; }; then
25052  ac_cv_sizeof_size_t=`cat conftest.val`
25053else
25054  $as_echo "$as_me: program exited with status $ac_status" >&5
25055$as_echo "$as_me: failed program was:" >&5
25056sed 's/^/| /' conftest.$ac_ext >&5
25057
25058( exit $ac_status )
25059if test "$ac_cv_type_size_t" = yes; then
25060     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25062{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25063See \`config.log' for more details." >&5
25064$as_echo "$as_me: error: cannot compute sizeof (size_t)
25065See \`config.log' for more details." >&2;}
25066   { (exit 77); exit 77; }; }; }
25067   else
25068     ac_cv_sizeof_size_t=0
25069   fi
25070fi
25071rm -rf conftest.dSYM
25072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25073fi
25074rm -f conftest.val
25075fi
25076{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25077$as_echo "$ac_cv_sizeof_size_t" >&6; }
25078
25079
25080
25081cat >>confdefs.h <<_ACEOF
25082#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25083_ACEOF
25084
25085
25086  fi
25087  TYPEDEF_SIZE_T=$bc_typedef_size_t
25088
25089  if test $ac_cv_header_inttypes_h = yes; then
25090    INCLUDE_INTTYPES_H="#include <inttypes.h>"
25091
25092  else
25093    INCLUDE_INTTYPES_H=
25094
25095  fi
25096  if test $ac_cv_header_stdint_h = yes; then
25097    INCLUDE_STDINT_H="#include <stdint.h>"
25098
25099  else
25100    INCLUDE_STDINT_H=
25101
25102  fi
25103
25104
25105
25106
25107  bc_typedef_int8_t=
25108  { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
25109$as_echo_n "checking for int8_t... " >&6; }
25110if test "${ac_cv_type_int8_t+set}" = set; then
25111  $as_echo_n "(cached) " >&6
25112else
25113  ac_cv_type_int8_t=no
25114cat >conftest.$ac_ext <<_ACEOF
25115/* confdefs.h.  */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h.  */
25120$ac_includes_default
25121int
25122main ()
25123{
25124if (sizeof (int8_t))
25125       return 0;
25126  ;
25127  return 0;
25128}
25129_ACEOF
25130rm -f conftest.$ac_objext
25131if { (ac_try="$ac_compile"
25132case "(($ac_try" in
25133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25134  *) ac_try_echo=$ac_try;;
25135esac
25136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25137$as_echo "$ac_try_echo") >&5
25138  (eval "$ac_compile") 2>conftest.er1
25139  ac_status=$?
25140  grep -v '^ *+' conftest.er1 >conftest.err
25141  rm -f conftest.er1
25142  cat conftest.err >&5
25143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144  (exit $ac_status); } && {
25145	 test -z "$ac_c_werror_flag" ||
25146	 test ! -s conftest.err
25147       } && test -s conftest.$ac_objext; then
25148  cat >conftest.$ac_ext <<_ACEOF
25149/* confdefs.h.  */
25150_ACEOF
25151cat confdefs.h >>conftest.$ac_ext
25152cat >>conftest.$ac_ext <<_ACEOF
25153/* end confdefs.h.  */
25154$ac_includes_default
25155int
25156main ()
25157{
25158if (sizeof ((int8_t)))
25159	  return 0;
25160  ;
25161  return 0;
25162}
25163_ACEOF
25164rm -f conftest.$ac_objext
25165if { (ac_try="$ac_compile"
25166case "(($ac_try" in
25167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168  *) ac_try_echo=$ac_try;;
25169esac
25170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25171$as_echo "$ac_try_echo") >&5
25172  (eval "$ac_compile") 2>conftest.er1
25173  ac_status=$?
25174  grep -v '^ *+' conftest.er1 >conftest.err
25175  rm -f conftest.er1
25176  cat conftest.err >&5
25177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178  (exit $ac_status); } && {
25179	 test -z "$ac_c_werror_flag" ||
25180	 test ! -s conftest.err
25181       } && test -s conftest.$ac_objext; then
25182  :
25183else
25184  $as_echo "$as_me: failed program was:" >&5
25185sed 's/^/| /' conftest.$ac_ext >&5
25186
25187	ac_cv_type_int8_t=yes
25188fi
25189
25190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191else
25192  $as_echo "$as_me: failed program was:" >&5
25193sed 's/^/| /' conftest.$ac_ext >&5
25194
25195
25196fi
25197
25198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25199fi
25200{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25201$as_echo "$ac_cv_type_int8_t" >&6; }
25202if test "x$ac_cv_type_int8_t" = x""yes; then
25203  :
25204else
25205
25206    # The cast to long int works around a bug in the HP C Compiler
25207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25209# This bug is HP SR number 8606223364.
25210{ $as_echo "$as_me:$LINENO: checking size of signed char" >&5
25211$as_echo_n "checking size of signed char... " >&6; }
25212if test "${ac_cv_sizeof_signed_char+set}" = set; then
25213  $as_echo_n "(cached) " >&6
25214else
25215  if test "$cross_compiling" = yes; then
25216  # Depending upon the size, compute the lo and hi bounds.
25217cat >conftest.$ac_ext <<_ACEOF
25218/* confdefs.h.  */
25219_ACEOF
25220cat confdefs.h >>conftest.$ac_ext
25221cat >>conftest.$ac_ext <<_ACEOF
25222/* end confdefs.h.  */
25223$ac_includes_default
25224int
25225main ()
25226{
25227static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
25228test_array [0] = 0
25229
25230  ;
25231  return 0;
25232}
25233_ACEOF
25234rm -f conftest.$ac_objext
25235if { (ac_try="$ac_compile"
25236case "(($ac_try" in
25237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25238  *) ac_try_echo=$ac_try;;
25239esac
25240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25241$as_echo "$ac_try_echo") >&5
25242  (eval "$ac_compile") 2>conftest.er1
25243  ac_status=$?
25244  grep -v '^ *+' conftest.er1 >conftest.err
25245  rm -f conftest.er1
25246  cat conftest.err >&5
25247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248  (exit $ac_status); } && {
25249	 test -z "$ac_c_werror_flag" ||
25250	 test ! -s conftest.err
25251       } && test -s conftest.$ac_objext; then
25252  ac_lo=0 ac_mid=0
25253  while :; do
25254    cat >conftest.$ac_ext <<_ACEOF
25255/* confdefs.h.  */
25256_ACEOF
25257cat confdefs.h >>conftest.$ac_ext
25258cat >>conftest.$ac_ext <<_ACEOF
25259/* end confdefs.h.  */
25260$ac_includes_default
25261int
25262main ()
25263{
25264static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
25265test_array [0] = 0
25266
25267  ;
25268  return 0;
25269}
25270_ACEOF
25271rm -f conftest.$ac_objext
25272if { (ac_try="$ac_compile"
25273case "(($ac_try" in
25274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275  *) ac_try_echo=$ac_try;;
25276esac
25277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25278$as_echo "$ac_try_echo") >&5
25279  (eval "$ac_compile") 2>conftest.er1
25280  ac_status=$?
25281  grep -v '^ *+' conftest.er1 >conftest.err
25282  rm -f conftest.er1
25283  cat conftest.err >&5
25284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285  (exit $ac_status); } && {
25286	 test -z "$ac_c_werror_flag" ||
25287	 test ! -s conftest.err
25288       } && test -s conftest.$ac_objext; then
25289  ac_hi=$ac_mid; break
25290else
25291  $as_echo "$as_me: failed program was:" >&5
25292sed 's/^/| /' conftest.$ac_ext >&5
25293
25294	ac_lo=`expr $ac_mid + 1`
25295			if test $ac_lo -le $ac_mid; then
25296			  ac_lo= ac_hi=
25297			  break
25298			fi
25299			ac_mid=`expr 2 '*' $ac_mid + 1`
25300fi
25301
25302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303  done
25304else
25305  $as_echo "$as_me: failed program was:" >&5
25306sed 's/^/| /' conftest.$ac_ext >&5
25307
25308	cat >conftest.$ac_ext <<_ACEOF
25309/* confdefs.h.  */
25310_ACEOF
25311cat confdefs.h >>conftest.$ac_ext
25312cat >>conftest.$ac_ext <<_ACEOF
25313/* end confdefs.h.  */
25314$ac_includes_default
25315int
25316main ()
25317{
25318static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
25319test_array [0] = 0
25320
25321  ;
25322  return 0;
25323}
25324_ACEOF
25325rm -f conftest.$ac_objext
25326if { (ac_try="$ac_compile"
25327case "(($ac_try" in
25328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329  *) ac_try_echo=$ac_try;;
25330esac
25331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25332$as_echo "$ac_try_echo") >&5
25333  (eval "$ac_compile") 2>conftest.er1
25334  ac_status=$?
25335  grep -v '^ *+' conftest.er1 >conftest.err
25336  rm -f conftest.er1
25337  cat conftest.err >&5
25338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339  (exit $ac_status); } && {
25340	 test -z "$ac_c_werror_flag" ||
25341	 test ! -s conftest.err
25342       } && test -s conftest.$ac_objext; then
25343  ac_hi=-1 ac_mid=-1
25344  while :; do
25345    cat >conftest.$ac_ext <<_ACEOF
25346/* confdefs.h.  */
25347_ACEOF
25348cat confdefs.h >>conftest.$ac_ext
25349cat >>conftest.$ac_ext <<_ACEOF
25350/* end confdefs.h.  */
25351$ac_includes_default
25352int
25353main ()
25354{
25355static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
25356test_array [0] = 0
25357
25358  ;
25359  return 0;
25360}
25361_ACEOF
25362rm -f conftest.$ac_objext
25363if { (ac_try="$ac_compile"
25364case "(($ac_try" in
25365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366  *) ac_try_echo=$ac_try;;
25367esac
25368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25369$as_echo "$ac_try_echo") >&5
25370  (eval "$ac_compile") 2>conftest.er1
25371  ac_status=$?
25372  grep -v '^ *+' conftest.er1 >conftest.err
25373  rm -f conftest.er1
25374  cat conftest.err >&5
25375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376  (exit $ac_status); } && {
25377	 test -z "$ac_c_werror_flag" ||
25378	 test ! -s conftest.err
25379       } && test -s conftest.$ac_objext; then
25380  ac_lo=$ac_mid; break
25381else
25382  $as_echo "$as_me: failed program was:" >&5
25383sed 's/^/| /' conftest.$ac_ext >&5
25384
25385	ac_hi=`expr '(' $ac_mid ')' - 1`
25386			if test $ac_mid -le $ac_hi; then
25387			  ac_lo= ac_hi=
25388			  break
25389			fi
25390			ac_mid=`expr 2 '*' $ac_mid`
25391fi
25392
25393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394  done
25395else
25396  $as_echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399	ac_lo= ac_hi=
25400fi
25401
25402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403fi
25404
25405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25406# Binary search between lo and hi bounds.
25407while test "x$ac_lo" != "x$ac_hi"; do
25408  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25409  cat >conftest.$ac_ext <<_ACEOF
25410/* confdefs.h.  */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h.  */
25415$ac_includes_default
25416int
25417main ()
25418{
25419static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
25420test_array [0] = 0
25421
25422  ;
25423  return 0;
25424}
25425_ACEOF
25426rm -f conftest.$ac_objext
25427if { (ac_try="$ac_compile"
25428case "(($ac_try" in
25429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430  *) ac_try_echo=$ac_try;;
25431esac
25432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25433$as_echo "$ac_try_echo") >&5
25434  (eval "$ac_compile") 2>conftest.er1
25435  ac_status=$?
25436  grep -v '^ *+' conftest.er1 >conftest.err
25437  rm -f conftest.er1
25438  cat conftest.err >&5
25439  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440  (exit $ac_status); } && {
25441	 test -z "$ac_c_werror_flag" ||
25442	 test ! -s conftest.err
25443       } && test -s conftest.$ac_objext; then
25444  ac_hi=$ac_mid
25445else
25446  $as_echo "$as_me: failed program was:" >&5
25447sed 's/^/| /' conftest.$ac_ext >&5
25448
25449	ac_lo=`expr '(' $ac_mid ')' + 1`
25450fi
25451
25452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25453done
25454case $ac_lo in
25455?*) ac_cv_sizeof_signed_char=$ac_lo;;
25456'') if test "$ac_cv_type_signed_char" = yes; then
25457     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25459{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
25460See \`config.log' for more details." >&5
25461$as_echo "$as_me: error: cannot compute sizeof (signed char)
25462See \`config.log' for more details." >&2;}
25463   { (exit 77); exit 77; }; }; }
25464   else
25465     ac_cv_sizeof_signed_char=0
25466   fi ;;
25467esac
25468else
25469  cat >conftest.$ac_ext <<_ACEOF
25470/* confdefs.h.  */
25471_ACEOF
25472cat confdefs.h >>conftest.$ac_ext
25473cat >>conftest.$ac_ext <<_ACEOF
25474/* end confdefs.h.  */
25475$ac_includes_default
25476static long int longval () { return (long int) (sizeof (signed char)); }
25477static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
25478#include <stdio.h>
25479#include <stdlib.h>
25480int
25481main ()
25482{
25483
25484  FILE *f = fopen ("conftest.val", "w");
25485  if (! f)
25486    return 1;
25487  if (((long int) (sizeof (signed char))) < 0)
25488    {
25489      long int i = longval ();
25490      if (i != ((long int) (sizeof (signed char))))
25491	return 1;
25492      fprintf (f, "%ld", i);
25493    }
25494  else
25495    {
25496      unsigned long int i = ulongval ();
25497      if (i != ((long int) (sizeof (signed char))))
25498	return 1;
25499      fprintf (f, "%lu", i);
25500    }
25501  /* Do not output a trailing newline, as this causes \r\n confusion
25502     on some platforms.  */
25503  return ferror (f) || fclose (f) != 0;
25504
25505  ;
25506  return 0;
25507}
25508_ACEOF
25509rm -f conftest$ac_exeext
25510if { (ac_try="$ac_link"
25511case "(($ac_try" in
25512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513  *) ac_try_echo=$ac_try;;
25514esac
25515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25516$as_echo "$ac_try_echo") >&5
25517  (eval "$ac_link") 2>&5
25518  ac_status=$?
25519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25521  { (case "(($ac_try" in
25522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25523  *) ac_try_echo=$ac_try;;
25524esac
25525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25526$as_echo "$ac_try_echo") >&5
25527  (eval "$ac_try") 2>&5
25528  ac_status=$?
25529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530  (exit $ac_status); }; }; then
25531  ac_cv_sizeof_signed_char=`cat conftest.val`
25532else
25533  $as_echo "$as_me: program exited with status $ac_status" >&5
25534$as_echo "$as_me: failed program was:" >&5
25535sed 's/^/| /' conftest.$ac_ext >&5
25536
25537( exit $ac_status )
25538if test "$ac_cv_type_signed_char" = yes; then
25539     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25541{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
25542See \`config.log' for more details." >&5
25543$as_echo "$as_me: error: cannot compute sizeof (signed char)
25544See \`config.log' for more details." >&2;}
25545   { (exit 77); exit 77; }; }; }
25546   else
25547     ac_cv_sizeof_signed_char=0
25548   fi
25549fi
25550rm -rf conftest.dSYM
25551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25552fi
25553rm -f conftest.val
25554fi
25555{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
25556$as_echo "$ac_cv_sizeof_signed_char" >&6; }
25557
25558
25559
25560cat >>confdefs.h <<_ACEOF
25561#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
25562_ACEOF
25563
25564
25565    if test $ac_cv_sizeof_signed_char -eq 1; then
25566      bc_typedef_int8_t="typedef signed char int8_t;"
25567    fi
25568
25569fi
25570
25571  TYPEDEF_INT8_T=$bc_typedef_int8_t
25572
25573  bc_typedef_int16_t=
25574  { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
25575$as_echo_n "checking for int16_t... " >&6; }
25576if test "${ac_cv_type_int16_t+set}" = set; then
25577  $as_echo_n "(cached) " >&6
25578else
25579  ac_cv_type_int16_t=no
25580cat >conftest.$ac_ext <<_ACEOF
25581/* confdefs.h.  */
25582_ACEOF
25583cat confdefs.h >>conftest.$ac_ext
25584cat >>conftest.$ac_ext <<_ACEOF
25585/* end confdefs.h.  */
25586$ac_includes_default
25587int
25588main ()
25589{
25590if (sizeof (int16_t))
25591       return 0;
25592  ;
25593  return 0;
25594}
25595_ACEOF
25596rm -f conftest.$ac_objext
25597if { (ac_try="$ac_compile"
25598case "(($ac_try" in
25599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600  *) ac_try_echo=$ac_try;;
25601esac
25602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25603$as_echo "$ac_try_echo") >&5
25604  (eval "$ac_compile") 2>conftest.er1
25605  ac_status=$?
25606  grep -v '^ *+' conftest.er1 >conftest.err
25607  rm -f conftest.er1
25608  cat conftest.err >&5
25609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610  (exit $ac_status); } && {
25611	 test -z "$ac_c_werror_flag" ||
25612	 test ! -s conftest.err
25613       } && test -s conftest.$ac_objext; then
25614  cat >conftest.$ac_ext <<_ACEOF
25615/* confdefs.h.  */
25616_ACEOF
25617cat confdefs.h >>conftest.$ac_ext
25618cat >>conftest.$ac_ext <<_ACEOF
25619/* end confdefs.h.  */
25620$ac_includes_default
25621int
25622main ()
25623{
25624if (sizeof ((int16_t)))
25625	  return 0;
25626  ;
25627  return 0;
25628}
25629_ACEOF
25630rm -f conftest.$ac_objext
25631if { (ac_try="$ac_compile"
25632case "(($ac_try" in
25633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634  *) ac_try_echo=$ac_try;;
25635esac
25636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25637$as_echo "$ac_try_echo") >&5
25638  (eval "$ac_compile") 2>conftest.er1
25639  ac_status=$?
25640  grep -v '^ *+' conftest.er1 >conftest.err
25641  rm -f conftest.er1
25642  cat conftest.err >&5
25643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644  (exit $ac_status); } && {
25645	 test -z "$ac_c_werror_flag" ||
25646	 test ! -s conftest.err
25647       } && test -s conftest.$ac_objext; then
25648  :
25649else
25650  $as_echo "$as_me: failed program was:" >&5
25651sed 's/^/| /' conftest.$ac_ext >&5
25652
25653	ac_cv_type_int16_t=yes
25654fi
25655
25656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657else
25658  $as_echo "$as_me: failed program was:" >&5
25659sed 's/^/| /' conftest.$ac_ext >&5
25660
25661
25662fi
25663
25664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665fi
25666{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
25667$as_echo "$ac_cv_type_int16_t" >&6; }
25668if test "x$ac_cv_type_int16_t" = x""yes; then
25669  :
25670else
25671
25672    # The cast to long int works around a bug in the HP C Compiler
25673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25675# This bug is HP SR number 8606223364.
25676{ $as_echo "$as_me:$LINENO: checking size of short" >&5
25677$as_echo_n "checking size of short... " >&6; }
25678if test "${ac_cv_sizeof_short+set}" = set; then
25679  $as_echo_n "(cached) " >&6
25680else
25681  if test "$cross_compiling" = yes; then
25682  # Depending upon the size, compute the lo and hi bounds.
25683cat >conftest.$ac_ext <<_ACEOF
25684/* confdefs.h.  */
25685_ACEOF
25686cat confdefs.h >>conftest.$ac_ext
25687cat >>conftest.$ac_ext <<_ACEOF
25688/* end confdefs.h.  */
25689$ac_includes_default
25690int
25691main ()
25692{
25693static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
25694test_array [0] = 0
25695
25696  ;
25697  return 0;
25698}
25699_ACEOF
25700rm -f conftest.$ac_objext
25701if { (ac_try="$ac_compile"
25702case "(($ac_try" in
25703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704  *) ac_try_echo=$ac_try;;
25705esac
25706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25707$as_echo "$ac_try_echo") >&5
25708  (eval "$ac_compile") 2>conftest.er1
25709  ac_status=$?
25710  grep -v '^ *+' conftest.er1 >conftest.err
25711  rm -f conftest.er1
25712  cat conftest.err >&5
25713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714  (exit $ac_status); } && {
25715	 test -z "$ac_c_werror_flag" ||
25716	 test ! -s conftest.err
25717       } && test -s conftest.$ac_objext; then
25718  ac_lo=0 ac_mid=0
25719  while :; do
25720    cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h.  */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h.  */
25726$ac_includes_default
25727int
25728main ()
25729{
25730static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
25731test_array [0] = 0
25732
25733  ;
25734  return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext
25738if { (ac_try="$ac_compile"
25739case "(($ac_try" in
25740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741  *) ac_try_echo=$ac_try;;
25742esac
25743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25744$as_echo "$ac_try_echo") >&5
25745  (eval "$ac_compile") 2>conftest.er1
25746  ac_status=$?
25747  grep -v '^ *+' conftest.er1 >conftest.err
25748  rm -f conftest.er1
25749  cat conftest.err >&5
25750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751  (exit $ac_status); } && {
25752	 test -z "$ac_c_werror_flag" ||
25753	 test ! -s conftest.err
25754       } && test -s conftest.$ac_objext; then
25755  ac_hi=$ac_mid; break
25756else
25757  $as_echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760	ac_lo=`expr $ac_mid + 1`
25761			if test $ac_lo -le $ac_mid; then
25762			  ac_lo= ac_hi=
25763			  break
25764			fi
25765			ac_mid=`expr 2 '*' $ac_mid + 1`
25766fi
25767
25768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769  done
25770else
25771  $as_echo "$as_me: failed program was:" >&5
25772sed 's/^/| /' conftest.$ac_ext >&5
25773
25774	cat >conftest.$ac_ext <<_ACEOF
25775/* confdefs.h.  */
25776_ACEOF
25777cat confdefs.h >>conftest.$ac_ext
25778cat >>conftest.$ac_ext <<_ACEOF
25779/* end confdefs.h.  */
25780$ac_includes_default
25781int
25782main ()
25783{
25784static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
25785test_array [0] = 0
25786
25787  ;
25788  return 0;
25789}
25790_ACEOF
25791rm -f conftest.$ac_objext
25792if { (ac_try="$ac_compile"
25793case "(($ac_try" in
25794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795  *) ac_try_echo=$ac_try;;
25796esac
25797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25798$as_echo "$ac_try_echo") >&5
25799  (eval "$ac_compile") 2>conftest.er1
25800  ac_status=$?
25801  grep -v '^ *+' conftest.er1 >conftest.err
25802  rm -f conftest.er1
25803  cat conftest.err >&5
25804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805  (exit $ac_status); } && {
25806	 test -z "$ac_c_werror_flag" ||
25807	 test ! -s conftest.err
25808       } && test -s conftest.$ac_objext; then
25809  ac_hi=-1 ac_mid=-1
25810  while :; do
25811    cat >conftest.$ac_ext <<_ACEOF
25812/* confdefs.h.  */
25813_ACEOF
25814cat confdefs.h >>conftest.$ac_ext
25815cat >>conftest.$ac_ext <<_ACEOF
25816/* end confdefs.h.  */
25817$ac_includes_default
25818int
25819main ()
25820{
25821static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
25822test_array [0] = 0
25823
25824  ;
25825  return 0;
25826}
25827_ACEOF
25828rm -f conftest.$ac_objext
25829if { (ac_try="$ac_compile"
25830case "(($ac_try" in
25831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832  *) ac_try_echo=$ac_try;;
25833esac
25834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25835$as_echo "$ac_try_echo") >&5
25836  (eval "$ac_compile") 2>conftest.er1
25837  ac_status=$?
25838  grep -v '^ *+' conftest.er1 >conftest.err
25839  rm -f conftest.er1
25840  cat conftest.err >&5
25841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842  (exit $ac_status); } && {
25843	 test -z "$ac_c_werror_flag" ||
25844	 test ! -s conftest.err
25845       } && test -s conftest.$ac_objext; then
25846  ac_lo=$ac_mid; break
25847else
25848  $as_echo "$as_me: failed program was:" >&5
25849sed 's/^/| /' conftest.$ac_ext >&5
25850
25851	ac_hi=`expr '(' $ac_mid ')' - 1`
25852			if test $ac_mid -le $ac_hi; then
25853			  ac_lo= ac_hi=
25854			  break
25855			fi
25856			ac_mid=`expr 2 '*' $ac_mid`
25857fi
25858
25859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25860  done
25861else
25862  $as_echo "$as_me: failed program was:" >&5
25863sed 's/^/| /' conftest.$ac_ext >&5
25864
25865	ac_lo= ac_hi=
25866fi
25867
25868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25869fi
25870
25871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872# Binary search between lo and hi bounds.
25873while test "x$ac_lo" != "x$ac_hi"; do
25874  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25875  cat >conftest.$ac_ext <<_ACEOF
25876/* confdefs.h.  */
25877_ACEOF
25878cat confdefs.h >>conftest.$ac_ext
25879cat >>conftest.$ac_ext <<_ACEOF
25880/* end confdefs.h.  */
25881$ac_includes_default
25882int
25883main ()
25884{
25885static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
25886test_array [0] = 0
25887
25888  ;
25889  return 0;
25890}
25891_ACEOF
25892rm -f conftest.$ac_objext
25893if { (ac_try="$ac_compile"
25894case "(($ac_try" in
25895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896  *) ac_try_echo=$ac_try;;
25897esac
25898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25899$as_echo "$ac_try_echo") >&5
25900  (eval "$ac_compile") 2>conftest.er1
25901  ac_status=$?
25902  grep -v '^ *+' conftest.er1 >conftest.err
25903  rm -f conftest.er1
25904  cat conftest.err >&5
25905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906  (exit $ac_status); } && {
25907	 test -z "$ac_c_werror_flag" ||
25908	 test ! -s conftest.err
25909       } && test -s conftest.$ac_objext; then
25910  ac_hi=$ac_mid
25911else
25912  $as_echo "$as_me: failed program was:" >&5
25913sed 's/^/| /' conftest.$ac_ext >&5
25914
25915	ac_lo=`expr '(' $ac_mid ')' + 1`
25916fi
25917
25918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919done
25920case $ac_lo in
25921?*) ac_cv_sizeof_short=$ac_lo;;
25922'') if test "$ac_cv_type_short" = yes; then
25923     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25925{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25926See \`config.log' for more details." >&5
25927$as_echo "$as_me: error: cannot compute sizeof (short)
25928See \`config.log' for more details." >&2;}
25929   { (exit 77); exit 77; }; }; }
25930   else
25931     ac_cv_sizeof_short=0
25932   fi ;;
25933esac
25934else
25935  cat >conftest.$ac_ext <<_ACEOF
25936/* confdefs.h.  */
25937_ACEOF
25938cat confdefs.h >>conftest.$ac_ext
25939cat >>conftest.$ac_ext <<_ACEOF
25940/* end confdefs.h.  */
25941$ac_includes_default
25942static long int longval () { return (long int) (sizeof (short)); }
25943static unsigned long int ulongval () { return (long int) (sizeof (short)); }
25944#include <stdio.h>
25945#include <stdlib.h>
25946int
25947main ()
25948{
25949
25950  FILE *f = fopen ("conftest.val", "w");
25951  if (! f)
25952    return 1;
25953  if (((long int) (sizeof (short))) < 0)
25954    {
25955      long int i = longval ();
25956      if (i != ((long int) (sizeof (short))))
25957	return 1;
25958      fprintf (f, "%ld", i);
25959    }
25960  else
25961    {
25962      unsigned long int i = ulongval ();
25963      if (i != ((long int) (sizeof (short))))
25964	return 1;
25965      fprintf (f, "%lu", i);
25966    }
25967  /* Do not output a trailing newline, as this causes \r\n confusion
25968     on some platforms.  */
25969  return ferror (f) || fclose (f) != 0;
25970
25971  ;
25972  return 0;
25973}
25974_ACEOF
25975rm -f conftest$ac_exeext
25976if { (ac_try="$ac_link"
25977case "(($ac_try" in
25978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979  *) ac_try_echo=$ac_try;;
25980esac
25981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982$as_echo "$ac_try_echo") >&5
25983  (eval "$ac_link") 2>&5
25984  ac_status=$?
25985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25987  { (case "(($ac_try" in
25988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989  *) ac_try_echo=$ac_try;;
25990esac
25991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992$as_echo "$ac_try_echo") >&5
25993  (eval "$ac_try") 2>&5
25994  ac_status=$?
25995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996  (exit $ac_status); }; }; then
25997  ac_cv_sizeof_short=`cat conftest.val`
25998else
25999  $as_echo "$as_me: program exited with status $ac_status" >&5
26000$as_echo "$as_me: failed program was:" >&5
26001sed 's/^/| /' conftest.$ac_ext >&5
26002
26003( exit $ac_status )
26004if test "$ac_cv_type_short" = yes; then
26005     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26007{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26008See \`config.log' for more details." >&5
26009$as_echo "$as_me: error: cannot compute sizeof (short)
26010See \`config.log' for more details." >&2;}
26011   { (exit 77); exit 77; }; }; }
26012   else
26013     ac_cv_sizeof_short=0
26014   fi
26015fi
26016rm -rf conftest.dSYM
26017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26018fi
26019rm -f conftest.val
26020fi
26021{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26022$as_echo "$ac_cv_sizeof_short" >&6; }
26023
26024
26025
26026cat >>confdefs.h <<_ACEOF
26027#define SIZEOF_SHORT $ac_cv_sizeof_short
26028_ACEOF
26029
26030
26031    if test $ac_cv_sizeof_short -eq 2; then
26032      bc_typedef_int16_t="typedef short int16_t;"
26033    fi
26034
26035fi
26036
26037  TYPEDEF_INT16_T=$bc_typedef_int16_t
26038
26039  bc_typedef_int32_t=
26040  { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
26041$as_echo_n "checking for int32_t... " >&6; }
26042if test "${ac_cv_type_int32_t+set}" = set; then
26043  $as_echo_n "(cached) " >&6
26044else
26045  ac_cv_type_int32_t=no
26046cat >conftest.$ac_ext <<_ACEOF
26047/* confdefs.h.  */
26048_ACEOF
26049cat confdefs.h >>conftest.$ac_ext
26050cat >>conftest.$ac_ext <<_ACEOF
26051/* end confdefs.h.  */
26052$ac_includes_default
26053int
26054main ()
26055{
26056if (sizeof (int32_t))
26057       return 0;
26058  ;
26059  return 0;
26060}
26061_ACEOF
26062rm -f conftest.$ac_objext
26063if { (ac_try="$ac_compile"
26064case "(($ac_try" in
26065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066  *) ac_try_echo=$ac_try;;
26067esac
26068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26069$as_echo "$ac_try_echo") >&5
26070  (eval "$ac_compile") 2>conftest.er1
26071  ac_status=$?
26072  grep -v '^ *+' conftest.er1 >conftest.err
26073  rm -f conftest.er1
26074  cat conftest.err >&5
26075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076  (exit $ac_status); } && {
26077	 test -z "$ac_c_werror_flag" ||
26078	 test ! -s conftest.err
26079       } && test -s conftest.$ac_objext; then
26080  cat >conftest.$ac_ext <<_ACEOF
26081/* confdefs.h.  */
26082_ACEOF
26083cat confdefs.h >>conftest.$ac_ext
26084cat >>conftest.$ac_ext <<_ACEOF
26085/* end confdefs.h.  */
26086$ac_includes_default
26087int
26088main ()
26089{
26090if (sizeof ((int32_t)))
26091	  return 0;
26092  ;
26093  return 0;
26094}
26095_ACEOF
26096rm -f conftest.$ac_objext
26097if { (ac_try="$ac_compile"
26098case "(($ac_try" in
26099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26100  *) ac_try_echo=$ac_try;;
26101esac
26102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26103$as_echo "$ac_try_echo") >&5
26104  (eval "$ac_compile") 2>conftest.er1
26105  ac_status=$?
26106  grep -v '^ *+' conftest.er1 >conftest.err
26107  rm -f conftest.er1
26108  cat conftest.err >&5
26109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110  (exit $ac_status); } && {
26111	 test -z "$ac_c_werror_flag" ||
26112	 test ! -s conftest.err
26113       } && test -s conftest.$ac_objext; then
26114  :
26115else
26116  $as_echo "$as_me: failed program was:" >&5
26117sed 's/^/| /' conftest.$ac_ext >&5
26118
26119	ac_cv_type_int32_t=yes
26120fi
26121
26122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123else
26124  $as_echo "$as_me: failed program was:" >&5
26125sed 's/^/| /' conftest.$ac_ext >&5
26126
26127
26128fi
26129
26130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26131fi
26132{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
26133$as_echo "$ac_cv_type_int32_t" >&6; }
26134if test "x$ac_cv_type_int32_t" = x""yes; then
26135  :
26136else
26137
26138    # The cast to long int works around a bug in the HP C Compiler
26139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26141# This bug is HP SR number 8606223364.
26142{ $as_echo "$as_me:$LINENO: checking size of int" >&5
26143$as_echo_n "checking size of int... " >&6; }
26144if test "${ac_cv_sizeof_int+set}" = set; then
26145  $as_echo_n "(cached) " >&6
26146else
26147  if test "$cross_compiling" = yes; then
26148  # Depending upon the size, compute the lo and hi bounds.
26149cat >conftest.$ac_ext <<_ACEOF
26150/* confdefs.h.  */
26151_ACEOF
26152cat confdefs.h >>conftest.$ac_ext
26153cat >>conftest.$ac_ext <<_ACEOF
26154/* end confdefs.h.  */
26155$ac_includes_default
26156int
26157main ()
26158{
26159static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
26160test_array [0] = 0
26161
26162  ;
26163  return 0;
26164}
26165_ACEOF
26166rm -f conftest.$ac_objext
26167if { (ac_try="$ac_compile"
26168case "(($ac_try" in
26169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170  *) ac_try_echo=$ac_try;;
26171esac
26172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26173$as_echo "$ac_try_echo") >&5
26174  (eval "$ac_compile") 2>conftest.er1
26175  ac_status=$?
26176  grep -v '^ *+' conftest.er1 >conftest.err
26177  rm -f conftest.er1
26178  cat conftest.err >&5
26179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180  (exit $ac_status); } && {
26181	 test -z "$ac_c_werror_flag" ||
26182	 test ! -s conftest.err
26183       } && test -s conftest.$ac_objext; then
26184  ac_lo=0 ac_mid=0
26185  while :; do
26186    cat >conftest.$ac_ext <<_ACEOF
26187/* confdefs.h.  */
26188_ACEOF
26189cat confdefs.h >>conftest.$ac_ext
26190cat >>conftest.$ac_ext <<_ACEOF
26191/* end confdefs.h.  */
26192$ac_includes_default
26193int
26194main ()
26195{
26196static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26197test_array [0] = 0
26198
26199  ;
26200  return 0;
26201}
26202_ACEOF
26203rm -f conftest.$ac_objext
26204if { (ac_try="$ac_compile"
26205case "(($ac_try" in
26206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26207  *) ac_try_echo=$ac_try;;
26208esac
26209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26210$as_echo "$ac_try_echo") >&5
26211  (eval "$ac_compile") 2>conftest.er1
26212  ac_status=$?
26213  grep -v '^ *+' conftest.er1 >conftest.err
26214  rm -f conftest.er1
26215  cat conftest.err >&5
26216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217  (exit $ac_status); } && {
26218	 test -z "$ac_c_werror_flag" ||
26219	 test ! -s conftest.err
26220       } && test -s conftest.$ac_objext; then
26221  ac_hi=$ac_mid; break
26222else
26223  $as_echo "$as_me: failed program was:" >&5
26224sed 's/^/| /' conftest.$ac_ext >&5
26225
26226	ac_lo=`expr $ac_mid + 1`
26227			if test $ac_lo -le $ac_mid; then
26228			  ac_lo= ac_hi=
26229			  break
26230			fi
26231			ac_mid=`expr 2 '*' $ac_mid + 1`
26232fi
26233
26234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235  done
26236else
26237  $as_echo "$as_me: failed program was:" >&5
26238sed 's/^/| /' conftest.$ac_ext >&5
26239
26240	cat >conftest.$ac_ext <<_ACEOF
26241/* confdefs.h.  */
26242_ACEOF
26243cat confdefs.h >>conftest.$ac_ext
26244cat >>conftest.$ac_ext <<_ACEOF
26245/* end confdefs.h.  */
26246$ac_includes_default
26247int
26248main ()
26249{
26250static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
26251test_array [0] = 0
26252
26253  ;
26254  return 0;
26255}
26256_ACEOF
26257rm -f conftest.$ac_objext
26258if { (ac_try="$ac_compile"
26259case "(($ac_try" in
26260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261  *) ac_try_echo=$ac_try;;
26262esac
26263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26264$as_echo "$ac_try_echo") >&5
26265  (eval "$ac_compile") 2>conftest.er1
26266  ac_status=$?
26267  grep -v '^ *+' conftest.er1 >conftest.err
26268  rm -f conftest.er1
26269  cat conftest.err >&5
26270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271  (exit $ac_status); } && {
26272	 test -z "$ac_c_werror_flag" ||
26273	 test ! -s conftest.err
26274       } && test -s conftest.$ac_objext; then
26275  ac_hi=-1 ac_mid=-1
26276  while :; do
26277    cat >conftest.$ac_ext <<_ACEOF
26278/* confdefs.h.  */
26279_ACEOF
26280cat confdefs.h >>conftest.$ac_ext
26281cat >>conftest.$ac_ext <<_ACEOF
26282/* end confdefs.h.  */
26283$ac_includes_default
26284int
26285main ()
26286{
26287static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
26288test_array [0] = 0
26289
26290  ;
26291  return 0;
26292}
26293_ACEOF
26294rm -f conftest.$ac_objext
26295if { (ac_try="$ac_compile"
26296case "(($ac_try" in
26297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298  *) ac_try_echo=$ac_try;;
26299esac
26300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26301$as_echo "$ac_try_echo") >&5
26302  (eval "$ac_compile") 2>conftest.er1
26303  ac_status=$?
26304  grep -v '^ *+' conftest.er1 >conftest.err
26305  rm -f conftest.er1
26306  cat conftest.err >&5
26307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308  (exit $ac_status); } && {
26309	 test -z "$ac_c_werror_flag" ||
26310	 test ! -s conftest.err
26311       } && test -s conftest.$ac_objext; then
26312  ac_lo=$ac_mid; break
26313else
26314  $as_echo "$as_me: failed program was:" >&5
26315sed 's/^/| /' conftest.$ac_ext >&5
26316
26317	ac_hi=`expr '(' $ac_mid ')' - 1`
26318			if test $ac_mid -le $ac_hi; then
26319			  ac_lo= ac_hi=
26320			  break
26321			fi
26322			ac_mid=`expr 2 '*' $ac_mid`
26323fi
26324
26325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326  done
26327else
26328  $as_echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331	ac_lo= ac_hi=
26332fi
26333
26334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26335fi
26336
26337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338# Binary search between lo and hi bounds.
26339while test "x$ac_lo" != "x$ac_hi"; do
26340  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26341  cat >conftest.$ac_ext <<_ACEOF
26342/* confdefs.h.  */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h.  */
26347$ac_includes_default
26348int
26349main ()
26350{
26351static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26352test_array [0] = 0
26353
26354  ;
26355  return 0;
26356}
26357_ACEOF
26358rm -f conftest.$ac_objext
26359if { (ac_try="$ac_compile"
26360case "(($ac_try" in
26361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362  *) ac_try_echo=$ac_try;;
26363esac
26364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26365$as_echo "$ac_try_echo") >&5
26366  (eval "$ac_compile") 2>conftest.er1
26367  ac_status=$?
26368  grep -v '^ *+' conftest.er1 >conftest.err
26369  rm -f conftest.er1
26370  cat conftest.err >&5
26371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372  (exit $ac_status); } && {
26373	 test -z "$ac_c_werror_flag" ||
26374	 test ! -s conftest.err
26375       } && test -s conftest.$ac_objext; then
26376  ac_hi=$ac_mid
26377else
26378  $as_echo "$as_me: failed program was:" >&5
26379sed 's/^/| /' conftest.$ac_ext >&5
26380
26381	ac_lo=`expr '(' $ac_mid ')' + 1`
26382fi
26383
26384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26385done
26386case $ac_lo in
26387?*) ac_cv_sizeof_int=$ac_lo;;
26388'') if test "$ac_cv_type_int" = yes; then
26389     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26391{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26392See \`config.log' for more details." >&5
26393$as_echo "$as_me: error: cannot compute sizeof (int)
26394See \`config.log' for more details." >&2;}
26395   { (exit 77); exit 77; }; }; }
26396   else
26397     ac_cv_sizeof_int=0
26398   fi ;;
26399esac
26400else
26401  cat >conftest.$ac_ext <<_ACEOF
26402/* confdefs.h.  */
26403_ACEOF
26404cat confdefs.h >>conftest.$ac_ext
26405cat >>conftest.$ac_ext <<_ACEOF
26406/* end confdefs.h.  */
26407$ac_includes_default
26408static long int longval () { return (long int) (sizeof (int)); }
26409static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26410#include <stdio.h>
26411#include <stdlib.h>
26412int
26413main ()
26414{
26415
26416  FILE *f = fopen ("conftest.val", "w");
26417  if (! f)
26418    return 1;
26419  if (((long int) (sizeof (int))) < 0)
26420    {
26421      long int i = longval ();
26422      if (i != ((long int) (sizeof (int))))
26423	return 1;
26424      fprintf (f, "%ld", i);
26425    }
26426  else
26427    {
26428      unsigned long int i = ulongval ();
26429      if (i != ((long int) (sizeof (int))))
26430	return 1;
26431      fprintf (f, "%lu", i);
26432    }
26433  /* Do not output a trailing newline, as this causes \r\n confusion
26434     on some platforms.  */
26435  return ferror (f) || fclose (f) != 0;
26436
26437  ;
26438  return 0;
26439}
26440_ACEOF
26441rm -f conftest$ac_exeext
26442if { (ac_try="$ac_link"
26443case "(($ac_try" in
26444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445  *) ac_try_echo=$ac_try;;
26446esac
26447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26448$as_echo "$ac_try_echo") >&5
26449  (eval "$ac_link") 2>&5
26450  ac_status=$?
26451  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26453  { (case "(($ac_try" in
26454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26455  *) ac_try_echo=$ac_try;;
26456esac
26457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26458$as_echo "$ac_try_echo") >&5
26459  (eval "$ac_try") 2>&5
26460  ac_status=$?
26461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462  (exit $ac_status); }; }; then
26463  ac_cv_sizeof_int=`cat conftest.val`
26464else
26465  $as_echo "$as_me: program exited with status $ac_status" >&5
26466$as_echo "$as_me: failed program was:" >&5
26467sed 's/^/| /' conftest.$ac_ext >&5
26468
26469( exit $ac_status )
26470if test "$ac_cv_type_int" = yes; then
26471     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26473{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26474See \`config.log' for more details." >&5
26475$as_echo "$as_me: error: cannot compute sizeof (int)
26476See \`config.log' for more details." >&2;}
26477   { (exit 77); exit 77; }; }; }
26478   else
26479     ac_cv_sizeof_int=0
26480   fi
26481fi
26482rm -rf conftest.dSYM
26483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26484fi
26485rm -f conftest.val
26486fi
26487{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26488$as_echo "$ac_cv_sizeof_int" >&6; }
26489
26490
26491
26492cat >>confdefs.h <<_ACEOF
26493#define SIZEOF_INT $ac_cv_sizeof_int
26494_ACEOF
26495
26496
26497    if test $ac_cv_sizeof_int -eq 4; then
26498      bc_typedef_int32_t="typedef int int32_t;"
26499    fi
26500
26501fi
26502
26503  TYPEDEF_INT32_T=$bc_typedef_int32_t
26504
26505  bc_typedef_int64_t=
26506  { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
26507$as_echo_n "checking for int64_t... " >&6; }
26508if test "${ac_cv_type_int64_t+set}" = set; then
26509  $as_echo_n "(cached) " >&6
26510else
26511  ac_cv_type_int64_t=no
26512cat >conftest.$ac_ext <<_ACEOF
26513/* confdefs.h.  */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h.  */
26518$ac_includes_default
26519int
26520main ()
26521{
26522if (sizeof (int64_t))
26523       return 0;
26524  ;
26525  return 0;
26526}
26527_ACEOF
26528rm -f conftest.$ac_objext
26529if { (ac_try="$ac_compile"
26530case "(($ac_try" in
26531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26532  *) ac_try_echo=$ac_try;;
26533esac
26534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26535$as_echo "$ac_try_echo") >&5
26536  (eval "$ac_compile") 2>conftest.er1
26537  ac_status=$?
26538  grep -v '^ *+' conftest.er1 >conftest.err
26539  rm -f conftest.er1
26540  cat conftest.err >&5
26541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542  (exit $ac_status); } && {
26543	 test -z "$ac_c_werror_flag" ||
26544	 test ! -s conftest.err
26545       } && test -s conftest.$ac_objext; then
26546  cat >conftest.$ac_ext <<_ACEOF
26547/* confdefs.h.  */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h.  */
26552$ac_includes_default
26553int
26554main ()
26555{
26556if (sizeof ((int64_t)))
26557	  return 0;
26558  ;
26559  return 0;
26560}
26561_ACEOF
26562rm -f conftest.$ac_objext
26563if { (ac_try="$ac_compile"
26564case "(($ac_try" in
26565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26566  *) ac_try_echo=$ac_try;;
26567esac
26568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26569$as_echo "$ac_try_echo") >&5
26570  (eval "$ac_compile") 2>conftest.er1
26571  ac_status=$?
26572  grep -v '^ *+' conftest.er1 >conftest.err
26573  rm -f conftest.er1
26574  cat conftest.err >&5
26575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576  (exit $ac_status); } && {
26577	 test -z "$ac_c_werror_flag" ||
26578	 test ! -s conftest.err
26579       } && test -s conftest.$ac_objext; then
26580  :
26581else
26582  $as_echo "$as_me: failed program was:" >&5
26583sed 's/^/| /' conftest.$ac_ext >&5
26584
26585	ac_cv_type_int64_t=yes
26586fi
26587
26588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26589else
26590  $as_echo "$as_me: failed program was:" >&5
26591sed 's/^/| /' conftest.$ac_ext >&5
26592
26593
26594fi
26595
26596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26597fi
26598{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26599$as_echo "$ac_cv_type_int64_t" >&6; }
26600if test "x$ac_cv_type_int64_t" = x""yes; then
26601
26602    cat >>confdefs.h <<\_ACEOF
26603#define HAVE_INT64_T 1
26604_ACEOF
26605
26606
26607else
26608
26609    # The cast to long int works around a bug in the HP C Compiler
26610# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26611# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26612# This bug is HP SR number 8606223364.
26613{ $as_echo "$as_me:$LINENO: checking size of long" >&5
26614$as_echo_n "checking size of long... " >&6; }
26615if test "${ac_cv_sizeof_long+set}" = set; then
26616  $as_echo_n "(cached) " >&6
26617else
26618  if test "$cross_compiling" = yes; then
26619  # Depending upon the size, compute the lo and hi bounds.
26620cat >conftest.$ac_ext <<_ACEOF
26621/* confdefs.h.  */
26622_ACEOF
26623cat confdefs.h >>conftest.$ac_ext
26624cat >>conftest.$ac_ext <<_ACEOF
26625/* end confdefs.h.  */
26626$ac_includes_default
26627int
26628main ()
26629{
26630static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
26631test_array [0] = 0
26632
26633  ;
26634  return 0;
26635}
26636_ACEOF
26637rm -f conftest.$ac_objext
26638if { (ac_try="$ac_compile"
26639case "(($ac_try" in
26640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641  *) ac_try_echo=$ac_try;;
26642esac
26643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26644$as_echo "$ac_try_echo") >&5
26645  (eval "$ac_compile") 2>conftest.er1
26646  ac_status=$?
26647  grep -v '^ *+' conftest.er1 >conftest.err
26648  rm -f conftest.er1
26649  cat conftest.err >&5
26650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651  (exit $ac_status); } && {
26652	 test -z "$ac_c_werror_flag" ||
26653	 test ! -s conftest.err
26654       } && test -s conftest.$ac_objext; then
26655  ac_lo=0 ac_mid=0
26656  while :; do
26657    cat >conftest.$ac_ext <<_ACEOF
26658/* confdefs.h.  */
26659_ACEOF
26660cat confdefs.h >>conftest.$ac_ext
26661cat >>conftest.$ac_ext <<_ACEOF
26662/* end confdefs.h.  */
26663$ac_includes_default
26664int
26665main ()
26666{
26667static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26668test_array [0] = 0
26669
26670  ;
26671  return 0;
26672}
26673_ACEOF
26674rm -f conftest.$ac_objext
26675if { (ac_try="$ac_compile"
26676case "(($ac_try" in
26677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26678  *) ac_try_echo=$ac_try;;
26679esac
26680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26681$as_echo "$ac_try_echo") >&5
26682  (eval "$ac_compile") 2>conftest.er1
26683  ac_status=$?
26684  grep -v '^ *+' conftest.er1 >conftest.err
26685  rm -f conftest.er1
26686  cat conftest.err >&5
26687  $as_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_objext; then
26692  ac_hi=$ac_mid; break
26693else
26694  $as_echo "$as_me: failed program was:" >&5
26695sed 's/^/| /' conftest.$ac_ext >&5
26696
26697	ac_lo=`expr $ac_mid + 1`
26698			if test $ac_lo -le $ac_mid; then
26699			  ac_lo= ac_hi=
26700			  break
26701			fi
26702			ac_mid=`expr 2 '*' $ac_mid + 1`
26703fi
26704
26705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26706  done
26707else
26708  $as_echo "$as_me: failed program was:" >&5
26709sed 's/^/| /' conftest.$ac_ext >&5
26710
26711	cat >conftest.$ac_ext <<_ACEOF
26712/* confdefs.h.  */
26713_ACEOF
26714cat confdefs.h >>conftest.$ac_ext
26715cat >>conftest.$ac_ext <<_ACEOF
26716/* end confdefs.h.  */
26717$ac_includes_default
26718int
26719main ()
26720{
26721static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
26722test_array [0] = 0
26723
26724  ;
26725  return 0;
26726}
26727_ACEOF
26728rm -f conftest.$ac_objext
26729if { (ac_try="$ac_compile"
26730case "(($ac_try" in
26731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732  *) ac_try_echo=$ac_try;;
26733esac
26734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26735$as_echo "$ac_try_echo") >&5
26736  (eval "$ac_compile") 2>conftest.er1
26737  ac_status=$?
26738  grep -v '^ *+' conftest.er1 >conftest.err
26739  rm -f conftest.er1
26740  cat conftest.err >&5
26741  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742  (exit $ac_status); } && {
26743	 test -z "$ac_c_werror_flag" ||
26744	 test ! -s conftest.err
26745       } && test -s conftest.$ac_objext; then
26746  ac_hi=-1 ac_mid=-1
26747  while :; do
26748    cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h.  */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h.  */
26754$ac_includes_default
26755int
26756main ()
26757{
26758static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26759test_array [0] = 0
26760
26761  ;
26762  return 0;
26763}
26764_ACEOF
26765rm -f conftest.$ac_objext
26766if { (ac_try="$ac_compile"
26767case "(($ac_try" in
26768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769  *) ac_try_echo=$ac_try;;
26770esac
26771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26772$as_echo "$ac_try_echo") >&5
26773  (eval "$ac_compile") 2>conftest.er1
26774  ac_status=$?
26775  grep -v '^ *+' conftest.er1 >conftest.err
26776  rm -f conftest.er1
26777  cat conftest.err >&5
26778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779  (exit $ac_status); } && {
26780	 test -z "$ac_c_werror_flag" ||
26781	 test ! -s conftest.err
26782       } && test -s conftest.$ac_objext; then
26783  ac_lo=$ac_mid; break
26784else
26785  $as_echo "$as_me: failed program was:" >&5
26786sed 's/^/| /' conftest.$ac_ext >&5
26787
26788	ac_hi=`expr '(' $ac_mid ')' - 1`
26789			if test $ac_mid -le $ac_hi; then
26790			  ac_lo= ac_hi=
26791			  break
26792			fi
26793			ac_mid=`expr 2 '*' $ac_mid`
26794fi
26795
26796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797  done
26798else
26799  $as_echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802	ac_lo= ac_hi=
26803fi
26804
26805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806fi
26807
26808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809# Binary search between lo and hi bounds.
26810while test "x$ac_lo" != "x$ac_hi"; do
26811  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26812  cat >conftest.$ac_ext <<_ACEOF
26813/* confdefs.h.  */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h.  */
26818$ac_includes_default
26819int
26820main ()
26821{
26822static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26823test_array [0] = 0
26824
26825  ;
26826  return 0;
26827}
26828_ACEOF
26829rm -f conftest.$ac_objext
26830if { (ac_try="$ac_compile"
26831case "(($ac_try" in
26832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833  *) ac_try_echo=$ac_try;;
26834esac
26835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26836$as_echo "$ac_try_echo") >&5
26837  (eval "$ac_compile") 2>conftest.er1
26838  ac_status=$?
26839  grep -v '^ *+' conftest.er1 >conftest.err
26840  rm -f conftest.er1
26841  cat conftest.err >&5
26842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843  (exit $ac_status); } && {
26844	 test -z "$ac_c_werror_flag" ||
26845	 test ! -s conftest.err
26846       } && test -s conftest.$ac_objext; then
26847  ac_hi=$ac_mid
26848else
26849  $as_echo "$as_me: failed program was:" >&5
26850sed 's/^/| /' conftest.$ac_ext >&5
26851
26852	ac_lo=`expr '(' $ac_mid ')' + 1`
26853fi
26854
26855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26856done
26857case $ac_lo in
26858?*) ac_cv_sizeof_long=$ac_lo;;
26859'') if test "$ac_cv_type_long" = yes; then
26860     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26862{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26863See \`config.log' for more details." >&5
26864$as_echo "$as_me: error: cannot compute sizeof (long)
26865See \`config.log' for more details." >&2;}
26866   { (exit 77); exit 77; }; }; }
26867   else
26868     ac_cv_sizeof_long=0
26869   fi ;;
26870esac
26871else
26872  cat >conftest.$ac_ext <<_ACEOF
26873/* confdefs.h.  */
26874_ACEOF
26875cat confdefs.h >>conftest.$ac_ext
26876cat >>conftest.$ac_ext <<_ACEOF
26877/* end confdefs.h.  */
26878$ac_includes_default
26879static long int longval () { return (long int) (sizeof (long)); }
26880static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26881#include <stdio.h>
26882#include <stdlib.h>
26883int
26884main ()
26885{
26886
26887  FILE *f = fopen ("conftest.val", "w");
26888  if (! f)
26889    return 1;
26890  if (((long int) (sizeof (long))) < 0)
26891    {
26892      long int i = longval ();
26893      if (i != ((long int) (sizeof (long))))
26894	return 1;
26895      fprintf (f, "%ld", i);
26896    }
26897  else
26898    {
26899      unsigned long int i = ulongval ();
26900      if (i != ((long int) (sizeof (long))))
26901	return 1;
26902      fprintf (f, "%lu", i);
26903    }
26904  /* Do not output a trailing newline, as this causes \r\n confusion
26905     on some platforms.  */
26906  return ferror (f) || fclose (f) != 0;
26907
26908  ;
26909  return 0;
26910}
26911_ACEOF
26912rm -f conftest$ac_exeext
26913if { (ac_try="$ac_link"
26914case "(($ac_try" in
26915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916  *) ac_try_echo=$ac_try;;
26917esac
26918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26919$as_echo "$ac_try_echo") >&5
26920  (eval "$ac_link") 2>&5
26921  ac_status=$?
26922  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26924  { (case "(($ac_try" in
26925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926  *) ac_try_echo=$ac_try;;
26927esac
26928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26929$as_echo "$ac_try_echo") >&5
26930  (eval "$ac_try") 2>&5
26931  ac_status=$?
26932  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933  (exit $ac_status); }; }; then
26934  ac_cv_sizeof_long=`cat conftest.val`
26935else
26936  $as_echo "$as_me: program exited with status $ac_status" >&5
26937$as_echo "$as_me: failed program was:" >&5
26938sed 's/^/| /' conftest.$ac_ext >&5
26939
26940( exit $ac_status )
26941if test "$ac_cv_type_long" = yes; then
26942     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26944{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26945See \`config.log' for more details." >&5
26946$as_echo "$as_me: error: cannot compute sizeof (long)
26947See \`config.log' for more details." >&2;}
26948   { (exit 77); exit 77; }; }; }
26949   else
26950     ac_cv_sizeof_long=0
26951   fi
26952fi
26953rm -rf conftest.dSYM
26954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26955fi
26956rm -f conftest.val
26957fi
26958{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26959$as_echo "$ac_cv_sizeof_long" >&6; }
26960
26961
26962
26963cat >>confdefs.h <<_ACEOF
26964#define SIZEOF_LONG $ac_cv_sizeof_long
26965_ACEOF
26966
26967
26968    if test $ac_cv_sizeof_long -eq 8; then
26969      bc_typedef_int64_t="typedef long int64_t;"
26970    else
26971      # The cast to long int works around a bug in the HP C Compiler
26972# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26973# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26974# This bug is HP SR number 8606223364.
26975{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
26976$as_echo_n "checking size of long long... " >&6; }
26977if test "${ac_cv_sizeof_long_long+set}" = set; then
26978  $as_echo_n "(cached) " >&6
26979else
26980  if test "$cross_compiling" = yes; then
26981  # Depending upon the size, compute the lo and hi bounds.
26982cat >conftest.$ac_ext <<_ACEOF
26983/* confdefs.h.  */
26984_ACEOF
26985cat confdefs.h >>conftest.$ac_ext
26986cat >>conftest.$ac_ext <<_ACEOF
26987/* end confdefs.h.  */
26988$ac_includes_default
26989int
26990main ()
26991{
26992static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
26993test_array [0] = 0
26994
26995  ;
26996  return 0;
26997}
26998_ACEOF
26999rm -f conftest.$ac_objext
27000if { (ac_try="$ac_compile"
27001case "(($ac_try" in
27002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003  *) ac_try_echo=$ac_try;;
27004esac
27005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27006$as_echo "$ac_try_echo") >&5
27007  (eval "$ac_compile") 2>conftest.er1
27008  ac_status=$?
27009  grep -v '^ *+' conftest.er1 >conftest.err
27010  rm -f conftest.er1
27011  cat conftest.err >&5
27012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013  (exit $ac_status); } && {
27014	 test -z "$ac_c_werror_flag" ||
27015	 test ! -s conftest.err
27016       } && test -s conftest.$ac_objext; then
27017  ac_lo=0 ac_mid=0
27018  while :; do
27019    cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h.  */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h.  */
27025$ac_includes_default
27026int
27027main ()
27028{
27029static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
27030test_array [0] = 0
27031
27032  ;
27033  return 0;
27034}
27035_ACEOF
27036rm -f conftest.$ac_objext
27037if { (ac_try="$ac_compile"
27038case "(($ac_try" in
27039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040  *) ac_try_echo=$ac_try;;
27041esac
27042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27043$as_echo "$ac_try_echo") >&5
27044  (eval "$ac_compile") 2>conftest.er1
27045  ac_status=$?
27046  grep -v '^ *+' conftest.er1 >conftest.err
27047  rm -f conftest.er1
27048  cat conftest.err >&5
27049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050  (exit $ac_status); } && {
27051	 test -z "$ac_c_werror_flag" ||
27052	 test ! -s conftest.err
27053       } && test -s conftest.$ac_objext; then
27054  ac_hi=$ac_mid; break
27055else
27056  $as_echo "$as_me: failed program was:" >&5
27057sed 's/^/| /' conftest.$ac_ext >&5
27058
27059	ac_lo=`expr $ac_mid + 1`
27060			if test $ac_lo -le $ac_mid; then
27061			  ac_lo= ac_hi=
27062			  break
27063			fi
27064			ac_mid=`expr 2 '*' $ac_mid + 1`
27065fi
27066
27067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27068  done
27069else
27070  $as_echo "$as_me: failed program was:" >&5
27071sed 's/^/| /' conftest.$ac_ext >&5
27072
27073	cat >conftest.$ac_ext <<_ACEOF
27074/* confdefs.h.  */
27075_ACEOF
27076cat confdefs.h >>conftest.$ac_ext
27077cat >>conftest.$ac_ext <<_ACEOF
27078/* end confdefs.h.  */
27079$ac_includes_default
27080int
27081main ()
27082{
27083static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
27084test_array [0] = 0
27085
27086  ;
27087  return 0;
27088}
27089_ACEOF
27090rm -f conftest.$ac_objext
27091if { (ac_try="$ac_compile"
27092case "(($ac_try" in
27093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094  *) ac_try_echo=$ac_try;;
27095esac
27096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27097$as_echo "$ac_try_echo") >&5
27098  (eval "$ac_compile") 2>conftest.er1
27099  ac_status=$?
27100  grep -v '^ *+' conftest.er1 >conftest.err
27101  rm -f conftest.er1
27102  cat conftest.err >&5
27103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104  (exit $ac_status); } && {
27105	 test -z "$ac_c_werror_flag" ||
27106	 test ! -s conftest.err
27107       } && test -s conftest.$ac_objext; then
27108  ac_hi=-1 ac_mid=-1
27109  while :; do
27110    cat >conftest.$ac_ext <<_ACEOF
27111/* confdefs.h.  */
27112_ACEOF
27113cat confdefs.h >>conftest.$ac_ext
27114cat >>conftest.$ac_ext <<_ACEOF
27115/* end confdefs.h.  */
27116$ac_includes_default
27117int
27118main ()
27119{
27120static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
27121test_array [0] = 0
27122
27123  ;
27124  return 0;
27125}
27126_ACEOF
27127rm -f conftest.$ac_objext
27128if { (ac_try="$ac_compile"
27129case "(($ac_try" in
27130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131  *) ac_try_echo=$ac_try;;
27132esac
27133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27134$as_echo "$ac_try_echo") >&5
27135  (eval "$ac_compile") 2>conftest.er1
27136  ac_status=$?
27137  grep -v '^ *+' conftest.er1 >conftest.err
27138  rm -f conftest.er1
27139  cat conftest.err >&5
27140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141  (exit $ac_status); } && {
27142	 test -z "$ac_c_werror_flag" ||
27143	 test ! -s conftest.err
27144       } && test -s conftest.$ac_objext; then
27145  ac_lo=$ac_mid; break
27146else
27147  $as_echo "$as_me: failed program was:" >&5
27148sed 's/^/| /' conftest.$ac_ext >&5
27149
27150	ac_hi=`expr '(' $ac_mid ')' - 1`
27151			if test $ac_mid -le $ac_hi; then
27152			  ac_lo= ac_hi=
27153			  break
27154			fi
27155			ac_mid=`expr 2 '*' $ac_mid`
27156fi
27157
27158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159  done
27160else
27161  $as_echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
27164	ac_lo= ac_hi=
27165fi
27166
27167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168fi
27169
27170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171# Binary search between lo and hi bounds.
27172while test "x$ac_lo" != "x$ac_hi"; do
27173  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27174  cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h.  */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h.  */
27180$ac_includes_default
27181int
27182main ()
27183{
27184static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
27185test_array [0] = 0
27186
27187  ;
27188  return 0;
27189}
27190_ACEOF
27191rm -f conftest.$ac_objext
27192if { (ac_try="$ac_compile"
27193case "(($ac_try" in
27194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195  *) ac_try_echo=$ac_try;;
27196esac
27197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27198$as_echo "$ac_try_echo") >&5
27199  (eval "$ac_compile") 2>conftest.er1
27200  ac_status=$?
27201  grep -v '^ *+' conftest.er1 >conftest.err
27202  rm -f conftest.er1
27203  cat conftest.err >&5
27204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205  (exit $ac_status); } && {
27206	 test -z "$ac_c_werror_flag" ||
27207	 test ! -s conftest.err
27208       } && test -s conftest.$ac_objext; then
27209  ac_hi=$ac_mid
27210else
27211  $as_echo "$as_me: failed program was:" >&5
27212sed 's/^/| /' conftest.$ac_ext >&5
27213
27214	ac_lo=`expr '(' $ac_mid ')' + 1`
27215fi
27216
27217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27218done
27219case $ac_lo in
27220?*) ac_cv_sizeof_long_long=$ac_lo;;
27221'') if test "$ac_cv_type_long_long" = yes; then
27222     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27224{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
27225See \`config.log' for more details." >&5
27226$as_echo "$as_me: error: cannot compute sizeof (long long)
27227See \`config.log' for more details." >&2;}
27228   { (exit 77); exit 77; }; }; }
27229   else
27230     ac_cv_sizeof_long_long=0
27231   fi ;;
27232esac
27233else
27234  cat >conftest.$ac_ext <<_ACEOF
27235/* confdefs.h.  */
27236_ACEOF
27237cat confdefs.h >>conftest.$ac_ext
27238cat >>conftest.$ac_ext <<_ACEOF
27239/* end confdefs.h.  */
27240$ac_includes_default
27241static long int longval () { return (long int) (sizeof (long long)); }
27242static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
27243#include <stdio.h>
27244#include <stdlib.h>
27245int
27246main ()
27247{
27248
27249  FILE *f = fopen ("conftest.val", "w");
27250  if (! f)
27251    return 1;
27252  if (((long int) (sizeof (long long))) < 0)
27253    {
27254      long int i = longval ();
27255      if (i != ((long int) (sizeof (long long))))
27256	return 1;
27257      fprintf (f, "%ld", i);
27258    }
27259  else
27260    {
27261      unsigned long int i = ulongval ();
27262      if (i != ((long int) (sizeof (long long))))
27263	return 1;
27264      fprintf (f, "%lu", i);
27265    }
27266  /* Do not output a trailing newline, as this causes \r\n confusion
27267     on some platforms.  */
27268  return ferror (f) || fclose (f) != 0;
27269
27270  ;
27271  return 0;
27272}
27273_ACEOF
27274rm -f conftest$ac_exeext
27275if { (ac_try="$ac_link"
27276case "(($ac_try" in
27277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278  *) ac_try_echo=$ac_try;;
27279esac
27280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27281$as_echo "$ac_try_echo") >&5
27282  (eval "$ac_link") 2>&5
27283  ac_status=$?
27284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27286  { (case "(($ac_try" in
27287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27288  *) ac_try_echo=$ac_try;;
27289esac
27290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27291$as_echo "$ac_try_echo") >&5
27292  (eval "$ac_try") 2>&5
27293  ac_status=$?
27294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295  (exit $ac_status); }; }; then
27296  ac_cv_sizeof_long_long=`cat conftest.val`
27297else
27298  $as_echo "$as_me: program exited with status $ac_status" >&5
27299$as_echo "$as_me: failed program was:" >&5
27300sed 's/^/| /' conftest.$ac_ext >&5
27301
27302( exit $ac_status )
27303if test "$ac_cv_type_long_long" = yes; then
27304     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27306{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
27307See \`config.log' for more details." >&5
27308$as_echo "$as_me: error: cannot compute sizeof (long long)
27309See \`config.log' for more details." >&2;}
27310   { (exit 77); exit 77; }; }; }
27311   else
27312     ac_cv_sizeof_long_long=0
27313   fi
27314fi
27315rm -rf conftest.dSYM
27316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27317fi
27318rm -f conftest.val
27319fi
27320{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
27321$as_echo "$ac_cv_sizeof_long_long" >&6; }
27322
27323
27324
27325cat >>confdefs.h <<_ACEOF
27326#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
27327_ACEOF
27328
27329
27330      if test $ac_cv_sizeof_long_long -eq 8; then
27331        cat >>confdefs.h <<\_ACEOF
27332#define HAVE_INT64_T 1
27333_ACEOF
27334
27335        bc_typedef_int64_t="typedef long long int64_t;"
27336      fi
27337    fi
27338
27339fi
27340
27341  TYPEDEF_INT64_T=$bc_typedef_int64_t
27342
27343  bc_typedef_uint8_t=
27344  { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
27345$as_echo_n "checking for uint8_t... " >&6; }
27346if test "${ac_cv_type_uint8_t+set}" = set; then
27347  $as_echo_n "(cached) " >&6
27348else
27349  ac_cv_type_uint8_t=no
27350cat >conftest.$ac_ext <<_ACEOF
27351/* confdefs.h.  */
27352_ACEOF
27353cat confdefs.h >>conftest.$ac_ext
27354cat >>conftest.$ac_ext <<_ACEOF
27355/* end confdefs.h.  */
27356$ac_includes_default
27357int
27358main ()
27359{
27360if (sizeof (uint8_t))
27361       return 0;
27362  ;
27363  return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext
27367if { (ac_try="$ac_compile"
27368case "(($ac_try" in
27369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370  *) ac_try_echo=$ac_try;;
27371esac
27372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27373$as_echo "$ac_try_echo") >&5
27374  (eval "$ac_compile") 2>conftest.er1
27375  ac_status=$?
27376  grep -v '^ *+' conftest.er1 >conftest.err
27377  rm -f conftest.er1
27378  cat conftest.err >&5
27379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380  (exit $ac_status); } && {
27381	 test -z "$ac_c_werror_flag" ||
27382	 test ! -s conftest.err
27383       } && test -s conftest.$ac_objext; then
27384  cat >conftest.$ac_ext <<_ACEOF
27385/* confdefs.h.  */
27386_ACEOF
27387cat confdefs.h >>conftest.$ac_ext
27388cat >>conftest.$ac_ext <<_ACEOF
27389/* end confdefs.h.  */
27390$ac_includes_default
27391int
27392main ()
27393{
27394if (sizeof ((uint8_t)))
27395	  return 0;
27396  ;
27397  return 0;
27398}
27399_ACEOF
27400rm -f conftest.$ac_objext
27401if { (ac_try="$ac_compile"
27402case "(($ac_try" in
27403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404  *) ac_try_echo=$ac_try;;
27405esac
27406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27407$as_echo "$ac_try_echo") >&5
27408  (eval "$ac_compile") 2>conftest.er1
27409  ac_status=$?
27410  grep -v '^ *+' conftest.er1 >conftest.err
27411  rm -f conftest.er1
27412  cat conftest.err >&5
27413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414  (exit $ac_status); } && {
27415	 test -z "$ac_c_werror_flag" ||
27416	 test ! -s conftest.err
27417       } && test -s conftest.$ac_objext; then
27418  :
27419else
27420  $as_echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423	ac_cv_type_uint8_t=yes
27424fi
27425
27426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27427else
27428  $as_echo "$as_me: failed program was:" >&5
27429sed 's/^/| /' conftest.$ac_ext >&5
27430
27431
27432fi
27433
27434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27435fi
27436{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
27437$as_echo "$ac_cv_type_uint8_t" >&6; }
27438if test "x$ac_cv_type_uint8_t" = x""yes; then
27439  :
27440else
27441
27442    # The cast to long int works around a bug in the HP C Compiler
27443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27445# This bug is HP SR number 8606223364.
27446{ $as_echo "$as_me:$LINENO: checking size of unsigned char" >&5
27447$as_echo_n "checking size of unsigned char... " >&6; }
27448if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
27449  $as_echo_n "(cached) " >&6
27450else
27451  if test "$cross_compiling" = yes; then
27452  # Depending upon the size, compute the lo and hi bounds.
27453cat >conftest.$ac_ext <<_ACEOF
27454/* confdefs.h.  */
27455_ACEOF
27456cat confdefs.h >>conftest.$ac_ext
27457cat >>conftest.$ac_ext <<_ACEOF
27458/* end confdefs.h.  */
27459$ac_includes_default
27460int
27461main ()
27462{
27463static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= 0)];
27464test_array [0] = 0
27465
27466  ;
27467  return 0;
27468}
27469_ACEOF
27470rm -f conftest.$ac_objext
27471if { (ac_try="$ac_compile"
27472case "(($ac_try" in
27473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474  *) ac_try_echo=$ac_try;;
27475esac
27476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27477$as_echo "$ac_try_echo") >&5
27478  (eval "$ac_compile") 2>conftest.er1
27479  ac_status=$?
27480  grep -v '^ *+' conftest.er1 >conftest.err
27481  rm -f conftest.er1
27482  cat conftest.err >&5
27483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484  (exit $ac_status); } && {
27485	 test -z "$ac_c_werror_flag" ||
27486	 test ! -s conftest.err
27487       } && test -s conftest.$ac_objext; then
27488  ac_lo=0 ac_mid=0
27489  while :; do
27490    cat >conftest.$ac_ext <<_ACEOF
27491/* confdefs.h.  */
27492_ACEOF
27493cat confdefs.h >>conftest.$ac_ext
27494cat >>conftest.$ac_ext <<_ACEOF
27495/* end confdefs.h.  */
27496$ac_includes_default
27497int
27498main ()
27499{
27500static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
27501test_array [0] = 0
27502
27503  ;
27504  return 0;
27505}
27506_ACEOF
27507rm -f conftest.$ac_objext
27508if { (ac_try="$ac_compile"
27509case "(($ac_try" in
27510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27511  *) ac_try_echo=$ac_try;;
27512esac
27513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27514$as_echo "$ac_try_echo") >&5
27515  (eval "$ac_compile") 2>conftest.er1
27516  ac_status=$?
27517  grep -v '^ *+' conftest.er1 >conftest.err
27518  rm -f conftest.er1
27519  cat conftest.err >&5
27520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521  (exit $ac_status); } && {
27522	 test -z "$ac_c_werror_flag" ||
27523	 test ! -s conftest.err
27524       } && test -s conftest.$ac_objext; then
27525  ac_hi=$ac_mid; break
27526else
27527  $as_echo "$as_me: failed program was:" >&5
27528sed 's/^/| /' conftest.$ac_ext >&5
27529
27530	ac_lo=`expr $ac_mid + 1`
27531			if test $ac_lo -le $ac_mid; then
27532			  ac_lo= ac_hi=
27533			  break
27534			fi
27535			ac_mid=`expr 2 '*' $ac_mid + 1`
27536fi
27537
27538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539  done
27540else
27541  $as_echo "$as_me: failed program was:" >&5
27542sed 's/^/| /' conftest.$ac_ext >&5
27543
27544	cat >conftest.$ac_ext <<_ACEOF
27545/* confdefs.h.  */
27546_ACEOF
27547cat confdefs.h >>conftest.$ac_ext
27548cat >>conftest.$ac_ext <<_ACEOF
27549/* end confdefs.h.  */
27550$ac_includes_default
27551int
27552main ()
27553{
27554static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) < 0)];
27555test_array [0] = 0
27556
27557  ;
27558  return 0;
27559}
27560_ACEOF
27561rm -f conftest.$ac_objext
27562if { (ac_try="$ac_compile"
27563case "(($ac_try" in
27564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565  *) ac_try_echo=$ac_try;;
27566esac
27567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27568$as_echo "$ac_try_echo") >&5
27569  (eval "$ac_compile") 2>conftest.er1
27570  ac_status=$?
27571  grep -v '^ *+' conftest.er1 >conftest.err
27572  rm -f conftest.er1
27573  cat conftest.err >&5
27574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575  (exit $ac_status); } && {
27576	 test -z "$ac_c_werror_flag" ||
27577	 test ! -s conftest.err
27578       } && test -s conftest.$ac_objext; then
27579  ac_hi=-1 ac_mid=-1
27580  while :; do
27581    cat >conftest.$ac_ext <<_ACEOF
27582/* confdefs.h.  */
27583_ACEOF
27584cat confdefs.h >>conftest.$ac_ext
27585cat >>conftest.$ac_ext <<_ACEOF
27586/* end confdefs.h.  */
27587$ac_includes_default
27588int
27589main ()
27590{
27591static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= $ac_mid)];
27592test_array [0] = 0
27593
27594  ;
27595  return 0;
27596}
27597_ACEOF
27598rm -f conftest.$ac_objext
27599if { (ac_try="$ac_compile"
27600case "(($ac_try" in
27601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602  *) ac_try_echo=$ac_try;;
27603esac
27604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27605$as_echo "$ac_try_echo") >&5
27606  (eval "$ac_compile") 2>conftest.er1
27607  ac_status=$?
27608  grep -v '^ *+' conftest.er1 >conftest.err
27609  rm -f conftest.er1
27610  cat conftest.err >&5
27611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612  (exit $ac_status); } && {
27613	 test -z "$ac_c_werror_flag" ||
27614	 test ! -s conftest.err
27615       } && test -s conftest.$ac_objext; then
27616  ac_lo=$ac_mid; break
27617else
27618  $as_echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
27621	ac_hi=`expr '(' $ac_mid ')' - 1`
27622			if test $ac_mid -le $ac_hi; then
27623			  ac_lo= ac_hi=
27624			  break
27625			fi
27626			ac_mid=`expr 2 '*' $ac_mid`
27627fi
27628
27629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27630  done
27631else
27632  $as_echo "$as_me: failed program was:" >&5
27633sed 's/^/| /' conftest.$ac_ext >&5
27634
27635	ac_lo= ac_hi=
27636fi
27637
27638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639fi
27640
27641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27642# Binary search between lo and hi bounds.
27643while test "x$ac_lo" != "x$ac_hi"; do
27644  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27645  cat >conftest.$ac_ext <<_ACEOF
27646/* confdefs.h.  */
27647_ACEOF
27648cat confdefs.h >>conftest.$ac_ext
27649cat >>conftest.$ac_ext <<_ACEOF
27650/* end confdefs.h.  */
27651$ac_includes_default
27652int
27653main ()
27654{
27655static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
27656test_array [0] = 0
27657
27658  ;
27659  return 0;
27660}
27661_ACEOF
27662rm -f conftest.$ac_objext
27663if { (ac_try="$ac_compile"
27664case "(($ac_try" in
27665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666  *) ac_try_echo=$ac_try;;
27667esac
27668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27669$as_echo "$ac_try_echo") >&5
27670  (eval "$ac_compile") 2>conftest.er1
27671  ac_status=$?
27672  grep -v '^ *+' conftest.er1 >conftest.err
27673  rm -f conftest.er1
27674  cat conftest.err >&5
27675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676  (exit $ac_status); } && {
27677	 test -z "$ac_c_werror_flag" ||
27678	 test ! -s conftest.err
27679       } && test -s conftest.$ac_objext; then
27680  ac_hi=$ac_mid
27681else
27682  $as_echo "$as_me: failed program was:" >&5
27683sed 's/^/| /' conftest.$ac_ext >&5
27684
27685	ac_lo=`expr '(' $ac_mid ')' + 1`
27686fi
27687
27688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27689done
27690case $ac_lo in
27691?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
27692'') if test "$ac_cv_type_unsigned_char" = yes; then
27693     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27695{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
27696See \`config.log' for more details." >&5
27697$as_echo "$as_me: error: cannot compute sizeof (unsigned char)
27698See \`config.log' for more details." >&2;}
27699   { (exit 77); exit 77; }; }; }
27700   else
27701     ac_cv_sizeof_unsigned_char=0
27702   fi ;;
27703esac
27704else
27705  cat >conftest.$ac_ext <<_ACEOF
27706/* confdefs.h.  */
27707_ACEOF
27708cat confdefs.h >>conftest.$ac_ext
27709cat >>conftest.$ac_ext <<_ACEOF
27710/* end confdefs.h.  */
27711$ac_includes_default
27712static long int longval () { return (long int) (sizeof (unsigned char)); }
27713static unsigned long int ulongval () { return (long int) (sizeof (unsigned char)); }
27714#include <stdio.h>
27715#include <stdlib.h>
27716int
27717main ()
27718{
27719
27720  FILE *f = fopen ("conftest.val", "w");
27721  if (! f)
27722    return 1;
27723  if (((long int) (sizeof (unsigned char))) < 0)
27724    {
27725      long int i = longval ();
27726      if (i != ((long int) (sizeof (unsigned char))))
27727	return 1;
27728      fprintf (f, "%ld", i);
27729    }
27730  else
27731    {
27732      unsigned long int i = ulongval ();
27733      if (i != ((long int) (sizeof (unsigned char))))
27734	return 1;
27735      fprintf (f, "%lu", i);
27736    }
27737  /* Do not output a trailing newline, as this causes \r\n confusion
27738     on some platforms.  */
27739  return ferror (f) || fclose (f) != 0;
27740
27741  ;
27742  return 0;
27743}
27744_ACEOF
27745rm -f conftest$ac_exeext
27746if { (ac_try="$ac_link"
27747case "(($ac_try" in
27748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749  *) ac_try_echo=$ac_try;;
27750esac
27751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27752$as_echo "$ac_try_echo") >&5
27753  (eval "$ac_link") 2>&5
27754  ac_status=$?
27755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27757  { (case "(($ac_try" in
27758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759  *) ac_try_echo=$ac_try;;
27760esac
27761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27762$as_echo "$ac_try_echo") >&5
27763  (eval "$ac_try") 2>&5
27764  ac_status=$?
27765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766  (exit $ac_status); }; }; then
27767  ac_cv_sizeof_unsigned_char=`cat conftest.val`
27768else
27769  $as_echo "$as_me: program exited with status $ac_status" >&5
27770$as_echo "$as_me: failed program was:" >&5
27771sed 's/^/| /' conftest.$ac_ext >&5
27772
27773( exit $ac_status )
27774if test "$ac_cv_type_unsigned_char" = yes; then
27775     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27777{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
27778See \`config.log' for more details." >&5
27779$as_echo "$as_me: error: cannot compute sizeof (unsigned char)
27780See \`config.log' for more details." >&2;}
27781   { (exit 77); exit 77; }; }; }
27782   else
27783     ac_cv_sizeof_unsigned_char=0
27784   fi
27785fi
27786rm -rf conftest.dSYM
27787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27788fi
27789rm -f conftest.val
27790fi
27791{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
27792$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
27793
27794
27795
27796cat >>confdefs.h <<_ACEOF
27797#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
27798_ACEOF
27799
27800
27801    if test $ac_cv_sizeof_unsigned_char -eq 1; then
27802      bc_typedef_uint8_t="typedef unsigned char uint8_t;"
27803    fi
27804
27805fi
27806
27807  TYPEDEF_UINT8_T=$bc_typedef_uint8_t
27808
27809  bc_typedef_uint16_t=
27810  { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
27811$as_echo_n "checking for uint16_t... " >&6; }
27812if test "${ac_cv_type_uint16_t+set}" = set; then
27813  $as_echo_n "(cached) " >&6
27814else
27815  ac_cv_type_uint16_t=no
27816cat >conftest.$ac_ext <<_ACEOF
27817/* confdefs.h.  */
27818_ACEOF
27819cat confdefs.h >>conftest.$ac_ext
27820cat >>conftest.$ac_ext <<_ACEOF
27821/* end confdefs.h.  */
27822$ac_includes_default
27823int
27824main ()
27825{
27826if (sizeof (uint16_t))
27827       return 0;
27828  ;
27829  return 0;
27830}
27831_ACEOF
27832rm -f conftest.$ac_objext
27833if { (ac_try="$ac_compile"
27834case "(($ac_try" in
27835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836  *) ac_try_echo=$ac_try;;
27837esac
27838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27839$as_echo "$ac_try_echo") >&5
27840  (eval "$ac_compile") 2>conftest.er1
27841  ac_status=$?
27842  grep -v '^ *+' conftest.er1 >conftest.err
27843  rm -f conftest.er1
27844  cat conftest.err >&5
27845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846  (exit $ac_status); } && {
27847	 test -z "$ac_c_werror_flag" ||
27848	 test ! -s conftest.err
27849       } && test -s conftest.$ac_objext; then
27850  cat >conftest.$ac_ext <<_ACEOF
27851/* confdefs.h.  */
27852_ACEOF
27853cat confdefs.h >>conftest.$ac_ext
27854cat >>conftest.$ac_ext <<_ACEOF
27855/* end confdefs.h.  */
27856$ac_includes_default
27857int
27858main ()
27859{
27860if (sizeof ((uint16_t)))
27861	  return 0;
27862  ;
27863  return 0;
27864}
27865_ACEOF
27866rm -f conftest.$ac_objext
27867if { (ac_try="$ac_compile"
27868case "(($ac_try" in
27869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870  *) ac_try_echo=$ac_try;;
27871esac
27872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27873$as_echo "$ac_try_echo") >&5
27874  (eval "$ac_compile") 2>conftest.er1
27875  ac_status=$?
27876  grep -v '^ *+' conftest.er1 >conftest.err
27877  rm -f conftest.er1
27878  cat conftest.err >&5
27879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880  (exit $ac_status); } && {
27881	 test -z "$ac_c_werror_flag" ||
27882	 test ! -s conftest.err
27883       } && test -s conftest.$ac_objext; then
27884  :
27885else
27886  $as_echo "$as_me: failed program was:" >&5
27887sed 's/^/| /' conftest.$ac_ext >&5
27888
27889	ac_cv_type_uint16_t=yes
27890fi
27891
27892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893else
27894  $as_echo "$as_me: failed program was:" >&5
27895sed 's/^/| /' conftest.$ac_ext >&5
27896
27897
27898fi
27899
27900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27901fi
27902{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
27903$as_echo "$ac_cv_type_uint16_t" >&6; }
27904if test "x$ac_cv_type_uint16_t" = x""yes; then
27905  :
27906else
27907
27908    # The cast to long int works around a bug in the HP C Compiler
27909# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911# This bug is HP SR number 8606223364.
27912{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
27913$as_echo_n "checking size of unsigned short... " >&6; }
27914if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
27915  $as_echo_n "(cached) " >&6
27916else
27917  if test "$cross_compiling" = yes; then
27918  # Depending upon the size, compute the lo and hi bounds.
27919cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h.  */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h.  */
27925$ac_includes_default
27926int
27927main ()
27928{
27929static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
27930test_array [0] = 0
27931
27932  ;
27933  return 0;
27934}
27935_ACEOF
27936rm -f conftest.$ac_objext
27937if { (ac_try="$ac_compile"
27938case "(($ac_try" in
27939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940  *) ac_try_echo=$ac_try;;
27941esac
27942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27943$as_echo "$ac_try_echo") >&5
27944  (eval "$ac_compile") 2>conftest.er1
27945  ac_status=$?
27946  grep -v '^ *+' conftest.er1 >conftest.err
27947  rm -f conftest.er1
27948  cat conftest.err >&5
27949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950  (exit $ac_status); } && {
27951	 test -z "$ac_c_werror_flag" ||
27952	 test ! -s conftest.err
27953       } && test -s conftest.$ac_objext; then
27954  ac_lo=0 ac_mid=0
27955  while :; do
27956    cat >conftest.$ac_ext <<_ACEOF
27957/* confdefs.h.  */
27958_ACEOF
27959cat confdefs.h >>conftest.$ac_ext
27960cat >>conftest.$ac_ext <<_ACEOF
27961/* end confdefs.h.  */
27962$ac_includes_default
27963int
27964main ()
27965{
27966static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
27967test_array [0] = 0
27968
27969  ;
27970  return 0;
27971}
27972_ACEOF
27973rm -f conftest.$ac_objext
27974if { (ac_try="$ac_compile"
27975case "(($ac_try" in
27976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977  *) ac_try_echo=$ac_try;;
27978esac
27979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27980$as_echo "$ac_try_echo") >&5
27981  (eval "$ac_compile") 2>conftest.er1
27982  ac_status=$?
27983  grep -v '^ *+' conftest.er1 >conftest.err
27984  rm -f conftest.er1
27985  cat conftest.err >&5
27986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987  (exit $ac_status); } && {
27988	 test -z "$ac_c_werror_flag" ||
27989	 test ! -s conftest.err
27990       } && test -s conftest.$ac_objext; then
27991  ac_hi=$ac_mid; break
27992else
27993  $as_echo "$as_me: failed program was:" >&5
27994sed 's/^/| /' conftest.$ac_ext >&5
27995
27996	ac_lo=`expr $ac_mid + 1`
27997			if test $ac_lo -le $ac_mid; then
27998			  ac_lo= ac_hi=
27999			  break
28000			fi
28001			ac_mid=`expr 2 '*' $ac_mid + 1`
28002fi
28003
28004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28005  done
28006else
28007  $as_echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
28010	cat >conftest.$ac_ext <<_ACEOF
28011/* confdefs.h.  */
28012_ACEOF
28013cat confdefs.h >>conftest.$ac_ext
28014cat >>conftest.$ac_ext <<_ACEOF
28015/* end confdefs.h.  */
28016$ac_includes_default
28017int
28018main ()
28019{
28020static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
28021test_array [0] = 0
28022
28023  ;
28024  return 0;
28025}
28026_ACEOF
28027rm -f conftest.$ac_objext
28028if { (ac_try="$ac_compile"
28029case "(($ac_try" in
28030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031  *) ac_try_echo=$ac_try;;
28032esac
28033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28034$as_echo "$ac_try_echo") >&5
28035  (eval "$ac_compile") 2>conftest.er1
28036  ac_status=$?
28037  grep -v '^ *+' conftest.er1 >conftest.err
28038  rm -f conftest.er1
28039  cat conftest.err >&5
28040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041  (exit $ac_status); } && {
28042	 test -z "$ac_c_werror_flag" ||
28043	 test ! -s conftest.err
28044       } && test -s conftest.$ac_objext; then
28045  ac_hi=-1 ac_mid=-1
28046  while :; do
28047    cat >conftest.$ac_ext <<_ACEOF
28048/* confdefs.h.  */
28049_ACEOF
28050cat confdefs.h >>conftest.$ac_ext
28051cat >>conftest.$ac_ext <<_ACEOF
28052/* end confdefs.h.  */
28053$ac_includes_default
28054int
28055main ()
28056{
28057static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
28058test_array [0] = 0
28059
28060  ;
28061  return 0;
28062}
28063_ACEOF
28064rm -f conftest.$ac_objext
28065if { (ac_try="$ac_compile"
28066case "(($ac_try" in
28067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068  *) ac_try_echo=$ac_try;;
28069esac
28070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28071$as_echo "$ac_try_echo") >&5
28072  (eval "$ac_compile") 2>conftest.er1
28073  ac_status=$?
28074  grep -v '^ *+' conftest.er1 >conftest.err
28075  rm -f conftest.er1
28076  cat conftest.err >&5
28077  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078  (exit $ac_status); } && {
28079	 test -z "$ac_c_werror_flag" ||
28080	 test ! -s conftest.err
28081       } && test -s conftest.$ac_objext; then
28082  ac_lo=$ac_mid; break
28083else
28084  $as_echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087	ac_hi=`expr '(' $ac_mid ')' - 1`
28088			if test $ac_mid -le $ac_hi; then
28089			  ac_lo= ac_hi=
28090			  break
28091			fi
28092			ac_mid=`expr 2 '*' $ac_mid`
28093fi
28094
28095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096  done
28097else
28098  $as_echo "$as_me: failed program was:" >&5
28099sed 's/^/| /' conftest.$ac_ext >&5
28100
28101	ac_lo= ac_hi=
28102fi
28103
28104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28105fi
28106
28107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28108# Binary search between lo and hi bounds.
28109while test "x$ac_lo" != "x$ac_hi"; do
28110  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28111  cat >conftest.$ac_ext <<_ACEOF
28112/* confdefs.h.  */
28113_ACEOF
28114cat confdefs.h >>conftest.$ac_ext
28115cat >>conftest.$ac_ext <<_ACEOF
28116/* end confdefs.h.  */
28117$ac_includes_default
28118int
28119main ()
28120{
28121static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
28122test_array [0] = 0
28123
28124  ;
28125  return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext
28129if { (ac_try="$ac_compile"
28130case "(($ac_try" in
28131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132  *) ac_try_echo=$ac_try;;
28133esac
28134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28135$as_echo "$ac_try_echo") >&5
28136  (eval "$ac_compile") 2>conftest.er1
28137  ac_status=$?
28138  grep -v '^ *+' conftest.er1 >conftest.err
28139  rm -f conftest.er1
28140  cat conftest.err >&5
28141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142  (exit $ac_status); } && {
28143	 test -z "$ac_c_werror_flag" ||
28144	 test ! -s conftest.err
28145       } && test -s conftest.$ac_objext; then
28146  ac_hi=$ac_mid
28147else
28148  $as_echo "$as_me: failed program was:" >&5
28149sed 's/^/| /' conftest.$ac_ext >&5
28150
28151	ac_lo=`expr '(' $ac_mid ')' + 1`
28152fi
28153
28154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28155done
28156case $ac_lo in
28157?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
28158'') if test "$ac_cv_type_unsigned_short" = yes; then
28159     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28161{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
28162See \`config.log' for more details." >&5
28163$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
28164See \`config.log' for more details." >&2;}
28165   { (exit 77); exit 77; }; }; }
28166   else
28167     ac_cv_sizeof_unsigned_short=0
28168   fi ;;
28169esac
28170else
28171  cat >conftest.$ac_ext <<_ACEOF
28172/* confdefs.h.  */
28173_ACEOF
28174cat confdefs.h >>conftest.$ac_ext
28175cat >>conftest.$ac_ext <<_ACEOF
28176/* end confdefs.h.  */
28177$ac_includes_default
28178static long int longval () { return (long int) (sizeof (unsigned short)); }
28179static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
28180#include <stdio.h>
28181#include <stdlib.h>
28182int
28183main ()
28184{
28185
28186  FILE *f = fopen ("conftest.val", "w");
28187  if (! f)
28188    return 1;
28189  if (((long int) (sizeof (unsigned short))) < 0)
28190    {
28191      long int i = longval ();
28192      if (i != ((long int) (sizeof (unsigned short))))
28193	return 1;
28194      fprintf (f, "%ld", i);
28195    }
28196  else
28197    {
28198      unsigned long int i = ulongval ();
28199      if (i != ((long int) (sizeof (unsigned short))))
28200	return 1;
28201      fprintf (f, "%lu", i);
28202    }
28203  /* Do not output a trailing newline, as this causes \r\n confusion
28204     on some platforms.  */
28205  return ferror (f) || fclose (f) != 0;
28206
28207  ;
28208  return 0;
28209}
28210_ACEOF
28211rm -f conftest$ac_exeext
28212if { (ac_try="$ac_link"
28213case "(($ac_try" in
28214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215  *) ac_try_echo=$ac_try;;
28216esac
28217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28218$as_echo "$ac_try_echo") >&5
28219  (eval "$ac_link") 2>&5
28220  ac_status=$?
28221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28223  { (case "(($ac_try" in
28224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225  *) ac_try_echo=$ac_try;;
28226esac
28227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28228$as_echo "$ac_try_echo") >&5
28229  (eval "$ac_try") 2>&5
28230  ac_status=$?
28231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232  (exit $ac_status); }; }; then
28233  ac_cv_sizeof_unsigned_short=`cat conftest.val`
28234else
28235  $as_echo "$as_me: program exited with status $ac_status" >&5
28236$as_echo "$as_me: failed program was:" >&5
28237sed 's/^/| /' conftest.$ac_ext >&5
28238
28239( exit $ac_status )
28240if test "$ac_cv_type_unsigned_short" = yes; then
28241     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28243{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
28244See \`config.log' for more details." >&5
28245$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
28246See \`config.log' for more details." >&2;}
28247   { (exit 77); exit 77; }; }; }
28248   else
28249     ac_cv_sizeof_unsigned_short=0
28250   fi
28251fi
28252rm -rf conftest.dSYM
28253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28254fi
28255rm -f conftest.val
28256fi
28257{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
28258$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
28259
28260
28261
28262cat >>confdefs.h <<_ACEOF
28263#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
28264_ACEOF
28265
28266
28267    if test $ac_cv_sizeof_unsigned_short -eq 2; then
28268      bc_typedef_uint16_t="typedef unsigned short uint16_t;"
28269    fi
28270
28271fi
28272
28273  TYPEDEF_UINT16_T=$bc_typedef_uint16_t
28274
28275  bc_typedef_uint32_t=
28276  { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
28277$as_echo_n "checking for uint32_t... " >&6; }
28278if test "${ac_cv_type_uint32_t+set}" = set; then
28279  $as_echo_n "(cached) " >&6
28280else
28281  ac_cv_type_uint32_t=no
28282cat >conftest.$ac_ext <<_ACEOF
28283/* confdefs.h.  */
28284_ACEOF
28285cat confdefs.h >>conftest.$ac_ext
28286cat >>conftest.$ac_ext <<_ACEOF
28287/* end confdefs.h.  */
28288$ac_includes_default
28289int
28290main ()
28291{
28292if (sizeof (uint32_t))
28293       return 0;
28294  ;
28295  return 0;
28296}
28297_ACEOF
28298rm -f conftest.$ac_objext
28299if { (ac_try="$ac_compile"
28300case "(($ac_try" in
28301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302  *) ac_try_echo=$ac_try;;
28303esac
28304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28305$as_echo "$ac_try_echo") >&5
28306  (eval "$ac_compile") 2>conftest.er1
28307  ac_status=$?
28308  grep -v '^ *+' conftest.er1 >conftest.err
28309  rm -f conftest.er1
28310  cat conftest.err >&5
28311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312  (exit $ac_status); } && {
28313	 test -z "$ac_c_werror_flag" ||
28314	 test ! -s conftest.err
28315       } && test -s conftest.$ac_objext; then
28316  cat >conftest.$ac_ext <<_ACEOF
28317/* confdefs.h.  */
28318_ACEOF
28319cat confdefs.h >>conftest.$ac_ext
28320cat >>conftest.$ac_ext <<_ACEOF
28321/* end confdefs.h.  */
28322$ac_includes_default
28323int
28324main ()
28325{
28326if (sizeof ((uint32_t)))
28327	  return 0;
28328  ;
28329  return 0;
28330}
28331_ACEOF
28332rm -f conftest.$ac_objext
28333if { (ac_try="$ac_compile"
28334case "(($ac_try" in
28335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336  *) ac_try_echo=$ac_try;;
28337esac
28338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28339$as_echo "$ac_try_echo") >&5
28340  (eval "$ac_compile") 2>conftest.er1
28341  ac_status=$?
28342  grep -v '^ *+' conftest.er1 >conftest.err
28343  rm -f conftest.er1
28344  cat conftest.err >&5
28345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346  (exit $ac_status); } && {
28347	 test -z "$ac_c_werror_flag" ||
28348	 test ! -s conftest.err
28349       } && test -s conftest.$ac_objext; then
28350  :
28351else
28352  $as_echo "$as_me: failed program was:" >&5
28353sed 's/^/| /' conftest.$ac_ext >&5
28354
28355	ac_cv_type_uint32_t=yes
28356fi
28357
28358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359else
28360  $as_echo "$as_me: failed program was:" >&5
28361sed 's/^/| /' conftest.$ac_ext >&5
28362
28363
28364fi
28365
28366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28367fi
28368{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
28369$as_echo "$ac_cv_type_uint32_t" >&6; }
28370if test "x$ac_cv_type_uint32_t" = x""yes; then
28371  :
28372else
28373
28374    # The cast to long int works around a bug in the HP C Compiler
28375# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28376# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28377# This bug is HP SR number 8606223364.
28378{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
28379$as_echo_n "checking size of unsigned int... " >&6; }
28380if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
28381  $as_echo_n "(cached) " >&6
28382else
28383  if test "$cross_compiling" = yes; then
28384  # Depending upon the size, compute the lo and hi bounds.
28385cat >conftest.$ac_ext <<_ACEOF
28386/* confdefs.h.  */
28387_ACEOF
28388cat confdefs.h >>conftest.$ac_ext
28389cat >>conftest.$ac_ext <<_ACEOF
28390/* end confdefs.h.  */
28391$ac_includes_default
28392int
28393main ()
28394{
28395static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
28396test_array [0] = 0
28397
28398  ;
28399  return 0;
28400}
28401_ACEOF
28402rm -f conftest.$ac_objext
28403if { (ac_try="$ac_compile"
28404case "(($ac_try" in
28405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406  *) ac_try_echo=$ac_try;;
28407esac
28408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28409$as_echo "$ac_try_echo") >&5
28410  (eval "$ac_compile") 2>conftest.er1
28411  ac_status=$?
28412  grep -v '^ *+' conftest.er1 >conftest.err
28413  rm -f conftest.er1
28414  cat conftest.err >&5
28415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416  (exit $ac_status); } && {
28417	 test -z "$ac_c_werror_flag" ||
28418	 test ! -s conftest.err
28419       } && test -s conftest.$ac_objext; then
28420  ac_lo=0 ac_mid=0
28421  while :; do
28422    cat >conftest.$ac_ext <<_ACEOF
28423/* confdefs.h.  */
28424_ACEOF
28425cat confdefs.h >>conftest.$ac_ext
28426cat >>conftest.$ac_ext <<_ACEOF
28427/* end confdefs.h.  */
28428$ac_includes_default
28429int
28430main ()
28431{
28432static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
28433test_array [0] = 0
28434
28435  ;
28436  return 0;
28437}
28438_ACEOF
28439rm -f conftest.$ac_objext
28440if { (ac_try="$ac_compile"
28441case "(($ac_try" in
28442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443  *) ac_try_echo=$ac_try;;
28444esac
28445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28446$as_echo "$ac_try_echo") >&5
28447  (eval "$ac_compile") 2>conftest.er1
28448  ac_status=$?
28449  grep -v '^ *+' conftest.er1 >conftest.err
28450  rm -f conftest.er1
28451  cat conftest.err >&5
28452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453  (exit $ac_status); } && {
28454	 test -z "$ac_c_werror_flag" ||
28455	 test ! -s conftest.err
28456       } && test -s conftest.$ac_objext; then
28457  ac_hi=$ac_mid; break
28458else
28459  $as_echo "$as_me: failed program was:" >&5
28460sed 's/^/| /' conftest.$ac_ext >&5
28461
28462	ac_lo=`expr $ac_mid + 1`
28463			if test $ac_lo -le $ac_mid; then
28464			  ac_lo= ac_hi=
28465			  break
28466			fi
28467			ac_mid=`expr 2 '*' $ac_mid + 1`
28468fi
28469
28470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28471  done
28472else
28473  $as_echo "$as_me: failed program was:" >&5
28474sed 's/^/| /' conftest.$ac_ext >&5
28475
28476	cat >conftest.$ac_ext <<_ACEOF
28477/* confdefs.h.  */
28478_ACEOF
28479cat confdefs.h >>conftest.$ac_ext
28480cat >>conftest.$ac_ext <<_ACEOF
28481/* end confdefs.h.  */
28482$ac_includes_default
28483int
28484main ()
28485{
28486static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
28487test_array [0] = 0
28488
28489  ;
28490  return 0;
28491}
28492_ACEOF
28493rm -f conftest.$ac_objext
28494if { (ac_try="$ac_compile"
28495case "(($ac_try" in
28496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497  *) ac_try_echo=$ac_try;;
28498esac
28499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28500$as_echo "$ac_try_echo") >&5
28501  (eval "$ac_compile") 2>conftest.er1
28502  ac_status=$?
28503  grep -v '^ *+' conftest.er1 >conftest.err
28504  rm -f conftest.er1
28505  cat conftest.err >&5
28506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507  (exit $ac_status); } && {
28508	 test -z "$ac_c_werror_flag" ||
28509	 test ! -s conftest.err
28510       } && test -s conftest.$ac_objext; then
28511  ac_hi=-1 ac_mid=-1
28512  while :; do
28513    cat >conftest.$ac_ext <<_ACEOF
28514/* confdefs.h.  */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h.  */
28519$ac_includes_default
28520int
28521main ()
28522{
28523static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
28524test_array [0] = 0
28525
28526  ;
28527  return 0;
28528}
28529_ACEOF
28530rm -f conftest.$ac_objext
28531if { (ac_try="$ac_compile"
28532case "(($ac_try" in
28533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534  *) ac_try_echo=$ac_try;;
28535esac
28536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28537$as_echo "$ac_try_echo") >&5
28538  (eval "$ac_compile") 2>conftest.er1
28539  ac_status=$?
28540  grep -v '^ *+' conftest.er1 >conftest.err
28541  rm -f conftest.er1
28542  cat conftest.err >&5
28543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544  (exit $ac_status); } && {
28545	 test -z "$ac_c_werror_flag" ||
28546	 test ! -s conftest.err
28547       } && test -s conftest.$ac_objext; then
28548  ac_lo=$ac_mid; break
28549else
28550  $as_echo "$as_me: failed program was:" >&5
28551sed 's/^/| /' conftest.$ac_ext >&5
28552
28553	ac_hi=`expr '(' $ac_mid ')' - 1`
28554			if test $ac_mid -le $ac_hi; then
28555			  ac_lo= ac_hi=
28556			  break
28557			fi
28558			ac_mid=`expr 2 '*' $ac_mid`
28559fi
28560
28561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562  done
28563else
28564  $as_echo "$as_me: failed program was:" >&5
28565sed 's/^/| /' conftest.$ac_ext >&5
28566
28567	ac_lo= ac_hi=
28568fi
28569
28570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28571fi
28572
28573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28574# Binary search between lo and hi bounds.
28575while test "x$ac_lo" != "x$ac_hi"; do
28576  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28577  cat >conftest.$ac_ext <<_ACEOF
28578/* confdefs.h.  */
28579_ACEOF
28580cat confdefs.h >>conftest.$ac_ext
28581cat >>conftest.$ac_ext <<_ACEOF
28582/* end confdefs.h.  */
28583$ac_includes_default
28584int
28585main ()
28586{
28587static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
28588test_array [0] = 0
28589
28590  ;
28591  return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext
28595if { (ac_try="$ac_compile"
28596case "(($ac_try" in
28597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598  *) ac_try_echo=$ac_try;;
28599esac
28600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28601$as_echo "$ac_try_echo") >&5
28602  (eval "$ac_compile") 2>conftest.er1
28603  ac_status=$?
28604  grep -v '^ *+' conftest.er1 >conftest.err
28605  rm -f conftest.er1
28606  cat conftest.err >&5
28607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608  (exit $ac_status); } && {
28609	 test -z "$ac_c_werror_flag" ||
28610	 test ! -s conftest.err
28611       } && test -s conftest.$ac_objext; then
28612  ac_hi=$ac_mid
28613else
28614  $as_echo "$as_me: failed program was:" >&5
28615sed 's/^/| /' conftest.$ac_ext >&5
28616
28617	ac_lo=`expr '(' $ac_mid ')' + 1`
28618fi
28619
28620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621done
28622case $ac_lo in
28623?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
28624'') if test "$ac_cv_type_unsigned_int" = yes; then
28625     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28627{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
28628See \`config.log' for more details." >&5
28629$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
28630See \`config.log' for more details." >&2;}
28631   { (exit 77); exit 77; }; }; }
28632   else
28633     ac_cv_sizeof_unsigned_int=0
28634   fi ;;
28635esac
28636else
28637  cat >conftest.$ac_ext <<_ACEOF
28638/* confdefs.h.  */
28639_ACEOF
28640cat confdefs.h >>conftest.$ac_ext
28641cat >>conftest.$ac_ext <<_ACEOF
28642/* end confdefs.h.  */
28643$ac_includes_default
28644static long int longval () { return (long int) (sizeof (unsigned int)); }
28645static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
28646#include <stdio.h>
28647#include <stdlib.h>
28648int
28649main ()
28650{
28651
28652  FILE *f = fopen ("conftest.val", "w");
28653  if (! f)
28654    return 1;
28655  if (((long int) (sizeof (unsigned int))) < 0)
28656    {
28657      long int i = longval ();
28658      if (i != ((long int) (sizeof (unsigned int))))
28659	return 1;
28660      fprintf (f, "%ld", i);
28661    }
28662  else
28663    {
28664      unsigned long int i = ulongval ();
28665      if (i != ((long int) (sizeof (unsigned int))))
28666	return 1;
28667      fprintf (f, "%lu", i);
28668    }
28669  /* Do not output a trailing newline, as this causes \r\n confusion
28670     on some platforms.  */
28671  return ferror (f) || fclose (f) != 0;
28672
28673  ;
28674  return 0;
28675}
28676_ACEOF
28677rm -f conftest$ac_exeext
28678if { (ac_try="$ac_link"
28679case "(($ac_try" in
28680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681  *) ac_try_echo=$ac_try;;
28682esac
28683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28684$as_echo "$ac_try_echo") >&5
28685  (eval "$ac_link") 2>&5
28686  ac_status=$?
28687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28689  { (case "(($ac_try" in
28690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691  *) ac_try_echo=$ac_try;;
28692esac
28693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28694$as_echo "$ac_try_echo") >&5
28695  (eval "$ac_try") 2>&5
28696  ac_status=$?
28697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698  (exit $ac_status); }; }; then
28699  ac_cv_sizeof_unsigned_int=`cat conftest.val`
28700else
28701  $as_echo "$as_me: program exited with status $ac_status" >&5
28702$as_echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
28705( exit $ac_status )
28706if test "$ac_cv_type_unsigned_int" = yes; then
28707     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28709{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
28710See \`config.log' for more details." >&5
28711$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
28712See \`config.log' for more details." >&2;}
28713   { (exit 77); exit 77; }; }; }
28714   else
28715     ac_cv_sizeof_unsigned_int=0
28716   fi
28717fi
28718rm -rf conftest.dSYM
28719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28720fi
28721rm -f conftest.val
28722fi
28723{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
28724$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
28725
28726
28727
28728cat >>confdefs.h <<_ACEOF
28729#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
28730_ACEOF
28731
28732
28733    if test $ac_cv_sizeof_unsigned_int -eq 4; then
28734      bc_typedef_uint32_t="typedef unsigned int uint32_t;"
28735    fi
28736
28737fi
28738
28739  TYPEDEF_UINT32_T=$bc_typedef_uint32_t
28740
28741  bc_typedef_uint64_t=
28742  { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
28743$as_echo_n "checking for uint64_t... " >&6; }
28744if test "${ac_cv_type_uint64_t+set}" = set; then
28745  $as_echo_n "(cached) " >&6
28746else
28747  ac_cv_type_uint64_t=no
28748cat >conftest.$ac_ext <<_ACEOF
28749/* confdefs.h.  */
28750_ACEOF
28751cat confdefs.h >>conftest.$ac_ext
28752cat >>conftest.$ac_ext <<_ACEOF
28753/* end confdefs.h.  */
28754$ac_includes_default
28755int
28756main ()
28757{
28758if (sizeof (uint64_t))
28759       return 0;
28760  ;
28761  return 0;
28762}
28763_ACEOF
28764rm -f conftest.$ac_objext
28765if { (ac_try="$ac_compile"
28766case "(($ac_try" in
28767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768  *) ac_try_echo=$ac_try;;
28769esac
28770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28771$as_echo "$ac_try_echo") >&5
28772  (eval "$ac_compile") 2>conftest.er1
28773  ac_status=$?
28774  grep -v '^ *+' conftest.er1 >conftest.err
28775  rm -f conftest.er1
28776  cat conftest.err >&5
28777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778  (exit $ac_status); } && {
28779	 test -z "$ac_c_werror_flag" ||
28780	 test ! -s conftest.err
28781       } && test -s conftest.$ac_objext; then
28782  cat >conftest.$ac_ext <<_ACEOF
28783/* confdefs.h.  */
28784_ACEOF
28785cat confdefs.h >>conftest.$ac_ext
28786cat >>conftest.$ac_ext <<_ACEOF
28787/* end confdefs.h.  */
28788$ac_includes_default
28789int
28790main ()
28791{
28792if (sizeof ((uint64_t)))
28793	  return 0;
28794  ;
28795  return 0;
28796}
28797_ACEOF
28798rm -f conftest.$ac_objext
28799if { (ac_try="$ac_compile"
28800case "(($ac_try" in
28801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28802  *) ac_try_echo=$ac_try;;
28803esac
28804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28805$as_echo "$ac_try_echo") >&5
28806  (eval "$ac_compile") 2>conftest.er1
28807  ac_status=$?
28808  grep -v '^ *+' conftest.er1 >conftest.err
28809  rm -f conftest.er1
28810  cat conftest.err >&5
28811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812  (exit $ac_status); } && {
28813	 test -z "$ac_c_werror_flag" ||
28814	 test ! -s conftest.err
28815       } && test -s conftest.$ac_objext; then
28816  :
28817else
28818  $as_echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821	ac_cv_type_uint64_t=yes
28822fi
28823
28824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28825else
28826  $as_echo "$as_me: failed program was:" >&5
28827sed 's/^/| /' conftest.$ac_ext >&5
28828
28829
28830fi
28831
28832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28833fi
28834{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28835$as_echo "$ac_cv_type_uint64_t" >&6; }
28836if test "x$ac_cv_type_uint64_t" = x""yes; then
28837
28838    cat >>confdefs.h <<\_ACEOF
28839#define HAVE_UINT64_T 1
28840_ACEOF
28841
28842
28843else
28844
28845    # The cast to long int works around a bug in the HP C Compiler
28846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28848# This bug is HP SR number 8606223364.
28849{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
28850$as_echo_n "checking size of unsigned long... " >&6; }
28851if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
28852  $as_echo_n "(cached) " >&6
28853else
28854  if test "$cross_compiling" = yes; then
28855  # Depending upon the size, compute the lo and hi bounds.
28856cat >conftest.$ac_ext <<_ACEOF
28857/* confdefs.h.  */
28858_ACEOF
28859cat confdefs.h >>conftest.$ac_ext
28860cat >>conftest.$ac_ext <<_ACEOF
28861/* end confdefs.h.  */
28862$ac_includes_default
28863int
28864main ()
28865{
28866static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
28867test_array [0] = 0
28868
28869  ;
28870  return 0;
28871}
28872_ACEOF
28873rm -f conftest.$ac_objext
28874if { (ac_try="$ac_compile"
28875case "(($ac_try" in
28876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877  *) ac_try_echo=$ac_try;;
28878esac
28879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28880$as_echo "$ac_try_echo") >&5
28881  (eval "$ac_compile") 2>conftest.er1
28882  ac_status=$?
28883  grep -v '^ *+' conftest.er1 >conftest.err
28884  rm -f conftest.er1
28885  cat conftest.err >&5
28886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887  (exit $ac_status); } && {
28888	 test -z "$ac_c_werror_flag" ||
28889	 test ! -s conftest.err
28890       } && test -s conftest.$ac_objext; then
28891  ac_lo=0 ac_mid=0
28892  while :; do
28893    cat >conftest.$ac_ext <<_ACEOF
28894/* confdefs.h.  */
28895_ACEOF
28896cat confdefs.h >>conftest.$ac_ext
28897cat >>conftest.$ac_ext <<_ACEOF
28898/* end confdefs.h.  */
28899$ac_includes_default
28900int
28901main ()
28902{
28903static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
28904test_array [0] = 0
28905
28906  ;
28907  return 0;
28908}
28909_ACEOF
28910rm -f conftest.$ac_objext
28911if { (ac_try="$ac_compile"
28912case "(($ac_try" in
28913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914  *) ac_try_echo=$ac_try;;
28915esac
28916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28917$as_echo "$ac_try_echo") >&5
28918  (eval "$ac_compile") 2>conftest.er1
28919  ac_status=$?
28920  grep -v '^ *+' conftest.er1 >conftest.err
28921  rm -f conftest.er1
28922  cat conftest.err >&5
28923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924  (exit $ac_status); } && {
28925	 test -z "$ac_c_werror_flag" ||
28926	 test ! -s conftest.err
28927       } && test -s conftest.$ac_objext; then
28928  ac_hi=$ac_mid; break
28929else
28930  $as_echo "$as_me: failed program was:" >&5
28931sed 's/^/| /' conftest.$ac_ext >&5
28932
28933	ac_lo=`expr $ac_mid + 1`
28934			if test $ac_lo -le $ac_mid; then
28935			  ac_lo= ac_hi=
28936			  break
28937			fi
28938			ac_mid=`expr 2 '*' $ac_mid + 1`
28939fi
28940
28941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28942  done
28943else
28944  $as_echo "$as_me: failed program was:" >&5
28945sed 's/^/| /' conftest.$ac_ext >&5
28946
28947	cat >conftest.$ac_ext <<_ACEOF
28948/* confdefs.h.  */
28949_ACEOF
28950cat confdefs.h >>conftest.$ac_ext
28951cat >>conftest.$ac_ext <<_ACEOF
28952/* end confdefs.h.  */
28953$ac_includes_default
28954int
28955main ()
28956{
28957static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
28958test_array [0] = 0
28959
28960  ;
28961  return 0;
28962}
28963_ACEOF
28964rm -f conftest.$ac_objext
28965if { (ac_try="$ac_compile"
28966case "(($ac_try" in
28967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968  *) ac_try_echo=$ac_try;;
28969esac
28970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28971$as_echo "$ac_try_echo") >&5
28972  (eval "$ac_compile") 2>conftest.er1
28973  ac_status=$?
28974  grep -v '^ *+' conftest.er1 >conftest.err
28975  rm -f conftest.er1
28976  cat conftest.err >&5
28977  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978  (exit $ac_status); } && {
28979	 test -z "$ac_c_werror_flag" ||
28980	 test ! -s conftest.err
28981       } && test -s conftest.$ac_objext; then
28982  ac_hi=-1 ac_mid=-1
28983  while :; do
28984    cat >conftest.$ac_ext <<_ACEOF
28985/* confdefs.h.  */
28986_ACEOF
28987cat confdefs.h >>conftest.$ac_ext
28988cat >>conftest.$ac_ext <<_ACEOF
28989/* end confdefs.h.  */
28990$ac_includes_default
28991int
28992main ()
28993{
28994static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
28995test_array [0] = 0
28996
28997  ;
28998  return 0;
28999}
29000_ACEOF
29001rm -f conftest.$ac_objext
29002if { (ac_try="$ac_compile"
29003case "(($ac_try" in
29004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005  *) ac_try_echo=$ac_try;;
29006esac
29007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29008$as_echo "$ac_try_echo") >&5
29009  (eval "$ac_compile") 2>conftest.er1
29010  ac_status=$?
29011  grep -v '^ *+' conftest.er1 >conftest.err
29012  rm -f conftest.er1
29013  cat conftest.err >&5
29014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015  (exit $ac_status); } && {
29016	 test -z "$ac_c_werror_flag" ||
29017	 test ! -s conftest.err
29018       } && test -s conftest.$ac_objext; then
29019  ac_lo=$ac_mid; break
29020else
29021  $as_echo "$as_me: failed program was:" >&5
29022sed 's/^/| /' conftest.$ac_ext >&5
29023
29024	ac_hi=`expr '(' $ac_mid ')' - 1`
29025			if test $ac_mid -le $ac_hi; then
29026			  ac_lo= ac_hi=
29027			  break
29028			fi
29029			ac_mid=`expr 2 '*' $ac_mid`
29030fi
29031
29032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033  done
29034else
29035  $as_echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
29038	ac_lo= ac_hi=
29039fi
29040
29041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29042fi
29043
29044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045# Binary search between lo and hi bounds.
29046while test "x$ac_lo" != "x$ac_hi"; do
29047  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29048  cat >conftest.$ac_ext <<_ACEOF
29049/* confdefs.h.  */
29050_ACEOF
29051cat confdefs.h >>conftest.$ac_ext
29052cat >>conftest.$ac_ext <<_ACEOF
29053/* end confdefs.h.  */
29054$ac_includes_default
29055int
29056main ()
29057{
29058static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
29059test_array [0] = 0
29060
29061  ;
29062  return 0;
29063}
29064_ACEOF
29065rm -f conftest.$ac_objext
29066if { (ac_try="$ac_compile"
29067case "(($ac_try" in
29068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069  *) ac_try_echo=$ac_try;;
29070esac
29071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29072$as_echo "$ac_try_echo") >&5
29073  (eval "$ac_compile") 2>conftest.er1
29074  ac_status=$?
29075  grep -v '^ *+' conftest.er1 >conftest.err
29076  rm -f conftest.er1
29077  cat conftest.err >&5
29078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079  (exit $ac_status); } && {
29080	 test -z "$ac_c_werror_flag" ||
29081	 test ! -s conftest.err
29082       } && test -s conftest.$ac_objext; then
29083  ac_hi=$ac_mid
29084else
29085  $as_echo "$as_me: failed program was:" >&5
29086sed 's/^/| /' conftest.$ac_ext >&5
29087
29088	ac_lo=`expr '(' $ac_mid ')' + 1`
29089fi
29090
29091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29092done
29093case $ac_lo in
29094?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
29095'') if test "$ac_cv_type_unsigned_long" = yes; then
29096     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29098{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
29099See \`config.log' for more details." >&5
29100$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
29101See \`config.log' for more details." >&2;}
29102   { (exit 77); exit 77; }; }; }
29103   else
29104     ac_cv_sizeof_unsigned_long=0
29105   fi ;;
29106esac
29107else
29108  cat >conftest.$ac_ext <<_ACEOF
29109/* confdefs.h.  */
29110_ACEOF
29111cat confdefs.h >>conftest.$ac_ext
29112cat >>conftest.$ac_ext <<_ACEOF
29113/* end confdefs.h.  */
29114$ac_includes_default
29115static long int longval () { return (long int) (sizeof (unsigned long)); }
29116static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
29117#include <stdio.h>
29118#include <stdlib.h>
29119int
29120main ()
29121{
29122
29123  FILE *f = fopen ("conftest.val", "w");
29124  if (! f)
29125    return 1;
29126  if (((long int) (sizeof (unsigned long))) < 0)
29127    {
29128      long int i = longval ();
29129      if (i != ((long int) (sizeof (unsigned long))))
29130	return 1;
29131      fprintf (f, "%ld", i);
29132    }
29133  else
29134    {
29135      unsigned long int i = ulongval ();
29136      if (i != ((long int) (sizeof (unsigned long))))
29137	return 1;
29138      fprintf (f, "%lu", i);
29139    }
29140  /* Do not output a trailing newline, as this causes \r\n confusion
29141     on some platforms.  */
29142  return ferror (f) || fclose (f) != 0;
29143
29144  ;
29145  return 0;
29146}
29147_ACEOF
29148rm -f conftest$ac_exeext
29149if { (ac_try="$ac_link"
29150case "(($ac_try" in
29151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152  *) ac_try_echo=$ac_try;;
29153esac
29154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29155$as_echo "$ac_try_echo") >&5
29156  (eval "$ac_link") 2>&5
29157  ac_status=$?
29158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29160  { (case "(($ac_try" in
29161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162  *) ac_try_echo=$ac_try;;
29163esac
29164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29165$as_echo "$ac_try_echo") >&5
29166  (eval "$ac_try") 2>&5
29167  ac_status=$?
29168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169  (exit $ac_status); }; }; then
29170  ac_cv_sizeof_unsigned_long=`cat conftest.val`
29171else
29172  $as_echo "$as_me: program exited with status $ac_status" >&5
29173$as_echo "$as_me: failed program was:" >&5
29174sed 's/^/| /' conftest.$ac_ext >&5
29175
29176( exit $ac_status )
29177if test "$ac_cv_type_unsigned_long" = yes; then
29178     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29180{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
29181See \`config.log' for more details." >&5
29182$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
29183See \`config.log' for more details." >&2;}
29184   { (exit 77); exit 77; }; }; }
29185   else
29186     ac_cv_sizeof_unsigned_long=0
29187   fi
29188fi
29189rm -rf conftest.dSYM
29190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29191fi
29192rm -f conftest.val
29193fi
29194{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
29195$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
29196
29197
29198
29199cat >>confdefs.h <<_ACEOF
29200#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
29201_ACEOF
29202
29203
29204    if test $ac_cv_sizeof_unsigned_long -eq 8; then
29205      bc_typedef_uint64_t="typedef unsigned long uint64_t;"
29206    else
29207      # The cast to long int works around a bug in the HP C Compiler
29208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29210# This bug is HP SR number 8606223364.
29211{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
29212$as_echo_n "checking size of unsigned long long... " >&6; }
29213if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
29214  $as_echo_n "(cached) " >&6
29215else
29216  if test "$cross_compiling" = yes; then
29217  # Depending upon the size, compute the lo and hi bounds.
29218cat >conftest.$ac_ext <<_ACEOF
29219/* confdefs.h.  */
29220_ACEOF
29221cat confdefs.h >>conftest.$ac_ext
29222cat >>conftest.$ac_ext <<_ACEOF
29223/* end confdefs.h.  */
29224$ac_includes_default
29225int
29226main ()
29227{
29228static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
29229test_array [0] = 0
29230
29231  ;
29232  return 0;
29233}
29234_ACEOF
29235rm -f conftest.$ac_objext
29236if { (ac_try="$ac_compile"
29237case "(($ac_try" in
29238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239  *) ac_try_echo=$ac_try;;
29240esac
29241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29242$as_echo "$ac_try_echo") >&5
29243  (eval "$ac_compile") 2>conftest.er1
29244  ac_status=$?
29245  grep -v '^ *+' conftest.er1 >conftest.err
29246  rm -f conftest.er1
29247  cat conftest.err >&5
29248  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249  (exit $ac_status); } && {
29250	 test -z "$ac_c_werror_flag" ||
29251	 test ! -s conftest.err
29252       } && test -s conftest.$ac_objext; then
29253  ac_lo=0 ac_mid=0
29254  while :; do
29255    cat >conftest.$ac_ext <<_ACEOF
29256/* confdefs.h.  */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h.  */
29261$ac_includes_default
29262int
29263main ()
29264{
29265static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
29266test_array [0] = 0
29267
29268  ;
29269  return 0;
29270}
29271_ACEOF
29272rm -f conftest.$ac_objext
29273if { (ac_try="$ac_compile"
29274case "(($ac_try" in
29275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276  *) ac_try_echo=$ac_try;;
29277esac
29278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29279$as_echo "$ac_try_echo") >&5
29280  (eval "$ac_compile") 2>conftest.er1
29281  ac_status=$?
29282  grep -v '^ *+' conftest.er1 >conftest.err
29283  rm -f conftest.er1
29284  cat conftest.err >&5
29285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286  (exit $ac_status); } && {
29287	 test -z "$ac_c_werror_flag" ||
29288	 test ! -s conftest.err
29289       } && test -s conftest.$ac_objext; then
29290  ac_hi=$ac_mid; break
29291else
29292  $as_echo "$as_me: failed program was:" >&5
29293sed 's/^/| /' conftest.$ac_ext >&5
29294
29295	ac_lo=`expr $ac_mid + 1`
29296			if test $ac_lo -le $ac_mid; then
29297			  ac_lo= ac_hi=
29298			  break
29299			fi
29300			ac_mid=`expr 2 '*' $ac_mid + 1`
29301fi
29302
29303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29304  done
29305else
29306  $as_echo "$as_me: failed program was:" >&5
29307sed 's/^/| /' conftest.$ac_ext >&5
29308
29309	cat >conftest.$ac_ext <<_ACEOF
29310/* confdefs.h.  */
29311_ACEOF
29312cat confdefs.h >>conftest.$ac_ext
29313cat >>conftest.$ac_ext <<_ACEOF
29314/* end confdefs.h.  */
29315$ac_includes_default
29316int
29317main ()
29318{
29319static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
29320test_array [0] = 0
29321
29322  ;
29323  return 0;
29324}
29325_ACEOF
29326rm -f conftest.$ac_objext
29327if { (ac_try="$ac_compile"
29328case "(($ac_try" in
29329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29330  *) ac_try_echo=$ac_try;;
29331esac
29332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29333$as_echo "$ac_try_echo") >&5
29334  (eval "$ac_compile") 2>conftest.er1
29335  ac_status=$?
29336  grep -v '^ *+' conftest.er1 >conftest.err
29337  rm -f conftest.er1
29338  cat conftest.err >&5
29339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340  (exit $ac_status); } && {
29341	 test -z "$ac_c_werror_flag" ||
29342	 test ! -s conftest.err
29343       } && test -s conftest.$ac_objext; then
29344  ac_hi=-1 ac_mid=-1
29345  while :; do
29346    cat >conftest.$ac_ext <<_ACEOF
29347/* confdefs.h.  */
29348_ACEOF
29349cat confdefs.h >>conftest.$ac_ext
29350cat >>conftest.$ac_ext <<_ACEOF
29351/* end confdefs.h.  */
29352$ac_includes_default
29353int
29354main ()
29355{
29356static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
29357test_array [0] = 0
29358
29359  ;
29360  return 0;
29361}
29362_ACEOF
29363rm -f conftest.$ac_objext
29364if { (ac_try="$ac_compile"
29365case "(($ac_try" in
29366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367  *) ac_try_echo=$ac_try;;
29368esac
29369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29370$as_echo "$ac_try_echo") >&5
29371  (eval "$ac_compile") 2>conftest.er1
29372  ac_status=$?
29373  grep -v '^ *+' conftest.er1 >conftest.err
29374  rm -f conftest.er1
29375  cat conftest.err >&5
29376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377  (exit $ac_status); } && {
29378	 test -z "$ac_c_werror_flag" ||
29379	 test ! -s conftest.err
29380       } && test -s conftest.$ac_objext; then
29381  ac_lo=$ac_mid; break
29382else
29383  $as_echo "$as_me: failed program was:" >&5
29384sed 's/^/| /' conftest.$ac_ext >&5
29385
29386	ac_hi=`expr '(' $ac_mid ')' - 1`
29387			if test $ac_mid -le $ac_hi; then
29388			  ac_lo= ac_hi=
29389			  break
29390			fi
29391			ac_mid=`expr 2 '*' $ac_mid`
29392fi
29393
29394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29395  done
29396else
29397  $as_echo "$as_me: failed program was:" >&5
29398sed 's/^/| /' conftest.$ac_ext >&5
29399
29400	ac_lo= ac_hi=
29401fi
29402
29403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29404fi
29405
29406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29407# Binary search between lo and hi bounds.
29408while test "x$ac_lo" != "x$ac_hi"; do
29409  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29410  cat >conftest.$ac_ext <<_ACEOF
29411/* confdefs.h.  */
29412_ACEOF
29413cat confdefs.h >>conftest.$ac_ext
29414cat >>conftest.$ac_ext <<_ACEOF
29415/* end confdefs.h.  */
29416$ac_includes_default
29417int
29418main ()
29419{
29420static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
29421test_array [0] = 0
29422
29423  ;
29424  return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext
29428if { (ac_try="$ac_compile"
29429case "(($ac_try" in
29430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29431  *) ac_try_echo=$ac_try;;
29432esac
29433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29434$as_echo "$ac_try_echo") >&5
29435  (eval "$ac_compile") 2>conftest.er1
29436  ac_status=$?
29437  grep -v '^ *+' conftest.er1 >conftest.err
29438  rm -f conftest.er1
29439  cat conftest.err >&5
29440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441  (exit $ac_status); } && {
29442	 test -z "$ac_c_werror_flag" ||
29443	 test ! -s conftest.err
29444       } && test -s conftest.$ac_objext; then
29445  ac_hi=$ac_mid
29446else
29447  $as_echo "$as_me: failed program was:" >&5
29448sed 's/^/| /' conftest.$ac_ext >&5
29449
29450	ac_lo=`expr '(' $ac_mid ')' + 1`
29451fi
29452
29453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29454done
29455case $ac_lo in
29456?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
29457'') if test "$ac_cv_type_unsigned_long_long" = yes; then
29458     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29460{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
29461See \`config.log' for more details." >&5
29462$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
29463See \`config.log' for more details." >&2;}
29464   { (exit 77); exit 77; }; }; }
29465   else
29466     ac_cv_sizeof_unsigned_long_long=0
29467   fi ;;
29468esac
29469else
29470  cat >conftest.$ac_ext <<_ACEOF
29471/* confdefs.h.  */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h.  */
29476$ac_includes_default
29477static long int longval () { return (long int) (sizeof (unsigned long long)); }
29478static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
29479#include <stdio.h>
29480#include <stdlib.h>
29481int
29482main ()
29483{
29484
29485  FILE *f = fopen ("conftest.val", "w");
29486  if (! f)
29487    return 1;
29488  if (((long int) (sizeof (unsigned long long))) < 0)
29489    {
29490      long int i = longval ();
29491      if (i != ((long int) (sizeof (unsigned long long))))
29492	return 1;
29493      fprintf (f, "%ld", i);
29494    }
29495  else
29496    {
29497      unsigned long int i = ulongval ();
29498      if (i != ((long int) (sizeof (unsigned long long))))
29499	return 1;
29500      fprintf (f, "%lu", i);
29501    }
29502  /* Do not output a trailing newline, as this causes \r\n confusion
29503     on some platforms.  */
29504  return ferror (f) || fclose (f) != 0;
29505
29506  ;
29507  return 0;
29508}
29509_ACEOF
29510rm -f conftest$ac_exeext
29511if { (ac_try="$ac_link"
29512case "(($ac_try" in
29513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29514  *) ac_try_echo=$ac_try;;
29515esac
29516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29517$as_echo "$ac_try_echo") >&5
29518  (eval "$ac_link") 2>&5
29519  ac_status=$?
29520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29522  { (case "(($ac_try" in
29523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524  *) ac_try_echo=$ac_try;;
29525esac
29526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29527$as_echo "$ac_try_echo") >&5
29528  (eval "$ac_try") 2>&5
29529  ac_status=$?
29530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531  (exit $ac_status); }; }; then
29532  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
29533else
29534  $as_echo "$as_me: program exited with status $ac_status" >&5
29535$as_echo "$as_me: failed program was:" >&5
29536sed 's/^/| /' conftest.$ac_ext >&5
29537
29538( exit $ac_status )
29539if test "$ac_cv_type_unsigned_long_long" = yes; then
29540     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29542{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
29543See \`config.log' for more details." >&5
29544$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
29545See \`config.log' for more details." >&2;}
29546   { (exit 77); exit 77; }; }; }
29547   else
29548     ac_cv_sizeof_unsigned_long_long=0
29549   fi
29550fi
29551rm -rf conftest.dSYM
29552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29553fi
29554rm -f conftest.val
29555fi
29556{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
29557$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
29558
29559
29560
29561cat >>confdefs.h <<_ACEOF
29562#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
29563_ACEOF
29564
29565
29566      if test $ac_cv_sizeof_unsigned_long_long -eq 8; then
29567        cat >>confdefs.h <<\_ACEOF
29568#define HAVE_UINT64_T 1
29569_ACEOF
29570
29571        bc_typedef_uint64_t="typedef unsigned long long uint64_t;"
29572      fi
29573    fi
29574
29575fi
29576
29577  TYPEDEF_UINT64_T=$bc_typedef_uint64_t
29578
29579
29580
29581
29582
29583  { $as_echo "$as_me:$LINENO: checking for long long" >&5
29584$as_echo_n "checking for long long... " >&6; }
29585if test "${ac_cv_type_long_long+set}" = set; then
29586  $as_echo_n "(cached) " >&6
29587else
29588  ac_cv_type_long_long=no
29589cat >conftest.$ac_ext <<_ACEOF
29590/* confdefs.h.  */
29591_ACEOF
29592cat confdefs.h >>conftest.$ac_ext
29593cat >>conftest.$ac_ext <<_ACEOF
29594/* end confdefs.h.  */
29595$ac_includes_default
29596int
29597main ()
29598{
29599if (sizeof (long long))
29600       return 0;
29601  ;
29602  return 0;
29603}
29604_ACEOF
29605rm -f conftest.$ac_objext
29606if { (ac_try="$ac_compile"
29607case "(($ac_try" in
29608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609  *) ac_try_echo=$ac_try;;
29610esac
29611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29612$as_echo "$ac_try_echo") >&5
29613  (eval "$ac_compile") 2>conftest.er1
29614  ac_status=$?
29615  grep -v '^ *+' conftest.er1 >conftest.err
29616  rm -f conftest.er1
29617  cat conftest.err >&5
29618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619  (exit $ac_status); } && {
29620	 test -z "$ac_c_werror_flag" ||
29621	 test ! -s conftest.err
29622       } && test -s conftest.$ac_objext; then
29623  cat >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$ac_includes_default
29630int
29631main ()
29632{
29633if (sizeof ((long long)))
29634	  return 0;
29635  ;
29636  return 0;
29637}
29638_ACEOF
29639rm -f conftest.$ac_objext
29640if { (ac_try="$ac_compile"
29641case "(($ac_try" in
29642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643  *) ac_try_echo=$ac_try;;
29644esac
29645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29646$as_echo "$ac_try_echo") >&5
29647  (eval "$ac_compile") 2>conftest.er1
29648  ac_status=$?
29649  grep -v '^ *+' conftest.er1 >conftest.err
29650  rm -f conftest.er1
29651  cat conftest.err >&5
29652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653  (exit $ac_status); } && {
29654	 test -z "$ac_c_werror_flag" ||
29655	 test ! -s conftest.err
29656       } && test -s conftest.$ac_objext; then
29657  :
29658else
29659  $as_echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662	ac_cv_type_long_long=yes
29663fi
29664
29665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29666else
29667  $as_echo "$as_me: failed program was:" >&5
29668sed 's/^/| /' conftest.$ac_ext >&5
29669
29670
29671fi
29672
29673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674fi
29675{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
29676$as_echo "$ac_cv_type_long_long" >&6; }
29677if test "x$ac_cv_type_long_long" = x""yes; then
29678
29679    cat >>confdefs.h <<\_ACEOF
29680#define HAVE_LONG_LONG 1
29681_ACEOF
29682
29683
29684else
29685
29686    cat >>confdefs.h <<\_ACEOF
29687#define HAVE_LONG_LONG 0
29688_ACEOF
29689
29690
29691fi
29692
29693  { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
29694$as_echo_n "checking for unsigned long long... " >&6; }
29695if test "${ac_cv_type_unsigned_long_long+set}" = set; then
29696  $as_echo_n "(cached) " >&6
29697else
29698  ac_cv_type_unsigned_long_long=no
29699cat >conftest.$ac_ext <<_ACEOF
29700/* confdefs.h.  */
29701_ACEOF
29702cat confdefs.h >>conftest.$ac_ext
29703cat >>conftest.$ac_ext <<_ACEOF
29704/* end confdefs.h.  */
29705$ac_includes_default
29706int
29707main ()
29708{
29709if (sizeof (unsigned long long))
29710       return 0;
29711  ;
29712  return 0;
29713}
29714_ACEOF
29715rm -f conftest.$ac_objext
29716if { (ac_try="$ac_compile"
29717case "(($ac_try" in
29718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719  *) ac_try_echo=$ac_try;;
29720esac
29721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29722$as_echo "$ac_try_echo") >&5
29723  (eval "$ac_compile") 2>conftest.er1
29724  ac_status=$?
29725  grep -v '^ *+' conftest.er1 >conftest.err
29726  rm -f conftest.er1
29727  cat conftest.err >&5
29728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729  (exit $ac_status); } && {
29730	 test -z "$ac_c_werror_flag" ||
29731	 test ! -s conftest.err
29732       } && test -s conftest.$ac_objext; then
29733  cat >conftest.$ac_ext <<_ACEOF
29734/* confdefs.h.  */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h.  */
29739$ac_includes_default
29740int
29741main ()
29742{
29743if (sizeof ((unsigned long long)))
29744	  return 0;
29745  ;
29746  return 0;
29747}
29748_ACEOF
29749rm -f conftest.$ac_objext
29750if { (ac_try="$ac_compile"
29751case "(($ac_try" in
29752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753  *) ac_try_echo=$ac_try;;
29754esac
29755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29756$as_echo "$ac_try_echo") >&5
29757  (eval "$ac_compile") 2>conftest.er1
29758  ac_status=$?
29759  grep -v '^ *+' conftest.er1 >conftest.err
29760  rm -f conftest.er1
29761  cat conftest.err >&5
29762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763  (exit $ac_status); } && {
29764	 test -z "$ac_c_werror_flag" ||
29765	 test ! -s conftest.err
29766       } && test -s conftest.$ac_objext; then
29767  :
29768else
29769  $as_echo "$as_me: failed program was:" >&5
29770sed 's/^/| /' conftest.$ac_ext >&5
29771
29772	ac_cv_type_unsigned_long_long=yes
29773fi
29774
29775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29776else
29777  $as_echo "$as_me: failed program was:" >&5
29778sed 's/^/| /' conftest.$ac_ext >&5
29779
29780
29781fi
29782
29783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784fi
29785{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
29786$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
29787if test "x$ac_cv_type_unsigned_long_long" = x""yes; then
29788
29789    cat >>confdefs.h <<\_ACEOF
29790#define HAVE_UNSIGNED_LONG_LONG 1
29791_ACEOF
29792
29793
29794else
29795
29796    cat >>confdefs.h <<\_ACEOF
29797#define HAVE_UNSIGNED_LONG_LONG 0
29798_ACEOF
29799
29800
29801fi
29802
29803
29804
29805  # The cast to long int works around a bug in the HP C Compiler
29806# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29807# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29808# This bug is HP SR number 8606223364.
29809{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
29810$as_echo_n "checking size of unsigned long... " >&6; }
29811if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
29812  $as_echo_n "(cached) " >&6
29813else
29814  if test "$cross_compiling" = yes; then
29815  # Depending upon the size, compute the lo and hi bounds.
29816cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h.  */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h.  */
29822$ac_includes_default
29823int
29824main ()
29825{
29826static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
29827test_array [0] = 0
29828
29829  ;
29830  return 0;
29831}
29832_ACEOF
29833rm -f conftest.$ac_objext
29834if { (ac_try="$ac_compile"
29835case "(($ac_try" in
29836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837  *) ac_try_echo=$ac_try;;
29838esac
29839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29840$as_echo "$ac_try_echo") >&5
29841  (eval "$ac_compile") 2>conftest.er1
29842  ac_status=$?
29843  grep -v '^ *+' conftest.er1 >conftest.err
29844  rm -f conftest.er1
29845  cat conftest.err >&5
29846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847  (exit $ac_status); } && {
29848	 test -z "$ac_c_werror_flag" ||
29849	 test ! -s conftest.err
29850       } && test -s conftest.$ac_objext; then
29851  ac_lo=0 ac_mid=0
29852  while :; do
29853    cat >conftest.$ac_ext <<_ACEOF
29854/* confdefs.h.  */
29855_ACEOF
29856cat confdefs.h >>conftest.$ac_ext
29857cat >>conftest.$ac_ext <<_ACEOF
29858/* end confdefs.h.  */
29859$ac_includes_default
29860int
29861main ()
29862{
29863static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
29864test_array [0] = 0
29865
29866  ;
29867  return 0;
29868}
29869_ACEOF
29870rm -f conftest.$ac_objext
29871if { (ac_try="$ac_compile"
29872case "(($ac_try" in
29873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874  *) ac_try_echo=$ac_try;;
29875esac
29876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29877$as_echo "$ac_try_echo") >&5
29878  (eval "$ac_compile") 2>conftest.er1
29879  ac_status=$?
29880  grep -v '^ *+' conftest.er1 >conftest.err
29881  rm -f conftest.er1
29882  cat conftest.err >&5
29883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884  (exit $ac_status); } && {
29885	 test -z "$ac_c_werror_flag" ||
29886	 test ! -s conftest.err
29887       } && test -s conftest.$ac_objext; then
29888  ac_hi=$ac_mid; break
29889else
29890  $as_echo "$as_me: failed program was:" >&5
29891sed 's/^/| /' conftest.$ac_ext >&5
29892
29893	ac_lo=`expr $ac_mid + 1`
29894			if test $ac_lo -le $ac_mid; then
29895			  ac_lo= ac_hi=
29896			  break
29897			fi
29898			ac_mid=`expr 2 '*' $ac_mid + 1`
29899fi
29900
29901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29902  done
29903else
29904  $as_echo "$as_me: failed program was:" >&5
29905sed 's/^/| /' conftest.$ac_ext >&5
29906
29907	cat >conftest.$ac_ext <<_ACEOF
29908/* confdefs.h.  */
29909_ACEOF
29910cat confdefs.h >>conftest.$ac_ext
29911cat >>conftest.$ac_ext <<_ACEOF
29912/* end confdefs.h.  */
29913$ac_includes_default
29914int
29915main ()
29916{
29917static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
29918test_array [0] = 0
29919
29920  ;
29921  return 0;
29922}
29923_ACEOF
29924rm -f conftest.$ac_objext
29925if { (ac_try="$ac_compile"
29926case "(($ac_try" in
29927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29928  *) ac_try_echo=$ac_try;;
29929esac
29930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29931$as_echo "$ac_try_echo") >&5
29932  (eval "$ac_compile") 2>conftest.er1
29933  ac_status=$?
29934  grep -v '^ *+' conftest.er1 >conftest.err
29935  rm -f conftest.er1
29936  cat conftest.err >&5
29937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938  (exit $ac_status); } && {
29939	 test -z "$ac_c_werror_flag" ||
29940	 test ! -s conftest.err
29941       } && test -s conftest.$ac_objext; then
29942  ac_hi=-1 ac_mid=-1
29943  while :; do
29944    cat >conftest.$ac_ext <<_ACEOF
29945/* confdefs.h.  */
29946_ACEOF
29947cat confdefs.h >>conftest.$ac_ext
29948cat >>conftest.$ac_ext <<_ACEOF
29949/* end confdefs.h.  */
29950$ac_includes_default
29951int
29952main ()
29953{
29954static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
29955test_array [0] = 0
29956
29957  ;
29958  return 0;
29959}
29960_ACEOF
29961rm -f conftest.$ac_objext
29962if { (ac_try="$ac_compile"
29963case "(($ac_try" in
29964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965  *) ac_try_echo=$ac_try;;
29966esac
29967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29968$as_echo "$ac_try_echo") >&5
29969  (eval "$ac_compile") 2>conftest.er1
29970  ac_status=$?
29971  grep -v '^ *+' conftest.er1 >conftest.err
29972  rm -f conftest.er1
29973  cat conftest.err >&5
29974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975  (exit $ac_status); } && {
29976	 test -z "$ac_c_werror_flag" ||
29977	 test ! -s conftest.err
29978       } && test -s conftest.$ac_objext; then
29979  ac_lo=$ac_mid; break
29980else
29981  $as_echo "$as_me: failed program was:" >&5
29982sed 's/^/| /' conftest.$ac_ext >&5
29983
29984	ac_hi=`expr '(' $ac_mid ')' - 1`
29985			if test $ac_mid -le $ac_hi; then
29986			  ac_lo= ac_hi=
29987			  break
29988			fi
29989			ac_mid=`expr 2 '*' $ac_mid`
29990fi
29991
29992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993  done
29994else
29995  $as_echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
29998	ac_lo= ac_hi=
29999fi
30000
30001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002fi
30003
30004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30005# Binary search between lo and hi bounds.
30006while test "x$ac_lo" != "x$ac_hi"; do
30007  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30008  cat >conftest.$ac_ext <<_ACEOF
30009/* confdefs.h.  */
30010_ACEOF
30011cat confdefs.h >>conftest.$ac_ext
30012cat >>conftest.$ac_ext <<_ACEOF
30013/* end confdefs.h.  */
30014$ac_includes_default
30015int
30016main ()
30017{
30018static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
30019test_array [0] = 0
30020
30021  ;
30022  return 0;
30023}
30024_ACEOF
30025rm -f conftest.$ac_objext
30026if { (ac_try="$ac_compile"
30027case "(($ac_try" in
30028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029  *) ac_try_echo=$ac_try;;
30030esac
30031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30032$as_echo "$ac_try_echo") >&5
30033  (eval "$ac_compile") 2>conftest.er1
30034  ac_status=$?
30035  grep -v '^ *+' conftest.er1 >conftest.err
30036  rm -f conftest.er1
30037  cat conftest.err >&5
30038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039  (exit $ac_status); } && {
30040	 test -z "$ac_c_werror_flag" ||
30041	 test ! -s conftest.err
30042       } && test -s conftest.$ac_objext; then
30043  ac_hi=$ac_mid
30044else
30045  $as_echo "$as_me: failed program was:" >&5
30046sed 's/^/| /' conftest.$ac_ext >&5
30047
30048	ac_lo=`expr '(' $ac_mid ')' + 1`
30049fi
30050
30051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052done
30053case $ac_lo in
30054?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
30055'') if test "$ac_cv_type_unsigned_long" = yes; then
30056     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30058{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
30059See \`config.log' for more details." >&5
30060$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
30061See \`config.log' for more details." >&2;}
30062   { (exit 77); exit 77; }; }; }
30063   else
30064     ac_cv_sizeof_unsigned_long=0
30065   fi ;;
30066esac
30067else
30068  cat >conftest.$ac_ext <<_ACEOF
30069/* confdefs.h.  */
30070_ACEOF
30071cat confdefs.h >>conftest.$ac_ext
30072cat >>conftest.$ac_ext <<_ACEOF
30073/* end confdefs.h.  */
30074$ac_includes_default
30075static long int longval () { return (long int) (sizeof (unsigned long)); }
30076static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
30077#include <stdio.h>
30078#include <stdlib.h>
30079int
30080main ()
30081{
30082
30083  FILE *f = fopen ("conftest.val", "w");
30084  if (! f)
30085    return 1;
30086  if (((long int) (sizeof (unsigned long))) < 0)
30087    {
30088      long int i = longval ();
30089      if (i != ((long int) (sizeof (unsigned long))))
30090	return 1;
30091      fprintf (f, "%ld", i);
30092    }
30093  else
30094    {
30095      unsigned long int i = ulongval ();
30096      if (i != ((long int) (sizeof (unsigned long))))
30097	return 1;
30098      fprintf (f, "%lu", i);
30099    }
30100  /* Do not output a trailing newline, as this causes \r\n confusion
30101     on some platforms.  */
30102  return ferror (f) || fclose (f) != 0;
30103
30104  ;
30105  return 0;
30106}
30107_ACEOF
30108rm -f conftest$ac_exeext
30109if { (ac_try="$ac_link"
30110case "(($ac_try" in
30111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112  *) ac_try_echo=$ac_try;;
30113esac
30114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30115$as_echo "$ac_try_echo") >&5
30116  (eval "$ac_link") 2>&5
30117  ac_status=$?
30118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30120  { (case "(($ac_try" in
30121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122  *) ac_try_echo=$ac_try;;
30123esac
30124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30125$as_echo "$ac_try_echo") >&5
30126  (eval "$ac_try") 2>&5
30127  ac_status=$?
30128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129  (exit $ac_status); }; }; then
30130  ac_cv_sizeof_unsigned_long=`cat conftest.val`
30131else
30132  $as_echo "$as_me: program exited with status $ac_status" >&5
30133$as_echo "$as_me: failed program was:" >&5
30134sed 's/^/| /' conftest.$ac_ext >&5
30135
30136( exit $ac_status )
30137if test "$ac_cv_type_unsigned_long" = yes; then
30138     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30140{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
30141See \`config.log' for more details." >&5
30142$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
30143See \`config.log' for more details." >&2;}
30144   { (exit 77); exit 77; }; }; }
30145   else
30146     ac_cv_sizeof_unsigned_long=0
30147   fi
30148fi
30149rm -rf conftest.dSYM
30150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30151fi
30152rm -f conftest.val
30153fi
30154{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
30155$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
30156
30157
30158
30159cat >>confdefs.h <<_ACEOF
30160#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
30161_ACEOF
30162
30163
30164  if test $ac_cv_sizeof_unsigned_long -eq 8; then
30165    MP_WBITS=64U
30166
30167  elif test $ac_cv_sizeof_unsigned_long -eq 4; then
30168    MP_WBITS=32U
30169
30170  else
30171    { { $as_echo "$as_me:$LINENO: error: Illegal CPU word size" >&5
30172$as_echo "$as_me: error: Illegal CPU word size" >&2;}
30173   { (exit 1); exit 1; }; }
30174  fi
30175
30176
30177# Generate output files.
30178ac_config_files="$ac_config_files Makefile config.m4 include/Makefile include/beecrypt/Doxyfile include/beecrypt/c++/Doxyfile c++/Makefile c++/beeyond/Makefile c++/crypto/Makefile c++/crypto/spec/Makefile c++/io/Makefile c++/lang/Makefile c++/math/Makefile c++/nio/Makefile c++/provider/Makefile c++/security/Makefile c++/security/auth/Makefile c++/security/cert/Makefile c++/security/spec/Makefile c++/util/Makefile c++/util/concurrent/Makefile c++/util/concurrent/locks/Makefile docs/Makefile gas/Makefile java/Makefile java/build.xml masm/Makefile python/Makefile python/test/Makefile tests/Makefile"
30179
30180
30181ac_config_files="$ac_config_files gnu.h"
30182
30183cat >confcache <<\_ACEOF
30184# This file is a shell script that caches the results of configure
30185# tests run on this system so they can be shared between configure
30186# scripts and configure runs, see configure's option --config-cache.
30187# It is not useful on other systems.  If it contains results you don't
30188# want to keep, you may remove or edit it.
30189#
30190# config.status only pays attention to the cache file if you give it
30191# the --recheck option to rerun configure.
30192#
30193# `ac_cv_env_foo' variables (set or unset) will be overridden when
30194# loading this file, other *unset* `ac_cv_foo' will be assigned the
30195# following values.
30196
30197_ACEOF
30198
30199# The following way of writing the cache mishandles newlines in values,
30200# but we know of no workaround that is simple, portable, and efficient.
30201# So, we kill variables containing newlines.
30202# Ultrix sh set writes to stderr and can't be redirected directly,
30203# and sets the high bit in the cache file unless we assign to the vars.
30204(
30205  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30206    eval ac_val=\$$ac_var
30207    case $ac_val in #(
30208    *${as_nl}*)
30209      case $ac_var in #(
30210      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30211$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30212      esac
30213      case $ac_var in #(
30214      _ | IFS | as_nl) ;; #(
30215      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30216      *) $as_unset $ac_var ;;
30217      esac ;;
30218    esac
30219  done
30220
30221  (set) 2>&1 |
30222    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30223    *${as_nl}ac_space=\ *)
30224      # `set' does not quote correctly, so add quotes (double-quote
30225      # substitution turns \\\\ into \\, and sed turns \\ into \).
30226      sed -n \
30227	"s/'/'\\\\''/g;
30228	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30229      ;; #(
30230    *)
30231      # `set' quotes correctly as required by POSIX, so do not add quotes.
30232      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30233      ;;
30234    esac |
30235    sort
30236) |
30237  sed '
30238     /^ac_cv_env_/b end
30239     t clear
30240     :clear
30241     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30242     t end
30243     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30244     :end' >>confcache
30245if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30246  if test -w "$cache_file"; then
30247    test "x$cache_file" != "x/dev/null" &&
30248      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30249$as_echo "$as_me: updating cache $cache_file" >&6;}
30250    cat confcache >$cache_file
30251  else
30252    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30253$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30254  fi
30255fi
30256rm -f confcache
30257
30258test "x$prefix" = xNONE && prefix=$ac_default_prefix
30259# Let make expand exec_prefix.
30260test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30261
30262DEFS=-DHAVE_CONFIG_H
30263
30264ac_libobjs=
30265ac_ltlibobjs=
30266for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30267  # 1. Remove the extension, and $U if already installed.
30268  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30269  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30270  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30271  #    will be set to the directory where LIBOBJS objects are built.
30272  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30273  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30274done
30275LIBOBJS=$ac_libobjs
30276
30277LTLIBOBJS=$ac_ltlibobjs
30278
30279
30280 if test -n "$EXEEXT"; then
30281  am__EXEEXT_TRUE=
30282  am__EXEEXT_FALSE='#'
30283else
30284  am__EXEEXT_TRUE='#'
30285  am__EXEEXT_FALSE=
30286fi
30287
30288if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30289  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30290Usually this means the macro was only invoked conditionally." >&5
30291$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
30292Usually this means the macro was only invoked conditionally." >&2;}
30293   { (exit 1); exit 1; }; }
30294fi
30295if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30296  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30297Usually this means the macro was only invoked conditionally." >&5
30298$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30299Usually this means the macro was only invoked conditionally." >&2;}
30300   { (exit 1); exit 1; }; }
30301fi
30302if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30303  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30304Usually this means the macro was only invoked conditionally." >&5
30305$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30306Usually this means the macro was only invoked conditionally." >&2;}
30307   { (exit 1); exit 1; }; }
30308fi
30309if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30310  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30311Usually this means the macro was only invoked conditionally." >&5
30312$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30313Usually this means the macro was only invoked conditionally." >&2;}
30314   { (exit 1); exit 1; }; }
30315fi
30316if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
30317  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
30318Usually this means the macro was only invoked conditionally." >&5
30319$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
30320Usually this means the macro was only invoked conditionally." >&2;}
30321   { (exit 1); exit 1; }; }
30322fi
30323if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30324  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30325Usually this means the macro was only invoked conditionally." >&5
30326$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30327Usually this means the macro was only invoked conditionally." >&2;}
30328   { (exit 1); exit 1; }; }
30329fi
30330
30331if test -z "${WITH_CPLUSPLUS_TRUE}" && test -z "${WITH_CPLUSPLUS_FALSE}"; then
30332  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_CPLUSPLUS\" was never defined.
30333Usually this means the macro was only invoked conditionally." >&5
30334$as_echo "$as_me: error: conditional \"WITH_CPLUSPLUS\" was never defined.
30335Usually this means the macro was only invoked conditionally." >&2;}
30336   { (exit 1); exit 1; }; }
30337fi
30338if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
30339  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_JAVA\" was never defined.
30340Usually this means the macro was only invoked conditionally." >&5
30341$as_echo "$as_me: error: conditional \"WITH_JAVA\" was never defined.
30342Usually this means the macro was only invoked conditionally." >&2;}
30343   { (exit 1); exit 1; }; }
30344fi
30345if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
30346  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
30347Usually this means the macro was only invoked conditionally." >&5
30348$as_echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
30349Usually this means the macro was only invoked conditionally." >&2;}
30350   { (exit 1); exit 1; }; }
30351fi
30352
30353: ${CONFIG_STATUS=./config.status}
30354ac_write_fail=0
30355ac_clean_files_save=$ac_clean_files
30356ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30357{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30358$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30359cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30360#! $SHELL
30361# Generated by $as_me.
30362# Run this file to recreate the current configuration.
30363# Compiler output produced by configure, useful for debugging
30364# configure, is in config.log if it exists.
30365
30366debug=false
30367ac_cs_recheck=false
30368ac_cs_silent=false
30369SHELL=\${CONFIG_SHELL-$SHELL}
30370_ACEOF
30371
30372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30373## --------------------- ##
30374## M4sh Initialization.  ##
30375## --------------------- ##
30376
30377# Be more Bourne compatible
30378DUALCASE=1; export DUALCASE # for MKS sh
30379if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30380  emulate sh
30381  NULLCMD=:
30382  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30383  # is contrary to our usage.  Disable this feature.
30384  alias -g '${1+"$@"}'='"$@"'
30385  setopt NO_GLOB_SUBST
30386else
30387  case `(set -o) 2>/dev/null` in
30388  *posix*) set -o posix ;;
30389esac
30390
30391fi
30392
30393
30394
30395
30396# PATH needs CR
30397# Avoid depending upon Character Ranges.
30398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30401as_cr_digits='0123456789'
30402as_cr_alnum=$as_cr_Letters$as_cr_digits
30403
30404as_nl='
30405'
30406export as_nl
30407# Printing a long string crashes Solaris 7 /usr/bin/printf.
30408as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30409as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30411if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30412  as_echo='printf %s\n'
30413  as_echo_n='printf %s'
30414else
30415  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30416    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30417    as_echo_n='/usr/ucb/echo -n'
30418  else
30419    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30420    as_echo_n_body='eval
30421      arg=$1;
30422      case $arg in
30423      *"$as_nl"*)
30424	expr "X$arg" : "X\\(.*\\)$as_nl";
30425	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30426      esac;
30427      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30428    '
30429    export as_echo_n_body
30430    as_echo_n='sh -c $as_echo_n_body as_echo'
30431  fi
30432  export as_echo_body
30433  as_echo='sh -c $as_echo_body as_echo'
30434fi
30435
30436# The user is always right.
30437if test "${PATH_SEPARATOR+set}" != set; then
30438  PATH_SEPARATOR=:
30439  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30440    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30441      PATH_SEPARATOR=';'
30442  }
30443fi
30444
30445# Support unset when possible.
30446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30447  as_unset=unset
30448else
30449  as_unset=false
30450fi
30451
30452
30453# IFS
30454# We need space, tab and new line, in precisely that order.  Quoting is
30455# there to prevent editors from complaining about space-tab.
30456# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30457# splitting by setting IFS to empty value.)
30458IFS=" ""	$as_nl"
30459
30460# Find who we are.  Look in the path if we contain no directory separator.
30461case $0 in
30462  *[\\/]* ) as_myself=$0 ;;
30463  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30464for as_dir in $PATH
30465do
30466  IFS=$as_save_IFS
30467  test -z "$as_dir" && as_dir=.
30468  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30469done
30470IFS=$as_save_IFS
30471
30472     ;;
30473esac
30474# We did not find ourselves, most probably we were run as `sh COMMAND'
30475# in which case we are not to be found in the path.
30476if test "x$as_myself" = x; then
30477  as_myself=$0
30478fi
30479if test ! -f "$as_myself"; then
30480  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30481  { (exit 1); exit 1; }
30482fi
30483
30484# Work around bugs in pre-3.0 UWIN ksh.
30485for as_var in ENV MAIL MAILPATH
30486do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30487done
30488PS1='$ '
30489PS2='> '
30490PS4='+ '
30491
30492# NLS nuisances.
30493LC_ALL=C
30494export LC_ALL
30495LANGUAGE=C
30496export LANGUAGE
30497
30498# Required to use basename.
30499if expr a : '\(a\)' >/dev/null 2>&1 &&
30500   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30501  as_expr=expr
30502else
30503  as_expr=false
30504fi
30505
30506if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30507  as_basename=basename
30508else
30509  as_basename=false
30510fi
30511
30512
30513# Name of the executable.
30514as_me=`$as_basename -- "$0" ||
30515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30516	 X"$0" : 'X\(//\)$' \| \
30517	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30518$as_echo X/"$0" |
30519    sed '/^.*\/\([^/][^/]*\)\/*$/{
30520	    s//\1/
30521	    q
30522	  }
30523	  /^X\/\(\/\/\)$/{
30524	    s//\1/
30525	    q
30526	  }
30527	  /^X\/\(\/\).*/{
30528	    s//\1/
30529	    q
30530	  }
30531	  s/.*/./; q'`
30532
30533# CDPATH.
30534$as_unset CDPATH
30535
30536
30537
30538  as_lineno_1=$LINENO
30539  as_lineno_2=$LINENO
30540  test "x$as_lineno_1" != "x$as_lineno_2" &&
30541  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30542
30543  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30544  # uniformly replaced by the line number.  The first 'sed' inserts a
30545  # line-number line after each line using $LINENO; the second 'sed'
30546  # does the real work.  The second script uses 'N' to pair each
30547  # line-number line with the line containing $LINENO, and appends
30548  # trailing '-' during substitution so that $LINENO is not a special
30549  # case at line end.
30550  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30551  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30552  # E. McMahon (1931-1989) for sed's syntax.  :-)
30553  sed -n '
30554    p
30555    /[$]LINENO/=
30556  ' <$as_myself |
30557    sed '
30558      s/[$]LINENO.*/&-/
30559      t lineno
30560      b
30561      :lineno
30562      N
30563      :loop
30564      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30565      t loop
30566      s/-\n.*//
30567    ' >$as_me.lineno &&
30568  chmod +x "$as_me.lineno" ||
30569    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30570   { (exit 1); exit 1; }; }
30571
30572  # Don't try to exec as it changes $[0], causing all sort of problems
30573  # (the dirname of $[0] is not the place where we might find the
30574  # original and so on.  Autoconf is especially sensitive to this).
30575  . "./$as_me.lineno"
30576  # Exit status is that of the last command.
30577  exit
30578}
30579
30580
30581if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30582  as_dirname=dirname
30583else
30584  as_dirname=false
30585fi
30586
30587ECHO_C= ECHO_N= ECHO_T=
30588case `echo -n x` in
30589-n*)
30590  case `echo 'x\c'` in
30591  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30592  *)   ECHO_C='\c';;
30593  esac;;
30594*)
30595  ECHO_N='-n';;
30596esac
30597if expr a : '\(a\)' >/dev/null 2>&1 &&
30598   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30599  as_expr=expr
30600else
30601  as_expr=false
30602fi
30603
30604rm -f conf$$ conf$$.exe conf$$.file
30605if test -d conf$$.dir; then
30606  rm -f conf$$.dir/conf$$.file
30607else
30608  rm -f conf$$.dir
30609  mkdir conf$$.dir 2>/dev/null
30610fi
30611if (echo >conf$$.file) 2>/dev/null; then
30612  if ln -s conf$$.file conf$$ 2>/dev/null; then
30613    as_ln_s='ln -s'
30614    # ... but there are two gotchas:
30615    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30616    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30617    # In both cases, we have to default to `cp -p'.
30618    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30619      as_ln_s='cp -p'
30620  elif ln conf$$.file conf$$ 2>/dev/null; then
30621    as_ln_s=ln
30622  else
30623    as_ln_s='cp -p'
30624  fi
30625else
30626  as_ln_s='cp -p'
30627fi
30628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30629rmdir conf$$.dir 2>/dev/null
30630
30631if mkdir -p . 2>/dev/null; then
30632  as_mkdir_p=:
30633else
30634  test -d ./-p && rmdir ./-p
30635  as_mkdir_p=false
30636fi
30637
30638if test -x / >/dev/null 2>&1; then
30639  as_test_x='test -x'
30640else
30641  if ls -dL / >/dev/null 2>&1; then
30642    as_ls_L_option=L
30643  else
30644    as_ls_L_option=
30645  fi
30646  as_test_x='
30647    eval sh -c '\''
30648      if test -d "$1"; then
30649	test -d "$1/.";
30650      else
30651	case $1 in
30652	-*)set "./$1";;
30653	esac;
30654	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30655	???[sx]*):;;*)false;;esac;fi
30656    '\'' sh
30657  '
30658fi
30659as_executable_p=$as_test_x
30660
30661# Sed expression to map a string onto a valid CPP name.
30662as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30663
30664# Sed expression to map a string onto a valid variable name.
30665as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30666
30667
30668exec 6>&1
30669
30670# Save the log message, to keep $[0] and so on meaningful, and to
30671# report actual input values of CONFIG_FILES etc. instead of their
30672# values after options handling.
30673ac_log="
30674This file was extended by beecrypt $as_me 4.2.1, which was
30675generated by GNU Autoconf 2.63.  Invocation command line was
30676
30677  CONFIG_FILES    = $CONFIG_FILES
30678  CONFIG_HEADERS  = $CONFIG_HEADERS
30679  CONFIG_LINKS    = $CONFIG_LINKS
30680  CONFIG_COMMANDS = $CONFIG_COMMANDS
30681  $ $0 $@
30682
30683on `(hostname || uname -n) 2>/dev/null | sed 1q`
30684"
30685
30686_ACEOF
30687
30688case $ac_config_files in *"
30689"*) set x $ac_config_files; shift; ac_config_files=$*;;
30690esac
30691
30692case $ac_config_headers in *"
30693"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30694esac
30695
30696
30697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30698# Files that config.status was made for.
30699config_files="$ac_config_files"
30700config_headers="$ac_config_headers"
30701config_commands="$ac_config_commands"
30702
30703_ACEOF
30704
30705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30706ac_cs_usage="\
30707\`$as_me' instantiates files from templates according to the
30708current configuration.
30709
30710Usage: $0 [OPTION]... [FILE]...
30711
30712  -h, --help       print this help, then exit
30713  -V, --version    print version number and configuration settings, then exit
30714  -q, --quiet, --silent
30715                   do not print progress messages
30716  -d, --debug      don't remove temporary files
30717      --recheck    update $as_me by reconfiguring in the same conditions
30718      --file=FILE[:TEMPLATE]
30719                   instantiate the configuration file FILE
30720      --header=FILE[:TEMPLATE]
30721                   instantiate the configuration header FILE
30722
30723Configuration files:
30724$config_files
30725
30726Configuration headers:
30727$config_headers
30728
30729Configuration commands:
30730$config_commands
30731
30732Report bugs to <bug-autoconf@gnu.org>."
30733
30734_ACEOF
30735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30736ac_cs_version="\\
30737beecrypt config.status 4.2.1
30738configured by $0, generated by GNU Autoconf 2.63,
30739  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30740
30741Copyright (C) 2008 Free Software Foundation, Inc.
30742This config.status script is free software; the Free Software Foundation
30743gives unlimited permission to copy, distribute and modify it."
30744
30745ac_pwd='$ac_pwd'
30746srcdir='$srcdir'
30747INSTALL='$INSTALL'
30748MKDIR_P='$MKDIR_P'
30749AWK='$AWK'
30750test -n "\$AWK" || AWK=awk
30751_ACEOF
30752
30753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30754# The default lists apply if the user does not specify any file.
30755ac_need_defaults=:
30756while test $# != 0
30757do
30758  case $1 in
30759  --*=*)
30760    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30761    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30762    ac_shift=:
30763    ;;
30764  *)
30765    ac_option=$1
30766    ac_optarg=$2
30767    ac_shift=shift
30768    ;;
30769  esac
30770
30771  case $ac_option in
30772  # Handling of the options.
30773  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30774    ac_cs_recheck=: ;;
30775  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30776    $as_echo "$ac_cs_version"; exit ;;
30777  --debug | --debu | --deb | --de | --d | -d )
30778    debug=: ;;
30779  --file | --fil | --fi | --f )
30780    $ac_shift
30781    case $ac_optarg in
30782    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30783    esac
30784    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30785    ac_need_defaults=false;;
30786  --header | --heade | --head | --hea )
30787    $ac_shift
30788    case $ac_optarg in
30789    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30790    esac
30791    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30792    ac_need_defaults=false;;
30793  --he | --h)
30794    # Conflict between --help and --header
30795    { $as_echo "$as_me: error: ambiguous option: $1
30796Try \`$0 --help' for more information." >&2
30797   { (exit 1); exit 1; }; };;
30798  --help | --hel | -h )
30799    $as_echo "$ac_cs_usage"; exit ;;
30800  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30801  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30802    ac_cs_silent=: ;;
30803
30804  # This is an error.
30805  -*) { $as_echo "$as_me: error: unrecognized option: $1
30806Try \`$0 --help' for more information." >&2
30807   { (exit 1); exit 1; }; } ;;
30808
30809  *) ac_config_targets="$ac_config_targets $1"
30810     ac_need_defaults=false ;;
30811
30812  esac
30813  shift
30814done
30815
30816ac_configure_extra_args=
30817
30818if $ac_cs_silent; then
30819  exec 6>/dev/null
30820  ac_configure_extra_args="$ac_configure_extra_args --silent"
30821fi
30822
30823_ACEOF
30824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30825if \$ac_cs_recheck; then
30826  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30827  shift
30828  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30829  CONFIG_SHELL='$SHELL'
30830  export CONFIG_SHELL
30831  exec "\$@"
30832fi
30833
30834_ACEOF
30835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30836exec 5>>config.log
30837{
30838  echo
30839  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30840## Running $as_me. ##
30841_ASBOX
30842  $as_echo "$ac_log"
30843} >&5
30844
30845_ACEOF
30846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30847#
30848# INIT-COMMANDS
30849#
30850AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30851
30852
30853# The HP-UX ksh and POSIX shell print the target directory to stdout
30854# if CDPATH is set.
30855(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30856
30857sed_quote_subst='$sed_quote_subst'
30858double_quote_subst='$double_quote_subst'
30859delay_variable_subst='$delay_variable_subst'
30860SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30861Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30862GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30863EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30864FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30865LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30866macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30867macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30868enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30869enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30870pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30871enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30872host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30873host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30874host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30875build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30876build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30877build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30878NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30879LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30880max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30881ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30882exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30883lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30884lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30885lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30886reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30887reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30888OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30889deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30890file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30891AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30892AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30893STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30894RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30895old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30896old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30897old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30898CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30899CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30900compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30901GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30902lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30903lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30904lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30905lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30906objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30907SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30908ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30909MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30910lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30911lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30912lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30913lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30914lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30915need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30916DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30917NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30918LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30919OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30920OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30921libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30922shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30923extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30924archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30925enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30926export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30927whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30928compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30929old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30930old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30931archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30932archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30933module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30934module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30935with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30936allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30937no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30938hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30939hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30940hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30941hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30942hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30943hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30944hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30945hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30946inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30947link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30948fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30949always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30950export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30951exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30952include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30953prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30954file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30955variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30956need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30957need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30958version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30959runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30960shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30961shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30962libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30963library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30964soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30965postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30966postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30967finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30968finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30969hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30970sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30971sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30972hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30973enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30974enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30975enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30976old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30977striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30978compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30979predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30980postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30981predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30982postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30983compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30984LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30985old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30986compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30987GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30988lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30989lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30990lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30991lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30992lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30993archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30994enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30995export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30996whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30997compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30998old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30999old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31000archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31001archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31002module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31003module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31004with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31005allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31006no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31007hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31008hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31009hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31010hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31011hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31012hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31013hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31014hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31015inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31016link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31017fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31018always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31019export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31020exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31021include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31022prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31023file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31024hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31025compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31026predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31027postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31028predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31029postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31030compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31031
31032LTCC='$LTCC'
31033LTCFLAGS='$LTCFLAGS'
31034compiler='$compiler_DEFAULT'
31035
31036# Quote evaled strings.
31037for var in SED \
31038GREP \
31039EGREP \
31040FGREP \
31041LD \
31042NM \
31043LN_S \
31044lt_SP2NL \
31045lt_NL2SP \
31046reload_flag \
31047OBJDUMP \
31048deplibs_check_method \
31049file_magic_cmd \
31050AR \
31051AR_FLAGS \
31052STRIP \
31053RANLIB \
31054CC \
31055CFLAGS \
31056compiler \
31057lt_cv_sys_global_symbol_pipe \
31058lt_cv_sys_global_symbol_to_cdecl \
31059lt_cv_sys_global_symbol_to_c_name_address \
31060lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31061SHELL \
31062ECHO \
31063lt_prog_compiler_no_builtin_flag \
31064lt_prog_compiler_wl \
31065lt_prog_compiler_pic \
31066lt_prog_compiler_static \
31067lt_cv_prog_compiler_c_o \
31068need_locks \
31069DSYMUTIL \
31070NMEDIT \
31071LIPO \
31072OTOOL \
31073OTOOL64 \
31074shrext_cmds \
31075export_dynamic_flag_spec \
31076whole_archive_flag_spec \
31077compiler_needs_object \
31078with_gnu_ld \
31079allow_undefined_flag \
31080no_undefined_flag \
31081hardcode_libdir_flag_spec \
31082hardcode_libdir_flag_spec_ld \
31083hardcode_libdir_separator \
31084fix_srcfile_path \
31085exclude_expsyms \
31086include_expsyms \
31087file_list_spec \
31088variables_saved_for_relink \
31089libname_spec \
31090library_names_spec \
31091soname_spec \
31092finish_eval \
31093old_striplib \
31094striplib \
31095compiler_lib_search_dirs \
31096predep_objects \
31097postdep_objects \
31098predeps \
31099postdeps \
31100compiler_lib_search_path \
31101LD_CXX \
31102compiler_CXX \
31103lt_prog_compiler_no_builtin_flag_CXX \
31104lt_prog_compiler_wl_CXX \
31105lt_prog_compiler_pic_CXX \
31106lt_prog_compiler_static_CXX \
31107lt_cv_prog_compiler_c_o_CXX \
31108export_dynamic_flag_spec_CXX \
31109whole_archive_flag_spec_CXX \
31110compiler_needs_object_CXX \
31111with_gnu_ld_CXX \
31112allow_undefined_flag_CXX \
31113no_undefined_flag_CXX \
31114hardcode_libdir_flag_spec_CXX \
31115hardcode_libdir_flag_spec_ld_CXX \
31116hardcode_libdir_separator_CXX \
31117fix_srcfile_path_CXX \
31118exclude_expsyms_CXX \
31119include_expsyms_CXX \
31120file_list_spec_CXX \
31121compiler_lib_search_dirs_CXX \
31122predep_objects_CXX \
31123postdep_objects_CXX \
31124predeps_CXX \
31125postdeps_CXX \
31126compiler_lib_search_path_CXX; do
31127    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31128    *[\\\\\\\`\\"\\\$]*)
31129      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31130      ;;
31131    *)
31132      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31133      ;;
31134    esac
31135done
31136
31137# Double-quote double-evaled strings.
31138for var in reload_cmds \
31139old_postinstall_cmds \
31140old_postuninstall_cmds \
31141old_archive_cmds \
31142extract_expsyms_cmds \
31143old_archive_from_new_cmds \
31144old_archive_from_expsyms_cmds \
31145archive_cmds \
31146archive_expsym_cmds \
31147module_cmds \
31148module_expsym_cmds \
31149export_symbols_cmds \
31150prelink_cmds \
31151postinstall_cmds \
31152postuninstall_cmds \
31153finish_cmds \
31154sys_lib_search_path_spec \
31155sys_lib_dlsearch_path_spec \
31156old_archive_cmds_CXX \
31157old_archive_from_new_cmds_CXX \
31158old_archive_from_expsyms_cmds_CXX \
31159archive_cmds_CXX \
31160archive_expsym_cmds_CXX \
31161module_cmds_CXX \
31162module_expsym_cmds_CXX \
31163export_symbols_cmds_CXX \
31164prelink_cmds_CXX; do
31165    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31166    *[\\\\\\\`\\"\\\$]*)
31167      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31168      ;;
31169    *)
31170      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31171      ;;
31172    esac
31173done
31174
31175# Fix-up fallback echo if it was mangled by the above quoting rules.
31176case \$lt_ECHO in
31177*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31178  ;;
31179esac
31180
31181ac_aux_dir='$ac_aux_dir'
31182xsi_shell='$xsi_shell'
31183lt_shell_append='$lt_shell_append'
31184
31185# See if we are running on zsh, and set the options which allow our
31186# commands through without removal of \ escapes INIT.
31187if test -n "\${ZSH_VERSION+set}" ; then
31188   setopt NO_GLOB_SUBST
31189fi
31190
31191
31192    PACKAGE='$PACKAGE'
31193    VERSION='$VERSION'
31194    TIMESTAMP='$TIMESTAMP'
31195    RM='$RM'
31196    ofile='$ofile'
31197
31198
31199
31200
31201
31202
31203_ACEOF
31204
31205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31206
31207# Handling of arguments.
31208for ac_config_target in $ac_config_targets
31209do
31210  case $ac_config_target in
31211    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31212    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31213    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31214    "mpopt.arm") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.arm" ;;
31215    "mpopt.alpha") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.alpha" ;;
31216    "mpopt.x86_64") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.x86_64" ;;
31217    "mpopt.x86") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.x86" ;;
31218    "sha1opt.x86") CONFIG_COMMANDS="$CONFIG_COMMANDS sha1opt.x86" ;;
31219    "mpopt.ia64") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.ia64" ;;
31220    "mpopt.m68k") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.m68k" ;;
31221    "mpopt.ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.ppc" ;;
31222    "mpopt.ppc64") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.ppc64" ;;
31223    "mpopt.s390x") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.s390x" ;;
31224    "mpopt.sparcv8") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.sparcv8" ;;
31225    "mpopt.sparcv8plus") CONFIG_COMMANDS="$CONFIG_COMMANDS mpopt.sparcv8plus" ;;
31226    "blowfishopt.i586") CONFIG_COMMANDS="$CONFIG_COMMANDS blowfishopt.i586" ;;
31227    "blowfishopt.ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS blowfishopt.ppc" ;;
31228    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31229    "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
31230    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31231    "include/beecrypt/Doxyfile") CONFIG_FILES="$CONFIG_FILES include/beecrypt/Doxyfile" ;;
31232    "include/beecrypt/c++/Doxyfile") CONFIG_FILES="$CONFIG_FILES include/beecrypt/c++/Doxyfile" ;;
31233    "c++/Makefile") CONFIG_FILES="$CONFIG_FILES c++/Makefile" ;;
31234    "c++/beeyond/Makefile") CONFIG_FILES="$CONFIG_FILES c++/beeyond/Makefile" ;;
31235    "c++/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES c++/crypto/Makefile" ;;
31236    "c++/crypto/spec/Makefile") CONFIG_FILES="$CONFIG_FILES c++/crypto/spec/Makefile" ;;
31237    "c++/io/Makefile") CONFIG_FILES="$CONFIG_FILES c++/io/Makefile" ;;
31238    "c++/lang/Makefile") CONFIG_FILES="$CONFIG_FILES c++/lang/Makefile" ;;
31239    "c++/math/Makefile") CONFIG_FILES="$CONFIG_FILES c++/math/Makefile" ;;
31240    "c++/nio/Makefile") CONFIG_FILES="$CONFIG_FILES c++/nio/Makefile" ;;
31241    "c++/provider/Makefile") CONFIG_FILES="$CONFIG_FILES c++/provider/Makefile" ;;
31242    "c++/security/Makefile") CONFIG_FILES="$CONFIG_FILES c++/security/Makefile" ;;
31243    "c++/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES c++/security/auth/Makefile" ;;
31244    "c++/security/cert/Makefile") CONFIG_FILES="$CONFIG_FILES c++/security/cert/Makefile" ;;
31245    "c++/security/spec/Makefile") CONFIG_FILES="$CONFIG_FILES c++/security/spec/Makefile" ;;
31246    "c++/util/Makefile") CONFIG_FILES="$CONFIG_FILES c++/util/Makefile" ;;
31247    "c++/util/concurrent/Makefile") CONFIG_FILES="$CONFIG_FILES c++/util/concurrent/Makefile" ;;
31248    "c++/util/concurrent/locks/Makefile") CONFIG_FILES="$CONFIG_FILES c++/util/concurrent/locks/Makefile" ;;
31249    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
31250    "gas/Makefile") CONFIG_FILES="$CONFIG_FILES gas/Makefile" ;;
31251    "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
31252    "java/build.xml") CONFIG_FILES="$CONFIG_FILES java/build.xml" ;;
31253    "masm/Makefile") CONFIG_FILES="$CONFIG_FILES masm/Makefile" ;;
31254    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
31255    "python/test/Makefile") CONFIG_FILES="$CONFIG_FILES python/test/Makefile" ;;
31256    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31257    "gnu.h") CONFIG_FILES="$CONFIG_FILES gnu.h" ;;
31258
31259  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31260$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31261   { (exit 1); exit 1; }; };;
31262  esac
31263done
31264
31265
31266# If the user did not use the arguments to specify the items to instantiate,
31267# then the envvar interface is used.  Set only those that are not.
31268# We use the long form for the default assignment because of an extremely
31269# bizarre bug on SunOS 4.1.3.
31270if $ac_need_defaults; then
31271  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31272  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31273  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31274fi
31275
31276# Have a temporary directory for convenience.  Make it in the build tree
31277# simply because there is no reason against having it here, and in addition,
31278# creating and moving files from /tmp can sometimes cause problems.
31279# Hook for its removal unless debugging.
31280# Note that there is a small window in which the directory will not be cleaned:
31281# after its creation but before its name has been assigned to `$tmp'.
31282$debug ||
31283{
31284  tmp=
31285  trap 'exit_status=$?
31286  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31287' 0
31288  trap '{ (exit 1); exit 1; }' 1 2 13 15
31289}
31290# Create a (secure) tmp directory for tmp files.
31291
31292{
31293  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31294  test -n "$tmp" && test -d "$tmp"
31295}  ||
31296{
31297  tmp=./conf$$-$RANDOM
31298  (umask 077 && mkdir "$tmp")
31299} ||
31300{
31301   $as_echo "$as_me: cannot create a temporary directory in ." >&2
31302   { (exit 1); exit 1; }
31303}
31304
31305# Set up the scripts for CONFIG_FILES section.
31306# No need to generate them if there are no CONFIG_FILES.
31307# This happens for instance with `./config.status config.h'.
31308if test -n "$CONFIG_FILES"; then
31309
31310
31311ac_cr='
31312'
31313ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31314if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31315  ac_cs_awk_cr='\\r'
31316else
31317  ac_cs_awk_cr=$ac_cr
31318fi
31319
31320echo 'BEGIN {' >"$tmp/subs1.awk" &&
31321_ACEOF
31322
31323
31324{
31325  echo "cat >conf$$subs.awk <<_ACEOF" &&
31326  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31327  echo "_ACEOF"
31328} >conf$$subs.sh ||
31329  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31330$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31331   { (exit 1); exit 1; }; }
31332ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31333ac_delim='%!_!# '
31334for ac_last_try in false false false false false :; do
31335  . ./conf$$subs.sh ||
31336    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31337$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31338   { (exit 1); exit 1; }; }
31339
31340  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31341  if test $ac_delim_n = $ac_delim_num; then
31342    break
31343  elif $ac_last_try; then
31344    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31345$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31346   { (exit 1); exit 1; }; }
31347  else
31348    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31349  fi
31350done
31351rm -f conf$$subs.sh
31352
31353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31354cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31355_ACEOF
31356sed -n '
31357h
31358s/^/S["/; s/!.*/"]=/
31359p
31360g
31361s/^[^!]*!//
31362:repl
31363t repl
31364s/'"$ac_delim"'$//
31365t delim
31366:nl
31367h
31368s/\(.\{148\}\).*/\1/
31369t more1
31370s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31371p
31372n
31373b repl
31374:more1
31375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31376p
31377g
31378s/.\{148\}//
31379t nl
31380:delim
31381h
31382s/\(.\{148\}\).*/\1/
31383t more2
31384s/["\\]/\\&/g; s/^/"/; s/$/"/
31385p
31386b
31387:more2
31388s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31389p
31390g
31391s/.\{148\}//
31392t delim
31393' <conf$$subs.awk | sed '
31394/^[^""]/{
31395  N
31396  s/\n//
31397}
31398' >>$CONFIG_STATUS || ac_write_fail=1
31399rm -f conf$$subs.awk
31400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31401_ACAWK
31402cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31403  for (key in S) S_is_set[key] = 1
31404  FS = ""
31405
31406}
31407{
31408  line = $ 0
31409  nfields = split(line, field, "@")
31410  substed = 0
31411  len = length(field[1])
31412  for (i = 2; i < nfields; i++) {
31413    key = field[i]
31414    keylen = length(key)
31415    if (S_is_set[key]) {
31416      value = S[key]
31417      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31418      len += length(value) + length(field[++i])
31419      substed = 1
31420    } else
31421      len += 1 + keylen
31422  }
31423
31424  print line
31425}
31426
31427_ACAWK
31428_ACEOF
31429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31430if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31431  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31432else
31433  cat
31434fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31435  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31436$as_echo "$as_me: error: could not setup config files machinery" >&2;}
31437   { (exit 1); exit 1; }; }
31438_ACEOF
31439
31440# VPATH may cause trouble with some makes, so we remove $(srcdir),
31441# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31442# trailing colons and then remove the whole line if VPATH becomes empty
31443# (actually we leave an empty line to preserve line numbers).
31444if test "x$srcdir" = x.; then
31445  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31446s/:*\$(srcdir):*/:/
31447s/:*\${srcdir}:*/:/
31448s/:*@srcdir@:*/:/
31449s/^\([^=]*=[	 ]*\):*/\1/
31450s/:*$//
31451s/^[^=]*=[	 ]*$//
31452}'
31453fi
31454
31455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31456fi # test -n "$CONFIG_FILES"
31457
31458# Set up the scripts for CONFIG_HEADERS section.
31459# No need to generate them if there are no CONFIG_HEADERS.
31460# This happens for instance with `./config.status Makefile'.
31461if test -n "$CONFIG_HEADERS"; then
31462cat >"$tmp/defines.awk" <<\_ACAWK ||
31463BEGIN {
31464_ACEOF
31465
31466# Transform confdefs.h into an awk script `defines.awk', embedded as
31467# here-document in config.status, that substitutes the proper values into
31468# config.h.in to produce config.h.
31469
31470# Create a delimiter string that does not exist in confdefs.h, to ease
31471# handling of long lines.
31472ac_delim='%!_!# '
31473for ac_last_try in false false :; do
31474  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31475  if test -z "$ac_t"; then
31476    break
31477  elif $ac_last_try; then
31478    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31479$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31480   { (exit 1); exit 1; }; }
31481  else
31482    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31483  fi
31484done
31485
31486# For the awk script, D is an array of macro values keyed by name,
31487# likewise P contains macro parameters if any.  Preserve backslash
31488# newline sequences.
31489
31490ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31491sed -n '
31492s/.\{148\}/&'"$ac_delim"'/g
31493t rset
31494:rset
31495s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31496t def
31497d
31498:def
31499s/\\$//
31500t bsnl
31501s/["\\]/\\&/g
31502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31503D["\1"]=" \3"/p
31504s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
31505d
31506:bsnl
31507s/["\\]/\\&/g
31508s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31509D["\1"]=" \3\\\\\\n"\\/p
31510t cont
31511s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31512t cont
31513d
31514:cont
31515n
31516s/.\{148\}/&'"$ac_delim"'/g
31517t clear
31518:clear
31519s/\\$//
31520t bsnlc
31521s/["\\]/\\&/g; s/^/"/; s/$/"/p
31522d
31523:bsnlc
31524s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31525b cont
31526' <confdefs.h | sed '
31527s/'"$ac_delim"'/"\\\
31528"/g' >>$CONFIG_STATUS || ac_write_fail=1
31529
31530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31531  for (key in D) D_is_set[key] = 1
31532  FS = ""
31533}
31534/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31535  line = \$ 0
31536  split(line, arg, " ")
31537  if (arg[1] == "#") {
31538    defundef = arg[2]
31539    mac1 = arg[3]
31540  } else {
31541    defundef = substr(arg[1], 2)
31542    mac1 = arg[2]
31543  }
31544  split(mac1, mac2, "(") #)
31545  macro = mac2[1]
31546  prefix = substr(line, 1, index(line, defundef) - 1)
31547  if (D_is_set[macro]) {
31548    # Preserve the white space surrounding the "#".
31549    print prefix "define", macro P[macro] D[macro]
31550    next
31551  } else {
31552    # Replace #undef with comments.  This is necessary, for example,
31553    # in the case of _POSIX_SOURCE, which is predefined and required
31554    # on some systems where configure will not decide to define it.
31555    if (defundef == "undef") {
31556      print "/*", prefix defundef, macro, "*/"
31557      next
31558    }
31559  }
31560}
31561{ print }
31562_ACAWK
31563_ACEOF
31564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31565  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31566$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31567   { (exit 1); exit 1; }; }
31568fi # test -n "$CONFIG_HEADERS"
31569
31570
31571eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31572shift
31573for ac_tag
31574do
31575  case $ac_tag in
31576  :[FHLC]) ac_mode=$ac_tag; continue;;
31577  esac
31578  case $ac_mode$ac_tag in
31579  :[FHL]*:*);;
31580  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31581$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31582   { (exit 1); exit 1; }; };;
31583  :[FH]-) ac_tag=-:-;;
31584  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31585  esac
31586  ac_save_IFS=$IFS
31587  IFS=:
31588  set x $ac_tag
31589  IFS=$ac_save_IFS
31590  shift
31591  ac_file=$1
31592  shift
31593
31594  case $ac_mode in
31595  :L) ac_source=$1;;
31596  :[FH])
31597    ac_file_inputs=
31598    for ac_f
31599    do
31600      case $ac_f in
31601      -) ac_f="$tmp/stdin";;
31602      *) # Look for the file first in the build tree, then in the source tree
31603	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31604	 # because $ac_f cannot contain `:'.
31605	 test -f "$ac_f" ||
31606	   case $ac_f in
31607	   [\\/$]*) false;;
31608	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31609	   esac ||
31610	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31611$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31612   { (exit 1); exit 1; }; };;
31613      esac
31614      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31615      ac_file_inputs="$ac_file_inputs '$ac_f'"
31616    done
31617
31618    # Let's still pretend it is `configure' which instantiates (i.e., don't
31619    # use $as_me), people would be surprised to read:
31620    #    /* config.h.  Generated by config.status.  */
31621    configure_input='Generated from '`
31622	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31623	`' by configure.'
31624    if test x"$ac_file" != x-; then
31625      configure_input="$ac_file.  $configure_input"
31626      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31627$as_echo "$as_me: creating $ac_file" >&6;}
31628    fi
31629    # Neutralize special characters interpreted by sed in replacement strings.
31630    case $configure_input in #(
31631    *\&* | *\|* | *\\* )
31632       ac_sed_conf_input=`$as_echo "$configure_input" |
31633       sed 's/[\\\\&|]/\\\\&/g'`;; #(
31634    *) ac_sed_conf_input=$configure_input;;
31635    esac
31636
31637    case $ac_tag in
31638    *:-:* | *:-) cat >"$tmp/stdin" \
31639      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31640$as_echo "$as_me: error: could not create $ac_file" >&2;}
31641   { (exit 1); exit 1; }; } ;;
31642    esac
31643    ;;
31644  esac
31645
31646  ac_dir=`$as_dirname -- "$ac_file" ||
31647$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31648	 X"$ac_file" : 'X\(//\)[^/]' \| \
31649	 X"$ac_file" : 'X\(//\)$' \| \
31650	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31651$as_echo X"$ac_file" |
31652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31653	    s//\1/
31654	    q
31655	  }
31656	  /^X\(\/\/\)[^/].*/{
31657	    s//\1/
31658	    q
31659	  }
31660	  /^X\(\/\/\)$/{
31661	    s//\1/
31662	    q
31663	  }
31664	  /^X\(\/\).*/{
31665	    s//\1/
31666	    q
31667	  }
31668	  s/.*/./; q'`
31669  { as_dir="$ac_dir"
31670  case $as_dir in #(
31671  -*) as_dir=./$as_dir;;
31672  esac
31673  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31674    as_dirs=
31675    while :; do
31676      case $as_dir in #(
31677      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31678      *) as_qdir=$as_dir;;
31679      esac
31680      as_dirs="'$as_qdir' $as_dirs"
31681      as_dir=`$as_dirname -- "$as_dir" ||
31682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31683	 X"$as_dir" : 'X\(//\)[^/]' \| \
31684	 X"$as_dir" : 'X\(//\)$' \| \
31685	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31686$as_echo X"$as_dir" |
31687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31688	    s//\1/
31689	    q
31690	  }
31691	  /^X\(\/\/\)[^/].*/{
31692	    s//\1/
31693	    q
31694	  }
31695	  /^X\(\/\/\)$/{
31696	    s//\1/
31697	    q
31698	  }
31699	  /^X\(\/\).*/{
31700	    s//\1/
31701	    q
31702	  }
31703	  s/.*/./; q'`
31704      test -d "$as_dir" && break
31705    done
31706    test -z "$as_dirs" || eval "mkdir $as_dirs"
31707  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31708$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31709   { (exit 1); exit 1; }; }; }
31710  ac_builddir=.
31711
31712case "$ac_dir" in
31713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31714*)
31715  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31716  # A ".." for each directory in $ac_dir_suffix.
31717  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31718  case $ac_top_builddir_sub in
31719  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31720  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31721  esac ;;
31722esac
31723ac_abs_top_builddir=$ac_pwd
31724ac_abs_builddir=$ac_pwd$ac_dir_suffix
31725# for backward compatibility:
31726ac_top_builddir=$ac_top_build_prefix
31727
31728case $srcdir in
31729  .)  # We are building in place.
31730    ac_srcdir=.
31731    ac_top_srcdir=$ac_top_builddir_sub
31732    ac_abs_top_srcdir=$ac_pwd ;;
31733  [\\/]* | ?:[\\/]* )  # Absolute name.
31734    ac_srcdir=$srcdir$ac_dir_suffix;
31735    ac_top_srcdir=$srcdir
31736    ac_abs_top_srcdir=$srcdir ;;
31737  *) # Relative name.
31738    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31739    ac_top_srcdir=$ac_top_build_prefix$srcdir
31740    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31741esac
31742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31743
31744
31745  case $ac_mode in
31746  :F)
31747  #
31748  # CONFIG_FILE
31749  #
31750
31751  case $INSTALL in
31752  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31753  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31754  esac
31755  ac_MKDIR_P=$MKDIR_P
31756  case $MKDIR_P in
31757  [\\/$]* | ?:[\\/]* ) ;;
31758  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31759  esac
31760_ACEOF
31761
31762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31763# If the template does not know about datarootdir, expand it.
31764# FIXME: This hack should be removed a few years after 2.60.
31765ac_datarootdir_hack=; ac_datarootdir_seen=
31766
31767ac_sed_dataroot='
31768/datarootdir/ {
31769  p
31770  q
31771}
31772/@datadir@/p
31773/@docdir@/p
31774/@infodir@/p
31775/@localedir@/p
31776/@mandir@/p
31777'
31778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31779*datarootdir*) ac_datarootdir_seen=yes;;
31780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31781  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31782$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31783_ACEOF
31784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31785  ac_datarootdir_hack='
31786  s&@datadir@&$datadir&g
31787  s&@docdir@&$docdir&g
31788  s&@infodir@&$infodir&g
31789  s&@localedir@&$localedir&g
31790  s&@mandir@&$mandir&g
31791    s&\\\${datarootdir}&$datarootdir&g' ;;
31792esac
31793_ACEOF
31794
31795# Neutralize VPATH when `$srcdir' = `.'.
31796# Shell code in configure.ac might set extrasub.
31797# FIXME: do we really want to maintain this feature?
31798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31799ac_sed_extra="$ac_vpsub
31800$extrasub
31801_ACEOF
31802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31803:t
31804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31805s|@configure_input@|$ac_sed_conf_input|;t t
31806s&@top_builddir@&$ac_top_builddir_sub&;t t
31807s&@top_build_prefix@&$ac_top_build_prefix&;t t
31808s&@srcdir@&$ac_srcdir&;t t
31809s&@abs_srcdir@&$ac_abs_srcdir&;t t
31810s&@top_srcdir@&$ac_top_srcdir&;t t
31811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31812s&@builddir@&$ac_builddir&;t t
31813s&@abs_builddir@&$ac_abs_builddir&;t t
31814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31815s&@INSTALL@&$ac_INSTALL&;t t
31816s&@MKDIR_P@&$ac_MKDIR_P&;t t
31817$ac_datarootdir_hack
31818"
31819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31820  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31821$as_echo "$as_me: error: could not create $ac_file" >&2;}
31822   { (exit 1); exit 1; }; }
31823
31824test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31825  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31826  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31827  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31828which seems to be undefined.  Please make sure it is defined." >&5
31829$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31830which seems to be undefined.  Please make sure it is defined." >&2;}
31831
31832  rm -f "$tmp/stdin"
31833  case $ac_file in
31834  -) cat "$tmp/out" && rm -f "$tmp/out";;
31835  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31836  esac \
31837  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31838$as_echo "$as_me: error: could not create $ac_file" >&2;}
31839   { (exit 1); exit 1; }; }
31840 ;;
31841  :H)
31842  #
31843  # CONFIG_HEADER
31844  #
31845  if test x"$ac_file" != x-; then
31846    {
31847      $as_echo "/* $configure_input  */" \
31848      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31849    } >"$tmp/config.h" \
31850      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31851$as_echo "$as_me: error: could not create $ac_file" >&2;}
31852   { (exit 1); exit 1; }; }
31853    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31854      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31855$as_echo "$as_me: $ac_file is unchanged" >&6;}
31856    else
31857      rm -f "$ac_file"
31858      mv "$tmp/config.h" "$ac_file" \
31859	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31860$as_echo "$as_me: error: could not create $ac_file" >&2;}
31861   { (exit 1); exit 1; }; }
31862    fi
31863  else
31864    $as_echo "/* $configure_input  */" \
31865      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31866      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31867$as_echo "$as_me: error: could not create -" >&2;}
31868   { (exit 1); exit 1; }; }
31869  fi
31870# Compute "$ac_file"'s index in $config_headers.
31871_am_arg="$ac_file"
31872_am_stamp_count=1
31873for _am_header in $config_headers :; do
31874  case $_am_header in
31875    $_am_arg | $_am_arg:* )
31876      break ;;
31877    * )
31878      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31879  esac
31880done
31881echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31882$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31883	 X"$_am_arg" : 'X\(//\)[^/]' \| \
31884	 X"$_am_arg" : 'X\(//\)$' \| \
31885	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31886$as_echo X"$_am_arg" |
31887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31888	    s//\1/
31889	    q
31890	  }
31891	  /^X\(\/\/\)[^/].*/{
31892	    s//\1/
31893	    q
31894	  }
31895	  /^X\(\/\/\)$/{
31896	    s//\1/
31897	    q
31898	  }
31899	  /^X\(\/\).*/{
31900	    s//\1/
31901	    q
31902	  }
31903	  s/.*/./; q'`/stamp-h$_am_stamp_count
31904 ;;
31905
31906  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31907$as_echo "$as_me: executing $ac_file commands" >&6;}
31908 ;;
31909  esac
31910
31911
31912  case $ac_file$ac_mode in
31913    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31914  # Autoconf 2.62 quotes --file arguments for eval, but not when files
31915  # are listed without --file.  Let's play safe and only enable the eval
31916  # if we detect the quoting.
31917  case $CONFIG_FILES in
31918  *\'*) eval set x "$CONFIG_FILES" ;;
31919  *)   set x $CONFIG_FILES ;;
31920  esac
31921  shift
31922  for mf
31923  do
31924    # Strip MF so we end up with the name of the file.
31925    mf=`echo "$mf" | sed -e 's/:.*$//'`
31926    # Check whether this is an Automake generated Makefile or not.
31927    # We used to match only the files named `Makefile.in', but
31928    # some people rename them; so instead we look at the file content.
31929    # Grep'ing the first line is not enough: some people post-process
31930    # each Makefile.in and add a new line on top of each file to say so.
31931    # Grep'ing the whole file is not good either: AIX grep has a line
31932    # limit of 2048, but all sed's we know have understand at least 4000.
31933    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31934      dirpart=`$as_dirname -- "$mf" ||
31935$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31936	 X"$mf" : 'X\(//\)[^/]' \| \
31937	 X"$mf" : 'X\(//\)$' \| \
31938	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31939$as_echo X"$mf" |
31940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31941	    s//\1/
31942	    q
31943	  }
31944	  /^X\(\/\/\)[^/].*/{
31945	    s//\1/
31946	    q
31947	  }
31948	  /^X\(\/\/\)$/{
31949	    s//\1/
31950	    q
31951	  }
31952	  /^X\(\/\).*/{
31953	    s//\1/
31954	    q
31955	  }
31956	  s/.*/./; q'`
31957    else
31958      continue
31959    fi
31960    # Extract the definition of DEPDIR, am__include, and am__quote
31961    # from the Makefile without running `make'.
31962    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31963    test -z "$DEPDIR" && continue
31964    am__include=`sed -n 's/^am__include = //p' < "$mf"`
31965    test -z "am__include" && continue
31966    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31967    # When using ansi2knr, U may be empty or an underscore; expand it
31968    U=`sed -n 's/^U = //p' < "$mf"`
31969    # Find all dependency output files, they are included files with
31970    # $(DEPDIR) in their names.  We invoke sed twice because it is the
31971    # simplest approach to changing $(DEPDIR) to its actual value in the
31972    # expansion.
31973    for file in `sed -n "
31974      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31975	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31976      # Make sure the directory exists.
31977      test -f "$dirpart/$file" && continue
31978      fdir=`$as_dirname -- "$file" ||
31979$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31980	 X"$file" : 'X\(//\)[^/]' \| \
31981	 X"$file" : 'X\(//\)$' \| \
31982	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31983$as_echo X"$file" |
31984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31985	    s//\1/
31986	    q
31987	  }
31988	  /^X\(\/\/\)[^/].*/{
31989	    s//\1/
31990	    q
31991	  }
31992	  /^X\(\/\/\)$/{
31993	    s//\1/
31994	    q
31995	  }
31996	  /^X\(\/\).*/{
31997	    s//\1/
31998	    q
31999	  }
32000	  s/.*/./; q'`
32001      { as_dir=$dirpart/$fdir
32002  case $as_dir in #(
32003  -*) as_dir=./$as_dir;;
32004  esac
32005  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32006    as_dirs=
32007    while :; do
32008      case $as_dir in #(
32009      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32010      *) as_qdir=$as_dir;;
32011      esac
32012      as_dirs="'$as_qdir' $as_dirs"
32013      as_dir=`$as_dirname -- "$as_dir" ||
32014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32015	 X"$as_dir" : 'X\(//\)[^/]' \| \
32016	 X"$as_dir" : 'X\(//\)$' \| \
32017	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32018$as_echo X"$as_dir" |
32019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32020	    s//\1/
32021	    q
32022	  }
32023	  /^X\(\/\/\)[^/].*/{
32024	    s//\1/
32025	    q
32026	  }
32027	  /^X\(\/\/\)$/{
32028	    s//\1/
32029	    q
32030	  }
32031	  /^X\(\/\).*/{
32032	    s//\1/
32033	    q
32034	  }
32035	  s/.*/./; q'`
32036      test -d "$as_dir" && break
32037    done
32038    test -z "$as_dirs" || eval "mkdir $as_dirs"
32039  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32040$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32041   { (exit 1); exit 1; }; }; }
32042      # echo "creating $dirpart/$file"
32043      echo '# dummy' > "$dirpart/$file"
32044    done
32045  done
32046}
32047 ;;
32048    "libtool":C)
32049
32050    # See if we are running on zsh, and set the options which allow our
32051    # commands through without removal of \ escapes.
32052    if test -n "${ZSH_VERSION+set}" ; then
32053      setopt NO_GLOB_SUBST
32054    fi
32055
32056    cfgfile="${ofile}T"
32057    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32058    $RM "$cfgfile"
32059
32060    cat <<_LT_EOF >> "$cfgfile"
32061#! $SHELL
32062
32063# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32064# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32066# NOTE: Changes made to this file will be lost: look at ltmain.sh.
32067#
32068#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32069#                 2006, 2007, 2008 Free Software Foundation, Inc.
32070#   Written by Gordon Matzigkeit, 1996
32071#
32072#   This file is part of GNU Libtool.
32073#
32074# GNU Libtool is free software; you can redistribute it and/or
32075# modify it under the terms of the GNU General Public License as
32076# published by the Free Software Foundation; either version 2 of
32077# the License, or (at your option) any later version.
32078#
32079# As a special exception to the GNU General Public License,
32080# if you distribute this file as part of a program or library that
32081# is built using GNU Libtool, you may include this file under the
32082# same distribution terms that you use for the rest of that program.
32083#
32084# GNU Libtool is distributed in the hope that it will be useful,
32085# but WITHOUT ANY WARRANTY; without even the implied warranty of
32086# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32087# GNU General Public License for more details.
32088#
32089# You should have received a copy of the GNU General Public License
32090# along with GNU Libtool; see the file COPYING.  If not, a copy
32091# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32092# obtained by writing to the Free Software Foundation, Inc.,
32093# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32094
32095
32096# The names of the tagged configurations supported by this script.
32097available_tags="CXX "
32098
32099# ### BEGIN LIBTOOL CONFIG
32100
32101# A sed program that does not truncate output.
32102SED=$lt_SED
32103
32104# Sed that helps us avoid accidentally triggering echo(1) options like -n.
32105Xsed="\$SED -e 1s/^X//"
32106
32107# A grep program that handles long lines.
32108GREP=$lt_GREP
32109
32110# An ERE matcher.
32111EGREP=$lt_EGREP
32112
32113# A literal string matcher.
32114FGREP=$lt_FGREP
32115
32116# Which release of libtool.m4 was used?
32117macro_version=$macro_version
32118macro_revision=$macro_revision
32119
32120# Whether or not to build shared libraries.
32121build_libtool_libs=$enable_shared
32122
32123# Whether or not to build static libraries.
32124build_old_libs=$enable_static
32125
32126# What type of objects to build.
32127pic_mode=$pic_mode
32128
32129# Whether or not to optimize for fast installation.
32130fast_install=$enable_fast_install
32131
32132# The host system.
32133host_alias=$host_alias
32134host=$host
32135host_os=$host_os
32136
32137# The build system.
32138build_alias=$build_alias
32139build=$build
32140build_os=$build_os
32141
32142# A BSD- or MS-compatible name lister.
32143NM=$lt_NM
32144
32145# Whether we need soft or hard links.
32146LN_S=$lt_LN_S
32147
32148# What is the maximum length of a command?
32149max_cmd_len=$max_cmd_len
32150
32151# Object file suffix (normally "o").
32152objext=$ac_objext
32153
32154# Executable file suffix (normally "").
32155exeext=$exeext
32156
32157# whether the shell understands "unset".
32158lt_unset=$lt_unset
32159
32160# turn spaces into newlines.
32161SP2NL=$lt_lt_SP2NL
32162
32163# turn newlines into spaces.
32164NL2SP=$lt_lt_NL2SP
32165
32166# How to create reloadable object files.
32167reload_flag=$lt_reload_flag
32168reload_cmds=$lt_reload_cmds
32169
32170# An object symbol dumper.
32171OBJDUMP=$lt_OBJDUMP
32172
32173# Method to check whether dependent libraries are shared objects.
32174deplibs_check_method=$lt_deplibs_check_method
32175
32176# Command to use when deplibs_check_method == "file_magic".
32177file_magic_cmd=$lt_file_magic_cmd
32178
32179# The archiver.
32180AR=$lt_AR
32181AR_FLAGS=$lt_AR_FLAGS
32182
32183# A symbol stripping program.
32184STRIP=$lt_STRIP
32185
32186# Commands used to install an old-style archive.
32187RANLIB=$lt_RANLIB
32188old_postinstall_cmds=$lt_old_postinstall_cmds
32189old_postuninstall_cmds=$lt_old_postuninstall_cmds
32190
32191# A C compiler.
32192LTCC=$lt_CC
32193
32194# LTCC compiler flags.
32195LTCFLAGS=$lt_CFLAGS
32196
32197# Take the output of nm and produce a listing of raw symbols and C names.
32198global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32199
32200# Transform the output of nm in a proper C declaration.
32201global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32202
32203# Transform the output of nm in a C name address pair.
32204global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32205
32206# Transform the output of nm in a C name address pair when lib prefix is needed.
32207global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32208
32209# The name of the directory that contains temporary libtool files.
32210objdir=$objdir
32211
32212# Shell to use when invoking shell scripts.
32213SHELL=$lt_SHELL
32214
32215# An echo program that does not interpret backslashes.
32216ECHO=$lt_ECHO
32217
32218# Used to examine libraries when file_magic_cmd begins with "file".
32219MAGIC_CMD=$MAGIC_CMD
32220
32221# Must we lock files when doing compilation?
32222need_locks=$lt_need_locks
32223
32224# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32225DSYMUTIL=$lt_DSYMUTIL
32226
32227# Tool to change global to local symbols on Mac OS X.
32228NMEDIT=$lt_NMEDIT
32229
32230# Tool to manipulate fat objects and archives on Mac OS X.
32231LIPO=$lt_LIPO
32232
32233# ldd/readelf like tool for Mach-O binaries on Mac OS X.
32234OTOOL=$lt_OTOOL
32235
32236# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32237OTOOL64=$lt_OTOOL64
32238
32239# Old archive suffix (normally "a").
32240libext=$libext
32241
32242# Shared library suffix (normally ".so").
32243shrext_cmds=$lt_shrext_cmds
32244
32245# The commands to extract the exported symbol list from a shared archive.
32246extract_expsyms_cmds=$lt_extract_expsyms_cmds
32247
32248# Variables whose values should be saved in libtool wrapper scripts and
32249# restored at link time.
32250variables_saved_for_relink=$lt_variables_saved_for_relink
32251
32252# Do we need the "lib" prefix for modules?
32253need_lib_prefix=$need_lib_prefix
32254
32255# Do we need a version for libraries?
32256need_version=$need_version
32257
32258# Library versioning type.
32259version_type=$version_type
32260
32261# Shared library runtime path variable.
32262runpath_var=$runpath_var
32263
32264# Shared library path variable.
32265shlibpath_var=$shlibpath_var
32266
32267# Is shlibpath searched before the hard-coded library search path?
32268shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32269
32270# Format of library name prefix.
32271libname_spec=$lt_libname_spec
32272
32273# List of archive names.  First name is the real one, the rest are links.
32274# The last name is the one that the linker finds with -lNAME
32275library_names_spec=$lt_library_names_spec
32276
32277# The coded name of the library, if different from the real name.
32278soname_spec=$lt_soname_spec
32279
32280# Command to use after installation of a shared archive.
32281postinstall_cmds=$lt_postinstall_cmds
32282
32283# Command to use after uninstallation of a shared archive.
32284postuninstall_cmds=$lt_postuninstall_cmds
32285
32286# Commands used to finish a libtool library installation in a directory.
32287finish_cmds=$lt_finish_cmds
32288
32289# As "finish_cmds", except a single script fragment to be evaled but
32290# not shown.
32291finish_eval=$lt_finish_eval
32292
32293# Whether we should hardcode library paths into libraries.
32294hardcode_into_libs=$hardcode_into_libs
32295
32296# Compile-time system search path for libraries.
32297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32298
32299# Run-time system search path for libraries.
32300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32301
32302# Whether dlopen is supported.
32303dlopen_support=$enable_dlopen
32304
32305# Whether dlopen of programs is supported.
32306dlopen_self=$enable_dlopen_self
32307
32308# Whether dlopen of statically linked programs is supported.
32309dlopen_self_static=$enable_dlopen_self_static
32310
32311# Commands to strip libraries.
32312old_striplib=$lt_old_striplib
32313striplib=$lt_striplib
32314
32315
32316# The linker used to build libraries.
32317LD=$lt_LD
32318
32319# Commands used to build an old-style archive.
32320old_archive_cmds=$lt_old_archive_cmds
32321
32322# A language specific compiler.
32323CC=$lt_compiler
32324
32325# Is the compiler the GNU compiler?
32326with_gcc=$GCC
32327
32328# Compiler flag to turn off builtin functions.
32329no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32330
32331# How to pass a linker flag through the compiler.
32332wl=$lt_lt_prog_compiler_wl
32333
32334# Additional compiler flags for building library objects.
32335pic_flag=$lt_lt_prog_compiler_pic
32336
32337# Compiler flag to prevent dynamic linking.
32338link_static_flag=$lt_lt_prog_compiler_static
32339
32340# Does compiler simultaneously support -c and -o options?
32341compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32342
32343# Whether or not to add -lc for building shared libraries.
32344build_libtool_need_lc=$archive_cmds_need_lc
32345
32346# Whether or not to disallow shared libs when runtime libs are static.
32347allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32348
32349# Compiler flag to allow reflexive dlopens.
32350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32351
32352# Compiler flag to generate shared objects directly from archives.
32353whole_archive_flag_spec=$lt_whole_archive_flag_spec
32354
32355# Whether the compiler copes with passing no objects directly.
32356compiler_needs_object=$lt_compiler_needs_object
32357
32358# Create an old-style archive from a shared archive.
32359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32360
32361# Create a temporary old-style archive to link instead of a shared archive.
32362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32363
32364# Commands used to build a shared archive.
32365archive_cmds=$lt_archive_cmds
32366archive_expsym_cmds=$lt_archive_expsym_cmds
32367
32368# Commands used to build a loadable module if different from building
32369# a shared archive.
32370module_cmds=$lt_module_cmds
32371module_expsym_cmds=$lt_module_expsym_cmds
32372
32373# Whether we are building with GNU ld or not.
32374with_gnu_ld=$lt_with_gnu_ld
32375
32376# Flag that allows shared libraries with undefined symbols to be built.
32377allow_undefined_flag=$lt_allow_undefined_flag
32378
32379# Flag that enforces no undefined symbols.
32380no_undefined_flag=$lt_no_undefined_flag
32381
32382# Flag to hardcode \$libdir into a binary during linking.
32383# This must work even if \$libdir does not exist
32384hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32385
32386# If ld is used when linking, flag to hardcode \$libdir into a binary
32387# during linking.  This must work even if \$libdir does not exist.
32388hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32389
32390# Whether we need a single "-rpath" flag with a separated argument.
32391hardcode_libdir_separator=$lt_hardcode_libdir_separator
32392
32393# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32394# DIR into the resulting binary.
32395hardcode_direct=$hardcode_direct
32396
32397# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32398# DIR into the resulting binary and the resulting library dependency is
32399# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32400# library is relocated.
32401hardcode_direct_absolute=$hardcode_direct_absolute
32402
32403# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32404# into the resulting binary.
32405hardcode_minus_L=$hardcode_minus_L
32406
32407# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32408# into the resulting binary.
32409hardcode_shlibpath_var=$hardcode_shlibpath_var
32410
32411# Set to "yes" if building a shared library automatically hardcodes DIR
32412# into the library and all subsequent libraries and executables linked
32413# against it.
32414hardcode_automatic=$hardcode_automatic
32415
32416# Set to yes if linker adds runtime paths of dependent libraries
32417# to runtime path list.
32418inherit_rpath=$inherit_rpath
32419
32420# Whether libtool must link a program against all its dependency libraries.
32421link_all_deplibs=$link_all_deplibs
32422
32423# Fix the shell variable \$srcfile for the compiler.
32424fix_srcfile_path=$lt_fix_srcfile_path
32425
32426# Set to "yes" if exported symbols are required.
32427always_export_symbols=$always_export_symbols
32428
32429# The commands to list exported symbols.
32430export_symbols_cmds=$lt_export_symbols_cmds
32431
32432# Symbols that should not be listed in the preloaded symbols.
32433exclude_expsyms=$lt_exclude_expsyms
32434
32435# Symbols that must always be exported.
32436include_expsyms=$lt_include_expsyms
32437
32438# Commands necessary for linking programs (against libraries) with templates.
32439prelink_cmds=$lt_prelink_cmds
32440
32441# Specify filename containing input files.
32442file_list_spec=$lt_file_list_spec
32443
32444# How to hardcode a shared library path into an executable.
32445hardcode_action=$hardcode_action
32446
32447# The directories searched by this compiler when creating a shared library.
32448compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32449
32450# Dependencies to place before and after the objects being linked to
32451# create a shared library.
32452predep_objects=$lt_predep_objects
32453postdep_objects=$lt_postdep_objects
32454predeps=$lt_predeps
32455postdeps=$lt_postdeps
32456
32457# The library search path used internally by the compiler when linking
32458# a shared library.
32459compiler_lib_search_path=$lt_compiler_lib_search_path
32460
32461# ### END LIBTOOL CONFIG
32462
32463_LT_EOF
32464
32465  case $host_os in
32466  aix3*)
32467    cat <<\_LT_EOF >> "$cfgfile"
32468# AIX sometimes has problems with the GCC collect2 program.  For some
32469# reason, if we set the COLLECT_NAMES environment variable, the problems
32470# vanish in a puff of smoke.
32471if test "X${COLLECT_NAMES+set}" != Xset; then
32472  COLLECT_NAMES=
32473  export COLLECT_NAMES
32474fi
32475_LT_EOF
32476    ;;
32477  esac
32478
32479
32480ltmain="$ac_aux_dir/ltmain.sh"
32481
32482
32483  # We use sed instead of cat because bash on DJGPP gets confused if
32484  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32485  # text mode, it properly converts lines to CR/LF.  This bash problem
32486  # is reportedly fixed, but why not run on old versions too?
32487  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32488    || (rm -f "$cfgfile"; exit 1)
32489
32490  case $xsi_shell in
32491  yes)
32492    cat << \_LT_EOF >> "$cfgfile"
32493
32494# func_dirname file append nondir_replacement
32495# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32496# otherwise set result to NONDIR_REPLACEMENT.
32497func_dirname ()
32498{
32499  case ${1} in
32500    */*) func_dirname_result="${1%/*}${2}" ;;
32501    *  ) func_dirname_result="${3}" ;;
32502  esac
32503}
32504
32505# func_basename file
32506func_basename ()
32507{
32508  func_basename_result="${1##*/}"
32509}
32510
32511# func_dirname_and_basename file append nondir_replacement
32512# perform func_basename and func_dirname in a single function
32513# call:
32514#   dirname:  Compute the dirname of FILE.  If nonempty,
32515#             add APPEND to the result, otherwise set result
32516#             to NONDIR_REPLACEMENT.
32517#             value returned in "$func_dirname_result"
32518#   basename: Compute filename of FILE.
32519#             value retuned in "$func_basename_result"
32520# Implementation must be kept synchronized with func_dirname
32521# and func_basename. For efficiency, we do not delegate to
32522# those functions but instead duplicate the functionality here.
32523func_dirname_and_basename ()
32524{
32525  case ${1} in
32526    */*) func_dirname_result="${1%/*}${2}" ;;
32527    *  ) func_dirname_result="${3}" ;;
32528  esac
32529  func_basename_result="${1##*/}"
32530}
32531
32532# func_stripname prefix suffix name
32533# strip PREFIX and SUFFIX off of NAME.
32534# PREFIX and SUFFIX must not contain globbing or regex special
32535# characters, hashes, percent signs, but SUFFIX may contain a leading
32536# dot (in which case that matches only a dot).
32537func_stripname ()
32538{
32539  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32540  # positional parameters, so assign one to ordinary parameter first.
32541  func_stripname_result=${3}
32542  func_stripname_result=${func_stripname_result#"${1}"}
32543  func_stripname_result=${func_stripname_result%"${2}"}
32544}
32545
32546# func_opt_split
32547func_opt_split ()
32548{
32549  func_opt_split_opt=${1%%=*}
32550  func_opt_split_arg=${1#*=}
32551}
32552
32553# func_lo2o object
32554func_lo2o ()
32555{
32556  case ${1} in
32557    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32558    *)    func_lo2o_result=${1} ;;
32559  esac
32560}
32561
32562# func_xform libobj-or-source
32563func_xform ()
32564{
32565  func_xform_result=${1%.*}.lo
32566}
32567
32568# func_arith arithmetic-term...
32569func_arith ()
32570{
32571  func_arith_result=$(( $* ))
32572}
32573
32574# func_len string
32575# STRING may not start with a hyphen.
32576func_len ()
32577{
32578  func_len_result=${#1}
32579}
32580
32581_LT_EOF
32582    ;;
32583  *) # Bourne compatible functions.
32584    cat << \_LT_EOF >> "$cfgfile"
32585
32586# func_dirname file append nondir_replacement
32587# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32588# otherwise set result to NONDIR_REPLACEMENT.
32589func_dirname ()
32590{
32591  # Extract subdirectory from the argument.
32592  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32593  if test "X$func_dirname_result" = "X${1}"; then
32594    func_dirname_result="${3}"
32595  else
32596    func_dirname_result="$func_dirname_result${2}"
32597  fi
32598}
32599
32600# func_basename file
32601func_basename ()
32602{
32603  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32604}
32605
32606
32607# func_stripname prefix suffix name
32608# strip PREFIX and SUFFIX off of NAME.
32609# PREFIX and SUFFIX must not contain globbing or regex special
32610# characters, hashes, percent signs, but SUFFIX may contain a leading
32611# dot (in which case that matches only a dot).
32612# func_strip_suffix prefix name
32613func_stripname ()
32614{
32615  case ${2} in
32616    .*) func_stripname_result=`$ECHO "X${3}" \
32617           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32618    *)  func_stripname_result=`$ECHO "X${3}" \
32619           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32620  esac
32621}
32622
32623# sed scripts:
32624my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32625my_sed_long_arg='1s/^-[^=]*=//'
32626
32627# func_opt_split
32628func_opt_split ()
32629{
32630  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32631  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32632}
32633
32634# func_lo2o object
32635func_lo2o ()
32636{
32637  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32638}
32639
32640# func_xform libobj-or-source
32641func_xform ()
32642{
32643  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32644}
32645
32646# func_arith arithmetic-term...
32647func_arith ()
32648{
32649  func_arith_result=`expr "$@"`
32650}
32651
32652# func_len string
32653# STRING may not start with a hyphen.
32654func_len ()
32655{
32656  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32657}
32658
32659_LT_EOF
32660esac
32661
32662case $lt_shell_append in
32663  yes)
32664    cat << \_LT_EOF >> "$cfgfile"
32665
32666# func_append var value
32667# Append VALUE to the end of shell variable VAR.
32668func_append ()
32669{
32670  eval "$1+=\$2"
32671}
32672_LT_EOF
32673    ;;
32674  *)
32675    cat << \_LT_EOF >> "$cfgfile"
32676
32677# func_append var value
32678# Append VALUE to the end of shell variable VAR.
32679func_append ()
32680{
32681  eval "$1=\$$1\$2"
32682}
32683
32684_LT_EOF
32685    ;;
32686  esac
32687
32688
32689  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32690    || (rm -f "$cfgfile"; exit 1)
32691
32692  mv -f "$cfgfile" "$ofile" ||
32693    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32694  chmod +x "$ofile"
32695
32696
32697    cat <<_LT_EOF >> "$ofile"
32698
32699# ### BEGIN LIBTOOL TAG CONFIG: CXX
32700
32701# The linker used to build libraries.
32702LD=$lt_LD_CXX
32703
32704# Commands used to build an old-style archive.
32705old_archive_cmds=$lt_old_archive_cmds_CXX
32706
32707# A language specific compiler.
32708CC=$lt_compiler_CXX
32709
32710# Is the compiler the GNU compiler?
32711with_gcc=$GCC_CXX
32712
32713# Compiler flag to turn off builtin functions.
32714no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32715
32716# How to pass a linker flag through the compiler.
32717wl=$lt_lt_prog_compiler_wl_CXX
32718
32719# Additional compiler flags for building library objects.
32720pic_flag=$lt_lt_prog_compiler_pic_CXX
32721
32722# Compiler flag to prevent dynamic linking.
32723link_static_flag=$lt_lt_prog_compiler_static_CXX
32724
32725# Does compiler simultaneously support -c and -o options?
32726compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32727
32728# Whether or not to add -lc for building shared libraries.
32729build_libtool_need_lc=$archive_cmds_need_lc_CXX
32730
32731# Whether or not to disallow shared libs when runtime libs are static.
32732allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32733
32734# Compiler flag to allow reflexive dlopens.
32735export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32736
32737# Compiler flag to generate shared objects directly from archives.
32738whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32739
32740# Whether the compiler copes with passing no objects directly.
32741compiler_needs_object=$lt_compiler_needs_object_CXX
32742
32743# Create an old-style archive from a shared archive.
32744old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32745
32746# Create a temporary old-style archive to link instead of a shared archive.
32747old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32748
32749# Commands used to build a shared archive.
32750archive_cmds=$lt_archive_cmds_CXX
32751archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32752
32753# Commands used to build a loadable module if different from building
32754# a shared archive.
32755module_cmds=$lt_module_cmds_CXX
32756module_expsym_cmds=$lt_module_expsym_cmds_CXX
32757
32758# Whether we are building with GNU ld or not.
32759with_gnu_ld=$lt_with_gnu_ld_CXX
32760
32761# Flag that allows shared libraries with undefined symbols to be built.
32762allow_undefined_flag=$lt_allow_undefined_flag_CXX
32763
32764# Flag that enforces no undefined symbols.
32765no_undefined_flag=$lt_no_undefined_flag_CXX
32766
32767# Flag to hardcode \$libdir into a binary during linking.
32768# This must work even if \$libdir does not exist
32769hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32770
32771# If ld is used when linking, flag to hardcode \$libdir into a binary
32772# during linking.  This must work even if \$libdir does not exist.
32773hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32774
32775# Whether we need a single "-rpath" flag with a separated argument.
32776hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32777
32778# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32779# DIR into the resulting binary.
32780hardcode_direct=$hardcode_direct_CXX
32781
32782# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32783# DIR into the resulting binary and the resulting library dependency is
32784# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32785# library is relocated.
32786hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32787
32788# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32789# into the resulting binary.
32790hardcode_minus_L=$hardcode_minus_L_CXX
32791
32792# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32793# into the resulting binary.
32794hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32795
32796# Set to "yes" if building a shared library automatically hardcodes DIR
32797# into the library and all subsequent libraries and executables linked
32798# against it.
32799hardcode_automatic=$hardcode_automatic_CXX
32800
32801# Set to yes if linker adds runtime paths of dependent libraries
32802# to runtime path list.
32803inherit_rpath=$inherit_rpath_CXX
32804
32805# Whether libtool must link a program against all its dependency libraries.
32806link_all_deplibs=$link_all_deplibs_CXX
32807
32808# Fix the shell variable \$srcfile for the compiler.
32809fix_srcfile_path=$lt_fix_srcfile_path_CXX
32810
32811# Set to "yes" if exported symbols are required.
32812always_export_symbols=$always_export_symbols_CXX
32813
32814# The commands to list exported symbols.
32815export_symbols_cmds=$lt_export_symbols_cmds_CXX
32816
32817# Symbols that should not be listed in the preloaded symbols.
32818exclude_expsyms=$lt_exclude_expsyms_CXX
32819
32820# Symbols that must always be exported.
32821include_expsyms=$lt_include_expsyms_CXX
32822
32823# Commands necessary for linking programs (against libraries) with templates.
32824prelink_cmds=$lt_prelink_cmds_CXX
32825
32826# Specify filename containing input files.
32827file_list_spec=$lt_file_list_spec_CXX
32828
32829# How to hardcode a shared library path into an executable.
32830hardcode_action=$hardcode_action_CXX
32831
32832# The directories searched by this compiler when creating a shared library.
32833compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32834
32835# Dependencies to place before and after the objects being linked to
32836# create a shared library.
32837predep_objects=$lt_predep_objects_CXX
32838postdep_objects=$lt_postdep_objects_CXX
32839predeps=$lt_predeps_CXX
32840postdeps=$lt_postdeps_CXX
32841
32842# The library search path used internally by the compiler when linking
32843# a shared library.
32844compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32845
32846# ### END LIBTOOL TAG CONFIG: CXX
32847_LT_EOF
32848
32849 ;;
32850    "mpopt.arm":C)
32851        m4 $srcdir/gas/mpopt.arm.m4 > mpopt.s
32852         ;;
32853    "mpopt.alpha":C)
32854        m4 $srcdir/gas/mpopt.alpha.m4 > mpopt.s
32855         ;;
32856    "mpopt.x86_64":C)
32857        m4 $srcdir/gas/mpopt.x86_64.m4 > mpopt.s
32858         ;;
32859    "mpopt.x86":C)
32860        m4 $srcdir/gas/mpopt.x86.m4 > mpopt.s
32861         ;;
32862    "sha1opt.x86":C)
32863        m4 $srcdir/gas/sha1opt.x86.m4 > sha1opt.s
32864         ;;
32865    "mpopt.ia64":C)
32866        m4 $srcdir/gas/mpopt.ia64.m4 > mpopt.s
32867         ;;
32868    "mpopt.m68k":C)
32869        m4 $srcdir/gas/mpopt.m68k.m4 > mpopt.s
32870         ;;
32871    "mpopt.ppc":C)
32872        m4 $srcdir/gas/mpopt.ppc.m4 > mpopt.s
32873         ;;
32874    "mpopt.ppc64":C)
32875        m4 $srcdir/gas/mpopt.ppc64.m4 > mpopt.s
32876         ;;
32877    "mpopt.s390x":C)
32878        m4 $srcdir/gas/mpopt.s390x.m4 > mpopt.s
32879         ;;
32880    "mpopt.sparcv8":C)
32881        m4 $srcdir/gas/mpopt.sparcv8.m4 > mpopt.s
32882         ;;
32883    "mpopt.sparcv8plus":C)
32884        m4 $srcdir/gas/mpopt.sparcv8plus.m4 > mpopt.s
32885         ;;
32886    "blowfishopt.i586":C)
32887        m4 $srcdir/gas/blowfishopt.i586.m4 > blowfishopt.s
32888         ;;
32889    "blowfishopt.ppc":C)
32890        m4 $srcdir/gas/blowfishopt.ppc.m4 > blowfishopt.s
32891         ;;
32892    "gnu.h":F)
32893    cp gnu.h $ac_top_srcdir/include/beecrypt/gnu.h
32894   ;;
32895
32896  esac
32897done # for ac_tag
32898
32899
32900{ (exit 0); exit 0; }
32901_ACEOF
32902chmod +x $CONFIG_STATUS
32903ac_clean_files=$ac_clean_files_save
32904
32905test $ac_write_fail = 0 ||
32906  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32907$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32908   { (exit 1); exit 1; }; }
32909
32910
32911# configure is writing to config.log, and then calls config.status.
32912# config.status does its own redirection, appending to config.log.
32913# Unfortunately, on DOS this fails, as config.log is still kept open
32914# by configure, so config.status won't be able to write to it; its
32915# output is simply discarded.  So we exec the FD to /dev/null,
32916# effectively closing config.log, so it can be properly (re)opened and
32917# appended to by config.status.  When coming back to configure, we
32918# need to make the FD available again.
32919if test "$no_create" != yes; then
32920  ac_cs_success=:
32921  ac_config_status_args=
32922  test "$silent" = yes &&
32923    ac_config_status_args="$ac_config_status_args --quiet"
32924  exec 5>/dev/null
32925  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32926  exec 5>>config.log
32927  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32928  # would make configure fail if this is the last instruction.
32929  $ac_cs_success || { (exit 1); exit 1; }
32930fi
32931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32932  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32933$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32934fi
32935
32936